:root {
  --canvas: #f3f6fb; --sidebar: #e8eef8; --card: #ffffff; --hover: #eef3fb; --line: #d9e1ee;
  --ink: #14223c; --muted: #5a6882; --accent: #2969cd; --accent-ink: #ffffff; --tint: #e3edfc;
  --warning: #a33a12; --high: #8c430d; --sat: #1f5fc4; --sun: #c0392b; --sat-tint: #f1f6ff; --sun-tint: #fff4f3;
  --shadow: 0 1px 2px rgb(20 34 60 / .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #161b24; --sidebar: #1c2230; --card: #1f2633; --hover: #283142; --line: #313b4d;
    --ink: #eef2f9; --muted: #a3afc4; --accent: #7fb0fa; --accent-ink: #0e1a2f; --tint: #22324d;
    --warning: #ffad80; --high: #ffbd78; --sat: #8fb8ff; --sun: #ff9a8f; --sat-tint: #1d2638; --sun-tint: #2a2026;
    --shadow: none;
    color-scheme: dark;
  }
}
* { box-sizing: border-box }
html, body { margin: 0; height: 100% }
body { background: var(--canvas); color: var(--ink); font: 14px/1.6 "Segoe UI", "Yu Gothic UI", "Hiragino Sans", Meiryo, system-ui, sans-serif; -webkit-text-size-adjust: 100% }
button, input, select, textarea { font: inherit; color: inherit }
button { cursor: pointer }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }

/* Layout */
.shell { display: grid; grid-template-columns: 228px 1fr; min-height: 100vh }
.side { background: var(--sidebar); padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; font-weight: 600; font-size: 17px }
.brand img { width: 30px; height: 30px }
.brand small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); line-height: 1.2 }
.nav { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 0; border-radius: 8px; background: none; text-align: left; font-size: 14px; color: var(--ink) }
.nav:hover { background: var(--hover) }
.nav[aria-current="page"] { background: var(--card); color: var(--accent); font-weight: 600; box-shadow: var(--shadow) }
.nav svg { width: 18px; height: 18px; flex: none }
.status { margin-top: auto; padding: 10px 12px; font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); margin-top: 6px; flex: none }
.status.ok .dot { background: #2e9d5b } .status.busy .dot { background: var(--accent) } .status.error .dot { background: var(--warning) }
main { padding: 32px 40px 60px; min-width: 0 }
.page { max-width: 900px; margin: 0 auto }

/* Header */
.head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 23px }
.head h1 { margin: 0; font-size: 30px; line-height: 1.25; font-weight: 600 }
.head p { margin: 5px 0 0; color: var(--muted) }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 6px 14px; border-radius: 7px;
  border: 1px solid var(--line); background: var(--card); white-space: nowrap }
.btn:hover { background: var(--hover) }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600 }
.btn.primary:hover { filter: brightness(1.08) }
.btn.on { background: var(--tint); border-color: var(--accent); color: var(--accent); font-weight: 600 }
.btn:disabled { opacity: .5; cursor: default }
.btn.danger { color: var(--warning) }
.icon-btn { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 7px; background: none; display: inline-grid; place-items: center; color: var(--muted); flex: none }
.icon-btn:hover { background: var(--hover) }
.icon-btn svg { width: 17px; height: 17px }

