/* ==========================================================================
   一方 YIFANG · App UI
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: #f1efe9;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,p { margin: 0; }
img { display: block; max-width: 100%; }
input, select, textarea { font: inherit; color: inherit; }

.ico { display: block; flex: none; }
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ============================ Screen shell ============================ */
.screen {
  position: relative;
  width: 393px;
  height: 852px;
  background: var(--paper);
  overflow: hidden;
  color: var(--ink-900);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  transition: background var(--t-base) var(--ease-out);
}
.screen.is-night { background: var(--night-900); color: var(--night-text); }

.screen-body {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.screen-body::-webkit-scrollbar { width: 0; height: 0; display: none; }

.st-body {
  position: absolute; top: 0; left: 0; right: 0; height: 54px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px 0 30px;
  z-index: 40;
  pointer-events: none;
  color: var(--ink-900);
  transition: color var(--t-base) var(--ease-out);
}
.st-body.on-dark { color: #fff; }
.st-time { font-size: 15px; font-weight: 600; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.st-right { display: flex; align-items: center; gap: 6px; }
.st-right svg { display: block; }

.island {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 124px; height: 36px; border-radius: 20px;
  background: #05060a; z-index: 45; pointer-events: none;
  box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.06);
}
.island::after {
  content: ""; position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
  width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #1e2a38 0%, #0a0f16 62%);
  box-shadow: inset 0 0 2px rgba(90,150,220,0.5);
}

.gesture {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 138px; height: 5px; border-radius: 3px;
  background: rgba(18,20,26,0.32); z-index: 46; pointer-events: none;
  transition: background var(--t-base) var(--ease-out);
}
.screen.is-night .gesture, .screen.on-dark .gesture { background: rgba(255,255,255,0.5); }

/* ============================ Nav bar ============================ */
.nav {
  position: sticky; top: 0; z-index: 30;
  padding-top: 54px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base);
}
.nav.scrolled { border-bottom-color: var(--line); }
.is-night .nav { background: color-mix(in srgb, var(--night-900) 84%, transparent); }
.nav-inner { height: 46px; display: flex; align-items: center; padding: 0 14px; gap: 4px; }
.nav-btn {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  color: var(--ink-800);
  transition: background var(--t-fast), opacity var(--t-fast);
}
.nav-btn:active { background: var(--surface-3); opacity: 0.7; }
.is-night .nav-btn { color: var(--night-text); }
.is-night .nav-btn:active { background: rgba(255,255,255,0.08); }
.nav-title {
  flex: 1; text-align: center; font-size: 15.5px; font-weight: 600;
  letter-spacing: 0.01em; padding: 0 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav-title.serif { font-family: var(--font-serif); font-size: 16.5px; letter-spacing: 0.06em; }
.nav-spacer { width: 34px; flex: none; }

/* ============================ Typography ============================ */
.serif { font-family: var(--font-serif); }
.t-display { font-family: var(--font-serif); font-size: 26px; line-height: 1.32; letter-spacing: 0.02em; font-weight: 600; }
.t-h1 { font-size: 20px; line-height: 1.36; font-weight: 700; letter-spacing: -0.01em; }
.t-h2 { font-size: 16.5px; line-height: 1.42; font-weight: 650; letter-spacing: -0.005em; }
.t-h3 { font-size: 14.5px; line-height: 1.45; font-weight: 600; }
.t-body { font-size: 14.5px; line-height: 1.68; color: var(--ink-700); }
.t-sm { font-size: 13px; line-height: 1.6; color: var(--ink-600); }
.t-xs { font-size: 11.5px; line-height: 1.5; color: var(--ink-500); letter-spacing: 0.01em; }
.t-micro { font-size: 10.5px; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-400); font-weight: 600; }
.t-muted { color: var(--ink-500); }
.t-dim { color: var(--ink-400); }
.is-night .t-body { color: #cfcabc; }
.is-night .t-sm { color: var(--night-muted); }
.is-night .t-xs { color: #8b8679; }
.is-night .t-h1, .is-night .t-h2, .is-night .t-h3 { color: var(--night-text); }

.eyebrow {
  font-size: 10.5px; font-weight: 650; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold-600);
}
.is-night .eyebrow { color: var(--gold-400); }

.lead { font-size: 15px; line-height: 1.75; color: var(--ink-700); }
.is-night .lead { color: #ccc7b9; }

/* ============================ Layout ============================ */
.pad { padding: 0 20px; }
.pad-tight { padding: 0 16px; }
.stack > * + * { margin-top: var(--sp-4); }
.stack-3 > * + * { margin-top: var(--sp-3); }
.stack-2 > * + * { margin-top: var(--sp-2); }
.stack-6 > * + * { margin-top: var(--sp-6); }
.row-flex { display: flex; align-items: center; }
.between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.grow { flex: 1; min-width: 0; }
.divider { height: 1px; background: var(--line); margin: 0; border: 0; }
.is-night .divider { background: var(--night-line); }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.sec-head h3 {
  font-size: 15.5px; font-weight: 650; letter-spacing: -0.005em;
  display: flex; align-items: center; gap: 8px;
}
.sec-head h3::before {
  content: ""; width: 3px; height: 13px; border-radius: 2px;
  background: linear-gradient(180deg, var(--gold-500), var(--gold-700));
}
.sec-head .more { font-size: 12px; color: var(--ink-500); display: flex; align-items: center; gap: 2px; }

/* ============================ Cards ============================ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  box-shadow: var(--sh-1);
}
.card.tight { padding: 14px; }
.card.flat { box-shadow: none; }
.card.lg { border-radius: var(--r-lg); padding: 18px; }
.is-night .card { background: var(--night-800); border-color: var(--night-line); box-shadow: none; }

.card-ink {
  position: relative;
  border-radius: var(--r-lg);
  padding: 20px;
  background:
    radial-gradient(120% 90% at 88% -8%, rgba(194,160,97,0.30) 0%, rgba(194,160,97,0) 58%),
    radial-gradient(90% 70% at 4% 104%, rgba(63,107,91,0.26) 0%, rgba(63,107,91,0) 62%),
    linear-gradient(158deg, #1b1e25 0%, #12141a 52%, #0d0f13 100%);
  color: #f3efe4;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(18,20,26,0.14), 0 20px 40px -26px rgba(18,20,26,0.6);
}
.card-ink::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.05) 0.5px, transparent 0.5px);
  background-size: 3px 3px; opacity: 0.5; mix-blend-mode: overlay;
}
.card-warm {
  border-radius: var(--r-lg);
  padding: 18px;
  background: linear-gradient(150deg, #fdf8ec 0%, #f8f1e0 45%, #f4eee2 100%);
  border: 1px solid #eee2c8;
}

/* ============================ Buttons ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  transition: transform var(--t-fast) var(--ease-out), background var(--t-fast), opacity var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
}
.btn:active { transform: scale(0.975); }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(168deg, #232730 0%, #14161c 100%);
  color: #f6f2e8;
  box-shadow: 0 1px 2px rgba(18,20,26,0.2), 0 10px 24px -14px rgba(18,20,26,0.7);
}
.btn-gold {
  background: linear-gradient(168deg, #d3b478 0%, #b8944c 55%, #a8843f 100%);
  color: #201b10;
  box-shadow: 0 1px 2px rgba(120,90,35,0.28), 0 10px 22px -14px rgba(140,105,50,0.7);
}
.btn-ghost {
  background: var(--surface); color: var(--ink-800);
  border: 1px solid var(--line-strong);
}
.btn-soft { background: var(--surface-3); color: var(--ink-800); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: var(--r-xs); }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 7px; gap: 4px; }
.btn[disabled], .btn.is-disabled { opacity: 0.42; pointer-events: none; }
.btn-quiet { color: var(--ink-600); font-size: 13px; height: auto; padding: 4px; }

/* ============================ Chips / tags ============================ */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 13px; border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 550; color: var(--ink-600);
  background: var(--surface); border: 1px solid var(--line);
  white-space: nowrap;
  transition: all var(--t-fast) var(--ease-out);
}
.chip:active { transform: scale(0.96); }
.chip.active {
  background: var(--ink-900); color: #f7f3e9; border-color: var(--ink-900);
}
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 8px; border-radius: 5px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
}
.tag.gold { background: var(--gold-100); color: var(--gold-700); }
.tag.jade { background: var(--jade-100); color: var(--jade-600); }
.tag.ink { background: var(--surface-3); color: var(--ink-600); }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.danger { background: var(--danger-bg); color: var(--danger); }
.tag.locked { background: rgba(255,255,255,0.08); color: var(--night-muted); }

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 9px; border-radius: var(--r-pill);
  font-size: 11.5px; font-weight: 600;
}
.pill .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.danger { background: var(--danger-bg); color: var(--danger); }
.pill.neutral { background: var(--surface-3); color: var(--ink-600); }

