#tab-handling { --hd-panel: rgba(0,0,0,.26); --hd-line: rgba(255,255,255,.07); --hd-muted: #a9b1ac; --hd-dim: #858d88; --hd-text: #f1f2ef; --hd-accent: #8fc1ff; --hd-up: #a0dbbb; --hd-down: #ffabb0; }
#tab-handling .hd-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 12px; height: 100%; min-height: 0; }
#tab-handling .hd-side { display: flex; flex-direction: column; gap: 10px; min-height: 0; padding: 14px; background: var(--hd-panel); border: 1px solid var(--hd-line); border-radius: 6px; }
#tab-handling .hd-side-head { display: flex; align-items: center; justify-content: space-between; }
#tab-handling .hd-side-head h3 { margin: 0; font-size: 13px; font-weight: 600; color: var(--hd-text); }
#tab-handling .hd-side-head span { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.08); font-size: 11px; text-align: center; color: var(--hd-muted); }
#tab-handling .hd-search { width: 100%; }
#tab-handling .hd-list { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; min-height: 0; }
#tab-handling .hd-item { display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 9px 10px; border-radius: 5px; border: 1px solid transparent; background: rgba(255,255,255,.03); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .15s, border-color .15s; }
#tab-handling .hd-item:hover { background: rgba(255,255,255,.07); }
#tab-handling .hd-item.active { border-color: rgba(143,193,255,.4); background: rgba(143,193,255,.08); }
#tab-handling .hd-item:focus-visible, #tab-handling .hd-tabs button:focus-visible, #tab-handling .hd-reset:focus-visible { outline: 2px solid var(--hd-accent); outline-offset: 2px; }
#tab-handling .hd-item-ic { grid-row: 1 / 3; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; background: rgba(255,255,255,.06); color: var(--hd-muted); }
#tab-handling .hd-item-ic svg { width: 16px; height: 16px; }
#tab-handling .hd-item-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#tab-handling .hd-item-text strong { font-size: 12.5px; color: var(--hd-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tab-handling .hd-item-text small { font-size: 11px; color: var(--hd-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tab-handling .hd-item-date { grid-column: 2; font-size: 10.5px; color: var(--hd-dim); }
#tab-handling .hd-empty-list { margin: 8px 2px; font-size: 12px; line-height: 1.5; color: var(--hd-dim); }
#tab-handling .hd-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 0; overflow-y: auto; padding-right: 2px; }
#tab-handling .hd-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; flex: 1; min-height: 360px; padding: 40px; text-align: center; background: var(--hd-panel); border: 1px dashed rgba(255,255,255,.12); border-radius: 6px; }
#tab-handling .hd-empty-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: rgba(143,193,255,.1); color: var(--hd-accent); }
#tab-handling .hd-empty-ic svg { width: 26px; height: 26px; }
#tab-handling .hd-empty h3 { margin: 4px 0 0; font-size: 15px; color: var(--hd-text); }
#tab-handling .hd-empty p { max-width: 420px; margin: 0 0 6px; font-size: 12.5px; line-height: 1.55; color: var(--hd-muted); }
#tab-handling .hd-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 20px; padding: 18px 20px; background: var(--hd-panel); border: 1px solid var(--hd-line); border-radius: 6px; }
#tab-handling .hd-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--hd-muted); }
#tab-handling .hd-live { width: 7px; height: 7px; border-radius: 50%; background: var(--hd-up); box-shadow: 0 0 0 0 rgba(160,219,187,.5); animation: hd-pulse 2s infinite; }
@keyframes hd-pulse { 70% { box-shadow: 0 0 0 7px rgba(160,219,187,0); } 100% { box-shadow: 0 0 0 0 rgba(160,219,187,0); } }
@media (prefers-reduced-motion: reduce) { #tab-handling .hd-live { animation: none; } }
#tab-handling .hd-hero h2 { margin: 8px 0 10px; font-family: 'IBM Plex Sans', sans-serif; font-size: 26px; font-weight: 500; letter-spacing: -.02em; color: var(--hd-text); }
#tab-handling .hd-tags { display: flex; flex-wrap: wrap; gap: 6px; }
#tab-handling .hd-tag { padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.07); font-size: 11px; color: var(--hd-muted); font-variant-numeric: tabular-nums; }
#tab-handling .hd-tag.accent { background: rgba(143,193,255,.14); color: var(--hd-accent); }
#tab-handling .hd-hero-actions { display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: flex-end; gap: 8px; max-width: 520px; }
#tab-handling .hd-hero-actions .btn:disabled { opacity: .45; cursor: default; }
#tab-handling .hd-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding-top: 16px; border-top: 1px solid var(--hd-line); }
#tab-handling .hd-stat-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
#tab-handling .hd-stat-top span { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--hd-muted); }
#tab-handling .hd-stat-top b { font-size: 12px; font-weight: 600; color: var(--hd-text); font-variant-numeric: tabular-nums; }
#tab-handling .hd-stat-top b.up { color: var(--hd-up); }
#tab-handling .hd-stat-top b.down { color: var(--hd-down); }
#tab-handling .hd-stat i { position: relative; display: block; height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); }
#tab-handling .hd-stat i > b { display: block; height: 100%; border-radius: 3px; background: var(--hd-accent); transition: width .2s ease; }
#tab-handling .hd-stat i em { position: absolute; top: -3px; width: 2px; height: 12px; margin-left: -1px; border-radius: 1px; background: rgba(255,255,255,.55); }
#tab-handling .hd-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 6px; background: var(--hd-panel); border: 1px solid var(--hd-line); }
#tab-handling .hd-tabs button { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px; border: 0; border-radius: 4px; background: transparent; color: var(--hd-muted); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
#tab-handling .hd-tabs button:hover { color: var(--hd-text); background: rgba(255,255,255,.05); }
#tab-handling .hd-tabs button.active { background: rgba(255,255,255,.1); color: var(--hd-text); }
#tab-handling .hd-tabs button b { min-width: 18px; padding: 0 5px; border-radius: 999px; background: rgba(143,193,255,.18); color: var(--hd-accent); font-size: 10.5px; line-height: 17px; text-align: center; }
#tab-handling .hd-fields { display: flex; flex-direction: column; background: var(--hd-panel); border: 1px solid var(--hd-line); border-radius: 6px; }
#tab-handling .hd-field { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(200px, 1.4fr) 92px 30px; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--hd-line); }
#tab-handling .hd-field:last-child { border-bottom: 0; }
#tab-handling .hd-field-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
#tab-handling .hd-field-text span { font-size: 13px; font-weight: 600; color: var(--hd-text); }
#tab-handling .hd-field-text small { font-size: 11.5px; line-height: 1.4; color: var(--hd-dim); }
#tab-handling .hd-field.changed .hd-field-text span::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-radius: 50%; background: var(--hd-accent); vertical-align: middle; }
#tab-handling .hd-slider { position: relative; display: flex; align-items: center; height: 28px; }
#tab-handling .hd-slider em { position: absolute; left: calc(7px + (100% - 14px) * var(--origin) / 100); top: 50%; width: 2px; height: 14px; margin: -7px 0 0 -1px; border-radius: 1px; background: rgba(255,255,255,.35); pointer-events: none; }
#tab-handling .hd-slider input { width: 100%; height: 28px; margin: 0; background: transparent; accent-color: var(--hd-accent); cursor: pointer; position: relative; z-index: 1; }
#tab-handling .hd-value { font-size: 12.5px; font-weight: 600; color: var(--hd-muted); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
#tab-handling .hd-field.changed .hd-value { color: var(--hd-accent); }
#tab-handling .hd-reset { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--hd-line); border-radius: 5px; background: transparent; color: var(--hd-muted); cursor: pointer; transition: background .15s, color .15s, opacity .15s; }
#tab-handling .hd-reset svg { width: 14px; height: 14px; }
#tab-handling .hd-reset:hover:not(:disabled) { background: rgba(255,255,255,.07); color: var(--hd-text); }
#tab-handling .hd-reset:disabled { opacity: .25; cursor: default; }
#tab-handling .hd-note { margin: 0 2px; font-size: 11.5px; line-height: 1.5; color: var(--hd-dim); }
#tab-handling .hd-new { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; }
#tab-handling .hd-new svg, #tab-handling .hd-empty .btn svg { width: 14px; height: 14px; }
#tab-handling .hd-empty .btn { display: inline-flex; align-items: center; gap: 6px; }
#tab-handling .hd-add { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 5px; background: rgba(255,255,255,.04); border: 1px solid var(--hd-line); }
#tab-handling .hd-add label { display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; color: var(--hd-muted); }
#tab-handling .hd-add-actions { display: flex; justify-content: space-between; gap: 8px; }
