:root {
  color-scheme: dark;
  --bg: #101215;
  --side: #141619;
  --panel: #191c20;
  --panel2: #202328;
  --border: #2d3036;
  --muted: #91969f;
  --dim: #737982;
  --text: #f1f2f4;
  --gold: #ffc15b;
  --sidew: 218px;
  font:
    14px/1.55 "Inter",
    "Segoe UI",
    "Microsoft YaHei UI",
    "PingFang SC",
    sans-serif;
  background: var(--bg);
  color: var(--text);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
  background: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition:
    background 0.16s,
    color 0.16s,
    border-color 0.16s,
    transform 0.16s;
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
tr:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
svg {
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h2 {
  font-size: 17px;
  letter-spacing: 0.02em;
}
h3 {
  font-size: 14px;
  margin: 18px 0 8px;
}
small {
  font-size: 12px;
}
b,
strong {
  font-weight: 650;
}
.shell {
  min-height: 100vh;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidew);
  background: var(--side);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.brand {
  height: 87px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 39px;
  height: 39px;
}
.brand strong {
  font-size: 20px;
  letter-spacing: 0.06em;
  font-weight: 760;
  line-height: 1.3;
  display: block;
}
.brand small {
  display: block;
  font:
    700 9px/1.5 Arial,
    sans-serif;
  letter-spacing: 2.7px;
  color: #b0b2b8;
  margin: 3px 0 0 1px;
}
.nav-body {
  padding: 4px 14px;
  flex: 1;
  overflow: auto;
}
.nav-head {
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 650;
  color: #777d86;
  padding: 22px 13px 9px;
}
.nav-btn,
.game-link {
  width: 100%;
  height: 42px;
  justify-content: flex-start;
  padding: 0 13px;
  gap: 13px;
  border-radius: 7px;
  font-weight: 530;
  color: #b6bac1;
  font-size: 13px;
  margin: 2px 0;
}
.nav-btn:hover,
.game-link:hover,
.profile:hover {
  background: #23262b;
  color: #fff;
}
.nav-btn.active {
  background: linear-gradient(90deg, #42321c, #352b1d);
  box-shadow: inset 0 0 0 1px #594529;
  color: #ffcb70;
}
.nav-count {
  margin-left: auto;
  background: #373128;
  color: #e9b86c;
  font:
    600 10px/17px "Segoe UI",
    sans-serif;
  min-width: 19px;
  border-radius: 5px;
}
.side-rule {
  height: 1px;
  background: var(--border);
  margin: 20px 11px 0;
}
.game-link {
  font-size: 13px;
  height: 36px;
}
.game-emblem {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid #564834;
  border-radius: 5px;
  background: #332a1e;
  color: #e3b765;
}
.game-emblem.delta {
  border-color: #334b41;
  color: #77ac94;
  background: #1e2b26;
}
.tiny-dot,
.dot {
  height: 6px;
  width: 6px;
  display: inline-block;
  background: #68cba2;
  border-radius: 50%;
}
.tiny-dot {
  background: var(--gold);
  margin-left: auto;
  width: 5px;
  height: 5px;
}
.side-bottom {
  padding: 18px 16px 17px;
}
.connection {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9fa6aa;
  font-size: 11px;
  margin: 0 8px 16px;
}
.dot {
  box-shadow: 0 0 7px #60bd8b34;
}
.profile {
  border-top: 1px solid var(--border);
  padding: 15px 5px 0;
  display: flex;
  width: 100%;
  gap: 11px;
  text-align: left;
  justify-content: flex-start;
}
.avatar {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #5a4631, #302b25);
  border: 1px solid #70583a;
  color: #edd2a7;
  border-radius: 10px;
  font-size: 15px;
}
.profile b,
.profile small {
  display: block;
}
.profile small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.profile > svg {
  margin-left: auto;
  color: var(--muted);
}
main {
  margin-left: var(--sidew);
  min-height: 100vh;
}
header {
  height: 66px;
  padding: 0 clamp(20px, 2.2vw, 40px);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #131518;
}
.crumb,
.head-actions,
.date,
.role-btn,
.crumb-mark {
  display: flex;
  align-items: center;
}
.crumb {
  color: var(--muted);
  gap: 12px;
  font-size: 12px;
}
.crumb strong {
  color: #dfe1e5;
}
.crumb i,
footer i,
.eyebrow i {
  font-style: normal;
  color: #52565f;
}
.crumb-mark {
  color: #999da5;
}
.head-actions {
  gap: 17px;
}
.date {
  font-size: 12px;
  color: #9da2a9;
  gap: 8px;
}
.divider {
  height: 16px;
  width: 1px;
  background: var(--border);
}
.role-btn,
.soft,
.tiny,
.seg button {
  background: #24272c;
  border: 1px solid #353940;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 12px;
}
.role-btn:hover,
.soft:hover,
.tiny:hover,
.seg button:hover {
  background: #30343a;
}
.role-btn {
  font-size: 12px;
}
.mobile,
.shade {
  display: none !important;
}
.content {
  max-width: 1760px;
  margin: auto;
  padding: 24px clamp(20px, 2.2vw, 40px) 20px;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #534838;
  border-radius: 12px;
  background: #29271f url(/field.webp) center 35% / cover no-repeat;
  min-height: 210px;
  display: flex;
  align-items: center;
}
.hero:before {
  position: absolute;
  content: "";
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(18, 20, 20, 0.96) 0%,
    rgba(20, 21, 21, 0.82) 22%,
    rgba(20, 21, 21, 0.33) 52%,
    transparent 75%
  );
}
.hero-inner {
  padding: 23px 30px 24px;
}
.hero-kicker,
.eyebrow,
.vip-word {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
  letter-spacing: 1.6px;
  color: #f5c377;
  font-size: 10px;
}
.hero-kicker span {
  width: 20px;
  height: 2px;
  background: #e8b566;
}
.hero-kicker b {
  color: #a08456;
  font-weight: 400;
}
.hero h1,
.page-heading h1 {
  margin: 7px 0 4px;
  font-size: clamp(29px, 2.55vw, 42px);
  letter-spacing: 0.035em;
  line-height: 1.35;
  font-weight: 750;
}
.hero p {
  color: #c5c6c4;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.hero-action {
  margin-top: 19px;
}
.primary {
  background: #ffbe54;
  color: #211a0f;
  font-weight: 700;
  border: 1px solid #ffc774;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  box-shadow: 0 2px 5px #0002;
}
.primary:hover {
  background: #ffce7b;
}
.hero-tag {
  position: absolute;
  bottom: 16px;
  right: 18px;
  border: 1px solid #ffffff32;
  color: #f0e4d1;
  background: #1819149c;
  display: flex;
  gap: 7px;
  align-items: center;
  border-radius: 4px;
  font:
    600 9px/1.3 "Segoe UI",
    "Microsoft YaHei UI",
    sans-serif;
  letter-spacing: 1.3px;
  padding: 5px 8px;
}
.delta-hero {
  background-position: center 55%;
  filter: saturate(0.85);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 22px;
}
.metric,
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.metric {
  position: relative;
  min-height: 116px;
  padding: 14px 17px;
  overflow: hidden;
}
.metric-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #b7bbc2;
  font-size: 12px;
}
.metric-icon,
.quick-icon,
.svc-icon {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--tint);
  color: var(--color);
}
.amber,
.gold {
  --tint: #3b3020;
  --color: #efb961;
}
.blue,
.steel {
  --tint: #253044;
  --color: #84aaec;
}
.purple,
.violet {
  --tint: #342c43;
  --color: #b3a1e2;
}
.green,
.mint {
  --tint: #22382f;
  --color: #75cda9;
}
.metric-main,
.progress-info > b {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -1.3px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  margin-top: 6px;
}
.metric-main small,
.metric-main em,
.progress-info small {
  font-weight: 500;
  font-size: 12px;
  color: #9da2aa;
  letter-spacing: 0;
  margin-left: 7px;
}
.metric-main em {
  font-size: 19px;
  font-style: normal;
  color: var(--text);
  margin: 0 3px 0 0;
}
.metric-foot {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.spark {
  width: 64px;
  height: 29px;
  position: absolute;
  bottom: 14px;
  right: 14px;
  opacity: 0.9;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.7fr) minmax(222px, 1fr);
  gap: 17px;
  align-items: start;
}
.panel {
  min-width: 0;
  overflow: hidden;
}
.card-head {
  padding: 17px 18px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card-head h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
}
.title-icon {
  color: var(--gold);
  display: grid;
  place-items: center;
}
.link {
  font-size: 11px;
  padding: 3px;
  color: #aeb2b8;
}
.link:hover {
  color: var(--gold);
}
.tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: auto;
  padding: 0 16px 13px;
}
.tabs button {
  border-radius: 5px;
  font-size: 11px;
  white-space: nowrap;
  color: #a2a7b0;
  padding: 4px 10px;
}
.tabs button:hover {
  color: #fff;
  background: #25282d;
}
.tabs button.selected,
.seg .on {
  background: #3c311f;
  color: #f2c378;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
  font-size: 12px;
}
th {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.035em;
  color: #9298a2;
  background: #202328;
  border-top: 1px solid #2b2e33;
  border-bottom: 1px solid #2b2e33;
  padding: 9px 12px;
}
td {
  padding: 13px 12px;
  color: #d5d8dd;
  border-bottom: 1px solid #2a2d32;
}
td:first-child,
th:first-child {
  padding-left: 18px;
}
td:last-child,
th:last-child {
  padding-right: 17px;
}
tbody tr:last-child td {
  border-bottom: none;
}
tr[data-order] {
  cursor: pointer;
}
tr[data-order]:hover td {
  background: #23262b;
}
.svc {
  display: flex;
  align-items: center;
  gap: 10px;
}
.svc-icon {
  width: 33px;
  height: 33px;
  border: 1px solid color-mix(in srgb, var(--color) 17%, transparent);
}
.svc strong {
  font-weight: 600;
  font-size: 12px;
  color: #e3e5e8;
}
.svc small,
td > small {
  display: block;
  color: #898f98;
  font-size: 9px;
  letter-spacing: 0.35px;
  font-variant-numeric: tabular-nums;
}
.svc small i {
  font-style: normal;
  color: #666b73;
}
.person {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.person sup {
  color: #f3c26d;
  display: inline-flex;
}
.num {
  font-weight: 600;
  font-family: "Inter", "Segoe UI", sans-serif;
  letter-spacing: 0.25px;
}
.badge {
  color: var(--sc, #c0c1c4);
  background: var(--sb, #2f3236);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 5px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 550;
}
.badge b {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.queued,
.review {
  --sc: #efbd6c;
  --sb: #3a3020;
}
.audition,
.chosen {
  --sc: #8db4ed;
  --sb: #232f40;
}
.playing {
  --sc: #bcaaed;
  --sb: #302a3d;
}
.done {
  --sc: #7fcbaa;
  --sb: #21372e;
}
.arrowcell {
  width: 19px;
  color: #686e77;
  padding-left: 0 !important;
}
.rail {
  display: grid;
  gap: 16px;
}
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding: 0 15px 16px;
}
.quick-btn {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 11px 2px;
  border: 1px solid #33363c;
  background: #202328;
  border-radius: 7px;
  color: #ced1d6;
  font-size: 11px;
}
.quick-btn:hover {
  border-color: #655640;
  background: #28292a;
}
.quick-icon {
  width: 29px;
  height: 29px;
}
.minor,
.hint,
.row-between small,
.record small {
  color: var(--muted);
  font-size: 12px;
}
.minor {
  font-size: 10px;
}
.workload .progress-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 18px 8px;
}
.progress-info > b {
  font-size: 29px;
  margin: 0;
}
.progress-info small {
  margin-left: 2px;
  font-size: 14px;
}
.progress-info > span,
.legend {
  font-size: 10px;
  color: var(--muted);
}
.progress {
  height: 5px;
  margin: 0 18px;
  background: #30343a;
  border-radius: 5px;
  overflow: hidden;
}
.progress span {
  height: 100%;
  display: block;
  background: linear-gradient(90deg, #bc853c, #f1c56c);
  border-radius: 5px;
}
.legend {
  display: flex;
  justify-content: space-between;
  margin: 11px 18px 16px;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.legend i {
  width: 6px;
  height: 6px;
  background: #e9ba6a;
  border-radius: 2px;
}
.legend span:nth-child(2) i {
  background: #515862;
}
.legend b {
  color: #c6c9ce;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 5px 0 22px;
}
.page-heading h1 {
  font-size: 29px;
}
.eyebrow {
  color: var(--muted);
  letter-spacing: 0.08em;
}
.content > .panel + .panel,
.vip-face + .panel,
.content > .vip-face {
  margin-top: 17px;
}
.block {
  padding: 20px;
}
.block h2 {
  margin: 0 0 12px;
}
.block > .table-wrap {
  margin: 12px -20px -20px;
}
.block > .record:last-child {
  margin-bottom: 0;
}
.toolbar,
.row-between,
.pager,
.seg {
  display: flex;
  align-items: center;
  gap: 10px;
}
.toolbar {
  flex-wrap: wrap;
  margin: 10px 0 16px;
}
.toolbar label {
  font-size: 11px;
  color: var(--muted);
}
.toolbar input {
  height: 36px;
}
.toolbar label input {
  display: block;
}
.toolbar .primary {
  align-self: flex-end;
}
.spacer {
  flex: 1;
}
.row-between,
.pager {
  justify-content: space-between;
}
.row-between h2 {
  margin: 0;
}
.search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #131619;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 9px;
  color: var(--muted);
}
.search input {
  border: 0;
  background: transparent;
  padding: 2px;
  width: 155px;
  font-size: 11px;
}
.search input:focus {
  outline: none;
}
.pager {
  padding: 12px 17px;
  justify-content: flex-end;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
}
.pager span {
  margin-right: auto;
}
.tiny {
  font-size: 11px;
  padding: 4px 9px;
}
.summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 18px 0 5px;
}
.summary > div {
  background: #202328;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 11px;
}
.summary b,
.summary small {
  display: block;
}
.summary small {
  color: var(--muted);
  font-size: 11px;
}
.summary b {
  font-size: 20px;
  margin-top: 5px;
}
.hint {
  line-height: 1.75;
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 30px 15px;
  min-height: 110px;
  font-size: 12px;
  color: var(--muted);
}
.empty svg {
  color: #76634c;
}
.seg {
  gap: 0;
  background: #101215;
  border: 1px solid var(--border);
  padding: 3px;
  border-radius: 7px;
}
.seg button {
  border: none;
  background: transparent;
}
.seg .on {
  background: #3c311f;
}
.green-text {
  color: #7cc8a6;
}
.record {
  background: #202328;
  border: 1px solid var(--border);
  border-radius: 7px;
  margin: 12px 0;
  padding: 13px;
}
.record > span,
.record > small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.record p {
  white-space: pre-wrap;
  margin: 8px 0;
}
.reply,
.callout {
  background: #332d21;
  color: #edc686;
  border-radius: 6px;
  padding: 10px 13px;
}
.vip-face {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  color: #fff4ed;
  padding: 24px 28px;
  border: 1px solid #b492ac;
  background:
    radial-gradient(ellipse at 80% -20%, #bea46b, transparent 48%),
    radial-gradient(ellipse at 94% 80%, #629ba8, transparent 49%),
    linear-gradient(120deg, #312744, #685474 50%, #a47c72);
  box-shadow: inset 0 1px 0 #ffd9e270;
}
.vip-face:after {
  position: absolute;
  content: "";
  width: 80%;
  height: 250%;
  border-radius: 48%;
  border: 1px solid #ffdfbc44;
  inset: -210% 0 auto auto;
  box-shadow:
    0 0 0 8px #ffffff0a,
    0 0 0 16px #ffffff10,
    0 0 0 24px #ffffff09,
    0 0 0 32px #ffffff0c;
  z-index: -1;
  transform: rotate(-23deg);
}
.vip-word {
  color: #f7d6a4;
}
.vip-face h2 {
  margin: 8px 0;
}
.vip-face h2 small {
  font-size: 11px;
  font-weight: 400;
}
.vip-face span {
  display: block;
  font-size: 11px;
  opacity: 0.8;
}
.vip-face strong {
  font-size: 30px;
  line-height: 1.3;
}
.vip-emboss {
  color: #ffe7bf88;
}
.vip-bottom {
  width: 100%;
  border-top: 1px solid #ffffff33;
  margin-top: 12px;
  padding-top: 10px;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
}
.vip-bottom b {
  color: #fff0b8;
}
footer {
  max-width: 1760px;
  margin: 0 auto;
  padding: 0 clamp(20px, 2.2vw, 40px) 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #686e75;
  font-size: 10px;
}
footer i {
  padding: 0 4px;
}
footer span:last-child {
  font-size: 8px;
  letter-spacing: 1.6px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 10px);
  opacity: 0;
  transition: 0.16s;
  background: #35332a;
  color: #f9dca9;
  border: 1px solid #665638;
  padding: 10px 18px;
  border-radius: 8px;
  pointer-events: none;
  z-index: 100;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  color: var(--text);
  width: min(520px, calc(100vw - 24px));
  max-height: 88dvh;
  border: 1px solid #41454d;
  border-radius: 13px;
  background: #1b1e22;
  padding: 0;
  box-shadow: 0 20px 90px #0009;
}
dialog[open] {
  animation: pop 0.18s ease-out;
}
dialog::backdrop {
  background: #07090bc2;
  backdrop-filter: blur(4px);
}
@keyframes pop {
  from {
    opacity: 0.5;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.dialog-head {
  position: sticky;
  top: 0;
  background: #1b1e22;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 17px 21px;
}
.dialog-head h2 {
  font-size: 19px;
}
.dialog-head small {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 1px;
}
.dialog-body {
  padding: 18px 21px 21px;
}
.iconbtn {
  padding: 6px;
  color: #adb0b9;
  border-radius: 5px;
}
.iconbtn:hover {
  background: #30343b;
}
.form-label {
  display: block;
  color: #ced1d7;
  font-size: 12px;
  margin-bottom: 13px;
}
input,
select,
textarea {
  background: #121519;
  color: var(--text);
  border: 1px solid #393d45;
  border-radius: 6px;
  padding: 8px 10px;
  min-width: 0;
}
input::placeholder,
textarea::placeholder {
  color: #737983;
}
.form-label input,
.form-label select,
.form-label textarea,
.dialog-body > textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
}
textarea {
  resize: vertical;
}
.form-grid,
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.form-error {
  color: #ffab9a;
  font-size: 12px;
}
.facts {
  margin: 15px 0;
}
.facts div {
  border-bottom: 1px solid var(--border);
  padding: 7px 0;
}
.facts dt {
  font-size: 11px;
  color: var(--muted);
}
.facts dd {
  margin: 2px 0;
  color: #e5e7ea;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.detail-note {
  border-left: 2px solid #927346;
  padding: 6px 10px;
  background: #25262a;
  white-space: pre-wrap;
}
.timeline p {
  border-left: 1px solid #51504a;
  position: relative;
  padding: 0 0 10px 13px;
  margin-left: 3px;
}
.timeline p:before {
  content: "";
  position: absolute;
  top: 5px;
  left: -3px;
  width: 5px;
  height: 5px;
  border-radius: 9px;
  background: #d5b177;
}
.timeline b,
.timeline small {
  display: block;
}
.timeline b {
  font-size: 12px;
}
.timeline small {
  font-size: 10px;
  color: var(--muted);
}
.checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}
.checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #25282d;
  border-radius: 6px;
  padding: 7px;
}
.checks input {
  accent-color: var(--gold);
}
.callout {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin-top: 12px;
}
.callout b {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.proofs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 10px 0;
}
.proofs img {
  width: 63px;
  height: 63px;
  object-fit: cover;
  border-radius: 5px;
}
.role-grid {
  display: flex;
  gap: 6px;
  margin: 14px 0;
}
.role-choice {
  flex: 1;
  flex-direction: column;
  background: #24282d;
  border-radius: 7px;
  border: 1px solid #353940;
  padding: 9px 3px;
  font-size: 11px;
}
.role-choice.on {
  background: #3a3021;
  border-color: #745c36;
  color: var(--gold);
}
.account-actions {
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
}
.loading {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
}
#print-view {
  display: none;
}
@media (min-width: 1600px) {
  :root {
    --sidew: 245px;
  }
  .hero {
    min-height: 246px;
  }
  .metrics {
    gap: 18px;
  }
  .metric {
    min-height: 126px;
  }
  .content {
    padding-top: 28px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 3fr) minmax(265px, 1fr);
  }
}
@media (max-width: 1180px) {
  :root {
    --sidew: 185px;
  }
  .brand {
    padding: 0 18px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 207px;
    gap: 12px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 12px;
  }
  .spark {
    width: 46px;
    right: 10px;
  }
  .compact th,
  .compact td {
    padding-left: 8px;
    padding-right: 8px;
  }
  .compact td:first-child,
  .compact th:first-child {
    padding-left: 12px;
  }
  .compact td:last-child,
  .compact th:last-child {
    padding-right: 8px;
  }
  .nav-body {
    padding-left: 10px;
    padding-right: 10px;
  }
  .brand strong {
    font-size: 18px;
  }
  .hero {
    min-height: 195px;
  }
}
@media (max-width: 960px) {
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .rail {
    grid-template-columns: 1fr 1fr;
  }
  .quick-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .metric-main {
    font-size: 27px;
  }
  .spark {
    width: 37px;
  }
  .content {
    padding: 17px;
  }
  .head-actions {
    gap: 8px;
  }
  .hero-inner {
    padding: 20px 23px;
  }
  .metrics {
    margin: 14px 0;
  }
  .summary {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  :root {
    --sidew: 0px;
  }
  aside {
    width: 225px;
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .menu-open aside {
    transform: none;
  }
  .menu-open .shade {
    display: block !important;
    position: fixed;
    inset: 0;
    background: #0009;
    z-index: 9;
  }
  .mobile {
    display: inline-flex !important;
  }
  .crumb-mark,
  .date,
  .divider {
    display: none;
  }
  .crumb {
    gap: 8px;
  }
  header {
    height: 54px;
    padding: 0 14px;
  }
  .role-btn {
    padding: 5px 9px;
  }
  .content {
    padding: 13px;
  }
  .hero {
    min-height: 178px;
    background-position: 60% 36%;
  }
  .hero h1 {
    font-size: 28px;
  }
  .hero p {
    font-size: 11px;
    max-width: 230px;
  }
  .hero-inner {
    padding: 17px;
  }
  .hero-kicker {
    font-size: 8px;
    gap: 6px;
  }
  .hero-action {
    margin-top: 14px;
  }
  .hero-tag {
    font-size: 8px;
    bottom: 9px;
    right: 9px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin: 11px 0;
  }
  .metric {
    min-height: 92px;
    padding: 10px 12px;
  }
  .metric-label {
    font-size: 11px;
  }
  .metric-icon {
    width: 23px;
    height: 23px;
  }
  .metric-main {
    font-size: 26px;
    margin-top: 2px;
  }
  .metric-foot {
    font-size: 9px;
    margin-top: 0;
  }
  .spark {
    width: 48px;
  }
  .rail {
    grid-template-columns: 1fr 1fr;
  }
  .quick-grid {
    grid-template-columns: 1fr 1fr;
  }
  .card-head {
    padding: 13px;
    flex-wrap: wrap;
  }
  .card-head h2 {
    font-size: 15px;
  }
  .tabs {
    padding-left: 9px;
    gap: 0;
  }
  .tabs button {
    padding: 4px 8px;
  }
  .svc {
    gap: 7px;
  }
  .svc-icon {
    width: 27px;
    height: 27px;
  }
  .compact th,
  .compact td {
    padding: 9px 5px;
  }
  .compact .arrowcell {
    display: none;
  }
  .compact th:last-child {
    display: none;
  }
  .compact .svc small {
    font-size: 8px;
  }
  .compact .person {
    font-size: 11px;
  }
  .block {
    padding: 14px;
  }
  .block > .table-wrap {
    margin: 10px -14px -14px;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .hero-tag {
    letter-spacing: 0.5px;
  }
  .vip-face {
    padding: 16px;
  }
  .toolbar {
    gap: 6px;
  }
  .toolbar .spacer {
    display: none;
  }
  .record p {
    overflow-wrap: anywhere;
  }
  .hero:before {
    background: linear-gradient(90deg, #121412d9, #16191880 58%, transparent);
  }
}
@media (max-width: 430px) {
  .rail {
    grid-template-columns: 1fr;
  }
  .quick-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .svc-icon {
    display: none;
  }
  .svc strong {
    font-size: 11px;
  }
  .card-head .search input {
    width: 115px;
  }
  .dialog-body,
  .dialog-head {
    padding: 15px;
  }
  .quick-btn {
    padding: 9px 0;
  }
  .hero-tag {
    display: none;
  }
  .hero {
    background-position: 60% center;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  :root,
  body {
    color: #111;
    background: white;
  }
  #app,
  #dialog,
  #toast {
    display: none !important;
  }
  #print-view {
    display: block;
  }
  #print-view table {
    white-space: normal;
    font-size: 9pt;
  }
  #print-view td {
    color: #111;
    padding: 4px;
    border: 1px solid #ccc;
  }
  #print-view h1 {
    font-size: 17pt;
    margin-bottom: 10px;
  }
}
