* { box-sizing: border-box; }
[hidden] { display: none !important; }
svg { flex: none; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-latin);
  font-size: var(--fs-14);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-xs); }
.skip { position: absolute; left: 16px; top: -100px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 600; font-size: 14px; }
.skip:focus { top: 16px; }
#main:focus { outline: 0; }

.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }


.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; z-index: 30;
}
.sidebar__head {
  display: flex; align-items: center; gap: var(--s-3);
  padding: 0 var(--s-4); height: var(--topbar-h);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.brand__mark {
  width: 28px; height: 28px; border-radius: var(--r-sm);
  background: #05744E; color: #FFFFFF;
  display: grid; place-items: center; flex: none;
}
.brand__name { font-weight: 650; letter-spacing: -.01em; white-space: nowrap; }
.brand__wm { display: block; flex: none; line-height: 0; }
.brand__wm-img { display: block; height: 22px; width: auto; }
.brand__wm-img--dark { display: none; }
:root[data-theme="dark"] .brand__wm-img--light { display: none; }
:root[data-theme="dark"] .brand__wm-img--dark { display: block; }
.rail-only { display: none !important; }
.auth__brand .brand__wm-img { height: 26px; }

.sidebar__body { flex: 1; overflow-y: auto; padding: var(--s-4) var(--s-3); }
.nav__group { margin-bottom: var(--s-5); }
.nav__label {
  display: flex; align-items: center; gap: var(--s-2);
  padding: 0 var(--s-3) var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--fs-11); font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-3);
  pointer-events: none; user-select: none;
}
.nav__labelicon { flex: none; width: 14px; height: 14px; color: var(--text-3); }

.nav__items { position: relative; }
.nav__items::before {
  content: ""; position: absolute; left: 19px; top: -6px; bottom: 18px;
  width: 1px; background: var(--border-strong);
}
.nav__item {
  position: relative;
  display: flex; align-items: center; gap: var(--s-3);
  padding: 6px var(--s-3) 6px 30px; border-radius: var(--r-md);
  font-family: var(--font-mono); font-size: var(--fs-13);
  color: var(--text-2); font-weight: 500; white-space: nowrap;
}
.nav__item::before {
  content: ""; position: absolute; left: 19px; top: 50%; width: 11px; height: 1px;
  background: var(--border-strong);
}
.nav__item:hover { background: var(--surface-3); color: var(--text); }
.nav__item.is-active { background: var(--surface-3); color: var(--text); font-weight: 600; }
.nav__item.is-active .nav__icon { color: var(--accent); }
.nav__icon { flex: none; width: 18px; height: 18px; color: var(--text-3); transition: color .15s ease; }
.nav__item:hover .nav__icon { color: var(--text-2); }
.nav__text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.badge {
  flex: none; font-size: var(--fs-11); font-weight: 600;
  padding: 2px 7px; border-radius: var(--r-pill);
  background: var(--surface-3); color: var(--text-2);
}
.badge--accent { background: var(--accent-soft); color: var(--accent); }


.sidebar__foot { padding: var(--s-3); border-top: 1px solid var(--border); }
.quota {
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--s-3); margin-bottom: var(--s-3); background: var(--surface-2);
}
.quota__top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2); }
.quota__plan { font-size: var(--fs-12); color: var(--text-3); }
.quota__title { font-size: var(--fs-12); color: var(--text-2); font-weight: 550; }
.quota__count { display: block; font-size: var(--fs-12); color: var(--text-3); margin-top: 2px; }
.quota__track { height: 5px; border-radius: var(--r-pill); background: var(--track); margin: var(--s-3) 0 var(--s-3); overflow: hidden; }
.quota__fill { height: 100%; border-radius: var(--r-pill); background: var(--accent); width: var(--fill, 40%); }
.btn-quota {
  display: block; width: 100%; text-align: center; color: inherit; text-decoration: none; box-sizing: border-box;
  border: 1px solid var(--border-strong); border-radius: var(--r-md);
  padding: 7px; font-size: var(--fs-13); font-weight: 600; background: var(--surface);
}
.btn-quota:hover { background: var(--surface-3); }

.userchip {
  display: flex; align-items: center; gap: var(--s-3);
  width: 100%; padding: var(--s-2); border-radius: var(--r-md);
}
.userchip:hover { background: var(--surface-3); }
.userchip__meta { min-width: 0; text-align: left; flex: 1; display: flex; flex-direction: column; }
.userchip__name { display: block; font-weight: 600; font-size: var(--fs-13); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.userchip__org { display: block; font-size: var(--fs-12); color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.userchip__caret { color: var(--text-3); flex: none; }

.avatar { width: 32px; height: 32px; border-radius: var(--r-pill); flex: none; object-fit: cover; background: var(--surface-3); }
.avatar--sm { width: 26px; height: 26px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.iconbtn.topbar__menu { display: none; }
.scrim {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(6, 27, 49, .44); backdrop-filter: blur(1px);
  opacity: 0; transition: opacity .2s ease;
}
.is-drawer-open .scrim { opacity: 1; }
.topbar {
  height: var(--topbar-h); background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: var(--s-3);
  padding: 0 var(--s-6); position: sticky; top: 0; z-index: 20;
}
.topbar__collapse {
  color: var(--text-3); padding: 6px; border-radius: var(--r-sm); flex: none;
  display: grid; place-items: center;
}
.topbar__collapse:hover { background: var(--surface-3); color: var(--text-2); }
.topbar__pip { width: 1px; height: 18px; background: var(--border); flex: none; }
.crumb { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-weight: 550; min-width: 0; }
.crumb__group { color: var(--text-3); font-weight: 500; white-space: nowrap; }
.crumb__sep { color: var(--text-3); opacity: .7; flex: none; }
.crumb__link { color: var(--text-3); font-weight: 500; white-space: nowrap; text-decoration: none; }
.crumb__link:hover { color: var(--accent); }
.crumb__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
@media (max-width: 640px) { .crumb__group, .crumb__group + .crumb__sep { display: none; } }
.crumb__icon { color: var(--text-3); width: 17px; height: 17px; flex: none; }
.topbar__spacer { flex: 1; }
.search {
  display: flex; align-items: center; gap: var(--s-2);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 0 var(--s-3); height: 36px; width: 320px;
}
.search:focus-within { border-color: var(--border-strong); background: var(--surface); }
.search input { border: 0; background: none; outline: none; width: 100%; font-size: var(--fs-13); }
.search input::placeholder { color: var(--text-3); }
.search__icon { color: var(--text-3); flex: none; width: 15px; height: 15px; }

.iconbtn {
  width: 36px; height: 36px; border-radius: var(--r-md);
  display: grid; place-items: center; color: var(--text-2);
  border: 1px solid var(--border); background: var(--surface);
}
.iconbtn:hover { background: var(--surface-3); }
.iconbtn--dot { position: relative; }
.iconbtn--dot::after {
  content: ""; position: absolute; top: 7px; right: 8px;
  width: 6px; height: 6px; border-radius: var(--r-pill); background: var(--danger);
  border: 1.5px solid var(--surface);
}

.btn {
  display: inline-flex; align-items: center; gap: var(--s-2);
  height: 36px; padding: 0 var(--s-4); border-radius: var(--r-md);
  font-weight: 600; font-size: var(--fs-13); white-space: nowrap;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { border: 1px solid var(--border); background: var(--surface); }
.btn--ghost:hover { background: var(--surface-3); }
.btn--pill { border-radius: var(--r-pill); height: 30px; padding: 0 var(--s-3); font-size: var(--fs-12); }

.menu { position: relative; }
.menu__panel {
  position: absolute; z-index: 40; min-width: 220px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: var(--s-2); display: none;
}
.menu.is-open .menu__panel { display: block; }
.menu__panel--right { right: 0; top: calc(100% + 8px); }
.menu__panel--up { left: 0; bottom: calc(100% + 8px); }
.menu__section { font-size: var(--fs-11); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); padding: var(--s-2) var(--s-3) var(--s-1); }
.menu__item {
  display: flex; align-items: center; gap: var(--s-3); width: 100%;
  padding: 8px var(--s-3); border-radius: var(--r-sm); font-size: var(--fs-13);
  text-align: left; white-space: nowrap;
}
.menu__item:hover { background: var(--surface-3); }
.menu__item[role="menuitemradio"][aria-checked="true"] { font-weight: 600; }
.menu__item[role="menuitemradio"][aria-checked="true"] .menu__tick { opacity: 1; }
.menu__tick { margin-left: auto; opacity: 0; color: var(--accent); flex: none; width: 15px; height: 15px; }
.menu__sep { height: 1px; background: var(--border); margin: var(--s-2) 0; }

.content { padding: var(--s-6); display: grid; gap: var(--s-5); align-content: start; }
.page__head { display: flex; align-items: flex-start; gap: var(--s-4); flex-wrap: wrap; }
.page__title { font-size: var(--fs-26); font-weight: 680; letter-spacing: -.02em; }
.page__sub { color: var(--text-2); margin-top: 2px; }
.page__actions { margin-left: auto; display: flex; gap: var(--s-3); }

.grid { display: grid; gap: var(--s-4); }
.grid--stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--main { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, 1fr); }
.grid--lower { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); }
.grid--tpl { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--surface-outer); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: var(--s-3);
  display: flex; flex-direction: column; min-width: 0; gap: var(--s-3);
}
.card__head {
  display: flex; align-items: flex-start; gap: var(--s-3);
  padding: var(--s-2) var(--s-2) 0; min-height: 40px;
}
.card__heading { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.card__fg {
  background: var(--surface); border-radius: var(--r-lg);
  padding: var(--s-4); flex: 1;
  display: flex; flex-direction: column; min-width: 0;
}
.card__fg--flush { padding: var(--s-3); }
.card__title { font-weight: 620; font-size: var(--fs-14); }
.card__sub { color: var(--text-3); font-size: var(--fs-12); margin-top: 1px; }
.card__action { margin-left: auto; flex: none; }

.stat .card__fg { gap: var(--s-3); justify-content: space-between; min-height: 118px; }
.stat__label { display: block; color: var(--text-2); font-size: var(--fs-13); font-weight: 550; }
.stat__value { display: block; font-size: var(--fs-34); font-weight: 680; letter-spacing: -.03em; line-height: 1.05; }
.stat__unit { font-size: var(--fs-16); font-weight: 600; color: var(--text-3); margin-left: 4px; }
.stat__trend { display: block; font-size: var(--fs-12); color: var(--text-3); }
.card--accent .card__fg { background: var(--accent-fill); color: var(--accent-ink); }
.card--accent .card__fg .stat__value { color: var(--accent-ink); }
.card--accent .card__fg .stat__trend { color: rgba(255, 255, 255, .88); }
.card--accent .card__fg .stat__unit { color: rgba(255, 255, 255, .72); }

.bars { display: flex; align-items: stretch; gap: var(--s-3); flex: 1; min-height: 190px; padding-top: var(--s-2); }
.bars__col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: var(--s-3); }
.bars__track {
  flex: 1; width: 100%; max-width: 88px; border-radius: var(--r-pill);
  background: var(--track); display: flex; align-items: flex-end; overflow: hidden;
}
.bars__fill { width: 100%; height: var(--fill, 50%); min-height: 8px; border-radius: var(--r-pill); background: var(--accent); }
.bars__fill--zero { min-height: 0; }
.bars__value { font-size: var(--fs-16); font-weight: 640; letter-spacing: -.02em; line-height: 1; }
.bars__label { font-size: var(--fs-12); color: var(--text-3); font-weight: 550; text-align: center; line-height: var(--lh-body); }

.gauge { display: grid; place-items: center; gap: var(--s-3); padding: var(--s-2) 0; }
.gauge__svg { width: 190px; height: 108px; overflow: visible; }
.gauge__track { fill: none; stroke: var(--track); stroke-width: 16; stroke-linecap: round; }
.gauge__value { fill: none; stroke: var(--accent); stroke-width: 16; stroke-linecap: round; }
.gauge__num { font-size: var(--fs-26); font-weight: 680; letter-spacing: -.02em; margin-top: -34px; }
.gauge__cap { font-size: var(--fs-12); color: var(--text-3); }
.legend { display: flex; gap: var(--s-4); flex-wrap: wrap; justify-content: center; margin-top: var(--s-3); }
.legend__item { display: flex; align-items: center; gap: 6px; font-size: var(--fs-12); color: var(--text-2); }
.dot { width: 8px; height: 8px; border-radius: var(--r-pill); flex: none; }

