.mt20 { margin-top: 20px; }

.tf-hidden { display: none !important; }

.card-head > div:first-child:not(.right) { flex: 1 1 0; min-width: 0; }

.card:not(.lift):hover { border-color: var(--line); box-shadow: var(--sh-card); }
.card:not(.lift):hover::before { transform: scaleX(0); }

.rail-toggle {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: var(--r-s);
  background: none; border: 1px solid var(--chrome-line); color: var(--ink-2);
  cursor: pointer; flex: none;
}
.rail-toggle:hover { background: var(--panel-2); color: var(--ink); }
.rail-toggle svg { width: 17px; height: 17px; }

.rail-toggle svg { transition: transform .22s ease; }
html.rail-collapsed .rail-toggle svg { transform: rotate(180deg); }

.top-sep { width: 1px; height: 22px; background: var(--chrome-line); flex: none; margin: 0 2px 0 0; }
.top-crumbs {
  display: flex; align-items: center; gap: 7px; min-width: 0; flex: 1;
  font-size: 13px; color: var(--ink-3);
}
.top-crumbs a { color: var(--ink-3); white-space: nowrap; }
.top-crumbs a:hover { color: var(--ink); }
.top-crumbs .sep { color: var(--ink-4); }
.top-crumbs > :last-child:not(.sep) { color: var(--ink); font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.flowbar { border-radius: var(--r-m); border: 1px solid var(--line); margin-top: 16px; }
.flowbar .btn.ghost { border: 1px solid var(--line); color: var(--ink-2); }
.flowbar .btn.ghost:hover { border-color: var(--ink-4); color: var(--ink); }

.page-intro { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.page-intro .pi-sub { font-size: 13px; color: var(--ink-3); min-width: 0; }
.page-intro .right { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.page-intro .backbtn { gap: 6px; }
.page-intro .backbtn svg { width: 15px; height: 15px; }

.page-head .ph-text {
  padding-left: 14px;
  border-left: 3px solid var(--brand);
}

.app-shell { transition: grid-template-columns .24s ease; }
.rail { transition: padding .24s ease; }
.rail a.nav { transition: padding .24s ease, gap .24s ease, background .15s ease, color .15s ease; }
.rail a.nav .lbl,
.rail a.nav .count {
  display: inline-block; max-width: 170px; overflow: hidden; white-space: nowrap;
  transition: max-width .24s ease, opacity .16s ease .06s;
}
.rail .group,
.rail .rail-foot { transition: opacity .16s ease .06s; }

html.rail-collapsed .app-shell { grid-template-columns: 72px minmax(0,1fr); }
html.rail-collapsed .rail { padding: 14px 8px 24px; }
html.rail-collapsed .rail a.nav .lbl,
html.rail-collapsed .rail a.nav .count { max-width: 0; opacity: 0; transition: max-width .24s ease, opacity .1s ease; }
html.rail-collapsed .rail .group,
html.rail-collapsed .rail .rail-foot { opacity: 0; pointer-events: none; }
html.rail-collapsed .rail a.nav { justify-content: center; padding: 9px 0; gap: 0; }

@media (hover: hover) and (pointer: fine) {
  .btn.primary:hover:not(:disabled) {
    background: var(--brand-grad);
    background-size: 170% 170%;
    background-position: 100% 50%;
    color: var(--on-brand);
  }
}
@media (hover: hover) and (pointer: fine) {
  :root[data-theme="light"] .btn.primary:hover:not(:disabled) {
    background: color-mix(in srgb, var(--brand) 86%, #000);
    background-image: none;
    color: var(--on-brand);
    border-color: color-mix(in srgb, var(--brand) 86%, #000);
    box-shadow: var(--sh-s);
  }
  :root[data-theme="light"] .btn.primary:hover:not(:disabled)::after {
    opacity: 0;
    transform: none;
  }
  :root[data-theme="light"] .btn.primary:hover:not(:disabled) svg { color: var(--on-brand); }
}
@media (hover: hover) and (pointer: fine) and (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .btn.primary:hover:not(:disabled) {
    background: color-mix(in srgb, var(--brand) 86%, #000);
    background-image: none;
    color: var(--on-brand);
    border-color: color-mix(in srgb, var(--brand) 86%, #000);
    box-shadow: var(--sh-s);
  }
  :root:not([data-theme="dark"]) .btn.primary:hover:not(:disabled)::after {
    opacity: 0;
    transform: none;
  }
  :root:not([data-theme="dark"]) .btn.primary:hover:not(:disabled) svg { color: var(--on-brand); }
}

.auth-aside { justify-content: center; gap: 30px; }
.auth-aside::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(52% 42% at 82% 6%, rgba(255, 255, 255, .16) 0%, transparent 70%),
    radial-gradient(60% 50% at 8% 100%, rgba(0, 0, 0, .22) 0%, transparent 70%);
}
.auth-aside::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1.4px);
  background-size: 24px 24px;
  mask-image: linear-gradient(160deg, rgba(0, 0, 0, .8) 0%, transparent 62%);
}
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside h2 { max-width: 20ch; margin-bottom: 10px; }
.auth-aside .lede { max-width: 46ch; }

.aside-demo-block { width: 100%; max-width: 720px; margin: 0; }
.ad-head { margin-bottom: 10px; }
.ad-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; margin-bottom: 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--on-brand); background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3);
}
.ad-pill svg { width: 11px; height: 11px; }
.ad-head b { display: block; font-size: 14.5px; font-weight: 680; color: var(--on-brand); }
.ad-head > span:last-child { display: block; margin-top: 2px; font-size: 12.5px; color: rgba(255, 255, 255, .78); line-height: 1.5; }
.aside-demo {
  position: relative; aspect-ratio: 3343 / 1737;
  border-radius: var(--r-m); overflow: hidden;
  box-shadow: 0 18px 44px -22px rgba(0, 0, 0, .55);
}
.aside-demo iframe {
  position: absolute; left: -2px; top: -42px;
  width: calc(100% + 4px); height: calc(100% + 84px);
  border: 0; display: block;
}

.rail .nav svg, .icon-btn svg { width: 16px; height: 16px; }
.btn svg { width: 14px; height: 14px; vertical-align: -2px; }
.pill svg { width: 12px; height: 12px; vertical-align: -2px; }
.card-head svg { width: 16px; height: 16px; vertical-align: -3px; color: var(--ink-3); }

.ev { display: grid; grid-template-columns: 90px 26px minmax(0,1fr) auto; gap: 12px; align-items: flex-start;
      padding: 11px 15px; border-bottom: 1px solid var(--line-soft); }
.ev:last-child { border-bottom: 0; }
.ev:hover { background: var(--panel-2); }
.ev .ts { font-family: var(--mono); font-size: 11.5px; color: var(--ink-4); padding-top: 2px; white-space: nowrap; }
.ev .ic { width: 22px; height: 22px; border-radius: var(--r-xs); display: grid; place-items: center; font-size: 11px; }
.ev .ic svg { width: 13px; height: 13px; }
.ev .ic.ok { background: var(--ok-soft); color: var(--ok); }
.ev .ic.bad { background: var(--bad-soft); color: var(--bad); }
.ev .ic.warn { background: var(--warn-soft); color: var(--warn); }
.ev .ic.info { background: var(--info-soft); color: var(--info); }
.ev .ic.mute { background: var(--panel-3); color: var(--ink-3); }
.ev .ti2 { font-size: 13px; font-weight: 600; }
.ev .de { font-size: 12px; color: var(--ink-3); margin-top: 2px; line-height: 1.5; }
.ev .meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.ev .side { display: flex; gap: 6px; align-items: center; }
.daysep { padding: 11px 15px 6px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em;
          color: var(--ink-4); font-weight: 700; background: var(--panel-2); border-bottom: 1px solid var(--line-soft); }
@media (max-width: 700px) {
  .ev { grid-template-columns: 26px minmax(0,1fr); }
  .ev .ts { grid-column: 1 / -1; }
  .ev .side { grid-column: 1 / -1; }
}

.soon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.soon-card { border: 1px dashed var(--line); border-radius: var(--r-l); background: var(--panel);
             padding: 16px; opacity: .75; }
.soon-card .sc-icon { width: 30px; height: 30px; border-radius: var(--r-s); background: var(--brand-soft);
                      color: var(--brand); display: grid; place-items: center; margin-bottom: 10px; }
.soon-card .sc-icon svg { width: 16px; height: 16px; }
.soon-card b { font-size: 13.5px; }
.soon-card p { font-size: 12.5px; color: var(--ink-3); margin: 4px 0 0; line-height: 1.5; }

.tabs .tab {
  background: none; border: 0; cursor: pointer; font: inherit;
  padding: 9px 14px; font-size: 13.5px; color: var(--ink-3);
  border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 550;
  margin-bottom: -1px;
}
.tabs .tab:hover { color: var(--ink); }
.tabs .tab.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 650; }

