/* Design tokens measured from the reference screens. Sizes are CSS px. */
@font-face { font-family: "Be Vietnam Pro"; font-weight: 400; font-display: swap; src: url("../fonts/be-vietnam-pro-400.woff2") format("woff2"); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 500; font-display: swap; src: url("../fonts/be-vietnam-pro-500.woff2") format("woff2"); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 600; font-display: swap; src: url("../fonts/be-vietnam-pro-600.woff2") format("woff2"); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 700; font-display: swap; src: url("../fonts/be-vietnam-pro-700.woff2") format("woff2"); }

:root {
  --page: #F4F4F4;
  --frame: #FFFFFF;
  --sidebar: #F7F7F7;
  --nav-active: #E9EEF7;
  --tabbar: #FBFDFF;

  --ink: #070E1C;
  --navy: #00053A;
  --slate: #384269;
  --slate-2: #454E73;
  --muted: #697C9B;
  --chevron: #252D4C;
  --axis: #343F66;

  --blue: #1A66F0;
  --link: #0A3CFF;
  --button: #4180F2;
  --button-hover: #3373EA;
  --selected: #2E73F0;
  --tint: #ECF3FF;

  --border: #EAECEF;
  --card-border: #EFEFF3;
  --table-border: #ECEDF2;
  --row-line: #E6E7EC;
  --grid: #E9EBF0;
  --soft: #F6F8FA;

  --green-bg: #EAF8ED;   --green-text: #0A4413;
  --upgrade-bg: #E1FFEA; --upgrade-border: #287941; --upgrade-text: #0D6327;
  --amber-bg: #FFF8E9;   --amber-text: #75420A; --amber-icon: #CA9339;
  --blue-bg: #E3EBFF;    --blue-text: #1439C1;
  --pink-bg: #FDEBF2;    --pink-text: #9C1D4C; --pink: #F65E92;
  --orange: #E6A160;

  --r-frame: 32px;
  --r-side: 20px;
  --r-card: 12px;
  --r-control: 8px;
  --r-chip: 4px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 14px/1.45 "Be Vietnam Pro", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }

.icon { display: inline-flex; width: 20px; height: 20px; flex: none; }
.icon svg { width: 100%; height: 100%; }
.icon.sm { width: 16px; height: 16px; }
.icon.lg { width: 24px; height: 24px; }

/* Frame */
.frame {
  display: flex;
  height: calc(100vh - 32px);
  margin: 16px;
  padding: 16px;
  background: var(--frame);
  border-radius: var(--r-frame);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 30px rgba(16, 24, 40, .05);
  min-width: 1180px;
}

/* Sidebar */
.sidebar {
  width: 280px;
  flex: none;
  display: flex;
  flex-direction: column;
  padding: 36px 24px 24px;
  background: var(--sidebar);
  border-radius: var(--r-side) 0 0 var(--r-side);
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--blue); font-size: 20px; font-weight: 600; margin: 0 0 0 0; height: 30px; }
.brand .icon { width: 32px; height: 32px; }
.nav { display: flex; flex-direction: column; gap: 4px; margin-top: 34px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  height: 44px; padding: 0 16px;
  border-radius: var(--r-control);
  color: var(--ink); font-size: 16px;
  cursor: pointer; user-select: none;
  border: 0; background: none; width: 100%; text-align: left;
}
.nav-item:hover { background: rgba(233, 238, 247, .6); }
.nav-item.active { background: var(--nav-active); color: var(--blue); }
.nav-item.open { color: var(--blue); }
.nav-item .caret { margin-left: auto; color: var(--chevron); width: 16px; height: 16px; }
.nav-item.open .caret { color: var(--blue); }
.nav-sub { display: flex; flex-direction: column; gap: 4px; }
.nav-sub a { display: flex; align-items: center; height: 44px; padding: 0 16px 0 48px; border-radius: var(--r-control); font-size: 14px; color: var(--ink); }
.nav-sub a:hover { background: rgba(233, 238, 247, .6); }
.nav-sub a.active { background: var(--nav-active); color: var(--blue); }
.nav-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding-top: 24px; }

