:root {
  --font-scale: 1;
  --bg: #0d0f12;
  --panel: #13161a;
  --panel-2: #171a1f;
  --panel-3: #1c2025;
  --line: #282d34;
  --line-soft: rgba(255,255,255,.06);
  --text: #eef0f2;
  --muted: #8b919a;
  --muted-2: #5f6670;
  --lime: #c7f36a;
  --lime-dim: rgba(199,243,106,.13);
  --orange: #ff9b5a;
  --red: #ff7167;
  --blue: #7eb6ff;
  --purple: #bb9cff;
  --mono: 'DM Mono', monospace;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: var(--sans); }
body { overflow: hidden; }
button, input { font: inherit; }
button { cursor: pointer; }
.app-shell { height: 100vh; min-width: 1080px; display: flex; flex-direction: column; background: radial-gradient(ellipse at 75% -30%, rgba(91,103,112,.15), transparent 50%), var(--bg); }
.topbar { height: 72px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 275px 1fr 275px; align-items: center; padding: 0 26px; flex: 0 0 auto; }
.brand-lockup { display: flex; gap: 12px; align-items: center; }
.brand-mark { width: 29px; height: 29px; display: flex; align-items: flex-end; gap: 3px; padding: 4px 5px; border: 1px solid rgba(199,243,106,.4); border-radius: 8px; background: rgba(199,243,106,.08); }
.brand-mark span { width: 4px; border-radius: 2px; background: var(--lime); display: block; }
.brand-mark span:nth-child(1) { height: 8px; opacity: .55; }.brand-mark span:nth-child(2) { height: 14px; opacity: .8; }.brand-mark span:nth-child(3) { height: 19px; }
.brand-name { font-size: 12px; letter-spacing: .13em; font-weight: 800; line-height: 1.1; }.brand-sub { margin-top: 5px; color: var(--muted); font-size: 10px; letter-spacing: .07em; }.status-dot, .live-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); vertical-align: middle; margin: 0 4px; box-shadow: 0 0 0 3px rgba(199,243,106,.1); }
.topbar-center { display: flex; justify-content: center; }.global-search { width: min(510px, 100%); height: 40px; border: 1px solid var(--line); background: #111418; border-radius: 9px; display: flex; align-items: center; gap: 10px; padding: 0 11px; transition: border .2s, box-shadow .2s; }.global-search:focus-within { border-color: rgba(199,243,106,.5); box-shadow: 0 0 0 3px rgba(199,243,106,.06); }.global-search svg { width: 16px; height: 16px; stroke: var(--muted-2); fill: none; stroke-width: 1.8; }.global-search input { flex: 1; background: transparent; border: 0; outline: 0; color: var(--text); font-size: 12px; }.global-search input::placeholder { color: var(--muted-2); }.global-search kbd { color: var(--muted-2); font-family: var(--mono); font-size: 10px; border: 1px solid var(--line); border-radius: 4px; padding: 3px 5px; }
.topbar-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }.icon-btn, .avatar { border: 1px solid var(--line); background: #111418; color: var(--muted); width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; transition: .2s; }.icon-btn:hover { color: var(--lime); border-color: rgba(199,243,106,.4); }.icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }.avatar { border-radius: 50%; border: 0; color: #161a12; background: var(--lime); font-size: 12px; font-weight: 800; }
.workspace { min-height: 0; flex: 1; display: grid; grid-template-columns: 275px minmax(500px, 1fr) 310px; }.sidebar { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: rgba(16,18,21,.7); }.sidebar-head { display: flex; justify-content: space-between; padding: 25px 19px 6px; }.eyebrow { color: var(--muted-2); letter-spacing: .14em; font-size: 9px; font-weight: 700; }.mini-btn, .text-btn { color: var(--muted); background: transparent; border: 0; font-size: 10px; }.mini-btn:hover, .text-btn:hover { color: var(--lime); }.sidebar-summary { color: var(--muted); font-size: 11px; padding: 0 19px 18px; }.summary-sep { color: var(--muted-2); padding: 0 4px; }.group-list { padding: 0 10px; overflow: auto; flex: 1; }.group-list::-webkit-scrollbar, .group-windows::-webkit-scrollbar, .messages::-webkit-scrollbar, .alerts-list::-webkit-scrollbar, .results-list::-webkit-scrollbar { width: 4px; }.group-list::-webkit-scrollbar-thumb, .group-windows::-webkit-scrollbar-thumb, .messages::-webkit-scrollbar-thumb, .alerts-list::-webkit-scrollbar-thumb, .results-list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 5px; }.group-item { width: 100%; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--text); text-align: left; padding: 10px 9px; display: flex; align-items: center; gap: 9px; margin-bottom: 2px; transition: .2s; }.group-item:hover { background: var(--panel-2); }.group-item.active { background: var(--lime-dim); border-color: rgba(199,243,106,.16); }.group-item.hidden-group { opacity: .45; }.group-icon { width: 27px; height: 27px; border-radius: 7px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #20251c; flex: 0 0 auto; }.group-item:nth-child(5n+1) .group-icon { background: var(--lime); }.group-item:nth-child(5n+2) .group-icon { background: var(--orange); }.group-item:nth-child(5n+3) .group-icon { background: var(--blue); }.group-item:nth-child(5n+4) .group-icon { background: var(--purple); }.group-item:nth-child(5n) .group-icon { background: #ffcf79; }.group-label { min-width: 0; flex: 1; }.group-name { font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.group-meta { color: var(--muted-2); font-size: 9px; margin-top: 3px; font-family: var(--mono); }.group-alert { color: var(--orange); font-family: var(--mono); font-size: 9px; }.pin-mark { color: var(--lime); font-size: 11px; opacity: .8; }.sidebar-foot { border-top: 1px solid var(--line); padding: 13px 14px 17px; }.add-watch { width: 100%; text-align: left; color: var(--muted); background: transparent; border: 1px dashed var(--line); border-radius: 7px; padding: 9px 10px; font-size: 11px; }.add-watch:hover { border-color: var(--lime); color: var(--lime); }.add-watch span { color: var(--lime); font-size: 17px; vertical-align: -1px; margin-right: 4px; }.sync-meta { display: flex; align-items: center; gap: 6px; color: var(--muted-2); font: 9px var(--mono); margin: 12px 4px 0; }.sync-pulse { width: 5px; height: 5px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(199,243,106,.08); }
.main-panel { min-width: 0; display: flex; flex-direction: column; min-height: 0; }.main-head { display: flex; align-items: flex-end; justify-content: space-between; padding: 27px 27px 18px; }.breadcrumb { color: var(--muted-2); display: flex; gap: 8px; align-items: center; font: 9px var(--mono); letter-spacing: .1em; }.breadcrumb i { font-style: normal; font-size: 14px; color: #414750; }.breadcrumb strong { color: var(--muted); font-weight: 400; }.main-head h1 { margin: 9px 0 4px; font-size: 26px; letter-spacing: -.04em; }.main-head h1 span { font: 11px var(--mono); letter-spacing: 0; color: var(--muted-2); vertical-align: middle; margin-left: 4px; }.main-head p { margin: 0; color: var(--muted); font-size: 11px; }.view-controls { display: flex; align-items: center; gap: 7px; }.live-filter { color: var(--lime); font: 10px var(--mono); margin-right: 5px; }.live-filter .live-dot { width: 5px; height: 5px; margin-left: 0; }.view-btn { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--line); color: var(--muted-2); background: transparent; }.view-btn.active, .view-btn:hover { color: var(--text); background: var(--panel-2); border-color: #3a414a; }.view-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }.notice-strip { margin: 0 27px 15px; min-height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid rgba(199,243,106,.13); background: rgba(199,243,106,.045); border-radius: 6px; color: #aab78b; font-size: 10px; }.notice-icon { color: var(--lime); }.notice-strip button { margin-left: auto; color: var(--muted-2); border: 0; background: transparent; font-size: 16px; line-height: 1; }.group-windows { padding: 0 27px 27px; overflow: auto; display: grid; grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 14px; align-content: start; }.group-windows.rows { grid-template-columns: 1fr; }.group-window { min-width: 0; height: 365px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(145deg, rgba(27,31,36,.96), rgba(18,21,24,.96)); overflow: hidden; box-shadow: 0 8px 26px rgba(0,0,0,.12); animation: rise .35s ease both; }.group-window.focused { border-color: rgba(199,243,106,.6); box-shadow: 0 0 0 2px rgba(199,243,106,.08), 0 8px 26px rgba(0,0,0,.18); }.window-head { padding: 12px 13px 10px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--line-soft); }.window-avatar { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #20251c; }.window-title { flex: 1; min-width: 0; }.window-title strong { font-size: 11px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.window-title span { display: block; font: 9px var(--mono); color: var(--muted-2); margin-top: 3px; }.window-pin { border: 0; background: transparent; color: var(--muted-2); font-size: 13px; padding: 2px; }.window-pin.pinned { color: var(--lime); transform: rotate(-35deg); }.window-more { border: 0; background: transparent; color: var(--muted-2); font-size: 15px; }.window-badge { border-radius: 4px; background: rgba(255,155,90,.12); color: var(--orange); font: 9px var(--mono); padding: 3px 5px; }.messages { overflow: auto; padding: 5px 13px 10px; flex: 1; }.message { padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.035); position: relative; cursor: pointer; }.message:last-child { border-bottom: 0; }.message:hover { background: rgba(255,255,255,.018); }.message.highlighted { background: rgba(199,243,106,.1); margin: 0 -7px; padding-left: 7px; padding-right: 7px; border-radius: 5px; }.message-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }.sender { font-size: 10px; font-weight: 700; color: #bfc4ca; }.message-time { color: var(--muted-2); font: 9px var(--mono); white-space: nowrap; }.message-body { margin-top: 4px; color: #d3d7da; font-size: 11px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }.message-type { color: var(--muted-2); font-size: 9px; margin-right: 4px; }.window-foot { border-top: 1px solid var(--line-soft); padding: 8px 13px; display: flex; justify-content: space-between; color: var(--muted-2); font: 9px var(--mono); }.window-foot span:last-child { color: var(--lime); }.skeleton { background: linear-gradient(90deg, #1a1e23 25%, #22272d 50%, #1a1e23 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 4px; height: 10px; margin: 11px 0; }.empty-state { flex: 1; display: grid; place-items: center; align-content: center; color: var(--muted); text-align: center; }.empty-state.hidden { display: none; }.empty-orb { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--lime); font-size: 22px; margin-bottom: 12px; }.empty-state h3 { margin: 0 0 5px; color: var(--text); font-size: 14px; }.empty-state p { margin: 0; font-size: 11px; }
.inspector { border-left: 1px solid var(--line); min-height: 0; display: flex; flex-direction: column; background: rgba(17,19,22,.68); }.inspector-tabs { height: 62px; border-bottom: 1px solid var(--line); display: flex; align-items: end; gap: 20px; padding: 0 20px; }.inspector-tab { height: 44px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted-2); font-size: 11px; padding: 0; }.inspector-tab.active { color: var(--text); border-color: var(--lime); }.tab-count { display: inline-grid; place-items: center; min-width: 17px; height: 17px; border-radius: 4px; margin-left: 4px; color: var(--lime); background: var(--lime-dim); font: 9px var(--mono); }.inspector-panel { display: none; flex: 1; min-height: 0; overflow: hidden; flex-direction: column; }.inspector-panel.active { display: flex; }.panel-title-row { display: flex; justify-content: space-between; padding: 23px 19px 15px; align-items: flex-start; }.panel-title-row h2 { margin: 7px 0 0; font-size: 17px; letter-spacing: -.03em; }.threshold-card { margin: 0 19px 16px; border: 1px solid rgba(199,243,106,.16); background: rgba(199,243,106,.045); border-radius: 8px; padding: 11px; display: flex; align-items: center; gap: 9px; }.threshold-icon { width: 25px; height: 25px; border-radius: 6px; display: grid; place-items: center; background: rgba(199,243,106,.12); color: var(--lime); font-size: 18px; }.threshold-card div:nth-child(2) { flex: 1; }.threshold-card strong { display: block; font-size: 10px; }.threshold-card span { display: block; color: var(--muted); font-size: 9px; margin-top: 4px; }.threshold-card b { color: var(--lime); font-weight: 500; }.toggle { width: 29px; height: 17px; padding: 2px; border-radius: 20px; border: 0; background: var(--muted-2); }.toggle span { width: 13px; height: 13px; display: block; border-radius: 50%; background: white; transition: .2s; }.toggle.on { background: var(--lime); }.toggle.on span { transform: translateX(12px); }.alerts-list, .results-list { overflow: auto; padding: 0 19px 15px; flex: 1; }.alert-card { border-bottom: 1px solid var(--line-soft); padding: 12px 0; cursor: pointer; }.alert-card:first-child { border-top: 1px solid var(--line-soft); }.alert-card:hover .alert-title { color: var(--lime); }.alert-card-head { display: flex; align-items: center; gap: 7px; }.alert-signal { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgba(255,155,90,.1); }.alert-title { color: #e3e5e6; font-size: 11px; font-weight: 700; flex: 1; transition: .2s; }.alert-time { color: var(--muted-2); font: 9px var(--mono); }.alert-desc { color: var(--muted); font-size: 10px; line-height: 1.55; margin: 7px 0 9px 14px; }.alert-groups { display: flex; flex-wrap: wrap; gap: 5px; margin-left: 14px; }.group-chip { color: var(--muted); background: var(--panel-3); border: 1px solid var(--line); border-radius: 3px; padding: 3px 5px; font: 9px var(--mono); }.group-chip b { color: var(--lime); font-weight: 500; }.result-query { margin: 0 19px 14px; padding: 8px 10px; color: var(--lime); background: rgba(199,243,106,.06); border-radius: 5px; font: 10px var(--mono); }.result-card { border-bottom: 1px solid var(--line-soft); padding: 11px 0; cursor: pointer; }.result-card:hover .result-title { color: var(--lime); }.result-title { font-size: 10px; font-weight: 700; color: #dfe2e3; }.result-group { color: var(--orange); font: 9px var(--mono); margin-right: 6px; }.result-snippet { color: var(--muted); font-size: 10px; line-height: 1.5; margin-top: 5px; }.result-meta { color: var(--muted-2); font: 9px var(--mono); margin-top: 7px; }.highlight { color: var(--lime); background: rgba(199,243,106,.1); border-radius: 2px; }.panel-loading, .panel-placeholder { color: var(--muted-2); font-size: 10px; text-align: center; padding: 30px 0; line-height: 1.6; }.inspector-foot { border-top: 1px solid var(--line); padding: 13px 19px; color: var(--muted-2); font-size: 9px; display: flex; align-items: center; gap: 6px; }.inspector-foot a { color: var(--muted); text-decoration: none; margin-left: auto; }.inspector-foot a:hover { color: var(--lime); }.secure-mark { color: var(--lime); }
.toast-stack { position: fixed; right: 328px; top: 83px; z-index: 10; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }.toast { pointer-events: auto; width: 270px; border: 1px solid rgba(255,155,90,.4); border-left: 3px solid var(--orange); border-radius: 8px; background: #1c1a19; padding: 11px 12px; box-shadow: 0 12px 35px rgba(0,0,0,.35); animation: toast-in .3s ease both; }.toast strong { font-size: 11px; display: block; }.toast p { margin: 5px 0 0; font-size: 10px; color: var(--muted); line-height: 1.45; }.toast-close { float: right; border: 0; background: transparent; color: var(--muted-2); font-size: 15px; }
.settings-dialog { width: 390px; border: 1px solid #394047; border-radius: 12px; padding: 0; color: var(--text); background: #171a1e; box-shadow: 0 24px 70px rgba(0,0,0,.55); }.settings-dialog::backdrop { background: rgba(0,0,0,.65); backdrop-filter: blur(3px); }.settings-dialog form { padding: 23px; }.dialog-head { display: flex; justify-content: space-between; }.dialog-head h2 { margin: 8px 0 0; font-size: 18px; }.dialog-close { border: 0; background: transparent; color: var(--muted); font-size: 21px; align-self: start; }.dialog-copy { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 17px 0 21px; }.field-label { display: block; color: var(--muted); font-size: 10px; margin: 15px 0 9px; }.range-row { display: flex; align-items: center; gap: 13px; }.range-row input { flex: 1; accent-color: var(--lime); }.range-row output { width: 56px; color: var(--lime); font: 10px var(--mono); }.stepper { width: 126px; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }.stepper button { width: 32px; height: 28px; border: 0; color: var(--muted); background: var(--panel-3); }.stepper button:hover { color: var(--lime); }.stepper input { width: 60px; height: 28px; border: 0; text-align: center; color: var(--text); background: #111418; outline: none; font: 11px var(--mono); }.dialog-options { display: flex; gap: 18px; margin: 21px 0; }.dialog-options label { color: var(--muted); font-size: 10px; display: flex; align-items: center; gap: 6px; }.dialog-options input { accent-color: var(--lime); }.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 15px; border-top: 1px solid var(--line); }.button-ghost, .button-primary { border-radius: 6px; padding: 8px 14px; font-size: 10px; }.button-ghost { color: var(--muted); background: transparent; border: 1px solid var(--line); }.button-primary { color: #161a12; background: var(--lime); border: 1px solid var(--lime); font-weight: 700; }
@keyframes shimmer { to { background-position: -200% 0; } } @keyframes rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } } @keyframes toast-in { from { opacity: 0; transform: translateX(15px); } to { opacity: 1; transform: translateX(0); } }
@media (max-width: 1260px) { .app-shell { min-width: 960px; }.topbar { grid-template-columns: 235px 1fr 210px; }.workspace { grid-template-columns: 230px minmax(450px,1fr) 280px; }.group-windows { grid-template-columns: 1fr; }.toast-stack { right: 298px; } }

/* Readability controls */
.app-shell { zoom: var(--font-scale); width: calc(100% / var(--font-scale)); height: calc(100vh / var(--font-scale)); }
.font-controls { display: flex; align-items: center; gap: 3px; border: 1px solid var(--line); border-radius: 8px; padding: 2px 4px; background: #111418; }
.font-btn { min-width: 27px; height: 27px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font: 700 10px var(--mono); }
.font-btn:hover { color: var(--lime); background: var(--lime-dim); }
#font-size-label { min-width: 35px; text-align: center; color: var(--muted-2); font: 9px var(--mono); }
.icon-btn { width: 38px; height: 38px; }
.icon-btn svg { width: 20px; height: 20px; stroke-width: 1.8; }
.view-btn { width: 34px; height: 34px; }
.view-btn svg { width: 18px; height: 18px; stroke-width: 1.8; }
.message-image { display: block; border: 1px solid var(--line); background: #0e1012; border-radius: 7px; margin-top: 8px; padding: 4px; max-width: min(230px, 100%); position: relative; text-align: left; }
.message-image:hover { border-color: rgba(199,243,106,.6); }
.message-image img { display: block; width: 100%; max-height: 130px; object-fit: cover; border-radius: 4px; }
.message-image span { display: block; padding: 4px 2px 1px; color: var(--lime); font: 9px var(--mono); }
.signal-dialog { width: min(420px, calc(100vw - 32px)); border: 1px solid rgba(255,155,90,.55); border-radius: 14px; padding: 0; color: var(--text); background: #191b1e; box-shadow: 0 25px 80px rgba(0,0,0,.65); }
.signal-dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(4px); }
.signal-dialog-inner { padding: 28px; position: relative; }
.signal-dialog-inner .dialog-close { position: absolute; top: 17px; right: 19px; }
.signal-dialog-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--orange); background: rgba(255,155,90,.12); font-size: 25px; margin-bottom: 18px; }
.signal-dialog h2 { margin: 8px 0 9px; font-size: 20px; }
.signal-dialog p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.signal-dialog-groups { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 25px; }
.signal-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 15px; border-top: 1px solid var(--line); }
.image-dialog { max-width: min(900px, calc(100vw - 40px)); max-height: min(800px, calc(100vh - 40px)); border: 1px solid #454b53; border-radius: 12px; padding: 46px 20px 18px; background: #101214; box-shadow: 0 25px 80px rgba(0,0,0,.8); }
.image-dialog::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(4px); }
.image-dialog img { display: block; max-width: min(850px, calc(100vw - 80px)); max-height: calc(100vh - 130px); object-fit: contain; border-radius: 5px; }
.image-dialog-close { position: absolute; right: 15px; top: 10px; border: 0; background: transparent; color: var(--muted); font-size: 25px; }
.image-dialog-close:hover { color: var(--text); }
#image-open-original { display: block; color: var(--lime); text-decoration: none; font: 10px var(--mono); margin-top: 12px; text-align: right; }
.live-filter.sync-failed { color: var(--red); }
.live-filter.sync-failed .live-dot { background: var(--red); }
.message-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.alert-evidence { color: var(--lime); opacity: .8; font-size: 9px; }
.fixed-number { color: var(--lime); font: 10px var(--mono); white-space: nowrap; }
.pin-move { padding: 3px 5px; border: 1px solid var(--line); background: transparent; border-radius: 4px; color: var(--text); }
.pin-move:disabled { opacity: .3; cursor: default; }
.window-pin { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 5px 7px; white-space: nowrap; }
.window-pin.pinned { color: var(--lime); transform: none; }
.temporary-boundary { grid-column: 1 / -1; color: var(--muted); border-top: 1px solid var(--line); padding: 12px 0 0; font-size: 11px; }
.contract-row { display: flex; align-items: center; gap: 8px; padding: 7px; margin-top: 7px; background: #101418; border: 1px solid var(--line); border-radius: 5px; }
.contract-row code { color: var(--lime); font: 10px var(--mono); overflow-wrap: anywhere; min-width: 0; flex: 1; user-select: all; }
.copy-contract { color: #11180b; border: 0; border-radius: 4px; background: var(--lime); padding: 6px 8px; font-size: 11px; flex: 0 0 auto; }
.clipboard-helper { position: fixed; top: 0; left: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; font-size: 16px; pointer-events: none; }
.contract-label { color: var(--muted); font: 10px var(--mono); }
.copy-contract { min-height: 34px; padding: 8px 10px; font-weight: 700; cursor: pointer; }
.copy-contract:hover { background: #defaa1; }
.copy-contract.copied { background: #96d765; }
.result-card .contract-row { flex-wrap: wrap; }
.result-card .contract-row code { flex-basis: 75%; }
.manual-copy-dialog { width: min(440px, calc(100vw - 32px)); background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.manual-copy-dialog::backdrop { background: rgba(0,0,0,.7); }
.manual-copy-dialog h2 { font-size: 18px; margin: 0 0 10px; }
.manual-copy-dialog p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.manual-copy-dialog textarea { width: 100%; min-height: 90px; color: var(--lime); background: var(--bg); border: 1px solid var(--line); padding: 12px; font: 14px var(--mono); resize: none; margin-bottom: 16px; }
.toast p { overflow-wrap: anywhere; }
.sound-button { width: auto; min-width: 100px; display: flex; gap: 5px; padding: 0 8px; color: var(--orange); font-size: 11px; white-space: nowrap; }
.sound-button.sound-ready { color: var(--lime); }
.topbar { grid-template-columns: 245px minmax(300px, 1fr) 340px; gap: 16px; }
.window-head { flex-wrap: wrap; }
#signal-sound-status { color: var(--orange); font-size: 11px; margin: 0 0 12px; }
.signal-contract-heading { color: var(--orange); font-size: 11px; font-weight: 700; margin: 14px 0 6px; }
.signal-dialog .contract-row { margin-top: 6px; }
.message-time { font-size: 12px; color: #b7bec7; font-weight: 600; }
.signal-dialog h2 { font-size: 24px; }
.signal-dialog p, .signal-dialog .signal-owner-row, .signal-dialog .group-chip { font-size: 14px; }
.signal-dialog .contract-row code { font-size: 12px; }
.signal-dialog .copy-contract { font-size: 13px; padding: 9px 12px; }
.signal-owners { display: grid; gap: 6px; margin-top: 14px; max-height: 180px; overflow: auto; }
.signal-owner-row { display: grid; grid-template-columns: auto auto 1fr; gap: 7px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.025); color: var(--muted); font-size: 10px; min-width: 0; }
.signal-owner-row strong { color: var(--text); white-space: nowrap; }
.signal-owner-row > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activation-dialog { width: min(420px, calc(100vw - 32px)); border: 1px solid rgba(199,243,106,.45); border-radius: 16px; padding: 0; color: var(--text); background: #171a1e; box-shadow: 0 25px 90px rgba(0,0,0,.75); }
.activation-dialog::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(8px); }
.activation-card { padding: 32px; }
.activation-mark { margin-bottom: 22px; }
.activation-card h2 { font-size: 24px; margin: 9px 0; }
.activation-card p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0 0 22px; }
.activation-input { display: block; width: 100%; border: 1px solid var(--line); border-radius: 7px; background: #0f1215; color: var(--lime); padding: 13px 14px; outline: none; font: 15px var(--mono); letter-spacing: .08em; }
.activation-input:focus { border-color: var(--lime); box-shadow: 0 0 0 3px var(--lime-dim); }
.activation-submit { width: 100%; margin-top: 12px; padding: 13px; font-size: 13px; }
.activation-error { color: var(--red); min-height: 20px; font-size: 11px; margin-top: 12px; }
.activation-device { color: var(--muted-2); font: 10px var(--mono); margin-top: 15px; }
.narrative-contract { color: #121a0d; background: #aee967; border: 0; border-radius: 4px; padding: 8px 10px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.narrative-contract:hover { background: #d5fa9a; }
.narrative-dialog { width: min(620px, calc(100vw - 32px)); height: min(760px, calc(100vh - 32px)); border: 1px solid rgba(199,243,106,.45); border-radius: 14px; padding: 0; color: var(--text); background: #171a1e; box-shadow: 0 25px 90px rgba(0,0,0,.75); position: relative; overflow: hidden; }
.narrative-dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(7px); }
.narrative-card { padding: 62px 28px 28px; position: relative; height: 100%; overflow-y: auto; overflow-x: hidden; }
.narrative-close { position: absolute; z-index: 3; top: 14px; right: 16px; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: var(--panel-3); font-size: 24px; line-height: 1; }
.narrative-close:hover { color: var(--lime); border-color: var(--lime); }
.narrative-card h2 { font-size: 23px; margin: 9px 0 20px; }
.narrative-meta { display: flex; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: #101418; margin-bottom: 18px; }
.narrative-meta span { color: var(--lime); font-weight: 700; font-size: 15px; }
.narrative-meta code { color: var(--muted); font: 11px var(--mono); overflow-wrap: anywhere; }
.narrative-card section { border-top: 1px solid var(--line); padding: 16px 0; }
.narrative-card h3 { color: var(--orange); font-size: 14px; margin: 0 0 8px; }
.narrative-card p { color: #d8dde3; font-size: 14px; line-height: 1.75; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.narrative-empty, .narrative-loading { color: var(--muted); font-size: 14px; padding: 22px 0; }
.narrative-external { display: inline-block; margin-top: 16px; color: var(--lime); font-size: 13px; text-decoration: none; }
.narrative-item { border: 1px solid var(--line); border-radius: 7px; padding: 11px; margin: 8px 0; background: rgba(255,255,255,.02); }
.narrative-item-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.narrative-item-head strong { color: var(--text); font-size: 13px; }
.narrative-item-head span { color: var(--muted-2); font: 10px var(--mono); }
.narrative-item p { font-size: 13px; }
.thesis-actions { display: flex; gap: 12px; align-items: center; margin-top: 9px; }
.thesis-actions a { color: var(--lime); font-size: 11px; text-decoration: none; }
.translate-thesis { color: var(--orange); border: 1px solid rgba(255,155,90,.35); background: transparent; border-radius: 4px; padding: 5px 8px; font-size: 11px; }

