:root {
  --ink: #113b32;
  --ink-soft: #28594b;
  --gold: #b89856;
  --gold-soft: #e9dcc1;
  --paper: rgba(255, 255, 252, .91);
  --line: rgba(17, 59, 50, .14);
  --danger: #a5443a;
  --shadow: 0 18px 60px rgba(14, 46, 38, .12);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  color: var(--ink);
  background: #f6f3ec;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: linear-gradient(118deg, #faf9f4 0%, #edeee8 45%, #f9f5ec 100%); }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .55; background: repeating-linear-gradient(123deg, transparent 0 52px, rgba(70, 92, 82, .035) 53px 54px, transparent 55px 119px), repeating-linear-gradient(33deg, transparent 0 84px, rgba(184, 152, 86, .04) 85px 86px, transparent 87px 160px); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
.app-shell, .system-wrap { position: relative; z-index: 1; min-height: 100vh; }
.auth-wrap { width: min(100% - 32px, 500px); margin: 0 auto; padding: 9vh 0 36px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.auth-wrap .brand { margin: 0 4px 24px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--gold); border-radius: 50%; font-family: Georgia, serif; font-size: 23px; color: var(--gold); background: rgba(255,255,252,.75); box-shadow: inset 0 0 0 4px rgba(184, 152, 86, .08); }
.brand h1 { margin: 0; font-size: clamp(18px, 4vw, 22px); letter-spacing: .08em; font-weight: 650; }
.eyebrow { margin: 0 0 4px; color: var(--gold); letter-spacing: .14em; font-size: 10px; font-weight: 700; }
.card, .hero-card { border: 1px solid rgba(184, 152, 86, .4); border-radius: 22px; padding: clamp(20px, 5vw, 30px); background: var(--paper); box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.card h2 { margin: 0 0 16px; font-size: 22px; }
.auth-card { margin-top: 12px; }
.support-text, .readonly-line { color: #60746c; line-height: 1.65; margin: 0 0 16px; font-size: 14px; }
.form-stack { display: grid; gap: 14px; }
label { display: grid; gap: 7px; font-size: 14px; font-weight: 650; color: #31564b; }
input, select, textarea { width: 100%; border: 1px solid var(--line); background: rgba(255,255,255,.82); border-radius: 11px; color: var(--ink); padding: 11px 12px; outline: 0; transition: border .16s, box-shadow .16s; }
textarea { min-height: 92px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,152,86,.16); }
.check-row { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.check-row input { width: auto; accent-color: var(--ink); }
.optional { color: #8b8271; font-size: 12px; font-weight: 400; }
.primary-button, .secondary-button, .quiet-button, .gold-button, .link-button, .row-actions button, .segmented button { border: 0; border-radius: 10px; min-height: 42px; padding: 10px 14px; font-weight: 700; text-align: center; text-decoration: none; }
.primary-button { background: var(--ink); color: #fffdf7; box-shadow: 0 8px 18px rgba(17, 59, 50, .19); }
.primary-button:hover { background: #0b2e27; }
.secondary-button { color: var(--ink); background: #f4efe4; border: 1px solid var(--gold-soft); }
.quiet-button, .link-button { color: var(--ink); background: transparent; }
.link-button { margin-top: 12px; padding: 6px 0; text-decoration: underline; text-underline-offset: 4px; }
.gold-button { color: #503c1b; background: linear-gradient(135deg, #ecdab6, #cda962); }
.button-link { display: block; }
.form-message { padding: 10px 12px; border-radius: 10px; margin: 0 0 14px; font-size: 14px; line-height: 1.5; }
.is-error { color: #842d24; background: #f9e5e1; }.is-success { color: #1c5948; background: #e2f0e9; }
.loading-card { width: max-content; margin: 20vh auto; padding: 18px 22px; border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); }
.spinner { display: inline-block; width: 17px; height: 17px; margin-right: 8px; vertical-align: -3px; border-radius: 50%; border: 2px solid var(--gold-soft); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.success-center { text-align: center; padding: 8px 0; }.success-center .spinner { width: 25px; height: 25px; }
.system-wrap { width: min(1280px, 100%); margin: auto; padding-bottom: 44px; }
.topbar { position: sticky; top: 0; z-index: 4; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 17px clamp(16px, 4vw, 38px); background: rgba(249,248,241,.87); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(184,152,86,.3); }
.topbar-tools { display: flex; align-items: center; gap: 8px; }.topbar .brand h1 { font-size: 16px; }.topbar .brand-mark { width: 34px; height: 34px; font-size: 18px; }
.store-switch { display: flex; align-items: center; gap: 7px; font-size: 12px; white-space: nowrap; }.store-switch select { width: auto; padding: 7px 9px; }
.content { width: min(100% - 32px, 1120px); margin: 28px auto; }.hero-card { background: linear-gradient(115deg, rgba(17,59,50,.98), rgba(33,83,69,.93)); color: #fffdf7; }.hero-card h2 { margin: 5px 0; font-size: clamp(26px, 5vw, 37px); }.hero-card p:last-child { margin: 0; color: #e6d7b7; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 13px; margin-top: 17px; }
.feature-card { min-height: 138px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 7px; padding: 18px; border: 1px solid rgba(184,152,86,.38); border-radius: 17px; color: var(--ink); background: var(--paper); box-shadow: 0 10px 28px rgba(17,59,50,.08); }.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }.feature-card span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--gold); background: #f6efe1; font-family: Georgia, serif; }.feature-card strong { font-size: 17px; }.feature-card small { color: #718279; line-height: 1.5; }.muted-feature { opacity: .7; }
.segmented { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }.segmented button { color: var(--ink); background: #f2eee5; }.segmented .selected { color: #fff; background: var(--ink); }.search-row { display: grid; grid-template-columns: minmax(110px, .45fr) minmax(0, 1fr) auto; gap: 8px; margin: 15px 0; }
.inventory-list { display: grid; gap: 10px; }.inventory-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 0; border-top: 1px solid var(--line); }.inventory-row h3 { margin: 0 0 5px; font-size: 16px; }.inventory-row p { margin: 3px 0; color: #557068; font-size: 13px; }.row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }.row-actions button { min-height: 33px; padding: 6px 9px; color: var(--ink); background: #f2eee5; font-size: 12px; }
.flow-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }.summary-list { display: grid; grid-template-columns: max-content 1fr; gap: 10px 16px; margin: 0 0 20px; font-size: 14px; }.summary-list dt { color: #6b766e; }.summary-list dd { margin: 0; font-weight: 700; word-break: break-word; }
.inline-form { display: flex; gap: 8px; align-items: flex-end; }.inline-form input { min-width: 0; }.compact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }.managed-user-form { padding: 18px 0; border-top: 1px solid var(--line); }.managed-user-form h3 { margin: 0 0 12px; font-size: 16px; }
.marble-glow { position: fixed; border-radius: 50%; filter: blur(1px); pointer-events: none; }.marble-glow-one { width: 34rem; height: 34rem; top: -18rem; right: -16rem; background: radial-gradient(circle, rgba(229,202,149,.19), transparent 69%); }.marble-glow-two { width: 30rem; height: 30rem; bottom: -18rem; left: -15rem; background: radial-gradient(circle, rgba(43,100,82,.12), transparent 67%); }
@media (max-width: 640px) { .topbar { align-items: flex-start; }.topbar .eyebrow { display: none; }.topbar-tools { flex-direction: column; align-items: flex-end; }.store-switch span { display: none; }.content { margin-top: 18px; }.inventory-row { align-items: flex-start; flex-direction: column; }.row-actions { justify-content: flex-start; }.search-row { grid-template-columns: 1fr 1fr; }.search-row input { grid-column: span 2; }.search-row button { grid-column: span 2; }.compact-grid { grid-template-columns: 1fr; }.inline-form { flex-direction: column; align-items: stretch; } }