.usermenu { position: relative; }
.usermenu > .avatar { cursor: pointer; border: 0; font: inherit; }
.usermenu .menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; z-index: 60;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m);
  box-shadow: var(--sh-m, var(--sh-s)); padding: 6px; display: none;
}
.usermenu.open .menu { display: block; }
.usermenu .um-head {
  padding: 8px 10px 9px; font-size: 12px; color: var(--ink-3);
  border-bottom: 1px solid var(--line-soft); margin-bottom: 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.usermenu .um-item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 8px 10px; border: 0; background: none; cursor: pointer; font: inherit;
  font-size: 13px; color: var(--ink-2); border-radius: var(--r-s); text-decoration: none;
}
.usermenu .um-item:hover { background: var(--panel-2); color: var(--ink); text-decoration: none; }
.usermenu .um-item svg { width: 14px; height: 14px; color: var(--ink-3); }
.usermenu .um-sep { border-top: 1px solid var(--line-soft); margin: 6px 0; }
.usermenu .um-item.danger { color: var(--bad); }
.usermenu .um-item.danger svg { color: var(--bad); }
.usermenu .um-item.danger:hover { background: var(--bad-soft); }
.usermenu .um-item.warn { color: var(--warn); }
.usermenu .um-item.warn svg { color: var(--warn); }
.usermenu .um-item.warn:hover { background: color-mix(in srgb, var(--warn) 12%, transparent); }

.upsell {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: var(--r-l); background: var(--panel);
  padding: 14px 18px; margin-bottom: 16px;
}
.upsell .up-icon {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: var(--warn-soft); color: var(--warn); display: grid; place-items: center;
}
.upsell .up-icon svg { width: 17px; height: 17px; }
.upsell .up-text { min-width: 0; flex: 1; }
.upsell .up-text b { display: block; font-size: 13.5px; }
.upsell .up-text span { font-size: 12.5px; color: var(--ink-3); }

.tierhead { display: flex; align-items: center; gap: 10px; margin: 22px 0 12px; }
.tierhead:first-of-type { margin-top: 0; }
.tierhead .th-pill {
  flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line);
}
.tierhead .th-pill.basic { background: var(--info-soft); color: var(--info); border-color: transparent; }
.tierhead .th-pill.advanced { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.tierhead .th-text { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.tierhead .th-line { flex: 1; height: 1px; background: var(--line-soft); }

.tierfoot {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 11px 16px; border-top: 1px solid var(--line-soft);
  font-size: 12.5px; color: var(--ink-3); background: var(--panel-2);
  border-radius: 0 0 var(--r-l) var(--r-l);
}
.tierfoot svg { width: 14px; height: 14px; color: var(--warn); flex: none; }
.tierfoot .right { margin-left: auto; }

.nrow {
  display: grid; grid-template-columns: 34px minmax(0,1fr) auto;
  gap: 12px; padding: 13px 15px; border-bottom: 1px solid var(--line-soft); align-items: flex-start;
}
.nrow:last-child { border-bottom: 0; }
.nrow:hover { background: var(--panel-2); }
.nrow.unread { background: color-mix(in srgb, var(--brand-soft) 55%, transparent); }
.nrow.unread:hover { background: var(--brand-soft); }
.nico {
  width: 30px; height: 30px; border-radius: var(--r-s); display: grid; place-items: center;
  font-size: 13px; flex: none;
}
.nico svg { width: 15px; height: 15px; }
.nico.ok   { background: var(--ok-soft);   color: var(--ok); }
.nico.warn { background: var(--warn-soft); color: var(--warn); }
.nico.bad  { background: var(--bad-soft);  color: var(--bad); }
.nico.info { background: var(--info-soft); color: var(--info); }
.nrow .nt { font-size: 13.5px; font-weight: 600; }
.nrow .nb { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; line-height: 1.5; }
.nrow .nm { font-size: 11.5px; color: var(--ink-4); white-space: nowrap; font-variant-numeric: tabular-nums; }
.daylabel { font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-4); font-weight: 700; padding: 12px 15px 6px; }

.otp-code { max-width: 170px; font-size: 16px; letter-spacing: .12em; }
.otp-code::placeholder { letter-spacing: normal; font-size: 13px; }

.brandmark { box-sizing: border-box; flex: none; width: 116px; justify-content: center; }
.brandmark.xs { width: 96px; }
.brandmark.sm { width: 110px; }
.brandmark.lg { width: 150px; }
.brandmark.xl { width: 190px; }
.brandmark.bare { width: auto; }

.locked { border: 1px solid var(--line); border-radius: var(--r-l); background: var(--panel);
          padding: 40px 24px; text-align: center; max-width: 520px; margin: 40px auto; }
.locked .lk-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--warn-soft); color: var(--warn);
                   display: grid; place-items: center; margin: 0 auto 14px; }
.locked .lk-icon svg { width: 20px; height: 20px; }
.locked h3 { margin: 0 0 6px; }
.locked p { color: var(--ink-3); font-size: 13px; margin: 0 0 16px; }

.emptystate {
  width: 100%;
  min-height: clamp(200px, 28vh, 360px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 36px 24px;
  border: 1.5px dashed color-mix(in srgb, var(--ink-4) 45%, var(--line));
  border-radius: var(--r-l);
  background: transparent;
}
.emptystate .es-icon {
  width: 52px; height: 52px; border-radius: 15px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; margin: 0 0 18px;
}
.emptystate .es-icon svg { width: 24px; height: 24px; }
.emptystate h3 { margin: 0 0 10px; font-size: 17px; }
.emptystate p {
  color: var(--ink-3); font-size: 13.5px; line-height: 1.65;
  margin: 0 0 22px; max-width: 46ch;
}
.emptystate .es-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

.emptystate.inline { border: 0; border-radius: 0; min-height: clamp(260px, 42vh, 520px); padding: 40px 20px; }

@media (max-width: 1080px) {
  .emptystate { min-height: clamp(260px, 46vh, 480px); padding: 44px 20px; }
  .emptystate.inline { min-height: clamp(220px, 36vh, 400px); }
}

@media (max-width: 700px) {
  .emptystate { min-height: 240px; padding: 32px 16px; }
  .emptystate.inline { min-height: 220px; padding: 28px 14px; }
  .emptystate .es-icon { width: 44px; height: 44px; border-radius: 13px; margin-bottom: 14px; }
  .emptystate h3 { font-size: 15.5px; }
  .emptystate p { font-size: 13px; max-width: none; }
  .emptystate .es-actions { width: 100%; flex-direction: column; align-items: stretch; }
}

.page { padding-bottom: 22px; }
@media (max-width: 860px) { .page { padding-bottom: 18px; } }
.page:has(> .emptystate) { display: flex; flex-direction: column; }
.page:has(> .emptystate) > .emptystate { flex: 1 1 auto; }

.page:has(> .card > .card-body > .emptystate.inline),
.page:has(> .card > .emptystate.inline) { display: flex; flex-direction: column; }

.page > .card:has(> .card-body > .emptystate.inline),
.page > .card:has(> .emptystate.inline) { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }

.card > .card-body:has(> .emptystate.inline) { flex: 1 1 auto; display: flex; padding: 0; min-height: 0; }

.card-body:has(> .emptystate.inline) > .emptystate.inline,
.page > .card:has(> .emptystate.inline) > .emptystate.inline { flex: 1 1 auto; min-height: 220px; }

.grid.top { align-items: start; }

.page-intro .pi-sub {
  display: inline-flex; align-items: center; gap: 10px;
  padding-left: 12px; position: relative;
}
.page-intro .pi-sub::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 2px; height: 15px; border-radius: 1px; background: var(--brand); opacity: .55;
}

