.calendar-app{--accent:#6d2545;--accent-hover:#511931;--wash:#f3e7e9;--dark:#4b1931;--gold:#d8a44c;padding-top:32px}.calendar-app[data-theme=forest]{--accent:#315c4d;--accent-hover:#244337;--wash:#e9eee6;--dark:#193e32}.calendar-app[data-theme=midnight]{--accent:#34456b;--accent-hover:#233350;--wash:#e8ebf3;--dark:#1d2947}.tool-heading{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:24px}.tool-heading h1{margin:0;font-size:44px;line-height:1.14;letter-spacing:-1.6px}.tool-heading em{font-weight:400;color:var(--accent)}.intro{color:var(--muted);font-size:16px;line-height:1.7;margin-bottom:0}.mode-switch{display:flex;max-width:480px;background:#eee5df;border:1px solid #e6d9d2;border-radius:12px;padding:4px;margin-bottom:24px}.mode-switch button{border:0;border-radius:8px;background:transparent;color:var(--muted);font-weight:600;flex:1;min-height:44px;padding:8px 16px;white-space:nowrap}.mode-switch button[aria-pressed=true]{background:var(--accent);color:white;box-shadow:0 1px 2px #0000000f}.mode-switch span{margin-left:12px}.app-status{font-size:14px;color:var(--accent);background:var(--wash);padding:12px 16px;border-radius:8px}.app-status:empty{display:none}.workspace{display:grid;grid-template-columns:352px minmax(0,1fr);gap:32px;align-items:start}.editor,.open-panel{padding:24px;background:#fffdf8;border:1px solid #e4d8d1;border-radius:12px}.section-label{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:12px;line-height:1.5;letter-spacing:1px;color:var(--accent);font-weight:650;margin-bottom:16px}.save-state{font-size:12px;letter-spacing:0;font-weight:400;color:var(--muted);text-align:right;max-width:125px}.calendar-app label{display:block;font-size:13px;font-weight:600;margin-bottom:12px;color:#54414b}.calendar-app input,.calendar-app textarea,.calendar-app select{display:block;width:100%;min-width:0;background:#fffdf8;border:1px solid #d9ccc5;border-radius:8px;padding:10px 12px;font-size:14px;color:#38212d;min-height:44px;margin-top:4px;box-shadow:0 1px 2px #00000005}.calendar-app input::placeholder,.calendar-app textarea::placeholder{color:#8c7d84;opacity:1}.calendar-app textarea{resize:vertical;min-height:88px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field-row input{padding:10px 8px}.themes{border:0;padding:0;display:flex;gap:8px;margin:4px 0 20px}.themes legend{font-size:13px;color:#54414b;font-weight:600;margin-bottom:8px}.themes button{width:44px;height:44px;border-radius:50%;border:5px solid #fffdf8;outline:1px solid #ded2cb;position:relative}.themes button[aria-pressed=true]{outline:2px solid var(--accent)}.themes button[aria-pressed=true]:after{content:'✓';color:white;position:absolute;inset:0;text-align:center;line-height:34px}.themes button[data-palette=plum]{background:#6d2545}.themes button[data-palette=forest]{background:#315c4d}.themes button[data-palette=midnight]{background:#34456b}.day-editor{border-top:1px solid #e4d8d1;padding-top:20px;margin-top:16px}.hint{font-size:12px;color:var(--muted);line-height:1.6;margin:8px 0 12px}.day-editor .section-label{margin-bottom:4px}.optional{font-weight:400;color:var(--muted)}.day-controls{display:flex;justify-content:space-between;gap:12px;margin-bottom:12px}.quiet{border:0;background:transparent;color:var(--accent);font-size:13px;padding:8px 0;min-height:44px;text-decoration:underline;text-underline-offset:4px}.primary,.outline{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 20px;font-size:14px;line-height:1.4;font-weight:600;border-radius:8px;text-decoration:none;text-align:center;transition:background .15s}.primary{background:var(--accent);color:#fff;border:1px solid var(--accent)}.primary:hover{background:var(--accent-hover)}.outline{background:transparent;color:var(--accent);border:1px solid #c9b8bd}.outline:hover{background:var(--wash)}.full{width:100%}.stage-top{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:12px;letter-spacing:1.2px;color:var(--muted);padding:4px 0 16px}.stage-toggle{border:0;background:transparent;font-size:12px;min-height:32px;color:var(--accent);padding:0;text-decoration:underline;text-underline-offset:4px;letter-spacing:0}.paper-calendar{background:var(--accent);padding:28px 24px 20px;border-radius:12px;border:1px solid var(--dark);color:#fff9ef;position:relative;box-shadow:0 8px 24px #38212d14}.paper-calendar:before{content:'';position:absolute;inset:8px;border:1px solid #fff9ef2a;pointer-events:none;border-radius:8px}.paper-heading{text-align:center;padding:0 0 20px;position:relative}.paper-heading>p:first-child{font-size:10px;letter-spacing:2px;color:#f1d7cd;margin-bottom:8px}.paper-heading h2{font-size:30px;line-height:1.2;color:#fff9ef;margin-bottom:12px;overflow-wrap:anywhere}.paper-heading>p:last-child{font-size:12px;color:#f1d7cd;margin:12px 0 0}.paper-rule{display:flex;gap:12px;align-items:center;justify-content:center;margin:0 auto;width:80%}.paper-rule span{height:1px;background:#d8a44c70;flex:1}.paper-rule i{font-style:normal;color:var(--gold);font-size:20px;line-height:1}.door-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;position:relative}.envelope{appearance:none;min-height:88px;aspect-ratio:.86;position:relative;background:#fff5e3;border:1px solid #f1dfc4;border-radius:8px;overflow:hidden;color:var(--accent);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:12px 0 4px;transition:transform .15s,background .15s}.envelope:before{content:'';position:absolute;width:72%;height:72%;border-right:1px solid #d8cbb5;border-bottom:1px solid #d8cbb5;transform:rotate(45deg);top:-48%;background:#fffaf0;pointer-events:none}.envelope:nth-child(5n+2){background:#e8cebb;border-color:#e8cebb}.envelope:nth-child(5n+2):before{background:#f2dfcf}.envelope:nth-child(5n+4){background:#d7ad78;border-color:#d7ad78}.envelope:nth-child(5n+4):before{background:#e5c494}.envelope.selected{outline:2px solid #ffedba;outline-offset:3px;transform:translateY(-2px)}.envelope:hover{transform:translateY(-3px)}.door-number{font:26px/1.1 Georgia,serif;position:relative;z-index:1}.door-symbol{font-size:14px;line-height:1;position:relative;margin-top:8px}.envelope.filled .door-symbol{color:#946635}.envelope.locked{background:var(--dark);border-color:#ffffff30;color:#eaded6}.envelope.locked:before{background:transparent;border-color:#ffffff26}.envelope.locked:hover{transform:none}.envelope.opened{background:#c9b8ba;border-color:#c9b8ba}.envelope.opened:before{background:#d9cacc}.envelope.available{box-shadow:inset 0 0 0 1px #ffedba}.paper-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;letter-spacing:.3px;margin-top:20px;padding:0 4px;color:#f1d7cd}.paper-bottom span:last-child{font-size:24px;color:var(--gold)}.calendar-caption{font-size:12px;color:var(--muted);text-align:center;margin:12px 0 20px}.gift-actions{display:flex;gap:12px;justify-content:center}.privacy-note{font-size:12px;line-height:1.7;color:var(--muted);text-align:center;margin:20px auto 0;max-width:54ch}.delete-draft{display:block;margin:4px auto 0;color:var(--muted);font-size:12px}.share-output{background:#fffdf8;padding:16px;border:1px solid #dfcbd2;border-radius:8px;margin-top:20px}.share-output .outline{width:100%}.share-output .hint{margin-bottom:0}.open-panel p{font-size:14px;color:var(--muted)}.open-panel .panel-title{font-size:28px;margin-bottom:12px}.open-panel h3{font-size:24px;margin-bottom:12px}.open-panel hr{border:0;border-top:1px solid #e4d8d1;margin:24px 0}.open-panel .upload-label{margin-top:20px}.calendar-app input[type=file]{padding:10px;font-size:12px;overflow:hidden}.surprise-dialog{border:1px solid #ddc8ca;border-radius:12px;background:#fffaf1;color:#38212d;max-width:480px;width:calc(100% - 32px);max-height:85dvh;padding:48px 32px 32px;text-align:center;box-shadow:0 8px 24px #00000014}.surprise-dialog::backdrop{background:#21121fb3;backdrop-filter:blur(4px)}.dialog-close{position:absolute;right:12px;top:8px;border:0;background:transparent;color:#786772;font-size:28px;width:44px;height:44px}.surprise-star{font-size:48px;line-height:1;color:#b78435;margin:16px 0 24px}.surprise-dialog h2{font-size:32px}.surprise-message{white-space:pre-wrap;overflow-wrap:anywhere;font-size:18px;line-height:1.7}.surprise-dialog .primary{margin:8px 0 16px}.surprise-dialog .hint{margin:16px 0 0}@media(min-width:1000px){.calendar-stage{position:sticky;top:16px}}@media(max-width:1000px){.workspace{grid-template-columns:310px minmax(0,1fr);gap:24px}.editor,.open-panel{padding:20px}.door-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.envelope{min-height:64px;aspect-ratio:1.05}.paper-calendar{padding:24px 20px 16px}.door-number{font-size:24px}.paper-heading h2{font-size:28px}.tool-heading h1{font-size:40px}.intro{font-size:14px}}@media(max-width:640px){.calendar-app{padding-top:24px}.tool-heading{display:block;margin-bottom:20px}.tool-heading h1{font-size:32px;letter-spacing:-.8px}.tool-heading .eyebrow{font-size:10px}.intro{margin-top:12px;font-size:14px}.intro br{display:none}.workspace{display:flex;flex-direction:column;gap:24px}.editor,.open-panel,.calendar-stage{width:100%;min-width:0}.editor{padding:20px}.mode-switch{max-width:none;margin-bottom:20px}.mode-switch button{font-size:13px;padding:8px}.mode-switch span{margin-left:4px}.calendar-stage{order:-1}.paper-calendar{padding:24px 20px 16px}.door-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.envelope{min-height:56px;aspect-ratio:.75}.door-number{font-size:22px}.door-symbol{font-size:12px;margin-top:4px}.paper-heading h2{font-size:26px}.paper-heading>p:first-child{font-size:9px;letter-spacing:1.3px}.paper-heading>p:last-child{font-size:11px}.paper-bottom{font-size:10px}.gift-actions{flex-direction:column;gap:8px}.gift-actions button{width:100%}.stage-top{font-size:10px;letter-spacing:.7px;padding-bottom:12px}.stage-toggle{font-size:11px}.privacy-note{font-size:11px}.surprise-dialog{padding:48px 24px 24px}.surprise-dialog h2{font-size:28px}.surprise-message{font-size:16px}.open-panel .primary,.open-panel .outline{width:100%}}@media(prefers-reduced-motion:reduce){.calendar-app *{transition:none!important;scroll-behavior:auto!important}}

.mode-switch button{color:#66525f}.paper-heading>p:first-child,.paper-heading>p:last-child,.paper-bottom,.paper-bottom span,.privacy-note,.tool-heading .eyebrow,.stage-top,.stage-toggle{font-size:12px}@media(max-width:380px){.door-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.envelope{min-height:64px;aspect-ratio:1}.stage-top{flex-wrap:wrap}}