/* Cards and lists */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow) }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 22px }
.metric { display: flex; align-items: center; gap: 10px; padding: 12px; text-align: left; border-radius: 12px; border: 1px solid var(--line); background: var(--card) }
.metric:hover { background: var(--hover) }
.metric .badge { width: 34px; height: 34px; border-radius: 8px; background: var(--tint); color: var(--accent); display: grid; place-items: center; flex: none }
.metric .badge svg { width: 16px; height: 16px }
.metric b { display: block; font-size: 24px; font-weight: 600; line-height: 1.2 }
.metric span { font-size: 12px; color: var(--muted) }
.section-head { display: flex; align-items: center; gap: 6px; margin: 0 0 8px }
.section-head h2 { margin: 0 auto 0 0; font-size: 18px; font-weight: 600 }
.list { margin-bottom: 20px }
.row { display: flex; align-items: center; gap: 4px; padding: 6px 8px 6px 10px; min-height: 58px }
.row + .row { border-top: 1px solid var(--line); margin: 0 13px; padding-left: 0; padding-right: 0 }
.row .lead { width: 32px; height: 32px; display: grid; place-items: center; flex: none; color: var(--accent) }
.row .lead svg { width: 18px; height: 18px }
.row button.lead { border: 0; background: none; border-radius: 7px; color: var(--muted) }
.row button.lead:hover { background: var(--hover) }
.row button.lead.done { color: var(--accent) }
.row .words { flex: 1; min-width: 0; padding: 0 5px 0 7px }
.row .title { font-weight: 600; overflow-wrap: anywhere }
.row .title.done { color: var(--muted); text-decoration: line-through }
.row .detail { font-size: 12px; color: var(--muted) }
.row .detail.late { color: var(--warning) }
.row .notes { font-size: 12px; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.prio { font-size: 11px; font-weight: 600; border: 1px solid var(--line); border-radius: 5px; padding: 1px 7px; min-width: 39px; text-align: center; flex: none }
.prio.high { color: var(--high); background: var(--hover) } .prio.low { color: var(--muted) }
.empty { padding: 15px; color: var(--muted) }
.filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px }
.filters .cap { font-size: 12px; font-weight: 600; color: var(--muted); margin-right: 2px }
.note { color: var(--muted); font-size: 12px; margin: -6px 2px 12px }
.now { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 20px }
.now > div { padding: 14px 16px }
.now > div + div { border-left: 1px solid var(--line) }
.now small { color: var(--muted); font-size: 12px; display: block }
.now b { display: block; font-size: 15px; overflow-wrap: anywhere }
.now span { color: var(--muted); font-size: 12px }

/* Calendar */
.cal { padding: 13px; margin-bottom: 19px }
.cal-bar { display: flex; align-items: center; gap: 4px; margin: 0 2px 10px }
.cal-bar h2 { margin: 0 auto 0 0; font-size: 22px; font-weight: 600 }
.week, .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)) }
.week div { text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); padding: 2px 0 4px }
.week .sat, .day.sat .num { color: var(--sat) } .week .sun, .day.sun .num { color: var(--sun) }
.day { height: 62px; margin: 1px; padding: 4px 6px 2px 7px; border: 1px solid var(--line); border-radius: 7px; background: var(--card); text-align: left; display: flex; flex-direction: column; overflow: hidden; min-width: 0 }
.day:hover { background: var(--hover) }
.day.other { opacity: .55 }
.day.sat.cur { background: var(--sat-tint) } .day.sun.cur { background: var(--sun-tint) }
.day.today { border-color: var(--accent) } .day.today .num { color: var(--accent); font-weight: 700 }
.day.sel { background: var(--tint); border-color: var(--accent) }
.day .num { font-size: 13px }
.day .pre { font-size: 11px; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px }
.day .more { font-size: 10px; color: var(--muted) }

/* Schedule */
.sched-bar { display: flex; align-items: center; gap: 4px; margin-bottom: 14px }
.sched-bar .when { margin-right: auto }
.sched-bar h2 { margin: 0; font-size: 22px; font-weight: 600; display: flex; align-items: center; gap: 10px }
.sched-bar h2.sat { color: var(--sat) } .sched-bar h2.sun { color: var(--sun) }
.sched-bar p { margin: 0; color: var(--muted); font-size: 13px }
.mark-today { font-size: 12px; font-weight: 600; color: var(--accent); background: var(--tint); border: 1px solid var(--accent); border-radius: 5px; padding: 0 7px }
.timeline-frame { max-height: calc(100vh - 230px); min-height: 300px; overflow-y: auto; overscroll-behavior: contain }
.timeline { position: relative; height: calc(24 * 52px); margin: 12px 14px 12px 0 }
.hour { position: absolute; left: 0; right: 0; height: 52px; display: flex }
.hour span { width: 58px; text-align: right; padding-right: 10px; font-size: 11px; color: var(--muted); transform: translateY(-8px) }
.hour button { flex: 1; border: 0; border-top: 1px solid var(--line); background: none; border-radius: 0 }
.hour button:hover { background: var(--hover) }
.hour::after { content: ""; position: absolute; left: 58px; right: 0; top: 26px; border-top: 1px dashed var(--line); opacity: .6; pointer-events: none }
.blocks { position: absolute; left: 60px; right: 0; top: 0; bottom: 0; pointer-events: none }
.block { position: absolute; pointer-events: auto; border: 0; border-left: 3px solid var(--accent); border-radius: 6px; background: var(--tint); color: var(--ink); text-align: left; padding: 3px 8px; overflow: hidden; font-size: 12px; line-height: 1.35 }
.block:hover { filter: brightness(.97) }
.block { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: none }
.block.dragging, .block.resizing { z-index: 5; opacity: .85; box-shadow: 0 4px 14px rgba(0,0,0,.18) }
.block.dragging { cursor: move }
.block.resizing { cursor: ns-resize }
.block b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.block span { color: var(--muted) }
.now-line { position: absolute; left: 54px; right: 0; height: 2px; background: var(--sun); pointer-events: none }
.now-line::before { content: ""; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--sun) }

