/* Kanban Tasker - Material look of the original Flutter app (blue app bar, cards, bottom navigation with a docked
   button, bottom sheets). Light by default; Settings > Dark mode switches to the dark theme of that app. */

:root {
  --primary: #2196f3;
  --primary-dark: #1976d2;
  --on-primary: #fff;
  --accent: #2196f3;
  --on-accent: #fff;
  --bg: #fafafa;
  --surface: #fff;
  --surface-2: #f5f5f5;
  --text: rgba(0, 0, 0, 0.87);
  --text-2: rgba(0, 0, 0, 0.6);
  --text-3: rgba(0, 0, 0, 0.38);
  --divider: rgba(0, 0, 0, 0.12);
  --hover: rgba(0, 0, 0, 0.05);
  --red: #e53935;
  --orange: #ef6c00;
  --grey: #9e9e9e;
  --due-bg: #e3f2fd;
  --due-text: #455a64;
  --due-soon-bg: #fff3e0;
  --due-over-bg: #ffebee;
  --shadow-1: 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 1px rgba(0, 0, 0, 0.14), 0 2px 1px -1px rgba(0, 0, 0, 0.12);
  --shadow-2: 0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px rgba(0, 0, 0, 0.14), 0 1px 18px rgba(0, 0, 0, 0.12);
  --shadow-3: 0 11px 15px -7px rgba(0, 0, 0, 0.2), 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12);
  --radius: 4px;
  --bar: 56px;
  --font: Roboto, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --primary: #212121;
  --primary-dark: #000;
  --on-primary: #fff;
  --accent: #64ffda;
  --on-accent: #000;
  --bg: #303030;
  --surface: #424242;
  --surface-2: #383838;
  --text: #fff;
  --text-2: rgba(255, 255, 255, 0.7);
  --text-3: rgba(255, 255, 255, 0.5);
  --divider: rgba(255, 255, 255, 0.12);
  --hover: rgba(255, 255, 255, 0.08);
  --red: #ef5350;
  --orange: #ffa726;
  --due-bg: #37474f;
  --due-text: #cfd8dc;
  --due-soon-bg: #4e342e;
  --due-over-bg: #4a2323;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; -webkit-tap-highlight-color: transparent; }
