/* LiveLens — key visual lấy mẫu từ PortKnot: canvas xám ấm rất nhạt, card trắng bo 16px,
   border 1px mảnh, accent indigo-violet, khoảng thở rộng, icon mảnh trong ô tint nhạt.
   Mục tiêu: dịu mắt khi nhìn lâu, vẫn đủ mật độ cho dữ liệu doanh nghiệp. */

:root {
  --canvas: #f7f7fa;
  --surface: #ffffff;
  --surface-2: #fbfbfd;
  --surface-3: #f3f3f7;
  --line: #ececf0;
  --line-strong: #dedee5;
  --text: #17171c;
  --text-2: #5b5b67;
  --text-3: #8d8d99;
  --accent: #6257e8;
  --accent-hover: #5348d6;
  --accent-soft: #efedfd;
  --accent-line: #ded9fb;
  --success: #11805c;
  --success-soft: #ecfaf3;
  --success-line: #c7ecdd;
  --warn: #ab6a00;
  --warn-soft: #fff8ec;
  --warn-line: #f6e3bd;
  --danger: #b42318;
  --danger-soft: #fef2f0;
  --danger-line: #f7d5d0;
  --radius-xl: 18px;
  --radius-lg: 16px;
  --radius: 12px;
  --radius-sm: 9px;
  --radius-xs: 6px;
  --sidebar-w: 244px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Inter, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  --shadow-card: 0 1px 2px rgba(23, 23, 28, 0.04), 0 1px 3px rgba(23, 23, 28, 0.02);
  --shadow-pop: 0 24px 64px rgba(23, 23, 28, 0.16), 0 2px 8px rgba(23, 23, 28, 0.06);
}

* { box-sizing: border-box; }

/* [hidden] phải thắng mọi display: grid/flex của component */
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.018em; }
p { margin: 0; }
ul { margin: 0; padding-left: 1.05rem; }
li { margin: 0.15rem 0; }
table { border-collapse: collapse; width: 100%; }
button { font-family: inherit; }

/* ============================ shell ============================ */
.shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  display: flex; flex-direction: column;
  padding: 14px 12px 12px;
  border-right: 1px solid var(--line);
  background: var(--canvas);
  position: sticky; top: 0; height: 100vh;
}

.brand { display: flex; align-items: center; gap: 9px; padding: 2px 6px 14px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(160deg, #2b2b3a, #17171c);
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
}
.brand-mark::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; opacity: 0.92; }
.brand-name { font-size: 14px; font-weight: 600; letter-spacing: -0.02em; }

.ws-card {
  display: flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 9px 10px; margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}
.ws-avatar {
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 11px; font-weight: 600;
}
.ws-meta { min-width: 0; }
.ws-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-3); }
.ws-name { font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-role { display: block; font-size: 11px; color: var(--text-3); margin-top: 1px; }

.nav-section {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-3); font-weight: 600; padding: 0 8px; margin: 4px 0 6px;
}
.nav { display: grid; gap: 1px; margin-bottom: 14px; }
.nav-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 9px; border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text-2);
  transition: background 0.12s, color 0.12s;
}
.nav-item:hover { background: var(--surface-3); text-decoration: none; color: var(--text); }
.nav-item.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.nav-left { display: flex; align-items: center; gap: 9px; min-width: 0; }
.nav-left svg { color: var(--text-3); flex: none; }
.nav-item.is-active .nav-left svg { color: var(--accent); }
.nav-tag { font-size: 10px; color: var(--text-3); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }
.nav-item.is-disabled { cursor: default; }
.nav-item.is-disabled:hover { background: transparent; color: var(--text-2); }

.sidebar-foot { margin-top: auto; padding: 12px 8px 2px; border-top: 1px solid var(--line); display: grid; gap: 7px; }
.foot-row { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--text-3); }
.foot-row strong { color: var(--text-2); font-weight: 500; }
.ai-flag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-2); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.dot.is-live { background: var(--success); }
.dot.is-mock { background: #d99a2b; }

/* main column */
.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 24px; border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 250, 0.86); backdrop-filter: saturate(180%) blur(12px);
  position: sticky; top: 0; z-index: 10;
}
.crumb { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); min-width: 0; }
.crumb a { color: var(--text-3); }
.crumb a:hover { color: var(--text-2); }
.crumb .sep { color: var(--text-3); }
.crumb .current { color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { display: flex; align-items: center; gap: 8px; }

.search {
  display: flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); border-radius: 980px;
  padding: 6px 12px; background: var(--surface); width: 260px;
  color: var(--text-3);
}
.search input { border: 0; outline: none; font-size: 12.5px; width: 100%; background: transparent; color: var(--text); }
.search input::placeholder { color: var(--text-3); }
.search .kbd {
  font-size: 10px; color: var(--text-3); border: 1px solid var(--line);
  border-radius: 4px; padding: 0 4px; flex: none;
}