.topbar { padding-left: 0; }
.topbar-brand {
  display: flex; align-items: center;
  width: var(--rail); flex: none; box-sizing: border-box; gap: 14px;
  padding-left: 12px; padding-right: 10px; justify-content: flex-start;
  transition: width .24s ease;
}
.topbar-brand .brand { min-width: 0; }
.topbar-brand .brandlogo { height: 44px; max-width: 100%; }
html.rail-collapsed .topbar-brand { width: 72px; padding: 0; justify-content: center; }
html.rail-collapsed .topbar-brand .brand { display: none; }
html.rail-collapsed .topbar-brand .rail-toggle { margin: 0 auto; }

@media (max-width: 860px) {
  .topbar { padding-left: 12px; }
  .topbar-brand { width: auto; padding-left: 0; padding-right: 0; }
  html.rail-collapsed .topbar-brand { width: auto; }
  html.rail-collapsed .topbar-brand .brand { display: flex; }
}

.tabs {
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tabs::-webkit-scrollbar { height: 0; width: 0; }

html.rail-collapsed .rail a.nav {
  justify-content: center;
  padding: 9px 0; gap: 0; width: 100%;
}
html.rail-collapsed .rail a.nav .ic { margin: 0; display: grid; place-items: center; }

.theme-btn {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--ink-2);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.theme-btn:hover {
  background: var(--panel);
  border-color: var(--brand);
  color: var(--brand);
}
.theme-btn [data-theme-icon] { font-size: 15px; line-height: 1; }
:root[data-theme="dark"] .theme-btn { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #e6ecf7; }
:root[data-theme="dark"] .theme-btn:hover { background: rgba(255,255,255,.12); border-color: var(--brand); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #e6ecf7; }
  :root:not([data-theme="light"]) .theme-btn:hover { background: rgba(255,255,255,.12); border-color: var(--brand); }
}

select.input {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 34px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-3) 50%),
    linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 17px) calc(50% + 1px), calc(100% - 12px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
  text-overflow: ellipsis;
}
select.input:hover { background-color: var(--panel-2); }
select.input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}
select.input:disabled { opacity: .55; cursor: not-allowed; }

select.input option { background: var(--panel); color: var(--ink); }
select.input option:disabled { color: var(--ink-4); }
select.input optgroup { background: var(--panel); color: var(--ink-3); font-style: normal; font-weight: 650; }

html {
  background-color: var(--bg);
  overscroll-behavior-y: none;
}
body { overscroll-behavior-y: none; min-height: 100vh; }

.rtwrap { display: flex; align-items: stretch; gap: 8px; }
.rtwrap .rt { flex: 1; margin-bottom: 0; }
.rt-eye { flex: none; align-self: center; white-space: nowrap; }

.rt-dir { flex: none; align-self: center; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 0 6px; }
.rt-dir-row { display: flex; align-items: center; gap: 9px; }
.rt-dir-l { font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.rt-dir.soon { cursor: help; }
.rt-dir.soon .switch, .rt-dir.soon .rt-dir-l { opacity: .55; }
.rt-dir.soon .switch .sl { cursor: not-allowed; }
.switch input:disabled + .sl { cursor: not-allowed; }
.rt-lead { display: flex; align-items: center; gap: 8px; }
.rt-lead-l { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-4); }
.seg.rt-seg label { padding: 4px 11px; border-radius: var(--r-xs); font-size: 12px; color: var(--ink-3); cursor: pointer; font-weight: 550; white-space: nowrap; }
.seg.rt-seg label.on { background: var(--panel); color: var(--ink); box-shadow: var(--sh-s); font-weight: 600; }
.seg.rt-seg input { position: absolute; opacity: 0; width: 0; height: 0; }

.fieldtable td .switch { display: inline-block; }
.rt-eye svg { width: 14px; height: 14px; }
.fieldpanel {
  border: 1px solid var(--line); border-radius: var(--r-m);
  background: transparent; padding: 18px 20px 16px;
}
.secttl { margin: 0 0 2px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }

.connrow {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 0; border-bottom: 1px solid var(--line-soft);
}
.connrow:last-child { border-bottom: 0; }
.connrow .cr-main { flex: 1 1 220px; min-width: 0; }
.connrow .cr-title { font-weight: 620; font-size: 13.5px; }
.connrow .cr-sub { font-size: 12px; color: var(--ink-3); overflow-wrap: anywhere; }
.connrow .cr-rename { display: flex; align-items: center; gap: 6px; flex: none; }
.connrow .cr-rename .input { width: 190px; padding: 6px 10px; font-size: 12.5px; }
.connrow .cr-side { display: flex; align-items: center; gap: 8px; flex: none; }

@media (max-width: 860px) {
  .connrow { align-items: flex-start; }
  .connrow .cr-rename { flex: 1 1 100%; }
  .connrow .cr-rename .input { width: auto; flex: 1; }
  .connrow .cr-side { flex: 1 1 100%; justify-content: space-between; }
}

.reviewblock { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.reviewblock:first-child { padding-top: 0; }
.reviewblock:last-child { border-bottom: 0; padding-bottom: 0; }
.reviewblock .rb-h { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.reviewblock .rb-ic {
  width: 36px; height: 36px; border-radius: 11px; flex: none;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center;
}
.reviewblock .rb-ic svg { width: 17px; height: 17px; }
.reviewblock .rb-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.reviewblock .rb-t b { font-size: 14.5px; }
.reviewblock .rb-t span { font-size: 12.5px; color: var(--ink-3); }
.reviewblock .rb-warn {
  margin: 0 0 12px; padding: 9px 12px; font-size: 12.5px; line-height: 1.5;
  border: 1px solid var(--warn-line, var(--line)); border-radius: var(--r-s);
  background: var(--warn-soft); color: var(--ink-2);
}

.rb-groups { display: grid; gap: 8px; }
.rb-group {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r-m);
  background: var(--panel-2);
  transition: border-color .15s ease, background .15s ease;
}
.rb-group:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.rb-group.on { border-color: var(--brand); background: var(--brand-soft); }
.rb-group input { position: absolute; opacity: 0; pointer-events: none; }
.rb-group .rb-check {
  width: 19px; height: 19px; border-radius: 6px; flex: none;
  border: 1.5px solid var(--line); background: var(--panel);
  display: grid; place-items: center; font-size: 11px; color: transparent;
}
.rb-group.on .rb-check { background: var(--brand); border-color: var(--brand); color: #fff; }
.rb-group .rb-body { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.rb-group .rb-body b { font-size: 13.5px; }
.rb-group .rb-body span { font-size: 12px; color: var(--ink-3); }
.rb-group .pill { flex: none; }

@media (max-width: 700px) {
  .rb-group { flex-wrap: wrap; }
  .rb-group .pill { margin-left: 30px; }
}

.rt .rt-pill { margin-left: auto; flex: none; }
.rt .tx { min-width: 0; }

.plangrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); align-items: stretch; }
.plancard {
  display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 11px;
  padding: 24px 22px;
  border: 1px solid color-mix(in srgb, var(--brand) 16%, var(--line)); border-radius: var(--r-l);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--brand) 4%, transparent) 0%, transparent 46%),
    var(--panel);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.plancard:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); transform: translateY(-2px); }
.plancard .pc-action form { margin: 0; }

.plancard.current { border-color: var(--brand); box-shadow: var(--sh-brand); }
.plancard.current:hover { transform: none; }

.plancard.recommended {
  position: relative;
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 22%, transparent), 0 10px 28px -18px var(--brand);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--brand) 7%, transparent) 0%, transparent 120px),
    var(--panel);
}
.plancard.recommended:hover { transform: translateY(-3px); border-color: var(--brand); }
.plancard.recommended .pc-price { color: var(--brand); }

.pc-ribbon {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  padding: 4px 12px; border-radius: 999px;
  background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 2px 8px -2px color-mix(in srgb, var(--brand) 60%, transparent);
}

