/* Styles are opt-in: existing DOM, data, controls and table columns stay intact. */
html:is([data-interface-style="classic"], :not([data-interface-style])) #o-rows > tr[data-id] {
  --order-row-bg: var(--order-status-light, var(--panel));
  --order-row-fg: var(--order-status-text, var(--text));
  background: var(--order-row-bg); color: var(--order-row-fg);
}
html[data-theme="dark"]:is([data-interface-style="classic"], :not([data-interface-style])) #o-rows > tr[data-id] {
  --order-row-bg: color-mix(in srgb, var(--order-status, #eef0f3) 16%, var(--panel));
  --order-row-fg: var(--text);
}
html:is([data-interface-style="classic"], :not([data-interface-style])) #o-rows > tr[data-id] > td {
  background-color: var(--order-row-bg); color: var(--order-row-fg);
}
html:is([data-interface-style="classic"], :not([data-interface-style])) #o-rows > tr[data-id]:hover {
  --order-row-bg: color-mix(in srgb, var(--order-status-light, var(--panel)) 88%, white);
}
html[data-theme="dark"][data-interface-style="classic"] #o-rows > tr[data-id]:hover {
  --order-row-bg: color-mix(in srgb, var(--order-status, #eef0f3) 24%, var(--panel));
}

/* Common sage palette. Link/focus colors remain dark enough on light surfaces. */
html:is([data-interface-style="apple"], [data-interface-style="fluent"], [data-interface-style="material"]) {
  --bg: #f5f7f4; --panel: #ffffff; --line: #dce3da; --line-strong: #a6b4a5;
  --text: #202820; --muted: #5e695e; --accent: #386341; --accent-d: #294c31;
  --accent-bg: #e4f0e0; --style-fill: #d6e8d5; --style-fill-hover: #c5ddc3; --style-on-fill: #243e2b;
  --row-hover: #edf4eb; --ro: #f0f3ee; --cell: #e3e9e1;
  --row-stripe: #f2f6f0; --style-radius: 10px; --style-control-radius: 8px;
}
html[data-theme="dark"]:is([data-interface-style="apple"], [data-interface-style="fluent"], [data-interface-style="material"]) {
  --bg: #171d18; --panel: #222a23; --line: #39463b; --line-strong: #718374;
  --text: #e6eee5; --muted: #b1bfb0; --accent: #b5d6af; --accent-d: #d1e8cc;
  --accent-bg: #334a37; --style-fill: #c0dabb; --style-fill-hover: #d3e7ce; --style-on-fill: #203927;
  --row-hover: #2c3a2f; --ro: #29322b; --cell: #3a463c; --row-stripe: #28332a;
}
html:is([data-interface-style="apple"], [data-interface-style="fluent"], [data-interface-style="material"]) :is(header, .nav-service-links) {
  background: var(--panel); color: var(--text); border-color: var(--line);
}
html:is([data-interface-style="apple"], [data-interface-style="fluent"], [data-interface-style="material"]) header {
  border-bottom: 1px solid var(--line);
}
html:is([data-interface-style="apple"], [data-interface-style="fluent"], [data-interface-style="material"]) header .m-burger { color: var(--text); }
html:is([data-interface-style="apple"], [data-interface-style="fluent"], [data-interface-style="material"]) button.ghost { color: var(--text); }
html:is([data-interface-style="apple"], [data-interface-style="fluent"], [data-interface-style="material"]) button.ghost:hover { color: var(--accent-d); background: var(--accent-bg); }
html:is([data-interface-style="apple"], [data-interface-style="fluent"], [data-interface-style="material"]) header .badge { background: var(--accent-bg); color: var(--accent-d); }
html:is([data-interface-style="apple"], [data-interface-style="fluent"], [data-interface-style="material"]) :is(nav a, .nav-menu-toggle, .nav-service-links button, header .who) {
  color: var(--text);
}
html:is([data-interface-style="apple"], [data-interface-style="fluent"], [data-interface-style="material"]) :is(nav a.on, nav a:hover, .nav-menu-toggle.on, .nav-menu-toggle:hover, .nav-menu-toggle[aria-expanded="true"], .nav-service-links button:hover) {
  background: var(--accent-bg); color: var(--accent-d);
}
html:is([data-interface-style="apple"], [data-interface-style="fluent"], [data-interface-style="material"]) :is(button, .btn, .field, input:not([type="checkbox"]):not([type="radio"]):not([type="color"]), select, textarea) {
  border-radius: var(--style-control-radius);
}
html:is([data-interface-style="apple"], [data-interface-style="fluent"], [data-interface-style="material"]) :is(button.primary, .btn.primary) {
  background: var(--style-fill); color: var(--style-on-fill); border-color: transparent;
}
html:is([data-interface-style="apple"], [data-interface-style="fluent"], [data-interface-style="material"]) :is(button.primary:hover, .btn.primary:hover) {
  background: var(--style-fill-hover);
}
html:is([data-interface-style="apple"], [data-interface-style="fluent"], [data-interface-style="material"]) :is(.panel, .tbl-wrap, .modal-box, .login, .dd, .status-options) {
  border-radius: var(--style-radius);
}
html:is([data-interface-style="apple"], [data-interface-style="fluent"], [data-interface-style="material"]) :is(button, a, input, select, textarea):focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
html:is([data-interface-style="apple"], [data-interface-style="fluent"], [data-interface-style="material"]) :is(.field, .ed-grid td input, .ed-grid td select):focus {
  background: var(--panel); box-shadow: 0 0 0 2px var(--accent-bg); border-color: var(--accent);
}
html:is([data-interface-style="apple"], [data-interface-style="fluent"], [data-interface-style="material"]) input:is([type="checkbox"], [type="radio"]) { accent-color: var(--accent); }

/* Apple: quiet grouped surfaces and fine separators. */
html[data-interface-style="apple"] { --style-radius: 12px; --style-control-radius: 8px; }
html[data-interface-style="apple"] body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
html[data-interface-style="apple"] header { background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(18px); }
html[data-interface-style="apple"] :is(h1, h2) { letter-spacing: -.025em; }
html[data-interface-style="apple"] .panel { box-shadow: 0 1px 4px #00000008; }
html[data-interface-style="apple"] .grid.list :is(th, td) { border-left-color: transparent; border-right-color: transparent; padding-top: 12px; padding-bottom: 12px; }
html[data-interface-style="apple"] .grid.list th { background: var(--panel); color: var(--muted); font-weight: 500; }
html[data-interface-style="apple"] nav a { border-radius: 8px; }

/* Fluent: restrained corners, compact rows, a clear selection marker. */
html[data-interface-style="fluent"] { --style-radius: 6px; --style-control-radius: 4px; }
html[data-interface-style="fluent"] body { font-family: "Segoe UI Variable", "Segoe UI", sans-serif; }
html[data-interface-style="fluent"] nav a.on { box-shadow: inset 0 -3px var(--accent); }
html[data-interface-style="fluent"] .panel { box-shadow: 0 2px 5px #0000000a; }
html[data-interface-style="fluent"] .grid.list :is(th, td) { padding-top: 8px; padding-bottom: 8px; }
html[data-interface-style="fluent"] .grid.list th { background: var(--ro); font-weight: 600; }
html[data-interface-style="fluent"] :is(.grid.list, .ed-grid) tbody tr:focus-within { outline: 1px solid var(--accent); outline-offset: -1px; }

/* Material: tonal containers, rounded actions, more generous list rhythm. */
html[data-interface-style="material"] { --style-radius: 22px; --style-control-radius: 12px; }
html[data-interface-style="material"] body { font-family: Roboto, "Segoe UI", sans-serif; }
html[data-interface-style="material"] :is(button:not(.icon):not(.sm), .btn, nav a) { border-radius: 24px; }
html[data-interface-style="material"] :is(h1, h2) { font-weight: 500; }
html[data-interface-style="material"] .panel { border-color: transparent; }
html[data-interface-style="material"] .grid.list :is(th, td) { padding-top: 14px; padding-bottom: 14px; }
html[data-interface-style="material"] .grid.list th { background: var(--accent-bg); }
html[data-interface-style="material"] .tabs button.on { background: var(--style-fill); color: var(--style-on-fill); border-color: transparent; }

/* Native modal provides Escape, focus containment and an inert background. */
#interface-style-dialog { width: min(680px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; box-sizing: border-box; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); color: var(--text); box-shadow: 0 16px 60px #0004; }
#interface-style-dialog::backdrop { background: #10181080; }
#interface-style-dialog h2 { font-size: 22px; }
#interface-style-dialog .btns { display: flex; justify-content: flex-end; gap: 8px; }
.style-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0; padding: 0; border: 0; }
.style-option { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px; cursor: pointer; min-width: 0; }
.style-option:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: var(--accent-bg); }
.style-option:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.style-option-title { font-weight: 600; }
.style-option > .muted { font-size: 12px; }
.style-preview { display: flex; gap: 8px; height: 68px; border: 1px solid #cbd5c8; padding: 8px; border-radius: 8px; background: #f5f7f4; }
.style-preview i { width: 22%; background: #e1ecdf; border-radius: 4px; }
.style-preview > span { flex: 1; display: grid; gap: 5px; }
.style-preview b { background: #e4e9e2; border-radius: 3px; }
.style-preview b:first-child { background: #c9dfc5; }
[data-preview-style="classic"] .style-preview { border-radius: 3px; }
[data-preview-style="classic"] .style-preview i { background: #283241; }
[data-preview-style="classic"] .style-preview b { background: #e2edfc; }
[data-preview-style="classic"] .style-preview b:nth-child(2) { background: #fff4d7; }
[data-preview-style="apple"] .style-preview i { background: linear-gradient(#e6ede4, #f1f3f0); }
[data-preview-style="apple"] .style-preview b { background: white; border-bottom: 1px solid #d8dfd5; }
[data-preview-style="fluent"] .style-preview, [data-preview-style="fluent"] .style-preview b { border-radius: 2px; }
[data-preview-style="fluent"] .style-preview i { border-left: 3px solid #386341; }
[data-preview-style="material"] .style-preview, [data-preview-style="material"] .style-preview b { border-radius: 12px; }
.style-sr-only { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
@media (max-width: 760px) {
  header > #btn-style { display: none; }
  header.m-open > #btn-style { display: block; text-align: left; border: 0; border-radius: 0; padding: 11px 16px; font-size: 15px; }
  html:is([data-interface-style="apple"], [data-interface-style="fluent"], [data-interface-style="material"]) #e-add1 { background: var(--style-fill); color: var(--style-on-fill); border-color: transparent; }
  html:is([data-interface-style="apple"], [data-interface-style="fluent"], [data-interface-style="material"]) .grid.list tr[data-id] { border-radius: var(--style-radius); background: var(--panel); }
  html:is([data-interface-style="apple"], [data-interface-style="fluent"], [data-interface-style="material"]) .grid.list tr[data-id] td { padding: 0; }
  html:is([data-interface-style="apple"], [data-interface-style="fluent"], [data-interface-style="material"]) .ed-grid tr.m-row { border-radius: var(--style-radius); }
  html:is([data-interface-style="apple"], [data-interface-style="fluent"], [data-interface-style="material"]) .btns > :is(button, .btn),
  html:is([data-interface-style="apple"], [data-interface-style="fluent"], [data-interface-style="material"]) .field { min-height: 44px; }
}
@media (max-width: 460px) {
  #interface-style-dialog { padding: 16px; }
  .style-options { grid-template-columns: 1fr; }
  .style-preview { height: 46px; }
}
@media print { #btn-style, #interface-style-dialog { display: none !important; } }

/* Classic keeps its original layout, with explicit row boundaries in both themes. */
html[data-interface-style="classic"] { --order-divider: #9da8b5; }
html[data-theme="dark"][data-interface-style="classic"] { --order-divider: #68788b; }
@media (min-width: 761px) {
  html[data-interface-style="classic"] #o-rows > tr[data-id] > td {
    border-bottom: 2px solid var(--order-divider); padding-top: 10px; padding-bottom: 10px;
  }
}
#style-bottom-nav { display: none; }

/* All new variants have a real navigation sidebar, leaving classic untouched. */
@media (min-width: 761px) {
  html[data-interface-layout="modern"] { --layout-sidebar: 216px; --layout-top: 64px; }
  html[data-interface-style="apple"][data-interface-layout="modern"] { --layout-sidebar: 232px; }
  html[data-interface-style="fluent"][data-interface-layout="modern"] { --layout-sidebar: 200px; --layout-top: 56px; }
  html[data-interface-style="material"][data-interface-layout="modern"] { --layout-sidebar: 240px; --layout-top: 72px; }
  html[data-interface-layout="modern"] #top {
    position: fixed; inset: 0 0 auto; height: var(--layout-top); min-height: var(--layout-top);
    flex-wrap: nowrap; padding: 0 24px; z-index: 40; backdrop-filter: none;
  }
  html[data-interface-layout="modern"] #top .brand { width: calc(var(--layout-sidebar) - 40px); flex-shrink: 0; margin-right: 0; }
  html[data-interface-layout="modern"] #nav {
    position: fixed; top: var(--layout-top); bottom: 0; left: 0; width: var(--layout-sidebar);
    display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 24px 12px;
    background: var(--panel); border-right: 1px solid var(--line); overflow-y: auto;
  }
  html[data-interface-layout="modern"] #nav > a,
  html[data-interface-layout="modern"] #nav .nav-menu-toggle { padding: 13px 16px; text-align: left; width: 100%; white-space: normal; }
  html[data-interface-layout="modern"] #nav .nav-service { width: 100%; }
  html[data-interface-layout="modern"] #nav .nav-service-links {
    position: static; min-width: 0; width: 100%; transform: none !important; box-shadow: none;
    border: 0; padding: 4px 0 4px 12px; background: var(--bg);
  }
  html[data-interface-layout="modern"] #nav .nav-service-links :is(a, button) { white-space: normal; }
  html[data-interface-layout="modern"] #main,
  html[data-interface-layout="modern"] #main.wide {
    max-width: none; width: auto; margin: var(--layout-top) 0 0 var(--layout-sidebar); padding: 28px;
  }
  html[data-interface-layout="modern"] #tab-host.on { margin: var(--layout-top) 0 0 var(--layout-sidebar); height: calc(100dvh - var(--layout-top)); }
  html[data-interface-layout="modern"] #main > .head-row { align-items: center; gap: 12px; margin-bottom: 24px; }
  html[data-interface-layout="modern"] #main > .head-row h1 { font-size: 26px; }
  html[data-interface-layout="modern"] #e-scroll { min-width: 0; max-height: calc(100dvh - 260px) !important; }
  html[data-interface-layout="modern"] .ed-grid { min-width: 1050px !important; }
  html[data-interface-layout="modern"] .style-editor .ed-head { padding: 20px; gap: 16px; }
  html[data-interface-layout="modern"] .style-editor .ed-foot { padding: 16px; gap: 8px; flex-wrap: wrap; }

  /* Apple: content workspace + right-hand order properties. */
  html[data-interface-style="apple"] #nav { background: color-mix(in srgb, var(--panel) 60%, var(--bg)); }
  html[data-interface-style="apple"] #nav a.on { font-weight: 600; }
  html[data-interface-style="apple"] .style-orders > .panel { border: 0; background: transparent; }
  html[data-interface-style="apple"] .style-orders .tbl-wrap { border: 1px solid var(--line); background: var(--panel); margin-top: 16px; }
  html[data-interface-style="apple"] .style-orders .filters { background: var(--panel); border-radius: 12px; padding: 16px; }
  html[data-interface-style="apple"] .order-presets { border: 0; padding: 0 0 16px; }

  /* Fluent: compact command toolbar and a separate filter column. */
  html[data-interface-style="fluent"] #main { padding: 20px; }
  html[data-interface-style="fluent"] #nav { gap: 2px; padding: 16px 8px; }
  html[data-interface-style="fluent"] #nav a.on { box-shadow: inset 3px 0 var(--accent); }
  html[data-interface-style="fluent"] #main > .head-row {
    position: sticky; top: var(--layout-top); z-index: 10; padding: 12px; margin: -4px -4px 16px;
    background: var(--panel); border-bottom: 1px solid var(--line);
  }
  html[data-interface-style="fluent"] #main > .head-row h1 { font-size: 22px; }

  /* Material: a generous form above the table and persistent row actions below. */
  html[data-interface-style="material"] #nav { border: 0; background: var(--bg); padding: 24px 16px; }
  html[data-interface-style="material"] #nav > a { border-radius: 28px; padding: 16px 20px; }
  html[data-interface-style="material"] .style-editor > .panel:has(#e-scroll) { background: transparent; border: 0; }
  html[data-interface-style="material"] .style-editor .ed-head { background: var(--panel); border-radius: 24px; margin-bottom: 20px; }
  html[data-interface-style="material"] #e-scroll { border: 1px solid var(--line); background: var(--panel); border-radius: 24px; }
  html[data-interface-style="material"] .style-editor .ed-foot { position: sticky; bottom: 12px; z-index: 9; background: var(--accent-bg); border-radius: 22px; margin-top: 12px; box-shadow: 0 4px 16px #0002; }
  html[data-interface-style="material"] .style-orders .filters { padding: 20px; background: var(--accent-bg); }
}
@media (min-width: 1280px) {
  html[data-interface-style="apple"] .style-editor > .panel:has(#e-scroll),
  html[data-interface-style="fluent"] .style-editor > .panel:has(#e-scroll) {
    display: grid; align-items: start; gap: 0; overflow: visible;
  }
  html[data-interface-style="apple"] .style-editor > .panel:has(#e-scroll) { grid-template-columns: minmax(0, 1fr) 272px; }
  html[data-interface-style="apple"] .style-editor .ed-head {
    grid-column: 2; grid-row: 1 / span 3; display: flex; flex-direction: column; align-items: stretch;
    border: 0; border-left: 1px solid var(--line); position: sticky; top: calc(var(--layout-top) + 20px);
  }
  html[data-interface-style="apple"] .style-editor :is(#e-scroll, .ed-foot, .panel > .panel-pad) { grid-column: 1; }
  html[data-interface-style="fluent"] .style-editor > .panel:has(#e-scroll) { grid-template-columns: 248px minmax(0, 1fr); }
  html[data-interface-style="fluent"] .style-editor .ed-head {
    grid-column: 1; grid-row: 1 / span 3; display: flex; flex-direction: column; align-items: stretch;
    border: 0; border-right: 1px solid var(--line); background: var(--ro);
    position: sticky; top: calc(var(--layout-top) + 90px);
  }
  html[data-interface-style="fluent"] .style-editor :is(#e-scroll, .ed-foot, .panel > .panel-pad) { grid-column: 2; }
  html:is([data-interface-style="apple"], [data-interface-style="fluent"]) .style-editor .ed-head > * { width: 100%; min-width: 0; }
  html:is([data-interface-style="apple"], [data-interface-style="fluent"]) .style-editor .order-summary { flex-direction: column; align-items: stretch; }
  html:is([data-interface-style="apple"], [data-interface-style="fluent"]) .style-editor .totals { flex-wrap: wrap; }
  html[data-interface-style="fluent"] .style-orders > .panel { display: grid; grid-template-columns: 224px minmax(0, 1fr); align-items: start; }
  html[data-interface-style="fluent"] .style-orders #o-presets { grid-column: 1 / -1; }
  html[data-interface-style="fluent"] .style-orders .filters { grid-column: 1; display: flex; flex-direction: column; align-items: stretch; padding: 16px; border-right: 1px solid var(--line); background: var(--ro); }
  html[data-interface-style="fluent"] .style-orders .filters > * { width: 100%; min-width: 0; }
  html[data-interface-style="fluent"] .style-orders .filters :is(input:not([type="checkbox"]), select, .field) { width: 100%; min-width: 0; max-width: 100%; }
  html[data-interface-style="fluent"] .style-orders .tbl-wrap { grid-column: 2; min-width: 0; }
}
@media (min-width: 761px) and (max-width: 1023px) {
  html[data-interface-layout="modern"] { --layout-sidebar: 176px !important; }
  html[data-interface-layout="modern"] #top { padding: 0 12px; gap: 4px; }
  html[data-interface-layout="modern"] #top .who { max-width: 100px; overflow: hidden; }
  html[data-interface-layout="modern"] #main { padding: 16px; }
}
@media (max-width: 760px) {
  html[data-interface-style="classic"] #o-rows { gap: 12px; }
  html[data-interface-style="classic"] #o-rows > tr[data-id] { border: 1.5px solid var(--order-divider); border-radius: 10px; padding: 12px; box-shadow: 0 2px 3px #00000014; }
  html[data-interface-layout="modern"] #main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  html[data-interface-layout="modern"] #style-bottom-nav {
    position: fixed; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    bottom: 0; left: 0; right: 0; z-index: 45; gap: 4px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
    background: var(--panel); box-shadow: 0 -2px 16px #0000000c;
  }
  html[data-interface-layout="modern"] #style-bottom-nav :is(a, button) {
    display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 44px;
    padding: 8px 4px; margin: 0; font-size: 12px; text-align: center; white-space: normal;
    color: var(--muted); background: transparent; border: 0; border-radius: 12px; text-decoration: none;
  }
  html[data-interface-layout="modern"] #style-bottom-nav a.on { background: var(--accent-bg); color: var(--accent-d); font-weight: 600; }
  html[data-interface-layout="modern"] body.m-menu #style-bottom-nav { visibility: hidden; }
  html[data-interface-layout="modern"] .style-editor .ed-foot { bottom: calc(64px + env(safe-area-inset-bottom)); }
  html[data-interface-layout="modern"] .style-editor .head-row { padding: 12px 0; gap: 8px; }
  html[data-interface-layout="modern"] .style-editor .ed-head { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  html[data-interface-layout="modern"] .style-editor .ed-head > * { min-width: 0; width: 100%; }
  html[data-interface-style="apple"] #style-bottom-nav { margin: 0 10px 8px; border: 1px solid var(--line); border-radius: 24px; backdrop-filter: blur(16px); background: color-mix(in srgb, var(--panel) 94%, transparent); }
  html[data-interface-style="apple"] #style-bottom-nav a.on { background: transparent; }
  html[data-interface-style="apple"] .style-orders #o-rows { gap: 0; padding: 12px; }
  html[data-interface-style="apple"] .style-orders #o-rows > tr[data-id] { border-radius: 0; border: 0; border-bottom: 1px solid var(--line-strong); padding: 16px 12px; }
  html[data-interface-style="apple"] .style-orders #o-rows > tr[data-id]:first-child { border-radius: 16px 16px 0 0; }
  html[data-interface-style="apple"] .style-orders #o-rows > tr[data-id]:last-child { border-bottom: 0; border-radius: 0 0 16px 16px; }
  html[data-interface-style="fluent"] #style-bottom-nav { padding-top: 4px; padding-bottom: calc(4px + env(safe-area-inset-bottom)); }
  html[data-interface-style="fluent"] #style-bottom-nav a.on { border-radius: 4px; box-shadow: inset 0 3px var(--accent); }
  html[data-interface-style="fluent"] .style-orders #o-rows { gap: 6px; }
  html[data-interface-style="fluent"] .style-orders #o-rows > tr[data-id] { border-radius: 4px; padding: 10px; }
  html[data-interface-style="material"] #style-bottom-nav { background: var(--accent-bg); }
  html[data-interface-style="material"] #style-bottom-nav a.on { background: var(--style-fill); color: var(--style-on-fill); border-radius: 24px; }
  html[data-interface-style="material"] .style-orders #o-rows { gap: 16px; padding: 12px; }
  html[data-interface-style="material"] .style-orders #o-rows > tr[data-id] { padding: 18px; border: 0; box-shadow: 0 1px 4px #0001; }
  html[data-interface-style="material"] .style-editor > .panel { background: transparent; }
  html[data-interface-style="material"] .style-editor .ed-head { background: var(--panel); border-radius: 24px; margin-bottom: 16px; }
}
@media print {
  #style-bottom-nav { display: none !important; }
  html[data-interface-layout="modern"] #main { margin: 0; padding: 0; }
}
/* Embedded tools have no local shell; do not leave space for the hidden sidebar. */
html.tab-embedded[data-interface-layout="modern"] #main { margin: 0; padding: 12px; }
html.tab-embedded #style-bottom-nav { display: none !important; }
/* Column menus are shared across layouts; no filter sidebar takes table space. */
html[data-interface-style] .style-orders > .order-list-panel { display:block; }
html[data-interface-style] .style-orders .order-list-panel .tbl-wrap { margin-top:0; }
html[data-interface-style] .style-orders .order-filter-popup { padding:14px; border:1px solid var(--line-strong); }
