:root {
  --bg: #070708;
  --ink: #f4f4f5;
  --mute: #8b8b93;
  --bar: #e6e6e8;
  --line: rgba(255, 255, 255, 0.08);
  --panel: #141416;
  --panel-2: #1c1c20;
  --hover: #26262c;
  --banner: #070708;
  --tabs: #101012;
  --modal: #18181c;
  --chip: #121214;
  --err: #fff;
  --submit-ink: #161618;
  --option: #1c1c20;
  --select-arrow: #ffffff;
  --accent: #8d8d93;
  --pill: #f3efe6;
  --radius: 4px;
  --type: Inter, Helvetica Neue, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ico-menu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M5 7h14M5 12h14M5 17h14'/%3E%3C/svg%3E");
  --ico-sessions: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M5 7h14M5 12h14M5 17h14'/%3E%3C/svg%3E");
  --ico-globe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M4 12h16M12 4c2.4 2.6 3.6 5.4 3.6 8s-1.2 5.4-3.6 8c-2.4-2.6-3.6-5.4-3.6-8s1.2-5.4 3.6-8z'/%3E%3C/svg%3E");
  --ico-gear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  --ico-sliders: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M4 8h16M4 16h16'/%3E%3Ccircle cx='9' cy='8' r='2.2' fill='black' stroke='none'/%3E%3Ccircle cx='15' cy='16' r='2.2' fill='black' stroke='none'/%3E%3C/svg%3E");
  --ico-inbox: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13h4.2l1.3 2h5l1.3-2H20'/%3E%3Cpath d='M4 13V7.5A2.5 2.5 0 0 1 6.5 5h11A2.5 2.5 0 0 1 20 7.5V13l-2.2 6.2A2 2 0 0 1 15.9 21H8.1a2 2 0 0 1-1.9-1.8L4 13z'/%3E%3C/svg%3E");
  --ico-users: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Cpath d='M4 19c.4-3 2.4-5 5-5s4.6 2 5 5'/%3E%3Ccircle cx='17' cy='9' r='2.2'/%3E%3Cpath d='M16.2 14.2c2 .5 3.4 2.1 3.8 4.8'/%3E%3C/svg%3E");
  --ico-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s6.5-5.2 6.5-10.2A6.5 6.5 0 0 0 5.5 10.8C5.5 15.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='10.8' r='2.2'/%3E%3C/svg%3E");
  --ico-ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='6' width='17' height='12' rx='2.5'/%3E%3Cpath d='M3.5 10h17'/%3E%3C/svg%3E");
  --ico-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4.2 4.2L19 7.5'/%3E%3C/svg%3E");
  --ico-send: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12l16-7-7 16-2.2-6.8L4 12z'/%3E%3C/svg%3E");
  --ico-more: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='6' cy='12' r='1.7'/%3E%3Ccircle cx='12' cy='12' r='1.7'/%3E%3Ccircle cx='18' cy='12' r='1.7'/%3E%3C/svg%3E");
  --ico-key: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='14' r='3.4'/%3E%3Cpath d='M11 12.2L20 4.8M16.4 5.4l3.2 3.2'/%3E%3C/svg%3E");
  --ico-list: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M8 7h12M8 12h12M8 17h12'/%3E%3Ccircle cx='4.4' cy='7' r='1' fill='black' stroke='none'/%3E%3Ccircle cx='4.4' cy='12' r='1' fill='black' stroke='none'/%3E%3Ccircle cx='4.4' cy='17' r='1' fill='black' stroke='none'/%3E%3C/svg%3E");
  --ico-chat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 17.5V7.8A2.8 2.8 0 0 1 7.8 5h8.4A2.8 2.8 0 0 1 19 7.8v6.2A2.8 2.8 0 0 1 16.2 17H8.5L5 20v-2.5z'/%3E%3C/svg%3E");
  --ico-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E");
  --ico-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E");
  --ico-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4l7 3v5.4c0 4.3-2.8 7.3-7 8.6-4.2-1.3-7-4.3-7-8.6V7l7-3z'/%3E%3Cpath d='M9.2 12.2l2 2 4-4'/%3E%3C/svg%3E");
  --ico-trash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14M10 8V6.5A1.5 1.5 0 0 1 11.5 5h1A1.5 1.5 0 0 1 14 6.5V8M8 8l.7 11.2A1.5 1.5 0 0 0 10.2 21h3.6a1.5 1.5 0 0 0 1.5-1.8L16 8'/%3E%3C/svg%3E");
  --ico-out: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 5h4.2A1.8 1.8 0 0 1 20 6.8v10.4A1.8 1.8 0 0 1 18.2 19H14M10 16l4-4-4-4M14 12H5'/%3E%3C/svg%3E");
  --ico-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 8v4.4l3 1.8'/%3E%3C/svg%3E");
  --ico-page: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4.5h6l5 5V19a1.5 1.5 0 0 1-1.5 1.5h-9.5A1.5 1.5 0 0 1 6.5 19V6A1.5 1.5 0 0 1 8 4.5z'/%3E%3Cpath d='M14 4.5V10h5'/%3E%3C/svg%3E");
  --ico-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ececee;
    --ink: #111;
    --mute: #6a6a70;
    --bar: #2a2a2e;
    --line: #e6e6ea;
    --panel: #fff;
    --panel-2: #f7f7f8;
    --hover: #f0f0f3;
    --banner: #ececee;
    --tabs: #f7f7f8;
    --modal: #fff;
    --chip: #f4f4f6;
    --err: #b42318;
    --submit-ink: #fff;
    --option: #fff;
    --select-arrow: #111111;
    --accent: #6a6a70;
    color-scheme: light;
  }
  .act.primary:hover,
  .modal-submit:hover {
    background: #0046db;
  }
  .act.kick.ghost:hover {
    background: rgba(255, 176, 92, 0.1);
  }
  .act.ghost:hover {
    border-color: #c8c8ce;
  }
  .tabs button.on {
    color: #111;
    background: #ececf0;
  }
  .tabs button.on::after,
  .frame::before {
    background: #6a6a70;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  max-width: 100%;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 var(--type);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}

.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}

