/*
 * StickyBoard: the tool's own components, styled in the site's design language (7 Oct 2026, on the UltraCompress Pro
 * template, after FERTILE). Base: /libs/site-pages.css (tokens, Inter and Space Grotesk, buttons, theme toggle, focus rings)
 * and /libs/shared-nav.css (the site's header and footer). This file holds only what the tool itself needs: the eight note
 * colours with a dark set, the toolbar with the status pill, the board list and the board tools, the kanban row of columns
 * (sideways scroll, snapping on phones), the sticky notes with their actions, due marks and drag states, the add-column ghost,
 * the archive card, the windows with the colour picker, the toasts and the information sections. Light is the default; dark
 * applies when <html> has no data-theme.
 */

/* ----- Tokens the tool adds ----- */
:root {
    --surface: #ffffff;
    --surface-2: #f3f4f8;
    --ring: rgba(139, 92, 246, 0.18);
    --app-max: 1600px;
    --radius-lg: 16px;
    --ok: #166534; --warn: #92400e; --bad: #b91c1c;
    --note-yellow: #fef3c7; --note-yellow-edge: #f6d56a;
    --note-pink: #fce7f3; --note-pink-edge: #f5a8cf;
    --note-blue: #dbeafe; --note-blue-edge: #93bdf7;
    --note-green: #d1fae5; --note-green-edge: #7fd9b0;
    --note-purple: #ede9fe; --note-purple-edge: #c4b5fd;
    --note-orange: #fed7aa; --note-orange-edge: #f7b36a;
    --note-red: #fecaca; --note-red-edge: #f49a9a;
    --note-cyan: #cffafe; --note-cyan-edge: #76dfe9;
    --note-text: #1f2937; --note-text-2: #4b5563;
    --column-bg: #f3f4f8;
}
:root:not([data-theme="light"]) {
    --surface: #14141f;
    --surface-2: rgba(255, 255, 255, 0.05);
    --ok: #4ade80; --warn: #fbbf24; --bad: #f87171;
    --note-yellow: #3d3416; --note-yellow-edge: #a98a2c;
    --note-pink: #3f2234; --note-pink-edge: #b0558a;
    --note-blue: #1f2d47; --note-blue-edge: #4f7fc2;
    --note-green: #1b3a2d; --note-green-edge: #3f9a6c;
    --note-purple: #2d2746; --note-purple-edge: #7c6bc0;
    --note-orange: #42301a; --note-orange-edge: #b27a35;
    --note-red: #432224; --note-red-edge: #b25555;
    --note-cyan: #163a40; --note-cyan-edge: #3d9aa8;
    --note-text: #f3f4f6; --note-text-2: #c7cbd3;
    --column-bg: rgba(255, 255, 255, 0.04);
}

/* ----- Page: full width, the page provides the side space ----- */
.container.app-container { max-width: calc(var(--app-max) + 2 * var(--content-gutter)); margin-top: 16px; }
@media (min-width: 640px) { .container.app-container { margin-top: 24px; } }

/* ----- Tools back link above the header, as on every other tool ----- */
body { padding-top: 0; }
.back-bar { height: 48px; display: flex; align-items: center; padding: 0 var(--zdu-gutter, 24px); }
body > header { position: sticky; top: 0; z-index: 50; }
header .site-nav { position: relative; top: auto; }
.theme-toggle { top: calc(90px + var(--bar-offset, 48px)); }
@media (max-width: 768px) { .theme-toggle { top: calc(75px + var(--bar-offset, 48px)); } }
.hidden-input { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ----- Hero ----- */
.app-hero { margin: 0 0 2rem; text-align: center; }
.app-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 1.25rem; font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--text-strong); }
.app-brand img { width: 44px; height: 44px; border-radius: 12px; display: block; }
.app-hero h1 { margin-bottom: 0.75rem; }
.app-tagline { color: var(--text-2); font-size: 1.125rem; line-height: 1.6; max-width: 46rem; margin: 0 auto; }
.app-note { margin: -1.5rem 0 2.5rem; font-size: 0.85rem; color: var(--text-3); line-height: 1.55; max-width: 70ch; }

