@font-face{font-family:'Maru Buri';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/MaruBuri-Regular.woff2') format('woff2')}
@font-face{font-family:'Maru Buri';font-style:normal;font-weight:600;font-display:swap;src:url('/assets/fonts/MaruBuri-SemiBold.woff2') format('woff2')}
@font-face{font-family:'Pretendard Variable';font-style:normal;font-weight:100 900;font-display:swap;src:url('/assets/fonts/PretendardVariable.woff2') format('woff2')}
:root{--palette-rose:#D8BDC3;--palette-lavender:#CFC0DC;--palette-sage:#BCD0BF;--palette-sky:#BDD1E3;--palette-peach:#E2C8B5;--palette-mono:#CFC3B7}
:root{--bg:#FCF8F8;--surface:#FFFFFF;--blush:#F4E8EA;--rose:var(--palette-rose);--ink:#49383D;--muted:#6D5B60;--line:#E4D8D9;--rose-dark:#80585A;--soft:#F5EFEB;--warning:#FFF4E6;--warning-line:#EFD8BB;--pink:var(--rose);--white:var(--surface);--shadow:0 15px 44px color-mix(in srgb,var(--ink) 7%,transparent);font-family:'Pretendard Variable',Pretendard,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none;text-rendering:optimizeLegibility}
*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:radial-gradient(ellipse at 12% 4%,var(--bg) 0,transparent 30%),var(--bg)}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:3px solid var(--warning-line);outline-offset:2px}.app-shell{max-width:1120px;margin:0 auto;padding:26px 34px 34px}.brand{display:flex;align-items:center;gap:11px;color:var(--ink);font-size:17px;font-weight:800;letter-spacing:-.5px;text-decoration:none}.brand-icon{width:38px;height:38px;border-radius:14px;background:var(--line);color:var(--rose-dark);display:grid;place-items:center;font-size:20px}.top-actions{display:flex;align-items:center;gap:14px}.account-label{color:var(--muted);font-size:11px}.quiet-button,.secondary-button,.icon-button,.glass-button,.text-button{border:0;background:none;color:var(--muted);font-size:12px;font-weight:700}.hidden{display:none!important}.setup-warning{display:flex;align-items:flex-start;gap:14px;background:var(--warning);border:1px solid var(--warning-line);border-radius:15px;padding:15px 17px;margin:0 auto 24px;max-width:700px}.warning-icon{font-size:20px;color:var(--rose-dark)}.setup-warning strong{font-size:13px}.setup-warning p{font-size:11px;color:var(--muted);margin:5px 0 0;line-height:1.6}.auth-view{min-height:575px;display:grid;grid-template-columns:1fr 1fr;gap:55px;align-items:center;max-width:900px;margin:5px auto 35px}.auth-art{height:420px;border-radius:38px;background:linear-gradient(145deg,var(--line),var(--warning) 60%,var(--soft));position:relative;overflow:hidden;display:grid;place-items:center}.auth-art:before,.auth-art:after{content:'';position:absolute;border-radius:50%;background:color-mix(in srgb, var(--surface) 47%, transparent)}.auth-art:before{width:350px;height:350px;left:-125px;top:-130px}.auth-art:after{width:270px;height:270px;right:-85px;bottom:-120px}.orbit{position:absolute;border:1px solid color-mix(in srgb, var(--surface) 60%, transparent);border-radius:50%;transform:rotate(-28deg)}.orbit-one{width:340px;height:180px}.orbit-two{width:420px;height:242px}.auth-heart{position:relative;z-index:1;width:160px;height:160px;border-radius:48px;background:color-mix(in srgb, var(--surface) 60%, transparent);display:grid;place-items:center;color:var(--rose-dark);font-size:88px;box-shadow:0 25px 60px color-mix(in srgb, var(--rose-dark) 13%, transparent);transform:rotate(-8deg)}.spark{position:absolute;color:var(--surface);font-size:29px}.spark-one{right:82px;top:88px}.spark-two{left:80px;bottom:88px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.7px;color:var(--rose-dark);text-transform:uppercase}.auth-copy h1,.pair-intro h1{font-size:37px;line-height:1.35;letter-spacing:-1.8px;margin:13px 0}.auth-copy>p,.pair-intro>p{color:var(--rose-dark);font-size:13px;line-height:1.9;margin:0 0 24px}.form-stack{display:grid;gap:13px}.form-stack label,.pair-form label,.control-label,.birth-fields label{display:grid;gap:7px;color:var(--muted);font-weight:700;font-size:11px}.form-stack input,.pair-form input,.control-label input,.birth-fields input,.add-task input,.inline-form input{width:100%;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:11px;padding:12px 13px;font-size:12px;outline:0}.form-stack input:focus,.pair-form input:focus,.control-label input:focus,.birth-fields input:focus,.add-task input:focus,.inline-form input:focus{border-color:var(--warning-line);box-shadow:0 0 0 3px color-mix(in srgb, var(--warning-line) 11%, transparent)}.primary-button{border:0;border-radius:11px;background:var(--rose);color:var(--ink);font-weight:700;font-size:12px;padding:12px 15px;box-shadow:0 7px 15px color-mix(in srgb, var(--rose) 14%, transparent)}.primary-button:hover{background:var(--rose)}.primary-button:disabled{opacity:.55;cursor:not-allowed}.auth-copy .primary-button{margin-top:4px;padding:14px}.text-button{margin-top:16px;padding:0;color:var(--rose-dark)}.fine-print{color:var(--rose-dark);font-size:10px;line-height:1.6}.pair-view{max-width:900px;margin:16px auto 60px;display:grid;grid-template-columns:1fr .8fr;gap:55px;align-items:center}.pair-intro h1{font-size:34px}.pair-illustration{height:190px;position:relative;display:flex;align-items:center;justify-content:center;gap:22px;color:var(--rose-dark);font-size:64px}.pair-illustration span,.pair-illustration b{width:115px;height:115px;border-radius:38px;background:var(--soft);display:grid;place-items:center;font-weight:400;box-shadow:0 12px 28px color-mix(in srgb, var(--rose-dark) 11%, transparent);transform:rotate(-9deg)}.pair-illustration b{background:var(--soft);transform:rotate(9deg)}.pair-illustration i{position:absolute;top:12px;right:33%;font-style:normal;font-size:21px}.card{background:var(--white);border:1px solid var(--soft);border-radius:21px;box-shadow:var(--shadow);padding:23px}.pair-form{padding:25px}.pair-form h2{font-size:18px;margin:0 0 6px}.pair-form p{font-size:11px;line-height:1.7;color:var(--muted);margin:0 0 16px}.pair-form .primary-button{width:100%;margin-top:14px;display:flex;justify-content:space-between}.pair-form .divider{border-top:1px solid var(--line);height:26px;margin:23px 0 12px;text-align:center}.divider span{position:relative;top:-8px;padding:0 12px;background:var(--white);font-size:10px;color:var(--rose-dark)}.pair-form h3{font-size:13px;margin:0 0 7px}.secondary-button{border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:10px 13px}.pair-form>.secondary-button{width:100%}.welcome-row{display:flex;align-items:flex-end;justify-content:space-between;margin:8px 0 23px}.welcome-row h1{font-size:30px;letter-spacing:-1.4px;margin:7px 0 4px}.welcome-row p,.section-head p{margin:0;color:var(--muted);font-size:12px}.today-label{font-size:11px;color:var(--rose-dark)}.tab-panel{display:none}.tab-panel.active{display:block}.home-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.anniversary-card{min-height:255px;position:relative;overflow:hidden;border-radius:21px;padding:25px 27px;background:linear-gradient(120deg,var(--line),var(--warning) 58%,var(--soft))}.anniversary-card:after{content:'';position:absolute;width:210px;height:210px;border-radius:50%;background:color-mix(in srgb, var(--surface) 33%, transparent);right:-65px;top:-76px}.anniversary-card .eyebrow{color:var(--rose-dark)}.anniversary-card h2{font-size:17px;margin:17px 0 5px}.day-number{font-size:54px;font-weight:800;letter-spacing:-3px;line-height:1}.day-number small{font-size:17px;letter-spacing:0;margin-left:7px}.anniversary-card p{font-size:11px;color:var(--muted);margin:9px 0 15px}.glass-button{border:1px solid var(--warning-line);border-radius:9px;padding:8px 11px;background:color-mix(in srgb, var(--surface) 60%, transparent);color:var(--rose-dark);font-size:10px}.card-heart{position:absolute;right:42px;bottom:34px;font-size:57px;color:color-mix(in srgb, var(--surface) 60%, transparent);transform:rotate(-12deg)}.pair-card{min-height:255px}.card-heading{display:flex;align-items:center;justify-content:space-between}.card-heading h2,.section-head h2,.card h2{font-size:17px;letter-spacing:-.45px;margin:6px 0 0}.icon-button{font-size:10px;color:var(--rose-dark);padding:7px}.couple-avatars{display:flex;align-items:center;justify-content:center;gap:18px;padding:15px 0 10px}.mini-person{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:100px}.avatar-frame{height:100px;width:93px;display:grid;place-items:center}.avatar-frame svg{width:100%;height:100%;filter:drop-shadow(0 8px 9px color-mix(in srgb, var(--ink) 9%, transparent))}.mini-person strong{font-size:11px}.mini-person small{font-size:10px;color:var(--rose-dark)}.plus-heart{color:var(--warning-line);font-size:20px}.waiting-heart{height:84px;width:84px;border-radius:29px;background:var(--bg);color:var(--warning-line);display:grid;place-items:center;font-size:40px}.invite-row{border-top:1px solid var(--soft);padding-top:12px;display:flex;align-items:center;justify-content:space-between;color:var(--rose-dark);font-size:10px}.secondary-button.small{font-size:10px;padding:7px 9px}.overview-card{min-height:190px}.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.section-head h2{margin:6px 0}.soft-pill{border-radius:99px;background:var(--warning);color:var(--rose-dark);padding:7px 11px;font-weight:700;font-size:10px}.todo-progress{display:flex;align-items:center;gap:13px;color:var(--rose-dark);font-size:10px;margin:-4px 0 10px}.progress-track{height:6px;flex:1;border-radius:5px;background:var(--soft);overflow:hidden}.progress-track i{display:block;width:0;height:100%;background:var(--warning-line);border-radius:5px;transition:width .2s}.compact-list{display:grid;gap:7px}.compact-item{display:flex;align-items:center;gap:10px;min-height:27px;font-size:11px;color:var(--rose-dark)}.tiny-check{color:var(--rose-dark);font-size:17px}.event-date{font-size:10px;color:var(--rose-dark);font-weight:700;min-width:38px}.empty-state{color:var(--rose-dark);font-size:11px;margin:8px 0}.calendar-card{padding:24px 27px}.calendar-card .section-head{margin-bottom:17px}.month-control{display:flex;align-items:center;gap:15px}.month-control strong{font-size:13px;min-width:100px;text-align:center}.month-control button{border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--muted);width:30px;height:30px;font-size:19px}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.weekday{text-align:center;color:var(--rose-dark);font-size:10px;padding:8px}.calendar-day{height:62px;border:1px solid var(--soft);border-radius:10px;background:var(--surface);color:var(--rose-dark);text-align:left;vertical-align:top;padding:8px;font-size:11px;position:relative}.calendar-day.blank{border-color:transparent;background:transparent}.calendar-day.today{background:var(--bg);border-color:var(--warning-line)}.calendar-day.selected{box-shadow:inset 0 0 0 1px var(--rose)}.event-pip{position:absolute;left:9px;bottom:7px;width:5px;height:5px;background:var(--rose);border-radius:50%}.selected-day{display:flex;justify-content:space-between;align-items:flex-end;gap:22px;margin-top:17px;padding:17px;border-radius:15px;background:var(--bg)}.selected-day h3{margin:5px 0 8px;font-size:13px}.event-list{display:grid;gap:6px}.event-item{display:flex;gap:18px;align-items:center;justify-content:space-between;color:var(--muted);font-size:11px}.event-item button,.delete-button{border:0;background:none;color:var(--rose-dark);font-size:10px}.inline-form{display:flex;gap:7px;align-items:center;min-width:300px}.inline-form input{background:var(--surface)}.add-task{display:grid;grid-template-columns:1fr 155px auto;gap:8px;margin:3px 0 18px}.task-list{display:grid}.task-row{display:flex;align-items:center;gap:13px;border-top:1px solid var(--soft);padding:13px 4px}.task-row input{accent-color:var(--rose-dark);width:16px;height:16px}.task-copy{display:grid;gap:4px;flex:1}.task-copy strong{font-size:12px;font-weight:600}.task-copy small{font-size:10px;color:var(--rose-dark)}.task-row.completed .task-copy strong{text-decoration:line-through;color:var(--rose-dark)}.delete-button{font-size:19px}.avatar-editor .section-head{align-items:flex-start}.editor-layout{display:grid;grid-template-columns:300px 1fr;gap:32px;align-items:start}.avatar-preview-wrap{position:sticky;top:15px;min-height:350px;border-radius:18px;background:linear-gradient(145deg,var(--soft),var(--soft));display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px}.avatar-preview{width:220px;height:250px;display:grid;place-items:center}.avatar-preview svg{width:100%;height:100%;filter:drop-shadow(0 12px 13px color-mix(in srgb, var(--ink) 11%, transparent))}.preview-name{text-align:center;display:grid;gap:4px}.preview-name strong{font-size:13px}.preview-name span{font-size:10px;color:var(--rose-dark)}.editor-controls{display:grid;gap:17px}.control-label input{margin-top:1px}.control-group{display:grid;gap:9px}.control-group>strong{font-size:11px;color:var(--muted)}.swatches,.choice-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.swatch{width:27px;height:27px;border-radius:50%;border:3px solid var(--surface);background:var(--swatch);box-shadow:0 0 0 1px var(--line)}.swatch.selected{box-shadow:0 0 0 2px var(--rose)}.choice{border:1px solid var(--line);background:var(--surface);border-radius:9px;padding:8px 10px;color:var(--muted);font-size:10px}.choice.selected{border-color:var(--rose-dark);background:var(--bg);color:var(--rose-dark)}.fortune-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.section-copy{font-size:11px;line-height:1.7;color:var(--muted);margin:9px 0 16px}.birth-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}.birth-fields input{margin-top:7px}.fortune-grid .primary-button,.fortune-grid .secondary-button{margin-right:7px;margin-top:4px}.result-note{min-height:52px;border-radius:12px;background:var(--bg);padding:13px;margin-top:13px;color:var(--muted);font-size:11px;line-height:1.7}.tarot-card{background:linear-gradient(140deg,var(--surface),var(--bg))}.tarot-card-face{width:95px;height:128px;border-radius:13px;background:linear-gradient(145deg,var(--blush),var(--warning-line));color:var(--ink);margin:18px auto 14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;box-shadow:0 9px 20px color-mix(in srgb, var(--rose-dark) 13%, transparent);border:3px solid color-mix(in srgb, var(--surface) 60%, transparent)}.tarot-card-face span{font-size:20px}.tarot-card-face strong{font-size:18px}.tarot-card-face small{font-size:7px;letter-spacing:1.3px}.tarot-card-face.revealed{background:linear-gradient(145deg,var(--warning-line),var(--rose))}footer{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--soft);margin-top:32px;padding-top:17px;color:var(--rose-dark);font-size:10px}footer span{color:var(--rose-dark)}.toast{position:fixed;left:50%;bottom:24px;z-index:5;transform:translate(-50%,12px);opacity:0;pointer-events:none;background:var(--ink);color:var(--ink);border-radius:11px;padding:11px 16px;font-size:11px;transition:.2s;box-shadow:0 9px 22px color-mix(in srgb, var(--ink) 14%, transparent)}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:780px){.app-shell{padding:16px 15px 28px}.auth-view,.pair-view{grid-template-columns:1fr;gap:24px;max-width:510px}.auth-view{min-height:unset}.auth-art{height:240px;border-radius:25px}.auth-heart{width:110px;height:110px;border-radius:35px;font-size:62px}.auth-copy h1,.pair-intro h1{font-size:30px}.pair-illustration{height:130px}.pair-illustration span,.pair-illustration b{width:84px;height:84px;font-size:49px;border-radius:28px}.welcome-row{align-items:flex-start;gap:10px;flex-direction:column}.welcome-row h1{font-size:25px}.home-grid{grid-template-columns:1fr}.anniversary-card{min-height:230px}.pair-card{min-height:240px}.editor-layout{grid-template-columns:1fr}.avatar-preview-wrap{position:static;min-height:300px}.avatar-preview{height:215px;width:190px}.fortune-grid{grid-template-columns:1fr}.add-task{grid-template-columns:1fr 130px}.add-task .primary-button{grid-column:1/-1}.selected-day{align-items:stretch;flex-direction:column}.inline-form{min-width:0}.calendar-day{height:53px;padding:6px}.calendar-card{padding:19px 14px}.section-head{align-items:flex-start;gap:12px}.section-head h2{font-size:15px}footer{flex-direction:column}}
@media(max-width:430px){.account-label{max-width:105px;overflow:hidden;text-overflow:ellipsis}.auth-art{display:none}.auth-view{padding:24px 3px}.calendar-grid{gap:3px}.calendar-day{height:44px;padding:5px;border-radius:7px}.weekday{padding:6px 0}.add-task{grid-template-columns:1fr}.add-task .primary-button{grid-column:auto}.birth-fields{grid-template-columns:1fr}.avatar-editor .section-head{flex-direction:column}.avatar-editor .section-head .primary-button{align-self:flex-start}}

