:root {
  --bg0: #ebe4f7;
  --ink: #1a1228;
  --muted: #8f86a8;
  --hint: #b7adc9;
  --violet: #7c3aed;
  --fuchsia: #c026d3;
  --sea: #0e7490;
  --sea-soft: #0f766e;
  --white: #ffffff;
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Orbitron", "Manrope", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg0);
  min-height: 100svh;
  font-size: 13px;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(196,181,253,.7), transparent 55%),
    radial-gradient(800px 380px at 90% 20%, rgba(165,243,252,.4), transparent 50%),
    linear-gradient(180deg, #f6f1fc, #ebe4f7 55%, #e4dcf4);
}
.wrap {
  width: min(720px, calc(100% - 1.6rem));
  margin: 0 auto;
  padding: 1.4rem 0 3rem;
}
.wide { width: min(1080px, calc(100% - 1.6rem)); }
.brand {
  font-family: var(--display);
  letter-spacing: .12em;
  font-size: .78rem;
  color: #6d28d9;
  text-align: center;
  margin: 0 0 .35rem;
}
h1 {
  font-family: var(--display);
  font-size: clamp(.95rem, 2.1vw, 1.28rem);
  letter-spacing: .06em;
  text-align: center;
  margin: 0 0 1rem;
  color: var(--ink);
}
.app-ver {
  text-align: center;
  margin: -.75rem 0 .9rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--muted);
}
body.cabinet-sky {
  color: #e8eef8;
  background: #08101c;
}
body.cabinet-sky::before {
  background:
    url("/static/bg-infinity.png") center center / cover no-repeat,
    #08101c;
  filter: none;
}
body.cabinet-sky .wrap { padding-bottom: 1.4rem; }
body.cabinet-sky .brand {
  color: #00e5ff;
  letter-spacing: .14em;
  text-shadow: 0 0 12px rgba(0, 229, 255, .45);
}
body.cabinet-sky .brand span { color: inherit; }
body.cabinet-sky h1 {
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(0, 20, 40, .55);
}
body.cabinet-sky h2 { color: #ffffff; }
body.cabinet-sky .app-ver { color: rgba(232, 238, 248, .78); }
body.cabinet-sky { font-size: 11.5px; }
body.cabinet-sky .wrap { padding-top: .7rem; }
body.cabinet-sky .card {
  padding: .55rem .7rem .6rem;
  border-radius: 16px;
  margin-bottom: .55rem;
}
body.cabinet-sky label { font-size: .78rem; margin: .28rem 0 .1rem; }
body.cabinet-sky .muted { font-size: .84rem; }
body.cabinet-sky input,
body.cabinet-sky textarea,
body.cabinet-sky select {
  padding: .28rem .42rem;
  border-radius: 9px;
  border-width: 1.5px;
}
body.cabinet-sky textarea { min-height: 2.4rem; }
body.cabinet-sky .btn { padding: .4rem .75rem; font-size: .82rem; margin-top: .45rem; }
body.cabinet-sky .ghost { padding: .28rem .55rem; font-size: .78rem; }
body.cabinet-sky .back,
body.cabinet-sky .nav-go { padding: .28rem .62rem; font-size: .76rem; }
body.cabinet-sky .view-bar { margin-bottom: .55rem; gap: .3rem; }
body.cabinet-sky h1 { margin-bottom: .45rem; }
body:not(.cabinet-sky):not(:has(#f)) { font-size: 11.5px; }
body:not(.cabinet-sky):not(:has(#f)) .card {
  padding: .55rem .7rem .6rem;
  border-radius: 16px;
  margin-bottom: .55rem;
}
body:not(.cabinet-sky):not(:has(#f)) input,
body:not(.cabinet-sky):not(:has(#f)) textarea,
body:not(.cabinet-sky):not(:has(#f)) select {
  padding: .28rem .42rem;
  border-radius: 9px;
}
body:not(.cabinet-sky):not(:has(#f)) .btn { padding: .4rem .75rem; font-size: .82rem; }
body.cabinet-sky .ui-lang-pick { color: #e8eef8; }
body.cabinet-sky .muted { color: rgba(232, 238, 248, .72); }
body.cabinet-sky a { color: #5ef0ff; }
body.cabinet-sky .card,
body.cabinet-sky .side-link {
  color: var(--ink);
  background: #fff;
}
body.cabinet-sky .card h2 { color: var(--ink); }
body.cabinet-sky .card .muted,
body.cabinet-sky .side-link .muted { color: #8f86a8; }
body.cabinet-sky .card a { color: #6d28d9; }
body.cabinet-sky .hint-block { color: #5c5470; }
.infinity-mark {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 40;
  display: block;
  width: 64px;
  height: 64px;
  overflow: visible;
  line-height: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
  filter:
    drop-shadow(0 0 1px rgba(248, 250, 252, .95))
    drop-shadow(0 0 8px rgba(0, 229, 255, .55))
    drop-shadow(0 2px 8px rgba(0, 0, 0, .6));
}
.infinity-mark-face {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  clip-path: polygon(50% 4.5%, 91% 28%, 91% 72%, 50% 95.5%, 9% 72%, 9% 28%);
  -webkit-clip-path: polygon(50% 4.5%, 91% 28%, 91% 72%, 50% 95.5%, 9% 72%, 9% 28%);
}
.infinity-mark-face img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  transform: scale(1.42);
}
.infinity-mark-ring {
  position: absolute;
  inset: 0;
  width: 64px;
  height: 64px;
  pointer-events: none;
  overflow: visible;
}
.infinity-mark.is-on { cursor: pointer; }
.infinity-mark:not(.is-on) { cursor: default; }
.intro {
  font-weight: 800;
  font-size: .94rem;
  line-height: 1.45;
  text-align: center;
  margin: 0 0 1.1rem;
  color: var(--ink);
  white-space: pre-wrap;
}
.card {
  background: #fff;
  border: 1px solid rgba(45, 20, 80, .16);
  border-radius: 22px;
  padding: 1rem 1.1rem 1.15rem;
  box-shadow: 0 12px 28px rgba(76, 29, 149, .12);
  margin-bottom: 1rem;
}
label {
  display: block;
  font-size: .82rem;
  color: var(--ink);
  font-weight: 800;
  margin: .55rem 0 .22rem;
}
.hint { color: var(--hint); font-weight: 600; }
.u { text-decoration: underline; text-underline-offset: 3px; color: var(--hint); font-weight: 600; }
.who {
  text-align: center;
  font-weight: 800;
  margin: .2rem 0 .15rem;
  color: var(--ink);
}
.who .arrow {
  display: block;
  color: #c026d3;
  font-size: 1.25rem;
  line-height: 1;
  margin-top: .1rem;
}
#fileSlots input { margin-top: .4rem; }
#fileSlots input:first-child { margin-top: 0; }
.addFile { display: block; margin: .35rem 0 .6rem; font-weight: 700; }
.addFile input { display: block; margin-top: .25rem; font: inherit; }
.file-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .4rem;
  align-items: center;
  margin: .35rem 0;
}
.subStatus {
  font: inherit;
  font-weight: 800;
  margin-left: .45rem;
  max-width: 13rem;
  border: 2px solid #7c3aed;
  border-radius: 10px;
  padding: .2rem .4rem;
  background: #fff;
  color: var(--ink);
}
summary .delSub { margin-left: .35rem; }
input, textarea, select {
  width: 100%;
  border: 2px solid #7c3aed;
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: .62rem .75rem;
  font: inherit;
  font-weight: 700;
}
input::placeholder, textarea::placeholder {
  color: #c4bdd4;
  opacity: 1;
  font-weight: 600;
}
textarea { min-height: 4.2rem; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.row3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 640px) {
  .row, .row3 { grid-template-columns: 1fr; }
}
.tracks { display: flex; gap: .5rem; flex-wrap: wrap; margin: .4rem 0 .8rem; }
.tracks button, .btn, .ghost {
  border: 0; cursor: pointer; font: inherit;
}
.tracks button {
  flex: 1;
  min-width: 9rem;
  padding: .7rem .9rem;
  border-radius: 999px;
  color: #081018;
  background: linear-gradient(135deg, #22d3ee, #06b6d4);
  font-weight: 800;
}
.tracks button.is-off {
  background: #ede9fe;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px #7c3aed;
}
.hint-block {
  font-size: .82rem;
  color: var(--hint);
  font-weight: 600;
  line-height: 1.45;
  margin: .35rem 0 .65rem;
}
.hint-block b { color: #7a718f; font-weight: 700; }
input[readonly] {
  background: #f4f0fb;
  color: #3d3550;
  cursor: default;
}
.move-box {
  margin-top: .85rem;
  padding-top: .65rem;
  border-top: 1px solid rgba(90, 70, 140, .16);
}
.move-box > .muted { margin: 0 0 .45rem; }
.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
  margin-top: .9rem;
}
.actions .btn,
.actions .ghost {
  width: 100%;
  margin-top: 0;
  padding: .72rem 1rem;
  font-size: .9rem;
  font-weight: 800;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .72rem 1.2rem;
  border-radius: 999px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #a855f7, #c026d3);
  margin-top: .8rem;
  width: 100%;
}
.ghost {
  background: #ede9fe;
  color: var(--ink);
  border-radius: 999px;
  padding: .45rem .8rem;
  font-size: .82rem;
  font-weight: 800;
}
a.ghost { display: inline-flex; text-decoration: none; }
button.ghost:disabled { opacity: .4; cursor: default; }
.link-copy {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  margin-right: .7rem;
  white-space: nowrap;
}
.icon-copy {
  border: 0;
  cursor: pointer;
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  border-radius: 8px;
  background: #ede9fe;
  color: #5b21b6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-copy:hover { background: #ddd6fe; }
.icon-copy svg { width: 1rem; height: 1rem; display: block; }
.muted { color: var(--muted); font-size: .92rem; font-weight: 600; }
.prod { display: grid; grid-template-columns: 1fr 5.2rem auto; gap: .4rem; margin: .35rem 0; align-items: center; }
.prod-money { margin: .2rem 0 .45rem; }
.prod-with-note { display: flex; align-items: flex-end; gap: .8rem; }
.prod-sheet { flex: 1; min-width: 0; overflow-x: auto; }
.pay-note-box { flex: 0 0 15rem; margin: 0 0 .2rem; line-height: 1.3; }
.pay-note-box .pay-sum { margin: 0; }
.pay-note-box .order-pay-also { margin: .15rem 0 0; }
.prod-money .prod,
.prod-money .prod-head {
  grid-template-columns: minmax(11rem, 1.5fr) minmax(7.2rem, 10rem) 3rem 1.3rem 3.4rem repeat(5, 4.3rem) auto;
  min-width: 0;
  align-items: end;
}
.prod-money textarea.pn {
  min-height: 2.6rem;
  height: auto;
  resize: none;
  overflow: hidden;
  white-space: pre-wrap;
  line-height: 1.3;
  padding: .4rem .55rem;
}
.prod-money .pstock {
  text-align: center;
  background: #f5f3ff;
  font-weight: 800;
  padding: .28rem .2rem;
}
.prod-head {
  font-size: .72rem;
  font-weight: 800;
  color: var(--muted);
  margin: 0 0 .15rem;
}
.prod-head .col-stack {
  line-height: 1.15;
  text-align: center;
}
.pdel, .pcost, .pprice, .ppoints, .ptot { min-width: 0; }
.ptot { background: #f5f3ff; }
.pay-sum { font-weight: 800; margin: .35rem 0 .25rem; }
.fio-warn { color: #b91c1c; font-weight: 800; cursor: help; margin-left: .35rem; }
.edit-pass { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: .35rem 0; }
.edit-pass input { width: 14rem; }
.edit-pass-err { color: #b91c1c; font-weight: 700; margin: 0; }
.check {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  font-weight: 700;
  margin: .35rem 0;
}
.check input { width: auto; margin-top: .25rem; flex: none; }
.reg-cols {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: .25rem .8rem;
  margin: .5rem 0 .7rem;
}
.reg-cols .check { margin: .1rem 0; font-size: .9rem; }
.pay-box { margin-top: .55rem; }
.pay-cap { margin: .7rem 0 .2rem; font-weight: 800; }
.pay-box input[readonly] { background: #f5f3ff; }
.pay-yuan {
  display: flex;
  flex-wrap: nowrap;
  gap: .28rem;
  align-items: flex-end;
}
.pay-yuan label { margin: 0; font-size: .64rem; flex: 0 1 7.2rem; min-width: 0; }
.pay-field { display: flex; align-items: center; gap: .12rem; }
.pay-field input { flex: 1; min-width: 0; }
.pay-x {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  border: 0;
  border-radius: 50%;
  background: #ede9fe;
  color: #6d28d9;
  font: 800 .85rem/1 Manrope, sans-serif;
  cursor: pointer;
  padding: 0;
}
.pay-side {
  margin-left: auto;
  text-align: right;
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.35;
  min-width: 8.2rem;
}
.pay-side p { margin: 0; }
.pay-side-due { font-weight: 800; margin-bottom: .12rem; }
.pay-box .pay-yuan input {
  margin-top: .06rem;
  padding: .08rem .2rem;
  font-size: .7rem;
  border-radius: 7px;
  border-width: 1px;
}
.pay-due-local { display: block; margin-top: .08rem; font-weight: 800; font-size: .78rem; }
.pay-split {
  border: 0;
  border-top: 1px dashed rgba(109, 40, 217, .55);
  margin: .55rem 0 .35rem;
}
@media (max-width: 640px) {
  .pay-yuan { flex-wrap: wrap; }
  .pay-side { flex: 1 0 100%; margin-left: 0; }
}
.del-actions { display: flex; gap: .45rem; align-items: stretch; }
.del-actions .btn { flex: 1 1 auto; width: auto; }
.del-actions .del-close {
  flex: 0 0 8.5rem;
  background: #fff;
  color: #6d28d9;
  box-shadow: inset 0 0 0 2px #7c3aed;
}
.pay-prelim { margin: .45rem 0 0; font-size: .82rem; font-weight: 700; line-height: 1.35; }
.pay-local {
  grid-column: 1 / 4;
  margin: .2rem 0 0;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.3;
}
.pay-bang {
  color: #dc2626;
  font-weight: 900;
  font-size: 1.2em;
  margin-right: .2rem;
}
.order-pay-also {
  display: block;
  margin: .15rem 0 .45rem;
  font-weight: 700;
  white-space: pre-line;
  line-height: 1.35;
}
.pay-also {
  grid-column: 4;
  margin: .2rem 0 0;
  text-align: right;
  font-weight: 700;
  font-size: .68rem;
  line-height: 1.35;
  white-space: pre-line;
}
.ok { color: #166534; text-align: center; font-weight: 800; }
.err { color: #b91c1c; text-align: center; font-weight: 800; }
table { width: 100%; border-collapse: collapse; font-size: .86rem; }
th, td { text-align: left; padding: .45rem .35rem; border-bottom: 1px solid rgba(45, 20, 80, .12); vertical-align: top; }
.pre {
  white-space: pre-wrap;
  font-family: ui-monospace, Consolas, monospace;
  font-size: .82rem;
  background: #f5f3ff;
  color: var(--ink);
  border-radius: 12px;
  padding: .8rem;
  border: 2px solid #7c3aed;
}
.toolbar { display: flex; gap: .4rem; flex-wrap: wrap; margin: .5rem 0; }
.page-grid { display: grid; gap: .8rem; }
@media (min-width: 860px) { .page-grid { grid-template-columns: 1fr 1fr; } }
.tag { font-size: .78rem; color: #6d28d9; font-weight: 800; }
summary { cursor: pointer; font-weight: 800; color: var(--ink); }
.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .7rem;
  align-items: start;
  width: min(820px, 100%);
  margin-inline: auto;
}
.settings-layout:has(#createdBox:not([hidden])) {
  width: min(1040px, 100%);
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
}
@media (max-width: 900px) {
  .settings-layout:has(#createdBox:not([hidden])) { grid-template-columns: 1fr; }
}
.link-side {
  position: sticky;
  top: .6rem;
  margin-bottom: 0;
}
.link-side p { word-break: break-all; }
.link-side .icon-copy { vertical-align: middle; margin-left: .25rem; }
.pair-grid {
  display: grid;
  gap: .7rem;
  align-items: start;
  margin-bottom: .7rem;
}
@media (min-width: 860px) {
  .pair-grid { grid-template-columns: 1fr 1fr; }
}
.pair-grid > .card { margin-bottom: 0; }
#f { font-size: .78rem; padding: .7rem .8rem .8rem; }
#f label { font-size: .7rem; margin: .28rem 0 .1rem; }
#f input,
#f textarea,
#f select {
  padding: .28rem .45rem;
  border-radius: 8px;
  font-size: .75rem;
  border-width: 1.5px;
}
#f textarea { min-height: 2.2rem; }
#f .hint-block { font-size: .72rem; line-height: 1.35; margin: .18rem 0 .35rem; }
.ship-fixed {
  margin: .28rem 0 .4rem;
  font-weight: 800;
  line-height: 1.35;
}
.addr-field { position: relative; }
#f textarea.is-locked {
  background: #f4f1fa;
  cursor: pointer;
}
.addr-tip {
  position: absolute;
  z-index: 8;
  left: 0;
  bottom: calc(100% + .35rem);
  margin: 0;
  padding: .4rem .6rem;
  border-radius: 8px;
  background: #4c1d95;
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  line-height: 1.3;
  box-shadow: 0 8px 20px rgba(76, 29, 149, .28);
}
.addr-tip::after {
  content: "";
  position: absolute;
  left: 1rem;
  top: 100%;
  border: 6px solid transparent;
  border-top-color: #4c1d95;
}
.addr-tip[hidden] { display: none !important; }
.ship-fixed[hidden],
input[name=ship_other][hidden] { display: none !important; }
#deliveryNote {
  white-space: pre-wrap;
  color: #4c1d95;
  font-weight: 800;
  font-size: .92rem;
  line-height: 1.4;
}
#f .muted { font-size: .72rem; }
#f .who { font-size: .8rem; margin: .1rem 0; }
#f .who .arrow { font-size: .95rem; }
#f .tracks { gap: .35rem; margin: .2rem 0 .4rem; }
#f .tracks button { min-width: 0; padding: .36rem .55rem; font-size: .75rem; }
#f .btn,
#f .ghost,
#f .actions .btn,
#f .actions .ghost { padding: .38rem .7rem; font-size: .75rem; }
#newPageBox { font-size: .78rem; }
#newPageBox > .muted,
#newPageBox .muted { font-size: .72rem; line-height: 1.35; }
#newPageBox label { font-size: .7rem; margin: .28rem 0 .1rem; }
#newPageBox input,
#newPageBox textarea,
#newPageBox select {
  padding: .28rem .45rem;
  border-radius: 8px;
  font-size: .75rem;
  border-width: 1.5px;
}
#newPageBox textarea { min-height: 2.2rem; }
#newPageBox .btn { padding: .38rem .7rem; font-size: .75rem; margin-top: .35rem; }
#newPageBox .row { gap: .4rem; }
#whToggle { margin: 0 0 .45rem; }
#whToggle.is-on { color: #fff; background: #7c3aed; }
.wh-links { margin: 0 0 .65rem; padding-bottom: .45rem; border-bottom: 1px solid rgba(45, 20, 80, .12); }
.wh-links b { display: block; margin-bottom: .2rem; }
#accountLinks h2,
#accountLinks .wh-link-row,
#accountLinks .wh-link-row span,
#accountLinks .wh-link-row a {
  font-family: var(--font);
  font-size: 1em;
  font-weight: 800;
  letter-spacing: 0;
}
#accountLinks h2 { margin: 0 0 .4rem; }
.wh-link-row { display: grid; grid-template-columns: 8.6rem minmax(0, 1fr) auto; gap: .35rem; align-items: center; margin: .2rem 0; }
.wh-link-row a { word-break: break-all; }
#accountLinks .wh-link-row input {
  margin: 0;
  padding: .28rem .45rem;
  font-size: .85em;
  font-weight: 700;
}
#whList { margin: 0 0 .55rem; }
#whList .wh-edit { margin: .25rem 0 .45rem; }
#whList .wh-kids { margin: 0 0 .15rem .75rem; }
#delToggle { margin: 0 0 .45rem; }
#delToggle.is-on { color: #fff; background: #7c3aed; }
#delPanel { margin: 0 0 .6rem; }
.del-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 8.2rem 6.2rem 8.2rem;
  gap: .35rem;
  align-items: end;
  margin: .28rem 0;
}
.del-row label { margin: 0; font-size: .62rem; }
.del-row input { margin: .1rem 0 0; }
.del-row span { font-weight: 800; font-size: .75rem; overflow: hidden; text-overflow: ellipsis; }
#delPanel textarea { min-height: 2.4rem; }
.pair-grid > .span-2 { grid-column: 1 / -1; }
#regBox { order: 1; }
#newPageBox { order: 2; }
#statusBox { order: 3; }
#contactsBox { order: 4; }
#catalogBox { order: 5; }
.pwd-fold { margin-top: .85rem; }
.pwd-fold > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  border-radius: 999px;
  padding: .72rem 1rem;
  background: #ede9fe;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px #7c3aed;
  font-weight: 800;
}
.pwd-fold > summary::-webkit-details-marker { display: none; }
.vol-table { width: 100%; border-collapse: collapse; margin-top: .25rem; font-size: .72rem; }
.vol-table th, .vol-table td { padding: .12rem .16rem; }
#statusVol .sheet,
#statsVol .sheet { overflow-x: visible; }
#statusVol .sheet table,
#statsVol .sheet table { min-width: 0; width: 100%; table-layout: fixed; }
.vol-table th:first-child { width: 3.4rem; }
.vol-table input {
  margin: 0;
  padding: .16rem .28rem;
  font-size: .72rem;
  border-width: 1.5px;
  border-radius: 8px;
}
.vol-note { margin: .2rem 0 0; }
.mentor-ids label { margin-top: .45rem; }
.mentor-mismatch { min-height: 1.1em; margin: .2rem 0 0; color: #b45309; font-size: .78rem; font-weight: 700; }
.wh-item { margin: .15rem 0 .15rem .35rem; }
.wh-line { display: flex; align-items: center; gap: .35rem; }
.wh-line .wh-pick { flex: 1; }
.wh-del { width: 1.7rem; min-width: 1.7rem; height: 1.7rem; margin: 0; padding: 0; line-height: 1; }
.wh-kids { margin-left: .85rem; }
.wh-pick { width: auto; text-align: left; margin: .1rem 0; }
.wh-pick.is-on { box-shadow: inset 0 0 0 2px #7c3aed; }
.wh-edit { margin-top: .45rem; }
.saved-flash { color: #15803d; font-size: .78rem; font-weight: 700; margin: .25rem 0 0; }
a { color: #6d28d9; font-weight: 800; }
.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 1rem;
  align-items: start;
}
@media (max-width: 860px) { .shell { grid-template-columns: 1fr; } }
.shell.is-full { grid-template-columns: 1fr; }
.shell.is-full .rail { display: none; }
.rail { display: grid; gap: .8rem; position: sticky; top: 1rem; }
.side-link {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(45, 20, 80, .16);
  border-radius: 22px;
  padding: 1rem 1.05rem;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}
.side-link strong { display: block; font-size: .9rem; margin-bottom: .2rem; }
.view-bar {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  margin: 0 0 1rem;
}
.view-bar .back { margin-right: auto; }
.ui-lang-pick {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 700;
  margin: 0;
}
.ui-lang-pick select {
  width: auto;
  min-width: 8rem;
  margin: 0;
  padding: .28rem .55rem;
}
.back, .nav-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font: inherit;
  border-radius: 999px;
  padding: .45rem .9rem;
  text-decoration: none;
  color: #081018;
  background: linear-gradient(135deg, #22d3ee, #06b6d4);
  font-weight: 800;
  font-size: .82rem;
}
.back[hidden], .nav-go[hidden] { display: none !important; }
.nav-go {
  color: var(--ink);
  background: #ede9fe;
  box-shadow: inset 0 0 0 2px #7c3aed;
}
.base-switch {
  display: inline-flex;
  gap: .18rem;
  margin-left: .25rem;
  position: relative;
  z-index: 1;
}
.base-switch[hidden] { display: none !important; }
.base-go {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: .66rem;
  font-weight: 800;
  border-radius: 999px;
  padding: .14rem .42rem;
  color: #5b21b6;
  background: #f5f3ff;
  box-shadow: inset 0 0 0 1px #c4b5fd;
}
.base-go.is-on {
  color: #fff;
  background: #7c3aed;
  box-shadow: none;
}
#viewBar .base-switch { margin-left: .45rem; }
#viewBar .base-go {
  font-size: .82rem;
  padding: .12rem .55rem;
  color: rgba(248, 250, 252, 0.94);
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(248, 250, 252, 0.55);
}
#viewBar .base-go.is-on {
  color: #1c1038;
  background: #fff;
  box-shadow: none;
}
.nav-go.is-on,
.boardBtn.is-on,
#subsTree.is-on,
#subsArch.is-on {
  color: #fff;
  background: #7c3aed;
  box-shadow: none;
}
#subsLiveCount {
  display: inline-block;
  min-width: 1.15rem;
  margin-left: .3rem;
  padding: 0 .32rem;
  border-radius: 999px;
  background: #7c3aed;
  color: #fff;
  font-weight: 800;
  font-size: .85em;
  line-height: 1.35;
  text-align: center;
}
#subsLive.is-on #subsLiveCount {
  background: #fff;
  color: #5b21b6;
}
#viewBar.view-bar {
  position: relative;
  isolation: isolate;
  justify-content: center;
  gap: .35rem 1.05rem;
  min-height: 3.15rem;
  margin: .85rem 0 1.15rem;
  padding: .6rem 3.6rem .6rem 3.4rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.03) 42%, rgba(255,255,255,0.02)),
    linear-gradient(115deg, #1c1038 0%, rgba(124, 58, 237, 0.75) 28%, rgba(0, 184, 212, 0.52) 55%, rgba(217, 70, 239, 0.82));
  clip-path: polygon(22px 50%, 46px 0, calc(100% - 46px) 0, calc(100% - 22px) 50%, calc(100% - 46px) 100%, 46px 100%);
  filter:
    drop-shadow(0 0 1px rgba(94, 240, 255, 0.95))
    drop-shadow(0 0 10px rgba(0, 229, 255, 0.55))
    drop-shadow(0 0 18px rgba(217, 70, 239, 0.35))
    drop-shadow(0 10px 22px rgba(0, 0, 0, 0.45));
}
#viewBar.view-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  background-size: 40% 100%;
  background-repeat: no-repeat;
  animation: viewbarSheen 5.5s ease-in-out infinite;
  mix-blend-mode: soft-light;
}
#viewBar .back,
#viewBar .nav-go { position: relative; z-index: 1; }
@keyframes viewbarSheen {
  0% { background-position: -30% 0; opacity: .35; }
  40% { opacity: .75; }
  100% { background-position: 130% 0; opacity: .35; }
}
#viewBar .view-bar-side {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-right: auto;
}
#viewBar .view-bar-helpcol {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .05rem;
  line-height: 1.15;
}
.guide-row { margin: 0 0 .85rem; }
.guide-row b { display: block; margin-bottom: .35rem; }
.guide-row .btn, .guide-row .ghost { width: auto; margin: 0 .4rem .35rem 0; }
#viewBar .view-bar-side .back { margin-right: 0; }
#viewBar .back,
#viewBar .nav-go,
#viewBar .nav-help {
  background: transparent;
  box-shadow: none;
  color: rgba(248, 250, 252, 0.94);
  border-radius: 0;
  padding: .15rem .1rem;
  font-weight: 700;
  font-size: .94rem;
  text-shadow:
    0 1px 0 rgba(18, 8, 31, 0.8),
    0 2px 6px rgba(0, 0, 0, 0.45);
}
#viewBar .nav-help {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  border: 0;
  cursor: pointer;
}
#viewBar .nav-help svg {
  width: .95rem;
  height: .95rem;
  flex: 0 0 auto;
}
#viewBar .nav-go:hover,
#viewBar .back:hover,
#viewBar .nav-help:hover,
#viewBar .nav-go.is-on {
  color: #5ef0ff;
  background: transparent;
  box-shadow: none;
}
@media (max-width: 720px) {
  #viewBar.view-bar {
    clip-path: polygon(14px 50%, 28px 0, calc(100% - 28px) 0, calc(100% - 14px) 50%, calc(100% - 28px) 100%, 28px 100%);
    padding: .5rem 1.5rem;
    gap: .25rem .65rem;
  }
  #viewBar .nav-go,
  #viewBar .back,
  #viewBar .nav-help { font-size: .78rem; }
  #viewBar .nav-help span { display: none; }
}
#view-subs { padding-bottom: 42vh; }
#view-subs > .card.subs-head { padding: .4rem .65rem; margin-bottom: .4rem; }
.subs-toolbar {
  display: flex;
  align-items: flex-end;
  gap: .45rem .6rem;
  flex-wrap: wrap;
}
.subs-toolbar > .toolbar {
  flex: 1 0 100%;
  margin-left: 0;
  justify-content: flex-start;
}
.sheet-top {
  margin-left: auto;
  display: flex;
  align-items: flex-end;
}
.sheet-top .ghost { width: auto; margin: 0; white-space: nowrap; }
#subsSheet { margin-left: auto; white-space: nowrap; }
#subsSheet[hidden] { display: none !important; }
#statsBack { margin-left: auto; }
#subsSheet:not([hidden]) ~ #statsBack { margin-left: .45rem; }
#statsBack[hidden] { display: none !important; }
.status-boards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .4rem;
  margin: 0 0 .45rem;
}
.status-board {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  width: 100%;
  margin: 0;
  padding: .45rem .6rem;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #1a1228;
  font: inherit;
  font-weight: 800;
  font-size: .78rem;
  box-shadow: 0 6px 16px rgba(45, 20, 80, .08);
  cursor: pointer;
}
.status-board .n {
  min-width: 1.2rem;
  padding: 0 .35rem;
  border-radius: 999px;
  background: #7c3aed;
  color: #fff;
  text-align: center;
  line-height: 1.35;
}
.status-board.is-on { background: #7c3aed; color: #fff; }
.status-board.is-on .n { background: #fff; color: #5b21b6; }
@media (max-width: 720px) {
  .status-boards { grid-template-columns: 1fr 1fr; }
}
.reg-pop-wrap { position: relative; }
.reg-pop-wrap > .ghost.is-on {
  color: #fff;
  background: #7c3aed;
}
#registryHost {
  position: absolute;
  top: 2.15rem;
  left: 0;
  z-index: 8;
  width: min(28rem, 78vw);
}
#registryHost .card { margin: 0; box-shadow: 0 16px 36px rgba(76, 29, 149, .18); }
.sub-search {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .45rem;
  align-items: flex-end;
  justify-content: flex-start;
  margin: .2rem 0 .55rem;
}
.subs-toolbar .sub-search {
  margin: 0;
  align-items: center;
}
.subs-toolbar .sub-search label {
  display: flex;
  align-items: center;
  gap: .28rem;
}
.subs-toolbar .sub-search input {
  margin: 0;
  width: 7.2rem;
  padding: .28rem .45rem;
}
.subs-toolbar .sub-search #subDay { width: 8.6rem; }
.subs-toolbar .sub-search #subPhone { width: 7.4rem; }
.sub-search label {
  margin: 0;
  font-size: .68rem;
  font-weight: 800;
  color: var(--muted);
}
.sub-search input {
  display: block;
  margin: .12rem 0 0;
  width: 8.4rem;
  padding: .32rem .5rem;
}
.sub-search #subDay { width: 9.4rem; }
.sub-search #subPhone { width: 8.8rem; }
.sub-search button {
  width: auto;
  margin: 0;
  padding: .36rem .75rem;
}
.board-btns .ghost { white-space: nowrap; }
.board-table { width: 100%; border-collapse: collapse; }
.board-table th,
.board-table td {
  text-align: left;
  padding: .4rem .5rem;
  border-bottom: 1px solid rgba(45, 20, 80, .12);
  font-size: .8rem;
}
.board-batch {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .65rem;
  align-items: center;
  margin: .2rem 0 .7rem;
}
.board-batch .check { margin: 0; font-size: .82rem; }
body.cabinet-sky .board-batch .check {
  align-items: center;
  color: #1a1228;
  background: #fff;
  border-radius: 999px;
  padding: .28rem .7rem .28rem .5rem;
}
body.cabinet-sky .board-batch .check input { margin-top: 0; }
body.cabinet-sky #view-subs .partner-head {
  color: #1a1228;
  background: #fff;
  border-radius: 12px;
}
.board-batch select { width: auto; min-width: 13rem; margin: 0; }
.board-batch .ghost { width: auto; margin: 0; }
.board-batch .err { margin: 0; text-align: left; }
.partner-head.has-pick,
.partner-line.has-pick {
  grid-template-columns: 1.35rem minmax(4.2rem, 1fr) minmax(5.2rem, 1.15fr) minmax(5.4rem, 1fr) minmax(4.6rem, .95fr) minmax(9.6rem, auto) 2rem;
}
.boardPick { width: 1.05rem; height: 1.05rem; margin: 0; accent-color: #7c3aed; }
#view-subs details.partner.is-pack-lead > summary .partner-line {
  box-shadow: inset 3px 0 0 #7c3aed;
}
.board-table tbody tr { cursor: pointer; }
.board-table tbody tr:hover { background: #f5f3ff; }
.board-table tbody tr.is-on { background: #ede9fe; }
.sheet { overflow-x: auto; }
.sheet table { min-width: 820px; }
.sheet th {
  background: #ede9fe;
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}
.sheet td { color: var(--ink); font-weight: 700; }
.folder-row td {
  background: #f5f3ff;
  font-weight: 800;
  color: #5b21b6;
}
.folder {
  background: #fff;
  border: 1px solid rgba(45, 20, 80, .14);
  border-radius: 14px;
  margin: .4rem 0;
  padding: .15rem .55rem .35rem;
}
.folder > summary {
  list-style: none;
  padding: .45rem .2rem;
  font-size: .86rem;
}
.folder > summary::-webkit-details-marker { display: none; }
.folder-ico { margin-right: .2rem; }
.folder-body { margin: .15rem 0 .2rem .7rem; }
.struct-tree .folder-body {
  margin: .2rem 0 .35rem .2rem;
  padding: .35rem .15rem .4rem .75rem;
  border-left: 3px solid #7c3aed;
  background: #f4f0ff;
  border-radius: 0 0 12px 12px;
}
.struct-tree .folder-body > .folder {
  margin: .4rem 0;
}
.struct-tree .folder-body > .folder:nth-child(odd) {
  background: #e4dcf8;
}
.struct-tree .folder-body > .folder:nth-child(even) {
  background: #fff;
}
.struct-personal {
  box-shadow: inset 3px 0 0 #c4b5fd;
}
.struct-node[open] {
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 24px rgba(45, 20, 80, .14);
}
.struct-tree .folder-body > .folder.struct-current,
.struct-tree .struct-node.struct-current {
  border-color: #7c3aed;
  background: #f3eaff;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, .35);
}
.struct-node.struct-hit > summary {
  background: #efe4ff;
  border-radius: 10px;
  box-shadow: inset 0 0 0 2px #7c3aed;
}
.struct-node.struct-current > summary {
  font-size: 1.02rem;
  font-weight: 800;
  background: #e9d8ff;
  border-radius: 10px;
  margin: .12rem 0;
  padding: .42rem .5rem;
}
.struct-node.struct-compact {
  margin: .12rem 0;
  padding: 0 .4rem;
}
.struct-node.struct-compact > summary {
  padding: .15rem .1rem;
  font-size: .76rem;
  opacity: .7;
}
.struct-node > summary {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.struct-node > summary .folder-ico {
  position: relative;
  font-size: 1.15rem;
  line-height: 1;
}
.struct-all {
  position: absolute;
  right: -.35rem;
  bottom: -.2rem;
  min-width: .9rem;
  padding: 0 .2rem;
  border-radius: 999px;
  background: #7c3aed;
  color: #fff;
  font-size: .62rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}
.struct-own {
  padding: .05rem .4rem;
  border-radius: 999px;
  background: #ede9fe;
  color: #5b21b6;
  font-size: .72rem;
  font-weight: 800;
}
details.partner > summary {
  display: block;
  list-style: none;
  padding: 0;
}
details.partner > summary::-webkit-details-marker { display: none; }
details.partner.card {
  padding: .35rem .55rem .4rem;
  border-radius: 14px;
  margin-bottom: .4rem;
  box-shadow: none;
}
.editSub { font-size: .78rem; }
.editSub label { font-size: .7rem; margin: .22rem 0 .08rem; }
.editSub input,
.editSub textarea,
.editSub select {
  padding: .28rem .45rem;
  border-radius: 8px;
  font-size: .75rem;
  border-width: 1.5px;
}
.editSub textarea { min-height: 2.2rem; }
.editSub .muted,
.editSub .hint-block { font-size: .72rem; line-height: 1.35; }
.editSub .row { gap: .4rem; }
.editSub .toolbar { margin: .3rem 0 .1rem; }
.editSub .foldSub { display: block; width: 100%; margin-top: .45rem; }
.struct-order {
  display: grid;
  grid-template-columns: 4.2rem 6.2rem 1fr;
  gap: .35rem;
  padding: .22rem .15rem;
  font-size: .75rem;
  border-bottom: 1px solid rgba(45, 20, 80, .08);
}
.order-note { margin: .2rem 0 .35rem; }
.struct-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  margin: .15rem 0 .25rem;
}
.struct-bar .struct-orders { margin: 0; }
.struct-mini {
  flex: 1 1 4.6rem;
  min-width: 0;
  border: 1.5px solid rgba(120, 80, 180, .35);
  border-radius: 12px;
  padding: .22rem .45rem;
  font-size: .72rem;
  line-height: 1.2;
  white-space: nowrap;
}
.struct-mini .muted { margin-right: .25rem; font-weight: 700; }
.struct-status { text-align: center; flex: 0 0 3.4rem; }
.struct-status b { font-size: .85rem; font-weight: 800; }
.editSub .btn,
.editSub .ghost,
.editSub .toolbar .btn,
.editSub .toolbar .ghost,
.editSub .toolbar select.sheetDest { padding: .32rem .55rem; font-size: .72rem; }
.editSub .toolbar select.sheetDest {
  border: 1.5px solid rgba(120, 80, 180, .35);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  max-width: 16rem;
}
.partner { margin: .35rem 0; padding: .2rem 0 .45rem; }
.partner-table { padding: 0; }
.partner-head,
.partner-line {
  display: grid;
  grid-template-columns: minmax(4.2rem, 1fr) minmax(5.2rem, 1.15fr) minmax(5.4rem, 1fr) minmax(4.6rem, .95fr) minmax(9.6rem, auto) 2rem;
  gap: .3rem;
  align-items: center;
  padding: .28rem .95rem;
  box-sizing: border-box;
}
.partner-head {
  font-size: .68rem;
  font-weight: 800;
  color: var(--muted);
}
.partner-line span { font-weight: 800; overflow: hidden; text-overflow: ellipsis; font-size: .8rem; }
.partner-line .cell-soft { color: #8b93a3; font-weight: 600; }
.partner-line .login-cell { overflow: visible; white-space: normal; line-height: 1.25; text-overflow: clip; }
.partner .subStatus { font-size: .72rem; min-width: 9.2rem; }
.partner-head.sent-row,
.partner-line.sent-row {
  grid-template-columns: 1.35rem minmax(3.2rem, .7fr) 4.7rem minmax(4.8rem, 1.15fr) minmax(5rem, .95fr) minmax(4.2rem, .8fr) minmax(4.4rem, .75fr) 5.4rem 1.6rem;
}
.partner-line.sent-row .board-date,
.partner-line.sent-row .board-wh {
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: normal;
}
.partner-line.sent-row .status-cell {
  position: relative;
  width: 5.4rem;
  min-width: 0;
  justify-self: stretch;
}
.partner-line.sent-row .status-face {
  display: block;
  font-size: .62rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: pre-line;
  text-align: left;
  padding: .05rem 1rem .05rem .1rem;
}
.partner-line.sent-row .status-cell::after {
  content: "";
  position: absolute;
  right: .15rem;
  top: 50%;
  border: 4px solid transparent;
  border-top-color: #6d28d9;
  transform: translateY(-15%);
  pointer-events: none;
}
.partner-line.sent-row .status-cell .subStatus {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.page-head,
.page-line {
  display: grid;
  grid-template-columns: 1.3fr .9fr 4.2rem 1.3fr 1.5fr;
  gap: .35rem;
  align-items: center;
}
.page-head {
  font-size: .75rem;
  font-weight: 800;
  color: var(--muted);
  padding: .25rem .2rem;
}
#view-home[hidden],
#view-pages[hidden],
#view-subs[hidden],
#view-stats[hidden],
#view-stock[hidden] { display: none !important; }
#view-stats > .card,
#view-stock > .card {
  margin-left: 0;
  margin-right: 0;
  overflow: hidden;
}
#view-stats .sub-search #stockOpen { margin-left: auto; }
#view-pages {
  width: min(860px, 100%);
  margin-inline: auto;
}
.structure-card { margin-top: .2rem; }
.page-row {
  background: #fff;
  border: 1px solid rgba(45, 20, 80, .12);
  border-radius: 12px;
  margin: .35rem 0;
  padding: .45rem .7rem;
}
@media (max-width: 720px) {
  .partner-head { display: none; }
  .partner-line {
    grid-template-columns: 1fr auto;
    padding: .28rem .7rem;
  }
  .page-head { display: none; }
  .page-line { grid-template-columns: 1fr; }
}
.row3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 640px) { .row3 { grid-template-columns: 1fr; } }
body.cabinet-sky:has(#catalogBox[open]) .wrap.wide {
  width: min(1080px, calc(100vw - 2rem));
}
.settings-layout:has(#catalogBox[open]) {
  width: 100%;
}
#catalogBox[open] {
  grid-column: 1 / -1;
}
.cur-line {
  display: flex;
  flex-wrap: nowrap;
  gap: .4rem;
  align-items: center;
  overflow-x: auto;
  margin: .15rem 0 .55rem;
}
.cur-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  flex: 0 0 auto;
  padding: .18rem .35rem .18rem .6rem;
  border-radius: 999px;
  background: #f5f3ff;
  color: var(--ink);
  font-weight: 800;
  font-size: .8rem;
  white-space: nowrap;
}
.cur-chip .ghost {
  width: 1.45rem;
  height: 1.45rem;
  margin: 0;
  padding: 0;
  border-radius: 999px;
  line-height: 1;
}
#catalogBox[open] #catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: .4rem;
}
#catalog .cat-card {
  margin-bottom: 0;
  padding: .35rem .4rem .4rem;
}
.cat-card-top {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: .28rem;
  align-items: start;
}
.cat-photo {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 8px;
  background: #f5f3ff;
  display: block;
}
.cat-card .cat-name { font-weight: 800; font-size: .74rem; }
.cat-card input,
.cat-card textarea,
.cat-card select {
  margin-top: .12rem;
  padding: .16rem .28rem;
  font-size: .68rem;
}
.cat-card textarea { min-height: 1.5rem; }
.cat-card label { font-size: .62rem; margin: .12rem 0 .04rem; }
.cur-guest {
  display: flex;
  align-items: flex-end;
  gap: .55rem;
  flex-wrap: wrap;
}
.cur-guest label { margin: 0 0 .15rem; }
#catCurrency {
  width: 1cm;
  min-width: 1cm;
  max-width: 1cm;
  height: 1cm;
  margin: 0;
  padding: 0 .05rem;
  font-size: .62rem;
}
.cur-code { width: 8.5rem; margin-top: .35rem; }
.cur-guest .ghost { width: auto; margin: 0 0 .05rem; }
.status-rates { margin-left: 0; margin: .35rem 0 .6rem; }
.fx-rates {
  margin-left: auto;
  display: grid;
  grid-template-columns: auto auto;
  gap: .28rem .55rem;
  align-items: end;
}
.fx-rates .fx-cap {
  grid-column: 1 / -1;
  font-size: .72rem;
  font-weight: 800;
}
.fx-rates label {
  display: flex;
  flex-direction: column;
  gap: .12rem;
  margin: 0;
  font-size: .72rem;
  font-weight: 800;
}
.fx-rates input {
  width: 5.2rem;
  margin: 0;
  padding: .28rem .4rem;
}
.cat-card input.fx-out { background: #f3eefc; }
.cat-photo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .68rem;
  color: var(--muted);
  font-weight: 800;
}
.cat-card .row { gap: .35rem; margin-top: .15rem; }
.price-tier {
  display: grid;
  grid-template-columns: 4.4rem repeat(5, minmax(0, 1fr));
  gap: .08rem .16rem;
  align-items: end;
  margin-top: .18rem;
}
.price-tier-name {
  font-size: .58rem;
  font-weight: 800;
  line-height: 1.05;
  padding-bottom: .28rem;
}
.price-tier label {
  margin: 0;
  font-size: .58rem;
  font-weight: 800;
  text-align: center;
}
.price-tier label span { display: block; line-height: 1; }
.price-tier input {
  margin: .04rem 0 0;
  padding: .08rem .12rem;
  font-size: .62rem;
  border-width: 1px;
  border-radius: 7px;
  text-align: center;
}
.price-tier input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.price-tier input[type="number"]::-webkit-outer-spin-button,
.price-tier input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: .55rem;
  margin: .35rem 0 .7rem;
}
.cat-pick {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  text-align: left;
  border: 1px solid rgba(45, 20, 80, .16);
  background: #fff;
  border-radius: 14px;
  padding: .45rem .5rem .55rem;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
}
.cat-pick:hover { box-shadow: 0 8px 18px rgba(76, 29, 149, .12); }
.cat-pick img {
  width: 100%;
  height: 78px;
  object-fit: cover;
  border-radius: 10px;
  background: #f5f3ff;
}
.cat-pick-name { font-weight: 800; font-size: .78rem; line-height: 1.25; }
.cat-pick-desc {
  font-size: .72rem;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat-pick-price { font-weight: 800; color: #6d28d9; font-size: .82rem; }
label.ghost { display: inline-flex; align-items: center; }
.sheet-page {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--bg0);
  overflow: auto;
  padding: 1rem 1rem 2.5rem;
}
.sheet-page .wrap { padding-top: .4rem; }
.sheet-bar {
  display: flex;
  gap: .5rem;
  align-items: center;
  margin-bottom: .7rem;
}
.stats-title { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; }
.stats-cur { margin: .15rem 0 0; display: flex; align-items: center; gap: .4rem; font-weight: 700; white-space: nowrap; }
.stats-cur select { width: auto; min-width: 8.5rem; }
#statsVol { overflow-x: auto; }
.stats-sheet {
  --who: minmax(8.6rem, 1.35fr);
  --c: minmax(3.35rem, 1fr);
  width: 100%;
  min-width: 0;
  overflow: visible;
  margin: 0 auto;
  background: #d4c8ee;
  font-family: var(--font);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.25;
}
.stats-line {
  display: grid;
  grid-template-columns: var(--who) repeat(8, var(--c));
  gap: 0;
  align-items: center;
  text-align: center;
}
.stats-head > span {
  white-space: normal;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.stats-line > span,
.stats-sum,
.stats-paid {
  padding: .45rem .25rem;
  min-width: 0;
}
.stats-head {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #fff;
  font-size: .72rem;
  font-weight: 800;
  color: #5b21b6;
}
.stats-head > span:first-child,
.stats-line > .stats-who {
  position: sticky;
  left: 0;
  z-index: 3;
  background: inherit;
  box-shadow: 6px 0 8px rgba(45, 20, 80, .06);
}
.stats-head > span:first-child { z-index: 5; background: #fff; }
.stats-who {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: .28rem;
  text-align: left;
  padding-left: .35rem !important;
}
.stats-who-name {
  min-width: 0;
  flex: 1 1 auto;
}
.stats-lp {
  flex: 0 0 auto;
  padding: .02rem .38rem;
  border-radius: 999px;
  background: #5b21b6;
  color: #fff;
  font-size: .62rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .01em;
}
.who-id,
.who-mentor { font-size: .84em; font-weight: 700; }
.who-mentor { color: #6b6280; }
.stats-twist {
  flex: 0 0 .85rem;
  width: .85rem;
  font-style: normal;
  color: #7c3aed;
}
.stats-node > summary .stats-twist::before { content: "▸"; }
.stats-node[open] > summary .stats-twist::before { content: "▾"; }
.stats-twist.leaf::before { content: ""; }
.stats-anchor { position: relative; display: block; }
.stats-node > summary {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  list-style: none;
  cursor: pointer;
  background: #f4f0ff;
  font-size: .72rem;
  font-weight: 700;
}
.stats-node > summary::-webkit-details-marker { display: none; }
.stats-sheet > .stats-node,
.stats-kids > .stats-node { margin-top: 4px; }
.stats-sheet > .stats-node:nth-of-type(odd) > summary,
.stats-kids > .stats-node:nth-child(odd) > summary,
.stats-sheet > .stats-node:nth-of-type(odd) > summary .stats-who,
.stats-kids > .stats-node:nth-child(odd) > summary .stats-who { background: #ddd2f6; }
.stats-sheet > .stats-node:nth-of-type(even) > summary,
.stats-kids > .stats-node:nth-child(even) > summary,
.stats-sheet > .stats-node:nth-of-type(even) > summary .stats-who,
.stats-kids > .stats-node:nth-child(even) > summary .stats-who { background: #fbf9ff; }
.stats-node.stats-compact > summary {
  font-size: .76rem;
  opacity: .7;
}
.stats-sheet > .stats-node.stats-current > summary,
.stats-kids > .stats-node.stats-current > summary,
.stats-sheet > .stats-node.stats-current > summary .stats-who,
.stats-kids > .stats-node.stats-current > summary .stats-who {
  background: #fff;
  font-size: .72rem;
  font-weight: 800;
  opacity: 1;
}
.stats-sheet > .stats-node.stats-current > summary .stats-who,
.stats-kids > .stats-node.stats-current > summary .stats-who {
  box-shadow: inset 4px 0 0 #7c3aed, 6px 0 8px rgba(45, 20, 80, .06);
}
.stats-debt { color: #dc2626; }
.stats-sum,
.stats-paid {
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 800;
  color: #5b21b6;
  cursor: pointer;
  text-decoration: underline;
  width: 100%;
}
.stats-body { margin: 0 0 .25rem 0; }
.stats-kids {
  margin: 0;
  padding: 0;
  border-left: 0;
  background: transparent;
  border-radius: 0;
}
.stats-pop[hidden] { display: none !important; }
.stats-pop {
  position: static;
  align-self: start;
  width: max-content;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  margin: .1rem 0 .35rem 20%;
  padding: .25rem;
  background: #faf8ff;
  border: 1px solid rgba(124, 58, 237, .28);
  border-radius: 12px;
  box-shadow: none;
  text-align: left;
  font-size: .72rem;
  font-weight: 700;
}
.stats-total {
  background: linear-gradient(135deg, #22d3ee, #06b6d4);
  color: #081018;
  font-weight: 800;
  box-shadow: none;
}
.stats-total > span { background: transparent; color: inherit; }
.stats-total > .stats-who { background: #22d3ee; color: #081018; }
.stats-total .stats-debt { color: #081018; }
.stats-pop[data-kind="paid"] { margin-left: 40%; }
.stats-pop button {
  display: grid;
  grid-template-columns: 1.4rem auto auto auto auto;
  gap: .45rem;
  align-items: center;
  text-align: left;
  border: 0;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: .72rem;
  padding: .28rem .55rem;
  white-space: nowrap;
}
.stats-pop button span { min-width: 0; }
.stats-sum.is-on,
.stats-paid.is-on {
  background: #e9d8ff;
  border-radius: 8px;
}
.stats-pop .stats-arch { cursor: default; }
.stats-pop .stats-open:hover { background: #efe9ff; }
.pay-hints {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: .45rem;
  margin: .45rem 0 .2rem;
  min-width: 640px;
}
.ppct { min-width: 0; }
.pay-corr {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  margin: .45rem 0 .2rem;
}
.pay-corr label { font-weight: 800; }
.pay-corr input { margin-top: .2rem; }
.order-pay-also { white-space: pre-line; font-weight: 700; font-size: .72rem; line-height: 1.25; margin: .15rem 0 0; }
.stats-mark { color: #5b21b6; }
.stock-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: .45rem .7rem;
  margin: .2rem 0 .55rem;
}
.stock-bar h2 {
  margin: 0 .4rem .15rem 0;
  font-size: .95rem;
}
.stock-bar label {
  margin: 0;
  font-size: .68rem;
  font-weight: 800;
  color: var(--muted);
}
.stock-bar input {
  display: block;
  margin: .12rem 0 0;
  width: 9.4rem;
  padding: .32rem .5rem;
}
.stock-bar .ghost {
  width: auto;
  margin: 0 0 0 auto;
  padding: .36rem .75rem;
}
#stockVol { overflow-x: auto; }
.stock-sheet .stats-line {
  grid-template-columns: var(--who) repeat(5, var(--c));
}
.stock-sheet {
  --who: minmax(11rem, 1.7fr);
  --c: minmax(4.6rem, 1fr);
}
.stock-sheet .stats-who { align-items: center; }
.stock-sheet .stock-name,
.stock-sheet .stock-open {
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0 .12rem;
  font: inherit;
  font-size: .72rem;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
}
.stock-sheet .stock-name {
  display: block;
  text-align: left;
  resize: none;
  overflow: hidden;
  white-space: pre-wrap;
  line-height: 1.25;
  min-height: 1.25em;
  min-width: 0;
}
.stock-sheet .stock-open {
  text-align: center;
  font-weight: 800;
  color: #081018;
}
.stock-sheet .stats-total .stock-open { color: #081018; }
.stock-sheet .stock-name:focus,
.stock-sheet .stock-open:focus {
  background: #fff;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1.5px #7c3aed;
  outline: none;
}
.stock-sheet .stats-pop[data-kind="out"] { margin-left: 28%; }
.stock-sheet .stats-pop[data-kind="adj"] {
  margin-left: 18%;
  width: min(34rem, 100%);
}
.stats-pop .stock-adj {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
  padding: .15rem .2rem .25rem;
}
.stats-pop .stock-adj button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  grid-template-columns: none;
  white-space: nowrap;
  padding: .28rem .7rem;
}
.stock-adj .stock-sign {
  min-width: 2rem;
  background: #ede9fe;
  color: #5b21b6;
  font-weight: 800;
}
.stock-adj .stock-sign.is-on {
  background: #5b21b6;
  color: #fff;
}
.stock-adj input[name="qty"] { width: 5.2rem; margin: 0; padding: .28rem .45rem; }
.stock-adj input[name="comment"] { flex: 1 1 8rem; width: auto; margin: 0; padding: .28rem .45rem; }
.stock-adj-list { display: flex; flex-direction: column; gap: .15rem; margin-top: .15rem; }
.stock-adj-list p { margin: .1rem .2rem; }
.help-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4.2rem 1rem 1.2rem;
  background: rgba(8, 16, 28, .55);
}
.help-overlay[hidden] { display: none !important; }
.help-sheet {
  width: min(680px, 100%);
  max-height: calc(100svh - 5.4rem);
  overflow: auto;
  background: #fff;
  color: #1a1228;
  border-radius: 18px;
  padding: .9rem .95rem 1rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}
.help-sheet h3 {
  margin: 0 0 .25rem;
  font-size: 1.05rem;
  color: #1a1228;
}
.help-sheet .hint {
  margin: 0 0 .55rem;
  color: #6b6280;
  font-weight: 700;
  font-size: .82rem;
}
.help-sheet .support-chat,
.help-sheet .support-msgs {
  color: #1a1228;
}
.support-msgs {
  min-height: 180px;
  max-height: 38vh;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: .45rem;
  margin: .55rem 0;
  padding: .45rem;
  border-radius: 12px;
  background: #f6f3fb;
  border: 1px solid rgba(45, 20, 80, .12);
}
.support-bubble {
  max-width: 92%;
  padding: .5rem .65rem;
  border-radius: 12px;
  font-size: .84rem;
  line-height: 1.4;
  white-space: pre-wrap;
}
.support-bubble.bot {
  justify-self: start;
  background: #fff;
  border: 1px solid rgba(45, 20, 80, .12);
}
.support-bubble.user {
  justify-self: end;
  background: #ede9fe;
  border: 1px solid rgba(124, 58, 237, .28);
}
.support-bubble .who {
  display: block;
  margin-bottom: .15rem;
  font-size: .72rem;
  font-weight: 800;
  color: #6d28d9;
}
.support-quick {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
}
.support-quick button,
.help-jump {
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, .35);
  background: #fff;
  color: #5b21b6;
  padding: .28rem .6rem;
  font: inherit;
  font-size: .76rem;
  font-weight: 800;
  cursor: pointer;
}
.support-quick button.is-on,
.help-jump:hover {
  background: #7c3aed;
  color: #fff;
}
.help-topic-label {
  flex: 1 0 100%;
  margin-top: .15rem;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #8f86a8;
}
.support-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .45rem;
  align-items: end;
}
.support-compose textarea {
  min-height: 2.6rem;
  margin: 0;
}
.help-sheet .btn { margin-top: 0; width: auto; }
.help-sheet #helpClose { margin-top: .55rem; }
.prod-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: .55rem;
  align-items: center;
  border: 1px solid rgba(45, 20, 80, .16);
  border-radius: 14px;
  padding: .5rem .6rem;
  margin: .4rem 0;
  background: #fff;
}
.prod-card img {
  width: 72px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  background: #f5f3ff;
}
.prod-card-name { font-weight: 800; font-size: .86rem; line-height: 1.25; }
.cat-pick-stock { font-weight: 800; color: #5b21b6; font-size: .78rem; }
.stock-hint { display: none; }
.stock-pick { display: grid; grid-template-columns: 1fr 1fr; gap: .15rem .4rem; align-items: end; justify-items: center; min-width: 0; }
.stock-pick:empty { display: none; }
.prod-money .stock-pick:empty { display: block; }
.stock-mini { display: flex; flex-direction: column; align-items: center; gap: .12rem; margin: 0; width: 100%; font-size: .68rem; font-weight: 800; color: var(--muted); line-height: 1.1; white-space: nowrap; text-align: center; }
.editSub .stock-mini { margin: 0; font-size: .68rem; }
.stock-mini-row { display: flex; align-items: center; justify-content: center; gap: .22rem; margin: 0; }
.stock-mini b { color: var(--ink); font-size: .9rem; min-width: .8rem; font-weight: 800; }
.stock-free { flex-direction: row; grid-column: 1 / -1; white-space: normal; justify-content: flex-start; text-align: left; gap: .3rem; }
.stock-free input { width: auto; margin: 0; }
.stock-op-tip {
  position: fixed;
  z-index: 40;
  max-width: 16rem;
  padding: .4rem .55rem;
  border-radius: 8px;
  background: #241833;
  color: #f8f5ff;
  font-size: .75rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
  box-shadow: 0 8px 22px rgba(24, 12, 40, .28);
}
.stock-op-tip[hidden] { display: none; }
.stock-sheet .stock-in,
.stock-sheet .stock-in-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  line-height: 1.15;
}
.stock-sheet .stock-way {
  color: #6d6484;
  font-weight: 650;
  font-size: .68rem;
}
.stock-sheet .stock-in .stats-sum { padding-bottom: 0; }
.stock-mini input {
  width: 2.35rem;
  padding: .12rem .15rem;
  font-size: .75rem;
  text-align: center;
  border-width: 1.5px;
}
.stock-note { flex: 1 0 100%; margin: 0; font-size: .75rem; }
.pn-wrap { min-width: 0; }
.pn-wrap textarea.pn { width: 100%; }
.transit-mark { font-size: .75rem; font-weight: 800; color: #6d28d9; margin: .2rem 0 0; }
.transit-mark:empty { display: none; }
.prod-card-meta { font-size: .78rem; color: var(--muted); font-weight: 600; }
.prod-card-price { font-weight: 800; color: #6d28d9; }
.prod-card .pq { width: 4.4rem; }
.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: center;
  margin: 0 0 .9rem;
}
.contact-row a {
  display: inline-flex;
  align-items: center;
  padding: .4rem .75rem;
  border-radius: 999px;
  background: #ede9fe;
  color: #5b21b6;
  text-decoration: none;
  font-size: .82rem;
}
.file-mail {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: .8rem 1rem;
  align-items: start;
  margin: .2rem 0 .4rem;
}
.mail-send { display: flex; gap: .35rem; align-items: center; }
.mail-send input { flex: 1; min-width: 0; }
.mail-fly {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 2px solid #7c3aed;
  border-radius: 999px;
  background: #f5f0ff;
  color: #6d28d9;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.mail-fly svg { width: 1.25rem; height: 1.25rem; }
.invoice-sheet {
  margin: .45rem 0 .2rem;
  padding: .7rem .75rem .4rem;
  border: 2px solid #7c3aed;
  border-radius: 14px;
  background: #fff;
}
.inv-head { display: flex; align-items: center; flex-wrap: wrap; gap: .15rem 1rem; margin: 0 0 .1rem; }
.inv-head h3 { margin: 0; }
.inv-head label { margin: 0; display: flex; align-items: center; gap: .35rem; font-weight: 700; }
.inv-who { margin: 0; line-height: 1.35; font-weight: 600; }
.inv-who b { font-weight: 800; }
.inv-pale { color: #6b7280; font-weight: 600; }
.inv-kind { margin: .05rem 0 .3rem; font-weight: 800; display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem 1.25rem; }
.inv-kind .inv-wh { font-weight: 600; }
.inv-kind .inv-wh b { font-weight: 800; }
.invoice-sheet .inv-date { width: auto; max-width: 12rem; }
.inv-table { width: 100%; border-collapse: collapse; margin: .45rem 0; font-size: .84rem; }
.inv-table th, .inv-table td { border-bottom: 1px solid #ddd6fe; padding: .28rem .3rem; text-align: left; vertical-align: middle; }
.inv-table tfoot td { font-weight: 800; }
.inv-table td.inv-gross-label { text-align: right; padding-right: .45rem; }
.inv-table td.inv-gross-sum { text-align: left; white-space: nowrap; }
.inv-note-cell { display: flex; gap: .3rem; align-items: center; }
.inv-note { width: 12rem; min-width: 8rem; }
.inv-check { margin: 0; width: auto; }
.inv-foot { margin-top: .35rem; }
.inv-claim { font-size: .78rem; margin: 0 0 .25rem; color: #4b5563; }
.inv-words { margin: 0 0 .4rem; font-weight: 700; }
.inv-sign { max-width: 16rem; }
.inv-table td.inv-totals { font-weight: 600; text-align: left; vertical-align: top; border-bottom: none; padding-top: .35rem; }
.inv-table td.inv-claim-cell { vertical-align: top; border-bottom: none; padding-top: .35rem; }
.inv-table tr.inv-side td { border-bottom: none; }
.inv-totals p { margin: .1rem 0; }
.inv-actions { display: flex; flex-wrap: wrap; gap: .45rem .7rem; align-items: flex-end; margin-top: .45rem; }
.inv-actions .ghost { width: auto; }
.inv-mail-label { flex: 1; min-width: 16rem; }
.inv-left { margin-left: .35rem; }
@media (max-width: 720px) {
  .file-mail { grid-template-columns: 1fr; }
}