.plangrid { padding-top: 10px; }

.plancard input { position: absolute; opacity: 0; pointer-events: none; }
.plancard .pc-top { display: flex; align-items: center; gap: 8px; }
.plancard .pc-name { font-size: 15.5px; font-weight: 700; text-transform: capitalize; letter-spacing: -.01em; }
.plancard .pc-price { font-size: 30px; font-weight: 750; letter-spacing: -.02em; line-height: 1; margin-top: 2px; color: var(--brand); }
.plancard .pc-price span { font-size: 12.5px; font-weight: 500; color: var(--ink-3); margin-left: 2px; }
.plancard .pc-tagline { font-size: 12.5px; color: var(--ink-3); line-height: 1.6; min-height: 38px; }
.plancard .pc-features { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--brand) 16%, var(--line)); }
.plancard .pc-features span { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); }
.plancard .pc-features svg { width: 13px; height: 13px; color: var(--brand); flex: none; }
.plancard .pc-action { margin-top: 12px; }

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

.reviewlist { margin: 0; display: grid; gap: 0; }
.reviewlist > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid var(--line-soft);
}
.reviewlist > div:last-child { border-bottom: 0; }
.reviewlist dt { font-size: 12.5px; color: var(--ink-3); margin: 0; }
.reviewlist dd { font-size: 13.5px; font-weight: 600; margin: 0; text-align: right; overflow-wrap: anywhere; }

.reviewtypes { display: grid; gap: 8px; }
.reviewtype {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--panel-2);
}
.reviewtype .rv-ic {
  width: 32px; height: 32px; border-radius: 10px; flex: none;
  background: var(--brand-soft); color: var(--brand); display: grid; place-items: center;
}
.reviewtype .rv-ic svg { width: 15px; height: 15px; }
.reviewtype .rv-t { display: flex; flex-direction: column; gap: 1px; }
.reviewtype .rv-t b { font-size: 13.5px; }
.reviewtype .rv-t span { font-size: 12px; color: var(--ink-3); }
.reviewtype .rv-lead { margin-left: auto; flex: none; display: flex; align-items: center; gap: 8px; }
.reviewtype .rv-lead-l { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-4); }
.reviewtype.rt-dir { flex-direction: row; align-self: auto; padding: 11px 13px; gap: 11px; }
.reviewtype .rv-lead .rt-lead { gap: 8px; }
.reviewtype .rv-lead .rt-dir-row { margin-left: 6px; padding-left: 14px; border-left: 1px solid var(--line); }
.settingsgrid { gap: 16px 12px; }
.settingsgrid .field, .settingsgrid .mt16 { margin-top: 0; }

.planhero {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 18px 20px; border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line));
  border-radius: var(--r-l);
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--brand) 8%, transparent) 0%, transparent 65%),
    var(--panel-2);
}
.planhero .ph-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 260px; }
.planhero .ph-kicker {
  font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--brand);
}
.planhero .ph-name { font-size: 23px; font-weight: 750; text-transform: capitalize; letter-spacing: -.02em; }
.planhero .ph-note { font-size: 12.5px; color: var(--ink-3); line-height: 1.55; }
.planhero .ph-price { font-size: 27px; font-weight: 750; letter-spacing: -.02em; color: var(--brand); flex: none; }
.planhero .ph-price span { font-size: 12.5px; font-weight: 500; color: var(--ink-3); margin-left: 2px; }

.planstrip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
  border: 1px solid var(--line); border-radius: var(--r-m); background: var(--panel-2);
  overflow: hidden;
}
.planstrip .pst { display: flex; flex-direction: column; gap: 3px; padding: 13px 18px; min-width: 0; }
.planstrip .pst + .pst { border-left: 1px solid var(--line-soft); }
.planstrip .pst-l { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.planstrip .pst-v { font-size: 15px; font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .planstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .planstrip .pst:nth-child(3) { border-left: 0; }
  .planstrip .pst:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
}

.invempty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 18px 6px 10px; }
.invempty .ie-ic {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand); display: grid; place-items: center;
}
.invempty .ie-ic svg { width: 19px; height: 19px; }
.invempty p { margin: 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.65; max-width: 34ch; }
.invlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.invlist .inv {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 12.5px;
}
.invlist .inv:last-child { border-bottom: 0; }
.invlist .inv-date { color: var(--ink-2); }
.invlist .inv-amount { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--ink-1); }
.invlist .inv-link { color: var(--brand); text-decoration: none; }
.invlist .inv-link:hover { text-decoration: underline; }
.stripeblock {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--panel-2);
}
.stripeblock .sb-ic {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: var(--brand-soft); color: var(--brand); display: grid; place-items: center;
}
.stripeblock .sb-ic svg { width: 18px; height: 18px; }
.stripeblock .sb-body { flex: 1 1 260px; min-width: 0; }
.stripeblock .sb-body b { font-size: 13.5px; display: block; margin-bottom: 3px; }
.stripeblock .sb-body p { margin: 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.55; }
.stripeblock .sb-action { flex: none; }

.conngroup + .conngroup { margin-top: 22px; }
.cg-label {
  display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .01em;
  color: var(--ink-3); margin-bottom: 2px;
}

.plancard { cursor: default; }
.plancard:has(.pc-action form) { cursor: default; }
.plancard.current { border-color: var(--brand); box-shadow: var(--sh-brand); }
.plancard.current:hover { transform: none; border-color: var(--brand); }
.plancard .pc-action form { margin: 0; }
.plancard .pc-action .btn { width: 100%; }

.supportfab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid var(--brand); background: var(--brand-grad); color: #fff;
  display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--sh-brand), 0 6px 20px rgba(2, 39, 182, .25);
  transition: transform .16s ease, box-shadow .16s ease;
}
.supportfab:hover { transform: translateY(-2px); }
.supportfab svg { width: 21px; height: 21px; }
.supportfab.on svg { transform: rotate(8deg); }

.supportpanel {
  position: fixed; right: 22px; bottom: 84px; z-index: 60;
  width: min(360px, calc(100vw - 44px));
  border: 1px solid var(--line); border-radius: var(--r-l);
  background: var(--panel); box-shadow: 0 18px 48px rgba(15, 23, 42, .28);
  overflow: hidden;
}
.supportpanel .sp-head {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 14px 10px; border-bottom: 1px solid var(--line-soft);
}
.supportpanel .sp-head b { display: block; font-size: 13.5px; }
.supportpanel .sp-head span { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.5; margin-top: 2px; }
.supportpanel .sp-head .icon-btn { margin-left: auto; font-size: 18px; line-height: 1; }
.supportpanel .sp-body { padding: 12px 14px; }
.supportpanel .sp-body textarea { resize: vertical; min-height: 96px; }
.supportpanel .sp-body .bad { color: var(--bad); }
.supportpanel .sp-foot { padding: 0 14px 14px; }
.supportpanel .sp-foot .btn { width: 100%; }

@media (max-width: 700px) {
  .supportfab { right: 16px; bottom: 16px; width: 46px; height: 46px; }
  .supportpanel { right: 16px; bottom: 72px; }
}

.sect { display: flex; gap: 11px; align-items: center; padding-bottom: 12px; }
.sect.sep { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.sect-ic {
  width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--brand);
}
.sect-ic svg { width: 15px; height: 15px; }
.sect-t b { display: block; font-size: 14px; letter-spacing: -.01em; }
.sect-t span { display: block; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; margin-top: 1px; }

.ghero {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,400px); gap: 26px;
  padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--r-l);
  background: radial-gradient(120% 130% at 0% 0%, var(--brand-soft) 0%, transparent 62%), var(--panel);
}
.gh-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--brand); }
.ghero h1 { margin: 8px 0 0; font-size: 26px; letter-spacing: -.02em; }
.gh-main > p { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.65; max-width: 54ch; }
.gh-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.gh-btns svg { width: 15px; height: 15px; }
.ghsteps { list-style: none; margin: 0; padding: 0; align-self: center; }
.ghsteps li { display: flex; gap: 12px; padding: 11px 0; }
.ghsteps li + li { border-top: 1px solid var(--line-soft); }
.gh-n {
  width: 24px; height: 24px; border-radius: 999px; flex: none; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; background: var(--brand); color: #fff;
}
.ghsteps b { display: block; font-size: 13px; }
.ghsteps span:not(.gh-n) { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.55; margin-top: 2px; }

