:root {
  --ink: #171714;
  --ink-soft: #2a2924;
  --paper: #f4f0e6;
  --paper-deep: #eae3d5;
  --paper-light: #fbf8f0;
  --signal: #ff5b2c;
  --signal-deep: #dc3f12;
  --acid: #c8f06a;
  --teal: #167d6d;
  --muted: #777267;
  --line: #25241f;
  --line-soft: rgba(23, 23, 20, 0.16);
  --shadow: 5px 5px 0 var(--ink);
  --radius: 3px;
  --sidebar: 234px;
  --body-font: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --display-font: "Avenir Next Condensed", "DIN Condensed", "PingFang SC", sans-serif;
  --serif-font: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --number-font: "DIN Alternate", "Avenir Next Condensed", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body-font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  content: "";
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(255, 91, 44, 0.32);
  outline-offset: 2px;
}

svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.hidden {
  display: none !important;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-family: var(--number-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.56);
}

.login-screen {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(480px, 1.15fr) minmax(410px, 0.85fr);
  background: var(--paper);
}

.login-brand {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 42px 54px 38px;
  color: #fff;
  background: var(--ink);
}

.login-brand::before {
  position: absolute;
  top: -18vh;
  right: -4vw;
  width: 36vw;
  height: 36vw;
  min-width: 420px;
  min-height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 9vw rgba(255, 255, 255, 0.025),
    0 0 0 18vw rgba(255, 255, 255, 0.018);
}

.login-brand::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 44%;
  height: 31%;
  content: "";
  background: var(--signal);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.login-wordmark,
.brand,
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  color: var(--ink);
  background: var(--acid);
  font-family: var(--serif-font);
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
  transform: rotate(-4deg);
}

.brand-mark.small {
  width: 34px;
  height: 34px;
  font-size: 20px;
}

.login-editorial {
  position: relative;
  z-index: 1;
  max-width: 710px;
  margin-top: 6vh;
}

.login-editorial h1 {
  margin: 25px 0 28px;
  font-family: var(--serif-font);
  font-size: clamp(56px, 7.2vw, 112px);
  font-weight: 800;
  letter-spacing: -0.085em;
  line-height: 0.88;
}

.login-editorial h1 em {
  color: var(--acid);
  font-style: normal;
  -webkit-text-stroke: 1px var(--ink);
  text-shadow: 4px 4px 0 var(--signal);
}

.login-intro {
  max-width: 450px;
  margin: 0;
  color: rgba(255, 255, 255, 0.67);
  font-size: 15px;
  line-height: 1.8;
}

