/* Inherit the AkiBusiness palette; course state is always labelled, not colour-only. */
.hp-course-badge{display:block;width:fit-content;max-width:100%;padding:3px 7px;border-radius:7px;background:var(--surface);color:var(--muted);font-size:11px;line-height:1.4;overflow-wrap:anywhere}
.hp-course-badge[data-held=true],.hp-course-hold-label{color:var(--text);background:color-mix(in srgb,var(--warning) 16%,var(--surface));border:1px solid var(--border-strong)}
.hp-course-help{display:block;font-weight:400;line-height:1.5;color:var(--muted);margin-top:5px}
.hp-course-warning{border-left:3px solid var(--warning);background:var(--surface);color:var(--text);padding:12px;border-radius:7px;font-size:13px;line-height:1.5}
.hp-course-launch{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:40px;margin:4px 10px 0;flex-shrink:0;background:var(--surface);color:var(--text)}
.hp-course-launch strong{font-size:12px}.hp-course-launch[data-held=true]{border-color:var(--warning)}
.hp-course-overlay{align-items:center;justify-content:center;padding:20px}
.hp-course-dialog{width:min(860px,100%);height:min(740px,calc(100dvh - 40px));max-height:calc(100dvh - 40px);border:1px solid var(--border-strong);border-radius:18px;background:var(--bg);color:var(--text)}
.hp-shell .hp-course-dialog{background:var(--bg)}
.hp-course-dialog>header{flex-shrink:0;border-color:var(--border-strong)}.hp-course-dialog>header p{color:var(--muted)}
.hp-course-content{display:grid;grid-template-columns:minmax(170px,.7fr) minmax(0,1.7fr);flex:1;min-height:0;overflow:hidden}
.hp-course-selection{min-height:0;overflow:auto;padding:18px;border-right:1px solid var(--border-strong)}
.hp-course-selection>p{font-size:12px;line-height:1.5;color:var(--muted);margin:0 0 14px}
.hp-course-selection nav{display:flex;flex-direction:column;gap:8px}
.hp-course-choice{display:flex;flex-direction:column;align-items:start;min-height:58px;gap:4px;white-space:normal;text-align:start;max-width:100%;color:var(--text);background:var(--surface)}
.hp-course-choice span{font-size:11px;color:var(--muted)}.hp-course-choice[aria-pressed=true]{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
.hp-course-form{display:flex;flex-direction:column;gap:0;min-height:0;margin:0;overflow:hidden;min-width:0}
.hp-course-review{flex:1;min-height:0;overflow:auto;padding:18px;overscroll-behavior:contain}
.hp-course-review h3{margin:0 0 8px;font-size:24px}.hp-course-review>p{font-size:13px;line-height:1.5;color:var(--muted)}
.hp-course-review ul{list-style:none;margin:18px 0 0;padding:0}.hp-course-review li{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--border-strong);padding:14px 0;align-items:start;overflow-wrap:anywhere}
.hp-course-review li>div{min-width:0}.hp-course-review li small{display:block;color:var(--muted);font-size:12px;margin:5px 0}.hp-course-review li p{margin:5px 0;font-size:13px;white-space:pre-wrap}
.hp-course-hold-label{flex-shrink:0;border-radius:6px;padding:4px 6px;font-size:10px;max-width:85px}
.hp-course-form>footer{flex-shrink:0;border-top:1px solid var(--border-strong);padding:16px;background:var(--surface-2)}
.hp-course-form>footer>div{display:flex;gap:8px;justify-content:space-between;margin-top:12px}.hp-course-form>footer .action-btn{min-height:44px;white-space:normal;line-height:1.3}
.hp-course-confirm{display:flex!important;flex-direction:row!important;align-items:start;gap:10px;font-size:12px;line-height:1.5;color:var(--text)!important}
.hp-course-confirm input{flex:0 0 21px;width:21px!important;min-height:21px!important;height:21px;margin-top:2px;accent-color:var(--accent)}
.hp-course-dialog button:focus-visible,.hp-course-dialog input:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
@media(max-width:680px){
 .hp-course-overlay{padding:0;align-items:stretch}.hp-course-dialog{width:100%;height:100dvh;max-height:100dvh;border-radius:0;border:0}
 .hp-course-dialog>header{padding:12px 14px}.hp-course-dialog>header h2{font-size:21px}.hp-course-dialog>header p{margin:4px 0 0;font-size:11px}
 .hp-course-content{display:flex;flex-direction:column}.hp-course-selection{flex-shrink:0;max-height:190px;padding:10px 12px;border-right:0;border-bottom:1px solid var(--border-strong)}
 .hp-course-selection>p{font-size:11px;margin-bottom:8px}.hp-course-selection nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .hp-course-choice{padding:9px 7px;min-height:52px}.hp-course-choice strong{font-size:12px}.hp-course-choice span{font-size:10px}
 .hp-course-form{flex:1}.hp-course-review{padding:12px}.hp-course-review h3{font-size:20px}.hp-course-review>p{font-size:12px}.hp-course-review ul{margin-top:10px}.hp-course-review li{padding:10px 0}
 .hp-course-form>footer{padding:12px 12px max(12px,env(safe-area-inset-bottom))}.hp-course-confirm{font-size:11px}.hp-course-form>footer>div{margin-top:8px}
}
@media(max-height:560px){.hp-course-overlay{padding:0}.hp-course-dialog{height:100dvh;max-height:100dvh;border-radius:0}.hp-course-dialog>header{padding:8px 12px}.hp-course-dialog>header h2{font-size:18px}.hp-course-selection{padding:10px}.hp-course-selection>p{font-size:11px}.hp-course-form>footer{padding:8px 12px}.hp-course-review{padding:10px 12px}}

.hp-course-entry{display:flex;align-items:center;gap:8px;padding:6px 10px;flex-shrink:0;border-bottom:1px solid var(--border-strong)}
.hp-course-entry>label{display:flex;flex:1;flex-direction:column;min-width:0;gap:3px}.hp-course-entry>label>span{font-size:10px;color:var(--muted)}
.hp-course-entry select{width:100%;min-width:0;min-height:38px;max-width:100%;padding:7px;border:1px solid var(--border-strong);border-radius:8px;background:var(--surface);color:var(--text);font:inherit;font-size:12px}
.hp-course-entry .hp-course-launch{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;min-height:44px;margin:0;max-width:42%;padding:7px 9px;font-size:12px}
@media(max-width:680px){.hp-course-entry{padding:4px 10px}.hp-course-entry select{min-height:36px}.hp-course-entry .hp-course-launch{min-height:40px}}
/* Coursing adds a sixth bill row; leave the flexible space to the item list. */
.hp-order-open .hp-quick-bill:has(.hp-course-entry){grid-template-rows:auto auto minmax(0,1fr) auto auto auto!important}
.hp-course-entry{min-height:0;position:relative}