/* ============================ Tab bar ============================ */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 35;
  height: 84px;
  padding: 8px 12px 34px;
  display: flex; align-items: flex-start;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-top: 1px solid var(--line);
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 4px 0 2px; color: var(--ink-400);
  transition: color var(--t-fast);
}
.tab span { font-size: 10px; font-weight: 550; letter-spacing: 0.02em; }
.tab.active { color: var(--ink-900); }
.tab:active { opacity: 0.6; }
.tab .dotmark {
  position: absolute; margin-top: -6px; margin-left: 12px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold-500);
}
.tab .badge-num {
  position: absolute; margin-top: -5px; margin-left: 13px;
  min-width: 14px; height: 14px; padding: 0 3px; border-radius: 7px;
  background: var(--danger); color: #fff;
  font-size: 9px; font-weight: 700; line-height: 14px; text-align: center;
}

/* ============================ Lists ============================ */
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.list-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; width: 100%; text-align: left;
  transition: background var(--t-fast);
  position: relative;
}
.list-row + .list-row::before {
  content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--line);
}
.list-row:active { background: var(--surface-2); }
.list-row .ico { color: var(--ink-400); }
.list-row .lr-label { font-size: 14.5px; font-weight: 500; color: var(--ink-800); }
.list-row .lr-sub { font-size: 11.5px; color: var(--ink-500); margin-top: 2px; }
.list-row .lr-val { font-size: 13px; color: var(--ink-500); display: flex; align-items: center; gap: 4px; }
.is-night .list { background: var(--night-800); border-color: var(--night-line); }
.is-night .list-row + .list-row::before { background: var(--night-line); }
.is-night .list-row .lr-label { color: var(--night-text); }