.film-meter {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0;
  width: min(560px, 82%);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.film-meter span {
  position: relative;
  flex: 1;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--number-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.film-meter span:not(:last-child)::after {
  display: inline-block;
  width: 34px;
  height: 1px;
  margin: 0 16px 3px 0;
  background: rgba(255, 255, 255, 0.28);
  content: "";
}

.login-stamp {
  position: absolute;
  right: 35px;
  bottom: 28px;
  z-index: 2;
  padding: 8px 10px;
  color: var(--ink);
  border: 2px solid var(--ink);
  font-family: var(--number-font);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-align: center;
  transform: rotate(-5deg);
}

.login-panel {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 44px;
  background:
    linear-gradient(rgba(23, 23, 20, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 20, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 26px 26px;
}

.login-card {
  position: relative;
  width: min(420px, 100%);
  padding: 42px;
  background: var(--paper-light);
  border: 1.5px solid var(--ink);
  box-shadow: 9px 9px 0 rgba(23, 23, 20, 0.13);
  animation: lift-in 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.login-card::after {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 44px;
  height: 7px;
  background: var(--signal);
  content: "";
}

.login-card h2 {
  margin: 10px 0 4px;
  font-family: var(--serif-font);
  font-size: 38px;
  letter-spacing: -0.055em;
}

.login-subtitle {
  margin: 0 0 30px;
  color: var(--muted);
}

.mobile-brand {
  display: none;
  margin-bottom: 34px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field > span,
.field-label {
  color: #4e4b44;
  font-size: 12px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea,
.filter-control,
.search-control {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  background: #fffdf8;
  border: 1.3px solid var(--line-soft);
  border-radius: 1px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field textarea {
  min-height: 86px;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover,
.filter-control:hover {
  border-color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--acid);
}

.field-hint {
  color: var(--muted);
  font-size: 11px;
}

.settlement-toggle-row {
  gap: 9px;
}

.settlement-check {
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  background: var(--paper-deep);
  border: 1px solid var(--line-soft);
  font-size: 12px;
}

.settlement-check input {
  width: 17px;
  min-height: 17px;
  accent-color: var(--teal);
}

.form-error {
  min-height: 19px;
  margin: -5px 0 0;
  color: var(--signal-deep);
  font-size: 12px;
  font-weight: 650;
}

.login-register-button {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 4px;
  padding: 10px 13px;
  color: var(--ink);
  background: transparent;
  border: 1px dashed rgba(23, 23, 20, 0.28);
  text-align: left;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.login-register-button:hover {
  background: var(--acid);
  border-color: var(--ink);
}

.login-register-button span,
.login-register-button strong,
.login-register-button small {
  display: block;
}

.login-register-button strong {
  font-size: 12px;
}

.login-register-button small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.login-register-button svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 17px;
  border: 1.2px solid var(--ink);
  border-radius: 1px;
  font-weight: 750;
  line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}

.button:active {
  transform: translate(1px, 1px);
  box-shadow: none;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
  box-shadow: none;
}

.button-primary {
  color: #fff;
  background: var(--ink);
}

.button-primary:hover {
  color: var(--ink);
  background: var(--acid);
}

.button-signal {
  color: var(--ink);
  background: var(--signal);
}

.button-signal:hover {
  background: #ff7a52;
}

.button-acid {
  color: var(--ink);
  background: var(--acid);
}

.button-ghost {
  background: transparent;
  border-color: var(--line-soft);
}

.button-ghost:hover {
  background: #fff;
  border-color: var(--ink);
}

.button-small {
  min-height: 32px;
  padding: 7px 11px;
  font-size: 12px;
}

.button-wide {
  width: 100%;
  min-height: 49px;
  justify-content: space-between;
  padding-inline: 18px;
}

.demo-access {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px dashed rgba(23, 23, 20, 0.25);
}

.demo-access > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.demo-label {
  font-size: 12px;
  font-weight: 700;
}

.demo-hint {
  color: var(--muted);
  font-size: 10px;
}

.demo-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.demo-chips button {
  padding: 5px 9px;
  color: var(--ink);
  background: var(--paper-deep);
  border: 1px solid var(--line-soft);
  font-size: 11px;
}

.demo-chips button:hover {
  background: var(--acid);
  border-color: var(--ink);
}

.login-footnote {
  position: fixed;
  right: 43px;
  bottom: 22px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
}

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

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: var(--sidebar);
  flex-direction: column;
  color: #fff;
  background: var(--ink);
}

.brand {
  height: 85px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.brand-mark {
  transition: transform 0.35s ease;
}

.brand:hover .brand-mark {
  transform: rotate(4deg) scale(1.06);
}

.brand strong {
  display: block;
  font-family: var(--serif-font);
  font-size: 18px;
  line-height: 1.2;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.37);
  font-family: var(--number-font);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px 13px;
}

.nav-item {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  color: rgba(255, 255, 255, 0.61);
  background: transparent;
  border: 0;
  border-radius: 1px;
  text-align: left;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.065);
  transform: translateX(2px);
}

.nav-item.active {
  color: var(--ink);
  background: var(--acid);
  font-weight: 760;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.nav-count {
  display: grid;
  min-width: 21px;
  height: 21px;
  margin-left: auto;
  place-items: center;
  padding: 0 5px;
  color: #fff;
  background: var(--signal);
  border-radius: 20px;
  font-family: var(--number-font);
  font-size: 10px;
  font-weight: 800;
}

.sidebar-bottom {
  margin-top: auto;
  padding: 14px 13px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.price-ticker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px 13px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 10px;
}

.price-ticker strong {
  color: var(--acid);
  font-family: var(--number-font);
  font-size: 11px;
}

.profile-mini {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 2px;
  text-align: left;
}

.profile-mini:hover {
  background: rgba(255, 255, 255, 0.12);
}

.avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 auto;
  color: var(--ink);
  background: var(--signal);
  border-radius: 50%;
  font-family: var(--serif-font);
  font-size: 16px;
  font-weight: 800;
}

.profile-copy {
  min-width: 0;
  flex: 1;
}

.profile-copy strong,
.profile-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-copy strong {
  font-size: 12px;
}

.profile-copy small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.44);
  font-size: 9px;
}

.profile-mini svg {
  width: 17px;
  color: rgba(255, 255, 255, 0.45);
}

.workspace {
  min-width: 0;
  grid-column: 2;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  height: 85px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 36px;
  background: rgba(244, 240, 230, 0.93);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(12px);
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
}

.topbar-left {
  gap: 17px;
}

.topbar-index {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--ink);
  background: var(--paper-deep);
  border: 1px solid var(--line-soft);
  font-family: var(--number-font);
  font-size: 11px;
  font-weight: 800;
}

.topbar h2 {
  margin: 0;
  font-family: var(--serif-font);
  font-size: 24px;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.topbar p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.topbar-right {
  gap: 18px;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 700;
}

.live-indicator i {
  display: block;
  width: 7px;
  height: 7px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(22, 125, 109, 0.12);
  animation: pulse 2.2s infinite;
}

.today-label {
  padding-left: 18px;
  color: var(--muted);
  border-left: 1px solid var(--line-soft);
  font-family: var(--number-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-soft);
}

.mobile-profile {
  display: none;
}

.main-content {
  max-width: 1560px;
  min-height: calc(100vh - 85px);
  margin: 0 auto;
  padding: 34px 36px 64px;
}

.page {
  animation: page-in 0.42s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 26px;
}

.page-header h1 {
  margin: 7px 0 6px;
  font-family: var(--serif-font);
  font-size: clamp(33px, 3.3vw, 50px);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 1.05;
}

.page-header p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.hero-board {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 278px;
  margin-bottom: 18px;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);
  color: #fff;
  background: var(--ink);
}

.hero-board::before {
  position: absolute;
  top: -65px;
  right: 17%;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 58px rgba(255, 255, 255, 0.025), 0 0 0 116px rgba(255, 255, 255, 0.014);
}

.hero-board::after {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 58px;
  height: 58px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-right: 1px solid rgba(255, 255, 255, 0.35);
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 34px 28px;
}

.hero-copy h1 {
  max-width: 720px;
  margin: 18px 0 18px;
  font-family: var(--serif-font);
  font-size: clamp(36px, 4.6vw, 67px);
  letter-spacing: -0.075em;
  line-height: 0.98;
}

.hero-copy h1 em {
  color: var(--acid);
  font-style: normal;
}

.hero-copy p {
  max-width: 580px;
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}

.hero-side {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 28px;
  color: var(--ink);
  background: var(--signal);
  border-left: 1px solid var(--ink);
}

.hero-side-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 750;
}

.hero-side-label span:last-child {
  font-family: var(--number-font);
  letter-spacing: 0.08em;
}

.hero-total {
  font-family: var(--number-font);
  font-size: clamp(76px, 9vw, 126px);
  font-weight: 800;
  letter-spacing: -0.09em;
  line-height: 0.8;
}

.hero-total small {
  margin-left: 6px;
  font-family: var(--body-font);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0;
}

.hero-side-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hero-side-foot div {
  padding-top: 12px;
  border-top: 1px solid rgba(23, 23, 20, 0.35);
}

.hero-side-foot strong {
  display: block;
  font-family: var(--number-font);
  font-size: 22px;
  line-height: 1;
}

.hero-side-foot span {
  display: block;
  margin-top: 5px;
  font-size: 10px;
}

.approval-banner {
  display: grid;
  min-height: 92px;
  align-items: center;
  gap: 16px;
  margin: -1px 0 18px;
  padding: 16px 18px;
  background: #fff0c7;
  border: 1px solid var(--ink);
  border-left: 6px solid var(--signal);
  grid-template-columns: 42px minmax(0, 1fr) auto;
}

.approval-banner-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--ink);
  background: var(--acid);
  border: 1px solid var(--ink);
}

.approval-banner-mark svg {
  width: 19px;
  height: 19px;
}

.approval-banner h3 {
  margin: 4px 0 2px;
  font-family: var(--serif-font);
  font-size: 18px;
}

.approval-banner p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.metric-grid {
  display: grid;
  margin-bottom: 18px;
  background: var(--paper-light);
  border: 1px solid var(--line);
  grid-template-columns: repeat(4, 1fr);
}

.metric-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.metric-card {
  position: relative;
  min-height: 126px;
  padding: 20px 22px;
}

.metric-card:not(:last-child) {
  border-right: 1px solid var(--line-soft);
}

.metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.metric-icon {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  color: var(--ink);
  background: var(--paper-deep);
}

.metric-icon svg {
  width: 15px;
  height: 15px;
}

.metric-value {
  margin-top: 13px;
  font-family: var(--number-font);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.metric-value small {
  margin-left: 4px;
  color: var(--muted);
  font-family: var(--body-font);
  font-size: 11px;
  font-weight: 650;
}

.metric-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
}

.metric-card.accent {
  background: var(--acid);
}

.metric-card.accent .metric-icon {
  background: rgba(23, 23, 20, 0.1);
}

.split-layout {
  display: grid;
  margin-bottom: 18px;
  gap: 18px;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
}

.panel {
  background: var(--paper-light);
  border: 1px solid var(--line);
}

.panel-head {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-soft);
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-title-index {
  color: var(--signal-deep);
  font-family: var(--number-font);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.panel-title h3 {
  margin: 0;
  font-family: var(--serif-font);
  font-size: 19px;
  letter-spacing: -0.035em;
}

.panel-title p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.panel-body {
  padding: 18px 20px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 0;
  color: var(--ink);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--ink);
  font-size: 11px;
  font-weight: 750;
}

.text-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.18s ease;
}

.text-link:hover svg {
  transform: translateX(3px);
}

.inventory-stack {
  display: grid;
  gap: 8px;
}