.gwrap { align-items: start; }
.gside { position: sticky; top: 14px; }
.gsec { border: 1px solid var(--line); border-radius: var(--r-l); background: var(--panel); overflow: hidden; scroll-margin-top: 16px; }
.gs-head { display: flex; gap: 12px; padding: 15px 17px; border-bottom: 1px solid var(--line-soft); background: var(--panel-2); }
.gs-ic {
  width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--brand);
}
.gs-ic svg { width: 17px; height: 17px; }
.gs-head h3 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.gs-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-3); }
.gs-body { padding: 16px 17px; }
.gs-body > p { margin: 0 0 11px; font-size: 13px; color: var(--ink-2); line-height: 1.7; max-width: 68ch; }
.gs-body > p:last-child { margin-bottom: 0; }
.gs-body code { font-size: 11.5px; padding: 1px 5px; border-radius: 4px; background: var(--panel-2); border: 1px solid var(--line); }

.gfacts {
  display: grid; gap: 1px; margin: 0 0 14px; background: var(--line-soft);
  border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden;
}
.gfacts > div { display: flex; gap: 11px; align-items: center; padding: 11px 13px; background: var(--panel); }
.gf-ic {
  width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--ink-3);
}
.gf-ic svg { width: 14px; height: 14px; }
.gfacts b { display: block; font-size: 13px; }
.gfacts span:not(.gf-ic) { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.5; margin-top: 1px; }

.gnote {
  display: flex; gap: 10px; margin-top: 14px; padding: 11px 13px; border-radius: var(--r-m);
  background: var(--brand-soft); border: 1px solid var(--brand-line);
}
.gnote svg { width: 16px; height: 16px; flex: none; color: var(--brand); margin-top: 1px; }
.gnote span { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }

.gsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.gsteps li { display: flex; gap: 12px; align-items: flex-start; }
.gsteps .gs-n {
  width: 24px; height: 24px; border-radius: 999px; flex: none; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; background: var(--panel-2); border: 1px solid var(--line); color: var(--ink-2);
}
.gsteps b { display: block; font-size: 13.5px; margin-bottom: 3px; }
.gsteps p { margin: 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }

.gtoc { display: grid; gap: 1px; }
.gtoc a {
  display: flex; gap: 9px; align-items: center; padding: 8px 9px; border-radius: var(--r-s);
  font-size: 12.5px; color: var(--ink-2); text-decoration: none;
}
.gtoc a:hover { background: var(--panel-2); color: var(--ink); text-decoration: none; }
.gtoc svg { width: 14px; height: 14px; color: var(--ink-4); }

@media (max-width: 1100px) {
  .ghero { grid-template-columns: 1fr; }
  .gwrap { grid-template-columns: 1fr; }
  .gside { position: static; }
}

.notifmenu { position: relative; }
.notifmenu > .icon-btn { position: relative; }
.notifmenu .menu {
  position: absolute; right: 0; top: calc(100% + 8px); width: 360px; max-width: calc(100vw - 32px); z-index: 60;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m);
  box-shadow: var(--sh-m, var(--sh-s)); display: none; overflow: hidden;
}
.notifmenu.open .menu { display: block; }
.nm-head {
  display: flex; align-items: baseline; gap: 8px; padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft); background: var(--panel-2);
}
.nm-head b { font-size: 13.5px; }
.nm-head span { font-size: 12px; color: var(--ink-3); margin-left: auto; }
.nm-list { max-height: 380px; overflow-y: auto; }
.nm-row {
  display: flex; gap: 11px; padding: 11px 14px; text-decoration: none;
  border-bottom: 1px solid var(--line-soft); align-items: flex-start;
}
.nm-row:last-child { border-bottom: 0; }
.nm-row:hover { background: var(--panel-2); text-decoration: none; }
.nm-row.unread { background: color-mix(in srgb, var(--brand) 5%, transparent); }
.nm-row.unread:hover { background: color-mix(in srgb, var(--brand) 9%, transparent); }
.nm-row .nico { flex: none; }
.nm-t { min-width: 0; flex: 1; }
.nm-t > b { display: block; font-size: 13px; color: var(--ink); line-height: 1.4; }
.nm-b {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 12px; color: var(--ink-3); line-height: 1.5; margin-top: 2px;
}
.nm-m { display: block; font-size: 11px; color: var(--ink-4); margin-top: 4px; font-variant-numeric: tabular-nums; }
.nm-empty { display: flex; gap: 11px; padding: 20px 16px; align-items: center; }
.nm-empty svg { width: 18px; height: 18px; color: var(--ink-4); flex: none; }
.nm-empty span { font-size: 12.5px; color: var(--ink-3); line-height: 1.55; }
.nm-foot { border-top: 1px solid var(--line-soft); background: var(--panel-2); }
.nm-foot a {
  display: block; padding: 10px 14px; text-align: center;
  font-size: 12.5px; font-weight: 600; color: var(--brand); text-decoration: none;
}
.nm-foot a:hover { background: var(--panel-3, var(--panel)); text-decoration: none; }

@media (max-width: 520px) {
  .notifmenu .menu { position: fixed; right: 12px; left: 12px; width: auto; top: 60px; }
}

.switch { position: relative; display: inline-block; width: 38px; height: 22px; vertical-align: middle; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .sl {
  position: absolute; inset: 0; cursor: pointer; border-radius: 999px;
  background: var(--panel-3, var(--panel-2)); border: 1px solid var(--line); transition: background .15s, border-color .15s;
}
.switch .sl::before {
  content: ""; position: absolute; width: 16px; height: 16px; left: 2px; top: 2px;
  border-radius: 50%; background: var(--ink-4); transition: transform .15s, background .15s;
}
.switch input:checked + .sl { background: var(--brand); border-color: var(--brand); }
.switch input:checked + .sl::before { transform: translateX(16px); background: #fff; }
.switch input:focus-visible + .sl { outline: 2px solid var(--brand); outline-offset: 2px; }

.fieldpanel .table-wrap,
.fmpanel .table-wrap {
  background: none;
  border-radius: 0;
  overflow-x: auto;
}
table.data.fieldtable {
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
}
table.data.fieldtable thead th,
table.data.fieldtable tbody td {
  background: transparent;
  vertical-align: middle;
}
table.data.fieldtable thead th {
  padding: 6px 12px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 10.5px;
}
table.data.fieldtable tbody td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line-soft);
  border-left: 0;
  color: var(--ink-2);
}
table.data.fieldtable tbody tr:last-child td { border-bottom: 0; }
table.data.fieldtable td.mono {
  font-family: inherit; font-size: 13px; color: var(--ink); font-weight: 550;
}
table.data.fieldtable tbody { user-select: none; }
table.data.fieldtable tbody tr:hover td { background: transparent; }
@media (hover: hover) {
  table.data.fieldtable tbody tr:hover td {
    background: color-mix(in srgb, var(--ink) 4%, transparent);
  }
}

.btn .btn-spin { display: none; }
.btn.busy { pointer-events: none; opacity: .85; }
.btn.busy .btn-spin {
  display: inline-block; width: 13px; height: 13px; margin-right: 8px; vertical-align: -2px;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: btnspin .6s linear infinite;
}
@keyframes btnspin { to { transform: rotate(360deg); } }

.fmpanel { display: flex; flex-direction: column; gap: 14px; }
.fmpanel .sect { padding-bottom: 0; }
.fmpanel .sect.sep { margin-top: 4px; padding-top: 16px; }
.fmpanel .input.sm { padding: 6px 9px; font-size: 12.5px; height: auto; }
.fmpanel > .small,
.fmpanel > .xs { margin: 0; padding: 0 2px; }
.gnote-inline {
  display: flex; gap: 10px; padding: 11px 13px; border-radius: var(--r-m);
  background: var(--warn-soft); border: 1px solid var(--warn-line);
}
.gnote-inline svg { width: 16px; height: 16px; flex: none; color: var(--warn); margin-top: 1px; }
.gnote-inline span { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }

