/* Local system fonts and assets only. Shared Owner console layout. */
:root{color-scheme:dark;--bg:#0c0e10;--sidebar:#101214;--panel:#141719;--panel-raised:#1b1e21;--ink:#eeefec;--muted:#a6adae;--faint:#909899;--line:#2a2e30;--accent:#dfc99d;--accent-ink:#251e13;--warn:#efd195;--error:#f0aaa9;--green:#9fd3b8;font-synthesis:none}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.6 'Segoe UI',system-ui,sans-serif}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
button,a,input,textarea,select,summary{touch-action:manipulation}
button,input,select,textarea{font:inherit}
button,.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 18px;border:1px solid transparent;border-radius:9px;background:var(--accent);color:var(--accent-ink);font-weight:650;cursor:pointer;text-decoration:none}
button:hover,.button:hover{background:#dfebe5;text-decoration:none}
button:disabled{opacity:.5;cursor:wait}
.secondary{background:var(--panel-raised);color:var(--ink);border-color:var(--line)}
.secondary:hover{background:#2c3330}
.danger{background:#522c32;color:#ffe0df;border-color:#985157}
:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
input,textarea,select{background:#131519;color:var(--ink);border:1px solid #464955;border-radius:8px;padding:11px 12px;max-width:100%;width:100%}
input[type=checkbox]{width:auto;accent-color:var(--accent);margin-right:8px}
input[type=hidden]{display:none}
textarea{resize:vertical;min-height:90px}
select{max-width:460px}
label{display:block;font-size:13px;font-weight:600;margin:16px 0 7px}
form{margin:15px 0 23px;max-width:840px}
form button{margin-top:12px}
h1,h2,h3,p{margin-top:0}
h1{font-size:32px;letter-spacing:-.8px;line-height:1.25;font-weight:600;margin-bottom:10px}
h2{font-size:19px;line-height:1.35;letter-spacing:-.2px;font-weight:600;margin:26px 0 13px}
h3{font-size:14px;margin:22px 0 8px}
p{margin-bottom:14px}
ul{padding-left:22px}
li{margin:9px 0}
small{font-size:12px;color:var(--muted)}
[hidden]{display:none!important}
.muted{color:var(--muted)}
.mono{font:12px/1.6 ui-monospace,Consolas,monospace;overflow-wrap:anywhere}
.eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:650;color:var(--faint);margin-bottom:12px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:fixed;top:-100px;left:16px;z-index:5;padding:10px 20px;background:var(--accent);color:var(--accent-ink)}
.skip-link:focus{top:10px}
.app-shell{display:grid;grid-template-columns:236px minmax(0,1fr);min-height:100dvh}
.sidebar{background:var(--sidebar);border-right:1px solid var(--line);position:sticky;top:0;height:100dvh;padding:32px 20px 18px;display:flex;flex-direction:column}
.brand{display:flex;align-items:center;gap:13px;color:var(--ink);font-size:20px;font-weight:650;letter-spacing:3px;padding:0 10px}
.brand:hover{text-decoration:none}
.brand small{display:block;font-size:8px;letter-spacing:2px;color:var(--faint);margin-top:2px}
.brand-mark{display:grid;place-items:center;width:39px;height:42px;border:1px solid #4a5751;border-radius:13px;color:var(--accent);font:600 30px/1 Georgia,serif;letter-spacing:-3px;padding-right:4px}
.nav-label{font-size:9px;letter-spacing:1.8px;color:var(--faint);font-weight:600;margin:45px 12px 14px}
.primary-nav{display:flex;flex-direction:column;gap:5px}
.primary-nav a{position:relative;display:flex;align-items:center;gap:13px;min-height:44px;padding:10px 14px;color:var(--muted);font-size:13px;border-radius:8px}
.primary-nav a>span{width:20px;text-align:center;font-size:18px;font-weight:400}
.primary-nav a:hover{color:var(--ink);background:#1a1e1c;text-decoration:none}
.primary-nav a.active{color:var(--accent);background:#1e2924;font-weight:600}
.primary-nav i{width:5px;height:5px;border-radius:50%;background:var(--accent);margin-left:auto}
.sidebar-bottom{margin-top:auto;padding:25px 10px 0}
.sidebar-bottom p{font-size:11px;color:var(--faint);line-height:1.8;margin:10px 0 22px}
.local-indicator{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted)}
.status-dot{display:inline-block;flex:0 0 auto;width:6px;height:6px;border-radius:50%;background:var(--green)}
.owner-access{display:flex;align-items:center;gap:10px;padding-top:18px;border-top:1px solid var(--line);color:var(--ink);font-size:11px}
.owner-access small{display:block;font-size:9px;color:var(--faint)}
.owner-access>span:last-child{margin-left:auto;color:var(--faint)}
.avatar{display:grid;place-items:center;background:#292f2c;color:#d6dfda;border-radius:50%;width:31px;height:31px}
.workspace{min-width:0;display:flex;flex-direction:column}
.global-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:19px 36px;border-bottom:1px solid var(--line);min-height:73px}
.runtime-status,.header-right{display:flex;align-items:center;gap:11px;font-size:11px;color:var(--muted)}
.header-divider{width:1px;height:12px;background:var(--line);margin:0 6px}
.local-tag{font-size:9px;letter-spacing:1.3px;color:var(--faint);margin-left:13px}
.status-pill{display:inline-flex;align-items:center;width:fit-content;max-width:100%;font-size:9px;font-weight:650;letter-spacing:.6px;border:1px solid var(--line);border-radius:6px;padding:4px 8px;line-height:1.6;overflow-wrap:anywhere}
.neutral{color:#c4cdca;background:#1b1e21}
.normal{color:var(--green);background:#1b2b25;border-color:#294536}
.warning{color:var(--warn);background:#302a1f;border-color:#554631}
.critical,.blocked{color:#ecc599;background:#30271f;border-color:#5a4130}
.error{color:var(--error);background:#322023;border-color:#66363d}
.budget-strip{display:flex;align-items:center;gap:12px;padding:11px 36px;background:#1b1917;border-bottom:1px solid #322b24;color:#d5bc9f;font-size:11px;min-height:48px}
.budget-strip[data-state=NORMAL]{background:#151c19;color:var(--green);border-color:#253b2f}
.budget-number{margin-left:auto;white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--muted)}
.budget-number a{color:inherit}
.approval-alert{padding:12px 36px;background:#202622;color:#d1ddd6;font-size:12px;border-bottom:1px solid #3e4b44}
.approval-alert a{float:right}
.page{padding:36px 40px 50px;flex:1;min-width:0}
.page-heading{margin-bottom:30px}
.page-heading:has(>div){display:flex;align-items:center;justify-content:space-between;gap:20px}
.page-heading>p:last-child,.page-heading>div>p:last-child{color:var(--muted);font-size:13px}
.global-footer{display:flex;justify-content:space-between;gap:12px;padding:14px 36px;border-top:1px solid var(--line);color:var(--faint);font-size:10px}
.panel,.metric,.department-card{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:23px}
.panel{margin:22px 0}
.panel h2{margin-top:0}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}
.section-heading h2{margin:0}
.metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.metric>span{font-size:9px;letter-spacing:1px;color:var(--muted)}
.metric strong{display:block;font-size:30px;letter-spacing:-.7px;font-weight:550;margin:16px 0 7px}
.metric p{font-size:11px;color:var(--faint);margin:0}
.guardrails{display:flex;gap:35px;padding:26px 0}
.guardrails>div{display:flex;gap:15px;align-items:center}
.guardrails strong{font-size:19px;font-weight:550}
.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.settings-grid .panel{margin:0}
.settings-grid+.notice{margin-top:24px}
.notice{padding:15px 18px;border:1px solid #554631;border-radius:9px;background:#29241c;color:var(--warn);font-size:13px;max-width:100%;overflow-wrap:anywhere;margin:16px 0}
.notice.error{background:#322023;border-color:#66363d;color:var(--error)}
[role=alert]:not(.notice){border-left:3px solid var(--error);background:#2b1e22;padding:16px;color:var(--error)}
.filter-bar{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:23px}
.filter-bar a{padding:7px 13px;border:1px solid var(--line);border-radius:7px;color:var(--muted);font-size:12px}
.filter-bar a.selected{color:var(--accent);background:#1e2924;border-color:#45564b}
.table-wrap{width:100%;overflow:auto;border:1px solid var(--line);border-radius:11px}
table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}
th{font-size:9px;letter-spacing:.9px;text-transform:uppercase;color:var(--faint);font-weight:600;background:#141719}
td,th{padding:15px 18px;border-bottom:1px solid var(--line);vertical-align:top}
tbody tr:last-child td{border-bottom:0}
td{color:#cdd3d0}
td:first-child{min-width:150px}
td .mono{word-break:break-all}
.cell-note{display:block;font-size:10px;margin-top:7px;max-width:250px}
.empty-state{text-align:center;padding:45px 20px}
.empty-state h2{font-size:18px;margin:12px 0;color:var(--ink)}
.empty-state p{font-size:12px;color:var(--muted);max-width:410px;margin:0 auto}
.empty-symbol{font-size:27px;color:var(--faint)}
.footnote{font-size:11px;color:var(--faint);margin:18px 0;max-width:900px}
dl{display:grid;grid-template-columns:minmax(140px,1fr) minmax(0,2fr);gap:12px 25px;font-size:13px;margin:20px 0}
dt{color:var(--faint)}
dd{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}
.record-detail{display:block;min-width:220px}
.record-detail dt{margin:16px 0 3px}
.record-detail dd{font-size:12px}
details>summary{cursor:pointer;color:var(--accent);font-size:13px;list-style-position:outside;margin-left:15px}
details[open]>summary{margin-bottom:18px}
.department-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.department-card{padding:21px}
.department-id{font-size:9px;letter-spacing:1.1px;text-transform:uppercase;color:var(--faint)}
.department-card h2{margin:10px 0;font-size:19px}
.department-card>p{font-size:12px;color:var(--muted);min-height:58px}
.department-card details{border-top:1px solid var(--line);padding-top:15px;margin-top:18px}
.department-card details p{color:var(--muted);font-size:11px}
.department-card summary{font-size:11px}
.approval-list{padding:0;list-style:none}
.approval-list li{padding:18px;border:1px solid var(--line);border-radius:9px;background:var(--panel)}
.danger-zone{padding:15px;border:1px solid #6a363d;border-radius:9px;max-width:700px}
.danger-zone summary{color:var(--error)}
kbd{font:12px ui-monospace,monospace;border:1px solid #434b46;background:#232925;padding:3px 6px;border-radius:4px}

/* Milestone 6: quiet graphite surfaces, warm-white type, desaturated jade light. */
:root { --core-light: 189, 215, 204; }
body { -webkit-font-smoothing: antialiased; }
button, .button, .primary-nav a, .filter-bar a { transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
button, .button { font-weight: 500; border-radius: 8px; }
h1 { font-weight: 400; letter-spacing: -1px; }
.sidebar { background: #0f1113; border-color: #232729; }
.brand { font-weight: 500; letter-spacing: 4px; }
.brand-mark { border-color: #3c4842; border-radius: 50%; background: #171d1a; color: #d8e4dd; }
.primary-nav a { border: 1px solid transparent; }
.primary-nav a.active { background: #1b221f; border-color: #2c3831; font-weight: 500; }
.global-header { min-height: 78px; background: #0e1012; }
.local-tag { letter-spacing: 2px; }
.status-pill { font-weight: 500; border-radius: 5px; }
.budget-strip { background: #191815; border-color: #2e2a23; }
.budget-strip[data-state=NORMAL] { background: #111714; border-color: #25302a; }
.budget-strip[data-state=ERROR] { background: #22191a; color: var(--error); border-color: #483033; }
.panel, .metric, .department-card { background: rgba(23, 27, 28, .72); border-color: #2b3031; border-radius: 14px; box-shadow: 0 8px 24px #0000000d; }
.page { max-width: 1600px; width: 100%; align-self: center; padding: 42px 44px 50px; }
.page-heading { margin-bottom: 34px; }
.page-heading .eyebrow { margin-bottom: 14px; }
.global-footer { letter-spacing: .2px; border-color: #232729; }
.global-footer span:last-child { letter-spacing: 2px; font-size: 8px; }
.notice { background: #221f19; border-color: #494031; }
th { background: #15191a; }
.table-wrap { background: #101315; }
.filter-bar a.selected { background: #1e2924; border-color: #45564b; }

/* Chat keeps the Core present when a conversation begins, with room for text. */
.chat-page { display: flex; flex-direction: column; min-height: calc(100dvh - 166px); padding: 25px 44px 20px; }
.chat-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.chat-heading .eyebrow { font-size: 8px; letter-spacing: 1.8px; margin: 0 0 6px; }
.chat-heading h1 { font-size: 16px; letter-spacing: -.2px; margin: 0; }
.chat-heading .status-pill { max-width: 300px; }
.core-stage { display: grid; place-items: center; padding: 30px 0 14px; }
.core-stage[data-has-history=true] { padding: 13px 0 8px; }
.core-stage[data-has-history=true] .core-hero { --core-size: 96px; gap: 10px; }
.conversation-history { flex: 1; min-height: 120px; width: 100%; max-width: 760px; align-self: center; overflow-y: auto; max-height: 48dvh; overscroll-behavior: contain; padding: 12px 0 26px; }
#welcome { text-align: center; margin: 0 auto; padding: 14px 0 5px; }
#welcome .eyebrow { font-size: 8px; letter-spacing: 2.5px; margin-bottom: 14px; }
#welcome h2 { font: 400 44px/1.16 'Segoe UI', system-ui, sans-serif; letter-spacing: -1.8px; margin: 0 0 17px; }
#welcome>p:not(.eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.85; }
.suggestions { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin-top: 27px; }
.suggestions button { color: #c1cbc5; background: #151a17; border: 1px solid #303b34; font-size: 11px; font-weight: 400; padding: 10px 14px; border-radius: 7px; }
.suggestions button:hover { background: #202b24; border-color: #566a5c; }
.suggestions span { margin-left: 9px; color: #9aac9f; }
.chat-bottom { max-width: 760px; width: 100%; align-self: center; margin-top: auto; }
.chat-bottom form { margin: 0; max-width: none; }
.composer { display: flex; align-items: flex-end; gap: 15px; padding: 17px 18px; border: 1px solid #3a4540; border-radius: 14px; background: rgba(27, 33, 30, .8); box-shadow: 0 14px 35px #00000026; transition: border-color .25s ease, box-shadow .25s ease; }
@supports (backdrop-filter: blur(8px)) { .composer { backdrop-filter: blur(8px); } }
.composer:focus-within { border-color: #91ad9c; box-shadow: 0 0 0 1px #91ad9c20, 0 14px 35px #00000026; }
.composer textarea { flex: 1; border: 0; background: transparent; outline: none; padding: 3px 0; min-height: 48px; max-height: 180px; resize: vertical; font-size: 13px; line-height: 1.6; }
.composer textarea::placeholder { color: #a3b0a8; }
.composer button { margin: 0; width: 35px; height: 35px; padding: 0; flex: 0 0 auto; font-size: 22px; font-weight: 400; border-radius: 8px; background: #cadcd0; }
.form-note { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px; font-size: 10px; color: var(--faint); }
.chat-note { text-align: center; font-size: 10px; color: var(--faint); margin: 3px 0 0; }
.chat-note a { color: #aebfb3; }
#status { font-size: 11px; color: var(--muted); margin: 0 0 5px; min-height: 14px; }
.message { display: flex; gap: 15px; padding: 20px 0; overflow-wrap: anywhere; }
.message+.message { border-top: 1px solid #232a26; }
.message-avatar { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; background: #252d28; border: 1px solid #3a453e; border-radius: 50%; font-size: 11px; color: #c4d1c9; }
.assistant .message-avatar { background: #1c2821; color: var(--accent); font: 21px Georgia, serif; }
.message-body { flex: 1; min-width: 0; }
.message-body strong { font-size: 12px; font-weight: 500; }
.message-body p { white-space: pre-wrap; color: #d0d8d2; font-size: 14px; line-height: 1.85; margin: 7px 0; }
.user .message-body p { color: #afbdb4; }
@media (min-width: 1550px) { .page { padding-left: 64px; padding-right: 64px; } .core-stage { padding-top: 42px; padding-bottom: 24px; } .core-hero { --core-size: 198px; } #welcome h2 { font-size: 50px; } }
@media (max-width: 1150px) {
  .app-shell { grid-template-columns: 205px minmax(0, 1fr); } .sidebar { padding: 26px 14px 18px; }
  .page { padding-left: 28px; padding-right: 28px; } .global-header, .budget-strip { padding-left: 28px; padding-right: 28px; }
  .metric strong { font-size: 24px; } .budget-number { display: none; } .department-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guardrails { gap: 20px; } .guardrails>div { flex-direction: column; align-items: flex-start; gap: 8px; }
  .core-compact .core-caption { max-width: 95px; } .local-tag { display: none; }
}
@media (max-width: 760px) {
  .app-shell { display: block; } .sidebar { position: static; height: auto; padding: 16px 18px 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { font-size: 16px; padding: 0; } .brand-mark { height: 30px; width: 30px; font-size: 24px; } .brand small, .nav-label, .sidebar-bottom { display: none; }
  .primary-nav { flex-direction: row; overflow-x: auto; margin-top: 14px; gap: 3px; padding-bottom: 5px; }
  .primary-nav a { white-space: nowrap; padding: 8px 11px; min-height: 36px; font-size: 11px; } .primary-nav a>span, .primary-nav i { display: none; }
  .global-header { padding: 10px 18px; min-height: 57px; gap: 8px; } .runtime-status { font-size: 10px; gap: 6px; flex-wrap: wrap; } .header-divider { margin: 0 1px; }
  .header-right { flex: 0 0 auto; } .status-pill { font-size: 8px; } .runtime-status #global-mode, .runtime-status>.header-divider { display: none; }
  .core-compact { --core-size: 29px; gap: 4px; } .core-compact .core-caption { font-size: 9px; max-width: 78px; }
  .budget-strip { padding: 10px 18px; font-size: 10px; align-items: flex-start; gap: 8px; }
  .approval-alert { padding: 10px 18px; font-size: 11px; } .approval-alert a { float: none; display: block; }
  .page { padding: 28px 18px; } .page-heading:has(>div) { display: block; } .page-heading .button { margin-top: 8px; } h1 { font-size: 28px; }
  .metric-grid, .settings-grid { grid-template-columns: 1fr; } .metric, .panel { padding: 19px; } .metric strong { margin: 8px 0; font-size: 28px; }
  .department-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .department-card { padding: 15px; } .department-card h2 { font-size: 16px; } .department-card>p { font-size: 11px; }
  .global-footer { padding: 12px 18px; font-size: 9px; } .global-footer span:last-child { font-size: 7px; }
  .chat-page { min-height: calc(100dvh - 265px); padding: 22px 18px 18px; } .chat-heading { align-items: flex-start; } .chat-heading h1 { font-size: 15px; }
  .chat-heading .status-pill { max-width: 125px; } .core-hero { --core-size: 132px; gap: 17px; } .core-stage { padding: 23px 0 12px; }
  .core-stage[data-has-history=true] .core-hero { --core-size: 76px; } .core-caption { font-size: 9px; }
  .conversation-history { max-height: 50dvh; padding: 12px 0 24px; } #welcome { padding-top: 8px; } #welcome h2 { font-size: 33px; letter-spacing: -1.1px; }
  #welcome>p:not(.eyebrow) { font-size: 12px; } .suggestions { gap: 7px; margin-top: 21px; } .suggestions button { font-size: 10px; padding: 10px; } .suggestions span { margin-left: 3px; }
  .composer { padding: 14px; } .composer textarea { font-size: 16px; } .chat-note { font-size: 9px; } .form-note { font-size: 9px; }
  .message { gap: 10px; } .message-body p { font-size: 13px; } dl { grid-template-columns: 1fr; gap: 5px; } dd { margin-bottom: 12px; }
}
@media (max-width: 420px) { .department-grid { grid-template-columns: 1fr; } .suggestions button { flex: 1 1 42%; justify-content: space-between; } .suggestions button:last-child { flex: 1 1 100%; } .runtime-status { max-width: 190px; } }
/* No flashes in alert states. Hidden tabs pause layers; reduced motion is static.
   Labels and border/tint differences remain available with animation disabled. */
html[data-motion=paused] .core-art *, html[data-motion=paused] .core-art *::before, html[data-motion=paused] .core-art *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Milestone 7 task controls reuse the console geometry and locked champagne accent. */
.task-summary { display:flex; flex-wrap:wrap; gap:12px; align-items:center; color:var(--muted); font-size:12px; }
.task-execution { margin-top:18px; font-size:12px; color:#d2bd94; }
.task-domains { display:flex; flex-wrap:wrap; gap:18px 32px; }
.task-domains>div { max-width:280px; } .task-domains p { font-size:11px; margin:5px 0 16px; }
.task-finding { border-top:1px solid var(--line); padding:20px 0; }
.task-finding p { margin:8px 0; } .task-finding small { overflow-wrap:anywhere; }
.preserve-lines { white-space:pre-wrap; overflow-wrap:anywhere; }
.task-cancel { margin-top:24px; padding-top:20px; border-top:1px solid var(--line); }
.task-create { max-width:840px; } .task-page .panel { max-width:1080px; }
.task-page button:not(.secondary):not(.danger), .task-create button { background:var(--accent); color:var(--accent-ink); }
.task-page button:not(.secondary):not(.danger):hover, .task-create button:hover { background:#eddbb7; }
.task-page .table-wrap { max-height:420px; } .task-page .page-heading h1 { overflow-wrap:anywhere; }

/* Owner reference lock: a quiet black-and-champagne executive workspace. */
:root { --bg:#090a0c; --sidebar:#0c0d0f; --panel:#111316; --panel-raised:#17191d; --ink:#f2efe8; --muted:#aaa8a2; --faint:#777a7b; --line:#292a2d; --accent:#dfc38d; --accent-ink:#211a0f; --core-light:224, 205, 163; }
body { background:var(--bg); color:var(--ink); letter-spacing:.01em; }
body::before { content:""; position:fixed; inset:0; pointer-events:none; z-index:-1; background:radial-gradient(circle at 72% 18%, rgba(223,195,141,.045), transparent 31%); }
h1,h2,h3 { color:var(--ink); }
h1 { letter-spacing:-1.4px; }
.sidebar { background:rgba(12,13,15,.96); border-right-color:#242529; padding:30px 18px 18px; }
.brand { gap:12px; color:#f0ede5; letter-spacing:3.4px; }
.brand small { color:#8c8578; letter-spacing:1.8px; }
.brand-mark { width:40px; height:40px; border-color:#66563c; background:#171511; color:var(--accent); box-shadow:0 0 24px rgba(223,195,141,.08); }
.nav-label { color:#706f6c; letter-spacing:2.2px; margin-top:43px; }
.primary-nav { gap:4px; }
.primary-nav a { color:#8e918f; border-radius:10px; min-height:42px; }
.primary-nav a>span { color:#77736b; font-size:16px; }
.primary-nav a:hover { background:#171719; color:#f0ede5; }
.primary-nav a.active { color:var(--accent); background:rgba(223,195,141,.08); border-color:rgba(223,195,141,.17); box-shadow:inset 2px 0 0 var(--accent); }
.primary-nav a.active>span { color:var(--accent); }
.primary-nav i { background:var(--accent); box-shadow:0 0 9px rgba(223,195,141,.55); }
.sidebar-bottom { padding-left:9px; padding-right:9px; }
.local-indicator { color:#9b9a94; }
.local-indicator .status-dot { background:var(--accent); box-shadow:0 0 10px rgba(223,195,141,.55); }
.sidebar-bottom p { color:#747673; }
.owner-access { border-color:#28292c; color:#e9e6de; }
.owner-access small { color:#777873; }
.avatar { color:var(--accent); background:#211c14; border:1px solid #5e5038; }
.global-header { background:rgba(10,11,13,.88); border-color:#242529; }
.runtime-status,.header-right { color:#a1a09b; }
.local-tag { color:#817869; }
.status-pill { border-color:#303136; background:#161719; }
.neutral { color:#c7c3ba; background:#17181b; }
.budget-strip { background:#161310; border-color:#322918; color:#cfb681; }
.budget-strip[data-state=NORMAL] { background:#101411; border-color:#263128; color:#a8b7a1; }
.approval-alert { background:#1b1711; border-color:#493c26; color:#ddd0b6; }
.page { max-width:1680px; padding-top:38px; }
.global-footer { border-color:#242529; color:#6f706e; }
.panel,.metric,.department-card { background:rgba(18,19,22,.78); border-color:#2b2b2e; box-shadow:0 18px 46px rgba(0,0,0,.18); }
.panel:hover,.metric:hover,.department-card:hover { border-color:#44403a; }
.notice { background:#211b12; border-color:#4f4027; }
.table-wrap { background:#0f1012; border-color:#2a2b2e; }
th { background:#151416; }
.filter-bar a.selected { background:rgba(223,195,141,.09); border-color:#675437; }

/* Phase A: approved Owner Console composition. Presentation only. */
:root { --sidebar-width:clamp(194px,15.7vw,260px); --focus-width:clamp(310px,26vw,430px); --accent:#e5bd88; --bg:#090a0a; --ink:#f0ede7; --muted:#a6a39d; }
body { font-family:'Segoe UI',system-ui,sans-serif; background:#090a0a; }
.ui-icon { display:block; width:26px; height:26px; flex:0 0 auto; }
.app-shell { grid-template-columns:var(--sidebar-width) minmax(0,1fr); }
.sidebar { padding:28px 16px 30px; background:linear-gradient(115deg,#141414 0,#0c0d0d 65%); border-color:#292826; }
.brand { display:block; padding:0 20px; font-size:46px; line-height:1.2; font-weight:250; letter-spacing:6px; color:#e9c69a; }
.brand small { margin-top:4px; font-size:10px; font-weight:400; letter-spacing:4px; color:#d0ccc5; white-space:nowrap; }
.primary-nav { gap:clamp(7px,1.6dvh,16px); margin-top:44px; }
.primary-nav a { min-height:clamp(44px,5.6dvh,57px); gap:22px; padding:10px 20px; border-radius:9px; font-size:16px; font-weight:400; color:#d4d2ce; }
.primary-nav a>.ui-icon { color:var(--accent); width:26px; height:26px; }
.primary-nav a>span { width:auto; text-align:left; font:inherit; color:inherit; }
.primary-nav a.active { color:#edc797; background:linear-gradient(100deg,#493e2eaa,#302b22cc); box-shadow:inset 1px 0 0 #efc68e; font-weight:400; }
.primary-nav a:hover { background:#25221c; }
.sidebar-bottom { padding:20px 18px 0; }
.sidebar-usage { display:flex; justify-content:space-between; color:#969189; font-size:11px; margin-bottom:12px; }
.sidebar-runtime { display:flex; align-items:center; flex-wrap:wrap; gap:5px; color:#838179; font-size:9px; margin:0 0 17px; line-height:1.4; }
.sidebar-runtime .status-dot { width:4px; height:4px; background:#b9a98e; }
.sidebar-runtime #global-mode { width:100%; padding-left:9px; }
.owner-access { gap:18px; padding-top:28px; font-size:14px; color:#d7d5cf; border-color:#3b3830; }
.owner-access .avatar { width:46px; height:46px; border:1px solid #dcb786; background:transparent; color:#e6c08e; font-size:20px; }
.owner-access>.ui-icon { width:17px; height:17px; margin-left:auto; }
.workspace { position:relative; }
.console-overview .global-header { width:calc(100% - var(--focus-width)); margin:0; min-height:72px; padding:16px 24px 16px 34px; background:transparent; border-color:#2b2924; }
.utility-heading { margin:0; font-size:15px; letter-spacing:1.2px; font-weight:350; color:#aaa59b; }
.console-overview .header-right .status-pill { border:1px solid #b99a6d; background:transparent; border-radius:999px; color:#e4dacb; text-transform:uppercase; letter-spacing:1.9px; font-size:9px; font-weight:500; padding:6px 14px; white-space:nowrap; }
.console-overview .global-footer { position:absolute; top:0; left:0; width:1px; height:1px; clip:rect(0,0,0,0); overflow:hidden; padding:0; border:0; }
.console-overview .approval-alert { margin-right:var(--focus-width); }
.chat-page { padding:0; max-width:none; min-height:calc(100dvh - 72px); }
.overview-layout { display:grid; grid-template-columns:minmax(0,1fr) var(--focus-width); gap:0; min-height:calc(100dvh - 72px); }
.overview-main { display:flex; flex-direction:column; min-width:0; min-height:calc(100dvh - 72px); padding:clamp(34px,6.3dvh,64px) clamp(24px,4.5vw,72px) 42px; }
.chat-heading { display:block; text-align:center; padding:0; }
.chat-heading h1 { margin:0 0 8px; font:400 clamp(30px,3.65vw,60px)/1.17 'Segoe UI',system-ui,sans-serif; letter-spacing:-1.65px; background:linear-gradient(105deg,#e3b27b 5%,#f1ede6 82%); color:#ede1d0; background-clip:text; -webkit-text-fill-color:transparent; }
.overview-support { margin:0; font-size:clamp(20px,2.5vw,40px); font-weight:300; line-height:1.35; letter-spacing:-.7px; color:#b4aea4; }
.core-stage { flex:1 0 auto; display:flex; align-items:center; justify-content:center; padding:10px 0 0; min-height:300px; }
.ari-core { display:flex; flex-direction:column; align-items:center; width:100%; gap:0; }
.core-art { width:100%; max-width:620px; aspect-ratio:1.7; position:relative; isolation:isolate; flex:0 0 auto; }
.core-orb { position:absolute; inset:0; width:100%; height:100%; display:block; overflow:visible; }
/* Persistent procedural geometry in chat.js owns motion; SVG remains a static fallback. */
.orb-depth { opacity:.48; }
.orb-filament { filter:drop-shadow(0 0 2px #edcc91a3); }
.core-caption { display:flex; align-items:center; justify-content:center; gap:10px; font-size:9px; line-height:1.5; color:#8d877b; margin-top:-6px; }
.core-name { color:#b99e75; font-size:8px; letter-spacing:2.2px; }
.core-caption [data-core-label] { padding-left:10px; border-left:1px solid #4b4233; }
.ari-core[data-state=ATTENTIVE] .orb-filament { stroke:#fff6df; filter:drop-shadow(0 0 3px #f0ce91cc); }
.ari-core[data-state=AWAITING_APPROVAL] .orb-filament { stroke:#ffd79c; }
.ari-core[data-state=AWAITING_APPROVAL] [data-core-label],.ari-core[data-state=WARNING] [data-core-label] { color:#dfc28e; }
.ari-core[data-state=BLOCKED] .core-orb { opacity:.45; }
.ari-core[data-state=ERROR] .core-orb { opacity:.5; filter:saturate(.4); }
.ari-core:is([data-state=BLOCKED],[data-state=CRITICAL],[data-state=ERROR]) .core-art * { animation:none; }
.ari-core:is([data-state=CRITICAL],[data-state=ERROR]) [data-core-label] { color:var(--error); }
.core-compact { width:auto; flex-direction:row; gap:9px; }
.core-compact .core-art { width:36px; height:36px; aspect-ratio:1; }
.core-compact .orb-specks,.core-compact .orb-halo,.core-compact .orb-depth { display:none; }
.core-compact .orb-filament { filter:none; }
.core-compact .core-caption { margin:0; font-size:10px; }
.core-compact .core-name { display:none; }
.core-compact .core-caption [data-core-label] { padding:0; border:0; }
.conversation-history { flex:0 0 auto; width:100%; max-width:none; min-height:0; max-height:none; overflow:visible; padding:0; }
#welcome { padding:0; margin:0; }
.suggestions { display:flex; flex-wrap:nowrap; justify-content:center; gap:15px; margin:16px 0 0; }
.suggestions button { display:flex; align-items:center; justify-content:center; gap:16px; min-height:58px; flex:1; max-width:220px; padding:12px 18px; color:#eee9e0; background:linear-gradient(125deg,#111212,#0c0d0d); border:1px solid #9c8058; border-radius:999px; font-size:14px; font-weight:400; white-space:nowrap; }
.suggestions .ui-icon { color:#e8c593; width:25px; height:25px; }
.suggestions button:hover { background:#251f17; border-color:#dfbd8a; }
.chat-bottom { width:100%; max-width:none; margin-top:clamp(28px,4.5dvh,52px); }
.conversation-status { display:flex; justify-content:space-between; align-items:end; min-height:16px; margin:0 4px 5px; }
.conversation-status #task-status { background:none; border:none; color:#827c71; font-weight:400; padding:0; font-size:9px; letter-spacing:.6px; }
#status { min-height:0; margin:0; }
.composer { display:flex; align-items:center; gap:16px; padding:14px 16px 14px 23px; min-height:92px; border:1px solid #a58b63; border-radius:29px; background:linear-gradient(110deg,#1b1b1ac4,#181919a6); box-shadow:inset 0 1px 0 #f2d4a406,0 18px 42px #0003; }
.composer textarea { font-size:17px; font-weight:350; min-width:0; min-height:32px; max-height:140px; padding:4px 18px; line-height:1.5; resize:vertical; border-left:1px solid #413c33; border-radius:0; color:#ede7dc; }
.composer textarea::placeholder { color:#b4a996; }
.composer .composer-tool { width:30px; height:34px; background:none; color:#d7cab5; border:0; border-radius:0; padding:0; }
.composer .composer-tool:disabled { opacity:.62; cursor:not-allowed; }
.composer .composer-tool .ui-icon { width:25px; height:25px; }
.composer .composer-tool:nth-of-type(2) { border-left:1px solid #494135; width:53px; padding-left:17px; }
.composer>#send { width:55px; height:55px; margin:0; border-radius:50%; border:1px solid #ac8958; background:linear-gradient(145deg,#f2ce99,#d5a56d); color:#2c2115; box-shadow:0 0 16px #e5ba7926; }
.composer>#send .ui-icon { width:26px; height:26px; }
.composer>#send:hover { background:#f4d3a6; }
.form-note { position:relative; display:flex; justify-content:center; padding:15px 0 0; color:#b1aaa0; font-size:14px; font-weight:350; }
.form-note #count { position:absolute; right:0; font-size:9px; opacity:0; }
#chat-form:focus-within #count { opacity:1; }
.overview-main:has(.core-stage[data-has-history=true]) .chat-heading h1 { font-size:30px; }
.overview-main:has(.core-stage[data-has-history=true]) .overview-support { font-size:18px; }
.core-stage[data-has-history=true] { flex:0; min-height:0; padding:12px 0; }
.core-stage[data-has-history=true] .ari-core { width:160px; }
.core-stage[data-has-history=true]+.conversation-history { flex:1; max-height:48dvh; overflow-y:auto; padding:10px 0; }
.overview-main:has(.core-stage[data-has-history=true]) .chat-bottom { margin-top:20px; }
.focus-rail { min-width:0; position:static; margin:-12px 10px 10px 12px; padding:0; align-self:start; }
.focus-panel { border:1px solid #2d2b27; border-radius:20px; padding:30px 14px 14px; background:linear-gradient(115deg,#171717b3,#101111b3); box-shadow:0 20px 50px #0003; }
.rail-heading { display:block; padding:3px 8px 0; margin:0 0 25px; }
.rail-heading h2 { font:400 25px/1.35 'Segoe UI',system-ui,sans-serif; letter-spacing:-.5px; margin:0 0 14px; }
.rail-heading .eyebrow { color:#b7b1a7; font-size:9px; font-weight:400; letter-spacing:2.5px; margin:0; }
.focus-list { display:flex; flex-direction:column; gap:15px; margin:0; }
.focus-row { display:flex; align-items:center; gap:23px; width:100%; min-height:clamp(80px,9.7dvh,98px); border:1px solid #38342d; border-radius:14px; padding:17px 21px; text-align:left; color:#efeae3; background:linear-gradient(115deg,#211f1ac4,#171716b3); font-weight:400; box-shadow:inset 0 1px 0 #f3d8a803; }
.focus-row:hover { background:#252119; border-color:#70604a; text-decoration:none; }
.focus-row>.ui-icon:first-child { color:#e9c28d; width:28px; height:30px; }
.focus-row>span { min-width:0; flex:1; }
.focus-row strong { display:block; font-size:17px; font-weight:400; line-height:1.35; }
.focus-row small { display:block; margin-top:5px; font-size:15px; line-height:1.4; color:#b6b0a6; }
.focus-row>.ui-icon:last-child { width:14px; height:18px; color:#e9e3da; }
.department-rail { position:relative; margin-top:60px; padding:19px 14px 14px; border:1px solid #2d2b26; border-radius:15px; background:#14151480; }
.department-rail::before { content:""; position:absolute; left:5px; right:5px; top:-31px; height:1px; background:#3b362d; }
.department-rail h2 { font:400 23px/1.3 'Segoe UI',system-ui,sans-serif; letter-spacing:-.3px; margin:0 0 19px; }
.department-stack { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.department-mini { position:relative; display:flex; flex-direction:column; justify-content:center; align-items:start; min-height:clamp(92px,11.5dvh,115px); padding:17px 19px; border:1px solid #3a352c; border-radius:13px; color:#eae5dc; background:linear-gradient(120deg,#1b1a17a6,#1416156b); }
.department-mini:hover { border-color:#756148; background:#211d16; text-decoration:none; }
.department-mini>.ui-icon:first-child { width:29px; height:29px; margin-bottom:13px; color:#e4bc86; }
.department-mini strong { font-size:16px; font-weight:400; line-height:1.4; }
.department-mini>.ui-icon:last-child { position:absolute; right:9px; top:50%; width:12px; height:16px; color:#d8d1c6; }
.focus-rail .budget-strip { margin:12px 4px 0; padding:9px 4px; min-height:0; border:none; background:none; display:grid; grid-template-columns:auto 1fr; column-gap:9px; row-gap:5px; color:#a29888; font-size:9px; line-height:1.5; }
.focus-rail .budget-strip .status-pill { font-size:7px; padding:2px 5px; align-self:start; }
.focus-rail .budget-number { grid-column:2; margin:0; font-size:9px; white-space:normal; }
html[data-motion=paused] .core-art,html[data-motion=paused] .core-art * { animation-play-state:paused!important; }
@media (min-width:1251px) and (min-height:921px) {
  .chat-bottom { margin-top:6.5dvh; }
  .overview-main { padding-bottom:46px; }
}
@media (min-width:1101px) and (max-height:920px) {
  .overview-main { padding-top:34px; padding-bottom:28px; }
  .focus-panel { padding-top:23px; }
  .rail-heading { margin-bottom:19px; }
  .department-rail { margin-top:42px; }
  .department-rail::before { top:-22px; }
}
@media (max-width:1250px) and (min-width:761px) {
  :root { --sidebar-width:190px; --focus-width:300px; }
  .brand { padding-left:12px; font-size:40px; }
  .brand small { font-size:8px; letter-spacing:3px; }
  .primary-nav a { padding:10px 12px; gap:15px; font-size:13px; }
  .overview-main { padding-left:24px; padding-right:24px; }
  .chat-heading h1 { font-size:36px; }
  .overview-support { font-size:24px; }
  .focus-row { gap:12px; padding:15px 12px; }
  .focus-row strong { font-size:13px; }
  .focus-row small { font-size:11px; }
  .suggestions { gap:8px; }
  .suggestions button { gap:8px; font-size:12px; padding:10px; }
  .department-mini { padding:14px; }
  .department-mini strong { font-size:12px; }
}
@media (max-width:1100px) {
  .console-overview .global-header { width:100%; }
  .overview-layout { grid-template-columns:minmax(0,1fr); }
  .overview-main { min-height:calc(100dvh - 72px); }
  .focus-rail { margin:10px 24px 28px; }
  .focus-panel { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
  .rail-heading { grid-column:1; }
  .focus-list { grid-column:1; }
  .department-rail { grid-column:2; grid-row:1 / 3; margin:0; }
  .department-rail::before { display:none; }
  .console-overview .approval-alert { margin-right:0; }
}
@media (max-width:760px) {
  .app-shell { display:block; }
  .sidebar { position:static; height:auto; padding:18px 16px 12px; }
  .brand { padding:0 3px; font-size:30px; }
  .brand small { display:block; font-size:7px; letter-spacing:3px; }
  .primary-nav { flex-direction:row; margin-top:20px; gap:5px; overflow-x:auto; }
  .primary-nav a { min-height:38px; padding:8px 13px; font-size:12px; }
  .primary-nav a>.ui-icon { display:none; }
  .primary-nav a>span { display:inline; }
  .sidebar-bottom { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 3px 0; }
  .sidebar-runtime { display:none; }
  .sidebar-usage { margin:0; gap:14px; }
  .owner-access { border:0; padding:0; font-size:11px; gap:8px; }
  .owner-access .avatar { width:24px; height:24px; font-size:11px; }
  .owner-access>.ui-icon { width:12px; }
  .console-overview .global-header { min-height:58px; padding:14px 18px; gap:10px; }
  .utility-heading { font-size:11px; letter-spacing:.2px; }
  .console-overview .header-right .status-pill { font-size:6px; letter-spacing:1px; padding:5px 8px; }
  .chat-page,.overview-layout { min-height:0; }
  .overview-main { min-height:600px; padding:28px 18px 25px; }
  .chat-heading h1 { font-size:29px; letter-spacing:-1px; }
  .overview-support { font-size:19px; letter-spacing:-.35px; }
  .core-stage { padding:12px 0 0; min-height:220px; }
  .core-art { width:100%; aspect-ratio:1.35; }
  .core-caption { font-size:8px; margin-top:4px; }
  .core-name { font-size:6px; }
  .suggestions { gap:7px; margin-top:15px; }
  .suggestions button,.suggestions button:last-child { flex:1 1 0; max-width:none; }
  .suggestions button { flex-direction:column; gap:7px; min-width:0; min-height:66px; font-size:10px; padding:11px 8px; white-space:normal; border-radius:18px; }
  .suggestions .ui-icon { width:21px; height:21px; }
  .chat-bottom { margin-top:32px; }
  .composer { gap:6px; min-height:70px; padding:10px; border-radius:22px; }
  .composer textarea { font-size:16px; padding:5px 10px; }
  .composer .composer-tool { width:23px; }
  .composer .composer-tool .ui-icon { width:21px; height:21px; }
  .composer .composer-tool:nth-of-type(2) { width:30px; padding-left:7px; }
  .composer>#send { width:40px; height:40px; }
  .composer>#send .ui-icon { width:21px; height:21px; }
  .form-note { font-size:11px; padding-top:12px; }
  .form-note #count { top:-17px; right:10px; }
  .focus-rail { margin:12px 16px 24px; }
  .focus-panel { display:block; padding:24px 14px 14px; }
  .rail-heading h2 { font-size:24px; }
  .focus-row { min-height:82px; }
  .department-rail { margin-top:50px; }
  .department-rail::before { display:block; top:-25px; }
  .department-mini { min-height:105px; }
  .focus-rail .budget-number { display:block; }
  .core-stage[data-has-history=true] .ari-core { width:130px; }
  .core-stage[data-has-history=true]+.conversation-history { max-height:48dvh; }
}
@media (prefers-reduced-motion:reduce) { .ari-core *, .ari-core *::before { animation:none!important; transition:none!important; } }

/* Core files reuse the Owner console's restrained graphite and gold controls. */
.attachment-list { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:10px; }
.attachment-list:empty { display:none; }
.attachment-chip { display:flex; align-items:center; gap:12px; max-width:100%; padding:10px 12px; background:#171717; border:1px solid #534936; border-radius:12px; }
.attachment-chip>div { min-width:0; }
.attachment-chip a,.attachment-chip strong { display:block; overflow-wrap:anywhere; font-size:12px; font-weight:500; }
.attachment-chip small { display:block; font-size:10px; }
.attachment-chip button { margin:0; padding:3px 7px; border:1px solid #514b41; background:transparent; color:var(--accent); font-size:12px; }
.attachment-options { padding:0 14px 12px; margin-bottom:12px; border:1px solid var(--line); border-radius:12px; background:#141516; }
.attachment-options label { margin-top:12px; font-size:12px; }
.attachment-options select { max-width:180px; }
.attachment-options input[type=file] { font-size:12px; }
.attachment-options .footnote { margin:10px 0 0; }
.file-shortcuts { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:16px; margin-top:10px; font-size:11px; }
.text-button { padding:0; margin:0; background:transparent; border:0; border-radius:0; color:var(--accent); font-size:inherit; font-weight:400; }
.text-button:hover { background:transparent; color:var(--ink); text-decoration:underline; }
.file-reference-list { list-style:none; padding:0; margin:12px 0; font-size:12px; }
.file-reference-list li { overflow-wrap:anywhere; }
.file-reference-list small,.file-reference-list .mono { display:block; }
.message-body .file-reference-list { padding-top:8px; border-top:1px solid var(--line); }
.task-files .section-heading a { font-size:12px; }
.files-page { max-width:1300px; width:100%; }
.file-search { max-width:none; }
.file-search-primary { display:grid; grid-template-columns:minmax(0,2fr) minmax(150px,1fr) auto; align-items:end; gap:15px; }
.file-search-primary button { margin:0; min-height:46px; }
.file-search-more { margin-top:18px; }
.file-filter-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 18px; }
.file-record h2 { font-size:16px; overflow-wrap:anywhere; }
.file-record .section-heading { align-items:start; }
.file-meta { color:var(--muted); font-size:12px; margin:10px 0 14px; }
.file-actions { display:flex; flex-wrap:wrap; gap:18px; font-size:12px; margin:14px 0; }
.file-record>details { margin-top:18px; }
.file-record form { max-width:520px; }
.file-deactivate { padding-top:15px; border-top:1px solid var(--line); }
@media (max-width:600px) {
  .file-search-primary,.file-filter-grid { grid-template-columns:1fr; }
  .file-search-primary { gap:6px; }
  .file-search-primary button { margin-top:12px; }
  .file-record dl { grid-template-columns:1fr; gap:4px; }
  .file-record dd { margin-bottom:12px; }
  .attachment-chip { width:100%; justify-content:space-between; }
  .file-shortcuts { gap:12px; }
}

/* Reply formatting stays inside the existing message body. */
.reply-content { color:#d0d8d2; font-size:14px; line-height:1.85; overflow-wrap:anywhere; }
.message-body .reply-content strong { font-size:inherit; font-weight:600; }
.reply-content ul, .reply-content ol { margin:7px 0; padding-left:1.5em; }
.reply-content li { padding-left:.15em; white-space:pre-wrap; }
.reply-content h3 { font-size:inherit; font-weight:600; margin:12px 0 5px; }
.reply-content pre { max-width:100%; overflow:auto; margin:9px 0; padding:10px 12px; border:1px solid var(--line); border-radius:8px; background:rgba(0,0,0,.2); }
.reply-content code { font-size:.9em; white-space:pre-wrap; }
.reply-content pre code { white-space:pre; overflow-wrap:normal; }
@media (max-width:720px) { .reply-content { font-size:13px; } }

/* Conversation controls extend the established console without changing Core. */
.conversation-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px 18px; margin-top:24px; color:var(--muted); font-size:12px; }
.conversation-toolbar>div { min-width:0; overflow-wrap:anywhere; }
.conversation-toolbar strong { color:var(--ink); font-weight:500; }
.conversation-toolbar form,.conversation-record-actions form,.conversation-list-actions form { margin:0; }
.conversation-details { margin-top:12px; padding:10px 0; border-bottom:1px solid var(--line); font-size:12px; }
.conversation-details summary { color:var(--muted); }
.conversation-details .mono { overflow-wrap:anywhere; }
.conversation-details>form { margin:14px 0; }
.conversation-rename>div { display:flex; align-items:center; gap:12px; }
.conversation-rename input { min-width:0; }
.conversation-rename button { flex:0 0 auto; margin:0; }
.conversation-task-links { display:flex; align-items:center; flex-wrap:wrap; gap:8px 16px; margin:14px 0 0; font-size:12px; overflow-wrap:anywhere; }
.conversation-task-links:empty { display:none; }
.conversation-history-links { display:flex; justify-content:space-between; gap:16px; margin:8px 0 0; font-size:11px; }
.conversations-page { max-width:1200px; width:100%; }
.conversation-list-actions { display:flex; align-items:center; gap:22px; margin:24px 0; font-size:13px; }
.conversation-list-actions button { margin:0; }
.conversation-search { max-width:none; display:flex; align-items:end; gap:18px; padding-bottom:25px; }
.conversation-search>div { flex:1; min-width:0; }
.conversation-search .conversation-archive-filter { display:flex; align-items:center; gap:8px; flex:0 0 auto; margin:0 0 13px; font-size:12px; }
.conversation-search input[type=checkbox] { width:16px; min-height:16px; }
.conversation-search>button { margin:0; }
.conversation-record { display:flex; justify-content:space-between; align-items:center; gap:24px; padding:24px 0; border-top:1px solid var(--line); }
.conversation-record>div:first-child { min-width:0; }
.conversation-record h2 { margin:0; font-size:17px; font-weight:500; overflow-wrap:anywhere; }
.conversation-record h2 a { color:var(--ink); }
.conversation-record p { display:flex; align-items:center; flex-wrap:wrap; gap:12px; color:var(--muted); font-size:11px; margin:10px 0 0; }
.conversation-record-actions { display:flex; align-items:center; flex:0 0 auto; gap:20px; font-size:12px; }
@media (max-width:720px) {
  .conversation-toolbar { margin-top:20px; gap:10px; }
  .conversation-rename>div { flex-wrap:wrap; }
  .conversation-search { flex-wrap:wrap; gap:14px; }
  .conversation-search>div { flex-basis:100%; }
  .conversation-search .conversation-archive-filter { flex:1; margin:0; }
  .conversation-record { align-items:start; gap:14px; flex-direction:column; padding:20px 0; }
  .conversation-record-actions { gap:24px; }
}

/* Customer review uses existing Console surfaces; Core styles stay frozen. */
.messaging-page { max-width:1400px; width:100%; }
.messaging-layout { display:grid; grid-template-columns:minmax(220px,1fr) minmax(0,2fr); gap:36px; margin-top:32px; }
.messaging-inbox,.messaging-detail { min-width:0; }
.messaging-inbox h2,.messaging-detail h2 { font-size:20px; }
.messaging-inbox h3 { font-size:15px; margin:8px 0; overflow-wrap:anywhere; }
.messaging-inbox .conversation-record { padding:18px 0; }
.messaging-inbox .mono,.messaging-detail .mono { overflow-wrap:anywhere; }
.customer-message { padding:18px 0; border-bottom:1px solid var(--line); }
.customer-message-text { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.7; }
.messaging-context { margin-top:24px; padding:16px 0; border-bottom:1px solid var(--line); }
.messaging-detail form { max-width:none; }
.messaging-draft-action { margin:24px 0; }
.messaging-draft textarea { width:100%; resize:vertical; min-height:150px; }
.messaging-references { font-size:12px; }
.messaging-references dd { overflow-wrap:anywhere; }
@media (max-width:900px) {
  .messaging-layout { grid-template-columns:1fr; gap:24px; }
  .messaging-inbox { padding-bottom:20px; border-bottom:1px solid var(--line); }
  .messaging-references { grid-template-columns:1fr; gap:4px; }
  .messaging-references dd { margin:0 0 12px; }
}
