:root {
  --bg: #0b0e14; --bg-2: #11151d; --col: #141922; --card: #1b212c; --card-hover: #212836;
  --line: #262d3b; --line-2: #323b4d; --text: #e6e9f0; --muted: #8b94a7; --faint: #5b6478;
  --accent: #6d8bff; --accent-2: #9b6dff; --danger: #ff6b6b; --ok: #4cd08a;
  --shadow: 0 8px 28px rgba(0,0,0,.45); --radius: 10px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, Menlo, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f1f3f8; --bg-2: #ffffff; --col: #e7eaf2; --card: #ffffff; --card-hover: #f6f8fd;
  --line: #d7dce8; --line-2: #c3cadb; --text: #1b2130; --muted: #5d667a; --faint: #8a93a6;
  --accent: #4a6cf7; --accent-2: #7a4df5; --danger: #d93f3f; --ok: #1f9d5b;
  --shadow: 0 8px 24px rgba(30,40,70,.18);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
@supports (height: 100dvh) { html, body { height: 100dvh; } }
button, .card, .col-head, .tab { -webkit-tap-highlight-color: transparent; }
body { background: var(--bg); color: var(--text); font: 14px/1.45 var(--font); display: flex; flex-direction: column; overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.brand { margin: 0; font: inherit; display: contents; }   /* the h1 around the logo link: no visual change */
.nojs { width: min(640px, 100%); padding: 6px 4px 20px; }
.nojs h2 { margin: 0 0 10px; font-size: 22px; letter-spacing: -.3px; }
.nojs p, .nojs li { line-height: 1.6; }
.nojs a { color: var(--accent); }

/* nav */
.nav { display: flex; align-items: center; gap: 18px; height: 52px; padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); flex: none; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; flex: none; }
.logo-text { font-weight: 700; font-size: 16px; letter-spacing: -.2px; }
.logo-sub { color: var(--muted); font-weight: 500; }
/* board tabs: a scrolling strip with arrows over its edges, the + and the all-boards list pinned to its right */
.tabbar { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.tabs-scroll { position: relative; flex: 1; min-width: 0; }
.tabs { display: flex; align-items: center; gap: 4px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs.fade-l { -webkit-mask-image: linear-gradient(to right, transparent, #000 34px); mask-image: linear-gradient(to right, transparent, #000 34px); }
.tabs.fade-r { -webkit-mask-image: linear-gradient(to left, transparent, #000 34px); mask-image: linear-gradient(to left, transparent, #000 34px); }
.tabs.fade-l.fade-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 34px, #000 calc(100% - 34px), transparent); mask-image: linear-gradient(to right, transparent, #000 34px, #000 calc(100% - 34px), transparent); }
.tabs-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 26px; height: 30px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 7px; background: none; color: var(--muted); }
.tabs-arrow[hidden] { display: none; }
.tabs-arrow.left { left: 0; background: linear-gradient(to right, var(--bg-2) 55%, transparent); }
.tabs-arrow.right { right: 0; background: linear-gradient(to left, var(--bg-2) 55%, transparent); }
.tabs-arrow:hover { color: var(--text); }
.icon-btn.boards-btn { display: inline-flex; align-items: center; justify-content: center; width: auto; gap: 5px; padding: 0 8px; flex: none; }
.icon-btn.boards-btn[hidden] { display: none; }
.boards-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tab-add { flex: none; font-size: 18px; line-height: 1; }
.menu.boards-menu { width: min(300px, calc(100vw - 16px)); padding: 6px; display: flex; flex-direction: column; }
.boards-menu input { width: 100%; margin: 0 0 6px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: inherit; }
.boards-menu input:focus { outline: none; border-color: var(--accent); }
.boards-list { overflow-y: auto; min-height: 0; }
.boards-menu .menu-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; background: none; text-align: left; }
.boards-menu .menu-item:hover, .boards-menu .menu-item:focus-visible { background: var(--card); outline: none; }
.boards-menu .menu-item .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.boards-menu .menu-item .ct { font-size: 12px; color: var(--faint); }
.boards-menu .menu-item.on { color: var(--accent); font-weight: 600; }
.boards-menu .menu-empty { padding: 10px; color: var(--muted); }
.tab { -webkit-touch-callout: none; user-select: none; display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--muted); white-space: nowrap; }
.tab:hover { background: var(--card); color: var(--text); }
.tab.active { background: var(--card); border-color: var(--line-2); color: var(--text); font-weight: 600; }
.tab .tab-act { display: none; margin-left: 2px; padding: 0 3px; border: 0; background: none; color: var(--faint); border-radius: 4px; line-height: 1.3; }
.tab.active .tab-act { display: inline; }
.tab .tab-act:hover { color: var(--text); background: var(--line); }
.tab .tab-act.del:hover { color: var(--danger); }
.tab-add { padding: 5px 9px; }
.tab-input { width: 150px; }
.nav-right { display: flex; align-items: center; gap: 8px; flex: none; }
.search { width: 180px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }
.search:focus { outline: none; border-color: var(--accent); }
/* copyright: part of the page, after the board. Short boards put it at the bottom of the screen, long ones after the last card. */
.site-foot { flex: none; position: sticky; left: 0; width: 100%; box-sizing: border-box; padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); text-align: center; font-size: 12px; color: var(--faint); }
.site-foot a { color: inherit; text-decoration: none; }
.site-foot a:hover, .site-foot a:focus-visible { color: var(--text); text-decoration: underline; }
.icon-btn.coffee { text-decoration: none; }
.icon-btn.coffee:hover { color: #ffb020; }
.coffee-dialog { width: min(480px, calc(100vw - 24px)); max-height: calc(100svh - 24px); padding: 0; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg-2); color: var(--text); overflow: hidden; }
.coffee-dialog::backdrop { background: rgba(5,8,14,.7); }
.coffee-dialog[open] { display: flex; flex-direction: column; }
html:has(.coffee-dialog[open]) { overflow: hidden; }
.coffee-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line); }
.coffee-head h2 { margin: 0; font-size: 16px; }
.coffee-body { flex: 1; min-height: 0; overflow: auto; background: #f9f9f9; padding-top: 10px; }
.coffee-body iframe { display: block; width: 100%; height: min(590px, calc(100svh - 200px)); min-height: 420px; border: 0; }
.coffee-note { margin: 0; padding: 12px 18px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); }
.coffee-note a { color: var(--text); }

/* plain document pages (privacy) */
body.doc { display: block; overflow: auto; height: auto; min-height: 100%; }
body.doc .nav { position: sticky; top: 0; z-index: 20; }
.nav-spacer { flex: 1; }
a.nav-btn { text-decoration: none; }
.doc-wrap { max-width: 720px; margin: 0 auto; padding: 30px 16px 40px; }
.doc-wrap h1 { margin: 0 0 4px; font-size: 30px; letter-spacing: -.4px; }
.doc-wrap h2 { margin: 30px 0 8px; font-size: 18px; }
.doc-wrap p, .doc-wrap li { line-height: 1.65; color: var(--text); }
.doc-wrap li { margin: 6px 0; }
.doc-wrap ul { padding-left: 22px; }
.doc-wrap a, .doc-foot a { color: var(--accent); }
.doc-meta { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.doc-lead { font-size: 16px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); }
.doc-foot { max-width: 720px; margin: 0 auto; padding: 18px 16px calc(34px + env(safe-area-inset-bottom)); text-align: center; color: var(--faint); font-size: 12.5px; border-top: 1px solid var(--line); }
.doc-foot p { margin: 0; }
.doc-foot a { color: var(--muted); }
.nav-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 8px; background: none; color: var(--muted); }
.nav-btn:hover { background: var(--card); color: var(--text); border-color: var(--line-2); }
.nav-btn .dot { position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: #ffb020; border: 2px solid var(--bg-2); }
.drop-hint { position: fixed; inset: 10px; z-index: 950; display: grid; place-items: center; border: 2px dashed var(--accent); border-radius: 16px; background: rgba(60,80,160,.28); color: var(--text); font-size: 20px; font-weight: 700; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 7px; background: none; color: var(--muted); }
.icon-btn:hover { background: var(--card); color: var(--text); }

/* board */
.page { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: auto; overscroll-behavior: contain; }
/* slim, floating scrollbars: an 8px track whose thumb shows as a 4px pill (the transparent border is extra grab area) */
.page::-webkit-scrollbar { height: 8px; width: 8px; }
.page::-webkit-scrollbar-track, .page::-webkit-scrollbar-corner { background: transparent; }
.page::-webkit-scrollbar-thumb { background: var(--line-2); background-clip: padding-box; border: 2px solid transparent; border-radius: 8px; }
.page::-webkit-scrollbar-thumb:hover, .page::-webkit-scrollbar-thumb:active { background: var(--muted); background-clip: padding-box; border: 2px solid transparent; }
@supports not selector(::-webkit-scrollbar) { .page { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; } }   /* Firefox */
.board { flex: 1 0 auto; display: flex; align-items: flex-start; gap: 14px; min-width: max-content; padding: 18px max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left)); }
.col { flex: none; width: 292px; display: flex; flex-direction: column; background: var(--col); border: 1px solid var(--line); border-radius: var(--radius); }
.col-head { display: flex; align-items: center; gap: 6px; padding: 10px 8px 6px 12px; cursor: grab; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
.col-title { flex: 1; min-width: 0; margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-count { font-size: 12px; color: var(--faint); background: var(--bg); border-radius: 10px; padding: 0 8px; }
.col-body { min-height: 8px; padding: 4px 8px 4px; display: flex; flex-direction: column; gap: 8px; }
.col-foot { padding: 6px 8px 8px; }
.add-card, .add-col-btn { width: 100%; text-align: left; padding: 7px 10px; border: 0; border-radius: 8px; background: none; color: var(--muted); }
.add-card:hover, .add-col-btn:hover { background: var(--card); color: var(--text); }
.add-col { flex: none; width: 292px; }
.add-col-btn { border: 1px dashed var(--line-2); padding: 11px 14px; }
.composer textarea, .add-col input, .col-head input, .tab-input, .field, .modal textarea, .modal input[type=text] {
  width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: inherit; resize: none; }
.composer textarea:focus, .add-col input:focus, .col-head input:focus, .tab-input:focus, .field:focus, .modal textarea:focus { outline: none; border-color: var(--accent); }
.composer .row { display: flex; gap: 6px; margin-top: 6px; }
.col-head input { padding: 3px 6px; font-weight: 700; text-transform: uppercase; font-size: 13px; }

/* cards */
.card { position: relative; padding: 9px 11px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; cursor: grab; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; word-break: break-word; box-shadow: 0 1px 0 rgba(0,0,0,.18); }
.card:hover { background: var(--card-hover); border-color: var(--line-2); }
.card-title { white-space: pre-wrap; }
.card-meta { display: flex; gap: 10px; margin-top: 6px; font-size: 12px; color: var(--faint); }
.card-meta:empty { display: none; }
.card-meta .done { color: var(--ok); }
.card.dim { opacity: .28; }
.placeholder { opacity: .25; border-style: dashed; }
.col.placeholder { opacity: .35; }
.ghost { position: fixed !important; z-index: 1000; margin: 0; pointer-events: none; box-shadow: var(--shadow); transform: rotate(2.2deg) scale(1.02); transition: transform .12s; cursor: grabbing; }
.ghost.col { transform: rotate(1.2deg); }
.ghost.tab { background: var(--card); border-color: var(--line-2); color: var(--text); transform: rotate(1.5deg); }
body.dragging, body.dragging * { cursor: grabbing !important; user-select: none !important; }
/* the empty background can be dragged to pan the board, but only when there is something to scroll */
.page.can-pan, .page.can-pan .board, .page.can-pan .col, .page.can-pan .col-body, .page.can-pan .col-foot { cursor: grab; }
body.panning, body.panning * { cursor: grabbing !important; user-select: none !important; }

/* buttons */
.btn { padding: 7px 14px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; color: #fff; font-weight: 600; }
.btn.primary:hover { filter: brightness(1.1); }
.btn.danger { color: var(--danger); }
.btn.danger.solid { background: var(--danger); border-color: transparent; color: #fff; }
.btn.small { padding: 4px 10px; font-size: 13px; }
.btn.ghost-btn { border-color: transparent; background: none; color: var(--muted); }

/* menu */
.menu { position: fixed; z-index: 900; min-width: 150px; padding: 5px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 9px; box-shadow: var(--shadow); }
.menu button { display: block; width: 100%; padding: 7px 10px; text-align: left; border: 0; border-radius: 6px; background: none; }
.menu button:hover { background: var(--card); }
.menu .danger { color: var(--danger); }

/* modal */
.backdrop { position: fixed; inset: 0; z-index: 800; display: grid; place-items: center; padding: 16px; background: rgba(5,8,14,.62); backdrop-filter: blur(2px); animation: fade .12s; }
.modal { width: min(560px, 100%); max-height: 100%; overflow: auto; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow); animation: pop .14s; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 0; }
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-body { padding: 14px 18px; }
.modal-foot { display: flex; gap: 8px; align-items: center; padding: 0 18px 16px; }
.modal-foot .spacer { flex: 1; }
.modal-body:last-child { padding-bottom: 18px; }
.modal textarea { min-height: 170px; resize: vertical; font-family: var(--mono); font-size: 13px; }
.label { display: block; margin: 12px 0 5px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.label:first-child { margin-top: 0; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.seg button { padding: 6px 14px; border: 0; background: none; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--text); font-weight: 600; }
.mdtabs { display: flex; gap: 4px; margin: 12px 0 5px; }
.mdtabs button { padding: 3px 10px; border: 0; border-radius: 6px; background: none; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.mdtabs button.on { background: var(--card); color: var(--text); }
.preview { min-height: 170px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.preview > :first-child { margin-top: 0; } .preview > :last-child { margin-bottom: 0; }
.preview h3, .preview h4, .preview h5 { margin: 12px 0 6px; }
.preview p { margin: 6px 0; }
.preview ul, .preview ol { margin: 6px 0; padding-left: 22px; }
.preview a { color: var(--accent); }
.preview code { font-family: var(--mono); font-size: 12.5px; padding: 1px 5px; border-radius: 4px; background: var(--card); }
.preview pre { margin: 8px 0; padding: 10px; border-radius: 8px; background: var(--card); overflow: auto; }
.preview pre code { padding: 0; background: none; }
.preview blockquote { margin: 6px 0; padding: 2px 10px; border-left: 3px solid var(--line-2); color: var(--muted); }
.preview li.task { list-style: none; margin-left: -20px; display: flex; gap: 8px; align-items: baseline; }
.preview li.task .box { flex: none; width: 14px; height: 14px; display: inline-grid; place-items: center; font-size: 10px; line-height: 1; border: 1px solid var(--line-2); border-radius: 4px; transform: translateY(2px); }
.preview li.task.done { color: var(--muted); text-decoration: line-through; }
.preview li.task.done .box { background: var(--ok); border-color: var(--ok); color: #fff; }
/* checklists in the card editor */
.modal textarea.title-field { min-height: 0; font-family: inherit; font-size: 15px; font-weight: 600; }
.cl-create-row { margin-top: 8px; }
.checklists { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.checklists:empty { display: none; }
.cl { padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.cl-head { display: flex; align-items: center; gap: 6px; }
.modal input.cl-title, .modal input.cl-text { padding: 4px 7px; border-color: transparent; background: transparent; }
.modal input.cl-title { flex: 1; font-weight: 700; }
.modal input.cl-title:hover, .modal input.cl-title:focus, .modal input.cl-text:hover, .modal input.cl-text:focus { border-color: var(--line-2); background: var(--card); outline: none; }
.cl-count { min-width: 2.4em; text-align: right; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cl-bar { height: 5px; margin: 6px 0 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.cl-bar i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .2s; }
.cl.complete .cl-bar i { background: var(--ok); }
.cl-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.cl-item { display: flex; align-items: center; gap: 8px; padding-left: 2px; }
.cl-item input[type=checkbox] { flex: none; width: 16px; height: 16px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.modal input.cl-text { flex: 1; min-width: 0; }
.cl-item.done .cl-text { color: var(--muted); text-decoration: line-through; }
.cl-item .icon-btn { width: 24px; height: 24px; opacity: 0; }
.cl-item:hover .icon-btn, .cl-item:focus-within .icon-btn { opacity: 1; }
@media (hover: none) { .cl-item .icon-btn { opacity: .6; } }
.modal .cl-add { margin-top: 6px; }
.hint { color: var(--muted); font-size: 12.5px; margin: 6px 0 0; }
.set-row { display: flex; gap: 8px; flex-wrap: wrap; }

.toast { position: fixed; left: 50%; bottom: 22px; z-index: 1100; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 9px 16px; border-radius: 9px; background: var(--text); color: var(--bg); font-weight: 600; transition: .2s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@media (max-width: 900px) { .nav-btn span { display: none; } .nav-btn { padding: 5px 8px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- phones and tablets ---------- */
.search-toggle { display: none; position: relative; }
.search-toggle .dot { position: absolute; top: 3px; right: 3px; width: 9px; height: 9px; border-radius: 50%; background: #ffb020; border: 2px solid var(--bg-2); }
.search-toggle .dot[hidden] { display: none; }
.card.lifting, .tab.lifting { transform: scale(1.04); box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; }
.col.lifting { transform: scale(1.015); box-shadow: var(--shadow); transition: transform .12s; }
body.dragging .page, body.panning .page { scroll-snap-type: none !important; }

/* narrow screens: two-row top bar (actions, then the board tabs), one column nearly full width that snaps */
@media (max-width: 700px) {
  .nav { flex-wrap: wrap; height: auto; gap: 6px; padding-top: 8px; padding-bottom: 6px; }
  .nav-right { display: contents; }
  .logo { order: 1; margin-right: auto; }
  .icon-btn.coffee { order: 2; }
  #backup-btn { order: 3; }
  #import-btn { order: 4; }
  .search-toggle { order: 5; display: inline-grid; }
  #settings-btn { order: 6; }
  .tabbar { order: 7; flex: 1 1 100%; margin: 2px 0 0; }
  .tabs { padding: 0 2px 2px; }
  .nav .search { order: 8; display: none; flex: 1 1 100%; width: 100%; }
  .nav.searching .search { display: block; }
  .tab-input { width: 140px; }
  .nav-btn span { display: none; }
  .nav-btn { padding: 5px 9px; }
}
@media (max-width: 640px) {
  .col, .add-col { width: min(84vw, 340px); scroll-snap-align: start; }
  .page { scroll-snap-type: x proximity; scroll-padding-inline: 16px; }
  /* dialogs become bottom sheets with the buttons pinned at the bottom */
  .backdrop { padding: 0; place-items: end center; }
  .modal { width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: 16px 16px 0 0; animation: sheet .2s ease-out; }
  .modal-foot { position: sticky; bottom: 0; background: var(--bg-2); border-top: 1px solid var(--line); padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); }
  .modal-body:last-child { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .coffee-dialog { width: calc(100vw - 16px); }
  .doc-wrap h1 { font-size: 26px; }
}
@media (max-width: 379px) { .logo-text { display: none; } }
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } }

/* touch screens: bigger targets, and 16px text in fields so iOS doesn't zoom the page when one is focused */
@media (pointer: coarse), (max-width: 640px) {
  input:not([type=checkbox]):not([type=file]):not(#x), textarea:not(#x), select:not(#x) { font-size: 16px; }   /* :not(#x) outranks the per-field class rules */
}
@media (pointer: coarse) {
  .icon-btn { width: 40px; height: 40px; }
  .nav-btn { min-height: 40px; }
  .tab { min-height: 40px; padding: 0 14px; }
  .tab .tab-act { padding: 8px; margin: 0 -8px 0 -2px; }
  .tab-add { padding: 0 16px; }
  .tabs-arrow { display: none !important; }
  .boards-menu .menu-item { padding: 12px 12px; }
  .icon-btn.boards-btn { min-width: 40px; }
  .add-card, .add-col-btn { min-height: 44px; }
  .card { padding: 12px 13px; font-size: 15px; }
  .btn { min-height: 42px; }
  .btn.small { min-height: 38px; }
  .cl-item input[type=checkbox] { width: 22px; height: 22px; }
  .cl-item .icon-btn { width: 36px; height: 36px; }
  .menu button { padding: 12px 14px; }
  .composer .row { gap: 8px; }
}