.landing-highlights{display:flex;flex-wrap:wrap;gap:7px;margin:-8px 0 22px;padding:0;list-style:none}
.landing-highlights li{padding:7px 10px;border:1px solid var(--line);border-radius:999px;background:var(--bg);color:var(--muted);font-size:11px;font-weight:700}
.journal-form{display:grid;gap:10px;margin-bottom:24px}.journal-form label{font-size:12px;font-weight:700;color:var(--ink)}.journal-form textarea{width:100%;resize:vertical;border:1px solid var(--line);border-radius:11px;padding:13px;font:inherit;font-size:13px;background:var(--surface);color:var(--ink)}.journal-form textarea:focus-visible{outline:3px solid var(--warning-line);outline-offset:2px}.journal-form button{justify-self:start;min-height:44px}.journal-list{display:grid;gap:12px}.journal-entry{border-top:1px solid var(--line);padding:15px 0;min-width:0}.journal-entry p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;font-size:13px}.journal-meta{font-size:11px;color:var(--muted)}.journal-actions{display:flex;gap:12px}.journal-actions button{min-height:44px;padding:8px;border:0;background:none;color:var(--rose-dark);font-weight:700}
.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:14px}.photo-grid figure{margin:0;min-width:0}.photo-grid img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:14px;background:var(--soft)}.photo-grid figcaption{padding:7px 2px;overflow-wrap:anywhere;font-size:12px;color:var(--ink)}
#coupleNameForm{max-width:520px}.management-actions{margin-top:28px;padding-top:20px;border-top:1px solid var(--line)}.management-actions h3{font-size:14px;margin:0}.management-actions .secondary-button{min-height:44px;margin:0 8px 8px 0}.secondary-button:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:430px){.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.management-actions .secondary-button{width:100%;margin-right:0}}
@media(pointer:coarse){
  .tab,.quiet-button,.secondary-button,.primary-button,.icon-button,.glass-button,.text-button,.choice,.delete-button,.month-control button,.event-item>button{min-height:44px}
  .task-row>button,.event-item>button{min-width:44px}.task-row input[type="checkbox"]{width:44px;height:44px;flex:0 0 44px}
  .swatch{width:44px;height:44px;padding:7px;background-clip:content-box}
}

