/* Selection-first inputs retain native form values and the existing theme tokens. */
[data-sc-native][hidden]{display:none!important}
.sc-label{min-width:0}
.sc-surface{min-width:0;max-width:100%;display:flex;gap:4px;flex-wrap:wrap;align-items:center}
.sc-current-value{flex:1;min-width:80px;white-space:pre-wrap;overflow-wrap:anywhere;font-weight:500}
[data-theme] .sc-action,[data-theme] .sc-browse{background:transparent;color:var(--accent);border:0;text-decoration:underline;text-underline-offset:3px;font-size:12px;padding:4px 6px}
.sc-direct-text{display:block;width:100%}
.sc-direct-text>input,.sc-direct-text>textarea{display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box}
.sc-text-tools{display:flex;flex-wrap:wrap;gap:4px;margin-top:2px}
.sc-inline-builder,.sc-inline-body{display:block;width:100%;min-width:0}
.sc-inline-body>.sc-caption{margin:2px 0 4px}
.sc-inline-body .sc-edit-label{margin:2px 0}
.sc-inline-body .sc-builder-choices{margin:4px 0}
.sc-inline-body .sc-footer{margin:0;padding:4px 0 0;gap:4px}
.sc-inline-body .sc-footer button{font-size:12px;padding:4px 6px}
.sc-inline-body .sc-builder-grid{gap:4px 8px}
.sc-inline-body .sc-builder-grid{display:flex;flex-wrap:wrap;align-items:flex-end}
.sc-inline-body .sc-builder-grid>.sc-edit-label{flex:1 1 120px;min-width:0;max-width:200px;font-size:12px}
.sc-inline-body .sc-builder-choices{flex:0 1 auto;grid-column:auto}
.sc-inline-body .sc-builder-choices legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.sc-inline-body .sc-quantity-values{display:none}
.sc-structured-field:has([data-sc-path$=".wind"]){grid-column:1/-1}
.sc-inline-body .sc-footer .sc-apply{margin-left:0}
.sc-inline-body .sc-number-row input{font-size:16px;padding:4px}
.sc-inline-body .sc-number-row button{width:30px;min-width:30px}
.sc-runway-surface{align-items:flex-end;gap:6px}
.sc-surface-select{flex:1 1 120px;width:120px;max-width:100%;min-width:0;font:inherit;min-height:32px}
.sc-depth{display:grid;gap:4px;width:150px;max-width:100%;font-size:12px}
.sc-depth input{font-size:16px}
.sc-surface-help{flex-basis:100%;margin:0}
.sc-surface-help:empty{display:none}
@media(max-width:480px){.sc-runway-surface .sc-surface-select{width:100%;flex-basis:100%}}
.sc-saved-start{flex-basis:100%;margin:0}
.sc-surface [hidden]{display:none!important}
.sc-surface button{font:inherit;min-height:32px;max-width:100%;line-height:1.4}
.sc-editable-choice{position:relative;display:flex;flex-wrap:nowrap;gap:0}
.sc-combo-input{flex:1;min-width:0;width:100%;box-sizing:border-box;padding-right:30px!important;font:inherit}
[data-theme] .sc-combo-open{position:absolute;right:0;inset-block:0;width:30px;padding:0;border:0;background:transparent;color:var(--ink);border-radius:0}
@media(any-pointer:coarse),(max-width:640px){.sc-combo-input{font-size:16px;min-height:44px;padding-right:44px!important}[data-theme] .sc-combo-open{width:44px}}
[data-theme] .sc-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:6px 0;border:0;border-bottom:1px solid var(--control-edge);border-radius:0;background:transparent;color:var(--ink);font-weight:500;white-space:pre-wrap;overflow-wrap:anywhere;text-align:left}
.sc-trigger:after{content:'';color:var(--accent);width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);flex:none;margin:0 3px 3px auto}
.sc-trigger{max-height:108px;overflow:auto}
[data-theme] .sc-trigger:hover{background:var(--surface-raised)}
[data-theme] .sc-segments button{padding:6px 9px;border:1px solid transparent;background:var(--surface-raised);border-radius:4px;font-size:14px}
[data-theme] .sc-segments button[aria-pressed=true]{border-color:var(--accent);background:var(--hover);color:var(--ink);font-weight:600}
[data-theme] .sc-segments .sc-custom{border:0;background:transparent;color:var(--secondary);font-size:12px}
.sc-source-tag{font-size:11px;color:var(--secondary)}
[data-theme] .sc-readonly{border:0!important;background:transparent!important;padding-inline:0!important;color:var(--secondary)}
.sc-title-input{display:block!important;border:0!important;background:transparent!important}
.sc-title-input>.sc-surface{width:100%}
.sc-title-input>[hidden]{display:none!important}
.sc-number-native{display:flex;align-items:stretch;min-width:0;width:100%;gap:3px}
.sc-number-native input{width:100%;min-width:0;flex:1}
.sc-number-native button{flex:none;width:30px;padding:0;min-height:32px}
.sc-dialog{position:fixed;margin:0;left:var(--sc-left,12px);top:var(--sc-top,12px);width:min(560px,calc(100vw - 24px));max-width:none;max-height:min(640px,calc(100dvh - 24px));padding:0!important;overflow:hidden;border:1px solid var(--control-edge);border-radius:8px;background:var(--surface);color:var(--ink);box-shadow:0 14px 40px #0003}
.sc-dialog::backdrop{background:#10061c45}
.sc-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;background:var(--surface-raised);border-bottom:1px solid var(--edge)}
.sc-dialog-head h2{font-size:17px!important;font-weight:650;margin:0!important;line-height:1.35;overflow-wrap:anywhere}
.sc-dialog-head button{font-size:13px;flex:none}
.sc-dialog-body{max-height:calc(min(640px,100dvh - 24px) - 65px);overflow:auto;overscroll-behavior:contain;padding:8px 12px;scroll-padding-block:8px}
.sc-search{display:block;box-sizing:border-box;width:100%;max-width:100%;min-height:40px;padding:8px 0!important;border:0!important;border-bottom:1px solid var(--control-edge)!important;background:var(--surface);border-radius:0!important;font:inherit}
.sc-list{display:grid;gap:0}
[data-theme] .sc-option{display:block;width:100%;padding:10px 4px;border:0;border-bottom:1px solid var(--edge);border-radius:0;background:transparent;text-align:left;font-size:14px;line-height:1.45;overflow-wrap:anywhere;white-space:pre-wrap}
[data-theme] .sc-option[aria-pressed=true]{background:var(--hover);font-weight:600}
.sc-option-value{display:block;max-height:160px;overflow:auto}
.sc-option small{display:block;color:var(--secondary);font-size:11px;margin-top:4px}
.sc-library-footer,.sc-footer{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding-block:10px 2px;margin-top:4px}
.sc-footer .sc-apply{margin-left:auto;background:var(--selected);color:var(--selected-ink);border-color:var(--selected)}
.sc-caption{font-size:12px!important;line-height:1.5;color:var(--secondary);overflow-wrap:anywhere}
.sc-edit-label{display:grid;gap:5px;font-size:13px;font-weight:600;min-width:0;margin-block:8px}
.sc-edit-label input,.sc-edit-label textarea{font-weight:400;font-size:16px;min-width:0;max-width:100%;width:100%;box-sizing:border-box}
.sc-custom-value{padding:8px;min-height:40px}
textarea.sc-custom-value{min-height:140px;resize:vertical}
.sc-number-row{display:flex;align-items:stretch;gap:4px;min-width:0}
.sc-number-row input{min-width:0;width:100%;flex:1;padding:6px}
.sc-number-row button{width:36px;flex:none;padding:4px}
.sc-builder-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px;min-width:0}
.sc-builder-choices,.sc-cloud-layers,.sc-route,.sc-route-add,.sc-layer{grid-column:1/-1;min-width:0}
.sc-builder-choices{border:0;padding:0;margin:8px 0}
.sc-builder-choices legend{font-size:13px;font-weight:600;margin-bottom:6px}
.sc-builder-choices button,.sc-route-add button{font-size:13px;padding:5px 8px;margin:0 4px 4px 0;min-height:32px}
.sc-builder-choices button[aria-pressed=true]{background:var(--selected);color:var(--selected-ink)}
.sc-multi{display:grid;gap:2px}
.sc-check-option{display:flex;align-items:center;gap:10px;min-height:40px;border-bottom:1px solid var(--edge);padding:6px 0;font-size:14px;line-height:1.45}
.sc-check-option input{width:18px;height:18px;flex:none}
.sc-remember{display:flex;align-items:center;gap:8px;font-size:12px;min-height:36px}
.sc-remember input{width:18px;height:18px}
.sc-layer{padding:8px 0;border-bottom:1px solid var(--edge)}
.sc-layer h3{font-size:15px;margin:0}
.sc-route{padding-left:22px;margin:4px 0}
.sc-route li{display:flex;gap:4px;align-items:center;flex-wrap:wrap;padding:4px 0;border-bottom:1px solid var(--edge)}
.sc-route li span{flex:1;min-width:60px;overflow-wrap:anywhere}
.sc-route li button{font-size:12px;padding:3px 6px}
.sc-builder-error{color:var(--ui-danger);background:var(--ui-danger-bg);padding:8px;font-size:14px!important}
.sc-empty{font-size:13px!important;color:var(--secondary)}
.sc-dialog [hidden]{display:none!important}
@media(any-pointer:coarse),(max-width:640px){.sc-surface button,.sc-number-native button,.sc-dialog button,.sc-check-option{min-height:44px}.sc-number-native button,.sc-number-row button{min-width:44px}.sc-number-native input{font-size:16px}.sc-search{font-size:16px;min-height:44px}}
@media(any-pointer:coarse),(max-width:640px){.sc-surface-select{min-height:44px;font-size:16px}.sc-direct-text>input,.sc-direct-text>textarea{font-size:16px}.sc-inline-body .sc-number-row button{min-width:44px}.sc-inline-body .sc-edit-label input{font-size:16px}}
@media(max-width:640px){.sc-dialog{inset:auto 0 0!important;width:100%;max-height:88dvh;border-radius:14px 14px 0 0;padding-bottom:env(safe-area-inset-bottom)!important}.sc-dialog-body{max-height:calc(88dvh - 72px - env(safe-area-inset-bottom))}.sc-dialog-head{padding:10px 12px}.sc-builder-grid{gap:4px 8px}.sc-surface button{font-size:14px}}