.list { display: flex; flex-direction: column; gap: var(--s-1); flex: 1; }
.list__row { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2); border-radius: var(--r-md); }
.list__row:hover { background: var(--surface-3); }
.list__body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.list__title { display: block; font-weight: 570; font-size: var(--fs-13); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list__meta { display: block; font-size: var(--fs-12); color: var(--text-3); }
.tag { font-size: var(--fs-12); font-weight: 600; padding: 3px 9px; border-radius: var(--r-pill); white-space: nowrap; }
.tag--done { background: var(--tag-done-bg); color: var(--tag-done-fg); }
.tag--review { background: var(--tag-review-bg); color: var(--tag-review-fg); }
.tag--model { background: var(--tag-model-bg); color: var(--tag-model-fg); }

.tile { width: 30px; height: 30px; border-radius: var(--r-sm); display: grid; place-items: center; flex: none; color: var(--text-inv); font-size: var(--fs-12); font-weight: 700; }

.visit .card__fg { gap: var(--s-2); }
.visit__name { font-size: var(--fs-20); font-weight: 660; letter-spacing: -.02em; }
.visit__when { color: var(--text-2); font-size: var(--fs-13); }

.tpl__body { display: flex; flex-direction: column; gap: var(--s-2); padding: 0 var(--s-2) var(--s-2); }
.tpl__art { height: 96px; display: grid; place-items: center; color: var(--text-3); }
.tpl__name { font-weight: 620; font-size: var(--fs-13); }
.tpl__desc { font-size: var(--fs-12); color: var(--text-3); }
.tpl__btn { margin-top: auto; }

.empty {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; gap: var(--s-3);
  padding: var(--s-8) var(--s-4); min-height: 220px;
}
.empty__icon {
  width: 48px; height: 48px; border-radius: var(--r-lg);
  display: grid; place-items: center;
  background: var(--surface-3); color: var(--text-3);
}
.empty__icon svg { width: 22px; height: 22px; }
.empty__title { font-weight: 620; font-size: var(--fs-16); }
.empty__text { color: var(--text-2); max-width: 42ch; }

.authbody { display: grid; place-items: center; min-height: 100vh; padding: var(--s-6); }
.auth { width: 100%; max-width: 404px; display: flex; flex-direction: column; gap: var(--s-5); }
.auth__brand { display: flex; align-items: center; gap: var(--s-3); justify-content: center; }
.auth__card { padding: var(--s-4); gap: var(--s-4); }
.auth__head { padding: var(--s-3) var(--s-2) 0; text-align: center; }
.auth__title { font-size: var(--fs-20); font-weight: 660; letter-spacing: -.02em; }
.auth__sub { color: var(--text-2); margin-top: 2px; }
.auth__form { display: flex; flex-direction: column; gap: var(--s-4); }
.auth__alt { text-align: center; color: var(--text-2); font-size: var(--fs-13); padding-bottom: var(--s-2); }
.auth__alt a { color: var(--accent); font-weight: 600; }
.auth__alt a:hover { text-decoration: underline; }
.auth__theme { display: flex; justify-content: center; }
.switchrow {
  display: inline-flex; align-items: center; gap: var(--s-3);
  padding: 7px var(--s-3); border-radius: var(--r-pill);
  font-size: var(--fs-13); font-weight: 550; color: var(--text-2);
}
.switchrow:hover { background: var(--surface-outer); color: var(--text); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: var(--fs-13); font-weight: 570; color: var(--text-2); }
.input {
  height: 40px; padding: 0 var(--s-3);
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r-md);
  font-size: var(--fs-14); outline: none; width: 100%;
}
.input:focus { border-color: var(--accent); background: var(--surface); }
.input::placeholder { color: var(--text-3); }
.field__hint { font-size: var(--fs-12); color: var(--text-3); }

.notice {
  display: flex; gap: var(--s-3); align-items: flex-start;
  padding: var(--s-3); border-radius: var(--r-md); font-size: var(--fs-13);
}
.notice--error { background: var(--danger-soft); color: var(--danger); }
.notice--info { background: var(--info-soft); color: var(--info); }
.btn--lg { height: 42px; font-size: var(--fs-14); }

.form { display: flex; flex-direction: column; gap: var(--s-4); }
.form__row { display: grid; gap: var(--s-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form__actions { display: flex; gap: var(--s-3); justify-content: flex-end; padding-top: var(--s-2); }
.field--error .input, .field--error .select__trigger { border-color: var(--danger); }
.field__error { font-size: var(--fs-12); color: var(--danger); }
.field .select__trigger { width: 100%; height: 40px; justify-content: space-between; font-weight: 500; }
.field .select__value { color: var(--text); }
.field .select__value[data-empty="1"] { color: var(--text-3); }
.field .menu { width: 100%; }
.field .menu__panel { min-width: 100%; max-height: 260px; overflow-y: auto; }
.input--num { text-align: right; font-variant-numeric: tabular-nums; }
.form__hint { color: var(--text-3); font-size: var(--fs-12); }

@media (max-width: 767px) {
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .form__actions { flex-direction: column-reverse; }
  .form__actions .btn { width: 100%; justify-content: center; }
}

.toolbar {
  display: flex; align-items: center; gap: var(--s-3);
  flex-wrap: wrap; padding: var(--s-2) var(--s-2) 0;
}
.toolbar__spacer { flex: 1; }
.filter {
  display: flex; align-items: center; gap: var(--s-2);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 0 var(--s-3); height: 34px;
}
.filter:focus-within { border-color: var(--border-strong); }
.filter input { border: 0; background: none; outline: none; width: 190px; font-size: var(--fs-13); color: var(--text); }
.filter input::placeholder { color: var(--text-3); }

.select__trigger {
  display: flex; align-items: center; gap: var(--s-2);
  height: 34px; padding: 0 var(--s-3);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); font-size: var(--fs-13); font-weight: 550;
  color: var(--text); white-space: nowrap;
}
.select__trigger:hover { background: var(--surface-3); }
.menu.is-open .select__trigger { border-color: var(--border-strong); }
.select__label { color: var(--text-3); font-weight: 500; }
.select__caret { color: var(--text-3); }
.menu__panel--below { left: 0; top: calc(100% + 6px); }
.menu__panel--below-right { right: 0; top: calc(100% + 6px); }
.menu__panel.is-flipped { top: auto; bottom: calc(100% + 6px); }
.menu__panel.is-fixed { position: fixed; z-index: 60; }

.tablewrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-13); }
.table th, .table td { text-align: left; padding: 11px var(--s-3); white-space: nowrap; }
.table th {
  font-size: var(--fs-12); font-weight: 600; color: var(--text-3);
  border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface);
}
.table th[data-sort] { cursor: pointer; user-select: none; }
.table th[data-sort]:hover { color: var(--text-2); }
.table th .th__arrow { opacity: 0; margin-left: 4px; }
.table th[aria-sort="ascending"] .th__arrow { opacity: 1; }
.table th[aria-sort="descending"] .th__arrow { opacity: 1; transform: rotate(180deg); }
.table tbody tr { border-bottom: 1px solid var(--border); }
.table tbody tr:last-child { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.table td { color: var(--text-2); }
.table .cell--num { text-align: right; font-variant-numeric: tabular-nums; }
.cell__main { display: block; color: var(--text); font-weight: 570; }
a.cell__main:hover { color: var(--accent); }
.cell__meta { display: block; font-size: var(--fs-12); color: var(--text-3); }
.cell__id { font-family: var(--font-mono); font-size: var(--fs-12); color: var(--text-3); }

.rowbtn {
  width: 28px; height: 28px; border-radius: var(--r-sm);
  display: grid; place-items: center; color: var(--text-3);
}
.rowbtn:hover { background: var(--surface-3); color: var(--text-2); }

.pager {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-2) var(--s-1);
}
.pager__count { color: var(--text-3); font-size: var(--fs-12); }
.pager__spacer { flex: 1; }
.pagebtn {
  height: 30px; min-width: 30px; padding: 0 var(--s-2);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text-2); font-size: var(--fs-12); font-weight: 600;
}
.pagebtn:hover:not(:disabled) { background: var(--surface-3); }
.pagebtn:disabled { opacity: .42; cursor: default; }
.pagebtn.is-current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.tile--blue { background: var(--cat-blue); }
.tile--green { background: var(--cat-green); }
.tile--amber { background: var(--cat-amber); }
.tile--violet { background: var(--cat-violet); }
.tile--ink { background: var(--cat-ink); }
.tile--slate { background: var(--cat-slate); }

.dot--accent { background: var(--accent); }
.dot--warn { background: var(--warn); }
.dot--idle { background: var(--dot-idle); }

.btn--block { width: 100%; justify-content: center; }

.menu__item--switch { justify-content: space-between; gap: var(--s-5); }
.switch {
  position: relative; flex: none;
  width: 38px; height: 22px; border-radius: var(--r-pill);
  background: var(--border-strong); transition: background .18s ease;
}
[role="switch"][aria-checked="true"] .switch { background: var(--accent); }
.switch__thumb {
  position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: var(--r-pill);
  background: #FFFFFF; box-shadow: 0 1px 2px rgba(0, 0, 0, .28);
  transition: transform .18s ease;
}
[role="switch"][aria-checked="true"] .switch__thumb { transform: translateX(16px); }

@media (max-width: 1360px) {
  .grid--main, .grid--lower { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .grid--tpl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1081px) {
  .is-collapsed .app { grid-template-columns: 72px 1fr; }
  .is-collapsed .rail-hide { display: none; }
  .is-collapsed .rail-only { display: grid !important; }
  .is-collapsed .nav__item { justify-content: center; padding: 7px; }
  .is-collapsed .nav__item:hover, .is-collapsed .nav__item.is-active { background: transparent; }
  .is-collapsed .nav__item:hover .nav__icon, .is-collapsed .nav__item.is-active .nav__icon { color: var(--accent); }
  .is-collapsed .nav__item::before,
  .is-collapsed .nav__items::before { display: none; }
  .is-collapsed .nav__label { display: none; }
  .is-collapsed .userchip { justify-content: center; }
  .is-collapsed .sidebar__head { padding: 0; justify-content: center; }
  .is-collapsed .brand { justify-content: center; width: 100%; }
}

@media (min-width: 768px) and (max-width: 1080px) {
  .app { grid-template-columns: 72px 1fr; }
  .rail-hide { display: none; }
  .rail-only { display: grid !important; }
  .nav__item { justify-content: center; padding: 7px; }
  .nav__item:hover, .nav__item.is-active { background: transparent; }
  .nav__item:hover .nav__icon, .nav__item.is-active .nav__icon { color: var(--accent); }
  .nav__item::before, .nav__items::before { display: none; }
  .nav__label { display: none; }
  .userchip { justify-content: center; }
  .topbar__collapse, .topbar__pip { display: none; }
  .brand { justify-content: center; width: 100%; }
  .nav__group { margin-bottom: var(--s-3); }
  .nav__group + .nav__group { border-top: 1px solid var(--border); padding-top: var(--s-3); }
  .sidebar__foot { padding: var(--s-2); }
  .menu__panel--up { left: calc(100% + 8px); bottom: 0; }
  .grid--stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--main, .grid--lower { grid-template-columns: minmax(0, 1fr); }
  .search { width: 220px; }
}

@media (max-width: 767px) {
  .app { grid-template-columns: 1fr; }
  .filter input { width: 100%; }
  .toolbar { gap: var(--s-2); }
  .table th, .table td { padding: 10px var(--s-2); }
  .iconbtn.topbar__menu { display: grid; }
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: 282px; height: 100dvh;
    z-index: 60; transform: translateX(-100%);
    transition: transform .24s cubic-bezier(.4, 0, .2, 1);
    box-shadow: var(--shadow-lg);
  }
  .is-drawer-open .sidebar { transform: none; }
  .topbar__collapse, .topbar__pip { display: none; }
  .content { padding: var(--s-4); gap: var(--s-4); }
  .topbar { padding: 0 var(--s-4); gap: var(--s-3); }
  .crumb__text { display: none; }
  .search { width: auto; flex: 1; min-width: 0; }
  .topbar__cta { padding: 0 var(--s-3); }
  .topbar__cta-text { display: none; }
  .page__title { font-size: var(--fs-20); }
  .grid--stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--main, .grid--lower, .grid--tpl { grid-template-columns: minmax(0, 1fr); }
  .stat .card__fg { min-height: 84px; }
  .stat__value { font-size: var(--fs-26); }
  .card__sub {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; min-height: calc(var(--lh-body) * 2em);
  }
  .card__head { min-height: 0; }
}

@media (min-width: 768px) {
  .scrim { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar, .scrim, .switch, .switch__thumb { transition: none; }
}

.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s-4); align-items: start; }
.workspace.is-dropping .drop { border-color: var(--accent); background: var(--accent-soft); }

