

body { font-size: 14px; line-height: 1.5; background: var(--paper); }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i--xs { width: 12px; height: 12px; stroke-width: 2.2; }
.a-rot90 { rotate: 90deg; } .a-rot180 { rotate: 180deg; } .a-rot270 { rotate: -90deg; }
.a-muted { color: var(--ink3); }
.a-bad { color: var(--short-ink); }
.a-code, .a-mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: -.01em; }
.a-num { font: 600 13px/1.4 var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.a-stale { color: var(--ink3); }
.a-noscript { padding: 40px; text-align: center; }
.a-boot { display: grid; place-items: center; min-height: 100dvh; }
.a-boot .orb { width: 14px; height: 14px; }
code { font-family: var(--mono); }


.btn { transition: background-color 150ms, border-color 150ms, color 150ms, box-shadow 150ms, transform 150ms; }
.btn--sm { --h: 36px; gap: 8px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.btn--sm:is(.btn--line, .btn--ink, .btn--go) { padding: 0 14px; }
.btn--sm .i { width: 16px; height: 16px; stroke-width: 2; }
.btn--ink { box-shadow: 0 6px 14px -8px rgba(13, 22, 18, .55); }
.btn--go { box-shadow: 0 8px 18px -10px rgba(18, 183, 106, .8); }
.btn--line { background: #fff; }
.btn.is-busy { opacity: .7; cursor: progress; }
.btn:disabled { opacity: .5; }
.a-danger { color: var(--short-ink); border-color: rgba(214, 69, 93, .3); }
.a-kbd { padding: 2px 5px; border-radius: 5px; background: rgba(255, 255, 255, .16); font: 600 10px/1 var(--mono); letter-spacing: .02em; }
.btn--ink:active, .btn--go:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) {
  .btn--ink:hover { transform: none; background: #1d2a24; box-shadow: 0 8px 18px -8px rgba(13, 22, 18, .6); }
  .btn--line:hover { border-color: var(--ink); }
  .a-danger:hover { border-color: var(--short); background: #fff6f7; }
}
@media (pointer: coarse) { .a-kbd { display: none; } }

.input, .select { height: 38px; padding: 0 12px; border-radius: 10px; font-size: 14px; }
.select { padding-right: 36px; background-position: right 12px center; background-size: 14px; }
.textarea { min-height: 84px; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.55; field-sizing: content; max-height: 560px; }
:is(.input, .select, .textarea) { transition: border-color 150ms, box-shadow 150ms, background-color 150ms; }
:is(.input, .select, .textarea):focus-visible { box-shadow: 0 0 0 4px rgba(18, 183, 106, .14); }
.field { gap: 6px; }
.field__label { font-size: 13px; }
.field__hint { font-size: 12.5px; line-height: 1.45; color: var(--ink3); }
.field__msg { font-size: 12.5px; }

.dlg { transition: opacity 150ms var(--ease-out), scale 150ms var(--ease-out), display 150ms allow-discrete, overlay 150ms allow-discrete; }
.dlg::backdrop { transition: opacity 150ms, display 150ms allow-discrete, overlay 150ms allow-discrete; }
.toast { transition: opacity 150ms var(--ease-out), translate 150ms var(--ease-out); }
.tbl-wrap { border-radius: 14px; }


.a-layout { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100dvh; }
.a-main { display: flex; flex-direction: column; min-width: 0; }
.a-view { flex: 1; padding: 20px 32px 72px; outline: none; transition: opacity 150ms; }
.a-view.is-loading { opacity: .55; }
.a-page { max-width: 1240px; margin-inline: auto; }
.a-page--wide { max-width: 1560px; }
.a-scrim, .a-menu-btn, .a-top__mark, .a-savebar { display: none; }


.a-rail {
  position: sticky; top: 0; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  background: var(--white); border-right: 1px solid var(--line);
}
.a-brand {
  position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 18px 0 20px;
  background: var(--white); border-bottom: 1px dotted var(--line2);
}
.a-brand img { width: 29px; height: auto; }
.a-brand__name { font-size: 14.5px; font-weight: 700; letter-spacing: -.015em; color: var(--ink); white-space: nowrap; }
.a-brand__tag {
  margin-left: auto; padding: 4px 7px 3px; border-radius: 6px; background: var(--ink); color: #fff;
  font: 600 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
}
.a-nav { position: relative; display: flex; flex-direction: column; gap: 1px; padding: 10px 12px 28px; }
.a-nav__group { margin: 16px 10px 5px; font: 600 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); }
.a-nav__a {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 32px; padding: 6px 11px; border-radius: 9px; font-size: 13.5px; font-weight: 600; line-height: 1.25; color: var(--ink2);
  transition: color 150ms, background-color 150ms;
}
.a-nav__a[aria-current] { color: #fff; }
.a-ink {
  position: absolute; left: 12px; right: 12px; top: 0; z-index: 0; height: var(--h, 32px); translate: 0 var(--y, 0);
  border-radius: 9px; background: var(--ink); box-shadow: var(--shadow-ink); pointer-events: none;
  transition: translate 150ms var(--ease-out), height 150ms var(--ease-out);
}
.a-ink.is-still { transition: none; }
.a-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--g); color: var(--ink);
  font: 700 11px/20px var(--mono); text-align: center;
}
.a-nav__a[aria-current] .a-count { background: var(--g-hi); }
@media (hover: hover) and (pointer: fine) {
  .a-nav__a:not([aria-current]):hover { background: var(--tint-hover); color: var(--ink); }
}


.a-top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 32px;
  background: rgba(238, 242, 239, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 224, 216, .6);
}
.a-crumbs { flex: 0 1 auto; min-width: 0; overflow: hidden; }
.a-crumbs ol { display: flex; align-items: center; gap: 8px; list-style: none; font: 500 12px/1.3 var(--mono); color: var(--ink3); white-space: nowrap; }
.a-crumbs li { display: flex; align-items: center; gap: 8px; min-width: 0; flex: none; }
.a-crumbs li:last-child { flex: 0 1 auto; }
.a-crumbs li + li::before { content: ""; width: 5px; height: 5px; flex: none; border-top: 1.5px solid var(--line-dot); border-right: 1.5px solid var(--line-dot); rotate: 45deg; }

.a-crumbs li:last-child span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-wrap: nowrap; color: var(--ink); font-weight: 600; }
.a-crumbs a { transition: color 150ms; }
@media (hover: hover) and (pointer: fine) { .a-crumbs a:hover { color: var(--g-deep); } }
.a-top__end { margin-left: auto; }
.a-user { position: relative; }
.a-user summary {
  display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 10px 0 4px; border-radius: 999px; list-style: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color 150ms, border-color 150ms;
}
.a-user summary::-webkit-details-marker { display: none; }
.a-user[open] summary { background: #fff; border-color: var(--line); }
.a-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 11.5px/1 var(--mono); letter-spacing: .02em; }
.a-user__name { font-size: 13px; font-weight: 600; color: var(--ink); }
.a-user__menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; display: grid; min-width: 250px; padding: 6px;
  background: #fff; border: 1px solid var(--line-card); border-radius: 14px; box-shadow: var(--shadow-pop);
}
.a-user__who { display: grid; gap: 4px; padding: 10px 10px 12px; margin-bottom: 4px; border-bottom: 1px dotted var(--line2); font-size: 13px; }
.a-role { justify-self: start; padding: 2px 7px; border-radius: 6px; background: var(--tint-on); color: var(--g-deep); font: 600 10px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.a-user__item {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 10px; border-radius: 9px;
  font-size: 13.5px; font-weight: 600; color: var(--ink2); text-align: left; transition: background-color 150ms, color 150ms;
}
.a-user__item .i { width: 16px; height: 16px; color: var(--ink3); }
@media (hover: hover) and (pointer: fine) {
  .a-user summary:hover { background: #fff; border-color: var(--line); }
  .a-user__item:hover { background: var(--paper); color: var(--ink); }
}


.a-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin: 10px 0 20px; }
.a-head__text { min-width: 0; flex: 1 1 420px; }
.a-head__title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.a-chips { display: contents; }
.a-title { font-size: 27px; line-height: 1.15; letter-spacing: -.035em; outline: none; overflow-wrap: anywhere; }
.a-kicker { margin-bottom: 8px; font: 600 11px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--forest); }
.a-help { max-width: 78ch; margin-top: 6px; font-size: 14px; color: var(--ink2); }
.a-head__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.a-card {
  background: var(--card); border: 1px solid var(--line-card); border-radius: 16px;
  box-shadow: 0 1px 0 rgba(var(--sh), .03), 0 14px 34px -26px rgba(var(--sh), .4);
}
.a-card--pad { padding: 20px 22px 22px; }
.a-cardhead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.a-cardhead > .btn { margin-left: auto; }
.a-cardtitle { font-size: 15.5px; letter-spacing: -.015em; }
.a-cardlead { margin-top: 6px; font-size: 13.5px; color: var(--ink2); max-width: 70ch; }
.a-foot { margin-top: 12px; font-size: 12.5px; color: var(--ink3); }

