:root {
  --hl-primary: #ff9900;
  --hl-primary-hover: #e08800;
  --hl-primary-light: #ffb84d;
  --hl-primary-dark: #cc7a00;
  --hl-accent: #146eb4;
  --hl-primary-soft: #fff4e5;
  --hl-gradient-primary: linear-gradient(145deg, var(--hl-primary-light), var(--hl-primary));
  --hl-gradient-primary-deep: linear-gradient(145deg, var(--hl-primary-light) 0%, var(--hl-primary) 52%, var(--hl-primary-dark) 100%);
  --hl-gradient-primary-hover: linear-gradient(145deg, var(--hl-primary), var(--hl-primary-dark));
  --hl-gradient-pay: linear-gradient(100deg, #5ec8f7 0%, #8fd8ff 48%, #c5ecff 100%);
  --hl-gradient-pay-shell:
    radial-gradient(ellipse 130% 90% at 50% -8%, rgba(255, 255, 255, 0.55), transparent 55%),
    linear-gradient(180deg, #d4f1ff 0%, #a8e4ff 35%, #7dd3fc 65%, #5ec8f7 100%);
  --hl-gradient-pay-card:
    radial-gradient(circle at 28% 32%, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.1) 32%, transparent 52%),
    linear-gradient(125deg, #7ec8ef 0%, #52b4e3 38%, #2d9fd8 68%, #146eb4 100%);
  --hl-gradient-gold-shell:
    radial-gradient(ellipse 120% 88% at 50% -4%, rgba(255, 255, 255, 0.48), transparent 52%),
    radial-gradient(ellipse 110% 75% at 50% 100%, rgba(197, 160, 89, 0.2), transparent 48%),
    linear-gradient(180deg, #c5a059 0%, #d4af57 14%, #e8d48a 36%, #faf6e8 48%, #fff8e1 54%, #f0e0a8 74%, #d4af37 100%);
  --hl-gradient-start-tab:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.35), transparent 42%),
    linear-gradient(145deg, #8fd8ff 0%, #5ec8f7 45%, #146eb4 100%);
  --hl-shadow-gold-card: 0 10px 28px rgba(72, 52, 20, 0.14);
  --hl-focus-ring: rgba(255, 153, 0, 0.38);
  --hl-secondary: #232f3e;
  --hl-bg: #f2f2f2;
  --hl-surface: #f2f2f2;
  --hl-sidebar: #232f3e;
  --hl-border: #e0e4ea;
  --hl-border-strong: #c8d0e0;
  --hl-text: #232f3e;
  --hl-muted: #5a6673;
  --hl-danger: #c0392b;
  --hl-gold: #ff9900;
  --neu-light: #ffffff;
  --neu-dark: #c5cdd8;
  --neu-raised: 8px 8px 18px var(--neu-dark), -8px -8px 18px var(--neu-light);
  --neu-raised-sm: 5px 5px 12px var(--neu-dark), -5px -5px 12px var(--neu-light);
  --neu-inset: inset 5px 5px 12px var(--neu-dark), inset -5px -5px 12px var(--neu-light);
  --neu-flat: 0 10px 24px rgba(35, 47, 62, 0.1);
  --space-page: 20px;
  --space-card: 16px;
  --sidebar-w: 248px;
  --sidebar-collapsed-w: 76px;
  --shadow: var(--neu-raised-sm);
  --radius: 20px;
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Rajdhani, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--hl-text);
  background: var(--hl-bg);
}

h1, h2, h3 {
  font-weight: 700;
}

body.is-compact {
  --space-page: 12px;
  --space-card: 12px;
}

h1, h2, h3, p { margin: 0; }

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

button { cursor: pointer; }

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--hl-primary);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: white;
  color: var(--hl-text);
  padding: 8px 12px;
  border-radius: 8px;
}

.skip-link:focus { top: 12px; }

.app-shell { display: flex; min-height: 100vh; }

.app-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

body.no-sidebar .app-shell {
  display: block;
  background: var(--hl-gradient-gold-shell);
  background-attachment: fixed;
  min-height: 100vh;
}

body.no-sidebar .app-main {
  width: 100%;
  max-width: none;
  background: transparent;
}

body.no-sidebar .main {
  padding: 0 0 96px;
}

body.no-sidebar .main__inner {
  width: min(430px, 100%);
  margin: 0 auto;
  gap: 0;
  padding: 0 0 24px;
}

body.no-sidebar .topbar__menu {
  display: none;
}

body.no-sidebar .footer {
  display: none;
}

body.no-sidebar .app-header {
  width: min(430px, 100%);
  margin: 0 auto;
}

.app-header__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 12px 10px;
  color: inherit;
  text-decoration: none;
}

.app-header__brand span {
  display: none;
}

.app-header__brand img {
  width: auto;
  height: auto;
  max-width: min(94%, 300px);
  max-height: 72px;
  object-fit: contain;
  flex-shrink: 0;
}

.sidebar {
  width: var(--sidebar-w);
  background: var(--hl-sidebar);
  color: #e8f5ee;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  flex-shrink: 0;
  z-index: 40;
}