body { overflow: hidden; overscroll-behavior: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
[hidden] { display: none !important; }

.boot { height: 100%; display: grid; place-items: center; }
.boot img { border-radius: 22px; opacity: 0.9; }

.icon { width: 24px; height: 24px; fill: currentColor; flex: none; display: block; }

/* --- frame ---------------------------------------------------------------------------------------------------- */
#app { height: 100%; }
.app { height: 100%; display: flex; flex-direction: column; padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left); }
.screen { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.content { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.content.narrow > * { max-width: 720px; margin-left: auto; margin-right: auto; }

.appbar { flex: none; height: var(--bar); background: var(--primary); color: var(--on-primary); display: flex; align-items: center; gap: 4px; padding: 0 4px; box-shadow: var(--shadow-1); position: relative; z-index: 3; }
.appbar h1 { flex: 1; margin: 0 0 0 12px; font-size: 20px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar .icon-btn { color: inherit; }
.appbar .text-btn { color: var(--on-primary); font-size: 16px; font-weight: 500; letter-spacing: 0.5px; padding: 0 16px; height: 40px; }
.appbar .sync-dot { width: 8px; height: 8px; border-radius: 50%; background: #ffca28; margin: 0 8px; }
.appbar .sync-dot.off { background: #ef5350; }

.icon-btn { width: 48px; height: 48px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--text-2); flex: none; padding: 0; }
.icon-btn:hover { background: var(--hover); }
.icon-btn:disabled { opacity: 0.38; cursor: default; }
.icon-btn.accent { color: var(--accent); }

.text-btn { border: 0; background: none; color: var(--accent); font-weight: 500; text-transform: uppercase; font-size: 14px; letter-spacing: 0.75px; padding: 0 12px; height: 36px; border-radius: var(--radius); cursor: pointer; }
.text-btn:hover:not(:disabled) { background: var(--hover); }
.text-btn:disabled { color: var(--text-3); cursor: default; }
.text-btn.danger { color: var(--red); }
.text-btn.danger:disabled { color: var(--text-3); }
.btn { border: 0; background: var(--accent); color: var(--on-accent); font-weight: 500; font-size: 15px; letter-spacing: 0.5px; padding: 0 20px; height: 40px; border-radius: var(--radius); cursor: pointer; box-shadow: var(--shadow-1); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.outline { background: none; color: var(--accent); box-shadow: none; border: 1px solid var(--divider); }
.btn.wide { width: 100%; }

/* bottom navigation with the docked add button */
.bottombar { flex: none; height: calc(var(--bar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--surface); display: flex; position: relative; z-index: 3; box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.15); }
.bottombar .tab { flex: 1; border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--text-2); font-size: 12px; cursor: pointer; }
.bottombar .tab.on { color: var(--accent); font-size: 14px; }
.bottombar .gap { width: 72px; flex: none; }
.fab { position: absolute; left: 50%; top: -28px; transform: translateX(-50%); width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-2); display: grid; place-items: center; cursor: pointer; }
.fab .icon { width: 28px; height: 28px; }
.fab:active { box-shadow: var(--shadow-3); }

/* --- home screen ---------------------------------------------------------------------------------------------- */
.home { padding: 4px 0 40px; }
.main-card { margin: 8px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.main-card > h2 { margin: 0; padding: 16px 16px 8px; font-size: 20px; font-weight: 500; }
.main-card .empty { padding: 16px; color: var(--text); }
.main-card .actions { display: flex; justify-content: flex-end; gap: 4px; padding: 4px 8px 8px; }
.main-card .more-note { padding: 0 16px 8px; color: var(--text-2); font-size: 14px; }
.main-line { display: flex; align-items: center; min-height: 64px; }
.main-line .what { flex: 1; min-width: 0; padding: 12px 16px; cursor: pointer; }
.main-line .what:hover { background: var(--hover); }
.main-line .title { font-size: 16px; overflow-wrap: anywhere; }
.main-line .sub { font-size: 14px; color: var(--grey); margin-top: 4px; }
.main-line .pick { padding: 0 12px; }
.due-over { color: var(--red) !important; }
.due-soon { color: var(--orange) !important; }
.lane-name { font-weight: 500; }

/* radios, checkboxes, switches */
input[type="radio"], input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); margin: 14px; cursor: pointer; flex: none; }
.switch-row { display: flex; align-items: center; gap: 16px; padding: 12px 16px; cursor: pointer; min-height: 56px; }
.switch-row:hover { background: var(--hover); }
.switch-row .label { flex: 1; min-width: 0; }
.switch-row .label b { display: block; font-weight: 700; font-size: 16px; }
.switch-row .label small { display: block; color: var(--text-2); font-size: 14px; margin-top: 2px; line-height: 1.35; }
.switch-row .icon { color: var(--text-2); }
.switch { position: relative; width: 36px; height: 20px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; margin: 0; position: absolute; inset: 0; cursor: pointer; z-index: 1; }
.switch .track { position: absolute; inset: 3px 0; border-radius: 7px; background: rgba(0, 0, 0, 0.38); transition: background 0.15s; }
.switch .thumb { position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: #fafafa; box-shadow: var(--shadow-1); transition: transform 0.15s, background 0.15s; }
.switch input:checked ~ .track { background: color-mix(in srgb, var(--accent) 50%, transparent); }
.switch input:checked ~ .thumb { transform: translateX(16px); background: var(--accent); }
.switch input:focus-visible ~ .thumb { outline: 2px solid var(--accent); outline-offset: 2px; }
:root[data-theme="dark"] .switch .track { background: rgba(255, 255, 255, 0.3); }
:root[data-theme="dark"] .switch .thumb { background: #bdbdbd; }

/* --- board ---------------------------------------------------------------------------------------------------- */
.lanebar { flex: none; display: flex; align-items: center; gap: 8px; padding: 12px 8px 12px 16px; background: var(--bg); }
.lanebar select { flex: 1; min-width: 0; }
.board { flex: 1; min-height: 0; position: relative; overflow: hidden; }
.lane { position: absolute; inset: 0; display: flex; }
.lane.enter-up { animation: lane-up 0.25s ease-out; }
.lane.enter-down { animation: lane-down 0.25s ease-out; }
@keyframes lane-up { from { transform: translateY(-40%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lane-down { from { transform: translateY(40%); opacity: 0; } to { transform: none; opacity: 1; } }
.columns { flex: 1; min-width: 0; display: flex; gap: 0; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-left: 16px; padding: 16px 0 16px 16px; scrollbar-width: thin; }
.columns::after { content: ""; flex: 0 0 8px; }
.column { flex: 0 0 min(calc(100vw - 112px), 340px); margin-right: 16px; scroll-snap-align: start; scroll-snap-stop: always; border-radius: var(--radius); display: flex; flex-direction: column; min-height: 0; }
.column-head { flex: none; display: flex; align-items: center; min-height: 48px; padding: 0 0 0 16px; }
.column-head h3 { flex: 1; margin: 0; font-size: 16px; font-weight: 700; text-align: center; padding: 12px 0; overflow-wrap: anywhere; }
.column-head .spacer { width: 48px; flex: none; }
.column-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 8px 8px; }
.column-body .empty { text-align: center; padding: 24px 8px; opacity: 0.75; }
.column-body .more { display: flex; justify-content: center; }
.lane-arrows { flex: none; width: 64px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 16px 8px; touch-action: none; user-select: none; }
.lane-arrows .arrow { width: 46px; height: 46px; border-radius: 10px; border: 0; background: #a6a6a6; color: #000; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-1); }
.lane-arrows .arrow .icon { width: 36px; height: 36px; }
.lane-arrows .arrow:disabled { visibility: hidden; }
.lane-arrows .dots { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.lane-arrows .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(0, 0, 0, 0.25); }
.lane-arrows .dots i.on { background: rgba(0, 0, 0, 0.65); width: 8px; height: 8px; }
.column-nav { position: absolute; bottom: 8px; left: 16px; display: none; gap: 4px; }
@media (hover: hover) and (pointer: fine) {
  .column-nav { display: flex; }
  .column-nav .icon-btn { width: 36px; height: 36px; background: var(--surface); box-shadow: var(--shadow-1); color: var(--text); }
}

.item { background: var(--surface); color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow-1); margin-top: 8px; padding: 8px; cursor: pointer; user-select: none; }
.item:hover { box-shadow: var(--shadow-2); }
.item > * { padding: 8px; }
.item .type { font-weight: 700; padding-bottom: 0; }
.item .title { font-weight: 600; overflow-wrap: anywhere; }
.item .stamp { font-weight: 400; color: var(--text-2); font-size: 14px; white-space: nowrap; }
.item .desc { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
.item .desc button { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 700; cursor: pointer; }
.item .rule { color: var(--text-2); font-size: 14px; }
.item.dragging { opacity: 0.4; }
.column.drop { outline: 3px dashed rgba(0, 0, 0, 0.35); outline-offset: -3px; }
.due { display: inline-flex; align-items: center; gap: 8px; background: var(--due-bg); color: var(--due-text); border-radius: var(--radius); padding: 6px 10px !important; margin: 8px; font-weight: 700; font-size: 14px; }
.due .icon { width: 20px; height: 20px; opacity: 0.8; }
.due.soon { background: var(--due-soon-bg); color: var(--orange); }
.due.over { background: var(--due-over-bg); color: var(--red); }

/* --- forms ---------------------------------------------------------------------------------------------------- */
.form { padding: 8px 0 48px; }
.field { padding: 16px 16px 0; }
.field > label, .section-title { display: block; color: var(--accent); font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.section-title { padding: 16px 16px 0; margin: 0; }
.input-wrap { display: flex; align-items: flex-end; gap: 4px; border-bottom: 1px solid var(--text-3); }
.input-wrap:focus-within { border-bottom: 2px solid var(--accent); margin-bottom: -1px; }
.input-wrap.error { border-bottom-color: var(--red); }
.input-wrap input, .input-wrap textarea { flex: 1; min-width: 0; border: 0; background: none; padding: 8px 0; outline: none; font-size: 17px; resize: none; }
.input-wrap textarea { min-height: 40px; max-height: 40vh; field-sizing: content; }
.field .error-text { color: var(--red); font-size: 13px; margin-top: 4px; }
.field .hint { color: var(--text-2); font-size: 13px; margin-top: 4px; }
select { width: 100%; height: 44px; border: 0; border-bottom: 1px solid var(--text-3); background: transparent; padding: 0 4px; font-size: 17px; cursor: pointer; outline: none; }
select:focus { border-bottom: 2px solid var(--accent); }
select option { background: var(--surface); color: var(--text); }
input[type="date"], input[type="time"], input[type="email"], input[type="password"], input[type="text"].plain, input[type="file"] { border: 0; border-bottom: 1px solid var(--text-3); background: transparent; height: 44px; padding: 0 4px; font-size: 17px; outline: none; }
input[type="date"]:focus, input[type="time"]:focus, input.plain:focus { border-bottom: 2px solid var(--accent); }
input[type="file"] { border: 0; height: auto; padding: 8px 0; font-size: 15px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row.nowrap { flex-wrap: nowrap; }
.due-row { gap: 8px; }
.due-row input[type="date"] { flex: 1 1 150px; min-width: 0; max-width: 180px; }
.due-row input[type="time"] { flex: 1 1 110px; min-width: 0; max-width: 140px; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--text-2); }
.small { font-size: 14px; }
.panel { margin: 8px 16px 0; border: 1px solid var(--divider); border-radius: var(--radius); }
.panel-head { display: flex; align-items: center; gap: 16px; padding: 12px 16px; cursor: pointer; min-height: 56px; }
.panel-head:hover { background: var(--hover); }
.panel-head .grow b { display: block; }
.panel-head .chev { transition: transform 0.15s; color: var(--text-2); }
.panel.open .panel-head .chev { transform: rotate(180deg); }
.radio-row { display: flex; align-items: center; cursor: pointer; padding-right: 16px; min-height: 48px; }
.radio-row:hover { background: var(--hover); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 4px 0 12px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--divider); font-size: 14px; }
.chip button { border: 0; background: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--text-2); padding: 0; }
.chip button .icon { width: 18px; height: 18px; }
.chip.toggle { padding: 0 12px; cursor: pointer; user-select: none; }
.chip.toggle.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.chip-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 8px 0; }
.chip-grid .chip { justify-content: center; padding: 0; border-radius: 8px; }
.setting { padding: 12px 16px; cursor: pointer; display: block; }
.setting:hover { background: var(--hover); }
.setting .t { color: var(--accent); font-size: 15px; font-weight: 500; }
.setting .v { font-size: 18px; margin-top: 4px; }
.setting .s { color: var(--text-2); font-size: 14px; margin-top: 2px; }
.setting.static { cursor: default; }
.setting.static:hover { background: none; }
.settings-group { border-top: 1px solid var(--divider); margin-top: 8px; padding-top: 8px; }
.settings-group > h2 { font-size: 14px; font-weight: 500; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.8px; margin: 8px 16px; }
.footer-note { text-align: center; color: var(--text-2); font-size: 13px; padding: 24px 16px 40px; }
.footer-note a { color: inherit; }

/* --- overlays ------------------------------------------------------------------------------------------------- */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 20; display: flex; align-items: center; justify-content: center; padding: 24px; animation: fade 0.15s; }
.scrim.bottom { align-items: flex-end; padding: 0; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(40px); opacity: 0.5; } }
.dialog { background: var(--surface); color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow-3); width: min(100%, 440px); max-height: calc(100dvh - 48px); display: flex; flex-direction: column; animation: rise 0.15s; }
.dialog.wide { width: min(100%, 560px); }
.dialog > h2 { margin: 0; padding: 20px 24px 12px; font-size: 20px; font-weight: 600; }
.dialog > h2.warn { color: var(--red); }
.dialog .body { padding: 0 24px 8px; overflow-y: auto; line-height: 1.45; }
.dialog .body .field { padding-left: 0; padding-right: 0; }
.dialog .actions { display: flex; justify-content: flex-end; gap: 8px; padding: 8px 8px 8px 24px; flex-wrap: wrap; }
.sheet { background: var(--surface); color: var(--text); width: min(100%, 640px); max-height: 85dvh; overflow-y: auto; border-radius: 8px 8px 0 0; box-shadow: var(--shadow-3); padding-bottom: calc(8px + env(safe-area-inset-bottom)); animation: rise 0.18s; }
.sheet > h2 { margin: 0; padding: 16px; font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.sheet > .desc { padding: 0 16px 16px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2); }
.sheet .action { display: flex; align-items: center; gap: 32px; width: 100%; border: 0; background: none; color: var(--accent); padding: 0 16px; height: 56px; font-size: 16px; text-align: left; cursor: pointer; }
.sheet .action:hover { background: var(--hover); }
.sheet .action.danger { color: var(--red); }
.sheet .pickers { display: flex; gap: 8px; padding: 0 16px 16px; }
.sheet .pickers label { flex: 1; display: flex; flex-direction: column; gap: 4px; color: var(--text-2); font-size: 14px; }
.sheet .sheet-head { display: flex; align-items: center; justify-content: flex-end; padding: 4px 8px; }
.sheet .sheet-head h2 { flex: 1; margin: 0; padding: 12px 8px; font-size: 18px; }
.palette { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px 0; }
.palette button { aspect-ratio: 1.6; border: 1px solid var(--divider); border-radius: var(--radius); cursor: pointer; padding: 0; display: grid; place-items: center; }
.palette button.on { outline: 3px solid var(--accent); outline-offset: 2px; }
.palette button .icon { width: 20px; height: 20px; }
.snack { position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30; background: var(--accent); color: var(--on-accent); padding: 12px 16px; border-radius: var(--radius); box-shadow: var(--shadow-2); font-weight: 600; display: flex; gap: 16px; align-items: center; max-width: calc(100% - 32px); animation: rise 0.15s; }
.snack.plain { background: #323232; color: #fff; }
.snack button { border: 0; background: none; color: inherit; font-weight: 700; text-transform: uppercase; cursor: pointer; padding: 4px; opacity: 0.9; }
.snack.nobar { bottom: calc(24px + env(safe-area-inset-bottom)); }

/* popup menu of the board's app bar */
.scrim.menu-scrim { background: transparent; padding: 0; display: block; animation: none; }
.menu { position: fixed; background: var(--surface); color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow-2); min-width: 180px; padding: 8px 0; animation: fade 0.12s; }
.menu-item { display: block; width: 100%; text-align: left; border: 0; background: none; font-size: 16px; height: 44px; padding: 0 16px; cursor: pointer; }
.menu-item:hover, .menu-item:focus-visible { background: var(--hover); outline: none; }

/* reorder */
.reorder-list { list-style: none; margin: 0; padding: 0; }
.reorder-list li { display: flex; align-items: center; min-height: 56px; padding-left: 16px; border-bottom: 1px solid var(--divider); background: var(--bg); touch-action: pan-y; user-select: none; }
.reorder-list li .name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.reorder-list li .handle { touch-action: none; cursor: grab; }
.reorder-list li.lifted { background: var(--surface); box-shadow: var(--shadow-2); position: relative; z-index: 2; }
.title-view { padding: 16px; color: var(--accent); font-weight: 500; }

/* speech */
.speech { position: fixed; inset: 0; z-index: 25; background: var(--bg); display: flex; flex-direction: column; padding-top: env(safe-area-inset-top); }
.speech .example { padding: 16px; font-size: 18px; white-space: pre-line; text-align: center; }
.speech .heard { flex: 1; min-height: 0; background: var(--surface); position: relative; display: flex; }
.speech textarea { flex: 1; border: 0; background: none; padding: 16px; font-size: 20px; resize: none; outline: none; }
.speech .mic { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; cursor: pointer; transition: box-shadow 0.08s; }
.speech .mic .icon { width: 30px; height: 30px; }
.speech .state { flex: none; background: var(--primary); color: var(--on-primary); text-align: center; padding: 20px; padding-bottom: calc(20px + env(safe-area-inset-bottom)); font-weight: 700; }
.speech .problem { padding: 0 16px 16px; color: var(--red); text-align: center; }

/* sign in */
.signin { flex: 1; overflow-y: auto; display: flex; flex-direction: column; align-items: center; padding: 32px 24px; }
.signin .logo { width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--shadow-2); }
.signin h1 { font-size: 28px; font-weight: 500; margin: 20px 0 4px; }
.signin .lead { color: var(--text-2); text-align: center; max-width: 380px; margin: 0 0 24px; line-height: 1.45; }
.signin form { width: min(100%, 380px); display: flex; flex-direction: column; gap: 16px; }
.signin form input { width: 100%; }
.signin .error-text { color: var(--red); font-size: 14px; }
.signin .switch-mode { margin-top: 16px; }
.signin .by { margin-top: auto; padding-top: 32px; color: var(--text-2); font-size: 13px; }
.signin .by a { color: inherit; }

@media (min-width: 900px) {
  .home { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); align-items: start; max-width: 1100px; margin: 0 auto; padding: 16px 8px 40px; }
}
