:root {
  --ink: #081012;
  --ink-2: #0c1719;
  --ink-3: #102023;
  --panel: rgba(19, 34, 37, 0.82);
  --panel-solid: #122124;
  --panel-soft: rgba(23, 41, 44, 0.56);
  --line: rgba(158, 202, 188, 0.13);
  --line-strong: rgba(158, 202, 188, 0.24);
  --text: #e9f1ee;
  --text-2: #c2d2cd;
  --muted: #829a94;
  --faint: #5f7570;
  --jade: #78d6b8;
  --jade-2: #4aa98d;
  --jade-deep: #1c5a4b;
  --gold: #ddbc7d;
  --gold-2: #b28d4e;
  --copper: #c98f6b;
  --red: #d96c5f;
  --blue: #77a9c9;
  --violet: #a795cf;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
  --radius: 20px;
  --radius-sm: 14px;
  --serif: "Songti SC", "Noto Serif SC", "Noto Serif CJK SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

body {
  background:
    radial-gradient(1100px 700px at 85% -8%, rgba(63, 127, 110, 0.18), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(35, 83, 81, 0.2), transparent 65%),
    radial-gradient(700px 500px at 60% 108%, rgba(120, 90, 52, 0.1), transparent 60%),
    linear-gradient(170deg, #091214 0%, #081012 45%, #060d0f 100%);
  background-attachment: fixed;
  min-height: 100dvh;
}

body.lock { overflow: hidden; }

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

#app {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  min-height: 100dvh;
  background: linear-gradient(180deg, rgba(10, 20, 22, 0.58), rgba(8, 15, 17, 0.86));
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.5);
}

@media (min-width: 601px) {
  #app { border-left: 1px solid rgba(158, 202, 188, 0.08); border-right: 1px solid rgba(158, 202, 188, 0.08); }
}

.screen {
  min-height: 100dvh;
  padding-bottom: calc(88px + var(--safe-bottom));
}

.ic { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: -3px; }

.screen.no-tabs { padding-bottom: calc(24px + var(--safe-bottom)); }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
img { max-width: 100%; display: block; }
::selection { background: rgba(120, 214, 184, 0.25); }