/* ----- Buttons ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 9999px; font-family: inherit; font-weight: 600; font-size: 0.95rem; line-height: 1.2; padding: 12px 24px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--gradient-brand); color: #fff; box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3); }
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--text-strong); border: 1px solid var(--surface-border); padding: 11px 23px; }
.btn-secondary:hover:not(:disabled) { border-color: var(--brand); color: var(--link); transform: translateY(-2px); }
.btn-danger { background: var(--surface); color: var(--danger); border: 1px solid rgba(185, 28, 28, 0.35); padding: 11px 23px; }
.btn-danger:hover:not(:disabled) { background: var(--danger-strong); color: #fff; border-color: transparent; transform: translateY(-2px); }
.btn-sm { font-size: 0.85rem; padding: 9px 16px; }
.btn-secondary.btn-sm { padding: 8px 15px; }
.btn-icon.btn-sm { width: 38px; height: 38px; padding: 0; font-size: 0.95rem; }
.btn-icon.btn-sm svg { width: 17px; height: 17px; }
.btn-stack { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-stack--top { margin-top: 14px; }

/* ----- Toolbar ----- */
.app-shell { margin: 0 0 3rem; scroll-margin-top: 90px; }
.app-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 0 0 12px; }
.toolbar-left, .toolbar-right { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 10px; border-radius: 9999px; border: 1px solid var(--tint-brand-border); background: var(--tint-brand); min-width: 200px; max-width: 100%; }
.status-icon { font-size: 1.3rem; line-height: 1; }
.status-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.status-main { font-weight: 700; font-size: 0.85rem; color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-sub { font-size: 0.72rem; color: var(--text-3); }
.jump-select { width: auto; min-width: 190px; max-width: 280px; border-radius: 9999px; padding: 9px 36px 9px 16px; font-size: 0.85rem; font-weight: 600; }
.board-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 16px; }
.search-box { position: relative; flex: 1 1 240px; max-width: 420px; }
.search-box svg { position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.search-box .form-input { padding-left: 40px; border-radius: 9999px; }
.search-box input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
.search-empty { margin: 0 0 16px; color: var(--text-3); font-size: 0.9rem; }
.search-empty[hidden] { display: none; }
.shell-hint { margin-top: 14px; }
kbd { font-family: inherit; font-size: 0.72rem; font-weight: 700; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--chip-border); background: var(--chip); color: var(--text-strong); }