.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  display: grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--accent);
}

.content { padding: 24px 24px 48px; width: 100%; max-width: 1280px; }

/* ============================ primitives ============================ */
.btn {
  appearance: none; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px 13px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  transition: background 0.12s, border-color 0.12s, color 0.12s, opacity 0.12s;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { background: var(--surface-3); text-decoration: none; }
.btn:active { opacity: 0.92; }
.btn[disabled] { opacity: 0.5; cursor: progress; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(98, 87, 232, 0.24); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }
.btn-sm { font-size: 11.5px; padding: 4px 9px; }
.btn-icon { padding: 6px 8px; }

.input, .select {
  width: 100%; font: inherit; font-size: 13px; color: var(--text);
  padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 0.12s, box-shadow 0.12s;
}
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3.5px var(--accent-soft); }

.label { font-size: 11px; color: var(--text-2); font-weight: 500; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.xs { font-size: 11.5px; }
.sm { font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 11.5px; overflow-wrap: anywhere; }
.link { font-size: 12px; color: var(--accent); }

.pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 500; padding: 2px 7px; border-radius: var(--radius-xs);
  background: var(--surface-3); color: var(--text-2); border: 1px solid var(--line);
}
.pill-success { background: var(--success-soft); color: var(--success); border-color: var(--success-line); }
.pill-warn { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-line); }
.pill-danger { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-line); }
.pill-accent { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }

.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden;
}
.panel-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 16px 18px; border-bottom: 1px solid var(--line);
}
.panel-title { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.panel-desc { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.panel-body { padding: 18px; }
.panel-body.tight { padding: 0; }

.banner {
  display: flex; gap: 10px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; font-size: 12.5px;
  background: var(--surface);
}
.banner-title { font-weight: 600; font-size: 12.5px; }
.banner-warn { background: var(--warn-soft); border-color: var(--warn-line); color: #7a4a00; }
.banner-danger { background: var(--danger-soft); border-color: var(--danger-line); color: #7f1d1d; }
.banner-info { background: var(--accent-soft); border-color: var(--accent-line); color: #40379f; }

/* ============================ page header ============================ */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.eyebrow { font-size: 12px; font-weight: 500; color: var(--accent); margin-bottom: 6px; }
.page-title { font-size: 28px; letter-spacing: -0.026em; line-height: 1.15; }
.page-sub { margin-top: 6px; font-size: 13px; color: var(--text-2); max-width: 92ch; }
.page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.meta-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: 11.5px; color: var(--text-3); }

/* ============================ metric cards ============================ */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 15px 16px 14px; box-shadow: var(--shadow-card);
  min-width: 0;
}
.kpi-label { font-size: 12px; color: var(--text-2); padding-right: 30px; }
.kpi-icon {
  position: absolute; top: 13px; right: 13px;
  width: 24px; height: 24px; border-radius: 7px; background: var(--surface-3);
  display: grid; place-items: center; color: var(--text-3);
}
.kpi-value { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; margin-top: 7px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.kpi.is-good .kpi-value { color: var(--success); }
.kpi.is-warn .kpi-value { color: var(--warn); }
.kpi.is-bad .kpi-value { color: var(--danger); }

/* Đủ rộng thì 6 ô KPI nằm gọn một dòng, không rơi xuống hàng thứ hai. */
@media (min-width: 1180px) {
  .kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 12px 13px 11px; }
  .kpi-label { font-size: 11.5px; padding-right: 26px; }
  .kpi-icon { top: 11px; right: 11px; width: 22px; height: 22px; border-radius: 6px; }
  .kpi-value { font-size: 23px; margin-top: 6px; }
  .kpi-sub { font-size: 10.5px; }
}

/* ============================ table ============================ */
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--surface-3); border-radius: var(--radius-sm); padding: 2px; gap: 2px; }
.seg button {
  appearance: none; border: 0; background: transparent; font: inherit; font-size: 11.5px; font-weight: 500;
  color: var(--text-2); padding: 5px 10px; border-radius: 7px; cursor: pointer;
}
.seg button:hover { color: var(--text); }
.seg button.is-active { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(23, 23, 28, 0.08); }
.seg-wide { display: flex; width: 100%; }
.seg-wide button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 10px; font-size: 12.5px; }

