/* The same lamplit, ink-and-wine world as the character illustrations. */
:root{
 --bg:#19141e;--surface:#27212d;--surface2:#322936;--line:#51424f;
 --text:#f6eee7;--muted:#c4b7bf;--pink:#edb4c7;--pink-dark:#4c303e;
 --gold:#dfc18d;--teal:#acd0bc;--blue:#b1c6d9;
 --serif:"Hiragino Mincho ProN","Yu Mincho",YuMincho,"Noto Serif JP",serif;
 --sans:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Yu Gothic",Meiryo,sans-serif;
 --edge:#b59b7045;--ink:#19141e;--wine:#503241;--paper:#eee0ce;
}
html{font-size:100%;background:var(--bg)}
body{background:radial-gradient(ellipse at 88% 0,#63413c25,transparent 52%),var(--bg);color:var(--text);font-family:var(--sans);line-height:1.8}
button,input,select{font-family:var(--sans)}
h1,h2,h3,p{overflow-wrap:anywhere}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--gold);outline-offset:4px}
::selection{background:#99617b88;color:#fff}
.card{border:1px solid var(--edge);border-radius:12px;background:linear-gradient(125deg,#ffffff02,transparent 70%),var(--surface);box-shadow:0 8px 25px #09050d16}
.button{border-radius:8px;min-height:48px;font-size:1rem;line-height:1.65;letter-spacing:.015em;padding:11px 18px;transition:background .18s,border-color .18s,transform .18s}
.button.primary{background:linear-gradient(135deg,#efc6b2,#e2afbd);color:#35212b;border:1px solid #f4d3c475;box-shadow:inset 0 1px #fff3,0 5px 18px #09050e30;font-weight:650}
.button.quiet{background:#ffffff04;border-color:#a6927d60;color:var(--text)}
.button:disabled{opacity:.42;filter:none;transform:none}
.text-button{font-size:.875rem;color:var(--gold);min-height:44px}
.icon-button{border-radius:10px;background:#ffffff03;color:#dbc8c8;border-color:var(--edge)}
.icon{stroke-width:1.45}
.eyebrow{font-size:.875rem;letter-spacing:.08em;color:var(--gold)}
input[type=number],select{border-radius:8px;background:var(--ink);border:1px solid #887581;color:var(--text);font-size:1rem;min-height:48px}
.page-heading{padding:0 0 20px;margin:0 0 24px;border-bottom:1px solid var(--edge)}
.page-heading h1{font-family:var(--serif);font-size:clamp(1.65rem,2.4vw,2.1rem);font-weight:500;letter-spacing:.04em;line-height:1.55}
.page-heading .eyebrow{display:block;color:var(--gold);font-size:.875rem}
.page-heading p{color:var(--muted);font-size:1rem;line-height:1.85;margin-top:8px;max-width:64em}
.balance-label{border-color:var(--edge);border-radius:8px}
.header{height:80px;padding:12px 30px;gap:16px;background:#19141ef5;border-bottom:1px solid var(--edge);backdrop-filter:blur(16px)}
.brand{gap:12px}.brand>.icon{width:29px;height:29px;color:var(--gold)}
.brand>span{font-family:var(--serif);font-size:1.35rem;font-weight:500;letter-spacing:.13em;line-height:1.45}
.brand small{color:var(--muted);font-size:.75rem;letter-spacing:.12em;margin-top:3px}
.header-wallet{padding:8px 14px;border-radius:8px;border-color:var(--edge);background:#322735;color:var(--gold)}
.header-wallet span{color:var(--paper);font-size:.875rem}
.header nav{top:110px;left:24px;width:160px;bottom:auto;gap:6px}
.header .nav-item{border-radius:8px;min-height:56px;padding:12px 15px;font-size:1rem;gap:12px;color:var(--muted);background:transparent;box-shadow:none}
.header .nav-item .icon{width:21px;height:21px}
.header .nav-item.active{background:#50324170;color:#f5dcc1;box-shadow:inset 2px 0 var(--gold)}
.header .nav-item:hover{background:#fff6e908}
main{margin:0 auto 0 212px;padding:0 32px 48px;max-width:1380px}
.status-strip{min-height:55px;padding:12px 0;font-size:.875rem;color:#c5b5c0}
.status-strip>span{letter-spacing:.045em}
.deadline-status{background:transparent;color:var(--gold);font-size:.875rem;padding:5px 0}
.deadline-status.urgent{background:#70384355;color:#ffced4;padding:5px 10px}
.daily-summary{grid-template-columns:1fr 1fr 1.1fr;background:#241d29;border:1px solid var(--edge);border-radius:10px;margin:0 0 26px;box-shadow:inset 0 1px #f2d9b106}
.daily-summary>div,.daily-summary>button{padding:12px 20px;border-color:var(--edge)}
.daily-summary>button{background:#362938;border-left:1px solid var(--edge)}
.daily-summary span{font-size:.875rem;color:#c6b8c0}
.daily-summary strong{font-size:1.35rem;font-weight:550;letter-spacing:.025em}
.daily-summary>button strong{font-size:1rem;color:var(--gold)}

/* The picture, choices and condition form one daily scene. */
.day-opening{display:grid;grid-template-columns:minmax(0,1.03fr) minmax(0,1fr);gap:28px;align-items:stretch;margin-bottom:24px}
.day-decisions,.day-visual{min-width:0}
.today-guide{margin:0 0 20px}
.guide-copy h1{font-family:var(--serif);font-size:clamp(1.55rem,2.3vw,2rem);font-weight:500;letter-spacing:.025em;line-height:1.55;margin:5px 0 8px}
.guide-copy p{font-size:.9375rem;line-height:1.85;color:var(--muted)}
.daily-choices.illustrated-choices{gap:12px;margin-top:20px}
.daily-choices.illustrated-choices>button{display:flex;flex-direction:column;align-items:stretch;text-align:center;gap:0;padding:0;overflow:hidden;background:#2f2532;border:1px solid #90747d70;border-radius:10px;min-width:0;color:var(--text);transition:border-color .18s,transform .18s,box-shadow .18s}
.choice-visual{display:block;position:relative;aspect-ratio:1;overflow:hidden;background:#382936}
.choice-visual:after{content:"";position:absolute;inset:60% 0 0;background:linear-gradient(transparent,#2f253266);pointer-events:none}
.illustrated-choices .choice-art{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:0;aspect-ratio:1}
.choice-clinic-art{position:absolute;left:-62.5%;top:0;width:225%;height:100%;aspect-ratio:9/4}
.choice-label{display:flex;align-items:center;justify-content:center;gap:7px;padding:10px 5px 1px}
.choice-label .icon{width:16px;height:16px;color:var(--gold)}
.illustrated-choices .choice-label strong{font-family:var(--serif);font-weight:600;font-size:1.125rem;letter-spacing:.025em;line-height:1.7}
.daily-choices.illustrated-choices small{font-size:.875rem;color:#cbbac5;padding:0 6px 12px;line-height:1.55}
.day-opening .vitals{margin:0;padding:16px 0 0;border:0;border-top:1px solid var(--edge);border-radius:0;background:transparent;gap:15px}
.vital-label{font-size:.875rem;gap:6px;line-height:1.6}
.vital-label strong{font-size:1.15rem;font-weight:500}
.vital-label strong small{font-size:.75rem;color:var(--muted)}
.meter,.trait-track{height:5px;background:#d7c3cf18;border-radius:3px}
.meter i,.trait-track i{border-radius:3px}
.illustrated-day{height:100%;display:flex;flex-direction:column;overflow:hidden;border-radius:12px;border-color:#ac8c6c70;background:#29202e}
.day-picture{position:relative;overflow:hidden}
.day-picture .today-illustration{aspect-ratio:9/4}
.scene-place{position:absolute;top:0;left:0;right:0;padding:14px 18px 38px;display:flex;align-items:center;gap:7px;font-size:.875rem;color:#ffefe2;background:linear-gradient(#211322b8,transparent);text-shadow:0 1px 5px #21121c}
.scene-place .icon{width:15px;height:15px}
.scene-day{position:absolute;right:18px;bottom:14px;font-size:.75rem;line-height:1.15;letter-spacing:.12em;text-align:center;text-shadow:0 2px 8px #291523;color:#f9e5d2}
.scene-day strong{display:block;font-family:var(--serif);font-size:2rem;font-weight:400;letter-spacing:.02em}
.illustration-caption{padding:20px 24px;flex:1;display:flex;flex-direction:column;justify-content:center;border-top:1px solid var(--edge)}
.tsumugi-caption{display:flex;align-items:center;justify-content:space-between;gap:12px}
.tsumugi-caption>span{font-family:var(--serif);font-size:1.7rem;color:var(--paper);letter-spacing:.1em;white-space:nowrap}
.tsumugi-caption small{font-family:var(--sans);font-size:.875rem;color:var(--muted);letter-spacing:0;margin-left:8px}
.tsumugi-caption .text-button{white-space:nowrap;font-size:.875rem}
.illustration-caption p{font-family:var(--serif);font-size:1.125rem;color:#f0dcd7;line-height:1.9;margin:8px 0 0}
.illustration-mood{margin-top:12px;font-size:.875rem;color:#c6b1c0;gap:7px}
.illustration-mood .icon{width:15px;height:15px}
.day-notes{display:grid;grid-template-columns:1.15fr 1fr;gap:20px;margin-bottom:24px;align-items:stretch}
.day-notes>.card{margin:0;height:100%}
.day-notes .welcome-note{padding:18px;background:transparent;border-style:dashed}
.welcome-note>span{background:transparent;color:var(--gold);padding:5px}
.welcome-note strong{font-size:.9375rem;font-weight:500}.welcome-note p{font-size:.875rem}
.home-layout{grid-template-columns:minmax(0,1.35fr) minmax(290px,1fr);gap:24px}
.home-detail,.home-aside{display:grid;gap:20px;align-content:start;min-width:0}
.condition-details{border-color:var(--edge);overflow:hidden}
.condition-details>summary{padding:16px 20px;color:var(--paper);font-size:1rem}
.pressure-panel,.journey-condition{background:transparent;border-color:var(--edge)}
.home-aside .finance{background:linear-gradient(145deg,#322537,#251e2b);border-color:#a4866b66;padding:24px}
.finance .debt-amount{font-family:var(--serif);font-size:2.35rem;color:var(--gold)}
.finance .money-row,.finance .repay-progress,.finance .deadline{border-color:var(--edge)}
.repay-button{background:#50334360;border-color:#a8828870;color:#f4c6d5}
.charm-summary>header h2,.card-heading h2,.work-support h2{font-family:var(--serif);font-size:1.2rem;font-weight:500}
.charm-summary footer{background:transparent;border-color:var(--edge)}
.recent-growth,.receipt-routine,.support-recovery{border-color:#8b736b77;background:#342a31}
.receipt-preview{background:#2b2230;border-radius:10px}
.receipt-preview .receipt-day{color:var(--gold)}
.receipt-preview strong{font-weight:500}

/* Recurring people have one face everywhere: conversation, collection and memory. */
.cast-portrait{display:block;position:relative;overflow:hidden;margin:0;min-width:0;background:#39232d;border-radius:9px;border:1px solid #b9a09038}
.cast-portrait img{display:block;width:100%;height:100%;object-fit:cover;object-position:center top}
.story-shortcut{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:20px;background:linear-gradient(120deg,#382937,#27212d);border-color:#ad8c7170;text-align:left;overflow:hidden}
.story-shortcut-copy{min-width:0;display:flex;flex-direction:column;gap:7px}
.story-shortcut strong{font-family:var(--serif);font-size:1.125rem;font-weight:500;line-height:1.8;color:var(--paper)}
.story-chapter-label{font-size:.875rem;color:var(--gold)}
.story-shortcut-caption{display:flex;align-items:center;gap:10px;font-size:.875rem;color:var(--muted)}
.story-shortcut>.story-portrait-stack{display:flex;align-items:center;flex-shrink:0;padding-left:6px}
.shortcut-portrait{width:42px;height:56px;margin-left:-7px;border:2px solid #352737;border-radius:22px 22px 7px 7px}
.chapter-track{border-bottom:1px solid var(--edge);gap:0;margin-bottom:24px}
.chapter-track>span{border-top:0;border-bottom:2px solid transparent;padding:10px 6px;font-size:.875rem;color:var(--muted)}
.chapter-track .active{color:var(--gold);border-color:var(--gold)}
.chapter-track .done{color:#bba793;border-color:#796852}
.record-tabs{background:transparent;padding:0;gap:8px;border:0;border-radius:0;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#74545f transparent}
.record-tabs button{flex:1;border:1px solid var(--edge);border-radius:7px;background:#251e2b;color:var(--muted);font-size:.9375rem;padding:10px 16px}
.record-tabs button.selected{background:#513440;border-color:#ae8490;color:#ffe1e5;box-shadow:inset 0 1px #fbe0d30e}
.story-lead{font-size:1rem;line-height:1.9;max-width:60em;margin-bottom:24px}
.story-section-heading h2{font-family:var(--serif);font-weight:500;font-size:1.45rem}
.story-section-heading>span{font-family:var(--serif);font-size:1.25rem;color:var(--gold)}
.companion-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:start}
.illustrated-person.person-card{display:flex;flex-direction:column;gap:0;padding:0;overflow:hidden}
.person-cover{position:relative;aspect-ratio:4/5;max-height:340px;overflow:hidden;background:#3b2732}
.person-cover-portrait{width:100%;height:100%;border:0;border-radius:0}
.person-cover-name{position:absolute;inset:auto 0 0;padding:38px 22px 18px;background:linear-gradient(transparent,#1a121aeb);color:#fff1e4}
.person-cover-name span{font-size:.875rem;color:#ebcbb8}
.person-cover-name h2{font-family:var(--serif);font-size:2rem;line-height:1.5;font-weight:500;letter-spacing:.1em;margin:2px 0 0}
.person-card-content{display:flex;flex-direction:column;padding:22px;gap:16px;flex:1;min-width:0}
.person-card-content>p{font-size:1rem;color:var(--muted);line-height:1.95;margin:0}
.person-appointment{margin-top:auto;padding-top:16px;border-top:1px solid var(--edge)}
.person-appointment>span{display:block;font-size:.875rem;color:var(--gold);margin-bottom:12px}
.person-appointment>.button{width:100%}
.relationship-progress{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.relationship-progress i{display:block;height:3px;flex:1;min-width:15px;max-width:30px;background:#c3b1b426;border-radius:2px}
.relationship-progress i.complete{background:#d6b185}
.relationship-progress small{font-size:.875rem;color:#c4adbb;margin-left:7px;white-space:nowrap}
.relationship-ending{display:flex;align-items:center;gap:8px;font-size:.875rem;color:var(--gold)}
.client-grid{gap:22px;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.client-card.illustrated-client{padding:0;overflow:hidden}
.illustrated-client>header{display:grid;grid-template-columns:126px minmax(0,1fr);gap:0;align-items:stretch;background:linear-gradient(110deg,#472c38,#2c232f);border-bottom:1px solid var(--edge)}
.client-card-portrait{width:126px;min-height:176px;height:100%;border:0;border-right:1px solid var(--edge);border-radius:0}
.client-card-intro{padding:18px;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:7px}
.client-card header .client-card-intro>.eyebrow{font-size:.8125rem;color:var(--gold)}
.client-card header h3{font-family:var(--serif);font-size:1.65rem;line-height:1.5;letter-spacing:.04em;font-weight:500}
.client-card-intro p{font-size:.9375rem;line-height:1.8;color:var(--muted)}
.client-card-content{padding:20px}
.client-card-content>p{font-size:1rem;line-height:1.9;color:var(--muted);margin-bottom:16px}
.client-status{font-size:.875rem;margin:0 0 16px;gap:8px 18px}
.client-card-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px;padding-top:14px;border-top:1px solid var(--edge)}
.client-card-actions .button{font-size:.9375rem;min-height:44px;padding:8px 12px}
.client-card .button[aria-pressed=true]{background:#513641;color:#ffdeed;border-color:#b786a0}
.story-inbox{background:#2f2533;border-color:#ab87745e;padding:22px}
.story-inbox>button{gap:14px;border-color:var(--edge)}
.story-inbox>button>span:not(.cast-portrait){flex:1}
.inbox-portrait{width:48px;height:60px;flex-shrink:0}
.cast-empty{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);overflow:hidden;align-items:center}
.cast-empty>.today-illustration{width:100%;aspect-ratio:9/4;align-self:center}
.cast-empty>div:last-child{padding:32px}
.cast-empty h3{font-family:var(--serif);font-size:1.5rem;font-weight:500;line-height:1.9;margin:8px 0 12px}
.cast-empty p{font-size:1rem;color:var(--muted);margin-bottom:20px}
.story-memory-list{gap:16px}
.story-memory-list li{padding:22px}
.story-memory-list .memory-with-person{display:grid;grid-template-columns:68px minmax(0,1fr);gap:20px;align-items:start}
.memory-person-portrait{width:68px;aspect-ratio:4/5}
.memory-day{color:var(--gold);font-size:.875rem}
.story-memory-list h3,.story-dialog-memory h3{font-family:var(--serif);font-size:1.2rem;font-weight:500;line-height:1.75}
.story-memory-list p,.story-dialog-memory p{line-height:1.95;color:var(--muted)}
.memory-event-portrait{width:100%;aspect-ratio:4/5;max-height:280px;border-radius:10px 10px 0 0;border:0}
.memory-card{overflow:hidden}

/* Dialogue reads as an illustrated scene, with an unmistakable speaker. */
dialog{padding:28px;width:calc(100% - 40px);max-width:580px;max-height:calc(100dvh - 36px);border-radius:14px;border:1px solid #b994847d;background:#29212e;color:var(--text);box-shadow:0 20px 90px #08050ccc;overscroll-behavior:contain}
dialog.modal-wide{max-width:720px}
dialog::backdrop{background:#100b15d9;backdrop-filter:blur(7px)}
dialog h2{font-family:var(--serif);font-size:1.7rem;font-weight:500;line-height:1.7;letter-spacing:.025em}
dialog .modal-close{z-index:2;background:#211822d9;border-color:#ab8b865e}
dialog.conversation-modal{max-width:700px;overflow-x:hidden}
.cast-conversation{display:grid;grid-template-columns:minmax(0,1fr) 190px;align-items:stretch;gap:0;margin:-28px -28px 24px;border-bottom:1px solid #c49a7963;background:linear-gradient(120deg,#39232f,#281b25)}
.cast-conversation-copy{padding:26px 22px 24px 28px;min-width:0;display:flex;flex-direction:column;justify-content:center}
.cast-conversation-copy>.eyebrow{font-size:.875rem;color:var(--gold);line-height:1.75;letter-spacing:.04em}
.cast-speaker{font-family:var(--serif);font-size:1.7rem;font-weight:500;color:#ffe6d4;line-height:1.5;margin-top:12px;letter-spacing:.06em}
.cast-speaker small{display:block;font-family:var(--sans);font-size:.875rem;letter-spacing:0;color:#c6adba;margin-top:4px}
.cast-conversation h2{font-size:1.45rem;color:#f3e5e5;margin:18px 0 0;letter-spacing:.02em;line-height:1.75}
.conversation-portrait{width:190px;height:100%;min-height:260px;border:0;border-left:1px solid #b7987f20;border-radius:0}
.conversation-modal .event-body{font-family:var(--serif);font-size:1.1rem;line-height:2.05;padding:0;border-left:0;color:#f1e5e3;margin:0 0 24px}
.event-choices{display:grid;gap:12px}
.event-choice{background:#352936;border:1px solid #a28a8859;border-radius:9px;min-height:64px;padding:17px 18px;gap:13px;color:var(--text);text-align:left;transition:background .18s,border-color .18s}
.event-choice strong{font-weight:500;font-size:1rem;line-height:1.85}
.event-choice small{font-size:.875rem;line-height:1.75;color:#c6b5c3}
.choice-number{font-family:var(--serif);font-size:.9375rem;color:var(--gold);flex-shrink:0}
.event-choice>.icon{color:var(--gold);width:17px;height:17px}
.event-choice:disabled{opacity:.45;transform:none}
.conversation-reply{padding:17px 20px;margin:4px 0 22px;font-family:var(--serif);font-size:1.1rem;border:1px solid #c09b8263;border-left:2px solid var(--gold);border-radius:2px 8px 8px 2px;background:#49314066;color:#ffdfdf;line-height:1.9}
.conversation-saved{padding-top:16px;border-top:1px solid var(--edge);color:#bcacb9}
.modal-footnote{font-size:.875rem;line-height:1.85;color:#bcacb9;margin-top:22px}
.story-dialog-memory{border-color:var(--edge)}
.story-scene{background:#342633;border-color:var(--edge);border-radius:10px;overflow:hidden}
.story-scene h2{font-family:var(--serif)}
.story-chapter{color:var(--gold);border-color:var(--edge);background:#59413e55}
.receipt-conversation{display:grid;grid-template-columns:56px minmax(0,1fr);gap:14px;align-items:start}
.receipt-portrait{width:56px;aspect-ratio:4/5;flex-shrink:0}
.receipt-conversation strong{font-family:var(--serif);font-size:1.05rem!important;font-weight:500}
.receipt-conversation p{font-size:1rem;line-height:1.9}
.story-receipt-notice{background:#352936;border-color:#9e7f806b}

/* The supporting pages use the same quiet materials and hierarchy. */
.plan-card{background:linear-gradient(140deg,#342733,#27212d);padding:24px}
.selected-shop{border:1px solid var(--edge);background:#211925;border-radius:9px;padding:12px}
.selected-shop strong{font-family:var(--serif);font-size:1.35rem;line-height:1.6;font-weight:500}
.selected-shop-art{width:84px;min-height:82px;border-radius:6px}
.mode-switch{background:#1c151f;border:1px solid var(--edge);border-radius:8px;padding:4px}
.mode-switch button{border-radius:5px;color:var(--muted);font-size:.9375rem;min-height:46px}
.mode-switch .selected,.post-counts .selected,.face-options .selected{background:#503240;border-color:#c19793;color:#ffe5df}
.plan-card .estimate{padding:14px 16px;border-color:var(--edge);background:#211925;border-radius:8px}
.plan-card .estimate strong{font-family:var(--serif);font-size:1.9rem;color:var(--gold)}
.forecast-meta{font-size:.875rem;gap:8px 14px;color:var(--muted)}
.plan-warning{background:#60373750;border:1px solid #af786347;color:#f8d0ba;border-radius:7px;font-size:.9375rem;line-height:1.9}
.work-steps{gap:20px;padding:0 0 20px;border-bottom:1px solid var(--edge);font-size:.9375rem}
.work-steps b{font-family:var(--serif);background:transparent;border-color:#b69a7966;color:var(--gold);font-weight:400}
.work-support{background:#241d29}
.work-support>button{border-color:var(--edge)}
.work-support>button>.icon:first-child{color:var(--gold)}
.plan-shortcuts button{background:#211925;border-color:var(--edge)}
.plan-details,.trip-tracker,.travel-book,.trust-note,.region-summary,.location-context{background:#2e2331;border-color:#92766366;border-radius:10px}
.region-summary .icon,.location-context>.icon{color:var(--gold)}
.shop-card{border-radius:11px;overflow:hidden;border-color:var(--edge)}
.shop-card.selected{border-color:#cca485;box-shadow:inset 0 0 0 1px #bd977646}
.shop-card h2{font-family:var(--serif);font-size:1.5rem;font-weight:500;line-height:1.5}
.shop-card-art{border-bottom:1px solid var(--edge)}
.shop-card-body{padding:20px}
.shop-card .button{width:100%}
.shop-numbers strong{color:var(--gold)}
.character-profile{background:#28202c;border-color:var(--edge);overflow:hidden}
.profile-intro{background:#3c2732}
.profile-name h2{font-family:var(--serif);font-weight:500}
.profile-abilities>header h2,.body-profile header,.daily-routines h2,.investment-areas>h2{font-family:var(--serif);font-weight:500}
.profile-style,.trait-grade,.total-charm b{background:#4b343c;border-color:#ad8d7660;color:var(--gold)}
.body-profile,.ability-benefits{background:#211a25;border-color:var(--edge)}
.body-numbers strong{font-family:var(--serif);font-weight:500}
.trait-row p,.routine-content p{color:var(--muted)}
.routine-card{border-color:var(--edge);border-radius:10px;overflow:hidden}
.routine-content{padding:20px}
.routine-content h3,.investment h3{font-family:var(--serif);font-size:1.25rem;font-weight:500}
.routine-cost{border-color:var(--edge)}
.growth-chip{background:#fff8ee08;border-color:#a9918138;font-size:.875rem;border-radius:5px}
.investment{padding:20px;border-radius:10px;background:#2b222f}
.investment-icon{background:transparent;color:var(--gold);border-radius:0;width:30px;height:30px}
.investment-effects{font-size:.875rem}
.style-collection,.unavailable-actions{background:#251d29;border-color:var(--edge);border-radius:9px}
.story-intro{gap:28px}.story-intro .today-illustration{border-radius:10px;border:1px solid var(--edge)}
.story-intro h2{font-family:var(--serif);font-size:1.6rem;font-weight:500;line-height:1.8}
.route-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.route-card{display:flex;flex-direction:column;gap:12px;padding:20px;overflow:hidden;border-color:var(--edge)}
.route-card .route-illustration{width:calc(100% + 40px);margin:-20px -20px 6px;aspect-ratio:9/4;border-bottom:1px solid var(--edge);flex-shrink:0}
.route-card>span{font-size:.875rem;color:var(--gold)}
.route-card h3{font-family:var(--serif);font-size:1.3rem;line-height:1.7;font-weight:500}
.route-card p{font-size:1rem;line-height:1.9}
.route-card.chosen{background:#422d3b;border-color:#c19c79}
.route-steps,.story-offer{padding:26px;background:#28202c;border-color:var(--edge)}
.route-steps h2,.story-offer h2{font-family:var(--serif);font-size:1.45rem;font-weight:500;line-height:1.75}
.route-steps li{border-color:var(--edge)}
.route-steps li>span{background:#3b2d3d}
.route-steps .current>span{background:var(--gold);color:#2a1e28}
.offer-grid{gap:16px}
.offer-grid article{border-color:var(--edge);border-radius:8px;background:#221a27}
.offer-grid h3{font-family:var(--serif);font-weight:500;font-size:1.2rem}
.diary-settings,.diary-preview,.diary-history{border-radius:12px;border-color:var(--edge);background:#2b222f}
.diary-preview{box-shadow:0 12px 32px #07030e30}
.diary-count,.diary-stats,.diary-effects,.diary-risk,.post-counts button,.face-options button{border-color:var(--edge)}
.journal-stats .card{border-radius:10px;background:#2c222f}
.journal-stats strong{font-family:var(--serif);font-size:1.75rem;font-weight:400}
.journal{border-color:var(--edge);background:#251e2b}
.journal li h3{font-family:var(--serif);font-size:1.2rem;font-weight:500}
.journal li p{font-size:1rem;color:var(--muted);line-height:1.9}
.receipt-history{background:#28202c;border-color:var(--edge)}
.receipt-history>button{border-color:var(--edge)}
.receipt-history .receipt-day{color:var(--gold)}
.settings-card{background:#29212e;border-color:var(--edge);border-radius:12px}
.settings-card h2{font-family:var(--serif);font-weight:500;font-size:1.35rem;color:var(--paper)}
.settings-link,.setting-row,.switch-row,.support-guide{border-color:var(--edge)}
.settings-link .icon{color:var(--gold)}
.switch-visual{background:#4e4252;border-color:#786672}
.switch-row input:checked+.switch-visual{background:#a8788c;border-color:#e0afbd}
.routine-auto{border-color:var(--edge);background:#352834}
.settlement-total{background:#382733;border:1px solid #ba967347;border-radius:10px}
.settlement-total>strong{font-family:var(--serif);font-weight:400;color:var(--gold)}
.settlement-lines,.course-table td,.course-table th,.customer-breakdown{border-color:var(--edge)}
.customer-breakdown{background:#211925;border-radius:9px}
.receipt-event{background:#3b2938;border-radius:9px}
.recovery-banner{background:linear-gradient(115deg,#47313f,#292331);border-color:#bf91a288;border-radius:12px}
.recovery-banner-heading strong{font-family:var(--serif);font-weight:500}
dialog.recovery-modal{background:#211724;border-color:#bf91a2;border-radius:14px}
.recovery-modal .recovery-content h2{font-family:var(--serif)}
.toast{background:#f2dfd0;color:#3a2730;box-shadow:0 8px 30px #0005;border-radius:9px;font-size:.9375rem}

@media(hover:hover) and (pointer:fine){
 .daily-choices.illustrated-choices>button:hover{border-color:#d6b08b;background:#382938;transform:translateY(-2px);box-shadow:0 8px 20px #10091250}
 .button.quiet:hover:not(:disabled){background:#ffffff0a;border-color:#d4b498}
 .event-choice:hover:not(:disabled){background:#4b3341;border-color:#c698a1}
 .story-shortcut:hover{border-color:var(--gold)}
 .client-card .text-button:hover,.text-button:hover{color:#ffe2bd}
}
@media(min-width:1600px){main{margin-left:auto;margin-right:auto;padding-left:130px;max-width:1480px}}
@media(max-width:1200px){
 main{margin-left:190px;padding-left:24px;padding-right:24px}
 .header nav{left:20px;width:148px}
 .day-opening{gap:22px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .daily-choices.illustrated-choices{gap:8px}
 .choice-label{gap:4px}.choice-label .icon{display:none}
 .illustration-caption{padding:18px}.tsumugi-caption{flex-wrap:wrap;gap:0 12px}
 .tsumugi-caption small{margin-left:5px}
 .day-notes{grid-template-columns:1fr}
 .companion-grid{gap:16px}
 .person-card-content{padding:18px}.person-cover-name{padding:32px 18px 14px}
 .client-grid{grid-template-columns:1fr 1fr;gap:16px}
 .illustrated-client>header{grid-template-columns:100px minmax(0,1fr)}
 .client-card-portrait{width:100px;min-height:160px}
 .client-card-intro{padding:14px}.client-card header h3{font-size:1.45rem}
 .route-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:1050px){
 .day-opening{grid-template-columns:1fr}
 .day-decisions{display:grid;grid-template-columns:minmax(0,1fr) 160px;gap:24px;align-items:end}
 .day-decisions .today-guide{margin:0}
 .day-opening .vitals{border-top:0;grid-template-columns:1fr 1fr;gap:20px;padding:20px 0;background:transparent}
 .day-opening .vital-label{flex-direction:column;align-items:flex-start}.day-opening .vital-label>.icon{display:none}.day-opening .vital-label strong{margin-left:0}
 .day-visual .illustrated-day{display:flex;flex-direction:column}
 .day-visual .day-picture .today-illustration{aspect-ratio:9/4}
 .home-layout{grid-template-columns:1fr}
 .companion-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .person-card-content{padding:16px}.person-card-content>p{font-size:.9375rem}
 .person-appointment>.button{font-size:.9375rem;padding:10px}
 .person-cover-name h2{font-size:1.7rem}
 .client-grid{grid-template-columns:1fr}
 .illustrated-client>header{grid-template-columns:140px minmax(0,1fr)}
 .client-card-portrait{width:140px;min-height:185px}
 .client-card-intro{padding:22px}
 .client-card header h3{font-size:1.7rem}
}
@media(max-width:800px){
 .header{padding:10px 16px;height:64px;min-height:64px;gap:10px;background:#19141ef5}
 .brand>span{font-size:1.16rem;letter-spacing:.11em}.brand small{display:none}.brand>.icon{display:block;width:25px;height:25px}
 .header-wallet{padding:8px 10px;margin-left:auto;min-height:40px}.header-wallet span{font-size:.875rem}
 .settings-button{width:40px;height:40px;min-width:40px;min-height:40px}
 .header nav{top:auto;bottom:0;left:0;right:0;width:100%;height:auto;min-height:70px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));padding:6px 6px calc(6px + env(safe-area-inset-bottom));gap:1px;background:#221926f5;border-top:1px solid #b693774d;box-shadow:0 -8px 30px #0c071126;backdrop-filter:blur(18px);overflow:visible}
 .header .nav-item{min-height:58px;height:auto;flex-direction:column;justify-content:center;gap:5px;padding:6px 0;border-radius:7px;font-size:.875rem;line-height:1.4;white-space:normal}
 .header .nav-item .icon{width:21px;height:21px}.header .nav-item.active{background:#593d4866;box-shadow:inset 0 2px #d9b58c;color:#f8d7b3}
 main,.screen-life{margin:0;max-width:none;padding:0 18px calc(105px + env(safe-area-inset-bottom))}
 .status-strip{min-height:46px;padding:8px 0;font-size:.875rem}.status-strip .deadline-status{font-size:.875rem}
 .daily-summary{grid-template-columns:1fr 1fr;margin-bottom:22px;border-radius:9px}
 .daily-summary>div{padding:10px 15px}.daily-summary>div:nth-child(2){border-right:0}
 .daily-summary strong{font-size:1.28rem}.daily-summary span{font-size:.875rem}
 .daily-summary>button{grid-column:1/-1;padding:8px 15px;border-left:0;border-top:1px solid var(--edge);display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;min-height:42px;gap:3px 12px}
 .daily-summary>button strong{font-size:.875rem}
 .day-opening{gap:20px;margin-bottom:20px;grid-template-columns:1fr}
 .day-decisions{display:block}
 .guide-copy h1{font-size:1.55rem;line-height:1.65;margin:4px 0 6px}.guide-copy .eyebrow{font-size:.875rem}
 .guide-copy p{font-size:.9375rem;line-height:1.8}
 .daily-choices.illustrated-choices{gap:9px;margin-top:16px}
 .illustrated-choices .choice-label strong{font-size:1.06rem;line-height:1.65}
 .choice-label{padding-top:8px}.daily-choices.illustrated-choices small{font-size:.875rem;line-height:1.5;padding:1px 5px 10px}
 .day-opening .vitals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;border-top:1px solid var(--edge);margin:18px 0 0;padding:14px 0 0}
 .day-opening .vital-label{font-size:.875rem;gap:2px;line-height:1.65}.day-opening .vital-label strong{font-size:1.1rem}
 .day-visual .illustrated-day{display:flex;flex-direction:column}
 .day-visual .day-picture .today-illustration{height:auto;min-height:0;aspect-ratio:9/4}
 .day-visual .illustration-caption{border-left:0;border-top:1px solid var(--edge);padding:16px 18px}
 .tsumugi-caption{flex-wrap:nowrap}.tsumugi-caption>span{font-size:1.5rem}.tsumugi-caption small{font-size:.8125rem}
 .illustration-caption p{font-size:1.05rem;line-height:1.9;margin-top:6px}.illustration-mood{margin-top:8px}
 .scene-place{padding:12px 15px 32px}.scene-day{right:15px;bottom:12px}.scene-day strong{font-size:1.8rem}
 .day-notes{gap:16px;margin-bottom:20px}.home-layout,.home-detail,.home-aside{gap:18px}
 .story-shortcut{padding:18px;gap:14px}.story-shortcut strong{font-size:1.1rem}
 .story-shortcut-caption{font-size:.875rem}.shortcut-portrait{width:38px;height:51px;margin-left:-11px}
 .home-aside .finance{padding:22px}
 .page-heading{padding-bottom:18px;margin-bottom:22px}.page-heading h1{font-size:1.75rem}.page-heading p{font-size:1rem}
 .balance-label{position:static;margin-top:14px;display:inline-flex;align-items:center}
 .companion-grid{grid-template-columns:1fr;gap:24px}
 .person-cover{aspect-ratio:4/5;max-height:380px}
 .person-cover-portrait img{object-position:center 12%}
 .person-cover-name{padding:44px 24px 20px}.person-cover-name h2{font-size:2rem}
 .person-card-content{padding:22px;gap:17px}.person-card-content>p{font-size:1rem}
 .person-appointment>.button{font-size:1rem;min-height:48px}
 .client-grid{grid-template-columns:1fr;gap:22px}
 .illustrated-client>header{grid-template-columns:116px minmax(0,1fr)}
 .client-card-portrait{width:116px;min-height:175px}.client-card-intro{padding:16px}
 .client-card header h3{font-size:1.55rem}.client-card-intro p{font-size:.9375rem}
 .client-card-content{padding:20px}
 .story-section-heading h2{font-size:1.35rem}.story-section-heading>span{font-size:1.2rem}
 .cast-empty{grid-template-columns:1fr}.cast-empty>.today-illustration{height:auto;min-height:0;aspect-ratio:9/4}.cast-empty>div:last-child{padding:26px}
 .cast-empty h3{font-size:1.4rem}
 .story-memory-list .memory-with-person{grid-template-columns:52px minmax(0,1fr);gap:14px;padding:18px}
 .memory-person-portrait{width:52px}
 .chapter-track>span{font-size:.875rem;padding:8px 3px}
 .record-tabs button{font-size:.9375rem;padding:9px 12px;min-width:max-content}
 dialog{padding:22px;width:calc(100% - 24px);max-height:calc(100dvh - 24px);border-radius:13px}
 dialog.conversation-modal{padding:22px}
 .cast-conversation{grid-template-columns:minmax(0,1fr) 132px;margin:-22px -22px 22px}
 .cast-conversation-copy{padding:22px 14px 22px 22px}.cast-conversation-copy>.eyebrow{font-size:.875rem}
 .cast-speaker{font-size:1.5rem;margin-top:10px}.cast-speaker small{font-size:.875rem}
 .cast-conversation h2{font-size:1.28rem;line-height:1.8;margin-top:16px}
 .conversation-portrait{width:132px;min-height:232px}
 .conversation-portrait img{object-position:center top}
 .conversation-modal .event-body{font-size:1.06rem;line-height:2;margin-bottom:22px}
 .event-choice{padding:15px;gap:11px;border-radius:8px}.event-choice strong{font-size:1rem;line-height:1.8}
 .event-choice small{font-size:.875rem}.modal-footnote{font-size:.875rem}
 .conversation-reply{font-size:1.05rem;padding:15px 18px}
 .receipt-sheet{width:100%;max-height:92dvh;padding:14px 20px calc(22px + env(safe-area-inset-bottom));border-radius:16px 16px 0 0}
 .receipt-sheet h2{font-size:1.55rem}.settlement-total>strong{font-size:2.3rem}
 .receipt-conversation{grid-template-columns:44px minmax(0,1fr);gap:12px}.receipt-conversation .receipt-portrait{width:44px}
 .plan-card{padding:20px}.plan-card .estimate strong{font-size:1.8rem}
 .work-steps{gap:10px;flex-wrap:wrap}.work-steps li{font-size:.875rem}
 .work-steps b{width:24px;height:24px}.work-layout>aside{grid-template-columns:1fr}
 .shop-card-body{padding:18px}.shop-card h2{font-size:1.35rem}
 .routine-content{padding:18px}.routine-content h3,.investment h3{font-size:1.15rem}
 .route-grid{grid-template-columns:1fr}
 .route-card{display:flex;flex-direction:column;gap:12px;padding:20px}
 .route-card .route-illustration{width:calc(100% + 40px);height:auto;min-height:0;margin:-20px -20px 6px;aspect-ratio:9/4;border:0;border-bottom:1px solid var(--edge)}
 .route-steps,.story-offer{padding:22px}.story-intro h2{font-size:1.4rem}
 .route-steps h2,.story-offer h2{font-size:1.3rem}.offer-grid{grid-template-columns:1fr}
 .journal li h3{font-size:1.1rem}.journal li p{font-size:.9375rem}
 .toast{bottom:calc(92px + env(safe-area-inset-bottom));max-width:calc(100% - 32px)}
}
@media(max-width:380px){
 main,.screen-life{padding-left:14px;padding-right:14px}
 .header{padding-left:14px;padding-right:14px;gap:8px}.brand{gap:7px}.brand>span{font-size:1.07rem}.brand>.icon{width:22px;height:22px}
 .header-wallet{padding:8px}.header .nav-item{font-size:.875rem}
 .daily-choices.illustrated-choices{gap:7px}.illustrated-choices .choice-label strong{font-size:1rem}
 .daily-choices.illustrated-choices small{font-size:.875rem}
 .story-shortcut>.story-portrait-stack{display:none}
 .tsumugi-caption{flex-wrap:wrap}
 .cast-conversation{grid-template-columns:minmax(0,1fr) 110px}
 .conversation-portrait{width:110px;min-height:222px}
 .cast-conversation-copy{padding:20px 12px 20px 20px}.cast-conversation h2{font-size:1.22rem}
 .illustrated-client>header{grid-template-columns:102px minmax(0,1fr)}.client-card-portrait{width:102px}
 .client-card-intro{padding:14px}.client-card-actions{flex-direction:column;align-items:stretch}
 .rest-row{flex-wrap:wrap}.rest-row .button{white-space:normal;min-width:95px}
}
@media(prefers-reduced-motion:reduce){.button,.event-choice,.illustrated-choices>button{transition:none!important;transform:none!important}}
