:root {
  --brand: #123c8c;
  --brand-2: #1f5fd1;
  --brand-soft: #e8effc;
  --accent: #f28c28;
  --ok: #117a4b;
  --ok-soft: #e3f5ec;
  --bg: #f6f8fc;
  --card: #ffffff;
  --line: #e3e8f1;
  --text: #15213a;
  --muted: #5d6b85;
  --faint: #64708a;
  --accent-text: #b45309;
  --thaw: #f28c28;
  --change: #1f5fd1;
  --refreeze: #12784a;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(18, 36, 80, .06), 0 4px 16px rgba(18, 36, 80, .06);
  --side: 232px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand-2); }
.boot { display: grid; place-items: center; height: 100vh; color: var(--muted); }

/* ---------- login ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(1200px 600px at 80% -10%, #dbe6fb 0, transparent 60%), var(--bg); }
.login { width: 100%; max-width: 380px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 32px 28px; }
.login h1 { font-size: 20px; margin: 16px 0 4px; }
.login p { color: var(--muted); margin: 0 0 20px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.input, textarea.input, select.input {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff;
  transition: border-color .15s, box-shadow .15s; outline: none;
}
.input:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(31, 95, 209, .15); }
textarea.input { resize: vertical; min-height: 64px; }
.btn { border: 0; border-radius: 10px; padding: 10px 16px; font-weight: 600; background: var(--brand); color: #fff;
  transition: background .15s, transform .05s; }
.btn:hover { background: #0e3070; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--brand-soft); }
.btn.sm { padding: 6px 10px; font-size: 13px; }
.btn.block { width: 100%; }
.err { color: #c0392b; font-size: 13px; min-height: 18px; margin: 4px 0 8px; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--brand); letter-spacing: .2px; }
.logo img { height: 28px; display: block; }
.logo .ai { font-size: 12px; font-weight: 700; color: var(--muted); border-left: 1px solid var(--line); padding-left: 10px; }
.logo .mark { font-size: 18px; }
.logo .mark b { color: var(--accent-text); }
.logo small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { background: #fff; border-right: 1px solid var(--line); padding: 18px 12px; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.side .logo { padding: 4px 8px 18px; }
.nav-sec { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--faint); padding: 14px 10px 6px; }
.nav { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--text);
  text-decoration: none; font-weight: 500; transition: background .12s; }
.nav:hover { background: var(--bg); }
.nav.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.nav.off { color: var(--faint); cursor: not-allowed; pointer-events: none; }
.nav .ic { width: 18px; text-align: center; opacity: .85; }
.nav .soon { margin-left: auto; font-size: 11px; font-weight: 600; background: var(--bg); color: var(--faint); border-radius: 6px; padding: 1px 6px; }
.side .me { margin-top: auto; border-top: 1px solid var(--line); padding: 12px 8px 0; font-size: 13px; }
.side .me b { display: block; }
.side .me span { color: var(--muted); font-size: 12px; }
.side .me .row { display: flex; gap: 6px; margin-top: 8px; }

.main { min-width: 0; padding: 24px 28px 64px; }
.topbar { display: none; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.page-h h1 { font-size: 22px; margin: 0; }
.page-h p { margin: 4px 0 0; color: var(--muted); max-width: 760px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- gantt ---------- */
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.gantt { overflow: auto; position: relative; -webkit-overflow-scrolling: touch; }
.g-grid { position: relative; min-width: max-content; }
.g-head { position: sticky; top: 0; z-index: 3; background: #fff; display: flex; border-bottom: 1px solid var(--line); }
.g-label-h, .g-label { position: sticky; left: 0; z-index: 2; background: #fff; width: 280px; min-width: 280px; border-right: 1px solid var(--line); }
.g-label-h { z-index: 4; padding: 10px 14px; font-weight: 700; font-size: 12px; color: var(--muted); display: flex; align-items: flex-end; }
.g-scale { position: relative; height: 52px; }
.g-month { position: absolute; top: 0; height: 26px; line-height: 26px; padding-left: 8px; font-size: 12px; font-weight: 700; color: var(--text); border-left: 1px solid var(--line); }
.g-week { position: absolute; top: 26px; height: 26px; line-height: 26px; font-size: 11px; color: var(--faint); border-left: 1px solid #f0f2f7; padding-left: 4px; }
.g-lane-h { display: flex; background: var(--bg); border-bottom: 1px solid var(--line); }
.g-lane-h .g-label { background: var(--bg); padding: 8px 14px; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.g-row { display: flex; border-bottom: 1px solid #f0f2f7; cursor: pointer; transition: background .1s; }
.g-row:hover, .g-row:hover .g-label { background: #fafbfe; }
.g-row .g-label { padding: 9px 14px; display: flex; align-items: center; gap: 8px; font-weight: 500; }
.g-row .g-label .nm { flex: 1; min-width: 0; white-space: normal; line-height: 1.3; }
.g-track { position: relative; height: 40px; }
.g-bar { position: absolute; top: 9px; height: 22px; border-radius: 6px; background: var(--change);
  transition: transform .12s, box-shadow .12s; display: flex; align-items: center; padding: 0 8px; color: #fff; font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.g-row:hover .g-bar { box-shadow: 0 2px 8px rgba(18, 36, 80, .25); transform: translateY(-1px); }
.g-bar.thaw { background: var(--thaw); }
.g-bar.change { background: var(--change); }
.g-bar.refreeze { background: var(--refreeze); }
.g-bar.done { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.18) 0 6px, transparent 6px 12px); }
.g-vline { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--faint); pointer-events: none; z-index: 1; }
.g-today { border-left: 2px solid var(--accent); }
.g-today::before { content: 'Hôm nay'; position: absolute; top: 2px; left: 4px; font-size: 11px; font-weight: 700; color: var(--accent-text); background: #fff; padding: 0 4px; border-radius: 4px; white-space: nowrap; }
.g-break { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(-45deg, #fff4e8 0 6px, #fffaf4 6px 12px); pointer-events: none; }
.g-break span { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 700; color: var(--accent-text); }
.g-ms { position: absolute; top: 12px; width: 14px; height: 14px; transform: translateX(-7px) rotate(45deg); background: var(--accent); border-radius: 2px; }
.g-ms-label { position: absolute; top: 9px; font-size: 11px; font-weight: 600; color: var(--text); white-space: nowrap; padding-left: 12px; }
.g-ms-label.left { transform: translateX(-100%); padding-left: 0; padding-right: 12px; }

.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; border-radius: 999px; padding: 1px 7px; background: var(--bg); color: var(--muted); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.cm { background: var(--brand-soft); color: var(--brand); }

/* ---------- tick ---------- */
.tick { width: 22px; height: 22px; min-width: 22px; border-radius: 6px; border: 2px solid #c9d2e3; background: #fff;
  display: inline-grid; place-items: center; transition: background .12s, border-color .12s, transform .08s; padding: 0; }
.tick:hover { border-color: var(--ok); }
.tick:active { transform: scale(.9); }
.tick.on { background: var(--ok); border-color: var(--ok); }
.tick svg { width: 14px; height: 14px; opacity: 0; transition: opacity .1s; }
.tick.on svg { opacity: 1; }

/* ---------- week ---------- */
.goal { padding: 14px 18px; border-left: 4px solid var(--accent); margin-bottom: 18px; }
.goal b { color: var(--accent-text); }
.steps { display: grid; gap: 16px; }
.step { padding: 0; overflow: hidden; }
.step-h { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); cursor: pointer; }
.step-h .num { width: 30px; height: 30px; border-radius: 50%; background: var(--thaw); color: #fff; display: grid; place-items: center; font-weight: 800; }
.step-h h3 { margin: 0; font-size: 15px; flex: 1; }
.step-h .when { color: var(--muted); font-size: 12px; }
.task { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: start; padding: 12px 18px; border-bottom: 1px solid #f0f2f7; transition: background .1s; }
.task:last-child { border-bottom: 0; }
.task:hover { background: #fafbfe; }
.task .tx { cursor: pointer; }
.task .tx b { font-weight: 500; display: block; }
.task.done .tx b { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); }
.task .meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 3px; }
.task .side-pills { display: flex; gap: 6px; align-items: center; }
.progress { height: 6px; background: var(--bg); border-radius: 99px; overflow: hidden; width: 120px; }
.progress i { display: block; height: 100%; background: var(--ok); border-radius: 99px; transition: width .25s; }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(15, 25, 50, .25); opacity: 0; pointer-events: none; transition: opacity .18s; z-index: 40; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #fff; box-shadow: -8px 0 32px rgba(15, 25, 50, .15);
  transform: translateX(100%); transition: transform .22s cubic-bezier(.2, .8, .2, 1); z-index: 41; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-h { padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.drawer-h .x { float: right; border: 0; background: transparent; font-size: 22px; line-height: 1; color: var(--muted); }
.drawer-h h2 { font-size: 17px; margin: 0 30px 6px 0; }
.drawer-h .dt { font-size: 12px; color: var(--muted); }
.drawer-b { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer-b .desc { margin: 0 0 16px; }
.detail { border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px; margin: 0 0 16px; background: #fbfcfe; }
.detail .dl { padding: 10px 0; border-bottom: 1px solid #eef1f6; }
.detail .dl:last-child { border-bottom: 0; }
.detail .dl b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin-bottom: 4px; }
.detail ul { margin: 0; padding-left: 18px; }
.detail li { margin: 2px 0; }
.detail p { margin: 0; }
.g-out { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 11px; font-weight: 700; color: var(--muted); background: var(--bg); border: 1px dashed var(--line); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.agree { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 18px; cursor: pointer; user-select: none; }
.agree.on { border-color: #b8e3cd; background: var(--ok-soft); }
.agree .who { font-size: 12px; color: var(--muted); }
.cm-h { font-weight: 700; font-size: 13px; margin: 0 0 10px; }
.cmt { display: grid; grid-template-columns: 30px 1fr; gap: 10px; margin-bottom: 14px; animation: fadein .2s; }
.cmt.pending { opacity: .55; }
.av { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.av.admin { background: #fff1e3; color: var(--accent-text); }
.cmt .hd { font-size: 12px; color: var(--muted); }
.cmt .hd b { color: var(--text); font-size: 13px; margin-right: 6px; }
.cmt .bd { white-space: pre-wrap; word-wrap: break-word; margin-top: 2px; }
.cmt .del { border: 0; background: transparent; color: var(--faint); font-size: 12px; padding: 0 4px; }
.cmt .del:hover { color: #c0392b; }
.drawer-f { border-top: 1px solid var(--line); padding: 12px 20px 16px; }
.drawer-f textarea { min-height: 56px; }
.drawer-f .row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 12px; color: var(--faint); }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- slides ---------- */
.sl-wrap { display: grid; grid-template-columns: 340px 1fr; gap: 18px; align-items: start; }
.sl-form { padding: 16px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
.sl-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.sl-tabs button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 4px 9px; font-size: 12px; font-weight: 600; color: var(--muted); }
.sl-tabs button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.sl-tabs button.filled::after { content: ' •'; color: var(--ok); }
.sl-tabs button.on.filled::after { color: #9fe0bf; }
.sl-status { font-size: 12px; color: var(--muted); margin-top: 8px; min-height: 18px; }
.sl-preview { display: grid; gap: 14px; }
/* Slide theo mẫu chính thức của SEONGON ("Mẫu | Slides SEONGON"): nền trắng, logo góc phải,
   chấm hồng–xanh ngọc, dải chéo hồng/xanh, chân trang "SEONGON | …", phông Open Sans. */
.slide { --sg-title: #434343; --sg-text: #595959; --sg-teal: #007a85; --sg-pink: #d81b60; --sg-dot: #ff2a7f;
  aspect-ratio: 16 / 9; width: 100%; background: #fff; border-radius: 10px; box-shadow: var(--shadow); border: 1px solid var(--line);
  position: relative; overflow: hidden; container-type: inline-size; cursor: pointer; font-family: 'Open Sans', system-ui, sans-serif; color: var(--sg-text); }
.slide.cur { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.slide .dc { position: absolute; pointer-events: none; display: block; }
.slide .dc-logo { right: 3cqw; top: 2.2cqw; width: 11cqw; }
.slide .dc-tron { left: -3cqw; top: -2cqw; width: 15cqw; opacity: .9; }
.slide .dc-cham { right: 5.5cqw; bottom: 2.4cqw; width: 8cqw; }
.slide .in { position: absolute; inset: 0; padding: 9cqw 7cqw 7cqw; display: flex; flex-direction: column; }
.slide .foot { position: absolute; left: 3cqw; right: 3cqw; bottom: 2.6cqw; display: flex; justify-content: space-between; font-size: max(11px, 1.3cqw); color: var(--sg-text); font-weight: 600; }
.slide h2 { font-size: 3.8cqw; margin: 0 0 3cqw; color: var(--sg-title); line-height: 1.2; font-weight: 800; }
.slide .tx { font-size: max(11px, 2.1cqw); color: var(--sg-text); line-height: 1.5; white-space: pre-wrap; }
.slide .ph { color: var(--faint); font-style: italic; }
.slide ul { margin: 0; padding-left: 2.6cqw; font-size: max(11px, 2.2cqw); line-height: 1.6; color: var(--sg-text); }
.slide li::marker { color: var(--sg-dot); }
.slide.cover .dc-logo { left: 7cqw; right: auto; top: 6cqw; width: 24cqw; }
.slide.cover .dc-soc { right: 0; top: 0; width: 24cqw; }
.slide.cover .dc-tron { left: auto; right: 4cqw; top: auto; bottom: 3cqw; width: 14cqw; }
.slide.cover .in { justify-content: center; padding-top: 16cqw; padding-right: 26cqw; }
.slide.cover h2 { font-size: 5cqw; }
.slide.cover .tx { font-size: max(11px, 2.3cqw); }
.slide.cover .kicker { font-size: max(11px, 1.5cqw); letter-spacing: .25cqw; text-transform: uppercase; color: var(--sg-teal); font-weight: 700; margin-bottom: 1.6cqw; }
.slide.quote .in { justify-content: center; align-items: flex-start; }
.slide.quote .q { font-size: 4cqw; font-weight: 700; line-height: 1.3; color: var(--sg-title); border-left: .8cqw solid var(--sg-dot); padding-left: 3cqw; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(18cqw, 1fr)); gap: 2cqw; margin-bottom: 2.5cqw; }
.stat { background: #f3f3f3; border-radius: 1.2cqw; padding: 2cqw; }
.stat b { display: block; font-size: 4cqw; color: var(--sg-pink); line-height: 1.1; }
.stat span { font-size: max(11px, 1.7cqw); color: var(--sg-text); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; }
.cols h4 { margin: 0 0 1cqw; font-size: max(11px, 1.6cqw); text-transform: uppercase; letter-spacing: .2cqw; color: var(--sg-teal); }
.st3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; margin-top: 1cqw; }
.st3 div { border-top: .6cqw solid var(--sg-dot); padding-top: 1.6cqw; font-size: max(11px, 1.9cqw); white-space: pre-wrap; }
.st3 div:nth-child(2) { border-top-color: #00b8cc; }
.st3 div:nth-child(3) { border-top-color: #5b7cf0; }
.st3 div b { display: block; font-size: max(11px, 2.4cqw); color: var(--sg-title); margin-bottom: .8cqw; }
.present { position: fixed; inset: 0; background: #0b1328; z-index: 60; display: grid; place-items: center; }
.present .slide { width: min(100vw, calc(100vh * 16 / 9)); border-radius: 0; border: 0; cursor: default; box-shadow: none; }
.present .pnav { position: fixed; bottom: 14px; right: 18px; color: #8fa0c4; font-size: 12px; }

/* ---------- admin ---------- */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th { font-size: 12px; color: var(--muted); font-weight: 600; }
.tbl tr.inactive td { color: var(--faint); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: end; padding: 16px; }
.notice { background: #fff8ec; border: 1px solid #fde1bd; border-radius: 10px; padding: 12px 14px; margin: 12px 0; font-size: 13px; }
.notice code { font-size: 14px; background: #fff; padding: 2px 6px; border-radius: 6px; user-select: all; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px); background: #15213a; color: #fff; padding: 10px 16px; border-radius: 10px;
  font-size: 13px; opacity: 0; transition: opacity .18s, transform .18s; z-index: 80; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; z-index: 50; width: 260px; transform: translateX(-100%); transition: transform .2s; box-shadow: 8px 0 24px rgba(0,0,0,.08); }
  .side.open { transform: none; }
  .topbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px; }
  .topbar .burger { border: 0; background: transparent; font-size: 22px; padding: 0 4px; }
  .main { padding: 16px 16px 64px; }
  .g-label-h, .g-label { width: 170px; min-width: 170px; }
  .sl-wrap { grid-template-columns: 1fr; }
  .sl-form { position: static; max-height: none; }
}
@media print {
  body { background: #fff; }
  .side, .topbar, .sl-form, .page-h .btns, .toast { display: none !important; }
  .shell { display: block; }
  .main { padding: 0; }
  .sl-wrap { display: block; }
  .slide { break-after: page; box-shadow: none; border: 0; border-radius: 0; outline: none !important; }
  @page { size: 297mm 167mm; margin: 0; }
}

.g-bar.narrow { overflow: visible; padding: 0; }
.g-bar.narrow::after { content: attr(data-lbl); position: absolute; left: calc(100% + 6px); top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; font-size: 11px; }
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--muted); transition: background .12s, color .12s; }
.seg button.on { background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(18,36,80,.12); }
@media (max-width: 900px) {
  .g-row .g-label .nm { font-size: 13px; line-height: 1.3; }
  .g-row .g-label .pill { display: none; }
  .page-h > div:last-child { align-items: flex-start !important; }
}
.shell > div { min-width: 0; }

/* ---------- Cổng Rã đông ---------- */
.gate { border: 2px solid #f5b26b; background: #fff8ef; padding: 16px 18px; margin-bottom: 18px; }
.gate-h h2 { margin: 0 0 4px; font-size: 17px; font-weight: 800; color: var(--text); }
.gate-h p { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.gate-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.gate-item { background: #fff; border: 1px solid #f3dcc0; border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.gate-item .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.gate-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.gate-top b { font-size: 14px; }
.gate-tg { font-weight: 700; color: var(--text); }
.gate-meta, .gate-rs .muted { color: var(--muted); }
.gate-st { background: #eceff3; color: var(--muted); white-space: nowrap; }
.gate-st.ok { background: var(--ok-soft); color: var(--ok); }
.gate-st.fail { background: #fde8e8; color: #b42318; }
.gate-rule { margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--accent-text); }
