/* Hello Photobooth CRM — même structure que les applications MLOCTET+ (stock, supervision), couleurs Hello Photobooth */
:root {
  /* Palette neutre (en attendant la charte graphique) : zinc, accent noir, couleurs d'état discrètes */
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --text: #18181b;
  --muted: #71717a;
  --border: #e4e4e7;
  --brand: #18181b;
  --brand-ink: #ffffff;
  --brand-soft: #f4f4f5;
  --accent: #18181b;
  --link: #2c5282;
  --nav-bg: #ffffff;
  --nav-ink: #3f3f46;
  --nav-hover: #f4f4f5;
  --nav-active: #f0f0f1;
  --ok: #15803d;
  --ok-soft: #f0fdf4;
  --warn: #a16207;
  --warn-soft: #fefce8;
  --bad: #b91c1c;
  --bad-soft: #fef2f2;
  --info: #1d4ed8;
  --info-soft: #eff6ff;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(24, 24, 27, .04);
  --nav-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0c0c0d; --surface: #161618; --surface-2: #1f1f22; --text: #f4f4f5; --muted: #a1a1aa; --border: #2a2a2e;
  --brand: #f4f4f5; --brand-ink: #18181b; --brand-soft: #232326; --accent: #f4f4f5; --link: #93b4e0; --nav-bg: #111113; --nav-ink: #d4d4d8; --nav-hover: #1c1c1f; --nav-active: #232326;
  --ok: #4ade80; --ok-soft: #10231a; --warn: #facc15; --warn-soft: #2a230c; --bad: #f87171; --bad-soft: #2c1517; --info: #93c5fd; --info-soft: #141f33;
  --shadow: none; color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #0c0c0d; --surface: #161618; --surface-2: #1f1f22; --text: #f4f4f5; --muted: #a1a1aa; --border: #2a2a2e;
  --brand: #f4f4f5; --brand-ink: #18181b; --brand-soft: #232326; --accent: #f4f4f5; --link: #93b4e0; --nav-bg: #111113; --nav-ink: #d4d4d8; --nav-hover: #1c1c1f; --nav-active: #232326;
  --ok: #4ade80; --ok-soft: #10231a; --warn: #facc15; --warn-soft: #2a230c; --bad: #f87171; --bad-soft: #2c1517; --info: #93c5fd; --info-soft: #141f33;
  --shadow: none; color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: var(--bg); color: var(--text); -webkit-tap-highlight-color: transparent; }