.intlist { display: grid; gap: 10px; }
.intcard {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 20px; align-items: center;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-l);
  background: var(--panel); text-decoration: none; color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.intcard:hover {
  border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
  box-shadow: var(--sh-l, 0 6px 18px rgba(2,39,182,.08));
  transform: translateY(-1px); text-decoration: none;
}
.intcard.paused { background: var(--panel-2); }
.intcard.paused .ic-flow, .intcard.paused .ic-main { opacity: .72; }

.ic-flow { display: flex; align-items: center; gap: 8px; flex: none; }
.ic-flow .brandmark { box-sizing: border-box; width: 110px; min-width: 110px; justify-content: center; }
.ic-arrow { display: grid; place-items: center; width: 18px; height: 18px; color: var(--ink-4); flex: none; }
.ic-arrow svg { width: 15px; height: 15px; }

.ic-main { min-width: 0; }
.ic-title { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.ic-title b { font-size: 15px; letter-spacing: -.01em; }
.ic-client { font-size: 12px; color: var(--ink-3); }
.ic-types { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 7px; }
.chip {
  font-size: 11.5px; padding: 3px 9px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--line-soft); color: var(--ink-2); white-space: nowrap;
}
.chip.muted { color: var(--ink-4); }

.ic-stats { display: flex; gap: 26px; }
.bplist .ic-stats { display: grid; grid-template-columns: 170px 90px 100px; }
.introws .ic-stats { display: grid; grid-template-columns: 170px 90px 100px; }
.bplist .ic-stat .ic-v, .introws .ic-stat .ic-v { overflow: hidden; text-overflow: ellipsis; }
.ic-stat { display: flex; flex-direction: column; gap: 3px; white-space: nowrap; }
.ic-k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-4); font-weight: 700; }
.ic-v { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ic-bad { color: var(--bad); }

.ic-side { display: flex; align-items: center; gap: 12px; }
.ic-go { display: grid; place-items: center; color: var(--ink-4); }
.ic-go svg { width: 18px; height: 18px; }
.intcard:hover .ic-go { color: var(--brand); }

@media (max-width: 1100px) {
  .intcard { grid-template-columns: auto minmax(0, 1fr) auto; }
  .ic-stats { grid-column: 1 / -1; gap: 20px; padding-top: 4px; border-top: 1px solid var(--line-soft); }
}
@media (max-width: 700px) {
  .intcard { grid-template-columns: auto minmax(0, 1fr); gap: 14px; }
  .ic-side { grid-column: 1 / -1; }
  .ic-stats { flex-wrap: wrap; }
  .bplist .ic-stats, .introws .ic-stats { display: flex; }
}

.filterbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px; margin-bottom: 12px;
  border: 1px solid var(--line); border-radius: var(--r-m); background: var(--panel);
}
.filterbar .seg { flex: 0 0 auto; }
.filterbar .fb-search { position: relative; flex: 1 1 260px; min-width: 220px; }
.filterbar .fb-search svg {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; color: var(--ink-4); pointer-events: none;
}
.filterbar .fb-search .input { width: 100%; padding-left: 34px; }
.filterbar .fb-search .input::-webkit-search-cancel-button { cursor: pointer; }
.filterbar .fb-system { flex: 0 0 190px; width: 190px; }
.filterbar .fb-count { flex: 0 0 auto; margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fb-empty { padding: 26px 4px; text-align: center; }

@media (max-width: 860px) {
  .filterbar .fb-search { flex: 1 1 100%; }
  .filterbar .fb-system { flex: 1 1 auto; width: auto; }
}

table.data thead th.right,
table.data thead th.num { text-align: right; }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data td.when { white-space: nowrap; font-variant-numeric: tabular-nums; }

.syspick { position: relative; width: 100%; max-width: 420px; }
.syspick-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box;
  height: 42px; padding: 0 12px; line-height: 1.4;
  border: 1px solid var(--line); border-radius: var(--r-m);
  background: var(--input); color: var(--ink); font: inherit; font-size: 13.5px; cursor: pointer; text-align: left;
}
.syspick-btn > * { flex: none; }
.syspick-btn:hover { border-color: var(--ink-4); }
.syspick.open .syspick-btn { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent); }
.syspick-btn .sp-name { flex: 1; min-width: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.syspick-btn .sp-name.empty { color: var(--ink-4); padding: 0; text-align: left; }
.syspick-btn svg { width: 16px; height: 16px; color: var(--ink-4); flex: none; }

.syspick-panel {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 70; display: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--sh-l, 0 10px 30px rgba(2,39,182,.14));
  overflow: hidden;
}
.syspick.open .syspick-panel { display: block; }

.sp-search { position: relative; padding: 10px; border-bottom: 1px solid var(--line-soft); background: var(--panel-2); }
.sp-search svg { position: absolute; left: 21px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--ink-4); pointer-events: none; }
.sp-search .input { width: 100%; padding-left: 32px; font-size: 13px; }

.sp-list { max-height: 300px; overflow-y: auto; padding: 6px; }
.sp-group + .sp-group { margin-top: 4px; }
.sp-glabel {
  display: block; padding: 8px 8px 5px; font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--ink-4);
}
.sp-opt {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 6px 8px; border: 0; border-radius: var(--r-s); background: none;
  font: inherit; font-size: 13px; color: var(--ink-2); cursor: pointer; text-align: left;
}

.sp-opt .brandmark {
  flex: none; box-sizing: border-box;
  width: 104px; min-width: 104px; height: 28px; padding: 0 8px;
  justify-content: center;
}
.syspick .brandmark img { max-width: 100%; max-height: 64%; height: auto; width: auto; object-fit: contain; }

.syspick-btn .brandmark { flex: none; box-sizing: border-box; width: 96px; min-width: 96px; height: 24px; padding: 0 8px; justify-content: center; }
.sp-opt > span:last-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-opt:hover { background: var(--panel-2); color: var(--ink); }
.sp-opt.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.sp-empty { padding: 18px 12px; text-align: center; }

.pref-row { display: flex; align-items: flex-start; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.pref-row:last-of-type { border-bottom: 0; }
.pref-text { min-width: 0; flex: 1; }
.pref-text b { display: block; font-size: 14px; color: var(--ink); }
.pref-text span { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.55; color: var(--ink-3); }
.pref-side { flex: none; padding-top: 2px; }

.sw { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; }
.sw input { position: absolute; opacity: 0; width: 0; height: 0; }
.sw .sw-track {
    position: absolute; inset: 0; cursor: pointer; border-radius: 999px;
    background: var(--panel-2); border: 1px solid var(--line);
    transition: background .18s ease, border-color .18s ease;
}
.sw .sw-track::after {
    content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
    border-radius: 50%; background: var(--ink-3);
    transition: transform .18s ease, background .18s ease;
}
.sw input:checked + .sw-track { background: var(--brand); border-color: var(--brand); }
.sw input:checked + .sw-track::after { transform: translateX(18px); background: #fff; }
.sw input:focus-visible + .sw-track { outline: 2px solid var(--brand); outline-offset: 2px; }

.as-hidden { display: none !important; }

.reportbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.reportbar .subnav { margin-bottom: 0; flex: 1 1 auto; min-width: 0; }
.reportbar-controls { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
@media (max-width: 900px) { .reportbar-controls { width: 100%; justify-content: flex-end; } }

.tablefilter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
}

.tablefilter .tf-search {
    position: relative;
    flex: 1 1 240px;
    min-width: 200px;
}

.tablefilter .tf-search i,
.tablefilter .tf-search svg {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: var(--ink-4);
    pointer-events: none;
}

.tablefilter select.input {
    width: auto;
    flex: 0 1 auto;
    min-width: 150px;
    max-width: 240px;
}

.tablefilter .tf-search input {
    width: 100%;
    padding: 7px 10px 7px 32px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
    color: var(--ink);
    font-size: 13px;
}

.tablefilter .tf-search input:focus,
.tablefilter select:focus {
    outline: none;
    border-color: var(--acc);
}

.tablefilter select {
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
    color: var(--ink);
    font-size: 13px;
}

.tablefilter .tf-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
    cursor: pointer;
    user-select: none;
}

.tablefilter .tf-toggle input {
    accent-color: var(--acc);
}

.tablefilter .tf-count {
    margin-left: auto;
    white-space: nowrap;
}

.gs-note {
    margin-top: 14px;
    padding: 12px 14px;
    border-left: 3px solid var(--acc);
    border-radius: 0 8px 8px 0;
    background: color-mix(in srgb, var(--acc) 7%, transparent);
}

.gs-note p {
    margin: 0;
}

.gs-note p + p {
    margin-top: 8px;
}

.apick { padding: 14px 12px 10px; }

.apick-head { text-align: center; max-width: 54ch; margin: 18px auto 26px; }

.apick-head .apick-ic {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; margin-bottom: 8px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--brand) 12%, transparent);
    color: var(--brand);
}