.card--canvas { min-height: 560px; }
.card--side { position: sticky; top: var(--s-4); }
.card__fg--canvas { padding: 0; position: relative; overflow: hidden; min-height: 480px; }

.canvas { position: absolute; inset: 0; background: var(--surface-2); }
.canvas canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.canvas--drag canvas { cursor: grabbing; }
.canvas--pick canvas { cursor: crosshair; }

.canvas__hint {
  position: absolute; left: 50%; top: var(--s-3); transform: translateX(-50%);
  background: var(--text); color: var(--surface); font-size: var(--fs-12); font-weight: 550;
  padding: 7px 12px; border-radius: var(--r-pill); pointer-events: none; white-space: nowrap;
}
.canvas__badge {
  position: absolute; left: var(--s-3); bottom: var(--s-3);
  display: flex; align-items: center; gap: var(--s-2);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 6px 10px; font-size: var(--fs-12); font-weight: 550; color: var(--text-2);
}
.canvas__bar { display: block; height: 6px; border-bottom: 2px solid var(--text-2); border-left: 2px solid var(--text-2); border-right: 2px solid var(--text-2); }

.drop {
  position: absolute; inset: var(--s-4); border: 1.5px dashed var(--border); border-radius: var(--r-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--s-3); text-align: center; padding: var(--s-5); background: var(--surface);
}
.drop--error { border-color: var(--danger); }
.drop--error .empty__title { color: var(--danger); }
.drop__limit { font-size: var(--fs-12); color: var(--text-3); }
.drop--busy { border-style: solid; }

.spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2.5px solid var(--track); border-top-color: var(--accent);
  animation: rl-spin .7s linear infinite;
}
@keyframes rl-spin { to { transform: rotate(360deg); } }

.progress { width: 200px; height: 5px; border-radius: var(--r-pill); background: var(--track); overflow: hidden; }
.progress__fill { display: block; height: 100%; width: 0; background: var(--accent); border-radius: var(--r-pill); transition: width .15s linear; }

.toolgroup { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); flex: none; }

.kv { display: flex; flex-direction: column; gap: 10px; }
.kv__row { display: flex; align-items: baseline; gap: var(--s-3); justify-content: space-between; }
.kv__k { font-size: var(--fs-12); color: var(--text-3); font-weight: 550; flex: none; }
.kv__v { font-size: var(--fs-13); color: var(--text); font-weight: 550; text-align: right; min-width: 0; overflow-wrap: anywhere; }

.scalestate { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-13); font-weight: 550; color: var(--text-2); }
.scaleform { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-3); }
.scaleform__actions { display: flex; gap: var(--s-2); }
.scaleform__actions .btn { flex: 1; justify-content: center; }
.scalerow { display: flex; gap: var(--s-2); align-items: stretch; }
.scalerow .input { flex: 1; min-width: 0; }
.scalerow .menu { flex: none; width: 88px; }
.scalerow .select__trigger { width: 100%; height: 40px; justify-content: space-between; }

.card--warn { border-color: var(--warn); }
.codeline {
  display: block; margin-top: var(--s-2); padding: 10px var(--s-3);
  background: var(--surface-2); border-radius: var(--r-md);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: var(--fs-12); color: var(--text-2); overflow-wrap: anywhere;
}
.btn--danger { color: var(--danger); }
.btn--danger:hover { background: var(--danger-soft); }
.list__go { color: var(--text-3); flex: none; margin-left: auto; }

@media (max-width: 1080px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .card--side { position: static; }
}
@media (max-width: 1279px) {
  .workspace--team { grid-template-columns: minmax(0, 1fr); }
  .workspace--team .card--side { position: static; }
}
@media (max-width: 767px) {
  .card--canvas { min-height: 420px; }
  .card__fg--canvas { min-height: 340px; }
}

.tools {
  position: absolute; left: var(--s-3); top: var(--s-3); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-pill); box-shadow: 0 2px 8px rgba(6, 27, 49, .07);
}
.tools__sep { width: 20px; height: 1px; background: var(--border); margin: 4px 0; flex: none; }
.tool {
  width: 32px; height: 32px; border-radius: var(--r-pill); flex: none;
  display: grid; place-items: center; color: var(--text-3);
}
.tool:hover { background: var(--surface-3); color: var(--text-2); }
.tool.is-on { background: var(--text); color: var(--surface); }
.tool--rack.is-on { background: var(--accent); color: #fff; }
.tool--aisle.is-on { background: var(--info); color: #fff; }
.tool--dock.is-on { background: var(--warn); color: #fff; }
.tool--block.is-on { background: var(--danger); color: #fff; }
.canvas--draw canvas { cursor: crosshair; }

.swatch { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.swatch--rack { background: var(--accent); }
.swatch--aisle { background: var(--info); }
.swatch--dock { background: var(--warn); }
.swatch--block { background: var(--danger); }

.card__inline { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-3); }
.card__inline-title { font-size: var(--fs-12); font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }

.selinfo {
  display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-3);
  padding: 10px var(--s-3); border-radius: var(--r-md); background: var(--surface-2);
}
.selinfo__type { font-size: var(--fs-12); font-weight: 600; color: var(--text-2); flex: none; }
.selinfo__dims { font-size: var(--fs-12); color: var(--text-3); margin-left: auto; }
.selinfo__del { color: var(--danger); flex: none; }
.selinfo__del:hover { background: var(--danger-soft); }

.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: var(--s-4); }
.modal__scrim { position: absolute; inset: 0; background: rgba(6, 27, 49, .38); }
.modal__box {
  position: relative; width: 100%; max-width: 380px; background: var(--surface);
  border-radius: var(--r-lg); padding: var(--s-5); box-shadow: 0 18px 44px rgba(6, 27, 49, .22);
}
.modal__title { font-size: var(--fs-16); font-weight: 640; margin-bottom: 6px; }
.modal__text { font-size: var(--fs-13); color: var(--text-2); margin-bottom: var(--s-4); }
.modal__actions { display: flex; gap: var(--s-2); }
.modal__actions .btn { flex: 1; justify-content: center; }
.btn--solid-danger { background: var(--danger); color: #fff; }
.btn--solid-danger:hover { background: var(--danger); filter: brightness(.94); }

@media (max-width: 767px) {
  .tools { left: var(--s-2); top: var(--s-2); gap: 1px; padding: 3px; }
  .tool { width: 30px; height: 30px; }
  .tools__sep { margin: 3px 0; }
}

.form__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form__sep { height: 1px; background: var(--border); margin: var(--s-2) 0; }
.form__legend { font-size: var(--fs-12); font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }
.field__unit { position: relative; display: block; }
.field__unit .input { padding-right: 52px; }
.field__suffix {
  position: absolute; right: var(--s-3); top: 50%; transform: translateY(-50%);
  font-size: var(--fs-12); color: var(--text-3); pointer-events: none;
}

@media (max-width: 767px) {
  .form__row--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.check {
  display: flex; align-items: flex-start; gap: var(--s-2); margin-top: var(--s-3);
  padding: 10px var(--s-3); border-radius: var(--r-md); background: var(--surface-2);
}
.check .dot { margin-top: 5px; flex: none; }
.check__text { font-size: var(--fs-12); color: var(--text-2); line-height: var(--lh-body); }
.dot--danger { background: var(--danger); }

.doc {
  background: var(--doc-bg); color: var(--doc-ink); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-6); max-width: 940px;
}
.doc__masthead {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-5);
  padding-bottom: var(--s-4); border-bottom: 2px solid var(--doc-ink);
}
.doc__kicker {
  font-family: var(--font-mono); font-size: var(--fs-11); font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--doc-ink-3);
}
.doc__title { font-size: var(--fs-26); font-weight: 680; letter-spacing: -.02em; margin-top: 4px; }
.doc__meta { color: var(--doc-ink-2); font-size: var(--fs-13); margin-top: 4px; }
.doc__org { text-align: right; flex: none; }
.doc__orgname { font-weight: 620; font-size: var(--fs-14); }
.doc__date { font-family: var(--font-mono); font-size: var(--fs-12); color: var(--doc-ink-3); margin-top: 2px; }

.doc__section { display: flex; flex-direction: column; gap: var(--s-3); }
.doc__h {
  font-family: var(--font-mono); font-size: var(--fs-11); font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--doc-ink-3);
  padding-bottom: var(--s-2); border-bottom: 1px solid var(--doc-rule);
}
.doc__note { font-size: var(--fs-13); color: var(--doc-ink-3); }
.doc__verdict {
  font-size: var(--fs-14); font-weight: 550; padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md); border-left: 3px solid var(--doc-rule); background: var(--doc-surface);
}
.doc__verdict--good { border-left-color: var(--doc-accent); background: var(--doc-accent-soft); color: #05734F; }
.doc__verdict--bad { border-left-color: var(--doc-danger); background: var(--doc-danger-soft); color: #B23F3B; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.facts--2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts__row { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.facts__row dt {
  font-size: var(--fs-11); font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--doc-ink-3);
}
.facts__row dd { font-size: var(--fs-14); font-weight: 550; color: var(--doc-ink); }

.doc__figure { margin: 0; }
.doc__figure canvas {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--doc-rule); border-radius: var(--r-md); background: var(--doc-bg);
}
.doc__caption { font-size: var(--fs-12); color: var(--doc-ink-3); margin-top: var(--s-2); }

.doc__table { width: 100%; border-collapse: collapse; }
.doc__table th {
  text-align: left; font-size: var(--fs-11); font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--doc-ink-3); padding: 0 var(--s-3) var(--s-2);
}
.doc__table td { padding: 10px var(--s-3); border-top: 1px solid var(--doc-rule); font-size: var(--fs-13); }
.doc__table .cell--num { text-align: right; font-variant-numeric: tabular-nums; }
.tag--bad { background: var(--danger-soft); color: var(--danger); }

.doc__foot {
  display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap;
  padding-top: var(--s-4); border-top: 1px solid var(--doc-rule);
  font-size: var(--fs-12); color: var(--doc-ink-3);
}

