/* =========================================================================
   MT DCR Feedback — design system
   ========================================================================= */
:root {
  /* surfaces */
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #f8fafd;
  --surface-3: #eef2f8;
  --line: #e4e9f2;
  --line-strong: #cfd7e4;

  /* text */
  --text: #0f1b2d;
  --text-2: #3a4a63;
  --muted: #66758d;
  --faint: #98a4b8;

  /* brand */
  --primary: #2350d8;
  --primary-600: #1b41b8;
  --primary-700: #163596;
  --primary-50: #eef3ff;
  --primary-100: #dce6ff;
  --accent: #0e9f94;
  --ink: #0b1a31;
  --ink-2: #13284a;

  /* status */
  --ok: #157a46;   --ok-bg: #e7f6ee;   --ok-line: #bfe6d0;
  --warn: #a95c06; --warn-bg: #fff3e0; --warn-line: #f5d7a6;
  --err: #be2331;  --err-bg: #fdecee;  --err-line: #f6c4ca;
  --info: #1f5fbf; --info-bg: #eaf2ff; --info-line: #c6dafb;
  --star: #f5a524;

  /* shape */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --shadow-xs: 0 1px 2px rgba(15, 27, 45, .05);
  --shadow-sm: 0 1px 3px rgba(15, 27, 45, .06), 0 1px 2px rgba(15, 27, 45, .04);
  --shadow-md: 0 6px 16px -4px rgba(15, 27, 45, .10), 0 2px 6px -2px rgba(15, 27, 45, .06);
  --shadow-lg: 0 24px 48px -12px rgba(15, 27, 45, .22);
  --ring: 0 0 0 4px rgba(35, 80, 216, .14);

  --sidebar-w: 248px;
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.5;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01";
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-600); }
h1 { font-size: 24px; line-height: 1.25; letter-spacing: -.02em; font-weight: 700; margin: 0; }
h2 { font-size: 15px; line-height: 1.4; letter-spacing: -.01em; font-weight: 650; margin: 0 0 14px; }
h3 { font-size: 13px; font-weight: 650; margin: 0 0 10px; }
p { margin: 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.wrap { white-space: pre-wrap; max-width: 440px; }
.tnum { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon.sm { width: 15px; height: 15px; }
.icon.lg { width: 22px; height: 22px; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

/* =========================================================================
   App shell
   ========================================================================= */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); position: fixed; inset: 0 auto 0 0; z-index: 40;
  display: flex; flex-direction: column;
  background: radial-gradient(120% 60% at 0% 0%, #1a3566 0%, transparent 60%), var(--ink);
  color: #c4d0e4; border-right: 1px solid rgba(255,255,255,.04);
  transition: transform .25s ease;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 22px 20px 20px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center;
  background: linear-gradient(140deg, #4f7dff 0%, var(--primary) 55%, #0e9f94 130%);
  box-shadow: 0 6px 16px -4px rgba(35,80,216,.6), inset 0 1px 0 rgba(255,255,255,.25);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand strong { display: block; color: #fff; font-size: 15px; letter-spacing: -.01em; }
.brand span { display: block; font-size: 12px; color: #8396b6; }
.nav-label { padding: 18px 22px 8px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #6c80a3; }
.sidebar nav { padding: 0 12px; flex: 1; }
.sidebar nav a {
  position: relative; display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; margin-bottom: 3px; border-radius: 10px;
  color: #c4d0e4; font-weight: 500; transition: background .15s, color .15s;
}
.sidebar nav a .icon { color: #8396b6; transition: color .15s; }
.sidebar nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar nav a:hover .icon { color: #dbe5f5; }
.sidebar nav a.active { background: linear-gradient(90deg, rgba(79,125,255,.28), rgba(79,125,255,.10)); color: #fff; }
.sidebar nav a.active .icon { color: #9db7ff; }
.sidebar nav a.active::before {
  content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: #7ea0ff;
}
.sidebar-foot { padding: 14px 12px 16px; border-top: 1px solid rgba(255,255,255,.07); }
.user-card { display: flex; align-items: center; gap: 10px; padding: 8px 10px 12px; }
.user-card .who { min-width: 0; flex: 1; }
.user-card .who strong { display: block; color: #fff; font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-card .who span { display: block; font-size: 12px; color: #8396b6; }
.foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.foot-links a {
  display: flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 6px; border-radius: 9px;
  font-size: 12px; font-weight: 500; color: #c4d0e4; background: rgba(255,255,255,.05);
}
.foot-links a:hover { background: rgba(255,255,255,.1); color: #fff; }

.main { margin-left: var(--sidebar-w); flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: 60px; display: flex; align-items: center; gap: 14px;
  padding: 0 32px; background: rgba(244,246,251,.82); backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, background .2s;
}
.topbar.scrolled { border-bottom-color: var(--line); background: rgba(255,255,255,.86); }
.topbar .menu-btn { display: none; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); min-width: 0; flex-wrap: wrap; }
.crumbs a { color: var(--muted); font-weight: 500; }
.crumbs a:hover { color: var(--primary); }
.crumbs .sep { color: var(--faint); }
.crumbs .here { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.chip-date { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-size: 12.5px; font-weight: 500; }
.sf-pill { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-size: 12px; font-weight: 600; }
.sf-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(21,122,70,.18); }

.content { padding: 8px 32px 48px; max-width: 1440px; width: 100%; }
.backdrop { display: none; }

/* page loading bar */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100; pointer-events: none; opacity: 0; transition: opacity .2s; }
.progress::before { content: ""; position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, var(--primary), #4fd1c5, transparent); animation: slide 1.1s ease-in-out infinite; }
body.is-loading .progress { opacity: 1; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* =========================================================================
   Page header
   ========================================================================= */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 14px 0 22px; flex-wrap: wrap; }
.page-head .title { display: flex; align-items: center; gap: 16px; min-width: 0; }
.page-head p.muted { margin-top: 5px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); margin-bottom: 6px; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head .muted { font-size: 12.5px; }

/* =========================================================================
   Cards & KPIs
   ========================================================================= */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow-xs); }
.card.flush { padding: 0; overflow: hidden; }
.card.narrow { max-width: 480px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 18px 16px; box-shadow: var(--shadow-xs); overflow: hidden; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.kpi-label { font-size: 12.5px; font-weight: 550; color: var(--muted); }
.kpi-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); }
.kpi-icon.ok { background: var(--ok-bg); color: var(--ok); }
.kpi-icon.warn { background: var(--warn-bg); color: var(--warn); }
.kpi-icon.err { background: var(--err-bg); color: var(--err); }
.kpi-icon.star { background: #fff6e3; color: #c9820a; }
.kpi-value { font-size: 28px; line-height: 1; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpi-value small { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 3px; }
.kpi-sub { margin-top: 8px; font-size: 12px; color: var(--muted); }
.bar { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin-top: 12px; }
.bar > i { display: block; width: var(--w, 0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), #4f7dff); transition: width .6s ease; }
.bar.ok > i { background: linear-gradient(90deg, #18935a, #34c27f); }

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 15px; border-radius: 10px; cursor: pointer; white-space: nowrap;
  font: inherit; font-weight: 600; font-size: 13.5px; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-xs);
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s;
}
.btn:hover { background: var(--surface-2); border-color: #bcc6d6; color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn.primary { color: #fff; border-color: transparent; background: linear-gradient(180deg, #2f5ce6, var(--primary)); box-shadow: 0 1px 2px rgba(22,53,150,.3), inset 0 1px 0 rgba(255,255,255,.16); }
.btn.primary:hover { background: linear-gradient(180deg, #2753db, var(--primary-600)); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--muted); }
.btn.ghost:hover { background: var(--surface-3); color: var(--text); }
.btn.danger { color: var(--err); }
.btn.danger:hover { background: var(--err-bg); border-color: var(--err-line); color: var(--err); }
.btn.small { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; gap: 6px; }
.btn.lg { height: 46px; padding: 0 20px; font-size: 14.5px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn.icon-only { width: 38px; padding: 0; }
.btn[disabled], .btn.is-busy { opacity: .75; pointer-events: none; }
.btn .spinner { display: none; }
.btn.is-busy .spinner { display: inline-block; }
.btn.is-busy .icon { display: none; }
.spinner { width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================================
   Forms
   ========================================================================= */
label { display: block; font-weight: 600; font-size: 12.5px; color: var(--text-2); margin-bottom: 14px; }
input, select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 0 12px; height: 40px;
  font: inherit; font-size: 14px; color: var(--text); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow-xs);
  transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; padding: 11px 12px; line-height: 1.55; resize: vertical; }
select { appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2366758d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, select:hover, textarea:hover { border-color: #b9c4d6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
input[type="date"] { padding-right: 8px; }
.field-hint { display: block; margin-top: 6px; font-size: 12px; font-weight: 500; color: var(--muted); }
.input-icon { position: relative; display: block; margin-top: 6px; }
.input-icon > .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.input-icon input { margin: 0; padding-left: 38px; }
.input-icon .toggle-pw { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); height: 30px; width: 34px; border: 0; background: transparent; color: var(--muted); border-radius: 7px; cursor: pointer; display: grid; place-items: center; }
.input-icon .toggle-pw:hover { background: var(--surface-3); color: var(--text); }
.search-box { position: relative; width: 300px; max-width: 100%; }
.search-box .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search-box input { margin: 0; padding-left: 38px; }
.search-box kbd { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); }
kbd { font: 600 11px/1 var(--font); padding: 4px 6px; border-radius: 6px; background: var(--surface-3); color: var(--muted); border: 1px solid var(--line); }

label.check { display: flex; gap: 10px; align-items: center; font-weight: 500; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
label.check input { width: auto; height: auto; margin: 0; box-shadow: none; }

/* switch */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); cursor: pointer; margin: 0 0 18px; }
.switch strong { display: block; font-size: 13.5px; color: var(--text); }
.switch span { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { position: relative; width: 42px; height: 24px; border-radius: 999px; background: #cfd7e4; flex-shrink: 0; transition: background .2s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + .track { background: var(--primary); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { box-shadow: var(--ring); }

/* segmented */
.segmented { display: inline-flex; padding: 3px; gap: 2px; margin-top: 6px; background: var(--surface-3); border-radius: 11px; border: 1px solid var(--line); }
.segmented label { margin: 0; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .15s; }
.segmented span:hover { color: var(--text); }
.segmented input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.segmented input:focus-visible + span { box-shadow: var(--ring); }
.segmented em { font-style: normal; font-size: 11px; padding: 1px 6px; border-radius: 999px; background: rgba(15,27,45,.06); }

/* filter toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; padding: 18px 20px; }
.toolbar label { margin: 0; }
.toolbar .grow { flex: 1 1 220px; max-width: 360px; }
.toolbar .date { width: 160px; }
.toolbar-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--surface-2); }
.quick-range { display: flex; gap: 6px; flex-wrap: wrap; }
table.compact th, table.compact td { padding: 12px 14px; }
table.compact th:first-child, table.compact td:first-child { padding-left: 20px; }
table.compact td { font-size: 13.5px; }
td .badge.outline { white-space: normal; height: auto; min-height: 22px; padding: 3px 9px; line-height: 1.3; }
.quick-range button { height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.quick-range button:hover { border-color: var(--primary-100); background: var(--primary-50); color: var(--primary); }
.quick-range .lbl { font-size: 12px; color: var(--faint); font-weight: 500; align-self: center; margin-right: 2px; }

/* =========================================================================
   Badges, avatars, stars
   ========================================================================= */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--surface-3); color: var(--text-2); border: 1px solid transparent; vertical-align: middle; }
.badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.err { background: var(--err-bg); color: var(--err); }
.badge.info { background: var(--info-bg); color: var(--info); }
.badge.outline { background: transparent; border-color: var(--line-strong); color: var(--muted); }
.hq { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); font-size: 12px; font-weight: 550; margin: 2px 4px 2px 0; white-space: nowrap; }
.hq .icon { width: 13px; height: 13px; color: var(--faint); }

.avatar {
  --h: 220; width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  font-weight: 700; font-size: 13px; letter-spacing: .02em;
  color: hsl(var(--h) 55% 30%); background: hsl(var(--h) 75% 93%); box-shadow: inset 0 0 0 1px hsl(var(--h) 50% 85%);
}
.avatar.sm { width: 30px; height: 30px; font-size: 11px; }
.avatar.lg { width: 56px; height: 56px; font-size: 19px; border-radius: 16px; }
.avatar.dark { color: #fff; background: hsl(var(--h) 45% 42%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.person strong { display: block; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person .sub { display: block; font-size: 12px; color: var(--muted); }

.stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.stars svg { width: 14px; height: 14px; fill: #dfe4ec; }
.stars svg.on { fill: var(--star); }
.rating-pill { display: inline-flex; align-items: center; gap: 7px; }
.rating-pill b { font-weight: 650; font-size: 12.5px; color: var(--text-2); }

/* =========================================================================
   Tables
   ========================================================================= */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th, td { padding: 13px 20px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
th { position: sticky; top: 0; background: var(--surface-2); font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
td { color: var(--text-2); }
tbody tr { transition: background .12s; }
tbody tr:hover { background: #f8faff; }
tbody tr:last-child td { border-bottom: 0; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td:first-child { box-shadow: inset 3px 0 0 var(--primary); }
td.strong, td strong { color: var(--text); font-weight: 600; }
.chev { color: var(--faint); transition: transform .15s, color .15s; }
tr:hover .chev { color: var(--primary); transform: translateX(3px); }
.row-form { display: flex; gap: 6px; align-items: center; }
.row-form input { margin: 0; width: 200px; height: 34px; font-size: 13px; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
form.inline { display: inline; }
.table-foot { padding: 12px 20px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: 12px; color: var(--muted); }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 460px; white-space: pre-wrap; }
.clamp.open { -webkit-line-clamp: unset; }
.more { border: 0; background: none; padding: 0; margin-top: 3px; color: var(--primary); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }

/* =========================================================================
   Feedback page
   ========================================================================= */
.two-col { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.sticky { position: sticky; top: 80px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.meta { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 550; color: var(--text-2); }
.meta .icon { width: 14px; height: 14px; color: var(--faint); }
.details { display: grid; grid-template-columns: minmax(130px, max-content) 1fr; margin: 0; }
.details dt, .details dd { padding: 11px 0; border-bottom: 1px dashed var(--line); }
.details dt { color: var(--muted); font-weight: 550; font-size: 12.5px; padding-right: 20px; }
.details dd { margin: 0; white-space: pre-wrap; color: var(--text); font-weight: 500; word-break: break-word; }
.details dt:last-of-type, .details dd:last-of-type { border-bottom: 0; }
.details.small dt, .details.small dd { padding: 6px 0; font-size: 12px; }
.empty-fields { margin-top: 12px; }
.empty-fields summary { list-style: none; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.empty-fields summary::-webkit-details-marker { display: none; }
.empty-fields .names { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }

.rating-box { padding: 18px; border-radius: 14px; background: linear-gradient(180deg, #fffaf0, #fff); border: 1px solid #f5e6c6; margin-bottom: 18px; text-align: center; }
.rating-box .lbl { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #a26b07; }
.rating { display: inline-flex; flex-direction: row-reverse; gap: 6px; margin: 8px 0 4px; }
.rating input { position: absolute; opacity: 0; pointer-events: none; }
.rating label { margin: 0; cursor: pointer; line-height: 0; transition: transform .12s; }
.rating label svg { width: 38px; height: 38px; fill: #e3e7ee; transition: fill .12s; }
.rating label:hover { transform: scale(1.12); }
.rating input:checked ~ label svg, .rating label:hover svg, .rating label:hover ~ label svg { fill: var(--star); }
.rating input:focus-visible + label { box-shadow: var(--ring); border-radius: 8px; }
.rating-text { font-size: 15px; font-weight: 650; color: var(--text); min-height: 22px; }
.rating-text.is-empty { color: var(--faint); font-weight: 500; font-size: 13.5px; }
/* visually hidden native inputs behind custom controls must not take layout width */
.rating input, .segmented input, .switch input { width: 1px; height: 1px; margin: 0; padding: 0; }
.prompts { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 8px; }
.prompts button { height: 28px; padding: 0 10px; border-radius: 999px; border: 1px dashed var(--line-strong); background: var(--surface); color: var(--text-2); font: inherit; font-size: 12px; font-weight: 550; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.prompts button:hover { border-style: solid; border-color: var(--primary); color: var(--primary); background: var(--primary-50); }
.counter { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--faint); font-weight: 500; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); margin-top: 4px; }
.saved-note { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-right: auto; }

/* =========================================================================
   Flash toasts, empty states, dialogs
   ========================================================================= */
.toasts { position: fixed; top: 16px; right: 16px; z-index: 90; display: flex; flex-direction: column; gap: 10px; width: min(420px, calc(100vw - 32px)); }
.toast {
  display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px; border-radius: 13px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  font-size: 13.5px; color: var(--text); animation: toast-in .35s cubic-bezier(.2,.9,.3,1.2);
}
.toast .t-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; background: var(--info-bg); color: var(--info); }
.toast.success .t-icon { background: var(--ok-bg); color: var(--ok); }
.toast.error .t-icon { background: var(--err-bg); color: var(--err); }
.toast.warning .t-icon { background: var(--warn-bg); color: var(--warn); }
.toast .t-body { flex: 1; padding-top: 5px; word-break: break-word; }
.toast .t-close { border: 0; background: none; color: var(--faint); cursor: pointer; padding: 4px; border-radius: 6px; line-height: 0; }
.toast .t-close:hover { background: var(--surface-3); color: var(--text); }
.toast.hide { animation: toast-out .25s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(24px); } }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--err-line); background: var(--err-bg); color: #7d1620; margin-bottom: 20px; font-size: 13.5px; }
.alert .icon { color: var(--err); margin-top: 1px; }
.alert strong { display: block; color: var(--err); margin-bottom: 2px; }
.alert.info { border-color: var(--info-line); background: var(--info-bg); color: #163f7c; }
.alert.info .icon, .alert.info strong { color: var(--info); }
.alert.warn { border-color: var(--warn-line); background: var(--warn-bg); color: #6d3c03; }
.alert.warn .icon, .alert.warn strong { color: var(--warn); }
.alert code { font-size: 12px; word-break: break-all; }

.empty { text-align: center; padding: 56px 24px; }
.empty .art { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 20px; display: grid; place-items: center; color: var(--primary); background: linear-gradient(140deg, var(--primary-50), #e7fbf8); box-shadow: inset 0 0 0 1px var(--primary-100); }
.empty .art .icon { width: 28px; height: 28px; }
.empty h3 { font-size: 15px; margin-bottom: 6px; }
.empty p { color: var(--muted); max-width: 380px; margin: 0 auto; }
.empty .actions { justify-content: center; margin-top: 16px; }
tr.no-match td { text-align: center; color: var(--muted); padding: 28px; }

dialog { border: 0; padding: 0; border-radius: 18px; box-shadow: var(--shadow-lg); width: min(460px, calc(100vw - 32px)); color: var(--text); }
dialog::backdrop { background: rgba(11,26,49,.45); backdrop-filter: blur(3px); }
dialog[open] { animation: toast-in .25s ease; }
.dialog-head { display: flex; align-items: flex-start; gap: 14px; padding: 22px 22px 6px; }
.dialog-head .kpi-icon { width: 40px; height: 40px; }
.dialog-head p { color: var(--muted); font-size: 13px; margin-top: 3px; }
.dialog-body { padding: 16px 22px 4px; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 20px; }

/* inline add form */
.add-form { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; padding: 18px 20px; }
.add-form label { margin: 0; flex: 1 1 260px; }
.add-form label.check { flex: 0 0 auto; height: 40px; }

/* password strength */
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 9px; }
.strength i { height: 4px; border-radius: 4px; background: var(--surface-3); transition: background .2s; }
.strength[data-s="1"] i:nth-child(-n+1) { background: var(--err); }
.strength[data-s="2"] i:nth-child(-n+2) { background: #e8820c; }
.strength[data-s="3"] i:nth-child(-n+3) { background: #2b9a5d; }
.strength[data-s="4"] i { background: var(--ok); }
.checks { list-style: none; padding: 0; margin: 10px 0 16px; display: grid; gap: 5px; font-size: 12.5px; color: var(--muted); }
.checks li { display: flex; align-items: center; gap: 7px; }
.checks li::before { content: ""; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex-shrink: 0; }
.checks li.ok { color: var(--ok); }
.checks li.ok::before { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/10px no-repeat; }

/* =========================================================================
   Login
   ========================================================================= */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(420px, 1fr); background: var(--surface); }
.auth-hero {
  position: relative; overflow: hidden; color: #fff; padding: 44px 56px; display: flex; flex-direction: column;
  background:
    radial-gradient(70% 55% at 85% 15%, rgba(14,159,148,.45), transparent 65%),
    radial-gradient(60% 60% at 10% 95%, rgba(79,125,255,.55), transparent 65%),
    linear-gradient(155deg, #0b1a31 0%, #122a55 55%, #163a7a 100%);
}
.auth-hero .brand { padding: 0; }
.auth-hero .brand span { color: #9fb2d3; }
.dots { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 60% at 75% 50%, #000, transparent); mask-image: radial-gradient(70% 60% at 75% 50%, #000, transparent); }

/* floating product preview on the login hero */
.preview { position: absolute; right: 40px; top: 50%; width: 290px; height: 330px; transform: translateY(-50%); pointer-events: none; }
.pv-card { position: absolute; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 24px 48px -16px rgba(0,0,0,.45); color: #e6edf9; }
.pv-main { left: 0; top: 78px; width: 280px; padding: 18px; animation: float 7s ease-in-out infinite; transform: translateZ(30px); }
.pv-side { right: -18px; top: -34px; width: 150px; padding: 14px 16px; animation: float 8s ease-in-out -2s infinite; }
.pv-chip { left: 34px; bottom: -34px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 12.5px; font-weight: 600; color: #b9f5e2; background: rgba(14,159,148,.22); border-color: rgba(127,227,216,.35); animation: float 6s ease-in-out -4s infinite; }
.pv-head { display: flex; align-items: center; gap: 10px; }
.pv-head strong { display: block; font-size: 13.5px; color: #fff; }
.pv-head span { display: block; font-size: 11.5px; color: #9fb2d3; white-space: nowrap; }
.pv-head > div { min-width: 0; }
.pv-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid !important; place-items: center; font-size: 12px; font-weight: 700; color: #fff !important; background: linear-gradient(140deg, #4f7dff, #0e9f94); flex-shrink: 0; }
.pv-badge { margin-left: auto; padding: 3px 9px; border-radius: 999px; font-size: 11px !important; font-weight: 600; color: #9ff0c6 !important; background: rgba(52,194,127,.18); }
.pv-stars { display: flex; align-items: center; gap: 2px; margin: 14px 0 8px; }
.pv-stars svg { width: 17px; height: 17px; fill: rgba(255,255,255,.2); }
.pv-stars svg.on { fill: var(--star); }
.pv-stars b { margin-left: 8px; font-size: 12.5px; color: #fff; }
.pv-main p { font-size: 12.5px; line-height: 1.55; color: #c9d6ec; }
.pv-tags { display: flex; gap: 6px; margin-top: 12px; }
.pv-tags span { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(157,183,255,.16); color: #c5d4ff; }
.pv-label { font-size: 11.5px; color: #9fb2d3; font-weight: 600; }
.pv-big { font-size: 26px; font-weight: 750; color: #fff; letter-spacing: -.02em; margin-top: 2px; }
.pv-big small { font-size: 12px; color: #9fb2d3; font-weight: 600; margin-left: 3px; }
.pv-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.14); margin-top: 8px; overflow: hidden; }
.pv-bar i { display: block; width: 75%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #34c27f, #7fe3d8); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* --- login: motion & depth --- */
.auth-hero::after { /* soft spotlight that follows the mouse */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 70%) var(--my, 45%), rgba(127,160,255,.16), transparent 60%);
  transition: background .2s;
}
.aurora { position: absolute; inset: -20%; pointer-events: none; filter: blur(70px); opacity: .75; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.aurora .a1 { width: 46%; height: 46%; left: 48%; top: 8%; background: #0e9f94; animation: drift1 18s ease-in-out infinite; }
.aurora .a2 { width: 50%; height: 50%; left: 8%; top: 52%; background: #3d63f0; animation: drift2 22s ease-in-out infinite; }
.aurora .a3 { width: 34%; height: 34%; left: 60%; top: 58%; background: #8b5cf6; opacity: .55; animation: drift3 26s ease-in-out infinite; }
@keyframes drift1 { 50% { transform: translate(-18%, 22%) scale(1.15); } }
@keyframes drift2 { 50% { transform: translate(24%, -16%) scale(.9); } }
@keyframes drift3 { 50% { transform: translate(-30%, -24%) scale(1.2); } }
.auth-hero > .brand, .hero-copy, .hero-foot { z-index: 2; }

.rotator { display: inline-grid; }
.rotator em { grid-area: 1 / 1; white-space: nowrap; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .45s, filter .45s; }
.rotator em.in { transform: translateY(60%); opacity: 0; filter: blur(6px); }
.rotator em.out { transform: translateY(-60%); opacity: 0; filter: blur(6px); }

.preview { perspective: 1000px; z-index: 2; }
.pv-tilt { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .25s ease-out; }
.pv-main p { min-height: 80px; }
.caret { display: inline-block; width: 2px; height: 1em; margin-left: 1px; vertical-align: -2px; background: #7fe3d8; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.pv-stars svg { transition: fill .2s; }
.pv-stars svg.on { animation: pop .35s cubic-bezier(.3,1.6,.5,1); }
@keyframes pop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }
.pv-stars b { animation: fade-up .3s ease; }
.pv-tags span { animation: fade-up .3s ease both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } }
.pv-chip { opacity: 0; transform: translateY(10px) scale(.92); transition: opacity .35s, transform .45s cubic-bezier(.3,1.5,.5,1); animation: none; }
.pv-chip.show { opacity: 1; transform: none; }
.pv-bar i { width: var(--w, 62%); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.pv-ping { left: -34px; top: 14px; display: inline-flex; align-items: center; gap: 9px; padding: 9px 13px; font-size: 12px; font-weight: 600; color: #dbe5f5; animation: float 9s ease-in-out -1s infinite; }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #34d399; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #34d399; animation: ping 1.6s ease-out infinite; }
@keyframes ping { from { transform: scale(.5); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }

/* login form: animated glow frame */
.auth-card { position: relative; padding: 36px 34px 30px; border-radius: 22px; background: rgba(255,255,255,.86); box-shadow: 0 30px 60px -30px rgba(35,80,216,.35), 0 0 0 1px var(--line); }
.auth-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: 23px; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ang, 0deg), transparent 0 60%, #4f7dff 75%, #7fe3d8 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin-ang 6s linear infinite;
}
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin-ang { to { --ang: 360deg; } }
.auth-panel { position: relative; overflow: hidden; }
.auth-panel::before { content: ""; position: absolute; width: 520px; height: 520px; right: -200px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(79,125,255,.16), transparent 65%); animation: drift2 24s ease-in-out infinite; pointer-events: none; }
.auth-panel::after { content: ""; position: absolute; width: 420px; height: 420px; left: -180px; bottom: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(14,159,148,.13), transparent 65%); animation: drift1 20s ease-in-out infinite; pointer-events: none; }
.auth-card .btn.primary { position: relative; overflow: hidden; }
.auth-card .btn.primary::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent); animation: shine 4.5s ease-in-out 1.2s infinite; }
@keyframes shine { 0% { left: -60%; } 30%, 100% { left: 130%; } }
@media (max-width: 980px) { .auth-card { padding: 28px 22px 24px; box-shadow: none; background: transparent; } .auth-card::before { display: none; } }
@media (max-width: 1419px) { .preview { display: none; } .dots { -webkit-mask-image: radial-gradient(60% 50% at 70% 50%, #000, transparent); mask-image: radial-gradient(60% 50% at 70% 50%, #000, transparent); } }
.hero-copy { position: relative; margin-top: auto; margin-bottom: auto; max-width: 420px; padding: 40px 0; }
.hero-copy .eyebrow { color: #7fe3d8; }
.hero-copy h1 { font-size: 42px; line-height: 1.1; letter-spacing: -.035em; font-weight: 750; }
.hero-copy h1 em { font-style: normal; background: linear-gradient(90deg, #9db7ff, #7fe3d8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy > p { margin-top: 16px; font-size: 15.5px; line-height: 1.6; color: #b9c8e2; }
.features { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.features li { display: flex; gap: 14px; align-items: flex-start; }
.features .f-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #bcd0ff; backdrop-filter: blur(6px); }
.features strong { display: block; font-size: 14px; font-weight: 600; }
.features span { display: block; font-size: 13px; color: #9fb2d3; }
.hero-foot { position: relative; font-size: 12px; color: #7f93b6; }

.auth-panel { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 24px; background: radial-gradient(80% 50% at 50% 0%, #f1f5ff, transparent 70%), var(--surface); }
.auth-card { width: 100%; max-width: 430px; z-index: 1; }
.auth-card .mobile-brand { display: none; }
.auth-card h1 { font-size: 28px; letter-spacing: -.03em; }
.auth-card .lead { margin: 8px 0 28px; color: var(--muted); font-size: 14.5px; }
.auth-card label { margin-bottom: 16px; }
.auth-card input { height: 46px; border-radius: 12px; }
.caps { display: none; align-items: center; gap: 6px; margin-top: 7px; font-size: 12px; font-weight: 600; color: var(--warn); }
.caps.show { display: flex; }
.auth-help { margin-top: 22px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); display: flex; gap: 10px; }
.auth-help .icon { color: var(--faint); margin-top: 1px; }
.auth-legal { margin-top: 28px; font-size: 12px; color: var(--faint); text-align: center; }

/* standalone (error) */
.center-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(60% 40% at 50% 0%, #e8efff, transparent 70%), var(--bg); }
.error-card { text-align: center; max-width: 460px; padding: 40px 32px; }
.error-code { font-size: 64px; font-weight: 800; letter-spacing: -.05em; line-height: 1; background: linear-gradient(120deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-card p { color: var(--muted); margin: 12px 0 24px; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1100px) {
  .two-col { grid-template-columns: 1fr; }
  .sticky { position: static; }
}
@media (max-width: 980px) {
  .auth { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .auth-card .mobile-brand { display: flex; margin-bottom: 28px; }
  .auth-card .mobile-brand span { color: var(--muted); }
  .auth-card .mobile-brand strong { color: var(--text); }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .backdrop { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(11,26,49,.4); }
  .main { margin-left: 0; }
  .topbar .menu-btn { display: inline-flex; }
  .topbar { padding: 0 16px; }
  .content { padding: 4px 16px 40px; }
  .chip-date, .sf-pill { display: none; }
  .search-box { width: 100%; }
  .page-head { align-items: stretch; }
  th, td { padding: 12px 14px; }
  .toolbar .date { width: calc(50% - 8px); }
  .toolbar .grow { max-width: none; }
  .hide-sm { display: none; }
}
/* tables become stacked cards on phones */
@media (max-width: 760px) {
  h1 { font-size: 21px; }
  .page-head { margin: 10px 0 18px; }
  .page-head .title { align-items: flex-start; }
  .avatar.lg { width: 46px; height: 46px; font-size: 16px; border-radius: 13px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kpi { padding: 14px; }
  .kpi-value { font-size: 24px; }
  .section-head { padding: 14px 16px; }
  .section-head .search-box { width: 100% !important; }
  .toolbar { padding: 16px; gap: 12px; }
  .toolbar > div, .toolbar > .btn { width: 100%; }
  .toolbar > .btn { margin-left: 0 !important; }
  .segmented { display: flex; width: 100%; }
  .segmented label { flex: 1; }
  .segmented span { justify-content: center; width: 100%; padding: 0 6px; }
  .ring, .quick-range .lbl { display: none; }
  .toolbar-foot { padding: 12px 16px; }
  .toolbar-foot > .btn { width: 100%; }
  .quick-range { overflow-x: auto; flex-wrap: nowrap; width: 100%; padding-bottom: 2px; }
  .quick-range button { flex-shrink: 0; }
  .page-head > .actions, .page-head > form.actions { width: 100%; }
  .page-head > .actions > *, .page-head > .actions .btn { flex: 1 1 auto; }
  .page-head > form.actions select { flex: 1; width: auto !important; }

  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  table.stack tbody tr:last-child { border-bottom: 0; }
  table.stack td { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 5px 0; border: 0; text-align: right; }
  table.stack td::before { content: attr(data-label); flex-shrink: 0; text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); }
  table.stack td:first-child { padding: 0 0 8px; text-align: left; justify-content: flex-start; }
  table.stack td:first-child::before, table.stack td.row-end::before, table.stack tr.no-match td::before { display: none; }
  table.stack td.row-end { justify-content: flex-end; padding-top: 10px; }
  table.stack td.row-end .chev { display: none; }
  table.stack tr.clickable:hover td:first-child { box-shadow: none; }
  table.stack .clamp, table.stack .wrap { max-width: 70%; text-align: left; }
  table.stack .row-form { flex: 1; justify-content: flex-end; }
  table.stack .row-form input { width: 100%; max-width: 220px; }
  table.stack details { text-align: left; }
  table.stack tr.no-match td { justify-content: center; }
  .rating label svg { width: 34px; height: 34px; }
  .form-actions { flex-wrap: wrap; }
  .form-actions .btn { flex: 1; }
  .saved-note { width: 100%; }
  .details { grid-template-columns: 1fr; }
  .details dt { padding-bottom: 0; border-bottom: 0; }
  .details dd { padding-top: 2px; }
}
@media (max-width: 420px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .chip-date { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
