:root {
    color-scheme: dark;
    --background: #07100e;
    --background-soft: #0a1512;
    --sidebar: #091411;
    --surface: #10201b;
    --surface-raised: #142720;
    --surface-hover: #1a3028;
    --border: #29433a;
    --border-soft: rgba(151, 181, 168, .16);
    --text: #f3f7f5;
    --muted: #98aaa2;
    --faint: #667a71;
    --accent: #d8b969;
    --accent-soft: rgba(216, 185, 105, .12);
    --success: #61c992;
    --danger: #ef7c79;
    --warning: #e8b85f;
    --sidebar-width: 264px;
    --shadow: 0 18px 50px rgba(0, 0, 0, .18);
}

/* Language is presentation over the same canonical record.  RTL is applied
   intentionally to components; identifiers, email, URLs and codes retain LTR. */
html[dir="rtl"] .application { direction: rtl; }
html[dir="rtl"] .sidebar { border-right: 0; border-left: 1px solid var(--line); }
html[dir="rtl"] .navigation a,
html[dir="rtl"] .page-header,
html[dir="rtl"] .section-heading,
html[dir="rtl"] .list-row { text-align: right; }
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="url"],
html[dir="rtl"] code,
html[dir="rtl"] .reference-id { direction: ltr; text-align: left; unicode-bidi: isolate; }
html[lang="ti"] body { font-family: "Noto Sans Ethiopic", "Abyssinica SIL", var(--font-sans); }
html[lang="zh-hans"] body { font-family: "Noto Sans CJK SC", "PingFang SC", var(--font-sans); }
.activation-facts { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); margin: 1rem 0; }
.activation-facts div { border: 1px solid var(--line); border-radius: 12px; padding: .9rem; }
.activation-facts dt, .activation-facts strong { color: var(--muted); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.activation-facts dd { margin: .35rem 0 0; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { max-width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body {
    max-width: 100%; overflow-x: hidden;
    min-height: 100vh;
    background:
        radial-gradient(circle at 82% -10%, rgba(56, 112, 88, .13), transparent 31rem),
        var(--background);
    color: var(--text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.application { min-height: 100vh; }
.sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 30;
    display: flex; flex-direction: column;
    width: var(--sidebar-width); padding: 22px 16px 18px;
    background: rgba(9, 20, 17, .97); border-right: 1px solid var(--border-soft);
    overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 9px 24px; }
.brand-mark {
    display: grid; place-items: center; width: 38px; height: 38px;
    border: 1px solid rgba(216,185,105,.5); border-radius: 11px;
    background: linear-gradient(145deg, rgba(216,185,105,.2), rgba(216,185,105,.03));
    color: var(--accent); font-family: Georgia, serif; font-size: 20px;
}
.brand-name { display: block; color: var(--accent); font-size: 18px; font-weight: 800; letter-spacing: 3px; }
.brand-description { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; letter-spacing: .35px; text-transform: uppercase; }
.navigation { display: grid; gap: 3px; }
.nav-more { margin-top: 7px; }
.nav-more summary { cursor: pointer; color: var(--muted); padding: 10px 12px; font-size: 12px; font-weight: 700; }
.nav-more[open] summary { color: var(--text); }
.nav-more a { margin-top: 3px; }
.nav-cluster { border-top: 1px solid rgba(151,181,168,.08); padding-top: 4px; }
.nav-cluster summary { display:flex; align-items:center; justify-content:space-between; list-style:none; border-radius:10px; }
.nav-cluster summary::-webkit-details-marker { display:none; }
.nav-cluster summary::after { content:"+"; color:var(--faint); font-size:14px; font-weight:500; }
.nav-cluster[open] summary::after { content:"−"; color:var(--accent); }
.nav-cluster a { margin-left:8px; min-height:36px; padding-block:7px; font-size:11px; }
.nav-label { margin: 17px 12px 7px; color: var(--faint); font-size: 9px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.navigation a {
    display: flex; align-items: center; gap: 11px; min-height: 38px; padding: 9px 11px;
    border: 1px solid transparent; border-radius: 9px; color: var(--muted);
    font-size: 13px; font-weight: 530; transition: 160ms ease;
}
.navigation a > span { width: 19px; color: #80958c; text-align: center; }
.navigation a kbd { margin-left: auto; padding: 2px 5px; border: 1px solid var(--border); border-radius: 4px; color: var(--faint); font-size: 9px; }
.navigation a:hover, .navigation a.active {
    background: linear-gradient(90deg, rgba(216,185,105,.13), rgba(216,185,105,.04));
    border-color: rgba(216,185,105,.15); color: var(--text);
}
.navigation a.active > span { color: var(--accent); }
.sidebar-footer { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 18px 10px 2px; border-top: 1px solid var(--border-soft); }
.sidebar-footer strong, .sidebar-footer small { display: block; }
.sidebar-footer strong { font-size: 11px; }.sidebar-footer small { margin-top: 3px; color: var(--faint); font-size: 10px; }
.status-dot, .health-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(97,201,146,.1); }
.main { min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar {
    position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 22px;
    height: 70px; padding: 0 30px; background: rgba(7,16,14,.88);
    border-bottom: 1px solid var(--border-soft); backdrop-filter: blur(16px);
}
.command-search {
    display: flex; align-items: center; gap: 10px; width: min(620px, 60vw); padding: 10px 13px;
    background: rgba(20,39,32,.68); border: 1px solid var(--border); border-radius: 10px; color: var(--muted);
}
.command-search:focus-within { border-color: rgba(216,185,105,.55); box-shadow: 0 0 0 3px rgba(216,185,105,.08); }
.command-search input { flex: 1; min-width: 60px; background: transparent; border: 0; outline: 0; color: var(--text); }
.command-search input::placeholder { color: #71847c; }
.command-search kbd { padding: 3px 7px; border: 1px solid var(--border); border-radius: 5px; color: var(--faint); font-size: 10px; }
.command-submit { border: 0; border-radius: 7px; padding: 4px 9px; background: rgba(216,185,105,.14); color: var(--gold); cursor: pointer; }
.command-submit:hover, .command-submit:focus-visible { background: rgba(216,185,105,.24); outline: 1px solid rgba(216,185,105,.45); }
.topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-button { position: relative; display: grid; place-items: center; width: 38px; height: 38px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; color: var(--muted); cursor: pointer; }
.notification-dot { position: absolute; top: 8px; right: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.profile-menu { display: flex; align-items: center; gap: 9px; padding-left: 5px; }
.avatar { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; background: var(--accent-soft); border: 1px solid rgba(216,185,105,.35); color: var(--accent); font-weight: 800; }
.profile-copy strong, .profile-copy small { display: block; }.profile-copy strong { font-size: 12px; }.profile-copy small { margin-top: 2px; color: var(--faint); font-size: 10px; }
.breadcrumb { display: flex; gap: 8px; padding: 16px 34px 0; color: var(--faint); font-size: 11px; }
.breadcrumb a { color: var(--accent); }
.content { width: min(1580px, 100%); margin: 0 auto; padding: 24px 34px 70px; }
.gog-freshness-notice { position: sticky; top: 78px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 16px; padding: 10px 14px; border: 1px solid rgba(216,185,105,.35); border-radius: 12px; background: #172a23; color: var(--text); box-shadow: var(--shadow); }
.gog-freshness-notice[hidden] { display: none; }
.gog-freshness-notice button { border: 0; background: transparent; color: var(--accent); font-weight: 800; cursor: pointer; }
.gog-operating-state { display: grid; grid-template-columns: minmax(240px, 1.2fr) minmax(220px, 1fr) auto; align-items: center; gap: 16px; margin: 0 0 18px; padding: 14px 16px; border: 1px solid rgba(216,185,105,.24); border-radius: 16px; background: linear-gradient(110deg, rgba(216,185,105,.08), rgba(20,43,35,.92)); box-shadow: var(--shadow); }
.gog-operating-state > div { display: grid; gap: 3px; }
.gog-operating-state .eyebrow, .gog-operating-state__milestone span { color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.gog-operating-state strong { color: var(--text); font-size: .9rem; }
.gog-operating-state small { color: var(--muted); line-height: 1.4; }
.gog-operating-state > a { color: var(--accent); font-size: .82rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.gog-operating-state > p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .72rem; }
@media (max-width: 960px) { .gog-operating-state { grid-template-columns: 1fr; } .gog-operating-state > p { grid-column: auto; } }
.front-door-page .topbar { justify-content: flex-end; }
.front-door-page .content { width: 100%; min-height: calc(100vh - 70px); padding: 0; }
.amlak-front-door {
    display: flex; flex-direction: column; justify-content: center;
    width: min(880px, calc(100% - 48px)); height: calc(100vh - 70px); min-height: 560px;
    margin: 0 auto; padding: 24px 0 20px; overflow: hidden;
}
.amlak-welcome { margin: auto auto 32px; text-align: center; }
.amlak-welcome.compact { flex: 0 0 auto; margin: 0 auto 14px; }
.amlak-welcome.compact .amlak-orb { width: 42px; height: 42px; margin-bottom: 12px; font-size: 21px; }
.amlak-welcome.compact h1 { font-size: clamp(26px, 4vw, 38px); }
.amlak-welcome.compact p { display: none; }
.amlak-orb {
    display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 22px;
    border: 1px solid rgba(216,185,105,.48); border-radius: 18px;
    background: radial-gradient(circle at 35% 25%, rgba(216,185,105,.24), rgba(216,185,105,.04));
    color: var(--accent); box-shadow: 0 18px 55px rgba(0,0,0,.22);
    font: 28px Georgia, "Times New Roman", serif;
}
.amlak-orb img { display: block; width: 100%; height: 100%; border-radius: inherit; }
.amlak-welcome h1 { font: 500 clamp(34px, 5vw, 56px)/1.05 Georgia, "Times New Roman", serif; letter-spacing: -1px; }
.amlak-welcome p { max-width: 620px; margin: 15px auto 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.amlak-conversation-composer {
    flex: 0 0 auto; width: 100%; padding: 18px 18px 13px; border: 1px solid rgba(151,181,168,.28);
    border-radius: 22px; background: rgba(20,39,32,.78); box-shadow: 0 24px 70px rgba(0,0,0,.24);
}
.amlak-conversation { display: flex; flex: 1 1 auto; min-height: 0; flex-direction: column; gap: 14px; width: 100%; margin: 0 0 12px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.amlak-conversation-controls { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 9px; border: 1px solid var(--border-soft); border-radius: 10px; background: rgba(8,25,19,.94); color: var(--faint); font-size: 11px; }
.amlak-conversation-controls button { margin-left: 8px; border: 0; background: transparent; color: var(--accent); font-size: 11px; font-weight: 800; cursor: pointer; }
.amlak-earlier-action { display: block; margin-top: 10px; color: var(--faint); }
.amlak-message { max-width: min(78%, 680px); padding: 13px 16px; border-radius: 18px; line-height: 1.55; }
.amlak-message p { margin: 0; white-space: pre-wrap; }
.amlak-message-label { margin-bottom: 5px; color: var(--faint); font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.user-message { align-self: flex-end; border-bottom-right-radius: 5px; background: rgba(216,185,105,.16); }
.assistant-message { align-self: flex-start; border: 1px solid var(--border-soft); border-bottom-left-radius: 5px; background: rgba(20,39,32,.7); }
.amlak-inline-action, .amlak-inline-review { display: inline-flex; margin: 12px 8px 0 0; }
.amlak-inline-review { vertical-align: top; }
.amlak-intelligence-explanation { margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--border-soft); color: var(--muted); font-size: 12px; }
.amlak-intelligence-explanation summary { color: var(--accent); cursor: pointer; font-weight: 800; }
.amlak-intelligence-explanation div { margin-top: 10px; }
.amlak-intelligence-explanation ul { margin: 5px 0 0 18px; padding: 0; }
.amlak-intelligence-explanation p { margin-top: 9px; }
.amlak-conversation-composer:focus-within { border-color: rgba(216,185,105,.55); box-shadow: 0 24px 70px rgba(0,0,0,.24), 0 0 0 3px rgba(216,185,105,.08); }
.amlak-conversation-composer textarea {
    width: 100%; min-height: 70px; resize: vertical; border: 0; outline: 0;
    background: transparent; color: var(--text); font-size: 17px; line-height: 1.55;
}
.amlak-conversation-composer textarea::placeholder { color: #72867d; }
.amlak-composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--faint); font-size: 11px; }
.amlak-composer-tools { display: flex; min-width: 0; align-items: center; gap: 10px; }
.amlak-attachment-control { flex: 0 0 auto; padding: 7px 10px; border: 1px solid var(--border-soft); border-radius: 999px; color: var(--muted); cursor: pointer; }
.amlak-attachment-control:hover, .amlak-attachment-control:focus-within { border-color: rgba(216,185,105,.45); color: var(--text); }
#amlak-attachment { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.amlak-working-exports { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 4px 0; color: var(--faint); font-size: 12px; }
.amlak-working-exports a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.amlak-composer-footer button {
    display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 12px;
    background: var(--accent); color: #172019; font-size: 20px; font-weight: 800; cursor: pointer;
}
.amlak-starters { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 18px; }
.amlak-starters button {
    padding: 9px 13px; border: 1px solid var(--border-soft); border-radius: 999px;
    background: transparent; color: var(--muted); cursor: pointer;
}
.amlak-starters button:hover, .amlak-starters button:focus-visible { border-color: rgba(216,185,105,.38); color: var(--text); outline: none; }
.amlak-starters.compact { margin-top: 10px; }
.conversation-nav-item { min-width: 0; }
.conversation-nav-item span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-header { margin-bottom: 25px; }
.hero-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.eyebrow { margin-bottom: 8px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; }
.page-header h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 4vw, 46px); font-weight: 500; letter-spacing: -.7px; line-height: 1.08; }
.page-header p { max-width: 720px; margin-top: 11px; color: var(--muted); line-height: 1.65; }
.header-actions { display: flex; gap: 10px; }
.mobile-menu { display: none; }
.ai-fab {
    position: fixed; right: 24px; bottom: 22px; z-index: 25; display: flex; align-items: center; gap: 9px;
    padding: 12px 16px; border: 1px solid rgba(216,185,105,.35); border-radius: 999px;
    background: linear-gradient(135deg, #d8b969, #b89342); color: #172019;
    box-shadow: 0 14px 35px rgba(0,0,0,.3); font-weight: 800;
}
@media (max-width: 980px) {
    .sidebar { transform: translateX(-100%); transition: transform 180ms ease; }
    .nav-open .sidebar { transform: translateX(0); box-shadow: var(--shadow); }
    .main { margin-left: 0; }.mobile-menu { display: grid; }
    .profile-copy { display: none; }.content { padding-inline: 20px; }.breadcrumb { padding-inline: 20px; }
}
@media (max-width: 640px) {
    .topbar { padding-inline: 14px; gap: 10px; }.command-search { width: auto; flex: 1; }.command-search kbd { display: none; }
    .content { padding: 20px 14px 70px; }.breadcrumb { padding-inline: 14px; }
    .hero-header { align-items: flex-start; flex-direction: column; }.header-actions { width: 100%; flex-wrap: wrap; }
    .ai-fab span:last-child { display: none; }.ai-fab { padding: 13px; }
    .amlak-front-door { width: calc(100% - 28px); height: calc(100vh - 70px); min-height: 520px; padding: 18px 0 14px; }
    .amlak-welcome { margin-bottom: 24px; }.amlak-welcome p { font-size: 14px; }
    .amlak-composer-footer span { max-width: 230px; }
    .amlak-message { max-width: 90%; }
}
@media (max-width: 480px) {
    .profile-menu { display: none; }
    .topbar, .main, .content { max-width: 100vw; }
}

/* Guardian Experience V3 --------------------------------------------------
   One calm shell, one contextual AMLAK surface, and progressive disclosure.
   Institutional behavior remains owned by the existing services. */
:root {
    --gold: #d8b969;
    --sidebar-width: 282px;
    --sidebar-compact-width: 82px;
    --surface-glass: rgba(12, 29, 23, .78);
    --surface-deep: #071712;
    --line-bright: rgba(216, 185, 105, .28);
    --ease-out: cubic-bezier(.2, .8, .2, 1);
    --shadow-raised: 0 28px 80px rgba(0, 0, 0, .32);
}
body {
    background:
        radial-gradient(circle at 86% -12%, rgba(72, 141, 103, .15), transparent 34rem),
        radial-gradient(circle at 8% 104%, rgba(216, 185, 105, .065), transparent 30rem),
        #050d0b;
}
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
    outline: 2px solid rgba(216, 185, 105, .75); outline-offset: 3px;
}
.application { position: relative; isolation: isolate; }
.sidebar {
    width: var(--sidebar-width); padding: 18px 14px;
    background: linear-gradient(180deg, rgba(6, 19, 15, .985), rgba(5, 15, 12, .97));
    box-shadow: 18px 0 55px rgba(0, 0, 0, .12);
    transition: width 260ms var(--ease-out), transform 220ms var(--ease-out);
}
.sidebar-head { display: flex; align-items: center; gap: 6px; min-height: 54px; }
.brand { flex: 1; min-width: 0; padding: 0 8px 16px; }
.brand-mark { width: 42px; height: 42px; flex: 0 0 auto; border: 0; border-radius: 13px; box-shadow: 0 10px 30px rgba(0,0,0,.24); }
.brand-name { font-size: 17px; letter-spacing: 3.8px; }
.brand-description { font-size: 8px; letter-spacing: 1.05px; }
.sidebar-collapse {
    display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px;
    border: 1px solid var(--border-soft); border-radius: 9px; background: rgba(255,255,255,.025);
    color: var(--muted); cursor: pointer; transition: 160ms ease;
}
.sidebar-collapse:hover { border-color: var(--line-bright); color: var(--accent); }
.navigation { gap: 2px; }
.navigation a { min-height: 42px; padding: 10px 12px; border-radius: 12px; font-size: 12px; }
.navigation a > span { font-size: 14px; }
.navigation a:hover, .navigation a.active {
    transform: translateX(2px); background: linear-gradient(100deg, rgba(216,185,105,.14), rgba(216,185,105,.025));
}
.sidebar-footer { margin-top: 22px; border-top-color: rgba(151,181,168,.1); }
.main { margin-left: var(--sidebar-width); transition: margin-left 260ms var(--ease-out); }
.nav-compact .sidebar { width: var(--sidebar-compact-width); }
.nav-compact .main { margin-left: var(--sidebar-compact-width); }
.nav-compact .brand { justify-content: center; padding-inline: 0; }
.nav-compact .brand > span:last-child, .nav-compact .nav-label, .nav-compact .sidebar-footer span:last-child { display: none; }
.nav-compact .sidebar-head { flex-direction: column; }
.nav-compact .sidebar-collapse { margin: 0 auto 9px; }
.nav-compact .navigation a { justify-content: center; gap: 0; padding-inline: 8px; font-size: 0; }
.nav-compact .navigation a > span { width: auto; font-size: 16px; }
.nav-compact .navigation a > span:last-child:not(:first-child) { display: none; }
.nav-compact .navigation a:hover, .nav-compact .navigation a.active { transform: none; }
.nav-compact .nav-more summary { overflow: hidden; padding-inline: 5px; font-size: 0; text-align: center; }
.nav-compact .nav-more summary::after { content: "•••"; font-size: 11px; }
.nav-compact .sidebar-footer { justify-content: center; }
.topbar {
    height: 76px; padding: 0 clamp(18px, 3vw, 38px); gap: 16px;
    background: rgba(5, 14, 11, .72); border-bottom-color: rgba(151,181,168,.12);
    backdrop-filter: blur(24px) saturate(130%);
}
.command-search {
    width: min(760px, 58vw); min-height: 48px; padding: 8px 10px 8px 14px;
    border-color: rgba(151,181,168,.2); border-radius: 999px;
    background: rgba(19, 43, 34, .62); box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
    transition: width 220ms var(--ease-out), border-color 160ms ease, box-shadow 160ms ease;
}
.command-search:focus-within { width: min(820px, 63vw); box-shadow: 0 0 0 4px rgba(216,185,105,.07), 0 16px 45px rgba(0,0,0,.16); }
.command-orb { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(216,185,105,.1); color: var(--accent); }
.command-search input { font-size: 14px; }
.command-submit { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 50%; background: var(--accent); color: #102018; font-weight: 900; }
.topbar-actions { gap: 8px; }
.icon-button { border-radius: 12px; background: rgba(16,39,30,.65); }
.profile-menu { padding: 4px 8px 4px 4px; border-radius: 14px; transition: background 160ms ease; }
.profile-menu:hover { background: rgba(255,255,255,.035); }
.avatar { border-radius: 12px; }
.content { padding-top: clamp(22px, 3vw, 40px); }
.breadcrumb { padding-top: 18px; }

/* Cinematic AMLAK conversation */
.front-door-page .main { position: relative; overflow: hidden; }
.front-door-page .main::before {
    content: ""; position: absolute; inset: 0; z-index: -2;
    background: linear-gradient(180deg, rgba(4,13,10,.18), rgba(4,13,10,.92) 86%), url("../brand/guardian-experience-hero-v3.ccd726c63836.jpg") center top / cover no-repeat;
    opacity: .78; filter: saturate(.88);
}
.front-door-page .main::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(circle at 50% 35%, transparent 0, rgba(4,13,10,.22) 54%, rgba(4,13,10,.72) 100%);
}
.front-door-page .topbar { background: linear-gradient(180deg, rgba(4,13,10,.76), rgba(4,13,10,.38)); border-bottom-color: rgba(216,185,105,.1); }
.amlak-front-door { width: min(1080px, calc(100% - 64px)); padding: 28px 0 22px; }
.amlak-welcome { position: relative; margin-bottom: 38px; }
.amlak-welcome::before { content: ""; position: absolute; inset: -80px -120px; z-index: -1; background: radial-gradient(circle, rgba(6,17,13,.86), transparent 69%); }
.amlak-welcome.compact { margin-bottom: 18px; }
.amlak-welcome.compact::before { opacity: .5; }
.amlak-orb { width: 66px; height: 66px; margin-bottom: 24px; border: 0; border-radius: 21px; box-shadow: 0 18px 70px rgba(0,0,0,.35), 0 0 0 1px rgba(216,185,105,.28); }
.amlak-welcome.compact .amlak-orb { width: 44px; height: 44px; }
.amlak-welcome h1 { font-size: clamp(48px, 6.6vw, 76px); font-weight: 400; letter-spacing: -2.4px; text-wrap: balance; }
.amlak-welcome.compact h1 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -1px; }
.amlak-welcome p { max-width: 700px; font-size: 17px; }
.amlak-welcome-signals { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.amlak-welcome-signals span { padding: 7px 11px; border: 1px solid rgba(151,181,168,.18); border-radius: 999px; background: rgba(5,19,14,.44); color: var(--muted); font-size: 10px; backdrop-filter: blur(12px); }
.amlak-welcome-signals i, .amlak-conversation-controls i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(97,201,146,.1); }
.amlak-welcome.compact .amlak-welcome-signals { display: none; }
.amlak-conversation { gap: 18px; padding: 8px 8px 8px 0; }
.amlak-conversation-controls { padding: 10px 13px; border-radius: 999px; background: rgba(5,19,14,.7); backdrop-filter: blur(18px); }
.amlak-message { max-width: min(76%, 740px); padding: 17px 20px; border-radius: 22px; box-shadow: 0 14px 40px rgba(0,0,0,.12); animation: guardian-message-in 280ms var(--ease-out) both; }
.user-message { border: 1px solid rgba(216,185,105,.2); border-bottom-right-radius: 7px; background: linear-gradient(145deg, rgba(99,83,39,.46), rgba(64,55,27,.5)); }
.assistant-message { border-color: rgba(151,181,168,.18); border-bottom-left-radius: 7px; background: linear-gradient(145deg, rgba(17,45,34,.9), rgba(7,25,18,.84)); backdrop-filter: blur(16px); }
.amlak-message p { font-size: 14px; line-height: 1.7; }
.amlak-conversation-composer { padding: 18px 18px 13px; border-color: rgba(216,185,105,.27); border-radius: 25px; background: rgba(8,28,20,.88); backdrop-filter: blur(22px); box-shadow: 0 24px 90px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.03); }
.amlak-conversation-composer textarea { min-height: 62px; max-height: 190px; resize: vertical; font-size: 16px; }
.amlak-composer-footer button { width: 42px; height: 42px; border-radius: 50%; transition: transform 160ms ease, filter 160ms ease; }
.amlak-composer-footer button:hover { transform: translateY(-2px); filter: brightness(1.08); }
.amlak-starters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 10px; margin-top: 18px; }
.amlak-starters button { display: grid; grid-template-columns: 31px 1fr; gap: 2px 10px; min-height: 86px; padding: 14px; border-radius: 17px; background: rgba(7,25,18,.5); text-align: left; backdrop-filter: blur(12px); transition: transform 180ms var(--ease-out), border-color 180ms ease, background 180ms ease; }
.amlak-starters button:hover { transform: translateY(-3px); background: rgba(19,50,36,.72); }
.amlak-starters button > span { grid-row: 1 / 3; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 15px; }
.amlak-starters button strong { align-self: end; color: var(--text); font-size: 12px; }
.amlak-starters button small { align-self: start; color: var(--faint); font-size: 9px; line-height: 1.35; }

/* Contextual AMLAK: same governed conversation service, available everywhere. */
.front-door-page .global-assistant { display: none; }
.ai-fab { padding: 8px 13px 8px 8px; border: 1px solid rgba(216,185,105,.26); background: rgba(10,32,23,.94); color: var(--text); box-shadow: 0 18px 55px rgba(0,0,0,.34); cursor: pointer; backdrop-filter: blur(18px); transition: transform 180ms var(--ease-out), border-color 180ms ease; }
.ai-fab:hover { transform: translateY(-3px); border-color: rgba(216,185,105,.55); }
.ai-fab img { width: 31px; height: 31px; border-radius: 10px; }
.ai-fab > span { display: grid; gap: 1px; text-align: left; }
.ai-fab strong { font-size: 11px; }
.ai-fab small { color: var(--muted); font-size: 8px; font-weight: 500; }
.global-amlak-backdrop { position: fixed; inset: 0; z-index: 69; border: 0; background: rgba(1,8,5,.52); backdrop-filter: blur(4px); }
.global-amlak-drawer { position: fixed; inset: 12px 12px 12px auto; z-index: 70; display: grid; grid-template-rows: auto 1fr auto; width: min(460px, calc(100vw - 24px)); overflow: hidden; border: 1px solid rgba(216,185,105,.28); border-radius: 26px; background: linear-gradient(180deg, rgba(10,32,23,.98), rgba(4,17,12,.985)); box-shadow: -30px 0 100px rgba(0,0,0,.45); transform: translateX(calc(100% + 30px)); opacity: 0; pointer-events: none; transition: transform 260ms var(--ease-out), opacity 180ms ease; }
.amlak-drawer-open .global-amlak-drawer { transform: translateX(0); opacity: 1; pointer-events: auto; }
.global-amlak-drawer > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 18px; border-bottom: 1px solid var(--border-soft); }
.global-amlak-identity { display: flex; align-items: center; gap: 10px; }
.global-amlak-identity img { border-radius: 11px; }
.global-amlak-identity strong, .global-amlak-identity small { display: block; }
.global-amlak-identity strong { color: var(--accent); letter-spacing: 2px; }
.global-amlak-identity small { max-width: 300px; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.global-amlak-stream { display: flex; min-height: 0; flex-direction: column; gap: 13px; overflow-y: auto; padding: 22px 18px; }
.global-amlak-message { max-width: 88%; padding: 13px 15px; border-radius: 18px; animation: guardian-message-in 240ms var(--ease-out) both; }
.global-amlak-message.assistant { align-self: flex-start; border: 1px solid var(--border-soft); border-bottom-left-radius: 5px; background: rgba(32,64,49,.46); }
.global-amlak-message.user { align-self: flex-end; border-bottom-right-radius: 5px; background: rgba(216,185,105,.17); }
.global-amlak-message > span { display: block; margin-bottom: 6px; color: var(--accent); font-size: 8px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.global-amlak-message p { white-space: pre-wrap; font-size: 12px; line-height: 1.65; }
.global-amlak-action { display: inline-flex; margin: 11px 7px 0 0; padding: 8px 11px; border: 1px solid rgba(216,185,105,.3); border-radius: 999px; background: transparent; color: var(--accent); font-size: 9px; font-weight: 800; cursor: pointer; }
.global-amlak-review { display: inline; }
.global-amlak-drawer > footer { padding: 12px; border-top: 1px solid var(--border-soft); background: rgba(2,13,9,.72); }
#global-amlak-form { padding: 12px; border: 1px solid rgba(216,185,105,.25); border-radius: 18px; background: rgba(18,43,32,.7); }
#global-amlak-form textarea { width: 100%; min-height: 62px; max-height: 150px; resize: vertical; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 13px; line-height: 1.55; }
#global-amlak-form > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#global-amlak-status { color: var(--faint); font-size: 8px; }
#global-amlak-form button[type="submit"] { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--accent); color: #102018; font-size: 18px; font-weight: 900; cursor: pointer; }
.global-amlak-full { display: block; padding: 10px 5px 2px; color: var(--muted); font-size: 9px; text-align: center; }
.gog-context-command { border: 0; background: transparent; color: var(--accent); font: inherit; font-weight: 750; cursor: pointer; }
.global-amlak-turn-context { display: block; margin-top: 8px; color: var(--muted); font-size: .74rem; line-height: 1.35; }
@keyframes guardian-message-in { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
    .command-search { width: min(600px, 52vw); }
    .command-search:focus-within { width: min(640px, 56vw); }
    .amlak-front-door { width: min(900px, calc(100% - 48px)); }
}
@media (max-width: 980px) {
    .sidebar { width: min(340px, 88vw); }
    .nav-compact .sidebar { width: min(340px, 88vw); }
    .nav-compact .main, .main { margin-left: 0; }
    .nav-compact .brand > span:last-child, .nav-compact .nav-label, .nav-compact .sidebar-footer span:last-child { display: initial; }
    .nav-compact .sidebar-head { flex-direction: row; }
    .nav-compact .navigation a { justify-content: flex-start; gap: 11px; padding-inline: 12px; font-size: 12px; }
    .nav-compact .navigation a > span { width: 19px; font-size: 14px; }
    .nav-compact .conversation-nav-item span:last-child { display: block; }
    .sidebar-collapse { display: none; }
    .nav-open::after { content: ""; position: fixed; inset: 0; z-index: 29; background: rgba(0,0,0,.42); backdrop-filter: blur(3px); }
}
@media (max-width: 760px) {
    .topbar-actions .language-picker, .topbar-actions > .icon-button { display: none; }
    .command-search { width: auto; min-height: 44px; }
    .command-search:focus-within { width: auto; }
    .amlak-front-door { width: calc(100% - 24px); }
    .amlak-welcome h1 { font-size: clamp(42px, 12vw, 58px); }
    .amlak-starters { grid-template-columns: 1fr; }
    .amlak-starters button { min-height: 70px; }
    .amlak-message { max-width: 91%; }
}
@media (max-width: 520px) {
    .front-door-page .topbar { height: 62px; }
    .front-door-page .content { min-height: calc(100vh - 62px); }
    .amlak-front-door { height: calc(100vh - 62px); }
    .amlak-welcome-signals span:last-child { display: none; }
    .amlak-conversation-composer { padding: 14px 14px 10px; border-radius: 20px; }
    .amlak-composer-tools { align-items: flex-start; flex-direction: column; gap: 6px; }
    .ai-fab { right: 14px; bottom: 14px; }
    .ai-fab > span { display: none; }
    .global-amlak-drawer { inset: 0; width: 100%; border: 0; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto!important; animation-duration: .01ms!important; animation-iteration-count: 1!important; transition-duration: .01ms!important; }
}