.login {
  width: min(420px, 100%);
  padding: 36px 28px 28px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}

.dose {
  margin: 6px 0 18px;
  letter-spacing: 0.18em;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--mute);
}

.login input {
  border: 1px solid var(--line);
  background: var(--chip);
}

.login h1 {
  margin: 0 0 18px;
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -0.04em;
}

label {
  display: block;
  margin-bottom: 12px;
  text-align: left;
  font-size: 12px;
  color: var(--mute);
}

input, select {
  display: block;
  width: 100%;
  margin-top: 5px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  font: 500 13px var(--mono);
  color-scheme: inherit;
}

select option {
  background: var(--option);
  color: var(--ink);
}

input:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(141, 141, 147, 0.35);
}

button[type="submit"], .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  margin-top: 14px;
  border: 0;
  border-radius: var(--radius);
  background: var(--bar);
  color: var(--submit-ink);
  font: 600 13px var(--type);
  cursor: pointer;
}

.btn[data-out]::before,
.domain-add button[type="submit"]::before {
  content: "";
  width: 15px;
  height: 15px;
  background: currentColor;
  -webkit-mask: var(--ico-out) center / contain no-repeat;
  mask: var(--ico-out) center / contain no-repeat;
}

.domain-add button[type="submit"]::before {
  -webkit-mask-image: var(--ico-plus);
  mask-image: var(--ico-plus);
}

button[type="submit"]:hover, .btn:hover {
  opacity: 0.92;
}

.err { color: var(--err); font-size: 12px; text-decoration: underline; }

.pill-shot {
  display: block;
  width: 160px;
  height: auto;
  margin: 0 auto 8px;
  object-fit: contain;
  background: transparent;
}

