/* 19-sketch: practice canvas below the shared navigation. */
body.sketch-session #top { pointer-events: none; }
#sketch { inset: calc(var(--hdr) + 4px) 20px 28px; padding: 0 17px; border: 1px solid var(--line); border-radius: 15px; background: var(--bg2); box-shadow: 0 5px 24px #242d4210; }
#sketch .sk-top { flex-wrap: nowrap; min-height: 84px; padding: 18px 6px 20px; gap: 24px; border: 0; }
#sketch .sk-top h2 { flex: none; margin: 0 18px 0 0; font-size: 23px; font-weight: 600; white-space: nowrap; }
.sk-progress-group { display: flex; align-items: center; flex: 1; min-width: 80px; gap: 24px; }
#sketch .sk-prog { height: 9px; flex: 1; border-radius: 9px; background: var(--sf2); }
#sketch .sk-prog i { border-radius: 9px; }
.sk-prog.unlimited i { opacity: .35; }
#skProgressCount { flex: none; min-width: 75px; font-size: 18px; font-weight: 500; white-space: nowrap; }
#sketch .sk-timer-box { flex-wrap: nowrap; gap: 28px; }
.sk-time-display { display: flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 18px; }
.sk-time-display svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
#sketch #skTime { font: 500 18px/1.3 var(--sans); min-width: 0; letter-spacing: 0; }
.sk-time-total { color: var(--mu); }
#sketch #skDur { gap: 4px; padding: 0; border: 0; background: transparent; }
#skDur button { min-height: 38px; min-width: 63px; border: 0; border-radius: 22px; padding: 8px 14px; background: var(--sf); color: var(--tx2); font-size: 17px; }
#skDur button.on { background: var(--acs); color: var(--ac); box-shadow: none; }
.sk-navigation { display: flex; align-items: center; gap: 4px; margin-left: auto; }
#skCountMenu { position: relative; }
#skCountMenu summary { padding: 8px; list-style: none; cursor: pointer; font-size: 18px; white-space: nowrap; }
#skCountMenu summary b { font-weight: 500; }
#skCountMenu summary::-webkit-details-marker { display: none; }
#skCountMenu #skTotal { position: absolute; right: 0; top: 100%; z-index: 4; display: grid; width: 200px; padding: 8px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh3); }
#skTotal button { min-height: 40px; white-space: normal; }
#sketch :is(#skPrev,#skNext) { width: 38px; height: 38px; border-radius: 50%; background: var(--sf); color: var(--mu); font-size: 29px; }
#sketch .sk-right { gap: 32px; margin-left: 12px; padding-left: 20px; border-left: 1px solid var(--line); }
#sketch .sk-right button { width: 38px; height: 38px; padding: 5px; background: transparent; }
#sketch #skClose { font-size: 25px; }
#sketch #skSound svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; }
#sketch .sk-stage { grid-template: minmax(0,1fr) / minmax(0,1fr); padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--sf); overflow: hidden; }
#sketch .sk-frame { min-width: 0; min-height: 0; width: 100%; height: 100%; max-height: 100%; background: transparent; }
#sketch .sk-frame img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; }
#sketch .sk-stage[data-img-type=depth] { background: #141414; }
#sketch .sk-foot { justify-content: center; flex-wrap: nowrap; min-height: 104px; padding: 20px 0; gap: 34px; border: 0; background: transparent; }
#sketch #skPause { display: flex; align-items: center; justify-content: center; gap: 14px; min-width: 190px; min-height: 52px; border: 0; border-radius: 30px; padding: 12px 24px; background: var(--ac); color: white; font-size: 19px; box-shadow: none; }
#sketch .sk-tools { gap: 28px; }
#sketch .sk-tools button { gap: 12px; min-height: 44px; padding: 8px 5px; border: 0; background: none; color: var(--mu); font-size: 18px; white-space: nowrap; }
#sketch .sk-tools button.on { color: var(--ac); }
#sketch .sk-tools [data-skt=fav] { padding-left: 35px; border-left: 1px solid var(--line); border-radius: 0; }
#sketch .sk-foot svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#skImageError { text-align: center; }
#skImageError button { margin: 10px 5px; }
#sketch button:focus-visible, #sketch summary:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
#skName { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
@media(max-width:1400px) {
  #sketch .sk-top { flex-wrap: wrap; gap: 12px 20px; }
  .sk-progress-group { min-width: 160px; }
  #sketch .sk-top h2 { margin-right: 0; }
  #sketch .sk-right { gap: 12px; }
}
@media(max-width:767px) {
  #sketch { inset: calc(var(--hdr) + 5px) 8px 8px; padding: 0 10px; }
  #sketch .sk-top { min-height: 0; padding: 12px 0; gap: 10px 8px; }
  #sketch .sk-top h2 { font-size: 18px; }
  .sk-progress-group { order: 3; flex-basis: 100%; gap: 12px; }
  #skProgressCount { font-size: 14px; min-width: 56px; }
  #sketch .sk-navigation { margin-left: auto; }
  #sketch .sk-right { gap: 4px; margin: 0; padding: 0; border: 0; }
  #sketch .sk-right button, #sketch :is(#skPrev,#skNext) { width: 30px; min-height: 32px; height: 32px; }
  #skCountMenu summary { font-size: 13px; padding: 4px; }
  #sketch .sk-timer-box { order: 4; flex-basis: 100%; justify-content: space-between; gap: 8px; }
  #sketch #skTime, .sk-time-display { font-size: 13px; }
  .sk-time-display svg { width: 17px; height: 17px; }
  #skDur button { min-height: 32px; min-width: 0; padding: 6px 8px; font-size: 13px; }
  #sketch .sk-foot { min-height: 0; flex-wrap: wrap; gap: 8px; padding: 12px 0; }
  #sketch #skPause { min-width: 140px; min-height: 44px; font-size: 16px; }
  #sketch .sk-tools { justify-content: center; gap: 12px; }
  #sketch .sk-tools button { gap: 5px; padding: 5px 0; font-size: 13px; }
  #sketch .sk-tools [data-skt=fav] { padding-left: 10px; }
  #sketch .sk-foot svg { width: 19px; height: 19px; }
}