.sidebar__head {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 12px 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  padding: 4px;
  border-radius: 8px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong { font-size: 1rem; color: white; }

.brand-copy small { color: #c9a227; }

.side-nav {
  flex: 1;
  overflow: auto;
  padding: 4px 10px 12px;
}

.side-nav ul { list-style: none; margin: 0; padding: 0; }

.nav-group__title {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 14px 10px 6px;
  background: none;
  border: 0;
  color: #9bc9ad;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-group.is-collapsed [data-collapse-list] { display: none; }

.nav-group.is-collapsed .bi-chevron-down { transform: rotate(-90deg); }

.sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #e8f5ee;
}

.sidebar a i { font-size: 1.05rem; color: #9bc9ad; }

.sidebar a:hover { background: rgba(255, 255, 255, 0.06); }

.sidebar a.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  box-shadow: inset 3px 0 0 #c9a227;
}

.sidebar a.is-active i { color: #c9a227; }

.sidebar .icon-button { color: #e8f5ee; }

.sidebar .icon-button:hover { background: rgba(255, 255, 255, 0.08); }

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 12px 14px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-user:hover { background: rgba(255, 255, 255, 0.09); }

.sidebar-user strong { display: block; color: white; font-size: 0.92rem; }

.sidebar-user small { color: #9bc9ad; }

.sidebar__close { display: none; }

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 28, 43, 0.48);
  z-index: 30;
}

.backdrop[hidden] { display: none !important; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 8px 16px;
  background: var(--hl-surface);
  border-bottom: 1px solid var(--hl-border);
}

.topbar__start,
.topbar__end {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.topbar__menu { display: none; }

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.crumbs li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--hl-muted);
  font-size: 0.92rem;
}

.crumbs [aria-current="page"] {
  color: var(--hl-text);
  font-weight: 700;
}

.demo-chip {
  background: var(--hl-primary-soft);
  color: var(--hl-primary);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.topbar-search {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 210px;
  padding: 0 10px;
  background: var(--hl-bg);
  border-radius: 8px;
  color: var(--hl-muted);
}

.topbar-search input {
  width: 100%;
  height: 36px;
  border: 0;
  background: transparent;
  outline: none;
  color: var(--hl-text);
}

.icon-button {
  position: relative;
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--hl-text);
}

.icon-button:hover { background: var(--hl-bg); }

.count-pill {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--hl-danger);
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.user-button {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 8px 0 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.user-button:hover { background: var(--hl-bg); }

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2f9e5f;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.menu { position: relative; }

.menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  min-width: 220px;
  padding: 6px;
  background: white;
  border: 1px solid var(--hl-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(16, 28, 43, 0.12);
}

.menu__panel[hidden] { display: none !important; }

.menu__panel--wide { width: min(320px, 80vw); }

.menu__panel a,
.menu__panel button {
  display: flex;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--hl-text);
}

.menu__panel a:hover,
.menu__panel button:hover { background: var(--hl-bg); }

.menu__head,
.menu__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
}

.menu__foot {
  border-top: 1px solid var(--hl-border);
  color: var(--hl-primary);
  font-weight: 700;
}

.main { flex: 1; padding: var(--space-page); }

.main__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.demo-banner {
  margin: 0;
  padding: 10px 14px;
  border: 0;
  border-radius: 14px;
  background: #eaf7f0;
  color: #1f7a48;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(16, 28, 43, 0.05);
}

.impersonation-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: #fff4e5;
  color: #8a4b00;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(16, 28, 43, 0.06);
}

