/* Cloud console refresh — presentation only; existing endpoints and page IDs remain. */
:root { --muted: #617086; --border: #e0e6ef; --accent: #3457d5; --accent-soft: #edf2ff; }
body { background: #f6f8fc; }
.app { height: 100dvh; }
.sidebar { width: 248px; flex: 0 0 248px; padding: 24px 16px 16px; background: #fafbfe; }
.sidebar .logo { color: #16315b; font-size: 17px; padding: 0 12px 18px; margin: 0; letter-spacing: .02em; }
.sidebar .nav { flex: 1; overflow: auto; min-height: 0; border-top: 0; margin: 0; padding-top: 0; }
.nav-group { padding: 22px 12px 8px; font-size: 11px; color: #73829a; }
.nav-item { min-height: 42px; margin: 3px 0; text-decoration: none; color: #4b5b73; transition: background-color 150ms ease, color 150ms ease; }
.nav-item.active { background: #eaf0ff; color: #2948b8; box-shadow: inset 3px 0 #3457d5; }
.nav-item[data-toggle]::after { margin-left: auto; transition: transform 150ms ease; }
.nav-item[data-toggle][aria-expanded="true"]::after { transform: rotate(180deg); }
.user-box { padding: 16px 12px 0; gap: 8px; color: #40516c; }
.user-box .link { align-self: flex-start; }
.main { min-width: 0; min-height: 0; background: #f6f8fc; }
.console-header { height: 72px; flex: 0 0 72px; padding: 0 32px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--border); background: #fff; }
.console-header-title { font-size: 14px; font-weight: 600; color: #263956; }
.console-header-note { margin-left: auto; font-size: 12px; color: #617086; }
.console-menu { display: none; width: 44px; height: 44px; border: 1px solid var(--border); background: #fff; border-radius: 10px; color: #2948b8; font-size: 20px; cursor: pointer; }
.console-scrim { display: none; }
.page { padding: 30px 32px; min-height: 0; }
.page h2 { font-size: 24px; letter-spacing: -.03em; color: #1d3356; margin-bottom: 10px; }
.page > p.muted { max-width: 860px; line-height: 1.8; margin-top: 0; }
.kb-head { align-items: center; gap: 16px; flex-wrap: wrap; }
.kb-head h2 { margin-bottom: 0; }
.kb-head-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.kb-drop { background: #fff; border: 1.5px dashed #b6c6e4; border-radius: 16px; padding: 44px 20px; line-height: 1.8; transition: border-color 160ms ease, background 160ms ease; }
.kb-drop:hover, .kb-drop.over { background: #f1f5ff; border-color: #3457d5; }
.kb-drop-ico { color: #3457d5; }
.cards { gap: 18px; }
.card, .library-card, .trow { background: #fff; border-color: #e0e6ef; box-shadow: 0 2px 6px #1b315505; }
.card { padding: 22px; border-radius: 14px; }
.card h3 { font-size: 16px; color: #233c64; }
.card .muted { line-height: 1.7; }
.trow { padding: 16px; border-radius: 12px; }
.form-grid { background: #fff; padding: 20px; border: 1px solid var(--border); border-radius: 14px; }
input:not([type="checkbox"]):not([type="range"]):not([type="file"]), select, textarea { min-height: 42px; border-color: #cbd5e4; }
.lp-brand { background: radial-gradient(ellipse at 80% 15%, #edf4ff, transparent 65%), linear-gradient(145deg, #e4edff, #eef6fb); }
.lp-title { letter-spacing: -.02em; }
.lp-tags .lp-ico { color: #3457d5; font-size: 15px; }
.lp-panel { min-width: 0; }
.login-card { width: 100%; max-width: 400px; }
.field-label { display: block; margin: 14px 0 7px; color: #40516c; font-size: 13px; font-weight: 600; }
.login-card input { min-height: 46px; margin-bottom: 0; }
.login-card .sms-row { margin-top: 12px; gap: 10px; }
.login-card .sms-row input { min-width: 0; flex: 1; }
.login-card .sms-row .ghost { height: 46px; margin: 0; }
.login-card .lp-submit { min-height: 46px; margin-top: 22px; }
.login-card .msg { line-height: 1.6; }
.password-field { position: relative; }
.password-field input { padding-right: 65px; }
.password-field button { position: absolute; right: 7px; top: 5px; height: 36px; min-height: 36px; background: transparent; border: none; color: #2948b8; border-radius: 6px; cursor: pointer; }
.tab-sub { gap: 8px; padding: 4px; background: #f0f3f8; border-radius: 11px; }
.tab-sub .tab-item, .tab-sub .tab-item.active { flex: 1; text-align: center; border: 0; border-radius: 8px; padding: 9px; font-size: 13px; }
.tab-sub .tab-item.active { background: #fff; color: #2948b8; box-shadow: 0 1px 4px #142a5014; }
.ag-composer { border-color: #cbd5e4; box-shadow: 0 6px 24px #1832640a; }
.ag-chat-inner, .ag-welcome { line-height: 1.7; }
.ag-tools .switch { color: #44516a; }
@media(max-width: 900px) {
 .lp-panel { padding: 32px 24px; }
 .console-refresh .sidebar { position: fixed; z-index: 50; top: 0; bottom: 0; left: 0; transform: translateX(-100%); visibility: hidden; transition: transform 180ms ease, visibility 180ms ease; }
 .console-refresh .app.ui-nav-open .sidebar { transform: translateX(0); visibility: visible; }
 .app.ui-nav-open .console-scrim { display: block; position: fixed; z-index: 49; inset: 0; border: 0; border-radius: 0; background: #12213c66; width: 100%; height: 100%; }
 .console-menu { display: inline-block; }
 .console-header { height: 64px; flex-basis: 64px; padding: 0 16px; }
 .console-header-note { display: none; }
 .page { padding: 24px 18px; }
 .page h2 { font-size: 22px; }
 .cards { grid-template-columns: minmax(0,1fr); }
 .form-grid { grid-template-columns: minmax(0,1fr); padding: 16px; }
 .row input { min-width: 0; width: 100%; flex-basis: 100%; }
 .kb-head-right { width: 100%; justify-content: space-between; }
 .kb-drop { padding: 32px 16px; }
 .trow > div { min-width: 0; overflow-wrap: anywhere; }
 .ag-composer-wrap { min-width: 0; }
 .ag-tools { gap: 8px; }
 .ag-top-right { flex-wrap: wrap; }
}
@media(prefers-reduced-motion:reduce) { .sidebar, .nav-item, .nav-item::after, .kb-drop { transition: none; } }