.table { font-size: 12.5px; }
.table thead th {
  text-align: left; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--text-3); padding: 9px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2);
  white-space: nowrap;
}
.table tbody td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.table .cell-title { font-weight: 500; color: var(--text); }
.table .cell-sub { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.table .right { text-align: right; }

.score-num { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.score-a { color: var(--success); }
.score-b { color: #2f8f60; }
.score-c { color: var(--warn); }
.score-d { color: var(--danger); }
.score-none { color: var(--text-3); font-weight: 400; }

.empty-state {
  display: grid; justify-items: center; gap: 6px; text-align: center;
  padding: 34px 18px; color: var(--text-3); font-size: 12.5px;
}
.empty-state .empty-icon {
  width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft);
  display: grid; place-items: center; color: var(--accent); margin-bottom: 2px;
}
.empty-title { font-size: 13px; font-weight: 600; color: var(--text); }
.empty-desc { font-size: 12px; color: var(--text-3); max-width: 46ch; }
.empty-dashed {
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  background: var(--surface-2); margin: 16px; padding: 26px 18px;
}

/* ============================ drawer ============================ */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(23, 23, 28, 0.32); z-index: 40; display: grid; place-items: center; padding: 20px; backdrop-filter: blur(2px); }
.drawer {
  width: min(520px, 100%); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-pop); overflow: hidden;
  animation: drawer-in 0.16s ease-out;
}
.drawer.is-wide { width: min(620px, 100%); }
@keyframes drawer-in { from { opacity: 0; transform: translateY(6px) scale(0.995); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .drawer { animation: none; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.drawer-modes { padding: 14px 18px 0; }
.drawer-body { padding: 16px 18px; display: grid; gap: 13px; }
.mode-panel { padding-top: 15px; }
.drawer-foot {
  display: flex; justify-content: flex-end; gap: 8px; padding: 13px 18px;
  border-top: 1px solid var(--line); background: var(--surface-2);
}
.drawer-progress { padding: 0 18px 14px; display: grid; gap: 7px; }
.field { display: grid; gap: 6px; }
.file-drop {
  border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center;
  padding: 22px 16px; background: var(--surface-2); cursor: pointer;
  display: grid; gap: 4px; transition: border-color 0.12s, background 0.12s;
}
.file-drop:hover, .file-drop.has-file { border-color: var(--accent); background: var(--accent-soft); }
.file-drop input { display: none; }
.file-name { font-size: 12.5px; font-weight: 500; color: var(--text); }

/* ============================ link input ============================ */
.url-field {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); padding: 3px 5px 3px 11px;
  transition: border-color 0.14s, box-shadow 0.14s;
}
.url-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3.5px var(--accent-soft); }
.url-icon { display: inline-flex; color: var(--text-3); flex: none; }
.url-input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  font: inherit; font-size: 13px; color: var(--text); padding: 8px 0;
}
.url-input::placeholder { color: var(--text-3); }
.url-chip {
  flex: none; font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em;
  padding: 3px 8px; border-radius: var(--radius-xs);
  background: var(--surface-3); color: var(--text-2); border: 1px solid var(--line);
}
.url-chip.is-ok { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.url-message { font-size: 11.5px; color: var(--text-3); min-height: 16px; }
.url-message.is-ok { color: var(--success); }
.url-message.is-bad { color: var(--danger); }
.url-summary {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface-2); padding: 12px 13px; display: grid; gap: 6px;
}
.url-summary-main { display: flex; align-items: center; gap: 9px; min-width: 0; }
.url-summary-platform { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); flex: none; }
.url-summary-url { font-size: 11.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.url-footer-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; align-items: start; }
.url-note { line-height: 1.45; padding-top: 24px; }