.sc-template-tools{padding:8px 0;color:var(--secondary);font-size:12px}
.sc-template-tools button{font-size:12px;margin:4px;padding:4px 7px}
.sc-template-preview{max-height:100px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px!important}
.sc-competencies button{min-width:44px;font-size:13px}
.sc-quantity-values{grid-column:1/-1;display:flex;gap:4px;flex-wrap:wrap}
.sc-linked-value{font-size:14px;font-weight:600}
.sc-policy-choice{font-size:12px;color:var(--accent);background:transparent}

.label-stepper .sc-surface{flex:1}

.sc-year-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.sc-year-grid button[aria-pressed=true]{background:var(--selected);color:var(--selected-ink)}.sc-number-native button[aria-label="Choose training year"]{width:auto;padding-inline:6px}
.fleet-heading>label:has(.sc-number-native){max-width:100%;min-width:0}
.fleet-heading .sc-number-native{width:auto;max-width:100%;min-width:0}
.fleet-heading .sc-number-native input{width:72px;min-width:60px;flex:1}
@media(max-width:400px){.fleet-heading>label:has(.sc-number-native){flex-wrap:wrap;gap:4px}.field:has(>[name=year]),.field:has(.sc-number-native [name=year]){grid-column:1/-1}}

.sc-combo-list{position:fixed;inset:auto;margin:0;padding:4px;box-sizing:border-box;z-index:1000;display:grid;overflow:auto;overscroll-behavior:contain;max-height:240px;border:1px solid var(--control-edge);border-radius:4px;background:var(--surface);color:var(--ink)}
[data-theme] .sc-combo-list button{display:block;width:100%;border:0;border-radius:2px;padding:6px 8px;background:transparent;color:var(--ink);text-align:left;white-space:normal;overflow-wrap:anywhere;min-height:32px}
[data-theme] .sc-combo-list button[aria-selected=true],[data-theme] .sc-combo-list button:hover{background:var(--hover)}
.sc-combo-empty{padding:8px;color:var(--secondary);font-size:12px}
@media(any-pointer:coarse),(max-width:640px){[data-theme] .sc-combo-list button{min-height:44px}}