.impersonation-banner form {
  margin: 0;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.page-header__actions,
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.eyebrow {
  margin-bottom: 4px;
  color: var(--hl-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 { font-size: 1rem; font-weight: 700; }

.lede { margin-top: 4px; color: var(--hl-muted); max-width: 66ch; }

.muted { color: var(--hl-muted); font-size: 0.85rem; }

.layout-4,
.layout-3,
.layout-split,
.stack { display: grid; gap: 14px; }

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

.stack { align-content: start; }

.panel {
  min-width: 0;
  background: var(--hl-surface);
  border: 1px solid var(--hl-border);
  border-radius: var(--radius);
  padding: var(--space-card);
  box-shadow: var(--shadow);
}

.panel__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.panel__head--plain { margin-bottom: 8px; }

.stat-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-height: 96px;
  padding: var(--space-card);
  background: var(--hl-surface);
  border: 1px solid var(--hl-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-card__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--hl-primary-soft);
  color: var(--hl-primary);
}

.stat-card__label {
  color: var(--hl-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.stat-card__value {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.15;
}

.stat-card__note { color: var(--hl-muted); font-size: 0.75rem; }

.fact-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin: 0;
}

.fact-list dt { color: var(--hl-muted); font-size: 0.78rem; }

.fact-list dd { margin: 0; font-weight: 700; }

.meter { margin-bottom: 10px; }

.meter__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.meter__track {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #efe6dc;
}

.meter__bar {
  display: block;
  height: 100%;
  width: var(--meter, 0%);
  border-radius: inherit;
  background: var(--hl-primary);
}

.meter__bar--draft { background: #8a7b6e; }
.meter__bar--in-review { background: var(--hl-primary); }
.meter__bar--packed { background: #0f6b45; }
.meter__bar--completed { background: #6b4a32; }
.meter__bar--on-hold { background: #8a5a10; }

.summary-list { list-style: none; margin: 0 0 12px; padding: 0; }

.summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--hl-border);
}

.quick-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 14px;
  background: white;
  border: 1px solid var(--hl-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quick-card:hover { border-color: #e5e9ef; background: #ffffff; }

.quick-card i { font-size: 1.25rem; color: var(--hl-primary); }

.quick-card strong,
.quick-card small { display: block; }

.quick-card small { color: var(--hl-muted); }

.field {
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--hl-border-strong);
  border-radius: 8px;
  background: white;
}

.field[readonly] { background: #f4f7f8; }

textarea.field {
  height: auto;
  min-height: 110px;
  padding: 8px 10px;
  width: 100%;
}

.flash-list { display: flex; flex-direction: column; gap: 8px; }

.flash {
  margin: 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--hl-primary-soft);
}

.flash--error { background: #fdecec; color: #7a2424; }

.field-error {
  margin: 4px 0 0;
  color: #9b2f2f;
  font-size: 0.85rem;
  font-weight: 700;
}

.flash--ok { background: #e5f5ec; color: #0f6b45; }

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 0;
  color: var(--hl-text);
}

body.auth-body {
  min-height: 100vh;
  background-color: #ffffff;
  background-image: none;
}

body.auth-body .app-shell { display: block; min-height: 100vh; }

body.auth-body .app-main {
  width: min(420px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 40px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

body.auth-body .main { padding: 0; }

body.auth-body .main__inner {
  width: 100%;
  gap: 12px;
}

body.auth-body:has(.auth-panel) .auth-brand,
body.auth-body:has(.login-screen) .auth-brand {
  display: none;
}

body.auth-body:has(.login-screen) {
  background: #f0f2f5;
  background-image: none;
}

body.auth-body:has(.login-screen) .app-main {
  width: min(420px, calc(100% - 24px));
  padding: 24px 0 40px;
}

body.auth-body:has(.login-screen) .main__inner {
  gap: 12px;
}

.login-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 8px 8px;
  text-align: center;
  transform: none;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.login-screen--card {
  padding: 8px 0;
  width: 100%;
}

.login-screen__card {
  width: 100%;
  padding: 28px 22px 20px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 36px rgba(16, 28, 43, 0.08);
  text-align: center;
}

.login-screen__logo-wrap {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16, 28, 43, 0.08);
}

.login-screen__logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.login-screen__title {
  margin: 0;
  font-family: Rajdhani, "Segoe UI", sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0;
  color: #1a1f26;
  text-shadow: none;
}

.login-screen__subtitle {
  margin: 8px auto 22px;
  max-width: 28ch;
  font-family: "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
  color: #6b7280;
}

.login-screen__form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-screen__field { width: 100%; text-align: left; }

.login-screen__label {
  display: block;
  margin: 0 0 6px 4px;
  color: #4b5563;
  font-size: 0.86rem;
  font-weight: 600;
}

.login-screen__control {
  position: relative;
}

.login-screen__input {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  color: #1a1f26;
  font-size: 0.98rem;
  box-shadow: none;
}

.login-screen__input::placeholder { color: #9aa3af; }

.login-screen__input:focus {
  outline: none;
  border-color: #f9b06e;
  box-shadow: 0 0 0 3px rgba(249, 176, 110, 0.28);
}

.login-screen__select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  color: #6b7280;
}

.login-screen__select:valid {
  color: #1a1f26;
}

.req { color: #e11d48; font-weight: 700; }

.login-screen__agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 2px 0 4px;
  text-align: left;
  color: #4b5563;
  font-size: 0.88rem;
  line-height: 1.4;
  cursor: pointer;
}

.login-screen__agree input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: #f9b06e;
}

.login-screen__agree a {
  color: #f9b06e;
  font-weight: 600;
}

.login-screen__affix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa3af;
  font-size: 1.05rem;
  pointer-events: none;
}

.login-screen__password { position: relative; }

.login-screen__password .login-screen__input { padding-right: 48px; }

.login-screen__eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #7a8796;
  font-size: 1.15rem;
}

.login-screen__row {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}

.login-screen__forgot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f9b06e;
  font-size: 0.9rem;
  font-weight: 600;
}

.login-screen__forgot:hover { color: #f0a15c; }

.login-screen__submit {
  width: 100%;
  height: 50px;
  margin-top: 6px;
  border: 0;
  border-radius: 999px;
  background: #f9b06e;
  color: #fff;
  font-family: Rajdhani, "Segoe UI", sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 18px rgba(249, 176, 110, 0.35);
}

.login-screen__submit:hover {
  filter: brightness(1.04);
}

.login-screen__submit:active {
  transform: translateY(1px);
}

.login-screen__trouble {
  margin-top: 18px;
  color: #9aa3af;
  font-size: 0.92rem;
  font-weight: 600;
}

.login-screen__signup {
  margin-top: 18px;
  color: #6b7280;
  font-size: 0.95rem;
}

.login-screen__signup a {
  color: #f9b06e;
  font-weight: 700;
}

.login-screen__signup .bi {
  color: #f9b06e;
  margin-right: 4px;
}

.login-screen__copy {
  margin: 18px 0 0;
  color: #9aa3af;
  font-size: 0.78rem;
}

body.auth-body:has(.login-screen) .flash {
  transform: none;
  border-radius: 14px;
  background: #fff;
  color: #1a1f26;
  box-shadow: 0 8px 20px rgba(16, 28, 43, 0.08);
}

body.auth-body:has(.login-screen) .flash--error {
  background: #fff5f5;
  color: #9b2f2f;
  border: 1px solid #f5c2c2;
}

body.auth-body:has(.login-screen) .field-error {
  margin: 6px 0 0 4px;
}

.login-screen--signup .login-screen__logo-wrap {
  width: 80px;
  height: 80px;
  margin-bottom: 12px;
}

.login-screen--signup .login-screen__logo {
  width: 72px;
  height: 72px;
}

.login-screen--signup .login-screen__subtitle {
  margin-bottom: 18px;
}

.login-screen--signup .login-screen__form {
  gap: 12px;
}

.login-screen--signup .login-screen__card {
  padding-top: 22px;
}

.login-screen__badge {
  margin: 0 0 6px;
  color: #1f7a48;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-screen--admin .login-screen__card {
  border-top: 4px solid #143d28;
}

.auth-panel {
  padding: 28px 24px 24px;
  border: 1px solid rgba(138, 75, 36, 0.12);
  border-radius: 20px;
  background: rgba(255, 252, 248, 0.94);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 18px 40px rgba(72, 42, 18, 0.1);
}

.auth-panel__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.auth-panel__brand img {
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(138, 75, 36, 0.22);
}

.auth-panel__eyebrow {
  margin: 0 0 2px;
  color: #2f9e5f;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-panel h1 {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.auth-panel__lede {
  margin: 0 0 18px;
  color: var(--hl-muted);
  font-size: 0.95rem;
}

.auth-panel__form { gap: 14px; }

.auth-panel__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.auth-panel__label-row .text-link {
  font-size: 0.8rem;
}

.auth-panel .field {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  border-color: #e5e9ef;
  background: #ffffff;
}

.auth-panel .field:focus {
  border-color: #3bb56f;
  box-shadow: 0 0 0 3px rgba(201, 132, 74, 0.2);
  outline: none;
}

.auth-panel__submit {
  width: 100%;
  height: 46px;
  margin-top: 4px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #3bb56f 0%, #2f9e5f 100%);
  box-shadow: 0 10px 18px rgba(138, 75, 36, 0.24);
  font-size: 1rem;
}

.auth-panel__submit:hover {
  background: linear-gradient(180deg, #2f9e5f 0%, #1f7a48 100%);
}

.auth-panel__foot {
  margin: 18px 0 0;
  text-align: center;
  color: var(--hl-muted);
  font-size: 0.92rem;
}

body.auth-body .flash-list { margin-bottom: 4px; }

.status--rejected,
.status--cancelled { background: #fdecec; color: #7a2424; }

.status--in-progress,
.status--pending { background: #eaf7f0; color: #2f9e5f; }

.status--submitted,
.status--on-hold { background: #fbf3e3; color: #8a5a10; }

.status--approved,
.status--completed,
.status--resolved { background: #e5f5ec; color: #0f6b45; }

.status--open,
.status--assigned { background: #eaf7f0; color: #2f9e5f; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  background: white;
  color: var(--hl-text);
}

.button--primary {
  border: 0;
  background: var(--hl-gradient-primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(255, 153, 0, 0.32);
}

.button--primary:hover {
  background: var(--hl-gradient-primary-hover);
  color: #fff;
}

.button--secondary {
  border-color: var(--hl-border-strong);
  background: white;
  box-shadow: 0 6px 14px rgba(16, 28, 43, 0.06);
}

.button--secondary:hover { background: #f8fafc; }

.button--ghost { background: transparent; color: var(--hl-primary); }
.button--danger { color: #b42318; }
.button--ghost.button--danger:hover,
.button--ghost.button--danger:focus {
  color: #912018;
  border-color: #fecdca;
  background: #fef3f2;
}

.button:disabled { opacity: 0.55; cursor: not-allowed; }

.text-link,
.text-button {
  color: var(--hl-primary);
  font-weight: 700;
  background: none;
  border: 0;
  padding: 0;
}

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

.data-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table th {
  padding: 10px 12px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hl-muted);
  background: #f7f9fb;
  border-bottom: 1px solid var(--hl-border);
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.data-table td {
  padding: 11px 12px;
  border-top: 1px solid #e6edf2;
  vertical-align: middle;
}

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

.record-id { font-weight: 700; color: var(--hl-primary); }

.status {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: #eef2f5;
  color: var(--hl-secondary);
}

.status--draft { background: #eef2f5; color: #3d4f61; }
.status--in-review { background: #eaf7f0; color: #2f9e5f; }
.status--packed { background: #e5f5ec; color: #0f6b45; }
.status--completed { background: #eaf7f0; color: #1f7a48; }
.status--on-hold { background: #fbf3e3; color: #8a5a10; }
.status--update { background: #eaf7f0; color: #2f9e5f; }
.status--note { background: #fbf3e3; color: #8a5a10; }
.status--session { background: #eaf7f0; color: #2f9e5f; }
.status--system { background: #eef2f5; color: #3d4f61; }

.result-count {
  margin: 0 0 8px;
  color: var(--hl-muted);
  font-size: 0.82rem;
}

.scroll-hint {
  display: none;
  margin: 0 0 8px;
  color: var(--hl-muted);
  font-size: 0.8rem;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.pager__btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--hl-border);
  border-radius: 8px;
  background: white;
}

.pager__btn.is-current {
  background: var(--hl-primary);
  border-color: var(--hl-primary);
  color: white;
}

.pager__btn:disabled { opacity: 0.45; }

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 12px 0 4px;
}

.empty-state i { font-size: 1.4rem; color: var(--hl-primary); }

.timeline { list-style: none; margin: 0; padding: 0; }

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  padding-bottom: 14px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 16px;
  bottom: 0;
  width: 2px;
  background: #d5e2e8;
}

.timeline li:last-child::before { display: none; }

.timeline__dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--hl-primary);
}

.timeline__title { font-weight: 700; }

.timeline time { color: var(--hl-muted); font-size: 0.8rem; }

.notice-list { list-style: none; margin: 0; padding: 0; }

.notice-item { padding: 10px; border-radius: 8px; }

.notice-list--flat .notice-item {
  padding-left: 0;
  padding-right: 0;
  border-radius: 0;
}

.notice-item + .notice-item { border-top: 1px solid var(--hl-border); }

.notice-item.is-unread { background: #f3fafb; }

.notice-item__title { font-weight: 700; }

.notice-item p,
.notice-item time { color: var(--hl-muted); font-size: 0.85rem; }

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

.form-row { display: flex; flex-direction: column; gap: 4px; }

.form-row label { font-size: 0.82rem; font-weight: 700; }

.form .field,
.form .button { width: fit-content; }

.form .field { width: 100%; }

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-top: 1px solid var(--hl-border);
}

.check span { display: flex; flex-direction: column; }

.check small { color: var(--hl-muted); }

.contact-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.skeleton { display: grid; gap: 8px; margin: 8px 0 12px; }

.skeleton span {
  display: block;
  height: 14px;
  border-radius: 6px;
  background: #e6eef2;
  animation: pulse 1.1s ease infinite;
}

.skeleton span:nth-child(2) { width: 92%; }
.skeleton span:nth-child(3) { width: 84%; }
.skeleton span:nth-child(4) { width: 70%; }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 8px 22px 18px;
  color: var(--hl-muted);
  font-size: 0.82rem;
}

.footer nav { display: flex; gap: 12px; }

.footer a { color: var(--hl-primary); font-weight: 700; }

.toast-stack {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  max-width: 320px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #143d28;
  color: white;
  box-shadow: 0 8px 24px rgba(16, 28, 43, 0.2);
}

.toast.is-leaving { opacity: 0; }

@keyframes pulse {
  50% { opacity: 0.45; }
}

@media (min-width: 768px) {
  .layout-4 { grid-template-columns: 1fr 1fr; }
  .layout-3 { grid-template-columns: 1fr 1fr 1fr; }
}

@media (min-width: 992px) {
  .layout-split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr); }
  .layout-split--wide { grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.4fr); }

  body.sidebar-collapsed .sidebar { width: var(--sidebar-collapsed-w); }

  body.sidebar-collapsed .brand-copy,
  body.sidebar-collapsed .nav-label,
  body.sidebar-collapsed .user-meta,
  body.sidebar-collapsed .nav-group__title { display: none; }

  body.sidebar-collapsed .sidebar a,
  body.sidebar-collapsed .sidebar-user,
  body.sidebar-collapsed .brand { justify-content: center; }

  body.sidebar-collapsed .nav-group.is-collapsed [data-collapse-list] { display: block; }
}

@media (min-width: 1200px) {
  .layout-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
  .topbar__menu,
  .sidebar__close { display: inline-grid; }

  .sidebar__collapse { display: none; }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: min(280px, 88vw);
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }

  body.sidebar-open .sidebar { transform: none; }
}

@media (max-width: 760px) {
  .user-button__name,
  .demo-chip { display: none; }

  .topbar-search {
    width: 36px;
    min-width: 0;
    padding: 0;
    justify-content: center;
    overflow: hidden;
  }

  .topbar-search input { width: 0; padding: 0; }

  .topbar-search:focus-within {
    width: min(190px, 48vw);
    padding: 0 8px;
  }

  .topbar-search:focus-within input { width: 100%; }

  .fact-list { grid-template-columns: 1fr; }

  .scroll-hint { display: block; }
}

.tabbar,
.neo-progress { display: none; }

.neo-ring {
  position: relative;
  width: 168px;
  height: 168px;
  margin: 8px auto 12px;
}

.neo-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }

.neo-ring__track,
.neo-ring__value {
  fill: none;
  stroke-width: 10;
}

.neo-ring__track { stroke: #efe6dc; }

.neo-ring__value {
  stroke: #2f9e5f;
  stroke-linecap: round;
  stroke-dasharray: 289;
  stroke-dashoffset: calc(289 - (289 * var(--pct) / 100));
}

.neo-ring__label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 2px;
}

.neo-ring__label strong { font-size: 1.6rem; line-height: 1; }

.neo-ring__label span { color: var(--hl-muted); font-size: 0.78rem; }

.neo-progress { text-align: center; }

.neo-progress__title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hl-muted);
}

.home-desk {
  padding: 0 14px 20px;
}

.home-desk__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 8px 10px;
  background: transparent;
  margin: 0 -14px 8px;
}

.home-desk__brand strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1f26;
  line-height: 1.1;
}

.home-desk__brand small {
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 600;
}

.home-hero {
  margin: 0 0 10px;
  padding: 4px 2px 2px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #1a1f26;
}

.home-hero__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-hero h1 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  color: #1a1f26;
}

.home-hero h1 span {
  font-weight: 700;
}

.home-hero__note {
  margin-top: 6px;
  color: #6b7280;
  font-size: 0.88rem;
}

.home-hero button {
  border: 0;
  background: transparent;
  padding: 0;
  color: #1a1f26;
  font-weight: 700;
  font-size: 0.95rem;
}

.home-hero__link {
  text-decoration: underline;
  color: var(--hl-primary);
  font-weight: 700;
}

.home-ticker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.home-ticker__bell {
  flex: 0 0 auto;
  color: #e6b422;
  font-size: 1rem;
}

.home-ticker__track {
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.home-ticker__track p {
  display: inline-block;
  margin: 0;
  padding-left: 100%;
  color: #4b5563;
  font-size: 0.82rem;
  animation: home-ticker 18s linear infinite;
}

@keyframes home-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.home-links,
.level-card {
  background: #fff;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(72, 52, 20, 0.12);
}

.home-links {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px 2px;
  margin: 0 0 14px;
  padding: 14px 8px 12px;
}

.home-links a {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 2px 0;
  color: #374151;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
}

.home-links i {
  color: var(--hl-primary);
  font-size: 22px;
  line-height: 1;
}

.level-card { margin: 0 0 14px; padding: 16px 14px 18px; }

.level-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.level-card__head h2 { font-size: 1rem; font-weight: 700; color: #1a1f26; }

.level-card__head a {
  color: var(--hl-primary);
  font-size: 0.85rem;
  font-weight: 700;
}

.level-marks {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 14px 0 8px;
  padding: 0;
  list-style: none;
}

.level-marks li { display: grid; place-items: center; flex: 1; }

.shield {
  display: grid;
  place-items: center;
  width: 52px;
  height: 58px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.shield svg { width: 42px; height: 50px; }

.shield__badge {
  display: block;
  width: 52px;
  height: auto;
  object-fit: contain;
}

.level-badge {
  display: block;
  width: 72px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.shield path { fill: #c9c2b6; }

.shield__star { fill: rgba(255, 255, 255, 0.82); }

.shield--bronze path { fill: #c48a3a; }
.shield--silver path { fill: #8ea0a8; }
.shield--gold path { fill: #d4a017; }
.shield--ruby path { fill: #c4503c; }
.shield--jade path { fill: #2f8f6b; }
.shield .shield__star { fill: rgba(255, 255, 255, 0.9); }

.level-marks .is-current .shield,
.level-marks .is-picked .shield {
  background: #f3eee3;
  border-radius: 12px;
  box-shadow: 0 0 0 2px rgba(196, 138, 58, 0.35);
}

.level-card__note strong { color: #1a1f26; font-weight: 700; }

.level-card__name {
  margin-top: 2px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8f7a3a;
}

.level-card__note {
  margin-top: 2px;
  color: #6b7280;
  font-size: 0.9rem;
}

body.page-desk\.levels.no-sidebar .app-shell {
  background: var(--hl-gradient-gold-shell);
  background-attachment: fixed;
}

.desk-page {
  padding: 14px 16px 8px;
}

.desk-page h1 {
  margin: 8px 0 10px;
  font-size: 1.45rem;
  color: #1a1f26;
}

.desk-page p {
  margin: 0 0 10px;
  color: #374151;
  font-weight: 600;
}

.license-page .license-image {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 4px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(26, 31, 38, 0.1);
}

body.no-copy .protected-copy,
body.no-copy .protected-copy * {
  -webkit-user-select: none;
  user-select: none;
}

body.no-copy input,
body.no-copy textarea,
body.no-copy select,
body.no-copy button,
body.no-copy .signature-pad,
body.no-copy label.contract-upload {
  -webkit-user-select: auto;
  user-select: auto;
}

body.page-desk\.help_page.no-sidebar .main__inner,
body.page-desk\.help_page.auth-body .main__inner,
body.page-desk\.about_page.no-sidebar .main__inner {
  padding-left: 0;
  padding-right: 0;
}

.faq-page {
  padding: 0 0 24px;
}

.faq-page .level-board__back {
  margin: 10px 14px 6px;
  color: #3d3424;
}

.faq-doc {
  margin: 0;
  padding: 18px 16px 22px;
  background: #faf8f4;
  color: #1a1f26;
  box-shadow: 0 10px 24px rgba(61, 52, 36, 0.1);
}

.faq-doc h1 {
  margin: 0 0 16px;
  font-size: 1.35rem;
  font-weight: 800;
}

.faq-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.55;
}

.faq-list > li {
  margin-bottom: 14px;
}

.faq-list__q {
  margin: 0 0 6px;
  font-weight: 800;
}

.faq-list ol {
  margin: 0;
  padding-left: 1.15rem;
}

.faq-list ol li {
  margin-bottom: 4px;
}

.about-doc h2 {
  margin: 18px 0 8px;
  font-size: 1rem;
  font-weight: 800;
}

.about-doc__lead {
  margin: 0 0 12px;
  line-height: 1.55;
}

.about-doc__list {
  margin: 0 0 8px;
  padding-left: 1.15rem;
}

.about-doc__list li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.about-doc p {
  margin: 0 0 10px;
  line-height: 1.55;
}

body.page-desk\.contract_info.no-sidebar .main__inner {
  padding-left: 0;
  padding-right: 0;
}

body.page-desk\.contract_info.no-sidebar .app-header {
  border-bottom: none;
}

.contract-page {
  padding: 0 0 20px;
  color: #1a1f26;
}

.contract-page .level-board__back {
  margin: 10px 14px 6px;
  color: #3d3424;
}

.contract-doc {
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(61, 52, 36, 0.12);
}

.contract-doc__hero {
  padding: 20px 16px 16px;
  color: #1a1f26;
  background: linear-gradient(180deg, #8fd8ff 0%, #5ec8f7 48%, #4db8ef 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.contract-doc__hero h1 {
  margin: 0 0 12px;
  font-family: "Rajdhani", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #15803d;
  text-transform: none;
}

.contract-doc__hero p {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.55;
  color: #1a1f26;
}

.contract-required { color: #dc2626; }

.contract-sign-block {
  padding: 16px 16px 4px;
  background: #fff;
}

.contract-sign-block--party-a {
  padding-bottom: 12px;
  border-bottom: 1px solid #ece7df;
}

.contract-sign-block .signature-pad {
  min-height: 110px;
  border: 1px solid #c9c4bc;
  border-radius: 4px;
  background: #fff;
}

.contract-sign-block .signature-pad__actions {
  display: flex;
  gap: 10px;
  margin: 8px 0 0;
}

.contract-sign-block .signature-pad__actions .button {
  min-height: 34px;
  padding: 0 16px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 6px;
}

.contract-sign-block__label {
  margin: 0 0 10px;
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.35;
}

.contract-sign-block__preview {
  min-height: 88px;
  border: 1px solid #c9c4bc;
  border-radius: 4px;
  background: #fff;
}

.contract-sign-block__preview img {
  display: block;
  width: 100%;
  max-height: 120px;
  object-fit: contain;
}

.contract-sign-block__party-a {
  display: block;
  max-width: 200px;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.contract-sign-block__placeholder,
.contract-sign-block__hint {
  margin: 0;
  color: #6b7280;
  font-weight: 600;
  font-size: 0.84rem;
  line-height: 1.4;
}

.contract-doc__body {
  padding: 14px 16px 10px;
  background: #faf8f4;
  color: #4b5563;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.58;
}

.contract-doc__section {
  margin: 0 0 14px;
  white-space: pre-line;
}

.contract-doc__divider {
  margin: 0;
  padding: 14px 16px;
  border-top: 1px dashed #c9c4bc;
  background: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 0.88rem;
  color: #4b5563;
}

.contract-status {
  margin: 0;
  padding: 12px 16px;
  font-weight: 800;
  text-align: center;
  background: #fff;
}

.contract-status--pending { color: #b45309; }
.contract-status--approved { color: #15803d; }
.contract-status--rejected { color: #b91c1c; }

.contract-form {
  padding: 16px 16px 22px;
  background: #fff;
}

.contract-field {
  display: block;
  margin: 0 0 18px;
}

.contract-field > span {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.35;
}

.contract-field small {
  display: block;
  margin: -4px 0 8px;
  color: #6b7280;
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1.4;
}

.contract-input {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: #f0ebe3;
  padding: 12px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1a1f26;
}

.contract-input:focus {
  outline: 2px solid #4db8ef;
  outline-offset: 1px;
}

.contract-input[readonly] {
  color: #6b7280;
}

.contract-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding: 12px;
  border: 1px dashed #c9c4bc;
  border-radius: 8px;
  background: #faf8f4;
  text-align: center;
  cursor: pointer;
}

.contract-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.contract-upload span {
  font-size: 0.82rem;
  font-weight: 700;
  color: #6b7280;
  line-height: 1.4;
}

.contract-submit {
  width: 100%;
  margin-top: 4px;
  border: 0;
  border-radius: 8px;
  background: #4c8ef7;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  padding: 13px;
}

.signature-pad {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 120px;
  touch-action: none;
}

.signature-pad__actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.level-board {
  padding: 14px 16px 8px;
}

.level-board__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 12px;
  color: #3d3424;
  font-size: 0.95rem;
  font-weight: 700;
}

.level-board__empty {
  margin: 24px 0;
  text-align: center;
  color: #3d3424;
  font-weight: 700;
}

.perk-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 0 0 14px;
  padding: 12px 6px 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  box-shadow: 0 8px 16px rgba(92, 62, 12, 0.16);
  color: #1c2740;
}

.perk-card[data-level-open] { cursor: pointer; }

.perk-card[data-level-open]:focus-visible {
  outline: 2px solid #1c2740;
  outline-offset: 2px;
}

.perk-card ul {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0 0 0 16px;
}

.perk-card li {
  margin: 1px 0;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}

.perk-card li::marker { color: #1c2740; }

.perk-card--bronze { background: linear-gradient(180deg, #efe8c8 0%, #d4cf96 100%); }
.perk-card--silver { background: linear-gradient(180deg, #e7f8f6 0%, #b7e6df 100%); }
.perk-card--gold { background: linear-gradient(180deg, #fff4c6 0%, #f6d56a 100%); }
.perk-card--ruby { background: linear-gradient(180deg, #fde3d6 0%, #f0a990 100%); }
.perk-card--jade { background: linear-gradient(180deg, #d9ebff 0%, #7eb4f2 100%); }
.perk-card--platinum { background: linear-gradient(180deg, #d9ebff 0%, #7eb4f2 100%); }

.perk-card__mark {
  display: grid;
  flex: 0 0 72px;
  justify-items: center;
  width: 72px;
  gap: 0;
}

.perk-card__mark strong {
  color: #1a2744;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

.crest { width: 54px; height: 60px; color: #a67c2d; }

.crest__wing { fill: currentColor; opacity: 0.9; }

.crest__crown,
.crest__shield {
  fill: currentColor;
  stroke: rgba(255, 255, 255, 0.75);
  stroke-width: 1.3;
  stroke-linejoin: round;
}

.crest__star { fill: rgba(255, 255, 255, 0.92); }

.perk-card--silver .crest { color: #2a9b90; }
.perk-card--gold .crest { color: #d23c2c; }
.perk-card--ruby .crest { color: #b42318; }
.perk-card--jade .crest,
.perk-card--platinum .crest { color: #2f6fd6; }

.level-detail {
  width: min(340px, calc(100vw - 32px));
  margin: auto;
  padding: 16px 16px 18px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: #1c2740;
  box-shadow: 0 18px 40px rgba(40, 24, 8, 0.28);
}

.level-detail::backdrop { background: rgba(48, 32, 8, 0.45); }

.level-detail form { display: flex; justify-content: flex-end; margin: 0; }

.level-detail__close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: #f3efe6;
  color: #1c2740;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.level-detail__kicker {
  margin: 0;
  color: #8a7040;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.level-detail h2 {
  margin: 2px 0 12px;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.level-detail dl { margin: 0; }

.level-detail dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid #efe6d4;
}

.level-detail dt { color: #6b7280; font-weight: 600; }

.level-detail dd { margin: 0; font-weight: 700; }

.level-detail__perks {
  margin: 12px 0 0;
  padding: 0 0 0 18px;
  color: #1c2740;
  font-size: 0.92rem;
  font-weight: 600;
}

.level-detail__perks li { margin: 2px 0; }

.level-detail__status {
  margin: 12px 0 0;
  color: #3d3424;
  font-weight: 700;
}

.partners-card {
  margin: 0 0 14px;
  padding: 16px 14px 18px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(72, 52, 20, 0.12);
}

.partners-card h2 {
  margin: 0 2px 4px;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1f26;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 8px;
  margin: 0;
  padding: 6px 0 2px;
  list-style: none;
}

.partners-grid li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 4px 2px;
}

.partners-grid img {
  width: 100%;
  height: 58px;
  object-fit: contain;
}

.home-desk__brand img,
.brand img {
  object-fit: contain;
}

.site-brand {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.site-brand > img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  padding: 8px;
  border-radius: 16px;
  background: #f7f1e4;
}

.site-fields + form { margin-top: 12px; }

.site-fields,
.site-add,
.partner-admin form {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.site-fields .field,
.site-add .field,
.partner-admin .field {
  width: min(360px, 100%);
}

.site-fields label,
.site-add label,
.partner-admin label {
  font-weight: 700;
  font-size: 0.9rem;
}

.site-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.site-remove {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: start;
}

.site-remove h3,
.site-add h3 {
  width: 100%;
  margin: 0 0 4px;
  font-size: 1rem;
}

.field--narrow { width: 84px; }
.field--amount { width: 140px; }

.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.partner-admin {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.partner-admin article {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--hl-border);
  border-radius: 14px;
  background: #fff;
}

.partner-admin img {
  height: 64px;
  width: 100%;
  object-fit: contain;
}

.check-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

input[type="file"].field {
  height: auto;
  padding: 8px;
}

.home-chat {
  position: fixed;
  right: 14px;
  bottom: 78px;
  z-index: 46;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: #2f9e5f;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(47, 158, 95, 0.35);
}

.home-chat i {
  font-size: 1.15rem;
}

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  height: 62px;
  padding: 0 8px;
  align-items: center;
  justify-content: space-around;
  border-radius: 0;
  border-top: 1px solid #ece6dc;
  background: #fff;
  box-shadow: none;
}

.tabbar__item {
  display: grid;
  place-items: center;
  min-width: 56px;
  height: auto;
  gap: 3px;
  padding: 4px 6px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
}

.tabbar__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #4b5563;
  font-size: 1.35rem;
  line-height: 1;
}

.tabbar__item.is-active {
  color: var(--hl-primary);
}

.tabbar__item.is-active .tabbar__icon {
  color: var(--hl-primary);
  background: var(--hl-primary-soft);
  box-shadow: none;
}

.tabbar__item.tabbar__start { color: var(--hl-primary); }

.tabbar__item.tabbar__start .tabbar__icon {
  color: var(--hl-primary);
  font-size: 1.45rem;
  background: transparent;
  box-shadow: none;
}

.tabbar__item.tabbar__start.is-active .tabbar__icon {
  color: #fff;
  background: var(--hl-gradient-start-tab);
  box-shadow: 0 6px 16px rgba(20, 110, 180, 0.35);
}

.record-screen {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.start-screen {
  display: flex;
  flex-direction: column;
}

.start-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 10px;
  background: transparent;
}

.start-top p {
  margin: 0;
  color: #1a1f26;
  font-size: 0.92rem;
  font-weight: 600;
}

.start-top strong { font-weight: 800; }

.start-top button {
  border: 0;
  background: transparent;
  padding: 0;
  color: #1a1f26;
  font-weight: 800;
  font-size: 0.92rem;
  white-space: nowrap;
}

.start-top__ticker {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

.start-top__bell {
  flex: 0 0 auto;
  color: #f0b429;
  font-size: 0.95rem;
}

.start-top__track {
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.start-top__track p {
  display: inline-block;
  padding-left: 100%;
  color: #4b5563;
  font-size: 0.78rem;
  font-weight: 600;
  animation: home-ticker 18s linear infinite;
}

.start-screen__body {
  display: grid;
  gap: 14px;
  padding: 14px 12px 8px;
}

.start-notice {
  margin: 0;
  padding: 9px 12px;
  border-radius: 10px;
  background: #fff;
  color: #1a1f26;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
}

.start-notice strong { font-weight: 800; }

.start-balance,
.start-stage {
  border: 3px solid rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  color: #102033;
  background: var(--hl-gradient-pay-card);
  box-shadow: 0 10px 24px rgba(20, 110, 180, 0.2);
}

.start-balance { padding: 14px 14px 16px; }

.start-balance header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.start-balance h1,
.start-balance header strong {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.start-balance__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
  align-items: start;
}

.start-figure {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.start-figure strong {
  display: block;
  margin-top: 2px;
  font-size: 0.95rem;
  font-weight: 800;
}

.start-ico {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #111;
  color: #f5c542;
  font-size: 13px;
}

.start-ico--ghost {
  background: transparent;
}

.start-balance ul {
  margin: 4px 0 0;
  padding-left: 18px;
  color: #102033;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
}

.start-balance li + li { margin-top: 4px; }

.start-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 230px;
  padding: 28px 16px;
}

.start-disk {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  width: 104px;
  height: 104px;
  margin: 0;
  padding: 10px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 32%, #7dd3fc, #38bdf8 68%);
  color: #fff;
  text-align: center;
  text-decoration: none;
  box-shadow:
    0 8px 16px rgba(16, 58, 140, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.start-disk strong {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.1;
}

.start-disk span {
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.15;
  max-width: 11ch;
}

.start-disk.is-done { cursor: default; }

.start-disk.is-waiting {
  cursor: default;
  opacity: 0.92;
  background: linear-gradient(145deg, #5a6578 0%, #3d4654 100%);
}

.start-disk:active {
  transform: translateY(2px);
}

.record-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--hl-shadow-gold-card);
  overflow: hidden;
}

.record-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.record-list li + li {
  border-top: 1px solid #eef2f6;
}

.record-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr;
  gap: 8px;
  padding: 14px 16px;
  color: inherit;
}

.record-row small {
  display: block;
  margin-bottom: 2px;
  color: #2f9e5f;
  font-size: 0.75rem;
  font-weight: 700;
}

.record-row strong {
  font-size: 0.92rem;
  font-weight: 700;
  word-break: break-word;
}

.record-card .empty-state {
  box-shadow: none;
  border: 0;
  padding: 28px 16px;
}

.record-card .empty-state .button {
  margin-top: 12px;
}

.profile-screen {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-hero {
  padding: 18px;
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.35), transparent 40%),
    var(--hl-gradient-primary-deep);
  box-shadow: 0 14px 28px rgba(255, 153, 0, 0.28);
}

.profile-hero__user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.profile-hero__avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #1f7a48;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.profile-hero__user strong {
  display: block;
  font-size: 1.2rem;
}

.profile-hero__user small {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
}

.profile-hero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.profile-hero__stats div {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
}

.profile-hero__stats small {
  display: block;
  margin-bottom: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.92;
}

.profile-hero__stats strong {
  font-size: 1.35rem;
  font-weight: 800;
}

.profile-menu {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.profile-menu a,
.profile-menu button {
  display: grid;
  grid-template-columns: 40px 1fr 16px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  background: #f3f6f9;
  color: var(--hl-text);
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
}

.profile-menu__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #eaf7f0;
  color: #2f9e5f;
  font-size: 1.1rem;
}

.profile-menu .bi-chevron-right {
  color: #9aa3af;
  justify-self: end;
}

.profile-panel {
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.profile-panel h2 {
  margin-bottom: 12px;
}

.profile-panel__verify {
  margin-top: 12px;
}

.profile-panel .field {
  border-radius: 999px;
  background: #f5f7fa;
  box-shadow: none;
  border: 1px solid var(--hl-border);
}

.profile-hero__avatar--img {
  object-fit: cover;
  padding: 0;
}

.edit-profile {
  width: min(420px, 100%);
  margin: 0 auto;
  padding: 8px 4px 24px;
}

.edit-profile__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
  color: #2f9e5f;
  font-weight: 700;
}

.edit-profile__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 18px 20px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.edit-profile__avatar {
  display: grid;
  place-items: center;
  margin: 0 auto 6px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: #eef1f5;
  box-shadow: 0 8px 18px rgba(16, 28, 43, 0.08);
}

.edit-profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edit-profile__avatar-fallback {
  font-size: 2.6rem;
  color: #9aa3af;
}

.edit-profile__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.edit-profile__field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #4b5563;
}

.edit-profile__input,
.edit-profile__select,
.edit-profile__file {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #f3f5f8;
  color: var(--hl-text);
  font-size: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.edit-profile__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.edit-profile__file {
  display: flex;
  align-items: center;
  padding: 10px 16px;
}

.edit-profile__file-input {
  width: 100%;
  border: 0;
  background: transparent;
  font-size: 0.92rem;
}

.edit-profile__submit {
  width: 100%;
  height: 50px;
  margin-top: 6px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #3bb56f 0%, #2f9e5f 100%);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(47, 158, 95, 0.28);
}

@media (max-width: 760px) {
  body:not(.auth-body) {
    background-color: #f5f7fa;
    background-image: none;
  }

  body:not(.admin-shell) .sidebar,
  body:not(.admin-shell).sidebar-open .sidebar,
  body:not(.admin-shell) .topbar__menu,
  body:not(.admin-shell) .sidebar__close,
  body:not(.admin-shell) #sidebar-backdrop {
    display: none !important;
  }

  .topbar {
    background: transparent;
    border-bottom: 0;
    min-height: 52px;
  }

  .icon-button,
  .user-button {
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(16, 28, 43, 0.08);
  }

  .crumbs { display: none; }

  .demo-banner {
    border: 0;
    border-radius: 16px;
    background: #eaf7f0;
    color: #1f7a48;
    box-shadow: 0 8px 18px rgba(16, 28, 43, 0.05);
  }

  .page-header { align-items: flex-start; }

  .page-header h1 {
    font-size: 1.7rem;
    letter-spacing: 0;
    text-transform: none;
  }

  .page-header__actions { width: 100%; }

  .page-header__actions .button,
  .button {
    border-radius: 999px;
  }

  .button--primary {
    border: 0;
    background: linear-gradient(180deg, #3bb56f, #2f9e5f);
    box-shadow: 0 10px 22px rgba(47, 158, 95, 0.28);
  }

  .button--secondary,
  .button--ghost {
    border: 0;
    background: #fff;
    box-shadow: 0 8px 18px rgba(16, 28, 43, 0.08);
  }

  .panel,
  .stat-card,
  .quick-card,
  .empty-state {
    border: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(16, 28, 43, 0.08);
  }

  .layout-4 { grid-template-columns: 1fr 1fr; }

  .stat-card {
    flex-direction: column;
    min-height: 120px;
    justify-content: space-between;
  }

  .stat-card__icon {
    border-radius: 14px;
    background: #eaf7f0;
    color: #2f9e5f;
    box-shadow: none;
  }

  .neo-progress { display: none; }

  .field,
  .topbar-search,
  select.field {
    border: 0;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(16, 28, 43, 0.08);
  }

  .data-table {
    background: transparent;
  }

  .data-table th { background: transparent; }

  .main { padding-bottom: 96px; }

  .tabbar { display: flex; }

  .toast-stack { bottom: 96px; }

  .footer { display: none; }
}

.pay-screen { padding: 8px 14px 18px; }

.pay-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 4px 0 12px;
}

.pay-tabs a {
  text-align: center;
  padding: 8px 4px 10px;
  color: #374151;
  font-weight: 700;
}

.pay-tabs a.is-active {
  color: #102033;
  box-shadow: inset 0 -2px 0 #102033;
}

.pay-balance {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--hl-gradient-pay);
  box-shadow: 0 8px 20px rgba(20, 110, 180, 0.22);
}

.pay-balance span,
.pay-balance strong { display: block; }

.pay-balance span { font-size: 0.82rem; font-weight: 700; }

.pay-balance .pay-balance__note {
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}

.pay-balance strong { font-size: 1.35rem; line-height: 1.2; }

.pay-method { margin: 0 0 12px; }

.pay-method strong,
.pay-method span { display: block; color: #1a1f26; }

.pay-method span { font-weight: 800; }

select.pay-amount,
textarea.pay-amount { width: 100%; }

textarea.pay-amount { min-height: 72px; resize: vertical; }

.pay-destination { max-width: 280px; word-break: break-all; }

.pay-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px 14px 14px;
  box-shadow: 0 10px 24px rgba(20, 90, 150, 0.14);
}

.pay-wallet { display: block; margin: 0 0 14px; cursor: pointer; }

.pay-wallet__name { display: block; margin-bottom: 4px; font-weight: 800; color: #1a1f26; }

.pay-wallet__row { display: flex; align-items: flex-start; gap: 8px; }

.pay-wallet__row input { margin-top: 3px; }

.pay-wallet__row code {
  flex: 1;
  font-family: inherit;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #4b5563;
  white-space: pre-wrap;
  word-break: break-all;
}

.pay-copy {
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
}

.pay-amount,
.pay-file { display: block; width: 100%; margin: 10px 0 0; }

.pay-amount {
  border: 0;
  border-radius: 8px;
  background: #ececec;
  padding: 12px 14px;
}

.pay-file {
  border-radius: 8px;
  background: #e5e5e5;
  padding: 10px 12px;
}

.pay-submit {
  width: 100%;
  margin-top: 12px;
  border: 0;
  border-radius: 8px;
  background: #4c8ef7;
  color: #fff;
  font-weight: 800;
  padding: 12px;
}

.pay-history { list-style: none; margin: 0; padding: 0; }

.pay-history li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.pay-history li:last-child { border-bottom: 0; }

.pay-history strong { display: block; color: #1a1f26; }

.pay-history span { display: block; color: #6b7280; font-size: 0.8rem; font-weight: 600; word-break: break-all; }

.pay-status {
  font-style: normal;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: capitalize;
}

.pay-status--pending { color: #b45309; }
.pay-status--approved { color: #15803d; }
.pay-status--completed { color: #0f766e; }
.pay-status--rejected { color: #b91c1c; }

.pay-empty { margin: 0; color: #6b7280; font-weight: 600; }

.pay-history-note {
  margin: 0 0 12px;
  font-size: 0.82rem;
  line-height: 1.4;
}

.pay-tab-count {
  display: inline-block;
  min-width: 1.25rem;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(16, 32, 51, 0.12);
  vertical-align: middle;
}

.pay-history--inset {
  padding: 4px 0 0;
}

.stack-form,
.wallet-edit { display: grid; gap: 10px; margin-bottom: 14px; }

.stack-form label,
.stack-form .form-grid label { display: grid; gap: 4px; font-size: 0.85rem; font-weight: 700; }

.stack-form .form-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.6fr;
  gap: 10px;
}

.wallet-edit textarea,
.stack-form textarea { width: 100%; }

.panel > h2 { margin: 0 0 8px; }

@media (max-width: 720px) {
  .stack-form .form-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