.inventory-row {
  display: grid;
  min-height: 66px;
  align-items: center;
  gap: 13px;
  padding: 10px 12px;
  border: 1px solid transparent;
  grid-template-columns: 34px minmax(92px, 0.8fr) minmax(130px, 1.2fr) auto;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.inventory-row:hover {
  background: #fff;
  border-color: var(--line-soft);
  transform: translateX(2px);
}

.inventory-row:not(:last-child) {
  border-bottom-color: var(--line-soft);
}

.inventory-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--ink);
  background: var(--paper-deep);
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  font-family: var(--serif-font);
  font-weight: 800;
}

.inventory-name strong {
  display: block;
  font-size: 12px;
}

.inventory-name span {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.inventory-bars {
  display: grid;
  gap: 7px;
}

.inventory-bar {
  display: grid;
  align-items: center;
  gap: 7px;
  grid-template-columns: 48px 1fr 20px;
  color: var(--muted);
  font-size: 9px;
}

.inventory-bar-track {
  height: 5px;
  overflow: hidden;
  background: var(--paper-deep);
}

.inventory-bar-track i {
  display: block;
  height: 100%;
  transform-origin: left;
  animation: grow-bar 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.inventory-bar.clip i {
  background: var(--signal);
}

.inventory-bar.upload i {
  background: var(--teal);
}

.inventory-bar strong {
  color: var(--ink);
  font-family: var(--number-font);
  font-size: 10px;
  text-align: right;
}

.inventory-count {
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: right;
}

.inventory-count span {
  display: flex;
  flex-direction: column;
  color: var(--muted);
  font-size: 9px;
}

.inventory-count b {
  color: var(--ink);
  font-family: var(--number-font);
  font-size: 18px;
  line-height: 1;
}

.empty-mini {
  padding: 28px 10px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.activity-list {
  display: flex;
  flex-direction: column;
}

.activity-item {
  position: relative;
  display: grid;
  gap: 11px;
  padding: 13px 0;
  grid-template-columns: 31px minmax(0, 1fr) auto;
}

.activity-item:not(:last-child) {
  border-bottom: 1px dashed var(--line-soft);
}

.activity-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--ink);
  background: var(--paper-deep);
  border-radius: 50%;
}

.activity-icon svg {
  width: 14px;
  height: 14px;
}

.activity-icon.shoot {
  background: #ffe0d5;
}

.activity-icon.edit {
  background: #d9f0e8;
}

.activity-icon.upload {
  background: var(--acid);
}

.activity-copy strong {
  display: block;
  font-size: 11px;
  line-height: 1.45;
}

.activity-copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.activity-time {
  color: var(--muted);
  font-family: var(--number-font);
  font-size: 9px;
  text-align: right;
}

.merchant-strip {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, 1fr);
}

.merchant-pulse {
  position: relative;
  min-height: 145px;
  padding: 20px;
}

.merchant-pulse:not(:last-child) {
  border-right: 1px solid var(--line-soft);
}

.merchant-pulse::after {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 35px;
  height: 35px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  content: "";
}

.merchant-pulse-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.merchant-pulse h4 {
  margin: 0;
  font-family: var(--serif-font);
  font-size: 17px;
}

.merchant-pulse p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.merchant-total {
  margin-top: 20px;
  font-family: var(--number-font);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.merchant-total small {
  margin-left: 4px;
  font-family: var(--body-font);
  font-size: 9px;
  font-weight: 600;
}

.merchant-mini-stats {
  display: flex;
  gap: 15px;
  margin-top: 11px;
  color: var(--muted);
  font-size: 9px;
}

.merchant-mini-stats strong {
  color: var(--ink);
  font-family: var(--number-font);
  font-size: 11px;
}

.segmented {
  display: inline-flex;
  padding: 3px;
  background: var(--paper-deep);
  border: 1px solid var(--line-soft);
}

.segmented button {
  min-height: 34px;
  padding: 7px 14px;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 11px;
  font-weight: 700;
}

.segmented button.active {
  color: var(--ink);
  background: var(--paper-light);
  box-shadow: 0 1px 4px rgba(23, 23, 20, 0.12);
}

.card-grid {
  display: grid;
  gap: 13px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.inventory-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  background: var(--paper-light);
  border: 1px solid var(--line);
}

.inventory-card::after {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 64px;
  height: 64px;
  background: var(--paper-deep);
  border-radius: 50%;
  content: "";
}

.inventory-card-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.inventory-card-header .inventory-avatar {
  width: 42px;
  height: 42px;
  background: var(--acid);
  font-size: 18px;
}

.inventory-card-header h4 {
  margin: 0;
  font-family: var(--serif-font);
  font-size: 19px;
}

.inventory-card-header span {
  color: var(--muted);
  font-size: 9px;
}

.inventory-card-totals {
  display: grid;
  margin-top: 23px;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-soft);
}

.inventory-total {
  padding-top: 13px;
}

.inventory-total:first-child {
  padding-right: 15px;
  border-right: 1px solid var(--line-soft);
}

.inventory-total:last-child {
  padding-left: 15px;
}

.inventory-total span {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.inventory-total strong {
  display: block;
  margin-top: 4px;
  font-family: var(--number-font);
  font-size: 31px;
  letter-spacing: -0.04em;
  line-height: 1;
}

.inventory-total.clip strong {
  color: var(--signal-deep);
}

.inventory-total.upload strong {
  color: var(--teal);
}

.inventory-card-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 17px;
  padding-top: 12px;
  color: var(--muted);
  border-top: 1px dashed var(--line-soft);
  font-size: 9px;
}

.inventory-card-note i {
  display: block;
  width: 6px;
  height: 6px;
  background: var(--signal);
  border-radius: 50%;
}