/* One-line chart event authoring; narrow viewports scroll this strip internally. */
#profile-panel #profile-format-toolbar:has(#label-format-Event:not([hidden])){overflow:auto;max-height:190px}
#profile-format-toolbar #label-format-Event .event-property-row{display:flex;flex-wrap:nowrap;align-items:end;gap:8px;min-width:max-content}
#profile-format-toolbar #label-format-Event .event-property-grid{display:contents}
#profile-format-toolbar #label-format-Event .event-property-row .field{flex:none;grid-column:auto;width:130px;min-width:0;margin:0}
#profile-format-toolbar #label-format-Event .event-property-row .event-title-field{width:190px}
#profile-format-toolbar #label-format-Event .event-title-field .sc-text-tools{display:none}
#profile-format-toolbar #label-format-Event .event-property-row .event-duration-field{width:78px}
#profile-format-toolbar #label-format-Event .event-property-row .switch-field{width:105px}
#profile-format-toolbar #label-format-Event .event-reposition-options{display:flex;flex:none;flex-wrap:nowrap;align-items:end;gap:8px;min-width:0;margin:0}
#profile-format-toolbar #label-format-Event .event-reposition-options>.field:not(.label-event-range){width:80px}
#profile-format-toolbar #label-format-Event .event-reposition-options>.field:last-child{width:65px}
#profile-format-toolbar #label-format-Event [data-event-maintain]{flex:none;align-self:end;min-height:30px;margin:0}
#profile-format-toolbar #label-format-Event .event-minute-spinner{display:grid;grid-template-columns:minmax(0,1fr) 24px;gap:0}
#profile-format-toolbar #label-format-Event .event-minute-spinner>input{width:100%;min-width:0;appearance:textfield;border-radius:4px 0 0 4px}
#profile-format-toolbar #label-format-Event .event-minute-spinner>span{display:grid;grid-template-rows:1fr 1fr}
#profile-format-toolbar #label-format-Event .event-minute-spinner button{width:24px;min-width:24px;height:15px;min-height:15px;padding:0;font-size:12px;line-height:1;border-radius:0}
#profile-format-toolbar #label-format-Event .event-minute-spinner input::-webkit-inner-spin-button,.sc-minute-spinner input::-webkit-inner-spin-button{appearance:none}
.sc-number-native.sc-minute-spinner{display:grid;grid-template-columns:minmax(0,1fr) 26px;grid-template-rows:1fr 1fr;gap:0;width:100%;max-width:120px}
.sc-minute-spinner>input{grid-row:1/3;min-width:0;appearance:textfield}
.sc-number-native.sc-minute-spinner>button{grid-column:2;min-width:26px;min-height:16px;height:16px;padding:0;font-size:12px;line-height:1}
.sc-minute-spinner>button:nth-child(2){grid-row:2}.sc-minute-spinner>button:nth-child(3){grid-row:1}
.lesson-altitude-unit{font-size:12px;color:var(--secondary)}
@media(max-width:640px),(any-pointer:coarse){
 #profile-format-toolbar #label-format-Event .event-minute-spinner button{min-height:22px;height:22px}
 #profile-format-toolbar #label-format-Event [data-event-maintain]{min-height:44px}
 .sc-number-native.sc-minute-spinner>button{height:22px;min-height:22px}
}

/* Chart actions share its header; the whole SVG owns space above the exercise list. */
#profile-panel>summary{display:flex;flex-wrap:nowrap;align-items:center;gap:6px}
#profile-panel>summary .profile-section-title,#profile-panel>summary .chart-edit-button{flex-shrink:0}
#profile-panel>summary .profile-header-tools{display:flex;flex:0 1 auto;min-width:0;gap:4px;overflow-x:auto;white-space:nowrap;order:1}
#profile-panel>summary .profile-header-tools[hidden]{display:none}
#profile-panel>summary .profile-header-tools button{flex:none}
#profile-panel>summary .profile-header-selection{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;order:2}
#profile-panel>summary .profile-notice,#profile-panel>summary .profile-toggle-label{order:3}
#profile-panel>summary .profile-fullscreen-button{order:4;margin-left:auto;display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;min-height:32px;padding:0}
#profile-panel>summary:has(.profile-header-tools:not([hidden])) .profile-header-selection,#profile-panel>summary:has(.profile-header-tools:not([hidden])) .profile-toggle-label{display:none}
#profile-wrap.profile-container{position:relative;top:auto;isolation:isolate}
#profile-wrap.profile-container:after{display:none}
#profile-wrap #profile-panel[open]{height:auto;max-height:none}
#profile-wrap #profile-panel .profile-body{height:auto;max-height:none;flex:none;min-height:0}
#profile-wrap #profile-panel .profile-chart-scroll{display:block;flex:none;min-height:0;max-height:none;overflow:auto}
#profile-wrap #profile-panel .chart.source-profile{display:block;width:100%;height:auto;max-height:none;flex:none;aspect-ratio:auto}
.lesson-workbench .exercise-container .tools{position:relative;top:auto}
#profile-panel .profile-label-toolbar{align-items:center;min-width:0}
#profile-panel .profile-label-toolbar .profile-label-hint{flex:1;min-width:0;font-size:12px}
@media(max-width:640px),(any-pointer:coarse){
 #profile-panel>summary .profile-fullscreen-button{flex-basis:44px;width:44px;height:44px;min-height:44px}
 #profile-panel>summary .profile-header-tools button{min-height:44px}
}

/* Altitudes use exact numeric entry without sliders. */
#profile-format-toolbar #label-format-Event .event-property-row .label-event-range{width:110px}
#profile-format-toolbar #label-format-Event .altitude-value{display:block}
#profile-format-toolbar #label-format-Event .altitude-value input[type=number]{width:100%}

#profile-format-toolbar #label-format-Event .altitude-value.event-minute-spinner{display:grid;grid-template-columns:minmax(0,1fr) 24px;gap:0}

/* Compact chart spacing, shared field baselines and readable reposition labels. */
#profile-panel>summary{margin:0 0 4px;padding:0;min-height:32px;gap:5px}
#profile-panel>summary .profile-section-title{margin:0;line-height:1.2}
#profile-panel>summary .profile-header-tools{gap:4px}
#profile-panel .profile-label-toolbar{margin:0;padding:0 0 4px;gap:6px}
#profile-panel .profile-label-toolbar .profile-label-hint{margin:0;line-height:1.25}
#profile-panel #profile-format-toolbar{box-sizing:border-box;padding:4px 6px;margin:0 0 4px}
#profile-format-toolbar .label-format-heading{margin:0 0 4px;gap:4px;align-items:center}
#profile-format-toolbar .label-format-tabs{gap:2px}
#profile-format-toolbar #label-format-Event .event-property-row,#profile-format-toolbar #label-format-Event .event-reposition-options{gap:6px;align-items:end}
#profile-format-toolbar #label-format-Event .event-property-row .field{gap:2px}
#profile-format-toolbar #label-format-Event .event-property-row .switch-field{width:132px;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:6px;min-height:30px;white-space:nowrap}
#profile-format-toolbar #label-format-Event .event-property-row .label-event-range .altitude-value input[type=number]{width:100%;box-sizing:border-box}
#profile-format-toolbar #label-format-Event .event-property-row .field>span:first-child{line-height:1.2;white-space:nowrap}
#profile-format-toolbar #label-format-Event .event-property-hint{margin:4px 0 0;line-height:1.25}
#profile-format-toolbar #label-format-Event .event-minute-spinner{align-items:stretch}
#profile-format-toolbar #label-format-Event .event-minute-spinner>span{min-width:0}
@media(max-width:640px),(any-pointer:coarse){
 #profile-panel>summary{min-height:44px}
 #profile-format-toolbar #label-format-Event .event-property-row .switch-field{min-height:44px}
}