/* ============================ progress ============================ */
.bar { height: 7px; background: var(--surface-3); border-radius: 980px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; background: var(--accent); border-radius: 980px; transition: width 0.35s ease; }
.bar-fill.score-a { background: var(--success); }
.bar-fill.score-b { background: #2f8f60; }
.bar-fill.score-c { background: #d99a2b; }
.bar-fill.score-d { background: var(--danger); }
.bar-sm { height: 6px; }

.stepper { display: flex; gap: 20px; flex-wrap: wrap; margin: 14px 0; }
.step { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-3); }
.step .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.step.is-done { color: var(--text-2); }
.step.is-done .dot { background: var(--success); }
.step.is-current { color: var(--text); font-weight: 500; }
.step.is-current .dot { background: var(--accent); box-shadow: 0 0 0 3.5px var(--accent-soft); }

/* ============================ detail ============================ */
.stack { display: grid; gap: 14px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 16px; align-items: start; }

.player { width: 100%; aspect-ratio: 16 / 9; display: block; background: #000; }
.player.is-empty {
  aspect-ratio: auto; min-height: 132px;
  display: grid; place-items: center; text-align: center; padding: 26px 18px; gap: 6px;
  background: var(--surface-2); color: var(--text-2); border-bottom: 1px solid var(--line);
}
.timeline-wrap { padding: 12px 16px 4px; }
.timeline { position: relative; }
.timeline .u-legend { display: none; }
.timeline .u-over { cursor: crosshair; }
.playhead { position: absolute; top: 0; width: 1.5px; background: var(--accent); pointer-events: none; transform: translateX(0); will-change: transform; }

.legend { display: flex; flex-wrap: wrap; gap: 12px; padding: 4px 16px 14px; }
.legend-item { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-3); }
.legend-dot { width: 6px; height: 6px; border-radius: 2px; }

.tabs { display: flex; flex-wrap: wrap; gap: 2px 4px; padding: 10px 12px 0; border-bottom: 1px solid var(--line); }
.tab {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: 12.5px; font-weight: 500; color: var(--text-3);
  padding: 7px 9px 9px; margin-bottom: -1px; border-bottom: 1.5px solid transparent;
  white-space: nowrap; border-radius: 6px 6px 0 0;
}
.tab:hover { color: var(--text-2); background: var(--surface-2); }
.tab.is-active { color: var(--text); border-bottom-color: var(--text); }
.tab-body { padding: 16px; }
/* Trên desktop, để nội dung card tự giãn theo chiều cao trang thay vì cuộn lồng bên trong card —
   người đọc không phải "cuộn trong cuộn" để thấy Strengths/Areas. */
@media (max-width: 1120px) {
  .tab-body { max-height: none; }
}

.summary-text { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.section-label { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.two-col li { font-size: 12.5px; color: var(--text-2); }
.list-good li::marker { color: var(--success); }
.list-bad li::marker { color: var(--danger); }

.moment-table td { vertical-align: top; }
.moment-title { font-weight: 500; font-size: 12.5px; }
.moment-body { font-size: 12px; color: var(--text-2); margin-top: 3px; }
.moment-quote { font-size: 12px; color: var(--text-2); border-left: 2px solid var(--line-strong); padding-left: 9px; margin-top: 6px; }
.moment-fix { font-size: 12px; color: var(--text); margin-top: 6px; }
.moment-fix::before { content: '→ '; color: var(--accent); }
.sev-high { color: var(--danger); }
.sev-medium { color: var(--warn); }
.sev-low { color: var(--text-3); }

.rec-item { padding: 11px 0; border-top: 1px solid var(--line); }
.rec-item:first-child { border-top: 0; padding-top: 0; }
.rec-head { display: flex; align-items: center; gap: 8px; }
.rec-priority { font-size: 10px; font-weight: 600; color: var(--text-3); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; }
.rec-action { font-size: 12.5px; font-weight: 500; }
.rec-why { font-size: 12px; color: var(--text-2); margin-top: 3px; }

.transcript { display: grid; gap: 1px; }
.tx-row {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) 66px; gap: 10px; align-items: baseline;
  text-align: left; border: 0; background: transparent; cursor: pointer;
  font: inherit; color: inherit; padding: 6px 7px; border-radius: var(--radius-xs);
}
.tx-row:hover { background: var(--surface-2); }
.tx-row.is-playing { background: var(--accent-soft); }
.tx-time { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.tx-text { font-size: 12.5px; }
.tx-speaker { font-size: 10.5px; color: var(--text-3); text-align: right; }

/* provenance — chặn tràn chữ với ID dài */
.prov { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px 22px; }
.prov-item { display: grid; gap: 3px; min-width: 0; }
.prov-label { font-size: 10.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; }
.prov-value {
  font-size: 11.5px; color: var(--text); font-family: var(--mono);
  overflow-wrap: anywhere; word-break: break-word; min-width: 0; line-height: 1.45;
}

.settings-grid { display: grid; gap: 14px; max-width: 760px; }
.kv { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 12.5px; }
.kv:first-child { border-top: 0; padding-top: 0; }
.kv dt { color: var(--text-2); margin: 0; }
.kv dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }

/* ============================ decision layer ============================ */
.decision-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.decision-card { padding: 16px 18px; border-left: 1px solid var(--line); min-width: 0; }
.decision-card:first-child { border-left: 0; }
.decision-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600;
  margin-bottom: 7px; color: var(--text-3);
}
.decision-label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.decision-card.is-good .decision-label { color: var(--success); }
.decision-card.is-warn .decision-label { color: var(--warn); }
.decision-card.is-action .decision-label { color: var(--accent); }
.decision-text { font-size: 12.5px; line-height: 1.5; color: var(--text); }
.decision-why { font-size: 11.5px; color: var(--text-3); margin-top: 5px; }

/* bullet chart */
.bullet { display: grid; gap: 10px; }
.bullet-row { display: grid; grid-template-columns: 168px minmax(0, 1fr) 34px 46px 10px; align-items: center; gap: 10px; }
.decision-focus { font-size: 11px; color: var(--text-3); text-align: right; max-width: 46%; line-height: 1.4; }
.bullet-focus { width: 7px; height: 7px; border-radius: 50%; background: transparent; flex: none; }
.bullet-focus.is-on { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.welcome-fields .seg-wide { margin-top: 2px; }
.welcome-fields .seg-wide button { padding: 8px 6px; font-size: 11.5px; }
.field-hint { font-size: 11px; color: var(--text-3); line-height: 1.45; margin-top: 2px; }
.bullet-label {
  font-size: 12px; color: var(--text-2);
  display: flex; align-items: baseline; gap: 6px; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bullet-weight { font-size: 10px; color: var(--text-3); }
.bullet-track {
  position: relative; height: 9px; border-radius: 3px;
  background: linear-gradient(to right, #fbf1f0 0 55%, #fdf7ec 55% 70%, #f2f7f3 70% 85%, #eaf7f0 85% 100%);
  border: 1px solid var(--line);
}
.bullet-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--text-2); }
.bullet-fill.is-a { background: var(--success); }
.bullet-fill.is-b { background: #4a9a6b; }
.bullet-fill.is-c { background: #d19a2e; }
.bullet-fill.is-d { background: var(--danger); }
.bullet-mark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--text); border-radius: 1px; transform: translateX(-1px); }
.bullet-mark::after {
  content: ''; position: absolute; top: -3px; left: -2.5px;
  border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; border-top: 4px solid var(--text);
}
.bullet-value { font-size: 12.5px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.bullet-delta { font-size: 11px; text-align: right; font-variant-numeric: tabular-nums; }
.bullet-delta.is-up { color: var(--success); }
.bullet-delta.is-down { color: var(--danger); }
.chart-legend { font-size: 10.5px; color: var(--text-3); margin-top: 7px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.legend-focus { display: inline-flex; align-items: center; gap: 6px; }

/* lift chart */
.lift { display: grid; gap: 8px; }
.lift-row { display: grid; grid-template-columns: 124px minmax(0, 1fr) 58px 34px; align-items: center; gap: 12px; }
.lift-label { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lift-track { position: relative; height: 15px; background: var(--surface-2); border-radius: 3px; border: 1px solid var(--line); }
.lift-axis { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line-strong); }.lift-bar { position: absolute; top: 2px; bottom: 2px; border-radius: 2px; }
.lift-bar.is-up { background: #3f9163; }
.lift-bar.is-down { background: #c4594b; }
.lift-value { font-size: 12px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.lift-value.is-up { color: var(--success); }
.lift-value.is-down { color: var(--danger); }
.lift-n { font-size: 10.5px; color: var(--text-3); text-align: right; font-variant-numeric: tabular-nums; }
.lift-hint { font-size: 10.5px; color: var(--text-3); margin-top: 5px; line-height: 1.45; }
.lift-scale {
  display: flex; justify-content: space-between;
  padding: 0 116px 0 136px; margin-top: 2px;
  font-size: 10px; color: var(--text-3); font-variant-numeric: tabular-nums;
}
.lift-row.is-weak .lift-bar { opacity: 0.55; }
.lift-row.is-weak .lift-value { color: var(--text-2); }

/* retention chart */
.retention { display: grid; gap: 8px; position: relative; }
.rt-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rt-title { font-size: 11.5px; color: var(--text-2); }
.rt-figures { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.rt-figures strong { color: var(--text); font-weight: 600; }
.rt-svg { width: 100%; height: auto; display: block; }
.rt-grid { stroke: var(--line); stroke-width: 1; }
.rt-tick { fill: var(--text-3); font-size: 9px; font-family: var(--font); }
.rt-line { fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linejoin: round; }
.rt-area { fill: var(--accent-soft); opacity: 0.85; }
.rt-drop-line { stroke: rgba(180, 35, 24, 0.3); stroke-width: 1; stroke-dasharray: 2 3; }
.rt-drop-dot { fill: var(--danger); }
.rt-drop-label { fill: var(--danger); font-size: 9px; font-family: var(--font); font-weight: 600; }
.rt-peak { fill: var(--surface); stroke: var(--accent); stroke-width: 1.6; }
.rt-event { opacity: 0.85; }
.rt-cursor-line { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0.6; }
.rt-cursor-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 1.6; }
.rt-hit { fill: transparent; cursor: ew-resize; }
.rt-svg { touch-action: none; }
.rt-hint { font-size: 10.5px; color: var(--text-3); }
.rt-tip {
  position: absolute; z-index: 3; pointer-events: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-pop); padding: 8px 10px; min-width: 168px; max-width: 230px;
  transform: translate(-50%, calc(-100% - 8px));
}
.rt-tip.is-below { transform: translate(-50%, 8px); }
.rt-tip-clock { font-size: 11px; color: var(--text-3); }
.rt-tip-value { font-size: 13px; color: var(--text); margin-top: 1px; }
.rt-tip-value strong { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rt-tip-value span { color: var(--text-2); }
.rt-tip-sub { font-size: 11px; color: var(--text-3); }
.rt-tip-events { margin-top: 5px; display: grid; gap: 2px; }
.rt-tip-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); }
.rt-tip-event { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-2); }
.rt-tip-event i { width: 6px; height: 6px; border-radius: 2px; flex: none; }

/* ============================ report document ============================ */
.report {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: 36px 42px 30px; max-width: 900px; margin: 0 auto;
}
.report-head { border-bottom: 2px solid var(--text); padding-bottom: 16px; margin-bottom: 22px; }
.report-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; margin-bottom: 16px; }
.report-title { font-size: 22px; letter-spacing: -0.022em; margin-bottom: 6px; }
.report-subject { font-size: 13.5px; font-weight: 500; margin-bottom: 8px; }
.report-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 11.5px; color: var(--text-3); }
.report-note {
  font-size: 11.5px; color: var(--warn); background: var(--warn-soft);
  border: 1px solid var(--warn-line); border-radius: var(--radius-xs); padding: 8px 11px; margin-bottom: 18px;
}
.report section { margin-bottom: 24px; }
.report-h3 { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); font-weight: 600; margin-bottom: 9px; }
.report-p { font-size: 13px; line-height: 1.6; color: var(--text-2); }
.report-table { font-size: 12px; }
.report-table thead th { background: transparent; border-bottom: 1px solid var(--line-strong); padding: 7px 10px 7px 0; }
.report-table tbody td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
.report-list { margin: 0; padding-left: 18px; display: grid; gap: 9px; }
.report-list li { font-size: 12.5px; }
.report-foot { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 10px; }
.report-foot-title { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin-bottom: 7px; }
.report-foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 4px 18px; font-family: var(--mono); font-size: 10.5px; color: var(--text-2); overflow-wrap: anywhere; }

