/* Shared application frame: the same navigation and rhythm on every page. */
.lab-tabs { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:10px; }
.lab-tabs [aria-selected=true] { box-shadow:inset 0 -3px var(--teal); font-weight:700; }
.lab-tabs :focus-visible, #lab-grid tr:focus-visible { outline:3px solid var(--teal); outline-offset:3px; }
.lab-feedback p { margin:4px 0; overflow-wrap:anywhere; }
#lab-code-status { overflow-wrap:anywhere; }
.lab-source, #scenario-result, #lab-json, #lab-sql { max-height:60vh; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; font:calc(12px * var(--cc-text-scale,1))/1.5 Consolas,monospace; }
.lab-null { font-style:italic; color:var(--muted); }
#lab-panel-scenarios .row-actions { margin:12px 0; flex-wrap:wrap; }
:root:not([data-style]), :root[data-style] { --radius: 12px; }
.app-layout { font-size:calc(13px * var(--cc-text-scale,1)); line-height: 1.5; }
.app-shell { display: grid; grid-template-columns: 206px minmax(0, 1fr); min-height: 100vh; }
.app-sidebar { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; padding: 16px 12px; background: color-mix(in srgb, var(--teal) 10%, var(--white)); color: var(--ink); overflow-y: auto; }
.app-sidebar .home-brand { flex-shrink: 0; padding-bottom: 18px; }
.app-navigation { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.app-sidebar .home-nav { margin: 0; display: grid; gap: 5px; }
.app-sidebar .home-nav a { font-size:calc(13px * var(--cc-text-scale,1)); padding: 7px 10px; white-space: normal; }
.app-sidebar .home-nav a.active { box-shadow: inset 3px 0 var(--teal); }
.app-sidebar .home-nav a span { flex-shrink: 0; }
.app-sidebar :focus-visible { outline-color: var(--teal); }
.app-account { margin-top: auto; border-top: 1px solid var(--line); padding-top: 10px; }
.app-user { padding: 10px 10px 0; }
.app-user strong { display: block; color: var(--ink); overflow-wrap: anywhere; }
.app-user .link { color: var(--muted); margin-top: 8px; }
.app-menu-toggle { display: none; }
.app-workspace { min-width: 0; display: flex; flex-direction: column; }
.app-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px 0; }
.app-location { min-width: 0; }
.app-location strong { display: block; overflow-wrap: anywhere; }
.app-location>span { display: block; font-size:calc(11px * var(--cc-text-scale,1)); color: var(--muted); margin-top: 3px; }
.app-tools { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-shrink: 0; }
.app-tools .appearance-controls { margin: 0; }
.app-tools .appearance-controls select { width: 118px; }
.app-tools .language { margin-left: 0; }
.app-tools .language summary { padding: 5px 0; }
.app-tools .language img { flex-shrink: 0; }
.app-layout .app-content { width: 100%; max-width: none; min-height: 0; padding: 10px 14px 24px; margin: 0 auto; flex: 1; min-width: 0; }
.app-footer { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 10px 18px; margin-top: auto; }
.app-content .page-heading { margin-bottom: 12px; gap: 12px; align-items: center; }
.app-content h1 { font-size:calc(24px * var(--cc-text-scale,1)); letter-spacing: -.8px; }
.app-content .panel { border-radius: var(--radius); padding: 12px; margin-bottom: 12px; }
.app-content .button { border-radius: var(--radius); padding: 6px 11px; min-height: 30px; }
.app-content .button.small { padding: 6px 12px; min-height: 30px; }
.app-content input:not([type=checkbox]),.app-content select,.app-content textarea { border-radius: var(--radius); padding: 6px 8px; }
.app-content .list-toolbar { gap: 12px; margin-bottom: 10px; }
.app-content th { padding: 7px 10px; }
.app-content td { padding: 7px 9px; }
.app-content .table-scroll { position: relative; max-width: 100%; }
.app-content .pagination { margin-top: 12px; }
.app-content .empty { padding: 20px 12px; }
.app-content .home-hero { margin-top: 0; }
.app-content .home-section { margin-top: 14px; }
.app-content .home-row strong { overflow-wrap: anywhere; }
.app-content .wizard-heading { margin-bottom: 12px; }
.app-content .wizard-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 12px; }
.app-content .wizard-progress { padding: 12px 14px; }
.wizard-progress li>div { position: relative; z-index: 1; padding-right: 10px; background: var(--white); }
.app-content .wizard-progress strong { font-size:calc(12px * var(--cc-text-scale,1)); }
.app-content .wizard-progress small { font-size:calc(10px * var(--cc-text-scale,1)); }
.app-content .wizard-card-head,.app-content .wizard-card-body { padding: 14px; }
.app-content .wizard-card-footer { padding: 10px 14px; flex-wrap: wrap; }
.app-content .wizard-card-footer>div { flex-wrap: wrap; }
.app-content .wizard-summary { padding: 14px; }
.app-content .wizard-summary dl div { font-size:calc(11px * var(--cc-text-scale,1)); }
.app-content .template-source { font: calc(13px * var(--cc-text-scale,1))/1.5 Consolas,monospace; }
.app-content .generation-parameters { padding: 16px 20px; }
.app-content .account { margin: 12px auto; }
@media(min-width: 1600px) { .app-shell { grid-template-columns: 216px minmax(0,1fr); } }
@media(max-width: 1150px) {
    .app-shell { grid-template-columns: 210px minmax(0,1fr); }
    .app-topbar { padding: 12px 16px 0; }
    .app-layout .app-content { padding: 14px; }
    .app-footer { padding: 10px 14px; }
    .app-content .wizard-layout { grid-template-columns: 1fr; }
    .app-content .wizard-summary { position: static; }
    .app-content .home-hero { align-items: flex-start; flex-direction: column; }
    .app-content .home-bottom { grid-template-columns: 1fr; }
    .app-content .page-heading { flex-wrap: wrap; }
}
@media(max-width: 760px) {
    .app-shell { display: block; }
    .app-sidebar { position: static; height: auto; padding: 10px 14px; display: grid; grid-template-columns: 1fr auto; align-items: center; overflow: visible; }
    .app-sidebar .home-brand { padding: 0; font-size:calc(16px * var(--cc-text-scale,1)); }
    .app-menu-toggle { display: inline-flex; gap: 8px; align-items: center; padding: 8px 10px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-size:calc(12px * var(--cc-text-scale,1)); }
    .app-navigation { grid-column: 1/-1; display: flex; padding-top: 18px; }
    .app-sidebar.menu-enhanced:not(.menu-open) .app-navigation { display: none; }
    .app-sidebar .home-nav { display: grid; overflow: visible; }
    .app-account { margin-top: 0; }
    .app-user { padding-top: 8px; }
    .app-topbar { padding: 12px 14px 0; flex-wrap: wrap; gap: 14px; }
    .app-tools { flex: 1; gap: 9px; }
    .app-tools .appearance-controls { margin: 0; }
    .app-tools .appearance-controls select { width: 105px; }
    .app-tools .mode-toggle { padding: 5px 8px; }
    .app-location { flex-basis: 100%; }
    .app-layout .app-content { padding: 14px 14px 22px; }
    .app-footer { padding: 10px 14px; }
    .app-content h1 { font-size:calc(23px * var(--cc-text-scale,1)); }
    .app-content .panel { padding: 12px; }
    .app-content .page-heading { align-items: flex-start; }
    .app-content .home-actions,.app-content .form-layout { grid-template-columns: 1fr; }
    .app-content .wizard-progress { padding: 14px; display: flex; gap: 12px; }
    .app-content .wizard-progress li { min-width: 0; flex: 1; }
    .app-content .wizard-progress li.active { flex: 4; }
    .app-content .wizard-progress li>span { flex-shrink: 0; }
    .app-content .wizard-progress small { display: none; }
    .app-content .wizard-progress li:not(.active)>div { display: none; }
    .app-content .wizard-card-head,.app-content .wizard-card-body { padding: 12px; }
    .app-content .wizard-summary { margin-top: 16px; }
    .app-content .wizard-card-footer { padding: 10px 14px; }
    .app-content .wizard-card-footer .button { white-space: normal; }
    .app-content .wizard-card-footer>div { flex-direction: row; }
    .app-content .connection-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .app-content .connection-grid .span-3,.app-content .connection-grid .span-4 { grid-column: span 2; }
    .app-content .wizard-heading { gap: 12px; flex-wrap: wrap; }
    .app-content .row-actions { gap: 12px; }
}
/* Dense controls inherit the selected palette, including the sidebar. */
.app-sidebar .home-brand { color: var(--ink); font-size:calc(16px * var(--cc-text-scale,1)); }
.app-sidebar .brand-mark { background: var(--teal); color: var(--white); width: 28px; height: 28px; border-radius: var(--radius); }
.app-sidebar .home-nav a { color: var(--muted); border-radius: var(--radius); }
.app-sidebar .home-nav a:hover,.app-sidebar .home-nav a.active { background: var(--white); color: var(--teal); }
.app-user-chip { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--ink); font-size:calc(12px * var(--cc-text-scale,1)); }
.app-user-chip strong { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-user-chip>span { color: var(--teal); font-size:calc(10px * var(--cc-text-scale,1)); }
.app-topbar { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.app-tools { flex-wrap: wrap; }
.app-content .home-hero { padding: 16px 18px; border-radius: var(--radius); gap: 18px; }
.app-content .home-hero h1 { font-size:calc(26px * var(--cc-text-scale,1)); margin-bottom: 6px; }
.app-content .home-hero .button { padding: 8px 12px; }
.app-content .home-action { padding: 12px; border-radius: var(--radius); }
.app-content .home-action-icon { width: 28px; height: 28px; border-radius: var(--radius); }
.app-content .home-action h3 { margin: 8px 0 4px; }
.app-content .home-panel { border-radius: var(--radius); }
.app-content .home-stats a { padding: 12px 14px; }
.app-content .home-stats strong { font-size:calc(22px * var(--cc-text-scale,1)); }
.app-content .home-section>h2,.app-content .home-section-heading h2 { margin-bottom: 8px; }
.app-content .wizard-heading h1 { font-size:calc(24px * var(--cc-text-scale,1)); }
.app-content .wizard-card,.app-content .wizard-summary,.app-content .wizard-progress,.app-content .wizard-database-picker { border-radius: var(--radius); }
.app-content .wizard-database-picker { padding: 8px 12px; margin-bottom: 10px; }
.app-content .wizard-card-head h2 { font-size:calc(17px * var(--cc-text-scale,1)); }
.app-content .wizard-option-grid { gap: 5px; }
.app-content .wizard-option-grid .check { padding: 6px 8px; border-radius: var(--radius); }
.app-content .wizard-connection-block { margin-top: 10px; padding-top: 10px; }
.app-content .wizard-ready { padding: 8px 10px; margin-top: 10px; }
.app-content label { margin-bottom: 8px; }
.app-content .wizard-target-grid { gap: 0 10px; }
.app-content .page-heading p,.app-content .wizard-heading p { max-width: 100ch; font-size:calc(12px * var(--cc-text-scale,1)); }
.connection-only .wizard-layout { display: block; max-width: 940px; }
.connection-only .wizard-connection-block { margin-top: 0; padding-top: 0; border: 0; }
.connection-only #connection-stage>label.check { display: none; }
@media(max-width: 760px) {
    .app-tools { flex-basis: 100%; }
    .app-user-chip { margin-right: auto; }
    .app-user-chip strong { max-width: 125px; }
    .app-content .home-hero h1 { font-size:calc(23px * var(--cc-text-scale,1)); }
}
/* Readable guidance and a consistent rounded block treatment in every theme. */
.app-content :is(.panel,.home-panel,.home-action,.home-hero,.wizard-card,.wizard-summary,.wizard-progress,.wizard-database-picker,.generation-tabs,.notice,.validation,.table-scroll,.list-toolbar,.source-preview,.template-preview) { border-radius:var(--radius); }
.app-content .table-scroll { border:1px solid var(--line); }
.app-content .home-panel,.app-content .wizard-card { overflow:hidden; }
.creation-modal { width:min(1180px,96vw); max-width:96vw; max-height:94dvh; padding:0; border:1px solid var(--line); border-radius:16px; background:var(--paper); color:var(--ink); box-shadow:0 24px 90px #0005; }
.creation-modal::backdrop { background:#081d2b88; backdrop-filter:blur(3px); }
.creation-modal-header { position:sticky; top:0; z-index:10; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 18px; background:var(--white); border-bottom:1px solid var(--line); }
.creation-modal-header h2 { margin:0; font-size:calc(18px * var(--cc-text-scale,1)); }
.creation-modal-status { margin:0; padding:0 18px; }
.creation-modal-status:not(:empty) { padding:14px 18px; }
.creation-modal .creation-modal-content { padding:16px 18px; min-height:0; max-width:none; margin:0; }
.creation-modal-content:empty { padding:0; }
.creation-modal .wizard-heading h1 { font-size:calc(20px * var(--cc-text-scale,1)); }
.creation-modal .wizard-heading { margin-bottom:12px; }
.creation-modal .wizard-layout { grid-template-columns:minmax(0,1fr) 240px; }
.creation-modal .connection-only .wizard-layout { display:block; max-width:none; }
body.modal-open { overflow:hidden; }
@media(max-width:760px) {
 .creation-modal { width:98vw; max-width:98vw; max-height:96dvh; }
 .creation-modal .creation-modal-content { padding:12px; }
 .creation-modal .wizard-layout { grid-template-columns:1fr; }
 .creation-modal-header { padding:10px 12px; }
}
.creation-modal .wizard-heading h1 { display:none; } .creation-modal [tabindex="-1"] { scroll-margin-top:85px; } .creation-modal-status:not(:empty) { position:sticky; top:57px; z-index:9; background:var(--white); }
.app-content .section-copy { font-size:calc(13px * var(--cc-text-scale,1)); line-height:1.65; color:var(--muted); max-width:115ch; margin:0 0 12px; }
.app-content .section-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px 18px; margin-bottom:8px; }
.app-content .section-heading h2 { margin:0; }
.app-content .section-footnote { border-top:1px solid var(--line); padding-top:12px; margin:12px 0 0; }
.app-content .section-footnote .section-copy { margin-bottom:6px; }
.app-content .connection-save-copy { margin-top:12px; }
.app-content .page-heading>div:first-child { min-width:0; flex:1; }
.app-content .page-heading p { max-width:110ch; font-size:calc(13px * var(--cc-text-scale,1)); line-height:1.65; }

#lab-workspace .form-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:10px 18px; }
#lab-workspace .form-grid label { margin-bottom:8px; }
#lab-workspace button { display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--teal); border-radius:7px; background:var(--teal); color:white; padding:8px 14px; margin:3px 7px 5px 0; font:inherit; font-weight:600; }
#lab-workspace button.secondary { background:var(--white); color:var(--ink); border-color:var(--line); }
#lab-workspace button:disabled { cursor:not-allowed; }
#lab-workspace #lab-status { margin:10px 0; min-height:1.5em; }
#lab-workspace #lab-query .form-grid>label:first-child { grid-row:span 2; }
#lab-workspace select[multiple] { min-height:130px; }
#lab-workspace #lab-fields>div { border:1px solid var(--line); border-radius:8px; padding:12px; }
#lab-workspace #lab-fields>div>label:not(:first-child) { display:inline-flex; align-items:center; gap:5px; margin:5px 12px 0 0; font-weight:400; }
#lab-workspace #lab-grid tbody tr[tabindex] { cursor:pointer; }
#lab-workspace #lab-grid tbody tr[tabindex]:hover,#lab-workspace #lab-grid tbody tr[tabindex]:focus,#lab-workspace #lab-grid tbody tr.selected { background:var(--paper); outline:2px solid var(--teal); outline-offset:-2px; }
#lab-workspace #lab-grid td { max-width:500px; overflow-wrap:anywhere; white-space:pre-wrap; }
#lab-workspace #lab-output { max-height:350px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; }
@media(max-width:650px) { #lab-workspace .form-grid { grid-template-columns:1fr; } #lab-workspace #lab-query .form-grid>label:first-child { grid-row:auto; } }
.app-content .home-actions { grid-template-columns:repeat(4,minmax(0,1fr)); }
@media(max-width:1150px) { .app-content .home-actions { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:760px) { .app-content .home-actions { grid-template-columns:1fr; } }
/* Studio form rhythm: labels remain beside controls at desktop widths. */
.app-sidebar .home-brand { display:flex; align-items:center; gap:9px; }
.app-sidebar .home-brand small { display:block; color:var(--teal); font-size:calc(9px * var(--cc-text-scale,1)); letter-spacing:.16em; line-height:1.1; }
.app-sidebar .home-nav a { display:flex; align-items:center; gap:10px; min-height:34px; }
.app-sidebar .home-nav a>span { display:inline-grid; place-items:center; width:20px; font-size:calc(17px * var(--cc-text-scale,1)); }
.app-content .wizard-schema-grid,.app-content .wizard-target-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 14px; }
.app-content .wizard-target-grid .wide { grid-column:1/-1; }
.app-content .wizard-schema-grid>label,.app-content .wizard-target-grid>label,.app-content .connection-grid>label:not(.check),.app-content .horizontal-field,.app-content #connection-string>label,.app-content .grid.two>label,.app-content .schema-picker { display:grid; grid-template-columns:115px minmax(0,1fr); align-items:center; gap:10px; min-width:0; margin:0; }
.app-content .wizard-schema-grid>label>*,.app-content .wizard-target-grid>label>*,.app-content .connection-grid>label:not(.check)>*,.app-content .horizontal-field>*,.app-content #connection-string>label>*,.app-content .grid.two>label>* { min-width:0; width:100%; margin:0; }
.app-content #connection-fields .connection-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 14px; margin-bottom:8px; }
.app-content #connection-fields .connection-grid>label:not(.check) { grid-column:auto; }
.app-content #connection-fields .connection-grid>.check { grid-column:1/-1; }
.app-content #connection-fields { border:1px solid var(--line); background:var(--paper); border-radius:var(--radius); padding:12px; }
.app-content .wizard-target-grid>label:first-child { padding:7px 9px; border:1px solid color-mix(in srgb,var(--teal) 45%,var(--line)); border-radius:var(--radius); background:color-mix(in srgb,var(--teal) 7%,var(--white)); }
.app-content .wizard-option-groups { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:12px; }
.app-content .option-group { border:1px solid var(--line); border-radius:var(--radius); padding:8px 10px 10px; }
.app-content .option-group-primary { border-color:color-mix(in srgb,var(--teal) 45%,var(--line)); background:color-mix(in srgb,var(--teal) 5%,var(--white)); }
.app-content .option-group legend { color:var(--teal); font-size:calc(12px * var(--cc-text-scale,1)); font-weight:700; padding:0 5px; }
.app-content .option-group .wizard-option-grid { grid-template-columns:1fr; gap:5px; }
.app-content .option-group .check:has(input:checked) { border-color:color-mix(in srgb,var(--teal) 42%,var(--line)); background:var(--white); }
.app-content .generation-parameters .parameter-list { grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px 12px; }
.app-content .generation-parameter-groups { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-bottom:12px; }
.app-content .generation-parameter-groups>section { border:1px solid var(--line); border-radius:var(--radius); padding:10px; }
.app-content .generation-parameter-groups h3 { margin:0 0 8px; color:var(--teal); }
.app-content .generation-parameter-groups .parameter-list { grid-template-columns:1fr; }
.app-content .generation-parameters .parameter-list>div { display:grid; grid-template-columns:115px minmax(0,1fr); align-items:start; gap:8px; padding:7px 9px; border:1px solid var(--line); border-radius:7px; background:var(--paper); }
.app-content .generation-parameters .parameter-list dt { font-size:calc(11px * var(--cc-text-scale,1)); font-weight:600; }
.app-content .generation-parameters .parameter-options { grid-template-columns:repeat(3,minmax(0,1fr)); }
.app-content .generation-parameters .parameter-options label:has(input:checked) { color:var(--teal); font-weight:700; }
.schema-browser-controls { display:flex; flex-wrap:wrap; align-items:center; gap:10px 18px; }
.schema-picker { grid-template-columns:105px minmax(170px,260px) auto !important; }
.schema-picker select { width:100%; }
.schema-read { margin-left:auto; }
.schema-browser { display:grid; grid-template-columns:260px minmax(0,1fr); gap:12px; align-items:start; }
.schema-tables h2 { font-size:calc(15px * var(--cc-text-scale,1)); margin:0 0 10px; }
.schema-tables nav { display:grid; max-height:65vh; overflow:auto; }
.schema-tables nav a { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:7px 9px; border-radius:7px; color:var(--ink); overflow-wrap:anywhere; }
.schema-tables nav a.active,.schema-tables nav a:hover { background:var(--soft); color:var(--teal); }
.schema-tables nav small { color:var(--muted); }
.schema-columns h3 { font-size:calc(13px * var(--cc-text-scale,1)); margin:14px 0 7px; }
.browser-complete { display:flex; align-items:center; gap:18px; max-width:620px; margin:8vh auto; padding:24px !important; }
.browser-complete-icon { display:grid; place-items:center; width:48px; height:48px; border-radius:50%; background:var(--success-bg); color:var(--success-fg); font-size:calc(25px * var(--cc-text-scale,1)); flex:none; }
.browser-complete h1 { margin:0 0 4px; }
.browser-complete p { margin:0; color:var(--muted); }
@media(max-width:1000px) { .app-content .wizard-option-groups,.app-content .generation-parameter-groups,.app-content .generation-parameters .parameter-list { grid-template-columns:1fr; } .schema-browser { grid-template-columns:210px minmax(0,1fr); } }
@media(max-width:700px) { .app-content .wizard-schema-grid,.app-content .wizard-target-grid,.app-content #connection-fields .connection-grid,.app-content .wizard-option-groups,.schema-browser { grid-template-columns:1fr; } .app-content .wizard-target-grid .wide { grid-column:auto; } .schema-read { margin-left:0; } .app-content .generation-parameters .parameter-options { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:480px) { .app-content .wizard-schema-grid>label,.app-content .wizard-target-grid>label,.app-content .connection-grid>label:not(.check),.app-content .horizontal-field,.app-content #connection-string>label,.app-content .grid.two>label { grid-template-columns:1fr; gap:3px; } .app-content .generation-parameters .parameter-options { grid-template-columns:1fr; } .schema-picker { grid-template-columns:1fr !important; } }

/* Template package browser: target > purpose > full files and optional fragments. */
.template-target-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.template-target-grid[hidden], [data-target-fallback][hidden] { display:none; }
.template-workspace { display:grid; grid-template-columns:minmax(240px,320px) minmax(0,1fr); gap:18px; align-items:start; }
.template-workspace .panel { min-width:0; }
.template-tree { display:block; max-height:85vh; overflow:auto; }
.template-breadcrumb { font-weight:600; overflow-wrap:anywhere; }
.template-group, .template-other { border-top:1px solid var(--line); padding:10px 0; }
.template-group summary, .template-other summary, .template-fragments summary { cursor:pointer; font-weight:600; padding:5px 0; }
.template-fragments { padding-left:12px; margin-top:8px; }
.template-tree .template-file { display:block; width:100%; text-align:left; padding:9px 10px; margin:4px 0; border:1px solid transparent; border-radius:6px; background:transparent; color:var(--ink); cursor:pointer; }
.template-file strong, .template-file small { display:block; overflow-wrap:anywhere; }
.template-file small { color:var(--muted); margin-top:3px; font-size:.85em; }
.template-tree .template-file:hover, .template-tree .template-file[aria-current="true"] { border-color:var(--teal); background:color-mix(in srgb,var(--teal) 10%,var(--white)); }
.template-editor code { overflow-wrap:anywhere; }
.template-editor .template-source { min-height:400px; }
@media(max-width:1050px) { .template-target-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .template-workspace { grid-template-columns:1fr; } .template-tree { max-height:420px; } }
@media(max-width:560px) { .template-target-grid { grid-template-columns:1fr; } }