/* Account */
.account { padding: 22px; margin-bottom: 20px }
.account h2 { margin: 0 0 4px; font-size: 18px }
.account p { margin: 0 0 12px; color: var(--muted) }
.account .actions { display: flex; flex-wrap: wrap; gap: 8px }
.account dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 16px }
.account dt { color: var(--muted) } .account dd { margin: 0; overflow-wrap: anywhere }

/* Banner */
.banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 18px; border-radius: 10px; border: 1px solid var(--warning); background: var(--card) }
.banner p { margin: 0 auto 0 0; color: var(--warning) }

/* Dialog */
dialog { border: 0; padding: 0; border-radius: 14px; background: var(--canvas); color: var(--ink); width: min(444px, calc(100vw - 24px)); max-height: calc(100vh - 24px); box-shadow: 0 24px 60px -20px rgb(0 0 0 / .45) }
dialog::backdrop { background: rgb(10 20 40 / .45) }
.editor { padding: 23px }
.editor h2 { margin: 0 0 15px; font-size: 22px; font-weight: 600 }
.field { margin-bottom: 11px }
.field > label, .field > .cap { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px }
.field input[type="text"], .field input[type="date"], .field input[type="time"], .field select, .field textarea {
  width: 100%; min-height: 36px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--card) }
.field textarea { height: 70px; resize: vertical }
.inline { display: flex; gap: 6px; align-items: center }
.inline > input, .inline > select { flex: 1 }
.choices { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px }
.error { color: var(--warning); font-size: 12px; margin: 4px 0 10px; min-height: 0 }
.foot { display: flex; gap: 6px; margin-top: 8px }
.foot .spacer { margin-left: auto }

/* Sign in */
.signin { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #cfe0fa }
@media (prefers-color-scheme: dark) { .signin { background: #1b2d4f } }
.signin-card { width: 100%; max-width: 460px; background: var(--card); border-radius: 18px; padding: 44px 36px 36px; text-align: center; box-shadow: 0 24px 60px -24px rgb(10 30 70 / .5) }
.signin-card img { width: 88px; height: 88px }
.signin-card h1 { margin: 20px 0 8px; font-size: 25px }
.signin-card p { margin: 0 0 22px; color: var(--muted) }
.gbtn { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px; border-radius: 22px; border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: 15px }
.gbtn:hover { background: var(--hover) }
.gbtn svg { width: 20px; height: 20px }
.fine { margin-top: 26px !important; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; text-align: left }
.fine a { color: var(--accent) }
.signin .error { margin-top: 14px }

/* Phones: the navigation moves to the bottom */
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr }
  .side { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; z-index: 5; flex-direction: row; justify-content: space-around; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); gap: 0; border-top: 1px solid var(--line) }
  .brand, .status { display: none }
  .nav { flex-direction: column; gap: 1px; padding: 6px 4px; font-size: 10px; flex: 1; min-width: 0; align-items: center; text-align: center }
  .nav[aria-current="page"] { box-shadow: none }
  main { padding: 18px 14px 90px }
  .head h1 { font-size: 24px }
  .head .btn.primary .long { display: none }
  .metrics { gap: 6px }
  .metric { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px }
  .metric b { font-size: 20px }
  .now { grid-template-columns: 1fr }
  .now > div + div { border-left: 0; border-top: 1px solid var(--line) }
  .day { height: 54px; padding: 3px 4px }
  .day .pre { font-size: 10px }
  .cal { padding: 8px }
  .timeline-frame { max-height: none }
  .mobile-status { display: block !important }
}
.mobile-status { display: none; font-size: 12px; color: var(--muted); margin: -14px 0 16px }
@media (prefers-reduced-motion: no-preference) { .btn, .nav, .day, .metric { transition: background-color .12s } }

