
body.mt-on, .mt-tabbar, .mt-sheet-back, .modal-overlay.alg-phone, body.client-shell, body.client-shell .mt-tabbar, body.client-shell .mt-sheet-back {
  --mt-brand: #F47920;
  --mt-accent: #F9A15A;
  --mt-tint: #3A2617;
  --mt-tint-text: #F9A15A;
  --mt-page: #0D0D0D;
  --mt-surface: #171717;
  --mt-border: #2A2A2A;
  --mt-hair: #222222;
  --mt-text: #F5F5F5;
  --mt-sub: #A3A3A3;
  --mt-muted: #8A8A8A;
  --mt-done-bg: #1E3A1E;
  --mt-done-fg: #9FD89F;
  --mt-nodone-bg: #4A3A12;
  --mt-nodone-fg: #FCD98A;
  --mt-danger-bg: #4A1D1D;
  --mt-info-bg: #1E3350;
  --mt-info-fg: #A9C8F5;
  --mt-open-tint: #241A12;
  --mt-shadow: 0 8px 28px rgba(0,0,0,0.6);
  --mt-seg-shadow: 0 1px 2px rgba(0,0,0,0.5);
  --mt-on-brand: #2C2C2C; --mt-on-brand-soft: rgba(255,255,255,0.18); --mt-knob: #FFFFFF; --mt-on-danger: #FFFFFF;
  --mt-seg-off: #2A2A2A; --mt-text2: #E2E8F0; --mt-link: #F9A15A; --mt-well: #101010; --mt-danger: #F28B82; --mt-danger-strong: #D93025; --mt-press: rgba(244,121,32,0.10);
}
:root[data-theme="light"] body.mt-on, :root[data-theme="light"] .mt-tabbar, :root[data-theme="light"] .mt-sheet-back, :root[data-theme="light"] .modal-overlay.alg-phone, body.client-shell, body.client-shell .mt-tabbar, body.client-shell .mt-sheet-back {
  --mt-tint: #FDEBDD;
  --mt-tint-text: #B85A0C;
  --mt-page: #FDF8F5;
  --mt-surface: #FFFFFF;
  --mt-border: #E2E8F0;
  --mt-hair: #F1F5F9;
  --mt-text: #0F172A;
  --mt-sub: #5B6B80;
  --mt-muted: #5E6E84;
  --mt-done-bg: #DCFCE7;
  --mt-done-fg: #166534;
  --mt-nodone-bg: #FEF3C7;
  --mt-nodone-fg: #92400E;
  --mt-danger-bg: #FEE2E2;
  --mt-info-bg: #DBEAFE;
  --mt-info-fg: #1E40AF;
  --mt-open-tint: #FEF4EC;
  --mt-shadow: 0 8px 24px rgba(15,23,42,0.18);
  --mt-seg-shadow: 0 1px 2px rgba(15,23,42,0.12);
  --mt-seg-off: #EEF1F5; --mt-text2: #334155; --mt-link: #B85A0C; --mt-well: #F8FAFC; --mt-danger: #C5221F; --mt-danger-strong: #C5221F;
}
body.mt-on, body.cs-phone, body.cs-boot, .mt-sheet-back, .mt-tabbar, .modal-overlay.alg-phone {
  --ph-fs-display: 21px; --ph-fs-num-lg: 24px; --ph-fs-num: 15px; --ph-fs-icon: 18px; --ph-fs-title: 14px; --ph-fs-list: 13px; --ph-fs-button: 12.5px; --ph-fs-body: 12px; --ph-fs-sub: 11.5px; --ph-fs-meta: 11px; --ph-fs-input: var(--ph-fs-input-ios, 13px);
}
html.is-ios { --ph-fs-input-ios: 16px; }
:is(body.mt-on, body.cs-phone, body.cs-boot, .mt-sheet-back, .mt-tabbar, .modal-overlay.alg-phone) :is(input:not([type=checkbox], [type=radio], [type=range], [type=file], [type=color], [type=hidden], [type=button], [type=submit], [type=reset], [type=image]), select, textarea):not(.digit-box) { font-size: var(--ph-fs-input); }
:is(body.mt-on, body.cs-phone, body.cs-boot, .mt-sheet-back, .mt-tabbar, .modal-overlay.alg-phone) .digit-box { font-size: max(var(--ph-fs-num), var(--ph-fs-input)); }
@media (max-width: 600px) {
  body.ph-type {
    --ph-fs-display: 21px; --ph-fs-num-lg: 24px; --ph-fs-num: 15px; --ph-fs-icon: 18px; --ph-fs-title: 14px; --ph-fs-list: 13px; --ph-fs-button: 12.5px; --ph-fs-body: 12px; --ph-fs-sub: 11.5px; --ph-fs-meta: 11px; --ph-fs-input: var(--ph-fs-input-ios, 13px);
  }
  body.ph-type :is(input:not([type=checkbox], [type=radio], [type=range], [type=file], [type=color], [type=hidden], [type=button], [type=submit], [type=reset], [type=image]), select, textarea):not(.digit-box) { font-size: var(--ph-fs-input); }
  body.ph-type .digit-box { font-size: max(var(--ph-fs-num), var(--ph-fs-input)); }
  body.ph-type .flatpickr-calendar { font-size: var(--ph-fs-body); }
}
body.cs-phone .cs-band-in { min-height: 44px; padding-top: 8px; }
body.cs-phone .cs-band-t { padding: 4px 14px 12px; }
body.cs-phone .md-label { padding: 12px 14px 6px; }
body.cs-phone .fs-set { min-height: 56px; padding: 10px 14px; gap: 11px; }
body.cs-phone .fs-ic { width: 34px; height: 34px; border-radius: 10px; }
body.cs-phone .fs-ic svg { width: 18px; height: 18px; }body.cs-phone .cs-row { padding: 10px 14px; min-height: 48px; }
body.cs-phone .cl-itin-day { padding-bottom: 14px; }
body.cs-phone .cl-itin-day-body { line-height: 1.45; }
body.cs-phone .modal-box:not(.cs-sheet) { padding: 18px 16px 14px; }
body.mt-on .md-band-today { padding: 14px 16px 18px; }
body.mt-on .md-date { margin-top: 10px; }
body.mt-on .md-row { min-height: 48px; padding: 10px 14px; }
:is(body.mt-on, body.cs-phone, body.cs-boot) .flatpickr-calendar { font-size: var(--ph-fs-body); }
body.mt-on { background: var(--mt-page); color: var(--mt-text); }
body.mt-on .topbar { display: none; }
body.mt-on .sub-detail-panel { background: var(--mt-page); }
body.mt-has-bar .sub-detail-panel .detail-inner { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.mt-tabbar {
  position: fixed; z-index: 150;
  left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  height: 64px; box-sizing: border-box; padding: 0 6px;
  display: flex; align-items: stretch; justify-content: space-around;
  background: var(--mt-surface); border: 1px solid var(--mt-border); border-radius: 24px; box-shadow: var(--mt-shadow);
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.mt-tabbar.mt-tabbar-hide { transform: translateY(calc(100% + 28px + env(safe-area-inset-bottom, 0px))); pointer-events: none; }
.mt-tabbar.mt-tabbar-typing { transform: translateY(calc(100% + 28px + env(safe-area-inset-bottom, 0px))); pointer-events: none; }
.mt-tab {
  flex: 1; min-width: 0; min-height: 48px; margin: 0; padding: 6px 2px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: transparent; border: 0; border-radius: 18px; cursor: pointer;
  color: var(--mt-muted); font: inherit; -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, background 0.12s ease;
}
.mt-tab svg { display: block; flex: none; }
.mt-tab-label { font-size: var(--ph-fs-meta, 11px); line-height: 1.1; font-weight: 600; white-space: nowrap; }
.mt-tab.active { color: var(--mt-brand); }
:root[data-theme="light"] .mt-tab.active .mt-tab-label { color: #2C2C2C; }
.mt-tab:active { transform: scale(0.97); background: var(--mt-open-tint); }
.mt-sheet-back {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0,0,0,0); transition: background 0.22s ease;
}
.mt-sheet-back.open { background: rgba(0,0,0,0.85); }
body.mt-on .modal-overlay { background: rgba(0,0,0,0.85); }
.mt-sheet {
  position: relative; width: 100%; max-width: 600px; box-sizing: border-box; max-height: 88vh; overflow-y: auto;
  background: var(--mt-surface); color: var(--mt-text); border-radius: 20px 20px 0 0;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%); transition: transform 0.24s ease;
}
.mt-sheet-back.open .mt-sheet { transform: translateY(0); }
.mt-sheet-x {
  position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 22px;
  background: transparent; color: var(--mt-sub); font-size: var(--ph-fs-icon, 28px); line-height: 1; cursor: pointer;
}
.mt-sheet-body { padding-top: 4px; }
.mt-sheet { --mt-sheet-bg: var(--mt-surface); height: 30vh; max-height: 88vh; transition: transform 0.24s ease, height 0.22s ease; }
.mt-sheet.mt-sheet-full { height: 100vh; max-height: 100vh; border-radius: 0; }
.mt-sheet.mt-sheet-scroll::after { content: ""; position: sticky; bottom: calc(-20px - env(safe-area-inset-bottom, 0px)); display: block; height: 28px; margin-top: -28px; pointer-events: none; background: linear-gradient(to bottom, transparent, var(--mt-sheet-bg)); }
.mt-sheet-grab { position: absolute; top: 0; left: 50%; width: 72px; height: 24px; padding: 0; border: 0; background: transparent; transform: translateX(-50%); cursor: pointer; }
.mt-sheet-grab::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; margin: 10px auto 0; background: var(--mt-border); }
.mt-sheet-top { z-index: 10060; }
.mt-sheet[data-tone] { border: 1px solid var(--tn-fg); background: var(--tn-bg); }
.mt-sheet[data-tone] .mt-sheet-title { color: var(--tn-fg); }
.mt-sheet[data-tone="red"], .mt-bp-red, .md-tone-red { --tn-bg: var(--mt-danger-bg); --tn-fg: var(--mt-danger); }
.mt-sheet[data-tone="amber"], .mt-bp-amber, .md-tone-amber { --tn-bg: var(--mt-nodone-bg); --tn-fg: var(--mt-nodone-fg); }
.mt-sheet[data-tone="green"], .mt-bp-green, .md-tone-green { --tn-bg: var(--mt-done-bg); --tn-fg: var(--mt-done-fg); }
.mt-sheet[data-tone="blue"], .mt-bp-blue, .md-tone-blue { --tn-bg: var(--mt-info-bg); --tn-fg: var(--mt-info-fg); }
.md-tone-muted { --tn-bg: var(--mt-hair); --tn-fg: var(--mt-muted); }
.mt-sheet[data-tone="red"] .btn-primary, .mt-sheet[data-tone="red"] .btn-primary.wa-armed-destructive { background: var(--mt-danger-strong); border-color: var(--mt-danger-strong); color: var(--mt-on-danger); }
.mt-sheet .btn-view-primary { background: transparent; padding: 8px 19px; font-size: var(--ph-fs-button, 13px); }
.mt-sheet .btn:not(.btn-view-primary) { padding: 9px 20px; font-size: var(--ph-fs-button, 13px); }
.mt-sheet-body > .mt-sheet-msg:first-child { margin-right: 44px; }
.mt-sheet-title { color: var(--mt-done-fg); }
.mt-sheet-warn { border-top: 3px solid var(--mt-nodone-fg); }
.mt-sheet-warn .mt-sheet-title { color: var(--mt-nodone-fg); }
.mt-sheet-muted { border-top: 3px solid var(--mt-muted); }
.mt-sheet-muted .mt-sheet-title { color: var(--mt-muted); }
.mt-sheet-danger { border-top: 3px solid var(--mt-danger); }
.mt-sheet-danger .mt-sheet-title { color: var(--mt-danger); }
.mt-sheet-danger .btn-primary, .mt-sheet-danger .btn-primary.wa-armed-destructive { background: var(--mt-danger-strong); border-color: var(--mt-danger-strong); color: var(--mt-on-danger); }
.mt-sheet-title { font-size: var(--ph-fs-title, 15px); font-weight: 700; margin: 4px 44px 8px 0; }
.mt-sheet-msg { font-size: var(--ph-fs-body, 15px); line-height: 1.45; margin-bottom: 12px; }
.mt-sheet-lines { white-space: pre-line; }
.mt-sheet-info { font-size: var(--ph-fs-body, 14px); line-height: 1.5; margin-bottom: 12px; }
.mt-sheet-list { margin: 6px 0 0; padding-left: 20px; }
.mt-sheet-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.mt-sheet-btns:not(:has(.mt-sheet-extra)) > button { flex: 1 1 0; min-width: 0; }
.mt-sheet .wa-confirm-card { background: var(--mt-well); border-color: var(--mt-border); margin-bottom: 8px; }
.mt-sheet .wa-confirm-card-title, .mt-sheet .wa-confirm-card-lines { color: var(--mt-text); }
.mt-sheet .wa-confirm-lead { margin-bottom: 8px; }
body.mt-on .modal-overlay:not(.alg-phone) { align-items: flex-end; padding: 0; }
body.mt-on .modal-overlay:not(.alg-phone) .modal-box {
  width: 100%; max-width: none; box-sizing: border-box; border-radius: 20px 20px 0 0; max-height: 88vh;
  padding: 24px 16px calc(20px + env(safe-area-inset-bottom, 0px));
}
body.mt-on #wa-reload-modal.modal-overlay { align-items: center; padding: 16px; }
body.mt-on #wa-reload-modal .modal-box { max-width: calc(100vw - 32px); border-radius: 20px; }
body.mt-on .fe-overlay.modal-overlay { align-items: center; padding: 16px; }
body.mt-on .fe-overlay.modal-overlay .modal-box { max-width: calc(100vw - 32px); border-radius: 20px; }
body.mt-on .fe-overlay.modal-overlay .modal-box.fe-spin { width: auto; padding: 16px 20px; }
body.mt-on .fe-overlay.modal-overlay.open { animation: mtFeDim 0.18s ease-out; }
body.mt-on .fe-overlay.modal-overlay.open > .modal-box { animation: mtFeIn 0.2s ease-out; }
@keyframes mtFeDim { from { background-color: rgba(0, 0, 0, 0); } }
@keyframes mtFeIn { from { opacity: 0; transform: translateY(6px); } }
@keyframes mtFeFade { from { opacity: 0; } }
body.mt-has-bar .page-footer { display: none; }
@media (max-width: 600px), (pointer: coarse) and (max-height: 600px) {
  .wa-maint-notice, .wa-maint-notice.active, #wa-maint-badge { display: none !important; }
}
.mt-pull {
  position: fixed; z-index: 140; top: calc(env(safe-area-inset-top, 0px) - 44px); left: 50%;
  height: 32px; box-sizing: border-box; padding: 0 14px; display: flex; align-items: center; white-space: nowrap;
  font-size: var(--ph-fs-body, 13px); font-weight: 600; color: var(--mt-text);
  background: var(--mt-surface); border: 1px solid var(--mt-border); border-radius: 999px; box-shadow: var(--mt-shadow);
  transform: translate(-50%, 0); opacity: 0; pointer-events: none; transition: transform 0.2s ease, opacity 0.2s ease;
}
.mt-pull.mt-pull-show { opacity: 1; }
.mt-pull.mt-pull-drag { transition: none; }
.mt-sheet-sub { font-size: var(--ph-fs-sub, 12px); color: var(--mt-sub); margin: -4px 44px 8px 0; }
.mt-menu { display: flex; flex-direction: column; }
.mt-menu-row {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; box-sizing: border-box; margin: 0; padding: 8px 4px;
  border: 0; border-top: 1px solid var(--mt-hair); background: transparent; color: var(--mt-text); font: inherit; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mt-menu-row:first-child { border-top: 0; }
.mt-menu-row:active { background: var(--mt-open-tint); }
.mt-menu-ic { flex: none; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: var(--mt-sub); }
.mt-menu-tx { display: flex; flex-direction: column; min-width: 0; }
.mt-menu-label { font-size: var(--ph-fs-list, 14px); font-weight: 600; }
.mt-menu-desc { font-size: var(--ph-fs-sub, 12px); color: var(--mt-sub); line-height: 1.35; }
.mt-menu-danger, .mt-menu-danger .mt-menu-ic, .mt-menu-danger .mt-menu-desc { color: var(--mt-danger); }
.mt-sheet-edit .mt-sheet-x { display: none; }
.mt-edit-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.mt-edit-todo { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-size: var(--ph-fs-body, 14px); color: var(--mt-text); }
.mt-edit-ta {
  width: 100%; box-sizing: border-box; min-height: 96px; padding: 10px 12px; border: 1px solid var(--mt-border); border-radius: 12px;
  background: var(--mt-well); color: var(--mt-text); font: inherit; font-size: var(--ph-fs-input, 16px); line-height: 1.45; resize: none;
}
.mt-edit-ta:focus, .mt-edit-ta:focus-visible, .mp-tz .wa-combo-input:focus, .mp-tz select:focus, .mp-tz select:focus-visible, .mp-tz input:focus-visible { outline: none !important; box-shadow: none; border-color: var(--mt-brand); }
.mt-edit-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: var(--ph-fs-body, 13px); min-height: 18px; }
.mt-edit-left { color: var(--mt-sub); }
.mt-edit-err { color: var(--mt-danger); }
.mt-mark {
  position: absolute; top: -22px; right: -14px;    width: 44px; height: 44px; margin: 0; padding: 0; border: 0; background: transparent;
  display: flex; align-items: center; justify-content: center; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.mt-mark-dot {
  display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--mt-tint); color: var(--mt-tint-text); border: 1px solid var(--mt-border); box-shadow: var(--mt-shadow);
}
.mt-mark-dot svg { width: 18px; height: 18px; }
.mt-mark-pulse .mt-mark-dot { animation: mt-mark-pulse 1.6s ease-in-out infinite; }
.mt-mark-fade .mt-mark-dot { animation: mt-mark-fade 2.6s ease-in-out infinite; }
@keyframes mt-mark-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.55; transform: scale(1.12); } }
@keyframes mt-mark-fade { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.mt-mark-flag { position: absolute; top: 3px; right: 3px; box-sizing: border-box; border-radius: 8px; box-shadow: 0 0 0 2px var(--mt-surface); }
.mt-mark-red { width: 16px; height: 16px; background: var(--mt-danger); display: flex; align-items: center; justify-content: center; }
.mt-mark-red svg { width: 8px; height: 8px; fill: none; stroke: var(--mt-surface); stroke-width: 2.4; stroke-linecap: round; }
.mt-mark-count { min-width: 16px; height: 16px; padding: 0 4px; background: var(--mt-brand); color: var(--mt-on-brand); font-family: inherit; font-style: normal; font-weight: 700; font-size: var(--ph-fs-meta, 10px); line-height: 16px; text-align: center; }
.mt-mark-spin .mt-mark-dot svg { animation: mt-mark-turn 1.1s linear infinite; }
@keyframes mt-mark-turn { to { transform: rotate(360deg); } }
.mt-st-line { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: var(--ph-fs-body, 15px); }
.mt-st-tx { flex: 1; }
.mt-st-fail { padding: 10px 12px; margin: 6px 0; border: 1px solid var(--mt-border); border-radius: 12px; background: var(--mt-well); }
.mt-st-ft { font-size: var(--ph-fs-title, 15px); font-weight: 700; margin-bottom: 2px; }
.mt-st-fx { font-size: var(--ph-fs-body, 14px); line-height: 1.45; color: var(--mt-sub); margin-bottom: 8px; }
.mt-st-grp { font-size: var(--ph-fs-sub, 12px); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--mt-muted); margin: 14px 0 2px; }
.mt-st-row { display: flex; align-items: flex-start; gap: 10px; width: 100%; min-height: 44px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--mt-border); background: none; color: inherit; font: inherit; font-size: var(--ph-fs-body, 15px); text-align: left; cursor: pointer; }
.mt-st-row:disabled { cursor: default; opacity: 1; }
.mt-st-ic { flex: 0 0 22px; display: flex; align-items: center; justify-content: center; min-height: 24px; color: var(--mt-muted); }
.mt-st-ic svg { width: 20px; height: 20px; }
.mt-st-ic .spinner-inline { margin-right: 0; }
.mt-st-row[data-state="sent"] .mt-st-ic { color: var(--mt-brand); }
.mt-st-row[data-state="failed"] .mt-st-ic { color: var(--mt-danger); }
.mt-st-rt { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.mt-st-rw { display: block; font-size: var(--ph-fs-body, 13px); line-height: 1.4; color: var(--mt-sub); }
.mt-st-row[data-state="failed"] .mt-st-rw { color: var(--mt-danger); }
.mt-bell {
  position: fixed; z-index: 155; top: calc(env(safe-area-inset-top, 0px) + 10px); right: 4px; width: 44px; height: 44px; margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--mt-on-brand); display: flex; align-items: center; justify-content: center; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.mt-bell-ic { display: flex; filter: drop-shadow(0 0 1.5px var(--mt-brand)) drop-shadow(0 0 1.5px var(--mt-brand)); }
.mt-bell-ic svg { width: 24px; height: 24px; }
body.mt-bell-float .mt-bell { background: var(--mt-brand); border-radius: 50%; box-shadow: var(--mt-shadow); }
body.mt-bell-float .mt-bell-ic { filter: none; }
.mt-bell-dot { position: absolute; top: 8px; right: 9px; width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 2px var(--mt-brand); }
.mt-bell-red { background: var(--color-dark); }
.mt-bell-green { background: var(--mt-done-fg); }
body.mt-bell-on .md-band-top { padding-right: 44px; }
body.mt-bell-on .off-band { padding-left: 44px; padding-right: 44px; }
body.mt-bell-on:has(.off-band:not([hidden])) .mt-bell { top: calc(env(safe-area-inset-top, 0px) + 40px); }
.mt-sheet-back.mt-sheet-page { align-items: stretch; justify-content: stretch; }
.mt-sheet.mt-sheet-pg { max-width: none; height: 100vh; max-height: 100vh; border-radius: 0; padding-top: calc(20px + env(safe-area-inset-top, 0px)); transform: translateX(100%); }
.mt-sheet-back.open .mt-sheet.mt-sheet-pg { transform: translateX(0); }
.mt-sheet-pg .mt-sheet-x { left: 6px; right: auto; top: calc(6px + env(safe-area-inset-top, 0px)); }
.mt-sheet-pg .mt-sheet-x svg { width: 24px; height: 24px; }
.mt-bp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--mt-brand); color: var(--mt-on-brand);
  margin: calc(-20px - env(safe-area-inset-top, 0px)) -16px 4px; padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 18px 56px; }