.apick-head .apick-ic i { width: 21px; height: 21px; }
.apick-head h3 { margin: 0 0 6px; font-size: 16px; }
.apick-head p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.7; }

.apick-steps {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
    margin: 0 auto; padding: 0 10px; max-width: 980px;
}

.apick-step { display: flex; gap: 10px; align-items: flex-start; }

.apick-step .as-n {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    width: 21px; height: 21px; border-radius: 50%;
    background: var(--panel-2); border: 1px solid var(--line);
    font-size: 11px; font-weight: 700; color: var(--ink-2);
}

.apick-step .as-t { font-size: 13px; font-weight: 650; margin-bottom: 2px; }
.apick-step .as-d { font-size: 12px; color: var(--ink-3); line-height: 1.6; }

.apick-grid { display: grid; gap: 10px; margin: 0 0 2px; }

.acard {
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px;
    padding: 15px 18px;
    border: 1px solid var(--line); border-radius: var(--r-m);
    background: var(--panel-2);
    transition: border-color .15s ease;
}

.acard:hover { border-color: var(--ink-4); }
.acard.soon { border-style: dashed; opacity: .8; }
.acard.soon:hover { border-color: var(--line); }
.acard .ac-main { flex: 1 1 90px; min-width: 0; }
.acard .ac-title { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 650; color: var(--ink); overflow-wrap: anywhere; }
a.ac-title:hover { color: var(--brand); text-decoration: none; }
.acard .ac-title i, .acard .ac-title svg { width: 12px; height: 12px; color: var(--ink-4); }
.acard .ac-sub { font-size: 12px; color: var(--ink-3); }
.acard .ac-actions { display: flex; gap: 8px; flex: 0 0 auto; margin-left: auto; }
.acard .ac-actions .btn { white-space: nowrap; }
.acard .ac-actions i { width: 13px; height: 13px; margin-left: 4px; vertical-align: -2px; }

@media (max-width: 720px) {
    .apick-steps { grid-template-columns: 1fr; gap: 14px; }
}

.chart-tip {
    position: absolute;
    top: 4px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--panel-2);
    box-shadow: var(--sh-card);
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
}

.chart-tip[hidden] { display: none; }
.chart-tip .ct-l { color: var(--ink-3); font-size: 11px; }
.chart-tip .ct-r { display: flex; align-items: center; gap: 6px; }
.chart-tip .ct-r i { width: 8px; height: 8px; border-radius: 2px; flex: 0 0 auto; }
.chart-tip .ct-n { color: var(--ink-3); }
.chart-tip .ct-r b { margin-left: auto; color: var(--ink); font-variant-numeric: tabular-nums; }

.asst { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }

.asst-thread { display: flex; flex-direction: column; }
.asst-log { display: flex; flex-direction: column; gap: 18px; }

.asst-turn { display: flex; gap: 12px; }

.asst-turn .at-who {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 9px;
    font-size: 11px; font-weight: 700;
    border: 1px solid var(--line); background: var(--panel-2); color: var(--ink-3);
}

.asst-turn.bot .at-who { background: color-mix(in srgb, var(--brand) 14%, transparent); border-color: transparent; color: var(--brand); }
.asst-turn.bot .at-who i { width: 15px; height: 15px; }

.asst-turn .at-body { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }
.asst-turn.you .at-body { color: var(--ink); font-weight: 600; }
.asst-turn .at-body p { margin: 0 0 12px; }
.asst-turn .at-body p:last-child { margin-bottom: 0; }
.asst-turn .at-body b { color: var(--ink); }

.asst-table { margin: 0 0 12px; }
.asst-table table.data { min-width: 0; }

.at-note { font-size: 12.5px; color: var(--ink-3); }

.at-sources { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.at-src-label { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-4); }

.at-src {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 9px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--panel-2);
    font-size: 11.5px; color: var(--ink-3);
}

.at-src i { width: 12px; height: 12px; }

.asst-composer { padding: 16px; border-top: 1px solid var(--line); }
.asst-suggest { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

.asst-chip {
    padding: 6px 11px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--panel-2);
    font-size: 12.5px; color: var(--ink-3);
    font-family: inherit;
}

.asst-chip {
    display: inline-flex; align-items: center; gap: 6px;
    text-decoration: none; cursor: pointer;
    transition: border-color .16s ease, color .16s ease, background .16s ease;
}

.asst-chip i { width: 13px; height: 13px; flex: 0 0 auto; }
.asst-chip:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); color: var(--ink); }

.asst-chip.on {
    border-color: color-mix(in srgb, var(--brand) 55%, transparent);
    background: var(--brand-soft); color: var(--brand);
}

.asst-chip.locked { opacity: .5; cursor: not-allowed; }
.asst-chip.locked:hover { border-color: var(--line); color: var(--ink-3); }

.asst-chip:disabled { opacity: .55; cursor: not-allowed; }

.at-subject {
    font-size: 11px; letter-spacing: .05em; text-transform: uppercase;
    color: var(--ink-4); margin: 2px 0 7px;
}

.at-actions { display: flex; gap: 8px; margin-top: 12px; }

.asst-input { display: flex; gap: 8px; }
.asst-input .input { flex: 1; }
.asst-input .input:disabled, .asst-input .btn:disabled { opacity: .55; cursor: not-allowed; }

.asst-foot { display: flex; align-items: center; gap: 7px; margin: 10px 0 0; font-size: 12px; color: var(--ink-4); }
.asst-foot i { width: 13px; height: 13px; flex: 0 0 auto; }

.asst-side { display: flex; flex-direction: column; gap: 16px; }
.asst-caps { display: flex; flex-direction: column; gap: 16px; }
.asst-cap { display: flex; gap: 11px; }

.asst-cap .ac-ic {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 9px;
    background: var(--panel-2); border: 1px solid var(--line); color: var(--ink-3);
}

.asst-cap .ac-ic i { width: 15px; height: 15px; }
.asst-cap b { display: block; font-size: 13px; margin-bottom: 3px; }
.asst-cap p { margin: 0; font-size: 12px; color: var(--ink-3); line-height: 1.6; }

@media (max-width: 1080px) {
    .asst { grid-template-columns: minmax(0, 1fr); }
}

.btn.ok { color: var(--ok); border-color: var(--ok-line); background: var(--ok-soft); box-shadow: none; }
.btn.ok:hover:not(:disabled) { background: var(--ok-soft); border-color: var(--ok); box-shadow: var(--sh-s); }
.btn.warn { color: var(--warn); border-color: var(--warn-line); background: var(--warn-soft); box-shadow: none; }
.btn.warn:hover:not(:disabled) { background: var(--warn-soft); border-color: var(--warn); box-shadow: var(--sh-s); }

.req { color: var(--bad); margin-left: 2px; font-weight: 700; }

.itip {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; margin-left: 6px;
    border-radius: 50%;
    background: var(--brand-soft); color: var(--brand);
    cursor: help; vertical-align: -4px;
}

.itip svg { width: 12px; height: 12px; }
.itip:hover { background: color-mix(in srgb, var(--brand) 22%, var(--brand-soft)); }

.itip::after {
    content: attr(data-tip);
    position: absolute; bottom: calc(100% + 9px); left: 50%; transform: translateX(-50%);
    width: max-content; max-width: 270px;
    padding: 8px 11px; border-radius: 9px;
    background: var(--panel-3); color: var(--ink); border: 1px solid var(--line);
    box-shadow: var(--sh-m);
    font-size: 12px; font-weight: 400; line-height: 1.55; text-align: left; white-space: normal;
    opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .12s ease;
    z-index: 200;
}

