/* NXT Workbook app */
.section-workbook { padding-top: 0; }
.wb { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.wb-side, .wb-main { min-width: 0; }
.wb-side { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 18px; }
.wb-progress { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.wb-progress-bar { height: 100%; width: 0; background: var(--connection); background-size: 200% 100%; transition: width .3s; }
.wb-progress-text { font-size: 13px; color: var(--text-3); margin: 10px 0 14px; font-weight: 600; }
.wb-nav { display: grid; gap: 2px; margin-bottom: 16px; }
.wb-sec { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--text-3); padding: 14px 10px 6px; }
.wb-navitem { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; padding: 9px 10px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: var(--text-2); }
.wb-navitem:hover { background: var(--surface-2); color: var(--text); }
.wb-navitem.cur { background: var(--ink); color: #fff; }
.wb-dot { flex: 0 0 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--text-2); }
.wb-navitem.done .wb-dot { background: var(--mint); color: var(--ink); }
.wb-navitem.cur .wb-dot { background: rgba(255,255,255,.18); color: #fff; }
.wb-navitem.cur.done .wb-dot { background: var(--mint); color: var(--ink); }
.wb-saved { font-size: 12.5px; color: var(--text-3); margin: 12px 0 0; line-height: 1.45; }
.wb-main { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3.5vw, 44px); min-height: 60vh; }
.wb-head h2 { font-size: clamp(26px, 3vw, 38px); }
.wb-head h2 i { font-style: normal; color: var(--accent); }
.wb-head .lead { font-size: 17px; margin-bottom: 22px; }
.wb-guide { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); margin-bottom: 26px; }
.wb-guide summary { list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 700; font-size: 14px; letter-spacing: .04em; display: flex; justify-content: space-between; align-items: center; }
.wb-guide summary::-webkit-details-marker { display: none; }
.wb-guide summary::after { content: "+"; font-size: 22px; font-weight: 300; color: var(--accent); }
.wb-guide[open] summary::after { content: "\2013"; }
.wb-guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; padding: 0 18px 18px; }
.wb-gi p { margin: 0; font-size: 15px; color: var(--text-2); line-height: 1.5; }
.wb-gi-k { font-size: 11.5px !important; letter-spacing: .14em; text-transform: uppercase; font-weight: 700 !important; color: var(--text-3) !important; margin-bottom: 4px !important; }
.wb-fields { display: grid; gap: 16px; margin-bottom: 18px; }
.wb-fields.two { grid-template-columns: 1fr 1fr; }
.wb-fld label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
.wb-hint { font-size: 13px; color: var(--text-3); margin: -2px 0 6px; }
.wb-fld input, .wb-fld textarea, .wb-table input, .wb-plan textarea { width: 100%; font: inherit; font-size: 15.5px; color: var(--text); background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 11px 12px; }
.wb-fld textarea, .wb-plan textarea { resize: vertical; }
.wb-fld input:focus, .wb-fld textarea:focus, .wb-table input:focus, .wb-plan textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.wb-checks { display: grid; gap: 10px; margin: 6px 0 18px; }
.wb-checks label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); cursor: pointer; }
.wb-checks input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.wb-checks span { font-size: 15px; line-height: 1.45; }
.wb-tablewrap { overflow-x: auto; margin: 4px 0 18px; }
.wb-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.wb-table th { text-align: left; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); }
.wb-table td { padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.wb-table td.f { font-weight: 600; padding-right: 14px; }
.wb-table input { padding: 9px 10px; font-size: 14.5px; }
.wb-scale { display: inline-flex; gap: 4px; }
.wb-scale button { width: 34px; height: 34px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--bg); font-weight: 600; color: var(--text-2); }
.wb-scale button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.wb-tot { font-weight: 800; font-size: 18px; }
.wb-story { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; background: var(--bg); }
.wb-story-k { font-weight: 700; margin: 0 0 12px; }
.wb-plan { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 6px 0 18px; }
.wb-plan-col { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--bg); display: flex; flex-direction: column; }
.wb-plan-col:nth-child(1) { background: color-mix(in srgb, var(--mint) 35%, var(--surface)); }
.wb-plan-col:nth-child(2) { background: color-mix(in srgb, var(--mint) 60%, var(--surface)); }
.wb-plan-col:nth-child(3) { background: var(--ink); color: #fff; }
.wb-plan-k { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin: 0 0 4px; opacity: .7; }
.wb-plan-y { font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin: 0 0 6px; }
.wb-plan-q { font-style: italic; margin: 0 0 10px; opacity: .85; }
.wb-plan-col ul { display: grid; gap: 6px; margin-bottom: 12px; font-size: 14px; }
.wb-plan-col li { padding-left: 16px; position: relative; }
.wb-plan-col li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .6; }
.wb-plan-col textarea { margin-top: auto; background: rgba(255,255,255,.9); color: var(--ink); }
.wb-prompt { background: var(--ink); color: #E6F1EA; border-radius: var(--radius); padding: 20px 22px; font: 14.5px/1.6 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; margin: 0 0 18px; }
.wb-prompt b { color: var(--mint); }
.wb-note { padding: 16px 18px; background: color-mix(in srgb, var(--mint) 40%, var(--surface)); border-radius: var(--radius-sm); font-size: 15px; line-height: 1.5; margin-bottom: 18px; }
.wb-main .ar { margin: 14px 0; }
.wb-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.wb-count { font-size: 13px; color: var(--text-3); font-weight: 600; letter-spacing: .04em; }
@media (max-width: 980px) {
  .wb { grid-template-columns: minmax(0, 1fr); }
  .wb-side { position: static; }
  .wb-nav { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; }
  .wb-sec { display: none; }
  .wb-nav li { flex: none; }
  .wb-navitem { white-space: nowrap; width: auto; }
  .wb-guide-grid, .wb-fields.two, .wb-plan { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .wb-foot { flex-wrap: wrap; } .wb-foot .btn { flex: 1; } .wb-count { order: -1; width: 100%; } }

/* print document */
.wb-print { display: none; }
@media print {
  @page { size: A4; margin: 16mm 16mm 18mm; }
  body > *:not(.wb-print) { display: none !important; }
  body { background: #fff; color: #14212B; font-size: 11pt; }
  .wb-print { display: block; }
  .pp { page-break-after: always; break-after: page; }
  .pp:last-child { page-break-after: auto; }
  .pp.cover { display: flex; flex-direction: column; min-height: 240mm; }
  .pcov-logo { width: 52mm; margin-bottom: 14mm; }
  .pk { font-size: 9pt; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: #2455FF; margin: 0 0 3mm; }
  .pp h1 { font-size: 34pt; margin: 0 0 10mm; }
  .pp h2 { font-size: 18pt; margin: 0 0 3mm; }
  .pp h2 i { font-style: normal; color: #2455FF; }
  .pmeta { display: grid; gap: 2mm; font-size: 12pt; margin-top: auto; }
  .pmeta b { font-size: 20pt; }
  .pfoot { font-size: 9pt; color: #6F7B85; margin-top: 14mm; }
  .prun { display: flex; justify-content: space-between; font-size: 8.5pt; letter-spacing: .1em; text-transform: uppercase; color: #6F7B85; border-bottom: .3pt solid #c9d3cc; padding-bottom: 2mm; margin-bottom: 6mm; }
  .plead { color: #4A5660; margin: 0 0 4mm; }
  .pg { background: #F3F7F4; border-left: 2pt solid #BFE3CF; padding: 3mm 4mm; font-size: 9.5pt; margin: 0 0 5mm; }
  .pf { margin: 0 0 4mm; }
  .pl { font-size: 9pt; font-weight: 700; margin-bottom: 1.5mm; }
  .pl.sub { color: #6F7B85; font-weight: 600; margin-top: 2mm; }
  .pv { border: .3pt solid #c9d3cc; border-radius: 2mm; padding: 3mm; min-height: 12mm; white-space: pre-wrap; }
  .pv.empty { color: #9aa5ad; font-style: italic; }
  .pf.note { background: #E8F5EE; border: 0; padding: 3mm 4mm; font-size: 9.5pt; }
  .pp table { width: 100%; border-collapse: collapse; font-size: 9.5pt; margin: 0 0 4mm; }
  .pp th, .pp td { border: .3pt solid #c9d3cc; padding: 2mm; text-align: left; vertical-align: top; min-height: 8mm; }
  .pp th { font-size: 8pt; text-transform: uppercase; letter-spacing: .08em; background: #F3F7F4; }
  .pcheck { list-style: none; padding: 0; margin: 0; }
  .pcheck li { padding: 2mm 0 2mm 8mm; position: relative; border-bottom: .3pt solid #e1e6e1; }
  .pcheck li::before { content: ""; position: absolute; left: 0; top: 2.6mm; width: 4mm; height: 4mm; border: .4pt solid #14212B; border-radius: 1mm; }
  .pcheck li.on::before { background: #BFE3CF; }
  .pcheck li.on::after { content: "\2713"; position: absolute; left: .8mm; top: 1.4mm; font-size: 9pt; font-weight: 700; }
}