.mt-bp-title { font-size: var(--ph-fs-display, 22px); font-weight: 800; }
.mt-bp-hd { min-width: 0; }
.mt-bp-ver { font-size: var(--ph-fs-sub, 12px); opacity: 0.85; margin-top: 2px; }
.mt-bp-head .btn-view-primary { background: transparent; color: var(--mt-on-brand); border-color: var(--mt-on-brand); }
.mt-sheet-pg .mt-sheet-x { color: var(--mt-on-brand); }
.mt-bp-day { padding: 14px 4px 6px; font-size: var(--ph-fs-meta, 11px); font-weight: 700; color: var(--mt-sub); }
.mt-bp-tick { color: var(--mt-tint-text); }
.mt-bp-row { transition: transform 0.26s ease, opacity 0.26s ease; touch-action: pan-y; }
.mt-bp-going { transform: translateX(-100%); opacity: 0; }
.mt-bp-row { display: flex; align-items: stretch; gap: 4px; border-bottom: 1px solid var(--mt-hair); }
.mt-bp-tick { flex: none; width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--mt-sub); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.mt-bp-tick svg { width: 22px; height: 22px; }
.mt-bp-msg { flex: 1; min-width: 0; min-height: 44px; padding: 6px 4px; border: 0; background: transparent; color: var(--mt-text); text-align: left; font: inherit; cursor: pointer; display: block; }
.mt-bp-t { display: inline; font-size: var(--ph-fs-body, 13px); font-weight: 600; }
.mt-bp-unread .mt-bp-t { font-weight: 700; }
.mt-bp-t::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--tn-fg, var(--mt-info-fg)); }
.mt-bp-row:not(.mt-bp-unread) .mt-bp-t::before { opacity: 0.45; }
.mt-bp-row { border-bottom-color: var(--tn-fg, var(--mt-hair)); }
.mt-bp-x { display: block; font-size: var(--ph-fs-meta, 11px); line-height: 1.4; color: var(--mt-sub); }
.mt-bp-at { display: inline; font-size: var(--ph-fs-meta, 11px); color: var(--mt-muted); margin-right: 6px; }
.mt-bp-row .mt-bp-t { color: var(--tn-fg); }
.mt-bp-wrap { position: relative; }
.mt-bp-wrap.mt-bp-swiping { background: var(--color-fail); }
.mt-bp-wrap.mt-bp-swiping::before { content: "Swipe to remove"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; padding: 0 16px; box-sizing: border-box; color: var(--mt-on-danger); font-size: var(--ph-fs-meta, 13px); font-weight: 600; }
.mt-bp-wrap.mt-bp-swiping.mt-bp-sw-right::before { justify-content: flex-start; }
.mt-bp-wrap .mt-bp-row { position: relative; z-index: 1; background: var(--mt-surface); }
@media (prefers-reduced-motion: reduce) {
  .mt-pull, .mt-pull.mt-pull-drag { transition: opacity 0.15s linear; }
  body.mt-on .fe-overlay.modal-overlay.open > .modal-box { animation: mtFeFade 0.12s linear; }
  body.mt-on .fe-overlay.modal-overlay.open { animation-duration: 0.12s; }
  .mt-tabbar, .mt-tab, .mt-sheet-back, .mt-sheet { transition: opacity 0.15s linear; }
  .mt-tabbar.mt-tabbar-hide { transform: none; opacity: 0; }
  .mt-tabbar.mt-tabbar-typing { transform: none; opacity: 0; }
  .mt-tab:active { transform: none; }
  .mt-sheet { transform: none; opacity: 0; transition: opacity 0.15s linear; }
  .mt-sheet-back.open .mt-sheet { opacity: 1; }
  .mt-mark-pulse .mt-mark-dot { animation: mt-mark-fade 2.6s ease-in-out infinite; }
  .mt-mark-spin .mt-mark-dot svg { animation: none; }
  .mt-sheet.mt-sheet-pg { transform: none; opacity: 0; transition: opacity 0.15s linear; }
  .mt-sheet-back.open .mt-sheet.mt-sheet-pg { opacity: 1; }
}
body.mt-on .wa-combo-input { min-height: 44px; font-size: var(--ph-fs-input, 16px); color: var(--mt-text); background: var(--mt-surface); border-color: var(--mt-border); }
body.mt-on .wa-combo-list { background: var(--mt-surface); color: var(--mt-text); border-color: var(--mt-border); box-shadow: var(--mt-shadow); max-height: 264px; }
body.mt-on .wa-combo-opt, body.mt-on .wa-combo-none { min-height: 44px; box-sizing: border-box; padding: 12px; font-size: var(--ph-fs-input, 16px); line-height: 20px; }
body.mt-on .wa-combo-none, body.mt-on .wa-combo-ph { color: var(--mt-sub); }
body.mt-on .wa-combo-act { background: var(--mt-press); }
@media (hover: hover) { body.mt-on .wa-combo-opt:hover { background: var(--mt-press); } }
body.mt-on .wa-combo-input:focus { outline: none; border-color: var(--mt-brand); }
body.mt-on .wa-cl-btn { min-height: 44px; font-size: var(--ph-fs-input, 16px); color: var(--mt-text); background: var(--mt-surface); border-color: var(--mt-border); }
body.mt-on .wa-cl-btn:focus-visible, body.mt-on .wa-cl-btn[aria-expanded="true"] { border-color: var(--mt-brand); }
body.mt-on .wa-cl-chev { color: var(--mt-sub); font-size: var(--ph-fs-meta, 12px); }
body.mt-on .wa-cl-panel { background: var(--mt-surface); color: var(--mt-text); border-color: var(--mt-border); box-shadow: var(--mt-shadow); max-height: 264px; }
body.mt-on .wa-cl-opt { min-height: 44px; box-sizing: border-box; padding: 12px; font-size: var(--ph-fs-input, 16px); color: var(--mt-text); }
body.mt-on .wa-cl-opt input { width: 20px; height: 20px; }
@media (hover: hover) { body.mt-on .wa-cl-opt:hover { background: var(--mt-press); } }
body.mt-on .wa-cl-none { color: var(--mt-sub); font-size: var(--ph-fs-input, 16px); padding: 12px; }
.mt-mark-ring { position: absolute; top: 2px; left: 2px; width: 40px; height: 40px; transform: rotate(-90deg); pointer-events: none; }
.mt-mark-ring circle { fill: none; stroke: var(--mt-brand); stroke-width: 2.5; stroke-linecap: round; }
.mt-mark-info .mt-mark-ring circle { stroke: var(--mt-info-fg); }
.mt-mark-info .mt-mark-dot { color: var(--mt-info-fg); }
.mt-up { padding: 0 0 8px 26px; }
.mt-up-n { font-size: var(--ph-fs-list, 13px); overflow-wrap: anywhere; }
.mt-up-bar { height: 6px; margin: 6px 0 4px; border-radius: 3px; background: var(--mt-border); overflow: hidden; }
.mt-up-bar i { display: block; height: 100%; background: var(--mt-brand); }
.mt-up[data-state="checking"] .mt-up-bar i { background: var(--mt-info-fg); }
.mt-up-s { font-size: var(--ph-fs-sub, 12px); line-height: 1.4; color: var(--mt-sub); }
.mt-up-b { display: flex; gap: 8px; margin-top: 6px; }
.mt-up-b button { min-height: 44px; }
body:has(.drawer.open) .mt-bell, body:has(.drawer.open) .mt-tabbar { z-index: 99; }
body{opacity:1;animation:none}