/* ============================ skeleton ============================ */
.skel-table { padding: 4px 0; }
.skel-row { display: flex; gap: 14px; align-items: center; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.skel-row:last-child { border-bottom: 0; }
.skel-block {
  height: 10px; border-radius: 5px;
  background: linear-gradient(90deg, #f1f1f4 25%, #e9e9ee 37%, #f1f1f4 63%);
  background-size: 400% 100%; animation: skel 1.4s ease infinite;
}
@keyframes skel { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@media (prefers-reduced-motion: reduce) { .skel-block { animation: none; } }

/* ============================ command palette ============================ */
.cmdk-overlay {
  position: fixed; inset: 0; z-index: 60; background: rgba(23, 23, 28, 0.34);
  display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px;
  backdrop-filter: blur(2px);
}
.cmdk {
  width: min(580px, 100%); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); overflow: hidden;
  animation: cmdk-in 0.14s ease-out;
}
.cmdk.is-narrow { width: min(460px, 100%); }
@keyframes cmdk-in { from { opacity: 0; transform: translateY(-4px) scale(0.995); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cmdk { animation: none; } }
.cmdk-input { display: flex; align-items: center; gap: 9px; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.cmdk-input svg { color: var(--text-3); flex: none; }
.cmdk-input input { border: 0; outline: none; width: 100%; font: inherit; font-size: 13.5px; background: transparent; color: var(--text); }
.cmdk-list { max-height: 330px; overflow-y: auto; padding: 6px; }
.cmdk-group { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); padding: 9px 9px 4px; font-weight: 600; }
.cmdk-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; text-align: left; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: 12.5px; color: var(--text); padding: 8px 9px; border-radius: var(--radius-xs);
}
.cmdk-item.is-active { background: var(--accent-soft); color: var(--accent); }
.cmdk-hint { font-size: 10.5px; color: var(--text-3); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; }
.cmdk-empty { padding: 22px 10px; text-align: center; color: var(--text-3); font-size: 12.5px; }
.cmdk-head { padding: 13px 15px; border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 600; }
.cmdk-keys { padding: 13px 15px; display: grid; gap: 9px; }
.cmdk-key-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--text-2); }
.cmdk-key-row kbd {
  font-family: var(--mono); font-size: 10.5px; color: var(--text); background: var(--surface-3);
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; white-space: nowrap;
}

