:root{color-scheme:light;--surface:#fff;--raised:#f1f4f7;--nav-surface:#ffffffed;--toast-bg:#14243a;--toast-fg:#fff;--accent:#6955b7;--accent-ink:#6955b7;--accent-soft:#6955b714;--on-accent:#fff;--navy:#14243a;--muted:#66758a;--line:#e5e9ef;--bg:#f6f7f9;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP",sans-serif;color:var(--navy);font-synthesis:none;background:var(--bg);font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{opacity:.5;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--accent-ink);outline-offset:3px}button{border:0;background:none}a{color:var(--accent-ink);text-underline-offset:3px}svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}.app{max-width:880px;margin:auto;padding:0 30px 102px}.header{height:100px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:12px;color:var(--navy);text-decoration:none;font-size:20px;font-weight:760;letter-spacing:-.5px}.brand small{display:block;font-size:10px;letter-spacing:.06em;color:var(--muted);font-weight:500;margin-top:6px}.brand-icon{position:relative;background:var(--navy);border-radius:14px;width:43px;height:43px;color:white;display:grid;place-items:center;letter-spacing:-2px;font-size:20px}.brand-icon span{position:absolute;right:6px;bottom:6px;width:6px;height:6px;border-radius:50%;background:var(--accent)}.icon-button{width:40px;height:40px;border-radius:50%;font-size:24px;display:inline-grid;place-items:center;background:var(--surface);border:1px solid var(--line)}h1{font-size:25px;letter-spacing:-.6px;margin:0 0 8px}h2{font-size:18px;letter-spacing:-.35px;margin:0}h3{font-size:15px;margin:0 0 10px}p{line-height:1.8;margin:8px 0}.muted,.caption{color:var(--muted)}.caption{font-size:12px;line-height:1.7}.eyebrow{font-size:10px;font-weight:700;letter-spacing:.12em;color:var(--muted);margin:0 0 7px}.page-head{margin:8px 0 24px}.row{display:flex;align-items:center;gap:10px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.scope{display:flex;border-radius:11px;background:var(--raised);padding:4px;gap:3px}.scope button{padding:9px 17px;border-radius:8px;font-size:12px;font-weight:650;flex:1;white-space:nowrap}.scope button.active{background:var(--surface);color:var(--accent-ink);box-shadow:0 1px 4px #1021330c}.topline{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}.status{display:flex;gap:6px;align-items:center;font-size:11px;color:var(--muted)}.status i{width:6px;height:6px;border-radius:50%;background:var(--accent);flex-shrink:0}.section-head{display:flex;justify-content:space-between;align-items:center;margin:22px 0 12px}.section-head .count{font-size:11px;color:var(--muted)}.deadlines{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.deadline-card{padding:15px 16px;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:15px;min-height:127px;position:relative}.deadline-card:hover,.event-card:hover{border-color:var(--accent)}.deadline-card .tag{margin-bottom:9px}.deadline-card strong{display:block;font-size:13px;line-height:1.6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.deadline-card time{display:block;color:var(--muted);font-size:11px;margin-top:8px}.tag{font-size:10px;line-height:1.6;border-radius:5px;padding:3px 6px;display:inline-flex;align-items:center;gap:4px;background:var(--accent-soft);color:var(--accent-ink);font-weight:650;white-space:nowrap}.tag.deadline,.tag.payment{background:#fff1e8;color:#994711}.tag.result{background:#f1edfb;color:#7751a3}.tag.start{background:#edf3ff;color:#42649c}.tag.status-tag{background:#f0f2f5;color:#516175}.calendar-panel{background:var(--surface);border:1px solid var(--line);border-radius:20px;margin-top:22px;padding:24px 22px 14px}.monthbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.month-title{font-size:29px;font-weight:750;letter-spacing:-1px}.month-title span{font-size:13px;font-weight:500;color:var(--muted);margin-left:10px;letter-spacing:0}.monthbar .icon-button{border:0;font-size:26px}.subtle{border:1px solid var(--line);background:var(--surface);border-radius:9px;font-size:12px;padding:8px 12px}.filters{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:20px}.filter{padding:6px 10px;border:1px solid var(--line);border-radius:7px;font-size:11px;color:#738093;background:#f9fafb}.filter.active{color:var(--navy);border-color:#c6d0dc;background:var(--raised)}.filter.active::before{content:'✓';margin-right:4px;color:var(--accent-ink)}.weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.weekdays{font-size:10px;color:var(--muted);text-align:center;margin-bottom:8px}.weekdays .weekday-0{color:#c77071}.weekdays .weekday-6{color:#6b87b4}.day{min-height:92px;padding:6px 3px;border-top:1px solid #eef1f5;text-align:left;display:flex;flex-direction:column;gap:3px;min-width:0;border-radius:0}.day-number{display:grid;place-items:center;width:25px;height:25px;margin:0 auto 3px;font-size:12px;font-weight:600;border-radius:50%}.day.today .day-number{color:var(--accent-ink);box-shadow:inset 0 0 0 1px var(--accent)}.day.selected{background:var(--accent-soft);border-radius:9px}.day.selected .day-number{color:var(--on-accent);background:var(--accent);box-shadow:none}.day.other{opacity:.34}.cal-event{display:block;width:100%;font-size:9px;line-height:1.7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:3px;padding:1px 3px;color:var(--accent-ink);background:var(--accent-soft);font-weight:550}.cal-event.deadline,.cal-event.payment{color:#984812;background:#fff1e8}.cal-event.result{color:#745198;background:#f2edf9}.cal-event.start{color:#42649c;background:#edf3ff}.more{color:var(--muted);font-size:9px;padding-left:3px}.calendar-note{text-align:right;font-size:10px;color:var(--muted);padding-top:12px}.agenda-head{margin-top:27px}.agenda-head h2{font-size:17px}.agenda-head small{font-size:12px;color:var(--muted);font-weight:400}.event-list{display:grid;gap:10px}.event-card{border:1px solid var(--line);border-radius:15px;padding:17px;background:var(--surface);display:flex;gap:15px;align-items:flex-start;cursor:pointer;text-align:left;width:100%}.event-card .event-time{font-size:14px;font-weight:700;min-width:46px;padding-top:3px;color:var(--navy)}.event-card .event-time small{display:block;font-size:10px;color:var(--muted);font-weight:400;margin-top:5px}.event-content{flex:1;min-width:0}.event-card h3{font-size:14px;line-height:1.65;margin:6px 0}.event-card .caption{overflow-wrap:anywhere}.arrow{color:#9ba6b5;font-size:22px;margin:auto 0}.empty{border:1px dashed #d5dce5;border-radius:15px;padding:28px 20px;text-align:center;color:var(--muted);font-size:13px;line-height:1.8}.empty svg{display:block;margin:0 auto 10px;width:30px;height:30px;color:#9eaabb}.search{background:var(--surface);border:1px solid var(--line);padding:11px 13px;border-radius:12px;display:flex;align-items:center;gap:8px;margin:18px 0}.search svg{color:#8692a3;width:18px}.search input{border:0;outline:none;min-width:0;flex:1;background:none;color:var(--navy);font-size:12px}.navigation{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:center;gap:0;border-top:1px solid var(--line);padding:9px 15px calc(9px + env(safe-area-inset-bottom));background:var(--nav-surface);backdrop-filter:blur(20px);z-index:10}.navigation button{min-width:0;width:150px;display:flex;flex-direction:column;align-items:center;gap:5px;color:#8090a2;font-size:10px;padding:5px}.navigation button svg{width:22px;height:22px}.navigation button.active{color:var(--accent-ink);font-weight:650}.navigation button.active svg{background:var(--accent-soft);box-shadow:0 0 0 7px var(--accent-soft);border-radius:5px}footer{margin-top:32px;text-align:center;font-size:10px;color:#7d8b9d;line-height:1.9}footer span{font-size:9px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:17px;padding:21px;margin-bottom:14px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 0;border-top:1px solid var(--line)}.setting-row:first-of-type{border:0}.setting-row strong{font-size:13px;font-weight:600}.setting-row small{display:block;color:var(--muted);font-size:11px;margin-top:5px;line-height:1.6}.switch{appearance:none;width:43px;height:25px;border-radius:20px;background:#dbe1e8;position:relative;cursor:pointer;flex-shrink:0;margin:0}.switch::after{content:'';position:absolute;width:19px;height:19px;top:3px;left:3px;border-radius:50%;background:var(--surface);box-shadow:0 1px 4px #0002}.switch:checked{background:var(--accent)}.switch:checked::after{left:21px}.primary,.secondary{display:inline-flex;justify-content:center;align-items:center;gap:7px;min-height:43px;border-radius:10px;padding:10px 17px;font-size:13px;font-weight:650;text-decoration:none}.primary{background:var(--accent);color:var(--on-accent)}.secondary{background:var(--raised);color:var(--navy);border:1px solid var(--line)}.wide{width:100%}.text-button{color:var(--accent-ink);font-size:12px;padding:5px 0}.notice{background:#f0f3f7;border-radius:10px;padding:12px 14px;color:#58697d;font-size:11px;line-height:1.8;margin:13px 0}.warning{background:#fff3e9;color:#945228}.selection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:15px 0 0}.choice{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:11px;padding:12px;text-align:left;font-size:12px}.choice.selected{border-color:var(--accent);background:var(--accent-soft)}.avatar{width:29px;height:29px;border-radius:50%;background:#eef1f6;display:grid;place-items:center;font-size:11px;color:#60738b;flex-shrink:0}.choice.selected .avatar{background:var(--accent);color:var(--on-accent)}.choice .check{margin-left:auto;color:var(--accent-ink)}.colors{display:flex;gap:12px;flex-wrap:wrap;padding:10px 0}.swatch{width:30px;height:30px;border-radius:50%;border:4px solid white;box-shadow:0 0 0 1px #d8dfe8}.swatch.active{box-shadow:0 0 0 2px var(--navy)}input[type=color]{width:42px;height:32px;border:0;background:none;padding:0}input[type=email],input[type=time],select{background:var(--surface);border:1px solid #d6dee7;border-radius:8px;padding:9px;color:var(--navy);max-width:100%}input[type=email]{width:100%;margin:9px 0 12px;font-size:16px}.form-label{font-size:12px;display:block;margin-top:12px}.compact-select{font-size:12px;max-width:150px}dialog{padding:0;border:1px solid var(--line);border-radius:20px;width:min(620px,calc(100% - 26px));max-height:92dvh;color:var(--navy);background:var(--surface);box-shadow:0 24px 90px #10203030}dialog::backdrop{background:#10203370;backdrop-filter:blur(4px)}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:13px 22px;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted);position:sticky;top:0;background:var(--surface);z-index:2}.modal-head .icon-button{border:0;background:var(--raised);width:31px;height:31px;font-size:24px}#detail-body,#message-body{padding:24px}.detail-title{font-size:23px;line-height:1.5;margin:10px 0 15px}.detail-date{font-size:14px;font-weight:650;color:var(--accent-ink)}.show-tabs{display:flex;gap:6px;background:var(--raised);padding:4px;border-radius:10px;margin:20px 0}.show-tabs button{flex:1;padding:10px 7px;font-size:12px;border-radius:7px}.show-tabs button.active{background:var(--surface);color:var(--accent-ink);box-shadow:0 1px 4px #1231}.detail-section{border-top:1px solid var(--line);padding-top:22px;margin-top:24px}.detail-section h3{margin-bottom:15px}.facts{display:grid;grid-template-columns:65px 1fr;gap:13px 12px;font-size:12px;line-height:1.8;margin:20px 0}.facts dt{color:var(--muted)}.facts dd{margin:0;white-space:pre-line}.timeline{list-style:none;padding:0;margin:0}.timeline li{padding:0 0 16px 19px;border-left:1px solid #dde5eb;position:relative;font-size:12px;line-height:1.7}.timeline li::before{content:'';width:7px;height:7px;background:var(--accent);border:3px solid var(--surface);border-radius:50%;position:absolute;left:-7px;top:3px}.timeline li:last-child{padding-bottom:0}.phase{background:var(--raised);border:1px solid var(--line);border-radius:13px;padding:16px;margin:10px 0}.phase h4{font-size:13px;margin:0 0 11px}.phase p{font-size:12px;white-space:pre-line}.phase .setting-row{padding-bottom:0;margin-top:12px}.phase select{font-size:12px}.detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.detail-actions button{flex:1;white-space:nowrap}.source-link{display:block;padding:13px 0;border-top:1px solid var(--line);font-size:12px;text-decoration:none}.source-link span{float:right}.goods-line{font-size:12px;white-space:pre-line;margin-bottom:12px}.loading{padding:80px 10px;text-align:center;color:var(--muted)}#toast{position:fixed;bottom:100px;left:50%;transform:translateX(-50%) translateY(10px);background:var(--toast-bg);color:var(--toast-fg);padding:12px 19px;border-radius:12px;font-size:12px;z-index:100;opacity:0;pointer-events:none;transition:opacity .18s,transform .18s;max-width:90%;text-align:center}#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.saved-summary{font-size:12px;color:var(--muted);margin:10px 0 20px}.danger{color:#ad424b}.preview-banner{font-size:11px;padding:9px 12px;border-radius:8px;background:#fff5df;color:#8a641d;margin-bottom:14px}.offline{font-size:11px;color:#9b5e21}button:hover{filter:brightness(.985)}@media(min-width:1100px){.app{max-width:920px}.header{height:114px}.day{min-height:100px}.cal-event{font-size:10px}.calendar-panel{padding:26px 28px 15px}}@media(max-width:600px){.app{padding:0 17px 96px}.header{height:83px}.brand{font-size:18px}.brand-icon{width:38px;height:38px;border-radius:12px}.brand small{font-size:9px}.topline{margin-bottom:18px}.scope button{padding:9px 12px;font-size:11px}.status{font-size:9px}.section-head{margin:19px 0 11px}h2{font-size:16px}.deadlines{display:flex;overflow-x:auto;gap:9px;margin-right:-17px;padding-right:17px;scrollbar-width:none}.deadline-card{flex:0 0 177px;min-height:120px;padding:13px}.deadline-card strong{font-size:12px}.calendar-panel{padding:18px 9px 11px;border-radius:17px;margin-top:20px}.monthbar{padding:0 5px;margin-bottom:15px}.month-title{font-size:26px}.month-title span{font-size:12px}.filters{gap:5px;padding:0 4px;margin-bottom:16px}.filter{padding:6px 6px;font-size:9px}.day{min-height:82px;padding:4px 2px;gap:2px}.day-number{width:24px;height:24px;font-size:12px}.cal-event{font-size:9px;padding:1px 2px}.calendar-note{font-size:9px;padding-right:5px}.event-card{padding:14px 12px;gap:10px}.event-card h3{font-size:13px}.event-card .event-time{font-size:13px;min-width:40px}.caption{font-size:11px}.search{margin:16px 0}.panel{padding:18px 16px}.selection-grid{gap:7px}.choice{font-size:11px;padding:11px 9px}.detail-title{font-size:21px}#detail-body,#message-body{padding:20px 18px}.modal-head{padding:11px 17px}.navigation button{width:25%;font-size:9px}.setting-row{gap:10px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.app-version{font-size:10px;color:var(--muted);margin-left:auto;margin-right:12px;white-space:nowrap}

.appearance-tag{background:#fff4dc;color:#795311}.appearance-check{margin-top:20px}.appearance-check summary{font-weight:700;cursor:pointer;padding:6px 0}.appearance-check .event-list{margin-top:12px}

.source-row{padding:12px 0;border-bottom:1px solid var(--line,#e9edf0)}.source-row:last-child{border-bottom:0}.source-row .source-link{margin:0 0 4px}

.calendar-grid{touch-action:pan-y pinch-zoom;user-select:none;-webkit-user-select:none}

/* Personal agenda */
.view-toggle{margin:4px 0 20px;width:fit-content}.today-card{border:1px solid var(--accent);background:var(--accent-soft)}.today-card h3,.task-card h3{margin:10px 0;overflow-wrap:anywhere}.seat-number{font-weight:700;white-space:pre-wrap;overflow-wrap:anywhere}.personal-notes textarea{display:block;width:100%;box-sizing:border-box;padding:12px;border:1px solid #d8dee5;border-radius:12px;background:var(--surface);color:var(--navy);font:inherit;resize:vertical}.task-empty{padding:12px 0}.tasks{margin-bottom:24px}.agenda-group{margin-top:24px}.task-card .row>*{min-height:44px}.today-card .row>*{min-height:44px}.today-card p{overflow-wrap:anywhere}

/* Calendar-first navigation */
[hidden]{display:none!important}.home-summary{display:flex;gap:8px;margin:0 0 14px}.summary-button{flex:1;min-width:0;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 12px;min-height:52px}.summary-button strong{font-size:12px;display:block}.summary-button span{display:block;font-size:10px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:4px}.quick-favorites{display:flex;gap:6px;overflow-x:auto;padding:4px 0 6px}.quick-favorites button{flex-shrink:0;min-height:36px}.detail-tabs{margin:18px 0;position:sticky;top:57px;z-index:1}.detail-tabs button{min-height:44px}.undo-bar{position:fixed;z-index:110;left:50%;transform:translateX(-50%);bottom:calc(85px + env(safe-area-inset-bottom));display:flex;align-items:center;gap:16px;max-width:94vw;width:max-content;border-radius:12px;padding:8px 14px;background:var(--toast-bg);color:var(--toast-fg);box-shadow:0 5px 20px #0003;font-size:12px}.undo-bar button{color:var(--toast-fg);text-decoration:underline;font-weight:700;min-height:44px;white-space:nowrap}dialog .undo-bar{position:sticky;left:auto;transform:none;bottom:8px;margin:8px auto;max-width:95%;z-index:4}#jump-month{width:100%;padding:12px;margin:12px 0;font:inherit;border:1px solid var(--line);border-radius:10px}.month-title{min-height:44px;text-align:left}.view-toggle{margin-bottom:12px}.topline{margin-bottom:10px}

/* Iori DD mark: preserve the approved image proportions. */
img.brand-icon{display:block;object-fit:contain;background:var(--surface);flex-shrink:0;border:1px solid var(--line)}

.change-value{white-space:pre-wrap;overflow-wrap:anywhere}.change-history article{border-left:3px solid var(--accent)}

/* Recurring birthdays share existing calendar/card layout. */
.tag.birthday,.cal-event.birthday{background:#f9e8f1;color:#8b365f}.birthday-label{display:block;margin-top:4px;font-size:10px;font-weight:400;color:var(--muted)}.filters{flex-wrap:wrap}
/* Home reuses the existing accent, type and card system. */
.navigation button{flex:1;max-width:150px;min-height:49px;width:20%}
.home-hero{border:1px solid var(--line);border-radius:20px;padding:28px 28px 0;background:var(--surface);overflow:hidden}
.home-dateline{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:11px}.home-dateline>span{color:var(--accent-ink);font-weight:750;letter-spacing:2px}
.home-hero h1{font-size:32px;letter-spacing:-1px;line-height:1.5;margin:19px 0 7px}.home-hero>p{font-size:13px;color:var(--muted);margin:0 0 25px}
.home-numbers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0 -28px;background:var(--accent-soft);border-top:1px solid var(--line)}.home-numbers button{padding:17px 14px;text-align:center;min-width:0}.home-numbers button+button{border-left:1px solid var(--line)}.home-numbers span{display:block;font-size:10px;color:var(--muted)}.home-numbers strong{display:block;font-size:27px;margin-top:4px;color:var(--accent-ink)}.home-numbers small{font-size:11px;font-weight:500;margin-left:5px}.home-numbers .home-my{font-size:15px;line-height:40px}
.home-section{margin-top:28px}.home-section>.section-head{margin-bottom:14px;gap:12px}.home-section>.section-head h2{margin:0}.home-topics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.topic-link{display:block;color:inherit;text-decoration:none;min-width:0}.home-topics>.topic-link{border:1px solid var(--line);border-radius:14px;background:var(--surface);padding:19px}.topic-meta{display:flex;justify-content:space-between;flex-wrap:wrap;gap:5px 12px;color:var(--muted);font-size:10px;margin-bottom:9px}.topic-meta time{white-space:nowrap}.topic-link strong{display:block;font-size:14px;line-height:1.7;overflow-wrap:anywhere}.topic-read{display:block;color:var(--accent-ink);font-size:10px;margin-top:12px}.home-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.group-topic-card{background:var(--surface);border:1px solid var(--line);border-radius:17px;min-width:0;overflow:hidden;padding:21px}.group-topic-heading{display:flex;align-items:flex-start;gap:11px;padding-bottom:16px}.group-topic-heading h3{font-size:16px;line-height:1.5;margin:0;overflow-wrap:anywhere}.group-topic-index{color:var(--accent-ink);font-size:11px;border:1px solid var(--line);border-radius:7px;padding:4px 6px;flex-shrink:0}.group-topic-card .topic-link{border-top:1px solid var(--line);padding:15px 0}.group-topic-card .topic-link strong{font-size:13px}.group-topic-card .topic-meta{font-size:10px}.group-next{width:100%;text-align:left;padding:14px;border-radius:10px;background:var(--accent-soft);margin-top:5px}.group-next>span:first-child{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:10px;color:var(--muted)}.group-next strong{display:block;margin-top:7px;font-size:12px;line-height:1.7;overflow-wrap:anywhere}.group-official{display:block;text-align:right;font-size:10px;color:var(--muted);text-decoration:none;padding-top:15px}.home-birthdays{display:grid;gap:10px}.home-calendar-link{margin-top:25px}.home-status{margin:0 0 12px}
@media(max-width:600px){.home-hero{padding:21px 18px 0;border-radius:17px}.home-hero h1{font-size:26px;letter-spacing:-.7px;margin-top:19px}.home-hero>p{font-size:11px;margin-bottom:22px}.home-numbers{margin:0 -18px}.home-numbers button{padding:14px 5px}.home-numbers span{font-size:9px}.home-numbers strong{font-size:24px}.home-numbers .home-my{font-size:13px;line-height:36px}.home-topics,.home-groups{grid-template-columns:minmax(0,1fr);gap:10px}.home-topics>.topic-link{padding:17px}.group-topic-card{padding:19px 17px}.home-section{margin-top:27px}.navigation{padding-left:8px;padding-right:8px}.navigation button{width:20%;font-size:9px}.home-dateline{font-size:10px}}

.change-history>summary{cursor:pointer;font-weight:700;font-size:1.05rem}.change-history[open]>summary{margin-bottom:1rem}

.session-picker{margin:1rem 0}.session-picker summary{padding:14px;border:1px solid var(--line,#dfe5eb);border-radius:12px;cursor:pointer;font-weight:700}.session-options{display:grid;gap:4px;padding:8px 0}.session-options button{width:100%;text-align:left;white-space:normal;padding:14px;border-radius:10px}.session-options .active{background:var(--accent);color:var(--on-accent)}.session-record{border-bottom:1px solid var(--line,#dfe5eb)}.record-toggle{display:grid;grid-template-columns:1fr auto;gap:6px;width:100%;padding:16px 4px;text-align:left;white-space:normal}.record-toggle small{grid-column:1;opacity:.8}.record-toggle>span:last-child{grid-column:2;grid-row:1/3;align-self:center}.session-record-content{padding:0 4px 16px}.session-record-content[hidden]{display:none}

.plan-control{display:block}.plan-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:10px}.plan-options button{padding:12px 4px;white-space:nowrap;font-size:14px}.plan-suggestion{margin-top:12px;font-size:13px;display:flex;flex-wrap:wrap;align-items:center;gap:8px}

/* Mobile audit: separate moved sections and keep long headings readable. */
.deadlines{margin-bottom:20px;scroll-snap-type:x proximity}
.deadline-card{scroll-snap-align:start}
.livepocket-notice>.row{flex-wrap:wrap;gap:4px 12px}
.livepocket-notice>.row h3{margin-bottom:0}
.source-details{margin:16px 0}
.source-details>summary{min-height:44px;padding:12px 0;cursor:pointer;font-weight:700}
.source-details>.panel{margin:8px 0;padding:12px}
.source-details .source-row{overflow-wrap:anywhere}
@media(max-width:600px){.deadlines .deadline-card{flex:0 0 86%;min-width:0;max-width:86%;white-space:normal}.deadline-card strong{overflow-wrap:anywhere}.livepocket-notice>.row>.caption{white-space:nowrap}}

.deadline-card strong{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.5}

.source-summary p{margin:0 0 8px}.source-summary button{min-height:44px;padding:10px 0}

.home-invitation{display:inline-flex;flex-direction:column;align-items:flex-start;gap:7px;color:inherit;text-decoration:none;overflow-wrap:anywhere;max-width:100%;padding:4px 0}.home-invitation-link{font-size:14px;letter-spacing:0;font-weight:600;color:var(--accent-ink);text-decoration:underline;text-underline-offset:4px}.home-invitation:hover .home-invitation-link{text-decoration-thickness:2px}.home-invitation:focus-visible{outline:2px solid var(--accent-ink);outline-offset:5px;border-radius:4px}.home-fold>summary{cursor:pointer;display:flex;align-items:center;gap:12px;min-height:56px;padding:12px 0;list-style:none}.home-fold>summary::-webkit-details-marker{display:none}.home-fold>summary::before{content:'▸';color:var(--accent-ink);flex:none}.home-fold[open]>summary::before{content:'▾'}.home-fold>summary h2{margin:0;font-size:1.1rem}.home-fold-body{padding:8px 0 20px}.home-order{padding:0;margin:8px 0;list-style:none}.home-order li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line,#e2e7ee)}.home-order li>span{min-width:0;overflow-wrap:anywhere}.home-order button{min-width:44px;min-height:44px}.home-order button:disabled{opacity:.35}.setting-row input[type=checkbox]{width:22px;height:22px;accent-color:var(--accent)}.home-fold>summary:focus-visible,.home-invitation:focus-visible{outline:2px solid var(--accent-ink);outline-offset:4px}
.home-section.home-fold{margin-top:12px;border:1px solid var(--line,#dfe5ec);border-radius:14px;background:var(--surface,#fff)}
.home-fold>summary{padding:16px;min-height:56px}.home-fold-body{padding:0 16px 18px}

/* Light appearance remains independent of the device color scheme. */
body{background:var(--bg)}
input,textarea,select{color:var(--navy)}
#jump-month{background:var(--surface);color:var(--navy)}
img.brand-icon{background:#fff}

/* Four equal-width text switches, retaining the 32px height. */
.calendar-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;gap:0;margin:0 0 8px;width:100%;max-width:100%;position:relative}.calendar-controls::after{content:"";position:absolute;left:50%;top:0;bottom:0;width:1px;background:var(--line);pointer-events:none}.calendar-controls .scope{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));min-width:0;gap:0;padding:0;background:transparent;border-radius:0}.calendar-controls .view-toggle{margin:0;width:auto}.calendar-controls .calendar-scope{border:0;padding:0}.calendar-controls .scope button{min-width:0;min-height:32px;padding:4px 0;border-radius:0;font-size:12px;font-weight:500;line-height:22px;color:var(--muted);border-bottom:2px solid transparent;background:transparent;box-shadow:none}.calendar-controls .scope button.active{color:var(--accent-ink);font-weight:650;background:transparent;box-shadow:none;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:7px}

.navigation button[data-page="settings"]{position:relative}.navigation button.has-update::after{content:"";position:absolute;top:1px;left:calc(50% + 8px);width:8px;height:8px;border-radius:50%;background:#d44864;border:2px solid var(--surface);box-sizing:content-box}#app-update-badge[hidden]{display:none}

.metric-periods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.metric-periods .panel{padding:12px}.metric-periods dl{font-size:12px}.metric-periods dd{margin:4px 0 12px;font-size:20px;font-weight:700}.metrics-table{width:100%;border-collapse:collapse;margin:16px 0}.metrics-table td,.metrics-table th{padding:8px;text-align:right;border-bottom:1px solid var(--line)}.metrics-table td:first-child,.metrics-table th:first-child{text-align:left}.metrics-email{overflow-wrap:anywhere;min-width:0}#metrics-content>button{margin-top:18px}

.admin-table-scroll{overflow:auto;max-height:420px}.admin-table-scroll td{min-width:95px;max-width:260px;overflow-wrap:anywhere;white-space:normal}.admin-table-scroll th{white-space:nowrap}#metrics-content .form-label input{display:block;width:100%;padding:10px;border:1px solid var(--line);border-radius:8px}

/* Only the private management screen fills the viewport. */
#message:has(#metrics-content){position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100vh;height:100dvh;max-height:none;border:0;border-radius:0;box-shadow:none;overscroll-behavior:contain}
#message:has(#metrics-content) .modal-head{padding-top:calc(13px + env(safe-area-inset-top));padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}
#message:has(#metrics-content) #message-body{width:100%;max-width:1100px;margin:0 auto;padding:24px max(20px,env(safe-area-inset-right)) calc(32px + env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left))}

.admin-screen[hidden],.admin-back[hidden]{display:none!important}.admin-hub-head{display:flex;justify-content:space-between;align-items:center;font-size:18px;font-weight:700}.admin-hub-title{font-size:28px;margin:14px 0 4px}.admin-today{display:flex;align-items:center;justify-content:space-between;gap:8px;background:var(--accent-soft);padding:20px 14px;border-radius:14px;margin:25px 0;font-size:12px}.admin-today>strong{color:var(--accent-ink)}.admin-today b{font-size:24px}.admin-notice-preview{padding:12px 0 26px}.admin-notice-preview p{font-size:19px;font-weight:700;margin:18px 0 24px}.admin-menu{border-top:1px solid var(--line);padding-top:20px;margin-top:20px}.admin-menu h3{color:var(--accent-ink);font-size:15px;margin:0}.admin-menu-row{width:100%;display:flex;align-items:center;gap:12px;text-align:left;padding:21px 0;border-bottom:1px solid var(--line)}.admin-menu-row>span:first-child{flex:1}.admin-menu-row strong{font-size:17px}.admin-menu-row small{display:block;color:var(--muted);font-size:12px;margin-top:6px}.admin-menu-row>span:last-child{font-size:26px;color:var(--muted)}.admin-warning{background:#fff0ce;color:#865400;border-radius:14px;padding:4px 8px;font-size:11px;white-space:nowrap}.admin-bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:5;background:var(--surface);border-top:1px solid var(--line);display:flex;padding:0 max(16px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(16px,env(safe-area-inset-left))}.admin-bottom-nav button{flex:1;padding:18px 4px;color:var(--muted);border-top:3px solid transparent;font-size:13px}.admin-bottom-nav button.active{color:var(--accent-ink);border-color:var(--accent);font-weight:700}#message:has(#metrics-content):has(.admin-bottom-nav) #message-body{max-width:820px;padding-bottom:calc(110px + env(safe-area-inset-bottom))}.admin-screen-title{font-size:24px;margin:16px 0 24px}.admin-back{margin-bottom:8px}.admin-period-picker{display:flex;gap:8px;margin-bottom:18px}.admin-period-picker button{padding:10px 20px;border-radius:9px;background:var(--raised)}.admin-period-picker button.active{background:var(--accent);color:var(--on-accent)}.admin-screen .metric-periods{display:block}.admin-screen .metric-periods .panel[hidden]{display:none}.admin-screen .metric-periods dl{display:grid;grid-template-columns:1fr auto;gap:14px;align-items:center}.admin-screen .metric-periods dd{margin:0;font-size:28px}.admin-chart{background:var(--accent-soft);padding:18px;border-radius:14px;margin:20px 0}.admin-chart-bars{max-height:320px;overflow:auto}.admin-chart-bars>div{display:flex;align-items:center;gap:10px;font-size:11px;min-height:24px}.admin-chart-bars meter{flex:1;min-width:0;accent-color:var(--accent)}.admin-chart-bars b{min-width:25px;text-align:right}.admin-patrol-summary{padding:20px;background:var(--accent-soft);border-radius:14px;margin:20px 0}

.admin-icon{width:25px;height:25px;flex-shrink:0;filter:invert(36%) sepia(32%) saturate(1050%) hue-rotate(214deg)}.admin-menu-row>span:nth-child(2){flex:1}.admin-bottom-nav button{display:flex;flex-direction:column;align-items:center;gap:5px;padding:12px 4px}.admin-bottom-nav .admin-icon{width:22px;height:22px}.admin-bottom-nav button:not(.active) .admin-icon{filter:grayscale(1);opacity:.55}

.admin-chart canvas{display:block;width:100%;height:auto;margin:16px 0}.admin-notice-preview h2 .tag{font-size:11px;margin-left:8px}

.admin-attention{margin:22px 0}.admin-attention article{padding:16px 0;border-bottom:1px solid var(--line)}.admin-attention p{margin:4px 0;color:var(--accent-ink)}.admin-attention small{color:var(--muted)}

#message:has(.admin-bottom-nav) .modal-head{font-size:16px;font-weight:650}

.admin-members>p:first-child{margin:0 0 20px}.admin-member-count{display:flex;justify-content:space-between;margin:18px 0 12px;color:var(--muted);font-size:13px}.admin-member-card{border:1px solid var(--line);border-radius:15px;padding:18px;margin-bottom:12px}.admin-member-card.protected{background:var(--accent-soft);border-color:transparent}.admin-member-card .metrics-email{font-size:15px;font-weight:650;line-height:1.6;margin:14px 0 6px}.admin-member-card .tag{font-size:12px}.admin-member-controls{display:flex;gap:10px;margin-top:16px}.admin-member-controls select{flex:1;min-width:0}.admin-member-controls button{white-space:nowrap}.admin-member-remove{margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}.admin-member-remove summary{color:#a13c49;font-size:12px;cursor:pointer}.admin-add-member{border:1px dashed var(--accent);border-radius:14px;margin-top:22px;padding:18px}.admin-add-member>summary{color:var(--accent-ink);font-size:15px;font-weight:650;cursor:pointer}.admin-add-member select{width:100%;margin:8px 0 18px}#metrics-role-result:empty{display:none}#metrics-role-result:not(:empty){background:var(--raised);border-radius:10px;padding:12px;font-size:13px}

/* Announcement list, editor and the shared home/preview surface. */
#admin-notices{font-size:14px}#admin-notices h2{font-size:24px;line-height:1.5;margin:0}#admin-notices h3{font-size:19px;line-height:1.6}.admin-screen[data-admin-screen="notice"]>.admin-screen-title{display:none}.notice-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 24px}.notice-heading .primary{white-space:nowrap;padding:12px}.notice-heading .caption{margin:8px 0 0}.notice-filters,.notice-edit-tabs{display:flex;border-bottom:1px solid var(--line);margin:20px 0 24px;gap:0}.notice-filters button,.notice-edit-tabs button{flex:1;min-width:0;padding:14px 2px;font-size:14px;color:var(--muted);border-bottom:3px solid transparent;border-radius:0}.notice-filters button.active,.notice-edit-tabs button.active{color:var(--accent-ink);border-color:var(--accent);font-weight:700}.notice-list-row{padding:22px 0;border-bottom:1px solid var(--line)}.notice-list-row h3{margin:14px 0 8px}.notice-pinned{background:var(--accent-soft);border-radius:14px;padding:20px;margin-bottom:10px;border:0}.notice-row-actions{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin-top:18px}.notice-row-actions .secondary{flex:1}.notice-empty{padding:28px 0;color:var(--muted)}.notice-status:empty{display:none}.notice-status{font-size:13px;color:var(--accent-ink);padding:10px 0;overflow-wrap:anywhere}.notice-form fieldset{border:0;padding:0;margin:22px 0}.notice-form label{display:block;font-weight:600;margin:0 0 22px}.notice-form input:not([type="checkbox"]),.notice-form textarea,.notice-form select{display:block;width:100%;min-width:0;box-sizing:border-box;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--text);padding:12px;font:inherit;font-weight:400;margin-top:9px}.notice-form textarea{resize:vertical;min-height:84px}.notice-form [hidden]{display:none!important}.notice-settings{padding:18px 0;border-top:1px solid var(--line);margin-top:18px}.notice-settings>summary{cursor:pointer;font-weight:600;margin-bottom:16px}.notice-form .notice-check{display:flex;align-items:center;gap:10px}.notice-confirm{display:grid;grid-template-columns:90px minmax(0,1fr);gap:0;border:1px solid var(--line);border-radius:14px;padding:8px 18px;margin:24px 0}.notice-confirm dt,.notice-confirm dd{margin:0;padding:16px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.notice-confirm dt{color:var(--muted)}.notice-confirm dd{padding-left:10px;font-weight:600}.notice-confirm dt:last-of-type,.notice-confirm dd:last-of-type{border:0}.notice-diff{margin:20px 0;padding:14px;border:1px solid var(--line);border-radius:10px}.notice-diff li{overflow-wrap:anywhere;margin:12px 0}#admin-notices>.wide{margin-top:16px;min-height:48px}.home-notice-card{background:var(--accent-soft);border-radius:14px;padding:22px;margin:18px 0;text-align:left;overflow-wrap:anywhere}.home-notice-card a,.home-notice-card .notice-event-link{display:block;color:var(--text);text-decoration:none;text-align:left;width:100%;padding:0}.home-notice-card h2{font-size:23px!important;font-weight:750;line-height:1.55;margin:16px 0!important}.home-notice-card p{white-space:pre-line;line-height:1.8;color:var(--muted);font-size:14px}.notice-kicker{font-size:13px;font-weight:700;color:var(--accent-ink)}.notice-link-label{display:inline-flex;gap:12px;align-items:center;border:1px solid var(--accent);border-radius:10px;padding:10px 14px;margin-top:10px;color:var(--accent-ink);font-weight:700;font-size:14px}.home-notice-more>summary{color:var(--accent-ink);cursor:pointer;padding:8px 0}.home-notice-more .home-notice-card{margin-top:14px}@media(max-width:380px){#admin-notices h2{font-size:21px}.notice-heading{gap:6px}.notice-heading .text-button{font-size:12px}.notice-confirm{padding:6px 12px;grid-template-columns:74px minmax(0,1fr)}}
#admin-notices button{font-size:14px}#admin-notices .caption{font-size:13px;line-height:1.7}#admin-notices .tag{font-size:12px}#admin-notices .notice-row-actions .text-button{font-size:13px}.notice-form label{font-size:15px}#admin-notices .notice-edit-tabs button{font-size:16px}
.notice-target{margin-bottom:22px;font-size:15px;font-weight:600}.notice-target-tabs{display:flex;background:var(--raised);border:1px solid var(--line);border-radius:10px;margin-top:9px}.notice-target-tabs button{flex:1;padding:12px 4px;border-radius:9px;color:var(--muted)}.notice-target-tabs button.active{background:var(--accent-soft);color:var(--accent-ink);font-weight:700}.notice-settings summary small{font-size:12px;font-weight:400;color:var(--muted);margin-left:8px}.notice-form input:not([type="checkbox"]),.notice-form select,.notice-form textarea{font-size:16px}.notice-target input[type="hidden"]{display:none}

/* Simple announcement typography, shared by home and editor preview. */
.home-notice-card{background:transparent;border:0;border-radius:0;padding:4px 0;margin:12px 0 20px}.home-notice-card h2{font-size:26px!important;letter-spacing:-.5px;margin:16px 0 8px!important}.home-notice-card .notice-link-label{border:0;border-radius:0;padding:0;margin:6px 0 0;text-decoration:underline;text-underline-offset:4px}.home-notice-card .home-dateline{margin-bottom:12px}.home-notice-card .home-dateline>span{overflow-wrap:anywhere;min-width:0}.home-notice-card .home-dateline .notice-header-date{color:var(--muted);letter-spacing:0;font-weight:400;text-align:right}.app-version.is-date{font-size:11px;margin-right:8px}@media(max-width:380px){.app-version.is-date{font-size:10px;margin-right:5px}}
.notice-link-position{display:block;width:100%}.notice-link-position.notice-link-left{text-align:left}.notice-link-position.notice-link-center{text-align:center}.notice-link-position.notice-link-right{text-align:right}
.home-notice-card .notice-dateline{display:grid;grid-template-columns:minmax(0,1fr)}.home-notice-card .notice-dateline.has-two{grid-template-columns:repeat(2,minmax(0,1fr))}.home-notice-card [data-align="left"]{text-align:left!important}.home-notice-card [data-align="center"]{text-align:center!important}.home-notice-card [data-align="right"]{text-align:right!important}

.push-options{margin:12px 0;overflow-wrap:anywhere}.push-options summary{cursor:pointer;color:var(--accent-ink);font-weight:600}.push-option{padding:12px 0;border-bottom:1px solid #e5e7eb}.push-option p{font-size:.85rem;margin:0 0 8px}.push-option button[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-soft)}

.quick-entry{margin:0 0 20px}.quick-picker{margin:12px 0}.quick-picker summary{cursor:pointer;color:var(--accent-ink);font-weight:600}.quick-filters{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.quick-event{margin-bottom:12px}.quick-event-title{text-align:left;font-size:1rem;font-weight:700;line-height:1.6;color:inherit;background:none;border:0;padding:0;width:100%}.quick-event-actions{display:flex;align-items:stretch;gap:8px;margin-top:12px}.quick-plan{min-width:64px;background:white;color:var(--muted);border:1px solid var(--line,#e3e6ed);border-radius:12px;padding:8px}.quick-plan span{display:block;font-size:24px;line-height:1.2}.quick-plan small{display:block;font-size:10px;white-space:nowrap}.quick-plan[aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent);color:var(--accent-ink)}.quick-event-actions .notify-show-button{flex:1;min-width:0;font-size:12px;padding:8px}.notify-show-button{margin:8px 0}.notify-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:16px 0}.notify-presets button{padding:10px 6px;font-size:12px;white-space:normal}.notify-presets [aria-pressed=true]{background:var(--accent-soft);color:var(--accent-ink);border-color:var(--accent)}.notify-choice{display:flex;gap:12px;align-items:flex-start;padding:16px 0;border-bottom:1px solid #e3e6ed;cursor:pointer}.notify-choice input{flex:0 0 20px;width:20px;height:20px;margin:2px 0;accent-color:var(--accent)}.notify-choice strong{display:block}.notify-choice small{display:block;color:var(--muted);line-height:1.6;margin-top:4px}.notification-editor .row{margin-top:16px}.notification-editor h3{overflow-wrap:anywhere}

/* Feedback form and owner inbox, including compact five-tab navigation. */
#contact-form textarea{width:100%;box-sizing:border-box;resize:vertical;min-height:160px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);font:inherit}#contact-form select{width:100%}.contact-filters{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:18px}.contact-filters label,.contact-filters select{min-width:0;width:100%}.contact-card{padding:18px 0;border-bottom:1px solid var(--line)}.contact-card summary,.contact-body{overflow-wrap:anywhere;white-space:pre-wrap}.contact-body{line-height:1.8}.contact-card select{display:block;width:100%;margin:8px 0 12px}.admin-bottom-nav button{min-width:0;font-size:11px;white-space:nowrap}.admin-bottom-nav{padding-left:max(4px,env(safe-area-inset-left));padding-right:max(4px,env(safe-area-inset-right))}

.notification-timings{margin-top:20px}.notification-time-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;margin:18px 0}.notification-time-row strong{grid-column:1/-1}.notification-time-row input,.notification-time-row select{width:100%;min-width:0}

.notification-time-row input{border:1px solid var(--line);border-radius:12px;padding:10px;background:var(--surface);font:inherit;font-size:16px;box-sizing:border-box}

/* ToDo: keep the three receipt actions in one equal-width row. */
.task-card{cursor:pointer}.task-title{display:block;width:100%;padding:0;text-align:left;font:inherit;font-weight:inherit;line-height:inherit}.task-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.task-actions>.primary,.task-actions>.secondary{display:flex;align-items:center;justify-content:center;width:100%;min-width:0;min-height:44px;padding:10px 4px;font-size:clamp(11px,3.1vw,13px);line-height:1.4;white-space:nowrap}.task-actions-single{grid-template-columns:1fr}

.creator-panel>button{display:flex;align-items:center;justify-content:center;text-align:center}.creator-links .source-link{font-size:15px;padding:16px 0}.creator-links .source-link:first-child{border-top:0}

.avatar:is([data-group-icon],[data-member-icon]){position:relative;overflow:hidden}.avatar:is([data-group-icon],[data-member-icon]) img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:white;opacity:0}.avatar:is([data-group-icon],[data-member-icon]) img.loaded{opacity:1}

/* Navigation height is measured after rendering and whenever safe areas/font size change. */
.app{padding-bottom:calc(var(--bottom-nav-height,calc(68px + env(safe-area-inset-bottom,0px))) + 24px)}
html{scroll-padding-bottom:calc(var(--bottom-nav-height,calc(68px + env(safe-area-inset-bottom,0px))) + 24px)}
dialog{max-height:calc(var(--visible-viewport-height,100vh) - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 24px);overflow-y:auto;overscroll-behavior:contain;scroll-padding-bottom:24px;-webkit-overflow-scrolling:touch}
@supports(height:100dvh){dialog{max-height:calc(var(--visible-viewport-height,100dvh) - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 24px)}}
#message:has(#metrics-content){height:var(--visible-viewport-height,100dvh);max-height:none}

.creator-message{margin-bottom:20px}.creator-message p+p{margin-top:16px}

#message:has(.creator-message) .modal-head{gap:12px}#message:has(.creator-message) .modal-head strong{min-width:0;line-height:1.6;overflow-wrap:anywhere}#message:has(.creator-message) .modal-head .icon-button{flex-shrink:0}

.usage-period-picker{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.usage-period-picker button{padding:10px 3px;font-size:13px;white-space:nowrap}.metric-periods h3 small{font-size:12px;font-weight:400;color:var(--muted)}.admin-chart-bars small{font-size:10px;color:var(--muted)}

.notification-stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.notification-stat-grid .panel{margin:0;min-width:0;padding:16px}.notification-stat-grid h3{font-size:14px;line-height:1.6;margin:0}.notification-stat-value{font-size:30px;font-weight:750;margin:10px 0;color:var(--accent-ink)}.notification-stat-value small{font-size:13px;font-weight:400;margin-left:6px}.notification-kind-list{display:block;margin:12px 0}.notification-kind-list>div{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--border,#e1e5ec)}.notification-kind-list dt{min-width:0}.notification-kind-list dd{margin:0;white-space:nowrap;font-weight:700}#admin-notification-metrics .detail-section{margin-top:24px}#admin-notification-metrics .metrics-table th{white-space:nowrap}@media(min-width:760px){.notification-stat-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
