@charset "UTF-8";

:root {
  color-scheme: dark;
  --bg: var(--ycc-color-obsidian);
  --sidebar: var(--ycc-color-charcoal);
  --surface: var(--ycc-color-surface);
  --surface-2: var(--ycc-color-surface-raised);
  --surface-3: #1c1c19;
  --surface-4: var(--ycc-color-surface-elevated);
  --line: var(--ycc-color-border);
  --line-soft: #22221e;
  --text: var(--ycc-color-ivory);
  --text-2: var(--ycc-color-ivory-soft);
  --muted: var(--ycc-color-muted);
  --muted-2: var(--ycc-color-muted-soft);
  --gold: var(--ycc-color-champagne);
  --gold-light: var(--ycc-color-champagne-bright);
  --gold-soft: var(--ycc-color-champagne-wash);
  --green: var(--ycc-color-positive);
  --red: var(--ycc-color-negative);
  --plum: var(--ycc-color-review);
  --radius: var(--ycc-radius-lg);
  --radius-sm: 11px;
  --sidebar-width: 258px;
  --shadow: var(--ycc-shadow-float);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--text); background: var(--bg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; font-weight: 400; letter-spacing: -.01em; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid rgba(225, 208, 161, .78); outline-offset: 2px; }
::selection { color: #13120e; background: var(--gold-light); }
.icon { display: inline-block; flex: 0 0 auto; vertical-align: middle; }
[hidden] { display: none !important; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; display: flex; width: var(--sidebar-width); flex-direction: column; padding: 25px 14px 14px; border-right: 1px solid #20201c; background: var(--sidebar); }
.brand-lockup { display: flex; align-items: center; gap: 11px; padding: 0 10px 22px; }
.brand-symbol { position: relative; display: grid; width: 35px; height: 35px; place-items: center; overflow: hidden; border: 1px solid rgba(210, 190, 133, .54); border-radius: 11px; background: linear-gradient(145deg, #26241d, #12120f 78%); color: var(--gold-light); font: 600 18px/1 Georgia, serif; box-shadow: inset 0 0 12px rgba(201, 178, 118, .09); }
.brand-symbol::before { position: absolute; inset: 4px; border: 1px solid rgba(210, 190, 133, .15); border-radius: 8px; content: ""; }
.brand-symbol span { transform: translateY(-.5px); }
.brand-symbol i { position: absolute; right: 7px; bottom: 7px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 7px var(--gold); }
.brand-wordmark { display: flex; flex-direction: column; gap: 4px; }
.brand-wordmark strong { color: #f5f1e6; font-size: 12px; font-weight: 700; letter-spacing: .18em; }
.brand-wordmark span { color: #77766c; font-size: 8px; font-weight: 650; letter-spacing: .24em; }
.workspace-switcher { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 9px; border: 1px solid #282823; border-radius: 12px; background: linear-gradient(120deg, #181815, #121210); text-align: left; cursor: pointer; transition: border .2s ease, background .2s ease; }
.workspace-switcher:hover { border-color: #494438; background: #1a1915; }
.workspace-avatar { display: grid; width: 29px; height: 29px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(201, 178, 118, .25); border-radius: 9px; background: #27251e; color: var(--gold-light); font: 600 15px Georgia, serif; }
.workspace-name { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 4px; }
.workspace-name strong { overflow: hidden; color: #e1ded4; font-size: 11px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.workspace-name small { color: #77776f; font-size: 10px; }
.workspace-switcher > .icon { color: #77776e; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 22px 0 12px; scrollbar-width: thin; scrollbar-color: #2b2b25 transparent; }
.nav-section { margin-bottom: 23px; }
.nav-section-label { margin: 0 10px 8px; color: #686860; font-size: 9px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.nav-item { display: flex; width: 100%; min-height: 37px; align-items: center; gap: 11px; padding: 0 10px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #999990; text-align: left; cursor: pointer; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.nav-item .icon { color: #797a70; transition: color .18s ease; }
.nav-item .nav-label { flex: 1; font-size: 12px; font-weight: 510; }
.nav-item:hover { background: #171715; color: #e4e0d5; }
.nav-item:hover .icon { color: #b8a66f; }
.nav-item.active { border-color: rgba(201, 178, 118, .12); background: linear-gradient(90deg, rgba(201, 178, 118, .13), rgba(201, 178, 118, .045)); color: #eadcb7; }
.nav-item.active .icon { color: var(--gold-light); }
.nav-item.active::before { position: absolute; width: 2px; height: 20px; margin-left: -11px; border-radius: 0 3px 3px 0; background: var(--gold); content: ""; }
.nav-count { display: inline-grid; min-width: 19px; height: 18px; place-items: center; border: 1px solid rgba(201, 178, 118, .24); border-radius: 6px; background: rgba(201, 178, 118, .1); color: var(--gold-light); font-size: 10px; }
.sidebar-bottom { display: flex; flex-direction: column; gap: 12px; padding-top: 13px; border-top: 1px solid #24241f; }
.local-mode-card { position: relative; display: flex; align-items: center; gap: 9px; padding: 10px 9px; border: 1px solid #282720; border-radius: 11px; background: rgba(201, 178, 118, .035); }
.local-mode-icon { display: grid; width: 26px; height: 26px; flex: 0 0 auto; place-items: center; border-radius: 8px; background: rgba(201, 178, 118, .1); color: var(--gold); }
.local-mode-card > div:nth-child(2) { display: flex; flex-direction: column; gap: 3px; }
.local-mode-card strong { color: #d3ccb9; font-size: 10px; font-weight: 620; }
.local-mode-card span:not(.local-mode-dot) { color: #77766e; font-size: 9px; }
.local-mode-dot { position: absolute; top: 13px; right: 10px; width: 5px; height: 5px; border-radius: 50%; background: #9dbb89; box-shadow: 0 0 8px rgba(157, 187, 137, .3); }
.profile-card { display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px 8px; border: 0; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; }
.profile-card:hover { background: #171715; }
.profile-avatar, .topbar-avatar { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border: 1px solid #5a5140; border-radius: 50%; background: linear-gradient(140deg, #635a43, #2d2c27 72%); color: #f0e6cb; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.profile-copy { display: flex; flex: 1; flex-direction: column; gap: 3px; }
.profile-copy strong { color: #dedbd1; font-size: 11px; font-weight: 620; }
.profile-copy small { color: #77776e; font-size: 9px; }
.profile-card > .icon { color: #6b6b63; }

.main-shell { min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar { position: sticky; z-index: 20; top: 0; display: flex; height: 62px; align-items: center; justify-content: space-between; padding: 0 35px; border-bottom: 1px solid rgba(42, 42, 36, .82); background: rgba(11, 11, 10, .9); backdrop-filter: blur(18px); }
.topbar-left, .topbar-right, .breadcrumb { display: flex; align-items: center; }
.breadcrumb { gap: 10px; color: #77776e; font-size: 11px; }
.breadcrumb .icon { color: #57574f; }
.breadcrumb strong { color: #ddd9ce; font-weight: 570; }
.topbar-right { gap: 15px; }
.global-search { display: flex; width: 214px; height: 34px; align-items: center; gap: 8px; padding: 0 9px; border: 1px solid #282823; border-radius: 8px; background: #111110; color: #7e7e75; text-align: left; cursor: pointer; transition: border .2s ease; }
.global-search:hover { border-color: #4a4638; }
.global-search span { flex: 1; font-size: 10px; }
.global-search kbd { padding: 2px 4px; border: 1px solid #34342f; border-radius: 4px; color: #77776f; font: 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.topbar-divider { width: 1px; height: 22px; background: #2b2b25; }
.topbar-local { display: flex; align-items: center; gap: 6px; color: #77766c; font-size: 8px; font-weight: 720; letter-spacing: .15em; }
.topbar-local i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(201, 178, 118, .48); }
.icon-button { display: inline-grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #898980; cursor: pointer; transition: color .18s ease, border .18s ease, background .18s ease; }
.icon-button:hover { border-color: #34332c; background: #191916; color: var(--gold-light); }
.notification-button { position: relative; }
.notification-dot { position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border: 1px solid #10100f; border-radius: 50%; background: var(--gold); }
.topbar-avatar { width: 29px; height: 29px; cursor: pointer; transition: border .18s ease; }
.topbar-avatar:hover { border-color: var(--gold); }
.mobile-menu-button, .mobile-bottom-nav { display: none; }

.page-content { width: min(100%, 1500px); min-height: calc(100vh - 62px); margin: 0 auto; padding: 32px 40px 46px; animation: page-enter .32s ease both; }
@keyframes page-enter { from { opacity: .55; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.eyebrow, .section-kicker { color: #86857b; font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow-divider { width: 18px; height: 1px; background: #48463c; }
.gold-period { color: var(--gold); }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.page-heading h1, .overview-welcome h1 { margin: 10px 0 7px; color: #f0ede5; font-size: clamp(28px, 3vw, 38px); font-weight: 540; letter-spacing: -.055em; line-height: 1.1; }
.page-heading p, .overview-welcome > div:first-child > p { max-width: 650px; margin: 0; color: #96958c; font-size: 13px; line-height: 1.65; }
.page-heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.page-demo-tag { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid #373329; border-radius: 8px; background: rgba(201, 178, 118, .055); color: #c1b587; font-size: 8px; font-weight: 740; letter-spacing: .12em; white-space: nowrap; }
.page-demo-tag .icon { color: #b9a46a; }
.button { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; gap: 8px; padding: 0 13px; border: 1px solid transparent; border-radius: 9px; font-size: 11px; font-weight: 610; white-space: nowrap; cursor: pointer; transition: transform .16s ease, background .16s ease, border .16s ease, color .16s ease; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:disabled { opacity: .58; cursor: not-allowed; transform: none; }
.button-primary { border-color: #d5c18b; background: linear-gradient(135deg, #dfcd99, #c7ae70); color: #17150f; box-shadow: 0 5px 18px rgba(181, 155, 88, .1); }
.button-primary:hover { border-color: #e7d7ae; background: linear-gradient(135deg, #e9d8a7, #d3bc82); }
.button-secondary { border-color: #33332d; background: #171715; color: #d2d0c6; }
.button-secondary:hover { border-color: #514b3b; background: #1d1c18; color: #eadbb4; }
.button-danger { border-color: #654138; background: #432a25; color: #f0c4b5; }
.button-danger:hover { border-color: #925c4e; background: #55352e; }
.button-small { min-height: 30px; gap: 6px; padding: 0 10px; border-radius: 8px; font-size: 10px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; padding: 3px 0; border: 0; background: transparent; color: #c5b47e; font-size: 10px; font-weight: 590; cursor: pointer; transition: color .18s ease; white-space: nowrap; }
.text-link:hover { color: #eddaa5; }
.quiet-action { display: inline-flex; align-items: center; gap: 5px; padding: 5px 0; border: 0; background: transparent; color: #a59a76; font-size: 10px; cursor: pointer; }
.quiet-action:hover { color: var(--gold-light); }
.badge { display: inline-flex; min-height: 21px; align-items: center; gap: 5px; padding: 0 7px; border: 1px solid transparent; border-radius: 6px; font-size: 9px; font-weight: 610; white-space: nowrap; }
.badge-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .8; }
.tone-green { border-color: rgba(133, 167, 126, .2); background: rgba(133, 167, 126, .1); color: #b8d2ae; }
.tone-gold { border-color: rgba(201, 178, 118, .22); background: rgba(201, 178, 118, .1); color: #ddc98d; }
.tone-red { border-color: rgba(196, 126, 105, .2); background: rgba(196, 126, 105, .1); color: #d6a392; }
.tone-plum { border-color: rgba(168, 139, 172, .21); background: rgba(168, 139, 172, .09); color: #c1a8c3; }
.tone-neutral { border-color: #363630; background: #20201d; color: #aaa99f; }
.model-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px 4px 4px; border: 1px solid #37362e; border-radius: 7px; background: #1a1a17; color: #b9b5a6; font-size: 9px; font-weight: 580; white-space: nowrap; }
.model-mark { display: inline-grid; width: 17px; height: 17px; place-items: center; border-radius: 5px; font-size: 9px; font-weight: 750; }
.model-gpt .model-mark, .avatar-gpt { background: rgba(140, 169, 131, .15); color: #b3d2a7; }
.model-claude .model-mark, .avatar-claude { background: rgba(200, 164, 122, .15); color: #e1bd90; }
.demo-suffix { margin-left: 2px; color: #77766e; font-size: 7px; font-weight: 750; letter-spacing: .08em; }
.progress-wrap { display: flex; align-items: center; gap: 8px; }
.progress-track { position: relative; height: 4px; flex: 1; overflow: hidden; border-radius: 10px; background: #292923; }
.progress-track > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #9e8a55, #dbc98c); transition: width .4s ease; }
.progress-label { color: #b5aa81; font-size: 10px; font-weight: 600; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(24, 24, 21, .95), rgba(18, 18, 16, .98)); box-shadow: 0 8px 24px rgba(0, 0, 0, .08); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.panel-heading h2 { margin: 6px 0 5px; color: #e8e5dc; font-size: 17px; font-weight: 590; letter-spacing: -.035em; }
.panel-heading p { margin: 0; color: #818179; font-size: 10px; line-height: 1.55; }
.heading-icon { margin-top: 4px; color: #988659; }
.panel-caption { color: #77776d; font-size: 9px; }
.footer-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 22px auto 0; color: #686960; font-size: 9px; text-align: center; }
.footer-note .icon { color: #85764e; }

/* Overview */
.overview-welcome { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 23px; }
.overview-welcome h1 { margin-top: 11px; font-size: clamp(30px, 3.35vw, 43px); }
.overview-welcome > div:first-child > p { font-size: 12px; }
.welcome-actions { display: flex; align-items: center; gap: 9px; padding-bottom: 3px; }
.command-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(390px, .9fr); min-height: 225px; overflow: hidden; margin-bottom: 17px; border: 1px solid #393428; border-radius: 19px; background: radial-gradient(ellipse at 88% 0%, rgba(166, 143, 88, .18), transparent 44%), linear-gradient(112deg, #1b1a16 0%, #171714 56%, #121210 100%); }
.command-hero::before { position: absolute; top: -105px; left: 38%; width: 360px; height: 360px; border: 1px solid rgba(207, 189, 137, .07); border-radius: 50%; content: ""; box-shadow: 0 0 0 27px rgba(207, 189, 137, .018), 0 0 0 56px rgba(207, 189, 137, .012); pointer-events: none; }
.command-hero-main { position: relative; z-index: 1; padding: 25px 31px; }
.hero-kicker { display: flex; align-items: center; gap: 7px; color: #c7b77e; font-size: 8px; font-weight: 750; letter-spacing: .17em; }
.live-indicator { width: 5px; height: 5px; border-radius: 50%; background: #a7c18e; box-shadow: 0 0 8px rgba(167, 193, 142, .6); }
.hero-kicker-rule { width: 17px; height: 1px; margin-left: 3px; background: #60573d; }
.command-hero h2 { margin: 14px 0 8px; color: #f1eee5; font: 500 clamp(24px, 2.6vw, 33px)/1.13 Georgia, "Iowan Old Style", serif; letter-spacing: -.045em; }
.command-hero h2 em { color: #d4c390; font-weight: 400; }
.command-hero-main > p { max-width: 420px; margin: 0 0 13px; color: #9a998e; font-size: 10px; line-height: 1.6; }
.hero-link { display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; background: transparent; color: #dfce9f; font-size: 10px; font-weight: 610; cursor: pointer; }
.hero-link:hover { color: #f2dda8; }
.architecture-card { position: relative; z-index: 1; align-self: center; margin: 24px 23px 24px 0; padding: 18px 17px 14px; border: 1px solid rgba(204, 187, 139, .18); border-radius: 13px; background: rgba(10, 10, 9, .34); box-shadow: inset 0 1px rgba(255, 255, 255, .025); }
.architecture-caption { margin-bottom: 16px; color: #79776e; font-size: 8px; font-weight: 690; letter-spacing: .16em; }
.architecture-flow { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.architecture-step { display: flex; min-width: 44px; flex-direction: column; align-items: center; gap: 7px; color: #aaa596; font-size: 7px; font-weight: 700; letter-spacing: .07em; }
.architecture-step-icon { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(201, 178, 118, .25); border-radius: 10px; background: rgba(201, 178, 118, .08); color: var(--gold-light); }
.architecture-step:nth-of-type(5) .architecture-step-icon { background: rgba(170, 186, 145, .08); border-color: rgba(170, 186, 145, .2); color: #b6c29d; }
.architecture-arrow { margin-top: -13px; color: #807652; font: 19px Georgia, serif; }
.architecture-footer { display: flex; justify-content: space-between; gap: 7px; margin-top: 15px; padding-top: 12px; border-top: 1px solid rgba(201, 178, 118, .12); color: #78776d; font-size: 7px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat-card { min-width: 0; padding: 15px 16px 14px; border: 1px solid #292923; border-radius: 13px; background: linear-gradient(150deg, #171715, #121210); }
.stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-label { overflow: hidden; color: #898980; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.stat-icon { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid #302f29; border-radius: 8px; background: #1d1c18; color: #ac9a66; }
.stat-value { margin-top: 8px; color: #ebe8df; font-size: 25px; font-weight: 560; letter-spacing: -.06em; line-height: 1; }
.stat-note { margin-top: 7px; overflow: hidden; color: #75756d; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.stat-accent { color: #b9ab7c; }
.stat-warm { color: #d9bf7d; }
.stat-muted { color: #686961; }
.stat-attention { border-color: rgba(201, 178, 118, .3); background: linear-gradient(145deg, rgba(201, 178, 118, .07), #131311 80%); }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(300px, .87fr); gap: 14px; }
.overview-grid > .panel { padding: 19px 19px 16px; }
.project-health-panel { grid-row: span 2; }
.health-project-list { margin-top: 17px; }
.health-project-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #262620; }
.health-project-row:first-child { border-top: 0; }
.project-monogram { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 1px solid #38362d; border-radius: 10px; background: linear-gradient(135deg, #28261f, #1a1916); color: #ddc98f; font: 600 13px Georgia, serif; }
.health-project-info { min-width: 0; flex: 1; }
.health-project-title { display: flex; align-items: center; gap: 7px; }
.health-project-title strong { overflow: hidden; color: #dcd9d0; font-size: 10px; font-weight: 610; text-overflow: ellipsis; white-space: nowrap; }
.health-project-title .badge { min-height: 18px; padding: 0 5px; font-size: 7px; }
.health-project-info > span { display: block; margin-top: 5px; color: #79796f; font-size: 8px; }
.health-project-info > span i { margin: 0 3px; color: #55554e; font-style: normal; }
.health-progress { width: 91px; }
.workflow-current-card { margin-top: 17px; padding-top: 14px; border-top: 1px solid #292923; }
.workflow-status-row { display: flex; align-items: center; justify-content: space-between; }
.workflow-status-row > span:last-child { color: #77776e; font-size: 8px; }
.workflow-current-card h3 { margin: 11px 0 5px; color: #dddacf; font-size: 12px; font-weight: 620; }
.workflow-current-card > p { margin: 0; color: #87867d; font-size: 9px; line-height: 1.55; }
.workflow-stage-summary { display: flex; align-items: center; gap: 0; margin: 16px 0 14px; }
.stage-dot { display: grid; width: 20px; height: 20px; flex: 0 0 auto; place-items: center; border: 1px solid #454238; border-radius: 50%; background: #1a1a16; color: #a4a096; font-size: 8px; }
.stage-dot.done { border-color: rgba(201, 178, 118, .52); background: rgba(201, 178, 118, .12); color: #dfcf9f; }
.workflow-stage-summary > i { width: 24px; height: 1px; background: #37362f; }
.approval-mini-list { margin-top: 13px; }
.approval-mini-row { display: flex; width: 100%; align-items: center; gap: 9px; padding: 10px 0; border: 0; border-top: 1px solid #262620; background: transparent; text-align: left; cursor: pointer; }
.approval-mini-row:first-child { border-top: 0; }
.approval-mini-row:hover .approval-mini-copy strong { color: var(--gold-light); }
.approval-mini-icon { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border: 1px solid #39352a; border-radius: 8px; background: rgba(201, 178, 118, .07); color: #b7a36d; }
.approval-mini-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 4px; }
.approval-mini-copy strong { overflow: hidden; color: #ceccc1; font-size: 9px; font-weight: 580; text-overflow: ellipsis; white-space: nowrap; }
.approval-mini-copy small { color: #77766d; font-size: 8px; }
.approval-mini-row > .icon:last-child { color: #66665e; }
.risk-mark { display: inline-flex; align-items: center; padding: 4px 6px; border: 1px solid #37362f; border-radius: 5px; color: #aaa89c; font-size: 8px; white-space: nowrap; }
.risk-high { border-color: rgba(196, 126, 105, .26); background: rgba(196, 126, 105, .07); color: #d59d8c; }
.risk-medium { border-color: rgba(201, 178, 118, .24); background: rgba(201, 178, 118, .06); color: #cfbb81; }
.risk-low { border-color: rgba(133, 167, 126, .2); background: rgba(133, 167, 126, .06); color: #b0c2a4; }
.activity-list { margin-top: 12px; }
.activity-row { display: grid; grid-template-columns: 27px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 9px 0; border-top: 1px solid #262620; }
.activity-row:first-child { border-top: 0; }
.activity-mark { display: grid; width: 26px; height: 26px; place-items: center; border: 1px solid #34332c; border-radius: 8px; background: #1d1c18; color: #aa9967; }
.activity-review { color: #d4b578; }
.activity-memory { color: #a4b592; }
.activity-team { color: #b6a0b7; }
.activity-expertise { color: #b4aa7c; }
.activity-row > div { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.activity-row > div strong { overflow: hidden; color: #d2cfc5; font-size: 9px; font-weight: 580; text-overflow: ellipsis; white-space: nowrap; }
.activity-row > div span { overflow: hidden; color: #797970; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.activity-row time { color: #6e6e65; font-size: 8px; white-space: nowrap; }
.empty-state { display: flex; min-height: 130px; flex-direction: column; align-items: center; justify-content: center; padding: 20px; color: #85847b; text-align: center; }
.empty-state-icon { display: grid; width: 39px; height: 39px; margin-bottom: 10px; place-items: center; border: 1px solid #37352b; border-radius: 12px; background: #1c1b17; color: #c1ad72; }
.empty-state strong { color: #ddd9ce; font-size: 12px; font-weight: 590; }
.empty-state p { max-width: 290px; margin: 6px 0 11px; color: #818178; font-size: 10px; line-height: 1.6; }
.empty-state .button { margin-top: 3px; }

/* Project workspace */
.page-toolbar { display: flex; align-items: center; gap: 12px; margin: -5px 0 16px; }
.search-field { display: flex; min-width: 230px; width: min(100%, 338px); height: 36px; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid #2d2d27; border-radius: 9px; background: #141412; color: #85857c; }
.search-field:focus-within { border-color: #726342; box-shadow: 0 0 0 2px rgba(201, 178, 118, .06); }
.search-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #e3e0d7; font-size: 10px; }
.search-field input::placeholder { color: #6c6c64; }
.search-field input:focus-visible { outline: 0; }
.toolbar-summary { margin-left: auto; color: #77776e; font-size: 9px; white-space: nowrap; }
.toolbar-summary span { margin: 0 5px; color: #4f4f48; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.project-card { position: relative; min-width: 0; overflow: hidden; padding: 16px 16px 14px; border: 1px solid #2b2b25; border-radius: 15px; background: linear-gradient(145deg, #181816, #121210); transition: border .2s ease, transform .2s ease, box-shadow .2s ease; }
.project-card:hover { transform: translateY(-2px); border-color: #514936; box-shadow: 0 12px 28px rgba(0, 0, 0, .16); }
.project-card-top, .project-card-menu { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.category-label { color: #88877b; font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.project-card-menu { position: relative; z-index: 2; }
.subtle-icon-button { width: 27px; height: 27px; border-color: #303029; border-radius: 7px; background: rgba(255,255,255,.01); }
.project-title-row { display: flex; align-items: center; gap: 10px; margin-top: 17px; }
.project-monogram-large { width: 39px; height: 39px; border-radius: 11px; font-size: 15px; }
.project-title-row h3 { margin: 0 0 3px; color: #e8e5dc; font-size: 14px; font-weight: 620; letter-spacing: -.025em; }
.project-owner { color: #77776d; font-size: 8px; }
.project-description { min-height: 42px; margin: 12px 0 16px; color: #95948a; font-size: 10px; line-height: 1.6; }
.project-progress-heading { display: flex; justify-content: space-between; margin-bottom: 7px; color: #85847b; font-size: 9px; }
.project-progress-heading strong { color: #d6c58d; font-size: 9px; }
.project-card-divider { height: 1px; margin: 13px 0 11px; background: #282822; }
.project-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: #7d7d73; font-size: 8px; }
.project-card-footer > span:first-child { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.project-card-footer > span:first-child .icon { color: #a18f5e; }
.priority-pill { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.priority-pill i { width: 5px; height: 5px; border-radius: 50%; background: #c9b276; }
.priority-high i { background: #cf907a; }
.priority-medium i { background: #c9b276; }
.priority-low i { background: #9eb28d; }
.project-card-open { position: absolute; inset: 48px 0 42px; z-index: 1; width: 100%; border: 0; background: transparent; cursor: pointer; }
.project-card-menu, .project-card-footer { position: relative; z-index: 2; pointer-events: none; }
.project-card-menu > *, .project-card-footer > * { pointer-events: auto; }
.project-card .subtle-icon-button { pointer-events: auto; }
.filter-empty { display: none; padding: 19px; color: #7d7c73; font-size: 11px; text-align: center; }

/* AI collaboration */
.collab-mode-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-bottom: 14px; }
.collab-mode-card { display: flex; min-height: 77px; align-items: flex-start; gap: 10px; padding: 12px 11px; border: 1px solid #2b2b25; border-radius: 12px; background: #151513; text-align: left; cursor: pointer; transition: border .2s ease, background .2s ease, transform .2s ease; }
.collab-mode-card:hover { transform: translateY(-1px); border-color: #4a4434; }
.collab-mode-card.selected { border-color: rgba(201, 178, 118, .54); background: linear-gradient(135deg, rgba(201, 178, 118, .1), #171715 75%); box-shadow: inset 0 0 0 1px rgba(201, 178, 118, .04); }
.collab-mode-icon { display: grid; width: 29px; height: 29px; flex: 0 0 auto; place-items: center; border: 1px solid #39372e; border-radius: 9px; background: #1e1d18; color: #c1ad75; }
.collab-mode-copy { display: flex; flex: 1; flex-direction: column; gap: 5px; padding-top: 1px; }
.collab-mode-copy strong { color: #dfdcd2; font-size: 10px; font-weight: 610; }
.collab-mode-copy small { color: #85847b; font-size: 8px; line-height: 1.45; }
.mode-select-mark { display: grid; width: 15px; height: 15px; flex: 0 0 auto; place-items: center; border: 1px solid #49483f; border-radius: 50%; color: #e5d39e; }
.selected .mode-select-mark { border-color: #c5ad70; background: #c5ad70; color: #17150f; }
.collab-workspace { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: stretch; gap: 13px; }
.collab-compose-column { display: flex; flex-direction: column; gap: 10px; }
.collab-compose-panel, .collab-output-panel { padding: 18px; }
.secure-label { display: inline-flex; align-items: center; gap: 5px; color: #868371; font-size: 8px; font-weight: 700; letter-spacing: .11em; }
.compose-options { display: grid; grid-template-columns: 1fr; gap: 13px; margin: 16px 0 15px; }
.compose-option { display: flex; flex-direction: column; gap: 7px; }
.compose-option > label, .prompt-label { color: #a09f95; font-size: 9px; font-weight: 590; }
.model-choice-group { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.model-choice { display: flex; min-height: 34px; align-items: center; gap: 7px; padding: 0 8px; border: 1px solid #33332d; border-radius: 8px; background: #171715; color: #aaa99f; cursor: pointer; }
.model-choice:hover { border-color: #62583c; }
.model-choice.selected { border-color: #8c7950; background: rgba(201, 178, 118, .09); color: #e3d3a2; }
.model-choice .model-mark { width: 19px; height: 19px; }
.model-choice > span:nth-child(2) { font-size: 9px; font-weight: 590; }
.model-choice small { margin-left: auto; color: #737268; font-size: 7px; font-weight: 750; }
.select-control { width: 100%; min-height: 35px; padding: 0 10px; border: 1px solid #34342e; border-radius: 8px; outline: 0; background: #171715; color: #d2cfc5; font-size: 10px; }
.select-control:focus { border-color: #80704d; }
.select-control option { background: #171715; color: #ece8dd; }
.prompt-label { display: block; margin-bottom: 7px; }
.prompt-textarea { display: block; width: 100%; min-height: 143px; resize: vertical; padding: 11px 12px; border: 1px solid #33332c; border-radius: 10px; outline: 0; background: #10100f; color: #e7e3d8; font-size: 10px; line-height: 1.65; }
.prompt-textarea:focus { border-color: #80704d; box-shadow: 0 0 0 2px rgba(201, 178, 118, .06); }
.prompt-textarea::placeholder { color: #686860; }
.compose-footer { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-top: 11px; }
.compose-footer > span { display: flex; align-items: center; gap: 5px; color: #77766e; font-size: 8px; }
.compose-footer > span .icon { color: #a18d57; }
.collab-safety-note, .workflow-warning, .usage-disclaimer, .github-bottom-note { display: flex; align-items: flex-start; gap: 8px; padding: 10px 11px; border: 1px solid #373329; border-radius: 10px; background: rgba(201, 178, 118, .045); color: #a9a596; font-size: 9px; line-height: 1.55; }
.collab-safety-note .icon, .workflow-warning .icon, .usage-disclaimer .icon, .github-bottom-note .icon { flex: 0 0 auto; color: #b7a46d; }
.collab-safety-note strong, .workflow-warning strong, .usage-disclaimer strong { color: #d4c38f; font-weight: 650; }
.collab-output-panel { min-height: 456px; }
.collab-empty { display: flex; height: 100%; min-height: 405px; flex-direction: column; align-items: center; justify-content: center; padding: 20px; text-align: center; }
.collab-empty-mark { display: grid; width: 49px; height: 49px; margin-bottom: 15px; place-items: center; border: 1px solid rgba(201, 178, 118, .32); border-radius: 15px; background: radial-gradient(circle at 40% 20%, rgba(201, 178, 118, .22), rgba(201, 178, 118, .05)); color: var(--gold-light); box-shadow: 0 0 32px rgba(201, 178, 118, .06); }
.collab-empty > strong { color: #dedbd1; font-size: 13px; font-weight: 570; }
.collab-empty > p { max-width: 290px; margin: 7px 0 17px; color: #828178; font-size: 10px; line-height: 1.6; }
.collab-empty-footer { display: flex; gap: 13px; padding-top: 12px; border-top: 1px solid #2b2b25; color: #77766d; font-size: 8px; }
.collab-empty-footer span { display: inline-flex; align-items: center; gap: 4px; }
.collab-empty-footer .icon { color: #b09b61; }
.collab-loading { display: flex; min-height: 410px; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.loading-orbit { position: relative; display: grid; width: 52px; height: 52px; margin-bottom: 17px; place-items: center; border: 1px solid rgba(201, 178, 118, .19); border-radius: 50%; animation: orbit 2s linear infinite; }
.loading-orbit::before { position: absolute; inset: 6px; border: 1px dashed rgba(201, 178, 118, .35); border-radius: 50%; content: ""; }
.loading-orbit span { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 19px rgba(201, 178, 118, .42); }
.loading-orbit i { position: absolute; top: 2px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: #e2d19e; }
@keyframes orbit { to { transform: rotate(360deg); } }
.collab-loading .section-kicker { color: #af9d69; }
.collab-loading h3 { margin: 8px 0 4px; color: #e3e0d7; font: 500 17px Georgia, serif; }
.collab-loading p { margin: 0; color: #84837a; font-size: 9px; }
.loading-lines { display: flex; width: min(220px, 75%); flex-direction: column; gap: 7px; margin-top: 20px; }
.loading-lines i { height: 4px; border-radius: 6px; background: linear-gradient(90deg, #272721 20%, #4a4434 48%, #272721 78%); background-size: 220% 100%; animation: shimmer 1.3s ease infinite; }
.loading-lines i:nth-child(2) { width: 86%; }.loading-lines i:nth-child(3) { width: 64%; }
@keyframes shimmer { to { background-position: -220% 0; } }
.collab-result { min-height: 410px; }
.result-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid #2a2a24; }
.result-header h3 { margin: 5px 0 0; color: #e6e2d8; font-size: 15px; font-weight: 580; letter-spacing: -.025em; }
.result-header h3 span { color: #8c8b81; font-size: 10px; font-weight: 400; }
.prompt-quote { margin: 14px 0; padding: 10px 11px; border-left: 2px solid #9d8952; border-radius: 0 8px 8px 0; background: rgba(201, 178, 118, .055); }
.prompt-quote > span { color: #a69562; font-size: 7px; font-weight: 720; letter-spacing: .13em; }
.prompt-quote p { display: -webkit-box; overflow: hidden; margin: 5px 0 0; color: #b7b4a8; font-size: 9px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.single-response { padding: 10px 0 0; }
.response-agent { display: flex; align-items: center; gap: 8px; }
.agent-avatar { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; border: 1px solid transparent; border-radius: 8px; font-size: 10px; font-weight: 750; }
.response-agent > div { display: flex; flex: 1; flex-direction: column; gap: 3px; }
.response-agent strong { color: #dddacf; font-size: 9px; font-weight: 600; }
.response-agent small { color: #7f7e75; font-size: 8px; }
.simulated-tag { padding: 4px 6px; border: 1px solid #38362e; border-radius: 5px; color: #a79969; font-size: 7px; font-weight: 720; letter-spacing: .1em; }
.single-response h4, .response-column h4, .debate-output h4 { margin: 14px 0 6px; color: #e6e1d4; font: 500 16px Georgia, serif; }
.single-response > p, .response-column > p, .debate-output article > p { margin: 0; color: #a09f95; font-size: 9px; line-height: 1.7; }
.single-response-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.single-response-grid > div { display: flex; min-height: 56px; flex-direction: column; gap: 6px; padding: 9px; border: 1px solid #2d2d27; border-radius: 8px; background: #171715; }
.single-response-grid span { color: #7d7c72; font-size: 8px; }
.single-response-grid strong { color: #cfc59f; font-size: 9px; font-weight: 560; }
.response-caveat { margin-top: 13px; color: #6f6e65; font-size: 8px; line-height: 1.5; }
.parallel-output-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.response-column { padding: 11px; border: 1px solid #2e2d27; border-radius: 10px; background: #171715; }
.response-column .response-agent > div { gap: 3px; }
.response-column h4 { margin-top: 14px; font-size: 14px; }
.response-tag-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; }
.response-tag-row span { padding: 4px 6px; border-radius: 5px; background: #24231d; color: #a99a69; font-size: 7px; }
.synthesis-note { display: flex; gap: 8px; margin-top: 10px; padding: 9px; border: 1px solid rgba(201, 178, 118, .16); border-radius: 8px; background: rgba(201, 178, 118, .045); }
.synthesis-note > span { color: #c7b578; }
.synthesis-note p { margin: 0; color: #99978c; font-size: 8px; line-height: 1.5; }
.synthesis-note strong { color: #d1c18d; }
.debate-output { display: grid; grid-template-columns: 1fr; gap: 8px; }
.debate-output article { padding: 11px; border: 1px solid #2d2d27; border-radius: 9px; background: #171715; }
.debate-output .section-kicker { color: #9b8d60; font-size: 7px; }
.debate-output h4 { margin: 7px 0 4px; font-size: 14px; }
.debate-connector { display: grid; height: 15px; place-items: center; color: #9a8755; }
.challenge-card { border-color: rgba(168, 139, 172, .24) !important; background: rgba(168, 139, 172, .045) !important; }
.challenge-card .section-kicker { color: #b29db2 !important; }
.debate-resolution { display: flex; flex-direction: column; gap: 5px; border-color: rgba(201, 178, 118, .2) !important; background: rgba(201, 178, 118, .045) !important; }
.debate-resolution > p { color: #c0b99f !important; }
.dev-pipeline { display: flex; flex-direction: column; padding-top: 13px; }
.dev-step { position: relative; display: grid; grid-template-columns: 29px 1fr; gap: 11px; padding-bottom: 15px; }
.dev-step:last-child { padding-bottom: 0; }
.dev-step-number { z-index: 1; display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid #484338; border-radius: 9px; background: #1c1b17; color: #d1bc7d; font-size: 8px; }
.dev-step-line { position: absolute; top: 28px; left: 13px; width: 1px; height: calc(100% - 24px); background: #39372e; }
.dev-step-line.last { display: none; }
.dev-step > div { padding: 2px 0 0; }
.dev-step strong { color: #dddacf; font-size: 10px; font-weight: 600; }
.dev-step p { margin: 4px 0; color: #8b8a81; font-size: 8px; line-height: 1.5; }
.dev-step small { color: #ad9a61; font-size: 8px; }

/* Expertise */
.expertise-intro { display: flex; align-items: center; gap: 12px; margin: -7px 0 18px; padding: 12px 15px; border: 1px solid rgba(201, 178, 118, .18); border-radius: 11px; background: linear-gradient(100deg, rgba(201, 178, 118, .07), rgba(201, 178, 118, .015)); }
.intro-icon { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 9px; background: rgba(201, 178, 118, .1); color: #d0bb7e; }
.expertise-intro > div:nth-child(2) { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 4px; }
.expertise-intro strong { color: #d7d1c0; font-size: 10px; font-weight: 590; }
.expertise-intro span { color: #8b897f; font-size: 9px; line-height: 1.45; }
.intro-stat { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; padding-left: 13px; border-left: 1px solid #39372f; }
.intro-stat strong { color: #e5d39b; font-size: 18px; font-weight: 580; }
.intro-stat strong span { color: #817f73; font-size: 11px; }
.intro-stat small { color: #77766d; font-size: 7px; font-weight: 730; letter-spacing: .12em; }
.expertise-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.expertise-card { min-width: 0; padding: 15px; border: 1px solid #2b2b25; border-radius: 14px; background: linear-gradient(145deg, #181816, #121210); transition: border .2s ease, transform .2s ease, opacity .2s ease; }
.expertise-card:hover { transform: translateY(-2px); border-color: #504735; }
.disabled-card { opacity: .67; }
.expertise-card-head { display: flex; align-items: flex-start; justify-content: space-between; }
.expertise-symbol { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(201, 178, 118, .23); border-radius: 10px; background: rgba(201, 178, 118, .08); color: #c5b174; }
.expertise-card-head-right { display: flex; align-items: center; gap: 7px; }
.expertise-role { margin-top: 14px; color: #9a927b; font-size: 8px; font-weight: 600; letter-spacing: .04em; }
.expertise-card h3 { margin: 4px 0 6px; color: #e4e0d6; font-size: 14px; font-weight: 620; letter-spacing: -.025em; }
.expertise-description { min-height: 38px; margin: 0 0 12px; color: #939289; font-size: 9px; line-height: 1.55; }
.expertise-model-row { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid #292923; }
.version-label { color: #6e6e65; font-size: 8px; }
.expertise-capabilities { display: grid; gap: 10px; padding: 11px 0; }
.expertise-capabilities > div > span, .agent-permission-line > span { color: #77766d; font-size: 7px; font-weight: 740; letter-spacing: .12em; }
.expertise-capabilities p, .agent-permission-line p { display: -webkit-box; overflow: hidden; margin: 4px 0 0; color: #a09f95; font-size: 8px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.expertise-capabilities p i, .agent-permission-line p i { padding: 0 3px; color: #68675f; font-style: normal; }
.expertise-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid #292923; color: #717168; font-size: 8px; }
.expertise-actions { display: flex; align-items: center; gap: 4px; }
.toggle-control { position: relative; width: 29px; height: 16px; margin-left: 3px; padding: 0; border: 1px solid #414139; border-radius: 20px; background: #2a2a25; cursor: pointer; transition: background .18s ease, border .18s ease; }
.toggle-control > span { position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: #9b9a90; transition: transform .18s ease, background .18s ease; }
.toggle-control.is-on { border-color: #9a8753; background: rgba(201, 178, 118, .45); }
.toggle-control.is-on > span { transform: translateX(12px); background: #efe0b3; }
.studio-footnote { display: flex; align-items: center; gap: 6px; margin-top: 18px; color: #76756b; font-size: 9px; }
.studio-footnote .icon { color: #a18e56; }

/* Teams & agents */
.inner-tabs { display: flex; gap: 18px; margin: -12px 0 17px; border-bottom: 1px solid #282822; }
.inner-tab { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 0 1px 11px; border: 0; background: transparent; color: #85847b; font-size: 10px; cursor: pointer; }
.inner-tab > span { display: inline-grid; min-width: 17px; height: 17px; place-items: center; border-radius: 5px; background: #24241f; color: #9b9a90; font-size: 8px; }
.inner-tab.active { color: #e2d4a8; }
.inner-tab.active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; border-radius: 2px 2px 0 0; background: var(--gold); content: ""; }
.inner-tab.active > span { background: rgba(201, 178, 118, .15); color: #ddc98d; }
.team-builder-callout { display: flex; align-items: center; gap: 11px; margin: 0 0 16px; padding: 11px 13px; border: 1px solid #302f28; border-radius: 11px; background: linear-gradient(100deg, #181815, #141412); }
.callout-symbol { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border: 1px solid #3a372c; border-radius: 9px; background: #211f19; color: #c4af70; }
.team-builder-callout > div:nth-child(2) { display: flex; flex: 1; flex-direction: column; gap: 4px; }
.team-builder-callout strong { color: #d7d3c8; font-size: 10px; font-weight: 600; }
.team-builder-callout span { color: #85847a; font-size: 9px; }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.team-card { min-width: 0; padding: 17px; border: 1px solid #2b2b25; border-radius: 15px; background: linear-gradient(145deg, #191916, #131311); transition: border .2s ease, transform .2s ease; }
.team-card:hover { transform: translateY(-2px); border-color: #504737; }
.team-card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.team-emblem { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(201, 178, 118, .25); border-radius: 11px; background: rgba(201, 178, 118, .08); color: #d1bc7e; }
.team-card-meta { display: flex; align-items: center; gap: 7px; }
.team-card h3 { margin: 13px 0 6px; color: #e7e3da; font-size: 16px; font-weight: 590; letter-spacing: -.035em; }
.team-objective { min-height: 32px; margin: 0; color: #929188; font-size: 9px; line-height: 1.55; }
.team-leader-strip { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 9px; border: 1px solid #302e27; border-radius: 9px; background: rgba(201, 178, 118, .035); }
.leader-crown { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; border-radius: 7px; background: rgba(201, 178, 118, .12); color: #d1bc7e; }
.team-leader-strip > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; gap: 3px; }
.team-leader-strip small, .team-member-heading > span:first-child, .team-delegation small { color: #7c7b71; font-size: 7px; font-weight: 730; letter-spacing: .1em; }
.team-leader-strip strong { color: #dedacf; font-size: 9px; font-weight: 580; }
.team-leader-strip .model-pill { transform: scale(.92); transform-origin: right center; }
.team-members-section { padding: 12px 0 11px; }
.team-member-heading { display: flex; justify-content: space-between; margin-bottom: 8px; }
.team-member-heading > span:last-child { color: #77766e; font-size: 8px; }
.team-member-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.team-member-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border: 1px solid #33332d; border-radius: 6px; background: #1a1a17; color: #aaa89d; font-size: 8px; }
.team-member-chip i { width: 5px; height: 5px; border-radius: 50%; }
.claude-dot { background: #d1a674; }.gpt-dot { background: #a6c595; }
.team-delegation { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid #2a2a24; border-bottom: 1px solid #2a2a24; }
.team-delegation > span { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 7px; background: #21201b; color: #ac9a65; }
.team-delegation > div { display: flex; flex-direction: column; gap: 3px; }
.team-delegation strong { color: #c3b991; font-size: 8px; font-weight: 540; }
.team-card-footer { display: flex; min-height: 35px; align-items: flex-end; justify-content: space-between; gap: 8px; padding-top: 9px; }
.last-run-label { display: inline-flex; align-items: center; gap: 4px; color: #94aa88; font-size: 8px; }
.agent-roster-intro { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: -6px 0 17px; padding: 15px; border: 1px solid #2e2e27; border-radius: 12px; background: linear-gradient(105deg, #191916, #131311); }
.agent-roster-intro h2 { margin: 5px 0 4px; color: #e2ded4; font-size: 15px; font-weight: 580; }
.agent-roster-intro p { margin: 0; color: #86857b; font-size: 9px; line-height: 1.55; }
.agent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.agent-card { min-width: 0; padding: 13px; border: 1px solid #2b2b25; border-radius: 12px; background: #171715; transition: border .2s ease, opacity .2s ease; }
.agent-card:hover { border-color: #4a4434; }
.agent-card-head { display: flex; align-items: center; gap: 8px; }
.agent-card-title { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.agent-card-title strong { overflow: hidden; color: #dcd9ce; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.agent-card-title > span { overflow: hidden; color: #818076; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.agent-status { display: inline-flex; align-items: center; gap: 4px; color: #8eaa85; font-size: 8px; }
.agent-status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.agent-status.paused { color: #8b8980; }
.agent-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 12px 0 10px; }
.agent-card-meta > span:last-child { display: inline-flex; align-items: center; gap: 4px; color: #85847a; font-size: 8px; }
.agent-permission-line { min-height: 43px; padding-top: 9px; border-top: 1px solid #292923; }
.agent-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 7px; color: #77766e; font-size: 8px; }

/* Shared memory */
.memory-integrity-note { display: flex; align-items: flex-start; gap: 8px; margin: -7px 0 17px; padding: 10px 12px; border: 1px solid #313027; border-radius: 9px; background: rgba(201, 178, 118, .035); color: #939186; font-size: 9px; line-height: 1.5; }
.memory-integrity-note .icon { flex: 0 0 auto; color: #b19d62; }
.memory-integrity-note strong { color: #d2c391; font-weight: 620; }
.filter-select-wrap { display: flex; min-width: 150px; align-items: center; gap: 6px; padding-left: 2px; color: #88877e; }
.select-small { min-height: 32px; font-size: 9px; }
.filter-select-wrap .select-control { width: auto; min-width: 130px; }
.memory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.memory-card { display: flex; min-width: 0; min-height: 228px; flex-direction: column; padding: 14px; border: 1px solid #2b2b25; border-radius: 13px; background: linear-gradient(145deg, #181816, #131311); transition: border .2s ease, transform .2s ease; }
.memory-card:hover { transform: translateY(-2px); border-color: #514937; }
.memory-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.memory-type { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border: 1px solid #34342d; border-radius: 6px; color: #c2b47e; font-size: 8px; }
.memory-decision { border-color: rgba(133, 167, 126, .22); background: rgba(133, 167, 126, .065); color: #b1c8a5; }
.memory-proposal { border-color: rgba(201, 178, 118, .24); background: rgba(201, 178, 118, .065); color: #d3bf83; }
.memory-open-question { border-color: rgba(168, 139, 172, .25); background: rgba(168, 139, 172, .06); color: #c2a9c4; }
.memory-reference { color: #b5b6a9; }
.memory-superseded { color: #8c8b82; text-decoration: line-through; }
.memory-date { color: #717168; font-size: 8px; white-space: nowrap; }
.memory-card h3 { margin: 12px 0 7px; color: #e1ded5; font-size: 13px; font-weight: 600; letter-spacing: -.02em; }
.memory-content { display: -webkit-box; overflow: hidden; min-height: 45px; margin: 0 0 13px; color: #929188; font-size: 9px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.memory-provenance { display: grid; gap: 8px; margin-top: auto; padding-top: 11px; border-top: 1px solid #292923; }
.memory-provenance > div { display: flex; flex-direction: column; gap: 3px; }
.memory-provenance > div span { color: #74736b; font-size: 7px; font-weight: 730; letter-spacing: .1em; }
.memory-provenance > div strong { overflow: hidden; color: #b8b5aa; font-size: 8px; font-weight: 510; text-overflow: ellipsis; white-space: nowrap; }
.memory-legend { display: flex; flex-wrap: wrap; gap: 17px; margin-top: 16px; color: #77766d; font-size: 8px; }
.memory-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.memory-legend i { width: 6px; height: 6px; border-radius: 50%; background: #adbf9d; }
.memory-legend .legend-proposal { background: #cfb875; }.memory-legend .legend-question { background: #b69cbb; }.memory-legend .legend-reference { background: #aaa99e; }.memory-legend .legend-superseded { background: #65655e; }

/* Workflow board */
.workflow-warning { margin: -7px 0 17px; }
.workflow-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.workflow-card { min-width: 0; padding: 15px; border: 1px solid #2b2b25; border-radius: 14px; background: linear-gradient(145deg, #191916, #131311); transition: border .2s ease; }
.workflow-card:hover { border-color: #4f4736; }
.workflow-card-header { display: flex; align-items: flex-start; gap: 8px; }
.workflow-card-icon { display: grid; width: 33px; height: 33px; flex: 0 0 auto; place-items: center; border: 1px solid #3a372d; border-radius: 10px; background: #211f19; color: #c2ad70; }
.workflow-card-header > div { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 4px; }
.workflow-trigger { color: #75746c; font-size: 8px; }
.workflow-card h3 { margin: 12px 0 5px; color: #e4e0d6; font-size: 14px; font-weight: 600; }
.workflow-card > p { min-height: 29px; margin: 0; color: #929188; font-size: 9px; line-height: 1.55; }
.workflow-card-context { display: flex; flex-wrap: wrap; gap: 12px; margin: 11px 0 10px; color: #7f7e74; font-size: 8px; }
.workflow-card-context > span { display: inline-flex; align-items: center; gap: 4px; }
.workflow-card-context .icon { color: #a69460; }
.workflow-stage-list { display: flex; flex-direction: column; padding: 5px 0; border-top: 1px solid #292923; border-bottom: 1px solid #292923; }
.workflow-stage-row { position: relative; display: flex; min-height: 27px; align-items: center; gap: 8px; color: #a9a79d; font-size: 8px; }
.workflow-stage-index { z-index: 1; display: grid; width: 18px; height: 18px; flex: 0 0 auto; place-items: center; border: 1px solid #3b3a33; border-radius: 6px; background: #1b1b18; color: #929188; font-size: 7px; }
.workflow-stage-index.complete { border-color: rgba(133, 167, 126, .35); background: rgba(133, 167, 126, .1); color: #b3c7a7; }
.workflow-stage-index.current { border-color: #9a8754; background: rgba(201, 178, 118, .14); color: #e2cf96; box-shadow: 0 0 9px rgba(201, 178, 118, .12); }
.workflow-stage-connector { position: absolute; top: 21px; left: 8px; width: 1px; height: 8px; background: #414038; }
.workflow-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 11px; }
.workflow-approval-indicator { display: inline-flex; align-items: center; gap: 4px; color: #a7986a; font-size: 8px; }
.workflow-running-progress { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.workflow-running-progress .progress-wrap { flex: 1; }
.workflow-running-progress > span { color: #88877e; font-size: 8px; white-space: nowrap; }
.workflow-last-run { margin-top: 9px; color: #6f6e65; font-size: 8px; }
.workflow-principles { display: flex; justify-content: center; gap: 24px; margin-top: 18px; color: #74736a; font-size: 8px; }
.workflow-principles > span { display: inline-flex; align-items: center; gap: 5px; }
.workflow-principles .icon { color: #a3905a; }

/* Mock GitHub workspace */
.github-disclaimer { display: flex; align-items: center; gap: 11px; margin: -7px 0 17px; padding: 13px; border: 1px solid rgba(201, 178, 118, .22); border-radius: 11px; background: linear-gradient(100deg, rgba(201, 178, 118, .065), rgba(201, 178, 118, .02)); }
.github-disclaimer-icon { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 9px; background: rgba(201, 178, 118, .11); color: #d0bb7b; }
.github-disclaimer > div:nth-child(2) { display: flex; flex: 1; flex-direction: column; gap: 4px; }
.github-disclaimer strong { color: #d7ccaa; font-size: 10px; font-weight: 630; }
.github-disclaimer span { color: #929086; font-size: 9px; line-height: 1.45; }
.read-only-label, .mock-pill { padding: 5px 7px; border: 1px solid #3b3931; border-radius: 6px; color: #a9a08b !important; font-size: 7px !important; font-weight: 730; letter-spacing: .1em; white-space: nowrap; }
.github-layout { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr); gap: 14px; }
.github-panel-heading { margin-bottom: 13px; }
.mock-count { color: #77766d; font-size: 8px; font-weight: 700; letter-spacing: .08em; }
.repo-list { display: flex; flex-direction: column; gap: 9px; }
.repo-card { padding: 12px; border: 1px solid #2c2c26; border-radius: 11px; background: #171715; }
.repo-card-top { display: flex; align-items: center; gap: 9px; }
.repo-icon { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 8px; background: rgba(201, 178, 118, .09); color: #ccb779; }
.repo-plum { background: rgba(168, 139, 172, .1); color: #baa1bc; }.repo-green { background: rgba(133, 167, 126, .1); color: #aac39e; }
.repo-card-top > div { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 4px; }
.repo-card-top strong { overflow: hidden; color: #d7d4ca; font-size: 10px; font-weight: 610; text-overflow: ellipsis; white-space: nowrap; }
.repo-card-top small { color: #7d7c73; font-size: 8px; }
.repo-card-meta { display: flex; flex-wrap: wrap; gap: 12px; margin: 11px 0; padding: 9px 0; border-top: 1px solid #292923; border-bottom: 1px solid #292923; color: #89887e; font-size: 8px; }
.repo-card-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.repo-card-meta .icon { color: #a18f5e; }
.repo-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 7px; color: #7c7b72; font-size: 8px; }
.repo-check { display: inline-flex; align-items: center; gap: 5px; }
.repo-check i { width: 5px; height: 5px; border-radius: 50%; background: #9fb891; }
.check-review i { background: #d1b875; }
.diff-panel { padding: 16px; }
.diff-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; padding: 8px; border: 1px solid #2e2e28; border-bottom: 0; border-radius: 8px 8px 0 0; background: #141412; color: #939187; font-size: 8px; }
.mock-diff { overflow-x: auto; padding: 6px 0; border: 1px solid #2e2e28; border-radius: 0 0 8px 8px; background: #10100f; color: #c1c0b6; font: 9px/1.9 ui-monospace, SFMono-Regular, Menlo, monospace; }
.diff-line { display: flex; min-width: 355px; gap: 11px; padding: 1px 9px; }
.diff-line > span { width: 15px; flex: 0 0 auto; color: #65655d; text-align: right; }
.diff-line code { color: inherit; font: inherit; white-space: pre; }
.diff-muted { color: #aead9f; }
.diff-remove { background: rgba(158, 76, 63, .15); color: #d49c8f; }
.diff-add { background: rgba(92, 131, 84, .17); color: #a9c59f; }
.diff-footnote { margin-top: 10px; color: #77766d; font-size: 8px; line-height: 1.55; }
.github-bottom-note { margin-top: 15px; border-color: #332f26; background: transparent; }

/* Review center */
.approval-stats { display: grid; grid-template-columns: .85fr .75fr .75fr 1.65fr; gap: 10px; margin: -4px 0 18px; }
.approval-stats > div:not(.approval-stat-note) { display: flex; flex-direction: column; gap: 5px; padding: 13px; border: 1px solid #2b2b25; border-radius: 11px; background: #161614; }
.approval-stats > div > span { color: #89887f; font-size: 8px; }
.approval-stats > div > strong { color: #e7e2d6; font-size: 20px; font-weight: 570; letter-spacing: -.05em; }
.approval-stats > div > small { color: #6e6e65; font-size: 8px; }
.approval-stats > div:first-child { border-color: rgba(201, 178, 118, .28); background: linear-gradient(145deg, rgba(201, 178, 118, .07), #171715); }
.approval-stats > div:first-child > strong { color: #ddc98d; }
.approval-stat-note { display: flex; align-items: center; gap: 9px; padding: 11px; border: 1px solid #353329; border-radius: 11px; background: #171714; }
.approval-stat-note > div { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 8px; background: rgba(201, 178, 118, .1); color: #bca96d; }
.approval-stat-note > span { display: flex; flex-direction: column; gap: 4px; }
.approval-stat-note strong { color: #cfc8ad; font-size: 9px; font-weight: 610; }
.approval-stat-note small { color: #85847a; font-size: 8px; line-height: 1.45; }
.review-list { display: flex; flex-direction: column; gap: 10px; }
.review-card { padding: 14px; border: 1px solid #2b2b25; border-radius: 13px; background: linear-gradient(140deg, #181816, #131311); transition: border .2s ease; }
.review-card.is-pending { border-color: #3d3829; }
.review-card:hover { border-color: #504735; }
.review-card-top { display: flex; align-items: center; gap: 10px; }
.review-kind-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 1px solid #37352b; border-radius: 9px; background: #1e1d18; color: #bea96d; }
.review-card-title { min-width: 0; flex: 1; }
.review-project-label { color: #88877d; font-size: 8px; }
.review-project-label i { margin: 0 4px; color: #5e5e56; font-style: normal; }
.review-card-title h3 { overflow: hidden; margin: 4px 0 0; color: #dfdcd2; font-size: 12px; font-weight: 610; text-overflow: ellipsis; white-space: nowrap; }
.review-card-status { display: flex; align-items: center; gap: 6px; }
.review-summary { margin: 11px 0; color: #96958b; font-size: 9px; line-height: 1.6; }
.review-card-meta { display: flex; flex-wrap: wrap; gap: 13px; padding: 9px 0; border-top: 1px solid #2a2a24; border-bottom: 1px solid #2a2a24; color: #7d7c72; font-size: 8px; }
.review-card-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.review-card-meta .icon { color: #aa9863; }
.review-card-meta strong { color: #a9a79d; font-weight: 550; }
.review-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; }
.approval-gate-copy, .decision-record { display: inline-flex; align-items: center; gap: 5px; color: #838278; font-size: 8px; }
.approval-gate-copy .icon, .decision-record .icon { color: #b09a5c; }
.decision-record { color: #a9b99c; }

/* Usage & cost */
.usage-disclaimer { margin: -7px 0 14px; }
.usage-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 13px; }
.usage-stat-grid .stat-card { padding: 13px 14px; }
.usage-stat-grid .stat-value { font-size: 21px; }
.usage-main-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .75fr); gap: 13px; margin-bottom: 13px; }
.usage-chart-panel, .guardrail-panel { padding: 16px; }
.usage-chart-panel .panel-heading { align-items: center; }
.usage-chart { position: relative; height: 205px; margin-top: 13px; padding-left: 33px; }
.usage-chart svg { width: 100%; height: 180px; overflow: visible; }
.chart-grid-line { fill: none; stroke: #30302a; stroke-width: 1; stroke-dasharray: 2 4; }
.chart-area { fill: url(#chart-area-fill); }
.chart-line { fill: none; stroke: #c9b276; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chart-dot { fill: #bca76b; stroke: #151512; stroke-width: 2; }
.chart-dot-current { fill: #ebd89e; stroke: #8e7a48; stroke-width: 3; }
.chart-y-labels { position: absolute; top: 5px; bottom: 24px; left: 0; display: flex; flex-direction: column; justify-content: space-between; color: #6f6e65; font-size: 7px; }
.chart-x-labels { position: absolute; right: 0; bottom: 6px; left: 34px; display: flex; justify-content: space-between; color: #77766d; font-size: 7px; }
.chart-legend { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 1px; color: #a19b84; font-size: 8px; }
.chart-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.chart-legend i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.chart-legend small { color: #6f6e65; font-size: 7px; }
.guardrail-panel .panel-heading { margin-bottom: 12px; }
.guardrail-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-top: 1px solid #2a2a24; }
.guardrail-item > div { display: flex; flex-direction: column; gap: 4px; }
.guardrail-item > div > span { color: #8b8a81; font-size: 8px; }
.guardrail-item > div > strong { color: #d3c79f; font-size: 11px; font-weight: 580; }
.guardrail-item > div > strong small { color: #77766d; font-size: 8px; font-weight: 400; }
.guardrail-tag { color: #77766c; font-size: 7px; font-weight: 720; letter-spacing: .08em; }
.guardrail-progress { padding: 9px 0 12px; border-top: 1px solid #2a2a24; }
.guardrail-progress > div:first-child { display: flex; justify-content: space-between; margin-bottom: 7px; color: #89887e; font-size: 8px; }
.guardrail-progress > div:first-child strong { color: #caba83; }
.guardrail-footnote { margin-top: 5px; padding-top: 10px; border-top: 1px solid #2a2a24; color: #74736b; font-size: 8px; line-height: 1.55; }
.usage-breakdown-panel { padding: 16px; }
.table-scroll { overflow-x: auto; margin-top: 12px; }
.usage-table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
.usage-table th { padding: 9px 10px; border-top: 1px solid #2b2b25; border-bottom: 1px solid #2b2b25; color: #77766d; font-size: 7px; font-weight: 720; letter-spacing: .1em; }
.usage-table td { padding: 10px; border-bottom: 1px solid #24241f; color: #aaa89e; font-size: 8px; }
.usage-table tr:last-child td { border-bottom: 0; }
.usage-table td .model-pill { transform: scale(.94); transform-origin: left center; }
.usage-table td strong { color: #d1c18a; font-weight: 620; }

/* Modal, forms, and transient UI */
body.modal-open { overflow: hidden; }
.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: 20px; background: rgba(0, 0, 0, .74); backdrop-filter: blur(7px); animation: backdrop-in .16s ease both; }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
.modal { display: flex; width: min(100%, 590px); max-height: min(91vh, 950px); flex-direction: column; overflow: hidden; border: 1px solid #454137; border-radius: 17px; background: linear-gradient(150deg, #1a1a17, #111110 72%); box-shadow: var(--shadow); animation: modal-in .2s ease both; }
.modal-wide { width: min(100%, 790px); }
@keyframes modal-in { from { transform: translateY(9px) scale(.99); opacity: .5; } to { transform: translateY(0) scale(1); opacity: 1; } }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 20px 22px 14px; border-bottom: 1px solid #2d2d27; }
.modal-header h2 { margin: 5px 0 4px; color: #ede9df; font-size: 20px; font-weight: 570; letter-spacing: -.04em; }
.modal-header p { max-width: 600px; margin: 0; color: #89887e; font-size: 9px; line-height: 1.55; }
.modal-close { border-color: #34342d; }
.modal-body { overflow-y: auto; padding: 16px 22px 20px; scrollbar-width: thin; scrollbar-color: #444136 transparent; }
.modal-form { display: flex; flex-direction: column; gap: 13px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 12px; }
.form-field { display: flex; min-width: 0; flex-direction: column; gap: 6px; color: #b5b3a9; font-size: 9px; font-weight: 560; }
.form-field > span { color: #b9b7ad; }
.form-field > span i, .permission-fieldset legend i, .member-picker legend i { color: #d5b76f; font-style: normal; }
.field-wide { grid-column: 1 / -1; }
.form-field input, .form-field textarea { width: 100%; min-width: 0; border: 1px solid #34342d; border-radius: 8px; outline: 0; background: #111110; color: #e5e1d7; font-size: 10px; font-weight: 400; }
.form-field input { height: 35px; padding: 0 10px; }
.form-field input[type="date"] { color-scheme: dark; }
.form-field input[type="number"] { appearance: textfield; }
.form-field textarea { min-height: 60px; resize: vertical; padding: 9px 10px; line-height: 1.55; }
.form-field input:focus, .form-field textarea:focus { border-color: #89754a; box-shadow: 0 0 0 2px rgba(201, 178, 118, .055); }
.form-field input::placeholder, .form-field textarea::placeholder { color: #65645c; }
.form-field .select-control { height: 35px; }
.form-field small { color: #77766d; font-size: 8px; font-weight: 400; line-height: 1.45; }
.permission-fieldset, .member-picker { min-width: 0; margin: 0; padding: 11px; border: 1px solid #34342d; border-radius: 9px; background: #151513; }
.permission-fieldset legend, .member-picker legend { padding: 0 5px; color: #b9b7ad; font-size: 9px; font-weight: 590; }
.permission-fieldset > p, .member-picker > p { margin: 2px 0 9px; color: #77766d; font-size: 8px; line-height: 1.5; }
.permission-options { display: flex; flex-wrap: wrap; gap: 7px; }
.permission-option { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 7px 8px; border: 1px solid #34342d; border-radius: 7px; background: #1b1b18; color: #aaa89f; font-size: 8px; cursor: pointer; }
.permission-option input, .member-select-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.fake-checkbox { display: grid; width: 14px; height: 14px; place-items: center; border: 1px solid #555349; border-radius: 4px; background: #141412; color: transparent; }
.permission-option input:checked + .fake-checkbox, .member-select-option input:checked + .fake-checkbox { border-color: #ad9860; background: #9d8953; color: #16140f; }
.permission-option input:focus-visible + .fake-checkbox, .member-select-option input:focus-visible + .fake-checkbox { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.permission-fieldset > small { display: block; margin-top: 8px; color: #716f66; font-size: 7px; }
.member-picker-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.member-select-option { position: relative; display: flex; min-width: 0; align-items: center; gap: 7px; padding: 8px; border: 1px solid #34342d; border-radius: 8px; background: #1a1a17; cursor: pointer; }
.member-select-option:has(input:checked) { border-color: rgba(201, 178, 118, .44); background: rgba(201, 178, 118, .06); }
.member-select-option:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.member-select-option .fake-checkbox { width: 13px; height: 13px; flex: 0 0 auto; }
.member-select-avatar { display: grid; width: 22px; height: 22px; flex: 0 0 auto; place-items: center; border-radius: 6px; font-size: 8px; font-weight: 700; }
.member-select-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.member-select-copy strong { overflow: hidden; color: #cfccc1; font-size: 8px; font-weight: 580; text-overflow: ellipsis; white-space: nowrap; }
.member-select-copy small { overflow: hidden; color: #77766d; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.member-select-option > em { color: #77766d; font-size: 7px; font-style: normal; }
.switch-field { display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid #34342d; border-radius: 8px; background: #151513; cursor: pointer; }
.switch-field > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch-visual { position: relative; width: 29px; height: 16px; flex: 0 0 auto; border: 1px solid #414139; border-radius: 20px; background: #2b2b25; transition: background .18s ease; }
.switch-visual i { position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: #9b9a90; transition: transform .18s ease, background .18s ease; }
.switch-field > input:checked + .switch-visual { border-color: #9a8753; background: rgba(201, 178, 118, .47); }
.switch-field > input:checked + .switch-visual i { transform: translateX(12px); background: #f1e0b1; }
.switch-field > input:focus-visible + .switch-visual { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.switch-field > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.switch-field strong { color: #c6c3b8; font-size: 9px; font-weight: 580; }
.switch-field small { color: #77766d; font-size: 8px; font-weight: 400; }
.form-safety-note { display: flex; align-items: flex-start; gap: 7px; padding: 9px; border: 1px solid #333127; border-radius: 8px; background: rgba(201, 178, 118, .035); color: #939083; font-size: 8px; line-height: 1.5; }
.form-safety-note .icon { flex: 0 0 auto; color: #b19b5e; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; padding-top: 12px; border-top: 1px solid #2b2b25; }
.form-actions > span { display: inline-flex; align-items: center; gap: 5px; color: #75746b; font-size: 8px; }
.form-actions > span .icon { color: #a38f56; }
.form-actions > div { display: flex; align-items: center; gap: 7px; }
.form-actions .button { min-height: 33px; }
.modal-form .form-actions { margin-top: 0; }

/* Detail and profile modals */
.team-preview-summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 12px; border: 1px solid #34332c; border-radius: 10px; background: #171715; }
.team-preview-summary > div:first-child { flex: 1; }
.team-preview-summary > div > span { color: #817f74; font-size: 7px; font-weight: 730; letter-spacing: .12em; }
.team-preview-summary p { margin: 5px 0 0; color: #b2afa4; font-size: 9px; line-height: 1.55; }
.preview-summary-pills { display: flex; flex-direction: column; gap: 6px; color: #aaa28a; font-size: 8px; white-space: nowrap; }
.preview-summary-pills span { display: inline-flex; align-items: center; gap: 5px; }
.preview-summary-pills .icon { color: #ae9a60; }
.preview-flow { display: flex; flex-direction: column; margin: 15px 0; }
.preview-flow-step { position: relative; display: grid; grid-template-columns: 29px minmax(0, 1fr); gap: 11px; padding-bottom: 14px; }
.preview-flow-step:last-child { padding-bottom: 0; }
.preview-step-mark { z-index: 1; display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid #4b4637; border-radius: 9px; background: #211f19; color: #d1bb78; font-size: 8px; }
.preview-step-mark.approval-mark { border-color: rgba(201, 178, 118, .48); background: rgba(201, 178, 118, .11); color: #e1cd92; }
.preview-step-mark.review-mark { border-color: #4a3e4c; background: #211d22; color: #c1a7c3; }
.preview-step-line { position: absolute; top: 28px; left: 13px; width: 1px; height: calc(100% - 26px); background: #3d3b32; }
.preview-step-copy { padding-top: 1px; }
.preview-step-copy > span { color: #817f75; font-size: 7px; font-weight: 730; letter-spacing: .11em; }
.preview-step-copy strong { display: block; margin-top: 3px; color: #dbd7cc; font-size: 10px; font-weight: 590; }
.preview-step-copy p { margin: 4px 0 0; color: #8c8b81; font-size: 8px; line-height: 1.5; }
.preview-approval-note, .review-critical-note { display: flex; align-items: flex-start; gap: 8px; padding: 10px; border: 1px solid rgba(201, 178, 118, .19); border-radius: 9px; background: rgba(201, 178, 118, .04); color: #989589; font-size: 8px; line-height: 1.55; }
.preview-approval-note > .icon, .review-critical-note > .icon { flex: 0 0 auto; color: #c4ae6e; }
.preview-approval-note strong, .review-critical-note strong { color: #d7c99e; }
.preview-actions { margin-top: 12px; }
.review-modal-top { display: flex; align-items: center; justify-content: space-between; }
.review-modal-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 13px 0; padding: 11px; border: 1px solid #30302a; border-radius: 9px; background: #171715; }
.review-modal-facts > div { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.review-modal-facts span { color: #7d7c72; font-size: 7px; font-weight: 730; letter-spacing: .1em; }
.review-modal-facts strong { overflow: hidden; color: #c5c2b7; font-size: 8px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.review-modal-summary { padding: 12px 0; border-top: 1px solid #2b2b25; border-bottom: 1px solid #2b2b25; }
.review-modal-summary > p { margin: 7px 0 0; color: #b0aea3; font-size: 9px; line-height: 1.65; }
.review-checklist { display: flex; flex-direction: column; gap: 8px; padding: 13px 0; }
.review-checklist > span { margin-bottom: 1px; }
.review-checklist > div { display: flex; align-items: center; gap: 7px; color: #a5a398; font-size: 9px; }
.review-checklist > div > span { display: grid; width: 18px; height: 18px; place-items: center; border: 1px solid #444137; border-radius: 6px; background: #1b1a16; color: #b9a76f; }
.review-modal-actions { margin-top: 12px; }
.review-decision-record { display: flex; align-items: center; gap: 7px; margin-top: 13px; padding: 10px; border: 1px solid #33332d; border-radius: 8px; color: #b3c4a7; font-size: 9px; }
.profile-modal-content { display: flex; flex-direction: column; gap: 10px; }
.profile-modal-user { display: flex; align-items: center; gap: 10px; padding: 11px; border: 1px solid #33332c; border-radius: 9px; background: #171715; }
.profile-avatar-large { width: 38px; height: 38px; font-size: 11px; }
.profile-modal-user > div { display: flex; flex-direction: column; gap: 4px; }
.profile-modal-user strong { color: #e0ddd3; font-size: 11px; font-weight: 600; }
.profile-modal-user span:not(.profile-avatar) { color: #817f76; font-size: 8px; }
.profile-status-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 1px; border-bottom: 1px solid #2c2c26; color: #928f84; font-size: 9px; }
.profile-status-row > span { display: inline-flex; align-items: center; gap: 6px; }
.profile-status-row .icon { color: #ae9a61; }
.profile-status-row strong { color: #c5c1b4; font-size: 9px; font-weight: 550; }
.profile-modal-note { padding: 9px; border: 1px solid #42352b; border-radius: 8px; background: rgba(153, 92, 70, .06); color: #b29c8d; font-size: 8px; line-height: 1.55; }
.reset-confirm { text-align: center; }
.reset-warning-mark { display: grid; width: 46px; height: 46px; margin: 5px auto 11px; place-items: center; border: 1px solid rgba(196, 126, 105, .31); border-radius: 14px; background: rgba(196, 126, 105, .08); color: #d29b8c; }
.reset-confirm h3 { margin: 0; color: #e2ded5; font-size: 15px; font-weight: 600; }
.reset-confirm > p { max-width: 400px; margin: 8px auto 17px; color: #9a988e; font-size: 9px; line-height: 1.65; }
.reset-confirm .form-actions { text-align: left; }
.notice-modal { display: flex; flex-direction: column; gap: 12px; }
.notice-modal > .icon { color: #bea96d; }
.notice-modal > p { margin: 0; color: #aaa79c; font-size: 10px; line-height: 1.65; }
.global-search-modal .search-field { width: 100%; margin-bottom: 10px; }
.quick-search-results { display: flex; max-height: 48vh; flex-direction: column; overflow-y: auto; }
.quick-search-result, .mobile-more-row { display: flex; min-height: 38px; align-items: center; gap: 9px; padding: 5px 8px; border: 0; border-bottom: 1px solid #282822; background: transparent; color: #c0bdb2; text-align: left; cursor: pointer; }
.quick-search-result:hover, .mobile-more-row:hover { background: #1c1b17; color: #e3d3a2; }
.quick-search-icon { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; border: 1px solid #34332c; border-radius: 7px; background: #1a1916; color: #b5a16a; }
.quick-search-result > span:nth-child(2), .mobile-more-row > span:nth-child(2) { flex: 1; font-size: 9px; }
.quick-search-result kbd { padding: 3px 5px; border: 1px solid #33332d; border-radius: 4px; color: #737268; font-size: 7px; }
.global-search-foot { margin-top: 10px; color: #737268; font-size: 8px; }
.mobile-more-list { display: flex; flex-direction: column; }
.mobile-more-row { min-height: 43px; }
.mobile-more-row .icon:last-child { color: #77766e; }
.page-error { display: flex; min-height: 60vh; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.page-error > div { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid #4a3d2b; border-radius: 13px; color: #d5b978; }
.page-error h2 { margin: 13px 0 5px; font: 500 20px Georgia, serif; }
.page-error p { max-width: 360px; color: #8b8a80; font-size: 10px; line-height: 1.6; }
#toast-root { position: fixed; z-index: 200; right: 20px; bottom: 20px; pointer-events: none; }
.toast { display: flex; max-width: min(440px, calc(100vw - 32px)); align-items: center; gap: 9px; padding: 11px 14px; border: 1px solid #454237; border-radius: 10px; background: #1c1b17; color: #dfddd3; font-size: 10px; box-shadow: var(--shadow); animation: toast-in .2s ease both; }
.toast .icon { color: #b8a166; }
.toast-warning { border-color: #53462d; }.toast-warning .icon { color: #d2b974; }
.toast-error { border-color: #633d34; }.toast-error .icon { color: #d49c8d; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (max-width: 1280px) {
  :root { --sidebar-width: 238px; }
  .page-content { padding-right: 28px; padding-left: 28px; }
  .topbar { padding-right: 28px; padding-left: 28px; }
  .project-grid, .expertise-grid, .memory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .command-hero { grid-template-columns: minmax(0, 1fr) minmax(350px, .9fr); }
  .architecture-card { margin-right: 17px; }
}

@media (max-width: 1020px) {
  :root { --sidebar-width: 220px; }
  .sidebar { padding-right: 11px; padding-left: 11px; }
  .page-content { padding: 27px 22px 40px; }
  .topbar { padding: 0 22px; }
  .command-hero { grid-template-columns: 1fr; }
  .command-hero-main { padding-bottom: 16px; }
  .architecture-card { margin: 0 18px 18px; }
  .overview-grid { grid-template-columns: minmax(0, 1fr) minmax(270px, .84fr); }
  .stat-grid { gap: 8px; }
  .stat-card { padding: 13px; }
  .stat-note { font-size: 7px; }
  .collab-mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collab-mode-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .approval-stats { grid-template-columns: repeat(3, 1fr); }
  .approval-stat-note { grid-column: 1 / -1; }
  .github-layout { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  :root { --sidebar-width: 0px; }
  .sidebar { display: none; }
  .main-shell { margin-left: 0; }
  .topbar { height: 59px; padding: 0 19px; }
  .topbar-left { gap: 7px; }
  .mobile-menu-button { display: inline-grid; }
  .topbar-right { gap: 11px; }
  .topbar-local, .topbar-divider { display: none; }
  .global-search { width: 190px; }
  .page-content { min-height: calc(100vh - 59px); padding: 27px 20px 104px; }
  .mobile-bottom-nav { position: fixed; z-index: 40; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5, 1fr); padding: 7px max(9px, env(safe-area-inset-left)) calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid #2a2a24; background: rgba(15, 15, 13, .95); backdrop-filter: blur(18px); }
  .mobile-nav-item { display: flex; min-height: 48px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; border-radius: 9px; background: transparent; color: #77766d; cursor: pointer; }
  .mobile-nav-item span { font-size: 8px; font-weight: 550; }
  .mobile-nav-item.active { color: #ddca91; }
  .mobile-nav-item.active .icon { filter: drop-shadow(0 0 6px rgba(201,178,118,.2)); }
  .overview-grid { grid-template-columns: 1fr 1fr; }
  .project-health-panel { grid-row: auto; grid-column: 1 / -1; }
  .collab-workspace { grid-template-columns: 1fr; }
  .collab-output-panel { min-height: 320px; }
  .collab-empty { min-height: 285px; }
  .collab-loading { min-height: 290px; }
  .collab-result { min-height: 0; }
  .usage-main-grid { grid-template-columns: 1fr; }
  .guardrail-panel { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .guardrail-panel .panel-heading, .guardrail-footnote { grid-column: 1 / -1; }
  .guardrail-progress { border-top: 1px solid #2a2a24; }
  .workflow-grid { grid-template-columns: 1fr 1fr; }
  .memory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid { grid-template-columns: 1fr 1fr; }
  #toast-root { bottom: 82px; }
}

@media (max-width: 620px) {
  .topbar { height: 57px; padding: 0 12px; }
  .breadcrumb { gap: 5px; font-size: 9px; }
  .breadcrumb > span { display: none; }
  .topbar-right { gap: 7px; }
  .global-search { width: 34px; min-width: 34px; justify-content: center; padding: 0; }
  .global-search > span, .global-search kbd { display: none; }
  .topbar-avatar { width: 27px; height: 27px; font-size: 9px; }
  .notification-button { width: 29px; height: 29px; }
  .page-content { padding: 23px 14px 100px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 20px; }
  .page-heading h1 { margin-top: 8px; font-size: 30px; }
  .page-heading p { font-size: 11px; }
  .page-heading-actions { width: 100%; justify-content: flex-start; }
  .page-heading-actions .button { min-height: 34px; }
  .page-demo-tag { font-size: 7px; }
  .overview-welcome { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 17px; }
  .overview-welcome h1 { margin: 9px 0 5px; font-size: 32px; }
  .overview-welcome > div:first-child > p { font-size: 10px; }
  .welcome-actions { width: 100%; gap: 7px; }
  .welcome-actions .button { min-height: 33px; padding: 0 10px; font-size: 9px; }
  .command-hero { min-height: 0; margin-bottom: 11px; border-radius: 15px; }
  .command-hero-main { padding: 18px 16px 13px; }
  .hero-kicker { font-size: 7px; }
  .command-hero h2 { margin: 11px 0 7px; font-size: 26px; }
  .command-hero-main > p { font-size: 9px; }
  .architecture-card { margin: 0 11px 12px; padding: 12px 10px 10px; }
  .architecture-caption { margin-bottom: 11px; font-size: 7px; }
  .architecture-step { min-width: 38px; gap: 5px; font-size: 6px; }
  .architecture-step-icon { width: 29px; height: 29px; border-radius: 8px; }
  .architecture-step-icon .icon { width: 14px; height: 14px; }
  .architecture-arrow { font-size: 15px; }
  .architecture-footer { margin-top: 10px; padding-top: 9px; font-size: 6px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 11px; }
  .stat-card { padding: 11px; border-radius: 11px; }
  .stat-label { font-size: 8px; }
  .stat-icon { width: 23px; height: 23px; }
  .stat-icon .icon { width: 14px; height: 14px; }
  .stat-value { margin-top: 7px; font-size: 22px; }
  .stat-note { font-size: 7px; }
  .overview-grid { grid-template-columns: 1fr; gap: 10px; }
  .overview-grid > .panel { padding: 14px; }
  .panel-heading h2 { font-size: 15px; }
  .panel-heading p { font-size: 9px; }
  .health-project-row { gap: 8px; }
  .health-project-info > span { font-size: 7px; }
  .health-progress { width: 62px; }
  .health-progress .progress-label { font-size: 8px; }
  .page-toolbar { flex-wrap: wrap; gap: 8px; margin-top: -2px; }
  .search-field { width: 100%; min-width: 0; }
  .toolbar-summary { width: 100%; margin-left: 0; text-align: right; }
  .project-grid, .expertise-grid, .agent-grid, .team-grid, .memory-grid, .workflow-grid { grid-template-columns: 1fr; }
  .project-card { padding: 14px; }
  .project-description { min-height: 0; }
  .project-card-footer { font-size: 7px; }
  .collab-mode-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
  .collab-mode-card { min-height: 83px; flex-direction: column; gap: 7px; padding: 10px; }
  .collab-mode-icon { width: 26px; height: 26px; }
  .collab-mode-copy strong { font-size: 9px; }
  .collab-mode-copy small { font-size: 7px; }
  .mode-select-mark { position: absolute; margin: -2px 0 0 0; align-self: flex-end; }
  .collab-mode-card { position: relative; }
  .collab-compose-panel, .collab-output-panel { padding: 13px; }
  .collab-compose-panel .panel-heading { gap: 7px; }
  .compose-options { margin: 13px 0; }
  .model-choice { gap: 5px; padding: 0 6px; }
  .model-choice > span:nth-child(2) { font-size: 8px; }
  .compose-footer { align-items: flex-start; flex-direction: column; }
  .compose-footer .button { align-self: flex-end; }
  .collab-output-panel { min-height: 295px; }
  .collab-empty { min-height: 265px; padding: 10px; }
  .parallel-output-grid { grid-template-columns: 1fr; }
  .response-column h4 { margin-top: 10px; }
  .single-response-grid { grid-template-columns: 1fr; }
  .expertise-intro { align-items: flex-start; padding: 10px; }
  .expertise-intro strong { font-size: 9px; }
  .expertise-intro > div:nth-child(2) > span { font-size: 8px; }
  .intro-stat { display: none; }
  .expertise-card { padding: 14px; }
  .team-builder-callout { align-items: flex-start; flex-wrap: wrap; }
  .team-builder-callout > .text-link { margin-left: 42px; }
  .agent-roster-intro { align-items: flex-start; flex-direction: column; }
  .team-card { padding: 14px; }
  .team-card h3 { font-size: 15px; }
  .team-member-chip { font-size: 7px; }
  .team-leader-strip .model-pill { font-size: 8px; }
  .memory-grid { gap: 9px; }
  .memory-card { min-height: 210px; padding: 13px; }
  .memory-legend { gap: 9px 13px; font-size: 7px; }
  .workflow-principles { flex-wrap: wrap; gap: 9px 13px; }
  .github-disclaimer { align-items: flex-start; flex-wrap: wrap; }
  .github-disclaimer > div:nth-child(2) { min-width: calc(100% - 50px); }
  .read-only-label { margin-left: 42px; }
  .approval-stats { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .approval-stats > div:not(.approval-stat-note) { padding: 10px; }
  .approval-stats > div > span { font-size: 7px; }
  .approval-stats > div > strong { font-size: 18px; }
  .approval-stats > div > small { font-size: 7px; }
  .approval-stat-note { grid-column: 1 / -1; }
  .review-card { padding: 11px; }
  .review-card-top { align-items: flex-start; gap: 7px; }
  .review-card-status { align-items: flex-end; flex-direction: column; gap: 4px; }
  .review-card-title h3 { max-width: 200px; font-size: 10px; }
  .review-card-meta { gap: 8px; }
  .review-card-footer { align-items: flex-start; flex-direction: column; }
  .review-card-footer .button { align-self: flex-end; }
  .usage-stat-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
  .usage-stat-grid .stat-card { padding: 11px; }
  .usage-main-grid { grid-template-columns: 1fr; }
  .usage-chart-panel, .guardrail-panel, .usage-breakdown-panel { padding: 13px; }
  .usage-chart { height: 183px; }
  .usage-chart svg { height: 160px; }
  .guardrail-panel { display: block; }
  .review-modal-facts { grid-template-columns: 1fr; }
  .review-modal-facts > div { display: grid; grid-template-columns: 85px 1fr; align-items: center; }
  .team-preview-summary { flex-direction: column; }
  .preview-summary-pills { flex-direction: row; flex-wrap: wrap; }
  .modal-backdrop { align-items: end; padding: 0; }
  .modal { width: 100%; max-height: 92vh; border-radius: 17px 17px 0 0; border-bottom: 0; }
  .modal-header { padding: 17px 16px 12px; }
  .modal-header h2 { font-size: 18px; }
  .modal-body { padding: 13px 15px calc(17px + env(safe-area-inset-bottom)); }
  .form-grid { grid-template-columns: 1fr; gap: 11px; }
  .field-wide { grid-column: auto; }
  .member-picker-grid { grid-template-columns: 1fr; }
  .form-actions { align-items: flex-start; flex-direction: column; }
  .form-actions > div { width: 100%; justify-content: flex-end; }
  .preview-actions > div { justify-content: flex-start; }
  #toast-root { right: 12px; bottom: 76px; left: 12px; }
  .toast { max-width: 100%; }
}

@media (max-width: 380px) {
  .page-content { padding-right: 11px; padding-left: 11px; }
  .topbar { padding-right: 8px; padding-left: 8px; }
  .breadcrumb { max-width: 135px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .welcome-actions .button { gap: 5px; padding: 0 8px; font-size: 8px; }
  .architecture-step { min-width: 32px; font-size: 5.5px; }
  .architecture-step-icon { width: 25px; height: 25px; }
  .architecture-arrow { font-size: 13px; }
  .architecture-footer { font-size: 5px; }
  .health-progress { width: 50px; }
  .health-project-title strong { max-width: 125px; }
  .project-card-footer { align-items: flex-start; flex-direction: column; }
  .collab-mode-card { min-height: 88px; }
  .review-card-title h3 { max-width: 145px; }
  .review-card-status .risk-mark { font-size: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Build Edition additions */
.quick-action-strip { display:flex; flex-wrap:wrap; align-items:center; gap:7px; margin:0 0 15px; padding:9px 11px; border:1px solid #292923; border-radius:11px; background:#131311; }
.quick-action-label { margin-right:4px; color:#76756d; font-size:7px; font-weight:740; letter-spacing:.13em; }
.quick-action-strip button { display:inline-flex; min-height:29px; align-items:center; gap:6px; padding:0 9px; border:1px solid #33332c; border-radius:7px; background:#1a1a17; color:#c8c1ac; font-size:8px; cursor:pointer; transition:border .18s ease,color .18s ease,background .18s ease; }
.quick-action-strip button:hover { border-color:#746442; background:#201e18; color:#e4d39d; }
.quick-action-strip button .icon { color:#b09b60; }
.overview-workflow-row { display:flex; align-items:center; gap:12px; padding:12px 0; border-top:1px solid #292923; }
.overview-workflow-row > div:first-child { display:flex; min-width:0; flex:1; flex-direction:column; align-items:flex-start; gap:4px; }
.overview-workflow-row strong { overflow:hidden; max-width:100%; color:#d7d4ca; font-size:9px; font-weight:580; text-overflow:ellipsis; white-space:nowrap; }
.overview-workflow-row small { color:#77766d; font-size:8px; }
.overview-workflow-row > .progress-wrap { width:95px; flex:0 0 auto; }
.provider-status-inline { display:flex; flex-direction:column; align-items:flex-start; gap:7px; margin-top:10px; padding-top:10px; border-top:1px solid #292923; color:#77766d; font-size:7px; }
.provider-status-list { display:flex; width:100%; flex-wrap:wrap; align-items:center; gap:7px 11px; }
.provider-status-list span { display:inline-flex; min-width:0; align-items:center; gap:5px; }
.provider-status-inline i { width:5px; height:5px; flex:0 0 auto; border-radius:50%; background:#6f7663; }
.provider-status-inline small { color:#63635c; font-size:7px; }

.project-title-button { display:flex; width:100%; align-items:center; gap:10px; margin-top:15px; padding:0; border:0; background:transparent; text-align:left; cursor:pointer; }
.project-title-button > span:nth-child(2) { display:flex; min-width:0; flex:1; flex-direction:column; gap:4px; }
.project-title-button strong { overflow:hidden; color:#e8e5dc; font-size:14px; font-weight:620; letter-spacing:-.025em; text-overflow:ellipsis; white-space:nowrap; }
.project-title-button small { color:#77776d; font-size:8px; }
.project-title-button > .icon { color:#6e6d64; transition:transform .18s ease,color .18s ease; }
.project-title-button:hover > .icon { transform:translateX(2px); color:#d4c18a; }
.project-objective-mini { min-height:43px; margin-bottom:10px; padding:8px 9px; border-left:2px solid #857447; border-radius:0 7px 7px 0; background:rgba(201,178,118,.045); }
.project-objective-mini > span { color:#91835e; font-size:7px; font-weight:730; letter-spacing:.11em; }
.project-objective-mini p { display:-webkit-box; overflow:hidden; margin:4px 0 0; color:#aaa79a; font-size:8px; line-height:1.45; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.project-tags { display:flex; flex-wrap:wrap; gap:5px; margin-bottom:12px; }
.project-tags span, .project-detail-tags span { padding:4px 6px; border:1px solid #33332d; border-radius:5px; background:#1a1a17; color:#aaa692; font-size:7px; }
.project-team-short { display:inline-flex; align-items:center; gap:4px; max-width:58%; overflow:hidden; color:#929087; font-size:8px; text-overflow:ellipsis; white-space:nowrap; }
.project-team-short .icon { flex:0 0 auto; color:#a08e5c; }
.project-card-menu { gap:4px; }
.project-card-menu .badge { max-width:105px; overflow:hidden; text-overflow:ellipsis; }
.project-detail-tabs { display:flex; gap:14px; overflow-x:auto; margin:-4px 0 14px; border-bottom:1px solid #2c2c26; scrollbar-width:none; }
.project-detail-tab { position:relative; min-height:32px; padding:0 3px 9px; border:0; background:transparent; color:#89887e; font-size:9px; white-space:nowrap; cursor:pointer; }
.project-detail-tab.active { color:#e0d1a2; }
.project-detail-tab.active::after { position:absolute; right:0; bottom:-1px; left:0; height:2px; border-radius:2px 2px 0 0; background:#c9b276; content:""; }
.project-detail-content { min-height:130px; }
.project-detail-overview { display:flex; flex-direction:column; gap:14px; }
.project-detail-summary { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.project-detail-summary > div { padding:11px; border:1px solid #30302a; border-radius:9px; background:#171715; }
.project-detail-summary span, .project-detail-facts > div > span, .project-detail-tags::before { color:#7e7d73; font-size:7px; font-weight:730; letter-spacing:.1em; }
.project-detail-summary p { margin:6px 0 0; color:#b3b0a5; font-size:9px; line-height:1.55; }
.project-detail-facts { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.project-detail-facts > div { display:flex; min-width:0; flex-direction:column; align-items:flex-start; gap:6px; padding:8px; border:1px solid #2d2d27; border-radius:8px; background:#151513; }
.project-detail-facts strong { overflow:hidden; max-width:100%; color:#c9c4b3; font-size:8px; font-weight:550; text-overflow:ellipsis; white-space:nowrap; }
.project-detail-facts .badge { min-height:18px; padding:0 5px; font-size:7px; }
.project-detail-tags { display:flex; flex-wrap:wrap; gap:5px; }
.project-detail-list { display:flex; flex-direction:column; gap:8px; }
.project-task-row, .project-memory-row, .project-activity-row { display:flex; align-items:center; gap:9px; padding:9px; border:1px solid #2d2d27; border-radius:8px; background:#171715; }
.task-status-mark { display:grid; width:24px; height:24px; flex:0 0 auto; place-items:center; border:1px solid #3b392f; border-radius:7px; color:#b9a66e; }
.task-complete { color:#a9c49c; border-color:#3d4b39; }
.task-in-review { color:#c9b276; }.task-in-progress { color:#c9b276; }.task-planned { color:#8c8b82; }
.project-task-row > div, .project-memory-row > div, .project-activity-row > div { display:flex; min-width:0; flex:1; flex-direction:column; gap:3px; }
.project-task-row strong, .project-memory-row strong, .project-activity-row strong { overflow:hidden; color:#d2cfc4; font-size:9px; font-weight:570; text-overflow:ellipsis; white-space:nowrap; }
.project-task-row small, .project-memory-row small, .project-activity-row small { overflow:hidden; color:#7e7d73; font-size:8px; text-overflow:ellipsis; white-space:nowrap; }
.project-memory-row .memory-type { flex:0 0 auto; }
.project-detail-actions { margin-top:16px; }

.collab-results-column { display:flex; min-width:0; flex-direction:column; gap:10px; }
.collab-agent-context { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0 0 10px; color:#8b897f; font-size:8px; }
.collab-agent-context > span:not(.model-pill) { display:inline-flex; align-items:center; gap:4px; }
.collab-agent-context > span .icon { color:#a18e59; }
.conversation-history { overflow:hidden; border:1px solid #292923; border-radius:12px; background:#141412; }
.conversation-history-head { display:flex; align-items:center; justify-content:space-between; padding:10px 12px; border-bottom:1px solid #292923; }
.conversation-history-head > div { display:flex; flex-direction:column; gap:4px; }
.conversation-history-head strong { color:#c9c5b8; font-size:9px; font-weight:560; }
.conversation-history-head > span { color:#77766d; font-size:8px; }
.conversation-history-row { display:flex; width:100%; align-items:center; gap:8px; padding:9px 11px; border:0; border-bottom:1px solid #25251f; background:transparent; text-align:left; cursor:pointer; }
.conversation-history-row:last-child { border-bottom:0; }
.conversation-history-row:hover, .conversation-history-row.current { background:#1c1b17; }
.conversation-history-row > span:nth-child(2) { display:flex; min-width:0; flex:1; flex-direction:column; gap:4px; }
.conversation-history-row strong { overflow:hidden; color:#c4c1b6; font-size:8px; font-weight:560; text-overflow:ellipsis; white-space:nowrap; }
.conversation-history-row small { overflow:hidden; color:#77766d; font-size:7px; text-overflow:ellipsis; white-space:nowrap; }
.conversation-history-row > .icon { color:#68675f; }
.history-run-status { display:grid; width:20px; height:20px; flex:0 0 auto; place-items:center; border:1px solid #38372f; border-radius:6px; color:#ae9b62; }
.history-run-status.complete { color:#a8bf9b; }
.conversation-history-empty { padding:11px; color:#77766d; font-size:8px; }

.expertise-mission { min-height:43px; margin:0 0 10px; padding:8px 9px; border-left:2px solid #8f7c4b; border-radius:0 7px 7px 0; background:rgba(201,178,118,.04); }
.expertise-mission > span { color:#90815b; font-size:7px; font-weight:730; letter-spacing:.1em; }
.expertise-mission p { display:-webkit-box; overflow:hidden; margin:4px 0 0; color:#aaa79c; font-size:8px; line-height:1.45; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.routing-label { color:#858278; font-size:7px; }
.expertise-card-footer { flex-wrap:wrap; }
.expertise-actions { flex-wrap:wrap; justify-content:flex-end; }
.expertise-card .subtle-icon-button { width:24px; height:24px; }
.expertise-test-modal { display:flex; flex-direction:column; gap:12px; }
.test-profile-summary { display:flex; align-items:center; gap:9px; padding:10px; border:1px solid #34332c; border-radius:9px; background:#171715; }
.test-profile-summary > div { display:flex; flex:1; flex-direction:column; gap:4px; }
.test-profile-summary strong { color:#dedacf; font-size:10px; }
.test-profile-summary small { color:#818076; font-size:8px; }
.expertise-test-modal .form-field textarea { width:100%; padding:9px 10px; border:1px solid #34342d; border-radius:8px; background:#111110; color:#e5e1d7; font-size:10px; line-height:1.55; }
.expertise-test-result { padding:10px; border:1px dashed #484337; border-radius:9px; color:#8a887e; font-size:8px; line-height:1.6; }
.test-result-heading { display:flex; align-items:center; gap:5px; color:#b6c6a7; font-size:9px; font-weight:600; }
.expertise-test-result p { margin:7px 0; color:#c0bdaf; }
.expertise-test-result small { color:#8b896f; }

.agent-card-facts { display:grid; grid-template-columns:1fr 1fr; gap:7px; margin-top:9px; padding-top:8px; border-top:1px solid #292923; }
.agent-card-facts > span { display:flex; min-width:0; flex-direction:column; gap:4px; }
.agent-card-facts small { color:#737269; font-size:7px; font-weight:720; letter-spacing:.08em; }
.agent-card-facts strong { overflow:hidden; color:#a9a69a; font-size:7px; font-weight:500; text-overflow:ellipsis; white-space:nowrap; }
.reviewer-picker-grid { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.member-select-option:has(input:disabled) { opacity:.5; }
.team-extra-meta { display:flex; flex-direction:column; gap:6px; padding:8px 0; border-top:1px solid #2a2a24; color:#89877c; font-size:7px; }
.team-extra-meta > span { display:flex; align-items:center; gap:5px; }
.team-extra-meta .icon { flex:0 0 auto; color:#aa9860; }
.team-preview-criteria { padding:9px 10px; border:1px solid #34332c; border-radius:8px; background:#171715; }
.team-preview-criteria > span { color:#858278; font-size:7px; font-weight:730; letter-spacing:.1em; }
.team-preview-criteria p { margin:5px 0 0; color:#b9b5a7; font-size:8px; line-height:1.55; }

.memory-card { position:relative; padding-bottom:39px; }
.memory-card-actions { position:absolute; right:11px; bottom:9px; }
.memory-card-actions .icon-button { width:25px; height:25px; }
.workflow-stage-copy { display:flex; min-width:0; flex:1; flex-direction:column; gap:3px; }
.workflow-stage-copy strong { overflow:hidden; color:#bdbbb1; font-size:8px; font-weight:550; text-overflow:ellipsis; white-space:nowrap; }
.workflow-stage-copy small { overflow:hidden; color:#77766d; font-size:7px; text-overflow:ellipsis; white-space:nowrap; }
.workflow-stage-row { align-items:flex-start; padding:4px 0; }
.workflow-stage-index { margin-top:1px; }
.workflow-failure-note { display:flex; align-items:flex-start; gap:6px; margin-top:9px; padding:8px; border:1px solid rgba(196,126,105,.19); border-radius:7px; background:rgba(196,126,105,.05); color:#c39787; font-size:8px; line-height:1.45; }
.workflow-failure-note .icon { flex:0 0 auto; }
.workflow-card-footer > div { display:flex; gap:5px; }
.workflow-card-footer .button { padding:0 7px; font-size:8px; }

.review-review-status { display:flex; flex-wrap:wrap; gap:8px 14px; margin:-2px 0 9px; color:#8c8a80; font-size:8px; }
.review-review-status span { display:inline-flex; align-items:center; gap:4px; }
.review-review-status .icon { color:#a59661; }
.development-repo-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.development-repo-card { padding:13px; }
.repo-detail-block { display:flex; flex-direction:column; gap:7px; margin-top:10px; padding-top:9px; border-top:1px solid #292923; }
.repo-detail-label { color:#77766d; font-size:7px; font-weight:730; letter-spacing:.1em; }
.branch-chip-row { display:flex; flex-wrap:wrap; gap:5px; }
.branch-chip-row > span { display:inline-flex; align-items:center; gap:4px; padding:4px 6px; border:1px solid #34332c; border-radius:5px; background:#1a1a17; color:#b7b09a; font-size:7px; }
.branch-chip-row .icon { color:#a79257; }
.commit-row { display:grid; grid-template-columns:auto 1fr; align-items:center; gap:4px 7px; }
.commit-row code { grid-row:span 2; padding:4px 5px; border-radius:4px; background:#22221d; color:#cab880; font-size:7px; }
.commit-row strong { overflow:hidden; color:#bcb9ae; font-size:8px; font-weight:550; text-overflow:ellipsis; white-space:nowrap; }
.commit-row small { color:#77766e; font-size:7px; }
.mock-pr-row, .mock-test-row { display:flex; align-items:center; gap:6px; color:#a7a499; font-size:8px; }
.mock-pr-row > span:nth-child(2), .mock-test-row > span:first-child { display:inline-flex; min-width:0; flex:1; align-items:center; gap:4px; }
.mock-pr-row > span:nth-child(2) { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mock-pr-row > .badge, .mock-test-row > .badge { min-height:17px; padding:0 5px; font-size:7px; }
.mock-none { color:#737269; font-size:8px; }

.settings-safety-banner { display:flex; align-items:center; gap:10px; margin:-6px 0 19px; padding:12px; border:1px solid rgba(201,178,118,.23); border-radius:10px; background:rgba(201,178,118,.05); }
.settings-safety-banner > .icon { flex:0 0 auto; color:#c2ac6c; }
.settings-safety-banner > div { display:flex; flex-direction:column; gap:4px; }
.settings-safety-banner strong { color:#d8cba6; font-size:10px; font-weight:620; }
.settings-safety-banner span { color:#918e82; font-size:8px; line-height:1.5; }
.settings-section-heading { display:flex; align-items:flex-end; justify-content:space-between; margin-bottom:11px; }
.settings-section-heading h2 { margin:5px 0 3px; color:#e3e0d6; font-size:15px; font-weight:580; }
.settings-section-heading p { margin:0; color:#818077; font-size:8px; }
.connection-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-bottom:14px; }
.connection-card { position:relative; min-width:0; padding:13px; border:1px solid #2d2d27; border-radius:12px; background:linear-gradient(145deg,#191916,#141412); }
.connection-icon { display:grid; width:32px; height:32px; margin-bottom:10px; place-items:center; border:1px solid #38352b; border-radius:9px; background:#211f19; color:#c0ab6c; }
.connection-card-top { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; }
.connection-card-top > div { display:flex; min-width:0; flex-direction:column; gap:4px; }
.connection-card h3 { margin:0; color:#dedacf; font-size:11px; font-weight:600; }
.connection-card-top > div > span { color:#817f75; font-size:8px; }
.connection-state { display:inline-flex; align-items:center; gap:4px; padding:4px 6px; border:1px solid #37362e; border-radius:5px; color:#a39f90; font-size:7px; white-space:nowrap; }
.connection-state i { width:5px; height:5px; border-radius:50%; background:#77766d; }
.connection-card p { min-height:25px; margin:8px 0 10px; color:#8b897e; font-size:8px; line-height:1.5; }
.storage-settings { padding:15px; }
.storage-settings .panel-heading { align-items:center; }
.storage-detail-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:13px 0 0; padding:11px 0; border-top:1px solid #2c2c26; border-bottom:1px solid #2c2c26; }
.storage-detail-grid > div { display:flex; min-width:0; flex-direction:column; gap:5px; }
.storage-detail-grid span { color:#77766d; font-size:7px; font-weight:730; letter-spacing:.08em; }
.storage-detail-grid strong { overflow:hidden; color:#b7b4a8; font-size:8px; font-weight:520; text-overflow:ellipsis; white-space:nowrap; }
.storage-settings .form-actions { border-top:0; }

@media (max-width: 820px) {
  .quick-action-strip { gap:6px; }
  .quick-action-label { width:100%; }
  .development-repo-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width: 620px) {
  .quick-action-strip { display:grid; grid-template-columns:1fr 1fr; gap:6px; padding:9px; }
  .quick-action-label { grid-column:1/-1; }
  .quick-action-strip button { justify-content:flex-start; min-height:33px; padding:0 7px; font-size:7px; }
  .provider-status-inline small { width:100%; margin-left:0; }
  .project-title-button strong { font-size:13px; }
  .project-detail-summary, .project-detail-facts { grid-template-columns:1fr 1fr; }
  .project-detail-actions { align-items:flex-start; }
  .project-detail-actions > div { width:100%; justify-content:flex-start; }
  .collab-results-column { min-width:0; }
  .reviewer-picker-grid { grid-template-columns:1fr; }
  .team-extra-meta { font-size:7px; }
  .development-repo-grid, .connection-grid { grid-template-columns:1fr; }
  .storage-detail-grid { grid-template-columns:1fr; }
  .storage-settings .form-actions { align-items:flex-start; }
  .workflow-card-footer { align-items:flex-start; flex-direction:column; }
  .workflow-card-footer > div { width:100%; justify-content:flex-end; }
  .review-modal-actions { align-items:flex-start; }
  .review-modal-actions > div { flex-wrap:wrap; }
}
.memory-final-decision { border-color:rgba(133,167,126,.22); background:rgba(133,167,126,.065); color:#b1c8a5; }
.memory-superseded-decision { border-color:#33332d; background:#191917; color:#85847b; text-decoration:line-through; }
.nav-item { position:relative; }

/* YCC v2.1 — refined Overview dashboard and responsive layout. */
.dashboard-welcome { margin-bottom: 20px; }
.dashboard-welcome h1 { font-family: var(--ycc-font-display); font-size: var(--ycc-text-display); font-weight: 500; letter-spacing: -.055em; }
.dashboard-welcome .eyebrow { color: #a49a7d; }
.dashboard-welcome > div:first-child > p { max-width: 610px; }
.dashboard-welcome .welcome-actions { flex: 0 0 auto; }
.dashboard-command-hero { min-height: 216px; margin-bottom: 14px; }
.dashboard-command-hero .architecture-card { max-width: 550px; justify-self: stretch; }
.dashboard-command-hero .architecture-caption { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dashboard-command-hero .architecture-step-icon { transition: transform var(--ycc-motion-standard), border-color var(--ycc-motion-standard); }
.dashboard-command-hero .architecture-step:hover .architecture-step-icon { transform: translateY(-2px); border-color: rgba(225, 208, 161, .48); }
.dashboard-kpi-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.dashboard-kpi-grid .stat-card { position: relative; min-height: 106px; padding: 13px 13px 12px; border-color: #2c2b25; border-radius: var(--ycc-radius-md); box-shadow: var(--ycc-shadow-card); transition: border-color var(--ycc-motion-standard), transform var(--ycc-motion-standard), background var(--ycc-motion-standard); }
.dashboard-kpi-grid .stat-card:hover { transform: translateY(-2px); border-color: #4a4434; background: linear-gradient(150deg, #1b1a17, #131311); }
.dashboard-kpi-grid .stat-top { gap: 5px; }
.dashboard-kpi-grid .stat-top-tools { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 5px; }
.dashboard-kpi-grid .ycc-demo-marker { padding: 2px 5px; font-size: 6px; }
.dashboard-kpi-grid .stat-icon { width: 25px; height: 25px; }
.dashboard-kpi-grid .stat-value { margin-top: 10px; font-variant-numeric: tabular-nums; }
.dashboard-kpi-grid .stat-note { line-height: 1.45; white-space: normal; }
.ycc-inline-demo { display: inline-flex; align-items: center; margin-left: 3px; padding: 3px 5px; border: 1px solid rgba(201, 178, 118, .19); border-radius: var(--ycc-radius-pill); background: rgba(201, 178, 118, .055); color: #c5b77f; font-size: 7px; font-weight: 730; letter-spacing: .1em; vertical-align: 1px; }
.dashboard-quick-actions { display: flex; align-items: stretch; gap: 16px; margin: 0 0 15px; padding: 12px 14px; border-color: #302f28; border-radius: var(--ycc-radius-md); background: linear-gradient(115deg, #151512, #111110); box-shadow: var(--ycc-shadow-card); }
.quick-action-head { display: flex; min-width: 142px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; }
.quick-action-head > div { display: flex; flex-direction: column; gap: 5px; }
.quick-action-head .section-kicker { color: #8d8261; font-size: 7px; }
.quick-action-head strong { color: #e3ded0; font-size: 12px; font-weight: 590; }
.quick-action-head > .ycc-demo-marker { font-size: 6px; }
.quick-action-items { display: grid; min-width: 0; flex: 1; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.quick-action-items > button { display: grid; min-width: 0; min-height: 54px; grid-template-columns: 32px minmax(0, 1fr) 12px; align-items: center; gap: 8px; padding: 7px 9px; border-color: #302f29; border-radius: 10px; background: #191916; color: #b9b5a8; text-align: left; }
.quick-action-items > button:hover { transform: translateY(-1px); border-color: #66583b; background: #201e18; color: #eadcb5; }
.quick-action-icon { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid rgba(201, 178, 118, .2); border-radius: 9px; background: rgba(201, 178, 118, .07); color: #c4ad6b; }
.quick-action-items > button > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.quick-action-items > button strong { overflow: hidden; color: #d7d1bf; font-size: 9px; font-weight: 610; text-overflow: ellipsis; white-space: nowrap; }
.quick-action-items > button small { overflow: hidden; color: #77766d; font-size: 7px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.quick-action-items > button > .icon { width: 12px; height: 12px; color: #77715c; }
.dashboard-grid-v21 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: stretch; gap: 13px; }
.dashboard-grid-v21 > .panel { min-width: 0; padding: 17px 18px 14px; border-color: #2b2a25; border-radius: var(--ycc-radius-lg); box-shadow: var(--ycc-shadow-card); }
.dashboard-project-panel { grid-column: span 7; }
.dashboard-approval-panel { grid-column: span 5; }
.dashboard-workflow-panel { grid-column: span 7; }
.dashboard-usage-panel { grid-column: span 5; }
.dashboard-workforce-panel { grid-column: span 7; }
.dashboard-activity-panel { grid-column: span 5; }
.dashboard-grid-v21 .panel-heading { min-height: 47px; }
.dashboard-grid-v21 .panel-heading h2 { margin-top: 6px; font-size: 16px; }
.dashboard-grid-v21 .panel-heading p { max-width: 500px; font-size: 9px; }
.dashboard-grid-v21 .panel-heading .stat-icon { margin-top: 1px; }
.dashboard-grid-v21 .panel-heading .text-link { margin-top: 5px; }
.dashboard-panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #292923; }
.dashboard-panel-foot > span { display: inline-flex; min-width: 0; align-items: center; gap: 5px; color: #77766d; font-size: 7px; line-height: 1.4; }
.dashboard-panel-foot > span .icon { flex: 0 0 auto; color: #9d8b57; }
.dashboard-panel-foot .text-link { flex: 0 0 auto; font-size: 8px; }
.dashboard-project-panel .dashboard-panel-foot { margin-top: 8px; }
.project-status-summary { margin-top: 10px; padding: 11px 12px 9px; border: 1px solid #2c2b25; border-radius: 10px; background: rgba(10, 10, 9, .22); }
.project-status-stack { display: flex; height: 7px; overflow: hidden; gap: 2px; border-radius: var(--ycc-radius-pill); background: #26251f; }
.project-status-stack > span { min-width: 4px; border-radius: var(--ycc-radius-pill); }
.status-active-segment { background: #9fb58c; }
.status-progress-segment { background: #c4aa68; }
.status-discovery-segment { background: #a791ad; }
.status-planning-segment { background: #74786f; }
.status-hold-segment { background: #c0806e; }
.project-status-legend { display: flex; flex-wrap: wrap; gap: 7px 13px; margin-top: 9px; }
.project-status-legend > span { display: inline-flex; align-items: center; gap: 5px; color: #88877d; font-size: 7px; white-space: nowrap; }
.project-status-legend i { width: 6px; height: 6px; border-radius: 50%; }
.project-status-legend strong { color: #d0cbbb; font-size: 7px; font-weight: 650; }
.dashboard-project-list { margin-top: 3px; }
.dashboard-project-row { display: grid; min-width: 0; grid-template-columns: 34px minmax(135px, 1.1fr) minmax(95px, .8fr) max-content; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #25251f; }
.dashboard-project-row:last-child { border-bottom: 0; }
.dashboard-project-row .project-monogram { width: 32px; height: 32px; border-radius: 9px; font-size: 11px; cursor: pointer; }
.dashboard-project-info { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.dashboard-project-title { display: flex; min-width: 0; align-items: center; gap: 6px; }
.dashboard-project-title > button { overflow: hidden; min-width: 0; padding: 0; border: 0; background: transparent; color: #dedacf; font-size: 9px; font-weight: 610; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.dashboard-project-title > button:hover { color: var(--ycc-color-champagne-bright); }
.dashboard-project-title .badge { min-height: 17px; padding: 0 5px; font-size: 7px; }
.dashboard-project-info > span { overflow: hidden; color: #77766d; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-project-progress { min-width: 0; }
.dashboard-project-progress-top { display: flex; justify-content: space-between; gap: 5px; margin-bottom: 5px; color: #77766d; font-size: 7px; }
.dashboard-project-progress-top strong { color: #c8b780; font-size: 7px; font-weight: 630; }
.dashboard-project-progress .progress-track { height: 4px; }
.dashboard-project-date { display: inline-flex; align-items: center; gap: 4px; color: #88867b; font-size: 7px; white-space: nowrap; }
.dashboard-project-date .icon { color: #a08c53; }
.dashboard-approval-panel .panel-heading { align-items: flex-start; }
.approval-count-badge { display: inline-grid; min-width: 32px; height: 32px; place-items: center; border: 1px solid rgba(201, 178, 118, .25); border-radius: 10px; background: rgba(201, 178, 118, .08); color: #deca8d; font-size: 11px; font-weight: 650; font-variant-numeric: tabular-nums; }
.dashboard-approval-list { margin-top: 9px; }
.dashboard-approval-row { display: grid; width: 100%; min-width: 0; grid-template-columns: 29px minmax(0, 1fr) auto 10px; align-items: center; gap: 8px; padding: 11px 0; border: 0; border-top: 1px solid #292923; background: transparent; text-align: left; cursor: pointer; }
.dashboard-approval-row:first-child { border-top: 0; }
.dashboard-approval-row:hover .dashboard-approval-copy strong { color: var(--ycc-color-champagne-bright); }
.dashboard-approval-icon { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid #3b3528; border-radius: 9px; background: rgba(201, 178, 118, .07); color: #c0a85f; }
.dashboard-approval-copy { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.dashboard-approval-copy > strong { overflow: hidden; color: #d0cdbf; font-size: 8px; font-weight: 590; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-approval-copy > small { overflow: hidden; color: #77766c; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-approval-row > .icon:last-child { color: #6f6e65; }
.dashboard-approval-row .risk-mark { padding: 3px 5px; font-size: 7px; }
.dashboard-empty-inline { display: flex; align-items: center; gap: 7px; padding: 16px 3px; color: #aab79c; font-size: 9px; }
.dashboard-workflow-list { margin-top: 9px; }
.dashboard-workflow-row { display: flex; min-width: 0; align-items: flex-start; gap: 10px; padding: 10px 0; border-top: 1px solid #292923; }
.dashboard-workflow-row:first-child { border-top: 0; }
.workflow-row-symbol { display: grid; width: 29px; height: 29px; flex: 0 0 auto; place-items: center; border: 1px solid #37342a; border-radius: 9px; background: #1b1a16; color: #baa665; }
.dashboard-workflow-main { min-width: 0; flex: 1; }
.dashboard-workflow-title { display: flex; min-width: 0; align-items: center; gap: 7px; }
.dashboard-workflow-title > strong { overflow: hidden; min-width: 0; flex: 1; color: #d6d2c6; font-size: 9px; font-weight: 590; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-workflow-title .badge { min-height: 17px; padding: 0 5px; font-size: 7px; }
.dashboard-workflow-main > small { display: block; overflow: hidden; margin-top: 4px; color: #77766c; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-workflow-progress { max-width: 260px; margin-top: 7px; }
.dashboard-workflow-progress .progress-label { font-size: 7px; }
.dashboard-usage-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 9px; }
.dashboard-usage-total > div { display: flex; flex-direction: column; gap: 4px; }
.dashboard-usage-total > div > span { color: #8b897e; font-size: 8px; }
.dashboard-usage-total > div > strong { color: #eee9dc; font-size: 25px; font-weight: 560; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.dashboard-usage-chart { display: flex; height: 73px; align-items: flex-end; gap: 8px; margin-top: 9px; padding: 7px 8px 0; border: 1px solid #292923; border-radius: 9px 9px 0 0; background: repeating-linear-gradient(to top, transparent 0, transparent 22px, rgba(255,255,255,.035) 23px, transparent 24px); }
.usage-bar { width: 100%; max-width: 33px; min-height: 5px; border: 1px solid rgba(201, 178, 118, .15); border-bottom: 0; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, rgba(201, 178, 118, .62), rgba(201, 178, 118, .13)); }
.usage-bar.current { border-color: rgba(225, 208, 161, .42); background: linear-gradient(180deg, #d5c080, rgba(201, 178, 118, .27)); }
.dashboard-usage-days { display: flex; justify-content: space-between; padding: 5px 1px 0; color: #6e6d64; font-size: 7px; }
.dashboard-provider-breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 10px; }
.dashboard-provider-breakdown > div, .workforce-model-row { display: flex; min-width: 0; align-items: center; gap: 6px; padding: 7px; border: 1px solid #2c2b25; border-radius: 8px; background: rgba(10, 10, 9, .18); }
.provider-mini-mark { display: inline-grid; width: 20px; height: 20px; flex: 0 0 auto; place-items: center; border-radius: 6px; font-size: 9px; font-weight: 740; }
.provider-mini-mark.gpt { background: rgba(140, 169, 131, .15); color: #b3d2a7; }
.provider-mini-mark.claude { background: rgba(200, 164, 122, .15); color: #e1bd90; }
.dashboard-provider-breakdown > div > span:nth-child(2), .workforce-model-row > span:nth-child(2) { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; overflow: hidden; color: #bdb8a8; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-provider-breakdown small, .workforce-model-row small { color: #77766c; font-size: 6px; font-weight: 720; letter-spacing: .08em; }
.dashboard-provider-breakdown > div > strong, .workforce-model-row > strong { color: #d0c18f; font-size: 8px; font-weight: 610; white-space: nowrap; }
.dashboard-usage-panel .dashboard-panel-foot { margin-top: 9px; }
.dashboard-workforce-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 10px 0 8px; }
.dashboard-workforce-summary > div { display: flex; min-width: 0; flex-direction: column; gap: 4px; padding: 8px 9px; border: 1px solid #2d2c26; border-radius: 9px; background: rgba(10, 10, 9, .2); }
.dashboard-workforce-summary strong { color: #e2d5a7; font-size: 15px; font-weight: 570; font-variant-numeric: tabular-nums; }
.dashboard-workforce-summary span { overflow: hidden; color: #7f7d72; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-workforce-team-list { display: flex; flex-direction: column; }
.workforce-team-row { display: grid; min-width: 0; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid #292923; }
.workforce-team-mark { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid #363329; border-radius: 8px; background: #1c1b17; color: #c0a962; }
.workforce-team-copy { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.workforce-team-copy strong { overflow: hidden; color: #d2cfc4; font-size: 8px; font-weight: 590; text-overflow: ellipsis; white-space: nowrap; }
.workforce-team-copy small { overflow: hidden; color: #77766c; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.workforce-team-size { display: flex; min-width: 43px; flex-direction: column; align-items: flex-end; gap: 2px; }
.workforce-team-size strong { color: #d5c489; font-size: 9px; font-weight: 630; }
.workforce-team-size small { color: #77766c; font-size: 6px; }
.dashboard-workforce-models { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 7px; }
.workforce-model-row { padding: 6px; }
.dashboard-workforce-models .workforce-model-row > strong { font-size: 7px; }
.dashboard-activity-panel .dashboard-activity-list { margin-top: 4px; }
.dashboard-activity-panel .activity-row { grid-template-columns: 27px minmax(0, 1fr) auto; gap: 8px; padding: 10px 0; }
.dashboard-activity-panel .activity-row > div strong { font-size: 8px; }
.dashboard-activity-panel .activity-row > div span { font-size: 7px; }
.dashboard-activity-panel .activity-row time { font-size: 7px; }
.dashboard-activity-panel .provider-status-inline { gap: 8px 12px; font-size: 7px; }
.dashboard-activity-panel .provider-status-inline small { font-size: 6px; }
.dashboard-grid-v21 .empty-state { min-height: 115px; }
.dashboard-grid-v21 .empty-state p { font-size: 8px; }
.dashboard-grid-v21 .empty-state .button { min-height: 31px; font-size: 9px; }

@media (max-width: 1280px) {
  .dashboard-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .dashboard-quick-actions { flex-direction: column; gap: 10px; }
  .quick-action-head { width: 100%; min-width: 0; flex-direction: row; align-items: center; justify-content: space-between; }
  .quick-action-head > div { gap: 3px; }
  .quick-action-items { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid-v21 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .dashboard-project-panel, .dashboard-activity-panel { grid-column: 1 / -1; }
  .dashboard-approval-panel, .dashboard-workflow-panel, .dashboard-usage-panel, .dashboard-workforce-panel { grid-column: span 3; }
}
@media (max-width: 900px) {
  .dashboard-grid-v21 { grid-template-columns: minmax(0, 1fr); }
  .dashboard-grid-v21 > .panel { grid-column: 1; }
  .dashboard-project-row { grid-template-columns: 34px minmax(145px, 1.15fr) minmax(100px, .85fr) max-content; }
}
@media (max-width: 820px) {
  .dashboard-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-grid-v21 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid-v21 > .dashboard-project-panel, .dashboard-grid-v21 > .dashboard-activity-panel { grid-column: 1 / -1; }
  .dashboard-grid-v21 > .dashboard-approval-panel, .dashboard-grid-v21 > .dashboard-workflow-panel, .dashboard-grid-v21 > .dashboard-usage-panel, .dashboard-grid-v21 > .dashboard-workforce-panel { grid-column: span 1; }
  .dashboard-quick-actions { flex-direction: row; }
  .quick-action-head { width: auto; min-width: 130px; flex-direction: column; align-items: flex-start; }
  .quick-action-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .dashboard-welcome { gap: 12px; }
  .dashboard-welcome h1 { font-size: 30px; }
  .dashboard-welcome .welcome-actions { gap: 6px; }
  .dashboard-welcome .welcome-actions .button { min-height: 34px; }
  .dashboard-command-hero { margin-bottom: 11px; }
  .dashboard-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .dashboard-kpi-grid .stat-card { min-height: 98px; padding: 10px; }
  .dashboard-kpi-grid .stat-label { font-size: 7px; }
  .dashboard-kpi-grid .stat-value { font-size: 21px; }
  .dashboard-kpi-grid .stat-note { font-size: 7px; }
  .dashboard-kpi-grid .stat-top-tools { gap: 4px; }
  .dashboard-kpi-grid .stat-icon { width: 22px; height: 22px; }
  .dashboard-quick-actions { flex-direction: column; gap: 9px; padding: 10px; }
  .quick-action-head { width: 100%; flex-direction: row; align-items: center; }
  .quick-action-items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .quick-action-items > button { min-height: 57px; grid-template-columns: 27px minmax(0, 1fr); gap: 7px; padding: 7px; }
  .quick-action-items > button > .icon { display: none; }
  .quick-action-icon { width: 27px; height: 27px; }
  .quick-action-items > button strong { font-size: 8px; }
  .quick-action-items > button small { font-size: 6px; }
  .dashboard-grid-v21 { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .dashboard-grid-v21 > .panel { grid-column: 1; padding: 13px 12px 11px; }
  .dashboard-grid-v21 .panel-heading { gap: 8px; }
  .dashboard-grid-v21 .panel-heading h2 { font-size: 15px; }
  .dashboard-grid-v21 .panel-heading p { font-size: 8px; }
  .dashboard-project-row { grid-template-columns: 31px minmax(0, 1fr) max-content; gap: 8px; padding: 9px 0; }
  .dashboard-project-row .project-monogram { width: 29px; height: 29px; }
  .dashboard-project-info { grid-column: 2 / 4; grid-row: 1; }
  .dashboard-project-title > button { font-size: 8px; }
  .dashboard-project-title .badge { min-height: 16px; font-size: 6px; }
  .dashboard-project-progress { grid-column: 2 / 4; grid-row: 2; }
  .dashboard-project-date { grid-column: 2 / 4; grid-row: 3; font-size: 7px; }
  .project-status-legend { gap: 7px 9px; }
  .project-status-legend > span { font-size: 6px; }
  .dashboard-approval-row { grid-template-columns: 27px minmax(0, 1fr) auto 9px; gap: 6px; }
  .dashboard-approval-row .risk-mark { font-size: 6px; }
  .dashboard-workforce-summary { gap: 5px; }
  .dashboard-workforce-summary > div { padding: 7px; }
  .dashboard-workforce-summary strong { font-size: 13px; }
  .workforce-team-copy strong { font-size: 7px; }
  .workforce-team-copy small { font-size: 6px; }
  .dashboard-panel-foot { align-items: flex-start; flex-direction: column; }
  .dashboard-panel-foot .text-link { align-self: flex-end; }
  .dashboard-activity-panel .activity-row { grid-template-columns: 26px minmax(0, 1fr) auto; }
  .dashboard-activity-panel .activity-row > div strong { font-size: 8px; }
  .dashboard-activity-panel .activity-row > div span { max-width: 225px; }
  .dashboard-activity-panel .provider-status-inline small { width: 100%; margin-left: 0; }
}
@media (max-width: 380px) {
  .dashboard-kpi-grid .stat-card { padding: 8px; }
  .dashboard-kpi-grid .stat-top-tools .ycc-demo-marker { font-size: 5px; }
  .dashboard-kpi-grid .stat-icon { width: 19px; height: 19px; }
  .dashboard-kpi-grid .stat-icon .icon { width: 13px; height: 13px; }
  .quick-action-items > button { grid-template-columns: 24px minmax(0, 1fr); gap: 5px; }
  .quick-action-icon { width: 24px; height: 24px; }
  .dashboard-approval-row { grid-template-columns: 24px minmax(0, 1fr) 9px; }
  .dashboard-approval-row .risk-mark { display: none; }
}

/* YCC v2.1 shell and navigation polish — preserves the existing 11-module routes. */
.app-shell { background: radial-gradient(ellipse at 82% -18%, rgba(201, 178, 118, .035), transparent 34%), var(--ycc-color-obsidian); }
.sidebar { border-right-color: rgba(201, 178, 118, .105); background: linear-gradient(180deg, #10100e, var(--ycc-color-charcoal) 52%, #0d0d0c); }
.brand-lockup { padding-bottom: 21px; }
.brand-symbol { border-radius: var(--ycc-radius-md); }
.workspace-switcher { border-color: rgba(201, 178, 118, .13); border-radius: var(--ycc-radius-md); }
.sidebar-nav { padding-top: 20px; }
.nav-section { margin-bottom: 21px; }
.nav-section-label { color: #77766d; }
.nav-item { min-height: 39px; border-radius: var(--ycc-radius-sm); transition: color var(--ycc-motion-standard), background var(--ycc-motion-standard), border-color var(--ycc-motion-standard); }
.nav-item .nav-label { font-size: 11px; }
.nav-item.active { border-color: rgba(201, 178, 118, .18); background: linear-gradient(90deg, rgba(201, 178, 118, .15), rgba(201, 178, 118, .035)); box-shadow: inset 0 1px rgba(255, 255, 255, .018); }
.nav-item.active::before { left: 0; width: 2px; height: 21px; margin-left: 0; border-radius: 0 3px 3px 0; }
.nav-count { border-radius: var(--ycc-radius-pill); }
.topbar { border-bottom-color: rgba(201, 178, 118, .12); background: rgba(11, 11, 10, .92); }
.breadcrumb strong { color: #e4dfd1; }
.global-search { border-color: #302f29; border-radius: var(--ycc-radius-sm); background: rgba(21, 21, 18, .85); }
.global-search:focus-visible { border-color: var(--ycc-color-champagne); }
.mobile-bottom-nav { border-top-color: rgba(201, 178, 118, .16); background: rgba(15, 15, 13, .96); box-shadow: 0 -10px 32px rgba(0, 0, 0, .18); }
.mobile-nav-item { min-height: 49px; border: 1px solid transparent; border-radius: var(--ycc-radius-md); transition: color var(--ycc-motion-standard), background var(--ycc-motion-standard), border-color var(--ycc-motion-standard); }
.mobile-nav-item span { font-size: 8px; letter-spacing: .01em; }
.mobile-nav-item.active { border-color: rgba(201, 178, 118, .14); background: rgba(201, 178, 118, .075); color: var(--ycc-color-champagne-bright); }
.footer-note { max-width: 720px; color: #77766d; line-height: 1.5; }

@media (max-width: 820px) {
  .sidebar-nav { padding-top: 17px; }
  .mobile-nav-item { min-height: 50px; }
}
@media (max-width: 620px) {
  .topbar { border-bottom-color: rgba(201, 178, 118, .14); }
  .mobile-bottom-nav { padding-top: 6px; }
  .mobile-nav-item { min-height: 47px; }
}

/* YCC v2.2 — multi-provider catalog and financial-analysis workspaces. */
.model-pill { max-width: 100%; }
.model-pill-copy { overflow: hidden; max-width: 148px; text-overflow: ellipsis; white-space: nowrap; }
.model-provider-google-gemini .model-mark { background: rgba(161, 141, 197, .16); color: #c2b0e2; }
.model-provider-xai .model-mark, .model-provider-openrouter .model-mark { background: rgba(174, 174, 164, .12); color: #d3d0c4; }
.model-provider-deepseek .model-mark, .model-provider-cohere .model-mark { background: rgba(112, 156, 151, .15); color: #a9d0c5; }
.model-provider-mistral-ai .model-mark, .model-provider-fireworks-ai .model-mark { background: rgba(190, 143, 114, .16); color: #dfb38e; }
.model-provider-perplexity .model-mark, .model-provider-groq .model-mark { background: rgba(142, 166, 119, .14); color: #bed19e; }
.model-provider-together-ai .model-mark, .model-provider-custom-openai-compatible .model-mark { background: rgba(176, 148, 179, .14); color: #cfb2d1; }
.provider-management { margin-bottom: 21px; }
.provider-management .settings-section-heading { margin-bottom: 12px; }
.provider-management .settings-section-heading h2 { font-size: 19px; }
.provider-management .settings-section-heading p { max-width: 680px; line-height: 1.6; }
.provider-routing-panel { margin-bottom: 12px; padding: 17px 18px 14px; }
.provider-routing-panel .panel-heading { align-items: center; }
.provider-routing-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 13px; }
.provider-routing-fields .form-field { margin: 0; }
.provider-routing-panel .ycc-demo-marker { font-size: 6px; }
.provider-safety-note { display: flex; align-items: flex-start; gap: 7px; margin-top: 11px; padding-top: 10px; border-top: 1px solid #292923; color: #858176; font-size: 8px; line-height: 1.55; }
.provider-safety-note .icon { flex: 0 0 auto; color: #aa975c; }
.provider-catalog-note { display: flex; align-items: flex-start; gap: 7px; margin: 11px 0; padding: 9px 11px; border: 1px solid rgba(201, 178, 118, .17); border-radius: 9px; background: rgba(201, 178, 118, .035); color: #9c957f; font-size: 8px; line-height: 1.5; }
.provider-catalog-note .icon { flex: 0 0 auto; color: #c0a86a; }
.provider-catalog-note strong { color: #d4c697; }
.provider-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 11px; }
.provider-card { display: flex; min-width: 0; flex-direction: column; padding: 13px; border: 1px solid #302f29; border-radius: 14px; background: linear-gradient(150deg, #191916, #121210); box-shadow: var(--ycc-shadow-card); transition: border-color var(--ycc-motion-standard), transform var(--ycc-motion-standard); }
.provider-card:hover { transform: translateY(-1px); border-color: #4b4435; }
.provider-card.provider-disabled { background: linear-gradient(150deg, #171715, #111110); }
.provider-card-head { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 9px; }
.provider-brand-mark { display: grid; width: 33px; height: 33px; place-items: center; border: 1px solid #403a2c; border-radius: 10px; background: rgba(201, 178, 118, .09); color: #e1d09c; font-size: 12px; font-weight: 700; }
.provider-card-title { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.provider-card-title strong { overflow: hidden; color: #e1ddd2; font-size: 10px; font-weight: 630; text-overflow: ellipsis; white-space: nowrap; }
.provider-card-title small { overflow: hidden; color: #78776e; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.provider-enabled-state { display: inline-flex; align-items: center; gap: 5px; padding: 4px 6px; border: 1px solid #39382f; border-radius: var(--ycc-radius-pill); color: #929087; font-size: 6px; font-weight: 690; white-space: nowrap; }
.provider-enabled-state > i { width: 5px; height: 5px; border-radius: 50%; background: #76766b; }
.provider-enabled-state.is-enabled { border-color: rgba(133, 167, 126, .23); background: rgba(133, 167, 126, .06); color: #b6c7a8; }
.provider-enabled-state.is-enabled > i { background: #a4bf8f; }
.provider-connect-status { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 7px; margin-top: 10px; padding: 7px 8px; border: 1px solid #282822; border-radius: 8px; background: rgba(8, 8, 7, .19); }
.provider-connect-status > span:first-child { display: inline-flex; align-items: center; gap: 5px; color: #8b897e; font-size: 7px; white-space: nowrap; }
.provider-connect-status .icon { color: #a3925c; }
.provider-endpoint-label { overflow: hidden; color: #77766c; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.provider-model-heading { display: flex; align-items: center; justify-content: space-between; margin: 12px 1px 6px; color: #888578; font-size: 7px; font-weight: 720; letter-spacing: .1em; }
.provider-model-heading > span:last-child { color: #6f6e66; font-size: 7px; font-weight: 500; letter-spacing: 0; }
.provider-model-list { display: flex; min-height: 0; flex: 1; flex-direction: column; }
.provider-model-row { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) 25px 36px; align-items: center; gap: 4px; padding: 7px 0; border-top: 1px solid #292923; }
.provider-model-row.model-disabled { opacity: .54; }
.provider-model-info { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.provider-model-info strong { overflow: hidden; color: #c9c5b9; font-size: 8px; font-weight: 590; text-overflow: ellipsis; white-space: nowrap; }
.provider-model-info small { overflow: hidden; color: #74736a; font-size: 6px; text-overflow: ellipsis; white-space: nowrap; }
.provider-model-edit { width: 24px; height: 24px; }
.provider-model-row .toggle-control { width: 32px; height: 19px; }
.provider-model-empty { padding: 10px 0; color: #78766d; font-size: 8px; }
.provider-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: 8px; padding-top: 8px; border-top: 1px solid #292923; }
.provider-card-foot > span { display: flex; min-width: 0; align-items: center; gap: 4px; color: #77766d; font-size: 6px; line-height: 1.4; }
.provider-card-foot > span .icon { flex: 0 0 auto; color: #978757; }
.provider-card-foot > div { display: inline-flex; align-items: center; gap: 4px; }
.provider-card-foot .button { min-height: 25px; gap: 4px; padding: 0 6px; font-size: 7px; }
.provider-main-toggle { width: 33px; height: 20px; }
.custom-profile-section { margin-top: 9px; padding: 9px; border: 1px solid rgba(201, 178, 118, .15); border-radius: 9px; background: rgba(9, 9, 8, .22); }
.custom-profile-heading { display: flex; align-items: center; justify-content: space-between; gap: 7px; color: #918872; font-size: 7px; font-weight: 700; letter-spacing: .08em; }
.custom-profile-heading .button { min-height: 24px; white-space: nowrap; }
.custom-profile-list { display: flex; max-height: 145px; flex-direction: column; gap: 4px; overflow-y: auto; margin-top: 6px; }
.custom-profile-row { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 6px 0; border-top: 1px solid #292923; }
.custom-profile-copy { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.custom-profile-copy strong { overflow: hidden; color: #d0c7ad; font-size: 8px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.custom-profile-copy small { overflow: hidden; color: #77766d; font-size: 6px; text-overflow: ellipsis; white-space: nowrap; }
.custom-profile-row > div:last-child { display: inline-flex; gap: 3px; }
.custom-profile-row .icon-button { width: 24px; height: 24px; }
.custom-profile-empty { margin: 7px 0 2px; color: #77766d; font-size: 7px; line-height: 1.5; }
.custom-profile-safety { display: flex; align-items: flex-start; gap: 5px; margin-top: 5px; color: #77766d; font-size: 6px; line-height: 1.45; }
.custom-profile-safety .icon { flex: 0 0 auto; color: #aa975c; }

.financial-safety-banner { display: flex; align-items: flex-start; gap: 10px; margin: -7px 0 14px; padding: 12px 14px; border: 1px solid rgba(196, 126, 105, .2); border-radius: 11px; background: linear-gradient(110deg, rgba(196, 126, 105, .075), rgba(201, 178, 118, .035)); }
.financial-safety-banner > .icon { flex: 0 0 auto; margin-top: 1px; color: #d6a08b; }
.financial-safety-banner > div { display: flex; flex-direction: column; gap: 4px; }
.financial-safety-banner strong { color: #e2c7b4; font-size: 10px; font-weight: 650; line-height: 1.45; }
.financial-safety-banner span { color: #a09689; font-size: 8px; line-height: 1.55; }
.financial-market-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-bottom: 13px; }
.financial-market-overview > div { display: flex; min-width: 0; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid #2e2d27; border-radius: 10px; background: linear-gradient(145deg, #181815, #121210); }
.financial-market-overview span { color: #77766d; font-size: 7px; font-weight: 670; letter-spacing: .07em; text-transform: uppercase; }
.financial-market-overview strong { overflow: hidden; color: #d2cbb8; font-size: 9px; font-weight: 570; text-overflow: ellipsis; white-space: nowrap; }
.financial-market-overview .market-unavailable { color: #d0a28d; }
.forex-analysis-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px; }
.forex-analysis-grid > .panel { min-width: 0; padding: 16px; }
.financial-chart-panel, .stock-chart-panel { overflow: hidden; }
.financial-chart-empty { position: relative; display: grid; min-height: 235px; overflow: hidden; place-items: center; margin-top: 12px; border: 1px solid #2b2a25; border-radius: 10px; background: linear-gradient(145deg, rgba(14, 14, 12, .92), rgba(18, 18, 16, .92)); }
.financial-chart-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(201, 178, 118, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(201, 178, 118, .04) 1px, transparent 1px); background-size: 100% 25%, 12.5% 100%; opacity: .65; }
.financial-chart-empty-copy { position: relative; z-index: 1; display: flex; max-width: 300px; flex-direction: column; align-items: center; gap: 8px; padding: 16px; text-align: center; }
.financial-chart-empty-copy .icon { color: #b5a063; }
.financial-chart-empty-copy strong { color: #d0c9b5; font-size: 10px; font-weight: 600; }
.financial-chart-empty-copy span { color: #858176; font-size: 8px; line-height: 1.55; }
.financial-instrument-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 11px; }
.financial-instrument-fields .form-field { margin: 0; }
.financial-fundamental-panel .panel-heading, .financial-technical-notes .panel-heading { margin-bottom: 10px; }
.fundamental-empty-state { display: flex; align-items: center; gap: 8px; margin: 10px 0; padding: 9px; border: 1px solid #343129; border-radius: 8px; background: rgba(201, 178, 118, .045); color: #b4a470; }
.fundamental-empty-state > span { display: flex; flex-direction: column; gap: 3px; }
.fundamental-empty-state strong { color: #c9c0a8; font-size: 8px; font-weight: 590; }
.fundamental-empty-state small { color: #827f72; font-size: 7px; }
.financial-scenario-panel { grid-column: 1 / -1; padding: 17px 18px 14px; }
.financial-scenario-panel .panel-heading { margin-bottom: 12px; }
.financial-analysis-form { margin-top: 12px; }
.financial-analysis-form > .panel-heading { margin-bottom: 12px; }
.financial-analysis-form .form-field textarea { min-height: 78px; }
.financial-calculation-note { display: flex; align-items: flex-start; gap: 7px; margin-top: 10px; padding: 9px; border: 1px solid rgba(201, 178, 118, .15); border-radius: 8px; background: rgba(201, 178, 118, .035); color: #9c947f; font-size: 7px; line-height: 1.55; }
.financial-calculation-note .icon { flex: 0 0 auto; color: #c2a969; }
.financial-result-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: start; gap: 12px; margin-top: 13px; }
.financial-analysis-result { min-width: 0; padding: 16px; border: 1px solid #302f29; border-radius: var(--ycc-radius-lg); background: linear-gradient(145deg, #191916, #121210); box-shadow: var(--ycc-shadow-card); }
.analysis-outcome-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 11px; color: #8b887c; font-size: 7px; }
.outcome-chip { display: inline-flex; min-width: 45px; justify-content: center; padding: 5px 8px; border: 1px solid #403b2e; border-radius: var(--ycc-radius-pill); background: #211f19; color: #e2cf93; font-size: 8px; font-weight: 760; letter-spacing: .08em; }
.outcome-buy { border-color: rgba(133, 167, 126, .24); background: rgba(133, 167, 126, .08); color: #bbd0ad; }
.outcome-sell { border-color: rgba(196, 126, 105, .25); background: rgba(196, 126, 105, .08); color: #d7a08d; }
.outcome-wait { border-color: rgba(201, 178, 118, .22); background: rgba(201, 178, 118, .07); color: #dac88f; }
.analysis-result-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.analysis-result-heading h3 { margin: 5px 0 0; color: #e7e2d5; font-size: 15px; font-weight: 580; }
.analysis-created-at { color: #77766c; font-size: 7px; text-align: right; }
.analysis-result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.analysis-result-grid > div, .analysis-result-values > div, .analysis-input-levels > div { min-width: 0; padding: 9px; border: 1px solid #2b2a24; border-radius: 8px; background: rgba(8, 8, 7, .17); }
.analysis-result-grid > div > span, .financial-metric > span { display: block; margin-bottom: 5px; color: #8b8778; font-size: 7px; font-weight: 660; letter-spacing: .035em; }
.analysis-result-grid p { margin: 0; color: #c2bdaf; font-size: 8px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.analysis-result-values, .analysis-input-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.financial-metric { min-width: 0; padding: 8px; border: 1px solid #2b2a24; border-radius: 8px; background: rgba(8, 8, 7, .14); }
.financial-metric strong { display: block; overflow: hidden; color: #d2cbb6; font-size: 8px; font-weight: 580; text-overflow: ellipsis; white-space: nowrap; }
.financial-risk-block { margin-top: 10px; padding: 10px; border: 1px solid #343129; border-radius: 9px; background: rgba(201, 178, 118, .035); }
.financial-risk-block > .section-kicker { margin-bottom: 7px; font-size: 7px; }
.financial-risk-result { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.financial-risk-result > div { display: flex; min-width: 0; flex-direction: column; gap: 4px; padding: 7px; border-radius: 7px; background: rgba(6, 6, 5, .21); }
.financial-risk-result > div > span { color: #858073; font-size: 6px; }
.financial-risk-result > div > strong { overflow: hidden; color: #d6c58f; font-size: 8px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.financial-risk-result.is-wait, .financial-risk-result.is-invalid { display: flex; flex-direction: column; gap: 4px; color: #9d9785; font-size: 8px; line-height: 1.5; }
.financial-risk-result.is-wait strong { color: #d5c68e; }
.financial-risk-result.is-invalid strong { color: #d7a08d; }
.financial-calculation-caveat { margin: 7px 0 0; color: #77756a; font-size: 6px; line-height: 1.5; }
.analysis-provenance { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; padding-top: 9px; border-top: 1px solid #292923; }
.analysis-provenance > span { display: inline-flex; min-width: 0; align-items: flex-start; gap: 4px; color: #77766c; font-size: 6px; line-height: 1.45; }
.analysis-provenance .icon { flex: 0 0 auto; color: #a18e59; }
.financial-history-panel { margin-top: 13px; padding: 16px 18px; }
.financial-history-list { margin-top: 8px; }
.financial-history-row { display: flex; min-width: 0; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid #292923; }
.financial-history-row:first-child { border-top: 0; }
.financial-history-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 4px; }
.financial-history-copy strong { overflow: hidden; color: #d4d0c4; font-size: 8px; font-weight: 590; text-overflow: ellipsis; white-space: nowrap; }
.financial-history-copy small { overflow: hidden; color: #77766c; font-size: 6px; text-overflow: ellipsis; white-space: nowrap; }
.financial-history-row .button { min-height: 27px; font-size: 7px; }
.financial-team-panel { min-width: 0; padding: 16px 17px; }
.financial-team-panel .panel-heading { align-items: flex-start; }
.financial-team-panel .panel-heading h2 { font-size: 13px; line-height: 1.35; }
.financial-team-panel .panel-heading p { font-size: 8px; }
.financial-team-roster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 11px 0; }
.financial-team-roster > span { display: flex; min-width: 0; flex-direction: column; gap: 3px; padding: 7px; border: 1px solid #2b2a24; border-radius: 8px; background: rgba(8, 8, 7, .16); }
.financial-team-roster > span > i { display: grid; width: 21px; height: 21px; place-items: center; margin-bottom: 2px; border: 1px solid rgba(201, 178, 118, .2); border-radius: 6px; background: rgba(201, 178, 118, .07); color: #d3c28c; font-size: 8px; font-style: normal; font-weight: 720; }
.financial-team-roster strong { overflow: hidden; color: #c9c5b9; font-size: 7px; font-weight: 590; text-overflow: ellipsis; white-space: nowrap; }
.financial-team-roster small { overflow: hidden; color: #77766c; font-size: 6px; text-overflow: ellipsis; white-space: nowrap; }
.financial-flow-heading { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin: 9px 0 6px; color: #888476; font-size: 7px; font-weight: 710; letter-spacing: .08em; }
.financial-flow-heading small { color: #77766c; font-size: 6px; font-weight: 500; letter-spacing: 0; }
.financial-flow-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.financial-flow-step { display: flex; min-width: 0; align-items: flex-start; gap: 6px; padding: 7px; border: 1px solid #2b2a24; border-radius: 7px; background: rgba(8, 8, 7, .14); }
.financial-flow-step > span { display: grid; width: 19px; height: 19px; flex: 0 0 auto; place-items: center; border: 1px solid #403c2f; border-radius: 6px; color: #a9965d; font-size: 6px; }
.financial-flow-step.is-done > span { border-color: rgba(133, 167, 126, .28); color: #b5c9a6; }
.financial-flow-step.is-current { border-color: rgba(201, 178, 118, .36); }
.financial-flow-step > div { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.financial-flow-step strong { color: #c3bfae; font-size: 6px; font-weight: 580; line-height: 1.4; }
.financial-flow-step small { color: #79776d; font-size: 6px; }
.financial-team-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 9px; border-top: 1px solid #292923; }
.financial-team-actions > span { display: flex; min-width: 0; align-items: flex-start; gap: 4px; color: #858174; font-size: 6px; line-height: 1.45; }
.financial-team-actions > span .icon { flex: 0 0 auto; color: #a69054; }
.financial-team-actions > div { display: flex; flex: 0 0 auto; gap: 5px; }
.financial-team-actions .button { font-size: 7px; }
.financial-team-result { margin-top: 10px; padding-top: 9px; border-top: 1px solid #302e27; }
.financial-team-result-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: #77766c; font-size: 6px; }
.financial-team-result > p { margin: 7px 0; padding: 8px; border-left: 2px solid #baa363; border-radius: 0 6px 6px 0; background: rgba(201, 178, 118, .05); color: #c2baa5; font-size: 7px; line-height: 1.55; }
.financial-individual-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.financial-individual-checks > div { padding: 7px; border: 1px solid #2a2923; border-radius: 7px; background: rgba(8, 8, 7, .13); }
.financial-individual-checks strong { display: block; color: #c4c0b4; font-size: 6px; font-weight: 620; }
.financial-individual-checks small { display: block; margin: 3px 0; color: #ab9560; font-size: 5px; font-weight: 700; letter-spacing: .06em; }
.financial-individual-checks p { margin: 0; color: #858176; font-size: 6px; line-height: 1.45; }
.financial-team-empty { margin-top: 9px; padding: 9px; border: 1px dashed #3b382f; border-radius: 8px; color: #868174; font-size: 7px; line-height: 1.55; }

.stock-workspace-top { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); align-items: stretch; gap: 12px; margin-bottom: 12px; }
.stock-workspace-top > .panel, .stock-information-panel, .stock-chart-panel, .stock-portfolio-panel { min-width: 0; padding: 16px; }
.stock-workspace-top .panel-heading { align-items: flex-start; }
.stock-workspace-top .panel-heading .button { flex: 0 0 auto; }
.stock-watchlist-list { margin-top: 9px; }
.stock-watchlist-row { display: flex; align-items: center; gap: 6px; border-top: 1px solid #292923; }
.stock-watchlist-row.selected { background: linear-gradient(90deg, rgba(201, 178, 118, .07), transparent); }
.stock-watchlist-select { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 4px; padding: 9px 5px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.stock-watchlist-select strong { color: #dcd6c7; font-size: 9px; font-weight: 650; }
.stock-watchlist-select span { color: #a9a392; font-size: 7px; }
.stock-watchlist-select small { color: #77766c; font-size: 6px; }
.stock-watchlist-row .icon-button { width: 25px; height: 25px; }
.provider-state-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border: 1px solid #34332c; border-radius: var(--ycc-radius-pill); color: #999385; font-size: 6px; font-weight: 740; letter-spacing: .06em; white-space: nowrap; }
.stock-overview-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 11px; }
.stock-source-note { margin-top: 8px; color: #7d7a70; font-size: 6px; line-height: 1.5; }
.stock-information-grid-main { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 10px; margin-bottom: 12px; }
.stock-information-panel .panel-heading, .stock-chart-panel .panel-heading { margin-bottom: 9px; }
.stock-information-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.stock-information-grid .financial-metric { padding: 7px; }
.stock-information-grid .financial-metric strong { font-size: 7px; }
.stock-text-metric { padding: 8px; border: 1px solid #2b2a24; border-radius: 8px; background: rgba(8, 8, 7, .14); }
.stock-text-metric > span { color: #858174; font-size: 6px; font-weight: 660; }
.stock-text-metric p { margin: 5px 0 0; color: #c2bdaf; font-size: 7px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.stock-chart-empty { min-height: 155px; margin-top: 7px; }
.stock-chart-empty .financial-chart-empty-copy { gap: 6px; }
.stock-portfolio-panel { margin-bottom: 12px; }
.stock-portfolio-summary { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; padding: 10px; border: 1px solid #302e27; border-radius: 9px; background: rgba(201, 178, 118, .04); }
.stock-portfolio-summary span { color: #8a8678; font-size: 7px; }
.stock-portfolio-summary strong { color: #d8c58e; font-size: 16px; font-weight: 570; }
.stock-portfolio-summary small { color: #76746a; font-size: 6px; }
.stock-portfolio-list { display: flex; flex-direction: column; gap: 5px; }
.stock-portfolio-list > div { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-top: 1px solid #292923; }
.stock-portfolio-list strong { color: #c9c4b7; font-size: 7px; }
.stock-portfolio-list span { color: #858175; font-size: 6px; text-align: right; }
.stock-portfolio-empty { color: #7d7a70; font-size: 7px; }
.stock-analysis-form { padding: 17px 18px 14px; }
.stock-analysis-form .form-grid { margin-top: 12px; }
.stock-empty-workspace { margin-top: 12px; padding: 12px; }
.stock-empty-workspace .empty-state { min-height: 170px; }

@media (max-width: 1200px) {
  .provider-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stock-information-grid-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1020px) {
  .financial-result-grid { grid-template-columns: 1fr; }
  .financial-team-roster { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .financial-team-panel .panel-heading h2 { max-width: 650px; }
  .stock-workspace-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .provider-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .forex-analysis-grid { grid-template-columns: 1fr 1fr; }
  .financial-scenario-panel { grid-column: 1 / -1; }
  .financial-market-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stock-information-grid-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .financial-team-roster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .provider-grid { grid-template-columns: 1fr; }
  .provider-routing-fields { grid-template-columns: 1fr; gap: 8px; }
  .provider-card { padding: 11px; }
  .provider-card-foot { align-items: flex-start; flex-direction: column; }
  .provider-card-foot > div { width: 100%; justify-content: flex-end; }
  .financial-market-overview { gap: 6px; }
  .financial-market-overview > div { padding: 8px; }
  .financial-market-overview strong { font-size: 8px; }
  .forex-analysis-grid, .financial-result-grid, .stock-workspace-top, .stock-information-grid-main { grid-template-columns: 1fr; }
  .financial-scenario-panel { grid-column: 1; }
  .financial-scenario-panel, .stock-analysis-form { padding: 13px 12px 11px; }
  .financial-instrument-fields { grid-template-columns: 1fr 1fr; }
  .analysis-result-grid { grid-template-columns: 1fr; }
  .analysis-result-values, .analysis-input-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .financial-risk-result { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .financial-history-row { flex-wrap: wrap; }
  .financial-history-copy { min-width: calc(100% - 65px); }
  .financial-history-row .button { flex: 1; }
  .financial-team-actions { align-items: flex-start; flex-direction: column; }
  .financial-team-actions > div { width: 100%; justify-content: flex-end; }
  .financial-flow-steps, .financial-individual-checks { grid-template-columns: 1fr; }
  .stock-information-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stock-portfolio-list > div { align-items: flex-start; flex-direction: column; }
  .stock-portfolio-list span { text-align: left; }
  .provider-routing-panel { padding: 13px 12px; }
}
@media (max-width: 380px) {
  .financial-market-overview > div { padding: 7px; }
  .financial-market-overview span { font-size: 6px; }
  .financial-market-overview strong { font-size: 7px; }
  .provider-card-head { grid-template-columns: 30px minmax(0, 1fr); }
  .provider-enabled-state { grid-column: 2; justify-self: start; }
  .provider-brand-mark { width: 29px; height: 29px; }
  .financial-team-roster { grid-template-columns: 1fr 1fr; }
  .financial-team-actions > div { flex-wrap: wrap; }
  .financial-team-actions .button { flex: 1; }
}

/* Provider-aware roster marks for the v2.2 multi-provider catalog. */
.avatar-provider { border-color: rgba(201, 178, 118, .2); background: rgba(201, 178, 118, .095); color: #d7c586; }
.member-select-avatar.avatar-provider { border: 1px solid rgba(201, 178, 118, .19); background: rgba(201, 178, 118, .085); color: #d7c586; }
.provider-mini-mark.other { border-color: rgba(201, 178, 118, .2); background: rgba(201, 178, 118, .08); color: #d7c586; }
.provider-dot { background: #bea35e; }

/* Explicit local approval gate for financial workflows. */
.workflow-approval-pending { display: flex; align-items: flex-start; gap: 7px; margin: 9px 0; padding: 9px 10px; border: 1px solid rgba(201, 178, 118, .28); border-radius: 8px; background: rgba(201, 178, 118, .055); color: #cabb8b; font-size: 8px; line-height: 1.5; }
.workflow-approval-pending .icon { flex: 0 0 auto; margin-top: 1px; }
.financial-mandatory-approval { display: flex; align-items: flex-start; gap: 8px; padding: 10px; border: 1px solid rgba(201, 178, 118, .24); border-radius: 9px; background: rgba(201, 178, 118, .05); color: #c5b47e; }
.financial-mandatory-approval > .icon { flex: 0 0 auto; margin-top: 2px; }
.financial-mandatory-approval > span { display: flex; flex-direction: column; gap: 4px; }
.financial-mandatory-approval strong { color: #d8c99a; font-size: 8px; font-weight: 650; }
.financial-mandatory-approval small { color: #8e8876; font-size: 7px; line-height: 1.5; }
.risk-unassessed { border-color: #34332d; background: rgba(255, 255, 255, .025); color: #aaa69a; }

/* V3 Phase 1 · Real AI panel */
.v3-ai-panel { padding: 22px 24px; margin-bottom: 16px; display: grid; gap: 14px; }
.v3-ai-panel .panel-heading { margin: 0; }
.v3-ai-panel .compose-footer { flex-wrap: wrap; gap: 10px; }
.v3-ai-panel .compose-footer > span { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.v3-login-form { display: grid; gap: 8px; }
.v3-ai-output { font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.v3-ai-empty { margin: 0; opacity: .8; }
.v3-md p { margin: 0 0 .75em; }
.v3-md p:last-child, .v3-md ul:last-child, .v3-md ol:last-child, .v3-md pre:last-child { margin-bottom: 0; }
.v3-md ul, .v3-md ol { margin: 0 0 .75em; padding-left: 1.4em; }
.v3-md li { margin: .2em 0; }
.v3-md strong { font-weight: 700; color: var(--text-strong, inherit); }
.v3-md code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; padding: .1em .35em; border-radius: 6px; background: rgba(255,255,255,.07); }
.v3-md pre { margin: 0 0 .75em; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,.05); overflow-x: auto; }
.v3-md pre code { padding: 0; background: none; }
.v3-md a { color: inherit; text-decoration: underline; }

.v3-thread { display: grid; gap: 12px; max-height: 560px; overflow-y: auto; padding-right: 4px; }
.v3-msg { padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
.v3-msg-user { background: rgba(255,255,255,.06); }
.v3-msg-role { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; margin-bottom: 6px; }
.v3-msg-body { font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.v3-history { display: grid; gap: 8px; }
.v3-history-list { display: grid; gap: 6px; list-style: none; margin: 0; padding: 0; }
.v3-history-item { width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.08); background: transparent; color: inherit; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.v3-history-item:hover { border-color: var(--gold, currentColor); }
.v3-meter { width: 100%; height: 12px; border-radius: 999px; overflow: hidden; appearance: none; -webkit-appearance: none; border: 0; background: rgba(255,255,255,.08); }
.v3-meter::-webkit-progress-bar { background: rgba(255,255,255,.08); }
.v3-meter::-webkit-progress-value { background: var(--gold, #c9a85c); }
.v3-meter::-moz-progress-bar { background: var(--gold, #c9a85c); }
.v3-usage-panel { margin-bottom: 16px; display: grid; gap: 12px; }
.v3-usage-note { padding: 20px 24px; margin-bottom: 16px; }
.v3-usage-sub { margin: 0; opacity: .8; font-size: 14px; }
.v3-table-wrap { overflow-x: auto; }
.v3-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.v3-table th, .v3-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,.08); white-space: nowrap; }
.v3-table th { font-size: 12px; opacity: .7; font-weight: 600; }
.v3-qr { background: #fff; padding: 8px; border-radius: 10px; justify-self: start; }

.v3-lanes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.v3-lane { padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02); min-width: 0; }
.v3-lane-synthesis { margin-top: 12px; border-color: var(--gold, rgba(201,168,92,.6)); }
.v3-lane .v3-msg-role small { text-transform: none; letter-spacing: 0; opacity: .8; }
.v3-parallel-turn { padding: 0; border: 0; background: none; }

/* Lampiran (V3) */
.v3-attach { margin-top: 10px; }
.v3-attach-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.v3-attach-button { font-size: 12px; padding: 6px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; color: var(--gold-light, #e8d49a); }
.v3-attach-button.disabled { opacity: .45; pointer-events: none; }
.v3-attach-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.v3-attach-hint { font-size: 11px; color: #8f8a7a; }
.v3-attach-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.v3-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 4px 8px 4px 4px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: rgba(255,255,255,.04); font-size: 12px; }
.v3-chip img { width: 36px; height: 36px; object-fit: cover; border-radius: 7px; }
.v3-chip-kind { display: inline-grid; place-items: center; min-width: 36px; height: 36px; border-radius: 7px; background: rgba(214,178,94,.16); color: var(--gold-light, #e8d49a); font-size: 10px; font-weight: 700; }
.v3-chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.v3-chip small { color: #8f8a7a; }
.v3-chip-error { border-color: rgba(231,111,81,.6); }
.v3-chip-error small { color: #f0a08a; }
.v3-chip-remove { border: 0; background: transparent; color: inherit; font-size: 16px; line-height: 1; cursor: pointer; padding: 0 2px; }

/* Unduh jawaban + tabel Markdown (V3) */
.v3-dl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: 11px; color: #8f8a7a; }
.v3-dl { border: 1px solid rgba(255,255,255,.14); border-radius: 7px; background: transparent; color: var(--gold-light, #e8d49a); font-size: 11px; padding: 3px 9px; cursor: pointer; }
.v3-dl:hover { background: rgba(214,178,94,.12); }
.v3-md-table-wrap { overflow-x: auto; margin: 8px 0; }
.v3-md-table { border-collapse: collapse; font-size: 13px; min-width: 60%; }
.v3-md-table th, .v3-md-table td { border: 1px solid rgba(255,255,255,.14); padding: 6px 10px; text-align: left; vertical-align: top; }
.v3-md-table th { background: rgba(214,178,94,.10); }
/* AI membuat gambar (V3) */
.v3-image-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(255,255,255,.10); }
.v3-web-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 10px 0 2px; padding: 8px 10px; border-radius: 10px; background: rgba(90,160,255,.07); border: 1px solid rgba(90,160,255,.18); }
.v3-voice-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 10px 0 2px; }
.v3-voice-button.recording { background: rgba(255,80,80,.16); border-color: rgba(255,80,80,.45); animation: v3-pulse 1.4s ease-in-out infinite; }
.v3-voice-error { color: #ffb4a8; }
.v3-dl.v3-speak.active { border-color: rgba(90,160,255,.55); background: rgba(90,160,255,.14); }
@keyframes v3-pulse { 50% { box-shadow: 0 0 0 6px rgba(255,80,80,.12); } }
@media (prefers-reduced-motion: reduce) { .v3-voice-button.recording { animation: none; } }
.v3-web-toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; }
.v3-web-toggle input { width: 18px; height: 18px; accent-color: #5aa0ff; }
.v3-tool-status { margin: 4px 0 6px; font-size: 12px; color: #7fb3ff; overflow-wrap: anywhere; }
.v3-image-size { width: auto; min-width: 130px; padding: 6px 10px; font-size: 12px; }
.v3-image-button { font-size: 12px; padding: 7px 12px; }
.v3-gen-image { margin: 6px 0 0; }
.v3-gen-image img { display: block; max-width: 100%; max-height: 520px; border-radius: 10px; border: 1px solid rgba(255,255,255,.10); }
.v3-gen-loading { display: grid; place-items: center; min-height: 180px; border: 1px dashed rgba(255,255,255,.18); border-radius: 10px; color: #8f8a7a; font-size: 13px; text-align: center; padding: 16px; }
.v3-gen-caption { margin: 8px 0 0; font-size: 12px; color: #8f8a7a; }
/* Buat agen sendiri dari halaman AI Collaboration */
.collab-new-agent { margin-top: 6px; font-size: 12px; padding: 4px 0; text-align: left; color: #d6b25e; }
.quick-kind-new[hidden] { display: none; }

/* ---------- Kotak tulis ringkas (gaya aplikasi chat) ---------- */
.v3-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.v3-composer { position: relative; margin-top: 14px; padding: 10px 10px 8px; border: 1px solid #34342d; border-radius: 22px; background: #1a1a17; transition: border-color .15s; }
.v3-composer:focus-within { border-color: #6f6347; }
.v3-composer .v3-attach { margin: 2px 2px 6px; }
.v3-composer .v3-attach-list { margin-top: 0; }
.v3-composer-input { display: block; width: 100%; min-height: 52px; max-height: 40vh; field-sizing: content; resize: none; padding: 6px 8px; border: 0; outline: 0; background: transparent; color: #ece8dc; font: inherit; font-size: 16px; line-height: 1.5; }
.v3-composer .v3-composer-input:focus, .v3-composer .v3-composer-input:focus-visible { border: 0; outline: 0; box-shadow: none; }
.v3-composer-input::placeholder { color: #75746b; }
.v3-composer-error { margin: 2px 8px 4px; font-size: 12px; color: #ffb4a8; }
.v3-composer-bar { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.v3-bar-gap { flex: 1; }
.v3-icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 10px; border: 0; border-radius: 999px; background: #2a2a25; color: #d9d5c8; cursor: pointer; transition: background .15s, color .15s; }
.v3-icon-btn:hover { background: #33332d; }
.v3-icon-btn:disabled { opacity: .5; cursor: default; }
.v3-plus.on { background: #3a3a33; }
.v3-web-btn { background: transparent; border: 1px solid #34342d; color: #8c8a80; }
.v3-web-btn input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.v3-web-btn.on, .v3-web-btn:has(input:checked) { background: rgba(90,160,255,.16); border-color: rgba(90,160,255,.55); color: #8cc0ff; }
.v3-web-btn:has(input:focus-visible) { outline: 2px solid #8cc0ff; outline-offset: 2px; }
.v3-mic.recording { background: rgba(255,80,80,.18); color: #ff9a8c; font-size: 13px; font-variant-numeric: tabular-nums; animation: v3-pulse 1.4s ease-in-out infinite; }
.v3-send { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border: 0; border-radius: 999px; background: linear-gradient(180deg, #e3cd8f, #c4a964); color: #18170f; cursor: pointer; }
.v3-send:disabled { opacity: .55; cursor: default; }
.v3-send svg { stroke-width: 2.4; }
.v3-spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: v3-spin .8s linear infinite; }
@keyframes v3-spin { to { transform: rotate(360deg); } }
.v3-mode-chip { display: inline-flex; align-items: center; gap: 6px; margin: 2px 4px 2px; padding: 4px 6px 4px 10px; border-radius: 999px; background: rgba(201,178,118,.12); color: #e3cd8f; font-size: 13px; }
.v3-mode-chip .v3-image-size { min-width: 0; width: auto; padding: 2px 4px; border: 0; border-radius: 6px; background: #2a2a25; color: #e3cd8f; font-size: 13px; }
.v3-chip-x { width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 16px; cursor: pointer; }
.v3-sheet-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.45); }
.v3-sheet { position: fixed; z-index: 1001; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(20px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: #1b1b18; border-top: 1px solid #34342d; box-shadow: 0 -12px 40px rgba(0,0,0,.4); }
.v3-sheet-head { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; margin-bottom: 14px; text-align: center; font-size: 16px; color: #ece8dc; }
.v3-sheet-head .v3-icon-btn { background: transparent; }
.v3-sheet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 10px; }
.v3-sheet-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 84px; padding: 12px 6px; border: 1px solid #3a3a33; border-radius: 16px; background: transparent; color: #ece8dc; font: inherit; font-size: 14px; cursor: pointer; }
.v3-sheet-tile:hover { background: #24241f; }
.v3-sheet-tile.on { border-color: rgba(201,178,118,.6); color: #e3cd8f; }
.v3-sheet-tile.disabled { opacity: .4; pointer-events: none; }
@media (min-width: 821px) {
  .v3-sheet { left: 50%; right: auto; bottom: 32px; width: 440px; transform: translateX(-50%); padding: 10px 14px 16px; border: 1px solid #34342d; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) { .v3-mic.recording, .v3-spin { animation: none; } }

/* Development Workspace live (GitHub, baca saja) */
.development-repo-card a { color: inherit; text-decoration: none; }
.development-repo-card a:hover { text-decoration: underline; }
.development-repo-card .repo-desc { display: block; margin: 0 0 4px; color: var(--ycc-color-muted); font-size: 13px; line-height: 1.45; }

/* Chart candle forex (data nyata) */
.forex-chart { margin-top: 12px; }
.fc-svg { display: block; width: 100%; height: auto; border: 1px solid #2b2a25; border-radius: 10px; background: linear-gradient(145deg, rgba(14, 14, 12, .92), rgba(18, 18, 16, .92)); }
.fc-grid { stroke: rgba(201, 178, 118, .12); stroke-width: 1; }
.fc-label { fill: #8d8a7f; font-size: 10px; }
.fc-up line { stroke: #6fbf8a; stroke-width: 1; }
.fc-up rect { fill: #6fbf8a; }
.fc-down line { stroke: #d9776a; stroke-width: 1; }
.fc-down rect { fill: #d9776a; }
.fc-sma { fill: none; stroke: #c9b276; stroke-width: 1.3; }
.fc-last { stroke: #c9b276; stroke-width: 1; stroke-dasharray: 3 3; }
.fc-last-box { fill: #c9b276; }
.fc-last-text { fill: #14130f; font-size: 10px; font-weight: 600; }
.fc-note { display: flex; min-height: 120px; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 16px; border: 1px dashed #2b2a25; border-radius: 10px; color: #8d8a7f; text-align: center; }
.fc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; margin-top: 10px; }
.fc-stats > div { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 1px solid #2b2a25; border-radius: 8px; }
.fc-stats span { color: #8d8a7f; font-size: 11px; }
.fc-stats strong { font-size: 13px; font-weight: 600; }
.fc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; color: #8d8a7f; font-size: 11px; }
.forex-macro { margin-top: 14px; padding: 16px 18px; }
.forex-macro h2 { margin: 2px 0 6px; }
.forex-calendar { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.forex-calendar li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; padding: 8px 10px; border: 1px solid #2b2a25; border-radius: 8px; font-size: 13px; }
.forex-calendar li span { color: #8d8a7f; font-size: 12px; }
.fc-split { margin: 8px 0 0; color: #8d8a7f; font-size: 12px; }
.journal-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; align-items: end; margin-top: 12px; }
.journal-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #8d8a7f; }
.journal-form input, .journal-form select { min-height: 36px; padding: 6px 8px; border: 1px solid #2b2a25; border-radius: 8px; background: rgba(14, 14, 12, .9); color: inherit; font: inherit; font-size: 13px; }
.journal-form .journal-note { grid-column: 1 / -1; }
.journal-list { display: grid; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.journal-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 2px 10px; align-items: center; padding: 8px 10px; border: 1px solid #2b2a25; border-radius: 8px; font-size: 13px; }
.journal-list li span { grid-column: 1; color: #8d8a7f; font-size: 12px; }
.journal-list li b { grid-row: 1 / span 2; grid-column: 2; }
.journal-list li button { grid-row: 1 / span 2; grid-column: 3; }
.fc-win { color: #6fbf8a; }
.fc-loss { color: #d9776a; }
.journal-plan { margin-top: 14px; border-top: 1px solid var(--line, rgba(255,255,255,.08)); padding-top: 12px; }
.journal-plan > summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.journal-plan > summary::-webkit-details-marker { display: none; }
.journal-plan > summary::before { content: '▸'; transition: transform .15s; }
.journal-plan[open] > summary::before { transform: rotate(90deg); }
.journal-plan > .financial-scenario-panel { margin-top: 10px; padding: 0; border: 0; background: none; box-shadow: none; }
.journal-plan .financial-scenario-panel .panel-heading { display: none; }
.v3-code-block { margin: 8px 0; }
.v3-code-block pre { margin-bottom: 6px; max-height: 320px; overflow: auto; }
.v3-code-preview { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; background: #0d0d0c; }
.v3-code-preview-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid #2b2b25; color: #e8e2d2; }
.v3-code-preview iframe { flex: 1; width: 100%; border: 0; background: #fff; }

/* Menu model ringkas (pengganti jendela pilihan bawaan HP) */
.v3-pick { position: relative; }
.v3-pick-btn { display: flex; align-items: center; justify-content: space-between; gap: 6px; text-align: left; cursor: pointer; }
.v3-pick-btn span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.v3-pick-btn i { font-style: normal; color: #77766e; font-size: 9px; }
.v3-pick.open .v3-pick-btn { border-color: #80704d; }
.v3-pick-list { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px); max-height: min(320px, 55vh); overflow-y: auto; padding: 4px; border: 1px solid #3a3a33; border-radius: 9px; background: #171715; box-shadow: 0 10px 28px rgba(0,0,0,.45); }
.v3-pick-list[hidden] { display: none; }
.v3-pick-group { padding: 6px 8px 3px; color: #77766e; font-size: 8px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.v3-pick-opt { display: block; width: 100%; padding: 6px 8px; border: 0; border-radius: 6px; background: transparent; color: #d2cfc5; font-size: 10px; line-height: 1.3; text-align: left; cursor: pointer; }
.v3-pick-opt:hover { background: rgba(255,255,255,.05); }
.v3-pick-opt.on { background: rgba(201,178,118,.12); color: #e9d9a8; }

/* Battle */
.v3-battle-vote { display: flex; gap: 6px; margin-top: 10px; }
.v3-battle-btn { flex: 1; min-height: 32px; border: 1px solid #3a3a33; border-radius: 8px; background: #171715; color: #d2cfc5; font-size: 10px; cursor: pointer; }
.v3-battle-btn:hover { border-color: #80704d; color: #e9d9a8; }
.v3-battle-verdict { margin: 8px 0 0; color: #c2b47e; font-size: 10px; font-weight: 600; }
.v3-battle-score { margin-top: 12px; }
.v3-battle-score table { width: 100%; border-collapse: collapse; font-size: 10px; }
.v3-battle-score th, .v3-battle-score td { padding: 5px 6px; border-bottom: 1px solid #26261f; text-align: right; }
.v3-battle-score th:first-child, .v3-battle-score td:first-child { text-align: left; }
.v3-battle-score th { color: #77766e; font-weight: 500; font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.v3-battle-score .quiet-action { margin-top: 6px; }

/* Menu pilihan ringkas untuk semua <select> (src/compact-select.js) */
.cs-box { position: relative; min-width: 0; }
.filter-select-wrap .cs-box { width: auto; min-width: 130px; }
.cs-box > select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.cs-btn { display: flex; width: 100%; min-height: 35px; align-items: center; justify-content: space-between; gap: 6px; padding: 0 10px; border: 1px solid #34342e; border-radius: 8px; background: #171715; color: #d2cfc5; font-size: 10px; text-align: left; cursor: pointer; }
.cs-btn span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cs-btn i { flex: 0 0 auto; font-style: normal; color: #77766e; font-size: 9px; }
.cs-box.open .cs-btn { border-color: #80704d; }
.journal-form .cs-btn { min-height: 36px; padding: 6px 8px; border-color: #2b2a25; background: rgba(14, 14, 12, .9); font-size: 12px; }
.cs-list { position: absolute; z-index: 60; left: 0; right: 0; min-width: 160px; top: calc(100% + 4px); max-height: min(300px, 55vh); overflow-y: auto; padding: 4px; border: 1px solid #3a3a33; border-radius: 9px; background: #171715; box-shadow: 0 10px 28px rgba(0,0,0,.45); }
.cs-group { padding: 6px 8px 3px; color: #77766e; font-size: 8px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.cs-opt { display: block; width: 100%; padding: 6px 8px; border: 0; border-radius: 6px; background: transparent; color: #d2cfc5; font-size: 10px; line-height: 1.3; text-align: left; cursor: pointer; }
.cs-opt:hover { background: rgba(255,255,255,.05); }
.cs-opt.on { background: rgba(201,178,118,.12); color: #e9d9a8; }
.cs-opt:disabled { opacity: .45; cursor: default; }
.v3-mode-chip .cs-box { display: inline-block; }

.v3-video-card { margin-top: 6px; }
.v3-video { display: block; width: 100%; max-width: 360px; max-height: 70vh; border-radius: 12px; background: #000; }

/* Halaman Chat: bilah atas satu baris, percakapan bergulir, kotak tulis menempel di bawah, riwayat di bawah kotak tulis. */
.chat-page { display: flex; flex-direction: column; gap: 8px; height: calc(100dvh - 170px); min-height: 380px; }
.chat-page-login { height: auto; }
.chat-toolbar { position: relative; z-index: 20; display: flex; align-items: center; gap: 8px; }
.chat-model { flex: 1 1 auto; min-width: 0; }
.chat-model .compose-option > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chat-model .v3-pick-btn { min-height: 40px; }
.chat-tool-btn { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 6px; min-height: 40px; min-width: 40px; padding: 0 12px; border: 1px solid #34342d; border-radius: 12px; background: #1a1a17; color: #c9c3b0; font: inherit; font-size: 13px; cursor: pointer; list-style: none; }
.chat-tool-btn::-webkit-details-marker { display: none; }
.chat-tool-btn:hover { border-color: #6f6347; }
.chat-opts { position: relative; flex: 0 0 auto; }
.chat-opts[open] > summary { border-color: #80704d; color: #ddca91; }
.chat-opts-panel { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; display: grid; gap: 10px; width: min(320px, calc(100vw - 32px)); padding: 12px; border: 1px solid #34342d; border-radius: 16px; background: #1a1a17; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.chat-thread { flex: 1 1 auto; min-height: 0; max-height: none; align-content: start; overflow-y: auto; padding: 4px 2px 12px; }
.chat-empty { margin: auto; padding: 40px 0; text-align: center; font-size: 18px; color: #77766d; }
.chat-dock { flex: 0 0 auto; }
.chat-dock .v3-composer { margin-top: 0; }
.chat-history { margin: 14px 0 90px; }
.chat-history summary { cursor: pointer; color: #8f8a7a; font-size: 13px; padding: 6px 2px; }
@media (min-width: 821px) { .chat-page { height: calc(100dvh - 130px); } .chat-history { margin-bottom: 24px; } }