/* ---------------- boot ---------------- */
.boot {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(600px 500px at 50% 40%, rgba(56, 111, 98, 0.22), transparent 70%),
    #081012;
  transition: opacity 0.45s ease, visibility 0.45s;
}
.boot.hide { opacity: 0; visibility: hidden; }
.boot-seal {
  width: 76px; height: 76px;
  border-radius: 20px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, #b74a3e, #8f342c);
  color: #f3ded4;
  font-family: var(--serif);
  font-size: 42px;
  box-shadow: 0 12px 40px rgba(150, 55, 45, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  animation: sealIn 0.9s cubic-bezier(.2,.8,.2,1) both;
}
.boot-name {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: 10px;
  text-indent: 10px;
  color: #dce9e5;
  animation: fadeUp 0.8s 0.15s both;
}
.boot-line { width: 40px; height: 1px; background: linear-gradient(90deg, transparent, var(--jade), transparent); margin: 14px 0; animation: fadeUp 0.8s 0.25s both; }
.boot-sub { font-size: 11px; letter-spacing: 5px; color: var(--faint); text-indent: 5px; animation: fadeUp 0.8s 0.35s both; }

@keyframes sealIn { from { opacity: 0; transform: scale(.7) rotate(-7deg); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

.page { padding: 18px 18px 26px; animation: fadeUp .38s ease both; }
.page.flush { padding: 0 0 26px; }

/* ---------------- typography ---------------- */
.serif { font-family: var(--serif); }
.eyebrow { font-size: 10px; letter-spacing: 3px; color: var(--jade-2); text-transform: uppercase; }
.page-title { font-family: var(--serif); font-size: 26px; letter-spacing: 2px; margin: 0; font-weight: 600; }
.page-desc { color: var(--muted); font-size: 12.5px; margin: 6px 0 0; letter-spacing: .3px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 12px; }
.section-title h3 { margin: 0; font-family: var(--serif); font-size: 17px; letter-spacing: 1.5px; font-weight: 600; }
.section-title .hint { font-size: 11px; color: var(--faint); letter-spacing: .5px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12px; }
.tiny { font-size: 10.5px; }
.gold { color: var(--gold); }
.jade { color: var(--jade); }
.red { color: var(--red); }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ---------------- header ---------------- */
.app-head {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(12px + var(--safe-top)) 18px 12px;
  background: linear-gradient(180deg, rgba(8, 16, 18, 0.96), rgba(8, 16, 18, 0.78) 70%, transparent);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-seal {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(150deg, #b74a3e, #8e332b);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 19px; color: #f5e3da;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.13), 0 4px 14px rgba(120, 40, 32, .3);
  flex: none;
}
.brand-text { min-width: 0; }
.brand-name { font-family: var(--serif); font-size: 18px; letter-spacing: 4px; line-height: 1.2; }
.brand-sub { font-size: 9px; letter-spacing: 2px; color: var(--faint); margin-top: 2px; white-space: nowrap; }
.head-right { display: flex; align-items: center; gap: 8px; }
.head-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 600; color: #eaf4f0;
  background: linear-gradient(145deg, #35695c, #234b43);
  border: 1px solid rgba(158, 202, 188, .25);
}

.back-head {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  padding: calc(12px + var(--safe-top)) 16px 12px;
  background: linear-gradient(180deg, rgba(8, 16, 18, .97), rgba(8, 16, 18, .76) 75%, transparent);
  backdrop-filter: blur(14px);
}
.back-btn {
  width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center;
  color: var(--text-2);
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line);
}
.back-head h1 { font-family: var(--serif); font-size: 18px; letter-spacing: 2px; margin: 0; font-weight: 600; }
.back-head .sub { font-size: 10px; color: var(--faint); letter-spacing: 1px; margin-top: 1px; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .5px;
  color: #07110f;
  background: linear-gradient(140deg, #8ee4c8, #5fbea2);
  box-shadow: 0 8px 24px rgba(78, 176, 149, .22), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .16s ease, opacity .16s, box-shadow .16s;
  white-space: nowrap;
}
.btn:active { transform: scale(.975); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn .ic { width: 17px; height: 17px; }
.btn-block { width: 100%; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 12px; border-radius: 10px; box-shadow: none; }
.btn-lg { min-height: 50px; font-size: 15px; border-radius: 15px; }
.btn-ghost {
  color: var(--text-2);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}
.btn-soft {
  color: var(--jade);
  background: rgba(120, 214, 184, .09);
  border: 1px solid rgba(120, 214, 184, .22);
  box-shadow: none;
}
.btn-gold {
  color: #20170a;
  background: linear-gradient(140deg, #efd29b, #c9a463);
  box-shadow: 0 8px 24px rgba(201, 164, 99, .2), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn-danger {
  color: #2a0d0a;
  background: linear-gradient(140deg, #ef9b90, #cf6a5d);
  box-shadow: none;
}
.btn-text { min-height: auto; padding: 4px 2px; background: none; box-shadow: none; color: var(--jade); font-weight: 500; }
.btn-row { display: flex; gap: 10px; }
.btn-row > .btn { flex: 1; }
.btn-icon {
  width: 36px; height: 36px; min-height: 36px; padding: 0;
  border-radius: 11px; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--text-2); box-shadow: none;
}

/* ---------------- cards / panels ---------------- */
.card {
  position: relative;
  background: linear-gradient(160deg, rgba(24, 43, 46, .74), rgba(14, 27, 30, .82));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.card + .card { margin-top: 12px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-title { font-family: var(--serif); font-size: 17px; letter-spacing: 1px; margin: 0; font-weight: 600; }
.card-sub { font-size: 11px; color: var(--muted); margin-top: 3px; }
.panel { background: var(--panel-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }

/* ---------------- chips / badges ---------------- */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: .5px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.chip::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .9; }
.chip.no-dot::before { display: none; }
.chip-list, .chip-availability { color: var(--jade); background: rgba(120,214,184,.09); border-color: rgba(120,214,184,.2); }
.chip-renting { color: var(--gold); background: rgba(221,188,125,.1); border-color: rgba(221,188,125,.22); }
.chip-running { color: var(--blue); background: rgba(119,169,201,.1); border-color: rgba(119,169,201,.22); }
.chip-stalled { color: var(--muted); background: rgba(130,154,148,.08); border-color: rgba(130,154,148,.2); }
.chip-harvest { color: var(--violet); background: rgba(167,149,207,.1); border-color: rgba(167,149,207,.22); }
.chip-settled { color: var(--jade); background: rgba(120,214,184,.09); border-color: rgba(120,214,184,.2); }
.chip-pending { color: var(--gold); background: rgba(221,188,125,.1); border-color: rgba(221,188,125,.22); }
.chip-cancelled { color: var(--faint); background: rgba(95,117,112,.08); border-color: rgba(95,117,112,.2); }
.chip-admin { color: var(--gold); background: rgba(221,188,125,.1); border-color: rgba(221,188,125,.25); }
.chip-partner { color: var(--jade); background: rgba(120,214,184,.1); border-color: rgba(120,214,184,.25); }
.chip-co { color: var(--copper); background: rgba(201,143,107,.1); border-color: rgba(201,143,107,.25); }
.chip-user { color: var(--muted); background: rgba(130,154,148,.08); border-color: rgba(130,154,148,.18); }
.chip-ghost { color: var(--text-2); background: rgba(255,255,255,.04); border-color: var(--line); }

.role-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; font-size: 10px; letter-spacing: .5px; font-weight: 600; }
.role-badge.admin { color: #241a09; background: linear-gradient(135deg, #ebcd96, #c9a463); }
.role-badge.partner { color: #071711; background: linear-gradient(135deg, #98e7cd, #62bda3); }
.role-badge.co_partner { color: #241209; background: linear-gradient(135deg, #dfa983, #b97b54); }
.role-badge.user { color: var(--muted); background: rgba(130,154,148,.12); border: 1px solid var(--line); }

/* ---------------- forms ---------------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: 12px; color: var(--text-2); letter-spacing: .5px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.field > label .req { color: var(--red); }
.field .hint { font-size: 10.5px; color: var(--faint); }
.input, .select, .textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 13px;
  background: rgba(6, 14, 16, .55);
  border: 1px solid var(--line-strong);
  color: var(--text);
  outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
  font-size: 15px;
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: #536963; }
.input:focus, .select:focus, .textarea:focus {
  border-color: rgba(120, 214, 184, .55);
  box-shadow: 0 0 0 3px rgba(120, 214, 184, .1);
  background: rgba(8, 18, 20, .78);
}
.textarea { min-height: 90px; resize: vertical; line-height: 1.6; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23829a94' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.select option { background: #102023; color: var(--text); }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }
.input-group .btn { flex: none; }

.seg {
  display: flex;
  padding: 4px;
  border-radius: 12px;
  background: rgba(6, 14, 16, .5);
  border: 1px solid var(--line);
  gap: 3px;
}
.seg button, .seg a {
  flex: 1;
  min-height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px;
  font-size: 12.5px;
  color: var(--muted);
  transition: all .18s;
  white-space: nowrap;
  padding: 0 8px;
}
.seg button.on, .seg a.on { color: #07130f; background: linear-gradient(140deg, #8ee4c8, #63bfa4); font-weight: 600; box-shadow: 0 4px 14px rgba(83, 172, 146, .2); }
.seg.gold button.on { background: linear-gradient(140deg, #efd29b, #c9a463); color: #20170a; }

.switch { position: relative; width: 46px; height: 27px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span {
  position: absolute; inset: 0; border-radius: 999px;
  background: rgba(255,255,255,.09); border: 1px solid var(--line-strong);
  transition: .2s;
}
.switch span::after {
  content: ""; position: absolute; width: 19px; height: 19px; border-radius: 50%;
  left: 3px; top: 3px; background: #9db0ab; transition: .2s;
}
.switch input:checked + span { background: rgba(120,214,184,.28); border-color: rgba(120,214,184,.5); }
.switch input:checked + span::after { transform: translateX(19px); background: var(--jade); }

.checkline { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }

/* ---------------- auth ---------------- */
.auth-wrap {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: calc(38px + var(--safe-top)) 26px calc(30px + var(--safe-bottom));
  position: relative;
  overflow: hidden;
}
.auth-wrap::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 480px at 72% 10%, rgba(68, 137, 120, .18), transparent 65%),
    radial-gradient(500px 380px at 10% 80%, rgba(132, 98, 54, .09), transparent 70%);
  pointer-events: none;
}
.auth-wrap > * { position: relative; }
.auth-hero { text-align: center; margin: 16px 0 28px; }
.auth-seal {
  width: 66px; height: 66px; margin: 0 auto 18px;
  border-radius: 19px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, #b74a3e, #8c322a);
  font-family: var(--serif); font-size: 36px; color: #f5e3da;
  box-shadow: 0 16px 40px rgba(140, 50, 40, .28), inset 0 0 0 1px rgba(255,255,255,.14);
}
.auth-title { font-family: var(--serif); font-size: 38px; letter-spacing: 13px; text-indent: 13px; margin: 0; font-weight: 500; }
.auth-poem { margin: 10px 0 0; font-family: var(--serif); font-size: 12px; letter-spacing: 4px; color: var(--muted); text-indent: 4px; }
.auth-card {
  background: linear-gradient(165deg, rgba(23, 42, 45, .82), rgba(12, 24, 27, .9));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.auth-tabs { margin-bottom: 20px; }
.auth-foot { margin-top: 22px; text-align: center; font-size: 11px; color: var(--faint); letter-spacing: .8px; line-height: 2; }
.auth-foot .dot { margin: 0 8px; opacity: .5; }
.auth-links { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-size: 12px; }
.auth-links a { color: var(--jade); }
.auth-links button { color: var(--faint); font-size: 11px; }
.auth-note { margin-top: 14px; padding: 10px 12px; border-radius: 11px; background: rgba(221,188,125,.06); border: 1px solid rgba(221,188,125,.15); color: var(--text-2); font-size: 11px; line-height: 1.7; }

/* ---------------- tabbar ---------------- */
.tabbar {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  display: flex;
  padding: 8px 12px calc(8px + var(--safe-bottom));
  background: linear-gradient(180deg, rgba(8,16,18,.72), rgba(7,14,16,.97) 55%);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.tabbar[hidden] { display: none; }
.tab-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 5px 0;
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 1px;
  border-radius: 12px;
  transition: color .18s;
  position: relative;
}
.tab-item .ic { width: 22px; height: 22px; }
.tab-item.on { color: var(--jade); }
.tab-item.on::before {
  content: ""; position: absolute; top: 0; width: 18px; height: 2px; border-radius: 2px;
  background: var(--jade); box-shadow: 0 0 12px var(--jade);
}
.tab-item .dot { position: absolute; top: 5px; right: calc(50% - 17px); width: 5px; height: 5px; border-radius: 50%; background: var(--red); }

/* ---------------- hall ---------------- */
.hall-hero {
  position: relative;
  border-radius: 24px;
  padding: 20px;
  overflow: hidden;
  background:
    radial-gradient(400px 200px at 95% 0%, rgba(120,214,184,.16), transparent 65%),
    linear-gradient(155deg, rgba(28, 52, 53, .9), rgba(13, 26, 29, .94));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hall-hero::after {
  content: "烟雨";
  position: absolute;
  right: -6px; bottom: -30px;
  font-family: var(--serif);
  font-size: 110px;
  color: rgba(158, 202, 188, .045);
  letter-spacing: 4px;
  pointer-events: none;
}
.hall-greet { font-family: var(--serif); font-size: 24px; letter-spacing: 1.5px; margin: 4px 0 0; }
.hall-greet span { color: var(--jade); }
.hall-date { font-size: 10.5px; color: var(--faint); letter-spacing: 1.5px; margin-top: 6px; }
.hall-stats { display: flex; gap: 22px; margin-top: 20px; position: relative; z-index: 1; }
.hall-stat b { display: block; font-family: var(--serif); font-size: 22px; line-height: 1.2; font-weight: 600; }
.hall-stat span { font-size: 10px; color: var(--muted); letter-spacing: 1px; }
.notice {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 12px; padding: 11px 13px;
  border-radius: 13px;
  background: rgba(221,188,125,.055);
  border: 1px solid rgba(221,188,125,.14);
  color: #cbbfa5; font-size: 11.5px; line-height: 1.65;
}
.notice .ic { width: 15px; height: 15px; color: var(--gold); flex: none; margin-top: 1px; }

.filter-row { display: flex; gap: 7px; overflow-x: auto; padding: 3px 0 2px; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-pill {
  flex: none; padding: 7px 13px; border-radius: 999px;
  font-size: 12px; color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
  transition: all .17s;
}
.filter-pill.on { color: #07130f; background: linear-gradient(140deg, #8ee4c8, #63bfa4); border-color: transparent; font-weight: 600; }

.hall-list { display: flex; flex-direction: column; gap: 13px; margin-top: 13px; }
.goods-card {
  position: relative;
  display: block;
  border-radius: 20px;
  padding: 16px;
  background: linear-gradient(160deg, rgba(24, 43, 46, .75), rgba(12, 24, 27, .88));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .18s, border-color .18s;
}
.goods-card:active { transform: scale(.99); }
.goods-card::before {
  content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px;
  background: linear-gradient(180deg, transparent, rgba(120,214,184,.5), transparent);
}
.goods-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.goods-title { font-family: var(--serif); font-size: 18px; letter-spacing: .8px; margin: 0; font-weight: 600; line-height: 1.35; }
.goods-owner { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 10.5px; color: var(--muted); }
.owner-dot { width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center; font-size: 8px; color: #07130f; background: linear-gradient(140deg, #9fe8d1, #62b99f); }
.price-row { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 12px; }
.price-row .cur { color: var(--gold); font-size: 14px; font-family: var(--serif); }
.price-row .price { color: #f0d9a9; font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1; letter-spacing: .5px; }
.price-row .unit { color: var(--faint); font-size: 10px; letter-spacing: 1px; }
.goods-metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.metric { background: rgba(7, 16, 18, .58); padding: 8px 6px; text-align: center; }
.metric b { display: block; font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.35; }
.metric span { display: block; font-size: 9.5px; color: var(--faint); letter-spacing: .5px; margin-top: 1px; }
.goods-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; gap: 10px; }
.goods-foot .meta { font-size: 10px; color: var(--faint); display: flex; align-items: center; gap: 5px; }
.goods-foot .meta .ic { width: 12px; height: 12px; }
.goods-foot .go { font-size: 11px; color: var(--jade); display: flex; align-items: center; gap: 3px; }
.goods-foot .go .ic { width: 13px; height: 13px; }

.empty { text-align: center; padding: 48px 20px; color: var(--faint); }
.empty .seal { width: 54px; height: 54px; border-radius: 16px; border: 1px dashed var(--line-strong); display: grid; place-items: center; margin: 0 auto 14px; font-family: var(--serif); font-size: 24px; color: var(--muted); }
.empty h4 { margin: 0 0 5px; font-family: var(--serif); font-size: 16px; color: var(--text-2); letter-spacing: 1px; font-weight: 500; }
.empty p { margin: 0; font-size: 11.5px; line-height: 1.8; }

/* ---------------- detail ---------------- */
.detail-hero {
  position: relative;
  padding: 22px 18px 20px;
  background:
    radial-gradient(420px 240px at 90% 0%, rgba(120,214,184,.13), transparent 65%),
    linear-gradient(160deg, rgba(28, 52, 53, .8), rgba(11, 23, 26, .92));
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.detail-hero::after {
  content: "阁"; position: absolute; right: -4px; bottom: -34px;
  font-family: var(--serif); font-size: 130px; color: rgba(158,202,188,.04); pointer-events: none;
}
.detail-topline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.detail-title { font-family: var(--serif); font-size: 27px; line-height: 1.3; margin: 12px 0 4px; letter-spacing: 1px; font-weight: 600; }
.detail-price { display: flex; align-items: baseline; gap: 4px; margin-top: 12px; }
.detail-price .cur { color: var(--gold); font-size: 17px; font-family: var(--serif); }
.detail-price .num { color: #f2dca9; font-family: var(--serif); font-size: 40px; line-height: 1; font-weight: 600; }
.detail-price .unit { color: var(--faint); font-size: 11px; margin-left: 4px; }
.detail-owner { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 11px; color: var(--muted); }
.detail-owner .name { color: var(--text-2); }

.attr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
.attr-cell { background: rgba(9, 20, 22, .7); padding: 11px 13px; }
.attr-cell.wide { grid-column: span 2; }
.attr-cell span { display: block; font-size: 9.5px; color: var(--faint); letter-spacing: .8px; }
.attr-cell b { display: block; font-size: 14px; font-weight: 500; margin-top: 2px; color: var(--text); }
.attr-cell b.gold { color: var(--gold); }

.special-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); gap: 10px; }
.special-row:last-child { border-bottom: 0; }
.special-name { font-size: 13px; color: var(--text-2); }
.special-meta { font-size: 10px; color: var(--faint); margin-top: 2px; }
.special-price { font-size: 12px; color: var(--gold); text-align: right; }
.special-price .qty { display: block; color: var(--text); font-size: 13px; }
.free { color: var(--jade); }

.sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  gap: 10px;
  padding: 12px 18px calc(12px + var(--safe-bottom));
  background: linear-gradient(180deg, transparent, rgba(7, 14, 16, .92) 30%);
  margin-top: 8px;
}
.sticky-actions .btn { flex: 1; }
.detail-note { font-size: 10.5px; color: var(--faint); line-height: 1.8; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.025); border: 1px dashed var(--line); }

/* ---------------- mine / permission ---------------- */
.locked {
  min-height: 62vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 30px;
}
.locked-seal {
  width: 84px; height: 84px; border-radius: 26px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line-strong);
  color: var(--muted);
  margin-bottom: 22px;
  position: relative;
}
.locked-seal::after { content: ""; position: absolute; inset: -9px; border-radius: 32px; border: 1px dashed rgba(158,202,188,.12); animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.locked h2 { font-family: var(--serif); font-size: 24px; letter-spacing: 3px; margin: 0 0 10px; font-weight: 500; }
.locked p { color: var(--muted); font-size: 12.5px; max-width: 270px; line-height: 1.9; margin: 0 0 22px; }
.locked .role-line { display: flex; gap: 8px; margin-bottom: 24px; }

.owned-row { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); align-items: center; }
.owned-row:last-child { border-bottom: 0; }
.owned-thumb {
  width: 52px; height: 52px; border-radius: 14px; flex: none;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 20px; color: var(--jade);
  background: linear-gradient(150deg, rgba(43, 82, 74, .7), rgba(17, 34, 35, .9));
  border: 1px solid var(--line);
}
.owned-main { flex: 1; min-width: 0; }
.owned-title { font-family: var(--serif); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.owned-sub { font-size: 10px; color: var(--faint); margin-top: 3px; display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.owned-price { text-align: right; flex: none; }
.owned-price b { font-family: var(--serif); color: var(--gold); font-size: 16px; font-weight: 600; }
.owned-price span { display: block; font-size: 9px; color: var(--faint); }

.fab {
  position: fixed; right: max(18px, calc(50% - 282px)); bottom: calc(92px + var(--safe-bottom));
  z-index: 35;
  width: 52px; height: 52px; border-radius: 18px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #96e7cd, #5fbd9f);
  color: #06130f;
  box-shadow: 0 14px 34px rgba(64, 160, 134, .35);
}
.fab .ic { width: 24px; height: 24px; }

/* ---------------- profile ---------------- */
.profile-hero {
  position: relative;
  border-radius: 24px;
  padding: 20px;
  background:
    radial-gradient(380px 200px at 100% 0%, rgba(221,188,125,.12), transparent 60%),
    linear-gradient(155deg, rgba(28, 52, 53, .86), rgba(12, 24, 27, .94));
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.profile-hero::after { content: "閣"; position: absolute; right: -8px; bottom: -40px; font-family: var(--serif); font-size: 150px; color: rgba(158,202,188,.035); }
.profile-main { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.avatar {
  width: 64px; height: 64px; border-radius: 21px; flex: none;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 27px; color: #eaf4ef;
  background: linear-gradient(150deg, #3b7466, #234a44);
  border: 1px solid rgba(158,202,188,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.avatar.admin { background: linear-gradient(150deg, #8f7139, #58451f); border-color: rgba(221,188,125,.4); }
.avatar.co_partner { background: linear-gradient(150deg, #7d5238, #4a301f); border-color: rgba(201,143,107,.4); }
.profile-name { font-family: var(--serif); font-size: 22px; letter-spacing: 1px; margin: 0; font-weight: 600; }
.profile-meta { display: flex; align-items: center; gap: 7px; margin-top: 5px; flex-wrap: wrap; }
.profile-account { font-size: 10.5px; color: var(--faint); letter-spacing: .5px; }
.profile-quote { margin: 15px 0 0; font-family: var(--serif); font-size: 11px; color: var(--muted); letter-spacing: 2px; position: relative; z-index: 1; }

.balance-card {
  margin-top: 13px;
  border-radius: 22px;
  padding: 18px;
  background:
    radial-gradient(360px 180px at 100% 0%, rgba(221,188,125,.16), transparent 60%),
    linear-gradient(150deg, rgba(58, 47, 28, .68), rgba(20, 26, 25, .92));
  border: 1px solid rgba(221,188,125,.2);
  position: relative;
  overflow: hidden;
}
.balance-card::after { content: "分红"; position: absolute; right: 10px; bottom: -18px; font-family: var(--serif); font-size: 64px; color: rgba(221,188,125,.05); }
.balance-label { font-size: 10px; letter-spacing: 2px; color: #b6a382; }
.balance-num { font-family: var(--serif); font-size: 38px; color: #f0d7a3; line-height: 1.2; margin: 4px 0 2px; font-weight: 600; }
.balance-num small { font-size: 16px; margin-right: 2px; }
.balance-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 10px; }
.balance-foot .sub { font-size: 10px; color: #9e9077; }
.balance-foot .btn { min-height: 32px; padding: 0 12px; font-size: 11px; border-radius: 9px; }

.menu-group { margin-top: 14px; border-radius: 18px; overflow: hidden; background: rgba(19,34,37,.6); border: 1px solid var(--line); }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 14px 15px; border-bottom: 1px solid var(--line); transition: background .16s; }
.menu-item:last-child { border-bottom: 0; }
.menu-item:active { background: rgba(255,255,255,.03); }
.menu-icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.04); color: var(--muted); flex: none; }
.menu-icon .ic { width: 17px; height: 17px; }
.menu-text { flex: 1; min-width: 0; }
.menu-text b { display: block; font-size: 13.5px; font-weight: 500; }
.menu-text span { display: block; font-size: 10px; color: var(--faint); margin-top: 2px; }
.menu-item .chev { color: var(--faint); width: 16px; height: 16px; }
.menu-item.danger .menu-text b { color: var(--red); }
.menu-badge { font-size: 9px; padding: 2px 6px; border-radius: 5px; background: rgba(120,214,184,.1); color: var(--jade); border: 1px solid rgba(120,214,184,.18); }

/* ---------------- orders ---------------- */
.order-card {
  display: block;
  padding: 15px;
  border-radius: 17px;
  background: linear-gradient(160deg, rgba(24, 43, 46, .7), rgba(13, 26, 29, .85));
  border: 1px solid var(--line);
}
.order-card + .order-card { margin-top: 11px; }
.order-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.order-no { font-size: 9.5px; color: var(--faint); font-family: var(--mono); letter-spacing: .2px; }
.order-title { font-family: var(--serif); font-size: 16px; margin: 7px 0 2px; letter-spacing: .5px; }
.order-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.order-amount { font-family: var(--serif); color: var(--gold); font-size: 21px; font-weight: 600; }
.order-amount small { font-size: 11px; margin-right: 1px; }
.order-date { font-size: 9.5px; color: var(--faint); }

.timeline { display: flex; flex-direction: column; gap: 0; margin-top: 4px; }
.tl-item { display: flex; gap: 12px; position: relative; padding-bottom: 20px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--faint); background: var(--ink); flex: none; margin-top: 4px; position: relative; z-index: 1; }
.tl-item:not(:last-child)::before { content: ""; position: absolute; left: 5px; top: 15px; bottom: 0; width: 1px; background: var(--line); }
.tl-item.done .tl-dot { border-color: var(--jade); background: var(--jade); box-shadow: 0 0 0 4px rgba(120,214,184,.1); }
.tl-item.done:not(:last-child)::before { background: rgba(120,214,184,.35); }
.tl-item.now .tl-dot { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 0 4px rgba(221,188,125,.12); animation: pulse 2s infinite; }
.tl-body b { display: block; font-size: 13px; font-weight: 500; }
.tl-body span { display: block; font-size: 10px; color: var(--faint); margin-top: 2px; }

.kv { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; font-size: 12px; }
.kv .k { color: var(--muted); flex: none; }
.kv .v { text-align: right; color: var(--text-2); word-break: break-all; }
.kv .v.gold { color: var(--gold); }
.copy-line { display: flex; align-items: center; gap: 8px; }
.copy-line .btn-icon { width: 28px; height: 28px; min-height: 28px; border-radius: 8px; }

/* ---------------- dividends ---------------- */
.dividend-hero {
  border-radius: 24px;
  padding: 22px 18px;
  background:
    radial-gradient(400px 220px at 90% -10%, rgba(221,188,125,.17), transparent 60%),
    linear-gradient(150deg, rgba(52, 44, 28, .72), rgba(16, 25, 25, .94));
  border: 1px solid rgba(221,188,125,.18);
  position: relative;
  overflow: hidden;
}
.dividend-hero::after { content: "利"; position: absolute; right: 4px; bottom: -36px; font-family: var(--serif); font-size: 140px; color: rgba(221,188,125,.04); }
.dividend-hero .label { font-size: 10px; letter-spacing: 3px; color: #b6a382; }
.dividend-hero .amount { font-family: var(--serif); font-size: 46px; color: #f1d8a4; line-height: 1.15; margin: 5px 0 3px; font-weight: 600; }
.dividend-hero .amount small { font-size: 19px; }
.dividend-hero .sub { font-size: 10.5px; color: #9e9077; }
.dividend-stats { display: flex; gap: 20px; margin-top: 18px; position: relative; z-index: 1; }
.dividend-stats div b { display: block; font-family: var(--serif); font-size: 17px; color: var(--text); }
.dividend-stats div span { font-size: 9px; color: #9e9077; letter-spacing: .5px; }

.ledger-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.ledger-row:last-child { border-bottom: 0; }
.ledger-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.ledger-icon.plus { background: rgba(120,214,184,.08); color: var(--jade); }
.ledger-icon.minus { background: rgba(221,188,125,.08); color: var(--gold); }
.ledger-main { flex: 1; min-width: 0; }
.ledger-main b { display: block; font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ledger-main span { display: block; font-size: 9.5px; color: var(--faint); margin-top: 2px; }
.ledger-amt { text-align: right; flex: none; }
.ledger-amt b { font-family: var(--serif); font-size: 16px; font-weight: 600; }
.ledger-amt b.plus { color: var(--jade); }
.ledger-amt b.minus { color: var(--gold); }
.ledger-amt span { display: block; font-size: 9px; color: var(--faint); }

.rate-note { display: flex; gap: 9px; padding: 11px 13px; border-radius: 12px; background: rgba(120,214,184,.045); border: 1px solid rgba(120,214,184,.12); font-size: 10.5px; color: var(--muted); line-height: 1.7; margin-top: 12px; }
.rate-note .ic { width: 14px; height: 14px; color: var(--jade); flex: none; margin-top: 2px; }

/* ---------------- admin ---------------- */
.admin-tabs { display: flex; gap: 5px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab { flex: none; padding: 8px 13px; border-radius: 10px; font-size: 12px; color: var(--muted); border: 1px solid transparent; }
.admin-tab.on { color: var(--gold); background: rgba(221,188,125,.08); border-color: rgba(221,188,125,.2); }
.admin-tab .count { font-size: 9px; margin-left: 3px; opacity: .7; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-card { position: relative; padding: 14px; border-radius: 16px; background: linear-gradient(155deg, rgba(24,43,46,.7), rgba(13,26,29,.85)); border: 1px solid var(--line); overflow: hidden; }
.stat-card::after { content: ""; position: absolute; right: -14px; top: -14px; width: 54px; height: 54px; border-radius: 50%; background: rgba(120,214,184,.05); }
.stat-card .k { font-size: 9.5px; color: var(--faint); letter-spacing: 1px; }
.stat-card .v { font-family: var(--serif); font-size: 27px; line-height: 1.3; margin-top: 2px; font-weight: 600; }
.stat-card .v.jade { color: var(--jade); }
.stat-card .v.gold { color: var(--gold); }
.stat-card .m { font-size: 9px; color: var(--faint); margin-top: 1px; }

.admin-toolbar { display: flex; gap: 8px; margin: 12px 0; }
.admin-toolbar .input { min-height: 40px; font-size: 13px; border-radius: 11px; }
.admin-toolbar .btn { min-height: 40px; font-size: 12px; border-radius: 11px; flex: none; }

.row-card { padding: 13px 14px; border-radius: 15px; background: rgba(19,34,37,.55); border: 1px solid var(--line); }
.row-card + .row-card { margin-top: 9px; }
.row-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.row-main .title { font-size: 13.5px; font-weight: 500; }
.row-main .sub { font-size: 10px; color: var(--faint); margin-top: 3px; line-height: 1.6; }
.row-actions { display: flex; gap: 7px; margin-top: 10px; flex-wrap: wrap; }

.toggle-line { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); gap: 12px; }
.toggle-line:last-child { border-bottom: 0; }
.toggle-line b { display: block; font-size: 12.5px; font-weight: 500; }
.toggle-line span { display: block; font-size: 9.5px; color: var(--faint); margin-top: 2px; }

/* ---------------- modal / toast ---------------- */
.overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(3, 8, 9, .72);
  backdrop-filter: blur(5px);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn .2s ease;
  padding: 0;
}
.overlay.center { align-items: center; padding: 20px; }
.sheet {
  width: 100%; max-width: 600px;
  max-height: 88dvh;
  overflow-y: auto;
  background: linear-gradient(175deg, #142629, #0c181a 60%);
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  padding: 8px 18px calc(18px + var(--safe-bottom));
  animation: sheetUp .3s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 -20px 60px rgba(0,0,0,.5);
}
.overlay.center .sheet { border-radius: 24px; border-bottom: 1px solid var(--line-strong); animation: fadeUp .24s ease; padding-bottom: 18px; }
.sheet-handle { width: 36px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.15); margin: 6px auto 14px; }
.overlay.center .sheet-handle { display: none; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sheet-head h3 { margin: 0; font-family: var(--serif); font-size: 19px; letter-spacing: 1px; font-weight: 600; }
.sheet-head .sub { font-size: 10px; color: var(--faint); margin-top: 3px; }
.sheet-close { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.05); color: var(--muted); flex: none; }
.sheet-body { font-size: 13px; }
.sheet-actions { display: flex; gap: 9px; margin-top: 18px; }
.sheet-actions .btn { flex: 1; }

.toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: calc(104px + var(--safe-bottom));
  transform: translate(-50%, 14px);
  max-width: min(86vw, 420px);
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(18, 35, 38, .96);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 12.5px;
  box-shadow: 0 12px 34px rgba(0,0,0,.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s, transform .22s;
  text-align: center;
  line-height: 1.5;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-color: rgba(217,108,95,.4); }
.toast.ok { border-color: rgba(120,214,184,.35); }

/* ---------------- misc ---------------- */
.skeleton { border-radius: 10px; background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.08), rgba(255,255,255,.04)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.loading-block { display: flex; flex-direction: column; gap: 11px; padding: 6px 0; }
.hidden { display: none !important; }
.spacer { flex: 1; }
.nowrap { white-space: nowrap; }
.break { word-break: break-all; }
.center { text-align: center; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; } .mt24 { margin-top: 24px; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; }
.flex { display: flex; } .aic { align-items: center; } .jcb { justify-content: space-between; } .gap8 { gap: 8px; } .gap12 { gap: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

pre.debug { white-space: pre-wrap; word-break: break-all; font-size: 10px; color: var(--faint); }

.upload-box {
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  color: var(--muted);
  background: rgba(255,255,255,.02);
  transition: border-color .18s;
}
.upload-box:active { border-color: var(--jade); }
.upload-box .ic { width: 24px; height: 24px; margin: 0 auto 6px; color: var(--jade); }
.upload-box b { display: block; font-size: 12px; color: var(--text-2); font-weight: 500; }
.upload-box span { display: block; font-size: 9.5px; color: var(--faint); margin-top: 3px; }
.upload-preview { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.upload-preview img { width: 100%; max-height: 300px; object-fit: cover; }
.upload-preview .remove { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 9px; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; }

.lightbox { position: fixed; inset: 0; z-index: 130; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fadeIn .2s; }
.lightbox img { max-width: 100%; max-height: 90dvh; border-radius: 8px; }
.lightbox .close { position: absolute; top: calc(14px + var(--safe-top)); right: 14px; width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.1); display: grid; place-items: center; }

.invite-code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 18px; letter-spacing: 2px; color: var(--gold);
  background: rgba(221,188,125,.06); border: 1px dashed rgba(221,188,125,.28);
  border-radius: 10px; padding: 6px 10px; text-align: center;
}

.list-select { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.list-select button {
  padding: 10px; border-radius: 11px; border: 1px solid var(--line);
  background: rgba(255,255,255,.025); color: var(--muted); font-size: 12px;
}
.list-select button.on { border-color: rgba(120,214,184,.5); color: var(--jade); background: rgba(120,214,184,.07); }

.rate-bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.05); margin: 8px 0 4px; }
.rate-bar i { display: block; height: 100%; }
.rate-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 9.5px; color: var(--faint); }
.rate-legend em { font-style: normal; display: inline-flex; align-items: center; gap: 4px; }
.rate-legend em::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: currentColor; }
.rate-list { display: flex; flex-direction: column; gap: 10px; }
.rate-row { display: grid; grid-template-columns: 82px 1fr 56px; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); }
.rate-row b { text-align: right; font-family: var(--serif); font-size: 14px; font-weight: 600; color: var(--text); }
.rate-row .track { height: 6px; border-radius: 99px; background: rgba(255,255,255,.055); overflow: hidden; }
.rate-row .track i { display: block; height: 100%; border-radius: 99px; }