.pill-shot.sm {
  width: 36px;
  height: auto;
  margin: 0;
  display: block;
  object-fit: contain;
}

.app { display: none; }
body.in .gate { display: none; }

body.in .app {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  gap: 14px;
  padding: 14px;
  background: var(--bg);
}

.banner { display: none; }

.frame {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #121214;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.frame::before {
  content: "";
  display: block;
  height: 1px;
  background: #2a2a2e;
}

.top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px 8px;
}

.brand-box { display: none; }

.head {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.head h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.045em;
}

.now {
  margin: 0;
  font: 12px var(--mono);
  color: var(--mute);
  white-space: nowrap;
}

.screen {
  flex: 1;
  overflow: auto;
  padding: 12px 28px 28px;
  background: var(--bg);
}

.muted { color: var(--mute); font-size: 12px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stat {
  position: relative;
  min-height: 0;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stat::before {
  display: none;
}

.stat b {
  display: block;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.stat span {
  display: block;
  margin-top: 4px;
  font: 11px var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mute);
}

.list { display: grid; gap: 10px; }

.visit {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 2fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 16px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.session-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.session-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.session-main b { font-size: 14px; font-weight: 600; }

.session-page {
  display: inline-block;
  width: fit-content;
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: 11px/1.4 var(--mono);
  color: var(--mute);
  background: var(--panel-2);
}

.session-flags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.presence {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: 11px/1.4 var(--mono);
  color: var(--mute);
  background: var(--panel);
}

.presence::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent);
}

.presence[data-presence="focused"] {
  color: #3ecf8e;
  border-color: rgba(62, 207, 142, 0.35);
}

.presence[data-presence="tabbed"] {
  color: #f09656;
  border-color: rgba(240, 150, 86, 0.4);
}

.presence[data-presence="away"] {
  color: var(--mute);
}

.visit .row { display: contents; }
.visit b { font-size: 14px; }
.ua {
  font: 11px/1.4 var(--mono);
  color: var(--mute);
  word-break: break-word;
}

.actions {
  display: flex;
  gap: 6px;
}

.action-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  flex-wrap: nowrap;
}

.ttl {
  font: 600 12px var(--mono);
  color: var(--mute);
  min-width: 28px;
  text-align: right;
}

.ttl.urgent {
  color: #ffd27d;
}

.test-data-viewer {
  grid-column: 1 / -1;
  margin-top: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--chip);
}

.test-data-viewer-label {
  margin: 0 0 4px;
  font: 10px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}

.test-data-viewer-value {
  margin: 0;
  font: 500 13px var(--mono);
}

.test-data-viewer-value.empty {
  color: var(--mute);
  font-weight: 400;
}

.test-data-seed + .test-data-seed {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.test-data-viewer-from {
  margin: 0 0 6px;
  font: 12px var(--type);
  color: var(--mute);
}

.demo-tools {
  padding: 6px 18px 12px;
}

.demo-tools-banner {
  margin: 0 0 6px;
  font: 600 13px var(--type);
  color: var(--ink);
}

.demo-tools-note {
  margin: 0;
  padding: 8px 18px 14px;
  color: var(--mute);
  font-size: 13px;
  line-height: 1.45;
}

.demo-tools-field + .demo-tools-field {
  margin-top: 14px;
}

.demo-mnemonic-phrase {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  font: 500 14px var(--type);
  line-height: 1.5;
  color: var(--ink);
  word-break: break-word;
}

.data-list {
  display: flex;
  flex-direction: column;
}

.data-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.data-row:last-child {
  border-bottom: 0;
}

.data-label {
  font: 10px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}

.data-value {
  font: 500 13px/1.4 var(--mono);
  color: var(--ink);
  word-break: break-all;
}

.data-empty {
  margin: 0;
  padding: 18px;
  color: var(--mute);
  font: 13px var(--type);
}

.act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  letter-spacing: 0;
  cursor: pointer;
  white-space: nowrap;
}