/* Already-structured chart times stay native and never acquire nested builders. */
#profile-format-toolbar #label-format-Event .event-property-row .event-time-field{width:126px}
#profile-panel>summary .profile-header-tools{flex-wrap:nowrap;align-items:center}
#profile-panel>summary .profile-header-tools button{white-space:nowrap}

.profile-title-short{display:none}
@media(max-width:640px){
 #profile-panel>summary .profile-title-long{display:none}
 #profile-panel>summary .profile-title-short{display:inline}
 #profile-panel>summary .profile-section-title{font-size:16px}
 #profile-panel>summary .profile-header-tools button{font-size:12px;padding-inline:4px}
}
@media(max-width:640px){
 #profile-panel>summary{gap:4px}
 #profile-panel>summary .profile-section-title{font-size:14px}
 #profile-panel>summary .profile-header-tools button{padding-inline:3px}
}
@media(max-width:640px){
 #profile-panel>summary{gap:3px}
 #profile-panel>summary .profile-header-tools{gap:2px}
 #profile-panel>summary .chart-edit-button{margin-left:0}
}

/* The active package shares one toolbar row with its controls. */
.topbar{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;align-items:center;flex-wrap:nowrap!important}
.workspace-toolbar-start,.workspace-toolbar-end{display:flex;align-items:center;gap:8px;min-width:0}
.workspace-toolbar-start{grid-column:1;grid-row:1}
.workspace-toolbar-end{grid-column:3;grid-row:1;justify-self:end}
.workspace-toolbar-start .spacer{display:none}
.topbar .title.active-package-heading,.active-package-heading{display:flex;flex-direction:column;gap:1px;min-width:0;margin:0;text-align:center;align-items:center}
.topbar .title.active-package-heading{grid-column:2!important;grid-row:1!important;padding:2px;order:0}
.topbar .title.active-package-heading strong,.active-package-heading>strong{font-size:26px;font-weight:700;line-height:1.15;letter-spacing:-.5px}
.topbar .title.active-package-heading strong{white-space:nowrap}
.topbar .title.active-package-heading small,.active-package-heading>small{font-size:11px;font-weight:500;line-height:1.2;color:var(--muted);letter-spacing:normal}
.fleet-canvas>.active-package-heading{margin-bottom:16px}
@media(max-width:1100px){
 .workspace-toolbar-start .save{display:none}
 .workspace-toolbar-end .wide-pdf-label{display:none}
 .workspace-toolbar-end .phone-pdf-label{display:inline}
 .topbar .title.active-package-heading strong{font-size:22px}
}
@media(max-width:850px){.topbar .workspace-toolbar-end .app-version{display:none!important}}
@media(max-width:680px),(max-width:950px) and (max-height:500px) and (any-pointer:coarse){
 .topbar{grid-template-columns:minmax(0,1fr) auto!important;gap:4px!important;min-height:44px}
 .workspace-toolbar-start{display:none}
 .topbar .title.active-package-heading{grid-column:1!important;grid-row:1!important;width:100%}
 .topbar .title.active-package-heading strong{font-size:clamp(14px,4.1vw,18px);letter-spacing:-.35px;max-width:100%;overflow:hidden;text-overflow:ellipsis}
 .workspace-toolbar-end{grid-column:2;grid-row:1;gap:2px}
 .topbar .workspace-toolbar-end .app-version{display:none!important}
 .topbar .workspace-toolbar-end button{width:32px;min-width:32px;height:32px;min-height:32px;padding:4px}
}

