:root {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-synthesis: none;
  color: #26362e;
  background: #f7f9f6;
  --muted: #5e6c62;
  --line: #dce3dc;
  --green: #27624c;
  --surface: #fff;
  --soft: #edf3ee;
}
* { box-sizing: border-box; }
body { margin: 0; }
::selection { background: #cce1d2; color: #183d2b; }
a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
button, input, textarea { font: inherit; touch-action: manipulation; }
button { cursor: pointer; min-height: 44px; }
button:disabled { opacity: .65; cursor: wait; }
:focus-visible { outline: 3px solid #497e62; outline-offset: 4px; }
h2:focus, #resultTitle:focus { outline: none; }
[hidden] { display: none !important; }
.topbar { max-width: 1240px; height: 88px; margin: auto; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 17px; font-weight: 650; letter-spacing: -.3px; }
.brand-mark { font: italic 700 25px Georgia, serif; display: grid; place-items: center; background: var(--green); color: #fff; width: 34px; height: 34px; border-radius: 8px; padding-bottom: 4px; }
.quiet-link { font-size: 13px; color: var(--muted); padding: 12px 0; }
.customer-layout { width: 100%; max-width: 548px; margin: 48px auto 64px; padding: 0 24px; }
h1 { font-size: clamp(32px, 3.2vw, 44px); line-height: 1.4; font-weight: 600; letter-spacing: -.025em; margin: 0 0 24px; }
p { line-height: 1.8; color: var(--muted); margin: 8px 0 18px; overflow-wrap: anywhere; }
.workspace { min-width: 0; }
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 30px 32px 32px; }
.current .progress .complete h2 { font-size: 22px; line-height: 1.45; font-weight: 600; letter-spacing: -.02em; margin: 0 0 10px; }
h3 { font-size: 14px; margin: 22px 0 10px; }
.form-section { padding-top: 0; }
.form-section > label:first-child { margin-top: 0; }
.form-section > p { font-size: 13px; }
label { display: block; font-size: 13px; font-weight: 550; margin: 24px 0 9px; }
input, textarea { width: 100%; min-height: 48px; border: 1px solid #b6c3b9; border-radius: 7px; background: #fff; padding: 13px 14px; color: #26362e; caret-color: var(--green); }
input:hover, textarea:hover { border-color: #6b8d77; }
input::placeholder, textarea::placeholder { color: #647368; opacity: 1; font-size: 13px; }
textarea { height: 170px; resize: vertical; font-family: ui-monospace, monospace; font-size: 12px; line-height: 1.7; }
.primary { border: 1px solid var(--green); background: var(--green); color: #fff; border-radius: 7px; padding: 13px 19px; font-size: 14px; font-weight: 550; margin-top: 22px; }
.primary:hover:not(:disabled) { background: #1c503b; }
.primary:active:not(:disabled) { background: #153e2e; }
.full { width: 100%; }
.field-note { font-size: 12px !important; color: var(--muted); margin: 15px 0 0; line-height: 1.7; }
.input-help { font-size: 12px; margin: 8px 0 0; }
.plan-summary { display: flex; flex-direction: column; gap: 6px; background: var(--soft); border-radius: 7px; padding: 15px 17px; margin: 22px 0; }
.plan-summary span { font-size: 12px; color: var(--muted); }
.plan-summary strong { line-height: 1.6; overflow-wrap: anywhere; font-weight: 600; }
.checkbox-row { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 14px 0 0; cursor: pointer; }
input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--green); flex: 0 0 18px; }
.notice:empty { display: none; }
.notice { font-size: 13px; color: #873c26; background: #fcf0e9; border: 1px solid #edd0bf; padding: 12px 14px; border-radius: 7px; overflow-wrap: anywhere; margin: 20px 0 0; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-title h2 { margin: 0; }
.text-button { border: 0; background: none; color: var(--green); font-size: 13px; padding: 10px 12px; }
.text-button:hover { background: var(--soft); border-radius: 5px; }
.secondary { border: 1px solid #b6c3b9; background: #fff; border-radius: 7px; padding: 10px 13px; font-size: 12px; color: #355b45; white-space: nowrap; }
.secondary:hover { background: var(--soft); }
.task-status { margin-top: 24px; }
#status { margin: 12px 0 0; font-size: 14px; }
#downloads { display: grid; gap: 10px; margin: 22px 0 0; }
#downloads:empty { display: none; }
#downloads button { background: var(--soft); border: 1px solid #c4d6c8; color: var(--green); text-align: left; padding: 16px; border-radius: 7px; font-size: 14px; }
#downloads button:hover { background: #dfece2; }
#deliverySection { border-top: 1px solid var(--line); margin-top: 24px; }
#delivery { background: #f5f7f4; padding: 16px; border-radius: 7px; line-height: 1.8; }
.caption { font-size: 12px; color: var(--muted); }
.admin-body { background: #fff; }
.sidebar { width: 236px; position: fixed; inset: 0 auto 0 0; background: #f1f5ef; border-right: 1px solid var(--line); padding: 30px 22px; display: flex; flex-direction: column; }
.sidebar .brand { font-size: 15px; }
.nav-label { font-size: 12px; margin: 48px 12px 12px; }
.sidebar > a:not(.brand) { padding: 13px 12px; border-radius: 7px; font-size: 13px; margin-bottom: 6px; color: var(--muted); }
.sidebar > a.nav-active { background: #e0eadf; color: #294d36; font-weight: 600; }
.sidebar-bottom { margin-top: auto; font-size: 12px; color: var(--muted); padding: 12px; }
.sidebar-bottom small { font-size: 12px; line-height: 2.4; }
.admin-main { margin-left: 236px; }
.admin-header { height: 76px; padding: 0 40px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 13px; color: var(--muted); }
.admin-content { padding: 40px; max-width: 1280px; }
.page-title { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 32px; }
.page-title h1 { font-size: 30px; margin: 0 0 10px; }
.page-title p { font-size: 13px; margin: 0; max-width: 60ch; }
.admin-login { max-width: 440px; border: 1px solid var(--line); border-radius: 14px; padding: 30px; margin-top: 40px; }
.admin-login p { font-size: 13px; }
.issue-panel { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 22px; }
.issue-panel h2, .data-section h2 { font-size: 18px; }
.issue-panel p { font-size: 13px; margin: 0; }
.issue-controls { display: flex; align-items: center; gap: 12px; }
.issue-controls label { margin: 0; color: var(--muted); }
.issue-controls input { width: 80px; padding: 10px; }
.issue-controls button { margin: 0; }
.data-section { margin-top: 36px; }
.table-wrap { overflow: auto; margin-top: 18px; scrollbar-color: #a8b9aa #f1f5ef; scrollbar-width: thin; }
table { border-collapse: collapse; width: 100%; font-size: 13px; text-align: left; font-variant-numeric: tabular-nums; }
th { background: #f3f6f1; color: var(--muted); font-size: 12px; font-weight: 500; padding: 14px 16px; white-space: nowrap; }
td { border-bottom: 1px solid var(--line); padding: 16px; max-width: 420px; overflow-wrap: anywhere; line-height: 1.7; }
td:first-child { font-family: ui-monospace, monospace; font-size: 12px; color: var(--muted); }
.badge { display: inline-block; background: #e8f1e8; color: #365f40; border-radius: 5px; padding: 4px 9px; font-size: 12px; white-space: nowrap; }
.badge.off { background: #faeae4; color: #8a3d27; }
.empty { text-align: center; color: var(--muted); padding: 32px; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; }
#newcard { width: 100%; margin: 0; color: var(--green); line-height: 1.8; }
#newcard:empty { display: none; }
@media (max-width: 1000px) {
  .customer-layout { margin-top: 24px; }
  .topbar { padding: 0 32px; }
    .sidebar { width: 210px; padding: 26px 16px; }
  .admin-main { margin-left: 210px; }
  .admin-content, .admin-header { padding-left: 28px; padding-right: 28px; }
}
@media (max-width: 740px) {
  .topbar { height: 76px; padding: 0 24px; }
  .customer-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; margin: 22px auto 40px; max-width: 550px; padding: 0 24px; min-height: 0; }
      .deliverables,   .sheet { padding: 24px; }
        h2 { font-size: 20px; }
    .sidebar { position: static; width: auto; padding: 20px; }
  .sidebar .nav-label, .sidebar-bottom, .sidebar > a:not(.brand) { display: none; }
  .admin-main { margin-left: 0; }
  .admin-header { height: 58px; padding: 0 20px; }
  .admin-content { padding: 28px 20px; }
  .page-title > .caption { display: none; }
  .page-title h1 { font-size: 26px; }
  .issue-controls { flex-wrap: wrap; }
  .admin-login { margin-top: 24px; padding: 24px; }
  .section-title { flex-wrap: wrap; }
  .section-title .caption { font-size: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  button { transition: background-color 120ms ease-out; }
}