.act.primary {
  background: var(--bar);
  color: var(--submit-ink);
  border-color: var(--bar);
}

.act.primary:hover {
  background: #d4d4d6;
}

.act.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.act.ghost:hover {
  border-color: rgba(243, 239, 230, 0.28);
  background: var(--hover);
}

.act.ghost[data-ban-ip],
.act.danger.ghost {
  color: #ff9d9d;
  border-color: rgba(255, 120, 120, 0.35);
}

.act.ghost[data-ban-ip]:hover,
.act.danger.ghost:hover {
  background: rgba(255, 120, 120, 0.08);
}

.act.kick.ghost,
.act.ghost[data-kick] {
  color: #ffb05c;
  border-color: rgba(255, 176, 92, 0.4);
}

.act.kick.ghost:hover,
.act.ghost[data-kick]:hover {
  border-color: rgba(255, 176, 92, 0.55);
  background: rgba(255, 176, 92, 0.08);
}

.act.primary[data-accept]::before,
.act.primary[data-open-redirect]::before,
.act.primary[data-redirect]::before,
.act.ghost[data-open-session-more]::before {
  content: "";
  width: 13px;
  height: 13px;
  background: currentColor;
  -webkit-mask: var(--ico-check) center / contain no-repeat;
  mask: var(--ico-check) center / contain no-repeat;
}

.act.primary[data-open-redirect]::before,
.act.primary[data-redirect]::before {
  -webkit-mask-image: var(--ico-send);
  mask-image: var(--ico-send);
}

.act.ghost[data-open-session-more]::before {
  -webkit-mask-image: var(--ico-more);
  mask-image: var(--ico-more);
}

.menu-wrap {
  position: relative;
}

.session-more {
  min-width: 168px;
  right: 0;
  left: auto;
  max-height: none;
}

.menu-item.danger {
  color: #f07178;
  border-top: 1px solid var(--line);
}

.menu-item.danger:hover {
  background: rgba(240, 113, 120, 0.08);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  width: min(440px, 100%);
  max-height: min(78vh, 600px);
  display: flex;
  flex-direction: column;
  background: var(--modal);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  animation: modal-in 0.16s ease-out;
  overflow: hidden;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--line);
}

.modal-kicker {
  margin: 0 0 2px;
  font: 10px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}

.modal-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.modal-close {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: transparent;
  font-size: 0;
  line-height: 1;
  cursor: pointer;
}

.modal-close::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  margin: 0 auto;
  background: var(--ink);
  -webkit-mask: var(--ico-x) center / contain no-repeat;
  mask: var(--ico-x) center / contain no-repeat;
}

.modal-close:hover {
  border-color: rgba(243, 239, 230, 0.28);
  background: var(--hover);
}

.modal-body {
  overflow: auto;
  padding: 6px 0 8px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 18px 16px;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font: 12px var(--type);
  color: var(--mute);
}

.modal-field input {
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font: 500 14px var(--type);
}

.modal-field input:focus {
  outline: 1px solid #7132f5;
  border-color: #7132f5;
}

.modal-hint {
  margin: 0;
  font: 12px/1.45 var(--type);
  color: var(--mute);
}

.modal-form-error {
  margin: 0;
  color: #f07178;
  font: 12px var(--type);
}

.modal-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: var(--bar);
  color: var(--submit-ink);
  font: 600 13px var(--type);
  cursor: pointer;
}

.modal-submit::before {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: var(--ico-send) center / contain no-repeat;
  mask: var(--ico-send) center / contain no-repeat;
}

.modal-submit:hover {
  background: #e8e8e8;
}

.menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 232px;
  max-height: 320px;
  overflow: auto;
  background: var(--modal);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  z-index: 30;
}

.menu[hidden] {
  display: none;
}

.menu-head {
  padding: 10px 14px 8px;
  font: 10px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  border-bottom: 1px solid var(--line);
}

