:root {
  --background: 248 244 238;
  --foreground: 15 23 42;
  --panel: 255 255 255;
  --border: 226 216 203;
  --accent: 245 166 35;
  --accent-2: 217 107 43;
  --muted: 87 96 111;
  --sidebar-width: 240px;
  color: rgb(var(--foreground));
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(245,166,35,.18), transparent 30%), radial-gradient(circle at 85% 10%, rgba(217,107,43,.14), transparent 24%), linear-gradient(180deg, rgb(var(--background)), #fffaf3);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: "Space Grotesk", Inter, "Segoe UI", system-ui, sans-serif; }
h1, h2, h3, p { margin-top: 0; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Same shell geometry and navigation language as Auria Ads. */
.auria-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; display: flex; flex-direction: column; width: var(--sidebar-width); border-right: 1px solid #e2e8f0; background: #fff; box-shadow: 12px 0 40px rgba(15,23,42,.04); transition: width .2s ease, transform .2s ease; }
.sidebar-header { display: flex; flex: none; align-items: center; justify-content: space-between; height: 64px; padding: 0 12px; border-bottom: 1px solid #f1f5f9; }
.sidebar-brand { display: flex; min-width: 0; align-items: center; overflow: hidden; }
.brand-horizontal { display: block; width: auto; max-width: 165px; height: 36px; object-fit: contain; object-position: left center; }
.brand-symbol { display: none; width: 36px; height: 36px; object-fit: contain; }
.sidebar-toggle, .mobile-close { display: grid; width: 32px; height: 32px; flex: none; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #64748b; }
.sidebar-toggle:hover, .mobile-close:hover { background: #f1f5f9; color: #020617; }
.expand-icon, .mobile-close { display: none; }
.sidebar-nav { min-height: 0; flex: 1; overflow-y: auto; padding: 16px 8px 48px; }
.nav-group + .nav-group { margin-top: 16px; }
.nav-label { margin: 0 12px 4px; color: #94a3b8; font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.nav-item { display: flex; min-height: 40px; align-items: center; gap: 10px; margin: 0 0 4px; padding: 8px 10px; border-radius: 8px; color: #475569; font-size: 14px; font-weight: 500; transition: background .15s, color .15s; }
.nav-item:hover { background: #f1f5f9; color: #0f172a; }
.nav-item.active { background: #0f172a; color: #fff; }
.account-menu { position: relative; flex: none; margin-top: auto; padding: 8px 0 40px; border-top: 1px solid #f1f5f9; }
.account-menu summary { display: flex; align-items: center; gap: 10px; margin: 0 8px; padding: 8px 4px; border-radius: 12px; list-style: none; cursor: pointer; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary:hover { background: rgba(248,244,238,.8); }
.account-avatar { display: grid; width: 32px; height: 32px; flex: none; place-items: center; border-radius: 50%; background: #f5a623; color: #fff; font-size: 12px; font-weight: 700; }
.account-label { display: block; min-width: 0; flex: 1; }
.account-label strong, .account-label small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.account-label strong { color: #1e293b; font-size: 12px; }
.account-label small { margin-top: 2px; color: #94a3b8; font-size: 12px; }
.account-chevron { width: 16px; height: 16px; color: #94a3b8; transition: transform .2s; }
.account-menu[open] .account-chevron { transform: rotate(180deg); }
.account-popover { position: absolute; bottom: 100%; left: 8px; z-index: 60; display: flex; width: min(310px, calc(100vw - 16px)); flex-direction: column; overflow: hidden; margin-bottom: 8px; border: 1px solid #e2e8f0; border-radius: 24px; background: #fff; box-shadow: 0 24px 80px rgba(15,23,42,.16); }
.account-popover-head { display: grid; gap: 4px; padding: 16px; border-bottom: 1px solid #f1f5f9; }
.account-popover-head strong { font-size: 14px; }
.account-popover-head small { color: #64748b; font-size: 12px; }
.account-popover button { display: flex; align-items: center; gap: 12px; margin: 8px; padding: 12px; border: 0; border-radius: 16px; background: #fff; color: #334155; text-align: left; font-size: 14px; font-weight: 600; }
.account-popover button:hover { background: #fef2f2; color: #b91c1c; }
.sidebar-collapsed { --sidebar-width: 64px; }
.sidebar-collapsed .sidebar-header { height: 96px; flex-direction: column; justify-content: center; gap: 4px; padding: 0; }
.sidebar-collapsed .brand-horizontal, .sidebar-collapsed .collapse-icon, .sidebar-collapsed .nav-label, .sidebar-collapsed .nav-item span, .sidebar-collapsed .account-label, .sidebar-collapsed .account-chevron { display: none; }
.sidebar-collapsed .brand-symbol, .sidebar-collapsed .expand-icon { display: block; }
.sidebar-collapsed .nav-group + .nav-group { padding-top: 8px; border-top: 1px solid #f1f5f9; }
.sidebar-collapsed .nav-item { justify-content: center; padding: 8px; }
.sidebar-collapsed .account-menu summary { justify-content: center; }
.sidebar-collapsed .account-popover { left: 56px; bottom: 12px; }
.workspace { min-height: 100vh; margin-left: var(--sidebar-width); transition: margin-left .2s ease; }
.auria-app-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(255,255,255,.7); background: rgba(248,244,238,.85); backdrop-filter: blur(24px); }
.header-shell { width: 100%; padding: 12px 16px; }
.header-card { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border: 1px solid rgba(226,232,240,.8); border-radius: 32px; background: rgba(255,255,255,.85); box-shadow: 0 20px 70px rgba(15,23,42,.07); }
.header-title { display: flex; min-width: 0; align-items: center; gap: 12px; color: #334155; font-size: 14px; font-weight: 600; }
.header-badge { padding: 8px 12px; border: 1px solid rgb(var(--border)); border-radius: 999px; background: #fff9ef; color: #95530c; font-size: 11px; font-weight: 700; letter-spacing: .08em; white-space: nowrap; }
.mobile-menu, .mobile-overlay { display: none; }
.auria-shell { width: 100%; min-width: 0; max-width: none; margin: 0; padding: 30px max(16px, calc((100vw - var(--sidebar-width) - 1180px)/2)) 28px; }
.auria-card { border: 1px solid rgba(var(--border),.9); border-radius: 24px; background: rgba(255,255,255,.72); box-shadow: 0 24px 80px rgba(15,23,42,.06); backdrop-filter: blur(18px); }
.hero { position: relative; min-height: 340px; overflow: hidden; padding: clamp(32px,5vw,64px); }
.hero::after { position: absolute; top: -150px; right: -90px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle,#f9daa0,transparent 69%); content: ""; opacity: .75; pointer-events: none; }
.eyebrow { color: #b56818; font-size: 11px; font-weight: 800; letter-spacing: .17em; }
.hero h1 { margin: 20px 0 18px; font-size: clamp(38px,5vw,64px); letter-spacing: -.055em; line-height: 1.05; }
.hero em { background: linear-gradient(90deg,rgb(var(--accent)),rgb(var(--accent-2))); background-clip: text; color: transparent; font-style: normal; }
.hero p { max-width: 550px; color: rgb(var(--muted)); font-size: 17px; line-height: 1.6; }
.hero-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 32px; }
.pill { padding: 10px 14px; border: 1px solid rgb(var(--border)); border-radius: 999px; background: rgba(255,255,255,.65); font-size: 12px; font-weight: 650; }
.pill i { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: rgb(var(--accent)); }
.hero-footer a { color: #b56818; font-size: 13px; font-weight: 750; }
main section:not(.hero) { padding-top: 34px; }
.page-heading { margin: 4px 0 28px; }
.page-heading h1 { margin: 9px 0 8px; font-size: clamp(32px,3.5vw,44px); letter-spacing: -.05em; line-height: 1.12; }
.page-heading p { max-width: 640px; margin: 0; color: rgb(var(--muted)); font-size: 15px; line-height: 1.55; }
.overview-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.overview-link { display: flex; min-height: 220px; flex-direction: column; padding: 26px; transition: transform .15s, box-shadow .15s; }
.overview-link:hover { transform: translateY(-3px); box-shadow: 0 28px 65px rgba(15,23,42,.1); }
.overview-icon { color: #b56818; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.overview-link h2 { margin: 22px 0 8px; font-size: 22px; }
.overview-link p { color: rgb(var(--muted)); font-size: 13px; line-height: 1.5; }
.overview-arrow { margin-top: auto; color: #aa6115; font-size: 13px; font-weight: 750; }
.heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.heading h2 { margin: 8px 0 0; font-size: 26px; letter-spacing: -.04em; }
.heading > span { color: rgb(var(--muted)); font-size: 12px; }
.journey { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; }
.step { min-height: 192px; padding: 22px; }
.step small { color: #c27623; font-size: 11px; font-weight: 800; }
.step h3 { margin: 32px 0 7px; font-size: 17px; }
.step p, .foundation p { margin: 0; color: rgb(var(--muted)); font-size: 13px; line-height: 1.5; }
.foundation { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.foundation article { min-height: 172px; padding: 25px; }
.foundation article > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; background: #fff1d8; color: #ba6917; font-size: 20px; }
.foundation h3 { margin: 17px 0 7px; font-size: 17px; }
.architecture-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 40px 0 16px; }
.architecture-heading h3 { margin: 7px 0 0; font-size: 22px; letter-spacing: -.03em; }
.architecture-heading p { margin: 0; color: rgb(var(--muted)); font-size: 13px; }
.architecture-gallery { display: grid; gap: 20px; }
.architecture-figure { overflow: hidden; margin: 0; }
.architecture-figure figcaption { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; padding: 18px 22px; }
.architecture-figure figcaption strong { font-size: 16px; }
.architecture-figure figcaption span { color: rgb(var(--muted)); font-size: 13px; }
.architecture-figure a { display: block; border-top: 1px solid rgba(var(--border),.9); background: #fff; }
.architecture-figure a:focus-visible { outline: 3px solid rgb(var(--accent)); outline-offset: -3px; }
.architecture-figure img { display: block; width: 100%; height: auto; }
footer { padding: 44px 0 6px; color: #8d938e; font-size: 12px; text-align: center; }
.communication-page { padding-top: 0 !important; }
.communication-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,320px); align-items: start; gap: 20px; }
.communication-card { min-width: 0; padding: 30px; background: #fff; }
.communication-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid #e8e4df; }
.communication-top > div { display: flex; align-items: center; gap: 12px; }
.channel-icon { display: grid; width: 42px; height: 42px; flex: none; place-items: center; border-radius: 12px; background: #fff1d8; color: #a75e13; font-size: 20px; }
.communication-top h2 { margin: 0 0 3px; font-size: 20px; letter-spacing: -.03em; }
.communication-top p { margin: 0; color: rgb(var(--muted)); font-size: 13px; }
.communication-status { padding: 8px 12px; border-radius: 99px; background: #f1f5f9; color: #475569; font-size: 12px; font-weight: 700; white-space: nowrap; }
.communication-status.active { background:#dcfce7; color:#166534; }
.communication-status.pending { background:#fef3c7; color:#92400e; }
.communication-card label { display: grid; gap: 8px; color: #334155; font-size: 13px; font-weight: 650; }
.communication-card select,.communication-card input { width: 100%; min-width: 0; min-height: 44px; padding: 10px 13px; border: 1px solid #d8dee5; border-radius: 10px; outline: 0; background: #fff; color: #0f172a; font: inherit; font-size: 14px; font-weight: 400; }
.communication-card select:focus,.communication-card input:focus { border-color: #eaa23b; box-shadow: 0 0 0 3px rgba(245,166,35,.16); }
.communication-card input::placeholder { color: #a0a7b1; }
.organization-field { max-width: 480px; margin: 24px 0 28px; }
.communication-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.communication-grid .full-width { grid-column: 1 / -1; }
.communication-grid .full-width input { max-width: 480px; }
.optional { color: #8b95a2; font-weight: 400; }
.communication-help { margin: 20px 0 0; color: rgb(var(--muted)); font-size: 13px; line-height: 1.5; }
.communication-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding-top: 22px; border-top: 1px solid #e8e4df; }
.communication-actions button { min-height: 42px; padding: 9px 15px; border: 1px solid #0f172a; border-radius: 10px; background: #0f172a; color: white; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.communication-actions button.secondary { border-color:#dbe2e8; background:white; color:#334155; }
.communication-actions button:not(:disabled):hover { filter: brightness(.94); }
.communication-actions button:disabled { opacity:.5; cursor:not-allowed; }
.communication-preview { min-width: 0; padding: 26px; background: #fff; }
.communication-preview h2 { margin: 9px 0 24px; font-size: 19px; line-height: 1.3; }
.preview-line { padding: 16px 0; border-top: 1px solid #e8e4df; }
.preview-line small { display: block; margin-bottom: 10px; color: #8b95a2; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.preview-line strong { display: block; overflow-wrap: anywhere; color: #263345; font-size: 14px; font-weight: 650; line-height: 1.5; }
.communication-preview > p { margin: 18px 0 0; padding: 9px 12px; border-radius: 9px; background: #f1f5f9; color: #64748b; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.communication-records { margin-top:20px; padding:16px; border:1px solid #fde68a; border-radius:12px; background:#fffbeb; font-size:12px; overflow-wrap:anywhere; }
.communication-records p { margin:10px 0 0; color:#475569; }
#communication-feedback { min-height: 18px; margin: 16px 0 0; color: #475569; font-size: 13px; }
@media (max-width: 1100px) { .journey { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 1180px) { .communication-layout { grid-template-columns: 1fr; } .communication-preview { max-width: none; } }
@media (max-width: 767px) {
  .auria-sidebar { width: 240px; transform: translateX(-100%); }
  .mobile-nav-open .auria-sidebar { transform: translateX(0); }
  .sidebar-collapsed { --sidebar-width: 240px; }
  .sidebar-collapsed .sidebar-header { height: 64px; flex-direction: row; justify-content: space-between; gap: 0; padding: 0 12px; }
  .sidebar-collapsed .brand-horizontal, .sidebar-collapsed .nav-label, .sidebar-collapsed .nav-item span, .sidebar-collapsed .account-label, .sidebar-collapsed .account-chevron { display: block; }
  .sidebar-collapsed .brand-symbol, .sidebar-toggle { display: none; }
  .sidebar-collapsed .nav-item { justify-content: flex-start; padding: 8px 10px; }
  .sidebar-collapsed .account-menu summary { justify-content: flex-start; }
  .sidebar-collapsed .account-popover { left: 8px; bottom: 100%; }
  .mobile-close { display: grid; }
  .mobile-overlay { position: fixed; inset: 0; z-index: 45; display: block; width: 100%; border: 0; background: rgba(2,6,23,.4); }
  .mobile-overlay[hidden] { display: none; }
  .workspace { margin-left: 0; }
  .mobile-menu { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; color: #334155; }
  .auria-shell { padding: 20px 16px 28px; }
  .journey, .foundation { grid-template-columns: 1fr; }
  .overview-links { grid-template-columns: 1fr; }
  .overview-link { min-height: 0; }
  .step { min-height: 0; }
  .step h3 { margin-top: 18px; }
  .heading { display: block; }
  .heading > span { display: block; margin-top: 8px; }
  .architecture-heading { display: block; }
  .architecture-heading p { margin-top: 8px; }
  .communication-grid { grid-template-columns:1fr; }
  .communication-grid .full-width { grid-column: auto; }
  .communication-card,.communication-preview { padding: 20px; }
  .communication-top { flex-wrap:wrap; }
}

/* Login styles live in the stylesheet already served to the login page. */
[hidden] { display: none !important; }
.auth-shell { display: flex; width: min(1120px, calc(100% - 2rem)); min-height: 100vh; align-items: center; margin: 0 auto; padding: 40px 0; }
main.auth-shell section.auth-card { width: min(100%, 512px); margin: 0 auto; padding: 32px; }
.auth-logo { display: block; width: 240px; max-width: 100%; height: auto; margin-bottom: 28px; object-fit: contain; object-position: left center; }
.auth-kicker { margin-bottom: 8px; color: #64748b; font-size: 14px; font-weight: 600; letter-spacing: .22em; }
.auth-card h1 { margin: 0; color: #0f172a; font-size: 36px; font-weight: 700; letter-spacing: -.04em; line-height: 1.15; }
.auth-description { margin: 12px 0 24px; color: #475569; font-size: 16px; line-height: 1.75; }
.auth-card form { display: grid; gap: 20px; }
.auth-card label { display: block; color: #334155; font-size: 14px; font-weight: 600; }
.auth-card label > span:first-child { display: block; margin-bottom: 8px; }
.input-wrap { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; }
.input-wrap:focus-within { border-color: #f5a623; box-shadow: 0 0 0 3px rgba(245,166,35,.18); }
.input-wrap .icon { width: 16px; height: 16px; color: #94a3b8; }
.input-wrap input { width: 100%; min-width: 0; border: 0; background: transparent; color: #0f172a; font-size: 15px; outline: none; }
.auth-submit { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 14px; background: #0f172a; color: #fff; font-size: 14px; font-weight: 700; }
.auth-submit:hover { background: #1e293b; }
.auth-submit:disabled { opacity: .6; cursor: wait; }
.auth-link { display: block; margin: 20px auto 0; padding: 4px; border: 0; background: transparent; color: #475569; font-size: 13px; font-weight: 700; }
.auth-link:hover { color: #0f172a; }
.auth-message { margin: 0; padding: 12px 14px; border: 1px solid #fecaca; border-radius: 16px; background: #fef2f2; color: #b91c1c; font-size: 13px; line-height: 1.5; }
.auth-message.success { border-color: #a7f3d0; background: #ecfdf5; color: #047857; }
@media (max-width: 600px) { .auth-shell { padding: 24px 0; } main.auth-shell section.auth-card { padding: 24px; } .auth-card h1 { font-size: 30px; } }
