@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Lexend:wght@500;600;700&family=Literata:ital,opsz,wght@0,7..72,400;0,7..72,600;1,7..72,400&display=swap');

:root {
  /* Disainisüsteem A · Rukkilill – värvid logo järgi */
  --pri: #0A5CB0; --pri-dark: #084A8F; --pri-soft: #E8F1FB; --pri-line: #BFD6F0; --pri-bg: #F5F9FE;
  --accent: #F28C1B; --accent-ink: #9A4A06;
  --boys: #10244A; --girls: #C2255C; --ink: #14213D; --ink-2: #26334F; --muted: #4A5568;
  --line: #DCE4EE; --line-2: #C5D0DE; --soft: #F1F4F8; --warm: #FFF8EE; --warm-line: #F5CF9B; --warm-tag: #FFF0DC; --warm-ink: #9A4A06;
  --serif: Literata, Georgia, serif; --head: Lexend, Inter, sans-serif; --sans: Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: #FFFFFF; }
a { color: var(--pri); } a:hover { color: var(--pri-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.btn { min-height: 40px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-2); background: #FFFFFF; font-size: 14px; font-weight: 600; }
.btn-primary { background: var(--pri); border-color: var(--pri); color: #FFFFFF; }
.btn-small { min-height: 32px; padding: 0 10px; font-size: 13px; font-weight: 500; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea { min-height: 40px; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; font-size: 14px; color: var(--ink); background: #FFFFFF; }
.field textarea { line-height: 1.5; resize: vertical; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* Päis */
.site-header { border-bottom: 1px solid var(--line); background: #FFFFFF; }
.site-header .inner { max-width: 1400px; margin: 0 auto; padding: 14px 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 20px; }
.site-nav { display: flex; gap: 22px; font-size: 15px; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a.active { color: var(--ink); font-weight: 600; }
.spacer { flex: 1; }
.segmented { display: flex; background: var(--soft); border-radius: 10px; padding: 4px; }
.segmented button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 7px; font-size: 14px; font-weight: 600; background: transparent; color: var(--ink-2); }
.segmented button[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; }

/* Paigutus */
.layout { max-width: 1400px; margin: 0 auto; padding: 28px 32px 56px; display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start; }
.toc { flex: 1 1 200px; max-width: 220px; font-size: 14px; display: flex; flex-direction: column; gap: 2px; }
.toc .label, .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.toc a { color: var(--ink); text-decoration: none; padding: 6px 0; }
.toc a.sub { color: var(--muted); padding: 4px 0 4px 12px; }
.toc a.sub.active { color: var(--pri); font-weight: 600; box-shadow: inset 3px 0 0 var(--pri); }
.article { flex: 999 1 560px; min-width: 0; max-width: 780px; }
.aside { flex: 1 1 320px; max-width: 380px; min-width: 0; position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; font-size: 14px; line-height: 1.5; max-height: calc(100vh - 32px); overflow-y: auto; padding-bottom: 8px; }

h1.title { margin: 0; font-family: var(--head); font-size: 52px; line-height: 1.05; color: var(--pri); }
.subtitle { margin: 10px 0 0; font-size: 16px; }
.credit { margin: 16px 0 0; font-family: var(--serif); font-style: italic; color: #3A4558; font-size: 17px; line-height: 1.6; }
.prose { font-family: var(--serif); font-size: 17px; line-height: 1.65; margin: 12px 0 0; }
.h2 { margin: 0; font-family: var(--head); font-size: 22px; letter-spacing: .02em; color: var(--pri); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.block { margin-top: 44px; }

/* Üldandmed */
.card { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.meta-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.meta-item { border-radius: 8px; padding: 10px 12px; background: #F3F6FA; }
.meta-item.key { background: var(--pri-soft); box-shadow: inset 0 0 0 1.5px var(--pri); }
.meta-item .k { font-size: 12px; color: var(--muted); }
.meta-item .v { font-size: 15px; font-weight: 600; margin-top: 2px; }
.links-list { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; font-size: 14px; }
.links-list a { text-decoration: none; }

/* Põhisammud */
.steps { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.step { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.step-head { display: flex; gap: 8px; align-items: baseline; }
.step-num { font-family: var(--head); font-weight: 600; color: var(--pri); min-width: 26px; }
.step-name { font-weight: 700; font-size: 15px; }
.step-text { font-family: var(--serif); font-size: 15.5px; line-height: 1.55; color: var(--ink-2); margin: 4px 0 0 34px; }
.step.combo { border-color: var(--pri-line); background: var(--pri-bg); padding: 0; }
.combo-toggle { width: 100%; min-height: 52px; display: flex; gap: 8px; align-items: center; text-align: left; border: 0; background: transparent; padding: 10px 14px; }
.combo-toggle .step-name { flex: 1; }
.pill { font-size: 12px; font-weight: 600; background: #FFFFFF; border: 1px solid var(--pri-line); border-radius: 999px; padding: 3px 10px; color: var(--pri); white-space: nowrap; }
.combo-body { padding: 0 14px 14px 48px; }
.part { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-top: 1px solid #DCE7F3; font-size: 15px; line-height: 1.5; }
.part b { font-size: 14px; }
.part span { font-family: var(--serif); }
.step.flash { box-shadow: 0 0 0 3px #F5A94A; }

/* Kirjeldus */
.tuur-head { width: 100%; display: flex; align-items: baseline; gap: 10px; text-align: left; border: 0; background: transparent; padding: 4px 0; color: var(--pri); margin-top: 28px; }
.tuur-head .t { font-family: var(--head); font-size: 19px; font-weight: 700; }
.tuur-head .chev { margin-left: auto; color: var(--muted); }
.group-head { margin: 14px 0 4px; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.group-head.boys { color: var(--boys); } .group-head.girls { color: var(--girls); }
.els { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.el { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 16px; width: 100%; text-align: left; border: 0; border-radius: 10px; padding: 12px 14px; background: #FFFFFF; box-shadow: inset 0 0 0 1px #E6ECF3; cursor: pointer; }
.el:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.el.selected { background: var(--pri-soft); box-shadow: inset 4px 0 0 var(--pri); }
.el:focus-visible { outline: 3px solid #F5A94A; outline-offset: 1px; }
.el-meta { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.el-range { font-family: var(--head); font-weight: 600; font-size: 15px; }
.who { font-size: 11px; font-weight: 700; color: #FFFFFF; border-radius: 999px; padding: 2px 8px; }
.who.all { background: var(--ink-2); } .who.boys { background: var(--boys); } .who.girls { background: var(--girls); }
.el-where { font-size: 11px; color: var(--muted); }
.el-text { font-family: var(--serif); font-size: 16.5px; line-height: 1.6; }
.el-text .lbl { font-family: var(--sans); font-weight: 700; font-size: 15px; }
.term { color: var(--pri); text-decoration: underline dotted 1.5px; text-underline-offset: 3px; cursor: help; }
.term.step-link { text-decoration-style: solid; text-decoration-thickness: 1px; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; font-family: var(--sans); }
.badge { font-size: 11px; font-weight: 700; color: var(--pri); background: var(--pri-soft); border-radius: 4px; padding: 2px 6px; }
.badge.com { color: var(--warm-ink); background: var(--warm-tag); }

/* Külgpaneel */
.panel { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.panel.gloss { border-color: var(--pri-line); background: var(--pri-bg); }
.panel h3 { margin: 0; font-family: var(--head); font-size: 16px; }
.sel-title { font-family: var(--head); font-size: 20px; font-weight: 600; margin-top: 2px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tab { min-height: 32px; padding: 0 10px; border-radius: 6px; font-size: 13px; font-weight: 600; border: 1px solid var(--line-2); background: #FFFFFF; }
.tab[aria-selected="true"] { border-color: var(--pri); background: var(--pri); color: #FFFFFF; }
.tab.dark[aria-selected="true"] { border-color: var(--ink); background: var(--ink); }
.figure-box { aspect-ratio: 4 / 3; border-radius: 8px; background: #F8FAFC; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.figure-box img { width: 100%; height: 100%; object-fit: contain; }
.figure-box.empty { border: 1.5px dashed #A3B0C2; background: #FFFFFF; flex-direction: column; gap: 8px; color: var(--muted); text-align: center; padding: 12px; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink-2); }
.legend span { display: flex; align-items: center; gap: 6px; }
.comment { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.comment.suggestion { background: var(--warm); border-color: var(--warm-line); }
.comment .tag { font-size: 12px; font-weight: 700; border-radius: 6px; padding: 2px 8px; background: var(--pri-soft); color: var(--pri); }
.comment.suggestion .tag { background: var(--warm-tag); color: var(--warm-ink); }
.comment .top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.comment .body { margin-top: 6px; white-space: pre-wrap; }
.comment .proposal { margin-top: 8px; padding: 8px 10px; background: #FFFFFF; border-radius: 8px; border: 1px solid var(--warm-line); font-family: var(--serif); }
.comment .reply { margin-top: 8px; padding-left: 10px; border-left: 2px solid var(--line); }
.status { font-size: 12px; color: var(--muted); }
.row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.row > .grow { flex: 1; min-width: 0; }
.error { color: #A3261B; font-size: 13px; }
input.num { width: 76px; min-height: 40px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 10px; font-size: 14px; color: var(--ink); }

/* Avaleht ja sõnastik */
.page { max-width: 1000px; margin: 0 auto; padding: 32px; }
.dance-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 20px; }
.dance-card { display: block; border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-decoration: none; color: var(--ink); }
.dance-card:hover { border-color: var(--pri); }
.dance-card .name { font-family: var(--head); font-size: 22px; font-weight: 700; color: var(--pri); }
.gloss-list { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.gloss-item { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.gloss-item:target { box-shadow: 0 0 0 3px #F5A94A; }
.gloss-group { margin-top: 18px; }
.gloss-group + .gloss-group { margin-top: 36px; }
.gloss-type-title { margin: 22px 0 0; font-size: 19px; font-weight: 700; color: var(--ink); }
.gloss-sub { margin: 16px 0 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 17px; color: var(--ink-2); }
.term-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin-top: 10px; }
.term-chip { min-height: 44px; text-align: left; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #FFFFFF; font-size: 15px; font-weight: 600; color: var(--ink); }
.term-chip:hover { border-color: var(--pri); background: var(--pri-bg); color: var(--pri-dark); }
.term-chip:focus-visible { outline: 3px solid #F5A94A; outline-offset: 1px; }

/* Sõnastiku hüpikaken */
.gloss-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 14px; box-shadow: 0 24px 64px rgba(0, 0, 0, .25); color: var(--ink); }
.gloss-dialog.has-figs { width: min(1040px, calc(100vw - 32px)); }
.gloss-dialog::backdrop { background: rgba(20, 28, 22, .5); }
.gloss-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 22px 14px; border-bottom: 1px solid var(--line); }
.gloss-dialog-head .eyebrow { color: var(--pri); text-transform: uppercase; }
.gloss-dialog-title { margin: 4px 0 2px; font-family: var(--head); font-size: 26px; line-height: 1.15; color: var(--ink); }
.gloss-dialog-body { display: flex; flex-wrap: wrap; }
.gloss-dialog-text { flex: 1 1 320px; min-width: 0; padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.gloss-dialog-figs { flex: 1 1 360px; min-width: 0; padding: 18px 22px 22px; background: var(--pri-bg); border-left: 1px solid var(--pri-line); display: flex; flex-direction: column; gap: 14px; }
.gloss-fig { margin: 0; background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.gloss-fig img { display: block; width: 100%; height: auto; max-height: 52vh; object-fit: contain; }
.gloss-fig figcaption { margin-top: 8px; font-size: 13px; line-height: 1.5; }
.gloss-parts { color: var(--pri); font-weight: 600; }
.gloss-edit { cursor: pointer; font-size: 13px; color: var(--pri); }
.gloss-form { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }

@media (max-width: 720px) {
  .layout, .site-header .inner, .page { padding-left: 16px; padding-right: 16px; }
  .meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .el { grid-template-columns: 1fr; gap: 6px; }
  .el-meta { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .aside { position: static; max-height: none; }
  h1.title { font-size: 40px; }
  .part { grid-template-columns: 1fr; gap: 2px; }
  .combo-body { padding-left: 14px; }
  .gloss-dialog-figs { border-left: 0; border-top: 1px solid var(--pri-line); }
  .gloss-dialog-title { font-size: 22px; }
}

@media print {
  .site-header, .toc, .aside, .no-print, .badges .com { display: none !important; }
  .layout { display: block; padding: 0; }
  .article { max-width: none; }
  .el { box-shadow: none !important; background: none !important; padding: 4px 0; grid-template-columns: 1fr; }
  .el-meta { display: none; }
  .card, .step { border-color: #BBBBBB; break-inside: avoid; }
  .term { color: inherit; text-decoration: none; }
  .tuur-head .chev { display: none; }
  .tuur-head { break-after: avoid; }
  body { font-size: 11pt; }
}

/* Joonised */
.figure-box.diagram { padding: 10px; }
.figure-box.diagram svg { width: 100%; height: 100%; }

/* Jooniste redaktor */
.editor { max-width: 1440px; margin: 0 auto; padding: 16px 24px 32px; }
.editor-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.editor-title { margin: 2px 0 0; font-family: var(--head); font-size: 26px; color: var(--pri); }
.editor-title a { text-decoration: none; }
.editor-body { display: grid; grid-template-columns: 112px minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.toolbar { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 12px; }
.tool { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #FFFFFF; font-size: 13px; font-weight: 600; color: var(--ink-2); text-align: left; }
.tool[aria-pressed="true"] { background: var(--pri-soft); border-color: var(--pri); color: var(--pri-dark); }
.tool-icon svg { width: 20px; height: 20px; display: block; }
.canvas { border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #F3F6FA; touch-action: none; user-select: none; }
.canvas svg { display: block; width: 100%; height: auto; max-height: 76vh; }
.canvas .obj { cursor: move; }
.canvas .handle { fill: #FFFFFF; stroke: #B4530F; stroke-width: 1.6; cursor: grab; }
.canvas .handle.rot { fill: #B4530F; }
.canvas .rot-line { stroke: #B4530F; stroke-width: 1; stroke-dasharray: 2 2; }
.canvas .hand-dot { fill: #1F4F8F; opacity: .55; }
.canvas .hand-dot.on { fill: #B4530F; opacity: 1; }
.canvas .preview { fill: none; stroke: #B4530F; stroke-width: 1.4; stroke-dasharray: 4 3; }
.canvas .preview-dot { fill: #B4530F; }
.canvas .marquee { fill: rgba(30, 107, 60, .08); stroke: var(--pri); stroke-width: 1; stroke-dasharray: 4 3; }
#status { margin-top: 8px; min-height: 18px; }
.editor-panel { display: flex; flex-direction: column; gap: 12px; }
.editor-panel .panel { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.editor-panel h3 { margin: 0; font-family: var(--head); font-size: 16px; }
.editor-panel .field input, .editor-panel .field select { min-height: 34px; }
.editor-panel .row .field { flex: 1; min-width: 80px; }
.row.wrap { flex-wrap: wrap; }
.stack-sm { display: flex; flex-direction: column; gap: 6px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.small { font-size: 12.5px; margin: 0; }
.btn.danger { color: #A3271A; border-color: #E3B3AC; }
.attach { display: flex; align-items: center; gap: 6px; }
.attach select, .attach input { min-height: 32px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 8px; }
.help summary { cursor: pointer; font-size: 13px; font-weight: 600; }
.help ul { padding-left: 18px; margin: 8px 0 0; }
@media (max-width: 980px) { .editor-body { grid-template-columns: 1fr; } .toolbar { flex-direction: row; flex-wrap: wrap; position: static; } }

/* Takti muutmine */
.el { position: relative; }
.el-edit { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; background: #FFFFFF; color: var(--muted); opacity: .75; }
.el:hover .el-edit, .el.selected .el-edit, .el-edit:focus-visible { opacity: 1; color: var(--pri); border-color: var(--pri-line); }
.el-edit:hover { background: var(--pri-soft); }
.el-text { padding-right: 36px; }
.edit-dialog { width: min(1100px, 96vw); max-height: 94vh; padding: 0; border: 0; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.edit-dialog::backdrop { background: rgba(20, 30, 24, .45); }
.edit-dialog form { padding: 18px 22px 20px; }
.dlg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.dlg-head h2 { margin: 2px 0 0; font-family: var(--head); font-size: 20px; color: var(--pri); }
.dlg-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px; }
.dlg-col { display: flex; flex-direction: column; gap: 10px; }
.dlg-col .row > .field { flex: 1; min-width: 120px; }
.dlg-col .grow { flex: 2; }
.dlg-col textarea { font-family: var(--serif); font-size: 15.5px; line-height: 1.5; }
.small-text { font-size: 12.5px; }
.dlg-actions { margin-top: 14px; }
.fig-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.fig-thumb { border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.fig-thumb .thumb { height: 140px; display: flex; align-items: center; justify-content: center; background: #F8FAFC; border-radius: 6px; }
.fig-thumb .thumb svg { width: 100%; height: 100%; }
.edit-figs select { min-height: 32px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 8px; }
.dlg-fig { padding: 12px 14px 14px; }
.dlg-fig iframe { width: 100%; height: min(82vh, 860px); border: 1px solid var(--line); border-radius: 10px; }
@media (max-width: 820px) { .dlg-grid { grid-template-columns: 1fr; } }
body.embed .editor { padding: 10px 12px; }
body.embed .editor-title { font-size: 20px; }
body.embed .editor-body { grid-template-columns: 104px minmax(0, 1fr) 260px; }

/* Videoaken */
.aside-body { display: flex; flex-direction: column; gap: 14px; }
.video-dock { position: sticky; top: 0; z-index: 2; background: #FFFFFF; }
.video-dock[hidden] { display: none; }
.video-panel { gap: 8px; padding: 10px; }
.video-frame { aspect-ratio: 16 / 9; width: 100%; border-radius: 8px; overflow: hidden; background: #111; }
.video-frame iframe, .video-frame > div { width: 100%; height: 100%; display: block; border: 0; }
.video-panel.small .video-frame { width: 50%; }
.video-body { display: flex; flex-direction: column; gap: 8px; }
.video-head { gap: 8px; flex-wrap: nowrap; }
.video-head .spacer { flex: 1; }
.video-head select { max-width: 200px; }
.video-title { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.video-controls { gap: 6px; align-items: center; }
.video-controls select { padding: 4px 6px; }
.video-time { font-variant-numeric: tabular-nums; font-size: 13px; margin-left: auto; }
.video-now { font-size: 13px; font-weight: 600; color: var(--pri); }
.video-marks summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--pri); }
.video-marks[open] { display: flex; flex-direction: column; gap: 8px; }
.mark-list { display: flex; flex-direction: column; gap: 4px; max-height: 180px; overflow-y: auto; }
.mark { display: flex; align-items: center; gap: 4px; font-size: 12.5px; }
.mark .grow { flex: 1; min-width: 0; }
.mark .btn-small { padding: 2px 7px; min-width: 26px; }
.linklike { border: 0; background: none; color: var(--pri); font-weight: 600; cursor: pointer; padding: 0; font-variant-numeric: tabular-nums; min-width: 46px; text-align: left; }
.check { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.el-play { position: absolute; top: 46px; right: 8px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--pri-line); border-radius: 8px; background: #FFFFFF; color: var(--pri); }
.el-play:hover { background: var(--pri-soft); }
.el.playing { box-shadow: inset 4px 0 0 var(--pri), inset 0 0 0 1px var(--pri-line); background: #F1F7FE; }

/* Takti lisamine, lohistamine ja kontrollmärkused */
.tuur-row { display: flex; align-items: flex-end; gap: 10px; }
.tuur-row .tuur-head { flex: 1; min-width: 0; }
.tuur-add { flex: none; width: 30px; height: 30px; border: 1px solid var(--pri-line); border-radius: 8px; background: #FFFFFF; color: var(--pri); font-size: 20px; line-height: 1; font-weight: 600; }
.tuur-add:hover { background: var(--pri-soft); }
.sec-notes { margin: 6px 0 4px; padding: 8px 12px; border-left: 3px solid #A3261B; background: #FDF3F1; color: #A3261B; font-size: 14px; border-radius: 0 8px 8px 0; }
.sec-notes ul { margin: 2px 0 0; padding: 0; list-style: none; }
.sec-notes li::before { content: "– "; }
.el-drag { position: absolute; left: 0; top: 0; bottom: 0; width: 14px; display: flex; align-items: center; justify-content: center; color: var(--line-2); cursor: grab; border-radius: 10px 0 0 10px; }
.el:hover .el-drag, .el.selected .el-drag { color: var(--muted); }
.el-drag:active { cursor: grabbing; }
.el.dragging { opacity: .4; }
.el.drop-before { box-shadow: inset 0 3px 0 var(--pri), inset 0 0 0 1px #E6ECF3; }
.el.drop-after { box-shadow: inset 0 -3px 0 var(--pri), inset 0 0 0 1px #E6ECF3; }
.osa.drop-into { outline: 2px dashed var(--pri); outline-offset: 4px; border-radius: 10px; }
.btn-danger { color: #A3261B; border-color: #E3B5AF; background: #FFFFFF; }
.btn-danger:hover { background: #FDF3F1; }
.logo .tld { color: #B4500B; }

/* ---------- Videojoonised ---------- */
.vj-main { max-width: 1240px; margin: 0 auto; padding: 28px 24px 60px; }
.vj-lead { max-width: 820px; color: var(--muted); line-height: 1.55; }
.vj-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin: 18px 0 8px; padding: 12px 16px; background: var(--pri-bg); border: 1px solid var(--pri-line); border-radius: 10px; font-size: 14px; }
.vj-legend .eyebrow { flex-basis: 100%; }
.vj-key { display: flex; align-items: center; gap: 8px; }
.vj-sym { display: inline-flex; }
.vj-sym svg { height: 34px; width: auto; }
.vj-sec { margin-top: 30px; }
.vj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 12px; }
.vj-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.vj-head, .vj-foot { display: flex; align-items: center; gap: 6px; padding: 8px 12px; font-size: 14px; }
.vj-head { border-bottom: 1px solid var(--line); }
.vj-foot { border-top: 1px solid var(--line); }
.vj-head .spacer, .vj-foot .spacer { flex: 1; }
.vj-svg { background: var(--pri-bg); }
.vj-svg svg { display: block; width: 100%; height: auto; }