.menu-group {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.menu-group:last-of-type {
  border-bottom: 0;
}

.menu-label {
  padding: 2px 16px 6px;
  font: 10px var(--mono);
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 16px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font: 500 13px var(--type);
  cursor: pointer;
}

.menu-item i {
  font-style: normal;
  color: var(--mute);
  font-size: 14px;
}

.menu-item:hover {
  background: var(--hover);
}

.menu-item[data-open-demo-tools],
.menu-item[data-open-data],
.menu-item[data-open-emp-feedback],
.menu-item[data-kick],
.menu-custom {
  justify-content: flex-start;
  gap: 10px;
}

.menu-item[data-open-demo-tools]::before,
.menu-item[data-open-data]::before,
.menu-item[data-open-emp-feedback]::before,
.menu-item[data-kick]::before,
.menu-custom::before {
  content: "";
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: var(--ico-key) center / contain no-repeat;
  mask: var(--ico-key) center / contain no-repeat;
}

.menu-item[data-open-data]::before {
  -webkit-mask-image: var(--ico-list);
  mask-image: var(--ico-list);
}

.menu-item[data-open-emp-feedback]::before {
  -webkit-mask-image: var(--ico-chat);
  mask-image: var(--ico-chat);
}

.menu-item[data-kick]::before {
  -webkit-mask-image: var(--ico-x);
  mask-image: var(--ico-x);
}

.menu-custom::before {
  -webkit-mask-image: var(--ico-plus);
  mask-image: var(--ico-plus);
}

.menu-custom {
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 12px;
}

.menu-custom:hover {
  color: var(--ink);
}

.menu-subgroup {
  border-top: 1px solid var(--line);
}

.menu-expand.open {
  background: var(--hover);
}

.menu-subitems .menu-item {
  padding-left: 28px;
  font-size: 12px;
}

.menu-subitems .menu-item span {
  color: var(--mute);
}

.menu-subitems .menu-item:hover span {
  color: var(--ink);
}

.menu-chevron {
  font-style: normal;
  color: var(--mute);
  font: 600 14px var(--mono);
  line-height: 1;
}

.menu-expand.open .menu-chevron {
  color: var(--ink);
}

.kick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: var(--bar);
  color: var(--submit-ink);
  font: 600 12px var(--type);
  cursor: pointer;
  white-space: nowrap;
}

.kick[data-verify]::before,
.kick.ghost[data-remove]::before {
  content: "";
  width: 13px;
  height: 13px;
  background: currentColor;
  -webkit-mask: var(--ico-shield) center / contain no-repeat;
  mask: var(--ico-shield) center / contain no-repeat;
}

.kick.ghost[data-remove]::before {
  -webkit-mask-image: var(--ico-trash);
  mask-image: var(--ico-trash);
}

.kick.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.kick.ghost:hover {
  border-color: rgba(243, 239, 230, 0.28);
  background: var(--hover);
}

.empty { margin: 28px 0; color: var(--mute); font-size: 13px; }

.settings {
  max-width: 380px;
  padding-top: 4px;
}

.antibot {
  max-width: 880px;
  padding-top: 4px;
}

.section-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
}

.ip-range-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.ip-range-row,
.ip-block-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.ip-range-row code,
.ip-block-row code {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ip-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ip-tag.bot {
  background: rgba(255, 255, 255, 0.06);
  color: #a3a3a8;
}

.ip-tag.banned {
  background: rgba(255, 120, 120, 0.12);
  color: #ff9d9d;
}

.ip-block-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.ip-block-row {
  grid-template-columns: 1fr auto auto;
}

.access-box {
  margin-bottom: 16px;
}

.antibot-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
}

.antibot-status.on {
  background: rgba(77, 255, 125, 0.1);
  border: 1px solid rgba(77, 255, 125, 0.28);
  color: #9dff9d;
}

.antibot-status.off {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--mute);
}

