/* ─── Диктовка (канон-чертёж 17): экран проверки надиктованного ───────────
   Надиктовал/написал много → Карандашик порезал на задачи-карточки (кому·когда·
   тема сама) ИЛИ собрал список покупок (чек-лист ×N) → проверил тапом → «завести».
   Порт docs/blueprints/17-dictate.html (17·1-5). Переменные — web-токены,
   #sqg→#squiggle. Всё transform/opacity + stroke-прорисовка (§1). */

.dct-wrap{display:flex; flex-direction:column; gap:12px; max-width:520px; margin:0 auto;}

/* шапка «услышал N задач ✎» */
.dct-hdr b{display:block; font-family:'Caveat',cursive; font-weight:700; font-size:22px; line-height:1.1;}
.dct-hdr span{display:block; font-size:12px; color:var(--pencil); margin-top:2px;}

/* ── карточка-кандидат (17·1-3) ── */
.dct-list{display:flex; flex-direction:column; gap:12px;}
.t17{position:relative; border-radius:12px; background:var(--paper2, #FFFDF6); padding:12px 14px;
  min-height:80px; display:flex; gap:10px; transition:opacity .24s ease, transform .24s ease;}
.t17::before{content:""; position:absolute; inset:0; pointer-events:none;
  border:2px solid var(--graphite); border-radius:12px; filter:url(#squiggle);}
.t17.bye{opacity:0; transform:translateY(-6px);}
.t17.off .bd{opacity:.38;}
.t17 .bd{flex:1; min-width:0; display:flex; flex-direction:column; gap:8px;}
.t17 .tt{font-family:'Caveat',cursive; font-weight:700; font-size:19px; line-height:1.15;
  cursor:pointer; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;}
.t17 .tt input{width:100%; border:none; outline:none; background:none;
  font-family:'Caveat',cursive; font-weight:700; font-size:19px; border-bottom:1.4px dashed var(--pencil);}

/* карандашный чекбокс с прорисовкой галки (канон) */
.rcheck{width:24px; height:24px; flex:none; border-radius:6px; background:#fff; position:relative;
  box-shadow:0 0 0 2px var(--graphite); cursor:pointer; margin-top:4px;}
.rcheck svg{position:absolute; inset:2px;}
.rcheck svg path{stroke:var(--green); stroke-width:3; fill:none; stroke-linecap:round;
  stroke-linejoin:round; stroke-dasharray:24; stroke-dashoffset:24;}
.rcheck.on svg path{animation:dct-tick .24s ease forwards;}
@keyframes dct-tick{to{stroke-dashoffset:0;}}

/* чипы кому/день/время/тема */
.crow{display:flex; flex-wrap:wrap; gap:8px; min-width:0;}
.c17{height:24px; border-radius:6px; padding:0 8px; font-size:12px; position:relative;
  display:inline-flex; align-items:center; gap:4px; cursor:pointer; max-width:100%;
  background:none; border:none; font-family:inherit;}
.c17::before{content:""; position:absolute; inset:0; pointer-events:none;
  border:1.5px solid currentColor; border-radius:inherit; filter:url(#squiggle);}
.c17.gh{opacity:.75;}
.c17.gh::before{border-style:dashed;}
.c17 .tx{white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0;}

/* ── карточка-список покупок (17·4-5) ── */
.sl17{position:relative; border-radius:12px; background:var(--paper2, #FFFDF6); padding:12px 14px;}
.sl17::before{content:""; position:absolute; inset:0; pointer-events:none;
  border:2px solid var(--graphite); border-radius:12px; filter:url(#squiggle);}
.sl17 .tt{font-family:'Caveat',cursive; font-weight:700; font-size:19px; line-height:1.15;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; cursor:pointer;}
.sl17 .prog{display:flex; align-items:center; gap:8px; font-size:12px; color:var(--pencil); margin:4px 0 6px;}
.sl17 .pbarr{flex:1; height:4px; border-radius:2px; background:var(--pencil-faint); overflow:hidden; position:relative;}
.sl17 .pfill{position:absolute; inset:0; background:var(--marker); transform-origin:left;
  transform:scaleX(0); transition:transform .24s ease;}
.sli{height:40px; display:flex; align-items:center; gap:10px; min-width:0;}
.sli+.sli{border-top:1.4px dashed var(--pencil-faint);}
.sli .rcheck{margin-top:0;}
.sli .nm{flex:1; min-width:0; font-size:15px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.sli .un{font-size:11px; color:var(--pencil); flex:none; white-space:nowrap;}
.sli .qty{height:24px; min-width:38px; border-radius:6px; padding:0 8px;
  font-family:ui-monospace,Menlo,monospace; font-size:12px; color:var(--graphite-soft);
  display:inline-flex; align-items:center; justify-content:center; position:relative; cursor:pointer;
  flex:none; background:none; border:none;}
.sli .qty::before{content:""; position:absolute; inset:0; pointer-events:none;
  border:1.5px solid var(--graphite); border-radius:inherit; filter:url(#squiggle);}
.sli .del{width:24px; height:24px; border-radius:6px; position:relative; flex:none;
  display:inline-flex; align-items:center; justify-content:center; color:var(--pencil); font-size:13px;
  background:none; border:none; cursor:pointer;}
.sli .del::before{content:""; position:absolute; inset:0; pointer-events:none;
  border:1.5px dashed var(--pencil); border-radius:inherit; filter:url(#squiggle);}
.sli.done .nm{text-decoration:line-through; color:var(--pencil);}
.sli.done{background-image:repeating-linear-gradient(-45deg,
  transparent 0 5px, rgba(139,133,120,.16) 5px 6.5px);}
.addli{height:40px; border-radius:10px; position:relative; color:var(--pencil); font-size:14px;
  width:100%; margin-top:2px; background:none; border:none; cursor:pointer;}
.addli::before{content:""; position:absolute; inset:0; pointer-events:none;
  border:1.5px dashed var(--pencil); border-radius:10px; filter:url(#squiggle);}

/* ── футер «завести N» + отмена ── */
.dct-foot{display:flex; gap:8px; align-items:center; margin-top:4px;}
.go17{flex:1; height:48px; border-radius:12px; background:var(--gold, #D9A832); color:#fff;
  font-family:'Caveat',cursive; font-weight:700; font-size:19px; position:relative; padding:0 16px;
  min-width:0; border:none; cursor:pointer;}
.go17::after{content:""; position:absolute; inset:0; pointer-events:none;
  border:2px solid var(--graphite); border-radius:12px; filter:url(#squiggle);}
.go17[disabled]{background:var(--paper2, #FFFDF6); color:var(--pencil-faint); cursor:default;}
.go17[disabled]::after{border-style:dashed; border-color:var(--pencil-faint);}
.go17 .tx{display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.cn17{height:40px; border-radius:10px; padding:0 12px; font-size:14px; color:var(--graphite-soft);
  position:relative; flex:none; background:none; border:none; cursor:pointer;}
.cn17::before{content:""; position:absolute; inset:0; pointer-events:none;
  border:1.5px dashed var(--pencil); border-radius:10px; filter:url(#squiggle);}
.dct-hint{font-size:11px; color:var(--pencil); text-align:center;}

@media (prefers-reduced-motion: reduce){
  .rcheck.on svg path{animation:none; stroke-dashoffset:0;}
  .t17, .sl17 .pfill{transition:none;}
}
