/* t-streamline (Nov 3): space pass for phones + iPad. Same look, less dead air: tighter section chrome, no duplicate
   labels, one-line rows where they fit. Tap targets stay >= 44px. Loaded last. */

/* ---------- phone: Controls (inspector) */
html.phone .inspector .sec{margin:4px 8px}
html.phone .inspector .sec:first-of-type{margin-top:4px}
html.phone .inspector .sec-body{padding:0 12px 4px}
html.phone .inspector .sec-body > .ctl:has(> .sl){padding-top:0 !important;padding-bottom:0 !important;margin-top:0 !important;min-height:44px}
html.phone .inspector .insp-head{padding:2px 12px 4px}

/* ---------- phone: Export — row labels already say Name / Seconds and the spec box explains itself, so the duplicate
   section headings go; the file line becomes one row */
html.phone .m-pane #exportPop.ex21.x28 > .pop-head { padding: 8px 0 2px !important; }
html.phone .m-pane #exportPop.ex21.x28 > .x28-sec:is([data-sec="name"], [data-sec="length"], [data-sec="output"]) { display: none !important; }
html.phone .m-pane #exportPop.ex21.x28 > .x28-sec { margin: 12px 0 6px !important; }
html.phone .m-pane #exportPop.ex21.x28 > .ex-file { grid-template-columns: auto minmax(0,1fr) !important; align-items: center; column-gap: 12px !important; padding: 10px 12px !important; margin: 6px 0 10px !important; }
html.phone .m-pane #exportPop.ex21.x28 > .row.m-proj, html.phone .m-pane #exportPop.ex21.x28 > .row.m-loop-row { margin-bottom: 8px !important; }
html.phone .m-pane #exportPop.ex21.x28 > .row.spec { padding: 8px 12px !important; margin: 10px 0 6px !important; }
html.phone .m-pane #exportPop.ex21.x28 > .ex-acts { margin-top: 10px !important; }

/* ---------- phone: Stage sheet (LED Walls) */
html.phone .wall-panel .wb-preview{padding:8px 12px 6px;margin-top:2px}
html.phone .wall-panel .wb-preview > .eyebrow{margin:6px 0 6px}
/* stage presets: one swipeable row instead of three wrapped rows */
html.phone .wall-panel .wb-formats{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;margin:6px -12px 0;padding:0 12px;scroll-padding:0 12px}
html.phone .wall-panel .wb-formats::-webkit-scrollbar{display:none}
html.phone .wall-panel .wb-formats > .sb-chip{flex:none}
/* raster summary: smaller headline, stats in three columns */
html.phone .wall-panel .wb-sum{padding:10px 14px 10px;margin-bottom:8px}
html.phone .wall-panel .wb-sum .wb-big b{font-size:24px;margin-top:2px}
html.phone .wall-panel .wb-sum dl{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:8px;gap:6px 10px}
html.phone .wall-panel .wb-sum dl > div.wide{grid-column:span 2}
/* stage name: label beside the field */
html.phone .wall-panel .wb-name{display:grid;grid-template-columns:auto 1fr;align-items:center;column-gap:12px;margin-bottom:8px}
html.phone .wall-panel .wb-sec{padding:12px;margin-bottom:8px}
html.phone .wall-panel .wb-sec > .eyebrow{margin-bottom:8px}

/* ---------- phone: Presets glass — empty state spans the column like the rows above it */
html.phone .pg-empty, html.phone .mp-empty{width:auto;max-width:none}

/* ---------- iPad portrait: the "Editor" eyebrow repeats what the screen is; give its row to the preview,
   and let the preview take a little more of the height (layers + inspector scroll inside their panels) */
html.tablet #secEditor{display:none}
@media (orientation:portrait){
  html.tablet .stage{height:58%}
  html.tablet .stack, html.tablet .inspector{top:calc(58% + var(--gap))}
}

/* the condensed Export sheet brings the "i" tip into view on tall phones: invisible 44px hit area, same 28px look */
html.phone #exportPop .ex-tip-i { position: relative; }
html.phone #exportPop .ex-tip-i::before { content: ""; position: absolute; top: -8px; bottom: -8px; left: -8px; right: -8px; }
