/* Раздел репетитора. Стиль Cobalt (см. shared.css). */
.tw { padding-top: 28px; padding-bottom: 60px; }
.gate { max-width: 460px; margin: 30px auto 0; }
.gate-card { display: grid; gap: 10px; padding: 20px; }
.gate-card .btn { justify-self: start; }
.app-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 18px; }
.app-top h1 { margin: 0; }
.sec { margin: 0 0 22px; }
.sec.card { padding: 18px; }
.sec h2 { margin-bottom: .6em; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.coderow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.coderow .input { flex: 1 1 260px; width: auto; }
.code-msg { min-height: 1.6em; margin-top: 8px; font-weight: 600; color: var(--sky); }
.code-msg.bad { color: var(--trap); }

/* сводка */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.tile { border: 1px solid var(--line); background: rgba(10, 14, 30, .6); border-radius: 10px; padding: 10px 14px; }
.tile .cap { display: block; }
.tile b { font-family: var(--f-head); font-size: 24px; display: block; line-height: 1.2; }
.tile small { display: block; font-size: 13px; line-height: 1.3; }
.dlist { display: grid; gap: 8px; }
.drow { border: 1px solid var(--line); border-radius: 10px; background: rgba(10, 14, 30, .6); }
.drow > summary { list-style: none; cursor: pointer; padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; min-height: 46px; }
.drow > summary::-webkit-details-marker { display: none; }
.drow .dn { font-family: var(--f-head); color: var(--blue2); min-width: 3.4em; }
.drow .dt { font-weight: 600; flex: 1 1 160px; }
.drow .dc { flex-basis: 100%; font-size: 14px; line-height: 1.4; }
.vtag { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--dim); }
.vtag.v-good { color: var(--ok); border-color: #1d4a35; }
.vtag.v-shaky { color: #FFD479; border-color: #5a4a1d; }
.vtag.v-blind { color: var(--trap); border-color: var(--trap-line); }
.vtag.v-rule { color: var(--sky); border-color: var(--blue2); }
.dinner { padding: 0 14px 12px; }
.hk { margin: 6px 0; font-size: 15px; line-height: 1.55; }
.hk .rl { font-size: 14px; }
.hooks { display: grid; gap: 10px; }
.hooks .box { margin: 0; }

/* оценки */
.rows { display: grid; gap: 8px; }
.rrow { display: grid; grid-template-columns: minmax(180px, 1.1fr) minmax(220px, 1.4fr) 1fr; gap: 6px 14px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: rgba(10, 14, 30, .5); }
.rrow.empty { border-style: dashed; border-color: var(--blue2); background: rgba(29, 75, 255, .08); }
.rn { display: flex; gap: 8px; align-items: baseline; line-height: 1.3; }
.rn b { font-family: var(--f-head); color: var(--blue2); min-width: 3.2em; }
.rn span { font-weight: 600; font-size: 15px; }
.rctl { display: flex; gap: 10px; align-items: center; }
.rctl input[type=range] { flex: 1; min-width: 0; height: 36px; accent-color: var(--blue); }
.rctl input.unset { opacity: .45; }
.numin { width: 64px; flex: none; text-align: center; padding: 8px 4px; min-height: 42px; }
.clr { flex: none; }
.rtags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag.need { color: #fff; background: rgba(29, 75, 255, .45); border-color: var(--blue2); }
.why { grid-column: 1 / -1; background: var(--trap-bg); border: 1px solid var(--trap-line); border-radius: 8px; padding: 10px 12px; }
.whyt { color: var(--trap); font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg .btn[aria-pressed=true] { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 18px rgba(29, 75, 255, .5); }

/* что проверить */
.chk { margin: 0; padding-left: 1.4em; display: grid; gap: 12px; }
.chk li { padding-left: 4px; }
.chk .ch { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chk .cl { font-size: 15.5px; line-height: 1.55; margin-top: 2px; }
.small-link { font-size: 14px; }

/* режим и темп */
.pace { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--blue2); border-radius: 10px; background: rgba(29, 75, 255, .12); }
.pace p { margin: 0 0 .5em; }
.pace p:last-child { margin: 0; }
.warnb b { color: var(--trap); }

/* маршрут */
.stage { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 14px 18px 10px; margin-bottom: 12px; }
.stage h3 { margin-bottom: .5em; color: #fff; }
.sl { list-style: none; margin: 0; padding: 0; }
.sl li { padding: 6px 0; border-top: 1px solid var(--line); line-height: 1.45; }
.sl li:first-child { border-top: 0; }
.nb { display: inline-block; font-family: var(--f-head); font-size: 12px; color: var(--blue2); min-width: 3.4em; }
.stage.tail { opacity: .55; border-style: dashed; }
.stage.tail h3 { color: var(--muted); }
.stage.essay { border-color: var(--blue); box-shadow: 0 0 22px rgba(29, 75, 255, .25); }
.stage.closing { border-color: var(--blue2); }

/* служебная панель */
.inner { border: 2px dashed var(--trap-line); border-radius: 12px; padding: 16px 18px; background: rgba(60, 10, 20, .18); }
.inner-cap { color: var(--trap); }
.tscroll { overflow-x: auto; }
.ptab { border-collapse: collapse; width: 100%; font-size: 15px; margin-bottom: 10px; }
.ptab th, .ptab td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ptab th { color: var(--sky); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.ptab tr.cur td { color: #fff; font-weight: 800; }
.trapnote { color: var(--trap); }

.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.actions textarea { margin-top: 8px; min-height: 80px; }
#act-msg { flex: 1 1 100%; }

@media (max-width: 760px) {
  .two { grid-template-columns: 1fr; }
  .rrow { grid-template-columns: 1fr; }
  .sec.card { padding: 14px; }
  .actions .btn { flex: 1 1 100%; }
}

/* ---------- версия для родителей ---------- */
.pd-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
#parent-doc { background: #000; border: 1px solid var(--dim); border-radius: 6px; max-width: 794px; margin: 0 auto; position: relative; overflow: hidden; }
#parent-doc::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 40% at 50% 112%, rgba(29, 75, 255, .5) 0%, rgba(18, 40, 200, .2) 45%, transparent 75%); }
.pd-frame { width: 100%; border-collapse: collapse; position: relative; }
.pd-frame > thead > tr > td, .pd-frame > tfoot > tr > td, .pd-frame > tbody > tr > td { padding: 0; }
.sp-top { height: 12mm; } .sp-bot { height: 20mm; }
.pd-body { padding: 0 14mm; font-size: 10.5pt; line-height: 1.45; color: var(--text); }
.pd-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-bottom: 1px solid var(--dim); padding-bottom: 6px; margin-bottom: 10px; }
.pd-logo { font-family: var(--f-logo); font-size: 22pt; color: #fff; line-height: 1; }
.pd-h1 { font-size: 22pt; margin: 4px 0 10px; }
.pd-h2.brk { break-before: page; margin-top: 16px; }
.pd-h2 { font-size: 12pt; margin: 14px 0 6px; color: #fff; }
.pd-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-bottom: 8px; }
.pd-meta .mc:nth-child(3) { grid-column: 1 / -1; }
.pd-meta .mc { border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; background: rgba(10, 14, 30, .7); font-size: 10pt; line-height: 1.35; }
.pd-meta .cap { font-size: 7.5pt; display: block; }
.pd-pace { border: 1px solid var(--blue2); border-radius: 8px; padding: 6px 12px; background: rgba(29, 75, 255, .16); }
.pd-pace p { margin: 0 0 3px; font-size: 10.5pt; }
.pd-pace p:last-child { margin: 0; }
.pd-warn b { color: var(--trap); }
.pd-tab { width: 100%; border-collapse: collapse; font-size: 8.8pt; line-height: 1.25; }
.pd-tab th { text-align: left; font-size: 7.5pt; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); padding: 2px 6px; border-bottom: 1px solid var(--dim); }
.pd-tab td { padding: 1.6px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70mm; border-bottom: 1px solid var(--line); vertical-align: top; }
.pd-tab tr { break-inside: avoid; }
.c-n { font-family: var(--f-head); color: var(--blue2); width: 7mm; font-size: 8pt; }
.lv { font-weight: 800; white-space: nowrap; }
.lv-a { color: var(--trap); } .lv-b { color: #FFD479; } .lv-c { color: var(--ok); } .lv-u { color: var(--muted); }
.pd-note { color: var(--muted); font-size: 9.5pt; margin: 0 0 8px; }
.pd-stage { border: 1px solid var(--line); background: rgba(10, 14, 30, .7); border-radius: 8px; padding: 8px 12px 6px; margin-bottom: 8px; break-inside: avoid; }
.pd-stage h3 { font-size: 10.5pt; margin-bottom: 4px; color: #fff; }
.pd-stage ul { list-style: none; margin: 0; padding: 0; font-size: 9.5pt; }
.pd-stage li { padding: 2px 0; border-top: 1px solid var(--line); line-height: 1.35; }
.pd-stage li:first-child { border-top: 0; }
.pd-stage.tail { opacity: .6; border-style: dashed; }
.pd-stage.essay { border-color: var(--blue); }
.pd-foot { position: fixed; left: 0; right: 0; bottom: 0; padding: 4mm 14mm 6mm; font-size: 8pt; line-height: 1.35; color: var(--sky); border-top: 1px solid var(--dim); background: #000; z-index: 5; display: none; }
#parent-doc .pd-foot { position: static; display: block; margin-top: 10px; }
#parent-doc { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

@page { size: A4; margin: 0; }
@media print {
  html, body { background: #000 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { font-size: 10.5pt; min-height: 0; }
  body.parent-view header.nav, body.parent-view .skip, body.parent-view .no-print, body.parent-view #gate, body.parent-view #app { display: none !important; }
  body.parent-view .tw { padding: 0; max-width: none; margin: 0; }
  body.parent-view #parent-doc { border: 0; border-radius: 0; max-width: none; overflow: visible; }
  body.parent-view #parent-doc::before { display: none; }
  body.parent-view #parent-doc .pd-foot { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; display: block; }
  .pd-frame > thead { display: table-header-group; }
  .pd-frame > tfoot { display: table-footer-group; }
}
