:root {
  color-scheme: light;
  font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
  color: #262923;
  background: #f5f3ee;
  --paper: #fffefa;
  --ink: #262923;
  --muted: #575b50;
  --line: #deded4;
  --accent: #344539;
  --accent-hover: #26382d;
  --soft: #f0f2ec;
  --warning: #684b24;
  --warning-bg: #f8f0df;
  --error: #8c3030;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-inline-size: 0; }
p, h1, h2, h3, ol, dl, dd { margin: 0; }
button, textarea, input, select { font: inherit; }
button, summary, label[for='synthetic-consent'] { cursor: pointer; }
button, textarea, select, input { min-inline-size: 0; }
:focus-visible { outline: 2px solid #44664d; outline-offset: 3px; }
.shell { width: min(100% - 3rem, 54rem); margin-inline: auto; padding-block: clamp(1.25rem, 4vh, 3rem); }
.masthead { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.wordmark { color: var(--ink); font-size: clamp(1.38rem, 4vw, 1.72rem); font-weight: 700; line-height: 1.35; white-space: nowrap; }
.tagline { color: var(--muted); font-size: .875rem; margin-block-start: .32rem; line-height: 1.55; }
.demo-warning { margin-block: 1.25rem .8rem; padding: .62rem .8rem; border: 1px solid #e8dac1; border-radius: .45rem; color: var(--warning); background: var(--warning-bg); font-size: .84rem; font-weight: 700; }
.workspace { display: flex; flex-direction: column; min-width: 0; height: min(49rem, 76vh); height: min(49rem, 76svh); min-height: 31rem; background: var(--paper); border: 1px solid var(--line); border-radius: .85rem; box-shadow: 0 .25rem 1.5rem #282a2310; }
.workspace-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .3rem 1rem; padding: .6rem 1.3rem; border-block-end: 1px solid var(--line); }
h1 { font-size: 1.05rem; line-height: 1.6; }
.health { position: relative; color: var(--muted); font-size: .8rem; }
.health summary { display: flex; align-items: center; gap: .4rem; min-height: 44px; list-style: none; }
.health summary::-webkit-details-marker { display: none; }
.health summary::after { content: ''; width: .35rem; height: .35rem; border: solid currentColor; border-width: 0 0 1px 1px; transform: rotate(-45deg); margin-inline-start: .25rem; }
.health[open] summary::after { transform: rotate(135deg); }
.health-dot { width: .45rem; height: .45rem; flex: none; border-radius: 50%; background: #866a38; }
.health[data-mode='ready'] .health-dot, .health[data-mode='fixture'] .health-dot { background: #47664e; }
.health[data-mode='unavailable'] .health-dot, .health[data-mode='offline'] .health-dot { background: var(--error); }
.health-panel { position: absolute; inset-inline-end: 0; inset-block-start: 100%; z-index: 2; width: min(20rem, 75vw); background: var(--paper); border: 1px solid var(--line); border-radius: .55rem; box-shadow: 0 .4rem 1.4rem #282a231c; padding: .85rem; line-height: 1.7; overflow-wrap: anywhere; }
.health-panel button { margin-block-start: .55rem; }
#model-session { border-block-start: 1px solid var(--line); padding-block-start: .35rem; margin-block-start: .45rem; }
#model-session h2 { font-size: inherit; margin-block-end: .2rem; }
#model-session-facts { margin-block-start: .25rem; }
#model-session-facts > div { display: flex; flex-wrap: wrap; gap: 0 .35rem; }
#model-session-facts dt { font-weight: 700; }
.transcript { flex: 1 1 auto; min-block-size: 0; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-gutter: stable; padding: clamp(1rem, 4vw, 2rem); }
.transcript:focus-visible { outline-offset: -3px; }
.welcome { margin-block-start: clamp(.6rem, 5vh, 3rem); max-width: 34rem; }
.welcome > :last-child { margin-block-start: .6rem; color: var(--muted); font-size: .93rem; line-height: 1.85; }
.greeting { font-size: clamp(1.32rem, 4vw, 1.85rem); font-weight: 700; line-height: 1.45; text-wrap: pretty; }
.messages { display: grid; gap: .95rem; padding: 0; list-style: none; }
.message { display: grid; gap: .25rem; justify-items: start; min-width: 0; }
.message[data-role='user'] { justify-items: end; }
.message-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .55rem; padding-inline: .18rem; font-size: .73rem; color: var(--muted); }
.message-author { font-weight: 700; }
.bubble { max-width: min(92%, 38rem); padding: .65rem .8rem; border: 1px solid var(--line); border-radius: .65rem; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.message[data-role='user'] .bubble { background: var(--soft); border-color: #dce2d8; }
.waiting { margin-block-start: 1rem; color: var(--muted); font-size: .85rem; line-height: 1.6; }
.composer { padding: .86rem 1.3rem 1.1rem; border-block-start: 1px solid var(--line); }
.consent { margin-block-end: .65rem; display: grid; gap: .14rem; }
.consent label { display: inline-flex; align-items: center; justify-self: start; gap: .42rem; min-height: 44px; font-size: .86rem; font-weight: 700; line-height: 1.6; }
.consent input { margin: 0; inline-size: 1.05rem; block-size: 1.05rem; flex: none; accent-color: var(--accent); }
.consent p, .feedback { color: var(--muted); font-size: .78rem; line-height: 1.7; }
.feedback { margin-block-end: .54rem; }
.feedback[data-kind='error'] { color: var(--error); }
.compose-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .55rem; }
textarea, select, .field-control { width: 100%; border: 1px solid #aaada1; border-radius: .45rem; background: var(--paper); color: var(--ink); padding: .56rem .67rem; line-height: 1.5; }
textarea { resize: vertical; min-height: 3.1rem; max-height: 9rem; }
textarea::placeholder { color: #64685c; opacity: 1; }
button { min-height: 44px; border: 1px solid transparent; border-radius: .45rem; padding: .46rem .9rem; background: var(--accent); color: #fff; font-size: .84rem; font-weight: 700; line-height: 1.5; }
button:not(:disabled):hover { background: var(--accent-hover); }
button.secondary { background: var(--paper); border-color: #c5c7bb; color: var(--ink); }
button.secondary:not(:disabled):hover { background: var(--soft); }
button:disabled { cursor: not-allowed; background: #e5e6df; color: #53574e; border-color: #e0e2da; }
.review { padding: clamp(.7rem, 3vw, 1rem); border: 1px solid #ccd2c7; border-radius: .65rem; background: #fafbf7; }
.review h2 { font-size: 1rem; line-height: 1.6; }
.review-summary, .field-hint, .field-issue { margin-block-start: .3rem; font-size: .81rem; line-height: 1.65; color: var(--muted); overflow-wrap: anywhere; }
.field-issue { color: var(--error); }
.review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem .9rem; margin-block: .6rem; }
.review-field { min-inline-size: 0; border-block-start: 1px solid var(--line); padding-block-start: .45rem; }
.review-field[data-field='notes'] { grid-column: 1 / -1; }
.review-field label, .review-field dt { display: block; font-size: .82rem; font-weight: 700; line-height: 1.55; }
.review-field dd { margin-block-start: .25rem; }
.review-field .field-status { display: inline-block; margin-block-start: .28rem; color: var(--warning); font-size: .76rem; }
.field-value { line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.field-control { margin-block-start: .26rem; min-height: 44px; }
.field-control[aria-invalid='true'] { border-color: var(--error); }
.review-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.case-board { margin-block-start: .85rem; overflow-wrap: anywhere; }
.case-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .45rem; }
.case-facts { margin-block: .45rem; color: var(--muted); font-size: .81rem; line-height: 1.75; }
.case-streams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; margin-block-start: .55rem; }
.case-streams button { padding-inline: .55rem; text-align: start; }
.case-streams button[aria-pressed='true'] { background: var(--soft); border-color: var(--accent); }
.case-status { display: block; color: var(--muted); font-weight: 400; font-size: .76rem; margin-block-start: .12rem; }
.case-detail { border-block-start: 1px solid var(--line); padding-block-start: .55rem; margin-block-start: .6rem; }
.case-detail h3, .case-detail h4 { margin: 0; font-size: .9rem; line-height: 1.6; }
.case-detail h3 { margin-block-end: .35rem; }
.case-detail > h4 { margin-block-start: .5rem; }
.case-list { margin: .25rem 0 .4rem; padding-inline-start: 1.15rem; color: var(--muted); font-size: .82rem; line-height: 1.7; }
.case-files { list-style: none; padding: 0; }
.case-file { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .65rem; border-block-end: 1px solid var(--line); }
.case-file > :first-child { flex-basis: 100%; color: var(--ink); }
.case-file a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-hover); font-weight: 700; }
.case-file a[aria-disabled='true'] { pointer-events: none; color: var(--muted); }
.case-draft { margin-block-start: .55rem; }
.case-draft-copy { font-size: .82rem; margin-block-start: .4rem; }
.case-draft-copy dt { margin-block-start: .4rem; font-weight: 700; }
.case-draft input[readonly] { background: var(--soft); }
.case-draft > .case-draft-attachments { margin-block-start: .5rem; }
.case-detail .review-actions, .case-proposals .review-actions { margin-block-start: .45rem; }
.case-chat-action { border-block-start: 1px solid var(--line); padding-block-start: .45rem; margin-block: .5rem; }
.case-chat-action h3 { font-size: .86rem; line-height: 1.6; }
.case-action-form { border-inline-start: 3px solid #c5c7bb; padding-inline-start: .55rem; margin-block-start: .6rem; }
.case-field { margin-block-start: .45rem; }
.case-field label { display: inline-block; font-size: .81rem; line-height: 1.55; font-weight: 700; }
.case-field input[type='checkbox'] { accent-color: var(--accent); }
.case-field input[type='checkbox'][aria-invalid='true'] { outline: 2px solid var(--error); outline-offset: 3px; }
.case-field-hint, .case-field-error { margin: .2rem 0 0; font-size: .78rem; line-height: 1.6; }
.case-field-hint { color: var(--muted); }
.case-field-error { color: var(--error); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.javascript-note { padding: 1rem; text-align: center; }
@media (max-width: 36rem) {
  .shell { width: calc(100% - 1.2rem); padding-block: .75rem; }
  .workspace-head, .composer { padding-inline: .72rem; }
  .transcript { padding: .8rem; }
  .demo-warning { margin-block: .8rem .55rem; }
  .review-grid:has(.field-control) { grid-template-columns: minmax(0, 1fr); }
  .masthead button { padding-inline: .62rem; }
}
@media (max-height: 42rem) { .workspace { min-height: 29rem; } }
/* RAJIH 2.0 — refined executive workspace; non-destructive extension of current UI */
:root {
  font-family: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;
  background: #F8F5F0;
  color: #292723;
  --paper: #FFFEFC;
  --ink: #292723;
  --muted: #73695f;
  --line: #E7DED3;
  --accent: #805B41;
  --accent-hover: #694630;
  --soft: #F2E7D9;
  --warning: #79512a;
  --warning-bg: #fff5e5;
  --error: #9d3131;
}
:lang(en), [dir="ltr"] { font-family: Inter, 'Segoe UI', Arial, sans-serif; }
:focus-visible { outline: 2px solid #805B41; outline-offset: 3px; }
body { background: #F8F5F0; }
button { transition: background 160ms ease, border-color 160ms ease, transform 120ms ease, opacity 160ms ease; }
button:not(:disabled):active { transform: translateY(1px); }
button:not(:disabled):hover { background: var(--accent-hover); }
button:disabled { cursor: not-allowed; }
.app-frame { display: grid; grid-template-columns: 238px minmax(0,1fr) 334px; min-height: 100dvh; direction: rtl; }
.main-sidebar { background: #805B41; color: #fff8f0; padding: 25px 15px 18px; display: flex; flex-direction: column; min-width: 0; height: 100dvh; position: sticky; top: 0; border-inline-end: 1px solid #745238; }
.sidebar-brand { display: grid; gap: 4px; padding: 0 10px 23px; border-bottom: 1px solid #ffffff2b; }
.sidebar-wordmark { font-family: Inter, sans-serif; font-size: 23px; letter-spacing: .1em; font-weight: 750; }
.sidebar-product { font-size: 12px; color: #f4e4d8; }
.nav-new { width: 100%; background: #fffaf4; color: #694630; border: 1px solid #ffffff60; margin: 21px 0 12px; display: flex; align-items: center; justify-content: center; gap: .55rem; border-radius: 11px; }
.nav-new:not(:disabled):hover { color:#563723; background:#eee1d1; }
.nav-new:disabled { background:#ead7c7; color:#785c49; }
.nav-new span { font-size: 21px; }
.side-links { display: grid; gap: 5px; }
.side-link { display: flex; align-items: center; gap: 12px; color: #f9f2e9; background: transparent; border: 1px solid transparent; border-radius: 10px; text-align: right; justify-content: flex-start; padding: 11px 12px; font-weight: 500; }
.side-link > span:first-child { font-size: 20px; width: 25px; text-align: center; }
.side-link:not(:disabled):hover, .side-link.is-active { background:#ffffff1f; border-color:#ffffff27; }
.sidebar-history { border-top: 1px solid #ffffff2b; margin-top: 19px; padding-top: 17px; }
.history-heading { display:flex; justify-content:space-between; align-items:center; font-size:12px; color:#f2e4d6; padding-inline:10px; }
.history-delete { background:transparent; color:#f7eae1; min-height:31px; padding:1px 9px; font-size:21px; opacity:.45; }
.sidebar-history:hover .history-delete, .history-delete:focus-visible { opacity:1; }
.history-delete:not(:disabled):hover { background:#ffffff30; }
.history-current { display:flex; gap:10px; align-items:center; text-align:right; font-size:12px; color:#fffaf2; background:#ffffff18; border:1px solid #ffffff20; width:100%; border-radius:9px; margin-top:10px; padding:11px 12px; }
.history-current:not(:disabled):hover { background:#ffffff2a; }
.sidebar-bottom { margin-top:auto; padding-top:14px; border-top:1px solid #ffffff2b; display:grid; gap:16px; }
.sidebar-collapse { font-size:12px; color:#efe0d4; background:transparent; text-align:right; border:0; display:flex; gap:10px; align-items:center; }
.sidebar-collapse:not(:disabled):hover { background:#ffffff18; }
.company-logo { width:100%; padding: 10px; border-radius: 12px; background:#fffcf7; display:flex; justify-content:center; align-items:center; }
.company-logo img { display:block; max-width:100%; width:145px; max-height:110px; object-fit:contain; }
.shell { width:auto; max-width:none; margin:0; padding:26px clamp(14px,1.7vw,32px) 21px; min-width:0; display:flex; flex-direction:column; }
.masthead { min-height:70px; }
.wordmark { font-size:clamp(23px,2.1vw,30px); letter-spacing:-.025em; }
.wordmark bdi { font-weight:780; }
.word-separator { color:#9A8573; padding-inline:3px; }
.tagline { margin-top:2px; }
.demo-warning { margin:9px 0 15px; background:#fff4e2; padding:9px 15px; border:1px solid #e9d6b8; border-radius:10px; font-size:13px; font-weight:600; }
.demo-warning span { margin-inline-end:7px; }
.workspace { flex:1; height:calc(100dvh - 165px); min-height:520px; max-height:950px; border:1px solid #e4dad0; border-radius:18px; box-shadow:0 8px 36px #4c392b0b; overflow:hidden; }
.workspace-head { padding:15px 21px; gap:10px; }
.workspace-head h1 { font-size:18px; }
.transcript { padding:25px clamp(18px,2.6vw,37px); overscroll-behavior:contain; }
.welcome { margin:clamp(30px,9vh,100px) 0 0; max-width: 100%; text-align:center; }
.welcome-kicker { color:#805B41; margin-bottom:12px; font-size:13px; font-weight:600; }
.greeting { font-size:clamp(24px,2.6vw,35px); font-weight:750; line-height:1.65; }
.messages { gap:18px; }
.message { gap:7px; }
.bubble { max-width:89%; border-radius:15px; border-color:#e8ded4; font-size:14px; padding:12px 15px; line-height:1.85; }
.message[data-role=user] .bubble { background:#F2E7D9; border-color:#ead8c4; }
.message-meta { font-size:12px; }
.message-meta .speak-reply { border:0; background:transparent; color:#805B41; min-height:25px; padding:0 4px; font-size:15px; }
.message-meta .speak-reply:not(:disabled):hover { background:#f4e8dc; }
.composer { border-block-start:1px solid #e9e0d7; padding:14px 21px 16px; }
.compose-row { position:relative; display:flex; align-items:flex-end; border:1px solid #dacdbf; border-radius:15px; background:#fffcf9; gap:4px; padding:7px 9px; }
.compose-row:focus-within { border-color:#a78365; box-shadow:0 0 0 3px #c8a88e1f; }
.compose-row textarea { flex:1; min-height:49px; max-height:145px; padding:13px 9px; background:transparent; border:0; outline:0; box-shadow:none; resize:none; font-size:14px; }
.compose-buttons { display:flex; align-items:center; gap:7px; }
.compose-buttons button { border-radius:10px; padding:8px; width:40px; min-height:40px; font-size:20px; }
.voice-input { background:transparent; color:#805B41; border:0; }
.voice-input:not(:disabled):hover { background:#f2e6d9; }
#send-message { background:#805B41; color:#fff; }
#send-message:not(:disabled):hover { background:#694630; }
.composer-bottom { display:flex; gap:15px; align-items:flex-start; justify-content:space-between; padding-top:9px; }
.consent { margin:0; }
.consent label { min-height:24px; font-size:12px; font-weight:600; }
.consent p { font-size:11px; margin:2px 0 0; }
.speech-status { font-size:12px; color:#805B41; min-height:15px; flex:none; }
.feedback { font-size:12px; }
.health { font-size:12px; }
.health-panel { z-index:7; width:min(340px,85vw); border-radius:12px; box-shadow:0 12px 36px #2b221a23; }
.companion-column { border-inline-start:1px solid #e7ddd2; background:#f7f2eb; padding:24px 15px; min-width:0; min-height:0; display:flex; flex-direction:column; gap:14px; height:100dvh; position:sticky;top:0; }
.character-card { flex:none; background:#FFFEFC; border:1px solid #e7ddd1; border-radius:20px; padding:18px 15px 15px; display:grid; justify-items:center; gap:4px; box-shadow:0 8px 28px #32271a0a; }
.character-halo { width:169px; height:169px; border-radius:50%; overflow:hidden; background:#e9d9c8; border:8px solid #f5e9dc; box-shadow:0 0 0 1px #dec8b4; }
.rajih-character { width:100%; height:100%; display:block; object-fit:cover; object-position:center 19%; }
.character-card h2 { font-weight:760; font-size:20px; margin-top:7px; }
.character-card h2 span { font-family:Inter,sans-serif; font-size:16px; }
.character-card > p { color:#796b5d; font-size:12px; margin-top:2px; }
.character-actions { display:flex; align-items:center; gap:7px; margin-top:12px; }
.character-actions .voice-cta { background:#805B41; border-radius:9px; padding:8px 12px; font-size:12px; }
.character-actions .voice-cta:not(:disabled):hover { background:#694630; }
.voice-stop { color:#805B41; background:#f5e7d8; border-color:#ead8c5; padding:7px 10px; }
.voice-stop:not(:disabled):hover { background:#e6d3c0; }
.voice-availability { color:#7b6f64; font-size:10px; }
.employee-inspector { flex:1; min-height:160px; border:1px solid #e5d9cd; border-radius:17px; display:flex; flex-direction:column; overflow:hidden; background:#fffcf8; box-shadow:0 6px 22px #32271a08; }
.inspector-header { flex:none; display:flex; align-items:center; justify-content:space-between; padding:15px; border-bottom:1px solid #eee5db; gap:10px; }
.eyebrow { color:#805B41; font-size:11px; }
.inspector-header h2 { font-size:16px; margin-top:3px; }
.inspector-toggle { min-height:32px; min-width:32px; background:#f5eee7; color:#805B41; padding:4px; font-size:19px; }
.inspector-toggle:not(:disabled):hover { background:#eadac9; }
.inspector-content { overflow:auto; overscroll-behavior:contain; padding:14px; flex:1; min-height:0; }
.employee-inspector.is-collapsed { flex:none; }
.employee-inspector.is-collapsed .inspector-content { display:none; }
.inspector-content .review { padding:10px 0; border:0; border-radius:0; background:transparent; }
.inspector-content .review:not(:last-child) { border-bottom:1px solid #e9e0d7; }
.inspector-content .review-grid { grid-template-columns:minmax(0,1fr); }
.inspector-content .case-board { margin:0; }
.inspector-content .case-head { gap:10px; }
.inspector-content .case-head h2 { font-size:14px; }
.inspector-content .review-summary { font-size:12px; }
.inspector-content .case-streams { gap:7px; }
.inspector-content .case-streams button { text-align:right; font-size:12px; line-height:1.55; min-height:60px; padding:8px 7px; border-radius:9px; background:#fff; color:#42362d; border-color:#e3d6c9; font-weight:650; }
.inspector-content .case-streams button[aria-pressed=true] { background:#f2e7d9; border-color:#9a765d; }
.inspector-content .case-streams button:not(:disabled):hover { background:#f5ece3; }
.inspector-content .case-status { font-size:10px; margin-top:4px; }
.inspector-content .case-detail { margin-top:15px; }
.inspector-content .case-file, .inspector-content .case-draft { overflow-wrap:anywhere; }
.inspector-content .review-actions button, .inspector-content .case-head button { font-size:12px; min-height:39px; }
.inspector-content textarea { resize:vertical; }
.inspector-content .case-draft-copy { font-size:12px; }
.settings-dialog, .voice-dialog { border:1px solid #e5d7c8; border-radius:20px; box-shadow:0 22px 80px #23180e50; background:#fffcf8; color:#292723; width:min(520px,calc(100% - 24px)); max-height:88dvh; padding:21px; }
.settings-dialog::backdrop, .voice-dialog::backdrop { background:#241a12a8; }
.dialog-top { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:17px; }
.dialog-top h2 { font-size:23px; }
.dialog-close { background:#f3e6da; color:#805B41; min-height:36px; padding:4px 11px; }
.dialog-close:not(:disabled):hover { background:#ead8c5; }
.setting-sections { display:grid; gap:10px; overflow:auto; max-height:66dvh; }
.setting-group { background:#fff; border:1px solid #ede2d6; border-radius:12px; padding:0 13px; }
.setting-group summary { cursor:pointer; display:flex; align-items:center; justify-content:space-between; font-size:14px; font-weight:650; padding:16px 4px; list-style:none; }
.setting-group summary::-webkit-details-marker { display:none; }
.setting-row { display:flex; align-items:center; justify-content:space-between; gap:20px; border-top:1px solid #ede2d6; padding:11px 4px; font-size:13px; }
.setting-row input { accent-color:#805B41; width:18px; height:18px; }
.setting-note { border-top:1px solid #ede2d6; padding:13px 4px; font-size:12px; color:#786c61; line-height:1.9; }
#settings-check-health { margin-bottom:13px; }
.voice-dialog { text-align:center; }
.voice-dialog .dialog-top { text-align:right; }
.voice-avatar { display:block; margin:0 auto 15px; width:165px; height:165px; border-radius:50%; object-fit:cover; object-position:center 19%; border:9px solid #f0e1d0; }
#voice-state { color:#805B41; font-weight:700; margin-bottom:10px; }
.voice-explain { font-size:12px; color:#796c5e; line-height:1.8; }
.voice-dialog-actions { display:flex; justify-content:center; gap:10px; margin-top:22px; }
.skip-link { position:absolute; top:-100px; right:10px; z-index:50; background:#fff; color:#805B41; padding:10px; }
.skip-link:focus { top:10px; }
.mobile-nav { display:none; }
.app-frame.sidebar-collapsed { grid-template-columns:76px minmax(0,1fr) 334px; }
.sidebar-collapsed .sidebar-product, .sidebar-collapsed .nav-new, .sidebar-collapsed .side-link span:last-child, .sidebar-collapsed .sidebar-history, .sidebar-collapsed .sidebar-collapse { display:none; }
.sidebar-collapsed .sidebar-brand { padding:0 0 19px; }
.sidebar-collapsed .sidebar-wordmark { letter-spacing:0; font-size:11px; text-align:center; }
.sidebar-collapsed .side-link { justify-content:center; padding-inline:5px; }
.sidebar-collapsed .company-logo { padding:4px; }
.sidebar-collapsed .company-logo img { width:55px; }
@media (max-width:1190px) { .app-frame { grid-template-columns:205px minmax(0,1fr) 290px; } .app-frame.sidebar-collapsed { grid-template-columns:70px minmax(0,1fr) 290px; } .companion-column { padding:16px 10px; } .shell { padding-inline:12px; } .character-halo {width:136px;height:136px;} .character-card {padding:12px 9px;} }
@media (max-width:920px) { .app-frame, .app-frame.sidebar-collapsed { grid-template-columns:71px minmax(0,1fr); } .main-sidebar { padding:16px 8px; } .main-sidebar .nav-new, .main-sidebar .side-link span:last-child, .main-sidebar .sidebar-history, .main-sidebar .sidebar-product, .main-sidebar .sidebar-collapse { display:none; } .main-sidebar .side-link { justify-content:center; padding:10px 3px; } .main-sidebar .sidebar-wordmark {font-size:11px;letter-spacing:0;} .main-sidebar .company-logo {padding:3px;} .companion-column { grid-column:2; height:auto; position:static; padding:0 14px 18px; display:grid; grid-template-columns:180px minmax(0,1fr); align-items:start; border:0; background:transparent; } .character-halo {width:104px;height:104px;} .character-card h2 {font-size:15px;} .character-card > p,.voice-availability {display:none;} .character-actions {flex-wrap:wrap;justify-content:center;} .employee-inspector {max-height:490px; height:100%;} .workspace {height: min(650px, 70dvh);} }
@media (max-width:650px) { .app-frame, .app-frame.sidebar-collapsed { display:block; } .main-sidebar { position:fixed; z-index:30; top:0; bottom:0; right:0; width:235px; height:100dvh; transform:translateX(105%); transition:transform 220ms ease; box-shadow:-10px 0 30px #0003; } .app-frame.mobile-nav-open .main-sidebar { transform:translateX(0); } .main-sidebar .nav-new, .main-sidebar .side-link span:last-child, .main-sidebar .sidebar-history, .main-sidebar .sidebar-product, .main-sidebar .sidebar-collapse {display:flex;} .main-sidebar .side-link {justify-content:flex-start;padding-inline:11px;} .main-sidebar .sidebar-wordmark {font-size:22px;letter-spacing:.1em;} .mobile-nav {display:inline-flex;} .shell {padding:12px;} .masthead {min-height:57px;} .wordmark {font-size:23px;} .tagline {font-size:11px;} .demo-warning {margin:5px 0 9px;font-size:12px;} .workspace {height:70dvh;min-height:440px;border-radius:14px;} .workspace-head {padding:11px 13px;} .transcript {padding:15px;} .greeting {font-size:23px;} .composer {padding:9px 11px 11px;} .compose-row {padding:3px 6px;} .composer-bottom {display:block;} .consent p {font-size:10px;} .companion-column {display:flex;padding:0 12px 18px;gap:8px;} .character-card {display:grid;grid-template-columns:57px 1fr auto;grid-template-rows:auto auto;justify-items:start;width:100%;gap:2px 10px;text-align:right; } .character-halo {grid-row:1/3;width:55px;height:55px;border-width:3px;} .character-card h2 {grid-column:2;grid-row:1;margin:0;} .character-card .character-actions {grid-row:1/3;grid-column:3;margin:0;align-self:center;} .character-card .voice-cta {padding:7px;font-size:11px;} .character-card .voice-stop {display:none;} .character-card > p,.character-card .voice-availability {display:none;} .employee-inspector {width:100%;max-height:430px;min-height:70px;} .settings-dialog,.voice-dialog {padding:16px;} }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; scroll-behavior:auto !important; } }

/* Display-density preference is a real UI control, not a decorative toggle. */
body.compact-mode .transcript { padding: 12px 18px; }
body.compact-mode .messages { gap: 9px; }
body.compact-mode .bubble { padding: 8px 12px; }
body.compact-mode .inspector-content { padding: 9px; }
body.compact-mode .case-streams { gap: 4px; }

.alerts-snapshot { border:1px solid #e6d7c8; background:#fff5eb; border-radius:11px; padding:11px; margin-bottom:12px; }
.alerts-snapshot h3 { font-size:14px; margin-bottom:7px; }
.alerts-snapshot p { font-size:12px; line-height:1.7; color:#6f5b49; }

.side-link svg, .compose-buttons svg {width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;display:block;}
.side-link > span:first-child {display:flex;align-items:center;justify-content:center;}
.compose-buttons button {display:flex;align-items:center;justify-content:center;}
.close-mobile-nav {display:none;}
@media (max-width:650px) {.close-mobile-nav {display:block;align-self:flex-end;max-width:40px;background:#ffffff22;color:#fff;margin-bottom:5px;}}

/* Executive 2026 refinement: progressive disclosure, generous avatar, deliberate contrast. */
:root { --navy-brown:#594338; --navy-brown-hover:#705546; --copper:#916849; --cream:#F5F0E9; --accent:#805B41; --accent-hover:#684A35; }
body { background:#F7F4EF; }
.app-frame { grid-template-columns: 232px minmax(0,1fr) minmax(350px,26.5vw); }
.main-sidebar { background:linear-gradient(180deg,#594338,#62483A 67%,#4C392F); border:0; padding:24px 14px 19px; }
.sidebar-brand { padding:4px 9px 20px; }
.sidebar-wordmark { font-family:'IBM Plex Sans Arabic','Segoe UI',Tahoma,sans-serif; font-size:21px; font-weight:720; letter-spacing:0; display:flex; align-items:baseline; gap:8px; }
.sidebar-wordmark bdi { font:700 15px Inter,'Segoe UI',sans-serif; letter-spacing:.08em; opacity:.78; }
.sidebar-product { font-size:11px; opacity:.85; }
.side-link { border-radius:12px; font-size:14px; }
.side-link.is-active { background:#ffffff23; border-color:#ffffff23; }
.company-logo { background:transparent; padding:4px 11px; border:0; min-height:130px; }
.company-logo img { width:min(100%,183px); max-height:142px; object-fit:contain; filter:brightness(0) invert(1); opacity:.94; }
.company-logo img:hover { opacity:1; }
.sidebar-history { overflow-y:auto; min-height:115px; max-height:38vh; scrollbar-width:thin; scrollbar-color:#ffffff42 transparent; }
.history-heading { align-items:flex-start; flex-direction:column; gap:4px; font-weight:650; }
.history-subtitle { font-weight:400; opacity:.68; font-size:10px; }
.history-items { display:grid; gap:6px; padding-top:10px; }
.history-row { display:flex; align-items:center; border:1px solid transparent; border-radius:11px; min-width:0; transition:background 180ms ease, transform 180ms ease; }
.history-row:hover { background:#ffffff16; }
.history-row.active { background:#ffffff22; border-color:#ffffff29; }
.history-select { min-width:0; flex:1; text-align:right; background:transparent; color:#FFF8F1; padding:10px 9px; border:0; font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.history-select:not(:disabled):hover { background:transparent; }
.history-actions { display:flex; padding-left:6px; gap:2px; opacity:0; transition:opacity 150ms; }
.history-row:hover .history-actions, .history-row:focus-within .history-actions { opacity:1; }
.history-action { min-width:27px; min-height:29px; padding:3px; color:#FFF8F1; background:transparent; border:0; font-size:15px; }
.history-action:not(:disabled):hover { background:#ffffff29; }
.sidebar-collapse { color:#fff9f1; border:1px solid #ffffff2e; border-radius:12px; min-height:42px; justify-content:space-between; padding:7px 12px; }
.collapse-symbol { font-size:13px; }
.app-frame.sidebar-collapsed { grid-template-columns:76px minmax(0,1fr) minmax(350px,26.5vw); }
.sidebar-collapsed .sidebar-history { display:none; }
.sidebar-collapsed .sidebar-collapse { display:flex !important; width:46px; justify-content:center; padding:8px; margin:auto; }
.sidebar-collapsed .collapse-label { display:none; }
.sidebar-collapsed .collapse-symbol { transform:rotate(180deg); }
.sidebar-collapsed .sidebar-brand .sidebar-wordmark { font-size:0; }
.sidebar-collapsed .sidebar-wordmark::before { content:'ر'; font:700 25px 'IBM Plex Sans Arabic','Segoe UI',sans-serif; }
.sidebar-collapsed .sidebar-wordmark bdi { display:none; }
.sidebar-collapsed .company-logo img { width:56px; max-height:78px; }
.shell { padding:22px clamp(14px,1.65vw,32px) 18px; }
.masthead { min-height:68px; }
.wordmark { font-size:clamp(22px,1.95vw,28px); }
.demo-warning { font-size:12px; font-weight:550; background:#f9f0e1; border-color:#e9d9bf; margin:5px 0 12px; padding:8px 13px; }
.workspace { height:calc(100dvh - 149px); min-height:510px; border-radius:20px; box-shadow:0 14px 48px #4c392b0a; }
.workspace-head { padding:15px 23px; }
.workspace-head h1 { font-size:17px; }
.welcome { margin-top:clamp(70px,14vh,155px); }
.greeting { font-size:clamp(25px,2.4vw,33px); letter-spacing:-.035em; }
.compose-row { border-radius:17px; }
.compose-row textarea { text-align:right; direction:rtl; font-size:15px; }
.compose-row textarea::placeholder { text-align:right; }
.composer-bottom { flex-direction:row-reverse; justify-content:space-between; align-items:center; }
.composer-bottom .consent { margin:0; }
.composer-bottom .consent label { color:#70635a; font-size:11px; }
.composer-bottom .speech-status { color:#805B41; }
.companion-column { background:#F6F1EA; padding:18px 16px; gap:14px; }
.character-card { position:relative; padding:20px 15px 19px; border-radius:22px; background:#FFFEFC; gap:8px; }
.character-halo { width:clamp(205px,16.5vw,270px); height:clamp(205px,16.5vw,270px); border-width:5px; background:radial-gradient(circle,#f7e9da,#e7d4c1); overflow:hidden; }
.rajih-character { object-fit:contain; object-position:center bottom; padding:0 5px; }
.character-card h2 { margin-top:1px; font-size:23px; }
.character-card h2 span { font-size:17px; }
.character-expand { position:absolute; left:17px; top:15px; min-width:38px; min-height:38px; border:1px solid #e1d3c5; border-radius:11px; background:#f8f2ea; color:#594338; padding:6px; font-size:22px; line-height:1; z-index:1; }
.character-expand:not(:disabled):hover { background:#ede1d3; }
.character-actions { margin-top:9px; }
.character-actions .voice-cta { border-radius:11px; padding:10px 17px; font-size:13px; }
.voice-stop { min-width:40px; border-radius:11px; }
.employee-inspector { min-height:100px; background:#fffefd; }
.inspector-header h2 { font-size:15px; }
.setting-sections { gap:11px; }
.setting-group { border-radius:16px; box-shadow:0 1px 4px #4c392b06; }
.setting-group summary { padding:18px 8px; font-weight:650; }
.setting-row { cursor:pointer; position:relative; min-height:58px; }
.setting-row input[role=switch] { position:absolute; width:50px; height:30px; margin:0; opacity:0; cursor:pointer; inset-inline-end:4px; z-index:2; }
.ios-switch { width:49px; height:29px; border-radius:999px; background:#d8d4cf; box-shadow:inset 0 1px 3px #0001; transition:background 180ms ease; flex:none; position:relative; pointer-events:none; }
.ios-switch::before { content:''; position:absolute; width:23px; height:23px; border-radius:50%; background:#fff; box-shadow:0 1px 4px #0002; top:3px; inset-inline-start:3px; transition:transform 180ms ease; }
.setting-row input[role=switch]:checked + .ios-switch { background:#805B41; }
.setting-row input[role=switch]:checked + .ios-switch::before { transform:translateX(-20px); }
.setting-row input[role=switch]:focus-visible + .ios-switch { outline:3px solid #c2a98f; outline-offset:3px; }
.voice-dialog { width:min(650px,calc(100% - 24px)); }
.voice-avatar { width:220px; height:220px; background:#e7d2bd; object-fit:contain; }
@media (max-width:1250px) { .app-frame { grid-template-columns:205px minmax(0,1fr) 325px; } .app-frame.sidebar-collapsed { grid-template-columns:70px minmax(0,1fr) 325px; } .character-halo {width:208px;height:208px;} }
@media (max-width:1040px) { .app-frame { grid-template-columns:75px minmax(0,1fr) 315px; } .app-frame.sidebar-collapsed {grid-template-columns:75px minmax(0,1fr) 315px;} .main-sidebar {padding-inline:8px;} .main-sidebar .sidebar-product,.main-sidebar .nav-new,.main-sidebar .side-link span:last-child,.main-sidebar .sidebar-history {display:none;} .main-sidebar .sidebar-wordmark {font-size:0;} .main-sidebar .sidebar-wordmark::before{content:'ر';font-size:24px;} .main-sidebar .sidebar-wordmark bdi{display:none;} .main-sidebar .side-link{justify-content:center;padding-inline:7px;} .sidebar-collapse {width:46px;justify-content:center;padding:7px;margin:auto;} .sidebar-collapse .collapse-label{display:none;} .company-logo img{width:55px;} .sidebar-collapse .collapse-symbol{display:block;} }
@media (max-width:920px) { .app-frame,.app-frame.sidebar-collapsed{grid-template-columns:75px minmax(0,1fr);} .companion-column{grid-column:2; padding:4px 15px 16px;} .character-card{display:grid;grid-template-columns:120px minmax(0,1fr);grid-template-rows:auto auto;justify-items:center;gap:5px 13px;} .character-halo{grid-column:1;grid-row:1/3;width:115px;height:115px;} .character-card h2{grid-row:1;grid-column:2;align-self:end;} .character-card .character-actions{grid-row:2;grid-column:2;} .character-expand{top:5px;left:5px;} .employee-inspector{max-height:450px;} .sidebar-collapsed .sidebar-collapse{display:flex;} }
@media (max-width:650px) { .app-frame,.app-frame.sidebar-collapsed{display:block;} .main-sidebar{width:min(275px,87vw);padding:20px 12px; transform:translateX(105%);} .app-frame.mobile-nav-open .main-sidebar{transform:translateX(0);} .main-sidebar .sidebar-product,.main-sidebar .nav-new,.main-sidebar .side-link span:last-child,.main-sidebar .sidebar-history{display:block;} .main-sidebar .sidebar-wordmark{font-size:21px;} .main-sidebar .sidebar-wordmark::before{display:none;} .main-sidebar .sidebar-wordmark bdi{display:inline;} .main-sidebar .side-link{justify-content:flex-start;} .sidebar-collapse{width:100%;justify-content:space-between;} .sidebar-collapse .collapse-label{display:block;} .shell{padding:10px 12px;} .masthead{min-height:56px;} .workspace{height:70dvh;min-height:450px;} .companion-column{padding:7px 12px 22px;} .character-card{grid-template-columns:100px 1fr;} .character-halo{width:94px;height:94px;} .character-card h2{font-size:17px;} .character-actions .voice-cta{font-size:11px;padding:8px;} .character-expand{font-size:16px;} .history-actions{opacity:1;} }
@media (hover:none) { .history-actions{opacity:1;} }

/* Keep official RAWAJEH art in its original colors; no white plaque. */
.company-logo { background:#D8C2AB; border-radius:14px; padding:7px 12px; }
.company-logo img { filter:none; opacity:1; width:min(100%,165px); max-height:137px; }
.character-halo { border:4px solid #f3e9dd; background:#ead2bd; }
.rajih-character { object-fit:cover; padding:0; object-position:center center; }
.voice-avatar { object-fit:cover; }

/* Compact consistent illustration for assistant messages. */
.message[data-role='assistant'] { position:relative; padding-inline-start:44px; }
.message[data-role='assistant']::before { content:''; position:absolute; inset-inline-start:0; top:0; width:34px; height:34px; border-radius:50%; background:#ead9c7 url('/favicon.png') center/cover no-repeat; border:1px solid #e5d2bf; }
.voice-input[aria-pressed='true'] { background:#ead5be; color:#594338; box-shadow:0 0 0 2px #a77e62; }
@media (max-width:650px) { .message[data-role='assistant'] {padding-inline-start:36px;} .message[data-role='assistant']::before{width:28px;height:28px;} }
@media (max-width:920px) and (min-width:651px) { .main-sidebar .sidebar-collapse {display:flex;} }

/* Functional voice and privacy UX; Hermes will handle the final visual theme. */
.demo-warning { display:table; max-width:100%; width:max-content; margin-inline-start:0; border-radius:999px; padding:5px 13px; font-size:12px; }
.composer-bottom .consent { display:none; } /* replaced by one-time informed-consent dialog */
.fictional-use-dialog { width:min(460px,calc(100% - 28px)); border:1px solid #d9c7b5; border-radius:16px; padding:24px; background:#fffdf9; color:#34271D; box-shadow:0 24px 70px #17100c50; }
.fictional-use-dialog::backdrop { background:#21180f9a; }
.fictional-use-dialog h2 { margin-top:0; }
.fictional-use-dialog p { line-height:1.9; font-size:14px; }
.fictional-actions { display:flex; flex-wrap:wrap; gap:10px; justify-content:flex-start; }
.voice-is-live .voice-cta { background:#34271D; outline:2px solid #AD9176; outline-offset:3px; }
.voice-is-live .character-halo { box-shadow:0 0 0 3px #9F7B5E66,0 0 26px #9F7B5E55; }
@media(prefers-reduced-motion:reduce){ .voice-is-live .voice-cta { transition:none; } }
