@import url('/theme.css?v=20261012-sakura-1');

:root { color: var(--ink); background: var(--page); font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif; font-synthesis: none; }
* { box-sizing: border-box; }
html, body, #adminApp { min-width: 280px; min-height: 100%; margin: 0; }
body { min-height: 100vh; background: var(--page); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

.login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 43%) 1fr; background: #fff; }
.login-context { min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; padding: 48px clamp(40px, 6vw, 92px); color: var(--ink); background: var(--surface-soft); }
.club-logo { display: block; flex: 0 0 auto; height: auto; object-fit: contain; background: #fff; border-radius: 8px; }
.login-brand { display: inline-flex; align-items: center; gap: 16px; width: fit-content; }
.login-brand .club-logo { width: 136px; padding: 6px; border-radius: 12px; }
.login-brand strong { font-size: 20px; letter-spacing: .05em; white-space: nowrap; }
.login-context > div { max-width: 430px; }
.login-context > div > p { margin: 0 0 15px; color: var(--primary); font-size: 13px; }
.login-context h1 { margin: 0; font-size: clamp(30px, 4vw, 48px); font-weight: 600; line-height: 1.3; }
.login-context ul { display: grid; gap: 11px; margin: 34px 0 0; padding: 25px 0 0; border-top: 1px solid rgba(255,255,255,.2); list-style: none; color: var(--muted); font-size: 13px; }
.login-context li::before { content: "—"; margin-right: 10px; color: var(--primary); }
.login-context > small { color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.login-panel { display: grid; place-items: center; min-height: 100vh; padding: 40px; }
.login-form { width: min(100%, 390px); display: grid; gap: 20px; }
.form-heading { margin-bottom: 8px; }
.form-heading h2 { margin: 0 0 8px; font-size: 25px; }
.form-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.login-form label, .stack-form label, .inline-form label, .field-grid label { display: grid; gap: 7px; }
.login-form label span, .stack-form label span, .inline-form label span, .field-grid label span { color: var(--ink); font-size: 12px; font-weight: 600; }
input, textarea, select { width: 100%; color: var(--ink); background: #fff; border: 1px solid #dfc9c3; border-radius: 10px; outline: none; }
input, select { min-height: 42px; padding: 0 11px; }
textarea { padding: 10px 11px; line-height: 1.6; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(184,62,104,.12); }
.back-link { color: #6a717a; text-align: center; font-size: 12px; }
.back-link:hover { color: var(--primary); }

.button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 15px; color: var(--ink); background: #fff; border: 1px solid #dfc9c3; border-radius: 10px; font-size: 12px; font-weight: 600; }
.button:hover { background: var(--page); border-color: #aeb5bc; }
.button.primary { color: #fff; background: var(--primary); border-color: var(--primary); }
.button.primary:hover { background: var(--primary-hover); }
.button.danger { color: #9b302b; background: #fff; border-color: #dfb7b4; }
.button.small { min-height: 30px; padding: 0 10px; font-size: 11px; }
.button.wide { width: 100%; min-height: 44px; }
.button:disabled { cursor: default; opacity: .55; }

.admin-layout { min-height: 100vh; display: grid; grid-template-columns: 226px minmax(0, 1fr); }
.admin-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 14px 16px; color: #f4dfe5; background: #52353d; }
.admin-brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 22px; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-brand .club-logo { width: 64px; padding: 3px; }
.admin-brand strong, .admin-brand small { display: block; }
.admin-brand strong { color: #fff; font-size: 14px; }
.admin-brand small { margin-top: 3px; color: #d9aebc; font-size: 10px; }
.admin-sidebar nav { display: grid; gap: 4px; margin-top: 22px; }
.side-link { min-height: 42px; display: grid; grid-template-columns: 25px 1fr; align-items: center; padding: 0 11px; color: #f1dce3; text-align: left; background: transparent; border: 0; border-radius: 10px; font-size: 13px; }
.side-link span { color: #dbadbd; text-align: center; font-size: 12px; }
.side-link:hover { color: #fff; background: rgba(255,255,255,.055); }
.side-link.active { color: #fff; background: var(--primary); }
.side-link.active span { color: #fff; }
.sidebar-user { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 9px; margin-top: auto; padding: 14px 8px; border-top: 1px solid rgba(255,255,255,.1); }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; color: #52353d; background: var(--primary-soft); border-radius: 50%; font-size: 12px; font-weight: 700; }
.sidebar-user strong, .sidebar-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user strong { color: #fff; font-size: 12px; }
.sidebar-user small { margin-top: 3px; color: #d9aebc; font-size: 9px; }
.logout-button { min-height: 34px; margin: 0 8px; color: #efd3dd; background: transparent; border: 1px solid #a86d82; border-radius: 10px; font-size: 11px; }
.logout-button:hover { color: #fff; border-color: #e4a9bd; }

.admin-workspace { min-width: 0; }
.workspace-header { position: sticky; z-index: 10; top: 0; height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 28px; background: #fff; border-bottom: 1px solid var(--line); }
.workspace-header > div:first-of-type { display: flex; align-items: baseline; gap: 9px; }
.workspace-header strong { font-size: 13px; }
.workspace-header span { color: var(--muted); font-size: 11px; }
.header-links { display: flex; align-items: center; gap: 7px; }
.header-links a, .header-links button, .mobile-menu { min-height: 32px; padding: 0 10px; color: #545b63; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-size: 11px; }
.header-links a { display: inline-flex; align-items: center; }
.mobile-menu { display: none; }
.workspace-main { padding: 30px; }
.page-heading { min-height: 62px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-heading h1 { margin: 0 0 7px; font-size: 24px; letter-spacing: -.02em; }
.page-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.metrics-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); background: #fff; border: 1px solid var(--line); }
.metrics-row.count-1 { grid-template-columns: 1fr; }
.metrics-row.count-2 { grid-template-columns: repeat(2, 1fr); }
.metrics-row.count-3 { grid-template-columns: repeat(3, 1fr); }
.metrics-row > div { min-height: 104px; padding: 20px 22px; border-right: 1px solid var(--line); }
.metrics-row > div:last-child { border-right: 0; }
.metrics-row span, .metrics-row strong { display: block; }
.metrics-row span { color: var(--muted); font-size: 11px; }
.metrics-row strong { margin-top: 13px; font-size: 28px; font-weight: 600; }
.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.dashboard-visual-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .55fr); gap: 18px; margin-top: 18px; }
.trend-chart { height: 250px; display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: clamp(8px, 2vw, 24px); padding: 24px 28px 18px; }
.trend-day { height: 100%; display: grid; grid-template-rows: 1fr 22px; align-items: end; gap: 8px; }
.trend-bars { height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 5px; border-bottom: 1px solid var(--line); }
.trend-bars i { width: min(18px, 35%); min-height: 0; border-radius: 6px 2px 0 0; transition: height .25s; }
.revenue-bar { background: var(--primary); }
.exam-bar { background: #dcb4c0; }
.trend-day > span { color: var(--muted); text-align: center; font-size: 9px; }
.mix-visual { min-height: 250px; display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 24px; padding: 22px; }
.donut { width: 148px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; }
.donut > div { width: 96px; aspect-ratio: 1; display: grid; place-content: center; color: #252b31; text-align: center; background: #fff; border-radius: 50%; }
.donut strong, .donut span { display: block; }
.donut strong { font-size: 17px; }
.donut span { margin-top: 4px; color: var(--muted); font-size: 9px; }
.mix-legend { display: grid; gap: 11px; }
.mix-legend > div { display: grid; grid-template-columns: 9px 1fr auto; align-items: center; gap: 7px; font-size: 10px; }
.mix-legend i { width: 9px; height: 9px; border-radius: 6px; }
.mix-legend strong { font-size: 11px; }
.mix-legend small { grid-column: 2 / -1; color: var(--muted); }
.panel { background: #fff; border: 1px solid var(--line); }
.panel > header { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel h2 { margin: 0; font-size: 14px; }
.panel header p, .form-section > p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.text-button { color: var(--primary); background: transparent; border: 0; font-size: 11px; }
.table-panel { min-height: 180px; }
.table-wrap { width: 100%; overflow: auto; }
table { width: 100%; min-width: 680px; border-collapse: collapse; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-size: 11px; }
th { color: var(--muted); background: var(--page); font-weight: 600; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--page); }
td strong, td small { display: block; }
td strong { color: var(--ink); font-size: 12px; }
td small { max-width: 190px; margin-top: 3px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.tag { display: inline-flex; min-height: 22px; align-items: center; padding: 0 8px; color: #596068; background: #eef0f1; border-radius: 6px; font-size: 10px; white-space: nowrap; }
.tag.pending { color: #82631f; background: #f6efd9; }
.tag.paid { color: #286042; background: #e3eee8; }
.tag.failed { color: #953833; background: #f5e5e3; }
.tag.canceled { color: #676d73; background: #e9ebed; }
.empty-cell { height: 120px; color: var(--muted); text-align: center; }
.row-actions { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.muted { color: var(--muted); font-size: 10px; }
.compact-input { width: 70px; min-height: 32px; }
.review-note, .password-reset { min-width: 150px; min-height: 32px; }
td select { min-width: 90px; min-height: 32px; }

.form-panel { max-width: 920px; }
.settings-form { display: grid; }
.form-section { padding: 24px; border-bottom: 1px solid var(--line); }
.form-section h2 { margin: 0 0 18px; font-size: 14px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-grid .full { grid-column: 1 / -1; }
.field-help { display: block; margin-top: -11px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.qr-setting { display: flex; align-items: flex-end; gap: 18px; margin-top: 17px; }
.qr-setting img { width: 142px; aspect-ratio: 1; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.payment-qr-settings { align-items: flex-start; }
.payment-qr-settings figure { margin: 0; display: grid; gap: 7px; color: #626b73; font-size: 11px; text-align: center; }
.payment-qr-settings img { width: 142px; height: 190px; aspect-ratio: auto; object-fit: contain; }
.file-button { min-height: 36px; display: inline-flex; align-items: center; padding: 0 13px; color: #3a4148; background: #fff; border: 1px solid #cbd0d5; border-radius: 10px; font-size: 11px; font-weight: 600; cursor: pointer; }
.file-button input { display: none; }
.form-footer { min-height: 74px; display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding: 16px 24px; }
.form-footer #configNotice { margin-right: auto; }

.create-user-panel { margin-bottom: 18px; }
.answer-code-create { margin-bottom: 18px; }
.answer-code-form { display: grid; grid-template-columns: minmax(180px, 1fr) 130px 140px minmax(230px, 1fr) auto; align-items: end; gap: 14px; padding: 18px; }
.answer-code-form > label { display: grid; gap: 7px; }
.answer-code-form > label > span:first-child { color: var(--ink); font-size: 11px; font-weight: 600; }
.revenue-option small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.answer-code-create > #answerCodeNotice { padding: 0 18px 18px; }
.generated-code-banner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; padding: 14px 18px; color: var(--ink); background: var(--primary-soft); border: 1px solid #efc4d1; }
.generated-code-banner span, .generated-code-banner strong { display: block; }
.generated-code-banner span { font-size: 10px; }
.generated-code-banner strong { margin-top: 5px; font: 700 17px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .06em; }
.answer-code-value { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .04em; }
.role-guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-bottom: 18px; background: var(--line); border: 1px solid var(--line); }
.role-guide > div { padding: 14px 16px; background: #fff; }
.role-guide strong, .role-guide span { display: block; }
.role-guide strong { font-size: 12px; }
.role-guide span { margin-top: 5px; color: var(--muted); font-size: 10px; }
.inline-form { display: grid; grid-template-columns: 1fr 1fr 130px 1fr auto; align-items: end; gap: 12px; padding: 18px; }
.inline-actions { display: flex; gap: 6px; }
.create-user-panel > #createUserNotice { padding: 0 18px 18px; }
.switch-label { display: inline-flex; align-items: center; gap: 7px; }
.switch-label input { width: 15px; min-height: auto; }
.switch-label span { font-size: 10px; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 920px; }
.account-card { padding: 24px; }
.account-card h2 { margin-bottom: 20px; }
.account-card dl { margin: 0; }
.account-card dl div { display: grid; grid-template-columns: 110px 1fr; gap: 15px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.account-card dt { color: #747b83; }
.account-card dd { margin: 0; font-weight: 600; }
.stack-form { display: grid; gap: 14px; }
.stack-form .button { justify-self: start; margin-top: 4px; }
.admin-notice { padding: 10px 12px; color: var(--ink); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 10px; font-size: 11px; line-height: 1.5; }
.admin-notice.error { color: #8d3631; background: #f8ecea; border-color: #ebcac7; }

.loading-panel { min-height: 160px; display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.blueprint-panel { margin-bottom: 18px; }
.question-summary { display: grid; grid-template-columns: repeat(6, 1fr); }
.question-summary > div { padding: 16px; border-right: 1px solid var(--line); }
.question-summary > div:last-child { border-right: 0; }
.question-summary span, .question-summary strong, .question-summary small { display: block; }
.question-summary span { color: #656c74; font-size: 10px; }
.question-summary strong { margin-top: 7px; font-size: 22px; font-weight: 600; }
.question-summary small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.question-summary label { display: grid; grid-template-columns: 1fr 48px; align-items: center; gap: 5px; margin-top: 12px; color: #6f767e; font-size: 9px; }
.question-summary input { min-height: 30px; padding: 0 5px; text-align: center; }
.blueprint-actions { min-height: 58px; display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); color: #6f767e; font-size: 11px; }
.blueprint-actions > span { margin-right: auto; }
.question-editor { margin-bottom: 18px; }
.question-editor.embedded { margin: 10px; border-color: #d79bac; }
.question-editor-row > td { padding: 0; background: var(--page); }
.question-editor-row:hover { background: var(--page); }
.question-form .field-grid { padding: 20px; }
.question-form em { color: #8a9097; font-style: normal; font-weight: 400; }
.check-field { align-content: start; }
.checkbox-row { min-height: 42px; display: flex !important; align-items: center; gap: 8px; color: #4e555d !important; font-weight: 400 !important; }
.checkbox-row input { width: 16px; min-height: auto; }
.answer-editor { display: contents; }
.choice-editor { display: grid; gap: 10px; }
.choice-editor-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.choice-editor-heading > span { color: var(--ink); font-size: 12px; font-weight: 600; }
.choice-editor-heading small { color: var(--muted); font-size: 10px; }
.option-editor-list { display: grid; gap: 8px; }
.option-editor-item { display: grid; grid-template-columns: 72px 34px minmax(0, 1fr) 36px; align-items: center; gap: 8px; padding: 8px; background: var(--page); border: 1px solid var(--line); border-radius: 10px; }
.correct-choice { min-height: 32px; display: inline-flex !important; grid-template-columns: none !important; align-items: center; justify-content: center; gap: 5px !important; color: #60676f; background: #fff; border: 1px solid #d4d8dc; border-radius: 10px; cursor: pointer; }
.correct-choice:has(input:checked) { color: #fff; background: var(--primary); border-color: var(--primary); }
.correct-choice input { width: 14px; min-height: auto; margin: 0; accent-color: #fff; }
.correct-choice span { color: inherit !important; font-size: 10px !important; font-weight: 600 !important; }
.option-key { width: 30px; height: 30px; display: grid; place-items: center; color: #4d555d; background: #fff; border: 1px solid #d5d9dd; font-size: 11px; }
.option-text { min-height: 36px; }
.remove-option { width: 32px; height: 32px; padding: 0; color: #9b302b; background: #fff; border: 1px solid #e2c5c3; border-radius: 10px; font-size: 19px; line-height: 1; }
.remove-option:hover { background: #f9ecea; }
.add-option { min-height: 36px; justify-self: start; padding: 0 14px; color: var(--primary); background: #fff; border: 1px dashed #d79bac; border-radius: 10px; font-size: 11px; font-weight: 600; }
.add-option:hover { background: var(--surface-soft); }
.question-list-panel { min-height: 240px; }
.question-toolbar { min-height: 62px; display: grid; grid-template-columns: minmax(220px, 420px) 150px 1fr; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.question-toolbar input, .question-toolbar select { min-height: 36px; }
.question-toolbar > span { color: var(--muted); text-align: right; font-size: 10px; }
.result-detail { margin-bottom: 18px; }
.answer-detail-list { max-height: 620px; overflow: auto; padding: 4px 18px 18px; }
.answer-detail-list article { padding: 16px 0; border-bottom: 1px solid var(--line); }
.answer-detail-list article:last-child { border-bottom: 0; }
.answer-detail-list article > header { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; }
.answer-detail-list article > header strong { color: #286042; }
.answer-detail-list article.incorrect > header strong { color: #9b302b; }
.answer-detail-list h3 { margin: 9px 0 12px; font-size: 13px; line-height: 1.6; }
.answer-detail-list dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.answer-detail-list dl div { padding: 10px 12px; background: var(--page); }
.answer-detail-list dt { color: #7d848b; font-size: 9px; }
.answer-detail-list dd { margin: 5px 0 0; font-size: 11px; line-height: 1.6; white-space: pre-wrap; }
.grading-meta { margin-top: 10px; padding: 9px 11px; color: var(--muted); background: var(--surface-soft); border-left: 2px solid var(--primary); font-size: 9px; }
.grading-meta p { margin: 4px 0 0; font-size: 10px; line-height: 1.55; }

@media (max-width: 1050px) {
  .overview-grid { grid-template-columns: 1fr; }
  .dashboard-visual-grid { grid-template-columns: 1fr; }
  .inline-form { grid-template-columns: 1fr 1fr; }
  .answer-code-form { grid-template-columns: 1fr 1fr; }
  .answer-code-form .revenue-option { grid-column: 1 / -1; }
  .answer-code-form > .button { justify-self: end; }
  .question-summary { grid-template-columns: repeat(3, 1fr); }
  .question-summary > div:nth-child(3) { border-right: 0; }
  .question-summary > div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .inline-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (max-width: 760px) {
  .login-layout { grid-template-columns: 1fr; }
  .login-context { min-height: auto; padding: 28px 24px; }
  .login-brand .club-logo { width: 72px; padding: 3px; border-radius: 8px; }
  .login-context > div, .login-context > small { display: none; }
  .login-panel { min-height: calc(100vh - 122px); padding: 30px 20px; }
  .admin-layout { display: block; }
  .admin-sidebar { position: fixed; z-index: 30; left: 0; top: 0; width: 226px; transform: translateX(-100%); transition: transform .2s; }
  .admin-sidebar.open { transform: translateX(0); box-shadow: 8px 0 30px rgba(0,0,0,.2); }
  .mobile-menu { display: inline-flex; align-items: center; }
  .workspace-header { padding: 0 15px; }
  .workspace-header > div:first-of-type { display: none; }
  .workspace-main { padding: 20px 14px; }
  .page-heading { min-height: auto; align-items: stretch; flex-direction: column; }
  .page-heading > .button { align-self: flex-start; }
  .metrics-row { grid-template-columns: 1fr 1fr; }
  .metrics-row > div { border-bottom: 1px solid var(--line); }
  .metrics-row > div:nth-child(even) { border-right: 0; }
  .metrics-row > div:last-child,
  .metrics-row > div:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
  .field-grid, .account-grid, .inline-form { grid-template-columns: 1fr; }
  .answer-code-form { grid-template-columns: 1fr; }
  .answer-code-form .revenue-option { grid-column: auto; }
  .answer-code-form > .button { justify-self: stretch; }
  .trend-chart { height: 210px; gap: 7px; padding-inline: 12px; }
  .mix-visual { grid-template-columns: 120px 1fr; }
  .donut { width: 120px; }
  .donut > div { width: 78px; }
  .role-guide, .question-summary { grid-template-columns: 1fr; }
  .role-guide > div, .question-summary > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .question-toolbar { grid-template-columns: 1fr; }
  .answer-detail-list dl { grid-template-columns: 1fr; }
  .question-toolbar > span { text-align: left; }
  .choice-editor-heading { align-items: flex-start; flex-direction: column; }
  .option-editor-item { grid-template-columns: 62px 30px minmax(0, 1fr) 34px; gap: 5px; }
  .field-grid .full, .inline-actions { grid-column: auto; }
  .form-section, .account-card { padding: 18px; }
}

/* Club theme refinements; preserve the dashboard's dense working layout. */
.login-context { border-right: 1px solid var(--line); }
.login-brand { flex-wrap: wrap; }
.login-brand .club-logo { width: 156px; padding: 6px; border: 1px solid #efc4d1; border-radius: 26px; }
.login-context h1 { font-weight: 750; }
.login-context ul { border-top-color: #e9cbd3; line-height: 1.8; }
.login-panel { background: var(--cream); }
.login-form { padding: 30px; width: min(100%, 450px); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
input, select { min-height: 44px; }
input[type=checkbox], input[type=radio] { accent-color: var(--primary); }
.button { min-height: 42px; }
.button.small { min-height: 36px; }
.back-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; color: var(--muted); border-radius: 10px; }
.back-link:hover { color: var(--primary); }
.admin-brand .club-logo { border-radius: 14px; }
.admin-sidebar nav { gap: 6px; }
.side-link { min-height: 44px; }
.logout-button { min-height: 44px; }
.avatar { color: var(--primary); }
.header-links a, .header-links button, .mobile-menu { min-height: 40px; }
.panel { border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.metrics-row { gap: 14px; background: transparent; border: 0; }
.metrics-row > div { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.metrics-row > div:last-child { border-right: 1px solid var(--line); }
.metrics-row strong { color: var(--primary); font-variant-numeric: tabular-nums; }
.role-guide { gap: 12px; background: transparent; border: 0; }
.role-guide > div { border: 1px solid var(--line); border-radius: 12px; }
.generated-code-banner { border-radius: 14px; }
.question-summary strong { color: var(--primary); font-variant-numeric: tabular-nums; }
.trend-bars i { border-radius: 5px 5px 0 0; }
.finance-filter-panel { margin-bottom: 18px; }
.finance-filter-form { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; padding: 20px; }
.finance-filter-form label { display: grid; gap: 8px; min-width: 180px; font-size: 12px; }
.finance-filter-form input { min-width: 0; width: 100%; }
.finance-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; }
.finance-filter-help { flex-basis: 100%; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.finance-period { color: var(--muted); font-size: 12px; line-height: 1.6; }
.finance-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
.finance-metrics small { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.finance-code-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px; margin-bottom: 18px; }
.finance-code-summary h2 { margin: 0 0 8px; font-size: 14px; }
.finance-code-summary p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.finance-code-summary > strong { flex-shrink: 0; text-align: right; font-size: 20px; font-variant-numeric: tabular-nums; }
.finance-code-summary small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; font-weight: 400; }
.finance-table { min-width: 760px; }
.finance-table th, .finance-table td { font-size: 12px; }
.finance-time { white-space: nowrap; }
.finance-amount { color: var(--primary); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.finance-order { max-width: 290px; overflow-wrap: anywhere; }
.finance-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--line); }
.finance-pagination > span { color: var(--muted); font-size: 12px; }
.finance-pagination > div { display: flex; gap: 8px; }
@media (max-width: 760px) {
  .finance-filter-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 16px; gap: 12px; }
  .finance-filter-form label { min-width: 0; }
  .finance-filter-form > button, .finance-shortcuts, .finance-filter-help { grid-column: 1 / -1; }
  .finance-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finance-code-summary { padding: 16px; align-items: flex-start; flex-direction: column; }
  .finance-code-summary > strong { text-align: left; }
  .login-context { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px; }
  .login-brand { flex-wrap: nowrap; gap: 12px; }
  .login-brand .club-logo { width: 68px; border-radius: 14px; }
  .login-brand strong { font-size: 18px; }
  .login-panel { padding: 24px 16px; }
  .login-form { padding: 24px 20px; }
  .metrics-row { gap: 10px; }
  .metrics-row > div, .metrics-row > div:nth-child(even), .metrics-row > div:last-child, .metrics-row > div:nth-last-child(2):nth-child(odd) { border: 1px solid var(--line); padding: 16px; }
  .role-guide > div { border: 1px solid var(--line); }
  .button.small { min-height: 44px; }
}
