/* Notu skan et — score scanner (/partituralar/skan, skan.js). Phone first. */
.sk-main { max-width: 560px; margin: 0 auto; padding: 4px 16px calc(32px + env(safe-area-inset-bottom, 0px)); }
.sk-main h1 { font-size: 1.5rem; margin: 4px 0 0; }
.sk-lead { color: var(--muted); font-weight: 700; font-size: 0.9rem; margin-top: 4px; line-height: 1.4; }
.sk-lbl { font-size: 0.7rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.sk-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sk-signin { margin-top: 14px; padding: 14px; display: grid; gap: 12px; font-weight: 700; }
.sk-signin[hidden], #pick[hidden] { display: none; }
.sk-cam { margin-top: 16px; display: grid; justify-items: center; gap: 4px; padding: 20px 14px; border-radius: 18px; cursor: pointer;
  border: 2px dashed color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent) 5%, var(--card)); }
.sk-cam-ic { width: 60px; height: 60px; border-radius: 18px; background: var(--accent); display: grid; place-items: center; margin-bottom: 6px; }
.sk-cam b { font-size: 1.08rem; }
.sk-cam small { color: var(--muted); font-weight: 700; }
.sk-cam:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.sk-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.sk-btn { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 6px 10px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--card); color: var(--ink); font: inherit; font-weight: 800; font-size: 0.9rem; text-decoration: none; cursor: pointer; text-align: center; }
.sk-btn:disabled { opacity: 0.45; cursor: default; }
.sk-btn:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.sk-listen { border-color: var(--teal); color: var(--teal); }
.sk-tips { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sk-tips div { padding: 9px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-size: 0.78rem; font-weight: 800; line-height: 1.3; }
.sk-tips i { font-style: normal; color: var(--ok); margin-right: 4px; }
.sk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sk-item { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); text-decoration: none; color: var(--ink); }
.sk-th { width: 36px; height: 44px; border-radius: 6px; flex: none; border: 1px solid var(--line); background: repeating-linear-gradient(var(--card) 0 6px, var(--line) 6px 7px); }
.sk-item div { flex: 1; min-width: 0; display: grid; }
.sk-item b { font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-item small { color: var(--muted); font-weight: 700; font-size: 0.76rem; }
.sk-item small.bad { color: var(--bad); }
.sk-item .go { font-weight: 900; color: var(--accent); font-size: 1.2rem; }
.sk-none { color: var(--muted); font-weight: 700; font-size: 0.86rem; }
.sk-quota { margin-top: 14px; padding: 11px 12px; border-radius: 12px; background: var(--paper-2); font-size: 0.8rem; font-weight: 800; color: var(--ink-2, var(--ink));
  display: flex; justify-content: space-between; gap: 8px; text-decoration: none; }
.sk-quota[hidden] { display: none; }
.sk-quota em { font-style: normal; color: var(--accent-ink); }
.sk-msg { margin-top: 10px; padding: 10px 12px; border-radius: 12px; font-weight: 700; font-size: 0.86rem; background: var(--paper-2); }
.sk-msg.bad { background: color-mix(in srgb, var(--bad) 12%, var(--card)); color: var(--bad); }
.sk-msg[hidden] { display: none; }

/* crop */
.sk-hint { color: var(--muted); font-weight: 700; font-size: 0.84rem; margin: 6px 0 8px; }
.sk-photo { position: relative; border-radius: 16px; overflow: hidden; background: #3d352c; touch-action: none; user-select: none; -webkit-user-select: none; }
.sk-photo canvas { display: block; width: 100%; height: auto; }
.sk-crop { position: absolute; border: 2px solid var(--teal); box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.35); }
.sk-crop i { position: absolute; width: 28px; height: 28px; margin: -14px; border-radius: 50%; display: grid; place-items: center; touch-action: none; cursor: grab; }
.sk-crop i::after { content: ''; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--teal); }
.sk-crop i[data-c="0"] { left: 0; top: 0; } .sk-crop i[data-c="1"] { left: 100%; top: 0; }
.sk-crop i[data-c="2"] { left: 0; top: 100%; } .sk-crop i[data-c="3"] { left: 100%; top: 100%; }
.sk-pdf { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); font-weight: 800; overflow-wrap: anywhere; }
.sk-pages { display: flex; gap: 6px; margin-top: 8px; align-items: center; flex-wrap: wrap; }
.sk-pages button { position: relative; width: 44px; height: 52px; border-radius: 8px; border: 2px solid var(--line); background: var(--card); font: inherit; font-weight: 900; font-size: 0.8rem; color: var(--ink); cursor: pointer; padding: 0; }
.sk-pages button[aria-pressed="true"] { border-color: var(--teal); color: var(--teal); }
.sk-pages .add { border-style: dashed; color: var(--muted); font-size: 1.1rem; }
.sk-pages .x { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink-bg); color: #fff; font-size: 0.7rem; display: grid; place-items: center; }
.sk-pages small { margin-left: 2px; font-weight: 700; color: var(--muted); font-size: 0.78rem; }
.sk-go { margin-top: 14px; }