a { color: var(--link); text-decoration: none; }
@media (hover: hover) { a:not(.btn):not(.chip):not(.row):not(.card):hover { text-decoration: underline; } }
h1 { font-size: 22px; font-weight: 650; margin: 0 0 4px; letter-spacing: -.01em; }
h2 { font-size: 16px; margin: 0 0 10px; }
h3 { font-size: 15px; margin: 14px 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.right { text-align: right; }
.wordmark { font-weight: 700; letter-spacing: -.02em; }
.wordmark b { font-weight: 400; color: var(--muted); }

/* --- layout --- */
.app { display: flex; min-height: 100vh; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--nav-bg); color: var(--text); border-bottom: 1px solid var(--border); padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top)); }
.topbar .wordmark { font-size: 17px; color: var(--text); }
.topbar a { color: var(--text); display: inline-flex; }
.topbar svg { width: 22px; height: 22px; }
.nav { position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--nav-h) + env(safe-area-inset-bottom)); z-index: 20; display: flex; background: var(--nav-bg); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
.nav .brand, .nav .who, .nav .themequick, .nav a.desk { display: none; }
.nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: 11px; font-weight: 600; position: relative; min-width: 0; }
.nav a svg { width: 23px; height: 23px; flex-shrink: 0; }
.nav a.active { color: var(--text); }
.nav a.active svg { stroke-width: 2.3; }
.nav a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.nav .badge { position: absolute; top: 6px; left: calc(50% + 6px); }
main { flex: 1; min-width: 0; padding: 16px 16px calc(var(--nav-h) + env(safe-area-inset-bottom) + 24px); max-width: 1180px; margin: 0 auto; }
@media (min-width: 900px) {
  .topbar { display: none; }
  .nav { position: sticky; top: 0; height: 100vh; width: 224px; flex: none; flex-direction: column; padding: 16px 10px; gap: 1px; overflow-y: auto; border-top: 0; border-right: 1px solid var(--border); }
  .nav .brand { display: block; padding: 6px 12px 22px; color: var(--text); font-size: 17px; }
  .nav .brand small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }
  .nav a, .nav a.desk { display: flex; flex: none; flex-direction: row; justify-content: flex-start; gap: 10px; font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 8px; color: var(--nav-ink); }
  .nav a.mob { display: none; }
  .nav a:hover { background: var(--nav-hover); color: var(--text); }
  .nav a.active { background: var(--nav-active); color: var(--text); font-weight: 600; }
  .nav a svg { width: 18px; height: 18px; }
  .nav .badge { position: static; margin-left: auto; }
  .nav .themequick { display: flex; margin: auto 12px 6px; }
  .nav .who { display: block; color: var(--muted); font-size: 12.5px; padding: 8px 12px; }
  main { padding: 26px 32px 40px; }
}
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); font-size: 13.5px; }
.back { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.back svg { width: 16px; height: 16px; }

/* --- surfaces --- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); min-width: 0; }
.card + .card, .stack > * + * { margin-top: 12px; }
.grid { display: grid; gap: 12px; }
.grid > .card + .card { margin-top: 0; }
.grid.kpis { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .grid.kpis { grid-template-columns: repeat(4, 1fr); } .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.side { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.kpi { padding: 14px 16px; }
.kpi .v { font-size: 24px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--text); }
.kpi .l { color: var(--muted); font-size: 13px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.card-head h2 { margin: 0; }
.card h2 > svg { width: 18px; height: 18px; vertical-align: -3px; margin-right: 4px; color: var(--muted); }
dl.kv { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 6px 14px; margin: 0; font-size: 14px; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; overflow-wrap: anywhere; }

.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border); }
.list > li:first-child { border-top: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 650; overflow: hidden; text-overflow: ellipsis; }
.list a.row { display: flex; align-items: center; gap: 12px; color: inherit; width: 100%; min-width: 0; }
.datebox { flex: none; width: 48px; text-align: center; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 5px 0; line-height: 1.1; }
.datebox .d { font-size: 19px; font-weight: 700; }
.datebox .m { font-size: 10.5px; font-weight: 600; text-transform: uppercase; color: var(--muted); letter-spacing: .04em; }
.dots { display: inline-flex; gap: 3px; vertical-align: middle; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }

/* --- controls --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; padding: 9px 15px; border-radius: 10px; cursor: pointer; min-height: 42px; white-space: nowrap; }
@media (hover: hover) { .btn:hover { background: var(--surface-2); } }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { opacity: .88; background: var(--brand); }
.btn.danger { color: var(--bad); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { min-height: 34px; padding: 5px 11px; font-size: 13.5px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions.end { justify-content: flex-end; }
.actions.between { justify-content: space-between; }

label.field { display: block; margin-bottom: 12px; min-width: 0; }
label.field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; min-height: 42px; min-width: 0; max-width: 100%; }
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: transparent; }
input[type=checkbox], input[type=radio] { width: 19px; height: 19px; min-height: 0; accent-color: var(--brand); flex: none; }
input[type=color] { padding: 3px; width: 60px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.form-grid { display: grid; gap: 0 12px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } .form-grid.three { grid-template-columns: 1fr 1fr 1fr; } }
fieldset { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px 4px; margin: 0 0 14px; min-width: 0; }
legend { font-weight: 700; font-size: 14px; padding: 0 6px; }
.search-big { position: relative; }
.search-big input { padding-left: 40px; min-height: 46px; }
.search-big svg { position: absolute; left: 12px; top: 13px; width: 20px; height: 20px; color: var(--muted); }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.toolbar .search-big { flex: 1 1 240px; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--border); background: var(--surface); padding: 6px 12px; border-radius: 99px; font: inherit; font-size: 13.5px; cursor: pointer; color: var(--text); }
.chip.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; font-size: 11.5px; font-weight: 700; background: var(--bad); color: #fff; }
.tag { display: inline-block; font-size: 12px; font-weight: 650; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }
.tag.brand { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.tag.info { background: var(--info-soft); color: var(--info); }
.notice { padding: 12px 14px; border-radius: 10px; background: var(--brand-soft); font-size: 14px; }
.notice.warn { background: var(--warn-soft); }
.notice.info { background: var(--info-soft); }
.notice.bad { background: var(--bad-soft); color: var(--bad); }

/* --- tableaux --- */
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12.5px; padding: 6px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.t td { padding: 9px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.t tr.click { cursor: pointer; }
@media (hover: hover) { table.t tr.click:hover td { background: var(--surface-2); } }
table.t tfoot td { border-bottom: 0; font-weight: 600; }
.card:has(table.t), .scroll-x { overflow-x: auto; }
table.lines input { min-height: 36px; padding: 6px 8px; }
table.lines td { padding: 5px 4px; }
table.lines .qtyin { width: 70px; } table.lines .pricein { width: 105px; } table.lines .vatin { width: 70px; }

/* --- planning --- */
.cal-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.cal-head h2 { margin: 0 8px; min-width: 150px; text-transform: capitalize; font-size: 18px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--border); gap: 1px; }
.cal .dow { background: var(--surface-2); text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 6px 0; }
.cal .day { background: var(--surface); min-height: 96px; padding: 4px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; min-width: 0; }
.cal .day.other { background: var(--bg); opacity: .6; }
.cal .day.today .n { background: var(--brand); color: var(--brand-ink); }
.cal .day.sel { outline: 2px solid var(--brand); outline-offset: -2px; }
.cal .n { font-size: 12px; font-weight: 700; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.ev { display: block; font-size: 11.5px; font-weight: 600; line-height: 1.25; padding: 2px 5px; border-radius: 5px; color: #fff; background: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border-left: 3px solid rgba(0, 0, 0, .25); }
.ev.devis, .ev.demande { background: transparent !important; color: var(--text); border: 1.5px dashed var(--muted); }
.ev.terminee { opacity: .55; }
.cal .more { font-size: 11px; color: var(--muted); padding-left: 4px; }
@media (max-width: 700px) {
  .cal .day { min-height: 54px; padding: 2px; }
  .cal .ev { font-size: 0; height: 7px; padding: 0; border: 0; border-radius: 3px; }
  .cal .ev.devis, .cal .ev.demande { border: 1.5px dashed var(--muted); height: 7px; }
  .cal .more { display: none; }
}
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.booth-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 6px; cursor: pointer; }
.booth-row.busy { opacity: .55; cursor: not-allowed; }
.booth-row .grow { flex: 1; min-width: 0; }

/* --- toast / modal --- */
#toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px); z-index: 80; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); }
@media (min-width: 900px) { #toasts { bottom: 24px; } }
.toast { padding: 12px 14px; border-radius: 10px; background: var(--text); color: var(--bg); font-weight: 500; box-shadow: 0 6px 24px rgba(0,0,0,.2); animation: pop .15s ease-out; }
.toast.ok { background: var(--ok); color: #fff; } .toast.bad { background: var(--bad); color: #fff; }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }
.modal { position: fixed; inset: 0; background: rgba(9, 9, 11, .5); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.modal .sheet { background: var(--surface); width: 100%; max-width: 620px; max-height: 92vh; overflow: auto; border-radius: 16px 16px 0 0; padding: 18px; }
.modal .sheet.wide { max-width: 900px; }
@media (min-width: 700px) { .modal { align-items: center; } .modal .sheet { border-radius: 16px; } }
.empty { text-align: center; color: var(--muted); padding: 26px 10px; }
.skeleton { color: var(--muted); padding: 30px; text-align: center; }
iframe.mail-preview { width: 100%; height: 460px; border: 1px solid var(--border); border-radius: 10px; background: #f4f4f5; margin-top: 6px; }
details summary { cursor: pointer; font-weight: 600; }
.tag-list { display: grid; gap: 4px; margin-top: 6px; font-size: 13px; }
.timeline { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.timeline li { padding: 7px 0 7px 14px; border-left: 2px solid var(--border); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.comment { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment .meta { font-size: 12px; color: var(--muted); margin-bottom: 3px; white-space: normal; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.seg-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.seg-tabs a { padding: 9px 12px; font-weight: 650; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 14px; }
.seg-tabs a.on { color: var(--brand); border-bottom-color: var(--brand); }
.perm-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.perm-grid fieldset { margin: 0; }
.perm-grid .check { margin-bottom: 8px; font-size: 14px; }

/* --- liste déroulante avec recherche --- */
.combo { position: relative; display: block; }
.combo-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; margin: 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; max-height: 280px; overflow: auto; box-shadow: 0 10px 28px rgba(9, 9, 11, .12); }
.combo-list li { display: flex; flex-direction: column; gap: 1px; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.combo-list li small { color: var(--muted); }
.combo-list li:hover, .combo-list li.on { background: var(--surface-2); }

/* --- connexion et double authentification (identique aux autres applications) --- */
.login { max-width: 390px; margin: 12vh auto 0; text-align: center; }
.login .wordmark { font-size: 26px; margin: 6px 0 2px; letter-spacing: -.02em; }
.login .auth-body { text-align: left; }
.login h3 { margin: 6px 0 6px; font-size: 17px; }
.qr { background: #fff; padding: 12px; border-radius: 12px; width: 220px; margin: 8px auto 12px; }
.qr img { width: 100%; display: block; image-rendering: pixelated; }
.secret { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; word-break: break-all; background: var(--surface-2); padding: 8px 10px; border-radius: 8px; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 16px; background: var(--surface-2); padding: 14px; border-radius: 10px; margin: 10px 0; }
input.otp { font-size: 24px; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.linkbtn { background: none; border: 0; color: var(--link); font: inherit; cursor: pointer; padding: 10px 0 0; text-decoration: underline; }
.steps { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.staff-only { display: inline-flex; align-items: center; margin: 0 0 14px; font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--surface-2); padding: 4px 10px; border-radius: 99px; }

/* --- apparence --- */
.themesel { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; flex: none; }
.themesel button { border: 0; background: var(--surface); color: var(--text); font: inherit; font-weight: 600; padding: 8px 13px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.themesel button + button { border-left: 1px solid var(--border); }
.themesel button.on { background: var(--brand); color: var(--brand-ink); }
.themesel svg { width: 16px; height: 16px; }
.nav .themequick { border-color: var(--border); }
.nav .themequick button { flex: 1; justify-content: center; padding: 6px 10px; background: transparent; color: var(--muted); }
.nav .themequick button + button { border-left-color: var(--border); }
.nav .themequick button.on { background: var(--nav-active); color: var(--text); }

/* --- page « Plus » (téléphone) --- */
.more-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.more-grid a { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 650; }
.more-grid a svg { width: 22px; height: 22px; color: var(--muted); }

/* --- documents imprimables (devis, fiche mission) --- */
.doc { background: #fff; color: #18181b; max-width: 820px; margin: 0 auto; padding: 36px 40px; border-radius: 6px; box-shadow: 0 2px 16px rgba(0,0,0,.12); font-size: 13.5px; }
.doc h1 { color: #18181b; font-size: 22px; }
.doc .doc-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.doc .doc-brand { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.doc .muted { color: #71717a; }
.doc table.t th, .doc table.t td { border-color: #e4e4e7; color: #18181b; }
.doc .box { border: 1px solid #e4e4e7; border-radius: 8px; padding: 10px 14px; }
.doc .totals { margin-left: auto; width: min(320px, 100%); margin-top: 10px; }
.doc .totals div { display: flex; justify-content: space-between; padding: 3px 0; }
.doc .totals .grand { font-size: 16px; font-weight: 700; border-top: 2px solid #18181b; margin-top: 4px; padding-top: 6px; }
.doc .terms { margin-top: 24px; font-size: 12px; color: #71717a; white-space: pre-wrap; }
.doc .check-list { columns: 2; padding-left: 18px; }
@media print {
  body { background: #fff; }
  .nav, .topbar, .no-print, #toasts { display: none !important; }
  main { padding: 0 !important; max-width: none; }
  .doc { box-shadow: none; padding: 0; max-width: none; }
}
/* --- To Do --- */
.quick-add { padding: 12px; }
.qa-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.qa-row > input[name=title] { flex: 1 1 260px; font-size: 15.5px; }
.qa-opts { margin-top: 8px; }
.qa-opts label { display: inline-flex; align-items: center; gap: 6px; }
.qa-opts input, .qa-opts select { min-height: 34px; padding: 4px 8px; width: auto; font-size: 13.5px; }
.qa-opts .btn { margin-left: auto; }
.qa-scope button { padding: 7px 12px; }
ul.tasks > li { align-items: flex-start; gap: 10px; }
.task-check { margin-top: 2px; width: 20px; height: 20px; border-radius: 50%; cursor: pointer; }
.task-body { cursor: pointer; }
.task-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; margin-top: 3px; }
li.task.is-done .title { text-decoration: line-through; color: var(--muted); }
.prio-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); margin-right: 7px; vertical-align: 2px; }
.task-group.late .card-head h2 { color: var(--bad); }
@media (pointer: coarse) {
  input, select, textarea { font-size: 16px; }
  .chip { min-height: 36px; }
}
@media (max-width: 420px) { .nav a { font-size: 10px; } .nav a svg { width: 22px; height: 22px; } }
