:root{font-family:'Yu Gothic UI','Yu Gothic','Hiragino Kaku Gothic ProN',Meiryo,system-ui,sans-serif;color:#263e35;background:#fbfcfa;font-synthesis:none;font-size:14px;--green:#246b57;--line:#e6ebe5;--muted:#637569}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #b9954a;outline-offset:3px}input:focus,textarea:focus,select:focus{outline:2px solid #91b3a2;outline-offset:1px}button{color:inherit}a{color:var(--green)}h1,h2,h3,p{margin-top:0}h1,h2,h3{letter-spacing:-.045em}button{border:0;background:none}small,.fine{font-size:12px;color:var(--muted);line-height:1.8}.muted{color:var(--muted);line-height:1.9}.eyebrow{font-size:10px;letter-spacing:.14em;font-weight:600;color:#82948a}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:#254d3b;font-size:20px;font-weight:700;letter-spacing:-.04em;white-space:nowrap}.brand small{display:block;font-size:10px;font-weight:400;letter-spacing:0;margin-top:3px}.brand-mark{display:grid;place-items:center;background:var(--green);color:white;width:40px;height:43px;border-radius:12px;font-size:29px;font-weight:400}.primary{background:var(--green);color:white;border-radius:9px;padding:13px 19px;font-weight:500;min-height:46px;box-shadow:0 3px 6px #24533b0b}.primary:hover{background:#1b5544}.wide{width:100%}.quiet{border:1px solid var(--line);padding:9px 14px;background:white;border-radius:8px;font-size:12px;min-height:38px}.icon-button{font-size:26px;min-width:38px;min-height:38px;border-radius:8px}.icon-button:hover{background:#edf2ec}.text-button{font-size:12px;color:var(--green);padding:12px 0;text-align:left}.avatar{display:grid;place-items:center;background:color-mix(in srgb,var(--member) 13%,white);color:var(--member);border:1px solid color-mix(in srgb,var(--member) 20%,white);border-radius:50%;width:36px;height:36px;font-size:13px;font-weight:600;flex-shrink:0}.topbar{height:89px;padding:0 32px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:white}.top-actions{display:flex;align-items:center;gap:18px}.sync{font-size:11px;color:#839086}.sync:before{content:'';display:inline-block;width:6px;height:6px;background:#7aab8d;border-radius:50%;margin-right:7px}.sync.offline{color:#ad633c}.workspace{display:grid;grid-template-columns:224px minmax(400px,1fr) 294px;min-height:calc(100dvh - 89px)}.sidebar{border-right:1px solid var(--line);padding:32px 22px;background:#f6f8f2;display:flex;flex-direction:column}.family-label h2{font-size:20px;margin:12px 0 8px}.family-label p{font-size:11px;color:var(--muted);white-space:nowrap}.add-desktop{margin-top:13px;width:100%}.side-section{margin-top:38px}.side-section>.eyebrow{display:block;margin-bottom:14px}.member-filter{display:flex;align-items:center;gap:11px;text-align:left;width:100%;padding:12px;border-radius:8px;margin:3px 0;font-size:13px}.member-filter.active{background:#e7eee2;font-weight:600}.member-filter i,.event-meta i{width:8px;height:8px;border-radius:50%;flex-shrink:0}.member-filter>span:last-child{margin-left:auto;font-size:11px}.member-filter small{margin-left:auto}.member-filter .all-dot{margin-left:0;font-size:17px}.invite-side{margin:9px 12px;color:#829084}.side-note{margin-top:auto;padding-top:48px;color:#94a088;position:relative}.side-note>span{font-size:10px}.side-note p{font-size:17px;line-height:1.7;font-weight:500;letter-spacing:-.04em;margin-top:10px}.plant{font-size:78px;color:#b5c2a0;text-align:right;line-height:1.1}.sidebar-foot{display:flex;flex-direction:column;font-size:10px;color:#8c978b;border-top:1px solid #e3e8df;margin-top:20px;padding-top:20px}.calendar-area{padding:32px 30px;min-width:0}.calendar-title{display:flex;justify-content:space-between;align-items:center}.calendar-title h1{font-size:29px;font-weight:400;margin:9px 0 0;letter-spacing:-.05em}.calendar-title h1 strong{font-weight:600}.month-controls{display:flex;align-items:center;gap:5px}.month-controls .quiet{margin-right:7px}.calendar-toolbar{display:flex;justify-content:space-between;align-items:center;margin:30px 0 24px;gap:12px}.search-box{display:flex;align-items:center;gap:9px;max-width:230px;color:#8e9b92}.search-box span{font-size:25px}.search-box input{width:100%;background:transparent;border:0;padding:9px 4px;font-size:12px;min-width:0}.search-box input::placeholder{color:#9ba49d}.view-switch{background:#eff2ec;padding:4px;display:flex;border-radius:8px}.view-switch button{font-size:11px;padding:7px 15px;border-radius:6px;min-height:31px}.view-switch .active{background:white;box-shadow:0 1px 4px #34452b10}.calendar-grid{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:white}.weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center;font-size:11px;background:#f7f9f5;border-bottom:1px solid var(--line);padding:12px 0;color:#8b978c}.weekdays span:first-child{color:#b77a70}.weekdays span:last-child{color:#8099b0}.days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.day{border-right:1px solid #eef1ec;border-bottom:1px solid #eef1ec;min-height:105px;min-width:0;padding:8px 5px;text-align:left;display:flex;flex-direction:column;position:relative;border-radius:0;background:white}.day:nth-child(7n){border-right:0}.day:nth-last-child(-n+7){border-bottom:0}.day:hover{background:#f7faf4}.day.selected{background:#f0f5e9;box-shadow:inset 0 0 0 1.5px #a4b78d}.day-number{font-size:11px;display:grid;place-items:center;width:26px;height:26px;flex-shrink:0;margin-bottom:5px}.day:nth-child(7n+1) .day-number{color:#be7b74}.day:nth-child(7n) .day-number{color:#7b94ad}.day.today .day-number{background:var(--green);border-radius:50%;color:white}.day.outside .day-number{opacity:.35}.day-chips{display:flex;flex-direction:column;gap:3px;width:100%}.event-chip{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:color-mix(in srgb,var(--member) 11%,white);border-radius:3px;padding:3px 4px;color:var(--member);border-left:2px solid var(--member);width:100%;display:block}.day-chips small{font-size:9px;padding-left:4px}.mobile-dots,.mobile-members{display:none}.calendar-legend{display:flex;justify-content:space-between;font-size:9px;gap:8px;margin-top:16px;color:#96a091}.calendar-legend i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#a5b7a1;margin-right:5px}.agenda{background:white;border-left:1px solid var(--line);padding:36px 23px}.agenda-head{padding-bottom:25px;border-bottom:1px solid var(--line)}.agenda-head h2{font-size:21px;margin:13px 0 8px}.count{font-size:11px;color:var(--muted)}.agenda-events{padding-top:23px;display:flex;flex-direction:column;gap:13px}.event-card{display:flex;flex-direction:column;gap:10px;text-align:left;width:100%;padding:17px;background:#fff;border:1px solid var(--line);border-left:3px solid var(--member);border-radius:9px;transition:box-shadow .15s}.event-card:hover{box-shadow:0 4px 15px #27483212}.event-time{font-size:10px;color:var(--member);font-weight:500}.event-card strong{font-size:14px;font-weight:500;overflow-wrap:anywhere}.event-location{font-size:11px;color:#93a095}.event-meta{display:flex;align-items:center;gap:6px;font-size:10px;color:#7b8a80;margin-top:3px;flex-wrap:wrap}.event-meta i{background:var(--member);width:6px;height:6px}.event-meta small{font-size:9px;border:1px solid #e6eae5;border-radius:4px;padding:0 4px}.agenda-add{margin-top:18px;width:100%;border:1px dashed #cad8c9;border-radius:8px;color:#7c927b;font-size:11px;min-height:44px}.agenda-note{margin-top:46px;background:#f8f8f1;border-radius:12px;padding:25px 21px;color:#a1aa8f;line-height:1.8;font-size:13px}.agenda-note strong{color:#788b69;font-weight:500}.empty{text-align:center;padding:44px 10px;color:#94a18f}.empty>span{font-size:35px;color:#c5b67f}.empty h3{font-size:14px;font-weight:500;margin:18px 0 10px}.empty p{font-size:12px;line-height:1.9}.month-list{max-height:650px;overflow:auto;display:grid;gap:22px}.month-list h3{font-size:13px;font-weight:500}.month-list .event-card{margin-bottom:8px}.floating-add{display:none}.demo-banner{background:#f4edcf;color:#74643b;padding:8px 20px;font-size:11px;text-align:center;display:flex;justify-content:center;gap:20px;align-items:center}.demo-banner button{text-decoration:underline;font-size:11px;min-height:28px}.entry{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr;max-width:1600px;margin:auto}.entry-story{background:#eef3e8;padding:48px 12%;display:flex;flex-direction:column;justify-content:space-between;gap:60px}.entry-story h1{font-size:48px;font-weight:500;line-height:1.4;margin:22px 0}.entry-story p{line-height:2;color:#84917d;font-size:14px}.sample-card{background:#fffaf4;border:1px solid #dfe5d7;box-shadow:0 14px 35px #5262440b;display:flex;align-items:center;gap:16px;padding:23px;border-radius:13px;margin-top:36px;transform:rotate(-2deg)}.sample-dot{background:#c58d68;border-radius:50%;width:10px;height:10px}.sample-card strong{font-size:14px;font-weight:500}.sample-card small{display:block;margin-top:7px}.sample-check{margin-left:auto;color:#9bab8d;font-size:23px}.entry-panel{align-self:center;max-width:420px;width:100%;margin:0 auto;padding:48px 25px}.entry-panel h2{font-size:29px;font-weight:500;margin:17px 0 18px;line-height:1.5}.entry-panel .muted{font-size:13px;margin-bottom:28px}.steps{padding-left:22px;line-height:2.7;color:#6d806c;font-size:13px;margin:24px 0}.field{display:flex;flex-direction:column;gap:9px;margin-bottom:19px;font-size:12px;color:#627467}.field input,.field textarea,.field select{width:100%;border:1px solid #dce3d9;background:#fff;border-radius:7px;min-height:44px;padding:11px 12px;color:#344c3c;min-width:0}.field textarea{resize:vertical}.auth-links{display:flex;justify-content:space-between;margin-top:12px;gap:12px}.form-error{font-size:12px;color:#b95345;line-height:1.6}.onboarding{max-width:600px;margin:50px auto;padding:0 22px}.paper{border:1px solid var(--line);background:white;border-radius:16px;padding:32px;margin-top:35px}.paper h1{font-size:25px;margin:12px 0 24px}.loading{text-align:center;margin:25vh auto;color:var(--muted)}dialog{border:1px solid #e2e8dd;border-radius:18px;box-shadow:0 24px 90px #19382024;padding:28px;width:min(540px,calc(100% - 28px));max-height:calc(100dvh - 48px);color:#344b3c}dialog::backdrop{background:#263e3550;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;gap:14px}.dialog-head h2{font-size:22px;margin:0;overflow-wrap:anywhere}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-row[hidden]{display:none}.check-field{display:flex;align-items:center;gap:10px;font-size:12px;padding:8px 0;min-height:36px}.check-field input{accent-color:var(--green);width:17px;height:17px}.permissions{border:1px solid var(--line);border-radius:9px;padding:12px 16px;margin:20px 0}.permissions legend{font-size:12px;color:#798976;padding:0 6px}.permissions .fine{margin:8px 0 0}.dialog-actions{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:24px}.danger{color:#b4614d}.notes{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9}.detail-body{font-size:13px;line-height:1.8}.member-list{margin:25px 0}.member-list>div{display:flex;align-items:center;gap:13px;padding:13px 0;border-bottom:1px solid var(--line)}.member-list strong{font-size:13px;font-weight:500}.member-list small{margin-left:auto;font-size:10px}#toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;transition:.2s;background:#284c3f;color:white;padding:14px 22px;border-radius:10px;z-index:10000;font-size:13px;max-width:calc(100% - 32px);width:max-content;box-shadow:0 5px 25px #163e2920}#toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:1600px){.calendar-area{padding:40px 50px}.day{min-height:125px}.workspace{grid-template-columns:250px minmax(400px,1fr) 330px}}
@media(max-width:1150px){.workspace{grid-template-columns:190px minmax(360px,1fr)}.sidebar{grid-row:1/3;padding:28px 18px}.agenda{grid-column:2;border-left:0;border-top:1px solid var(--line);padding:25px 30px}.agenda-events{display:grid;grid-template-columns:repeat(2,1fr)}.agenda-head{display:flex;align-items:center;gap:16px;padding-bottom:15px}.agenda-head h2{margin:0;font-size:18px}.agenda-note{display:none}.calendar-area{padding:28px 24px}.day{min-height:90px}.calendar-legend{flex-direction:column}.topbar{padding:0 24px}.family-label p{white-space:normal}}
@media(max-width:700px){.topbar{height:76px;padding:0 18px}.brand{font-size:18px;gap:9px}.brand-mark{width:33px;height:36px;border-radius:10px;font-size:24px}.brand small{font-size:9px}.top-actions{gap:10px}.top-actions .quiet{font-size:11px;padding:8px 10px}.sync{display:none}.workspace{display:flex;flex-direction:column;min-height:calc(100dvh - 76px)}.sidebar{display:none}.calendar-area{padding:24px 16px 18px}.calendar-title h1{font-size:27px}.calendar-title .eyebrow{font-size:9px}.calendar-toolbar{margin:17px 0 10px}.search-box{max-width:55%}.mobile-members{display:flex;align-items:center;justify-content:space-between;margin:0 0 14px}.mobile-members select{font-size:11px;border:1px solid var(--line);border-radius:6px;padding:7px;background:white;color:#63806c;min-height:34px;max-width:65%}.mobile-members span{font-size:9px;color:#98a391}.calendar-grid{border-radius:10px}.weekdays{padding:10px 0;font-size:10px}.day{min-height:64px;padding:6px 2px;align-items:center}.day-number{margin:0 0 5px;width:25px;height:25px;font-size:12px}.day-chips{display:none}.mobile-dots{display:flex;gap:3px;margin:5px 0}.mobile-dots i{width:4px;height:4px;border-radius:50%}.calendar-legend{font-size:9px;gap:5px;margin-top:12px}.calendar-legend span:last-child{display:none}.agenda{padding:24px 20px 100px;border-top:6px solid #f1f4ed}.agenda-head{flex-wrap:wrap;gap:8px 14px}.agenda-head .eyebrow{width:100%}.agenda-head h2{font-size:21px}.agenda-head .count{margin-left:auto}.agenda-events{display:flex;padding-top:20px}.event-card{padding:17px 18px;gap:8px}.event-card strong{font-size:15px}.event-time{font-size:11px}.agenda-add{font-size:12px}.floating-add{display:block;position:fixed;bottom:calc(22px + env(safe-area-inset-bottom));right:22px;width:55px;height:55px;background:var(--green);color:white;border-radius:19px;font-size:30px;box-shadow:0 6px 20px #204f413b}.entry{display:flex;flex-direction:column}.entry-story{padding:25px 28px 28px;gap:35px}.entry-story h1{font-size:32px;line-height:1.4;margin:12px 0}.entry-story p{font-size:12px;margin-bottom:0}.entry-story>small,.sample-card{display:none}.entry-panel{padding:30px 26px 50px;max-width:480px}.entry-panel h2{font-size:25px}.entry-panel>.eyebrow{display:none}.entry-panel .muted{margin-bottom:22px}.demo-banner{font-size:10px;padding:5px 10px;gap:8px}.demo-banner button{font-size:10px;white-space:nowrap}.onboarding{margin:28px auto}.paper{padding:24px}.form-row{gap:10px}.field input,.field textarea,.field select{font-size:16px;padding:10px 9px}.search-box input{font-size:16px}dialog{padding:23px 20px;max-height:calc(100dvh - 24px)}#toast{bottom:90px;font-size:12px}.dialog-actions .primary{padding:12px 15px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Japanese typography and comfortable controls; retain the original sage palette. */
:root{line-height:1.6}
body:has(dialog[open]){overflow:hidden}
.weekdays span:first-child{color:#c32232;font-weight:700}
h1,h2,h3{letter-spacing:-.025em}
.brand small{font-size:11px}.brand-mark{flex-shrink:0}
.eyebrow,.sync,.family-label p,.sidebar-foot{color:var(--muted);font-size:12px}
.quiet,.icon-button,.avatar,.view-switch button{min-height:44px;min-width:44px}
.quiet,.text-button,.view-switch button{font-size:13px}
.text-button{min-height:44px}.avatar{width:44px;height:44px}
.calendar-title{gap:12px}.month-controls{flex-shrink:0}
.search-box{min-width:0;flex:1}.search-box input{min-height:44px;font-size:15px}
.search-box input::placeholder,.event-location,.event-meta,.calendar-legend{color:var(--muted)}
.weekdays{font-size:13px;color:#607264}
.weekdays span:first-child,.day:nth-child(7n+1) .day-number{color:#ab4d47}
.weekdays span:last-child,.day:nth-child(7n) .day-number{color:#466f96}
.day{min-height:112px}.day-number{font-size:14px;width:30px;height:30px}
.day.outside .day-number{opacity:1;color:#7d897f}.day.outside{background:#fafbf8}
.day.today .day-number{color:white}.day.selected{background:#edf4e5;box-shadow:inset 0 0 0 2px #73936a}
.event-chip{font-size:12px}.day-chips small{font-size:11px}
.event-card strong{font-size:16px}.event-time,.event-location,.event-meta{font-size:13px}
.event-meta small,.count{font-size:12px}.agenda-add{font-size:14px;color:#456447}
.agenda-head h2{font-size:20px}.empty{color:var(--muted)}.empty h3{font-size:16px}.empty p{font-size:14px}
.field{font-size:14px;min-width:0}.field input,.field textarea,.field select{font-size:16px;min-height:48px}
.form-row{grid-template-columns:repeat(2,minmax(0,1fr))}.check-field{min-height:44px;font-size:14px}
.check-field input{width:20px;height:20px;flex-shrink:0}.permissions legend,.fine{font-size:13px}
.entry-story p{color:#61725c;font-size:16px}.entry-panel .muted{font-size:14px}
.form-error{font-size:14px}.entry-panel{max-width:460px}.entry-story h1{font-size:clamp(30px,3.4vw,48px)}
.member-list small{font-size:12px}.member-list strong{font-size:15px}
.calendar-legend{font-size:12px}.month-list h3{font-size:16px}
.holiday-controls{margin:0 0 18px;padding:0;border:0;min-width:0}
.holiday-controls legend{font-size:13px;color:var(--muted);margin-bottom:6px;padding:0}
.holiday-options{display:flex;flex-wrap:wrap;gap:8px}
.holiday-options label{display:flex;align-items:center;gap:8px;padding:7px 12px;min-height:44px;background:#fff;border:1px solid #dae3d7;border-radius:8px;font-size:13px;cursor:pointer}
.holiday-options label:has(input:checked){background:#eaf2e4;border-color:#75976f;color:#244b35}
.holiday-options input{margin:0;width:17px;height:17px;accent-color:var(--green)}
.holiday-options label:focus-within{outline:2px solid #61855a;outline-offset:2px}
.holiday-warning{font-size:13px;padding:12px;border-radius:8px;background:#fff5dd;color:#795620}
.day-holidays{display:flex;flex-direction:column;width:100%;gap:3px;margin-bottom:3px}
.day-holidays:empty{display:none}
.holiday-chip{display:block;font-size:11px;line-height:1.6;border-radius:3px;padding:2px 3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.holiday-chip.jp,.holiday-card.jp{background:#fcf0ec;color:#9d453a}
.holiday-chip.kr,.holiday-card.kr{background:#edf2fc;color:#385f96}
.holiday-short{display:none}.holiday-full{white-space:nowrap}
.holiday-card{display:flex;flex-direction:column;gap:3px;padding:12px 14px;border-radius:8px;border-left:3px solid currentColor;margin-bottom:8px;line-height:1.6}
.holiday-card strong{font-size:15px;font-weight:600;overflow-wrap:anywhere}.holiday-country{font-size:12px}
.agenda-holidays:not(:empty){margin-top:20px}.holiday-info{font-size:12px;color:var(--muted);margin-top:12px}
.holiday-info summary{min-height:44px;cursor:pointer;display:list-item;padding:12px 0}
.holiday-info p{line-height:1.8;max-width:60em}.mobile-calendar-hint{display:none}
@media(max-width:1150px){.workspace{grid-template-columns:190px minmax(0,1fr)}.agenda-holidays{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.agenda-events{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
  .topbar{height:80px;padding:0 16px;gap:10px}.brand{font-size:18px;gap:8px}.brand small{font-size:10px}.brand-mark{width:32px;height:36px;font-size:25px}
  .top-actions{gap:6px}.top-actions .quiet{font-size:12px;padding:8px}.top-actions .avatar{width:44px}
  .calendar-area{padding:22px 16px}.calendar-title{align-items:flex-end;gap:8px}.calendar-title h1{font-size:25px;white-space:nowrap}.calendar-title .eyebrow{font-size:11px}
  .month-controls{gap:2px}.month-controls .quiet{margin-right:2px;padding:8px}.month-controls .icon-button{min-width:44px}
  .calendar-toolbar{margin:18px 0 12px}.search-box{max-width:none}.view-switch button{padding:7px 12px;font-size:13px}
  .mobile-members{gap:12px;margin-bottom:15px}.mobile-members select{font-size:14px;min-height:44px;max-width:70%;color:#3f6048;padding:8px}
  .mobile-members span{font-size:11px;color:var(--muted);overflow-wrap:anywhere}
  .holiday-controls{margin-bottom:16px}.holiday-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
  .holiday-options label{justify-content:center;padding:7px 4px;gap:5px;font-size:12px;white-space:nowrap}.holiday-options input{width:16px;height:16px;flex-shrink:0}
  .weekdays{font-size:13px;padding:10px 0}.day{min-height:82px;padding:5px 2px}.day-number{font-size:15px;width:31px;height:31px;margin-bottom:3px}
  .holiday-chip{font-size:11px;padding:1px 0;text-align:center}.holiday-short{display:inline}.holiday-full{display:none}
  .mobile-dots{gap:3px;flex-wrap:wrap;justify-content:center;margin:4px 0}.mobile-dots i{width:6px;height:6px}
  .mobile-calendar-hint{display:block;font-size:12px;color:var(--muted);line-height:1.8;margin:14px 0 0}
  .calendar-legend{font-size:11px;line-height:1.8}.calendar-legend span:last-child{display:inline}
  .agenda{padding:24px 20px calc(100px + env(safe-area-inset-bottom))}.agenda-head h2{font-size:21px}.agenda-holidays{grid-template-columns:1fr}
  .event-card{padding:17px}.event-card strong{font-size:16px}.event-time,.event-location,.event-meta{font-size:13px}.agenda-add{font-size:14px;min-height:48px}
  .month-list{max-height:none;overflow:visible}.floating-add{width:56px;height:56px;right:18px}
  .entry-story{padding:24px;gap:24px}.entry-story h1{font-size:30px;line-height:1.5}.entry-story p{font-size:14px;line-height:1.9}
  .entry-panel{padding:26px 24px 40px}.entry-panel h2{font-size:26px}.auth-links{flex-wrap:wrap;gap:0 14px}.auth-links .text-button{font-size:13px}
  dialog{padding:20px 18px;width:calc(100% - 20px);max-height:calc(100dvh - 20px);overscroll-behavior:contain}
  .dialog-head{margin-bottom:20px}.dialog-head h2{font-size:21px}
  .dialog-actions{position:sticky;bottom:-20px;background:white;padding:14px 0 max(14px,env(safe-area-inset-bottom));border-top:1px solid var(--line);z-index:1}
  .dialog-actions .primary{min-height:48px}.form-row{gap:12px}.permissions{padding:10px 12px}
  #toast{bottom:calc(90px + env(safe-area-inset-bottom));font-size:14px;line-height:1.7}
}
@media(max-width:370px){
  .topbar{padding:0 12px}.brand{font-size:16px}.topbar .brand small{font-size:9px}.topbar .brand-mark{display:none}
  .calendar-area{padding:20px 12px}.calendar-title h1{font-size:22px}.month-controls .icon-button{min-width:44px}
  .holiday-options{grid-template-columns:repeat(2,minmax(0,1fr))}.holiday-options label{font-size:13px}
  .view-switch button{padding:7px 10px}.calendar-toolbar{gap:8px}.entry-story h1{font-size:26px}
  .form-row{grid-template-columns:1fr}.field{margin-bottom:16px}.permissions{padding:10px}
}
/* Sundays and visible public holidays share an unmistakable date color. */
.weekdays span:first-child,
.day:nth-child(7n+1) .day-number,
.day.has-holiday .day-number{color:#c32232;font-weight:700}
.day.today:nth-child(7n+1) .day-number,
.day.today.has-holiday .day-number{color:#c32232;background:#ffebe9;box-shadow:inset 0 0 0 1.5px #c32232}
.holiday-chip.jp,.holiday-card.jp{color:#b1212e;background:#fff0f1}
