
body { font-family: var(--body); font-size: 14px; color: var(--ink); background: var(--bg); }
.sidebar { width: 196px; flex: 0 0 196px; background: var(--paper); border-right: 1px solid var(--border); box-shadow: none; }
.brand { height: 76px; display: flex; align-items: center; gap: 9px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.brand-mark { width: 40px; height: 40px; flex: none; display: block; }
.brand-word { font: 400 27px/1 var(--pixel); letter-spacing: 3px; color: #0866ed; text-shadow: 1px 0 0 #0866ed, 0 1px 0 #0866ed, 1px 1px 0 #0866ed, 3px 3px 0 #dcecf8; white-space: nowrap; }
.brand-word small { display: block; font: 600 9.5px/1.45 var(--body); letter-spacing: 0; margin-top: 4px; color: var(--ink); text-shadow: none; white-space: normal; }
.nav-menu { padding: 27px 13px 16px; }
.nav-caption { font-size: 10px; letter-spacing: 1.7px; color: #566d88; margin: 0 12px 12px; font-weight: 700; text-transform: uppercase; }
.nav-divider { border: 0; border-top: 1px solid var(--border); margin: 20px 12px; }
.sidebar .nav-item { display: flex; align-items: center; width: 100%; gap: 11px; padding: 12px 13px; text-align: left; color: #566d88; position: relative; border-radius: 5px; font-size: 14px; margin-bottom: 6px; white-space: nowrap; font-weight: 500; background: none; box-shadow: none; }
.sidebar .nav-item i { font-size: 18px; color: inherit; }
.sidebar .nav-item:hover { background: #eef9ff; color: #566d88; }
.sidebar .nav-item.active { color: var(--green); font-weight: 700; background: #dcecf8; box-shadow: inset 3px 0 var(--green); }
.sidebar .nav-item.active i { color: var(--green); }
.nav-count { margin-left: auto; background: var(--yellow); border-radius: 3px; min-width: 20px; text-align: center; font-size: 11px; color: #684e18; padding: 0 5px; font-weight: 700; }
.nav-count.err { background: #f4d3cb; color: #8b3a2e; }
.sidebar-bottom { margin-top: auto; padding: 24px 14px 16px; }
.status-card { padding: 13px 11px; background: #eef9ff; border: 1px solid #dcecf8; border-radius: 4px; font-size: 12px; }
.status-card strong { font-size: 12px; display: flex; align-items: center; }
.status-card p { font-size: 11px; color: #566d88; margin: 6px 0 0; line-height: 1.6; }
.status-dot { display: inline-block; width: 7px; height: 7px; background: #566d88; border-radius: 50%; margin-right: 6px; }
.status-dot.off { background: #7390ad; }
.sidebar-footer { font-size: 10px; color: #566d88; letter-spacing: .9px; margin: 14px 0 0; line-height: 1.7; }
.mf-mini-pill { margin: 12px 0 0; }
.main-content { background: var(--bg); min-width: 0; }
.topbar { height: 76px; min-height: 76px; padding: 0 30px; background: var(--paper); border-bottom: 1px solid var(--border); box-shadow: none; backdrop-filter: none; gap: 15px; }
.breadcrumb { display: flex; gap: 12px; align-items: center; font-size: 13px; }
.breadcrumb .muted { color: var(--muted); }
.breadcrumb strong { color: var(--ink); }
.topbar h1#page-title { font-size: 13px; font-weight: 700; color: var(--ink); margin: 0; }
.topright { display: flex; align-items: center; gap: 16px; }
.demo-tag { font: 12px var(--pixel); border: 1px solid #cfdfee; color: var(--green); padding: 3px 10px; letter-spacing: 1px; background: #eef9ff; white-space: nowrap; }
.demo-tag.stale { color: #9a6b1c; border-color: #ead9ac; background: #fff1c7; }
.icon-button { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 5px; background: none; color: var(--ink); cursor: pointer; font-size: 18px; position: relative; }
.icon-button:hover { background: #dcecf8; border-color: var(--border); }
.bell-badge { position: absolute; top: -5px; right: -5px; background: var(--red); color: #fff; font: 11px var(--pixel); min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 4px; }
.topbar-clock-wrap { text-align: right; line-height: 1.2; }
.topbar-clock { font: 15px var(--pixel); letter-spacing: 1px; color: var(--ink); }
.topbar .date-badge { font-size: 10px; letter-spacing: .08em; color: var(--muted); background: none; padding: 0; }
.account { display: flex; gap: 9px; align-items: center; font-size: 12px; white-space: nowrap; }
.account-badge { width: 31px; height: 31px; background: #dcecf8; border: 1px solid #cfdfee; display: grid; place-items: center; font: bold 14px var(--pixel); }
.view-container { padding: 28px 30px 22px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 23px; }
.eyebrow { font: 11px var(--pixel); letter-spacing: 2px; color: #566d88; margin-bottom: 6px; text-transform: uppercase; }
.page-heading h1 { font-size: 27px; line-height: 1.3; margin: 0; font-weight: 800; letter-spacing: .03em; }
.heading-meta { font-size: 12px; color: var(--muted); margin-top: 7px; }
.heading-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.button { display: inline-flex; gap: 8px; align-items: center; justify-content: center; border: 1px solid #cfdfee; border-radius: 4px; background: var(--paper); padding: 9px 13px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); box-shadow: 0 2px 0 #dcecf8; cursor: pointer; transition: background .15s, transform .15s; white-space: nowrap; }
.button i { font-size: 16px; }
.button:hover { background: #eef9ff; transform: translateY(-1px); }
.button.primary { color: #fff; background: var(--green); border-color: var(--green); box-shadow: 0 3px 0 #062a59; }
.button.primary:hover { background: #062a59; }
.button.danger { color: var(--red); border-color: #e4cac0; background: #fff9f5; }
.button.small { font-size: 12px; padding: 6px 10px; }
.button.ghost { border: 0; background: none; box-shadow: none; padding-left: 0; color: var(--green); }
.button.wide { width: 100%; }
.button:disabled { opacity: .45; cursor: default; }
.text-button { background: none; border: 0; color: var(--green); font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.c-err { color: var(--red); font-weight: 700; } .c-mut { color: var(--muted); } .fine { font-size: 11px; }
.o-metrics { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: 6px; background: var(--paper); margin-bottom: 22px; box-shadow: var(--shadow-md); }
.metric { display: flex; align-items: center; gap: 14px; padding: 16px 22px; position: relative; text-align: left; border: 0; background: none; font: inherit; color: inherit; }
.metric + .metric::before { content: ''; position: absolute; left: 0; top: 21%; height: 58%; border-left: 1px solid var(--border); }
.metric.clickable { cursor: pointer; } .metric.clickable:hover { background: #eef9ff; }
.metric-icon { height: 38px; width: 38px; display: grid; place-items: center; background: #dcecf8; border: 1px solid #dcecf8; color: #566d88; border-radius: 4px; font-size: 20px; flex: none; }
.metric-icon.amber { background: #fff1c7; border-color: #eadaac; color: #987029; }
.metric-label { font-size: 13px; color: #566d88; }
.metric-value { font-family: var(--pixel); font-size: 25px; line-height: 1.4; letter-spacing: 1px; }
.metric-value small { font: 12px var(--body); letter-spacing: 0; margin-left: 5px; color: #566d88; }
.metric-sub { font-size: 11px; color: #566d88; margin-top: 1px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 286px; gap: 20px; align-items: start; }
.panel { background: var(--paper); border: 1px solid var(--border); border-radius: 6px; box-shadow: var(--shadow-md); overflow: hidden; }
.panel-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); gap: 10px; }
.panel-title { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 9px; margin: 0; }
.panel-title i { font-size: 18px; color: var(--green); }
.floor-badge { font: 11px var(--pixel); background: #dcecf8; padding: 1px 6px; color: #566d88; border: 1px solid #dcecf8; white-space: nowrap; }
.scene-tools { display: flex; align-items: center; gap: 8px; }
.live { font: 10px var(--pixel); letter-spacing: 1px; color: #566d88; }
.live b { color: var(--ink); font-weight: normal; }
.pager { display: inline-flex; align-items: center; gap: 4px; }
.pager .icon-button { width: 26px; height: 26px; font-size: 14px; }
.office-scene { position: relative; aspect-ratio: 1.5; background: #dcecf8; isolation: isolate; overflow: hidden; }
.office-art { display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.stopped-scene .office-art { filter: saturate(.55); }
.has-error { box-shadow: inset 0 0 0 3px #cf6854; }
.scene-day { position: absolute; top: 14px; left: 16px; z-index: 2; font: 11px var(--pixel); color: #0866ed; background: #eef9ffe8; border: 1px solid #cfdfee; padding: 5px 9px; box-shadow: 2px 2px 0 #7390ad; display: flex; align-items: center; gap: 8px; }
.scene-day i { font-size: 14px; }
.scene-hint { position: absolute; bottom: 12px; left: 14px; color: #0866ed; background: #eef9ffed; padding: 5px 9px; font-size: 12px; border: 1px solid #cfdfee; z-index: 2; }
.error-strip { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); background: #fff0df; border: 1px solid #c27655; color: #a25239; padding: 7px 11px; font-size: 11px; z-index: 8; box-shadow: 2px 2px 0 #d6ab78; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.agent-spot { position: absolute; z-index: 3; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; width: 17%; padding: 0; cursor: pointer; overflow: visible; border: 0; background: none; font: inherit; color: var(--ink); }
.agent-spot:focus-visible { outline: 3px solid #ba8432; outline-offset: 4px; }
.sprite { display: block; background-image: url('assets/sprites.webp'); background-repeat: no-repeat; background-size: 400% 200%; image-rendering: pixelated; flex-shrink: 0; }
.scene-person { height: 72px; width: 68px; transform-origin: bottom; transition: filter .15s; }
.agent-spot.working .scene-person { animation: work-bob 1.2s steps(2, end) infinite; }
.agent-spot:nth-child(2n) .scene-person { animation-delay: -.5s; }
.agent-spot:hover .scene-person, .agent-spot.selected .scene-person { filter: drop-shadow(2px 0 #fff7b0) drop-shadow(-2px 0 #fff7b0); }
.agent-spot.away .scene-person { opacity: 1; }
.agent-spot.off .scene-person { opacity: 1; }
.agent-spot.stopped .scene-person { filter: none; }
.agent-spot.error { z-index: 6; }
.agent-spot.error .scene-person { animation: alert-pulse 1s steps(2, end) infinite; }
.agent-name { display: flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid #566d88; background: #f8fcff; white-space: nowrap; padding: 2px 8px; font-size: 11px; line-height: 1.4; box-shadow: 2px 2px 0 #7390ad; min-width: 59px; }
.agent-name i { width: 5px; height: 5px; background: #566d88; display: inline-block; }
.agent-spot.approval .agent-name i { background: #dfaa3b; }
.agent-spot.away .agent-name i, .agent-spot.off .agent-name i, .agent-spot.stopped .agent-name i { background: #7390ad; }
.agent-spot.error .agent-name i { background: var(--red); }
.agent-spot.selected .agent-name { background: #0866ed; color: #fff; border-color: #062a59; }
.speech { font-size: 10px; font-weight: 600; line-height: 1.5; white-space: nowrap; border: 1px solid #566d88; background: #fffefa; padding: 5px 8px; box-shadow: 2px 2px 0 #7390ad; position: relative; margin-bottom: 3px; min-height: 25px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.speech::after { content: ''; position: absolute; border-right: 1px solid #566d88; border-bottom: 1px solid #566d88; width: 6px; height: 6px; bottom: -4px; left: calc(50% - 3px); background: inherit; transform: rotate(45deg); }
.speech.empty { display: none; }
.agent-spot.approval .speech { background: #fff0bd; border-color: #ab8b47; }
.agent-spot.error .speech { background: #ffe4da; color: #aa433c; border-color: #b86754; }
.agent-spot.away .speech, .agent-spot.off .speech, .agent-spot.stopped .speech { background: #eef9ff; color: #566d88; }
.agent-spot.idle .speech, .agent-spot.off .speech { visibility: hidden; }
.agent-spot:hover .speech, .agent-spot:focus-visible .speech, .agent-spot.selected .speech { visibility: visible; }
.has-error .agent-spot:not(.error):not(:hover):not(.selected) .speech { visibility: hidden; }
.scene-legend { display: flex; gap: 14px; align-items: center; padding: 11px 16px; background: #eef9ff; flex-wrap: wrap; font-size: 11px; color: #566d88; border-top: 1px solid var(--border); }
.legend-item { display: flex; align-items: center; gap: 5px; }
.legend-item i { width: 6px; height: 6px; display: block; background: #566d88; }
.legend-item i.yellow { background: #d3a247; } .legend-item i.gray { background: #7390ad; } .legend-item i.red { background: #bd6651; }
.scene-legend .cnt { margin-left: auto; font-size: 10px; }
@keyframes work-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes alert-pulse { 0%, 100% { filter: none; } 50% { filter: drop-shadow(2px 0 #ee835a) drop-shadow(-2px 0 #ee835a); } }
@media (prefers-reduced-motion: reduce) { .agent-spot .scene-person { animation: none !important; } }
.right-rail { display: grid; gap: 17px; }
.member-detail { padding: 19px; }
.member-summary { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.member-summary > div { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.portrait { width: 64px; height: 64px; background-color: #dcecf8; border: 1px solid #dcecf8; }
.member-summary h3 { font-size: 21px; margin: 0 0 2px; line-height: 1.3; }
.member-summary p { font-size: 12px; color: #566d88; margin: 4px 0 0; }
.badge { display: inline-flex; align-items: center; font-size: 11px; line-height: 1.5; border-radius: 3px; padding: 3px 7px; gap: 5px; background: #dcecf8; color: #566d88; white-space: nowrap; }
.badge::before { content: ''; display: block; height: 5px; width: 5px; background: currentColor; }
.badge.approval { background: #fcf0c9; color: #9c7b32; }
.badge.error { background: #fbe4db; color: #b45c4c; }
.badge.away, .badge.stopped { background: #dcecf8; color: #566d88; }
.task-card { padding: 13px; background: #eef9ff; border: 1px solid #dcecf8; border-radius: 4px; }
.task-card .small-label { font-size: 11px; color: #566d88; letter-spacing: 1px; margin-bottom: 7px; }
.task-card strong { font-size: 14px; line-height: 1.8; font-weight: 600; display: block; overflow-wrap: anywhere; }
.task-progress { height: 5px; background: #dcecf8; overflow: hidden; margin: 12px 0 7px; }
.task-progress span { display: block; background: #566d88; height: 100%; }
.task-progress-label { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: #566d88; }
.detail-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 13px; }
.detail-facts dt { font-size: 11px; color: #566d88; margin-bottom: 3px; }
.detail-facts dd { font: 17px var(--pixel); margin: 0; }
.detail-facts dd small { font: 10px var(--body); }
.detail-facts dd.txt { font: 12px var(--body); font-weight: 600; }
.member-actions { display: flex; flex-direction: column; gap: 6px; }
.approval-teaser { padding: 15px 18px; }
.approval-teaser h3 { font-size: 14px; margin: 0 0 5px; }
.approval-teaser p { font-size: 13px; color: #566d88; margin: 0 0 12px; line-height: 1.8; }
.approval-teaser .button { width: 100%; }
.approval-number { display: inline-grid; place-items: center; min-width: 21px; height: 21px; background: #f6d376; color: #715622; font: 12px var(--pixel); padding: 0 4px; }
.feed-panel { margin-top: 20px; }
.feed-list { padding: 0 18px; }
.feed-row { display: flex; align-items: center; gap: 13px; padding: 10px 0; border-bottom: 1px solid #dcecf8; font-size: 13px; }
.feed-row:last-child { border-bottom: 0; }
.feed-time { font: 11px var(--pixel); color: #566d88; white-space: nowrap; }
.feed-icon { display: grid; place-items: center; width: 24px; height: 24px; background: #dcecf8; color: #566d88; flex-shrink: 0; font-size: 14px; }
.feed-text { flex: 1; line-height: 1.7; overflow-wrap: anywhere; } .feed-text b { font-weight: 600; }
.feed-type { font-size: 10px; color: #566d88; white-space: nowrap; }
.feed-row.error .feed-icon { background: #f9e5db; color: #b05746; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; color: #7390ad; font-size: 10px; padding-top: 20px; letter-spacing: .3px; }
.footer strong { font-weight: 500; color: #566d88; }
.view-banner { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; background: #dcecf8; border: 1px solid #cfdfee; margin-bottom: 20px; border-radius: 5px; gap: 20px; }
.view-banner p { margin: 3px 0 0; font-size: 13px; color: #566d88; line-height: 1.7; }
.view-banner strong { font-size: 15px; display: flex; align-items: center; gap: 8px; } .view-banner strong i { font-size: 18px; }
.view-banner.error { background: #fbe9df; border-color: #eccbbe; }
.issue { border: 1px solid #ecd9a9; border-left-width: 4px; background: #fffaf0; border-radius: 4px; padding: 10px 14px; margin-bottom: 8px; font-size: 13px; }
.issue.critical { border-color: #e4cac0; background: #fdf3f1; } .issue.info { border-color: var(--border); background: var(--paper); }
.issue-t { font-weight: 700; } .issue-d { color: #0866ed; margin-top: 3px; line-height: 1.6; } .issue-a { color: #062a59; margin-top: 4px; }
.table-wrap { overflow: auto; margin-bottom: 14px; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; white-space: nowrap; }
.data-table th { padding: 14px 19px; background: #eef9ff; font-size: 12px; font-weight: 500; color: #566d88; }
.data-table td { padding: 13px 19px; border-top: 1px solid #dcecf8; vertical-align: middle; }
.data-table tr.bad td { background: #fdf6f5; }
.data-table .num { font-family: var(--pixel); font-size: 16px; }
.table-person { display: flex; align-items: center; gap: 12px; }
.mini-portrait { width: 42px; height: 44px; }
.table-person strong { font-size: 14px; } .table-person small { display: block; color: #566d88; font-size: 11px; }
.section-note { font-size: 13px; color: #566d88; margin: 15px 0; line-height: 1.7; }
.budget-track { height: 8px; min-width: 95px; background: #dcecf8; margin-top: 7px; }
.budget-track span { display: block; height: 100%; background: #566d88; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { border: 1px solid #cfdfee; background: var(--paper); border-radius: 4px; padding: 5px 12px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--ink); box-shadow: 0 2px 0 #dcecf8; }
.chip small { color: var(--muted); font-weight: 500; margin-left: 2px; font-family: var(--pixel); }
.chip.on { background: var(--green); color: #fff; border-color: var(--green); box-shadow: 0 2px 0 #062a59; } .chip.on small { color: #dcecf8; }
.output-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.output-card { padding: 20px; text-align: left; transition: transform .15s, border .15s; cursor: pointer; font: inherit; color: var(--ink); display: block; }
.output-card:hover { transform: translateY(-3px); border-color: #7390ad; }
.output-card.draft { background: #fffdf2; border-color: #ead9ae; }
.output-card .file-icon { display: grid; place-items: center; width: 45px; height: 45px; background: #dcecf8; margin-bottom: 18px; color: #566d88; font-size: 22px; }
.output-card h3 { font-size: 15px; margin: 12px 0 8px; overflow-wrap: anywhere; }
.output-card p { font-size: 13px; color: #566d88; margin: 0; }
.output-card footer { display: flex; justify-content: space-between; font-size: 11px; color: #566d88; margin-top: 20px; padding-top: 13px; border-top: 1px solid var(--border); }
.seg-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.seg-label { font-size: 12px; color: var(--muted); font-weight: 700; }
.seg { display: inline-flex; border: 1px solid #cfdfee; border-radius: 4px; overflow: hidden; box-shadow: 0 2px 0 #dcecf8; background: var(--paper); }
.seg button { border: 0; background: none; font: inherit; font-size: 12px; font-weight: 600; color: var(--ink); padding: 7px 14px; cursor: pointer; border-right: 1px solid #dcecf8; }
.seg button:last-child { border-right: 0; }
.seg button:hover { background: #eef9ff; }
.seg button.on { background: var(--green); color: #fff; }
.out-group { margin-bottom: 26px; }
.out-group-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 2px 10px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.out-group-head h2 { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; margin: 0; }
.out-group-head h2 i { color: var(--green); font-size: 17px; }
.out-group-sub { font-size: 11px; color: var(--muted); font-weight: 500; margin-left: 8px; }
.chip-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-left: 5px; vertical-align: 1px; }
.chip.on .chip-dot { background: var(--yellow); }
.inbox-list { display: grid; gap: 10px; }
.inbox-item { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 15px 18px; background: var(--paper); border: 1px solid var(--border); border-left-width: 4px; border-left-color: #cfdfee; border-radius: 5px; box-shadow: var(--shadow-md); cursor: pointer; }
.inbox-item:hover { border-color: #cfdfee; border-left-color: var(--green); }
.inbox-item.busy { opacity: .5; pointer-events: none; }
.inbox-item.unread { background: #f8fcff; }
.inbox-item.unread .ii-title::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 7px; vertical-align: 2px; }
.inbox-item.lv-critical { border-left-color: var(--red); }
.inbox-item.lv-critical.unread { background: #fdf4f1; }
.inbox-item.lv-critical.unread .ii-title::before { background: var(--red); }
.inbox-item.lv-warn { border-left-color: var(--yellow); }
.inbox-item.lv-warn.unread { background: #fffdf3; }
.inbox-item.lv-warn.unread .ii-title::before { background: #d9a441; }
.inbox-item:not(.unread) { opacity: .82; }
.ii-icon { width: 32px; height: 32px; display: grid; place-items: center; background: #eef9ff; color: #566d88; border-radius: 4px; font-size: 17px; }
.inbox-item.lv-critical .ii-icon { background: #fbe4db; color: #b04b39; }
.inbox-item.lv-warn .ii-icon { background: #fdf1d3; color: #9c7b32; }
.ii-body { min-width: 0; }
.ii-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.ii-kind { font-weight: 700; color: #566d88; }
.inbox-item.lv-critical .ii-kind { color: var(--red); }
.inbox-item.lv-warn .ii-kind { color: #9c7b32; }
.ii-src { border: 1px solid var(--border); border-radius: 3px; padding: 1px 6px; background: #eef9ff; }
.ii-ts { margin-left: auto; font-family: var(--pixel); }
.ii-title { font-size: 14px; font-weight: 700; margin: 0; line-height: 1.6; overflow-wrap: anywhere; }
.ii-text { display: none; font-size: 13px; line-height: 1.9; color: #0866ed; margin-top: 8px; background: #eef9ff; border: 1px solid #dcecf8; border-radius: 4px; padding: 11px 13px; overflow-wrap: anywhere; }
.inbox-item.open .ii-text { display: block; }
.ii-actions { display: none; gap: 8px; align-items: center; margin-top: 11px; flex-wrap: wrap; }
.ii-actions .sp { flex: 1; }
.inbox-item.open .ii-actions { display: flex; }
.inbox-item.approval .ii-actions { display: flex; }
.inbox-item.alert .ii-actions { display: flex; }
.inbox-item.lv-critical [data-fix].primary { background: var(--red); border-color: var(--red); }
.ii-fixlog { font-size: 12px; margin-top: 8px; padding: 6px 10px; border-radius: 4px; background: #eef9ff; color: #0866ed; overflow-wrap: anywhere; }
.ii-fixlog.ng { background: #fdf1d3; color: #7d6224; }
.fix-guide { font-size: 13.5px; line-height: 1.85; color: #062a59; padding: 18px 24px 22px; }
.fix-guide .fg-lead { margin: 0 0 14px; }
.fix-guide .fg-steps { margin: 0 0 16px; padding-left: 1.4em; display: grid; gap: 12px; }
.fix-guide .fg-steps p { margin: 2px 0 0; color: #566d88; font-size: 12.5px; }
.fix-guide .fg-copy { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.fix-guide .fg-copy code { background: #eef9ff; border: 1px solid #dcecf8; border-radius: 4px; padding: 4px 8px; font-size: 12px; overflow-wrap: anywhere; }
.fix-guide kbd { border: 1px solid #cfdfee; border-bottom-width: 2px; border-radius: 3px; padding: 0 5px; font-size: 12px; background: #fff; }
.fix-guide .fg-trouble { background: #f8f6ee; border: 1px solid #ebe5cf; border-radius: 6px; padding: 10px 14px; font-size: 12.5px; }
.fix-guide .fg-trouble ul { margin: 4px 0 0; padding-left: 1.2em; }
.cta-counts { display: flex; gap: 12px; font-size: 11px; color: var(--muted); margin: 0 0 12px; flex-wrap: wrap; }
.cta-counts b { font-family: var(--pixel); font-size: 14px; color: var(--ink); margin-left: 2px; }
.cta-counts .hot { color: var(--red); } .cta-counts .hot b { color: var(--red); }
.cta-counts .warn { color: #9c7b32; } .cta-counts .warn b { color: #9c7b32; }
.approval-number.urgent { background: #f4cdc3; color: #8b3a2e; }
.approval-list { display: grid; gap: 16px; }
.approval-card { padding: 22px 24px; display: grid; grid-template-columns: 1fr auto; gap: 20px; }
.approval-card.busy { opacity: .5; pointer-events: none; }
.approval-card h3 { margin: 9px 0; font-size: 17px; }
.approval-card p { font-size: 13px; color: #566d88; line-height: 1.9; margin: 0; }
.appr-meta { font-size: 11px; color: #566d88; margin-top: 12px; }
.approval-actions { display: flex; align-items: center; gap: 9px; }
.hist { display: flex; gap: 10px; align-items: center; font-size: 13px; padding: 7px 0; border-bottom: 1px solid #dcecf8; } .hist-t { margin-left: auto; color: var(--muted); font: 11px var(--pixel); }
.empty-state { padding: 40px; text-align: center; color: #566d88; } .empty-state.small { padding: 22px; font-size: 13px; }
.empty-state i { font-size: 30px; display: block; margin-bottom: 6px; } .empty-state h3 { font-size: 18px; margin: 0 0 6px; } .empty-state p { font-size: 13px; margin: 0; }
.duty-list { display: grid; gap: 14px; }
.duty-row { display: grid; grid-template-columns: 220px minmax(0, 1fr) 220px; }
.duty-row.paused { background: #eef9ff; } .duty-row.paused .duty-jobs { opacity: .6; }
.duty-who { padding: 18px; border-right: 1px solid var(--border); }
.duty-who .member-summary { margin-bottom: 10px; }
.duty-who .member-summary h3 { font-size: 19px; }
.duty-title { font-size: 12px; color: #566d88; font-weight: 600; margin: 0 0 6px; line-height: 1.6; }
.duty-who .personality { font-size: 12px; color: var(--green); font-weight: 700; line-height: 1.7; margin: 0; }
.duty-jobs { padding: 16px 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; align-content: start; }
.duty-job { border: 1px solid #dcecf8; background: #f8fcff; border-radius: 5px; padding: 12px 14px; }
.duty-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.duty-head strong { font-size: 14px; }
.when { font: 12px var(--pixel); background: #dcecf8; color: var(--green); border: 1px solid #cfdfee; padding: 1px 7px; white-space: nowrap; }
.when.monthly { background: #fcf0c9; color: #8a6a22; border-color: #ecd9a9; }
.when.daily { background: var(--green); color: #fff; border-color: var(--green); }
.duty-does { margin: 6px 0 0; padding-left: 1.3em; font-size: 13px; line-height: 1.8; color: #0866ed; }
.duty-does li::marker { color: #7390ad; }
.duty-to { margin-top: 8px; padding-top: 7px; border-top: 1px dashed #dcecf8; font-size: 12px; color: #566d88; display: flex; gap: 6px; align-items: flex-start; line-height: 1.6; }
.duty-to i { color: var(--green); margin-top: 3px; }
.duty-desc { font-size: 13px; color: #566d88; line-height: 1.9; margin: 0; grid-column: 1 / -1; }
.duty-side { padding: 16px 18px; border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 14px; }
.duty-facts { margin: 0; display: grid; gap: 7px; font-size: 12px; }
.duty-facts div { display: flex; justify-content: space-between; gap: 10px; }
.duty-facts dt { color: var(--muted); white-space: nowrap; }
.duty-facts dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.duty-side .team-actions { flex-direction: column; align-items: stretch; margin-top: auto; }
.team-actions { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 6px; }
.duty-table { white-space: normal; }
.duty-table td { vertical-align: top; }
.duty-table td.t { font: 15px var(--pixel); white-space: nowrap; width: 64px; }
.duty-table td.to { font-size: 12px; color: #566d88; width: 200px; }
.duty-table tr.grp td { background: #eef9ff; font-weight: 700; font-size: 12px; color: #0866ed; padding: 8px 19px; }
.duty-table tr.paused td { background: #eef9ff; color: var(--muted); }
.duty-table .table-person { align-items: flex-start; white-space: nowrap; }
.duty-table .duty-does { font-size: 12px; line-height: 1.7; margin-top: 4px; }
.chat-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 17px; align-items: start; }
.chat-box { display: flex; flex-direction: column; height: calc(100vh - 250px); min-height: 420px; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.cm { max-width: 78%; } .cm.me { align-self: flex-end; } .cm-h { font-size: 11px; color: var(--muted); margin-bottom: 3px; } .cm-h b { color: var(--ink); margin-right: 6px; }
.cm-b { background: #eef9ff; border: 1px solid #dcecf8; border-radius: 4px; padding: 8px 12px; font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; } .cm.me .cm-b { background: #dcecf8; }
.chat-form { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border); }
.chat-form select, .chat-form input { font: inherit; font-size: 13px; border: 1px solid #cfdfee; border-radius: 4px; padding: 8px 10px; background: var(--paper); color: var(--ink); }
.chat-form input { flex: 1; min-width: 0; }
.chat-side { padding: 16px 18px; font-size: 13px; line-height: 1.8; color: #566d88; } .chat-side h4 { font-size: 13px; margin: 0 0 6px; }
.o-modal { position: fixed; inset: 0; z-index: 2000; background: #062a59c2; display: none; align-items: center; justify-content: center; padding: 24px; }
.o-modal.open { display: flex; }
.dialog-box { border: 1px solid #cfdfee; border-radius: 7px; background: var(--paper); color: var(--ink); box-shadow: 9px 9px 0 #062a5935; width: min(640px, 100%); max-height: 88vh; display: flex; flex-direction: column; overflow: hidden; }
.o-modal.wide .dialog-box { width: min(1100px, 100%); height: 90vh; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 23px; border-bottom: 1px solid var(--border); }
.dialog-head h2 { font-size: 17px; margin: 0; }
.dialog-body { padding: 8px 0; font-size: 14px; line-height: 1.9; overflow: auto; flex: 1; }
.o-frame { width: 100%; height: 100%; min-height: 72vh; border: none; display: block; }
.run { border-bottom: 1px solid #dcecf8; } .run summary { display: flex; gap: 10px; align-items: center; padding: 10px 23px; cursor: pointer; font-size: 13px; list-style: none; }
.run summary::-webkit-details-marker { display: none; } .run-ts { font: 12px var(--pixel); } .run-job { color: var(--muted); } .run-meta { color: var(--muted); margin-left: auto; font-size: 12px; }
.run pre { margin: 0 23px 14px; font: 13px/1.9 var(--body); white-space: pre-wrap; overflow-wrap: anywhere; background: #eef9ff; padding: 17px; border: 1px solid #dcecf8; }
.toast { position: fixed; bottom: 27px; left: 50%; transform: translateX(-50%); background: #062a59; color: #eef9ff; padding: 13px 24px; box-shadow: 4px 4px 0 #062a59b0; font-size: 13px; z-index: 3000; max-width: 90%; text-align: center; }
.toast[hidden] { display: none; } .toast[data-kind="err"] { background: #8b3a2e; }
@media (max-width: 1200px) {
  .sidebar { width: 172px; flex-basis: 172px; } .brand { padding: 0 12px; gap: 7px; } .brand-mark { width: 34px; height: 34px; } .brand-word { font-size: 22px; } .brand-word small { font-size: 9px; }
  .view-container { padding: 23px 22px; } .topbar { padding: 0 22px; }
  .workspace { grid-template-columns: minmax(0, 1fr) 248px; gap: 15px; }
  .metric { padding: 14px; gap: 10px; } .metric-value { font-size: 23px; }
  .scene-person { width: 52px; height: 55px; } .speech { font-size: 9px; padding: 3px 6px; } .agent-name { font-size: 10px; padding: 1px 6px; }
  .output-grid { grid-template-columns: repeat(2, 1fr); }
  .duty-row { grid-template-columns: 200px minmax(0, 1fr); }
  .duty-side { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--border); flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .duty-facts { grid-template-columns: repeat(4, auto); gap: 6px 22px; } .duty-facts div { justify-content: flex-start; }
  .duty-side .team-actions { flex-direction: row; margin-top: 0; }
}
@media (max-width: 1020px) {
  .sidebar { width: 76px; flex-basis: 76px; } .brand { padding: 0; justify-content: center; }
  .brand-word, .sidebar .nav-item span, .nav-caption, .sidebar-bottom, .nav-divider { display: none; }
  .sidebar .nav-item { justify-content: center; padding: 13px; margin: 0 0 8px; } .sidebar .nav-item i { font-size: 22px; }
  .nav-count { position: absolute; right: 2px; top: 2px; margin: 0; min-width: 15px; font-size: 10px; }
  .topbar .account, .topbar .topbar-clock-wrap { display: none; }
  .workspace { grid-template-columns: minmax(0, 1fr) 250px; } .metric-icon { display: none; }
  .office-scene { aspect-ratio: 1.35; } .office-art { object-fit: fill; }
}
@media (max-width: 800px) {
  .workspace, .chat-wrap { grid-template-columns: 1fr; }
  .office-scene { aspect-ratio: 1.5; } .office-art { object-fit: cover; }
  .scene-person { width: 72px; height: 76px; } .speech { font-size: 11px; } .agent-name { font-size: 11px; }
  .right-rail { grid-template-columns: 1.2fr 1fr; } .detail-facts { display: none; }
  .approval-card { grid-template-columns: 1fr; gap: 15px; } .approval-actions { justify-content: flex-end; }
  .o-metrics { grid-template-columns: repeat(2, 1fr); } .metric + .metric::before { display: none; }
  .feed-type { display: none; } .view-container { padding: 20px 14px; } .topbar { padding: 0 14px; } .breadcrumb .muted { display: none; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .duty-row { grid-template-columns: 1fr; }
  .duty-who { border-right: 0; border-bottom: 1px solid var(--border); }
  .duty-facts { grid-template-columns: repeat(2, auto); }
  .duty-table { min-width: 640px; }
}
@media (max-width: 560px) { .right-rail { grid-template-columns: 1fr; } .output-grid { grid-template-columns: 1fr; } .o-metrics { border-radius: 4px; } .metric { padding: 10px; } .metric-value { font-size: 19px; } .duty-jobs { grid-template-columns: 1fr; } }
.view-banner.warn { background: #fff6e0; border-color: #f0dca8; }
.ii-age { display: inline-flex; align-items: center; gap: 3px; border: 1px solid #f0dca8; background: #fff6e0; color: #7a5a12; border-radius: 3px; padding: 1px 6px; font-weight: 700; }
.ii-age.old { border-color: #eccbbe; background: #fbe9df; color: #9b3a28; }
.inbox-item button[disabled] { cursor: progress; }
.sync-state { display: inline-block; white-space: nowrap; }
.sync-state.stale { color: #b3261e; font-weight: 700; }
.sync-warning { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 3000; display: flex; align-items: center; gap: 8px; max-width: min(720px, calc(100vw - 32px)); padding: 9px 14px; background: #fbe9df; border: 1px solid #e4b3a2; border-radius: 5px; color: #7d2a1b; font-size: 13px; line-height: 1.5; box-shadow: 0 4px 14px rgba(19, 60, 104, .16); }
.sync-warning[hidden] { display: none; }
.sync-warning i { font-size: 18px; flex: none; }
.rt-list { margin: 4px 0; padding-left: 1.3em; }
.rt-list li { margin: 1px 0; }
.ii-text code, .cm-b code, .emp-bubble code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .92em; background: rgba(19, 60, 104, .07); border-radius: 3px; padding: 0 3px; overflow-wrap: anywhere; }
.cm-b .rt-list { white-space: normal; }
@media (max-width: 1020px) { .sidebar .nav-item .nav-count { display: inline-block; } }
.outputs-tools { flex-wrap: wrap; }
.out-search { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: 0 1 440px; min-width: 260px; padding: 0 12px; height: 38px; background: var(--paper); border: 1px solid #cfdfee; border-radius: 4px; color: var(--muted); }
.out-search:focus-within { border-color: var(--green); box-shadow: 0 0 0 2px rgba(8, 102, 237, .15); }
.out-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 14px; color: var(--ink); }
.output-list { display: grid; background: var(--paper); border: 1px solid var(--border); border-radius: 5px; box-shadow: var(--shadow-md); overflow: hidden; }
.output-row { display: grid; grid-template-columns: 62px 30px minmax(0, 1fr) minmax(0, 1.35fr) 20px; align-items: center; gap: 12px; width: 100%; padding: 11px 16px; border: 0; border-top: 1px solid var(--border); background: none; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.output-row:first-child { border-top: 0; }
.output-row:hover { background: #f4faff; }
.output-row:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.or-date { display: grid; line-height: 1.3; }
.or-date b { font-size: 15px; font-weight: 800; }
.or-date small { font-size: 12px; color: var(--muted); }
.or-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 4px; background: #eef9ff; color: #566d88; font-size: 17px; }
.output-row.draft .or-icon { background: #fff6e0; color: #7a5a12; }
.or-main { display: grid; gap: 2px; min-width: 0; }
.or-main strong { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.or-main small { font-size: 12px; color: var(--muted); }
.or-main em { font-style: normal; color: #7a5a12; font-weight: 700; }
.or-sum { font-size: 13px; line-height: 1.55; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.or-none { color: var(--muted); font-size: 12px; }
.or-go { color: var(--muted); font-size: 16px; }
.output-more { display: block; margin: 14px auto 0; }
.out-group .output-list { margin-bottom: 4px; }
@media (max-width: 800px) {
  .output-row { grid-template-columns: 50px minmax(0, 1fr) 18px; row-gap: 4px; padding: 11px 12px; }
  .or-icon { display: none; }
  .or-sum { grid-column: 2 / 3; }
  .or-go { grid-row: 1; grid-column: 3; }
  .out-search { margin-left: 0; flex: 1 1 100%; min-width: 0; }
}
.talk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 12px; }
.talk-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; padding: 14px 16px; text-align: left; font: inherit; color: var(--ink); cursor: pointer; border: 1px solid var(--border); }
.talk-card:hover { border-color: #93c5e8; background: #f8fcff; }
.talk-card:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.talk-card .portrait { grid-row: 1 / 3; width: 56px; height: 58px; }
.talk-body { display: grid; gap: 5px; min-width: 0; align-content: start; }
.talk-who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.talk-who strong { font-size: 15px; }
.talk-who small { font-size: 12px; color: var(--muted); }
.talk-last { font-size: 13px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.talk-last.none { color: var(--muted); }
.talk-time { font-size: 12px; color: var(--muted); }
.talk-report { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--muted); border-top: 1px dashed var(--border); padding-top: 5px; }
.talk-pending { font-size: 12px; color: var(--green); font-weight: 700; }
.talk-go { grid-column: 2; justify-self: end; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--green); }