/* Token warna konsol IPMan.
   Setiap warna adalah token atau varian alpha dari token tersebut. */

:root {
  --bg: #F3F5F9;
  --sf: #FFFFFF;
  --sf2: #F8FAFD;
  --bd: #E5E8EE;
  --bd2: #EEF0F4;
  --tx: #111827;
  --t2: #4B5563;
  --t3: #6B7280;
  --navy: #0B2E6B;
  --navy-2: #123E82;
  --blue: #2563C9;
  --blue-l: #E8F0FC;
  --blue-d: #1E40AF;
  --org: #E8820C;
  --org-l: #FFF4E5;
  --org-d: #9A4A00;
  --crit: #C62828;
  --crit-l: #FDECEC;
  --ok: #15803D;
  --ok-l: #E7F6EC;
  --r1: 20px;
  --r2: 14px;
  --r3: 10px;
  --sh: 0 1px 2px rgba(17, 24, 39, .05), 0 10px 26px -10px rgba(17, 24, 39, .12);
  --sh2: 0 2px 6px rgba(17, 24, 39, .06), 0 24px 50px -18px rgba(17, 24, 39, .24);
  --side-w: 244px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: Lato, "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { height: 100%; scrollbar-gutter: stable; scroll-behavior: auto; }
body {
  margin: 0;
  color: var(--tx);
  font-family: var(--font);
  font-size: 13.5px;
  background:
    radial-gradient(900px 520px at 92% -8%, rgba(37, 99, 201, .10), transparent 62%),
    radial-gradient(760px 460px at -12% 8%, rgba(11, 46, 107, .09), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i.sm { width: 15px; height: 15px; }

/* ---------------- shell ---------------- */
.app { display: flex; min-height: 100vh; min-height: 100dvh; }
.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w); z-index: 40;
  display: flex; flex-direction: column;
  background:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 100% 26px,
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 26px 100%,
    linear-gradient(170deg, var(--navy) 0%, #0A2455 58%, var(--navy-2) 140%);
  color: #E8EEF9; overflow-x: hidden;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 20px 18px 16px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(160deg, #ffffff, #DCE8FF); color: var(--navy);
  font-weight: 900; font-size: 13px; letter-spacing: .03em;
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .6);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-text b { font-size: 17px; font-weight: 900; color: #fff; letter-spacing: -.01em; }
.brand-text small { font-size: 11px; color: #9FB4D8; margin-top: 3px; }
.env {
  margin-left: auto; font-size: 9.5px; font-weight: 900; letter-spacing: .1em;
  color: #FFD9A3; border: 1px solid rgba(255, 217, 163, .35); background: rgba(232, 130, 12, .16);
  padding: 3px 7px; border-radius: 999px;
}
.nav { display: flex; flex-direction: column; gap: 3px; padding: 4px 12px 12px; flex: 1; overflow-y: auto; overflow-x: hidden; }
.nav-group {
  font-size: 10px; letter-spacing: .11em; text-transform: uppercase; color: #8FA6CE;
  padding: 16px 10px 7px; font-weight: 800;
}
.nav-item {
  position: relative; display: flex; align-items: center; gap: 10px; height: 42px;
  padding: 0 12px; border: 0; border-radius: 11px; background: transparent;
  color: #D5E0F2; font-weight: 700; text-align: left; width: 100%;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.nav-item:hover { background: rgba(255, 255, 255, .09); color: #fff; }

.nav-item[aria-current="page"] {
  background: linear-gradient(180deg, #FFFFFF, #F4F8FF); color: var(--navy);
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .8);
}
.nav-item[aria-current="page"] .nav-count {
  background: var(--blue-l); color: var(--blue-d);
}
.nav-item[aria-current="page"]::before {
  content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--org);
}
.nav-count, .nav-badge {
  margin-left: auto; font-size: 10.5px; font-weight: 800; padding: 2px 7px;
  border-radius: 999px; background: rgba(255, 255, 255, .12); color: #CFE0FF;
}
.nav-badge { background: var(--org); color: #fff; }
.side-foot { padding: 12px; border-top: 1px solid rgba(255, 255, 255, .12); }
.license {
  display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .10);
}
.license-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #DCE8FF; }
.license-body { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.license-body b { font-size: 12px; color: #fff; }
.license-body small { font-size: 10.5px; color: #9FB4D8; margin-top: 2px; }
.license .dot { margin-left: auto; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--t3); flex: none; }
.dot.ok { background: #4ADE80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .18); }
.dot.warn { background: var(--org); box-shadow: 0 0 0 3px rgba(232, 130, 12, .18); }
.dot.crit { background: #F87171; box-shadow: 0 0 0 3px rgba(248, 113, 113, .2); }
.version { margin-top: 10px; padding: 0 4px; font-size: 10.5px; color: #8FA6CE; }

.main { flex: 1; min-width: 0; margin-left: var(--side-w); display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 35; height: 64px; display: flex; align-items: center; gap: 14px;
  padding: 0 22px; background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px) saturate(1.35); -webkit-backdrop-filter: blur(14px) saturate(1.35);
  border-bottom: 1px solid var(--bd);
}
.menu-btn { display: none; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; color: var(--t3); }
.crumbs .sep { color: var(--bd); }
.crumbs #crumb { color: var(--tx); }
.command {
  margin-left: 10px; display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 10px 0 12px;
  border: 1px solid var(--bd); border-radius: 11px; background: var(--sf2); color: var(--t3);
  min-width: 300px; max-width: 420px; flex: 1;
}
.command:hover { border-color: #D6DEEA; background: #fff; color: var(--t2); }
.command kbd { margin-left: auto; }
kbd {
  font-family: var(--mono); font-size: 10px; color: var(--t3); background: #fff;
  border: 1px solid var(--bd); border-bottom-width: 2px; border-radius: 6px; padding: 2px 5px;
}
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.live {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 11px;
  border: 1px solid var(--bd); border-radius: 999px; background: #fff; color: var(--t2);
  font-size: 11.5px; font-weight: 800;
}
.live .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.live[aria-pressed="false"] { color: var(--t3); }
.live[aria-pressed="false"] .live-dot { background: var(--t3); }
.role { font-size: 11px; font-weight: 800; color: var(--blue-d); background: var(--blue-l); border-radius: 999px; padding: 5px 10px; }
.avatar {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 9px 0 11px;
  border-radius: 9px; border: 1px solid rgba(255, 255, 255, .22);
  background: linear-gradient(160deg, #0B2E6B, #2563C9); color: #fff;
  font-weight: 700; font-size: 11px; letter-spacing: .02em;
  box-shadow: 0 1px 2px rgba(11, 46, 107, .28);
  transition: box-shadow .12s linear, filter .12s linear;
}
.avatar:hover { box-shadow: 0 0 0 3px #EAF1FD, 0 2px 6px rgba(11, 46, 107, .28); filter: brightness(1.04); }
.avatar-caret {
  width: 6px; height: 6px; border-right: 1.5px solid rgba(255, 255, 255, .85);
  border-bottom: 1.5px solid rgba(255, 255, 255, .85);
  transform: rotate(45deg) translate(-1px, -1px);
}
.syncbar { height: 2px; background: transparent; overflow: hidden; }
.syncbar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), #5B9BFF); }
.syncbar.active span { width: 100%; opacity: .55; }

main { padding: 24px 26px 56px; max-width: 1600px; width: 100%; margin: 0 auto; }

/* ---------------- appbar + module tabs (v0.8 shell) ---------------- */
.main { margin-left: 0; }
.appbar {
  position: sticky; top: 0; z-index: 36; display: flex; align-items: center; gap: 18px;
  padding: 10px 24px; background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--bd); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.appbar .brand { padding: 0; }
.appbar .brand-mark { background: linear-gradient(160deg, var(--navy), var(--blue)); color: #fff; }
.appbar .brand-text b { color: var(--tx); }
.appbar .brand-text small { color: var(--t3); }
.appbar .env { color: var(--org-d); background: var(--org-l); border-color: #F6DDBB; }
.appbar .command { flex: 1; max-width: 560px; margin-left: 18px; }
.appbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.license-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px;
  border: 1px solid var(--bd); border-radius: 999px; background: var(--sf2);
  font-size: 11px; font-weight: 800; color: var(--t2);
}
.tabs {
  position: sticky; top: 59px; z-index: 35; display: flex; gap: 2px; padding: 0 18px;
  background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--bd);
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 14px;
  border: 0; border-bottom: 2px solid transparent; background: transparent;
  color: var(--t3); font-weight: 800; font-size: 12.5px; white-space: nowrap;
}
.tab:hover { color: var(--tx); background: var(--sf2); }
.tab[aria-current="page"] { color: var(--blue-d); border-bottom-color: var(--blue); }
.tab .i { width: 16px; height: 16px; }
.tab-count { font-size: 10px; background: var(--bd2); color: var(--t3); border-radius: 999px; padding: 1px 6px; }
.tab[aria-current="page"] .tab-count { background: var(--blue-l); color: var(--blue-d); }
.tab-badge { background: var(--org); color: #fff; border-radius: 999px; font-size: 10px; font-weight: 800; padding: 1px 6px; }

/* ---------------- heatmap ---------------- */
.hm-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--bd2); }
.hm-head h2 { font-size: 14px; font-weight: 900; }
.hm-head select { height: 34px; border: 1px solid var(--bd); border-radius: 9px; background: #fff; padding: 0 8px; font-family: var(--mono); font-size: 12px; }
.hm-body { padding: 16px; }
.hm-grid { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 5px; }
.hm-cell {
  height: 30px; border-radius: 6px; border: 1px solid var(--bd); background: var(--sf2);
  color: var(--t3); font-family: var(--mono); font-size: 9.5px; display: grid; place-items: center; cursor: pointer;
}
.hm-cell:hover { border-color: var(--blue); }
.hm-cell.alloc { background: #2563C9; border-color: #2563C9; color: #fff; }
.hm-cell.res { background: #D97706; border-color: #D97706; color: #fff; }
.hm-cell.wire { background: #DC2626; border-color: #DC2626; color: #fff; }
.hm-cell.obsv { background: #7C3AED; border-color: #7C3AED; color: #fff; }
.hm-cell.sel { outline: 2px solid var(--navy); outline-offset: 1px; }
.hm-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 11.5px; color: var(--t3); margin-top: 12px; }
.hm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.hm-swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.hm-detail { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 16px; font-size: 12.5px; }
.hm-detail dt { color: var(--t3); font-weight: 700; font-size: 11px; }
.hm-detail dd { margin: 2px 0 0; overflow-wrap: anywhere; }

/* ---------------- conflicts / analytics ---------------- */
.check-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.check-form .input { min-width: 280px; }
.check-result { margin-top: 12px; font-size: 12px; }
.an-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.an-row { display: grid; grid-template-columns: 150px 1fr 54px; gap: 10px; align-items: center; font-size: 12px; margin-bottom: 9px; }
.an-row .track { height: 8px; border-radius: 999px; background: var(--bd2); overflow: hidden; }
.an-row .fill { display: block; height: 100%; border-radius: 999px; background: var(--blue); }
.an-row b { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .license-chip { display: none; }
  .appbar { gap: 10px; }
  .appbar .brand-text small { display: none; }
  .tab { padding: 0 10px; font-size: 12px; }
}
@media (max-width: 900px) {
  .an-grid { grid-template-columns: 1fr; }
  .hm-grid { gap: 3px; }
  .hm-cell { height: 24px; font-size: 8px; }
  .appbar .command { display: none; }
  .appbar { padding: 8px 12px; }
  .tabs { padding: 0 8px; }
}
/* ---------------- hero ---------------- */
.hero {
  position: relative; overflow: hidden; border-radius: var(--r1); padding: 26px 28px 22px; margin-bottom: 18px;
  background:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 100% 28px,
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 28px 100%,
    radial-gradient(700px 320px at 88% -30%, rgba(96, 165, 250, .45), transparent 60%),
    linear-gradient(118deg, var(--navy) 0%, #14418F 62%, var(--blue) 120%);
  color: #fff; box-shadow: var(--sh2);
}
.hero .eyebrow { display: flex; align-items: center; gap: 8px; font-size: 10.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: #A9C2E8; }
.hero .eyebrow .sep { color: rgba(255, 255, 255, .3); }
.hero h1 { font-size: 26px; font-weight: 900; letter-spacing: -.015em; margin: 8px 0 6px; }
.hero p { color: #C6D6EE; font-size: 13px; max-width: 640px; }
.hero-actions { position: absolute; top: 24px; right: 26px; display: flex; gap: 8px; }
.hero-actions .btn { height: 38px; }
.btn.on-dark { background: #fff; border-color: #fff; color: var(--navy); }
.btn.on-dark:hover { background: #F3F7FF; }
.btn.outline-light { background: rgba(255, 255, 255, .10); border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn.outline-light:hover { background: rgba(255, 255, 255, .18); }
.hero-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 7px; height: 27px; padding: 0 10px;
  border-radius: 999px; background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .16);
  font-size: 11.5px; color: #E3EDFB; font-weight: 700;
}
.hero-chip b { font-family: var(--mono); font-weight: 600; color: #fff; }

/* page head for secondary views */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head .eyebrow { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--t3); }
.page-head h1 { font-size: 23px; font-weight: 900; letter-spacing: -.01em; margin-top: 6px; }
.page-head p { color: var(--t3); margin-top: 5px; font-size: 12.5px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px;
  border-radius: var(--r3); border: 1px solid var(--bd); background: var(--sf);
  font-weight: 800; font-size: 12.5px; color: var(--t2);
  transition: background-color .12s linear, border-color .12s linear;
}
.btn:hover { border-color: #D4DBE6; color: var(--tx); background: #fff; }
.btn.primary { background: linear-gradient(180deg, #2F72DB, var(--blue)); border-color: var(--blue); color: #fff; box-shadow: 0 8px 18px -10px rgba(37, 99, 201, .9); }
.btn.primary:hover { background: var(--blue-d); border-color: var(--blue-d); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--crit); border-color: #F3C9C9; background: var(--crit-l); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 11.5px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn {
  width: 36px; height: 36px; border-radius: var(--r3); border: 1px solid var(--bd);
  background: var(--sf); color: var(--t2); display: grid; place-items: center;
}
.icon-btn:hover { background: var(--sf2); }
.icon-btn.sm { width: 28px; height: 28px; border-radius: 8px; }

/* ---------------- kpi ---------------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px;
  background: var(--sf); border: 1px solid var(--bd); border-radius: var(--r2);
  padding: 16px 18px 14px; box-shadow: var(--sh);
}
.kpi-top { display: flex; align-items: center; gap: 10px; }
.kpi-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-l); color: var(--blue-d); }
.kpi.org .kpi-icon { background: var(--org-l); color: var(--org-d); }
.kpi.crit .kpi-icon { background: var(--crit-l); color: var(--crit); }
.kpi.ok .kpi-icon { background: var(--ok-l); color: var(--ok); }
.kpi .label { color: var(--t3); font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.kpi .value { font-size: 29px; font-weight: 900; line-height: 1.05; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kpi .value small { font-size: 13px; font-weight: 800; color: var(--t3); margin-left: 4px; }
.kpi .hint { color: var(--t3); font-size: 11.5px; }
.kpi .meter { margin-top: 8px; height: 5px; border-radius: 999px; background: var(--bd2); overflow: hidden; display: flex; gap: 2px; }
.kpi .meter i { display: block; height: 100%; border-radius: 999px; background: var(--blue); }
.kpi .meter i.alt { background: var(--org); }

/* ---------------- insights ---------------- */
.insights { display: grid; grid-template-columns: 1.1fr 1fr 1.1fr; gap: 14px; margin-bottom: 16px; }
.panel {
  background: var(--sf); border: 1px solid var(--bd); border-radius: var(--r2);
  box-shadow: var(--sh); overflow: hidden; min-width: 0;
}
.panel-head { display: flex; align-items: center; gap: 9px; padding: 13px 16px; border-bottom: 1px solid var(--bd2); }
.panel-head h2 { font-size: 14px; font-weight: 900; letter-spacing: -.01em; }
.panel-head .badge { margin-left: 2px; }
.panel-head .spacer { margin-left: auto; }
.badge {
  font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 999px;
  background: var(--sf2); color: var(--t3); border: 1px solid var(--bd);
}
.badge.real { background: var(--blue-l); color: var(--blue-d); border-color: #CFE0F8; }
.badge.demo { background: var(--org-l); color: var(--org-d); border-color: #F6DDBB; }
.panel-body { padding: 16px; }
.panel-body.flush { padding: 0; }

.donut-wrap { display: flex; align-items: center; gap: 18px; }
.donut { position: relative; width: 124px; height: 124px; flex: none; }
.donut svg { transform: rotate(-90deg); }
.donut .donut-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.donut .donut-center b { font-size: 21px; font-weight: 900; display: block; line-height: 1; }
.donut .donut-center small { font-size: 10px; color: var(--t3); text-transform: uppercase; letter-spacing: .07em; font-weight: 800; }
.legend { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.legend-row { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.legend-row .swatch { width: 9px; height: 9px; border-radius: 3px; }
.legend-row b { margin-left: auto; font-variant-numeric: tabular-nums; }

.pipeline { display: flex; flex-direction: column; gap: 10px; }
.pl-row { display: grid; grid-template-columns: 96px 1fr 32px; gap: 10px; align-items: center; font-size: 11.5px; }
.pl-row .pl-label { color: var(--t2); font-weight: 700; }
.pl-row .track { height: 8px; border-radius: 999px; background: var(--bd2); overflow: hidden; }
.pl-row .fill { display: block; height: 100%; min-width: 2px; border-radius: 999px; background: var(--blue); }
.pl-row .fill.warn { background: var(--org); }
.pl-row .fill.crit { background: var(--crit); }
.pl-row .fill.ok { background: var(--ok); }
.pl-row b { text-align: right; font-variant-numeric: tabular-nums; }

.toplist { display: flex; flex-direction: column; gap: 11px; }
.tl-row { display: flex; flex-direction: column; gap: 5px; }
.tl-top { display: flex; align-items: baseline; gap: 8px; font-size: 11.5px; }
.tl-top .mono { font-size: 11px; }
.tl-top b { margin-left: auto; font-variant-numeric: tabular-nums; }
.tl-track { height: 6px; background: var(--bd2); border-radius: 999px; overflow: hidden; }
.tl-fill { display: block; height: 100%; min-width: 3px; border-radius: 999px; background: linear-gradient(90deg, var(--blue), #6AA2F0); }

/* ---------------- grid + table ---------------- */
.grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: start; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 560px; }
th {
  font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--t3);
  text-align: left; font-weight: 800; padding: 10px 14px; border-bottom: 1px solid var(--bd2);
  background: var(--sf2); white-space: nowrap; position: sticky; top: 0; z-index: 2;
}
th button {
  border: 0; background: transparent; padding: 0; color: inherit; font: inherit;
  text-transform: inherit; letter-spacing: inherit; display: inline-flex; align-items: center; gap: 5px;
}
th button:hover { color: var(--tx); }
th .sort { opacity: .45; font-size: 9px; }
th[aria-sort] .sort { opacity: 1; color: var(--blue); }
td { padding: 11px 14px; border-bottom: 1px solid var(--bd2); font-size: 13px; vertical-align: middle; white-space: nowrap; }
tbody tr { transition: background .12s var(--ease); }
tbody tr:hover { background: #F6F9FF; }
tbody tr:last-child td { border-bottom: 0; }
td.mono { font-size: 12px; }
.cell-main { display: flex; align-items: center; gap: 6px; }
.copy {
  border: 0; background: transparent; color: var(--t3); padding: 2px; border-radius: 6px;
  display: inline-grid; place-items: center; opacity: 0; transition: opacity .12s var(--ease);
}
tr:hover .copy, .copy:focus-visible { opacity: 1; }
.copy:hover { color: var(--blue); background: var(--blue-l); }
.muted { color: var(--t3); }
.empty { padding: 30px 16px; color: var(--t3); text-align: center; font-size: 12.5px; }

/* rows as buttons (a11y) */
tr[data-action] { cursor: pointer; }
tr[data-action]:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }

/* ---------------- prefix explorer (tree + node detail) ---------------- */
.explorer { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 16px; align-items: start; }
.explorer-tree {
  position: sticky; top: 80px; max-height: calc(100vh - 108px); max-height: calc(100dvh - 108px);
  display: flex; flex-direction: column; overflow: hidden;
}
.explorer-tree .panel-head { flex: none; }
.explorer-tree .panel-head h2 { font-size: 13.5px; }
.explorer-search { padding: 10px 12px; border-bottom: 1px solid var(--bd2); flex: none; }
.explorer-search .input { width: 100%; min-width: 0; }
.explorer-tree .pt { overflow: auto; overscroll-behavior: contain; padding: 8px 10px 12px; flex: 1; }
.explorer-tree .pt-row { min-height: 38px; }
.explorer-tree .pt-prefix { font-size: 12px; }
.explorer-tree .pt-tag { max-width: 116px; font-size: 10.5px; }

.explorer-detail { min-width: 0; min-height: 560px; }
.detail-head { padding: 15px 18px 14px; border-bottom: 1px solid var(--bd2); }
.detail-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 11.5px; color: var(--t3); margin-bottom: 7px; }
.crumb-link {
  border: 0; background: transparent; padding: 2px 5px; border-radius: 6px;
  color: var(--t3); font-weight: 800; font-size: 11.5px;
}
.crumb-link:hover { color: var(--blue-d); background: var(--blue-l); }
.crumb-sep { color: #C3CBD8; }
.detail-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.detail-title-row h2 { font-size: 23px; font-weight: 900; letter-spacing: -.015em; }
.detail-title-row p { font-size: 12px; margin-top: 5px; }
.detail-actions { display: flex; gap: 8px; flex: none; }

.x-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 16px 18px 6px; }
.x-kpi {
  display: flex; flex-direction: column; gap: 5px; min-width: 0;
  border: 1px solid var(--bd); border-radius: 12px; padding: 12px 13px; background: var(--sf2);
}
.x-kpi-label { font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: var(--t3); font-weight: 800; }
.x-kpi-value { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; }
.x-kpi-value b { font-size: 25px; font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.x-kpi-value small { font-size: 10.5px; color: var(--t3); font-weight: 700; }
.x-kpi-hint { font-size: 11px; color: var(--t3); }
.x-kpi.ok .x-kpi-value b { color: var(--ok); }
.x-kpi.org .x-kpi-value b { color: var(--org-d); }
.x-meter { height: 5px; border-radius: 999px; background: var(--bd); overflow: hidden; margin-top: 3px; }
.x-meter i { display: block; height: 100%; border-radius: 999px; background: var(--blue); }

.detail-table { margin-top: 10px; border-top: 1px solid var(--bd2); }
.explorer-detail table { min-width: 0; width: 100%; table-layout: fixed; }
.explorer-detail th, .explorer-detail td { padding: 9px 10px; font-size: 12.5px; }
.explorer-detail td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.explorer-detail td:nth-child(2) { white-space: normal; overflow: visible; }
.explorer-detail th:nth-child(1), .explorer-detail td:nth-child(1) { width: 30%; }
.explorer-detail th:nth-child(2), .explorer-detail td:nth-child(2) { width: 21%; }
.explorer-detail th:nth-child(3), .explorer-detail td:nth-child(3) { width: 13%; }
.explorer-detail th:nth-child(4), .explorer-detail td:nth-child(4) { width: 14%; }
.explorer-detail th:nth-child(5), .explorer-detail td:nth-child(5) { width: 10%; }
.explorer-detail th:nth-child(6), .explorer-detail td:nth-child(6) { width: 12%; }
.detail-table-head { display: flex; align-items: center; gap: 8px; padding: 13px 18px; border-bottom: 1px solid var(--bd2); }
.detail-table-head h3 { font-size: 13.5px; font-weight: 900; }
.detail-table-head .spacer { margin-left: auto; }

.usage { display: flex; align-items: center; gap: 8px; }
.usage-track { display: block; width: 84px; height: 6px; border-radius: 999px; background: var(--bd); overflow: hidden; }
.usage-fill { display: block; height: 100%; border-radius: 999px; background: var(--blue); }
.usage-fill.warn { background: var(--org); }

@media (max-width: 1280px) {
  .explorer { grid-template-columns: 340px minmax(0, 1fr); }
  .x-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .explorer { grid-template-columns: 1fr; }
  .explorer-detail { min-height: 0; }
  .explorer-tree { position: static; max-height: 360px; }
  .detail-title-row h2 { font-size: 20px; }
}
@media (max-width: 760px) {
  .x-kpis { grid-template-columns: 1fr 1fr; padding: 12px; }
  .x-kpi-value b { font-size: 21px; }
  .detail-head, .detail-table-head { padding-left: 12px; padding-right: 12px; }
  .detail-actions { width: 100%; }
  .detail-actions .btn { flex: 1; }
}

/* ---------------- prefix tree (subnet planning) ---------------- */
.pt { padding: 10px 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.pt-node { position: relative; }
.pt-row {
  position: relative; display: flex; align-items: center; gap: 9px;
  min-height: 42px; padding: 4px 10px 4px 6px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer;
}
.pt-row:hover { background: #F6F9FF; }
.pt-row:focus-visible { outline: 2px solid var(--blue); outline-offset: -1px; }
.pt-row.selected {
  border-color: #CFE0F8; background: linear-gradient(90deg, #F3F8FF, #FFFFFF);
  box-shadow: inset 3px 0 0 var(--blue);
}
.pt-toggle {
  width: 24px; height: 24px; flex: none; border: 0; border-radius: 7px;
  background: transparent; color: var(--t3); display: grid; place-items: center;
}
.pt-toggle:hover { background: var(--sf2); color: var(--tx); }

.pt-node[aria-expanded="true"] > .pt-row .pt-toggle .i { transform: rotate(90deg); }
.pt-toggle.leaf { cursor: default; }
.pt-toggle .pt-dash { display: block; width: 9px; height: 1px; background: var(--bd); }
.pt-icon {
  width: 26px; height: 26px; flex: none; border-radius: 7px;
  display: grid; place-items: center; background: var(--blue-l); color: var(--blue-d);
}
.pt-icon.k32 { background: #E8F0FC; color: #1E40AF; }
.pt-icon.k48 { background: #F0EAFE; color: #6D28D9; }
.pt-icon.k64 { background: var(--org-l); color: var(--org-d); }
.pt-icon.k128 { background: var(--ok-l); color: var(--ok); }
.pt-prefix { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.pt-tag {
  flex: 0 0 auto; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: var(--sf2); border: 1px solid var(--bd); border-radius: 7px; padding: 3px 8px;
  font-size: 11px; font-weight: 700; color: var(--t2);
}
.pt-owner { flex: 0 0 auto; color: var(--t3); font-size: 11.5px; }
.pt-row .chip { flex: 0 0 auto; }
.pt-children {
  margin-left: 20px; padding-left: 14px; border-left: 1px solid var(--bd);
  display: flex; flex-direction: column; gap: 2px;
}
.pt-row::before {
  content: ""; position: absolute; left: -15px; top: 50%; width: 12px; height: 1px; background: var(--bd);
}
.pt > .pt-node > .pt-row::before { display: none; }
@media (max-width: 1100px) {
  .pt-owner { display: none; }
}
@media (max-width: 760px) {
  .pt { padding: 6px 8px 12px; }
  .pt-tag { max-width: 92px; }
  .pt-row .chip { display: none; }
  .pt-prefix { font-size: 12px; }
  .pt-children { margin-left: 12px; padding-left: 10px; }
  .pt-row::before { left: -11px; width: 8px; }
  .pt-row { gap: 7px; padding: 4px 6px; }
}

/* ---------------- chips ---------------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.chip .d { width: 6px; height: 6px; border-radius: 50%; }
.chip.ok { background: var(--ok-l); color: var(--ok); } .chip.ok .d { background: var(--ok); }
.chip.warn { background: var(--org-l); color: var(--org-d); } .chip.warn .d { background: var(--org); }
.chip.crit { background: var(--crit-l); color: var(--crit); } .chip.crit .d { background: var(--crit); }
.chip.info { background: var(--blue-l); color: var(--blue-d); } .chip.info .d { background: var(--blue); }
.chip.neutral { background: var(--sf2); color: var(--t3); border: 1px solid var(--bd); } .chip.neutral .d { background: var(--t3); }

/* ---------------- toolbar / controls ---------------- */
.toolbar { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-bottom: 1px solid var(--bd2); flex-wrap: wrap; }
.toolbar .grow { flex: 1; }
.input {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px;
  border: 1px solid var(--bd); border-radius: var(--r3); background: var(--sf2); color: var(--t3); min-width: 210px;
}
.input input { border: 0; background: transparent; outline: none; width: 100%; color: var(--tx); font-size: 12.5px; }
.seg { display: inline-flex; background: var(--sf2); border: 1px solid var(--bd); border-radius: 11px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; height: 28px; padding: 0 11px; border-radius: 8px; font-size: 11.5px; font-weight: 800; color: var(--t2); display: inline-flex; align-items: center; gap: 6px; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--blue-d); box-shadow: 0 1px 3px rgba(17, 24, 39, .10), inset 0 0 0 1px #CFE0F8; }
.seg .n { font-size: 10px; font-weight: 800; background: var(--bd2); color: var(--t3); border-radius: 999px; padding: 1px 6px; }
.seg button[aria-pressed="true"] .n { background: var(--blue-l); color: var(--blue-d); }
select.control, .control {
  height: 34px; border: 1px solid var(--bd); border-radius: var(--r3); background: #fff;
  padding: 0 9px; font-size: 12px; color: var(--t2);
}
.toolbar .count { color: var(--t3); font-size: 11.5px; margin-left: auto; }

.pager { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--bd2); flex-wrap: wrap; }
.pager .pages { display: flex; gap: 4px; margin-left: auto; }
.pager button {
  min-width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--bd); background: #fff;
  color: var(--t2); font-size: 11.5px; font-weight: 800; padding: 0 8px;
}
.pager button[aria-current="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.pager button:disabled { opacity: .45; cursor: not-allowed; }
.pager .range { color: var(--t3); font-size: 11.5px; }

/* ---------------- drawer / dialog ---------------- */
.drawer, .dialog { position: fixed; inset: 0; z-index: 60; background: rgba(9, 20, 38, .38); display: flex; }
.drawer[hidden], .dialog[hidden] { display: none; }
.drawer { justify-content: flex-end; }
.drawer-panel {
  width: min(560px, 100%); height: 100%; background: var(--sf); box-shadow: var(--sh2);
  display: flex; flex-direction: column;
}
.dialog { align-items: center; justify-content: center; padding: 20px; }
.dialog-panel { width: min(600px, 100%); background: var(--sf); border-radius: var(--r2); box-shadow: var(--sh2); max-height: 92vh; max-height: 92dvh; overflow: auto; }
.drawer-head, .dialog-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--bd2); }
.drawer-head h2, .dialog-head h2 { font-size: 15px; font-weight: 900; }
.drawer-head .icon-btn, .dialog-head .icon-btn { margin-left: auto; }
.drawer-body, .dialog-body { padding: 18px; overflow: auto; }
.drawer-foot, .dialog-foot { margin-top: auto; display: flex; gap: 8px; justify-content: flex-end; padding: 14px 18px; border-top: 1px solid var(--bd2); }
.kv { display: grid; grid-template-columns: 132px 1fr; gap: 9px 12px; font-size: 12.5px; }
.kv dt { color: var(--t3); font-weight: 700; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.section-title { margin: 20px 0 8px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--t3); font-weight: 800; }

.timeline { display: flex; flex-direction: column; gap: 0; margin-top: 6px; }
.tl-step { display: flex; gap: 12px; }
.tl-mark { display: flex; flex-direction: column; align-items: center; }
.tl-mark i { width: 10px; height: 10px; border-radius: 50%; background: var(--bd); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--bd); margin-top: 3px; }
.tl-step.done .tl-mark i { background: var(--blue); box-shadow: 0 0 0 2px var(--blue-l); }
.tl-step.fail .tl-mark i { background: var(--crit); box-shadow: 0 0 0 2px var(--crit-l); }
.tl-mark span { width: 2px; flex: 1; background: var(--bd2); margin: 3px 0; }
.tl-step:last-child .tl-mark span { display: none; }
.tl-content { padding-bottom: 14px; }
.tl-content b { font-size: 12.5px; display: block; }
.tl-content small { color: var(--t3); font-size: 11.5px; }

/* ---------------- forms ---------------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > label { font-size: 10.5px; font-weight: 800; color: var(--t2); text-transform: uppercase; letter-spacing: .06em; }
.field input, .field select, .field textarea {
  height: 38px; border: 1px solid var(--bd); border-radius: var(--r3); padding: 0 11px;
  background: #fff; color: var(--tx); outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 201, .14); }
.field textarea { height: auto; min-height: 76px; padding: 9px 11px; resize: vertical; }
.field .hint { font-size: 11.5px; color: var(--t3); }
.suggest-control { display: flex; gap: 8px; align-items: stretch; }
.suggest-control select { flex: 1; height: 38px; border: 1px solid var(--bd); border-radius: var(--r3); padding: 0 10px; background: #fff; }
.suggest-control .btn { height: 38px; flex: none; }
.suggest-note {
  margin: -4px 0 14px; padding: 8px 10px; border-radius: 9px; font-size: 11.5px;
  background: var(--sf2); border: 1px solid var(--bd); color: var(--t2);
}
.suggest-note.ok { background: var(--blue-l); border-color: #CFE0F8; color: var(--blue-d); }
.suggest-note.warn { background: var(--org-l); border-color: #F6DDBB; color: var(--org-d); }
.check-force {
  display: flex; gap: 8px; align-items: flex-start; margin: -4px 0 14px; padding: 9px 10px;
  border: 1px solid #F3C9C9; background: var(--crit-l); border-radius: 9px;
  font-size: 11.5px; color: var(--crit); font-weight: 700;
}
.check-force input { margin-top: 2px; }
.field input.mono, .field textarea.mono { font-family: var(--mono); font-size: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.error-text { color: var(--crit); font-size: 12px; margin-top: 6px; }

/* ---------------- palette ---------------- */
.palette { position: fixed; inset: 0; z-index: 70; background: rgba(9, 20, 38, .42); display: flex; justify-content: center; padding-top: 12vh; }
.palette[hidden] { display: none; }
.palette-panel {
  width: min(660px, calc(100vw - 28px)); height: fit-content; max-height: 70vh;
  background: #fff; border-radius: 16px; box-shadow: var(--sh2); overflow: hidden;
  display: flex; flex-direction: column;
}
.palette-input { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--bd2); color: var(--t3); }
.palette-input input { flex: 1; border: 0; outline: none; font-size: 14px; color: var(--tx); background: transparent; }
.palette-results { overflow: auto; padding: 6px; }
.palette-group { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--t3); font-weight: 800; padding: 10px 12px 4px; }
.palette-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px;
  border: 0; background: transparent; border-radius: 9px; text-align: left;
}
.palette-item .mono { font-size: 12px; }
.palette-item small { margin-left: auto; color: var(--t3); font-size: 11px; }
.palette-item[aria-selected="true"], .palette-item:hover { background: var(--blue-l); }
.palette-empty { padding: 24px 14px; text-align: center; color: var(--t3); font-size: 12.5px; }
.palette-foot { display: flex; gap: 16px; padding: 9px 14px; border-top: 1px solid var(--bd2); color: var(--t3); font-size: 10.5px; }

/* ---------------- toasts ---------------- */
.toasts { position: fixed; top: 76px; right: 20px; z-index: 80; display: flex; flex-direction: column; gap: 9px; width: min(380px, calc(100vw - 36px)); }
.toast {
  position: relative; overflow: hidden; background: #fff; border: 1px solid var(--bd);
  border-radius: 12px; box-shadow: var(--sh2); padding: 11px 12px 12px 13px; font-size: 12.5px;
  display: flex; gap: 10px; align-items: flex-start;
}
.toast::after { content: none; }
.toast.ok { border-left: 3px solid var(--ok); } .toast.ok::after { background: var(--ok); }
.toast.warn { border-left: 3px solid var(--org); } .toast.warn::after { background: var(--org); }
.toast.crit { border-left: 3px solid var(--crit); } .toast.crit::after { background: var(--crit); }
.toast.info { border-left: 3px solid var(--blue); }
.toast b { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: var(--t3); margin-bottom: 2px; }
.toast .close { margin-left: auto; border: 0; background: transparent; color: var(--t3); }
.toast .toast-count { color: var(--t3); }

/* ---------------- skeleton ---------------- */
.sk { background: var(--bd2); border-radius: 6px; }
.sk-line { height: 12px; margin: 8px 0; }

/* ---------------- tooltip ---------------- */
/* tooltips are rendered by JS in a fixed layer so they never widen the page */
.tip {
  position: fixed; z-index: 95; max-width: 280px; padding: 6px 9px; border-radius: 8px;
  background: #0F172A; color: #fff; font-size: 11.5px; line-height: 1.35; font-weight: 500;
  pointer-events: none; opacity: 0; transition: opacity .1s linear;
  text-align: left; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6);
}
.tip.show { opacity: 1; }

/* Interaction never animates layout or position: no entrance fades, no count-up,
   no hover lifts. Only colour/opacity changes of 120 ms or less remain. */
.view-enter { }

/* ---------------- responsive ---------------- */
@media (max-width: 1400px) {
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .insights { grid-template-columns: 1fr 1fr; }
  .insights .panel:last-child { grid-column: 1 / -1; }
}
@media (max-width: 1220px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: 1fr; }
  .command { min-width: 210px; }
}
@media (max-width: 1100px) {
  .side { transform: translateX(-100%); box-shadow: var(--sh2); }
  .side.open { transform: none; }
  .main { margin-left: 0; }
  .menu-btn { display: grid; }
  .command { display: none; }
}
@media (max-width: 820px) {
  main { padding: 16px 14px 44px; }
  .topbar { padding: 0 12px; height: 58px; gap: 8px; }
  .hero { padding: 20px; }
  .hero-actions { position: static; margin-top: 16px; }
  .hero h1 { font-size: 22px; }
  .insights { grid-template-columns: 1fr; }
  .insights .panel:last-child { grid-column: auto; }
  .role { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 8px; }
}
@media (max-width: 560px) {
  .kpis { grid-template-columns: 1fr; }
  .crumbs span:first-child, .crumbs .sep { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------------- cross-browser and touch devices ---------------- */
/* iOS Safari zooms the page when a focused field is under 16px. */
@media (pointer: coarse) {
  input, select, textarea, .input input, .field input.mono, .field textarea.mono, .ctx-space select, .hm-head select, .palette-input input { font-size: 16px; }
}
/* Remove the 300 ms tap delay and grey tap flash on mobile WebKit. */
button, a, [role="button"], .tab, .nav-item { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
/* Keep content clear of the iPhone notch and home indicator. */
@supports (padding: env(safe-area-inset-left)) {
  @media (max-width: 900px) {
    .appbar { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  }
  @media (max-width: 820px) {
    main { padding-bottom: calc(44px + env(safe-area-inset-bottom)); }
  }
  .drawer-foot, .dialog-foot { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
}