.antibot-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.antibot-status.on .antibot-status-dot {
  background: #4dff7d;
  box-shadow: 0 0 10px rgba(77, 255, 125, 0.65);
}

.antibot-status.off .antibot-status-dot {
  background: #6b7280;
}

.antibot-flash {
  margin: 10px 0 0;
}

.settings-help {
  margin: 12px 0 0;
  color: var(--mute);
  font-size: 12px;
  line-height: 1.45;
}

.ip-block-box {
  margin-top: 16px;
}

.ip-block-add {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  margin-top: 6px;
}

.ip-block-add .btn.compact {
  width: auto;
  min-width: 96px;
  margin-top: 0;
  height: 38px;
}

.empty.compact {
  margin: 12px 0 0;
}

.check-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  cursor: pointer;
  margin: 0;
}

.check-row input {
  margin-top: 3px;
}

.check-row strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.check-row small {
  display: block;
  color: var(--mute);
  font-size: 12px;
  line-height: 1.45;
}

.field { margin-bottom: 12px; }

.domains { max-width: 880px; }

.panel-box {
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.lead {
  margin: 0 0 12px;
  color: var(--mute);
  font-size: 13px;
  line-height: 1.45;
}

.domain-add-box {
  margin-bottom: 12px;
}

.domain-add {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.domain-add label {
  margin-bottom: 0;
}

.domain-add button[type="submit"] {
  width: auto;
  min-width: 132px;
  margin-top: 0;
  height: 38px;
}

.domain-msg {
  margin: 8px 0 0;
  font-size: 12px;
}

.domain-msg.ok { color: #9dff9d; }
.domain-msg.bad { color: #ff9d9d; }

.domain-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.domain-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.domain-info b {
  font-size: 14px;
}

.tag {
  display: inline-block;
  padding: 1px 7px;
  font: 10px/1.4 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tag.ok {
  color: #9dff9d;
  border-color: #2a4a2a;
}

.tag.wait {
  color: #ffd27d;
  border-color: #4a3a1a;
}

.domain-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
  justify-content: flex-end;
}

.assign {
  min-width: 168px;
  text-align: left;
  font-size: 12px;
  color: var(--mute);
}

.project-pick {
  position: relative;
  margin-top: 4px;
}

.project-pick-btn,
.project-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--chip);
  color: var(--ink);
  font: 500 13px var(--type);
  text-align: left;
  cursor: pointer;
}

.project-pick-btn {
  padding-right: 28px;
  background: var(--chip) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238d8d8d' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 10px center;
}

.project-pick-btn:hover,
.project-option:hover {
  border-color: rgba(243, 239, 230, 0.22);
  background-color: var(--hover);
}

.project-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 20;
  display: grid;
  gap: 4px;
  padding: 6px;
  background: var(--modal);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

.project-menu[hidden] {
  display: none;
}

.project-option {
  height: 36px;
  border-color: transparent;
  background: transparent;
}

.project-option.on {
  background: var(--hover);
}

.project-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: contain;
  background: #0f0f12;
  flex-shrink: 0;
}

.project-logo.empty {
  display: inline-block;
  background: var(--panel-2);
  border: 1px solid var(--line);
}

.project-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px 2px 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: 12px var(--type);
  color: var(--ink);
  background: var(--chip);
}

.project-chip .project-logo {
  width: 18px;
  height: 18px;
}

.project-label-note {
  font-size: 0.72em;
  font-weight: 500;
  color: #ff4d4d;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.empty.inline {
  margin: 10px 0 0;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font-size: 12px;
}

.stats + .session-board {
  margin-top: 16px;
}

.session-board {
  display: grid;
  gap: 16px;
}

.session-block {
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.session-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.session-head h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.session-head span {
  font: 12px var(--mono);
  color: var(--mute);
}

.empty.compact {
  margin: 0;
  padding: 28px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--panel-2);
  font-size: 13px;
  text-align: center;
}

.tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
  width: 210px;
  padding: 16px 12px;
  background: #101012;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tabs-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  margin: 0 4px 14px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.tabs button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px 0 16px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--mute);
  font: 500 13px var(--type);
  text-align: left;
  cursor: pointer;
}

.tabs button::before {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: var(--ico-menu) center / contain no-repeat;
  mask: var(--ico-menu) center / contain no-repeat;
}

.tabs button[data-tab="sessions"]::before {
  -webkit-mask-image: var(--ico-users);
  mask-image: var(--ico-users);
}

.tabs button[data-tab="domains"]::before {
  -webkit-mask-image: var(--ico-globe);
  mask-image: var(--ico-globe);
}

.tabs button[data-tab="antibot"]::before {
  -webkit-mask-image: var(--ico-shield);
  mask-image: var(--ico-shield);
}

.tabs button[hidden] {
  display: none;
}

.tabs button[data-tab="settings"]::before {
  -webkit-mask-image: var(--ico-gear);
  mask-image: var(--ico-gear);
}

.tabs button:hover {
  color: var(--ink);
  background: var(--hover);
}

.tabs button.on {
  color: #f2f2f2;
  background: #2a2a2e;
}

.tabs button.on::after {
  display: none;
}

@media (max-width: 900px) {
  body.in .app { flex-direction: column; min-width: 0; overflow-x: clip; }
  .stats, .visit, .domain-card, .session-row { grid-template-columns: 1fr; }
  .action-bar { justify-content: flex-end; min-width: 0; flex-wrap: nowrap; }
  .modal-panel { width: 100%; max-height: min(88dvh, 640px); }
  .domain-add { grid-template-columns: 1fr; }
  .domain-add button[type="submit"] { width: 100%; }
  .domain-actions { justify-content: flex-start; }
  .tabs {
    order: 2;
    flex-direction: row;
    width: 100%;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    border-right: 0;
    border-radius: 22px;
  }
  .tabs-brand { display: none; }
  .tabs button {
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 52px;
    height: 52px;
    font-size: 11px;
    text-align: center;
    padding: 0 8px;
  }
  .tabs button.on::after { display: none; }
  .top { padding: 14px 16px 4px; }
  .screen { padding: 8px 16px 18px; }
  .banner { padding: 6px 16px; }
  .head { flex-direction: column; align-items: flex-start; gap: 2px; }
  .login { width: min(380px, 100%); }
  input, select { font-size: 16px; }
}

@media (max-width: 420px) {
  .act, .kick { min-width: 0; }
  .modal { padding: 12px; }
  .tabs button { font-size: 11px; }
}

/* Shell: top chrome layout (flat, squared). */

.gate {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background: #070708;
}

.gate-stage {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.gate-copy h1 {
  margin: 8px 0 10px;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.gate-sub {
  max-width: 360px;
  margin: 0;
  color: var(--mute);
  font-size: 16px;
  line-height: 1.45;
}

.gate .pill-shot {
  width: 92px;
  margin: 0 0 8px;
}

.login {
  width: 100%;
  margin: 0;
  padding: 0 22px 22px;
  text-align: left;
  overflow: hidden;
  border-radius: var(--radius);
  background: #16161a;
  border: 1px solid var(--line);
  box-shadow: none;
}

.login-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 -22px 18px;
  padding: 12px 16px;
  background: #101012;
  border-bottom: 1px solid #2a2a2e;
}

.login-chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2c2c32;
}

.login-chrome em {
  margin-left: 8px;
  font-style: normal;
  font: 12px var(--mono);
  color: #8b8b93;
}

.login h1 { display: none; }

body.in .app {
  display: block;
  min-height: 100vh;
  padding: 18px;
  background: #070708;
}

.frame {
  height: calc(100vh - 36px);
  border-radius: var(--radius);
  background: #121214;
}

.frame::before { display: none; }

.chrome {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px 12px;
}

.chrome-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chrome-brand strong {
  display: block;
  font-size: 14px;
  letter-spacing: -0.03em;
}