/* ============================ Avatar ============================ */
.avatar {
  border-radius: 50%; flex: none; display: grid; place-items: center;
  background: linear-gradient(150deg, #e9e4d6, #d6cfbc);
  color: #6b6350; font-family: var(--font-serif); font-weight: 600;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ============================ Forms ============================ */
.field-label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; font-weight: 600; color: var(--ink-600); margin-bottom: 7px;
}
.input {
  width: 100%; height: 46px; padding: 0 14px;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); font-size: 15px; color: var(--ink-900);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
}
.input::placeholder { color: var(--ink-400); }
.input:focus { border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(194,160,97,0.16); }
.input-row {
  display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
}
.input-row:focus-within { border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(194,160,97,0.16); }
.input-row input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 15px; }
.input-row .ico { color: var(--ink-400); }

.segmented {
  display: flex; gap: 2px; padding: 3px;
  background: var(--surface-3); border-radius: var(--r-sm);
}
.segmented button {
  flex: 1; height: 34px; border-radius: 7px; font-size: 13px; font-weight: 550;
  color: var(--ink-600); transition: all var(--t-fast) var(--ease-out);
}
.segmented button.active { background: var(--surface); color: var(--ink-900); box-shadow: var(--sh-1); }

.checkline { display: flex; align-items: flex-start; gap: 9px; font-size: 11.5px; color: var(--ink-500); line-height: 1.6; }
.checkbox {
  width: 17px; height: 17px; border-radius: 4.5px; flex: none; margin-top: 1px;
  border: 1.5px solid var(--line-strong); display: grid; place-items: center;
  transition: all var(--t-fast);
}
.checkbox.on { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.checkline a { color: var(--gold-700); text-decoration: underline; text-underline-offset: 2px; }

/* ============================ Score ============================ */
.score-wrap { position: relative; display: grid; place-items: center; }
.score-num { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.score-unit { font-size: 11px; font-weight: 500; color: var(--ink-400); letter-spacing: 0.08em; }

/* ============================ Bars ============================ */
.bar-track { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 3px; transition: width 900ms var(--ease-out); }
.is-night .bar-track { background: rgba(255,255,255,0.1); }

.wx-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 2px; }
.wx-bar i { display: block; height: 100%; }

/* ============================ Segmented progress ============================ */
.steps-line { display: flex; align-items: center; gap: 0; }
.steps-line .node {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 9.5px; font-weight: 700;
  background: var(--surface-3); color: var(--ink-400);
}
.steps-line .node.done { background: var(--ink-900); color: #fff; }
.steps-line .node.curr { background: var(--gold-500); color: #fff; box-shadow: 0 0 0 4px rgba(194,160,97,0.2); }
.steps-line .link { flex: 1; height: 1.5px; background: var(--line-strong); }
.steps-line .link.done { background: var(--ink-800); }

/* ============================ Sheet / modal ============================ */
.sheet-mask {
  position: absolute; inset: 0; z-index: 60;
  background: rgba(14,16,20,0.46);
  backdrop-filter: blur(2px);
  display: flex; align-items: flex-end;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-base) var(--ease-out);
}
.sheet-mask.open { opacity: 1; pointer-events: auto; }
.sheet {
  width: 100%; background: var(--surface);
  border-radius: 22px 22px 0 0;
  padding: 10px 20px 30px;
  transform: translateY(100%);
  transition: transform var(--t-slow) var(--ease-spring);
  max-height: 78%;
  overflow-y: auto;
}
.sheet-mask.open .sheet { transform: translateY(0); }
.sheet-grip { width: 34px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 0 auto 14px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sheet-head h3 { font-size: 17px; font-weight: 650; }

.toast {
  position: absolute; left: 50%; bottom: 110px; transform: translate(-50%, 12px);
  z-index: 70; padding: 10px 16px; border-radius: var(--r-pill);
  background: rgba(20,22,28,0.92); color: #f5f1e6;
  font-size: 12.5px; font-weight: 500;
  display: flex; align-items: center; gap: 7px;
  opacity: 0; pointer-events: none;
  transition: all var(--t-base) var(--ease-out);
  max-width: 300px;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================ Photos ============================ */
.photo {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  background: var(--surface-3);
}
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.photo .ph-tag {
  position: absolute; left: 8px; bottom: 8px;
  padding: 4px 8px; border-radius: 6px;
  background: rgba(12,14,18,0.6); backdrop-filter: blur(8px);
  color: #fff; font-size: 10.5px; font-weight: 500;
}

/* ============================ Numbers ============================ */
.num-xl { font-family: var(--font-num); font-size: 42px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.num-lg { font-family: var(--font-num); font-size: 26px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.num-md { font-family: var(--font-num); font-size: 19px; font-weight: 650; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }

/* ============================ Empty ============================ */
.empty { text-align: center; padding: 48px 24px; }
.empty .ico { margin: 0 auto 12px; color: var(--ink-300); }
.empty h4 { font-size: 14px; font-weight: 600; color: var(--ink-600); }
.empty p { font-size: 12.5px; color: var(--ink-400); margin-top: 5px; line-height: 1.6; }

/* ============================ Skeleton ============================ */
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.sk {
  border-radius: 6px;
  background: linear-gradient(90deg, var(--surface-3) 25%, #f6f3ec 50%, var(--surface-3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}

/* ============================ Blur lock ============================ */
.locked-veil {
  position: relative; overflow: hidden;
}
.locked-veil .veil-content { filter: blur(5px); opacity: 0.5; user-select: none; pointer-events: none; }
.locked-veil .veil-mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(251,250,247,0) 0%, rgba(251,250,247,0.85) 42%, var(--paper) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding-bottom: 18px; text-align: center;
}
.is-night .locked-veil .veil-mask {
  background: linear-gradient(180deg, rgba(16,18,22,0) 0%, rgba(16,18,22,0.86) 42%, var(--night-900) 100%);
}

/* ============================ 文章详情 · 固定操作条 ============================ */
.artfrost {
  position: absolute; top: 0; left: 0; right: 0;
  height: calc(90px + env(safe-area-inset-top, 0px));
  z-index: 39; pointer-events: none;
  backdrop-filter: blur(18px) saturate(1.1); -webkit-backdrop-filter: blur(18px) saturate(1.1);
  background: linear-gradient(180deg, rgba(251,250,247,0.97) 0%, rgba(251,250,247,0.94) 62%, rgba(251,250,247,0.62) 84%, rgba(251,250,247,0));
  box-shadow: 0 0.5px 0 rgba(20,22,26,0.05);
  opacity: 0; transition: opacity 200ms var(--ease-out);
}
.artbar {
  position: absolute; top: calc(52px + env(safe-area-inset-top, 0px)); left: 0; right: 0;
  z-index: 42;
  padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between;
  pointer-events: none;
}
.artbar-right { display: flex; gap: 7px; }
.artbar .artbtn {
  pointer-events: auto;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  background: rgba(12,14,18,0.34);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.16);
  transition: background var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.artbar .artbtn:active { transform: scale(0.93); }
.artbar.on-light .artbtn {
  color: var(--ink-800);
  background: rgba(255,255,255,0.74);
  border-color: var(--line);
}
.artbar .artbtn[data-on="1"] svg { fill: #e5c98a; stroke: #e5c98a; }
.artbar.on-light .artbtn[data-on="1"] svg { fill: var(--gold-500); stroke: var(--gold-500); }

/* ============================ Animations ============================ */
@keyframes riseIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseRing {
  0% { transform: scale(0.88); opacity: 0.55; }
  70% { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}
@keyframes dashFlow { to { stroke-dashoffset: -60; } }
.anim-rise { animation: riseIn 520ms var(--ease-out) both; }
.anim-fade { animation: fadeIn 420ms var(--ease-out) both; }

/* ============================ Utility ============================ */
.tc { text-align: center; }
.tr { text-align: right; }
.rel { position: relative; }
.hide { display: none !important; }
.nowrap { white-space: nowrap; }
.clip-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.clip-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clip-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tabular { font-variant-numeric: tabular-nums; }