.inventory-card-note.empty i {
  background: var(--teal);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.toolbar-left,
.toolbar-right,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-control {
  width: auto;
  min-width: 130px;
  min-height: 38px;
  padding: 8px 32px 8px 11px;
  font-size: 11px;
}

.filter-control.date {
  min-width: 126px;
}

.search-control {
  width: 210px;
  min-height: 38px;
  padding: 8px 10px 8px 34px;
  font-size: 11px;
}

.search-wrap {
  position: relative;
}

.search-wrap svg {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.table-panel {
  overflow: hidden;
  background: var(--paper-light);
  border: 1px solid var(--line);
}

.table-scroll {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 13px 14px;
  text-align: left;
  vertical-align: middle;
}

.data-table thead {
  color: var(--muted);
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line-soft);
}

.data-table th {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table tbody tr {
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.15s ease;
}

.data-table tbody tr:last-child {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: #fff;
}

.data-table td {
  font-size: 11px;
}

.order-code {
  display: inline-block;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  font-family: var(--number-font);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-decoration: none;
}

.order-code:hover {
  border-bottom-color: var(--ink);
}

.order-sub {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.merchant-cell strong,
.person-cell strong {
  display: block;
  font-size: 11px;
}

.merchant-cell span,
.person-cell span {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
}

.status-badge::before {
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
  content: "";
}

.status-shot {
  color: #b83913;
  background: #ffe4d9;
  border-color: #ffc5b2;
}

.status-edited {
  color: #096756;
  background: #dcf2ea;
  border-color: #b9e0d4;
}

.status-uploaded {
  color: #4a5e16;
  background: #edf8d0;
  border-color: #d8ecac;
}

.action-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

.table-action {
  padding: 5px 8px;
  background: transparent;
  border: 1px solid var(--line-soft);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.table-action:hover {
  background: var(--acid);
  border-color: var(--ink);
}

.table-action.primary {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.table-action.primary:hover {
  color: var(--ink);
  background: var(--acid);
}

.table-empty {
  padding: 60px 20px;
  color: var(--muted);
  text-align: center;
}

[hidden] {
  display: none !important;
}

.table-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 15px;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
  font-size: 10px;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 7px;
}

.pagination button {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line-soft);
  font-size: 10px;
}

.pagination button.active,
.pagination button:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.performance-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
}

.salary-hero {
  position: relative;
  overflow: hidden;
  min-height: 285px;
  padding: 30px;
  color: #fff;
  background: var(--ink);
}

.salary-hero::before {
  position: absolute;
  top: -110px;
  right: -100px;
  width: 330px;
  height: 330px;
  background: var(--signal);
  border-radius: 50%;
  content: "";
}

.salary-hero::after {
  position: absolute;
  top: -58px;
  right: -48px;
  width: 225px;
  height: 225px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  content: "";
}

.salary-hero > * {
  position: relative;
  z-index: 1;
}

.salary-hero h3 {
  margin: 14px 0 6px;
  font-family: var(--serif-font);
  font-size: 23px;
}

.salary-amount {
  margin-top: 28px;
  font-family: var(--number-font);
  font-size: clamp(58px, 6vw, 84px);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.95;
}

.salary-amount small {
  margin-right: 7px;
  font-family: var(--body-font);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: 0;
}

.salary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
}

.salary-meta strong {
  color: #fff;
  font-family: var(--number-font);
  font-size: 14px;
}

.target-progress {
  display: grid;
  align-items: end;
  gap: 12px;
  margin-top: 25px;
  grid-template-columns: 1fr auto;
}

.target-progress-label {
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
}

.target-progress-label strong {
  color: var(--acid);
}

.progress-track {
  position: relative;
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}

.progress-track i {
  display: block;
  height: 100%;
  background: var(--acid);
  transform-origin: left;
  animation: grow-bar 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.progress-percent {
  color: var(--acid);
  font-family: var(--number-font);
  font-size: 19px;
  font-weight: 800;
}

.salary-breakdown {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 23px;
  background: var(--paper-light);
  border: 1px solid var(--line);
}

.salary-breakdown h3 {
  margin: 0;
  font-family: var(--serif-font);
  font-size: 20px;
}

.breakdown-row {
  display: grid;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  border-top: 1px dashed var(--line-soft);
}

.breakdown-icon {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  background: var(--paper-deep);
}

.breakdown-icon svg {
  width: 16px;
  height: 16px;
}

.breakdown-copy strong {
  display: block;
  font-size: 12px;
}

.breakdown-copy span {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.breakdown-value {
  font-family: var(--number-font);
  font-size: 20px;
  font-weight: 800;
  text-align: right;
}

.breakdown-value small {
  display: block;
  color: var(--muted);
  font-family: var(--body-font);
  font-size: 9px;
  font-weight: 500;
}

.goal-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding: 15px;
  background: var(--acid);
  border: 1px solid var(--ink);
}

.goal-callout span {
  font-size: 10px;
}

.goal-callout strong {
  display: block;
  font-family: var(--number-font);
  font-size: 20px;
}

.team-performance {
  margin-top: 18px;
}

.performance-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 130px;
}

.performance-bar-track {
  width: 82px;
  height: 6px;
  overflow: hidden;
  background: var(--paper-deep);
}

.performance-bar-track i {
  display: block;
  height: 100%;
  background: var(--signal);
}

.performance-bar span {
  color: var(--muted);
  font-family: var(--number-font);
  font-size: 9px;
}

.tab-strip {
  display: flex;
  gap: 0;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.tab-strip button {
  position: relative;
  min-height: 43px;
  padding: 10px 17px;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 11px;
  font-weight: 750;
}

.tab-strip button::after {
  position: absolute;
  right: 16px;
  bottom: -1px;
  left: 16px;
  height: 3px;
  background: transparent;
  content: "";
}

.tab-strip button.active {
  color: var(--ink);
}

.tab-strip button.active::after {
  background: var(--signal);
}

.archive-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr);
}

.price-config {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.price-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  background: var(--paper-light);
  border: 1px solid var(--line);
}

.price-card::after {
  position: absolute;
  right: -18px;
  bottom: -24px;
  color: var(--paper-deep);
  content: "¥";
  font-family: var(--number-font);
  font-size: 110px;
  font-weight: 800;
  line-height: 1;
}

.price-card > * {
  position: relative;
  z-index: 1;
}

.price-card h3 {
  margin: 0;
  font-family: var(--serif-font);
  font-size: 19px;
}

.price-card p {
  margin: 4px 0 20px;
  color: var(--muted);
  font-size: 10px;
}

.price-value {
  font-family: var(--number-font);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.price-value small {
  font-family: var(--body-font);
  font-size: 11px;
  font-weight: 600;
}

.settings-note {
  margin-top: 13px;
  padding: 12px 14px;
  color: var(--muted);
  background: var(--paper-deep);
  border-left: 3px solid var(--signal);
  font-size: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  background: var(--paper-deep);
  border: 1px solid var(--line-soft);
  font-size: 9px;
}

.tag.active {
  color: #356038;
  background: #e6f3de;
  border-color: #c8e1bb;
}

.tag.inactive {
  color: var(--muted);
  background: #eeece6;
}

.tag.pending {
  color: #8c5310;
  background: #fff0c7;
  border-color: #e6c77f;
}

.tag.rejected {
  color: #9c321a;
  background: #ffe3dc;
  border-color: #efb8aa;
}

.profile-menu {
  position: fixed;
  z-index: 70;
  bottom: 92px;
  left: 181px;
  width: 218px;
  padding: 7px;
  color: var(--ink);
  background: var(--paper-light);
  border: 1px solid var(--ink);
  box-shadow: 5px 5px 0 rgba(23, 23, 20, 0.2);
  animation: pop-in 0.16s ease both;
}

.profile-menu button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: transparent;
  border: 0;
  font-size: 11px;
  text-align: left;
}

.profile-menu button:hover {
  background: var(--paper-deep);
}

.profile-menu button.danger {
  color: var(--signal-deep);
}

.profile-menu svg {
  width: 16px;
  height: 16px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  overflow-y: auto;
  place-items: center;
  padding: 24px;
  background: rgba(23, 23, 20, 0.68);
  backdrop-filter: blur(3px);
  animation: fade-in 0.18s ease both;
}

.modal {
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--paper-light);
  border: 1px solid var(--ink);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.35);
  animation: modal-in 0.26s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.modal.wide {
  width: min(760px, 100%);
}

.modal.small {
  width: min(430px, 100%);
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 23px 24px 17px;
  background: var(--paper-light);
  border-bottom: 1px solid var(--line-soft);
}

.modal-head h2 {
  margin: 5px 0 0;
  font-family: var(--serif-font);
  font-size: 26px;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.modal-close {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-soft);
}

.modal-close:hover {
  color: #fff;
  background: var(--ink);
}

.modal-close svg {
  width: 15px;
  height: 15px;
}

.modal-body {
  padding: 23px 24px;
}

