﻿@import url('./tokens.css');
@import url('./components.css');
#olchangi-nav{position:fixed;inset:0 0 auto;z-index:200;height:var(--shell-h);display:flex;align-items:center;gap:8px;padding:0 24px;background:var(--surface);border-bottom:1px solid var(--line);font:500 14px var(--font-ui);color:var(--ink)}
#olchangi-nav a{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 16px;border-radius:6px;color:var(--ink-soft);text-decoration:none;white-space:nowrap;transition:background .16s,color .16s}
#olchangi-nav a:hover{background:var(--surface-subtle);color:var(--ink)}
#olchangi-nav a[aria-current=page]{background:var(--accent-soft);color:var(--brand);font-weight:700}
#olchangi-nav .suite-brand{justify-content:flex-start;width:200px;flex-shrink:0;padding-left:0;color:var(--ink);font-size:18px;font-weight:750;letter-spacing:-.6px}
.suite-brand small{font-size:11px;font-weight:500;letter-spacing:0;color:var(--ink-muted)}
#olchangi-nav .suite-settings{margin-left:auto}
.suite-mark{width:26px;height:26px;flex:none;color:var(--brand)}
.ui-icon{width:20px;height:20px;flex:none;vertical-align:middle;display:inline-block;color:currentColor}
.skip-link{position:fixed;top:8px;left:16px;z-index:11000;transform:translateY(-150%);padding:12px 18px;background:var(--ink);color:white;border-radius:6px}.skip-link:focus{transform:none}
body{padding-top:var(--shell-h)!important}html{scroll-padding-top:calc(var(--shell-h) + 24px)}
body .sidebar{top:var(--shell-h);height:calc(100dvh - var(--shell-h));min-height:0;background:var(--surface-subtle);border-right:1px solid var(--line);box-shadow:none}
body[data-agent=toochangi] #app{height:calc(100dvh - var(--shell-h));min-height:0}
body[data-agent=gachangi] #app-layout,body[data-agent=dachangi] #app,body[data-agent=dachangi] .layout{min-height:calc(100dvh - var(--shell-h))}
body[data-agent=gachangi] .topbar,body[data-agent=dachangi] .mobile-topbar{top:var(--shell-h)}
body[data-agent=dachangi] .sidebar{width:var(--sidebar-w);padding:18px 12px 12px}
body[data-agent=dachangi] .main{min-width:0;width:100%;max-width:1200px;padding:30px 36px 60px}
.sidebar-brand,.sidebar-header,.side-logo{min-height:70px;align-items:center;border-bottom:1px solid var(--line);padding:16px 20px!important;margin:0 0 12px;gap:10px}
.sidebar-brand .brand-name,.sidebar-app-name,.side-logo{font-size:17px;font-weight:700;color:var(--ink)}
.sidebar .brand-icon,.sidebar-logo{font-size:20px;color:var(--brand)}
.sidebar .nav-section{font-size:12px;letter-spacing:0;color:var(--ink-muted);padding:20px 14px 8px}
.sidebar-nav{overflow-y:auto;min-height:0;padding:0 12px;gap:4px}
.sidebar :is(.nav-item,.side-item){width:100%;min-height:44px;display:flex;align-items:center;gap:10px;padding:10px 12px;background:transparent;border:1px solid transparent;border-radius:6px;color:var(--ink-soft);font:500 14px var(--font-ui);text-align:left;box-shadow:none;transition:background .16s,color .16s}
.sidebar :is(.nav-item,.side-item):hover{background:var(--surface-hover);color:var(--ink)}
.sidebar :is(.nav-item,.side-item).active{background:var(--accent-soft);color:var(--brand);font-weight:650;border-color:transparent;box-shadow:none}
.nav-icon{display:inline-flex;align-items:center;justify-content:center;width:20px;flex:none}
.sidebar-footer,.side-foot{margin-top:auto;min-height:70px;flex-shrink:0;border-color:var(--line);padding:16px!important}
.topbar{min-height:76px;height:auto;padding:16px 32px;background:var(--surface);border-bottom:1px solid var(--line);gap:16px}
.topbar :is(.page-title,.topbar-title){font-size:22px;line-height:1.4;letter-spacing:-.6px;color:var(--ink)}
.topbar-left,.topbar-right{min-width:0;flex-wrap:wrap;gap:12px}
body[data-agent=toochangi] .tab-panel,body[data-agent=gachangi] .tab-panel{padding:28px 32px;min-width:0}
#login-screen{position:fixed;inset:var(--shell-h) 0 0;min-height:0!important;overflow-y:auto;display:flex;align-items:center;justify-content:center;padding:32px 20px;background:var(--canvas);z-index:100}
.login-bg-grid,.login-bg-orbs{display:none}
body .login-card{width:100%;max-width:460px;margin:auto;padding:40px;background:var(--surface);border:1px solid var(--line);border-radius:12px;text-align:left;box-shadow:0 8px 32px #27342c08;animation:none}
.login-card .login-logo{text-align:left;margin-bottom:20px;filter:none;animation:none;font-size:32px}
.login-card :is(.logo,.logo-icon){display:block;text-align:left;margin-bottom:20px;color:var(--brand);font-size:32px}
.login-card :is(.logo,.logo-icon) .ui-icon,.login-card>.login-logo .ui-icon{width:36px;height:36px}
.login-card :is(h1,.login-title){font:700 30px/1.4 var(--font-ui);letter-spacing:-1px;color:var(--ink);background:none;-webkit-text-fill-color:var(--ink);margin:0 0 8px}
.login-card p,.login-card .login-subtitle{font-size:14px;line-height:1.8;color:var(--ink-soft)}
.login-card .login-features{display:grid;grid-template-columns:1fr;gap:12px;margin:28px 0;padding:20px 0;border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:none;border-radius:0}
.login-card .feature-item{background:none;border:0;border-radius:0;padding:0;font-size:14px;line-height:1.6;color:var(--ink-soft)}
.login-card .login-note{font-size:12px;text-align:left;margin-top:16px}
.login-card :is(.btn-login,#login-btn){min-height:48px;width:100%;background:var(--ink);color:#fff;border:1px solid var(--ink);border-radius:6px;font:600 15px var(--font-ui);box-shadow:none;transform:none}
.login-card :is(.btn-login,#login-btn):hover{background:#37443e;border-color:#37443e}
.login-card .btn-text{display:inline-flex;align-items:center;min-height:44px;color:var(--brand)!important;font-size:13px;margin-top:8px}
.login-feedback{font-size:14px;color:var(--danger)!important;line-height:1.6;margin:16px 0 0}.login-feedback:empty{display:none}
.sidebar-backdrop{position:fixed;inset:var(--shell-h) 0 0;background:#16231d55;z-index:900;border:0}.sidebar-backdrop[hidden]{display:none}
@media(max-width:860px){
:root{--shell-h:104px}
#olchangi-nav{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:52px 52px;padding:0 16px;gap:0}
#olchangi-nav .suite-brand{grid-column:1/3;grid-row:1;width:auto;min-height:44px;font-size:17px}
#olchangi-nav .suite-settings{grid-column:3;grid-row:1;margin-left:auto;padding:0 8px;font-size:12px}
#olchangi-nav .series-link{grid-row:2;border-radius:0;height:52px;font-size:14px;border-bottom:2px solid transparent;padding:0 8px}
#olchangi-nav .series-link[aria-current=page]{border-bottom-color:var(--brand);background:none}
body .sidebar{position:fixed;left:0;bottom:0;top:var(--shell-h);width:272px!important;max-width:86vw;height:calc(100dvh - var(--shell-h));transform:translateX(-100%);z-index:1000;transition:transform .18s ease}
body .sidebar:is(.active,.open){transform:translateX(0)}
body[data-agent=toochangi] #app{display:block;--sidebar-w:224px}
body[data-agent=toochangi] .main-content{height:100%;width:100%}
body[data-agent=gachangi] .main-content{margin-left:0;width:100%;min-width:0}
body[data-agent=dachangi] .layout{display:block}
body[data-agent=dachangi] .main{padding:20px 16px 48px}
.sidebar-toggle-btn,.sidebar-close-btn{display:inline-flex!important;align-items:center;justify-content:center;min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink);font-size:20px}
.sidebar-close-btn{margin-left:auto}#sidebar-toggle.btn-sidebar-toggle{display:none}
.app.collapsed .sidebar-brand{flex-direction:row;padding:16px 20px!important}
.app.collapsed .sidebar-brand .brand-name,.app.collapsed .nav-item span:not(.nav-icon),.app.collapsed #user-name-sidebar{display:initial}
.app.collapsed .nav-item{justify-content:flex-start}.app.collapsed .sidebar-footer{flex-direction:row}
body[data-agent=dachangi] .mobile-topbar{display:flex;position:sticky;min-height:76px;padding:12px 16px;z-index:40}
body[data-agent=dachangi] .sidebar-close{display:inline-flex}
.topbar{padding:12px 16px;gap:8px;flex-wrap:wrap}.topbar :is(.page-title,.topbar-title){font-size:20px}
body[data-agent=toochangi] .tab-panel,body[data-agent=gachangi] .tab-panel{padding:20px 16px}
body .login-card{padding:28px 24px;max-width:460px}#login-screen{padding:24px 16px}
.last-updated{font-size:12px;flex-basis:100%}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Corrections from the full desktop/mobile inspection. */
body{--accent:var(--brand);--accent2:var(--brand);--accent-purple:var(--brand);--color-primary:var(--brand)}
body .metric-card:is(.accent-red,.accent-green,.accent-purple,.accent-blue,.accent-orange){border-color:var(--line);box-shadow:none}
body .brand-name{background:none;-webkit-text-fill-color:var(--ink)}
body .brand-icon{filter:none}
body :is(.btn-auto-recommend,.btn-analyze){background:var(--brand);border:1px solid var(--brand);border-radius:6px;min-height:44px;box-shadow:none;transform:none}
body .auto-rec-badge{background:var(--accent-soft);color:var(--brand)}
body[data-agent=dachangi] .side-logo{padding:12px 8px 20px!important;gap:8px;font-size:17px;white-space:nowrap}
body[data-agent=dachangi] .side-logo .badge{font-size:11px;font-weight:500}
body[data-agent=dachangi] .side-logo [data-brand-name]{flex:none}
body[data-agent=dachangi] .sidebar-close{display:none}
body[data-agent=gachangi] .main-content{min-height:calc(100dvh - var(--shell-h));overflow:visible}
body[data-agent=gachangi] .topbar{backdrop-filter:none}
body .amount-cell.inc{color:var(--success)}body .amount-cell.exp{color:var(--danger)}
body .btn-close{min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:6px;color:var(--ink-soft);background:var(--surface);font-size:22px}
body .budget-bar-item[role=button]:focus-visible{border-radius:6px}
@media(max-width:860px){
 body[data-agent=gachangi] #app-layout{overflow:visible}
 body[data-agent=dachangi] .sidebar-close{display:inline-flex}
 body[data-agent=dachangi] .sidebar{width:290px!important}
 .topbar-left{flex:1;min-width:180px}
 body[data-agent=gachangi] .topbar-title{font-size:18px}
}