@media (max-width: 767px) {
  .doc { padding: var(--s-4); gap: var(--s-5); }
  .doc__masthead { flex-direction: column; gap: var(--s-3); }
  .doc__org { text-align: left; }
  .facts, .facts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media print {
  .sidebar, .topbar, .scrim, .noprint, .pager, .toolbar, .demobar, .tools { display: none !important; }
  .app { display: block; }
  .content { padding: 0; gap: 0; }
  .doc {
    border: 0; border-radius: 0; padding: 0; max-width: none;
    background: #fff; color: #000; gap: 18pt;
  }
  .doc__section { break-inside: avoid; }
  .doc__figure { break-inside: avoid; }
  .doc__table { break-inside: auto; }
  .doc__table tr { break-inside: avoid; }
  .doc__h { color: #444; border-bottom-color: #ccc; }
  .doc__masthead { border-bottom-color: #000; }
  .doc__verdict { border: 1px solid #999; background: #fff !important; color: #000 !important; }
  .doc__figure canvas { border-color: #999; background: #fff; }
  a[href]::after { content: none !important; }

  .filter, .page__actions, .flow__step + .flow__step::before { display: none !important; }
  .grid--help, .grid--stats, .grid--main, .grid--lower, .grid--tpl, .grid--prefs, .workspace {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .card, .helpcard, .flow__step, .helpitem { break-inside: avoid; }
  .card { background: #fff !important; border: 1px solid #ddd; box-shadow: none; }
  .card__fg { background: #fff !important; }
  .helpitem__caret { display: none !important; }
  details[data-help-item] > .helpitem__a,
  details:not([open]) > *:not(summary) { display: block !important; }
  .card--side { position: static !important; }

  @page { margin: 16mm; }
}

.doc .tag { background: var(--doc-surface); color: var(--doc-ink-2); }
.doc .tag--model { background: #E8F1FA; color: #2E6BA6; }
.doc .tag--review { background: #FDF3E2; color: #A9761F; }
.doc .tag--done { background: var(--doc-accent-soft); color: #05734F; }
.doc .tag--bad { background: var(--doc-danger-soft); color: #B23F3B; }
.doc .swatch--rack { background: var(--doc-accent); }
.doc .swatch--aisle { background: var(--doc-info); }
.doc .swatch--dock { background: var(--doc-warn); }
.doc .swatch--block { background: var(--doc-danger); }
.doc .cell__id { color: var(--doc-ink-3); }

.demoblock {
  margin-top: var(--s-4); padding: var(--s-4);
  border: 1px dashed var(--border-strong); border-radius: var(--r-lg);
  background: var(--surface-2); display: flex; flex-direction: column; gap: var(--s-3);
}
.demoblock__head { display: flex; flex-direction: column; gap: 2px; }
.demoblock__title { font-size: var(--fs-13); font-weight: 640; color: var(--text); }
.demoblock__note { font-size: var(--fs-12); color: var(--text-3); }
.demoblock__creds { display: flex; flex-direction: column; gap: 6px; }
.demoblock__creds > div { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.demoblock__creds dt {
  font-size: var(--fs-11); font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text-3);
}
.demoblock__creds dd {
  font-family: var(--font-mono); font-size: var(--fs-12); color: var(--text-2);
  overflow-wrap: anywhere; text-align: right;
}
.demoblock__foot { font-size: var(--fs-11); color: var(--text-3); text-align: center; }
.demobar {
  display: flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: 7px var(--s-4); background: var(--warn-soft); color: #8A6417;
  font-size: var(--fs-12); font-weight: 550;
}

.avatar { overflow: hidden; display: grid; place-items: center; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar__initial { font-size: var(--fs-12); font-weight: 640; color: var(--text-2); }
.avatar--lg {
  width: 84px; height: 84px; border-radius: var(--r-lg); flex: none;
  background: var(--surface-3); border: 1px solid var(--border);
}
.avatar--lg .avatar__initial { font-size: var(--fs-26); }
.avatarform { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.avatarform__actions { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }

.grid--prefs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.optlist { display: flex; flex-direction: column; }
.optrow {
  display: flex; align-items: center; gap: var(--s-3); width: 100%;
  padding: 11px var(--s-3); border-radius: var(--r-md);
  font-size: var(--fs-13); color: var(--text-2); text-align: left;
}
.optrow:hover { background: var(--surface-3); color: var(--text); }
.optrow[aria-checked="true"] { color: var(--text); font-weight: 600; }
.optrow[aria-checked="true"] .optrow__tick { opacity: 1; }
.optrow__label { flex: 1; min-width: 0; }
.optrow__tick { opacity: 0; color: var(--accent); flex: none; }

.notice--ok { background: var(--accent-soft); color: var(--accent-fill); }

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

.card--locked .card__fg { opacity: .62; }
.card__lock {
  margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--surface-3); color: var(--text-3);
  font-size: var(--fs-11); font-weight: 600; letter-spacing: .02em;
}
.field__hint--lock { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); }
.input:disabled, .input[readonly] {
  background: var(--surface-3); color: var(--text-3); cursor: not-allowed;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }

.tplcard .card__fg { gap: var(--s-3); }
.tplcard__tile { width: 40px; height: 40px; border-radius: var(--r-md); }
.tplcard__desc { font-size: var(--fs-13); color: var(--text-2); line-height: var(--lh-body); }
.tplcard__list { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: var(--s-2); }
.tplcard__list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3);
  font-size: var(--fs-12); color: var(--text-3);
}
.tplcard__list li span:last-child { color: var(--text-2); font-weight: 550; text-align: right; }

.tplrow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); }
.tplrow__item {
  display: flex; align-items: flex-start; gap: var(--s-3);
  padding: var(--s-3); border-radius: var(--r-md); min-width: 0;
}
.tplrow__item:hover { background: var(--surface-3); }
.tplrow__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tplrow__name { font-size: var(--fs-13); font-weight: 600; color: var(--text); }
.tplrow__desc {
  font-size: var(--fs-12); color: var(--text-3); line-height: var(--lh-body);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tplapply { margin-top: var(--s-3); }

.steps { display: flex; flex-direction: column; gap: var(--s-3); }
.steps li { display: flex; align-items: flex-start; gap: var(--s-3); font-size: var(--fs-13); color: var(--text-2); line-height: var(--lh-body); }
.steps__n {
  flex: none; width: 22px; height: 22px; border-radius: var(--r-pill);
  background: var(--accent-soft); color: var(--accent-fill);
  display: grid; place-items: center; font-size: var(--fs-11); font-weight: 700;
}

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

.fleetadd { display: flex; align-items: flex-end; gap: var(--s-3); flex-wrap: wrap; }
.fleetadd .field:first-child { flex: 1; min-width: 220px; }
.fleetadd .menu { width: 100%; }
.fleetadd .select__trigger { width: 100%; height: 40px; justify-content: space-between; }
.fleetadd__qty { width: 92px; flex: none; }
.qtyform { display: inline-flex; }
.input--qty { width: 72px; height: 34px; text-align: right; padding: 0 10px; }

.doc__total td { border-top: 2px solid var(--doc-ink); font-weight: 640; color: var(--doc-ink); }

.notice--action { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.notice--action > span { flex: 1; min-width: 0; }

.page__head--tight { margin-top: var(--s-2); }
.page__h2 { font-size: var(--fs-20); font-weight: 650; letter-spacing: -.01em; }

.flow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-3); position: relative; list-style: none; margin: 0; padding: 0; }
.flow__step { position: relative; min-width: 0; }
.flow__step + .flow__step::before {
  content: ""; position: absolute; left: calc(-1 * var(--s-3)); top: 32px;
  width: var(--s-3); height: 2px; background: var(--border-strong); z-index: 0;
}
.flow__link {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: var(--s-3); border-radius: var(--r-lg); height: 100%;
  border: 1px solid transparent;
}
.flow__link:hover { background: var(--surface-3); border-color: var(--border); }
.flow__badge {
  position: relative; width: 40px; height: 40px; border-radius: var(--r-md); flex: none;
  display: grid; place-items: center; background: var(--surface-3); color: var(--text-2);
}
.flow__link:hover .flow__badge { background: var(--accent-soft); color: var(--accent-fill); }
.flow__n {
  position: absolute; right: -5px; top: -5px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: var(--r-pill); background: var(--text); color: var(--surface);
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  display: grid; place-items: center;
}
.flow__name { font-size: var(--fs-13); font-weight: 620; color: var(--text); }
.flow__note { font-size: var(--fs-12); color: var(--text-3); line-height: var(--lh-body); }

.grid--help { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.helpcard .card__head { align-items: center; }
.helpcard__tile { width: 34px; height: 34px; border-radius: var(--r-md); flex: none; }
.helpcard__heads { display: flex; flex-direction: column; gap: 1px; min-width: 0; }

.helpitem { border-top: 1px solid var(--border); }
.helpitem:first-of-type { border-top: 0; }
.helpitem__q {
  display: flex; align-items: center; gap: var(--s-3); cursor: pointer;
  padding: 12px var(--s-3); font-size: var(--fs-13); font-weight: 550; color: var(--text-2);
  list-style: none;
}
.helpitem__q::-webkit-details-marker { display: none; }
.helpitem__q:hover { color: var(--text); }
.helpitem__q > span:first-child { flex: 1; min-width: 0; }
.helpitem__caret { flex: none; color: var(--text-3); transition: transform .16s ease; }
.helpitem[open] .helpitem__q { color: var(--text); font-weight: 620; }
.helpitem[open] .helpitem__caret { transform: rotate(180deg); }
.helpitem__a {
  padding: 0 var(--s-3) var(--s-4); margin-top: -2px;
  font-size: var(--fs-13); color: var(--text-2); line-height: var(--lh-body);
}

.contactrow { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.contactrow__tile { width: 38px; height: 38px; border-radius: var(--r-md); flex: none; }
.contactrow__body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 180px; }
.contactrow__title { font-size: var(--fs-14); font-weight: 620; color: var(--text); }
.contactrow__text { font-size: var(--fs-13); color: var(--text-2); }

@media (max-width: 1080px) {
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow__step:nth-child(4)::before { display: none; }
  .grid--help { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow__step:nth-child(odd)::before { display: none; }
  .flow__step:nth-child(even)::before { display: block; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.personrow { display: flex; align-items: center; gap: var(--s-2); min-width: 0; }
.personrow__body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.personrow .cell__main { display: flex; align-items: center; gap: 6px; min-width: 0; }
.personrow__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.personrow .cell__main .tag { flex: none; }
.rolemenu { display: inline-flex; }
.rolemenu .select__trigger { min-width: 104px; }
.team__person { max-width: 0; width: 100%; }
.personrow__body > .cell__meta { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card--invite { border-color: var(--accent); }
.card--invite .card__title { color: var(--accent); }
.copyrow { display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-2); }
.copyrow__field { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: var(--fs-12); }
.copyrow .btn { flex: none; }
@media (max-width: 767px) {
  .team__person { max-width: none; width: auto; }
  .personrow__body > .cell__meta { overflow: visible; text-overflow: clip; }
}
@media (max-width: 640px) {
  .copyrow { flex-direction: column; align-items: stretch; }
  .copyrow .btn { justify-content: center; }
}
.joinrole { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.joinrole__note { font-size: var(--fs-12); color: var(--text-3); }
.card--side .card__head { flex-wrap: wrap; }
.card--side .card__heading { flex: 1 1 100%; order: 2; }
.card--side .card__lock { order: 1; margin-left: 0; margin-bottom: 2px; }
.signout { position: relative; overflow: hidden; height: 36px; }
.signout__btn {
  position: absolute; inset: 0; width: 100%;
  transition: transform .28s cubic-bezier(.4, 0, .2, 1), opacity .18s ease;
}
.signout__slide {
  position: absolute; inset: 0; padding: 2px var(--s-2);
  display: flex; align-items: center;
  transform: translateY(100%); opacity: 0;
  transition: transform .28s cubic-bezier(.4, 0, .2, 1), opacity .18s ease;
}
.signout.is-armed .signout__btn { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.signout.is-armed .signout__slide { transform: translateY(0); opacity: 1; }
.slide {
  position: relative; flex: 1; height: 32px; border-radius: var(--r-pill);
  background: var(--surface-3); overflow: hidden; user-select: none;
  touch-action: none;
}
.slide__fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: var(--danger-soft); border-radius: var(--r-pill);
  pointer-events: none;
}
.slide__hint {
  position: absolute; inset: 0; display: grid; place-items: center;
  padding-left: 22px;
  font-size: var(--fs-12); font-weight: 600; color: var(--text-3);
  pointer-events: none; white-space: nowrap;
}
.slide__knob {
  position: absolute; left: 2px; top: 2px; width: 28px; height: 28px;
  border-radius: 50%; background: var(--surface); color: var(--danger);
  display: grid; place-items: center; cursor: grab;
  box-shadow: var(--shadow-sm); touch-action: none;
}
.slide__knob:active { cursor: grabbing; }
.slide.is-dragging .slide__knob { transition: none; }
.slide:not(.is-dragging) .slide__knob { transition: transform .22s cubic-bezier(.4, 0, .2, 1); }
.slide:not(.is-dragging) .slide__fill { transition: width .22s cubic-bezier(.4, 0, .2, 1); }
.slide__knob:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.slide.is-done .slide__knob { color: #fff; background: var(--danger); }
.slide.is-done .slide__hint { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .signout__btn, .signout__slide, .slide__knob, .slide__fill { transition: none !important; }
}
.slide--wide { height: 46px; border-radius: var(--r-pill); background: var(--surface-3); }
.slide--wide .slide__knob { width: 40px; height: 40px; top: 3px; left: 3px; color: var(--accent-fill); }
.slide--wide .slide__hint { font-size: var(--fs-13); padding-left: 30px; }
.slide--wide .slide__fill { background: var(--accent-soft); }
.slide--wide.is-done .slide__knob { background: var(--accent); color: #fff; }
.demoblock form { margin-top: var(--s-2); }

.shift, .bench { --shift-fail: rgba(220,91,87,.4); --shift-ink: var(--text); --shift-muted: var(--text-3); --shift-line: var(--border-strong); --shift-rack: var(--surface-3); --shift-aisle: var(--accent-soft); --shift-dock: rgba(232,169,59,.45); --shift-block: var(--surface-2); --shift-path: var(--accent); --shift-chip-ink: var(--surface); --shift-bg: var(--surface); --shift-font: inherit; }
.shift { display: flex; flex-direction: column; gap: 12px; }
.bench { --shift-block: var(--surface-3); --shift-rack: var(--border-strong); --shift-font: var(--font-mono); }
.shift__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.shift__clock { display: flex; flex-direction: column; gap: 2px; }
.shift__clock b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 22px; font-weight: 600; letter-spacing: .02em; color: var(--text); font-variant-numeric: tabular-nums; }
.shift__clock span { font-size: 12px; color: var(--text-3); }
.shift__count { display: flex; flex-direction: column; gap: 2px; text-align: right; margin-left: auto; }
.shift__count span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--text-3); }
.shift__count b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1; }
.shift__ctl { display: flex; align-items: center; gap: 8px; }
.shift__play { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer; transition: transform .16s ease, background .16s ease; }
.shift__play:hover { background: var(--accent-hover); transform: scale(1.05); }
.shift__play .shift__ic-pause { display: none; }
.shift__play[aria-pressed="true"] .shift__ic-play { display: none; }
.shift__play[aria-pressed="true"] .shift__ic-pause { display: block; }
.shift__speeds { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.shift__speeds button { font: inherit; font-size: 12px; font-weight: 600; color: var(--text-2); background: transparent; border: 0; border-radius: 999px; padding: 5px 10px; cursor: pointer; }
.shift__speeds button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.shift__stage { position: relative; height: 300px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.shift__stage canvas { display: block; width: 100%; height: 100%; }
.shift__bar { position: relative; height: 10px; border-radius: 999px; background: var(--surface-3); overflow: visible; }
.shift__bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; background: var(--accent); transition: width .12s linear; }
.shift__bar s, .shift__bar u { position: absolute; top: -4px; bottom: -4px; width: 0; border-left: 2px solid var(--text); text-decoration: none; }
.shift__bar u { border-left-style: dashed; border-left-color: var(--text-3); }
.shift__bar s[hidden], .shift__bar u[hidden] { display: none; }
.shift__scrub { width: 100%; margin: 0; accent-color: var(--accent); }
.shift__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.shift__status { font-size: 13px; font-weight: 600; color: var(--text-2); min-height: 18px; }
.shift__status.is-met { color: var(--accent-fill); }
.shift__status.is-short { color: #C0392B; }
.shift__legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--text-2); }
.shift__legend span { display: inline-flex; align-items: center; gap: 6px; }
.shift__legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.shift__legend b { color: var(--text-3); font-weight: 600; }
.shift__figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.shift__figs > div { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.shift__figs span { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--text-3); }
.shift__figs b { font-size: 20px; font-weight: 700; letter-spacing: -.01em; color: var(--text); font-variant-numeric: tabular-nums; }
.shift__figs b.is-short { color: #C0392B; }
.shift__whatif { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 18px; padding: 16px 18px 18px; border-radius: 12px; border: 1px dashed var(--border-strong); background: var(--surface-2); }
.shift__wh { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 12px; }
.shift__wh span { white-space: nowrap; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--text); }
.shift__wh em { font-style: normal; font-size: 12.5px; color: var(--text-3); }
.shift__sl { display: flex; flex-direction: column; gap: 6px; }
.shift__sl > span { font-size: 12px; color: var(--text-2); }
.shift__sl input { width: 100%; margin: 0; accent-color: var(--accent); }
.shift__sl b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--text); font-weight: 600; }
.shift__line { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 110px 110px; gap: 12px; align-items: center; padding-top: 10px; border-top: 1px solid var(--border); }
.shift__line-n { font-size: 13px; font-weight: 600; color: var(--text); }
.shift__line label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); }
.shift__line input { width: 64px; height: 32px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 13px; padding: 0 8px; }
@media (max-width: 720px) {
  .shift__stage { height: 220px; }
  .shift__whatif { grid-template-columns: 1fr; }
  .shift__line { grid-template-columns: 1fr; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .shift__bar i { transition: none; } }

.menu__flag { flex: none; margin-right: 10px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.optrow__flag { flex: none; margin-right: 12px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }

.doc--demo { position: relative; }
.doc__demo { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; display: flex; align-items: center; justify-content: center; }
.doc__demo span { font-size: 180px; font-weight: 800; letter-spacing: .12em; color: rgba(220,91,87,.11); transform: rotate(-28deg); white-space: nowrap; }
.doc__demonote { position: relative; z-index: 6; margin: 0 0 18px; padding: 10px 14px; border-radius: 8px; background: #FDECEC; color: #8A2320; font-size: 13px; font-weight: 600; border: 1px solid #F3C6C4; }
@media print {
  .doc__demo { display: flex !important; position: fixed; }
  .doc__demo span { color: rgba(220,91,87,.16); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .doc__demonote { display: block !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

.segmented { display: inline-flex; padding: 3px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--border); }
.segmented__opt { position: relative; }
.segmented__opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.segmented__opt span { display: inline-block; padding: 6px 14px; border-radius: var(--r-pill); font-size: var(--fs-13); font-weight: 600; color: var(--text-2); }
.segmented__opt input:checked + span { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.segmented__opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.field__hint--wrap { overflow-wrap: anywhere; word-break: break-word; }

.updbar {
  display: flex; align-items: center; justify-content: center; gap: var(--s-3);
  padding: 7px var(--s-4); background: var(--accent-soft); color: var(--accent);
  font-size: var(--fs-12); font-weight: 550;
}
.updbar a { color: inherit; font-weight: 680; text-decoration: none; border-bottom: 1px solid currentColor; }
.planbar {
  display: flex; align-items: center; justify-content: center; gap: var(--s-3); flex-wrap: wrap;
  padding: 7px var(--s-4); font-size: var(--fs-12); font-weight: 550;
}
.planbar--warn { background: var(--warn-soft); color: #8A6417; }
.planbar--bad { background: var(--danger-soft); color: var(--danger); }
.planbar a { color: inherit; font-weight: 680; text-decoration: none; border-bottom: 1px solid currentColor; }
.card__fg--danger { border-top: 1px solid var(--border); }
.notice--stack { display: block; }
.notice--stack .field__hint code { overflow-wrap: anywhere; }
.keybox { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-2); flex-wrap: wrap; }
.keybox__code { font-family: var(--font-mono); font-size: var(--fs-13); flex: 1 1 320px; min-width: 0; }
tr.is-muted td { opacity: .55; }
.scope { display: flex; align-items: baseline; gap: var(--s-2); font-size: var(--fs-13); margin-top: var(--s-2); }
.scope .field__hint { margin: 0; }
.danger { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.danger > div { flex: 1 1 320px; min-width: 0; }
.danger form { flex: none; }
.danger .field__hint { margin-top: var(--s-1); }
.danger__form { display: grid; gap: var(--s-3); margin-top: var(--s-3); max-width: 420px; }
.table--audit td { vertical-align: top; }
.audit__act { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: var(--fs-12); font-weight: 600; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.audit__act--access { background: var(--info-soft); color: var(--info); }
.audit__act--security { background: var(--warn-soft); color: #8A6417; }
.audit__act--team { background: var(--accent-soft); color: var(--accent); }
.audit__act--studies, .audit__act--library { background: transparent; padding-left: 0; }
.audit__act--sharing { background: var(--accent-soft); color: var(--accent); }
.audit__act--account { background: var(--danger-soft); color: var(--danger); }
.audit__meta { display: flex; flex-wrap: wrap; gap: 2px 10px; max-width: 420px; overflow-wrap: anywhere; }
.audit__kv b { font-weight: 600; color: var(--text-2); }
.filter--date { gap: var(--s-2); }
.filter__label { font-size: var(--fs-12); color: var(--text-3); white-space: nowrap; }
.input--sm { height: 32px; width: 124px; font-size: var(--fs-12); }
.pagebtn.is-disabled { opacity: .42; pointer-events: none; }
a.pagebtn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.lic__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-3); }
.lic__rows { margin: 0 0 var(--s-3); display: grid; gap: var(--s-2); }
.lic__row { display: flex; justify-content: space-between; gap: var(--s-3); font-size: var(--fs-13); }
.lic__row dt { color: var(--text-2); }
.lic__row dd { margin: 0; font-weight: 600; text-align: right; }
.lic__days { font-weight: 550; color: var(--text-2); }
.lic__days--soon { color: #8A6417; }
.lic__days--over { color: var(--danger); }
.updmain { display: grid; gap: var(--s-4); align-content: start; min-width: 0; }
.stat__value--sm { font-size: var(--fs-22); }
.card--available { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.updnotes__title { font-weight: 640; margin-bottom: 2px; }
.updnotes__lede { color: var(--text-2); margin: 0 0 var(--s-3); }
.updnotes { list-style: none; margin: 0 0 var(--s-3); padding: 0; display: grid; gap: var(--s-2); }
.updnotes li { display: flex; gap: var(--s-3); align-items: flex-start; line-height: 1.5; }
.updnotes .tag { flex: none; margin-top: 2px; text-transform: capitalize; }
.updsteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-2); }
.updsteps__item { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-13); color: var(--text-3); min-width: 0; }
.updsteps__item { align-items: flex-start; line-height: 1.35; }
.updsteps__dot { margin-top: 3px; }
.updsteps__dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--border); flex: none; background: var(--surface); }
.updsteps__item.is-done { color: var(--text-2); }
.updsteps__item.is-done .updsteps__dot { background: var(--accent); border-color: var(--accent); }
.updsteps__item.is-current { color: var(--text); font-weight: 600; }
.updsteps__item.is-current .updsteps__dot { border-color: var(--accent); animation: updpulse 1.1s ease-in-out infinite; }
.updsteps__item.is-bad { color: var(--danger); }
.updsteps__item.is-bad .updsteps__dot { background: var(--danger); border-color: var(--danger); }
@keyframes updpulse { 0%, 100% { box-shadow: 0 0 0 0 var(--accent-soft); } 50% { box-shadow: 0 0 0 5px var(--accent-soft); } }
.updlog { font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: var(--fs-12); min-height: 52px; }
.updlog__row { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: var(--s-3); padding: 7px var(--s-4); border-top: 1px solid var(--border); }
.updlog__row:first-child { border-top: 0; }
.updlog__time { color: var(--text-3); }
.updlog__detail { color: var(--text-2); }
.updlog__row--bad { color: var(--danger); }
.updlog__row--bad .updlog__detail { color: var(--danger); }
@media (max-width: 1080px) {
  .updsteps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.notice--gate { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.notice__link { font-weight: 640; color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; white-space: nowrap; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.plancard { border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-5); background: var(--surface); display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; }
.plancard.is-current { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.plancard.is-wanted { border-color: var(--accent); }
.plancard--ent { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--surface-3); }
.plancard__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.plancard__name { font-size: var(--fs-16); font-weight: 680; letter-spacing: -.01em; }
.plancard__price { display: flex; align-items: baseline; gap: 2px; }
.plancard__cur { font-size: var(--fs-16); color: var(--text-2); }
.plancard__amt { font-size: var(--fs-34); font-weight: 680; letter-spacing: -.03em; line-height: 1; }
.plancard__per { margin-left: 6px; font-size: var(--fs-12); color: var(--text-3); }
.plancard__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: var(--fs-13); color: var(--text-2); }
.plancard__points li { padding-left: 18px; position: relative; }
.plancard__points li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.plancard__lede { margin: 0; font-size: var(--fs-13); color: var(--text-2); max-width: 56ch; }
.plancard__actions { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: auto; }
@media (max-width: 1080px) { .plans { grid-template-columns: 1fr; } .plancard--ent { flex-direction: column; align-items: flex-start; } }

.orgmark { display: grid; place-items: center; overflow: hidden; flex: none; background: var(--surface-3); border: 1px solid var(--border); border-radius: var(--r-md); }
.orgmark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.orgmark--lg { width: 84px; height: 84px; border-radius: var(--r-lg); }
.orgmark__initial { font-size: var(--fs-26); font-weight: 640; color: var(--text-2); }
.userchip__mark { width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 5px; object-fit: cover; }
.doc__org--marked { display: flex; align-items: center; gap: var(--s-3); text-align: right; }
.doc__org--marked > div { order: 1; }
.doc__mark { order: 2; width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.auth__brand--co { flex-direction: column; gap: 10px; }
.auth__mark { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; box-shadow: 0 8px 24px -10px rgba(0,0,0,.25); }
.auth__orgname { font-size: var(--fs-16); font-weight: 680; letter-spacing: -.01em; color: var(--text); }
.auth__powered { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; font-size: var(--fs-12); color: var(--text-3); }
.auth__powered .brand__wm-img { height: 18px; }

.rowacts { display: inline-flex; gap: var(--s-2); align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.hodl { display: grid; gap: var(--s-2); margin: 0; }
.hodl div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: var(--s-3); padding: 8px 0; border-bottom: 1px solid var(--border); }
.hodl dt { font-size: var(--fs-12); color: var(--text-3); font-weight: 600; }
.hodl dd { margin: 0; font-size: var(--fs-14); word-break: break-all; }
.hodl code { font-family: var(--font-mono); background: var(--surface-3); padding: 2px 6px; border-radius: 6px; }
.auth__forgot { margin: var(--s-3) 0 0; text-align: center; font-size: var(--fs-13); }
.auth__forgot a { color: var(--text-2); text-decoration: none; }
.auth__forgot a:hover { color: var(--accent); text-decoration: underline; }
.langrow { display: flex; gap: 4px; flex-wrap: wrap; padding: 0 var(--s-4) var(--s-3) calc(var(--s-4) + 2px); margin-top: calc(-1 * var(--s-2)); }
.langrow__l { font-family: var(--font-mono); font-size: var(--fs-11); color: var(--text-3); text-decoration: none; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--border); }
.langrow__l:hover { color: var(--accent); border-color: var(--accent); }
.segmented--tight .segmented__opt { padding: 4px 8px; font-size: var(--fs-12); }
.cell--wrap { max-width: 28ch; white-space: normal; font-size: var(--fs-13); color: var(--text-2); }
.alerts { position: relative; }
.alerts__panel { min-width: 320px; max-width: 360px; }
.alerts__item { white-space: normal; align-items: flex-start; }
.alerts__ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r-sm); background: var(--surface-3); color: var(--text-2); flex: none; margin-top: 1px; }
.alerts__body { display: grid; gap: 2px; min-width: 0; line-height: 1.4; }
.alerts__when { font-size: var(--fs-11); color: var(--text-3); }
.alerts__empty { padding: var(--s-3); font-size: var(--fs-13); color: var(--text-3); line-height: 1.5; max-width: 34ch; }
@media (max-width: 767px) { .alerts__panel { position: fixed; left: var(--s-3); right: var(--s-3); top: calc(var(--topbar-h) + 6px); min-width: 0; max-width: none; } }

.is-bench .main { height: 100vh; height: 100dvh; }
.is-bench .content { padding: 0; display: flex; flex: 1; min-height: 0; gap: 0; }
.bench { --panel-w: 316px; --drawer-h: 260px; --bench-dot: #D5DBE3; --bench-major: #E7EBF0; --bench-bar-h: 52px;
  flex: 1; min-width: 0; min-height: 0; display: grid; grid-template-columns: var(--panel-w) minmax(0, 1fr); background: var(--bg); position: relative; }
:root[data-theme="dark"] .bench { --bench-dot: #26364A; --bench-major: #182535; }
.bench.is-panel-off { grid-template-columns: 0 minmax(0, 1fr); }
.bench__panel { min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; width: var(--panel-w); }
.bench.is-panel-off .bench__panel { visibility: hidden; }
.bench__scrim { display: none; }
.bench__study { padding: var(--s-5) var(--s-5) var(--s-4); border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.bench__panel-x { display: none; position: absolute; top: 12px; right: 12px; color: var(--text-3); }
.bench__study-name { font-weight: 650; padding-right: 28px; font-size: var(--fs-16); letter-spacing: -.01em; line-height: 1.25; }
.bench__study-meta { color: var(--text-3); font-size: var(--fs-12); margin-top: 3px; }
.bench__study-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: var(--s-3); }
.bench__study-links a { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-12); font-weight: 560; color: var(--text-2); }
.bench__study-links a:hover { color: var(--accent-fill); }
.bench__study-links svg { color: var(--text-3); }
.bench__study-links a:hover svg { color: inherit; }
.bench__sec { padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--border); }
.bench__sec-t { font-size: var(--fs-11); letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--text-3); margin-bottom: var(--s-3); }
.bench__note { padding: var(--s-4) var(--s-5) var(--s-6); color: var(--text-3); font-size: var(--fs-12); line-height: 1.55; margin-top: auto; }

.readouts { margin: 0; display: flex; flex-direction: column; }
.readout { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px var(--s-3); padding: 9px 0 10px; border-top: 1px solid var(--border); }
.readout:first-child { border-top: 0; padding-top: 2px; }
.readout dt { font-size: var(--fs-13); color: var(--text-2); font-weight: 550; }
.readout dd { margin: 0; display: flex; align-items: baseline; gap: 6px; justify-content: flex-end; }
.readout dd b { font-family: var(--font-mono); font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--text); font-variant-numeric: tabular-nums; }
.readout dd span { font-size: var(--fs-11); color: var(--text-3); }
.readout dd b.is-short { color: var(--danger); }
.readout--key dd b { color: var(--accent-fill); font-size: 21px; }
.readout--soft dt, .readout--soft dd b { color: var(--text-3); }
.readout--soft dd b { font-size: 14px; font-weight: 560; }
.readout__bar { grid-column: 1 / -1; display: block; height: 3px; border-radius: 2px; background: var(--track); overflow: hidden; margin-top: 4px; position: relative; }
.readout__bar::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--fill, 0%); background: var(--accent); border-radius: 2px; transition: width .2s ease; }
.readout__bar.is-over::after { background: var(--danger); width: 100%; }

.form--bench { gap: var(--s-3); }
.form--bench .field__label { font-size: var(--fs-12); }
.form--bench .input { height: 36px; }
.form--bench .form__actions { padding-top: 0; }
.form--bench .form__actions .btn { width: 100%; justify-content: center; }

.bench__view { min-width: 0; min-height: 0; display: grid; grid-template-rows: var(--bench-bar-h) minmax(0, 1fr) auto auto auto; }
.bench__bar { display: flex; align-items: center; gap: var(--s-2); padding: 0 var(--s-3) 0 var(--s-2); border-bottom: 1px solid var(--border); background: var(--surface); }
.bench__bar .shift__play { width: 32px; height: 32px; margin-left: 2px; }
.bench__bar .shift__play svg { width: 12px; height: 12px; }
.bench__bar .shift__speeds { padding: 2px; }
.bench__bar .shift__speeds button { padding: 3px 8px; font-size: 11px; }
.bench__bar-sp { flex: 1; }
.bench__tog { color: var(--text-3); }
.bench__tog[aria-pressed="true"] { color: var(--text); background: var(--surface-3); }
.bench__clock { display: flex; align-items: baseline; gap: 8px; margin-left: 6px; }
.bench__clock b { font-family: var(--font-mono); font-size: 15px; font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.bench__clock span { font-size: var(--fs-12); color: var(--text-3); }
.bench__moves { display: flex; align-items: baseline; gap: 6px; }
.bench__moves span { font-size: var(--fs-11); letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--text-3); }
.bench__moves b { font-family: var(--font-mono); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bench__whatif { display: inline-flex; align-items: center; gap: 8px; padding: 3px 4px 3px 10px; border-radius: 999px; border: 1px dashed var(--border-strong); font-size: var(--fs-12); color: var(--text-2); }
.bench__whatif button { font-size: var(--fs-12); font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--surface-3); color: var(--text); }
.bench__whatif button:hover { background: var(--border); }

.verdict { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px 0 9px; border-radius: 999px; font-size: var(--fs-12); font-weight: 620; white-space: nowrap; background: var(--surface-3); color: var(--text-2); }
.verdict i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); flex: none; }
.verdict--meets { background: var(--accent-soft); color: var(--tag-done-fg); }
.verdict--meets i { background: var(--accent); }
.verdict--short { background: var(--danger-soft); color: var(--danger); }
.verdict--short i { background: var(--danger); }
.verdict--notarget { background: var(--warn-soft); color: var(--tag-review-fg); }
.verdict--notarget i { background: var(--warn); }

.bench__stage { position: relative; min-height: 0; overflow: hidden; background-color: var(--surface);
  background-image: linear-gradient(var(--bench-major) 1px, transparent 1px), linear-gradient(90deg, var(--bench-major) 1px, transparent 1px), radial-gradient(circle, var(--bench-dot) 1px, transparent 1.3px);
  background-size: 96px 96px, 96px 96px, 16px 16px; background-position: -1px -1px, -1px -1px, 7px 7px; }
.bench__stage canvas { display: block; width: 100%; height: 100%; }
.bench__tick { position: absolute; width: 12px; height: 12px; border: 0 solid var(--border-strong); pointer-events: none; }
.bench__tick--tl { top: 10px; left: 10px; border-top-width: 1px; border-left-width: 1px; }
.bench__tick--tr { top: 10px; right: 10px; border-top-width: 1px; border-right-width: 1px; }
.bench__tick--bl { bottom: 10px; left: 10px; border-bottom-width: 1px; border-left-width: 1px; }
.bench__tick--br { bottom: 10px; right: 10px; border-bottom-width: 1px; border-right-width: 1px; }
.bench__mode, .bench__cap { position: absolute; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em; color: var(--text-3); pointer-events: none; }
.bench__mode { top: 14px; right: 30px; text-transform: uppercase; }
.bench__cap { bottom: 14px; right: 30px; }
.bench__empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: var(--s-3); padding: var(--s-6); }
.bench__empty .empty__icon { background: var(--surface); border: 1px solid var(--border); }
.bench--idle .bench__stage { background-image: radial-gradient(circle, var(--bench-dot) 1px, transparent 1.3px); background-size: 16px 16px; }

.bench__foot { padding: 10px var(--s-4) 8px; border-top: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.bench__foot-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; min-height: 18px; }
.bench__foot .shift__status { font-size: var(--fs-12); }
.bench__foot .shift__legend { font-size: var(--fs-11); }
.bench__foot .shift__bar { height: 6px; }
.bench__foot .shift__scrub { height: 14px; }

.bench__grip { height: 0; position: relative; z-index: 2; cursor: row-resize; display: none; }
.bench__grip::before { content: ""; position: absolute; left: 0; right: 0; top: -4px; height: 9px; }
.bench__grip::after { content: ""; position: absolute; left: 50%; top: 3px; width: 36px; height: 3px; margin-left: -18px; border-radius: 2px; background: var(--border-strong); opacity: 0; transition: opacity .15s ease; }
.bench__grip:hover::after, .is-resizing .bench__grip::after { opacity: 1; }
.is-drawer-open .bench__grip { display: block; }
.is-resizing { user-select: none; cursor: row-resize; }
.bench__drawer { display: none; height: var(--drawer-h); min-height: 0; border-top: 1px solid var(--border); background: var(--surface); grid-template-rows: auto minmax(0, 1fr); }
.is-drawer-open .bench__drawer { display: grid; }
.bench__tabs { display: flex; align-items: center; gap: 2px; padding: 6px var(--s-3) 0; border-bottom: 1px solid var(--border); }
.bench__tabs [role="tab"] { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px 9px; font-size: var(--fs-12); font-weight: 600; color: var(--text-3); border-bottom: 2px solid transparent; margin-bottom: -1px; border-radius: 0; }
.bench__tabs [role="tab"]:hover { color: var(--text); }
.bench__tabs [role="tab"][aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.bench__tabs-sp { flex: 1; }
.bench__tabs-hint { font-size: var(--fs-11); color: var(--text-3); padding-right: 4px; }
.bench__pane { min-height: 0; overflow: auto; padding: var(--s-4); }
.bench__fleet { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 1.6fr); gap: var(--s-5); align-items: start; }
.hbars { display: flex; flex-direction: column; gap: 10px; padding-top: 2px; }
.hbars__t { font-size: var(--fs-11); letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--text-3); margin-bottom: 2px; }
.hbar { display: grid; grid-template-columns: minmax(120px, 160px) minmax(0, 1fr) 64px; align-items: center; gap: var(--s-3); }
.hbar__label { font-size: var(--fs-13); font-weight: 560; color: var(--text); display: flex; flex-direction: column; line-height: 1.25; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar__label small { font-size: var(--fs-11); color: var(--text-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.hbar__track { display: block; height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; }
.hbar__track i { display: block; height: 100%; width: var(--fill, 0%); background: var(--accent); border-radius: 3px; }
.hbar__value { font-family: var(--font-mono); font-size: 13px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.table--bench th, .table--bench td { padding: 8px var(--s-2); font-size: var(--fs-13); }
.bench__pane .shift__whatif { border: 0; background: transparent; padding: 0 0 var(--s-2); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4) var(--s-6); }
.bench__pane .shift__line { grid-template-columns: 1fr 120px 120px; }
.bench__pane .shift__line input { width: 100%; height: 34px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); padding: 0 10px; background: var(--surface); color: var(--text); }
.bench__pane .shift__line label { display: flex; flex-direction: column; gap: 4px; }
.bench__pane .shift__line label span { font-size: var(--fs-11); color: var(--text-3); }

@media (max-width: 1080px) {
  .bench { grid-template-columns: minmax(0, 1fr); }
  .bench.is-panel-off { grid-template-columns: minmax(0, 1fr); }
  .bench__panel { position: absolute; left: 0; top: 0; bottom: 0; z-index: 5; box-shadow: var(--shadow-lg); transform: translateX(-100%); transition: transform .22s cubic-bezier(.4, 0, .2, 1); visibility: visible; }
  .bench:not(.is-panel-off) .bench__panel { transform: none; }
  .bench.is-panel-off .bench__panel { visibility: hidden; }
  .bench__scrim { display: block; position: absolute; inset: 0; z-index: 4; background: rgba(6, 27, 49, .3); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .bench:not(.is-panel-off) .bench__scrim { opacity: 1; pointer-events: auto; }
  .bench__fleet { grid-template-columns: minmax(0, 1fr); }
  .bench__tabs-hint { display: none; }
  .bench__panel-x { display: grid; }
}
@media (max-width: 767px) {
  .is-bench .main { height: auto; }
  .is-bench .content { display: block; }
  .bench { display: block; }
  .bench__view { grid-template-rows: var(--bench-bar-h) 58vh auto auto auto; }
  .bench__bar { gap: 6px; padding: 0 var(--s-2); overflow-x: auto; scrollbar-width: none; }
  .bench__bar::-webkit-scrollbar { display: none; }
  .bench__bar [data-bench-toggle="drawer"], .bench__grip { display: none; }
  .bench__drawer { display: grid; height: auto; grid-template-rows: auto auto; }
  .bench__pane { overflow: visible; }
  .bench__moves, .bench__clock span { display: none; }
  .bench__mode { display: none; }
  .bench__panel { width: min(316px, 86vw); position: fixed; top: 0; bottom: 0; height: 100dvh; z-index: 70; }
  .bench__scrim { position: fixed; z-index: 65; }
  .bench__pane .shift__whatif { grid-template-columns: minmax(0, 1fr); }
  .bench__pane .shift__line { grid-template-columns: 1fr 90px 90px; }
}
@media (prefers-reduced-motion: reduce) { .bench__panel, .bench__scrim, .readout__bar::after { transition: none; } }

.crumb__menu { position: relative; min-width: 0; }
.crumb__switch { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 8px; margin: -4px -6px -4px -8px; border-radius: var(--r-sm); color: var(--text); font-weight: 550; min-width: 0; max-width: 42vw; }
.crumb__switch svg { color: var(--text-3); flex: none; }
.crumb__switch:hover, .menu.is-open > .crumb__switch { background: var(--surface-3); }
.crumb__switch .crumb__text { display: block; }
.crumb__panel { width: 320px; padding: 6px; }
.crumb__filter { display: flex; align-items: center; gap: 8px; padding: 6px 8px; margin: 0 0 4px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--text-3); }
.crumb__filter input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font-size: var(--fs-13); outline: 0; }
.crumb__list { max-height: min(60vh, 440px); overflow-y: auto; scrollbar-width: thin; }
.crumb__item { display: flex; align-items: center; gap: 10px; padding: 7px 8px; }
.crumb__item-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.crumb__item-name { font-size: var(--fs-13); font-weight: 560; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumb__item.is-current .menu__tick { opacity: 1; }
.crumb__item[hidden] { display: none; }
.tile--sm { width: 26px; height: 26px; font-size: var(--fs-12); border-radius: 7px; }
@media (max-width: 767px) { .crumb__switch .crumb__text { display: block; max-width: 38vw; } .crumb__panel { width: min(320px, 92vw); } }

.bench--layout .bench__view { grid-template-rows: var(--bench-bar-h) minmax(0, 1fr) auto auto; }
.bench__muted { color: var(--text-3); font-size: var(--fs-12); line-height: 1.5; margin: 0; }
.bench__muted--pad { padding: var(--s-4); }
.bench__sec-t--row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.bench__sec-t--row a, .bench__sec-t--row button { font-size: var(--fs-11); letter-spacing: .04em; text-transform: none; font-weight: 600; color: var(--accent); padding: 0; }
.bench__sec-t--row a:hover, .bench__sec-t--row button:hover { text-decoration: underline; }
.readout__text { font-family: var(--font-latin) !important; font-size: var(--fs-13) !important; font-weight: 560 !important; letter-spacing: 0 !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; display: inline-block; vertical-align: bottom; }
.readout--soft .readout__text { color: var(--text-2); font-weight: 500 !important; }
.bench__scalebtn { margin-top: var(--s-3); justify-content: center; }
.bench__sec .scalestate { font-size: var(--fs-12); }
.bench__sec .check { margin-top: var(--s-3); }
.bench__sec .menu, .bench__sec .select__trigger { width: 100%; }
.bench__sec .select__trigger { height: 36px; justify-content: space-between; font-weight: 500; }
.bench__sec .menu__panel { min-width: 100%; max-height: 260px; overflow-y: auto; }
.bench__foot-actions { margin-top: auto; padding: var(--s-4) var(--s-5) var(--s-5); display: flex; gap: var(--s-4); }
.bench__foot-link { font-size: var(--fs-12); font-weight: 560; color: var(--text-3); cursor: pointer; padding: 0; }
.bench__foot-link:hover { color: var(--text); }
.bench__foot-link--danger:hover { color: var(--danger); }
.toolgroup--bench { margin-left: 2px; gap: 2px; }
.bench__zoom { font-family: var(--font-mono); font-size: var(--fs-12); font-weight: 600; min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; color: var(--text-2); }
.btn--sm { height: 28px; padding: 0 10px; font-size: var(--fs-12); gap: 6px; }
.bench__bar kbd { font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; color: var(--text-3); border: 1px solid var(--border-strong); border-radius: 4px; padding: 0 4px; line-height: 14px; }
.tools--bar { position: static; flex-direction: row; gap: 2px; padding: 3px; margin-left: var(--s-2); border-radius: 999px; }
.tools--bar .tool { display: inline-flex; align-items: center; gap: 5px; width: auto; height: 28px; padding: 0 8px 0 7px; border-radius: 999px; }
.tools--bar .tool kbd { border-color: transparent; background: rgba(0,0,0,.06); color: inherit; opacity: .75; }
.tools--bar .tool.is-on kbd { background: rgba(255,255,255,.22); color: inherit; }
.tools--bar .tools__sep { width: 1px; height: 18px; background: var(--border); margin: 0 3px; }
.bench__bar .selinfo { margin: 0; padding: 4px 4px 4px 12px; border-radius: 999px; gap: 10px; }
.bench__bar .selinfo__dims { margin-left: 0; font-family: var(--font-mono); }
.bench__coords { font-family: var(--font-mono); font-size: var(--fs-12); color: var(--text-3); font-variant-numeric: tabular-nums; min-width: 120px; text-align: right; }
.canvas--bench { background: transparent; }
.canvas--bench .canvas__hint { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; display: inline-flex; align-items: center; gap: 8px; }
.canvas--bench .canvas__hint kbd { font-size: 9.5px; border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; opacity: .7; }
.canvas--bench .canvas__badge { left: 18px; bottom: 16px; font-family: var(--font-mono); font-size: 10.5px; }
.drop--bench { position: absolute; inset: 0; border: 0; border-radius: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: var(--s-3); padding: var(--s-6); }
.drop--bench .empty__icon { background: var(--surface); border: 1px solid var(--border); }
.bench.is-dropping .bench__stage { box-shadow: inset 0 0 0 2px var(--accent); }
.bench__pane--flush { padding: 0; }
.table--bench tr[data-shape-row] { cursor: pointer; }
.table--bench tr.is-selected td { background: var(--accent-soft); }
.cell--clr { font-size: var(--fs-12); color: var(--text-3); white-space: nowrap; }
.cell--clr.is-ok { color: var(--tag-done-fg); }
.cell--clr.is-bad { color: var(--danger); font-weight: 600; }
.cell--act { width: 40px; text-align: right; }
.iconbtn--sm { width: 28px; height: 28px; color: var(--text-3); }
.iconbtn--sm:hover { color: var(--danger); background: var(--danger-soft); }
.bench__tab-n { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; padding: 0 6px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); line-height: 16px; }
.keys { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 24px; }
.keys > div { display: flex; align-items: center; gap: 10px; font-size: var(--fs-13); color: var(--text-2); }
.keys kbd { font-family: var(--font-mono); font-size: 11px; font-weight: 600; min-width: 26px; text-align: center; border: 1px solid var(--border-strong); border-radius: 5px; padding: 2px 6px; color: var(--text); background: var(--surface-2); }
@media (max-width: 1080px) { .bench__coords, .bench__bar kbd { display: none; } }
@media (max-width: 767px) { .bench--layout .bench__view { grid-template-rows: var(--bench-bar-h) 58vh auto auto; } .tools--bar .tool { padding: 0 7px; } }

.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); overflow: hidden; }
.strip__item { display: flex; flex-direction: column; gap: 3px; padding: var(--s-4) var(--s-5); border-left: 1px solid var(--border); min-width: 0; }
.strip__item:first-child { border-left: 0; }
.strip__label { font-size: var(--fs-12); color: var(--text-2); font-weight: 550; }
.strip__value { font-family: var(--font-mono); font-size: 22px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.strip__item--key .strip__value { color: var(--accent-fill); }
.strip__sub { font-size: var(--fs-11); color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.builder { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); gap: var(--s-4); align-items: start; }
.lines { display: flex; flex-direction: column; }
.line { padding: var(--s-4) var(--s-4) var(--s-4); border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: var(--s-3); }
.line:first-child { border-top: 0; }
.line__head { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.line__swatch { width: 10px; height: 10px; margin: 0; }
.line__id { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.line__name { font-weight: 620; font-size: var(--fs-14); }
.line__name:hover { color: var(--accent-fill); }
.line__class { font-size: var(--fs-12); color: var(--text-3); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chip svg { color: var(--text-3); }
.line__ctl { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; padding-left: 22px; }
.stepper { display: inline-flex; align-items: center; gap: 0; }
.stepper__label { font-size: var(--fs-12); color: var(--text-3); font-weight: 550; margin-right: 8px; }
.stepper__btn { width: 30px; height: 32px; display: grid; place-items: center; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); }
.stepper__btn:first-of-type { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.stepper__btn:last-of-type { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.stepper__btn:hover { background: var(--surface-3); color: var(--text); }
.stepper__in { width: 52px; height: 32px; border: 1px solid var(--border-strong); border-left: 0; border-right: 0; text-align: center; font-family: var(--font-mono); font-size: var(--fs-13); font-weight: 600; background: var(--surface); color: var(--text); }
.stepper__in:focus { outline: 0; background: var(--surface-2); }
.shiftpick { display: inline-flex; align-items: center; }
.segmented__btn { padding: 4px 11px; border-radius: 999px; font-size: var(--fs-12); font-weight: 600; color: var(--text-3); }
.segmented__btn:hover { color: var(--text); }
.segmented__btn.is-on { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.swap { position: relative; }
.swap__panel { width: 300px; padding: 6px; }
.swap__item { display: flex; align-items: center; gap: 8px; }
.swap__item .swatch { margin: 0; }
.swap__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-13); }
.swap__aisle { font-family: var(--font-mono); font-size: var(--fs-11); color: var(--text-3); }
.swap .menu__tick { display: none; }
.line__rm { margin-left: auto; }

.catalogue { position: sticky; top: var(--s-4); }
.catalogue__body { display: flex; flex-direction: column; max-height: calc(100vh - 220px); }
.catalogue__search { margin: var(--s-2) var(--s-2) 0; }
.catalogue__classes { display: flex; flex-wrap: wrap; gap: 4px; padding: var(--s-2) var(--s-2) var(--s-2); border-bottom: 1px solid var(--border); }
.pill { font-size: var(--fs-11); font-weight: 600; padding: 3px 9px; border-radius: 999px; color: var(--text-3); border: 1px solid transparent; }
.pill:hover { color: var(--text); background: var(--surface-2); }
.pill.is-on { background: var(--text); color: var(--surface); }
.catalogue__list { overflow-y: auto; min-height: 0; scrollbar-width: thin; padding: 4px; }
.cat { display: flex; align-items: center; gap: 10px; padding: 8px 8px; border-radius: var(--r-md); margin: 0; }
.cat:hover { background: var(--surface-3); }
.cat .swatch { margin: 0; flex: none; }
.cat__body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.cat__name { font-size: var(--fs-13); font-weight: 580; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat__meta { font-size: var(--fs-11); color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat__add { flex: none; height: 28px; min-width: 28px; padding: 0 6px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; border: 1px solid var(--border-strong); color: var(--text-2); background: var(--surface); }
.cat__add:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.cat__add--in { border-color: var(--accent); color: var(--accent-fill); font-family: var(--font-mono); font-size: var(--fs-11); font-weight: 600; }
.cat__add--in b { font-weight: 600; }
@media (max-width: 1080px) { .builder { grid-template-columns: minmax(0, 1fr); } .catalogue { position: static; } .catalogue__body { max-height: 480px; } .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .strip__item:nth-child(3) { border-left: 0; } .strip__item:nth-child(n+3) { border-top: 1px solid var(--border); } }
@media (max-width: 767px) { .strip { grid-template-columns: minmax(0, 1fr); } .strip__item { border-left: 0; border-top: 1px solid var(--border); } .strip__item:first-child { border-top: 0; } .line__ctl { padding-left: 0; gap: var(--s-3); } }
.swatch--counterbalance { background: hsl(212 55% 48%); } .swatch--reach { background: hsl(262 55% 48%); } .swatch--vna { background: hsl(190 55% 48%); } .swatch--pallet { background: hsl(30 55% 48%); } .swatch--stacker { background: hsl(330 55% 48%); } .swatch--picker { background: hsl(300 55% 48%); } .swatch--articulated { background: hsl(240 55% 48%); } .swatch--tow { background: hsl(40 55% 48%); } .swatch--amr_pallet { background: hsl(152 55% 48%); } .swatch--amr_tote { background: hsl(168 55% 48%); } .swatch--agv { background: hsl(120 55% 48%); } .swatch--other { background: hsl(0 0% 55%); }
.leadm { display: flex; align-items: center; gap: 10px; }
.leadm .swatch { margin: 0; width: 10px; height: 10px; }
.leadm__body { display: flex; flex-direction: column; min-width: 0; }
.leadm__body b { font-size: var(--fs-13); font-weight: 620; }
.leadm__body span { font-size: var(--fs-12); color: var(--text-3); }
.form__hint--lead { margin-top: -6px; }
.input.is-typical { color: var(--text-2); font-style: italic; }
.typical { display: flex; align-items: flex-start; gap: 8px; color: var(--text-2); }
.typical svg { flex: none; margin-top: 3px; color: var(--accent); }
.notice--info svg { margin-right: 8px; vertical-align: -3px; }
.cat-tools { display: flex; flex-direction: column; gap: 4px; padding: var(--s-2) var(--s-2) 0; border-bottom: 1px solid var(--border); }
.cat-tools__search { margin: 0 0 4px; }
.cat-tools__row { border-bottom: 0; padding: 2px 0 6px; }
.pill small { font-weight: 500; opacity: .7; margin-left: 2px; }
.table--cat td { vertical-align: middle; }
.cat-src { font-size: var(--fs-12); font-weight: 560; color: var(--accent-fill); display: block; }
.cat-src:hover { text-decoration: underline; }
.cat-foot { margin-top: -4px; }
.cat-foot a { color: var(--accent-fill); font-weight: 600; }
.notice--info a { color: inherit; font-weight: 600; margin-left: 6px; }
.catalogue__more { display: flex; align-items: center; gap: 8px; padding: 10px var(--s-3); border-top: 1px solid var(--border); font-size: var(--fs-12); font-weight: 600; color: var(--accent-fill); }
.catalogue__more svg:last-child { margin-left: auto; }
.catalogue__more:hover { background: var(--surface-2); }
.table--cat td:first-child { max-width: 340px; }
.table--cat td:first-child .cell__meta { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.table--cat .cell--num, .table--cat td:nth-child(7) { white-space: nowrap; }
.studytabs { display: inline-flex; align-items: center; gap: 2px; margin-left: var(--s-4); padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); flex: none; }
.studytabs__tab { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: var(--fs-12); font-weight: 600; color: var(--text-3); white-space: nowrap; }
.studytabs__tab svg { width: 14px; height: 14px; }
.studytabs__tab:hover { color: var(--text); }
.studytabs__tab.is-on { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
@media (max-width: 1279px) { .studytabs__tab span { display: none; } .studytabs__tab { padding: 0 8px; } }
@media (max-width: 767px) { .studytabs { display: none; } }
.crumb { flex: 0 1 auto; }
.crumb__menu { flex: 0 1 auto; overflow: visible; min-width: 0; }
.crumb__switch { max-width: 100%; display: flex; }
.crumb__switch .crumb__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumb__menu .menu__panel { overflow: visible; }
.topbar .search { width: auto; flex: 0 1 320px; min-width: 150px; }
.crumb { flex: 1 1 auto; min-width: 160px; overflow: visible; }
.crumb__switch .crumb__text { min-width: 80px; }
@media (max-width: 1500px) { .studytabs__tab span { display: none; } .studytabs__tab { padding: 0 8px; } }
.rowacts { flex-wrap: nowrap; white-space: nowrap; }
.rowacts .btn { height: 28px; padding: 0 10px; font-size: var(--fs-12); }
.rowacts .tag { white-space: nowrap; }

.input--mono { font-family: var(--font-mono); font-size: var(--fs-13); }

body.shared { background: var(--bg); }
.shared__bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); height: var(--topbar-h); padding: 0 var(--s-6); background: var(--surface); border-bottom: 1px solid var(--border); }
.shared__who { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: var(--fs-13); color: var(--text-2); }
.shared__mark { width: 28px; height: 28px; border-radius: var(--r-sm); object-fit: cover; }
.shared__org { font-weight: 650; color: var(--text); white-space: nowrap; }
.shared__sep { color: var(--text-3); }
.shared__note { white-space: nowrap; }
.shared__main { max-width: 1040px; margin: 0 auto; padding: var(--s-6); }
.shared__gone { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-3); padding: 120px var(--s-4); }
.shared__foot { display: flex; align-items: center; justify-content: center; gap: var(--s-4); padding: var(--s-6); color: var(--text-3); font-size: var(--fs-12); flex-wrap: wrap; }
.shared__made { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text-2); }
.shared__made:hover { color: var(--accent-fill); }
.sharebox__new { gap: 8px; }
.sharebox__row { display: flex; gap: var(--s-2); }
.sharebox__row .input { flex: 1; min-width: 0; }
.sharebox__form { display: flex; align-items: flex-end; gap: var(--s-4); flex-wrap: wrap; }
.sharebox__label { flex: 1 1 240px; }
.sharebox__hidden { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.table tr.is-muted td { color: var(--text-3); }
@media (max-width: 767px) { .shared__main { padding: var(--s-4); } .shared__note { display: none; } .shared__bar { padding: 0 var(--s-4); } }

.signals { display: inline-flex; gap: 5px; margin-left: 8px; vertical-align: 1px; }
.signal { display: inline-flex; align-items: center; height: 17px; padding: 0 6px; border-radius: 4px; font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; letter-spacing: .06em; background: var(--surface-3); color: var(--text-3); }
.signal--sso { background: var(--info-soft); color: var(--info); }
.input--code { font-family: var(--font-mono); font-size: 22px; letter-spacing: .28em; text-align: center; height: 52px; }
.totp__qr { display: flex; justify-content: center; padding: var(--s-4) 0 var(--s-2); }
.totp__qr .qr { border-radius: var(--r-md); }
.totp__hint { font-size: var(--fs-12); color: var(--text-2); text-align: center; margin: 0 0 var(--s-2); }
.totp__key { font-family: var(--font-mono); font-size: var(--fs-14); letter-spacing: .1em; text-align: center; padding: 10px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); margin-bottom: var(--s-4); user-select: all; }
.totp__codes { padding: var(--s-4); border: 1px dashed var(--border-strong); border-radius: var(--r-lg); background: var(--surface-2); margin-bottom: var(--s-4); }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; margin: var(--s-3) 0 0; padding-left: var(--s-5); font-family: var(--font-mono); font-size: var(--fs-13); }
.form--inline { gap: var(--s-3); }

.bench__sec--tree { padding-bottom: var(--s-3); }
.tree { display: flex; flex-direction: column; gap: 1px; margin: 0 -6px; }
.tree__head { display: flex; align-items: center; gap: 7px; width: 100%; padding: 6px; border-radius: var(--r-sm); font-size: var(--fs-13); font-weight: 570; color: var(--text); text-align: left; }
.tree__head:hover { background: var(--surface-3); }
.tree__caret { color: var(--text-3); flex: none; transform: rotate(-90deg); transition: transform .15s ease; }
.tree__head[aria-expanded="true"] .tree__caret { transform: none; }
.tree__icon { color: var(--text-3); flex: none; }
.tree__head span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree__n { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; color: var(--text-3); padding: 0 5px; border-radius: 999px; background: var(--surface-3); line-height: 16px; flex: none; }
.tree__kids { display: flex; flex-direction: column; gap: 1px; padding-left: 13px; margin-left: 9px; border-left: 1px solid var(--border); }
.tree__item { display: flex; align-items: center; gap: 7px; padding: 5px 6px; border-radius: var(--r-sm); font-size: var(--fs-12); color: var(--text-2); min-width: 0; }
.tree__item:hover { background: var(--surface-3); color: var(--text); }
.tree__item.is-current { background: var(--accent-soft); color: var(--tag-done-fg); font-weight: 600; }
.tree__item.is-selected { background: var(--surface-3); color: var(--text); }
.tree__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree__item--sub .tree__label { color: inherit; }
.tree__item--empty { color: var(--text-3); font-style: italic; }
.tree__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--dot-idle); flex: none; margin: 0 2px; }
.tree__dot--file { background: var(--text-3); }
.tree__dot--live { background: var(--accent); }
.tree .swatch { margin: 0 0 0 1px; flex: none; }