.modal-foot {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding: 15px 24px;
  background: var(--paper-light);
  border-top: 1px solid var(--line-soft);
}

.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.flow-callout {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 20px;
  padding: 13px;
  background: var(--paper-deep);
  border-left: 3px solid var(--signal);
}

.flow-callout svg {
  width: 18px;
  height: 18px;
}

.flow-callout p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.flow-callout strong {
  color: var(--ink);
}

.order-summary {
  display: grid;
  gap: 1px;
  margin-bottom: 20px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  grid-template-columns: repeat(4, 1fr);
}

.order-summary div {
  padding: 12px;
  background: var(--paper-light);
}

.order-summary span {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.order-summary strong {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 4px;
}

.timeline-step {
  position: relative;
  display: grid;
  min-height: 76px;
  gap: 13px;
  padding-bottom: 19px;
  grid-template-columns: 31px 1fr auto;
}

.timeline-step:not(:last-child)::before {
  position: absolute;
  top: 31px;
  bottom: 0;
  left: 15px;
  width: 1px;
  background: var(--line-soft);
  content: "";
}

.timeline-dot {
  position: relative;
  z-index: 1;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: var(--muted);
  background: var(--paper-deep);
  border-radius: 50%;
}

.timeline-dot svg {
  width: 14px;
  height: 14px;
}

.timeline-step.done .timeline-dot {
  color: var(--ink);
  background: var(--acid);
}

.timeline-step.current .timeline-dot {
  color: #fff;
  background: var(--signal);
}

.timeline-copy strong {
  display: block;
  font-size: 12px;
}

.timeline-copy span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.timeline-time {
  color: var(--muted);
  font-family: var(--number-font);
  font-size: 9px;
  text-align: right;
}

.detail-meta {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-soft);
  grid-template-columns: 1fr 1fr;
}

.detail-meta dt {
  color: var(--muted);
  font-size: 9px;
}

.detail-meta dd {
  margin: 2px 0 0;
  font-size: 11px;
}

.confirm-copy {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.confirm-copy strong {
  color: var(--ink);
}

.registration-success {
  padding: 10px 4px 14px;
  text-align: center;
}

.registration-success-mark {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  place-items: center;
  color: var(--ink);
  background: var(--acid);
  border: 1px solid var(--ink);
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--ink);
}

.registration-success-mark svg {
  width: 24px;
  height: 24px;
}

.registration-success h3 {
  margin: 0;
  font-family: var(--serif-font);
  font-size: 23px;
}

.registration-success p {
  margin: 8px auto 0;
  max-width: 360px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.toast-root {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  display: flex;
  width: min(360px, calc(100vw - 32px));
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  color: #fff;
  background: var(--ink);
  border-left: 4px solid var(--acid);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.18);
  font-size: 11px;
  animation: toast-in 0.28s ease both;
}

.toast.error {
  border-left-color: var(--signal);
}

.toast svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--acid);
}

.toast.error svg {
  color: var(--signal);
}

.loading-screen {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  background: var(--paper);
}

.loader {
  display: flex;
  gap: 4px;
}

.loader i {
  display: block;
  width: 9px;
  height: 28px;
  background: var(--ink);
  animation: bars 0.8s ease-in-out infinite alternate;
}

.loader i:nth-child(2) {
  background: var(--signal);
  animation-delay: 0.12s;
}

.loader i:nth-child(3) {
  background: var(--acid);
  border: 1px solid var(--ink);
  animation-delay: 0.24s;
}

.accessory-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 15px;
  color: var(--muted);
  background: var(--paper-deep);
  font-size: 10px;
}

