/* Scoped chapter-one tables: shared course layout remains unchanged. */
.accounting-pilot-lesson .layout>main,.accounting-pilot-lesson #sections,.accounting-pilot-lesson .cardbody{min-width:0}
.accounting-pilot-lesson .accounting-pilot-recall{border:1px solid #d4a740!important;border-top:4px solid #ad7416!important;background:#fffaf0!important}
.accounting-pilot-lesson .accounting-pilot-recall>.cardhead{background:#fff0c6!important;color:#694615!important;border-left-color:#ad7416;border-bottom-color:#dec792}
.accounting-pilot-lesson .accounting-pilot-recall .review{background:#fff5d9!important;color:#62451b;border-color:#d4a740!important}
.accounting-pilot-lesson .accounting-pilot-recall .scorebox{background:#fff5de!important;border-color:#dec792!important}
.accounting-pilot-lesson figure{margin:20px 0}
.accounting-pilot-lesson figure svg{display:block;width:100%;height:auto;max-width:900px;margin:auto}
.accounting-pilot-lesson figcaption{font-size:12px;line-height:1.6;color:#586979;margin-top:10px}
.accounting-pilot-lesson .table-wrap,.accounting-pilot-lesson .table-scroll{max-width:100%;overflow-x:auto;margin:16px 0}
.accounting-pilot-lesson table{font-variant-numeric:tabular-nums}
.accounting-pilot-lesson .cardbody p,.accounting-pilot-lesson .cardbody li{line-height:1.7}
.accounting-pilot-lesson .source{font-size:12px;line-height:1.6}
.accounting-pilot-lesson .cardhead.has-section-tools{display:flex;align-items:center;justify-content:space-between;gap:14px}
.accounting-pilot-lesson .section-heading-text{min-width:0;line-height:1.35}
.accounting-pilot-lesson .section-heading-actions{position:relative;display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 0 auto}
.accounting-pilot-lesson .section-bookmark{width:40px;height:40px;flex:0 0 40px;border:1px solid #b9cecd;border-radius:9px;background:#fff;color:#63757a;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:color .15s ease,background-color .15s ease,border-color .15s ease}
.accounting-pilot-lesson .section-bookmark:hover{color:#a36b00;border-color:#dfbd69}
.accounting-pilot-lesson .section-bookmark.is-saved{color:#8a5c00;background:#fff5da;border-color:#dfbd69}
.accounting-pilot-lesson .section-bookmark svg{width:22px;height:22px}
.accounting-pilot-lesson .section-bookmark.is-saved svg{fill:currentColor}
.accounting-pilot-lesson .section-bookmark:focus-visible,.accounting-pilot-lesson .quiz-help-button:focus-visible{outline:3px solid #12a6a0;outline-offset:3px}
.accounting-pilot-lesson .section-bookmark:disabled,.accounting-pilot-lesson .quiz-help-button:disabled{opacity:.65;cursor:wait}
.pilot-has-help{position:relative}
.pilot-has-help>.qmeta{padding-right:54px;min-height:30px}
.accounting-pilot-lesson .quiz-help-button{position:absolute;right:0;top:12px;width:42px;height:42px;border:1px solid #cfc5ea;border-radius:10px;background:#f3effc;color:#6b52b5;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 3px 10px rgba(107,82,181,.11)}
.accounting-pilot-lesson .quiz-help-button:hover{background:#ebe4fb}
.accounting-pilot-lesson .quiz-help-button.used{color:#765000;background:#fff5da;border-color:#e8c36f}
.accounting-pilot-lesson .quiz-help-button svg{width:23px;height:23px}
.accounting-pilot-lesson .feedback.assisted{color:#6b4700!important;background:#fff5da!important;border-left:4px solid #e5a11a}
.accounting-pilot-lesson .pilot-recall-help[hidden]{display:none!important}
.pilot-recall-help:focus-visible{outline:3px solid #c5a456;outline-offset:3px}
.accounting-pilot{font-variant-numeric:tabular-nums;padding:22px 0}
.accounting-pilot .pilot-prompt{font-size:16px;line-height:1.65;margin:8px 0 12px}
.accounting-pilot .pilot-instruction{font-size:13px;color:#586979;line-height:1.6;max-width:82ch}
.pilot-table-scroll{position:relative;width:100%;max-width:100%;overflow-x:auto;border:1px solid #d5e1e4;border-radius:9px;margin:16px 0;-webkit-overflow-scrolling:touch}
.pilot-table-scroll:focus-visible{outline:3px solid #326c69;outline-offset:3px}
.pilot-table{width:100%;margin:0!important;border-collapse:collapse;font-size:14px;background:#fff}
.pilot-table caption{text-align:left;font-size:13px;font-weight:700;padding:12px 14px;background:#eef4f4;color:#244f54}
.pilot-table th,.pilot-table td{vertical-align:middle;padding:11px 12px;border:1px solid #dce5e8;line-height:1.5}
.pilot-table thead th{background:#f0f5f6;color:#29474e;font-size:12px}
.pilot-table tbody th{background:#f9fbfb;color:#2c3d48;font-weight:600;min-width:135px;max-width:320px}
.pilot-table input,.pilot-table select{font:inherit;border:1px solid #94acb6;background:#fff;color:#223d45;border-radius:5px;padding:9px;width:100%;min-width:108px;min-height:40px}
.pilot-table select{min-width:150px;max-width:280px}
.pilot-table [data-correct="1"]{border-color:#367650;background:#f1faf4}
.pilot-table [data-correct="0"]{border-color:#ac4545;background:#fff7f6}
.pilot-table input:focus-visible,.pilot-table select:focus-visible,.accounting-pilot textarea:focus-visible{outline:3px solid #bad5d3;outline-offset:1px;border-color:#326c69}
.pilot-cell-feedback{display:block;font-size:11px;line-height:1.35;margin:5px 0 0;color:#655654;min-height:0}
.pilot-cell-feedback:empty{display:none}
.pilot-notes-label{display:block;margin:15px 0 6px;font-size:12px;color:#586979}
.accounting-pilot textarea{width:100%;padding:10px;border:1px solid #b7c9d0;border-radius:6px;font:inherit;font-size:14px;resize:vertical}
.pilot-actions{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 8px}
.pilot-actions .btn{min-height:42px;font:inherit;font-size:13px;font-weight:650;border:1px solid #0b7373;border-radius:7px;padding:10px 15px;background:#0b7373;color:#fff;cursor:pointer}
.pilot-actions .btn:hover:not(:disabled){background:#075b62}
.pilot-actions .btn:focus-visible{outline:3px solid #c1dcd8;outline-offset:2px}
.pilot-actions .btn.secondary{background:#fff;color:#245860;border-color:#aac5c5}
.pilot-actions .btn.secondary:hover:not(:disabled){background:#edf7f5!important}
body.accounting-pilot-lesson:has(.accounting-pilot:focus-within) .study-dock{visibility:hidden;pointer-events:none}
.pilot-actions button:disabled{opacity:.65;cursor:wait}
.pilot-status{font-size:13px;color:#4c6269;min-height:20px;line-height:1.5;margin:9px 0}
.pilot-result{border-left:3px solid #36756e;padding:10px 13px;background:#f1f7f5;border-radius:0 6px 6px 0;margin:10px 0;font-size:13px}
.pilot-result p{margin:4px 0}
.pilot-hint{background:#fff6df;border:1px solid #e8c77b;border-left:4px solid #b87c19;padding:14px 16px;border-radius:7px;margin:14px 0;font-size:14px;line-height:1.6;color:#62481b}
.pilot-hint p{margin:6px 0 0}
.pilot-solution{border:1px solid #c8d9de;background:#f7fafb;border-radius:9px;padding:17px;margin-top:16px}
.pilot-solution h3{margin:0 0 8px;color:#284f56}
.pilot-solution>p{font-size:13px;line-height:1.65}
.pilot-solution details{border-top:1px solid #d7e3e6;padding:11px 0;font-size:13px}
.pilot-solution summary{font-weight:650;cursor:pointer;color:#315b62;line-height:1.6}
.pilot-solution details p{padding-left:17px;line-height:1.65}
.pilot-model-answer{white-space:pre-line}
.pilot-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.accounting-pilot-score{border:1px solid #c7dcda;border-left:4px solid #356c65;border-radius:8px;background:#f5f9f8;padding:17px;margin:20px 0 4px}
.accounting-pilot-score>strong{font-size:15px;color:#234e50}
.pilot-score-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:12px 0}
.pilot-score-grid p{display:flex;flex-direction:column;gap:3px;background:white;border:1px solid #d9e5e4;border-radius:6px;padding:12px;margin:0}
.pilot-score-grid span{font-size:12px;color:#4e666b}
.pilot-score-grid b{font-size:23px;color:#285b56}
.pilot-score-grid small{font-size:11px;color:#5c6f75}
.accounting-pilot [hidden]{display:none!important}
@media(max-width:560px){.pilot-score-grid{grid-template-columns:1fr}.pilot-table th,.pilot-table td{padding:9px}.pilot-actions{gap:7px}.pilot-actions .btn{flex:1 1 130px}.pilot-solution{padding:11px}.pilot-table tbody th{min-width:130px}.pilot-table input{min-width:100px}}

.pilot-table td.pilot-numeric,.pilot-table input[data-pilot-cell]{text-align:right;font-variant-numeric:tabular-nums}

/* Simple question/answer grids fit the card; larger workbooks keep their scroll region. */
@media(max-width:640px){
  .pilot-table:has(thead tr>th:nth-child(2):last-child){table-layout:fixed;min-width:0;width:100%;overflow-wrap:anywhere}
  .pilot-table:has(thead tr>th:nth-child(2):last-child) tr>:first-child{width:46%;min-width:0;max-width:none}
  .pilot-table:has(thead tr>th:nth-child(2):last-child) tr>:last-child{white-space:normal;overflow-wrap:anywhere}
  .pilot-table:has(thead tr>th:nth-child(2):last-child) input,
  .pilot-table:has(thead tr>th:nth-child(2):last-child) select{box-sizing:border-box;min-width:0;max-width:100%;width:100%}
}
