/* Readable product UI with restrained, editorial typography. */
:root {
  --bg: #101214; --card: #191c1f; --border: #43494e; --text: #edf0f2;
  --muted: #b7bfc6; --accent: #edf0f2; --blue: #a8cdf1; --green: #a4d2b5;
  --red: #ffb4ac; --yellow: #f2d88c; --purple: #cbbcff;
  --action: #e5eaee; --on-action: #20282e; --soft: #252b30;
  --field-border: #73808a;
  --font-ui: 'Manrope', 'Zen Kaku Gothic New', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --font-body: 1rem; --font-small: 1rem; --font-subheading: 1.125rem;
  --font-section: 1.25rem; --font-heading: 1.5rem; --font-display: 1.75rem;
  --font-heading-mobile: 1.375rem; --font-display-mobile: 1.5rem;
  --weight-body: 400; --weight-label: 500; --weight-strong: 700;
}
:root[data-text-size="large"] {
  --font-body: 1.125rem; --font-subheading: 1.2rem;
  --font-section: 1.375rem; --font-heading: 1.75rem; --font-display: 2rem;
  --font-heading-mobile: 1.5rem; --font-display-mobile: 1.625rem;
}
:root[data-theme="light"] {
  --bg: #f6f7f6; --card: #fdfefd; --border: #d3d8da; --text: #252b30;
  --muted: #5b646b; --accent: #252b30; --blue: #2b6095; --green: #286044;
  --red: #b12627; --yellow: #806000; --purple: #694196;
  --action: #252e35; --on-action: #f8fafb; --soft: #eef1f2;
  --field-border: #89939a;
}
html { font-size: 100%; scroll-padding: 1.25rem; }
body { font-family: var(--font-ui); font-size: var(--font-body); font-weight: var(--weight-body); line-height: 1.8; letter-spacing: .015em; font-kerning: normal; overflow-wrap: anywhere; }
:root[data-theme="dark"] body { line-height: 1.85; }
strong, b { font-weight: var(--weight-strong); }
button, input, select, textarea { font: inherit; letter-spacing: normal; }
button, .btn-primary, .btn-secondary, .btn-danger, .btn-purple, .btn-sm, .filter-btn, .gen-tone-tag, .gen-topic-tag { min-height: 48px; font-size: 1rem !important; font-weight: var(--weight-label); padding: .7rem 1.1rem; line-height: 1.5; border-radius: .5rem; white-space: normal; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--blue) !important; outline-offset: 3px; }
button:disabled { opacity: .6; cursor: not-allowed; }
button[aria-busy="true"] { cursor: wait; }
input:not([type=checkbox]):not([type=radio]), select, textarea { min-height: 48px; font-size: var(--font-body) !important; padding: .7rem .85rem; max-width: 100%; background: var(--card); color: var(--text); border: 1px solid var(--field-border); }
textarea { line-height: 1.8 !important; }
input[type=checkbox], input[type=radio] { width: 24px !important; height: 24px !important; flex: 0 0 24px; accent-color: var(--green); }
label { font-size: 1rem !important; font-weight: var(--weight-label); color: var(--text); }
label:has(input[type=checkbox]) { min-height: 48px; }
.btn-primary, .btn-purple { background: var(--action); color: var(--on-action); border: 1px solid var(--action); }
.btn-primary:hover, .btn-purple:hover { filter: brightness(1.1); }
.btn-secondary { color: var(--text); border: 1px solid var(--border); background: var(--card); }
.btn-danger { color: var(--red); background: transparent; border: 1px solid var(--red); }
.btn-danger:hover { background: var(--soft); color: var(--red); }
.card { padding: 1.75rem; border-radius: .75rem; margin-bottom: 1.5rem; box-shadow: none; }
.card h3, .card h2 { font-size: var(--font-section); line-height: 1.5; font-weight: var(--weight-label); color: var(--text); letter-spacing: .035em; text-transform: none; margin-bottom: 1rem; text-wrap: balance; }
.card p { max-width: 62ch; }
main { max-width: 1120px; padding: 1.75rem 2rem 3rem; }
header { background: var(--card); border-bottom: 1px solid var(--border); }
.header-top { max-width: 1320px; margin: auto; padding: 1.4rem 2rem; gap: 1rem; }
.header-top h1 { font-family: var(--font-ui); font-size: 1.5rem; font-weight: 600; letter-spacing: -.045em; line-height: 1.3; white-space: normal; max-width: 100%; }
.header-right { gap: .65rem; flex-wrap: wrap; }
.account-selector select { max-width: 210px; font-size: 1rem !important; padding: .65rem .5rem !important; }
.header-nav { max-width: 1080px; margin: auto; padding: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); overflow: visible; }
.header-nav .tab { width: auto; min-width: 0; display: flex; align-items: center; justify-content: center; gap: .6rem; color: var(--muted); padding: 1rem .5rem; border-radius: 0; border-bottom: 2px solid transparent; letter-spacing: .035em; }
.header-nav .tab.active { background: transparent; color: var(--text); border-bottom: 2px solid var(--accent); font-weight: var(--weight-label); }
.header-nav .tab:hover { background: var(--soft); }
.nav-icon { width: 23px; height: 23px; flex: 0 0 auto; }
.nav-fade { display: none; }
.lang-toggle { display: none !important; }
.theme-link, .user-dropdown-trigger, .lang-toggle { font-size: 1rem !important; color: var(--text); }
.user-dropdown-menu { min-width: 235px; max-width: calc(100vw - 32px); max-height: 75vh; overflow-y: auto; right: 0; background: var(--card); }
.user-dropdown-menu button { text-align: left; width: 100%; color: var(--text); }
.user-dropdown-menu button:hover { background: var(--soft); }
.ux-text-size { border: 0; min-width: 0; margin: .75rem 1rem; }
.ux-text-size legend { font-size: 1rem; font-weight: var(--weight-label); padding: 0; margin-bottom: .5rem; }
.ux-text-size-options { display: flex; gap: .4rem; }
.ux-text-size-options label { position: relative; display: flex; align-items: center; justify-content: center; flex: 1; min-width: 0; min-height: 48px; padding: .5rem; border: 1px solid var(--field-border); border-radius: .4rem; cursor: pointer; text-align: center; line-height: 1.5; }
.ux-text-size-options input[type=radio] { position: absolute; width: 1px !important; height: 1px !important; clip-path: inset(50%); overflow: hidden; }
.ux-text-size-options label:has(input:checked) { background: var(--action); color: var(--on-action); border-color: var(--action); }
.ux-text-size-options label:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
.ux-skip { position: fixed; left: 1rem; top: 1rem; z-index: 10000; padding: .75rem; background: var(--card); color: var(--text); clip-path: inset(100%); }
.ux-skip:focus { clip-path: none; }
.ux-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.ux-heading h2 { font-size: var(--font-heading); font-weight: var(--weight-label); letter-spacing: .035em; line-height: 1.5; margin: 0; }
.ux-heading p, .ux-help { color: var(--muted); font-size: 1rem; margin: .35rem 0 0; }
.ux-next { background: var(--card); border: 1px solid var(--border); padding: 2.25rem; }
.ux-next h2 { font-size: var(--font-display); font-weight: var(--weight-label); line-height: 1.55; letter-spacing: .025em; margin: .7rem 0 .85rem; text-wrap: balance; }
.ux-next p { margin: 0 0 1.5rem; color: var(--muted); }
.ux-setup { margin-top: 1.75rem; border-top: 1px solid var(--border); }
.ux-setup summary { min-height: 48px; padding-block: .9rem; cursor: pointer; color: var(--muted); }
.ux-setup summary > span:first-child { color: var(--text); font-weight: 500; }
#ux-setup-count { margin-left: .75rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ux-setup ol { list-style: none; padding: 0; margin: 0; }
.ux-setup li + li { border-top: 1px solid var(--border); }
.ux-setup li button { display: flex; align-items: center; gap: .8rem; width: 100%; padding: .8rem 0; background: transparent; border: 0; text-align: left; color: var(--text); }
.ux-setup li button:hover { background: var(--soft); }
.ux-step-marker { display: flex; align-items: center; justify-content: center; flex: 0 0 30px; height: 30px; border-radius: 50%; border: 1px solid var(--field-border); font-variant-numeric: tabular-nums; }
.ux-setup .done .ux-step-marker { background: var(--soft); border-color: transparent; color: var(--green); }
.ux-setup [aria-current=step] .ux-step-marker { background: var(--action); border-color: var(--action); color: var(--on-action); }
.ux-step-state { margin-left: auto; color: var(--muted); white-space: nowrap; }
.ux-setup .done .ux-step-state { color: var(--green); }
.ux-eyebrow { font-size: 1rem; color: var(--muted); font-weight: var(--weight-label); letter-spacing: .06em; }
.ux-steps { display: flex; list-style: none; flex-wrap: wrap; gap: .5rem 1rem; margin: 0 0 1rem; padding: 0; font-size: 1rem; color: var(--muted); }
.ux-steps .done { color: var(--green); }
.ux-steps [aria-current=step] { font-weight: var(--weight-label); color: var(--text); }
.ux-section-label { margin: 1.75rem 0 .65rem; font-size: 1rem; font-weight: 400; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .8rem; margin-bottom: 1.25rem; }
.stat { padding: 1rem .75rem; }
.stat .num { font-size: var(--font-display); font-weight: 500; letter-spacing: -.045em; line-height: 1.4; }
.stat .num, .report-stat .num, .ux-allowance, .schedule-date, time { font-variant-numeric: tabular-nums; }
.stat .label { font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--muted); }
.ux-allowance { padding: 1rem 0; border-radius: 0; border-block: 1px solid var(--border); background: transparent; margin: 1.5rem 0; font-size: 1rem; }
.ux-allowance strong { font-size: var(--font-body); font-weight: var(--weight-label); }
.ux-allowance .ux-help { display: none; }
.ux-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.ux-profile-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; max-width: 100%; }
.ux-replies { margin: -.25rem 0 1.5rem; }
.ux-replies .ux-help { margin-top: .5rem; }
.ux-routine { border-block: 1px solid var(--border); padding: 1.25rem 0; margin: 0 0 1.5rem; }
.ux-routine-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.ux-routine h2 { font-size: var(--font-body); font-weight: var(--weight-label); margin: .2rem 0; line-height: 1.6; }
.ux-routine .ux-eyebrow { font-size: 1rem; }
.ux-mode { margin-bottom: 1.5rem; }
.ux-mode select { width: 100%; }
.ux-mode .ux-help { margin-top: .65rem; }
.ux-unsaved { color: var(--yellow); }
#ux-home-counts .ux-allowance { margin-top: 0; border-top: 0; }
#ux-home-counts .ux-section-label { margin-top: .75rem; }
.ux-disclosure { border: 1px solid var(--border); border-radius: .8rem; margin: 1rem 0; padding: 0 1rem; background: var(--card); }
.ux-disclosure > summary { font-weight: var(--weight-label); cursor: pointer; min-height: 52px; padding: .7rem 0; font-size: 1rem; }
.ux-disclosure[open] > summary { margin-bottom: 1rem; border-bottom: 1px solid var(--border); }
.ux-disclosure > .card { border: 0; padding: 0; }
.ux-disclosure > :last-child { margin-bottom: 1rem; }
.ux-frequency { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); gap: .85rem; }
.ux-frequency label { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.ux-frequency select, .ux-frequency input { width: 100%; min-width: 0; }
/* iOS time controls otherwise retain their intrinsic width inside a narrow grid. */
.ux-frequency input[type=time] { appearance: none; -webkit-appearance: none; min-inline-size: 0; }
.ux-frequency input[type=time]::-webkit-date-and-time-value { min-width: 0; text-align: center; }
.ux-report-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.ux-report-actions > button { flex: 0 0 auto; white-space: nowrap; }
.ux-report-actions > [role=status] { flex: 1 1 15rem; min-width: 0; white-space: pre-line; }
.ux-style { padding: 1rem; border-radius: .75rem; background: var(--soft); margin: 1.25rem 0; }
.ux-style .form-row { margin-top: 1rem; }
.ux-style h3 { font-size: var(--font-subheading); }
.ux-insight-post { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.ux-insight-post summary { cursor: pointer; font-size: var(--font-body); min-height: 48px; }
.ux-insight-post time { display: block; color: var(--muted); font-size: 1rem; margin-bottom: .3rem; }
.ux-insight-post .ux-metrics { display: flex; gap: .5rem 1.25rem; flex-wrap: wrap; color: var(--muted); font-size: 1rem; margin-top: .65rem; }
.ux-insight-post .ux-metrics strong { color: var(--text); }
.ux-learning { padding: 1rem 0; border-block: 1px solid var(--border); margin: 0 0 1.25rem; }
.ux-learning p { margin: .5rem 0; }
.schedule-item { gap: 1rem; padding: 1.1rem 0; }
.schedule-text { font-size: var(--font-body); line-height: 1.8; }
.schedule-date, .schedule-type, .schedule-meta, .badge, .char-count { font-size: 1rem; }
.schedule-actions { flex-wrap: wrap; gap: .5rem; }
.badge { line-height: 1.5; letter-spacing: 0; }
.badge-posted { background: var(--soft); color: var(--green); }
.badge-pending { background: var(--soft); color: var(--yellow); }
.badge-failed { background: var(--card); color: var(--red); }
.toast { max-width: calc(100vw - 2rem); white-space: normal; font-size: 1rem; line-height: 1.6; pointer-events: none; }
.toast.success, .toast.error { color: var(--on-action); background: var(--action); }
.toast.error { border: 2px solid var(--red); }
.failure-banner { flex-wrap: wrap; background: var(--card); border-color: var(--red); }
.failure-banner-sub { color: var(--muted); }
.failure-banner-btn { background: var(--action) !important; color: var(--on-action) !important; }
.report-content { font-size: var(--font-body); line-height: 1.9; }
.report-stats { gap: .75rem; }
.report-stat .label { font-size: 1rem; }
.auth-box .subtitle, .auth-toggle, .auth-error, .onboarding-box .ob-subtitle, .paywall-box .pw-subtitle, .paywall-plan .plan-period { font-size: 1rem; line-height: 1.75; }
.auth-toggle a { display: inline-flex; align-items: center; min-height: 48px; text-decoration: underline; }
.auth-box { max-height: 90dvh; overflow-y: auto; }
#pricing-cards .btn-primary, .paywall-plans .btn-primary { background: var(--action) !important; color: var(--on-action) !important; }
.ux-pricing-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin-top: 1.5rem; text-align: left; }
.ux-plan-card { display: flex; flex-direction: column; padding: 1.5rem; background: var(--card); border: 1px solid var(--border); border-radius: .8rem; min-width: 0; }
.ux-plan-card.ux-plan-monitor, .ux-plan-card.is-current { border-color: var(--green); }
.ux-plan-top { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.ux-plan-top h3 { font-size: var(--font-subheading); font-weight: 500; margin: 0; color: var(--text); letter-spacing: 0; }
.ux-plan-badge { display: inline-block; padding: .12rem .5rem; border-radius: .3rem; background: var(--soft); color: var(--green); font-size: .875rem; white-space: nowrap; }
.ux-plan-tagline, .ux-plan-note { font-size: 1rem; color: var(--muted); line-height: 1.65; margin: .5rem 0 0; }
.ux-plan-price { margin: 1.25rem 0 .25rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ux-plan-price strong { font-family: 'Manrope', sans-serif; font-size: 2.25rem; font-weight: 600; letter-spacing: -.04em; line-height: 1.25; }
.ux-plan-price span { font-size: 1rem; color: var(--muted); }
.ux-plan-features { list-style: none; margin: 1.25rem 0; padding: 1rem 0 0; border-top: 1px solid var(--border); font-size: var(--font-body); }
.ux-plan-features li { margin: .5rem 0; line-height: 1.65; }
.ux-plan-monitor-note { color: var(--muted); font-size: 1rem; line-height: 1.65; margin: 0 0 1rem; }
.ux-plan-action { margin-top: auto; }
.ux-plan-action button { width: 100%; }
.ux-plan-status { padding: .7rem 0; min-height: 48px; font-weight: 500; color: var(--green); }
.ux-plan-other { color: var(--muted); font-weight: 400; }
.ux-plan-footnote, .ux-trial-note { grid-column: 1 / -1; margin: 0; font-size: 1rem; color: var(--muted); }
.ux-plan-footnote a { color: var(--blue); text-underline-offset: .2em; display: inline-block; min-height: 48px; padding-block: .7rem; }
.ux-trial-note { display: flex; flex-wrap: wrap; gap: .5rem 1rem; padding: 1.25rem 0; border-top: 1px solid var(--border); }
.ux-trial-note strong { color: var(--text); font-weight: 500; }
.ux-current-plan-name { font-size: var(--font-heading); font-weight: 500; }
.ux-plan-usage { color: var(--muted); font-size: 1rem; margin-top: .4rem; }
.ux-back { margin-bottom: 1rem; }
.ux-dialog-heading, .ux-reactions-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ux-dialog-heading { position: sticky; top: -24px; padding-block: .5rem; background: var(--card); z-index: 1; }
.ux-dialog-heading h2, .ux-reactions-heading h3 { margin: 0; }
.ux-dialog-heading h2 { font-size: var(--font-subheading); }
.ux-dialog-heading button { flex-shrink: 0; }
.ux-referral-offer { margin-top: 1.25rem; border-top: 1px solid var(--border); padding-top: 1.25rem; }
.ux-referral-offer h4 { font-size: 1rem; font-weight: 500; }
.ux-referral-offer p { color: var(--muted); font-size: 1rem; line-height: 1.65; margin: .65rem 0; }
.ux-referral-offer .ux-referral-price { color: var(--text); display: flex; gap: .4rem; align-items: baseline; flex-wrap: wrap; }
.ux-referral-price strong { font-family: 'Manrope', sans-serif; font-size: 1.65rem; font-weight: 600; color: var(--green); }
.ux-referral-price span { color: var(--muted); font-size: .875rem; }
.ux-referral-offer button { width: 100%; }
.ux-referral-offer .ux-referral-steps { font-size: .875rem; }
.ux-entry-note { border: 1px solid var(--border); border-radius: .65rem; padding: 1rem; margin-bottom: 1.5rem; background: var(--soft); }
.ux-entry-note p { color: var(--muted); font-size: 1rem; margin: .4rem 0 0; line-height: 1.65; }
.ux-trial-entry { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.ux-trial-entry button { flex-shrink: 0; }
#current-plan-info { padding-block: 1.25rem; }
#current-plan-info h3 { font-size: 1rem; color: var(--muted); margin-bottom: .5rem; }
#current-plan-display { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1.25rem; margin-bottom: 0 !important; }
#manage-sub-btn { margin-top: 1rem; }
footer { font-size: 1rem !important; padding: 1.5rem; }
footer :is(p,div,span,small) { font-size: inherit !important; }
footer a { display: inline-flex; align-items: center; min-height: 48px; padding: .3rem; }
/* Existing inline sizes are replaced consistently, including generated rows and dialogs. */
:is(main, .modal, .auth-box, .onboarding-box) :is(p,div,span,small,summary)[style*="font-size:1"],
:is(main, .modal, .auth-box, .onboarding-box) :is(p,div,span,small,summary)[style*="font-size: 1"] { font-size: 1rem !important; }
#ap-drafts textarea, #lib-list textarea { font-size: var(--font-body) !important; }
#ap-drafts > div { padding: 1.1rem !important; }
#ap-approve-btn { background: var(--action) !important; color: var(--on-action) !important; }
#ap-business-status { font-size: 1rem !important; }
#lib-extracted > div:has(textarea) { display: grid !important; grid-template-columns: 24px minmax(0,1fr); }
#lib-extracted > div > textarea { grid-column: 1 / -1; width: 100%; min-width: 0 !important; }
#lib-extracted select { max-width: 100% !important; }
#ap-report-view { overflow-x: auto; }
.calendar-cell { min-width: 0; }
.calendar-post { overflow-wrap: anywhere; }
[hidden] { display: none !important; }
@media (max-width: 760px) {
  body { padding-bottom: calc(85px + env(safe-area-inset-bottom)); }
  main { padding: 1.25rem 1rem 2rem; }
  .header-top { padding: .9rem 1rem .7rem; align-items: flex-start; flex-direction: column; gap: .6rem; }
  .header-top h1 { font-size: 1.25rem; }
  .header-right { width: 100%; display: flex; gap: .3rem; flex-wrap: nowrap; }
  .account-selector { flex: 1; min-width: 0; }
  .account-selector select { width: 100%; min-width: 0 !important; max-width: 100%; }
  .account-label, .header-right > .theme-link { display: none; }
  .header-right > button { padding: .5rem; }
  .user-dropdown-trigger { padding: .5rem; }
  .header-nav { position: fixed; z-index: 100; bottom: 0; left: 0; right: 0; background: var(--card); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); box-shadow: none; }
  .header-nav .tab { flex-direction: column; gap: .15rem; padding: .6rem .15rem; font-size: 1rem !important; letter-spacing: 0; line-height: 1.4; border-bottom: 0; border-top: 2px solid transparent; min-height: 76px; }
  .header-nav .tab.active { border-bottom: 0; border-top: 2px solid var(--accent); }
  .nav-icon { width: 21px; height: 21px; }
  .card { padding: 1.2rem; }
  .ux-next { padding: 1.5rem; }
  .ux-next h2 { font-size: var(--font-display-mobile); }
  .ux-next .btn-primary { width: 100%; }
  .ux-replies .ux-profile-link { width: 100%; }
  .ux-routine-heading { flex-wrap: wrap; }
  .ux-heading { align-items: flex-start; }
  .ux-heading h2 { font-size: var(--font-heading-mobile); }
  #panel-autopilot > .ux-heading > button { order: 2; }
  .ux-steps { gap: .3rem .55rem; }
  .ux-heading p { margin: 0; }
  .ux-frequency { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ux-frequency label:first-child { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .schedule-item { flex-direction: column; align-items: stretch; }
  .schedule-meta { min-width: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
  .schedule-actions { justify-content: flex-start; }
  .schedule-toolbar { flex-wrap: wrap; }
  #panel-schedule .filter-bar { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); align-items: stretch; }
  #panel-schedule .filter-bar > span { display: none; }
  #panel-schedule .filter-btn { min-width: 0; padding-inline: .25rem; white-space: nowrap; }
  #calendar-toggle-btn, #bulk-edit-btn { grid-column: span 2; }
  .ux-report-actions { flex-direction: column; align-items: stretch; }
  .ux-report-actions > [role=status] { flex: none; }
  .report-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pricing-grid, .pricing-cards { grid-template-columns: 1fr; }
  .ux-pricing-grid { grid-template-columns: 1fr; }
  .ux-plan-card { padding: 1.5rem; }
  .modal { width: calc(100% - 1rem) !important; max-height: 88dvh; padding: 1.25rem !important; overflow-y: auto; }
  .modal-overlay { padding: .5rem; }
  .auth-box { width: calc(100% - 1rem); padding: 1.5rem; }
  .onboarding-box { width: 100%; padding: 1.5rem; }
  .toast { bottom: calc(95px + env(safe-area-inset-bottom)); }
  #calendar-view { overflow-x: auto; }
  footer { padding-bottom: 1rem; }
}
@media (max-width: 359px) {
  #panel-schedule .filter-bar { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #calendar-toggle-btn, #bulk-edit-btn { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
/* Keep a concise visual form while retaining its explicit accessible label. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
