:root {
  --side: #1f2430;
  --side-2: #2a3040;
  --side-txt: #c9cfdb;
  --bg: #f4f5f8;
  --panel: #ffffff;
  --row: #ffffff;
  --row-hover: #f7f8fb;
  --text: #2b2f38;
  --muted: #8a909c;
  --line: #e6e8ee;
  --line-2: #eef0f4;
  --link: #3b6fd8;
  --blue: #3b6fd8;
  --green: #3fa66b;
  --green-soft: #e7f5ed;
  --orange: #f2a33a;
  --orange-txt: #d9822b;
  --orange-soft: #fdf3e5;
  --red: #d64545;
  --red-soft: #fbeaea;
  --purple: #8a63c9;
  --bar-run: #4cb77a;
  --bar-bg: #e9edf2;
  --bar-full: #2f9a5d;
  --radius: 12px;
  --radius-s: 8px;
  --shadow: 0 1px 2px rgba(20,24,40,.04), 0 2px 8px rgba(20,24,40,.05);
  --shadow-lg: 0 10px 30px rgba(20,24,40,.12);
  --ease: cubic-bezier(.22,.8,.3,1);
}
* { box-sizing: border-box; }

/* Transição suave ao trocar de página (navegadores Chromium) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }

body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 "Inter", "Segoe UI", system-ui, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; transition: color .15s; }
a:hover { color: #2a56b0; }
h1 { font-size: 20px; font-weight: 600; margin: 0 0 12px; letter-spacing: -.01em; }
h2 { font-size: 16px; font-weight: 600; margin: 24px 0 10px; }
h3 { font-size: 14px; font-weight: 600; margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }

/* ---------- Estrutura ---------- */
body.app { display: flex; min-height: 100vh; }
.side { width: 208px; flex: none; background: var(--side); color: var(--side-txt); position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 12px; }
.logo { display: flex; align-items: center; gap: 10px; padding: 4px 8px 20px; text-decoration: none !important; }
.logo-circle { width: 38px; height: 38px; flex: none; border-radius: 11px; background: linear-gradient(135deg, #f5c46b, #e08e1c); color: #1f2430; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; letter-spacing: .5px; box-shadow: 0 4px 12px rgba(224,142,28,.35); }
.logo-txt { font-size: 14px; letter-spacing: 1.5px; color: #fff; }
.logo-txt span { color: #8d9bb0; }
.logo-txt.dark { color: #1D2F7A; font-size: 18px; }
.logo-txt.dark span { color: #8C9EAD; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; color: var(--side-txt); border-radius: 9px; text-decoration: none; transition: background .18s, color .18s; }
.side nav a i { width: 16px; text-align: center; opacity: .9; }
.side nav a:hover { background: var(--side-2); color: #fff; }
.side nav a.on { background: rgba(255,255,255,.1); color: #fff; font-weight: 500; }

.col { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar { height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 24px; background: rgba(244,245,248,.85); backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); }
.topbar .crumb-t { color: var(--muted); font-size: 13px; }
.topbar .crumb-t b { color: var(--text); font-weight: 600; }
.topbar .tb-actions { display: flex; gap: 6px; }
.topbar .tb-actions a { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: var(--muted); background: var(--panel); border: 1px solid var(--line); text-decoration: none; transition: all .15s; }
.topbar .tb-actions a:hover { color: var(--text); box-shadow: var(--shadow); }
.topbar .tb-actions a.out:hover { color: var(--red); }
.content { flex: 1; padding: 22px 24px 48px; max-width: 1240px; width: 100%; }
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 24px; color: var(--muted); font-size: 12px; }
.foot b { font-weight: 500; }

body.guest { display: block; }
.guest-main { max-width: 380px; margin: 70px auto; padding: 0 16px; }
.guest-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 20px; }

/* ---------- Mensagens (viram "toast") ---------- */
.flash { padding: 10px 14px; border-radius: var(--radius-s); margin-bottom: 14px; background: var(--green-soft); color: #25704a; animation: fadeDown .35s var(--ease); }
.flash.err { background: var(--red-soft); color: #a33; }
.flash.info { background: var(--orange-soft); color: #9a5f1c; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: #1f2430; color: #fff; box-shadow: var(--shadow-lg); font-size: 13px; animation: toastIn .3s var(--ease); transition: opacity .3s, transform .3s; }
.toast.err { background: var(--red); }
.toast.hide { opacity: 0; transform: translateY(8px); }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); background: var(--panel); color: var(--text); padding: 7px 14px; border-radius: var(--radius-s); font: inherit; font-weight: 500; cursor: pointer; text-decoration: none !important; line-height: 1.35; white-space: nowrap; transition: transform .12s, box-shadow .15s, filter .15s, background .15s; }
.btn:hover { box-shadow: var(--shadow); filter: brightness(1.03); }
.btn:active { transform: scale(.97); }
.btn.primary, .btn.blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.ok, .btn.green { background: var(--green); border-color: var(--green); color: #fff; }
.btn.orange { background: var(--panel); border-color: var(--line); color: var(--text); }
.btn.ghost { background: transparent; }
.btn.small { padding: 4px 10px; font-size: 12px; }
.btn.full { width: 100%; }
.btn.danger, .link.danger { color: var(--red); }
.btn:disabled { opacity: .4; cursor: default; }
.link { background: none; border: 0; padding: 3px 0; color: var(--link); cursor: pointer; font: inherit; text-align: left; }
.link:disabled { color: var(--muted); opacity: .6; cursor: default; }
form.inline { display: inline; margin: 0; }
.ico { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; border-radius: 8px; cursor: pointer; font-size: 15px; line-height: 1; color: var(--muted); transition: background .15s, color .15s, transform .12s; }
.ico:hover { background: var(--line-2); }
.ico:active { transform: scale(.9); }
.ico.green:hover { color: var(--green); background: var(--green-soft); }
.ico.red:hover { color: var(--red); background: var(--red-soft); }
.ico.orange:hover { color: var(--orange-txt); background: var(--orange-soft); }
.ico.blue { color: var(--link); }

/* ---------- Formulários ---------- */
label { display: block; font-weight: 500; font-size: 13px; color: #4a4f5a; margin-bottom: 12px; }
input, select, textarea { display: block; width: 100%; margin-top: 5px; padding: 8px 11px; border: 1px solid var(--line); border-radius: var(--radius-s); font: inherit; font-weight: 400; color: var(--text); background: #fff; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #9db6ea; box-shadow: 0 0 0 3px rgba(59,111,216,.12); }
label.check { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; margin: 0 12px 0 0; color: var(--text); }
label.check input { width: auto; margin: 0; accent-color: var(--blue); }
.form { margin: 0; }
.form.narrow { max-width: 760px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 4px; margin: 0 0 14px; background: #fff; }
legend { font-weight: 600; padding: 0 6px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: 1fr 2fr 2fr; gap: 14px; }
.actions { display: flex; gap: 8px; margin-top: 6px; }
.box { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 18px; margin: 14px 0; }
.box > summary { cursor: pointer; color: var(--text); font-weight: 500; list-style: none; }
.box > summary::-webkit-details-marker { display: none; }
.box > summary i { color: var(--muted); margin-right: 4px; }
.box[open] > summary { margin-bottom: 12px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
.auth-box { background: var(--panel); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 26px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.page-head h1, .page-head h2 { margin: 0; }
.crumb { margin: 0 0 10px; }
.empty { padding: 34px; text-align: center; color: var(--muted); background: var(--panel); border-radius: var(--radius); border: 1px dashed var(--line); }

/* ---------- Barra de progresso ---------- */
.pbar { position: relative; height: 10px; border-radius: 99px; background: var(--bar-bg); overflow: hidden; min-width: 140px; }
.pbar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #5cc48a, var(--bar-run)); transition: width .9s var(--ease), background .4s; position: relative; overflow: hidden; }
.pbar.run .pbar-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); transform: translateX(-100%); animation: shimmer 2.4s ease-in-out infinite; }
.pbar.full .pbar-fill { background: var(--bar-full); }
.pbar-txt { display: none; }
.pbar-wrap { display: flex; align-items: center; gap: 10px; }
.pbar-wrap .pbar { flex: 1; }
.pbar-pct { font-size: 12px; font-weight: 600; color: var(--muted); min-width: 38px; text-align: right; font-variant-numeric: tabular-nums; }
.pbar-wrap.full .pbar-pct { color: var(--bar-full); }

/* ---------- Lista (painel) ---------- */
.filterbar { display: grid; grid-template-columns: minmax(220px, 2fr) auto; gap: 10px 16px; align-items: center; margin-bottom: 10px; }
.filterbar .q { margin: 0; }
.filterbar .checks { display: flex; flex-wrap: wrap; align-items: center; }
.filterbar2 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 16px; }
.filterbar2 select, .filterbar2 .btn { margin: 0; height: 38px; }
.filterbar2 .btn { width: 100%; }
.grid-list { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.gl-head, .gl-row { display: grid; grid-template-columns: 2.2fr 1.6fr 1fr 1.4fr; gap: 16px; padding: 12px 18px; }
.gl-head { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--line); }
.gl-head div span { display: block; }
.gl-row { border-bottom: 1px solid var(--line-2); cursor: pointer; transition: background .15s; animation: fadeUp .4s var(--ease) both; }
.gl-row:last-child { border-bottom: 0; }
.gl-row:hover { background: var(--row-hover); }
.gl-row .t1 { color: var(--text); font-weight: 600; }
.gl-row .t2 { color: var(--muted); font-size: 12px; }
.gl-row .prev { color: var(--muted); font-size: 12px; }
.gl-row .obs { color: var(--muted); font-size: 12px; white-space: pre-line; }
.gl-row .nx { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.gl-row .nx b { color: var(--text); font-weight: 500; }

/* ---------- Detalhe da declaração ---------- */
.proc-head { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px 18px; margin-bottom: 16px; background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px 8px; }
.proc-head .span2 { grid-column: span 2; }
.proc-head label { margin: 0 0 12px; }
.fake-input { margin-top: 5px; padding: 8px 11px; border-radius: var(--radius-s); background: var(--bg); min-height: 36px; }
.hl { color: var(--text); font-weight: 600; }
.status-line { font-weight: 400; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.status-line b { color: var(--text); font-weight: 600; }
.btn-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.btn-pair .btn { height: 36px; }
.evo { display: grid; grid-template-columns: 1fr 1.4fr; align-items: center; gap: 16px; padding: 4px 4px 12px; font-weight: 500; color: #4a4f5a; }

.steps { margin: 0; padding: 0; list-style: none; background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.step { border-bottom: 1px solid var(--line-2); transition: background .3s; }
.step:last-child { border-bottom: 0; }
.step > .srow { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 12px 8px 18px; transition: background .15s; }
.step > .srow:hover { background: var(--row-hover); }
.step.open > .srow { background: var(--row-hover); }
.stitle { cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 32px; }
.stitle .tt { transition: color .25s; }
.stitle:hover .tt { color: var(--link); }
.stitle > i { font-size: 17px; transition: color .25s, transform .25s; }
.stitle .fa-square-check { color: var(--green); }
.stitle .fa-square { color: #c3c8d2; }
.stitle .fa-circle-xmark { color: var(--red); opacity: .8; }
.stitle .chev { font-size: 10px; color: #b9bec8; opacity: 0; transition: transform .3s var(--ease), opacity .2s; }
.stitle:hover .chev, .step.open .stitle .chev { opacity: 1; }
.step.open .stitle .chev { transform: rotate(90deg); }
.st-concluido .stitle .tt { color: var(--muted); }
.st-dispensado .stitle .tt { text-decoration: line-through; color: var(--muted); }
.dispensado-lbl { color: var(--red); font-size: 11px; background: var(--red-soft); padding: 1px 7px; border-radius: 99px; }
.extra-lbl { color: var(--purple); font-size: 11px; background: #f3eefb; padding: 1px 7px; border-radius: 99px; }
.stip { color: var(--orange-txt); font-size: 12px; }
.stip .by { color: var(--muted); }
.sicons { display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.ncount { font-size: 12px; color: var(--muted); margin-right: 4px; }
.step.just-done > .srow { animation: flashGreen 1.2s var(--ease); }
.step.just-done .stitle > i { animation: pop .45s var(--ease); }
.step.just-changed > .srow { animation: flashNeutral 1.2s var(--ease); }
.step.busy { opacity: .55; pointer-events: none; }

/* Painel do passo: abre/fecha deslizando */
.spanel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.spanel-in { overflow: hidden; min-height: 0; }
.spanel-pad { padding: 4px 18px 16px 46px; opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .3s var(--ease); }
.step.open .spanel { grid-template-rows: 1fr; }
.step.open .spanel-pad { opacity: 1; transform: none; }
.comment-form { display: grid; grid-template-columns: 1fr 240px; gap: 10px; align-items: start; }
.comment-form textarea { margin: 0; min-height: 64px; }
.comment-side .btn-pair { margin-top: 0; }
.step-tools { margin-top: 10px; display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; }
.step-tools .link, .step-tools summary { color: var(--muted); transition: color .15s; }
.step-tools .link:hover:not(:disabled), .step-tools summary:hover { color: var(--link); }
.step-tools .link.danger:hover { color: var(--red); }
.step-tools details > summary { list-style: none; cursor: pointer; }
.step-tools details > summary::-webkit-details-marker { display: none; }
.step-tools details[open] { flex-basis: 100%; }
.step-tools details[open] > summary { color: var(--link); }
.step-tools details form { max-width: 560px; margin-top: 8px; animation: fadeDown .25s var(--ease); }
.shist { margin-top: 12px; border-left: 2px solid var(--line); padding-left: 12px; }
.shist .ev { margin-bottom: 8px; }
.shist .who { color: var(--muted); font-size: 11px; }
.shist .what { font-size: 13px; }
.shist .what .hl-y { background: #fff4c7; padding: 0 4px; border-radius: 4px; }
.shist .what .hl-b { background: #e2ebfb; padding: 0 4px; border-radius: 4px; }
.shist .note .what { white-space: pre-wrap; }

details.pop { position: relative; display: inline-block; }
details.pop > summary { list-style: none; cursor: pointer; }
details.pop > summary::-webkit-details-marker { display: none; }
.pop-body { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 300px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 14px; font-weight: 400; animation: fadeDown .2s var(--ease); }

/* Histórico geral */
ul.history { list-style: none; padding: 0; margin: 0; }
ul.history li { padding: 8px 0; border-top: 1px solid var(--line-2); font-size: 13px; }
ul.history li:first-child { border-top: 0; }
.when { color: var(--muted); font-size: 11px; margin-right: 6px; }

/* ---------- Tabelas simples (clientes, usuários, modelos) ---------- */
.table-wrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
table.list th { text-align: left; font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); }
table.list td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; transition: background .15s; }
table.list tr:last-child td { border-bottom: 0; }
table.list tbody tr:hover td { background: var(--row-hover); }
tr.inactive td { opacity: .55; }
.badge { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 99px; background: var(--line-2); color: var(--muted); }
.st-concluido.badge { background: var(--green-soft); color: #25704a; }
.st-dispensado.badge { background: var(--red-soft); color: #a33; }
.tag { font-size: 11px; color: var(--purple); margin-left: 4px; }

ol.tsteps { list-style: none; padding: 0; margin: 0 0 16px; background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
ol.tsteps li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
ol.tsteps li:last-child { border-bottom: 0; }
.tstep-main { flex: 1; }
.tstep-actions { display: flex; gap: 4px; flex: none; }

.btn.mine { background: var(--panel); color: var(--text); }
.btn.mine.on { background: var(--purple); border-color: var(--purple); color: #fff; }
.filters { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 12px; }
.filters label { margin: 0; }
.filters .grow { flex: 1; min-width: 220px; }

/* ---------- Animações ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes flashGreen { 0% { background: #dcf2e5; } 100% { background: transparent; } }
@keyframes flashNeutral { 0% { background: #eef2fa; } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Celular ---------- */
@media (max-width: 800px) {
  body.app { flex-direction: column; }
  .side { width: 100%; height: auto; position: static; display: flex; align-items: center; overflow-x: auto; padding: 8px 12px; }
  .logo { padding: 0 8px 0 0; }
  .logo-txt { display: none; }
  .side nav { flex-direction: row; }
  .side nav a { white-space: nowrap; }
  .topbar, .content, .foot { padding-left: 16px; padding-right: 16px; }
  .row2, .row3, .proc-head, .filterbar, .filterbar2, .evo, .comment-form { grid-template-columns: 1fr; }
  .proc-head .span2 { grid-column: auto; }
  .gl-head { display: none; }
  .gl-row { grid-template-columns: 1fr; gap: 6px; }
  .step > .srow { grid-template-columns: 1fr auto; }
  .stip { grid-column: 1 / -1; grid-row: 2; }
  .spanel-pad { padding-left: 18px; }
  .pop-body { left: auto; right: 0; width: min(300px, calc(100vw - 40px)); }
}
.pbar-status { font-size: 11px; color: var(--muted); margin-top: 3px; }
.gl-row .t1 { font-weight: 500; font-size: 12px; color: var(--muted); }
.gl-row .cl { font-weight: 600; margin-top: 2px; }
.gl-row .prev:empty { display: none; }
.export-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 8px; }
.export-bar .muted { margin-right: 4px; }
.decl-export { display: flex; gap: 6px; justify-content: flex-end; margin: 6px 0; }
.tip-multi { display: flex; gap: 5px; align-items: flex-start; }
.tip-multi > i { margin-top: 2px; }
.tip-list { margin: 0; padding: 0; list-style: none; }
.tip-list li { margin: 1px 0; }
/* Segurança: 2FA, códigos, registro de acessos */
.auth-box.wide { max-width: 520px; margin-left: auto; margin-right: auto; }
.setup-steps { padding-left: 18px; }
.setup-steps li { margin-bottom: 10px; }
.qr-box { background: #fff; padding: 10px; display: inline-block; margin: 8px 0; border: 1px solid var(--line); border-radius: 8px; }
.secret { font-size: 13px; letter-spacing: 1px; background: #f3f4f7; padding: 3px 6px; border-radius: 4px; word-break: break-all; }
.code-input { font-size: 22px; letter-spacing: 6px; text-align: center; font-family: monospace; }
.codes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.codes-grid code { font-size: 17px; letter-spacing: 2px; text-align: center; padding: 8px; background: #f3f4f7; border: 1px dashed #c9cdd6; border-radius: 6px; }
tr.row-alert td { background: #fdecec !important; }
@media print { .side, .topbar, .foot, .actions { display: none !important; } }
/* Itens marcáveis dentro do passo */
ul.items { list-style: none; margin: 0; padding: 0; }
ul.items li { display: flex; align-items: center; gap: 4px; min-height: 22px; }
.item-chk { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; color: var(--orange-txt); cursor: pointer; font-size: 12px; }
.item-chk input { width: 14px; height: 14px; margin: 0; accent-color: #d9822b; cursor: pointer; }
ul.items li.done .item-chk span { text-decoration: line-through; color: var(--muted); }
.item-tools { display: inline-flex; gap: 0; opacity: 0; transition: opacity .15s; }
ul.items li:hover .item-tools, ul.items li:focus-within .item-tools { opacity: 1; }
.item-tools .ico { font-size: 11px; color: var(--muted); padding: 2px 4px; }
.item-tools .ico:hover { color: var(--text); }
ul.items li.editing .item-chk, ul.items li.editing .item-tools { display: none; }
.item-edit { display: flex; align-items: center; gap: 2px; flex: 1; }
.item-edit[hidden] { display: none; }
.item-edit input[name=text] { margin: 0; padding: 2px 6px; font-size: 12px; height: 24px; }
.item-edit .ico { font-size: 12px; }
.item-add { margin-top: 2px; color: var(--muted); }
.item-add form { display: flex; align-items: center; gap: 6px; width: 100%; }
.item-add i { font-size: 10px; width: 14px; text-align: center; }
.item-add input { margin: 0; border: 0; border-bottom: 1px dashed #d9dce3; border-radius: 0; background: transparent; padding: 2px 0; font-size: 12px; height: 22px; box-shadow: none !important; }
.item-add input:focus { border-bottom-color: var(--orange); }
.items-count { font-size: 11px; color: var(--muted); margin-top: 3px; }
@media (hover: none) { .item-tools { opacity: 1; } }