.itip:hover::after, .itip:focus::after, .itip:focus-visible::after { opacity: 1; visibility: visible; }

:root[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.75); cursor: pointer; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.75); cursor: pointer; }
}
input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; }

.card:has(> .chartfill) { display: flex; flex-direction: column; }
.card > .chartfill { flex: 1; display: flex; flex-direction: column; }
.card > .chartfill > div { flex: 1; display: flex; flex-direction: column; }
.card > .chartfill svg { flex: 1; min-height: 0; width: 100%; height: auto; }

.connectmark {
  display: inline-block; padding: 0; border: 0; background-color: transparent; box-shadow: none;
  background-repeat: no-repeat; background-position: center; background-size: contain;
  text-decoration: none; cursor: pointer;
}
.connectmark:hover, .connectmark:focus-visible { background-color: transparent; box-shadow: none; }
.connectmark { background-image: var(--cm-light); }
.connectmark:hover { background-image: var(--cm-light-hover, var(--cm-light)); }
:root[data-theme="dark"] .connectmark { background-image: var(--cm-dark, var(--cm-light)); }
:root[data-theme="dark"] .connectmark:hover { background-image: var(--cm-dark-hover, var(--cm-dark, var(--cm-light-hover, var(--cm-light)))); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .connectmark { background-image: var(--cm-dark, var(--cm-light)); }
  :root:not([data-theme="light"]) .connectmark:hover { background-image: var(--cm-dark-hover, var(--cm-dark, var(--cm-light-hover, var(--cm-light)))); }
}

details.collapsecard > summary { list-style: none; cursor: pointer; }
details.collapsecard > summary::-webkit-details-marker { display: none; }
details.collapsecard > summary .chev { margin-left: auto; display: inline-flex; color: var(--ink-3); transition: transform .2s ease; }
details.collapsecard > summary .chev svg { width: 18px; height: 18px; }
details.collapsecard[open] > summary .chev { transform: rotate(180deg); }
details.collapsecard:not([open]) > summary { border-bottom: 0; }

.fillscroll { max-height: max(320px, calc(100dvh - 300px)); overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 860px) {
  .fillscroll { max-height: 70dvh; }
}

.lrow.flat { border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
.clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deflist { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px 12px; font-size: 12.5px; margin: 0 0 16px; }
.deflist dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .deflist { grid-template-columns: 1fr; gap: 2px 0; }
  .deflist dd { margin: 0 0 8px; }
}

.guide { display: grid; gap: 18px; max-width: 980px; margin-inline: auto; }
.guide-hero { text-align: center; padding: 8px 0 6px; }
.guide-hero .brandmark { margin-inline: auto; }
.guide-hero h1 { margin: 16px auto 10px; max-width: 760px; font-size: clamp(22px, 3.4vw, 32px); line-height: 1.2; }
.guide-hero p { margin: 0 auto; max-width: 680px; color: var(--ink-3); font-size: 14.5px; line-height: 1.65; }
.guide-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.guide-hero .guide-actions, .guide-actions.center { justify-content: center; }
.guide-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.guide h3 { margin: 0 0 6px; font-size: 14.5px; }
.guide .card p { margin: 0; color: var(--ink-3); font-size: 13px; line-height: 1.6; }
.guide-list { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.guide-list b, .guide-steps b { display: block; margin-bottom: 3px; font-size: 13.5px; }
.guide-steps { margin: 0; padding-left: 38px; display: grid; gap: 14px; }
.guide-steps li::marker { color: var(--brand); font-weight: 700; }
.rail a.nav.soon { opacity: .55; cursor: default; }
.rail a.nav.soon:hover { background: transparent; color: inherit; }
.rail a.nav .count.soonpill { background: var(--panel-3); color: var(--ink-3); font-weight: 600; }


.chart-empty {
  display: grid; place-items: center; min-height: 140px; padding: 18px;
  border: 1px dashed var(--line); border-radius: var(--r-m);
  font-size: 13px; line-height: 1.55; color: var(--ink-3); text-align: center;
}

.btn.detailbtn { gap: 4px; padding-right: 8px; }
.btn.detailbtn svg { width: 14px; height: 14px; }

.activityfilter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.activityfilter .af-field { display: flex; flex-direction: column; gap: 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); }
.activityfilter .af-field .input { width: 170px; text-transform: none; letter-spacing: normal; font-weight: 400; }
.activityfilter .af-field select.input { width: 220px; }
.activityfilter .btn svg { width: 14px; height: 14px; }
@media (max-width: 700px) { .activityfilter .af-field, .activityfilter .af-field .input, .activityfilter .af-field select.input { width: 100%; } }

.appconn { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 8px 4px 0; }
.appconn-pair { display: flex; align-items: center; gap: 0; margin-bottom: 4px; }
.appconn-tile {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--panel-2); border: 1px solid var(--line); box-shadow: var(--sh-s);
}
.appconn-tile img { width: 30px; height: 30px; }
.appconn-pair .brandmark { height: 56px; border-radius: 16px; box-shadow: var(--sh-s); }
.appconn-line { position: relative; width: 74px; height: 2px; background: var(--line); display: grid; place-items: center; }
.appconn-line.ok { background: var(--ok-line); }
.appconn-line.bad, .appconn-line.warn { background: repeating-linear-gradient(90deg, var(--bad-line) 0 6px, transparent 6px 11px); }
.appconn-line i, .appconn-line svg {
  position: absolute; width: 26px; height: 26px; padding: 5px; box-sizing: border-box; border-radius: 50%;
  background: var(--panel); border: 1px solid var(--line); color: var(--ink-3);
}
.appconn-line.ok svg { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok); }
.appconn-line.bad svg { background: var(--bad-soft); border-color: var(--bad-line); color: var(--bad); }
.appconn-line.warn svg { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn); }
.appconn h1 { margin: 2px 0 0; font-size: 26px; line-height: 1.2; letter-spacing: -.02em; }
.appconn-lede { margin: 0; max-width: 52ch; color: var(--ink-3); font-size: 14px; line-height: 1.6; }
.appconn-list {
  width: 100%; margin-top: 8px; text-align: left;
  border: 1px solid var(--line); border-radius: var(--r-m); background: var(--panel-2); overflow: hidden;
}
.appconn-list-head { padding: 10px 16px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); border-bottom: 1px solid var(--line-soft); }
.appconn-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; background: var(--panel); }
.appconn-row + .appconn-row { border-top: 1px solid var(--line-soft); }
.appconn-main { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.appconn-main b { font-size: 14px; }
.appconn-sub { font-size: 12.5px; color: var(--ink-3); }
.appconn-side { display: flex; align-items: center; gap: 8px; flex: none; }
.appconn-side form { margin: 0; }
.appconn-uses { display: flex; flex-wrap: wrap; gap: 6px; }
.appconn-uses a {
  display: inline-flex; align-items: center; gap: 7px; padding: 3px 5px 3px 10px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; font-weight: 600;
  color: var(--ink-2); text-decoration: none; transition: border-color .15s, color .15s;
}
.appconn-uses a:hover { border-color: var(--brand); color: var(--ink); }
.appconn-uses .pill { font-size: 11px; }
.appconn-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.appconn-actions .btn svg { width: 16px; height: 16px; }
.appconn-help { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); }
.appconn-help a { color: var(--brand); font-weight: 600; }
@media (max-width: 560px) {
  .appconn-actions { flex-direction: column; align-self: stretch; }
  .appconn-actions .btn { width: 100%; }
  .appconn-side { flex: 1 1 100%; justify-content: space-between; }
  .appconn-line { width: 44px; }
}

.dangercard { border-color: var(--bad-line); }
.dangercard .card-head h3 { color: var(--bad); }
.dangerlist { margin: 0 0 16px; padding-left: 18px; display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.dangerlist li::marker { color: var(--bad); }
.dangerform { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.dangerform .field { flex: 1 1 220px; }
.dangerform .input { width: 100%; }
.dangerform .btn { flex: none; }