/* Main column */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 12px;
  height: 84px; padding: 0 24px; flex: none;
  border-bottom: 1px solid #F2F3F4;
}
.search {
  display: flex; align-items: center; gap: 10px;
  width: 424px; height: 36px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: var(--r-control); background: #fff;
}
.search .icon { width: 18px; height: 18px; color: var(--ink); }
.search input { border: 0; outline: 0; flex: 1; font-size: 14px; background: none; color: var(--ink); }
.search input::placeholder { color: var(--ink); }
.topbar .spacer { flex: 1; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 36px; height: 36px; border: 1px solid var(--border); border-radius: var(--r-control);
  background: #fff; color: var(--ink); cursor: pointer;
}
.icon-btn .icon { width: 18px; height: 18px; }
.icon-btn .dot { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); border: 1.5px solid #fff; }
.content { flex: 1; overflow-y: auto; padding: 16px 24px 32px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 16px; border-radius: var(--r-control);
  border: 1px solid var(--border); background: #fff; color: var(--ink);
  font-size: 14px; font-weight: 400; cursor: pointer; white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; }
.btn:hover { border-color: #D9DDE3; }
.btn-primary { height: 44px; padding: 0 20px; background: var(--button); border-color: var(--button); color: #fff; font-weight: 500; }
.btn-primary:hover { background: var(--button-hover); border-color: var(--button-hover); }
.btn-primary.compact { height: 36px; padding: 0 16px; }
.btn-upgrade { width: 118px; background: var(--upgrade-bg); border-color: var(--upgrade-border); color: var(--upgrade-text); }
.btn-upgrade:hover { border-color: var(--upgrade-border); background: #D7FBE2; }
.btn-soft { background: var(--soft); border-color: var(--soft); color: var(--muted); }
.btn-soft:hover { border-color: var(--border); }
.btn-soft.on { background: var(--tint); border-color: var(--tint); color: var(--blue); }
.btn-danger { background: var(--pink-bg); border-color: var(--pink-bg); color: var(--pink-text); }
.btn-danger:hover { border-color: #F4C7D8; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.link { color: var(--link); background: none; border: 0; padding: 0; cursor: pointer; font-size: 14px; }
.link:hover { text-decoration: underline; }

/* Headings */
.page-title { font-size: 22px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.section-title { font-size: 20px; font-weight: 600; color: var(--ink); }
.card-title { font-size: 18px; font-weight: 600; color: var(--ink); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.page-head { margin-bottom: 26px; }
.sub { color: var(--slate); font-size: 14px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }

/* Stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 20px; }
.stat-card {
  display: flex; gap: 12px; height: 96px; padding: 20px;
  border: 1px solid var(--card-border); border-radius: var(--r-card); background: #fff;
}
.stat-card > .icon { width: 22px; height: 22px; color: var(--slate); margin-top: 1px; }
.stat-label { font-size: 14px; font-weight: 500; color: var(--slate); line-height: 20px; }
.stat-value { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.stat-value b { font-size: 28px; font-weight: 600; color: var(--navy); line-height: 32px; }
.stat-value span { font-size: 12px; color: var(--link); }

/* Layout grid with right column */
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 262px; gap: 20px; margin-top: 24px; align-items: start; }
.aside { display: flex; flex-direction: column; gap: 24px; }

/* Cards */
.card { border: 1px solid var(--card-border); border-radius: var(--r-card); background: #fff; padding: 20px; }
.card-pad-lg { padding: 24px 20px; }
.card + .card { margin-top: 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Performance */
.metric-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.metric { padding: 20px; border: 1px solid transparent; border-radius: var(--r-control); cursor: default; }
.metric.selected { border-color: var(--selected); }
.metric-label { font-size: 14px; color: var(--slate); }
.metric-value { font-size: 28px; font-weight: 600; color: var(--navy); margin-top: 14px; line-height: 34px; }
.metric-foot { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 14px; color: var(--slate); }
.trend { display: inline-flex; padding: 1px 8px; border-radius: var(--r-chip); font-size: 12px; font-weight: 500; background: var(--green-bg); color: var(--green-text); }
.trend.down { background: var(--amber-bg); color: var(--amber-text); }
.trend.none { background: var(--soft); color: var(--muted); }

.chart-block { padding: 28px 20px 0; }
.chart-title { font-size: 17px; font-weight: 500; color: var(--slate-2); }
.legend { display: flex; gap: 32px; margin-top: 16px; }
.legend-item { font-size: 14px; color: var(--slate); }
.legend-item i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.legend-item b { display: block; margin: 6px 0 0 14px; font-size: 18px; font-weight: 500; color: var(--navy); }
.chart-toggles { display: flex; justify-content: flex-end; gap: 12px; margin-top: 4px; }
.chart-toggle { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 6px; background: none; color: #7E879F; cursor: pointer; }
.chart-toggle.on { background: var(--tint); color: var(--blue); }
.chart-toggle .icon { width: 18px; height: 18px; }
.chart { position: relative; height: 300px; margin-top: 8px; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart .tick { font-size: 13px; fill: var(--axis); font-family: inherit; }
.chart-tip {
  position: absolute; pointer-events: none; background: #fff; border: 1px solid var(--border); border-radius: var(--r-control);
  padding: 8px 12px; font-size: 12px; color: var(--slate); box-shadow: 0 6px 18px rgba(16, 24, 40, .08); white-space: nowrap;
}
.chart-tip b { color: var(--navy); font-weight: 600; }

/* Select styled as the design's dropdown */
.select, select.select {
  appearance: none; -webkit-appearance: none;
  height: 30px; padding: 0 34px 0 12px; border: 1px solid #F0F1F4; border-radius: var(--r-control);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%23212948'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") no-repeat right 12px center / 14px;
  font-size: 14px; color: #212948; cursor: pointer;
}

/* Right column status card */
.status-group { padding: 16px 0; border-top: 1px solid var(--border); }
.status-group:first-of-type { border-top: 0; padding-top: 12px; }
.status-group:last-child { padding-bottom: 0; }
.status-group h4 { font-size: 14px; font-weight: 500; color: #1F2746; margin-bottom: 12px; }
.status-item { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--slate); }
.status-item + .status-item { margin-top: 12px; }
.status-item .icon { width: 16px; height: 16px; margin-top: 2px; }
.status-item .warn { color: var(--amber-icon); }
.status-item .ok { color: #2A8C47; }
.status-item .pending { color: #B6BDCC; }
.status-item a.link { display: inline; }
.usage { margin-top: 20px; }
.usage + .usage { margin-top: 28px; }
.usage-label { font-size: 16px; color: #1F2746; }
.usage-value { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 22px; color: #676E8C; }
.usage-value i { width: 16px; height: 16px; border: 2px solid var(--ink); border-radius: 50%; }
.usage-value i.full { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 2px #fff; }
.usage-note { margin-top: 12px; font-size: 14px; }

/* Tab bar (sits under the top bar) */
.tabbar { display: flex; gap: 36px; height: 52px; padding: 0 24px; flex: none; background: var(--tabbar); border-bottom: 1px solid #F0F2F5; }
.tab { display: inline-flex; align-items: center; gap: 6px; position: relative; font-size: 14px; color: var(--slate); }
.tab .icon { width: 16px; height: 16px; }
.tab.active { color: #000029; font-weight: 600; }
.tab.active::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: -1px; height: 2px; background: #105FEF; border-radius: 2px; }
.tab .count { font-size: 12px; color: var(--muted); font-weight: 400; }

/* Table */
.toolbar { display: flex; align-items: center; gap: 16px; }
.toolbar .btn-soft { height: 36px; }
.table-card { margin-top: 24px; border: 1px solid var(--table-border); border-radius: var(--r-card); padding: 4px 24px 8px; background: #fff; }
table.data { width: 100%; border-collapse: collapse; }
table.data th { text-align: left; font-weight: 400; color: #374168; font-size: 14px; height: 64px; white-space: nowrap; }
table.data th .icon { width: 14px; height: 14px; vertical-align: -2px; }
table.data td { height: 53px; border-top: 1px solid var(--row-line); font-size: 14px; color: #364068; padding-right: 16px; }
table.data th { padding-right: 16px; }
table.data tr > :last-child { padding-right: 0; }
table.data td.strong { color: var(--ink); }
table.data tbody tr.click { cursor: pointer; }
table.data tbody tr.click:hover td { background: #FBFCFE; }
.cell-person { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.avatar { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 10px; font-weight: 600; flex: none; }
.avatar.lg { width: 44px; height: 44px; font-size: 16px; }
.truncate { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.empty { padding: 48px 0 40px; text-align: center; color: var(--slate); }
.empty .icon { width: 32px; height: 32px; color: #9AA3B8; }
.empty h3 { margin-top: 12px; font-size: 16px; font-weight: 500; color: var(--ink); }
.empty p { margin: 6px 0 20px; }

/* Chips */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: var(--r-chip); font-size: 12px; white-space: nowrap; }
.chip-green { background: var(--green-bg); color: var(--green-text); }
.chip-blue { background: var(--blue-bg); color: var(--blue-text); }
.chip-amber { background: var(--amber-bg); color: var(--amber-text); }
.chip-muted { background: var(--soft); color: var(--muted); }
.chip-pink { background: var(--pink-bg); color: var(--pink-text); }
.chip .icon { width: 12px; height: 12px; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.form-grid .full { grid-column: 1 / -1; }
.field label, .label { display: block; font-size: 14px; font-weight: 500; color: #1F2746; margin-bottom: 8px; }
.input, .textarea, .field select:not(.select) {
  width: 100%; height: 40px; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--r-control);
  background: #fff; font-size: 14px; color: var(--ink); outline: 0;
}
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%23212948'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") no-repeat right 14px center / 14px;
}
.textarea { height: auto; min-height: 84px; padding: 10px 14px; resize: vertical; }
.input:focus, .textarea:focus { border-color: var(--selected); box-shadow: 0 0 0 3px rgba(46, 115, 240, .12); }
.input::placeholder, .textarea::placeholder { color: #9AA3B8; }
.hint { margin-top: 6px; font-size: 12px; color: var(--muted); }
.form-actions { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.form-actions .right { margin-left: auto; }
.field-inline { display: flex; gap: 12px; }
.field-inline .input { flex: 1; }

.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.choices.two { grid-template-columns: repeat(2, 1fr); }
.choice { position: relative; display: block; padding: 18px 20px; border: 1px solid var(--card-border); border-radius: var(--r-control); cursor: pointer; background: #fff; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) { border-color: var(--selected); }
.choice .choice-head { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ink); }
.choice .choice-head .icon { color: var(--slate); }
.choice:has(input:checked) .choice-head .icon { color: var(--blue); }
.choice p { margin-top: 8px; font-size: 13px; color: var(--slate); }
.choice .tag { margin-left: auto; }

.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; color: var(--ink); }
.check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--selected); }
.check small { display: block; color: var(--slate); font-size: 13px; margin-top: 2px; }
.group-list { max-height: 240px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--r-control); padding: 6px 14px; }
.group-list .check { padding: 8px 0; }
.group-list .check + .check { border-top: 1px solid #F2F3F5; }

.dropzone { display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px dashed #CBD3E1; border-radius: var(--r-control); background: var(--tabbar); }
.dropzone.drag { border-color: var(--selected); background: var(--tint); }
.dropzone .icon { width: 28px; height: 28px; color: var(--blue); }
.dropzone input[type=file] { display: none; }
.dropzone .file-name { color: var(--ink); font-weight: 500; }

/* Flash */
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--r-control); font-size: 14px; margin-bottom: 16px; }
.flash .icon { width: 18px; height: 18px; margin-top: 1px; }
.flash-success { background: var(--green-bg); color: var(--green-text); }
.flash-error { background: var(--pink-bg); color: var(--pink-text); }
.flash-code { background: var(--blue-bg); color: var(--blue-text); font-weight: 500; }

/* Setup progress steps */
.steps { display: flex; flex-direction: column; }
.step { display: flex; gap: 12px; align-items: center; padding: 12px 0; font-size: 14px; color: var(--slate); border-top: 1px solid var(--border); }
.step:first-child { border-top: 0; }
.step .ring { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #B6BDCC; flex: none; }
.step.done .ring { border-color: #2A8C47; background: #2A8C47; box-shadow: inset 0 0 0 3px #fff; }
.step.current { color: var(--blue); font-weight: 500; }
.step.current .ring { border-color: var(--blue); }
.step a { color: inherit; }

/* WhatsApp link */
.qr-wrap { display: grid; grid-template-columns: 264px 1fr; gap: 32px; align-items: start; }
.qr-box { width: 264px; height: 264px; border: 1px solid var(--card-border); border-radius: var(--r-card); display: grid; place-items: center; background: #fff; overflow: hidden; }
.qr-box img { width: 232px; height: 232px; image-rendering: pixelated; }
.qr-box .qr-state { text-align: center; color: var(--slate); padding: 20px; }
.qr-box .qr-state .icon { width: 36px; height: 36px; color: var(--blue); }
.qr-box .qr-state.ok .icon { color: #2A8C47; }
.howto { counter-reset: s; list-style: none; padding: 0; margin: 12px 0 0; }
.howto li { position: relative; padding-left: 32px; margin-top: 12px; color: var(--slate); }
.howto li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--tint); color: var(--blue); font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.howto b { color: var(--ink); font-weight: 500; }

/* Client header */
.client-head { display: flex; align-items: center; gap: 16px; }
.client-head .meta { display: flex; align-items: center; gap: 12px; margin-top: 4px; font-size: 14px; color: var(--slate); }
.client-head .actions { margin-left: auto; display: flex; gap: 12px; }

/* Key/value rows */
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 14px 16px; font-size: 14px; }
.kv dt { color: var(--slate); }
.kv dd { margin: 0; color: var(--ink); word-break: break-word; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; }
.copy-field { display: flex; align-items: center; gap: 8px; padding: 0 6px 0 14px; height: 40px; border: 1px solid var(--border); border-radius: var(--r-control); background: var(--tabbar); }
.copy-field span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.copy-field .icon-btn { width: 30px; height: 30px; border: 0; background: none; }

/* Try the bot */
.try { display: flex; flex-direction: column; height: 360px; }
.try-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 2px 12px; }
.bubble { max-width: 86%; padding: 9px 12px; border-radius: 10px; font-size: 13px; line-height: 1.45; white-space: pre-wrap; }
.bubble.me { align-self: flex-end; background: var(--tint); color: var(--navy); border-bottom-right-radius: 3px; }
.bubble.bot { align-self: flex-start; background: var(--soft); color: var(--ink); border-bottom-left-radius: 3px; }
.bubble small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.try form { display: flex; gap: 8px; }
.try form .input { height: 36px; }

/* Notifications panel */
.popover { position: absolute; top: 44px; right: 0; width: 360px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: 0 12px 32px rgba(16, 24, 40, .1); z-index: 20; padding: 8px 0; }
.popover-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 16px 10px; font-weight: 600; }
.popover-item { display: flex; gap: 10px; padding: 10px 16px; border-top: 1px solid #F2F3F5; font-size: 13px; color: var(--slate); }
.popover-item b { display: block; color: var(--ink); font-weight: 500; }
.popover-item .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--blue); }
.popover-item.warning .icon { color: var(--amber-icon); }
.popover-empty { padding: 20px 16px; color: var(--slate); font-size: 13px; }
.pop-anchor { position: relative; }

/* Details/expand rows */
details.msg summary { list-style: none; cursor: pointer; }
details.msg summary::-webkit-details-marker { display: none; }
.msg-full { white-space: pre-wrap; padding: 12px 0 16px; color: var(--ink); }

/* Auth */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 32px; }
.auth-card { width: 440px; background: #fff; border-radius: 24px; padding: 40px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 30px rgba(16, 24, 40, .05); }
.auth-card .brand { margin-bottom: 32px; }
.auth-card .page-title { margin-bottom: 6px; }
.auth-card .field + .field { margin-top: 18px; }
.auth-card .btn-primary { width: 100%; margin-top: 28px; }

.danger-zone { border-color: #F6D5E1; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.help-section + .help-section { margin-top: 28px; }
.help-section p, .help-section li { color: var(--slate); }
.help-section ol { padding-left: 20px; margin: 10px 0 0; }
.help-section li + li { margin-top: 8px; }
.help-section h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