.flow { display: flex; align-items: stretch; gap: 6px; flex-wrap: wrap; }
.flow__node { flex: 1 1 130px; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid var(--doc-rule); border-radius: var(--r-md); background: var(--doc-surface); }
.flow__k { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--doc-ink-3); }
.flow__v { font-family: var(--font-mono); font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--doc-ink); font-variant-numeric: tabular-nums; line-height: 1.2; }
.flow__s { font-size: 11px; color: var(--doc-ink-3); line-height: 1.35; }
.flow__arrow { display: flex; align-items: center; color: var(--doc-rule); flex: none; }
.flow__node--end { background: var(--doc-bg); }
.flow__node--good { border-color: var(--doc-accent); background: var(--doc-accent-soft); }
.flow__node--good .flow__v { color: var(--tag-done-fg); }
.flow__node--bad { border-color: var(--doc-danger); background: var(--doc-danger-soft); }
.flow__node--bad .flow__v { color: var(--doc-danger); }
@media (max-width: 900px) { .flow { flex-direction: column; } .flow__arrow { transform: rotate(90deg); justify-content: center; padding: 2px 0; } }
@media print { .flow { break-inside: avoid; } .flow__node { background: #fff !important; } }

.scenbar { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.scenbar__label { font-size: var(--fs-11); letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--text-3); }
.scentabs { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.scentabs__f { display: inline-flex; margin: 0; }
.scentab { height: 28px; padding: 0 13px; border-radius: 999px; font-size: var(--fs-12); font-weight: 600; color: var(--text-3); white-space: nowrap; }
.scentab:hover { color: var(--text); }
.scentab.is-on { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.scentab--add { padding: 0 9px; color: var(--text-3); }
.scentab--add:hover { color: var(--accent-fill); }
.scenbar__menu .menu__panel { width: 280px; padding: 8px; }
.menu__form { display: flex; gap: 6px; padding: 2px 2px 8px; }
.menu__form .input { height: 32px; font-size: var(--fs-13); }
.menu__item--danger { color: var(--danger); }
.scenbar__hint { font-size: var(--fs-12); color: var(--text-3); margin-left: auto; }
.scenpill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: var(--fs-12); font-weight: 600; color: var(--text-2); }
.scenpill b { font-weight: 700; color: var(--text); }
@media (max-width: 767px) { .scenbar__hint { display: none; } }
.doc__table--scen tr.is-current td { background: var(--accent-soft); }
.doc__table--scen td .cell__meta { white-space: normal; line-height: 1.45; }
.tree__scen { flex: none !important; font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--text-3); padding: 0 5px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--border); max-width: 88px; overflow: hidden; text-overflow: ellipsis; }

.onboard__bar { height: 4px; border-radius: 2px; background: var(--track); overflow: hidden; margin-bottom: var(--s-4); }
.onboard__bar i { display: block; height: 100%; width: var(--fill, 0%); background: var(--accent); border-radius: 2px; transition: width .3s ease; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.step { display: flex; align-items: center; gap: var(--s-3); padding: 11px 0; border-top: 1px solid var(--border); }
.step:first-child { border-top: 0; padding-top: 0; }
.step__mark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--text-3); font-size: var(--fs-12); font-weight: 700; font-family: var(--font-mono); }
.step.is-done .step__mark { background: var(--accent); color: #fff; }
.step__body { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.step__t { font-size: var(--fs-13); font-weight: 600; }
.step__d { font-size: var(--fs-12); color: var(--text-3); }
.step.is-done .step__t { color: var(--text-3); text-decoration: line-through; text-decoration-thickness: 1px; }
.step__go { flex: none; }
.onboard__sample { margin-top: var(--s-4); padding: var(--s-4); border: 1px dashed var(--border-strong); border-radius: var(--r-lg); background: var(--surface-2); display: flex; flex-direction: column; gap: 4px; }
.onboard__sample-t { font-size: var(--fs-13); font-weight: 620; }
.onboard__sample-d { font-size: var(--fs-12); color: var(--text-2); line-height: 1.5; max-width: 62ch; }
.onboard__sample-a { display: flex; gap: var(--s-2); align-items: center; margin-top: var(--s-2); flex-wrap: wrap; }
.onboard__sample-a form { display: inline-flex; }