/* ----- Cards ----- */
.card { background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius-lg); box-shadow: var(--surface-shadow); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.card-header { padding: 14px 20px; border-bottom: 1px solid var(--surface-border); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-title { margin: 0; font-size: 1.05rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card-body { padding: 16px 20px 20px; flex: 1; }
.card-body[hidden] { display: none; }
.card[hidden] { display: none; }
.form-hint { font-size: 0.78rem; color: var(--text-3); margin: 10px 0 0; line-height: 1.5; }
.form-hint--right { text-align: right; margin-top: 4px; }
.count-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 22px; padding: 0 8px; border-radius: 9999px; background: var(--chip); border: 1px solid var(--chip-border); font-size: 0.75rem; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.empty-board { margin-bottom: 16px; }
.empty-board[hidden] { display: none; }
.empty-state { text-align: center; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty-icon { font-size: 2.6rem; line-height: 1; }
.empty-state h2 { margin: 4px 0 0; font-size: 1.3rem; }
.empty-state p { margin: 0 0 12px; color: var(--text-2); max-width: 46ch; }
.empty-state .btn-stack { justify-content: center; }

/* ----- Kanban ----- */
.board-scroll { overflow-x: auto; overflow-y: hidden; padding: 4px 0 14px; margin: 0 0 8px; scrollbar-width: thin; }
.board-scroll[hidden] { display: none; }
.kanban { display: flex; align-items: flex-start; gap: 16px; min-width: min-content; }
.column { flex: 0 0 300px; width: 300px; display: flex; flex-direction: column; background: var(--column-bg); border: 1px solid var(--surface-border); border-radius: var(--radius-lg); max-height: 70vh; min-height: 220px; transition: box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.2s ease; }
.column.is-dragging { opacity: 0.4; }
.column.drag-over { border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
.column.col-target-before { box-shadow: -4px 0 0 0 var(--brand); }
.column.col-target-after { box-shadow: 4px 0 0 0 var(--brand); }
.column-header { display: flex; align-items: center; gap: 8px; padding: 12px 12px 10px 14px; cursor: grab; }
.column-header:active { cursor: grabbing; }
.column-name { flex: 1; min-width: 0; margin: 0; font-size: 0.95rem; font-weight: 700; color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.column-actions { display: flex; gap: 4px; }
.column-body { flex: 1; min-height: 60px; overflow-y: auto; padding: 2px 10px 6px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; }
.column-footer { padding: 8px 10px 10px; }
.add-note-btn, .add-column-btn { width: 100%; padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--chip-border); background: transparent; font-family: inherit; font-size: 0.88rem; font-weight: 600; color: var(--text-2); cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease; }
.add-note-btn:hover, .add-column-btn:hover { border-color: var(--brand); color: var(--link); background: var(--tint-brand); }
.add-note-btn:focus-visible, .add-column-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.add-column-btn { flex: 0 0 240px; width: 240px; min-height: 120px; border-radius: var(--radius-lg); font-size: 0.95rem; }
.icon-btn { width: 30px; height: 30px; border-radius: 9px; border: 1px solid transparent; background: transparent; font-size: 0.85rem; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-2); flex-shrink: 0; transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease; }
.icon-btn:hover { border-color: var(--brand); color: var(--link); background: var(--surface); }
.icon-btn.is-danger:hover { border-color: var(--danger); color: var(--danger); }
.icon-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ----- Sticky notes ----- */
.note { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 10px; border-radius: 12px; background: var(--note-bg, var(--note-yellow)); border: 1px solid var(--note-edge, var(--note-yellow-edge)); border-left-width: 5px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); color: var(--note-text); cursor: grab; transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease; }
.note:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12); }
.note:active { cursor: grabbing; }
.note.is-dragging { opacity: 0.35; transform: none; }
.note.filtered-out { display: none; }
.note.is-archived { cursor: default; flex: 1 1 260px; max-width: 360px; }
.note.is-archived:hover { transform: none; }
.note-yellow { --note-bg: var(--note-yellow); --note-edge: var(--note-yellow-edge); } .note-pink { --note-bg: var(--note-pink); --note-edge: var(--note-pink-edge); }
.note-blue { --note-bg: var(--note-blue); --note-edge: var(--note-blue-edge); } .note-green { --note-bg: var(--note-green); --note-edge: var(--note-green-edge); }
.note-purple { --note-bg: var(--note-purple); --note-edge: var(--note-purple-edge); } .note-orange { --note-bg: var(--note-orange); --note-edge: var(--note-orange-edge); }
.note-red { --note-bg: var(--note-red); --note-edge: var(--note-red-edge); } .note-cyan { --note-bg: var(--note-cyan); --note-edge: var(--note-cyan-edge); }
.note-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.note-title { margin: 0; font-size: 0.95rem; font-weight: 700; line-height: 1.3; color: var(--note-text); overflow-wrap: anywhere; }
.note-actions { display: flex; gap: 2px; flex-shrink: 0; opacity: 0.55; transition: opacity 0.2s ease; }
.note:hover .note-actions, .note:focus-within .note-actions { opacity: 1; }
@media (hover: none) { .note-actions { opacity: 1; } }
.note-actions .icon-btn { width: 26px; height: 26px; font-size: 0.75rem; color: var(--note-text-2); }
.note-actions .icon-btn:hover { background: rgba(255, 255, 255, 0.5); }
:root:not([data-theme="light"]) .note-actions .icon-btn:hover { background: rgba(0, 0, 0, 0.3); }
.note-description { margin: 0; font-size: 0.85rem; line-height: 1.45; color: var(--note-text-2); white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.note-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.72rem; color: var(--note-text-2); }
.note-due { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 9999px; background: rgba(255, 255, 255, 0.55); font-weight: 600; color: var(--note-text); }
:root:not([data-theme="light"]) .note-due { background: rgba(0, 0, 0, 0.3); }
.note-due.due-soon { background: #fde68a; color: #78350f; }
.note-due.overdue { background: #fca5a5; color: #7f1d1d; }
.note-from { font-style: italic; }
.drag-placeholder { height: 56px; border-radius: 12px; border: 2px dashed var(--brand); background: var(--tint-brand); flex-shrink: 0; }
.archive-card { margin-top: 8px; }
.archive-notes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.archive-empty { color: var(--text-3); font-size: 0.9rem; margin: 10px 0 0; }

/* ----- Forms in windows ----- */
.form-group { margin-bottom: 14px; }
.form-group:last-child { margin-bottom: 0; }
.form-group[hidden] { display: none; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.form-label { display: block; margin-bottom: 6px; font-size: 0.85rem; font-weight: 600; color: var(--text-strong); }
.form-input { width: 100%; min-width: 0; padding: 10px 14px; background: var(--field); border: 1px solid var(--field-border); border-radius: 12px; font-family: inherit; font-size: 0.95rem; color: var(--text); outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.form-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
.form-input::placeholder { color: var(--placeholder); }
textarea.form-input { resize: vertical; min-height: 80px; }
select.form-input { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 14px; cursor: pointer; }
select.form-input option { color: #0a0a14; background: #fff; }
.form-error { margin: 6px 0 0; font-size: 0.8rem; color: var(--danger); }
.form-error:empty { display: none; }
.color-picker { display: flex; flex-wrap: wrap; gap: 10px; }
.color-option { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--note-edge); background: var(--note-bg); cursor: pointer; padding: 0; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.color-option:hover { transform: scale(1.1); }
.color-option[aria-checked="true"] { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--brand); }
.color-option:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* ----- Windows ----- */
.modal-overlay { position: fixed; inset: 0; background: rgba(10, 10, 20, 0.6); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 1000; opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.lock-overlay { background: rgba(10, 10, 20, 0.86); backdrop-filter: blur(14px); z-index: 1100; }
.modal { background: var(--surface); border: 1px solid var(--surface-border); border-radius: 20px; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35); width: 100%; max-width: 520px; max-height: 92vh; overflow: hidden; display: flex; flex-direction: column; transform: translateY(12px); transition: transform 0.25s ease; }
.modal--narrow { max-width: 420px; }
.modal-overlay.active .modal { transform: translateY(0); }
.modal-header { padding: 18px 20px; border-bottom: 1px solid var(--surface-border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-title { margin: 0; font-size: 1.15rem; }
.modal-close { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--chip-border); background: var(--chip); color: var(--text-strong); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: border-color 0.2s ease, color 0.2s ease; }
.modal-close:hover { border-color: var(--brand); color: var(--link); }
.modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.modal-footer { padding: 14px 20px; border-top: 1px solid var(--surface-border); display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.modal-footer--center { justify-content: center; }
.confirm-message { margin: 0; color: var(--text); }
.result-body { text-align: center; }
.result-icon { font-size: 3.2rem; line-height: 1; margin-bottom: 8px; animation: pop 0.4s ease; }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.result-message { color: var(--text-2); margin: 6px 0 14px; }

/* ----- Toasts ----- */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; max-width: calc(100vw - 32px); }
.toast { background: #0a0a14; color: #fff; border: 1px solid rgba(255, 255, 255, 0.12); border-left: 4px solid var(--brand); border-radius: 14px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3); min-width: 260px; max-width: 400px; font-size: 0.875rem; font-weight: 500; overflow-wrap: anywhere; animation: slideIn 0.3s ease; transition: opacity 0.3s ease, transform 0.3s ease; }
.toast-icon { font-size: 1.1rem; line-height: 1; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast.success { border-left-color: #4ade80; } .toast.error { border-left-color: #f87171; } .toast.warning { border-left-color: #fbbf24; } .toast.info { border-left-color: #38bdf8; }
.toast.leaving { opacity: 0; transform: translateX(40px); }

/* ----- Information sections ----- */
.info-section { margin: 0 0 2.5rem; }
.info-section h2 { font-size: 1.75rem; margin: 0 0 1.25rem; }
.info-section > p { max-width: 70ch; }
.info-section .info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 1rem 0 1.5rem; }
.info-stack { display: grid; gap: 12px; }
.info-card { background: var(--surface); border: 1px solid var(--surface-border); border-radius: 16px; box-shadow: var(--surface-shadow); padding: 20px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.info-card:hover { transform: translateY(-4px); box-shadow: var(--surface-hover-shadow); }
.info-card--small { padding: 16px; box-shadow: none; }
.info-card h3 { margin: 0 0 0.75rem; font-size: 1.15rem; }
.info-card p { color: var(--text-2); margin-bottom: 0.75rem; }
.info-card p:last-child { margin-bottom: 0; }
.info-section article:not(.info-card) p { color: var(--text-2); max-width: 70ch; }
.step-card { position: relative; padding-top: 24px; }
.step-num { position: absolute; top: -16px; left: 20px; width: 34px; height: 34px; border-radius: 50%; background: var(--gradient-brand); color: #fff; font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3); }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 0.75rem; }
.step-head h3 { margin: 0; }
.step-emoji { font-size: 1.6rem; line-height: 1; }
.info-section details.info-card { padding: 0; }
.info-section details.info-card summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--text-strong); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.info-section details.info-card summary::-webkit-details-marker { display: none; }
.info-section details.info-card summary::after { content: '+'; color: var(--link); font-weight: 700; font-size: 1.2rem; line-height: 1; flex-shrink: 0; }
.info-section details.info-card[open] summary::after { content: '\2212'; }
.info-section details.info-card p { padding: 0 20px 16px; margin: 0; color: var(--text-2); }

/* ----- Tablets ----- */
@media (max-width: 1023px) {
    .info-section .info-grid { grid-template-columns: repeat(2, 1fr); }
    .info-three { grid-template-columns: 1fr; }
}

/* ----- Phones ----- */
@media (max-width: 639px) {
    .app-hero { margin-bottom: 1.5rem; }
    .app-tagline { font-size: 1rem; }
    .app-toolbar { gap: 10px; }
    .toolbar-left, .toolbar-right { width: 100%; }
    .status-pill { flex: 1; min-width: 0; }
    .jump-select { flex: 1 1 100%; max-width: none; }
    .board-tools { gap: 10px; }
    .search-box { flex-basis: 100%; max-width: none; }
    .board-tools .btn-stack { width: 100%; }
    .board-tools .btn-stack .btn { flex: 1 1 calc(50% - 4px); }
    .board-scroll { scroll-snap-type: x mandatory; scroll-padding-left: var(--content-gutter); scroll-padding-right: var(--content-gutter); margin-left: calc(-1 * var(--content-gutter)); margin-right: calc(-1 * var(--content-gutter)); padding-left: var(--content-gutter); padding-right: var(--content-gutter); }
    .column { flex-basis: 84vw; width: 84vw; scroll-snap-align: start; max-height: none; }
    .column-body { overflow-y: visible; }
    .add-column-btn { flex-basis: 60vw; width: 60vw; scroll-snap-align: start; }
    .card-header { padding-left: 16px; padding-right: 16px; }
    .card-body { padding: 14px 16px 16px; }
    .empty-state { padding: 28px 8px; }
    .form-row { grid-template-columns: 1fr; }
    .modal-overlay { padding: 8px; }
    .modal-body, .modal-header, .modal-footer { padding-left: 16px; padding-right: 16px; }
    .toast-container { bottom: 16px; right: 16px; left: 16px; align-items: flex-end; }
    .toast { min-width: 0; }
    .info-section h2 { font-size: 1.4rem; }
    .info-section .info-grid, .info-three { grid-template-columns: 1fr; }
    .info-card { padding: 16px; }
    .step-num { left: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .btn, .info-card, .modal, .toast, .note, .column, .color-option, .add-note-btn, .add-column-btn { transition: none; animation: none; }
}

/* Phones: 16 px text, 44 px tap targets (AdSense audit H-04, 8 Oct 2026) */
@media (max-width: 639.98px) {
    main button, main select, main summary, main [role="button"],
    main input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]) { min-height: 44px; }
    section#app-shell.app-shell > p.form-hint.shell-hint { font-size: 1rem; }
    main button#deleteBoardBtn, main button#renameBoardBtn { min-width: 44px; }
}