@media(any-pointer:fine){#table-wrap .exercise-content>.lesson-title{cursor:grab}}

/* Row deletion is separate from selecting or dragging the exercise. */
.lesson-table .row-delete-cell{width:52px;padding:6px 4px;text-align:center;vertical-align:top}
.lesson-table .row-delete-button{display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:10px;background:transparent;border-color:transparent;color:var(--secondary,var(--muted))}
.lesson-table .row-delete-button:hover{color:#a51c30;background:#fff0f2}
@media(any-pointer:coarse){
 #table-wrap tr[data-row]{touch-action:pan-y pinch-zoom}
 #table-wrap .row-drag-handle{touch-action:none}
 .lesson-table .row-delete-button{opacity:var(--exercise-delete-reveal,0);pointer-events:none;color:#fff;background:#b51f36;border-color:#b51f36;transition:opacity .12s ease}
 .lesson-table .swipe-delete-open .row-delete-button,.lesson-table .row-delete-button:focus-visible{opacity:1;pointer-events:auto}
}
@media(max-width:640px){
 .lesson-table tbody tr[data-row]{position:relative}
 .lesson-table td.row-delete-cell{position:absolute;right:6px;bottom:6px;display:block;width:44px;height:44px;padding:0;border:0;pointer-events:none}
 .lesson-table td.row-delete-cell .row-delete-button{pointer-events:auto}
 .lesson-table .row-delete-button{color:#fff;background:#b51f36;border-color:#b51f36}
 .lesson-table tbody tr[data-row]{padding-bottom:54px}
 .lesson-table tbody tr[data-row] .mode-tags{right:58px}
}
@media(max-width:640px) and (any-pointer:coarse){
 .lesson-table td.row-delete-cell .row-delete-button{pointer-events:none}
 .lesson-table .swipe-delete-open td.row-delete-cell .row-delete-button,.lesson-table td.row-delete-cell .row-delete-button:focus-visible{pointer-events:auto}
 .lesson-table tbody tr[data-row]:not(.swipe-delete-open):not(:has(.row-delete-button:focus-visible)){padding-bottom:8px}
 .lesson-table tbody tr[data-row]:not(.swipe-delete-open):not(:has(.row-delete-button:focus-visible)) .mode-tags{right:var(--panel-inset)}
 .lesson-table tbody tr[data-row]:has(.mode-tags):not(.swipe-delete-open):not(:has(.row-delete-button:focus-visible)){padding-bottom:48px}
}
@media(prefers-reduced-motion:reduce){.lesson-table .row-delete-button{transition:none}}

/* Swipe follows the finger; deletion keeps model changes immediate and animates visuals. */
.exercise-removal-ghost{position:fixed;z-index:50;pointer-events:none;overflow:hidden;background:var(--surface,#fff);border-radius:4px;will-change:transform,opacity,height}
.exercise-removal-ghost .lesson-table{width:100%;min-width:0;margin:0}
@media(any-pointer:coarse){
 #table-wrap tr[data-row]{--exercise-swipe-offset:0px;transition:padding-bottom 180ms cubic-bezier(.2,.7,.2,1)}
 #table-wrap tr.swipe-delete-open{--exercise-swipe-offset:-48px}
 #table-wrap tr[data-row]>td.time,#table-wrap tr[data-row]>.exercise-content{translate:var(--exercise-swipe-offset) 0;transition:translate 180ms cubic-bezier(.2,.7,.2,1)}
 #table-wrap tr.exercise-swiping>td.time,#table-wrap tr.exercise-swiping>.exercise-content{transition:none}
 .lesson-table .row-delete-button{transform:translateX(12px);transition:transform 180ms cubic-bezier(.2,.7,.2,1),opacity 180ms ease}
 .lesson-table .swipe-delete-open .row-delete-button,.lesson-table .row-delete-button:focus-visible{transform:translateX(0)}
 .lesson-table .exercise-swiping .row-delete-button{transition:none}
 .lesson-table .mode-tags{transition:right 180ms cubic-bezier(.2,.7,.2,1)}
}
@media(max-width:640px){#table-wrap tr[data-row]{overflow:clip}}
@media(prefers-reduced-motion:reduce){
 #table-wrap tr[data-row],#table-wrap tr[data-row]>td.time,#table-wrap tr[data-row]>.exercise-content,.lesson-table .row-delete-button,.lesson-table .mode-tags{transition:none!important}
 #table-wrap tr[data-row]>td.time,#table-wrap tr[data-row]>.exercise-content{translate:none!important}
 .lesson-table .row-delete-button{transform:none!important}
}

/* Keep full-screen SVG geometry stable when selecting a point opens inline controls. */
#profile-fullscreen-dialog #profile-panel .profile-chart-scroll[data-stable-canvas] .chart.source-profile{flex:none;height:var(--profile-stable-canvas-height);min-height:var(--profile-stable-canvas-height)}

/* Text formatting uses aligned headings and a shared control baseline. */
#profile-format-toolbar #label-format-Text:not([hidden]),#profile-format-toolbar #label-format-Text .label-property-grid{align-items:start}
#profile-format-toolbar #label-format-Text .field{gap:4px;align-self:center}
#profile-format-toolbar #label-format-Text .field>span:first-child{display:block;min-height:16px;margin:0;font-size:12px;line-height:16px}
#profile-format-toolbar #label-format-Text textarea,#profile-format-toolbar #label-format-Text .field input:not([type=checkbox]){height:38px;min-height:38px}
#profile-format-toolbar #label-format-Text .label-bold{flex-direction:column;align-items:stretch;justify-content:flex-start}
#profile-format-toolbar #label-format-Text .label-bold-value{display:flex;align-items:center;gap:8px;min-height:38px}
#profile-format-toolbar #label-format-Text .label-bold-state::after{content:'Off';font-size:13px;font-weight:400}
#profile-format-toolbar #label-format-Text input:checked+.label-bold-state::after{content:'On'}
@media(max-width:850px){
 #profile-format-toolbar #label-format-Text .label-property-grid{grid-template-columns:minmax(0,1fr) minmax(80px,.6fr) minmax(80px,.6fr)}
}
@media(max-width:600px){
 #profile-format-toolbar #label-format-Text .label-property-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #profile-format-toolbar #label-format-Text .label-slider{grid-column:1/-1}
}
/* Exercise titles retain the native free-text combobox and inline preset suggestions. */
.editor .title-picker .title-input{align-items:stretch}
.editor .title-picker .title-input>input[data-selection-native]{width:100%;min-height:44px}

/* Compact chart properties: share a control baseline and reserve room for values. */
#profile-format-toolbar #label-format-Event .event-property-row{min-width:0;align-items:stretch;gap:6px}
#profile-format-toolbar #label-format-Event .event-property-row .field{width:106px;gap:4px}
#profile-format-toolbar #label-format-Event .event-property-row .event-title-field{flex:1 0 150px;width:auto}
#profile-format-toolbar #label-format-Event .event-property-row .event-time-field{width:110px}
#profile-format-toolbar #label-format-Event .event-property-row .event-duration-field{width:78px}
#profile-format-toolbar #label-format-Event .event-reposition-options>.field:not(.label-event-range),#profile-format-toolbar #label-format-Event .event-reposition-options>.field:last-child{width:96px}
#profile-format-toolbar #label-format-Event .event-property-row .label-event-range{width:106px}
#profile-format-toolbar #label-format-Event .event-property-row .switch-field{width:110px;align-self:stretch;justify-content:center;align-items:center;padding-top:20px;box-sizing:border-box}
#profile-format-toolbar #label-format-Event .event-property-row .field>span:first-child{min-height:16px;line-height:16px}
#profile-panel #profile-format-toolbar #label-format-Event .field input:not([type=checkbox]),#profile-format-toolbar #label-format-Event .event-reposition-options input:not([type=range]){height:38px;min-height:38px;padding:4px 6px;font-size:14px;box-sizing:border-box}
#profile-format-toolbar #label-format-Event .event-minute-spinner button{height:19px;min-height:19px}
#profile-format-toolbar #label-format-Event .event-reposition-options{align-items:stretch}
#profile-format-toolbar #label-format-Event .event-property-row .switch-field>span{min-height:0;line-height:normal}
#profile-format-toolbar #label-format-Text:not([hidden]){display:grid;grid-template-columns:minmax(230px,1fr) 360px;gap:12px;min-width:602px;align-items:start}
#profile-format-toolbar #label-format-Text .label-property-grid{grid-template-columns:minmax(170px,1fr) 88px 80px;gap:10px;min-width:0}
#profile-format-toolbar #label-format-Text .label-slider{grid-column:auto}
#profile-format-toolbar #label-format-Text .range-row{grid-template-columns:minmax(0,1fr) 54px}
#profile-panel #profile-format-toolbar:has(#label-format-Text:not([hidden])){overflow:auto;max-height:150px}
#profile-format-toolbar #label-format-Text .sc-text-tools{flex-wrap:nowrap}
@media(any-pointer:coarse),(max-width:640px){
 #profile-panel #profile-format-toolbar #label-format-Event .field input:not([type=checkbox]),#profile-format-toolbar #label-format-Event .event-reposition-options input:not([type=range]){height:44px;min-height:44px}
 #profile-format-toolbar #label-format-Event .event-minute-spinner button{height:22px;min-height:22px}
}
#profile-panel #profile-format-toolbar #label-format-Text .field textarea{height:38px;min-height:38px;resize:vertical}
#profile-panel #profile-format-toolbar #label-format-Text .sc-text-tools button{min-height:24px;padding-block:2px}
@media(any-pointer:coarse),(max-width:640px){
 #profile-panel #profile-format-toolbar #label-format-Text .field textarea{height:44px;min-height:44px}
}

/* Reposition shares the label/control stack used by the other Event fields. */
#profile-format-toolbar #label-format-Event .event-property-row .event-reposition-toggle{width:80px;display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;padding-top:0;gap:4px}
#profile-format-toolbar #label-format-Event .event-property-row .event-reposition-toggle>span:first-child{font-size:12px;line-height:16px;min-height:16px;font-weight:600}
#profile-format-toolbar #label-format-Event .event-toggle-control{display:flex;align-items:center;justify-content:center;height:38px}
#profile-format-toolbar #label-format-Event .event-reposition-toggle input[role=switch]{width:32px;flex:0 0 32px;height:20px;min-height:20px;padding:0}
#profile-format-toolbar #label-format-Event .event-reposition-toggle input[role=switch]:before{width:14px;height:14px;top:2px;left:2px}
#profile-format-toolbar #label-format-Event .event-reposition-toggle input[role=switch]:checked:before{transform:translateX(12px)}
@media(any-pointer:coarse),(max-width:640px){#profile-format-toolbar #label-format-Event .event-toggle-control{height:44px}}
/* Desktop authoring keeps the chart above a full-width lower-half editor. */
@media(min-width:951px) and (hover:hover) and (pointer:fine){
 html:not([data-touch-input=true]) .lesson-workbench:has(.editor) #profile-wrap{position:fixed;inset:0 8px auto;z-index:7;height:50dvh;margin:0;border-radius:0;box-sizing:border-box}
 html:not([data-touch-input=true]) .lesson-workbench:has(.editor) #profile-wrap #profile-panel[open]{height:100%;max-height:100%;padding:6px 8px;overflow:hidden}
 html:not([data-touch-input=true]) .lesson-workbench:has(.editor) #profile-wrap #profile-panel::details-content{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
 html:not([data-touch-input=true]) .lesson-workbench:has(.editor) #profile-wrap #profile-panel .profile-body{flex:1;display:flex;flex-direction:column;min-height:0;height:auto;max-height:none}
 html:not([data-touch-input=true]) .lesson-workbench:has(.editor) #profile-wrap #profile-panel .profile-chart-scroll{flex:1;min-height:0;overflow:auto}
 html:not([data-touch-input=true]) .lesson-workbench:has(.editor) #profile-wrap #profile-panel .chart.source-profile{height:100%;min-height:0;max-height:none;width:100%;min-width:0;aspect-ratio:auto;flex:1}
 html:not([data-touch-input=true]) .lesson-workbench .editor{position:fixed;inset:50dvh 8px 0;z-index:7;width:auto;max-width:none;height:50dvh;max-height:50dvh;border-radius:0;box-sizing:border-box;box-shadow:none}
 html:not([data-touch-input=true]) .lesson-workbench .editor .edit-body{flex:1;overflow:auto;min-height:0}
 html:not([data-touch-input=true]) .lesson-workbench .editor-enter{animation:none}
 html:not([data-touch-input=true]):has(.lesson-workbench .editor) .backdrop{display:none}
}

@media(min-width:951px) and (hover:hover) and (pointer:fine){
 html:not([data-touch-input=true]) .lesson-workbench:has(.editor) #profile-wrap #profile-panel .profile-body{height:calc(50dvh - 64px);flex:none;overflow:hidden}
 html:not([data-touch-input=true]) .lesson-workbench:has(.editor) #profile-wrap #profile-panel .profile-chart-scroll{display:flex;height:0;flex:1 1 0;min-height:0;max-height:none}
 html:not([data-touch-input=true]) .lesson-workbench:has(.editor) #profile-format-toolbar{height:132px;min-height:132px;max-height:132px;overflow:auto;flex:none}
 html:not([data-touch-input=true]) .lesson-workbench:has(.editor) .profile-body:has(>.profile-label-toolbar:not([hidden])):not(:has(>#profile-format-toolbar))::before{content:'';display:block;height:132px;flex:0 0 132px;margin-bottom:4px;order:0}
}

/* Approved sequence, timing and reposition presentation. Content determines row height. */
:is(#table-wrap,.exercise-drag-ghost) .lesson-table thead th:nth-child(-n+2){text-align:center;font-size:12px;white-space:normal}
:is(#table-wrap,.exercise-drag-ghost) .lesson-table thead th:nth-child(3){text-align:left}
:is(#table-wrap,.exercise-drag-ghost) tr[data-row]>td.sequence{position:relative;padding:8px 2px;text-align:center;vertical-align:middle;width:56px}
:is(#table-wrap,.exercise-drag-ghost) .row-sequence-stack{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}
:is(#table-wrap,.exercise-drag-ghost) .exercise-sequence{font-size:28px;font-weight:700;line-height:1.1;color:var(--ink);font-variant-numeric:tabular-nums}
:is(#table-wrap,.exercise-drag-ghost) .exercise-sequence.long-sequence{font-size:18px}
:is(#table-wrap,.exercise-drag-ghost) .row-sequence-stack .row-drag-handle{position:absolute;top:calc(50% + 17px);left:50%;transform:translateX(-50%);margin:0;width:40px;height:36px;min-height:36px;padding:6px}
:is(#table-wrap,.exercise-drag-ghost) tr[data-row]>td.time{position:relative;width:104px;padding:0;background:var(--surface-raised);vertical-align:top;text-align:center;white-space:normal}
:is(#table-wrap,.exercise-drag-ghost) tr[data-row]>td.time:before{content:'';display:block;height:154px}
:is(#table-wrap,.exercise-drag-ghost) .row-time-stack{position:absolute;inset:12px 4px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:10px;font-variant-numeric:tabular-nums}
:is(#table-wrap,.exercise-drag-ghost) .row-timing-label{display:block;font-size:11px;font-weight:400;color:var(--secondary);line-height:1.25;margin-bottom:3px;white-space:nowrap}
:is(#table-wrap,.exercise-drag-ghost) .exercise-elapsed{font-size:20px;font-weight:700;line-height:1.2;color:var(--ink)}
:is(#table-wrap,.exercise-drag-ghost) .exercise-duration{display:inline-block;padding:3px 6px;font-size:13px;font-weight:600;line-height:1.3;background:#e9f0f9;color:#215a9d;border-radius:3px;white-space:nowrap}
:is(#table-wrap,.exercise-drag-ghost) .exercise-end-altitude{display:block;font-size:17px;font-weight:650;line-height:1.25;color:var(--ink);white-space:nowrap}
:is(#table-wrap,.exercise-drag-ghost) tr[data-row]>.exercise-content{padding:12px 14px;vertical-align:top}
:is(#table-wrap,.exercise-drag-ghost) .exercise-content>.lesson-title{margin:0;font-size:17px;line-height:1.3}
:is(#table-wrap,.exercise-drag-ghost) .exercise-content .scenario,:is(#table-wrap,.exercise-drag-ghost) .exercise-content .annotation,:is(#table-wrap,.exercise-drag-ghost) .exercise-content .parameterline{margin-top:8px;line-height:1.45}
:is(#table-wrap,.exercise-drag-ghost) .exercise-content .exercise-tags{margin-top:8px;gap:5px}
:is(#table-wrap,.exercise-drag-ghost) .exercise-content .exercise-reference-tags{margin-top:6px}
:is(#table-wrap,.exercise-drag-ghost) .subrow .exercise-content{padding-left:24px}
:is(#table-wrap,.exercise-drag-ghost) .reposition-strip-row>td{padding:0;border:0}
:is(#table-wrap,.exercise-drag-ghost) .reposition-strip-row:hover{background:transparent}
:is(#table-wrap,.exercise-drag-ghost) .exercise-reposition-strip{display:flex;align-items:center;flex-wrap:wrap;gap:4px 18px;padding:9px 14px;background:#22272e;color:#fff;font-size:12px;line-height:1.45;overflow-wrap:anywhere}
:is(#table-wrap,.exercise-drag-ghost) .exercise-reposition-strip strong{font-size:13px;color:#fff;white-space:nowrap}
:is(#table-wrap,.exercise-drag-ghost) .reposition-location{font-weight:600;color:#fff}
:is(#table-wrap,.exercise-drag-ghost) .reposition-conditions{margin-left:auto;max-width:65%;color:#e0e5eb;text-align:right}
:is(#table-wrap,.exercise-drag-ghost) tr.selected>td.time{background:var(--hover);color:var(--ink)}
html[data-theme=dark] :is(#table-wrap,.exercise-drag-ghost) .exercise-duration{background:#23364d;color:#c2dcff}
@media(max-width:650px){
 :is(#table-wrap,.exercise-drag-ghost) .lesson-table,:is(#table-wrap,.exercise-drag-ghost) .lesson-table tbody{display:block;min-width:0;width:100%}
 :is(#table-wrap,.exercise-drag-ghost) .lesson-table thead,:is(#table-wrap,.exercise-drag-ghost) .lesson-table colgroup{display:none}
 :is(#table-wrap,.exercise-drag-ghost) .lesson-table tr[data-row]{display:grid;grid-template-columns:40px 78px minmax(0,1fr);gap:0;padding:8px 6px 44px;position:relative;min-height:176px}
 :is(#table-wrap,.exercise-drag-ghost) tr[data-row]>td.sequence{display:block;grid-column:1;grid-row:1/3;width:auto;padding:0;min-height:156px}
 :is(#table-wrap,.exercise-drag-ghost) tr[data-row]>td.time{display:block;grid-column:2;grid-row:1/3;width:auto;align-self:stretch;padding:0}
 :is(#table-wrap,.exercise-drag-ghost) .exercise-sequence{font-size:26px}
 :is(#table-wrap,.exercise-drag-ghost) .exercise-sequence.long-sequence{font-size:16px}
 :is(#table-wrap,.exercise-drag-ghost) .row-sequence-stack .row-drag-handle{width:40px;height:44px;min-height:44px}
 :is(#table-wrap,.exercise-drag-ghost) .row-time-stack{inset:8px 2px}
 :is(#table-wrap,.exercise-drag-ghost) .row-timing-label{font-size:10px}
 :is(#table-wrap,.exercise-drag-ghost) .exercise-elapsed{font-size:17px}
 :is(#table-wrap,.exercise-drag-ghost) .exercise-end-altitude{font-size:15px}
 :is(#table-wrap,.exercise-drag-ghost) .exercise-duration{font-size:12px;padding:3px 4px}
 :is(#table-wrap,.exercise-drag-ghost) tr[data-row]>.exercise-content{display:block;grid-column:3;grid-row:1;padding:2px 8px 8px;min-width:0}
 :is(#table-wrap,.exercise-drag-ghost) .subrow .exercise-content{padding-left:12px}
 :is(#table-wrap,.exercise-drag-ghost) .exercise-content>.lesson-title{font-size:16px;padding-right:0;min-height:0}
 :is(#table-wrap,.exercise-drag-ghost) .exercise-content .scenario,:is(#table-wrap,.exercise-drag-ghost) .exercise-content .annotation{font-size:13px}
 :is(#table-wrap,.exercise-drag-ghost) tr[data-row]>td.com{display:block;grid-column:3;grid-row:2;position:static;padding:0 8px;min-width:0}
 :is(#table-wrap,.exercise-drag-ghost) tr[data-row] .com-values{position:static;display:inline-flex;width:auto;min-width:66px;margin:0;padding:5px 7px;gap:3px;align-items:center;flex-wrap:wrap}
 :is(#table-wrap,.exercise-drag-ghost) .com-frequency{font-size:13px}
 :is(#table-wrap,.exercise-drag-ghost) .com-service{font-size:11px}
 :is(#table-wrap,.exercise-drag-ghost) .lesson-table tr.reposition-strip-row{display:block;padding:0;min-height:0}
 :is(#table-wrap,.exercise-drag-ghost) .reposition-strip-row>td{display:block;width:100%}
 :is(#table-wrap,.exercise-drag-ghost) .exercise-reposition-strip{padding:8px 10px;gap:3px 10px}
 :is(#table-wrap,.exercise-drag-ghost) .reposition-conditions{flex-basis:100%;max-width:none;text-align:left;margin:0}
}

/* Direct list editing leaves the full exercise editor closed. */
#table-wrap .inline-row-value{display:inline-block;min-width:0;min-height:24px;max-width:100%;margin:0;padding:0;border:0;border-radius:2px;background:transparent;color:inherit;font:inherit;line-height:inherit;text-align:inherit;white-space:pre-wrap;overflow-wrap:anywhere;cursor:text;box-shadow:none}
#table-wrap .inline-row-value:hover{background:var(--hover);text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px}
#table-wrap .lesson-title .inline-row-value{display:block;width:100%;text-align:left;font-weight:650}
#table-wrap .inline-empty-value{font-size:12px;font-weight:400;color:var(--secondary)}
#table-wrap .inline-row-tools{display:flex;flex-wrap:wrap;gap:6px;margin:7px 0 8px}
#table-wrap .inline-row-tools:empty{display:none}
#table-wrap .inline-row-tools button{min-height:30px;padding:4px 8px;font-size:12px;background:var(--surface);color:var(--ink);border:1px solid var(--control-edge);border-radius:4px}
#table-wrap .inline-row-tools .inline-aircraft-add{color:#1b684b;border-color:#63917e}
#table-wrap .exercise-reposition-strip,#table-wrap .exercise-aircraft-strip{width:100%;border:0;border-radius:0;min-height:38px;text-align:left;cursor:pointer;font-weight:400}
#table-wrap .aircraft-strip-row>td{padding:0;border:0}
#table-wrap .exercise-aircraft-strip{display:flex;align-items:center;justify-content:space-between;gap:5px 18px;flex-wrap:wrap;padding:9px 14px;background:#174d3b;color:#fff;font-size:12px;line-height:1.45}
#table-wrap .exercise-aircraft-strip strong{font-size:13px;color:#fff}
#table-wrap .exercise-aircraft-strip>span{margin-left:auto;text-align:right;overflow-wrap:anywhere}
#table-wrap .inline-setup-row>td{padding:0 12px 12px;border:0}
#table-wrap .inline-setup-panel{margin:0 0 0 148px;border:1px solid var(--control-edge);border-radius:4px;background:var(--surface);overflow:hidden;font-size:13px;color:var(--ink)}
#table-wrap .inline-setup-panel header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 12px;background:var(--surface-raised)}
#table-wrap .inline-setup-panel header strong{font-size:13px}
#table-wrap .inline-setup-panel header button{min-height:30px;width:30px;padding:0;border:0;background:transparent;color:var(--ink)}
#table-wrap .inline-setup-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:12px}
#table-wrap .inline-setup-field{display:flex;flex-direction:column;gap:4px;min-width:0}
#table-wrap .inline-setup-field[hidden]{display:none}
#table-wrap .inline-setup-field>span{font-size:12px;color:var(--secondary);line-height:1.3}
#table-wrap .inline-setup-field input,#table-wrap .inline-setup-field select,#table-wrap .inline-setup-field output{min-width:0;width:100%;min-height:38px;border:1px solid var(--control-edge);border-radius:4px;background:var(--surface);color:var(--ink);padding:7px 8px;font:inherit;box-sizing:border-box}
#table-wrap .inline-setup-field output{background:var(--surface-raised)}
#table-wrap .inline-setup-panel footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:0 12px 12px}
#table-wrap .inline-setup-panel footer>span{flex:1}
#table-wrap .inline-setup-panel footer button{font-size:12px;min-height:34px;padding:6px 10px}
#table-wrap .inline-setup-panel .inline-remove-change{color:var(--ui-danger,#a53131);border:0;background:transparent;padding-left:0}
#table-wrap .inline-setup-panel .inline-save-change{background:#242a30;border-color:#242a30;color:#fff}
#table-wrap .aircraft-setup-panel .inline-save-change{background:#174d3b;border-color:#174d3b}
#table-wrap .inline-direct-editor{display:block;position:relative;min-width:0;max-width:100%;text-align:left}
#table-wrap .inline-direct-editor input,#table-wrap .inline-direct-editor textarea{width:100%;min-width:0;min-height:36px;font:inherit;font-weight:400;line-height:1.4;padding:5px;border:1px solid var(--control-edge);border-radius:3px;background:var(--surface);color:var(--ink);box-sizing:border-box}
#table-wrap .inline-direct-editor textarea{min-height:76px;resize:vertical}
#table-wrap .inline-direct-editor:has(input[type=number]){padding-right:22px}
#table-wrap .inline-direct-editor input[type=number]{font-size:13px;appearance:textfield}
#table-wrap .inline-direct-editor input::-webkit-inner-spin-button{appearance:none}
#table-wrap .inline-direct-steps{display:grid;position:absolute;right:0;top:0;width:22px;height:36px;grid-template-rows:1fr 1fr}
#table-wrap .inline-direct-steps button{min-height:18px;height:18px;min-width:22px;padding:0;font-size:11px;line-height:1;border-radius:0}
html[data-theme=dark] #table-wrap .inline-row-tools .inline-aircraft-add{color:#b9ead2}
@media(max-width:850px){#table-wrap .inline-setup-fields{grid-template-columns:repeat(2,minmax(0,1fr))}#table-wrap .inline-setup-panel{margin-left:0}}
@media(max-width:650px){
 #table-wrap .lesson-table tr.aircraft-strip-row,#table-wrap .lesson-table tr.inline-setup-row{display:block;padding:0;min-height:0}
 #table-wrap .aircraft-strip-row>td,#table-wrap .inline-setup-row>td{display:block;width:100%}
 #table-wrap .inline-setup-row>td{padding:0 6px 8px}
 #table-wrap .inline-setup-panel{margin:0}
 #table-wrap .inline-setup-field input,#table-wrap .inline-setup-field select{min-height:44px;font-size:16px}
 #table-wrap .inline-row-tools button{min-height:36px}
 #table-wrap .inline-setup-panel footer{flex-wrap:wrap}
 #table-wrap .inline-setup-panel footer>span{display:none}
 #table-wrap .inline-setup-panel footer .inline-remove-change{margin-right:auto}
 #table-wrap .exercise-aircraft-strip>span{flex-basis:100%;margin:0;text-align:left}
}