.accessory-note svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lift-in {
  from {
    opacity: 0;
    transform: translateY(18px) rotate(0.3deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(13px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(15px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes grow-bar {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@keyframes bars {
  from {
    transform: scaleY(0.45);
  }
  to {
    transform: scaleY(1);
  }
}

.mobile-only {
  display: none;
}

.desktop-only {
  display: block;
}

.mobile-quick-action,
.mobile-more-button,
.mobile-admin-entry {
  display: none;
}

.mobile-order-list,
.mobile-log-list,
.mobile-archive-list,
.mobile-merchant-inventory {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-archive-actionbar {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding: 13px 14px;
  background: var(--paper-light);
  border: 1px solid var(--line);
}

.mobile-archive-actionbar > div strong {
  display: block;
  margin-top: 3px;
  font-family: var(--serif-font);
  font-size: 17px;
}

.mobile-order-card {
  overflow: hidden;
  background: var(--paper-light);
  border: 1px solid var(--line);
  box-shadow: 3px 3px 0 rgba(23, 23, 20, 0.1);
}

.mobile-order-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 13px;
  border-bottom: 1px solid var(--line-soft);
}

.mobile-order-number {
  display: block;
  color: var(--signal-deep);
  font-family: var(--number-font);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.mobile-order-card h3 {
  margin: 4px 0 0;
  font-family: var(--serif-font);
  font-size: 20px;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.mobile-order-card header p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.mobile-route {
  display: grid;
  align-items: start;
  padding: 18px 14px 16px;
  grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr) 12px minmax(0, 1fr);
}

.mobile-route-step {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-direction: column;
  gap: 3px;
  text-align: center;
}

.mobile-route-dot {
  display: grid;
  width: 31px;
  height: 31px;
  margin-bottom: 4px;
  place-items: center;
  color: var(--muted);
  background: var(--paper-deep);
  border: 1px solid var(--line-soft);
  border-radius: 50%;
}

.mobile-route-dot svg {
  width: 14px;
  height: 14px;
}

.mobile-route-step.done .mobile-route-dot {
  color: var(--ink);
  background: var(--acid);
  border-color: var(--ink);
}

.mobile-route-step.current .mobile-route-dot {
  color: #fff;
  background: var(--signal);
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(255, 91, 44, 0.12);
}

.mobile-route-step strong {
  font-size: 10px;
}

.mobile-route-step > span:not(.mobile-route-dot) {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-route-step small {
  display: block;
  color: var(--muted);
  font-family: var(--number-font);
  font-size: 8px;
}

.mobile-route-line {
  height: 1px;
  margin-top: 15px;
  background: var(--line-soft);
}

.mobile-route-line.done {
  background: var(--ink);
}

.mobile-order-note {
  margin: 0 16px 13px;
  padding: 9px 10px;
  color: var(--muted);
  background: var(--paper-deep);
  border-left: 2px solid var(--signal);
  font-size: 9px;
}

.mobile-order-card > footer {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 8px 12px 8px 16px;
  background: #fffdf8;
  border-top: 1px solid var(--line-soft);
}

.mobile-order-card footer > div {
  display: flex;
  gap: 6px;
}

.mobile-order-link {
  padding: 6px 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-family: var(--number-font);
  font-size: 9px;
}

.mobile-card-action {
  min-height: 38px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--line-soft);
  font-size: 10px;
  font-weight: 750;
}

.mobile-card-action.ghost:hover {
  border-color: var(--ink);
}

.mobile-card-action.primary {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.mobile-card-action.primary:active {
  color: var(--ink);
  background: var(--acid);
}

.mobile-list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 2px 0;
  color: var(--muted);
  font-size: 10px;
}

.mobile-empty-state {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 45px 20px;
  background: var(--paper-light);
  border: 1px dashed var(--line-soft);
  text-align: center;
}

.mobile-empty-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  place-items: center;
  background: var(--paper-deep);
}

.mobile-empty-state strong {
  font-family: var(--serif-font);
  font-size: 18px;
}

.mobile-empty-state p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.mobile-log-card {
  display: grid;
  gap: 12px;
  padding: 15px;
  background: var(--paper-light);
  border: 1px solid var(--line);
  grid-template-columns: 32px minmax(0, 1fr);
}

.mobile-log-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.mobile-log-head strong {
  font-size: 11px;
}

.mobile-log-head span {
  color: var(--muted);
  font-family: var(--number-font);
  font-size: 8px;
  white-space: nowrap;
}

.mobile-log-card p {
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: 9px;
}

.mobile-log-card button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 0 2px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--number-font);
  font-size: 9px;
  font-weight: 750;
}

.mobile-log-card button svg {
  width: 12px;
  height: 12px;
}

.mobile-archive-card,
.mobile-merchant-card {
  background: var(--paper-light);
  border: 1px solid var(--line);
}

.mobile-archive-card > header,
.mobile-merchant-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.mobile-archive-card h3,
.mobile-merchant-card h3 {
  margin: 0;
  font-family: var(--serif-font);
  font-size: 20px;
  letter-spacing: -0.04em;
}

.mobile-archive-card header p,
.mobile-merchant-card header p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.mobile-archive-card dl {
  display: grid;
  margin: 0;
  grid-template-columns: 1fr 1fr;
}

.mobile-archive-card dl div {
  padding: 13px 16px;
}

.mobile-archive-card dl div:first-child {
  border-right: 1px solid var(--line-soft);
}

.mobile-archive-card dt {
  color: var(--muted);
  font-size: 8px;
}

.mobile-archive-card dd {
  margin: 3px 0 0;
  font-size: 11px;
}

.mobile-archive-note {
  margin: 0;
  padding: 0 16px 14px;
  color: var(--muted);
  font-size: 9px;
}

.merchant-settlement-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line-soft);
}

.merchant-settlement-summary span,
.merchant-settlement-summary strong {
  display: block;
}

.merchant-settlement-summary > div > span {
  color: var(--muted);
  font-size: 8px;
}

.merchant-settlement-summary > div > strong {
  margin-top: 2px;
  font-size: 11px;
}

.mobile-archive-card > footer {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  padding: 10px 13px;
  background: #fffdf8;
  border-top: 1px solid var(--line-soft);
}

.mobile-person-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-person-stats,
.mobile-merchant-counts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.mobile-person-stats > div,
.mobile-merchant-counts > div {
  padding: 13px 10px;
  text-align: center;
}

.mobile-person-stats > div:not(:last-child),
.mobile-merchant-counts > div:not(:last-child) {
  border-right: 1px solid var(--line-soft);
}

.mobile-person-stats span,
.mobile-merchant-counts span {
  display: block;
  color: var(--muted);
  font-size: 8px;
}

.mobile-person-stats strong,
.mobile-merchant-counts strong {
  display: block;
  margin-top: 3px;
  font-family: var(--number-font);
  font-size: 20px;
  line-height: 1;
}

.mobile-merchant-counts strong.clip {
  color: var(--signal-deep);
}

.mobile-merchant-counts strong.upload {
  color: var(--teal);
}

.mobile-full-link {
  display: flex;
  width: 100%;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  background: #fffdf8;
  border: 0;
  border-top: 1px solid var(--line-soft);
  font-size: 10px;
  font-weight: 750;
}

.mobile-full-link svg {
  width: 14px;
  height: 14px;
}

.mobile-account-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  color: #fff;
  background: var(--ink);
}

.mobile-account-card .avatar {
  width: 42px;
  height: 42px;
}

.mobile-account-card strong,
.mobile-account-card span {
  display: block;
}

.mobile-account-card strong {
  font-family: var(--serif-font);
  font-size: 18px;
}

.mobile-account-card div > span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 9px;
}

.mobile-more-links {
  display: flex;
  flex-direction: column;
  margin-top: 14px;
  border: 1px solid var(--line-soft);
}

.mobile-more-links > button {
  display: grid;
  width: 100%;
  min-height: 64px;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  background: transparent;
  border: 0;
  grid-template-columns: 34px minmax(0, 1fr) 16px;
  text-align: left;
}

.mobile-more-links > button:not(:last-child) {
  border-bottom: 1px solid var(--line-soft);
}

.mobile-more-links > button:active {
  background: var(--paper-deep);
}

.mobile-more-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--paper-deep);
}

.mobile-more-icon svg {
  width: 16px;
  height: 16px;
}

.mobile-more-links strong,
.mobile-more-links small {
  display: block;
}

.mobile-more-links strong {
  font-size: 11px;
}

.mobile-more-links small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.mobile-more-links > button > svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.mobile-network-card {
  margin-top: 18px;
  padding: 16px;
  color: #fff;
  background: var(--ink);
}

.mobile-network-card h3 {
  margin: 8px 0 5px;
  font-family: var(--serif-font);
  font-size: 19px;
}

.mobile-network-card > p:not(.eyebrow) {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 9px;
}

.network-url-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.network-url-list button {
  display: flex;
  min-height: 41px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--acid);
  border: 0;
  font-family: var(--number-font);
  font-size: 11px;
  font-weight: 750;
}

.network-url-list button small {
  color: rgba(23, 23, 20, 0.56);
  font-family: var(--body-font);
  font-size: 8px;
}

.network-url-empty {
  padding: 10px;
  background: var(--acid);
  color: var(--ink);
  font-family: var(--number-font);
}

.mobile-admin-metrics {
  display: grid;
  margin-bottom: 18px;
  background: var(--paper-light);
  border: 1px solid var(--ink);
  grid-template-columns: repeat(3, 1fr);
}

.mobile-admin-metrics > div {
  padding: 18px 13px;
  text-align: center;
}

.mobile-admin-metrics > div:not(:last-child) {
  border-right: 1px solid var(--line-soft);
}

