:root {
  --night: #181d24;
  --muted: #667085;
  --line: #e7dfd3;
  --paper: #f7f3ed;
  --orange: #9f6a3b;
  --orange-dark: #7d512d;
  --white: #ffffff;
  --success: #137a3a;
  --danger: #b42318;
  --shadow: 0 18px 44px rgba(24, 29, 36, .10);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--night); font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .65; }
.shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); }
.auth-wrap { width: min(100%, 1160px); margin: 0 auto; padding: 32px 20px; }
.auth-grid { display: grid; gap: 28px; align-items: center; min-height: calc(100vh - 64px); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; }
.brand img { width: 42px; height: 42px; border-radius: 12px; }
.eyebrow { margin: 28px 0 0; color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero-title { margin: 14px 0 0; max-width: 620px; font-family: "Playfair Display", Georgia, serif; font-size: clamp(40px, 7vw, 72px); line-height: 1.02; }
.hero-copy { max-width: 580px; margin: 22px 0 0; color: var(--muted); font-size: 17px; line-height: 1.8; }
.reassurance { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pill { border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .68); padding: 10px 14px; color: var(--muted); font-size: 13px; font-weight: 700; }
.card { border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: var(--shadow); }
.auth-card { width: min(100%, 480px); margin-left: auto; padding: 30px; }
.panel-title { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: 34px; line-height: 1.1; }
.panel-copy { margin: 10px 0 22px; color: var(--muted); line-height: 1.7; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.label { font-size: 14px; font-weight: 800; }
.input, .select { width: 100%; min-height: 48px; border: 1px solid #cfd4dc; border-radius: 12px; background: #fff; color: var(--night); padding: 12px 14px; outline: none; }
.input:focus, .select:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(159, 106, 59, .12); }
.row { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.check input { accent-color: var(--orange); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; border: 1px solid transparent; border-radius: 999px; padding: 13px 20px; font-weight: 800; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 14px 34px rgba(24, 29, 36, .10); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-secondary { border-color: var(--line); background: #fff; color: var(--night); }
.btn-block { width: 100%; }
.btn-google { min-height: 52px; border-color: #d8d0c5; background: linear-gradient(180deg, #fff, #fbfaf7); color: var(--night); box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 10px 24px rgba(24, 29, 36, .06); }
.btn-google:hover { border-color: #b9ab9b; background: #fff; }
.google-mark { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; border: 1px solid #e5e0d8; font-weight: 900; color: #4285f4; background: #fff; box-shadow: 0 4px 10px rgba(24, 29, 36, .06); }
.link { color: var(--orange); font-weight: 800; }
.divider { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 14px; }
.or-divider { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin: 22px 0; color: #7b746b; font-size: 11px; font-weight: 800; line-height: 1; letter-spacing: .08em; text-transform: uppercase; }
.or-divider::before, .or-divider::after { content: ""; display: block; height: 1px; background: #e8e2d9; }
.or-divider span { display: block; padding: 0; border: 0; border-radius: 0; background: transparent; text-align: center; box-shadow: none; }
.alert { display: none; margin-bottom: 18px; border-radius: 14px; padding: 14px 16px; font-size: 14px; font-weight: 700; line-height: 1.5; }
.alert.is-visible { display: block; }
.alert.error { border: 1px solid #fecdca; background: #fff4f2; color: var(--danger); }
.alert.success { border: 1px solid #abefc6; background: #f0fdf4; color: var(--success); }
.alert.info { border: 1px solid #d6bbfb; background: #f9f5ff; color: #6941c6; }
.accounts { display: grid; gap: 10px; margin-bottom: 18px; }
.account-card { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 12px; }
.account-main { flex: 1; min-width: 0; text-align: left; }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; background: var(--night); color: #fff; font-weight: 900; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.topbar { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .94); backdrop-filter: blur(18px); }
.topbar-inner { width: min(100%, 1180px); margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.dashboard { width: min(100%, 1180px); margin: 0 auto; padding: 34px 20px 56px; }
.dashboard-head { display: flex; align-items: end; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.dashboard-title { margin: 8px 0 0; font-family: "Playfair Display", Georgia, serif; font-size: clamp(36px, 5vw, 58px); line-height: 1.05; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.stat { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 18px; }
.stat strong { display: block; font-size: 28px; }
.section-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.data-card { border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); padding: 22px; }
.data-card h2 { margin: 0 0 14px; font-size: 20px; }
.empty { border: 1px dashed #d0c7ba; border-radius: 14px; background: #fbfaf7; padding: 16px; color: var(--muted); line-height: 1.7; }
.item { display: grid; gap: 4px; border-top: 1px solid var(--line); padding: 14px 0; }
.item:first-child { border-top: 0; padding-top: 0; }
.status { display: inline-flex; width: max-content; border-radius: 999px; background: var(--paper); color: var(--muted); padding: 5px 9px; font-size: 12px; font-weight: 800; }
@media (min-width: 860px) { .auth-grid { grid-template-columns: 1fr 480px; } }
@media (max-width: 760px) { .auth-card { margin: 0; padding: 22px; } .stats, .section-grid { grid-template-columns: 1fr; } .topbar-inner { align-items: flex-start; flex-direction: column; } }