/* ---------- Phone screen (1.3.0): used when the page sees a phone (html.phone), whatever the width ---------- */
.dots { display: none }
html.phone body { font-size: 15px; background: var(--canvas) }
.pshell { min-height: 100vh; min-height: 100dvh }
.appbar { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 10px; padding: calc(8px + env(safe-area-inset-top)) 8px 8px 16px;
  background: var(--canvas); border-bottom: 1px solid var(--line) }
.appbar-icon { width: 28px; height: 28px; flex: none }
.appbar-text { flex: 1; min-width: 0 }
.appbar h1 { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 700 }
.appbar p { margin: 0; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.appbar p span + span::before { content: "・" }
.appbar p .pstatus:empty { display: none }
.sync-btn { position: relative; width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: none; color: var(--muted); display: grid; place-items: center }
.sync-btn:active { background: var(--hover) }
.sync-btn svg { width: 22px; height: 22px }
.sync-btn .dot { position: absolute; right: 8px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); border: 2px solid var(--canvas) }
.sync-btn.ok .dot { background: #2e9d5b } .sync-btn.busy .dot { background: var(--accent) } .sync-btn.error .dot { background: var(--warning) }
@media (prefers-reduced-motion: no-preference) { .sync-btn.busy svg { animation: spin 1s linear infinite } }
@keyframes spin { to { transform: rotate(360deg) } }
.pshell .pmain { display: block; padding: 14px 12px calc(100px + env(safe-area-inset-bottom)); max-width: 640px; margin: 0 auto }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; background: var(--card); border-top: 1px solid var(--line);
  padding: 4px 2px calc(4px + env(safe-area-inset-bottom)) }
.tab { flex: 1; min-width: 0; min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px 0;
  border: 0; background: none; color: var(--muted); font-size: 11px; line-height: 1.2; -webkit-tap-highlight-color: transparent }
.tab svg { width: 22px; height: 22px; padding: 3px 16px; box-sizing: content-box; border-radius: 15px }
.tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100% }
.tab[aria-current="page"] { color: var(--accent); font-weight: 600 }
.tab[aria-current="page"] svg { background: var(--tint) }
.fab { position: fixed; right: 16px; bottom: calc(78px + env(safe-area-inset-bottom)); z-index: 6; width: 56px; height: 56px; border: 0; border-radius: 18px;
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 6px 18px -4px rgb(0 0 0 / .35); -webkit-tap-highlight-color: transparent }
.fab:active { filter: brightness(1.1) }
.fab svg { width: 26px; height: 26px; stroke-width: 2.4 }
html.phone .banner { flex-wrap: wrap; padding: 10px 12px; margin-bottom: 12px; font-size: 13px }
html.phone .btn { min-height: 40px; padding: 6px 14px; border-radius: 10px }
html.phone .icon-btn { width: 44px; height: 44px }

/* Phone: today, lists, To Do */
html.phone .metrics { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px }
html.phone .metric { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px; border-radius: 14px }
html.phone .metric b { font-size: 22px }
html.phone .metric span { font-size: 11px; line-height: 1.3 }
html.phone .now { grid-template-columns: 1fr 1fr; margin-bottom: 16px; border-radius: 14px }
html.phone .now > div { padding: 12px }
html.phone .section-head { margin: 4px 2px 8px }
html.phone .section-head h2 { font-size: 16px }
html.phone .card { border-radius: 14px }
html.phone .list { margin-bottom: 16px }
html.phone .row { min-height: 64px; padding: 4px 6px; gap: 2px }
html.phone .row + .row { margin: 0 10px; padding: 4px 0 }
html.phone .row .lead { width: 44px; height: 44px }
html.phone .row .lead svg { width: 23px; height: 23px }
html.phone .row .words { padding: 8px 6px; cursor: pointer; border-radius: 8px; -webkit-tap-highlight-color: transparent }
html.phone .row .words:active { background: var(--hover) }
html.phone .row .title { font-size: 15px }
html.phone .row .detail, html.phone .row .notes { font-size: 12.5px }
html.phone .row .icon-btn { display: none }
html.phone .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -12px; margin-right: -12px; padding: 0 12px 2px }
html.phone .filters::-webkit-scrollbar { display: none }
html.phone .filters .btn { border-radius: 18px; min-height: 36px; flex: none }
html.phone .note { margin: 2px 4px 12px; font-size: 12px }