.mobile-admin-metrics span {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.mobile-admin-metrics strong {
  display: block;
  margin-top: 5px;
  font-family: var(--number-font);
  font-size: 30px;
  line-height: 1;
}

.mobile-admin-metrics strong.alert {
  color: var(--signal-deep);
}

.mobile-approval-panel {
  margin-bottom: 18px;
}

.mobile-approval-list {
  display: flex;
  flex-direction: column;
}

.mobile-approval-list article {
  display: grid;
  align-items: center;
  gap: 11px;
  padding: 14px 15px;
  grid-template-columns: 36px minmax(0, 1fr) auto;
}

.mobile-approval-list article:not(:last-child) {
  border-bottom: 1px solid var(--line-soft);
}

.mobile-approval-list strong,
.mobile-approval-list span {
  display: block;
}

.mobile-approval-list strong {
  font-size: 11px;
}

.mobile-approval-list article > div:nth-child(2) span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.mobile-approval-actions {
  display: flex;
  gap: 5px;
}

.mobile-approval-actions button {
  min-height: 34px;
  padding: 7px 9px;
  background: transparent;
  border: 1px solid var(--line-soft);
  font-size: 9px;
  font-weight: 750;
}

.mobile-approval-actions button:first-child {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.admin-mobile-section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 12px;
}

.admin-mobile-section-title h2 {
  margin: 4px 0 0;
  font-family: var(--serif-font);
  font-size: 24px;
}

.admin-mobile-section-title > span {
  color: var(--muted);
  font-family: var(--number-font);
  font-size: 9px;
}

.admin-mobile-grid {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-mobile-card {
  position: relative;
  display: flex;
  min-height: 106px;
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
  padding: 15px;
  color: var(--ink);
  background: var(--paper-light);
  border: 1px solid var(--line);
  text-align: left;
}

.admin-mobile-card:active {
  background: var(--acid);
  transform: translateY(1px);
}

.admin-mobile-card-icon {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  background: var(--paper-deep);
  border: 1px solid var(--line-soft);
}

.admin-mobile-card-icon svg {
  width: 17px;
  height: 17px;
}

.admin-mobile-card-copy strong,
.admin-mobile-card-copy small {
  display: block;
}

.admin-mobile-card-copy strong {
  font-family: var(--serif-font);
  font-size: 16px;
}

.admin-mobile-card-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.admin-mobile-card > svg {
  position: absolute;
  right: 13px;
  bottom: 13px;
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.admin-mobile-badge {
  position: absolute;
  top: 11px;
  right: 11px;
  display: grid !important;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 5px;
  color: #fff;
  background: var(--signal);
  border-radius: 20px;
  font-family: var(--number-font);
  font-size: 9px;
  font-weight: 800;
}

.mobile-admin-recent {
  margin-top: 18px;
}

.mobile-team-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px;
}

.mobile-team-card {
  padding: 14px;
  background: #fffdf8;
  border: 1px solid var(--line-soft);
}

.mobile-team-card header {
  display: grid;
  align-items: center;
  gap: 10px;
  grid-template-columns: 36px minmax(0, 1fr) auto;
}

.mobile-team-card header strong,
.mobile-team-card header span {
  display: block;
}

.mobile-team-card header strong {
  font-family: var(--serif-font);
  font-size: 16px;
}

.mobile-team-card header span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.mobile-team-card header b {
  color: var(--signal-deep);
  font-family: var(--number-font);
  font-size: 15px;
}

.mobile-team-counts {
  display: grid;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px dashed var(--line-soft);
  grid-template-columns: repeat(3, 1fr);
}

.mobile-team-counts > div {
  text-align: center;
}

.mobile-team-counts > div:not(:last-child) {
  border-right: 1px solid var(--line-soft);
}

.mobile-team-counts span {
  display: block;
  color: var(--muted);
  font-size: 8px;
}

.mobile-team-counts strong {
  display: block;
  margin-top: 2px;
  font-family: var(--number-font);
  font-size: 17px;
}

.mobile-team-progress {
  height: 4px;
  margin-top: 11px;
  overflow: hidden;
  background: var(--paper-deep);
}

.mobile-team-progress i {
  display: block;
  height: 100%;
  background: var(--signal);
}

.settlement-current {
  overflow: hidden;
  background: var(--paper-light);
  border: 1px solid var(--ink);
}

.settlement-current-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  background: var(--ink);
  color: #fff;
}

.settlement-current-head h3 {
  margin: 5px 0 2px;
  font-family: var(--serif-font);
  font-size: 25px;
}

.settlement-current-head p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
}

.settlement-numbers {
  display: grid;
  border-bottom: 1px solid var(--line-soft);
  grid-template-columns: repeat(4, 1fr);
}

.settlement-numbers > div {
  padding: 16px;
  text-align: center;
}

.settlement-numbers > div:not(:last-child) {
  border-right: 1px solid var(--line-soft);
}

.settlement-numbers span {
  display: block;
  color: var(--muted);
  font-size: 8px;
}

.settlement-numbers strong {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--number-font);
  font-size: 27px;
  line-height: 1;
}

.settlement-numbers small {
  margin-left: 2px;
  color: var(--muted);
  font-size: 9px;
}

.settlement-progress {
  height: 6px;
  overflow: hidden;
  background: var(--paper-deep);
}

.settlement-progress i {
  display: block;
  height: 100%;
  background: var(--signal);
  transition: width 0.35s ease;
}

.settlement-time-grid {
  display: grid;
  padding: 13px 17px;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.settlement-time-grid span {
  display: block;
  color: var(--muted);
  font-size: 8px;
}

.settlement-time-grid strong {
  display: block;
  margin-top: 2px;
  font-family: var(--number-font);
  font-size: 10px;
}

.settlement-current-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 17px 17px;
}

.settlement-paid-note {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 700;
}

.settlement-paid-note svg {
  width: 15px;
  height: 15px;
}

.settlement-empty {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 36px 20px;
  background: var(--paper-deep);
  border: 1px dashed var(--line-soft);
  text-align: center;
}

.settlement-empty > svg {
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
}

.settlement-empty h3 {
  margin: 0;
  font-family: var(--serif-font);
  font-size: 22px;
}

.settlement-empty p {
  margin: 6px 0 14px;
  color: var(--muted);
  font-size: 10px;
}

.settlement-history-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin: 22px 0 10px;
}

.settlement-history-head h3 {
  margin: 4px 0 0;
  font-family: var(--serif-font);
  font-size: 20px;
}

.settlement-history-list {
  border: 1px solid var(--line-soft);
}

.settlement-history-row {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 13px;
  grid-template-columns: minmax(120px, 1.1fr) auto minmax(100px, 0.65fr) minmax(150px, 1fr) auto;
}

.settlement-history-row:not(:last-child) {
  border-bottom: 1px solid var(--line-soft);
}

.settlement-history-period strong,
.settlement-history-period span {
  display: block;
}

.settlement-history-period strong {
  font-family: var(--serif-font);
  font-size: 15px;
}

.settlement-history-period span,
.settlement-history-times span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.settlement-history-times span {
  display: block;
}

.settlement-history-numbers {
  text-align: right;
}

.settlement-history-numbers span,
.settlement-history-numbers strong {
  display: block;
}

.settlement-history-numbers span {
  color: var(--muted);
  font-size: 9px;
}

.settlement-history-numbers strong {
  margin-top: 2px;
  font-family: var(--number-font);
  font-size: 15px;
}

.settlement-history-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.settlement-history-actions button {
  min-height: 30px;
  padding: 6px 8px;
  background: transparent;
  border: 1px solid var(--line-soft);
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.settlement-history-actions button.accent {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.settlement-audit-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-soft);
}

.settlement-audit-list > div:not(.empty-mini) {
  display: grid;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  grid-template-columns: 1fr auto 1.5fr;
  font-size: 9px;
}

.settlement-audit-list > div:not(:last-child) {
  border-bottom: 1px dashed var(--line-soft);
}

.settlement-audit-list strong {
  font-size: 9px;
}

.settlement-audit-list small {
  color: var(--muted);
  text-align: right;
}

@media (max-width: 1180px) {
  :root {
    --sidebar: 210px;
  }

  .topbar {
    padding-inline: 25px;
  }

  .main-content {
    padding-inline: 25px;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .merchant-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .merchant-pulse:nth-child(2) {
    border-right: 0;
  }

  .merchant-pulse:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-soft);
  }

  .live-indicator {
    display: none;
  }

  .login-brand {
    padding-inline: 38px;
  }
}