/* ============================ toast ============================ */
.toast-host { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 70; display: grid; gap: 8px; justify-items: center; }
.toast {
  background: var(--text); color: #fff; font-size: 12.5px; padding: 9px 14px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-pop); opacity: 0; transform: translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  max-width: 70vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.toast.is-in { opacity: 1; transform: none; }
.toast-success { background: #0d6b4d; }
.toast-danger { background: #8f1d14; }

/* ============================ focus & density ============================ */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, .tx-row:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-xs);
}

/* Input nằm trong khung đã có viền focus (ô link, ô search): khung là nơi biểu đạt focus,
   nên bỏ outline của chính input để không hiện 2 vòng lồng nhau. */
.url-field .url-input:focus,
.url-field .url-input:focus-visible,
.search input:focus,
.search input:focus-visible {
  outline: none;
  box-shadow: none;
}
[data-density='compact'] .table tbody td { padding: 7px 16px; }
[data-density='compact'] .table thead th { padding: 7px 16px; }
[data-density='compact'] .tx-row { padding: 4px 7px; }
[data-density='compact'] .moment-body, [data-density='compact'] .moment-fix { font-size: 11.5px; }
[data-density='compact'] .kpi { padding: 12px 14px; }
[data-density='compact'] .kpi-value { font-size: 23px; }
[data-density='compact'] .rec-item { padding: 8px 0; }

/* ============================ pager + usage ============================ */
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); }
.pager .dim { font-variant-numeric: tabular-nums; }
.usage-row { display: grid; gap: 6px; margin-bottom: 12px; }
.usage-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.usage-head .num { font-variant-numeric: tabular-nums; }