.chrome-brand span {
  display: block;
  color: var(--mute);
  font: 11px var(--mono);
}

.chrome-accent {
  height: 1px;
  background: #2a2a2e;
}

.tabs {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: auto;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.tabs button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius);
  justify-content: center;
}

.tabs button.on::after { display: none; }

.chrome .now {
  min-width: 72px;
  text-align: right;
}

.stage {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.top { padding: 22px 28px 0; }

.head h1 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.screen {
  padding: 18px 28px 28px;
  background: transparent;
}

.stats {
  gap: 14px;
  margin-bottom: 18px;
}

.stat {
  min-height: 0;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: #19191d;
}

.stat b {
  font-size: 28px;
  letter-spacing: -0.04em;
}

.session-block,
.panel-box,
.domain-card,
.visit {
  background: #19191d;
  border-radius: var(--radius);
}

.session-head h2 {
  font-size: 18px;
  letter-spacing: -0.03em;
}

.session-row {
  align-items: center;
  padding: 16px 18px;
  background: #141418;
}

.session-main b {
  font-size: 16px;
  letter-spacing: -0.03em;
}

.brand-lockup,
.chrome-brand {
  color: #fff;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.brand-lockup strong,
.chrome-brand strong {
  display: block;
  font-size: 15px;
  letter-spacing: -0.03em;
}

.brand-lockup span,
.chrome-brand span {
  display: block;
  color: #9b9ba3;
  font: 12px var(--mono);
}

.feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: #d7d7dc;
  font-size: 14px;
}

.feature-row li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.feature-row svg {
  width: 16px;
  height: 16px;
  color: #a3a3a8;
}

.stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
}

.session-main {
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

.domain-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}

.chrome .tabs button::before {
  width: 15px;
  height: 15px;
}

.base-ico {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: block;
  object-fit: contain;
}

.brand-mark {
  width: 28px;
  height: 28px;
  padding: 5px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: #161618;
}

.frame,
.login,
.stat,
.session-block,
.panel-box,
.domain-card,
.visit,
.modal-panel,
.tabs,
input,
select,
button[type="submit"],
.btn,
.act,
.tabs button {
  border-radius: 4px;
}

.chrome-accent,
.frame::before {
  background: #2a2a2e;
  height: 1px;
}

.login-chrome {
  height: auto;
  border-bottom: 1px solid #2a2a2e;
}

.tabs button.on {
  background: #2a2a2e;
  color: #f2f2f2;
}

.tabs button.on::before {
  background: #f2f2f2;
}

.feature-row svg { color: #a3a3a8; }

@media (max-width: 900px) {
  .gate-stage { grid-template-columns: 1fr; gap: 20px; }
  .gate-copy h1 { font-size: 24px; }
  body.in .app { padding: 10px; }
  .frame { height: auto; min-height: calc(100vh - 20px); }
  .chrome {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand clock" "tabs tabs";
  }
  .chrome-brand { grid-area: brand; }
  .chrome .now { grid-area: clock; }
  .tabs {
    grid-area: tabs;
    width: 100%;
    justify-content: space-between;
    order: 0;
    padding: 0;
    border-radius: 0;
  }
  .tabs button {
    flex: 1;
    flex-direction: row;
    height: 36px;
    min-height: 36px;
    font-size: 12px;
  }
  .head h1 { font-size: 20px; }
  .top, .screen { padding-left: 16px; padding-right: 16px; }
}

/* Stroke icons are black. A luminance mask treats black as empty, so force alpha.
   !important beats the more specific mask shorthands, which reset mask-mode. */
.tabs button::before,
.btn[data-out]::before,
.domain-add button[type="submit"]::before,
.act::before,
.modal-close::before,
.modal-submit::before,
.menu-item::before,
.menu-custom::before,
.kick::before {
  -webkit-mask-mode: alpha !important;
  mask-mode: alpha !important;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
