/* "Diktant" (/learn/diktant, owner 2026-11-12, task 8). Builds on proto.css, home.css and akkordlar.css (keys). */
.dk { max-width: 600px; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.dk .lbl { margin: 14px 0 6px; }
.dk-lead { margin-top: 4px; color: var(--ink-2); font-size: 0.95rem; }
.dk-tabs { display: flex; gap: 4px; margin-top: 14px; padding: 4px; border-radius: 14px; background: var(--paper-2); }
.dk-tabs button { flex: 1; min-height: 42px; border: 0; border-radius: 11px; background: none; color: var(--muted); font: inherit; font-weight: 900; font-size: 0.92rem; cursor: pointer; }
.dk-tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.dk-levels { display: grid; gap: 6px; }
.dk-levels button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.dk-levels button i { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--paper-2); font-style: normal; font-weight: 900; }
.dk-levels button span.t { display: grid; min-width: 0; }
.dk-levels b { font-size: 0.9rem; }
.dk-levels small { font-size: 0.74rem; font-weight: 700; color: var(--muted); }
.dk-levels .st { margin-left: auto; flex: none; color: var(--gold); letter-spacing: 1px; font-size: 0.9rem; }
.dk-levels button[aria-pressed="true"] { border: 2px solid var(--accent); background: var(--accent-soft); padding: 9px 11px; }
.dk-levels button[aria-pressed="true"] i { background: var(--accent); color: #fff; }
.dk-levels button:disabled { opacity: 0.55; cursor: default; }
.dk-levels button:disabled .st { color: var(--muted); font-size: 0.72rem; font-weight: 900; letter-spacing: 0; }
.dk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dk-chips button { min-width: 44px; min-height: 40px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--ink); font: inherit; font-weight: 800; font-size: 0.86rem; cursor: pointer; }
.dk-chips button[aria-pressed="true"] { background: var(--ink-bg); border-color: var(--ink-bg); color: #fff; }
.dk-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.dk-stats div { display: grid; padding: 9px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); text-align: center; }
.dk-stats b { font-size: 1.05rem; }
.dk-stats small { font-size: 0.64rem; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.dk .dk-big { width: 100%; min-height: 52px; margin-top: 12px; }
.dk-top { display: flex; align-items: center; gap: 12px; }
.dk-top b { font-size: 1.1rem; }
.dk .icon-btn { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); cursor: pointer; }

/* writing */
.dk-bar { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.dk-pl { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--accent); color: #fff; cursor: pointer; }
.dk-pl:disabled { background: var(--line); cursor: default; }
.dk-pl.on { background: var(--ink-bg); }
.dk-bar .t { display: grid; min-width: 0; }
.dk-bar .t b { font-size: 0.95rem; }
.dk-bar .t small { font-size: 0.76rem; font-weight: 700; color: var(--muted); }
.dk-first { margin-left: auto; flex: none; display: grid; justify-items: center; padding: 6px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; cursor: pointer; }
.dk-first b { font-size: 0.92rem; }
.dk-first small { font-size: 0.66rem; font-weight: 700; color: var(--muted); }
.dk-staff { margin-top: 10px; min-height: 90px; padding: 2px 0; border: 1px solid var(--line); border-radius: 12px; background: #fffdf8; overflow: hidden; color: #1f2440; }
.dk-staff .dk-given, .dk-staff .dk-given path { fill: #8a8fa8; }
.dk-staff .dk-last, .dk-staff .dk-last path { fill: var(--accent); }
.dk-staff .m-ok, .dk-staff .m-ok path { fill: #2e9e5b; }
.dk-staff .m-bad, .dk-staff .m-bad path, .dk-staff .m-extra, .dk-staff .m-extra path { fill: #d64545; }
.dk-staff .m-len, .dk-staff .m-len path { fill: #d9962b; }
.dk-staff .m-show, .dk-staff .m-show path { fill: #2e9e5b; }
.dk-hint { margin-top: 6px; font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.dk-durs { display: flex; gap: 5px; }
.dk-durs button { flex: 1; min-width: 0; min-height: 44px; padding: 4px 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; font-weight: 900; font-size: 0.8rem; cursor: pointer; }
.dk-durs button.sym { font-size: 1.3rem; }
.dk-durs button[aria-pressed="true"] { background: var(--ink-bg); border-color: var(--ink-bg); color: #fff; }
.dk-durs button.tg[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); }
.dk-room { min-height: 1.3em; margin: 6px 0 0; font-size: 0.78rem; font-weight: 800; color: var(--muted); }
.dk-room.full { color: var(--ok); }
.dk-room.no { color: var(--bad); }
.dk-kbd { margin-top: 6px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.dk-kbd .kbd { max-height: 150px; }
.dk-kbd .dk-kl { font-size: 7.5px; font-weight: 800; text-anchor: middle; fill: #8a8fa8; pointer-events: none; }
.dk-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.dk-acts .btn { width: 100%; min-height: 48px; padding-inline: 8px; }

/* result */
.dk-res { display: grid; justify-items: center; gap: 2px; margin-top: 12px; padding: 16px 14px; border-radius: 18px; background: var(--ink-bg); color: #fff; text-align: center; }
.dk-res .st { color: var(--gold); font-size: 1.6rem; letter-spacing: 3px; }
.dk-res b { font-size: 1.25rem; }
.dk-res small { font-size: 0.82rem; font-weight: 700; opacity: 0.85; }
.dk-res.big { padding: 26px 16px; }
.dk-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; font-size: 0.74rem; font-weight: 800; color: var(--muted); }
.dk-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 4px; border-radius: 50%; vertical-align: -1px; }
.dk-legend i.ok { background: #2e9e5b; } .dk-legend i.bad { background: #d64545; } .dk-legend i.len { background: #d9962b; }
.dk-tip { margin-top: 10px; padding: 9px 12px; border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; background: var(--card); font-size: 0.84rem; font-weight: 700; color: var(--ink-2); line-height: 1.45; }
.dk-tip b { display: block; font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

@media (min-width: 900px) { .dk { max-width: 680px; padding-bottom: 48px; } }