/* ============================ start page ============================ */
.start-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 14px; align-items: stretch; }
.capture-mount { display: flex; min-width: 0; }
.capture-mount .drawer.is-inline {
  width: 100%; box-shadow: var(--shadow-card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
}
.capture-mount .drawer-modes { padding: 16px 18px 0; }
/* Đẩy hàng nút xuống đáy để hai khung cao bằng nhau, chân khung thẳng hàng */
.capture-mount .drawer-foot { margin-top: auto; }
.value-panel { display: flex; flex-direction: column; }
.value-panel .panel-body { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.value-item { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 11px; align-items: start; }
.value-icon {
  width: 30px; height: 30px; border-radius: 9px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; flex: none;
}
.value-title { font-size: 12.5px; font-weight: 600; }
.value-desc { font-size: 12px; color: var(--text-3); margin-top: 3px; line-height: 1.45; }
.value-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 13px; margin-top: auto; }
.recent-panel { margin-top: 14px; }
.recent-panel .table td:first-child { width: 60%; }

@media (max-width: 1120px) {
  .start-grid { grid-template-columns: 1fr; }
}

/* ============================ processing: window cards ============================ */
.win-list { display: grid; }
.win-row { display: grid; grid-template-columns: 40px 120px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--line); }
.win-row:last-child { border-bottom: 0; }
.win-row.is-running { background: var(--accent-soft); }
.win-idx { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); }
.win-range { color: var(--text-2); }
.win-counts { text-align: right; font-variant-numeric: tabular-nums; }
.bullet-row.is-clickable { cursor: pointer; border-radius: var(--radius-xs); }
.bullet-row.is-clickable:hover { background: var(--surface-2); }
.bullet-row.is-clickable:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ============================ explain drawer ============================ */
.explain-drawer .drawer-body { gap: 16px; }
.explain-score { display: flex; align-items: baseline; gap: 10px; }
.explain-big { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.explain-big.score-a { color: var(--success); }
.explain-big.score-b { color: #2f8f60; }
.explain-big.score-c { color: var(--warn); }
.explain-big.score-d { color: var(--danger); }
.explain-rows { display: grid; }
.explain-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 12.5px; }
.explain-row:first-child { border-top: 0; }
.explain-key { color: var(--text-2); }
.explain-value { font-weight: 600; font-variant-numeric: tabular-nums; }
.explain-note { font-size: 12px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 13px; line-height: 1.5; }

/* ============================ welcome (onboarding) ============================ */
.welcome {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 32px 16px; background: radial-gradient(120% 90% at 50% 0%, #f1efff 0%, var(--canvas) 55%);
}
.welcome-card {
  width: min(520px, 100%); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-pop); padding: 30px 32px 26px;
  display: grid; gap: 14px;
}
.welcome-brand { display: flex; align-items: center; gap: 9px; }
.welcome-title { font-size: 24px; letter-spacing: -0.026em; margin-top: 4px; }
.welcome-sub { font-size: 13px; color: var(--text-2); line-height: 1.55; }
.welcome-fields { display: grid; gap: 12px; margin-top: 2px; }
.welcome-submit { justify-content: center; padding: 10px 16px; font-size: 13.5px; margin-top: 2px; }
.welcome-note { font-size: 11.5px; color: var(--text-3); line-height: 1.5; border-top: 1px solid var(--line); padding-top: 12px; }
.welcome-foot { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 11.5px; }
.welcome-lang { position: fixed; top: 18px; right: 20px; z-index: 2; }
.foot-logout {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 4px;
  appearance: none; border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  font: inherit; font-size: 11.5px; color: var(--text-2); padding: 5px 9px; border-radius: var(--radius-sm);
}
.foot-logout:hover { background: var(--surface-3); color: var(--text); }

/* ============================ print ============================ */
@media print {
  .sidebar, .topbar, .tabs, .page-actions, .btn, .drawer-backdrop, .toast-host, .cmdk-overlay, .legend, .no-print { display: none !important; }
  body { background: #fff; font-size: 11px; }
  .shell { display: block; }
  .content { padding: 0; max-width: none; }
  .panel { box-shadow: none; border-color: #ddd; break-inside: avoid; }
  .detail-grid { display: block; }
  .tab-body { max-height: none; overflow: visible; }
  .kpis { break-inside: avoid; }
  .player { display: none; }
  .report { border: 0; box-shadow: none; padding: 0; max-width: none; }
  .report section { break-inside: avoid; }
  .report-table tbody tr { break-inside: avoid; }
  a { color: var(--text); text-decoration: none; }
}

/* ============================ responsive ============================ */
@media (max-width: 1120px) {
  .detail-grid { grid-template-columns: 1fr; }
  .tab-body { max-height: none; }
  .decision-grid { grid-template-columns: 1fr; }
  .decision-card { border-left: 0; border-top: 1px solid var(--line); }
  .decision-card:first-child { border-top: 0; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; gap: 10px; overflow-x: auto; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .ws-card, .sidebar-foot, .nav-section { display: none; }
  .nav { display: flex; gap: 4px; margin-bottom: 0; }
  .content { padding: 18px 14px 40px; }
  .topbar { padding: 10px 14px; }
  .search { width: 170px; }
  .two-col { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .bullet-row { grid-template-columns: 132px minmax(0, 1fr) 30px 40px 8px; }
  .lift-row { grid-template-columns: 96px minmax(0, 1fr) 52px 30px; }
  .lift-scale { padding: 0 94px 0 108px; }
  .url-footer-row { grid-template-columns: 1fr; }
  .url-note { padding-top: 0; }
  .page-title { font-size: 23px; }
}
