:root {
  --bg: #f3f2ef;
  --bg-elevated: #ffffff;
  --bg-subtle: #eceae4;
  --fg: #161615;
  --fg-muted: #6f6e69;
  --fg-subtle: #9c9a92;
  --border: color-mix(in oklab, var(--fg) 10%, transparent);
  --accent: #1c1b19;
  --accent-fg: #f7f6f2;
  --live: #2f7d4a;
  --danger: #b42318;
  --auto: #3d5a73;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --shadow: 0 1px 2px color-mix(in oklab, var(--fg) 6%, transparent);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.5 var(--font);
}
a { color: inherit; text-decoration: none; }
button, .btn { font: inherit; cursor: pointer; appearance: none; -webkit-appearance: none; }
button:disabled { opacity: .35; cursor: default; }
label { display: block; font-size: 12px; font-weight: 600; color: var(--fg-muted); margin: 0 0 6px; }
input[type=text], input[type=password], input[type=file], input[type=number], input[type=email], input[type=time], input[type=date], select {
  width: 100%; height: 44px; border: 0; border-radius: var(--radius-sm);
  background: var(--bg); color: var(--fg); padding: 0 12px;
  box-shadow: 0 0 0 1px var(--border);
}
input:focus { outline: 2px solid color-mix(in oklab, var(--fg) 25%, transparent); outline-offset: 1px; }
.btn, button.btn, button[type=submit], a.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 16px; border: 0; border-radius: 12px;
  background: var(--accent); color: var(--accent-fg); font-weight: 650; font-size: 14px;
  box-shadow: 0 1px 2px color-mix(in oklab, var(--fg) 12%, transparent);
  text-decoration: none; white-space: nowrap;
}
.btn:hover, button.btn:hover, button[type=submit]:hover, a.btn:hover { filter: brightness(1.08); }
.btn-ghost, button.btn-ghost, a.btn-ghost {
  background: var(--bg-elevated); color: var(--fg);
  box-shadow: 0 0 0 1px var(--border);
}
.btn-ghost:hover, button.btn-ghost:hover, a.btn-ghost:hover { background: var(--bg-subtle); filter: none; }
.btn-danger, button.btn-danger { background: var(--danger); color: #fff; box-shadow: none; }
.btn-sm, button.btn-sm, a.btn-sm { height: 36px; padding: 0 12px; border-radius: 10px; font-size: 13px; }
.muted { color: var(--fg-muted); }
.card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow), 0 0 0 1px var(--border);
}
.msg { color: var(--danger); font-size: 14px; margin: 0 0 12px; }
.msg.ok { color: var(--live); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
form.inline { display: inline; }
code { font-family: var(--font-mono); font-size: 12px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 14px 8px; border-bottom: 1px solid var(--border); font-size: 14px; }
th { color: var(--fg-muted); font-weight: 600; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.pill {
  display: inline-flex; align-items: center; border-radius: 999px;
  padding: 4px 10px; font-size: 11px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  background: var(--bg-subtle); color: var(--fg-muted);
}
.pill.live { background: #e8f5ec; color: var(--live); }
.pill.auto { background: #e8eef3; color: var(--auto); }
.conn { margin: 10px 0 14px; }
.conn-row { display: flex; gap: 8px; align-items: center; }
.conn-row input[type=text] { font-family: var(--font-mono); font-size: 13px; cursor: text; }
.conn-row textarea {
  flex: 1; min-height: 88px; font-family: var(--font-mono); font-size: 13px;
  border: 0; border-radius: var(--radius-sm); background: var(--bg); color: var(--fg);
  padding: 10px 12px; box-shadow: 0 0 0 1px var(--border); resize: vertical; cursor: text;
}
.conn-row a {
  display: inline-flex; align-items: center; height: 36px; padding: 0 12px;
  border-radius: var(--radius-sm); box-shadow: 0 0 0 1px var(--border); color: var(--fg-muted);
}
.aire-modal[hidden] { display: none !important; }
.aire-modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; }
.aire-modal-back { position: absolute; inset: 0; background: rgba(15, 23, 42, .48); }
.aire-modal-box {
  position: relative; width: min(420px, 100%); background: #fff; color: #0f172a;
  border-radius: 16px; padding: 22px 22px 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .2), 0 0 0 1px #e7ebf3;
}
.aire-modal-box h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; letter-spacing: -.03em; }
.aire-modal-box p { margin: 0 0 18px; color: #475569; font-size: 14px; line-height: 1.5; }
.aire-modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
body.aire-modal-open { overflow: hidden; }

.login-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
}
.login-card { width: min(420px, 100%); padding: 40px 36px; }
.login-card h1 { font-size: 28px; font-weight: 600; letter-spacing: -.03em; margin: 0 0 8px; }
.brand { font-weight: 700; letter-spacing: -.04em; font-size: 18px; margin-bottom: 28px; }
.field { margin: 0 0 16px; }

.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side {
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  padding: 24px 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.side a, .side .nav {
  display: block; padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--fg-muted); font-weight: 550; font-size: 14px;
}
.side a.active, .side .nav.active { background: var(--bg-subtle); color: var(--fg); }
.main { padding: 32px 28px 64px; max-width: 1080px; }
.main h1 { font-size: 26px; font-weight: 600; letter-spacing: -.03em; margin: 0 0 6px; }
.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
@media (max-width: 800px) {
  .shell { grid-template-columns: 1fr; }
  .side { border-right: 0; border-bottom: 1px solid var(--border); flex-direction: row; flex-wrap: wrap; align-items: center; }
  .main { padding: 20px 16px 48px; }
}

.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.kpi {
  border-radius: 18px; padding: 18px 20px; color: #fff; min-height: 96px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.kpi .k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; font-weight: 600; }
.kpi .v { font-size: 28px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin: 6px 0 4px; }
.kpi .s { font-size: 13px; opacity: .9; }
.kpi.orange { background: linear-gradient(135deg, #ff7a18, #ff9f43); }
.kpi.navy { background: #1c2430; }
.kpi.teal { background: linear-gradient(135deg, #0f9d8e, #1ab394); }
.app-ui .kpi,
.app-ui .kpi.orange,
.app-ui .kpi.navy,
.app-ui .kpi.teal,
.app-ui .sys-kpi,
.app-ui .sys-kpi.dark,
.app-ui .sys-kpi.teal {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 0 0 1px #e7ebf3;
}
.app-ui .kpi .k,
.app-ui .sys-kpi .k { color: #94a3b8; opacity: 1; }
.app-ui .kpi .s,
.app-ui .sys-kpi .s { color: #64748b; opacity: 1; }
.app-ui .kpi .v { color: #4f46e5; }
.ov-card { background: #fff; border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow), 0 0 0 1px var(--border); margin-bottom: 14px; }
.ov-card h2 { margin: 0; font-size: 15px; font-weight: 650; }
.ov-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 12px; flex-wrap: wrap; }
.ov-title { justify-content: flex-start; }
.sec-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.sec-ico {
  width: 36px; height: 36px; border-radius: 12px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: #eef2ff; color: #4f46e5;
}
.sec-head p { margin: 3px 0 0; color: var(--fg-muted); font-size: 13px; line-height: 1.4; }
.sig-dot {
  position: relative;
  width: 28px; height: 28px; border-radius: 999px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fee2e2; color: #dc2626; box-shadow: inset 0 0 0 1px #fecaca;
}
.sig-dot i { width: 10px; height: 10px; border-radius: 999px; background: currentColor; display: block; position: relative; z-index: 1; }
.sig-dot.on { background: #dcfce7; color: #15803d; box-shadow: inset 0 0 0 1px #bbf7d0; }
.sig-dot.on::before,
.sig-dot.on::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px; border-radius: 999px;
  border: 2px solid #22c55e;
  animation: sig-wave 1.8s ease-out infinite;
  pointer-events: none;
}
.sig-dot.on::after { animation-delay: .7s; }
@keyframes sig-wave {
  0% { transform: scale(.7); opacity: .75; }
  100% { transform: scale(2.6); opacity: 0; }
}
.btn-ico svg { flex: 0 0 auto; }
.file-pick {
  position: relative; display: flex; align-items: center; gap: 10px;
  min-height: 48px; margin: 0; padding: 6px; border-radius: 12px;
  background: #f8fafc; box-shadow: 0 0 0 1px #e2e8f0; cursor: pointer;
}
.file-pick input[type=file] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0; margin: 0; opacity: 0; cursor: pointer;
}
.file-pick .file-name {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #64748b; font-size: 13px; font-weight: 550;
}
#form-up .file-pick { margin: 6px 0 12px; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: #c2410c; }
.live-dot i { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; display: inline-block; }
#visitas { width: 100%; height: 280px; display: block; }
.chart-wrap { position: relative; }
.chart-wrap canvas { cursor: crosshair; }
#aire-tip {
  position: fixed; z-index: 80; display: none; align-items: center; gap: 8px;
  background: #161615; color: #f7f6f2; font-size: 13px; font-weight: 600;
  padding: 8px 10px; border-radius: 10px; pointer-events: none;
  box-shadow: 0 10px 30px rgba(22,22,21,.2); white-space: nowrap;
}
#aire-tip img { width: 20px; height: 15px; object-fit: cover; border-radius: 2px; display: block; }
#aire-tip .sep { color: #9c9a92; font-weight: 500; }
#aire-tip strong { font-variant-numeric: tabular-nums; }
.mid-row { display: grid; grid-template-columns: 1.2fr 1fr .9fr; gap: 14px; margin-bottom: 14px; }
.mid-row.two { grid-template-columns: 1.3fr 1fr; }
#map { height: 460px; position: relative; }
.map-stage { position: relative; height: 460px; overflow: hidden; border-radius: 12px; background: #f7f7f8; }
.map-stage svg { width: 100%; height: 100%; display: block; }
.map-zoom {
  position: absolute; left: 10px; bottom: 10px; display: flex; flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,.12); border-radius: 8px; overflow: hidden;
}
.map-zoom button {
  width: 32px; height: 32px; border: 0; background: #fff; color: #161615;
  font-size: 18px; line-height: 1; cursor: pointer;
}
.map-zoom button + button { border-top: 1px solid #ececec; }
.map-legend {
  position: absolute; right: 12px; top: 8px; display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; color: #6f6e69;
}
.map-legend i {
  width: 72px; height: 8px; border-radius: 99px; display: block;
  background: linear-gradient(90deg, #e6e7ea, #fed7aa, #fb923c, #ea580c);
}
.country-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.country-row img.flag { width: 22px; height: 16px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(15,23,42,.12); }
.country-row .bar { flex: 1; height: 6px; background: #f1f1ef; border-radius: 99px; overflow: hidden; }
.country-row .bar span { display: block; height: 100%; background: linear-gradient(90deg, #ffb36b, #ff7a18); }
.country-row .n { font-weight: 650; min-width: 28px; text-align: right; color: #c2410c; }
.qnav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qnav a, .qnav span {
  display: flex; align-items: flex-end; min-height: 72px; padding: 12px;
  border-radius: 14px; color: #fff; font-weight: 650; font-size: 14px;
  background: linear-gradient(135deg, #ff7a18, #ff9f43);
}
.qnav span { opacity: .55; cursor: default; }
.gauge-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.gauge { text-align: center; }
.gauge svg { width: 180px; max-width: 100%; height: auto; }
.gauge .nums { display: flex; justify-content: space-between; font-size: 12px; color: var(--fg-muted); margin-top: 8px; }
@media (max-width: 1100px) {
  .kpi-row, .mid-row, .gauge-row, .set-grid, .sys-kpis, .sys-split, .sys-mini, .meter-row, .sig-grid, .links-grid { grid-template-columns: 1fr; }
}
.set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.drop {
  display: block; text-align: center; padding: 22px 16px; border-radius: 14px;
  background: #fff6ef; color: var(--fg-muted); cursor: pointer;
  box-shadow: inset 0 0 0 1px #ffd7b8;
}
.drop input { display: none; }
.drop strong { display: block; color: var(--fg); margin: 6px 0 4px; }
.drop span { font-size: 12px; }
.brand-active {
  display: flex; align-items: center; gap: 12px; margin-top: 10px;
  padding: 10px 12px; border-radius: 12px; box-shadow: 0 0 0 1px var(--border);
}
.brand-active img { max-height: 48px; max-width: 180px; object-fit: contain; }
.login-logo { max-height: 56px; max-width: 220px; object-fit: contain; display: block; margin: 0 0 14px; }
.home-logo { max-height: 120px; max-width: 320px; margin: 0; }
select { appearance: none; background-image: none; }
.meter-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.meter-card {
  margin-bottom: 0;
}
.meter-card .lim-top { margin-bottom: 4px; }
.meter-card .meter-body { margin-top: 4px; }
.meter-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.meter-head h2 { margin: 0; font-size: 15px; font-weight: 700; }
.chip {
  font-size: 11px; font-weight: 650; padding: 3px 8px; border-radius: 999px;
}
.chip.teal { background: #e6fbf4; color: #0f766e; }
.chip.amber { background: #fff7ed; color: #c2410c; }
.chip.red { background: #fef2f2; color: #b42318; }
.meter-body { position: relative; height: 132px; }
.meter-svg { width: 200px; max-width: 100%; height: 120px; display: block; margin: 0 auto; }
.meter-center {
  position: absolute; left: 0; right: 0; top: 48px; text-align: center; pointer-events: none;
}
.meter-center strong { display: block; font-size: 22px; letter-spacing: -.03em; }
.meter-center strong.red { color: #ef4444; }
.meter-center span { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); font-weight: 700; }
.meter-pills { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 6px; }
.meter-pills.two { grid-template-columns: 1fr 1fr; }
.meter-pills > div {
  border-radius: 12px; padding: 8px 6px; text-align: center;
  box-shadow: 0 0 0 1px var(--border);
}
.meter-pills > div.act { background: #fff5f5; box-shadow: 0 0 0 1px #fecaca; }
.meter-pills > div.ok { background: #f0fdf4; box-shadow: 0 0 0 1px #bbf7d0; }
.meter-pills em { display: block; font-style: normal; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-muted); font-weight: 700; }
.meter-pills strong { display: block; font-size: 16px; margin-top: 2px; }
.meter-pills strong.blue { color: #2563eb; }
.tabs { display: flex; gap: 6px; }
.tabs button {
  height: 34px; padding: 0 12px; border-radius: 999px; background: var(--bg-subtle);
  color: var(--fg-muted); font-weight: 650; font-size: 13px; border: 0;
}
.tabs button.on { background: var(--fg); color: #fff; }
.ch-player {
  position: relative; width: 100%; aspect-ratio: 16/9; background: #151c28;
  border-radius: 14px; overflow: hidden;
}
.ch-player video, .ch-player iframe {
  width: 100%; height: 100%; object-fit: contain; background: #151c28; border: 0;
}
.ch-msg {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; text-shadow: 0 0 6px #000; pointer-events: none; padding: 16px; text-align: center;
}
.sig-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.sig-grid > div {
  padding: 12px; border-radius: 12px; box-shadow: 0 0 0 1px var(--border);
}
.sig-grid em { display: block; font-style: normal; font-size: 11px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.sig-grid strong { display: block; margin-top: 4px; font-size: 15px; }
.sig-icons > div { display: flex; align-items: center; gap: 12px; padding: 14px; }
.sig-ico {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  display: grid; place-items: center; background: #eef2ff; color: #4f46e5;
}
.sig-ico svg { display: block; }
@media (max-width: 1100px) {
  .meter-row, .sig-grid { grid-template-columns: 1fr; }
}
.cc-page { max-width: none; }
.cc-head { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; }
.cc-head h1 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.cc-head p { margin: 2px 0 0; color: #64748b; font-size: 13px; }
.cc-head > a.btn { margin-left: auto; }
.cc-head-ico, .cc-step {
  width: 42px; height: 42px; border-radius: 14px; flex: none;
  display: grid; place-items: center; background: #eef2ff; color: #4f46e5; font-weight: 750;
}
.cc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.cc-card-h { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; }
.cc-card-h h2 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.cc-card-h p { margin: 2px 0 0; color: #64748b; font-size: 12px; line-height: 1.4; }
.cc-in { position: relative; }
.cc-in > svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #64748b; pointer-events: none; z-index: 2; }
.cc-page .cc-in input, .cc-page .cc-in select { width: 100%; height: 44px; padding-left: 38px !important; }
.cc-page .cc-in > .sch-select { width: 100%; padding-left: 38px; }
.cc-eye {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; min-height: 32px; padding: 0; border: 0; border-radius: 8px;
  background: transparent !important; color: #94a3b8 !important; box-shadow: none !important;
  display: grid; place-items: center;
}
.cc-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cc-mode { position: relative; display: block; margin: 0; cursor: pointer; }
.cc-mode input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cc-mode > span {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) 18px; align-items: center;
  column-gap: 10px; min-height: 78px; padding: 12px;
  border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px #e2e8f0;
}
.cc-mode i { grid-row: 1 / span 2; width: 36px; height: 36px; border-radius: 10px; background: #eef2ff; color: #4f46e5; display: grid; place-items: center; }
.cc-mode b, .cc-mode em { min-width: 0; }
.cc-mode b { grid-column: 2; grid-row: 1; font-size: 14px; line-height: 1.2; }
.cc-mode em { grid-column: 2; grid-row: 2; font-style: normal; color: #64748b; font-size: 12px; line-height: 1.35; white-space: normal; }
.cc-mode .cc-dot { grid-column: 3; grid-row: 1 / span 2; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 2px #cbd5e1; justify-self: center; }
.cc-mode input:checked + span { background: #f5f3ff; box-shadow: 0 0 0 2px #4f46e5; }
.cc-mode input:checked + span .cc-dot { box-shadow: inset 0 0 0 5px #4f46e5; }
.cc-multi { margin: 4px 0 14px; }
.cc-page .cc-in input[readonly] { background: #f8fafc; color: #64748b; }
.cc-foot { margin-top: 14px; }
.cc-feats { display: flex; align-items: center; gap: 10px; }
.cc-pack-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.cc-pack-grid > .cc-feat { flex: none; width: auto; min-width: 0; }
.cc-feat { flex: 1; min-width: 0; padding: 8px 12px; border-radius: 14px; box-shadow: 0 0 0 1px #e7ebf3; }
.cc-feat i { width: 32px; height: 32px; border-radius: 10px; background: #f4f6fb; color: #64748b; display: grid; place-items: center; flex: none; }
.cc-feats > button { flex: none; }
@media (max-width: 980px) {
  .cc-grid, .cc-pair, .cc-modes { grid-template-columns: 1fr; }
  .cc-feats { flex-wrap: wrap; }
  .cc-feat { flex: 1 1 100%; }
  .cc-head { flex-wrap: wrap; }
  .cc-head > a.btn { margin-left: 0; }
  .cc-feats > button { width: 100%; }
  .cc-pack-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .cc-pack-grid { grid-template-columns: 1fr; }
}
.cl-hero {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 0 14px; padding: 10px;
  background: #fff; border-radius: 18px;
  box-shadow: var(--shadow), 0 0 0 1px var(--border);
}
.cl-host, .cl-stat {
  display: flex; align-items: center; gap: 10px;
  min-height: 64px; padding: 8px 12px; border-radius: 14px;
  background: #f7f8fb; box-shadow: 0 0 0 1px #e7ebf3;
}
.cl-host { flex: 1.2 1 220px; }
.cl-stat { flex: 1 1 140px; }
.cl-host b, .cl-stat em { display: block; color: #64748b; font-size: 11px; font-style: normal; font-weight: 650; }
.cl-host span, .cl-stat strong { display: block; font-size: 15px; font-weight: 750; letter-spacing: -.02em; }
.cl-host-ico, .cl-stat > i {
  width: 36px; height: 36px; border-radius: 12px; flex: none;
  display: grid; place-items: center; background: #eef2ff; color: #4f46e5;
}
.cl-stat > i.g, .cl-stat > i.b { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: none; }
.cl-stat > i.b { background: #3b82f6; }
.cl-copy {
  margin-left: auto; width: 32px; height: 32px; border: 0; border-radius: 8px;
  background: transparent; color: #64748b; display: grid; place-items: center;
}
.cl-hero > .btn { height: 48px; padding: 0 18px; border-radius: 14px; }
.cl-card { overflow: visible; padding: 14px; }
.cl-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.cl-search {
  flex: 1 1 220px; display: flex; align-items: center; gap: 8px; height: 40px;
  padding: 0 12px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #e2e8f0; color: #94a3b8;
}
.cl-search input { height: 38px; border: 0; box-shadow: none; background: transparent; padding: 0; }
.cl-tools select, .cl-foot select {
  height: 40px; width: auto; border: 0; border-radius: 12px; background: #fff; color: #0f172a;
  box-shadow: 0 0 0 1px #e2e8f0; padding: 0 32px 0 12px; font-size: 13px; font-weight: 650;
}
.cl-sort { margin-left: auto; color: #64748b; font-size: 13px; font-weight: 650; }
.cl-scroll { overflow-x: auto; }
.cl-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cl-table th, .cl-table td { padding: 10px 6px; white-space: nowrap; vertical-align: middle; text-align: left; }
.cl-table th { font-size: 10px; letter-spacing: .04em; color: #94a3b8; font-weight: 750; border-bottom: 1px solid #eef2f6; }
.cl-table td { border-bottom: 1px solid #f4f6fb; }
.cl-table tr[hidden] { display: none; }
.cl-chan, .cl-own, .cl-date { display: flex; align-items: center; gap: 10px; }
.cl-own, .cl-date { flex-direction: column; align-items: flex-start; gap: 0; }
.cl-chan strong, .cl-own strong, .cl-date b, .cl-meter b { font-size: 13px; }
.cl-chan em, .cl-own em, .cl-date em { color: #94a3b8; font-style: normal; font-size: 12px; }
.cl-thumb {
  width: 54px; height: 36px; border-radius: 8px; flex: none;
  display: grid; place-items: center; background: #111827; color: #fff;
}
.cl-limit, .cl-eyes, .cl-num { font-weight: 700; }
.cl-meter { display: inline-flex; flex-direction: column; min-width: 56px; vertical-align: middle; }
.cl-lead {
  width: 24px; height: 24px; margin-right: 6px; border-radius: 7px;
  display: inline-grid; place-items: center; vertical-align: middle;
  background: #eef2ff; color: #4f46e5;
}
.cl-meter b.inf { font-size: 16px; }
.cl-bar { display: block; height: 4px; margin-top: 6px; border-radius: 99px; background: #e8edf5; overflow: hidden; }
.cl-bar i { display: block; height: 100%; border-radius: 99px; background: #6366f1; }
.cl-bar.is-inf i { width: 100%; background: #e8edf5; }
.cl-kind, .cl-state {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px;
  border-radius: 999px; font-size: 12px; font-weight: 750;
}
.cl-kind.live { color: #e11d48; background: #fff1f2; }
.cl-kind.autotv { color: #4f46e5; background: #eef2ff; }
.cl-state.live { color: #15803d; background: #ecfdf3; }
.cl-state.auto { color: #1d4ed8; background: #eff6ff; }
.cl-state.stopped { color: #64748b; background: #f1f5f9; }
.cl-state.suspended { color: #e11d48; background: #fff1f2; }
.cl-table td.cl-user, .cl-table td.cl-with { display: table-cell; }
.cl-own, .cl-date { display: inline-flex; vertical-align: middle; }
.cl-user strong { font-size: 13px; font-weight: 750; }
.cl-act { text-align: right; }
.cl-act form { display: none; }
.cl-ico {
  width: 28px; height: 28px; border: 0; border-radius: 8px; padding: 0;
  display: inline-grid; place-items: center; vertical-align: middle;
  background: #eef2ff; color: #4f46e5; box-shadow: none; text-decoration: none;
}
.cl-ico.danger, .cl-ico.stop { background: #fff1f2; color: #e11d48; }
.cl-ico.ok { background: #ecfdf3; color: #15803d; }
.cl-ico:hover { filter: brightness(.97); }
.cl-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-top: 12px; color: #64748b; font-size: 13px;
}
.cl-pages { display: flex; align-items: center; gap: 8px; }
.cl-pages > span {
  min-width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: #4f46e5; color: #fff; font-weight: 750;
}
@media (max-width: 900px) {
  .cl-sort { margin-left: 0; }
  .cl-hero > .btn { width: 100%; }
}

.aire-tip {
  position: fixed; z-index: 220; max-width: 220px; padding: 5px 9px;
  border-radius: 8px; background: #1c1b19; color: #f7f6f2;
  font-size: 12px; font-weight: 650; line-height: 1.3; letter-spacing: 0;
  pointer-events: none; white-space: nowrap;
  box-shadow: 0 8px 18px rgba(28, 27, 25, .28);
}
.aire-tip::after {
  content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px;
  border: 5px solid transparent; border-top-color: #1c1b19;
}
.aire-tip.below::after { bottom: auto; top: -5px; border-top-color: transparent; border-bottom-color: #1c1b19; }
.aire-tip[hidden] { display: none; }
.sys-badge {
  display: inline-flex; align-items: center; height: 32px; padding: 0 12px;
  border-radius: 999px; font-size: 12px; font-weight: 650;
  background: #fff; box-shadow: 0 0 0 1px var(--border);
}
.sys-badge.ok { background: #e8f5ec; color: var(--live); box-shadow: none; }
.sys-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.sys-kpi {
  background: linear-gradient(135deg, #ff7a18, #ff9f43);
  color: #fff; border-radius: 18px; padding: 18px 16px; min-height: 124px;
}
.sys-kpi.dark { background: linear-gradient(135deg, #1c2430, #2c3a4d); }
.sys-kpi.teal { background: linear-gradient(135deg, #0f9d8a, #14c4ab); }
.sys-kpi .k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .9; font-weight: 700; }
.sys-kpi .v { font-size: 22px; font-weight: 750; margin: 10px 0 6px; letter-spacing: -.03em; }
.sys-kpi .s { font-size: 12px; opacity: .92; line-height: 1.35; }
.sys-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.sys-split .sig-grid { grid-template-columns: 1fr 1fr; }
.sys-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sys-mini > div {
  padding: 14px; border-radius: 14px; box-shadow: 0 0 0 1px var(--border);
}
.sys-mini .k { font-size: 11px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.sys-mini .v { font-weight: 700; font-size: 15px; margin-top: 6px; word-break: break-word; }
.tele { margin-bottom: 22px; }
.tele-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.tele-n { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--fg-muted); margin-top: 8px; flex-wrap: wrap; }
.bar-line { height: 8px; background: #eceae4; border-radius: 99px; overflow: hidden; }
.bar-line span { display: block; height: 100%; border-radius: 99px; }
.term {
  background: #151c28; color: #d5deea; border-radius: 16px; padding: 16px 18px;
  font-family: var(--font-mono); font-size: 12px; overflow-x: auto;
  white-space: pre; line-height: 1.55;
}
.term-dots { display: flex; gap: 6px; margin-bottom: 10px; }
.term-dots span { width: 10px; height: 10px; border-radius: 50%; display: block; }
.term-dots span:nth-child(1) { background: #ff5f56; }
.term-dots span:nth-child(2) { background: #ffbd2e; }
.term-dots span:nth-child(3) { background: #27c93f; }
.term-cmd { color: #8aa0b8; margin-bottom: 8px; }
.links-grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: 16px; align-items: start; }
.code-box { display: flex; gap: 0; align-items: stretch; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--border); }
.code-box textarea {
  flex: 1; border: 0; border-radius: 0; box-shadow: none;
  min-height: 0; height: 68px; resize: none; overflow: auto;
  font-family: var(--font-mono); font-size: 11px; line-height: 1.45;
  background: var(--bg); padding: 10px 12px; color: var(--fg-muted);
}
.code-box button { border-radius: 0; height: auto; padding: 0 14px; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 14px; }
.choice-item {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 12px;
  box-shadow: 0 0 0 1px var(--border); cursor: pointer; font-weight: 650; font-size: 14px;
}
.choice-item:has(input:checked) { box-shadow: 0 0 0 2px var(--fg); background: var(--bg-subtle); }
.choice-item input { margin: 0; }
.aud-hero { display: grid; grid-template-columns: 240px 1fr; gap: 0; padding: 0; overflow: hidden; margin-bottom: 16px; }
.aud-now { padding: 22px 24px; }
.aud-now .lim-top p { margin-top: 3px; }
.aud-now strong { display: block; font-size: 48px; letter-spacing: -.04em; line-height: 1; margin: 16px 0 8px; color: #0f172a; }
.ok-line { display: inline-flex; align-items: center; gap: 6px; color: var(--live); font-size: 13px; font-weight: 650; }
.ok-line i { width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
.aud-chart { border-left: 1px solid var(--border); min-height: 280px; }
.aud-chart canvas { width: 100%; height: 280px; display: block; cursor: crosshair; }
.cty-head { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-subtle); padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.cty-row { padding: 12px 0 10px; border-bottom: 1px solid var(--border); }
.cty-main { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cty-idx { width: 18px; color: var(--fg-subtle); font-weight: 650; }
.cty-main img { width: 20px; height: 15px; object-fit: cover; border-radius: 2px; }
.cty-name { flex: 1; font-weight: 650; }
.cty-pct { min-width: 52px; text-align: right; color: var(--fg-muted); font-size: 13px; }
.cty-row .bar { height: 6px; background: #f1f1ef; border-radius: 99px; overflow: hidden; }
.cty-row .bar span { display: block; height: 100%; background: #4f46e5; }
@media (max-width: 900px) {
  .aud-hero { grid-template-columns: 1fr; }
  .aud-chart { border-left: 0; border-top: 1px solid var(--border); }
}
.up-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.stor-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.stor-nums em { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-muted); font-style: normal; font-weight: 700; }
.stor-nums strong { display: block; font-size: 28px; letter-spacing: -.03em; margin-top: 4px; }
.stor-nums .ok { color: var(--live); }
.stor-bar-wrap { display: flex; justify-content: space-between; font-size: 12px; color: var(--fg-muted); margin-bottom: 6px; }
.stor-bar { height: 8px; background: #eceae4; border-radius: 99px; overflow: hidden; }
.stor-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffb36b, #ff7a18); }
.mkdir-form { display: flex; gap: 8px; align-items: center; }
.mkdir-form input[type=text] { width: 180px; height: 36px; }
.ex-table { overflow-x: auto; }
.ex-head, .ex-row {
  display: grid; grid-template-columns: 48px 44px minmax(0, 1.5fr) 90px 80px 120px 44px;
  gap: 10px; align-items: center; padding: 12px 0;
}
.ex-head span, .ex-row span { min-width: 0; }
.ex-head span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-head { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-subtle); border-bottom: 1px solid var(--border); }
.ex-row { border-bottom: 1px solid var(--border); font-size: 14px; }
.ex-ico {
  width: 32px; height: 32px; border-radius: 8px; display: inline-flex;
  align-items: center; justify-content: center;
}
.ex-ico.folder { background: #fff6e8; color: #b7791f; }
.ex-ico.video { background: #fff1e8; color: #ff7a18; }
.ex-name, .ex-name a {
  display: flex; min-width: 0; max-width: 100%; overflow: hidden;
  color: inherit; text-decoration: none;
}
.ex-name .a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-name .b { flex: none; white-space: nowrap; }
.ex-name a:hover .a { text-decoration: underline; }
.thumb-prev { width: 88px; height: 50px; object-fit: cover; border-radius: 8px; background: #151c28; display: block; }
.thumb-prev.empty { box-shadow: inset 0 0 0 1px var(--border); }
.icon-del {
  width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fee2e2; color: #b91c1c; font-weight: 700;
}
#up-queue { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
#up-queue:empty { display: none; margin: 0; }
.up-item {
  margin: 0; padding: 10px 12px 12px; border-radius: 12px; background: #fff;
  box-shadow: 0 0 0 1px var(--border); font-size: 13px;
}
.up-top { display: flex; align-items: center; gap: 8px; }
.up-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.up-size { flex: none; color: var(--fg-muted); font-size: 12px; }
.up-st { flex: none; max-width: 46%; text-align: right; font-size: 12px; font-weight: 700; color: var(--fg-muted); line-height: 1.3; }
.up-foot { margin-top: 8px; display: flex; }
.up-badge {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 28px; padding: 4px 10px; border-radius: 999px;
  background: #f4f1ea; color: #6b6560; font-size: 12px; font-weight: 750;
}
.up-item.run .up-badge { background: #fff1e6; color: #c2410c; }
.up-item.err .up-badge { background: #fee2e2; color: #b91c1c; }
.up-item.ok {
  box-shadow: 0 0 0 1px #86efac, 0 10px 24px rgba(22, 163, 74, .12);
  animation: up-card .45s ease;
}
.up-item.ok .up-bar { display: none; }
.up-item.ok .up-badge {
  width: 100%; justify-content: center; min-height: 40px; padding: 0 14px;
  border: 0; border-radius: 12px; background: #16a34a; color: #fff;
  font-size: 14px; font-weight: 750; letter-spacing: -.01em;
  box-shadow: 0 8px 18px rgba(22, 163, 74, .28);
  animation: up-pop .42s cubic-bezier(.2, .8, .2, 1);
}
.up-check {
  width: 20px; height: 20px; border-radius: 50%; background: #fff; color: #16a34a;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
@keyframes up-pop {
  0% { transform: scale(.86); opacity: 0; }
  55% { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes up-card {
  0% { transform: translateY(4px); }
  100% { transform: none; }
}
.up-done {
  margin: 0 0 14px; padding: 14px 16px; border-radius: 14px;
  background: #e7f6ee; box-shadow: 0 0 0 1px #b7e4c7;
}
.up-done strong { display: flex; align-items: center; gap: 8px; color: #157a45; margin-bottom: 4px; }
.up-done strong::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; background: #157a45;
  box-shadow: inset 0 0 0 4px #e7f6ee, inset 0 0 0 6px #fff;
}
.up-done p { margin: 0 0 10px; font-size: 14px; }
.up-done .btn { text-decoration: none; }
.up-bar { height: 6px; margin-top: 8px; background: #f1f1ef; border-radius: 99px; overflow: hidden; }
.up-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffb36b, #ff7a18); border-radius: 99px; }
.up-item.ok .up-bar i { background: #3d9a6a; }
.up-item.err .up-bar i { background: #ef4444; }
.thumb-play {
  display: block; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative;
}
.thumb-play::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 32px; height: 32px;
  margin: -16px 0 0 -16px; border-radius: 50%; background: rgba(0,0,0,.5);
}
.thumb-play::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  transform: translate(-30%, -50%);
  border-style: solid; border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent #fff;
}
#prev-modal {
  position: fixed; inset: 0; background: rgba(15,18,22,.62); display: grid; place-items: center; z-index: 40; padding: 24px;
}
#prev-modal[hidden] { display: none; }
.prev-box { width: min(860px, 100%); background: #111; border-radius: 16px; padding: 12px; }
.prev-box video { width: 100%; max-height: 70vh; background: #000; border-radius: 10px; display: block; }
.prev-box button { margin-bottom: 8px; }
@media (max-width: 1100px) {
  .up-grid { grid-template-columns: 1fr; }
  .ex-head, .ex-row { grid-template-columns: 22px 28px minmax(0, 1fr) 58px 42px 36px; gap: 6px; }
  .ex-head span:nth-child(6), .ex-row span:nth-child(6) { display: none; }
  .ex-ico { width: 26px; height: 26px; }
  .ex-head span:nth-child(2) { font-size: 0; }
  #form-up .file-pick { margin: 6px 0 12px; }
  .file-pick { flex-wrap: wrap; }
}
.pl-layout { display: grid; grid-template-columns: .78fr 1.15fr 1.15fr; gap: 16px; align-items: start; }
.pl-col { min-width: 0; }
.pl-col h2 { margin: 0; font-size: 16px; }
.pl-col .ov-head p { margin: 2px 0 0; font-size: 12px; }
.pl-count {
  min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #eef2ff; color: #4338ca; font-size: 12px; font-weight: 750;
}
.pl-tabs { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.pl-tab {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; align-items: center;
  width: 100%; padding: 8px; border-radius: 12px; text-decoration: none;
  box-shadow: 0 0 0 1px #e7ebf3; color: #0f172a; background: #fff; font-weight: 650; font-size: 13px;
}
.pl-tab:hover { background: #f8fafc; }
.pl-tab.on { background: #4f46e5; color: #fff; box-shadow: none; }
.pl-tab-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #eef2ff; color: #4f46e5; }
.pl-tab.on .pl-tab-ico { background: rgba(255,255,255,.18); color: #fff; }
.pl-tab-name { min-width: 0; display: flex; align-items: center; gap: 6px; }
.pl-tab-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-def {
  flex: none; padding: 2px 6px; border-radius: 999px;
  background: #dcfce7; color: #15803d; font-size: 10px; font-weight: 750; letter-spacing: .04em;
}
.pl-tab.on .pl-def { background: #fff; color: #15803d; }
.pl-chip { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: #f1f5f9; color: #475569; font-size: 11px; font-weight: 750; }
.pl-tab.on .pl-chip { background: #fff; color: #4f46e5; }
.pl-create { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.pl-create input[type=text] { flex: 1; min-width: 0; height: 40px; }
.pl-lib { display: flex; flex-direction: column; gap: 8px; max-height: 62vh; overflow: auto; padding-right: 2px; }
.pl-card {
  display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 8px; border-radius: 14px; box-shadow: 0 0 0 1px #e7ebf3; background: #fff;
}
.pl-card[draggable] { cursor: grab; }
.pl-card[draggable]:active { cursor: grabbing; }
.pl-card.locked { cursor: default; }
.pl-card.folder { grid-template-columns: 40px minmax(0, 1fr); text-decoration: none; color: inherit; }
.pl-card.folder:hover { background: #f8fafc; }
.pl-meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pl-meta strong { font-size: 13px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-meta .muted { font-size: 12px; }
.pl-thumb { width: 84px; height: 48px; object-fit: cover; border-radius: 8px; background: #151c28; display: block; }
.pl-thumb.empty { box-shadow: inset 0 0 0 1px #e7ebf3; }
.pl-thumb.sm { width: 64px; height: 36px; }
.pl-folder-ico {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: #fff6e8; color: #b7791f;
}
.pl-drop {
  min-height: 220px; padding: 10px; border-radius: 14px;
  background: #f8fafc; box-shadow: inset 0 0 0 1.5px #e2e8f0;
  max-height: 56vh; overflow: auto;
}
.pl-drop.over { background: #eef2ff; box-shadow: inset 0 0 0 2px #4f46e5; }
.pl-drop.is-sorting { background: #f5f7ff; }
.pl-item {
  display: grid; grid-template-columns: 28px 28px 64px minmax(0, 1fr) auto; gap: 8px; align-items: center;
  padding: 8px; margin-bottom: 8px; border-radius: 12px; background: #fff;
  box-shadow: 0 0 0 1px #e7ebf3;
  transition: box-shadow .15s ease, transform .15s ease, opacity .15s ease;
}
.pl-item.is-dragging {
  opacity: 0; height: 0; min-height: 0; margin: 0; padding-top: 0; padding-bottom: 0;
  overflow: hidden; box-shadow: none; pointer-events: none;
}
.pl-grip {
  width: 28px; height: 40px; display: grid; place-items: center; color: #64748b;
  cursor: grab; border-radius: 8px; touch-action: none; user-select: none;
}
.pl-grip:hover { color: #4f46e5; background: #eef2ff; }
.pl-grip:active { cursor: grabbing; }
.pl-grip svg { display: block; fill: currentColor; pointer-events: none; }
.pl-ghost {
  position: fixed; z-index: 80; margin: 0; pointer-events: none;
  transform: translate(-12px, -50%);
  box-shadow: 0 16px 40px rgba(15, 23, 42, .22), 0 0 0 2px #4f46e5;
}
.pl-marker {
  height: 4px; margin: 0 8px 8px; border-radius: 99px; background: #4f46e5;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, .16); pointer-events: none;
}
.pl-num {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: #f1f5f9; color: #475569; font-size: 12px; font-weight: 750;
}
.pl-empty { margin: 8px 4px 12px; color: #64748b; font-size: 13px; }
.pl-back { margin: 0 0 10px; font-size: 13px; }
.pl-back a { color: #4f46e5; font-weight: 650; text-decoration: none; }
.pl-sum { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.pl-sum span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px; background: #f8fafc; color: #475569; font-size: 12px;
}
.pl-sum strong { color: #0f172a; }
.pl-apply { margin-top: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pl-apply-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-apply-note { margin: 0; max-width: 42em; font-size: 12px; line-height: 1.45; color: #64748b; }
.pl-apply-ok { margin: 0; font-size: 12px; font-weight: 750; color: #15803d; }
.app-ui .pl-layout button#pl-save:disabled,
.app-ui .pl-layout button#pl-cut:disabled { background: #e2e8f0; color: #94a3b8; box-shadow: none; cursor: default; }
.app-ui .pl-layout button.pl-add { height: 32px; padding: 0 12px; font-size: 12px; border-radius: 10px; }
.app-ui .pl-layout button.pl-del { height: 34px; padding: 0 12px; font-size: 12px; background: #fff; color: #dc2626; box-shadow: 0 0 0 1px #fecaca; }
.app-ui .pl-layout button.pl-del:hover { background: #fef2f2; color: #b91c1c; }
@media (min-width: 1101px) {
  .app-ui .main:has(.pl-layout) {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 16px;
  }
  .app-ui .pl-layout {
    flex: 1;
    min-height: 0;
    height: 100%;
    align-items: stretch;
  }
  .app-ui .pl-col {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    margin-bottom: 0;
  }
  .app-ui .pl-col .ov-head,
  .app-ui .pl-create,
  .app-ui .pl-back,
  .app-ui .pl-sum,
  .app-ui .pl-apply { flex: none; }
  .app-ui .pl-tabs,
  .app-ui .pl-lib,
  .app-ui .pl-drop {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow: auto;
  }
  .app-ui .pl-tabs { margin-bottom: 0; }
}
@media (max-width: 1100px) {
  .pl-layout { grid-template-columns: 1fr; }
  .pl-lib, .pl-drop { max-height: none; }
}
.sch-list { display: flex; flex-direction: column; gap: 8px; }
.sch-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px;
  box-shadow: 0 0 0 1px var(--border); cursor: pointer;
}
.sch-item.on { box-shadow: 0 0 0 2px var(--fg); background: var(--bg-subtle); }
.sch-item span { display: flex; flex-direction: column; gap: 2px; }
.sch-item em { font-style: normal; }
.atv-page {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 16px;
  align-items: stretch;
}
.atv-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.atv-list-card {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.atv-list-card .atv-table { flex: 1; min-height: 0; overflow: auto; }
.atv-card { margin-bottom: 0; }
.atv-hero { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.atv-hero h2 { margin: 0; font-size: 18px; }
.atv-hero p, .atv-block h2 + p, .atv-pl-head p { margin: 4px 0 0; color: #64748b; font-size: 13px; }
.atv-side { display: flex; align-items: center; gap: 12px; margin: 0; }
.atv-side strong { display: block; font-size: 14px; }
.atv-side span { display: block; color: #64748b; font-size: 12px; font-weight: 500; }
.app-ui button.atv-switch {
  width: 56px !important; height: 32px !important; min-height: 32px !important; padding: 0 !important;
  border: 0 !important; border-radius: 999px !important; flex: none; position: relative; cursor: pointer;
  display: inline-block !important; background: #c5ceda !important; box-shadow: inset 0 1px 2px rgba(15, 23, 42, .12) !important;
}
.app-ui button.atv-switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .28);
  transition: left .18s ease;
}
.app-ui button.atv-switch.on { background: #4f46e5 !important; box-shadow: none !important; }
.app-ui button.atv-switch.on::after { left: 27px; }
.app-ui button.atv-switch:disabled { opacity: .45; cursor: not-allowed; }
.atv-modes {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 16px; padding: 12px 14px; border-radius: 16px; background: #f8fafc; box-shadow: inset 0 0 0 1px #e7ebf3;
}
.atv-modes strong { display: block; font-size: 14px; }
.atv-modes span { display: block; margin-top: 2px; color: #64748b; font-size: 12px; }
.atv-modes div:last-child { display: flex; gap: 8px; }
.atv-modes form { margin: 0; }
.app-ui button.atv-mode {
  height: 36px !important; min-height: 36px !important; padding: 0 14px !important; border: 0 !important; border-radius: 999px !important;
  background: #fff !important; color: #334155 !important; box-shadow: 0 0 0 1px #e2e8f0 !important;
  font-weight: 700; font-size: 13px; cursor: pointer;
}
.app-ui button.atv-mode.on,
.app-ui button.atv-mode.on:hover { background: #4f46e5 !important; color: #fff !important; box-shadow: none !important; }
.app-ui button.atv-mode:disabled { opacity: 1; cursor: default; }
.atv-kpis { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.atv-kpi-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.atv-kpi {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px; min-width: 0;
  border-radius: 16px; box-shadow: 0 0 0 1px #e7ebf3; background: #fff;
}
.atv-kpi > div { min-width: 0; }
.atv-kpi-wide strong, .atv-kpi strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-ui .atv-k-ico {
  width: 36px; height: 36px; min-width: 36px; min-height: 36px; border-radius: 12px; flex: none;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  background: #eef2ff; color: #4f46e5; line-height: 0; padding: 0;
}
.app-ui .atv-k-ico svg {
  display: block; width: 18px; height: 18px; margin: 0; flex: none;
}
.atv-kpi em { display: block; font-style: normal; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; font-weight: 700; }
.atv-kpi strong { display: block; margin-top: 2px; font-size: 15px; letter-spacing: -.02em; }
.atv-kpi span { display: block; margin-top: 2px; color: #64748b; font-size: 12px; }
.atv-block { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.atv-block h2, .atv-pl-head h2 { margin: 0; font-size: 18px; }
.atv-stage { background: #0f172a; border-radius: 18px; overflow: hidden; }
.atv-stage .ch-player { border-radius: 0; }
.atv-nowplay { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.atv-clip {
  display: flex; gap: 12px; align-items: center; padding: 12px;
  border-radius: 16px; background: #f8fafc; box-shadow: inset 0 0 0 1px #e7ebf3; min-width: 0;
}
.atv-clip img, .atv-clip .ph {
  width: 92px; height: 52px; border-radius: 10px; object-fit: cover; background: #151c28; flex: none;
}
.atv-clip em { display: block; font-style: normal; font-size: 12px; color: #64748b; }
.atv-clip strong { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.atv-clip span { display: block; margin-top: 4px; color: #64748b; font-size: 12px; }
.atv-next { background: #fff; }
.atv-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-top: 12px; }
.atv-actions form { margin: 0; }
.app-ui button.atv-act {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  height: auto; padding: 14px 16px; border: 0; border-radius: 16px; cursor: pointer;
  background: #0ea5e9; color: #fff; box-shadow: 0 1px 2px rgba(14, 165, 233, .35);
}
.app-ui button.atv-act:hover { background: #0284c7; filter: none; }
.app-ui button.atv-act b {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px;
  background: rgba(255,255,255,.22); color: #fff; flex: none;
}
.app-ui button.atv-act strong { display: block; font-size: 14px; color: #fff; }
.app-ui button.atv-act > span > span { display: block; margin-top: 2px; color: rgba(255,255,255,.82); font-size: 12px; font-weight: 500; }
.app-ui button.atv-act.skip { background: #4f46e5; box-shadow: 0 1px 2px rgba(79, 70, 229, .35); }
.app-ui button.atv-act.skip:hover { background: #4338ca; }
.app-ui button.atv-act.off { background: #e11d48; box-shadow: 0 1px 2px rgba(225, 29, 72, .32); }
.app-ui button.atv-act.off:hover { background: #be123c; }
.app-ui button.atv-act.off b,
.app-ui button.atv-act.off strong,
.app-ui button.atv-act.off > span > span { background: rgba(255,255,255,.22); color: #fff; }
.app-ui button.atv-act.off strong,
.app-ui button.atv-act.off > span > span { background: transparent; }
.app-ui button.atv-act:disabled { opacity: .45; cursor: not-allowed; }
.atv-pl-head, .atv-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.atv-tools { margin: 14px 0; }
.atv-search {
  display: flex; align-items: center; gap: 8px; flex: 1 1 220px; min-width: 0; height: 40px;
  padding: 0 12px; border-radius: 12px; background: #f8fafc; color: #64748b;
  box-shadow: 0 0 0 1px #e2e8f0;
}
.atv-search:focus-within { box-shadow: 0 0 0 2px #c7d2fe; color: #4f46e5; }
.atv-search input {
  flex: 1; min-width: 0; height: 36px; border: 0; background: transparent; color: #0f172a;
  font: inherit; font-size: 14px; outline: none; box-shadow: none;
}
.atv-search input::-webkit-search-cancel-button { cursor: pointer; }
.atv-chip {
  display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 12px;
  background: #fff; box-shadow: 0 0 0 1px #e7ebf3; color: #334155; font-size: 13px; font-weight: 650;
}
.atv-table { display: flex; flex-direction: column; gap: 8px; }
.atv-thead, .atv-vid {
  display: grid; grid-template-columns: 28px 36px 92px minmax(0, 1.4fr) 90px 110px auto; gap: 10px; align-items: center;
}
.atv-thead { padding: 0 12px; color: #94a3b8; font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.atv-vid {
  padding: 8px 12px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px #e7ebf3;
}
.atv-vid.on { background: #f5f7ff; box-shadow: 0 0 0 1px #c7d2fe; }
.atv-vid.is-dragging { opacity: .35; }
.atv-grip { width: 28px; height: 36px; display: grid; place-items: center; color: #94a3b8; cursor: grab; touch-action: none; }
.atv-grip svg { pointer-events: none; fill: currentColor; }
.atv-num { color: #64748b; font-weight: 700; font-size: 13px; }
.atv-vid img, .atv-vid .ph { width: 92px; height: 52px; border-radius: 8px; object-fit: cover; background: #151c28; display: block; }
.atv-vid strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.atv-st {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px;
  background: #f8fafc; color: #64748b; font-size: 12px; font-weight: 700;
}
.atv-st.on { background: #dcfce7; color: #15803d; }
.atv-ops { display: flex; justify-content: flex-end; gap: 6px; }
.atv-ops a, .atv-ops button {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: #fff; color: #64748b; box-shadow: 0 0 0 1px #e7ebf3; border: 0; text-decoration: none;
}
.atv-ops button { background: #fff5f5; color: #dc2626; box-shadow: 0 0 0 1px #fecaca; cursor: pointer; }
.atv-ops form { margin: 0; }
.atv-modal[hidden] { display: none !important; }
.atv-toast {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 95; max-width: min(520px, calc(100% - 32px));
  padding: 12px 16px; border-radius: 12px;
  background: #ecfdf3; color: #166534;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .16), 0 0 0 1px #bbf7d0;
  font-size: 14px; font-weight: 600; line-height: 1.4;
  transition: opacity .35s ease, transform .35s ease;
}
.atv-toast.out { opacity: 0; transform: translateX(-50%) translateY(-8px); }
.atv-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; }
.atv-modal-back { position: absolute; inset: 0; background: rgba(15, 23, 42, .48); }
.atv-modal-box {
  position: relative; width: min(480px, 100%); background: #fff; color: #0f172a;
  border-radius: 16px; padding: 22px 22px 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .2), 0 0 0 1px #e7ebf3;
}
.atv-modal-box h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; letter-spacing: -.03em; }
.atv-modal-box p { margin: 0 0 18px; color: #475569; font-size: 14px; line-height: 1.5; }
.atv-modal-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.atv-modal-actions .btn { width: 100%; justify-content: center; }
.atv-modal-actions .btn[hidden] { display: none !important; }
.atv-choose { margin: 0; }
.atv-choose select { height: 36px; border-radius: 10px; }
.atv-pl { position: relative; }
.atv-pl[hidden] { display: none !important; }
.atv-pl form { margin: 0; }
.app-ui button.atv-pl-btn {
  width: 100%; height: auto !important; min-height: 68px; padding: 8px 78px 8px 12px !important; border: 0; border-radius: 14px;
  background: #fff !important; color: #0f172a !important; text-align: left; cursor: pointer; font-weight: 650; white-space: normal;
  display: grid !important; grid-template-columns: 28px 92px minmax(0, 1fr) 90px 88px 108px; gap: 10px; align-items: center;
  justify-content: stretch; box-shadow: 0 0 0 1px #e7ebf3;
}
.app-ui .atv-pl:not(.on):hover button.atv-pl-btn {
  background: #d5dbe6 !important;
  box-shadow: 0 0 0 1px #c5ceda;
}
.app-ui .atv-pl.on button.atv-pl-btn,
.app-ui .atv-pl.on:hover button.atv-pl-btn {
  background: #4f46e5 !important; color: #fff !important; box-shadow: none;
}
.app-ui .atv-pl.on .atv-num { color: #fff; }
.app-ui button.atv-pl-btn img, .app-ui button.atv-pl-btn .ph { width: 92px; height: 52px; border-radius: 8px; object-fit: cover; background: #151c28; display: block; }
.app-ui button.atv-pl-btn strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: inherit; }
.app-ui button.atv-pl-btn:disabled { opacity: .5; cursor: not-allowed; }
.app-ui .atv-pl.on .atv-st { background: rgba(255,255,255,.18); color: #fff; }
.app-ui .atv-pl.on .atv-st.on { background: #dcfce7; color: #15803d; }
.atv-pl-headrow { grid-template-columns: 28px 92px minmax(0, 1fr) 90px 88px 108px; padding-right: 78px; }
.atv-pl-edit {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: #fff; color: #64748b; box-shadow: 0 0 0 1px #e7ebf3; text-decoration: none;
}
.spot-form { margin-top: 18px; }
.spot-toggle { position: relative; display: flex; align-items: center; gap: 12px; margin: 0; cursor: pointer; }
.spot-toggle input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer;
}
.spot-switch {
  width: 56px; height: 32px; border-radius: 999px; background: #c5ceda; position: relative; flex: none;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .12);
}
.spot-switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .28); transition: left .18s ease;
}
.spot-toggle input:checked + .spot-switch { background: #4f46e5; box-shadow: none; }
.spot-toggle input:checked + .spot-switch::after { left: 27px; }
.spot-toggle input:focus-visible + .spot-switch { outline: 2px solid #c7d2fe; outline-offset: 2px; }
.spot-toggle strong { display: block; font-size: 14px; color: #0f172a; }
.spot-toggle em { display: block; margin-top: 2px; color: #64748b; font-size: 12px; font-style: normal; font-weight: 500; }
.spot-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.spot-mode { position: relative; margin: 0; cursor: pointer; }
.spot-mode input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.spot-mode > span { display: block; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px #e2e8f0; }
.spot-mode strong { display: block; font-size: 14px; color: #0f172a; }
.spot-mode em { display: block; margin-top: 3px; color: #64748b; font-size: 12px; font-style: normal; font-weight: 500; line-height: 1.35; }
.spot-mode input:checked + span { background: #eef2ff; box-shadow: 0 0 0 2px #4f46e5; }
.spot-mode input:focus-visible + span { outline: 2px solid #c7d2fe; outline-offset: 2px; }
.spot-field { margin-top: 14px; }
.spot-field[hidden] { display: none !important; }
.spot-field input:focus { outline: none; box-shadow: 0 0 0 1px #4f46e5, 0 0 0 4px #e0e7ff; }
.spot-form .sch-note { margin-top: 14px; }
.spot-save { width: 100%; margin-top: 14px; }
.spot-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.spot-rows { display: flex; flex-direction: column; gap: 8px; }
.spot-pl[hidden] { display: none !important; }
.spot-pl form { margin: 0; }
.app-ui button.spot-row {
  width: 100%; height: auto !important; min-height: 64px; padding: 8px 12px !important; border: 0; border-radius: 14px;
  display: flex !important; align-items: center; gap: 12px; text-align: left; cursor: pointer; white-space: normal;
  background: #fff !important; color: #0f172a !important; box-shadow: 0 0 0 1px #e7ebf3 !important; font-weight: 650;
}
.app-ui .spot-pl:not(.on) button.spot-row:hover { background: #f8fafc !important; }
.app-ui .spot-pl.on button.spot-row,
.app-ui .spot-pl.on button.spot-row:hover { background: #4f46e5 !important; color: #fff !important; box-shadow: none !important; }
.app-ui button.spot-row img,
.app-ui button.spot-row .ph { width: 72px; height: 44px; border-radius: 8px; object-fit: cover; background: #151c28; display: block; flex: none; }
.app-ui button.spot-row .spot-copy { min-width: 0; flex: 1; }
.app-ui button.spot-row strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: inherit; }
.app-ui button.spot-row em { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; color: #64748b; font-size: 12px; font-weight: 600; }
.app-ui .spot-pl.on button.spot-row em { color: rgba(255,255,255,.82); }
.app-ui button.spot-row:disabled { opacity: .5 !important; cursor: not-allowed; }
.spot-badge {
  flex: none; height: 26px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center;
  background: #eef2ff; color: #4338ca; font-size: 12px; font-weight: 750;
}
.spot-pl.on .spot-badge { background: #fff; color: #4f46e5; }
.app-ui .atv-pl.is-def button.atv-pl-btn,
.app-ui .atv-pl.is-def button.atv-pl-btn:hover { background: #fff7ed !important; color: #9a3412 !important; cursor: not-allowed; box-shadow: 0 0 0 1px #fed7aa !important; }
.app-ui .atv-pl.is-def .atv-num { color: #c2410c; }
.app-ui .atv-st.def { background: #ffedd5; color: #9a3412; }
@media (max-width: 1180px) {
  .atv-page { grid-template-columns: 1fr; }
  .atv-actions, .atv-nowplay { grid-template-columns: 1fr 1fr; }
  .atv-vid { grid-template-columns: 28px 36px 72px minmax(0, 1fr) auto; }
  .atv-vid .atv-dur, .atv-vid .atv-st { display: none; }
}
@media (max-width: 700px) {
  .atv-hero, .atv-pl-head { flex-direction: column; align-items: flex-start; }
  .atv-kpi-row, .atv-actions, .atv-nowplay, .spot-modes, .spot-kpis { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .atv-page, .atv-main, .atv-list-card, .atv-table, .atv-pl { min-width: 0; max-width: 100%; }
  .ov-card { padding: 14px 12px; }
  .atv-thead.atv-pl-headrow { display: none; }
  .app-ui button.atv-pl-btn {
    display: flex !important; flex-wrap: wrap; align-items: center;
    column-gap: 10px; row-gap: 4px; min-height: 0;
    padding: 10px 44px 10px 10px !important;
  }
  .app-ui button.atv-pl-btn .atv-num { display: none; }
  .app-ui button.atv-pl-btn img,
  .app-ui button.atv-pl-btn .ph { width: 64px; height: 40px; }
  .app-ui button.atv-pl-btn strong { flex: 1 1 120px; min-width: 0; }
  .app-ui button.atv-pl-btn .atv-dur { font-size: 12px; font-weight: 650; }
  .app-ui .atv-pl.on button.atv-pl-btn .atv-dur { color: rgba(255,255,255,.85); }
  .atv-pl-edit { right: 8px; }
  .atv-pl-head .btn { width: 100%; justify-content: center; }
  .atv-search { flex: 1 1 100%; }
}
@media (max-width: 720px) {
  .app-ui #spot-pl-table button.atv-pl-btn {
    display: grid !important;
    grid-template-columns: 76px max-content max-content minmax(0, 1fr) !important;
    align-items: center;
    column-gap: 8px;
    row-gap: 3px;
    min-height: 0;
    padding: 10px 46px 10px 10px !important;
  }
  .app-ui #spot-pl-table button.atv-pl-btn > .atv-num { display: none; }
  .app-ui #spot-pl-table button.atv-pl-btn > img,
  .app-ui #spot-pl-table button.atv-pl-btn > .ph {
    grid-column: 1; grid-row: 1 / span 3; width: 76px; height: 52px; margin-right: 4px;
  }
  .app-ui #spot-pl-table button.atv-pl-btn > strong { grid-column: 2 / -1; grid-row: 1; align-self: end; }
  .app-ui #spot-pl-table button.atv-pl-btn > :nth-child(4) { grid-column: 2; grid-row: 2; align-self: start; white-space: nowrap; }
  .app-ui #spot-pl-table button.atv-pl-btn > :nth-child(5) { grid-column: 3; grid-row: 2; align-self: start; white-space: nowrap; }
  .app-ui #spot-pl-table button.atv-pl-btn > :nth-child(5)::before { content: "·"; margin-right: 8px; color: #94a3b8; }
  .app-ui #spot-pl-table button.atv-pl-btn > :nth-child(6) { grid-column: 2 / -1; grid-row: 3; justify-self: start; }
  .app-ui #spot-pl-table .atv-dur { font-size: 12px; font-weight: 650; color: #64748b; }
  .app-ui #spot-pl-table .atv-pl.on .atv-dur,
  .app-ui #spot-pl-table .atv-pl.on button.atv-pl-btn > :nth-child(5)::before { color: rgba(255,255,255,.85); }
  .app-ui #spot-pl-table .atv-pl.is-def .atv-dur,
  .app-ui #spot-pl-table .atv-pl.is-def button.atv-pl-btn > :nth-child(5)::before { color: #9a3412; }
}
.tick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.tick-grid .sch-select { width: 100%; }
.tick-count { display: block; margin-top: 6px; font-style: normal; text-align: right; font-size: 12px; font-weight: 650; color: #64748b; }
.tick-color {
  display: flex; align-items: center; gap: 12px; height: 44px; margin: 0; padding: 0 12px;
  border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #e2e8f0; cursor: pointer;
}
.tick-dot {
  position: relative; width: 28px; height: 28px; border-radius: 50%; flex: none; box-sizing: border-box;
  border: 1px solid #d5dbe6; background: #fff;
}
.tick-color:focus-within .tick-dot { border-color: #4f46e5; box-shadow: 0 0 0 3px #e0e7ff; }
.tick-color input[type=color] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0;
  opacity: 0; cursor: pointer; background: transparent;
}
.tick-color input[type=color]:focus { outline: none; }
.tick-color span { font-weight: 750; letter-spacing: .04em; color: #0f172a; }
.tick-stage {
  position: relative; margin-top: 14px; background: #0f172a; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9;
}
.tick-stage span {
  position: absolute; left: 0; white-space: nowrap; font-weight: 750; font-size: 22px;
  animation: tick-move 11s linear infinite; text-shadow: 0 1px 2px rgba(0,0,0,.45);
}
.tick-stage.is-top span { top: 10%; }
.tick-stage.is-bottom span { bottom: 10%; }
@keyframes tick-move { from { transform: translateX(105%); } to { transform: translateX(-105%); } }
@media (max-width: 700px) {
  .tick-grid { grid-template-columns: 1fr; }
}
.logo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.logo-grid .sch-select { width: 100%; }
.logo-file {
  position: relative; display: flex; align-items: center; gap: 12px; height: 44px; margin: 0; padding: 0 12px 0 6px;
  border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #e2e8f0; cursor: pointer;
}
.logo-file input[type=file] {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); border: 0; box-shadow: none; opacity: 0;
}
.logo-file-btn {
  height: 32px; padding: 0 12px; border-radius: 10px; background: #eef2ff; color: #4338ca;
  display: inline-flex; align-items: center; font-size: 13px; font-weight: 750; flex: none;
}
.logo-file em {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-style: normal; font-size: 13px; font-weight: 650; color: #64748b;
}
.logo-stage {
  position: relative; margin-top: 14px; background: #0f172a; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9;
}
.logo-stage img { position: absolute; height: auto; object-fit: contain; }
.logo-empty {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #94a3b8; font-size: 14px; font-weight: 650;
}
@media (max-width: 700px) {
  .logo-grid { grid-template-columns: 1fr; }
}
.clock-stage {
  position: relative; margin-top: 14px; background: #0f172a; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9;
}
.clock-stage strong {
  position: absolute; font-weight: 750; letter-spacing: .02em; white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
}
#clk-form .logo-grid .tick-color { height: 42px; box-shadow: 0 0 0 1px #e2e8f0; }
#clk-form .spot-field .sch-select { width: 100%; }
.clk-actions { display: flex; gap: 10px; margin-top: 14px; }
.clk-actions .btn { flex: 1; width: auto; margin-top: 0; }
.clk-actions .btn[hidden] { display: none !important; }
.lim-banner, .lim-about {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #fff; border-radius: 18px; padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 0 0 1px #e7ebf3;
}
.lim-banner { margin-bottom: 14px; }
.lim-about { margin-top: 14px; justify-content: flex-start; }
.lim-banner-l, .lim-about { min-width: 0; }
.lim-banner-l { display: flex; align-items: center; gap: 12px; }
.lim-crown {
  width: 44px; height: 44px; border-radius: 14px; background: #4f46e5; color: #fff;
  display: grid; place-items: center; flex: none;
}
.lim-banner strong, .lim-about strong { display: block; font-size: 15px; letter-spacing: -.02em; }
.lim-banner p, .lim-about p { margin: 2px 0 0; color: #64748b; font-size: 13px; line-height: 1.4; }
.lim-pill {
  height: 36px; padding: 0 14px; border-radius: 12px; background: #eef2ff; color: #4338ca;
  display: inline-flex; align-items: center; font-weight: 750; font-size: 13px; white-space: nowrap; flex: none;
}
.lim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lim-card { margin: 0; }
.lim-top { display: flex; gap: 12px; align-items: flex-start; }
.lim-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 750; letter-spacing: -.02em; }
.lim-top p { margin: 3px 0 0; color: #64748b; font-size: 13px; line-height: 1.4; }
.lim-badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px;
  background: #dcfce7; color: #15803d; font-size: 11px; font-weight: 750;
}
.lim-badge.is-cap { background: #eef2ff; color: #4338ca; }
.lim-main { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.lim-figure { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lim-inf { font-size: 56px; line-height: 1; color: #4f46e5; font-weight: 500; }
.lim-figure strong { display: block; font-size: 28px; letter-spacing: -.04em; line-height: 1.05; }
.lim-figure span { display: block; margin-top: 2px; color: #64748b; font-size: 13px; font-weight: 650; }
.lim-art { flex: none; }
.lim-chip {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-width: 76px; padding: 8px 10px; border-radius: 14px; background: #eef2ff; color: #4338ca; flex: none;
}
.lim-chip b { font-size: 13px; letter-spacing: -.02em; }
.lim-chip em { font-style: normal; font-size: 11px; font-weight: 650; color: #6366f1; }
.lim-used { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; color: #64748b; font-size: 12px; font-weight: 700; }
.lim-meter { display: block; height: 8px; margin-top: 8px; border-radius: 99px; background: #e7ebf3; overflow: hidden; }
.lim-meter b { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #818cf8, #4f46e5); }
.lim-quiet { margin: 8px 0 0; color: #94a3b8; font-size: 12px; font-weight: 650; }
.lim-foot {
  display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0;
  background: #f8fafc; border-radius: 12px; padding: 10px 12px;
  color: #475569; font-size: 13px; line-height: 1.4;
}
.lim-foot svg { color: #16a34a; flex: none; margin-top: 1px; }
@media (max-width: 800px) {
  .lim-grid, .lim-banner { grid-template-columns: 1fr; }
  .lim-banner, .lim-about { flex-direction: column; align-items: flex-start; }
  .lim-art { display: none; }
}
.pf-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pf-head { display: flex; align-items: center; gap: 16px; margin: 0; }
.pf-avatar {
  width: 72px; height: 72px; border-radius: 50%; background: #eef2ff; color: #4f46e5;
  display: grid; place-items: center; flex: none;
}
.pf-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 750; }
.pf-head strong { display: block; margin-top: 2px; font-size: 18px; letter-spacing: -.03em; }
.pf-head span { color: #64748b; font-size: 13px; font-weight: 650; }
.pf-box {
  display: flex; align-items: center; gap: 10px; height: 44px; margin: 0; padding: 0 12px;
  border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #e2e8f0; color: #94a3b8;
}
.pf-box.is-lock { background: #f8fafc; }
.pf-box:focus-within { box-shadow: 0 0 0 1px #4f46e5, 0 0 0 4px #e0e7ff; }
.pf-eye { border: 0; background: transparent; color: #94a3b8; padding: 0; display: inline-flex; cursor: pointer; }
.pf-split { display: grid; grid-template-columns: 1fr 190px; gap: 16px; align-items: start; }
.pf-meter { display: flex; gap: 6px; margin-top: 8px; }
.pf-meter b { flex: 1; height: 4px; border-radius: 99px; background: #e7ebf3; }
.pf-meter[data-n="1"] b:nth-child(-n+1),
.pf-meter[data-n="2"] b:nth-child(-n+2),
.pf-meter[data-n="3"] b:nth-child(-n+3),
.pf-meter[data-n="4"] b:nth-child(-n+4) { background: #4f46e5; }
.pf-tips { list-style: none; margin: 28px 0 0; padding: 0; color: #64748b; font-size: 13px; font-weight: 650; }
.pf-tips li { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.pf-tips li:first-child { margin: 0 0 4px; color: #0f172a; font-weight: 750; }
.pf-tips i {
  width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #cbd5e1; flex: none;
}
.pf-tips .is-on { color: #0f172a; }
.pf-tips .is-on i { background: #4f46e5; box-shadow: none; }
.pf-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.pf-quick > div {
  background: #f8fafc; border-radius: 14px; padding: 12px; min-width: 0;
}
.pf-quick em { display: block; margin-top: 8px; font-style: normal; font-size: 11px; font-weight: 750; letter-spacing: .04em; color: #94a3b8; }
.pf-quick strong { display: block; margin-top: 2px; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-quick span { color: #64748b; font-size: 12px; font-weight: 650; }
.pf-session, .pf-pref {
  display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px;
  border-radius: 14px; background: #f8fafc;
}
.pf-session div, .pf-pref div { min-width: 0; flex: 1; }
.pf-session strong, .pf-pref strong { display: block; font-size: 14px; }
.pf-session span, .pf-pref span { color: #64748b; font-size: 12px; font-weight: 650; }
.pf-session .lim-badge { flex: none; }
.pf-switch { position: relative; flex: none; margin-left: auto; }
.pf-theme { width: 120px; flex: none; }
@media (max-width: 800px) {
  .pf-split, .pf-quick { grid-template-columns: 1fr; }
  .pf-tips { margin-top: 4px; }
}
.geo-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.geo-mode {
  display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 12px; border-radius: 14px;
  background: #f8fafc; box-shadow: 0 0 0 1px #e7ebf3; cursor: pointer;
}
.geo-mode input { position: absolute; opacity: 0; }
.geo-mode b { font-size: 14px; }
.geo-mode span { color: #64748b; font-size: 12px; font-weight: 650; line-height: 1.35; }
.geo-mode:has(input:checked) { background: #eef2ff; box-shadow: 0 0 0 1px #4f46e5; }
.geo-mode:has(input:checked) b { color: #4338ca; }
.geo-tools { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.geo-tools span { margin-left: auto; color: #64748b; font-size: 12px; font-weight: 750; }
.geo-list {
  margin-top: 12px; max-height: 460px; overflow: auto; border-radius: 14px;
  box-shadow: 0 0 0 1px #e7ebf3; background: #fff;
}
.geo-row {
  display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9; cursor: pointer; font-weight: 650;
}
.geo-row:last-child { border-bottom: 0; }
.geo-row input { width: 16px; height: 16px; accent-color: #4f46e5; }
.geo-row img.flag { width: 22px; height: 16px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(15,23,42,.12); flex: none; }
.geo-row.is-pick { cursor: default; }
.geo-x {
  width: 28px; height: 28px; margin-left: 8px; border: 0; border-radius: 8px; padding: 0;
  background: #f1f5f9; color: #64748b; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none;
}
.geo-x:hover { background: #fee2e2; color: #b91c1c; }
.geo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.geo-actions .btn { width: 100%; margin: 0; }
.app-ui button.btn.geo-on,
.app-ui button.btn.geo-on:hover {
  background: #fff; color: #4f46e5; border: 1px solid #c7d2fe; box-shadow: none; filter: none;
}
.app-ui button.btn.geo-on.is-now,
.app-ui button.btn.geo-on.is-now:hover {
  background: #4f46e5; color: #fff; border: 0; box-shadow: 0 0 0 3px #e0e7ff; filter: none;
}
.app-ui button.btn.geo-off,
.app-ui button.btn.geo-off:hover {
  background: #fff; color: #b91c1c; border: 1px solid #fecaca; box-shadow: none; filter: none;
}
.app-ui button.btn.geo-off.is-now,
.app-ui button.btn.geo-off.is-now:hover {
  background: #dc2626; color: #fff; border: 0; box-shadow: 0 0 0 3px #fecaca; filter: none;
}
.geo-picked { margin-top: 8px; }
.geo-picked .muted { margin: 8px 0 0; color: #94a3b8; font-size: 13px; }
.geo-row em { margin-left: auto; font-style: normal; color: #94a3b8; font-size: 12px; }
.geo-row[hidden] { display: none; }
.geo-head, .geo-side-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.geo-head > div, .geo-side-head > div { min-width: 0; }
.geo-head p, .geo-side-head p { margin: 3px 0 0; color: #64748b; font-size: 13px; }
.geo-power { margin-left: auto; }
.geo-bar { display: grid; grid-template-columns: 1fr 200px; gap: 10px; margin-top: 14px; }
.geo-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.geo-chip {
  height: 34px; border: 0; border-radius: 999px; background: #f8fafc; color: #475569;
  padding: 0 12px; font-weight: 750; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
}
.geo-chip b { background: #e2e8f0; border-radius: 999px; min-width: 18px; padding: 0 6px; font-size: 11px; line-height: 18px; }
.geo-chip.is-on { background: #4f46e5; color: #fff; }
.geo-chip.is-on b { background: rgba(255,255,255,.22); color: #fff; }
.geo-region { margin-left: auto; min-width: 180px; }
.atv-page > section.ov-card { display: flex; flex-direction: column; min-height: 0; }
#geo-form { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; padding: 2px 8px 0; box-sizing: border-box; }
.geo-table-wrap { margin-top: 12px; flex: 1; min-height: 0; overflow: auto; }
@media (min-width: 901px) {
  .app-ui .main:has(#geo-form) {
    display: flex; flex-direction: column; overflow: hidden; padding-bottom: 16px;
  }
  .app-ui .main:has(#geo-form) > .atv-page { flex: 1; min-height: 0; }
  .app-ui .main:has(#geo-form) .pf-col { align-self: stretch; min-height: 0; overflow: auto; }
}
@media (max-width: 900px) {
  .geo-table-wrap { max-height: 70vh; overflow: auto; }
}
.geo-table thead th { position: sticky; top: 0; background: #fff; z-index: 2; }
.geo-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.geo-table th { text-align: left; font-size: 12px; color: #94a3b8; font-weight: 750; padding: 8px; }
.geo-table td { padding: 8px; border-top: 1px solid #f1f5f9; vertical-align: middle; }
.geo-table td:nth-child(2) { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.geo-tr[hidden] { display: none; }
.geo-state, .geo-row.is-pick b {
  display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 999px;
  font-size: 12px; font-weight: 750; font-style: normal;
}
.geo-state.is-ok, .geo-row.is-pick b.is-ok { background: #dcfce7; color: #15803d; }
.geo-state.is-block, .geo-row.is-pick b.is-block { background: #fee2e2; color: #b91c1c; }
.geo-pager { display: flex; align-items: center; gap: 12px; margin-top: 12px; color: #64748b; font-size: 13px; font-weight: 650; }
.geo-pager #geo-pages { display: flex; gap: 4px; margin-left: auto; }
.geo-pager button { width: 32px; height: 32px; border: 0; border-radius: 8px; background: #f8fafc; color: #334155; font-weight: 750; cursor: pointer; }
.geo-pager button.is-on { background: #4f46e5; color: #fff; }
.geo-size { width: 150px; }
.geo-count-pill { background: #fee2e2; color: #b91c1c; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 750; white-space: nowrap; }
.map-legend.geo-leg { display: flex; gap: 14px; }
.map-legend.geo-leg i, .map-legend.geo-leg b { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.map-legend.geo-leg i { background: #ef4444; }
.map-legend.geo-leg b { background: #d9dde3; }
.geo-info { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.geo-info div { display: grid; grid-template-columns: 110px 1fr; gap: 8px; background: #f8fafc; border-radius: 12px; padding: 10px 12px; }
.geo-info b { font-size: 13px; }
.geo-info span { color: #64748b; font-size: 13px; line-height: 1.4; }
.app-ui textarea.dom-list {
  width: 100%; min-height: 180px; margin-top: 0; border: 0; border-radius: 12px; resize: vertical;
  background: #fff; color: #0f172a; box-shadow: 0 0 0 1px #e7ebf3; padding: 12px; font: inherit; font-size: 14px; line-height: 1.5;
}
.app-ui textarea.dom-list:focus { outline: 2px solid #c7d2fe; outline-offset: 1px; }
@media (max-width: 800px) {
  .geo-bar, .geo-info div { grid-template-columns: 1fr; }
  .geo-region { margin-left: 0; width: 100%; }
  .geo-modes { grid-template-columns: 1fr; }
  .geo-side-head, .geo-head { flex-wrap: wrap; }
  .geo-count-pill { white-space: normal; }
  #geo-form { overflow: visible; }
  .geo-table-wrap, .geo-map, .map-stage, .pf-col { max-width: 100%; min-width: 0; }
  .geo-table thead { display: none; }
  .geo-table, .geo-table tbody { display: block; width: 100%; }
  .geo-tr {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
  }
  .geo-tr td { display: block; width: auto; border: 0; padding: 0; }
  .geo-tr td:nth-child(3),
  .geo-tr td:nth-child(4) { display: none; }
  .geo-tr td:nth-child(2) { min-width: 0; }
  .geo-tr td:nth-child(2) span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .map-legend.geo-leg {
    left: 8px; right: 8px; top: auto; bottom: 8px; max-width: none;
    flex-wrap: wrap; gap: 8px; padding: 6px 8px; border-radius: 8px;
    background: rgba(255,255,255,.92);
  }
  .geo-row.is-pick { flex-wrap: wrap; }
  .geo-row em { margin-left: 0; }
}
.spot-hint { display: block; margin-top: 6px; font-style: normal; font-size: 12px; font-weight: 650; color: #64748b; }
.sch-lead { display: none; margin: 0 0 12px; color: #64748b; font-size: 13px; line-height: 1.45; }
.ov-card .ov-head p { margin: 4px 0 0; color: #64748b; font-size: 13px; line-height: 1.45; font-weight: 500; }
.sch-kpis { display: grid; grid-template-columns: 1.28fr 1fr 1.18fr .82fr .95fr; gap: 12px; margin: 0 0 14px; }
.sch-kpi {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  background: #fff; border-radius: 16px; padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 0 0 1px #e7ebf3;
}
.sch-kpi > span.sch-ico {
  width: 46px; height: 46px; border-radius: 14px; flex: 0 0 auto;
  display: grid; place-items: center; background: #eef2ff; color: #6366f1;
}
.sch-kpi > div { min-width: 0; }
.sch-kpi em { display: block; font-style: normal; font-size: 12px; color: #64748b; font-weight: 600; }
.sch-kpi.is-status em { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: #0f172a; font-size: 14px; font-weight: 750; }
.sch-kpi strong { display: block; margin-top: 2px; font-size: 16px; letter-spacing: -.02em; font-weight: 750; }
.sch-kpi strong.big { display: flex; align-items: center; gap: 8px; margin-top: 1px; font-size: 26px; letter-spacing: -.045em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.sch-kpi span { display: block; margin-top: 2px; color: #64748b; font-size: 12.5px; }
.sch-badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 3px 6px;
  border-radius: 999px; background: #dcfce7; color: #16a34a;
  font-size: 11px; font-weight: 800; letter-spacing: .04em; line-height: 1;
}
.sch-badge i { width: 8px; height: 8px; border-radius: 99px; background: #22c55e; }
.sch-badge.off { background: #f1f5f9; color: #64748b; }
.sch-badge.off i { background: #94a3b8; }
.sch-eta {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px;
  border-radius: 999px; background: #eef2ff; color: #4f46e5;
  font-size: 12px; font-weight: 700; letter-spacing: 0; line-height: 1; white-space: nowrap;
}
.sch-board { display: grid; grid-template-columns: minmax(230px, 280px) minmax(340px, 1.15fr) minmax(300px, 1.2fr); gap: 14px; align-items: stretch; margin-bottom: 14px; }
.sch-board > .ov-card { margin-bottom: 0; }
.sch-board .ov-head h2 { font-size: 16px; letter-spacing: -.02em; }
.sch-form { display: flex; flex-direction: column; gap: 12px; }
.sch-form .btn { align-self: flex-start; margin-top: 2px; }
.sch-create #sch-submit, .sch-create #sch-cancel { align-self: stretch; width: 100%; }
.sch-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.sch-select, .sch-timebox {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px #e2e8f0; padding: 0 12px; color: #64748b;
}
.sch-select select, .sch-timebox input { flex: 1; min-width: 0; width: 100%; color: #0f172a; font-weight: 650; }
.sch-mini { display: block; font-style: normal; font-size: 12px; color: #64748b; font-weight: 650; margin-bottom: 4px; }
.sch-clockline { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sch-clockline strong { display: inline-flex; align-items: center; gap: 8px; font-size: 28px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.sch-clockline svg { color: #64748b; }
.sch-clockline span { color: #64748b; font-size: 13px; font-weight: 650; }
.sch-note {
  display: flex; gap: 10px; align-items: flex-start; margin: 0;
  background: #eef2ff; color: #4338ca; border-radius: 12px; padding: 12px 14px;
  font-size: 13px; line-height: 1.45;
}
.sch-warn {
  display: flex; gap: 10px; align-items: flex-start; margin: 0;
  background: #fff7ed; color: #9a3412; border-radius: 12px; padding: 12px 14px;
  font-size: 13px; line-height: 1.45;
}
.sch-warn[hidden] { display: none !important; }
.sch-times { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sch-days { display: flex; flex-wrap: wrap; gap: 8px; }
.sch-day { position: relative; margin: 0; }
.sch-day input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sch-day span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 38px; padding: 0 12px;
  border-radius: 999px; background: #fff; color: #4f46e5; box-shadow: 0 0 0 1px #c7d2fe;
  font-size: 13px; font-weight: 750; cursor: pointer;
}
.sch-day input:checked + span { background: #4f46e5; color: #fff; box-shadow: none; }
.sch-day input:checked + span::before { content: "✓"; font-size: 11px; margin-right: 4px; }
.sch-day input:focus-visible + span { outline: 2px solid #c7d2fe; outline-offset: 2px; }
.sch-daynav {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px #e2e8f0;
}
.sch-navbtn {
  width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px;
  background: transparent; color: #64748b; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.sch-navbtn:hover { background: #f4f6fb; color: #0f172a; }
.sch-daylabel { display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; color: #0f172a; font-size: 13px; font-weight: 700; white-space: nowrap; }
.sch-daylabel svg { color: #64748b; }
.sch-vday { display: flex; flex-direction: column; min-height: 72px; }
.sch-vitem { display: grid; grid-template-columns: 58px 18px minmax(0, 1fr); gap: 10px; align-items: stretch; }
.sch-vtime { text-align: right; padding: 14px 0 10px; }
.sch-vtime b { display: block; font-size: 14px; font-weight: 750; color: #0f172a; font-variant-numeric: tabular-nums; line-height: 1.1; }
.sch-vtime span { display: block; margin-top: 3px; font-size: 12px; font-weight: 650; color: #94a3b8; font-variant-numeric: tabular-nums; }
.sch-vrail { position: relative; }
.sch-vrail::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: #e2e8f0; transform: translateX(-50%); }
.sch-vitem:first-child .sch-vrail::before { top: 28px; }
.sch-vitem:last-child .sch-vrail::before { bottom: auto; height: 28px; }
.sch-vitem:only-child .sch-vrail::before { display: none; }
.sch-vrail i { position: absolute; z-index: 1; left: 50%; top: 24px; width: 10px; height: 10px; border-radius: 99px; background: #4f46e5; transform: translateX(-50%); box-shadow: 0 0 0 4px #eef2ff; }
.sch-vitem.is-off .sch-vrail i { background: #94a3b8; box-shadow: 0 0 0 4px #f1f5f9; }
.sch-vcard {
  display: flex; align-items: center; justify-content: flex-start; gap: 12px; min-width: 0;
  margin: 6px 0; padding: 10px 12px; border-radius: 12px; background: #f8fafc; box-shadow: inset 3px 0 0 #4f46e5;
}
.sch-vitem.is-off .sch-vcard { box-shadow: inset 3px 0 0 #94a3b8; }
.sch-vcard img, .sch-vcard .ph {
  width: 64px; height: 40px; border-radius: 8px; object-fit: cover;
  background: #151c28; display: block; flex: 0 0 auto;
}
.sch-vcard > div { min-width: 0; }
.sch-vcard strong, .sch-vcard span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sch-vcard strong { font-size: 14px; font-weight: 750; color: #0f172a; }
.sch-vcard span { margin-top: 2px; font-size: 12px; font-weight: 650; color: #64748b; font-variant-numeric: tabular-nums; }
.sch-vcard em { flex: 0 0 auto; margin-left: auto; font-style: normal; font-size: 12px; font-weight: 750; color: #4f46e5; }
.sch-vitem.is-off .sch-vcard em { color: #64748b; }
.sch-vday .sch-empty { position: static; display: block; padding: 28px 8px; text-align: center; color: #94a3b8; font-size: 13px; }
.sch-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; color: #64748b; font-size: 13px; }
.sch-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sch-legend i { width: 8px; height: 8px; border-radius: 99px; display: inline-block; }
.sch-legend i.a { background: #4f46e5; }
.sch-legend i.p { background: #94a3b8; }
.sch-legend i.o { background: #e2e8f0; }
.sch-wrap { overflow-x: auto; }
.sch-table { width: 100%; border-collapse: collapse; min-width: 880px; }
.sch-table th {
  text-align: left; text-transform: uppercase; font-size: 11px; letter-spacing: .06em;
  color: #94a3b8; font-weight: 700; padding: 8px 10px 10px; border-bottom: 1px solid #eef2f7; white-space: nowrap;
}
.sch-table td { padding: 12px 10px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; font-size: 14px; color: #334155; }
.sch-table tbody tr:last-child td { border-bottom: 0; }
.sch-table th:last-child, .sch-table td:last-child { text-align: right; }
.sch-grip { width: 28px; color: #cbd5e1; }
.sch-pl { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sch-pl img, .sch-pl .ph { width: 52px; height: 34px; border-radius: 7px; object-fit: cover; background: #151c28; display: block; flex: 0 0 auto; }
.sch-pl strong { display: block; font-size: 14px; font-weight: 750; color: #0f172a; }
.sch-pl span { display: block; margin-top: 1px; color: #64748b; font-size: 12px; }
.sch-dpills { display: flex; flex-wrap: wrap; gap: 6px; }
.sch-dpill {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
  background: #f5f3ff; color: #6366f1; font-size: 12px; font-weight: 700; white-space: nowrap;
}
.sch-hh { font-variant-numeric: tabular-nums; font-weight: 650; color: #334155; white-space: nowrap; }
.sch-st {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  background: #dcfce7; color: #16a34a; font-size: 13px; font-weight: 750;
}
.sch-st.off { background: #f1f5f9; color: #64748b; }
.sch-ops { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.sch-ops form { margin: 0; }
@media (max-width: 1280px) {
  .sch-kpis { grid-template-columns: 1fr 1fr; }
  .sch-board { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .sch-lead { display: block; }
  .sch-times { grid-template-columns: 1fr; }
  .sch-daylabel { white-space: normal; }
}
@media (max-width: 700px) {
  .sch-kpis { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .mid-row.two,
  .sys-split {
    grid-template-columns: 1fr;
  }
  #map,
  .map-stage {
    height: auto;
    aspect-ratio: 1000 / 760;
  }
}
.app-ui .side-logo { height: 36px; width: auto; max-width: 128px; object-fit: contain; flex: none; }
.app-ui a.m-user { text-decoration: none; color: #0f172a; }