/* reading */
.sk-prog { margin-top: 12px; padding: 14px; display: grid; gap: 2px; }
.sk-prog b { font-size: 0.95rem; }
.sk-prog small { color: var(--muted); font-weight: 700; font-size: 0.78rem; line-height: 1.35; }
.sk-bar { height: 9px; border-radius: 9px; background: var(--paper-2); overflow: hidden; margin-top: 10px; }
.sk-bar i { display: block; height: 100%; width: 4%; background: var(--teal); border-radius: 9px; transition: width 0.6s; }
.sk-steps { display: flex; gap: 6px; margin-top: 10px; font-size: 0.72rem; font-weight: 800; color: var(--muted); }
.sk-steps span { flex: 1; text-align: center; padding: 6px 2px; border-radius: 8px; background: var(--paper-2); }
.sk-steps span.d { background: color-mix(in srgb, var(--ok) 18%, var(--card)); color: var(--ok); }
.sk-steps span.d::before { content: '✓ '; }
.sk-steps span.n { background: color-mix(in srgb, var(--teal) 18%, var(--card)); color: var(--teal); }

/* check */
.sk-cmp { position: relative; margin-top: 6px; max-height: 120px; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: #f6f1e4; }
.sk-cmp.open { max-height: none; }
.sk-cmp[hidden] { display: none; }
.sk-cmp img { display: block; width: 100%; height: auto; }
.sk-tag { position: absolute; right: 6px; top: 6px; font: inherit; font-size: 0.72rem; font-weight: 900; background: rgba(31, 36, 64, 0.85); color: #fff; border: 0; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.sk-name { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; margin-top: 10px; font-weight: 800; font-size: 0.86rem; }
.sk-name input { min-width: 0; width: 100%; min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; font-weight: 800; }
.sk-name small { color: var(--muted); font-weight: 700; font-size: 0.72rem; min-width: 56px; text-align: right; }
.sk-paper { margin-top: 8px; background: #fffdf8; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; color: #1f2440; }
.sk-paper svg { display: block; }
.sk-paper .abcjs-note, .sk-paper .abcjs-rest { cursor: pointer; }
.sk-paper .sk-bad, .sk-paper .sk-bad path { fill: #c98a0c; color: #c98a0c; }
.sk-paper .sk-sel, .sk-paper .sk-sel path { fill: var(--accent); color: var(--accent); }
.sk-paper .now, .sk-paper .now path { fill: var(--teal); color: var(--teal); }
.sk-flag { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--gold) 22%, var(--card)); font-size: 0.82rem; font-weight: 700; line-height: 1.4; }
.sk-flag[hidden], .sk-ed[hidden] { display: none; }
.sk-ed { margin-top: 8px; padding: 10px; border: 2px solid var(--accent); border-radius: 14px; background: var(--card); }
.sk-ed-h { display: flex; justify-content: space-between; gap: 8px; font-weight: 900; font-size: 0.9rem; }
.sk-ed-h small { color: var(--muted); font-weight: 800; }
.sk-ed-r { display: flex; gap: 6px; margin-top: 8px; }
.sk-ed-r button { flex: 1; min-width: 0; min-height: 44px; padding: 2px 4px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-weight: 900; font-size: 0.8rem; line-height: 1.15; cursor: pointer; }
.sk-ed-r button[aria-pressed="true"] { background: var(--ink-bg); color: #fff; border-color: var(--ink-bg); }
.sk-ed-r button.del { color: var(--bad); }
.sk-ed-r button:disabled { opacity: 0.4; cursor: default; }
.sk-ok { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; font-size: 0.78rem; font-weight: 800; color: var(--muted); }
.sk-ok b { color: var(--ok); }
.sk-abc { margin-top: 16px; }
.sk-abc summary { cursor: pointer; font-weight: 800; font-size: 0.84rem; color: var(--muted); min-height: 32px; }
.sk-abc textarea { width: 100%; margin-top: 6px; font: 0.8rem/1.4 ui-monospace, Menlo, Consolas, monospace; padding: 10px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); }
.sk-del { margin-top: 14px; background: none; border: 0; padding: 10px 0; color: var(--bad); font: inherit; font-weight: 800; font-size: 0.86rem; cursor: pointer; }

/* score page: a scanned piece */
.sk-strip { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 4px; }
.sk-strip .sk-btn { min-height: 44px; flex: 1 1 140px; }
.sk-strip .sk-btn[aria-disabled="true"] { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.sk-strip-msg { flex-basis: 100%; font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.sk-strip-msg[hidden] { display: none; }
/* Partituralar list: the way in */
.pt-scan { display: flex; align-items: center; gap: 12px; margin: 12px 0 4px; padding: 12px 14px; border-radius: 16px; text-decoration: none; color: var(--ink);
  border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent) 5%, var(--card)); }
.pt-scan span:first-child { width: 42px; height: 42px; border-radius: 12px; background: var(--accent); display: grid; place-items: center; flex: none; }
.pt-scan b { display: block; }
.pt-scan small { color: var(--muted); font-weight: 700; font-size: 0.8rem; }
@media (min-width: 700px) { .sk-main h1 { font-size: 1.8rem; } }