@media (max-width: 960px) {
  .app {
    display: block;
  }

  .sidebar {
    inset: auto 0 0;
    width: 100%;
    height: calc(66px + env(safe-area-inset-bottom));
    flex-direction: row;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .brand,
  .sidebar-bottom {
    display: none;
  }

  .nav {
    width: 100%;
    flex-direction: row;
    gap: 2px;
    overflow: visible;
    padding: 7px 6px;
  }

  .nav-item {
    min-width: 0;
    min-height: 51px;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 6px 9px;
    font-size: 9px;
    text-align: center;
  }

  .nav-item.mobile-secondary {
    display: none;
  }

  .nav-item.mobile-more-button {
    display: flex;
  }

  .nav-item.mobile-admin-entry {
    display: flex;
  }

  body[data-role="admin"] .nav-item.mobile-more-button {
    display: none;
  }

  .nav-item svg {
    width: 16px;
    height: 16px;
  }

  .nav-count {
    position: absolute;
    top: 4px;
    right: 8px;
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    font-size: 8px;
  }

  .workspace {
    padding-bottom: calc(66px + env(safe-area-inset-bottom));
  }

  .mobile-quick-action {
    position: fixed;
    right: 15px;
    bottom: calc(80px + env(safe-area-inset-bottom));
    z-index: 30;
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 7px;
    padding: 8px 15px 8px 9px;
    color: var(--ink);
    background: var(--acid);
    border: 1px solid var(--ink);
    border-radius: 30px;
    box-shadow: 4px 4px 0 var(--ink);
    font-size: 11px;
    font-weight: 800;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
  }

  body[data-current-page="orders"] .mobile-quick-action,
  body[data-current-page="logs"] .mobile-quick-action,
  body[data-current-page="archives"] .mobile-quick-action,
  body[data-current-page="admin"] .mobile-quick-action {
    display: none;
  }

  .mobile-quick-action:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--ink);
  }

  .mobile-quick-icon {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    color: #fff;
    background: var(--ink);
    border-radius: 50%;
  }

  .mobile-quick-icon svg {
    width: 15px;
    height: 15px;
  }

  .mobile-profile {
    display: grid;
  }

  .mobile-profile .avatar {
    width: 36px;
    height: 36px;
    border: 0;
  }

  .profile-menu {
    right: 18px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    left: auto;
  }

  .hero-board {
    grid-template-columns: 1fr;
  }

  .hero-side {
    min-height: 180px;
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  .split-layout,
  .performance-layout {
    grid-template-columns: 1fr;
  }

  .login-screen {
    grid-template-columns: 1fr;
  }

  .login-brand {
    display: none;
  }

  .login-panel {
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }

  .login-footnote {
    position: static;
    width: min(420px, 100%);
    margin-top: 0;
    text-align: center;
  }

  .mobile-brand {
    display: flex;
  }
}

@media (max-width: 720px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }

  .topbar {
    height: calc(70px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 16px 0;
  }

  .topbar-index,
  .topbar p,
  .today-label {
    display: none;
  }

  .topbar h2 {
    font-size: 20px;
  }

  .main-content {
    min-height: calc(100vh - 70px);
    padding: 21px 15px calc(118px + env(safe-area-inset-bottom));
  }

  .page-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
  }

  .page-header h1 {
    font-size: 32px;
  }

  .approval-banner {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 14px;
  }

  .approval-banner-mark {
    width: 38px;
    height: 38px;
  }

  .approval-banner .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .page-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-copy {
    padding: 24px 21px;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .hero-side {
    padding: 24px 21px;
  }

  .hero-total {
    font-size: 85px;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .metric-grid.three {
    grid-template-columns: 1fr 1fr;
  }

  .metric-grid.three .metric-card:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line-soft);
  }

  .metric-card {
    min-height: 112px;
    padding: 17px;
  }

  .metric-card:nth-child(2) {
    border-right: 0;
  }

  .metric-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-soft);
  }

  .metric-value {
    font-size: 30px;
  }

  .panel-head {
    padding: 13px 15px;
  }

  .panel-body {
    padding: 13px 15px;
  }

  .inventory-row {
    grid-template-columns: 34px 1fr auto;
  }

  .inventory-bars {
    grid-column: 2 / -1;
  }

  .inventory-count {
    grid-column: 3;
    grid-row: 1;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .merchant-strip {
    grid-template-columns: 1fr;
  }

  .merchant-pulse {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line-soft);
  }

  .merchant-pulse:last-child {
    border-bottom: 0;
  }

  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .toolbar-left,
  .toolbar-right {
    width: 100%;
  }

  .toolbar-right > * {
    flex: 1;
  }

  .filter-row {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .filter-row .filter-control {
    width: 100%;
    min-width: 0;
  }

  .filter-row [data-order-filter="personId"] {
    grid-column: 1 / -1;
  }

  .filter-row > span {
    display: none;
  }

  .search-wrap,
  .search-control {
    width: 100%;
  }

  .order-summary {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid,
  .price-config {
    grid-template-columns: 1fr;
  }

  .form-grid .full {
    grid-column: auto;
  }

  .modal-backdrop {
    align-items: end;
    padding: 0;
  }

  .modal {
    width: 100%;
    max-height: 92vh;
    box-shadow: 0 -6px 0 rgba(0, 0, 0, 0.14);
    animation-name: sheet-in;
  }

  .modal-head,
  .modal-body,
  .modal-foot {
    padding-inline: 18px;
  }

  .login-panel {
    padding: 24px 17px;
    align-items: center;
    justify-content: flex-start;
  }

  .login-card {
    padding: 30px 23px;
  }

  .demo-access {
    align-items: flex-start;
    flex-direction: column;
  }

  .demo-chips {
    justify-content: flex-start;
  }

  .salary-hero {
    padding: 24px 21px;
  }

  .salary-amount {
    font-size: 57px;
  }

  .detail-meta {
    grid-template-columns: 1fr;
  }

  .settlement-numbers {
    grid-template-columns: 1fr 1fr;
  }

  .settlement-numbers > div:nth-child(2) {
    border-right: 0;
  }

  .settlement-numbers > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-soft);
  }

  .settlement-time-grid {
    grid-template-columns: 1fr;
  }

  .settlement-history-row {
    align-items: flex-start;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .settlement-history-numbers,
  .settlement-history-times {
    grid-column: 1;
  }

  .settlement-history-numbers {
    text-align: left;
  }

  .settlement-history-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .settlement-audit-list > div:not(.empty-mini) {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .settlement-audit-list small {
    text-align: left;
  }

  .settlement-current-actions .button {
    flex: 1;
  }

  .page-actions .button {
    flex: 1;
  }

  .mobile-order-card > header {
    padding: 15px;
  }

  .mobile-route {
    padding-inline: 8px;
  }

  .mobile-order-card > footer {
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    padding: 9px 12px 12px;
  }

  .mobile-order-card footer > div {
    width: 100%;
  }

  .mobile-card-action {
    min-height: 43px;
    flex: 1;
  }

  .mobile-order-link {
    align-self: flex-start;
  }

  .mobile-network-card {
    margin-bottom: 8px;
  }

  .modal-foot {
    padding-bottom: calc(15px + env(safe-area-inset-bottom));
  }
}

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