.a-chip {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; white-space: nowrap;
  background: var(--paper); border: 1px solid var(--line2); font: 600 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink2);
}
.a-chip--warn { background: var(--hl); border-color: #c8ea8e; color: var(--forest); }
.a-chip--ok { background: var(--tint-on); border-color: rgba(18, 183, 106, .35); color: var(--g-deep); }
.a-chip[hidden] { display: none; }
.a-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink2); white-space: nowrap; }
.a-dot i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-dot); }
.a-dot.is-on i { background: var(--orb-fill); box-shadow: 0 0 0 3px rgba(18, 183, 106, .14); }
.a-dot.is-off { color: var(--ink3); }
.a-sw { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.a-sw .sw { width: 14px; height: 14px; border-radius: 4px; }
.a-sw__img { width: 20px; height: 20px; border-radius: 50%; object-fit: contain; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.a-sw__img--sq { border-radius: 5px; object-fit: cover; }
.a-sw__ico { width: 16px; height: 16px; color: var(--forest); }
.a-mono-ico { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #e7f7ee; color: var(--forest); font: 700 8.5px/1 var(--mono); font-style: normal; }
.a-selthumb .a-mono-ico { width: 28px; height: 28px; font-size: 10px; }
.a-empty { margin: 18px; }
.a-orb--err { background: radial-gradient(circle at 34% 30%, #ffc2cc, var(--short) 62%, var(--short-ink)) !important; }
.a-linkbtn { color: var(--g-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.a-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--cream); border: 1px solid var(--line); font-size: 13px; color: var(--ink2); }
.a-note .i { width: 16px; height: 16px; margin-top: 1px; color: var(--g-deep); }
.a-note code { padding: 1px 5px; border-radius: 5px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 12px; }
.a-linkout { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font: 500 12.5px/1.4 var(--mono); color: var(--g-deep); overflow-wrap: anywhere; }
.a-linkout .i { width: 14px; height: 14px; }


.a-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.a-toolbar--bare { padding: 16px 0 12px; border: 0; }
.a-search { position: relative; flex: 1 1 240px; max-width: 360px; }
.a-search .i { position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; color: var(--ink3); pointer-events: none; }
.a-search__input { padding-left: 36px; }
.a-search[hidden] { display: none; }
.a-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.a-filter { width: auto; max-width: 240px; height: 36px; font-size: 13px; }
.a-flag {
  height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); background: #fff;
  font-size: 12.5px; font-weight: 600; color: var(--ink2); transition: background-color 150ms, color 150ms, border-color 150ms;
}
.a-flag:is(.is-on, [aria-pressed="true"]) { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (hover: hover) and (pointer: fine) { .a-flag:not(.is-on, [aria-pressed="true"]):hover { border-color: var(--ink); color: var(--ink); } }
.a-count-line { margin-left: auto; font: 500 12px/1 var(--mono); color: var(--ink3); white-space: nowrap; }

.a-listcard .a-tbl-wrap { border: 0; border-radius: 0 0 16px 16px; }
.a-tbl { font-size: 13.5px; }
.a-tbl th { padding: 10px 14px; font-size: 10.5px; color: var(--ink3); background: var(--white); }
.a-tbl td { padding: 10px 14px; vertical-align: middle; color: var(--ink2); max-width: 420px; }
.a-tbl tbody tr { cursor: pointer; }
.a-tbl-wrap .a-tbl :is(th, td):first-child { position: static; background: none; }
.a-tbl tbody tr { transition: background-color 150ms; }
@media (hover: hover) and (pointer: fine) {
  .a-tbl-wrap .a-tbl tbody tr:hover td { background: var(--tint-hover); }
  .a-tbl tbody tr:hover .a-rowlink { color: var(--g-deep); }
}
.a-rowlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); transition: color 150ms; }
.a-rowlink > span { overflow-wrap: break-word; }
.a-tbl tr.is-new td { background: #fbfef4; }
.a-tbl-wrap.is-compact .a-tbl :is(th, td) { padding-block: 8px; }
.a-pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px; border-top: 1px solid var(--line); }
.a-pager__at { font: 500 12px/1 var(--mono); color: var(--ink3); }

.a-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; padding: 16px; }
.a-group {
  position: relative; display: grid; align-content: start; gap: 6px; padding: 16px 16px 14px; border-radius: 14px;
  background: var(--white); border: 1px solid var(--line); transition: border-color 150ms, background-color 150ms, box-shadow 150ms;
}
.a-group__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.a-group__top b { font-size: 14.5px; letter-spacing: -.01em; }
.a-group__count { font: 600 11.5px/1 var(--mono); color: var(--ink3); }
.a-group__help { font-size: 12.5px; color: var(--ink2); line-height: 1.45; }
.a-group__meta { display: flex; align-items: center; gap: 4px; margin-top: 4px; font: 500 11px/1.4 var(--mono); color: var(--ink3); }
.a-group__arr { width: 15px; height: 15px; margin-left: auto; color: var(--g-deep); opacity: 0; translate: -4px 0; transition: opacity 150ms, translate 150ms; }
@media (hover: hover) and (pointer: fine) {
  .a-group:hover { background: #fff; border-color: rgba(18, 183, 106, .45); box-shadow: 0 10px 24px -18px rgba(var(--sh), .5); }
  .a-group:hover .a-group__arr { opacity: 1; translate: none; }
}


.a-formgrid.has-aside { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; align-items: start; }
.a-formmain { display: grid; gap: 16px; min-width: 0; }
.a-formmain > * { min-width: 0; }
.a-formaside { position: sticky; top: 76px; display: grid; gap: 14px; }
.a-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; align-items: start; }
.a-fields > .is-wide { grid-column: 1 / -1; }

.a-field { min-width: 0; grid-template-columns: minmax(0, 1fr); align-content: start; }
.a-field__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; }
.a-req { color: var(--short-ink); }
.a-tag { padding: 1px 6px; border-radius: 6px; background: var(--paper); font: 500 11px/1.5 var(--mono); color: var(--ink3); overflow-wrap: anywhere; }
.a-lock {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; border-radius: 6px; background: var(--paper);
  font: 600 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink3);
}
.a-field.is-locked :is(.input, .select, .textarea) { background: var(--white); color: var(--ink2); }
.a-field--bool { align-self: center; }
.a-ro { min-height: 20px; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.a-ro--multi { white-space: pre-wrap; padding: 10px 12px; border-radius: 12px; background: var(--cream); border: 1px solid var(--line); line-height: 1.55; }
.a-prose-ro { max-width: none; padding: 14px 16px; border-radius: 12px; background: var(--cream); border: 1px solid var(--line); font-size: 14.5px; }
.a-num-input { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.a-date { max-width: 260px; }
.a-affix { position: relative; }
.a-affix__pre { position: absolute; left: 12px; top: 50%; translate: 0 -50%; font: 600 13px/1 var(--mono); color: var(--ink3); pointer-events: none; }
.a-affix .input { padding-left: 26px; }
.a-field.has-error .field__label { color: var(--short-ink); }
.a-formfoot { display: flex; justify-content: flex-end; margin-top: 18px; }
.a-narrow { max-width: 460px; display: grid; gap: 16px; }


.a-tokbox { position: relative; }
.a-tokbox :is(.input, .textarea) { padding-right: 50px; }
.a-tokbtn {
  position: absolute; right: 6px; top: 6px; display: grid; place-items: center; min-width: 36px; height: 26px; padding: 0 7px;
  border-radius: 7px; background: var(--tint-on); color: var(--forest); font: 700 12px/1 var(--mono); transition: background-color 150ms, color 150ms;
}
.a-tokbtn:disabled { display: none; }
@media (hover: hover) and (pointer: fine) { .a-tokbtn:hover { background: var(--ink); color: #fff; } }
.a-live {
  display: flex; align-items: baseline; gap: 8px; padding: 6px 10px; border-radius: 8px; font-size: 12.5px; color: var(--ink2);
  background: var(--cream); border: 1px dashed var(--line2); overflow-wrap: anywhere;
}
.a-live[hidden] { display: none; }
.a-live__k { flex: none; font: 600 9.5px/1.8 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--g-deep); }
.a-live__v { color: var(--ink); }
.a-live.is-bad { color: var(--short-ink); background: #fff7f8; border-color: rgba(214, 69, 93, .35); }


.a-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 26px; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.a-switch input { position: absolute; left: 0; top: 50%; width: 36px; height: 22px; margin: 0; translate: 0 -50%; opacity: 0; cursor: pointer; }
.a-switch__track { position: relative; flex: none; width: 36px; height: 22px; border-radius: 999px; background: var(--line2); transition: background-color 150ms, box-shadow 150ms; }
.a-switch__track::after {
  content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(13, 22, 18, .28); transition: translate 150ms var(--ease-out);
}
.a-switch input:checked + .a-switch__track { background: var(--g); }
.a-switch input:checked + .a-switch__track::after { translate: 14px 0; }
.a-switch input:focus-visible + .a-switch__track { box-shadow: var(--focus-ring); }
.a-switch input:disabled, .a-switch input:disabled + .a-switch__track { cursor: not-allowed; opacity: .55; }
.a-switch__label { line-height: 1.35; }


.a-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.a-swatch {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 10px; cursor: pointer;
  border: 1px solid var(--line2); border-radius: 10px; background: #fff; font-size: 13px; font-weight: 600; color: var(--ink2);
  transition: border-color 150ms, color 150ms, box-shadow 150ms;
}
.a-swatch input { position: absolute; opacity: 0; pointer-events: none; }
.a-swatch__sw { width: 18px; height: 18px; border-radius: 5px; }
.a-swatch:has(input:checked) { border-color: var(--ink); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.a-swatch:has(input:focus-visible) { box-shadow: var(--focus-ring); }
.a-swatch:has(input:disabled) { cursor: not-allowed; opacity: .6; }
.a-selrow { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 8px; align-items: center; }
.a-selthumb { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 1px solid var(--line); overflow: hidden; color: var(--forest); }
.a-selthumb img { width: 28px; height: 28px; object-fit: contain; }


.a-kvbox { display: grid; gap: 8px; justify-items: start; }
.a-kv { display: grid; gap: 6px; width: 100%; }
.a-kv__row { display: grid; grid-template-columns: minmax(110px, .75fr) minmax(0, 1.25fr) 36px; gap: 6px; }
.a-kv__row.has-error .input { border-color: var(--short); }
.a-iconbtn {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--ink3);
  transition: background-color 150ms, color 150ms;
}
.a-iconbtn .i { width: 16px; height: 16px; }
.a-iconbtn:disabled { opacity: .35; cursor: default; }
@media (hover: hover) and (pointer: fine) { .a-iconbtn:not(:disabled):hover { background: var(--paper); color: var(--ink); } }
fieldset.a-field { min-width: 0; margin: 0; padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--cream); display: grid; gap: 8px; }
.a-obj__legend { float: left; width: 100%; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; padding: 0; margin-bottom: 2px; }
.a-obj__legend + * { clear: both; }
.a-obj { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; align-items: start; }
.a-obj > .is-wide { grid-column: 1 / -1; }
.a-list { display: grid; gap: 10px; }
.a-field--list > .btn { justify-self: start; }
.a-list__item { display: grid; gap: 8px; padding: 10px 12px 14px; border: 1px solid var(--line2); border-radius: 12px; background: #fff; }
.a-list__bar { display: flex; align-items: center; gap: 2px; }
.a-list__num { display: grid; place-items: center; min-width: 22px; height: 22px; margin-right: 8px; border-radius: 6px; background: var(--ink); color: #fff; font: 700 11px/1 var(--mono); }
.a-list__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--ink3); }
.a-list__item > fieldset.a-field { padding: 0; border: 0; background: none; }
.a-list__item > fieldset.a-field > .a-obj__legend { display: none; }


.a-img { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.a-img__thumb {
  display: grid; place-items: center; width: 132px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; border: 1px solid var(--line);
  background: radial-gradient(circle, rgba(31, 95, 69, .12) 1.1px, transparent 1.4px) 0 0 / 8px 8px, var(--cream); font-size: 12px;
}
.a-img__thumb img { width: 100%; height: 100%; object-fit: cover; }
.a-img__side { display: grid; gap: 8px; min-width: 0; }
.a-img__name { color: var(--ink2); overflow-wrap: anywhere; }
.a-img__btns { display: flex; gap: 8px; }


.a-rich { overflow: clip; border: 1px solid var(--line2); border-radius: 12px; background: #fff; transition: border-color 150ms, box-shadow 150ms; }
.a-rich:focus-within { border-color: rgba(18, 183, 106, .6); box-shadow: 0 0 0 4px rgba(18, 183, 106, .12); }

.a-rich__bar { position: sticky; top: 60px; z-index: 2; display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); background: var(--white); }
.a-dlg .a-rich__bar { top: 0; }
.a-rich__btn { display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 8px; color: var(--ink2); transition: background-color 150ms, color 150ms; }
.a-rich__btn .i { width: 17px; height: 17px; }
.a-rich__btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.a-rich__btn:disabled { opacity: .35; cursor: default; }
@media (hover: hover) and (pointer: fine) { .a-rich__btn:not(:disabled):not([aria-pressed="true"]):hover { background: var(--paper); color: var(--ink); } }
.a-rich__txt { font: 700 12px/1 var(--mono); }
.a-rich__sep { width: 1px; margin: 6px 4px; background: var(--line2); }
.a-rich__area.prose { max-width: none; min-height: 180px; padding: 14px 18px 18px; font-size: 15px; line-height: 1.7; outline: none; overflow-wrap: anywhere; }
.a-rich__area[contenteditable="false"] { background: var(--white); color: var(--ink2); }
.a-rich__src { display: block; width: 100%; min-height: 280px; border: 0; border-radius: 0; font-size: 12.5px; }
.a-rich__src:focus-visible { box-shadow: none; }
.a-rich.is-source .a-rich__bar { background: var(--paper); }


.a-meta__title { margin-bottom: 10px; font: 600 10.5px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--ink3); }
.a-meta, .a-actions { padding: 16px 18px; }
.a-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; font-size: 13px; }
.a-dl dt { color: var(--ink3); }
.a-dl dd { color: var(--ink); overflow-wrap: anywhere; }
.a-dl--row { margin-bottom: 18px; }
.a-actions__list { display: grid; gap: 8px; }
.a-actions__list .btn { width: 100%; justify-content: flex-start; }


.a-child__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.a-child__title { display: flex; align-items: baseline; gap: 8px; font-size: 15px; letter-spacing: -.015em; }
.a-child__count { font: 600 12px/1 var(--mono); color: var(--ink3); }
.a-child .a-tbl-wrap { border: 0; border-radius: 0 0 16px 16px; }


.a-grouprow { scroll-margin-top: 90px; }
.a-grouprow.is-target { outline: 2px solid var(--lime); outline-offset: 8px; border-radius: 6px; }


.a-dlg { width: min(540px, calc(100vw - 32px)); padding: 24px; }
.a-dlg--wide { width: min(920px, calc(100vw - 32px)); }
.a-dlg__title { font-size: 19px; letter-spacing: -.025em; }
.a-dlg__text { color: var(--ink2); }
.a-dlg__body { margin-top: 12px; }
.a-dlg .dlg__actions { justify-content: flex-end; }
.a-dlg--form .a-fields { gap: 16px; }
.a-toasts { z-index: 90; }
.a-tokpick { display: grid; gap: 10px; }
.a-tokens { max-height: min(50vh, 460px); overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; }
.a-tokens__wait { padding: 14px; }
.a-token {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 14px; width: 100%; padding: 8px 12px; text-align: left;
  border-bottom: 1px solid var(--line); transition: background-color 150ms;
}
.a-token:last-child { border-bottom: 0; }
.a-token:focus-visible { outline-offset: -2px; background: var(--tint-hover); }
@media (hover: hover) and (pointer: fine) { .a-token:hover { background: var(--tint-hover); } }
.a-token__path { font: 500 12.5px/1.5 var(--mono); color: var(--forest); overflow-wrap: anywhere; }
.a-token__val { font-size: 12.5px; color: var(--ink2); text-align: right; overflow-wrap: anywhere; }
.a-tokens__help summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--forest); }
.a-tokens__help p { margin: 6px 0; font-size: 12.5px; color: var(--ink2); }
.a-fmts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 12px; list-style: none; font-size: 12px; color: var(--ink3); }
.a-fmts code { margin-right: 6px; color: var(--forest); }
.a-secretrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-top: 14px; }
.a-secret { display: block; padding: 12px 14px; border-radius: 10px; background: var(--ink); color: #fff; font: 600 16px/1.35 var(--mono); letter-spacing: .03em; user-select: all; overflow-wrap: anywhere; }
.a-secret--url { font-size: 12px; font-weight: 500; letter-spacing: 0; }


.a-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.a-ov__wide { grid-column: 1 / -1; }
.a-livechip {
  display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px 0 9px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-soft); font-size: 13px; font-weight: 700; color: var(--ink);
}
.a-livechip .orb { width: 10px; height: 10px; }
.a-livechip.is-stale .orb { background: var(--forest); box-shadow: none; }
.a-livechip.is-idle .orb { background: var(--ink3); box-shadow: none; }
.a-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 16px 0; }
.a-stats--3 { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); margin-bottom: 0; }
.a-stat { display: grid; align-content: start; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--cream); border: 1px solid var(--line); transition: border-color 150ms, background-color 150ms; }
.a-stat__v { font-size: 24px; font-weight: 700; line-height: 1.1; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.a-stat__k { font-size: 12px; color: var(--ink2); }
.a-stat.is-warn { background: #f5fbe9; border-color: #d5edaa; }
@media (hover: hover) and (pointer: fine) { a.a-stat:hover { background: #fff; border-color: rgba(18, 183, 106, .5); } }
.a-unrev { margin: -4px 0 14px; font-size: 13px; color: var(--ink2); }
.a-unrev a { color: var(--g-deep); }
.a-unrev code { font-size: 12px; }
.a-feed__tbl td, .a-feed__tbl th { font-size: 13px; }
.a-feed__tbl tbody tr { cursor: default; }
.a-feed__tbl tbody th { padding: 10px 14px; font: 600 13px/1.4 var(--font); letter-spacing: 0; text-transform: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.a-feed__tbl tbody tr:last-child th { border-bottom: 0; }
.a-feed__err { max-width: 320px; }
.a-checklist { display: grid; gap: 0; margin-top: 10px; list-style: none; }
.a-checklist li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 10px; padding: 8px 0; border-top: 1px dotted var(--line2); font-size: 13.5px; }
.a-sdot.orb { width: 8px; height: 8px; box-shadow: none; translate: 0 -1px; }
.a-rows { margin-top: 10px; list-style: none; }
.a-rows li + li { border-top: 1px dotted var(--line2); }
.a-rows__a { display: flex; align-items: center; gap: 10px; min-height: 42px; font-size: 13.5px; font-weight: 600; color: var(--ink2); transition: color 150ms; }
.a-rows__n { margin-left: auto; font: 700 15px/1 var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.a-rows__n.is-warn { padding: 4px 8px; border-radius: 999px; background: var(--hl); color: var(--forest); }
.a-rows__arr { width: 14px; height: 14px; color: var(--ink3); transition: translate 150ms, color 150ms; }
@media (hover: hover) and (pointer: fine) { .a-rows__a:hover { color: var(--ink); } .a-rows__a:hover .a-rows__arr { translate: 2px 0; color: var(--g-deep); } }
.a-checklist a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }
.a-factlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; margin-top: 10px; list-style: none; }
.a-fact { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 12px 0; border-top: 1px dotted var(--line2); }
.a-fact .a-switch { align-self: start; margin-top: -1px; }
.a-fact__claim { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.a-fact__where { margin-top: 3px; font-size: 12px; color: var(--ink3); }
.a-fact.is-done .a-fact__claim { color: var(--ink3); text-decoration: line-through; text-decoration-color: rgba(13, 22, 18, .25); }


.a-drop {
  display: grid; justify-items: center; gap: 6px; padding: 26px 20px; border: 1.5px dashed var(--line2); border-radius: 14px; text-align: center; cursor: pointer;
  background: radial-gradient(circle, rgba(31, 95, 69, .1) 1.1px, transparent 1.4px) 0 0 / 11px 11px, var(--cream);
  transition: border-color 150ms, background-color 150ms, opacity 150ms;
}
.a-drop.is-compact { padding: 16px; }
.a-drop.is-over { border-color: var(--g); background-color: var(--tint-on); }
.a-drop.is-busy { opacity: .55; pointer-events: none; }
.a-drop:focus-within { border-color: var(--g-deep); box-shadow: var(--focus-ring); }
.a-drop__ico { width: 26px; height: 26px; color: var(--g-deep); }
.a-drop__t { font-size: 14px; color: var(--ink2); }
.a-drop__t b { color: var(--ink); }
.a-drop__s { font-size: 12px; color: var(--ink3); }
@media (hover: hover) and (pointer: fine) { .a-drop:hover { border-color: var(--g); } }
.a-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.a-tiles.is-compact { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; max-height: 52vh; overflow-y: auto; padding: 2px; }
.a-tiles > .a-empty { grid-column: 1 / -1; margin: 0; }
.a-tile { display: grid; margin: 0; overflow: clip; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.a-tile__img { display: grid; place-items: center; aspect-ratio: 4 / 3; background: radial-gradient(circle, rgba(31, 95, 69, .1) 1.1px, transparent 1.4px) 0 0 / 9px 9px, var(--cream); border-bottom: 1px solid var(--line); }
.a-tile__img { overflow: hidden; }
.a-tile__img img { width: 100%; height: 100%; padding: 8px; object-fit: contain; }
.a-tile__cap { display: grid; gap: 6px; padding: 10px 12px 12px; }
.a-tile__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-weight: 600; }
.a-tile__row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.a-tile__meta { font: 500 11px/1.4 var(--mono); color: var(--ink3); }
.a-tile__acts { display: flex; }
.a-tile__acts .a-iconbtn { width: 30px; height: 30px; }
.a-tile__alt { height: 34px; font-size: 13px; }
.a-tile__by { font-size: 11.5px; color: var(--ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-tile--pick { padding: 0 0 10px; text-align: left; gap: 6px; transition: border-color 150ms, box-shadow 150ms; }
.a-tile--pick .a-tile__name, .a-tile--pick .a-tile__meta { padding-inline: 10px; }
.a-tile--pick:focus-visible { box-shadow: var(--focus-ring); }
@media (hover: hover) and (pointer: fine) { .a-tile--pick:hover { border-color: var(--g); box-shadow: 0 10px 24px -18px rgba(var(--sh), .6); } }
.a-more { display: flex; justify-content: center; margin-top: 14px; }


.a-prev__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.a-prev__field { position: relative; flex: 1 1 280px; display: flex; align-items: center; }
.a-prev__host { position: absolute; left: 12px; color: var(--ink3); pointer-events: none; }
.a-prev__path { padding-left: 48px; }
.a-prev__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.a-seg { padding: 3px; }
.a-seg button { padding: 7px 12px; font-size: 13px; gap: 6px; transition: color 150ms, background-color 150ms; }
.a-seg .i { width: 16px; height: 16px; }
.a-frame {
  --w: 1440px; --h: 900px; --s: 1; position: relative; height: calc(var(--h) * var(--s) + 2px); margin-top: 14px; overflow: hidden;
  border-radius: 14px; border: 1px solid var(--line);
  background: radial-gradient(circle, rgba(31, 95, 69, .1) 1.1px, transparent 1.4px) 0 0 / 11px 11px, var(--cream);
}
.a-frame__dev { position: absolute; left: 50%; top: 0; width: var(--w); height: var(--h); transform: translateX(-50%) scale(var(--s)); transform-origin: 50% 0; }
.a-frame__if { display: block; width: 100%; height: 100%; border: 0; background: var(--paper); }
.a-frame[data-device="phone"] { height: calc((var(--h) + 36px) * var(--s)); }
.a-frame[data-device="phone"] .a-frame__dev { top: 18px; box-sizing: content-box; border-radius: 30px; overflow: hidden; box-shadow: 0 0 0 9px var(--ink), var(--shadow-pop); }


.a-login { position: relative; display: grid; place-items: center; min-height: 100dvh; padding: 24px 16px; overflow: clip; }
.a-login::before {
  content: ""; position: absolute; right: -18vmax; top: -22vmax; width: 70vmax; height: 70vmax; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(163, 230, 53, .22), transparent);
}
.a-login__card { position: relative; width: min(400px, 100%); padding: 30px 30px 24px; box-shadow: var(--shadow-card); }
.a-login__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; letter-spacing: -.01em; color: var(--ink); }
.a-login__brand img { width: 34px; height: auto; }
.a-login__title { margin-top: 28px; font-size: 32px; line-height: 1.05; letter-spacing: -.04em; outline: none; }
.a-login__lead { margin-top: 8px; color: var(--ink2); }
.a-login__form { display: grid; gap: 14px; margin-top: 22px; }
.a-login__form .input { height: 44px; }
.a-login__form .btn { --h: 46px; margin-top: 4px; border-radius: 12px; }
.a-login__msg { font-size: 13px; font-weight: 600; color: var(--short-ink); }
.a-login__msg:empty { display: none; }
.a-login__foot { margin-top: 18px; padding-top: 14px; border-top: 1px dotted var(--line2); font-size: 12.5px; color: var(--ink3); }


@media (max-width: 1240px) {
  .a-formgrid.has-aside { grid-template-columns: minmax(0, 1fr); }
  .a-formaside { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .a-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .a-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a-factlist { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1024px) {
  .a-layout { grid-template-columns: minmax(0, 1fr); }
  .a-rail {
    position: fixed; inset: 0 auto 0 0; z-index: 60; width: min(300px, 86vw); height: 100dvh; translate: -104% 0;
    box-shadow: var(--shadow-pop); transition: translate 150ms var(--ease-out), visibility 0s 150ms; visibility: hidden;
  }
  .rail-open .a-rail { translate: none; visibility: visible; transition: translate 150ms var(--ease-out); }
  .a-scrim { display: block; position: fixed; inset: 0; z-index: 55; border: 0; background: rgba(13, 22, 18, .3); opacity: 0; pointer-events: none; transition: opacity 150ms; }
  .rail-open .a-scrim { opacity: 1; pointer-events: auto; }
  .a-menu-btn { display: grid; place-items: center; width: 38px; height: 38px; margin-left: -6px; border-radius: 10px; color: var(--ink); }
  .a-top__mark { display: block; width: 24px; height: auto; }
  .a-top { padding: 0 20px; }
  .a-view { padding: 16px 20px 72px; }
}
@media (max-width: 720px) {
  .a-top { height: 54px; gap: 8px; padding: 0 12px; }
  .a-user__name, .a-user summary .i { display: none; }
  .a-user summary { padding: 0 4px; }
  .a-crumbs li:not(:last-child) { display: none; }
  .a-crumbs li + li::before { display: none; }
  .a-view { padding: 14px 16px 100px; }
  .a-head { margin: 4px 0 14px; gap: 12px; }
  .a-title { font-size: 23px; }
  .a-head__actions { width: 100%; }
  .a-page--form .a-head__actions { display: none; }
  .a-savebar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 8px; padding: 10px 16px max(10px, env(safe-area-inset-bottom));
    background: rgba(251, 252, 251, .95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid var(--line);
  }
  .a-savebar .btn { flex: 1; --h: 44px; }
  .a-toasts { bottom: 80px; }
  .a-card--pad { padding: 16px; }
  .a-fields, .a-obj { grid-template-columns: minmax(0, 1fr); }
  .a-overview { grid-template-columns: minmax(0, 1fr); }
  .a-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a-toolbar { padding: 12px; }
  .a-search { max-width: none; flex-basis: 100%; }
  .a-count-line { margin-left: 0; }
  .a-kv__row { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) 36px; }
  .a-token { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .a-token__val { text-align: left; }
  .a-dlg { padding: 20px 16px; }
  .a-rich__bar { top: 54px; }
  .a-groups { grid-template-columns: minmax(0, 1fr); padding: 12px; }

  
  .a-tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .a-tiles:not(.is-compact) { grid-template-columns: minmax(0, 1fr); }
  .a-tiles:not(.is-compact) .a-tile { grid-template-columns: 104px minmax(0, 1fr); }
  .a-tiles:not(.is-compact) .a-tile__img { aspect-ratio: auto; min-height: 104px; border-bottom: 0; border-right: 1px solid var(--line); }
  .a-tiles:not(.is-compact) .a-tile__img img { padding: 6px; }

  
  .a-tbl thead { display: none; }
  .a-tbl, .a-tbl tbody { display: block; width: 100%; }
  .a-tbl tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .a-tbl tbody tr:last-child { border-bottom: 0; }
  .a-tbl td, .a-tbl tbody tr:last-child td {
    grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; max-width: none;
    padding: 3px 0; border: 0; text-align: right; overflow-wrap: anywhere;
  }
  .a-tbl td.is-short { grid-column: auto; }
  .a-tbl td.is-empty { display: none; }
  .a-tbl td::before { content: attr(data-label); flex: none; font: 600 10px/1.9 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink3); text-align: left; }
  .a-tbl td:first-child { display: block; padding: 0 0 6px; text-align: left; }
  .a-tbl td:first-child::before { display: none; }
  .a-feed__tbl tbody th { grid-column: 1 / -1; display: block; padding: 0 0 4px; border: 0; }
}
@media (max-width: 560px) {
  
  .a-dlg, .a-dlg--wide { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