/* SEOROROK · editorial workspace */
body{background:var(--bg);color:var(--ink)}
.app-shell{max-width:1480px}
.brand,.sidebar-logo{display:inline-flex;align-items:baseline;gap:10px;color:var(--ink);text-decoration:none}
.brand-word,.sidebar-logo{font-family:'Maru Buri','Batang',serif;font-weight:600;letter-spacing:-.04em}
.brand-word{font-size:25px;white-space:nowrap;flex:none}.brand-dot,.sidebar-logo>span{color:var(--rose-dark)}
.brand small,.sidebar-logo small{font-family:'Pretendard Variable',Pretendard,sans-serif;font-size:9px;font-weight:600;letter-spacing:.14em;color:var(--muted)}
h1,h2,h3,.question-prompt{font-family:'Maru Buri','Batang',serif;font-weight:600}
.eyebrow{color:var(--rose-dark);font-weight:700;letter-spacing:.13em}
.primary-button{background:var(--rose-dark);color:var(--surface);box-shadow:none}
.primary-button:hover{background:var(--ink)}
.primary-button:disabled,.secondary-button:disabled{opacity:1;background:var(--line);color:var(--ink);cursor:not-allowed;box-shadow:none}
.text-button,.icon-button{color:var(--rose-dark)}
.empty-state,.section-copy,.section-head p,.auth-copy>p,.pair-intro>p,.fine-print{color:var(--muted);line-height:1.65}
.card{background:var(--surface);border-color:var(--line);box-shadow:0 8px 26px color-mix(in srgb,var(--ink) 4%,transparent);border-radius:16px}
.tabs{display:flex;flex-direction:column;gap:4px;overflow:visible;padding:0}
.tab{display:flex;align-items:center;gap:12px;width:100%;min-height:43px;text-align:left;border:0;border-radius:9px;background:transparent;color:var(--ink);padding:10px 12px;font-size:13px;font-weight:500}
.tab:hover{background:var(--soft)}.tab.active{background:var(--blush);color:var(--ink);font-weight:700}
.nav-icon{width:20px;flex:none;text-align:center;color:var(--rose-dark);font-size:17px}
.sidebar-bottom{border-top:1px solid var(--line);padding-top:16px}.sidebar-caption{display:block;padding:2px 12px 8px;color:var(--muted);font-size:9px;font-weight:700;letter-spacing:.12em}
.welcome-row h1{font-weight:600}.welcome-row p{color:var(--muted)}
.question-card,.question-page{background:var(--surface)}.question-prompt{font-size:20px;line-height:1.6;letter-spacing:-.02em;margin:24px 0 13px}.question-status{color:var(--muted);font-size:12px;line-height:1.6}
.question-sheet{margin-top:26px;padding:24px;border-radius:14px;background:var(--soft)}.question-sheet .question-prompt{margin-top:0}.question-answers{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.question-answer{padding:15px;background:var(--surface);border:1px solid var(--line);border-radius:10px}.question-answer strong{font-size:12px}.question-answer p{font-size:13px;line-height:1.6;color:var(--ink)}
.question-answer p{white-space:pre-wrap;overflow-wrap:anywhere}#questionArchive button{min-height:44px}
.anniversary-card:after{display:none}.day-number{color:var(--ink)}.overview-card{min-height:175px}.journal-overview{min-height:180px}

@media(max-width:680px){.app-shell{padding:15px 16px 28px}.question-answers{grid-template-columns:1fr}.question-prompt{font-size:18px}.question-sheet{padding:18px}.today-label{font-size:12px}}

/* Six theme palettes. The accent is separate from the contrast-safe action colour. */
:root,[data-theme="rose"][data-color-mode="light"]{color-scheme:light;--bg:#FCF8F8;--surface:#FFFFFF;--blush:#F4E8EA;--rose:var(--palette-rose);--ink:#49383D;--muted:#6D5B60;--line:#EADFE1;--rose-dark:#80585A;--soft:#FAF1F2;--focus:#80585A;--hover:#F0E3E5;--disabled-bg:#E9E1E0;--disabled-ink:#62575A}
[data-theme="lavender"][data-color-mode="light"]{--bg:#FBF9FD;--surface:#FFFFFF;--blush:#F0EAF6;--rose:var(--palette-lavender);--ink:#453B53;--muted:#645B6E;--line:#E8E1ED;--rose-dark:#675381;--soft:#F7F3FA;--focus:#675381;--hover:#EBE4F1;--disabled-bg:#E8E3EC;--disabled-ink:#625A68}
[data-theme="sage"][data-color-mode="light"]{--bg:#F9FBF7;--surface:#FFFFFF;--blush:#EAF1E9;--rose:var(--palette-sage);--ink:#384B40;--muted:#59685D;--line:#DFE9DF;--rose-dark:#4E6B58;--soft:#F3F7F1;--focus:#4E6B58;--hover:#E3ECE2;--disabled-bg:#E2EAE0;--disabled-ink:#536156}
[data-theme="sky"][data-color-mode="light"]{--bg:#F9FBFD;--surface:#FFFFFF;--blush:#E9F1F8;--rose:var(--palette-sky);--ink:#37495B;--muted:#566675;--line:#E0EAF1;--rose-dark:#486784;--soft:#F1F6FA;--focus:#486784;--hover:#E2ECF5;--disabled-bg:#E0E9EF;--disabled-ink:#536270}
[data-theme="peach"][data-color-mode="light"]{--bg:#FDF9F5;--surface:#FFFFFF;--blush:#F6EBE1;--rose:var(--palette-peach);--ink:#59433B;--muted:#705F57;--line:#EDE3DA;--rose-dark:#84533B;--soft:#FBF4ED;--focus:#84533B;--hover:#F2E6DC;--disabled-bg:#EBE3DD;--disabled-ink:#675A54}
[data-theme="mono"][data-color-mode="light"]{--bg:#FBFAF8;--surface:#FFFFFF;--blush:#F1ECE6;--rose:var(--palette-mono);--ink:#49423E;--muted:#67605B;--line:#E8E1D9;--rose-dark:#605750;--soft:#F8F5F1;--focus:#605750;--hover:#ECE6DE;--disabled-bg:#E9E3DD;--disabled-ink:#615A54}
[data-theme="rose"][data-color-mode="dark"]{--bg:#1C1819;--surface:#292325;--blush:#4A3539;--rose:#D7A8AE;--ink:#F8EFED;--muted:#D0C0BF;--line:#584A4A;--rose-dark:#E6B7BC;--soft:#342B2D;--focus:#E6B7BC;--hover:#413335;--disabled-bg:#524749;--disabled-ink:#EEE3E1;--warning:#3D3027;--warning-line:#A98663;color-scheme:dark}
[data-theme="lavender"][data-color-mode="dark"]{--bg:#1B1920;--surface:#292630;--blush:#41374D;--rose:#C3B0DF;--ink:#F5F0FA;--muted:#CDC3D7;--line:#51485C;--rose-dark:#D2BEEB;--soft:#332E3A;--focus:#D2BEEB;--hover:#40384A;--disabled-bg:#514958;--disabled-ink:#F2EAF6;--warning:#3D3027;--warning-line:#A98663;color-scheme:dark}
[data-theme="sage"][data-color-mode="dark"]{--bg:#18201B;--surface:#242F27;--blush:#344B3A;--rose:#A7C6B0;--ink:#EEF7F0;--muted:#C2D2C5;--line:#485C4D;--rose-dark:#BADCC3;--soft:#2B3A2F;--focus:#BADCC3;--hover:#354A39;--disabled-bg:#46564A;--disabled-ink:#E7F1E9;--warning:#3D3027;--warning-line:#A98663;color-scheme:dark}
[data-theme="sky"][data-color-mode="dark"]{--bg:#182027;--surface:#242F39;--blush:#354C5E;--rose:#A7C8E3;--ink:#EEF6FC;--muted:#C2D1DD;--line:#495D6C;--rose-dark:#BADBF4;--soft:#2B3945;--focus:#BADBF4;--hover:#354B5A;--disabled-bg:#465661;--disabled-ink:#E7F1F7;--warning:#3D3027;--warning-line:#A98663;color-scheme:dark}
[data-theme="peach"][data-color-mode="dark"]{--bg:#211A17;--surface:#302622;--blush:#503B31;--rose:#E6B69F;--ink:#FFF1E8;--muted:#D9C5BA;--line:#655146;--rose-dark:#F2C2AA;--soft:#3A2D27;--focus:#F2C2AA;--hover:#4A372E;--disabled-bg:#594940;--disabled-ink:#F6E9DF;--warning:#3D3027;--warning-line:#A98663;color-scheme:dark}
[data-theme="mono"][data-color-mode="dark"]{--bg:#1B1B1B;--surface:#292929;--blush:#454545;--rose:#C9C9C9;--ink:#F4F4F4;--muted:#CCCCCC;--line:#555555;--rose-dark:#DDDDDD;--soft:#353535;--focus:#DDDDDD;--hover:#414141;--disabled-bg:#505050;--disabled-ink:#EEEEEE;--warning:#3D3027;--warning-line:#A98663;color-scheme:dark}
.workspace-content{width:100%;margin-inline:auto;min-width:0}.card,.anniversary-card{border-radius:16px;padding:24px}.home-grid{gap:16px}
.workspace-data-status{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px;padding:12px 16px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);font-size:13px;line-height:1.5}.workspace-data-status button{min-height:44px}.workspace-data-status.hidden{display:none}
.task-row,.event-item{flex-wrap:wrap}.task-copy{min-width:0;overflow-wrap:anywhere}.event-item>span{min-width:0;overflow-wrap:anywhere}.inline-editor{flex:1 0 100%;display:grid;gap:10px;min-width:0;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.inline-editor label{display:grid;gap:5px;color:var(--ink);font-size:12px}.inline-editor input{width:100%;height:auto;min-height:44px;accent-color:var(--rose-dark)}.inline-editor-actions{display:flex;flex-wrap:wrap;gap:8px}.inline-editor-actions button{min-height:44px}.inline-editor-status{margin:0;color:var(--rose-dark);font-size:12px;line-height:1.5}
.tab:hover{background:var(--hover)}.primary-button:hover{background:var(--ink);color:var(--surface)}
.primary-button:disabled,.secondary-button:disabled{background:var(--disabled-bg);color:var(--disabled-ink)}
button:focus-visible,input:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.toast{background:var(--ink);color:var(--surface)}.tarot-card-face{color:var(--ink)}.anniversary-card p,.anniversary-card .eyebrow{color:var(--ink)}
.tab-panel.settings-page{display:none;gap:16px}.tab-panel.settings-page.active{display:grid}.settings-heading h2{font-size:25px;margin:8px 0}.settings-section h3{font-size:18px;margin:6px 0}.settings-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.settings-subhead{display:grid;gap:5px;margin-bottom:12px}.settings-subhead strong{font-size:13px}.settings-subhead span,.settings-status{color:var(--muted);font-size:12px;line-height:1.6}.mode-heading{margin-top:26px}
.theme-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.theme-choice{display:flex;align-items:center;gap:10px;min-height:62px;padding:12px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--ink);text-align:left;font:inherit;font-size:13px}.theme-choice[aria-pressed="true"]{border:2px solid var(--rose-dark);padding:11px;background:var(--soft);font-weight:700}.theme-choice small{margin-left:auto;color:var(--muted);font-size:10px}.theme-swatch{width:27px;height:27px;flex:none;border-radius:50%;background:var(--sample);border:1px solid color-mix(in srgb,var(--ink) 20%,transparent)}
[data-theme-choice="rose"]{--sample:var(--palette-rose)}[data-theme-choice="lavender"]{--sample:var(--palette-lavender)}[data-theme-choice="sage"]{--sample:var(--palette-sage)}[data-theme-choice="sky"]{--sample:var(--palette-sky)}[data-theme-choice="peach"]{--sample:var(--palette-peach)}[data-theme-choice="mono"]{--sample:var(--palette-mono)}
.mode-selector{display:flex;gap:8px;flex-wrap:wrap}.mode-selector button{min-height:44px;padding:9px 16px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink);font:inherit;font-size:12px}.mode-selector button[aria-pressed="true"]{border-color:var(--rose-dark);background:var(--soft);font-weight:700}
.settings-anniversary{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:22px;padding-top:18px;border-top:1px solid var(--line);font-size:12px}.settings-anniversary span{color:var(--muted)}.settings-anniversary strong{flex:1;min-width:120px;font-weight:600}
@media(max-width:680px){.theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))}input,textarea,select{font-size:16px!important}}

/* Compact workspace and theme-aware navigation. */
body:has(#workspace:not(.hidden)) .app-shell{max-width:1440px;padding-top:18px}
.sidebar-logo{white-space:nowrap;flex-shrink:0}.sidebar-logo small{font-size:8px;margin-left:8px}
.sidebar-couple-name{margin:0 12px 12px;color:var(--muted);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.welcome-row{align-items:center;gap:16px;margin:0 0 20px}.welcome-row h1{font-size:24px;margin:4px 0}.welcome-row p{font-size:12px}
.welcome-meta{display:grid;justify-items:end;gap:3px}.compact-anniversary{display:flex;align-items:center;gap:8px}.compact-anniversary>span{color:var(--muted);font-size:11px}.compact-anniversary strong{font-size:20px;color:var(--rose-dark)}.compact-anniversary .icon-button{padding:4px}.welcome-meta #anniversaryLabel{font-size:10px}
.home-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}
.home-grid>article,.home-grid>.question-card,.home-grid>.journal-overview{grid-column:span 2;min-height:160px;padding:19px}
.home-grid>.question-card,.home-grid>.journal-overview{grid-column:span 3;min-height:172px}
.home-grid .question-prompt{font-size:17px;margin:16px 0 8px}.home-grid .card-heading h2{font-size:15px}
.dashboard-link{cursor:pointer;transition:background .15s,border-color .15s,transform .15s}.dashboard-link:hover{border-color:var(--rose-dark);background:var(--soft);transform:translateY(-2px)}.dashboard-link:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.dashboard-divider{border-top:1px solid var(--line);margin:10px 0 7px}.dashboard-caption{font-size:10px;color:var(--muted)}
#tab-avatars .pair-card{margin-bottom:16px}.toast{background:var(--ink);color:var(--surface)}
@media(max-width:900px) and (min-width:681px){.home-grid>article,.home-grid>.question-card,.home-grid>.journal-overview{grid-column:span 3}}
@media(max-width:680px){
  body:has(#workspace:not(.hidden)) .app-shell{padding:14px 16px calc(24px + env(safe-area-inset-bottom))}
  .welcome-row{flex-direction:row;align-items:flex-start;gap:10px}.welcome-row h1{font-size:21px}.welcome-row .eyebrow{font-size:9px}.welcome-meta{min-width:0;text-align:right}.today-label{font-size:10px}.compact-anniversary{gap:4px}.compact-anniversary>span{display:none}.compact-anniversary strong{font-size:17px}.compact-anniversary .icon-button{font-size:10px}
  .home-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.home-grid>article,.home-grid>.question-card,.home-grid>.journal-overview{grid-column:span 1;min-height:145px;padding:15px}.home-grid>.question-card,.home-grid>.journal-overview{grid-column:span 2;min-height:140px}.home-grid .question-prompt{font-size:16px;margin:12px 0 6px}.home-grid .card-heading{gap:6px}.home-grid .card-heading h2{font-size:14px}.home-grid .icon-button{font-size:10px;padding:5px}.toast{bottom:calc(20px + env(safe-area-inset-bottom))}
}
@media(max-width:480px){.home-grid{grid-template-columns:minmax(0,1fr)}.home-grid>article,.home-grid>.question-card,.home-grid>.journal-overview{grid-column:span 1;min-height:0}.home-grid .overview-card{min-height:120px}.welcome-row{flex-direction:column;gap:10px}.welcome-row h1{font-size:19px}.welcome-meta{justify-items:start;text-align:left}.welcome-meta #anniversaryLabel{max-width:none}}

/* The full header, not the button, remains visible while scrolling. */
:root{--header-height:64px}
.topbar{position:sticky;top:var(--preview-banner-height, 0px);z-index:42;height:var(--header-height);background:var(--surface);border-bottom:1px solid var(--line)}
.topbar-inner{display:flex;align-items:center;gap:12px;width:100%;height:100%;padding:0 16px}
.topbar-inner>.brand{flex:none}
.top-actions{margin-left:auto;min-width:0;gap:clamp(6px,2vw,14px)}
.top-actions .account-label{min-width:0;overflow:hidden;overflow-wrap:anywhere}
.top-actions .quiet-button{flex:none}
.sidebar-toggle:focus-visible{outline:3px solid var(--focus);outline-offset:2px}

/* One left-hand toggle controls the complete sidebar at every breakpoint. */
#workspace:not(.hidden){display:grid;grid-template-columns:0 minmax(0,1fr);gap:0;transition:grid-template-columns .25s ease}
#workspace.sidebar-open:not(.hidden){grid-template-columns:252px minmax(0,1fr)}
.sidebar-toggle{display:none;place-items:center;flex:none;width:44px;height:44px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font-size:19px;box-shadow:none}body:has(#workspace:not(.hidden)) .sidebar-toggle{display:grid}
.sidebar-toggle:hover{background:var(--hover)}
.workspace-sidebar{position:sticky;top:calc(var(--preview-banner-height, 0px) + var(--header-height));width:252px;height:calc(100dvh - var(--preview-banner-height, 0px) - var(--header-height));min-height:0;margin:0;padding:20px 16px;border-right:1px solid var(--line);background:var(--surface);overflow-y:auto;opacity:0;visibility:hidden;transform:translateX(-20px);transition:transform .25s ease,opacity .2s ease,visibility 0s linear .25s}
.sidebar-open .workspace-sidebar{opacity:1;visibility:visible;transform:translateX(0);transition:transform .25s ease,opacity .2s ease,visibility 0s}
.sidebar-heading{display:flex;flex-direction:row;justify-content:flex-start;padding:0 8px 20px}.sidebar-logo{display:flex;align-items:baseline;gap:0;line-height:1.3;font-size:27px}.sidebar-logo small{display:inline}
.sidebar-content{position:static;display:flex;flex-direction:column;justify-content:space-between;width:auto;min-height:calc(100% - 60px);max-height:none;margin:0;padding:0;border:0;border-radius:0;background:transparent;overflow:visible;box-shadow:none}
.workspace-content{max-width:1080px;padding:12px 0 0;transition:padding .25s ease}.sidebar-open .workspace-content{padding-left:26px}
.sidebar-overlay{display:none}
@media(max-width:680px){
  #workspace:not(.hidden),#workspace.sidebar-open:not(.hidden){display:block}
  .workspace-sidebar{position:fixed;z-index:31;top:calc(var(--preview-banner-height, 0px) + var(--header-height));bottom:0;left:0;width:min(270px,86vw);height:calc(100dvh - var(--preview-banner-height, 0px) - var(--header-height));margin:0;padding:20px 16px calc(20px + env(safe-area-inset-bottom));border:0;border-radius:0;background:var(--surface);transform:translateX(-100%)}
  .sidebar-open .workspace-sidebar{transform:translateX(0)}
  .sidebar-open .sidebar-overlay{display:block;position:fixed;inset:0;z-index:30;width:100%;height:100%;border:0;border-radius:0;background:color-mix(in srgb,var(--ink) 48%,transparent)}
  body.sidebar-modal-open{overflow:hidden}
  .workspace-content,.sidebar-open .workspace-content{padding:12px 0 0}
}
@media(prefers-reduced-motion:reduce){#workspace:not(.hidden),.workspace-sidebar,.sidebar-open .workspace-sidebar,.workspace-content{transition:none}}

/* Primary destinations and their secondary screens. */
.header-settings{display:none;place-items:center;flex:none;width:44px;height:44px;border:0;border-radius:10px;background:transparent;color:var(--ink);font-size:20px}
body:has(#workspace:not(.hidden)) .header-settings{display:grid}
.header-settings:hover{background:var(--hover)}
.section-tabs{margin:0 0 20px;overflow-x:auto}
.section-tabs[hidden],.section-tabs [hidden],#tab-fortune [hidden]{display:none!important}
.section-tabs>div{display:flex;gap:8px;min-width:max-content}
.section-tabs button{min-height:44px;padding:9px 16px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink);font:inherit;font-size:13px}
.section-tabs button.active{background:var(--ink);border-color:var(--ink);color:var(--surface)}
.mobile-primary{display:none}
.home-grid .journal-overview,.home-grid .photo-overview{display:none}
.home-grid .journal-overview.beta03-visible{display:block}
#tab-fortune .fortune-grid{grid-template-columns:minmax(0,1fr)}
@media(min-width:681px){body:has(#workspace:not(.hidden)) .sidebar-toggle{display:none}}
@media(max-width:680px){
  body:has(#workspace:not(.hidden)) .sidebar-toggle{display:none}
  body:has(#workspace:not(.hidden)) .mobile-primary{display:grid}
  .mobile-primary{position:fixed;z-index:45;bottom:0;left:0;right:0;grid-template-columns:repeat(4,minmax(0,1fr));padding:4px 8px calc(4px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line)}
  .mobile-primary button{min-height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:0;border-radius:10px;background:transparent;color:var(--muted);font:inherit;font-size:11px}
  .mobile-primary button span{font-size:20px;line-height:1}
  .mobile-primary button.active{background:var(--soft);color:var(--ink);font-weight:700}
  body:has(#workspace:not(.hidden)) .app-shell{padding-bottom:calc(90px + env(safe-area-inset-bottom))}
}

/* The banner stays fixed while its measured height reserves space in the document. */
.local-preview{padding-top:var(--preview-banner-height, 0px)}
.preview-notice{position:fixed;inset:0 0 auto;z-index:50;padding:10px;text-align:center;font-size:13px;font-weight:700;background:var(--ink);color:var(--surface)}

/* Compact, independently controlled character previews. */
.home-character-strip{display:flex;align-items:center;gap:10px;margin:0 0 16px;padding:8px 12px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.home-character{display:flex;align-items:center;gap:8px;min-width:0;border:0;background:transparent;color:var(--ink);font:inherit;font-size:12px;font-weight:600}
button.home-character{padding:0;border-radius:8px;cursor:pointer}.home-character span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:110px}
.summary-avatar{display:grid;place-items:center;flex:none;width:42px;height:48px}.summary-avatar svg{width:100%;height:100%}.summary-avatar .waiting-heart{width:38px;height:38px;border-radius:12px;font-size:22px}
.character-divider{color:var(--rose-dark);font-size:16px}.editor-controls [aria-pressed="true"]{border-color:var(--rose-dark);background:var(--soft);color:var(--ink)}
#avatarStatus{margin:0}.avatar-preview-wrap{top:calc(var(--preview-banner-height, 0px) + var(--header-height) + 12px)}
@media(max-width:680px){.home-character-strip{gap:7px}.home-character span:last-child{max-width:78px}.avatar-preview-wrap{position:static}}

/* Keep long account labels from pushing header controls off small screens. */
.top-actions{min-width:0}
.account-label{display:block;min-width:0;max-width:min(34vw,180px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Authentication actions retain comfortable touch targets on narrow screens. */
.auth-actions{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;margin-top:10px}
.auth-actions .text-button{min-height:44px;padding:8px 0;text-align:left;font-size:12px;line-height:1.5}
/* Beta 0.3 uses the existing diary and calendar components. */
#beta03JournalShell .journal-form input,#beta03JournalShell .journal-form select{width:100%;min-height:44px;border:1px solid var(--line);border-radius:11px;padding:10px;background:var(--surface);color:var(--ink);font:inherit}
#beta03JournalShell .choice-row button[aria-pressed="true"]{color:var(--rose-dark);border:1px solid var(--rose-dark);border-radius:10px}
#beta03QuestionCalendar .calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}

/* Prevent long words from overflowing while keeping Korean words together. */
.question-prompt,#homeJournals .compact-item{word-break:keep-all;overflow-wrap:anywhere}

/* Long diary titles must wrap inside the shared-record card. */
#beta03JournalShell .journal-entry > strong,
#beta03JournalShell .journal-entry > h3{overflow-wrap:anywhere}
