:root { color-scheme: light; --ink: #19332e; --muted: #50635e; --green: #126c5d; --line: #c9d5ce; --surface: #fff; }
* { box-sizing: border-box; }
body { margin: 0; background: #f5f7f3; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 1rem; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, select, input[type="checkbox"] { cursor: pointer; }
button { color: inherit; }
button:disabled { cursor: default; opacity: .65; }
:focus-visible { outline: 3px solid #085c50; outline-offset: 4px; }
#section-title:focus, #main:focus { outline: none; }
.skip-link { position: absolute; left: 1rem; top: -8rem; z-index: 10; background: white; color: var(--green); padding: 1rem; }
.skip-link:focus { top: 1rem; }
.app-shell { max-width: 1600px; padding: 34px 40px 24px; margin: auto; }
.header { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 24px; }
.brand { display: flex; align-items: center; gap: 15px; }
.brand img { flex-shrink: 0; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .1em; color: var(--muted); margin: 0 0 4px; }
h1 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.2; letter-spacing: -.04em; }
h2 { font-size: 1.375rem; line-height: 1.35; letter-spacing: -.025em; margin: 0; }
.mode { display: grid; gap: 6px; min-width: 210px; }
.mode label { font-size: .875rem; color: var(--muted); }
select { min-height: 44px; border: 1px solid #9caea4; border-radius: 10px; padding: 8px 34px 8px 12px; background: white; color: var(--ink); }
.settings-panel { margin-bottom: 24px; border: 1px solid var(--line); border-radius: 12px; background: #eef2eb; }
.settings-panel summary { cursor: pointer; padding: 12px 18px; min-height: 48px; font-size: .9375rem; color: #344f44; }
.settings-panel .settings { margin-bottom: 0; border: 0; padding-top: 0; }
.settings { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; row-gap: 2px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: #eef2eb; margin-bottom: 28px; }
.settings label { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: .9375rem; }
input[type="checkbox"] { width: 20px; height: 20px; flex: 0 0 20px; accent-color: var(--green); }
.settings p { margin: 0 0 4px 30px; font-size: .8125rem; color: var(--muted); }
.settings #advance-help { grid-column: 1; grid-row: 2; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; list-style: none; margin: 0 0 28px; padding: 0; }
.step { display: flex; gap: 9px; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: white; font-weight: 600; }
.step:hover { background: #e9efeb; }
.step[aria-current="step"] { background: #1d3f36; border-color: #1d3f36; color: #fff; }
.step[aria-current="step"]:focus-visible { outline-color: #087b66; }
.step-number { opacity: .8; font-weight: 400; }
.step-check { font-weight: 700; }
.section-heading, .result-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-help { margin: 8px 0 18px; color: var(--muted); font-size: .9375rem; }
.choices { display: grid; grid-template-columns: repeat(var(--choices, 5), minmax(0, 1fr)); gap: 12px; }
.choice { position: relative; display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 20px; min-height: 190px; padding: 20px 17px; border: 1px solid var(--edge); border-radius: 14px; background: var(--wash); color: #19332e; line-height: 1.55; overflow-wrap: anywhere; }
.choice:hover { border-color: #19332e; box-shadow: 0 3px 9px #19332e12; }
.choice[aria-pressed="true"] { outline: 2px solid #19332e; outline-offset: -3px; }
.choice[aria-pressed="true"]:focus-visible { outline: 3px solid #085c50; outline-offset: 4px; }
.choice-top { display: flex; width: 100%; align-items: center; gap: 6px; justify-content: space-between; min-height: 24px; }
.dot { width: 13px; height: 13px; border-radius: 50%; background: var(--tone); flex-shrink: 0; }
.chosen { font-size: .75rem; font-weight: 700; }
.navigation { display: flex; justify-content: space-between; gap: 12px; margin: 16px 0 24px; }
.button { border-radius: 10px; border: 1px solid #9cafa5; background: #fff; padding: 10px 16px; min-height: 44px; font-weight: 600; font-size: .9375rem; }
.button:not(:disabled):hover { background: #e7eee9; }
.button.subtle { background: transparent; border-color: transparent; color: #415e53; }
.button.primary { color: white; background: #126c5d; border-color: #126c5d; }
.button.primary:not(:disabled):hover { background: #084e43; }
.result { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; }
.count { font-size: .875rem; color: var(--muted); white-space: nowrap; }
.editor-label { display: block; color: var(--muted); margin: 10px 0; font-size: .9375rem; }
textarea { display: block; width: 100%; resize: vertical; min-height: 130px; border: 1px solid #9cafa5; border-radius: 10px; background: #fcfdfb; padding: 16px; color: var(--ink); line-height: 1.6; }
textarea::placeholder { color: #61716b; }
.result-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 16px; }
.result-actions p { margin: 0; font-size: .8125rem; color: var(--muted); max-width: 450px; }
.action-buttons { display: flex; gap: 10px; flex-shrink: 0; }
.status { min-height: 24px; color: #0c5c4d; font-size: .9375rem; margin: 12px 2px; }
.notice { padding: 20px; background: #fff2cd; color: #47380b; }
dialog { max-width: 480px; width: calc(100% - 40px); border: 1px solid #9cafa5; border-radius: 18px; padding: 26px; color: var(--ink); background: white; box-shadow: 0 16px 80px #19332e33; }
dialog::backdrop { background: #132c2480; }
.dialog-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; margin-top: 24px; }
[hidden] { display: none !important; }
@media (max-width: 1150px) { .choices { grid-template-columns: repeat(3, minmax(0, 1fr)); } .result-actions { flex-wrap: wrap; } .choice { min-height: 160px; } }
@media (max-width: 760px) { .app-shell { padding: 24px 18px; } .header { align-items: flex-start; flex-wrap: wrap; gap: 18px; } .mode { min-width: 0; width: 100%; } .settings { grid-template-columns: 1fr; } .settings #advance-help { grid-row: 2; } .settings label[for] { min-height: 44px; } .settings label:nth-child(2) { grid-row: 3; } .settings #storage-note { grid-row: 4; } .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .step { font-size: .875rem; gap: 5px; } .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } .result { padding: 18px; } .result-actions, .action-buttons { width: 100%; } .action-buttons { flex-wrap: wrap; } .action-buttons button { flex: 1 1 180px; } }
@media (max-width: 480px) { .brand img { width: 46px; height: 46px; } .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .choices { grid-template-columns: 1fr; } .choice { min-height: 120px; gap: 12px; } .section-heading { align-items: flex-start; flex-wrap: wrap; gap: 8px; } .section-heading .subtle { padding-left: 0; } .navigation { flex-wrap: wrap; } .navigation button { flex: 1 1 140px; } .result-heading { flex-wrap: wrap; gap: 4px; } }
@media (prefers-contrast: more) { button, textarea, select, .settings, .result { border: 2px solid #19332e; } .choice { background: white; } }
@media (forced-colors: active) { .choice, .step, .button { border: 1px solid ButtonText; } .step[aria-current="step"], .choice[aria-pressed="true"] { outline: 3px solid Highlight; } }