/* Phone: calendar with dots */
html.phone .cal { padding: 10px 6px 8px }
html.phone .cal-bar { margin: 0 4px 6px }
html.phone .cal-bar h2 { font-size: 18px }
html.phone .day { height: 50px; margin: 0; padding: 4px 0 2px; align-items: center; border: 0; border-radius: 10px; background: none }
html.phone .day.sat.cur, html.phone .day.sun.cur { background: none }
html.phone .day.sel { background: var(--tint) }
html.phone .day .num { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-size: 14px }
html.phone .day.today .num { background: var(--accent); color: var(--accent-ink) }
html.phone .day .pre, html.phone .day .more { display: none }
html.phone .dots { display: flex; gap: 3px; margin-top: 3px; height: 6px }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent) }
.dots i.todo { background: var(--muted) }

/* Phone: schedule with the week strip */
.wmonth { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 4px 4px }
.wstrip { display: grid; grid-template-columns: 28px repeat(7, minmax(0, 1fr)) 28px; align-items: center; margin: 0 -6px 6px }
.wstrip .arrow { height: 60px; border: 0; background: none; color: var(--muted); font-size: 22px; padding: 0 }
.wday { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 0; border: 0; border-radius: 12px; background: none; color: var(--muted); font-size: 11px; -webkit-tap-highlight-color: transparent }
.wday b { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font-size: 16px; font-weight: 600; color: var(--ink) }
.wday i { width: 5px; height: 5px; border-radius: 50% }
.wday i.on { background: var(--accent) }
.wday.sat span, .wday.sat b { color: var(--sat) } .wday.sun span, .wday.sun b { color: var(--sun) }
.wday.today b { color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent) }
.wday.sel b { background: var(--accent); color: var(--accent-ink); box-shadow: none }
.sched-sub { display: flex; align-items: center; gap: 8px; min-height: 40px; margin: 0 2px 10px; font-size: 13px; color: var(--muted) }
.sched-sub span { margin-right: auto }
html.phone .timeline-frame { min-height: 260px }
html.phone .timeline { margin: 10px 10px 10px 0 }
html.phone .hour span { width: 48px }
html.phone .hour::after { left: 48px }
html.phone .blocks { left: 50px }
html.phone .now-line { left: 44px }
html.phone .block { border-radius: 8px; padding: 4px 8px }

/* Phone: settings */
html.phone .account { padding: 16px }
html.phone .account dl { grid-template-columns: 1fr; gap: 0 }
html.phone .account dd { margin-bottom: 8px }

/* Phone: editors open from the bottom */
html.phone dialog { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 20px 20px 0 0; max-height: 92vh; max-height: 92dvh;
  padding-bottom: env(safe-area-inset-bottom); overscroll-behavior: contain }
html.phone dialog:focus { outline: none }
@media (prefers-reduced-motion: no-preference) { html.phone dialog[open] { animation: sheet-up .22s ease-out } }
@keyframes sheet-up { from { transform: translateY(40%); opacity: .4 } }
html.phone .editor { padding: 8px 18px 14px }
html.phone .editor::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px }
html.phone .editor h2 { font-size: 19px; margin-bottom: 12px }
html.phone .field input[type="text"], html.phone .field input[type="date"], html.phone .field input[type="time"], html.phone .field select, html.phone .field textarea {
  font-size: 16px; min-height: 44px; border-radius: 10px }
html.phone .field textarea { height: 84px }
html.phone .foot { position: sticky; bottom: 0; background: var(--canvas); padding: 10px 0 4px; margin-top: 4px }
html.phone .foot .btn { min-height: 46px; padding: 6px 16px }
.chooser .pick { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); text-align: left }
.chooser .pick:active { background: var(--hover) }
.chooser .pick .badge { width: 42px; height: 42px; border-radius: 12px; background: var(--tint); color: var(--accent); display: grid; place-items: center; flex: none }
.chooser .pick .badge svg { width: 22px; height: 22px }
.chooser .pick b { display: block; font-size: 16px }
.chooser .pick small { color: var(--muted); font-size: 12px }
.btn.wide { width: 100%; min-height: 46px; margin-top: 4px }
html.phone .section-head { flex-wrap: wrap }
html.phone .section-head h2 { white-space: nowrap }
html.phone .editor h2:focus { outline: none }
html.phone .now > div + div { border-top: 0; border-left: 1px solid var(--line) }
