/* ==========================================================================
   CALLTIME — interaktywny mockup laptopa (replika panelu admina)
   Wszystko scopowane prefiksem .ctl- ; tokeny 1:1 z src/index.css aplikacji,
   zdefiniowane na rootcie urządzenia (niezależne od zmiennych strony).
   Motyw: prefers-color-scheme, nadpisywalny data-theme="light|dark".
   ========================================================================== */

[data-ct-laptop] {
  --ctl-font: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ctl-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  color-scheme: light;
  --bg: #eef1f0;  --surface: #ffffff;  --elevated: #f6f8f7;
  --ink: #14211f; --ink-2: #3f524e;    --muted: #5a6d69;
  --line: #d5dedb; --line-strong: #b7c4c0;
  --accent: #0f766e; --accent-hover: #0b5a54; --accent-soft: #dff0ed; --accent-ink: #0b5a54;
  --on-accent: #ffffff;
  --ok: #14663d;   --ok-soft: #dcf3e6;   --ok-line: #a7d9bd;
  --warn: #8a5a00; --warn-soft: #fdf0d6; --warn-line: #ecd29a;
  --stop: #b42318; --stop-soft: #fde4e1; --stop-line: #f0b4ad;
  --shadow-pop: 0 12px 32px -12px rgba(20, 33, 31, .28);
  --dept-1: #4f7cac; --dept-2: #b0623a; --dept-3: #5d8a5a; --dept-4: #a0518d;
  --dept-5: #b08a1f; --dept-6: #3f9a9a; --dept-7: #8a6bb0; --dept-8: #b5546a;
  /* przeglądarka (neutralny Chrome) */
  --br-strip: #dee1e6; --br-bar: #ffffff; --br-omni: #eef1f4; --br-ink: #3c4043; --br-mute: #5a5f64; --br-line: #d6d9de;
  /* aluminium urządzenia */
  --al-lid: #c8ccce; --al-deck: #e1e3e4; --al-lip: #cbcfd1; --al-edge: #aeb2b5; --al-groove: #b4b8bb;
  --ctl-pad: 0px;
}
[data-ct-laptop][data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1716;  --surface: #172220;  --elevated: #1f2d2a;
  --ink: #e8f0ee; --ink-2: #b4c6c2;    --muted: #92a6a1;
  --line: #2b3b38; --line-strong: #3b4f4b;
  --accent: #3cc4b6; --accent-hover: #5fd6c9; --accent-soft: #12332f; --accent-ink: #7fe0d4;
  --on-accent: #04201d;
  --ok: #4cc38a;   --ok-soft: #12281d;   --ok-line: #1f4a33;
  --warn: #e0b040; --warn-soft: #2e2410; --warn-line: #54410f;
  --stop: #ff7a6b; --stop-soft: #351a17; --stop-line: #5e2a25;
  --shadow-pop: 0 12px 32px -12px rgba(0, 0, 0, .6);
  --br-strip: #202124; --br-bar: #35363a; --br-omni: #202124; --br-ink: #e3e3e3; --br-mute: #9aa0a6; --br-line: #4a4c50;
}
@media (prefers-color-scheme: dark) {
  [data-ct-laptop]:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f1716;  --surface: #172220;  --elevated: #1f2d2a;
    --ink: #e8f0ee; --ink-2: #b4c6c2;    --muted: #92a6a1;
    --line: #2b3b38; --line-strong: #3b4f4b;
    --accent: #3cc4b6; --accent-hover: #5fd6c9; --accent-soft: #12332f; --accent-ink: #7fe0d4;
    --on-accent: #04201d;
    --ok: #4cc38a;   --ok-soft: #12281d;   --ok-line: #1f4a33;
    --warn: #e0b040; --warn-soft: #2e2410; --warn-line: #54410f;
    --stop: #ff7a6b; --stop-soft: #351a17; --stop-line: #5e2a25;
    --shadow-pop: 0 12px 32px -12px rgba(0, 0, 0, .6);
    --br-strip: #202124; --br-bar: #35363a; --br-omni: #202124; --br-ink: #e3e3e3; --br-mute: #9aa0a6; --br-line: #4a4c50;
  }
}

/* ── reset w obrębie urządzenia ─────────────────────────────────────────── */
[data-ct-laptop] { display: block; position: relative; width: 100%; font-family: var(--ctl-font); color: var(--ink); text-align: left; }
[data-ct-laptop] *, [data-ct-laptop] *::before, [data-ct-laptop] *::after { box-sizing: border-box; }
:where([data-ct-laptop]) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: left; -webkit-tap-highlight-color: transparent; }
:where([data-ct-laptop]) input, :where([data-ct-laptop]) select { font: inherit; color: inherit; margin: 0; }
:where([data-ct-laptop]) h1, :where([data-ct-laptop]) h2, :where([data-ct-laptop]) h3, :where([data-ct-laptop]) p, :where([data-ct-laptop]) ul, :where([data-ct-laptop]) dl, :where([data-ct-laptop]) dd, :where([data-ct-laptop]) dt, :where([data-ct-laptop]) figure { margin: 0; padding: 0; }
:where([data-ct-laptop]) ul { list-style: none; }
:where([data-ct-laptop]) table { border-collapse: collapse; }
:where([data-ct-laptop]) :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
:where([data-ct-laptop]) ::selection { background: var(--accent); color: var(--on-accent); }
/* neutralizacja globalnych reguł strony-gospodarza (h1/h2/h3/section) */
[data-ct-laptop] h1, [data-ct-laptop] h2, [data-ct-laptop] h3 { max-width: none; line-height: 1.2; letter-spacing: -0.01em; }
[data-ct-laptop] section { padding: 0; scroll-margin-top: 0; }
[data-ct-laptop] .ctl-i { display: block; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── geometria urządzenia (logiczny rozmiar 1316 x 880, skalowany transformem) ── */
.ctl-frame { position: relative; width: 100%; aspect-ratio: 1316 / 880; }
.ctl-scale { position: absolute; left: 0; top: 0; width: 1316px; height: 880px; transform-origin: 0 0; }
.ctl-device { position: relative; width: 1316px; height: 880px; }

.ctl-lid { position: absolute; left: 0; top: 0; width: 1316px; height: 840px; background: var(--al-lid); border-radius: 28px 28px 4px 4px; padding: 2px; }
.ctl-bezel { position: relative; width: 100%; height: 100%; background: #08090a; border-radius: 26px 26px 3px 3px; }
.ctl-cam { position: absolute; left: 50%; top: 7px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #1a1d21; box-shadow: inset 0 0 0 1.5px #2b3037; }
.ctl-screen { position: absolute; left: 16px; top: 16px; width: 1280px; height: 800px; border-radius: 6px; overflow: hidden; background: var(--bg); isolation: isolate; }

.ctl-deck { position: absolute; left: -2px; top: 840px; width: 1320px; height: 9px; background: var(--al-deck); border-radius: 0 0 3px 3px; border-top: 1px solid var(--al-edge); }
.ctl-lip { position: absolute; left: -2px; top: 849px; width: 1320px; height: 22px; background: var(--al-lip); border-radius: 0 0 22px 22px / 0 0 20px 20px; border-bottom: 1px solid var(--al-edge); }
.ctl-groove { position: absolute; left: 50%; top: 0; width: 190px; height: 9px; margin-left: -95px; background: var(--al-groove); border-radius: 0 0 12px 12px; }
.ctl-shadow { position: absolute; left: 3%; right: 3%; bottom: -2px; height: 10px; border-radius: 50%; box-shadow: 0 22px 40px -8px rgba(8, 20, 18, .38); pointer-events: none; z-index: -1; }

/* ── okno przeglądarki ──────────────────────────────────────────────────── */
.ctl-browser { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--br-bar); color: var(--br-ink); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.ctl-strip { flex: none; height: 40px; background: var(--br-strip); display: flex; align-items: flex-end; padding-left: 14px; gap: 14px; }
.ctl-lights { align-self: center; display: flex; gap: 8px; padding-right: 2px; }
.ctl-lights i { display: block; width: 12px; height: 12px; border-radius: 50%; }
.ctl-lights i:nth-child(1) { background: #ff5f57; } .ctl-lights i:nth-child(2) { background: #febc2e; } .ctl-lights i:nth-child(3) { background: #28c840; }
.ctl-tab { display: flex; align-items: center; gap: 8px; height: 32px; width: 236px; padding: 0 12px; background: var(--br-bar); border-radius: 10px 10px 0 0; font-size: 12.5px; color: var(--br-ink); }
.ctl-tab svg { flex: none; }
.ctl-tab span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctl-tab-x { margin-left: auto; color: var(--br-mute); }
.ctl-toolbar { flex: none; height: 40px; background: var(--br-bar); display: flex; align-items: center; gap: 4px; padding: 0 10px; border-bottom: 1px solid var(--br-line); }
.ctl-tb { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--br-mute); position: relative; }
.ctl-tb:hover:not(:disabled) { background: color-mix(in oklab, var(--br-ink) 10%, transparent); }
.ctl-tb:disabled { opacity: .35; cursor: default; }
.ctl-omni { flex: 1; min-width: 0; height: 30px; margin: 0 6px; border-radius: 15px; background: var(--br-omni); display: flex; align-items: center; gap: 8px; padding: 0 12px; font-size: 13.5px; color: var(--br-ink); }
.ctl-omni .host { color: var(--br-ink); } .ctl-omni .path { color: var(--br-mute); }
.ctl-omni .lock { color: var(--br-mute); }
.ctl-omni .url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctl-star[aria-pressed="true"] { color: #f2b01e; } .ctl-star[aria-pressed="true"] svg { fill: currentColor; }
.ctl-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 700 11px/24px var(--ctl-font); text-align: center; margin: 0 2px; }
.ctl-brmenu { position: absolute; right: 10px; top: 80px; z-index: 60; min-width: 220px; background: var(--br-bar); color: var(--br-ink); border: 1px solid var(--br-line); border-radius: 10px; box-shadow: 0 10px 28px -8px rgba(0, 0, 0, .35); padding: 6px; font-size: 13.5px; }
.ctl-brmenu button { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px; border-radius: 6px; }
.ctl-brmenu button:hover { background: color-mix(in oklab, var(--br-ink) 10%, transparent); }

/* ── aplikacja (viewport 1280 x 720) ────────────────────────────────────── */
.ctl-app { position: relative; flex: 1; min-height: 0; display: flex; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow: hidden; }
.ctl-app h1, .ctl-app h2, .ctl-app h3 { letter-spacing: -0.01em; font-weight: 600; }

.ctl-side { flex: none; width: 240px; height: 100%; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.ctl-side-brand { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.ctl-wm { display: inline-flex; align-items: center; gap: .32em; font: 700 24px/1 var(--ctl-font); letter-spacing: -.035em; color: var(--ink); }
.ctl-wm b { font-weight: 700; color: var(--accent); }
.ctl-side-org { color: var(--muted); font-size: 13px; line-height: 1.25; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctl-side-ev { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ctl-side-ev > p { color: var(--muted); font-size: 13px; font-weight: 600; padding: 0 4px; margin-bottom: 6px; line-height: 1.3; }
.ctl-evbtn { width: 100%; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 10px; min-height: 52px; transition: background-color .12s; }
.ctl-evbtn:hover { background: var(--elevated); }
.ctl-evlogo { flex: none; width: 32px; height: 32px; border-radius: 10px; background: hsl(168, 40%, 36%); color: #fff; font-weight: 700; font-size: 11.5px; display: flex; align-items: center; justify-content: center; }
.ctl-evbtn .t { min-width: 0; flex: 1; }
.ctl-evbtn .t b { display: block; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctl-evbtn .t span { display: block; font-size: 13px; font-weight: 500; margin-top: 2px; color: var(--ok); }
.ctl-evbtn svg { color: var(--muted); }
.ctl-nav { flex: 1; min-height: 0; padding: 2px 12px 0; overflow-y: auto; overscroll-behavior: auto; scrollbar-width: none; }
.ctl-nav::-webkit-scrollbar { display: none; }
.ctl-nav-group { padding: 0 12px; margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); line-height: 20px; }
.ctl-nav-item { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: background-color .12s, color .12s; margin-top: 1px; }
.ctl-nav-item svg { color: var(--muted); }
.ctl-nav-item:hover { background: var(--elevated); color: var(--ink); }
.ctl-nav-item[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.ctl-nav-item[aria-current="page"] svg { color: var(--accent-ink); }
.ctl-nav-count { margin-left: auto; font: 600 13px/20px var(--ctl-mono); padding: 0 8px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); }
.ctl-side-foot { flex: none; padding: 6px 12px; border-top: 1px solid var(--line); }
.ctl-side-foot .n { padding: 0 4px 4px; }
.ctl-side-foot .n b { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.ctl-side-foot .n span { display: block; font-size: 13px; line-height: 1.3; color: var(--muted); }
.ctl-foot-row { display: flex; align-items: center; gap: 4px; }
.ctl-foot-row > * { flex: 1; justify-content: center; padding: 0; margin: 0; }
.ctl-icobtn { height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--ink-2); transition: background-color .12s, color .12s; position: relative; }
.ctl-icobtn:hover { background: var(--elevated); color: var(--ink); }
.ctl-icobtn svg { color: currentColor; }

.ctl-main { position: relative; flex: 1; min-width: 0; height: 100%; overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.ctl-main.ctl-nopad { overflow: hidden; display: flex; flex-direction: column; }
@media (pointer: coarse) { .ctl-main, .ctl-gscroll, .ctl-nav { overscroll-behavior: auto; } }
.ctl-route { animation: ctl-route .18s cubic-bezier(.22, 1, .36, 1) backwards; }
@keyframes ctl-route { from { opacity: 0; transform: translateY(8px); } }
@keyframes ctl-pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }
@keyframes ctl-fade { from { opacity: 0; } }
@keyframes ctl-toast { from { opacity: 0; transform: translateY(-8px); } }
.ctl-page { padding: 32px; max-width: 1152px; }
.ctl-page-title { font-weight: 700; font-size: 28px; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
.ctl-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.ctl-head p.sub { font-size: 16px; color: var(--ink-2); min-width: 0; }
.ctl-stack > * + * { margin-top: 24px; }

/* ── prymitywy ──────────────────────────────────────────────────────────── */
.ctl-mono { font-family: var(--ctl-mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; font-weight: 500; }
.ctl-th { font-family: var(--ctl-mono); font-weight: 500; font-size: 13px; color: var(--muted); }
.ctl-label { font-weight: 600; font-size: 13px; color: var(--ink-2); }
.ctl-muted { color: var(--muted); } .ctl-ink2 { color: var(--ink-2); }
.ctl-t-ok { color: var(--ok); } .ctl-t-warn { color: var(--warn); } .ctl-t-stop { color: var(--stop); } .ctl-t-acc { color: var(--accent-ink); }
.ctl-sheet { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.ctl-sheet > * + * { border-top: 1px solid var(--line); }
.ctl-sheet > :first-child { border-top-left-radius: inherit; border-top-right-radius: inherit; }
.ctl-sheet > :last-child { border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; }
.ctl-tape { display: block; width: 6px; align-self: stretch; background: var(--tape, var(--muted)); border-radius: 3px; flex: none; }
.ctl-dot { display: inline-block; width: 8px; height: 8px; border-radius: 999px; background: var(--tape, var(--muted)); flex: none; }
.ctl-pill, .ctl-pill-ok, .ctl-pill-warn, .ctl-pill-stop, .ctl-pill-accent { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; line-height: 20px; padding: 2px 10px; border-radius: 999px; white-space: nowrap; background: var(--elevated); color: var(--ink-2); }
.ctl-pill-ok { background: var(--ok-soft); color: var(--ok); }
.ctl-pill-warn { background: var(--warn-soft); color: var(--warn); }
.ctl-pill-stop { background: var(--stop-soft); color: var(--stop); }
.ctl-pill-accent { background: var(--accent-soft); color: var(--accent-ink); }
.ctl-btn, .ctl-btn-signal { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; border: 1px solid var(--line-strong); font-weight: 600; font-size: 15px; line-height: 1.25; min-height: 44px; padding: 8px 16px; cursor: pointer; transition: background-color .12s, color .12s, border-color .12s; white-space: nowrap; background: var(--surface); color: var(--ink); position: relative; }
.ctl-btn:hover { background: var(--elevated); border-color: var(--ink-2); }
.ctl-btn-signal { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ctl-btn-signal:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.ctl-btn:disabled, .ctl-btn-signal:disabled { opacity: .45; pointer-events: none; }
.ctl-btn.sm, .ctl-btn-signal.sm { min-height: 36px; padding: 4px 12px; font-size: 13px; }
.ctl-field { display: block; width: 100%; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 10px; font-weight: 500; font-size: 16px; padding: 8px 12px; min-height: 44px; transition: border-color .12s, box-shadow .12s; }
.ctl-field::placeholder { color: var(--muted); }
.ctl-field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 25%, transparent); }
.ctl-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 2px 12px; background: var(--elevated); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.ctl-chip.dot::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--tape, var(--muted)); flex: none; }
.ctl-chip[data-active="true"] { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent); }
button.ctl-chip { min-height: 44px; position: relative; }
.ctl-seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: var(--surface); }
.ctl-seg > button { white-space: nowrap; min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); transition: background-color .12s, color .12s; position: relative; }
.ctl-seg > button + button { border-left: 1px solid var(--line-strong); }
.ctl-seg > button:hover { background: var(--elevated); color: var(--ink); }
.ctl-seg > button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.ctl-seg.soft > button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-ink); }
.ctl-filter { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 10px; font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; position: relative; transition: background-color .12s, border-color .12s; }
.ctl-filter:hover { background: var(--elevated); border-color: var(--ink-2); }
.ctl-filter[data-active="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.ctl-menu { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-pop); animation: ctl-pop .14s cubic-bezier(.22, 1, .36, 1) backwards; padding: 4px 0; z-index: 40; }
.ctl-opt { display: flex; width: 100%; align-items: center; gap: 8px; padding: 8px 14px; min-height: 44px; text-align: left; font-weight: 500; font-size: 15px; color: var(--ink); position: relative; }
.ctl-opt:hover { background: var(--elevated); }
.ctl-opt[aria-selected="true"] { color: var(--accent-ink); font-weight: 600; }
.ctl-opt .chk { margin-left: auto; color: var(--accent-ink); }
.ctl-ruler { height: 14px; background: var(--line-strong); opacity: .8;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='14'%3E%3Crect x='0' y='0' width='1' height='14'/%3E%3Crect x='8' y='8' width='1' height='6'/%3E%3Crect x='16' y='8' width='1' height='6'/%3E%3Crect x='24' y='8' width='1' height='6'/%3E%3C/svg%3E") repeat-x left bottom / 32px 14px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='14'%3E%3Crect x='0' y='0' width='1' height='14'/%3E%3Crect x='8' y='8' width='1' height='6'/%3E%3Crect x='16' y='8' width='1' height='6'/%3E%3Crect x='24' y='8' width='1' height='6'/%3E%3C/svg%3E") repeat-x left bottom / 32px 14px; }
.ctl-empty { padding: 48px 24px; text-align: center; color: var(--muted); }
.ctl-empty .ctl-ruler { max-width: 240px; margin: 0 auto 20px; }
.ctl-empty h2 { font-size: 18px; color: var(--ink); margin-bottom: 6px; }
.ctl-empty p { font-size: 15px; max-width: 46ch; margin: 0 auto; }
.ctl-check { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; border-radius: 5px; border: 1.5px solid var(--line-strong); background: var(--surface); cursor: pointer; display: inline-grid; place-content: center; flex: none; margin: 0; transition: background-color .12s, border-color .12s; }
.ctl-check:checked, .ctl-check:indeterminate { background: var(--accent); border-color: var(--accent); }
.ctl-check:checked::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--on-accent); border-bottom: 2px solid var(--on-accent); transform: rotate(-45deg) translate(1px, -1px); }
.ctl-check:indeterminate::after { content: ""; width: 10px; height: 2px; background: var(--on-accent); }
.ctl-checkwrap { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -6px; cursor: pointer; flex: none; position: relative; }
.ctl-bar { height: 8px; border-radius: 999px; background: var(--elevated); border: 1px solid var(--line); overflow: hidden; }
.ctl-bar > i { display: block; height: 100%; border-radius: 999px; background: var(--accent); transform-origin: 0 50%; width: 100%; transition: transform .2s ease; }
.ctl-bar.ok > i { background: var(--ok); }
.ctl-initials { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ctl-link { display: flex; align-items: center; gap: 8px; padding: 12px 16px; min-height: 48px; font-size: 15px; font-weight: 500; color: var(--accent-ink); transition: background-color .12s; width: 100%; position: relative; }
.ctl-link:hover { background: var(--elevated); }

/* ── dashboard ──────────────────────────────────────────────────────────── */
.ctl-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; padding: 12px 16px; }
.ctl-sum > div { display: flex; align-items: baseline; gap: 8px; border: 0 !important; }
.ctl-sum dd { font: 600 20px/1.3 var(--ctl-mono); font-variant-numeric: tabular-nums; order: -1; color: var(--ink); }
.ctl-sum dt { font-size: 15px; color: var(--ink-2); }
.ctl-dgrid { display: grid; grid-template-columns: minmax(0, 1fr) 384px; gap: 24px; align-items: start; }
.ctl-dgrid > .main { grid-column: 1; grid-row: 1; min-width: 0; } .ctl-dgrid > .side { grid-column: 2; grid-row: 1; min-width: 0; }
.ctl-dgrid .side > * + *, .ctl-dgrid .main > * + * { margin-top: 24px; }
.ctl-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; min-height: 24px; }
.ctl-sec-h h2 { font-weight: 600; font-size: 13px; color: var(--ink-2); letter-spacing: 0; }
.ctl-now { position: relative; padding: 12px 16px; }
.ctl-now .hdr { display: flex; align-items: baseline; gap: 12px; }
.ctl-now .hdr p { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctl-now .hdr .left { font: 500 15px/1.4 var(--ctl-mono); color: var(--accent-ink); flex: none; }
.ctl-axis { position: relative; margin-top: 12px; height: 8px; border-radius: 999px; background: var(--elevated); border: 1px solid var(--line); }
.ctl-axis .fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--accent-soft); }
.ctl-axis .ph { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--accent); }
.ctl-axis .ph::before { content: ""; position: absolute; top: -4px; left: -4px; width: 10px; height: 10px; border-radius: 999px; background: var(--accent); }
.ctl-now .times { display: flex; justify-content: space-between; margin-top: 6px; font: 500 15px/1.4 var(--ctl-mono); color: var(--muted); }
.ctl-next { display: flex; align-items: baseline; gap: 12px; padding: 12px 16px; min-height: 56px; }
.ctl-next .hm { font: 600 16px/1.4 var(--ctl-mono); width: 56px; flex: none; }
.ctl-next .t { flex: 1; min-width: 0; } .ctl-next .t p:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctl-next .t p + p { font: 500 15px/1.4 var(--ctl-mono); color: var(--muted); }
.ctl-next .tag { font-size: 15px; color: var(--muted); }
.ctl-split { display: flex; height: 12px; border-radius: 999px; overflow: hidden; border: 1px solid var(--line); background: var(--elevated); }
.ctl-split > div { transition: width .25s ease; }
.ctl-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 56px; }
.ctl-tasklink { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 56px; width: 100%; transition: background-color .12s; position: relative; }
.ctl-tasklink:hover, .ctl-setuprow:hover { background: var(--elevated); }
.ctl-setuprow { display: flex; align-items: center; gap: 12px; padding: 8px 16px; min-height: 48px; width: 100%; position: relative; }
.ctl-bars { display: block; width: 100%; height: 56px; }

/* ── akredytacje ────────────────────────────────────────────────────────── */
.ctl-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.ctl-search { position: relative; flex: 1 1 260px; max-width: 360px; min-width: 200px; }
.ctl-search svg { position: absolute; left: 12px; top: 50%; margin-top: -9px; color: var(--muted); pointer-events: none; }
.ctl-search input { padding-left: 38px; }
.ctl-pop { position: relative; }
.ctl-pop .ctl-menu { position: absolute; left: 0; top: calc(100% + 6px); min-width: 240px; max-height: 400px; overflow-y: auto; }
.ctl-group-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 16px; background: var(--elevated); min-height: 56px; }
.ctl-group-h .name { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: var(--ink); min-height: 44px; position: relative; }
.ctl-group-h .name svg { color: var(--muted); transition: transform .15s; }
.ctl-group-h .name[aria-expanded="true"] svg { transform: rotate(90deg); }
.ctl-mrow { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 64px; transition: background-color .12s; }
.ctl-mrow:hover { background: var(--elevated); }
.ctl-mrow.sel { background: var(--accent-soft); }
.ctl-mrow.sel .ctl-initials { background: var(--surface); }
.ctl-mrow.open { background: var(--elevated); }
.ctl-mrow .who { flex: 1; min-width: 0; text-align: left; }
.ctl-mrow .who p:first-child { font-size: 16px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctl-mrow .who p + p { font-size: 15px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctl-codes { width: 132px; flex: none; display: flex; flex-wrap: wrap; gap: 2px 12px; }
.ctl-code { display: inline-flex; align-items: center; gap: 6px; font: 500 13px/1.5 var(--ctl-mono); color: var(--ink); }
.ctl-mstat { width: 168px; flex: none; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ctl-mact { flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 4px; width: 176px; }
.ctl-exp { padding: 16px 16px 16px 76px; background: var(--elevated); display: grid; grid-template-columns: 1.1fr 1.4fr 1fr; gap: 16px 24px; animation: ctl-fade .15s ease-out backwards; }
.ctl-exp h4 { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ctl-exp .v { font-size: 15px; color: var(--ink); }
.ctl-exp .typ { display: flex; align-items: center; gap: 8px; font-size: 15px; padding: 2px 0; }
.ctl-bulk { position: sticky; bottom: 12px; z-index: 20; margin-top: 16px; display: flex; justify-content: center; pointer-events: none; }
.ctl-bulk > div { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: var(--shadow-pop); pointer-events: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 16px; animation: ctl-pop .16s cubic-bezier(.22, 1, .36, 1) backwards; }

/* ── gantt / harmonogram ────────────────────────────────────────────────── */
.ctl-shead { flex: none; padding: 16px 24px 12px; border-bottom: 1px solid var(--line); background: var(--bg); }
.ctl-shead .row1 { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 10px; }
.ctl-shead .row2 { display: flex; align-items: center; gap: 8px; }
.ctl-view { display: flex; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; }
.ctl-view button { min-height: 44px; display: flex; align-items: center; gap: 6px; padding: 6px 14px; font-size: 15px; color: var(--ink-2); position: relative; }
.ctl-view button + button { border-left: 1px solid var(--line-strong); }
.ctl-view button:hover { background: var(--elevated); color: var(--ink); }
.ctl-view button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.ctl-sbody { flex: 1; min-height: 0; padding: 12px 24px 16px; display: flex; flex-direction: column; }
.ctl-gwrap { position: relative; flex: 0 1 auto; min-height: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); display: flex; flex-direction: column; overflow: clip; }
.ctl-gscroll { flex: 1; overflow: auto; overscroll-behavior-x: contain; overscroll-behavior-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; position: relative; }
.ctl-gin { position: relative; }
.ctl-ghead { display: flex; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; background: var(--surface); }
.ctl-glabel { position: sticky; left: 0; z-index: 12; flex: none; background: var(--surface); border-right: 1px solid var(--line); display: flex; align-items: center; padding: 0 12px; }
.ctl-ghead .scale { position: relative; height: 44px; flex: none; }
.ctl-ghead .scale span:not(.phl) { position: absolute; bottom: 4px; width: 32px; text-align: center; font: 500 13px/20px var(--ctl-mono); color: var(--ink-2); }
.ctl-grow { display: flex; border-bottom: 1px solid var(--line); background: var(--surface); }
.ctl-gtl { position: relative; flex: none; overflow: visible; cursor: default; }
.ctl-gtl .gl { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--elevated); pointer-events: none; }
.ctl-gtl .gl.h { background: var(--line); }
.ctl-block { position: absolute; display: flex; align-items: center; gap: 4px; padding: 0 8px 0 14px; overflow: hidden; border-radius: 6px; border: 1px solid var(--line); background: var(--elevated); color: var(--ink); cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-x pan-y; box-sizing: border-box; z-index: 2; transition: border-color .12s, opacity .15s; font-size: 13px; text-align: left; }
.ctl-block:hover { border-color: var(--line-strong); z-index: 10; }
.ctl-block .st { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--tape, var(--muted)); }
.ctl-block .ti { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.ctl-block .lo { opacity: .85; white-space: nowrap; flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; }
.ctl-block.live { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.ctl-block.done .ti { text-decoration: line-through; opacity: .75; }
.ctl-block.conflict { border: 2px solid var(--warn); }
.ctl-block.drag { cursor: grabbing; z-index: 30; box-shadow: var(--shadow-pop); border-color: var(--accent); }
.ctl-block.sel { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 1px; }
.ctl-ph { position: absolute; top: 44px; bottom: 0; width: 2px; background: var(--accent); pointer-events: none; z-index: 14; }
.ctl-ph::before { content: ""; position: absolute; top: -1px; left: -4px; width: 10px; height: 10px; border-radius: 999px; background: var(--accent); }
.ctl-ghead .phl { position: absolute; top: 3px; width: 92px; text-align: center; font: 600 13px/18px var(--ctl-mono); color: var(--on-accent); background: var(--accent); border-radius: 999px; white-space: nowrap; z-index: 2; }
.ctl-pophover { position: absolute; z-index: 50; width: 340px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-pop); animation: ctl-pop .16s cubic-bezier(.22, 1, .36, 1) backwards; }
.ctl-pophover .hd { display: flex; align-items: flex-start; gap: 10px; padding: 12px 8px 8px 16px; }
.ctl-pophover .bd { padding: 4px 16px 16px; }
.ctl-stepper { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.ctl-stepper .lbl { width: 60px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ctl-stepper .val { font: 600 20px/1.2 var(--ctl-mono); min-width: 64px; text-align: center; }
.ctl-stepper button { width: 44px; height: 36px; min-height: 36px; padding: 0; justify-content: center; font: 600 13px/1 var(--ctl-mono); }
.ctl-conf { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 8px 12px; border-radius: 10px; background: var(--warn-soft); border: 1px solid var(--warn-line); color: var(--warn); font-size: 13px; font-weight: 600; line-height: 1.35; }
.ctl-table { width: 100%; }
.ctl-table th { text-align: left; padding: 12px 16px; font-family: var(--ctl-mono); font-weight: 500; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.ctl-table td { padding: 12px 16px; font-size: 15px; vertical-align: middle; }
.ctl-table tr + tr td { border-top: 1px solid var(--line); }
.ctl-table tbody tr:hover td { background: var(--elevated); }
.ctl-table td.c, .ctl-table th.c { text-align: center; }
.ctl-spill { font-size: 13px; font-weight: 600; padding: 2px 8px; border-radius: 6px; display: inline-block; }

/* ── badge ──────────────────────────────────────────────────────────────── */
.ctl-bgrid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.ctl-plist { max-height: 560px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.ctl-prow { display: flex; align-items: center; gap: 10px; padding: 8px 12px; min-height: 56px; width: 100%; position: relative; transition: background-color .12s; }
.ctl-prow:hover { background: var(--elevated); }
.ctl-prow[aria-pressed="true"] { background: var(--accent-soft); }
.ctl-prow .n { min-width: 0; flex: 1; } .ctl-prow .n b { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ctl-prow .n span { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctl-sheetwrap { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.ctl-badge { position: relative; width: 100%; aspect-ratio: 200 / 150; background: #fff; border-radius: 6px; box-shadow: 0 0 0 1px #d5dedb; color: #000; font-family: "Poppins", var(--ctl-font); overflow: hidden; container-type: inline-size; }
.ctl-badge .art { position: absolute; background: var(--art, #1d3b38); border-radius: 3cqw; overflow: hidden; }
.ctl-badge .art::before, .ctl-badge .art::after { content: ""; position: absolute; border-radius: 50%; border: 0.9cqw solid rgba(255, 255, 255, .13); }
.ctl-badge .art::before { width: 70cqw; height: 70cqw; left: -22cqw; top: -14cqw; }
.ctl-badge .art::after { width: 46cqw; height: 46cqw; right: -16cqw; bottom: -12cqw; border-color: rgba(255, 255, 255, .1); }
.ctl-badge .card { position: absolute; background: rgba(255, 255, 255, .92); border-radius: 1.5cqw; }
.ctl-badge .logo { position: absolute; display: flex; align-items: center; justify-content: center; }
.ctl-badge .fold { position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px dashed rgba(0, 0, 0, .25); }
.ctl-badge .txt { position: absolute; white-space: nowrap; line-height: 1; }
.ctl-badge .evn { color: #fff; font-weight: 700; font-size: 1.94cqw; line-height: 1.12; white-space: normal; }
.ctl-badge .qr { position: absolute; background: #fff; }
.ctl-badge .qr svg { display: block; width: 100%; height: 100%; }
.ctl-bnote { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }

/* ── toasty ─────────────────────────────────────────────────────────────── */
.ctl-toasts { position: absolute; z-index: 90; top: 16px; right: 20px; width: 384px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.ctl-toast { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1.4; box-shadow: var(--shadow-pop); animation: ctl-toast .18s cubic-bezier(.22, 1, .36, 1) backwards; pointer-events: auto; }
.ctl-toast svg { flex: none; }
.ctl-modal { position: absolute; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 24px; }
.ctl-modal .bg { position: absolute; inset: 0; background: rgba(11, 21, 19, .6); animation: ctl-fade .15s ease-out backwards; }
.ctl-modal .box { position: relative; width: 100%; max-width: 448px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-pop); animation: ctl-pop .16s cubic-bezier(.22, 1, .36, 1) backwards; overflow: hidden; }
.ctl-modal .hd { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 20px; border-bottom: 1px solid var(--line); }
.ctl-modal .hd h2 { font-size: 18px; font-weight: 700; }
.ctl-modal .it { display: flex; align-items: center; gap: 16px; width: 100%; padding: 16px 20px; position: relative; }
.ctl-modal .it:hover { background: var(--elevated); }
.ctl-modal .it + .it { border-top: 1px solid var(--line); }
.ctl-modal .it.on { background: var(--accent-soft); }

/* ── drobne ─────────────────────────────────────────────────────────────── */
.ctl-scrim { position: absolute; inset: 0; z-index: 49; background: rgba(11, 21, 19, .35); animation: ctl-fade .15s ease-out backwards; }
.ctl-sortbtn { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px; border-radius: 6px; font-family: var(--ctl-mono); font-weight: 500; font-size: 13px; color: var(--muted); position: relative; }
.ctl-sortbtn:hover { color: var(--ink); }
.ctl-sortbtn[aria-pressed="true"] { color: var(--accent-ink); }
.ctl-pre { margin: 0; padding: 12px 14px; background: var(--elevated); border: 1px solid var(--line); border-radius: 10px; font: 500 13px/1.5 var(--ctl-mono); color: var(--ink-2); max-height: 220px; overflow: auto; white-space: pre-wrap; word-break: break-word; scrollbar-width: thin; }
.ctl-btn.danger { background: var(--stop-soft); border-color: var(--stop-line); color: var(--stop); }
.ctl-btn.danger:hover { background: var(--stop); border-color: var(--stop); color: #fff; }
.ctl-icobtn:disabled { opacity: .3; pointer-events: none; }

/* ── pomocnicze / a11y ──────────────────────────────────────────────────── */
.ctl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ctl-hint { display: none; }

/* ── małe skale: niewidoczne powiększenie celów dotyku (tylko w pionie, max 10px,
   żeby sąsiednie elementy list nie nachodziły na siebie) ───────────────────── */
.ctl-sm .ctl-btn::after, .ctl-sm .ctl-btn-signal::after, .ctl-sm .ctl-icobtn::after, .ctl-sm .ctl-seg > button::after,
.ctl-sm .ctl-view button::after, .ctl-sm .ctl-filter::after, .ctl-sm button.ctl-chip::after, .ctl-sm .ctl-checkwrap::after,
.ctl-sm .ctl-tb::after, .ctl-sm .ctl-sortbtn::after, .ctl-sm .ctl-group-h .name::after {
  content: ""; position: absolute; left: 0; right: 0; top: calc(-1 * var(--ctl-pad)); bottom: calc(-1 * var(--ctl-pad)); }
.ctl-sm .ctl-block::after { content: ""; position: absolute; inset: -6px -2px; }

@media (prefers-reduced-motion: reduce) {
  .ctl-route, .ctl-menu, .ctl-pophover, .ctl-toast, .ctl-modal .bg, .ctl-modal .box, .ctl-exp, .ctl-bulk > div { animation: none !important; }
  .ctl-bar > i, .ctl-split > div { transition: none; }
}

/* ── skip-link ──────────────────────────────────────────────────────────── */
.ctl-skip { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; }
.ctl-skip:focus { top: 8px; }
.ctl-end { display: block; height: 0; outline: none; }
.ctl-mhead, .ctl-mtabs, .ctl-cap { display: none; }

/* ══ TRYB COMPACT (kontener < 700 px): panel admina na telefonie, skala 1:1 ══ */
[data-ct-laptop][data-compact] .ctl-frame { aspect-ratio: auto; }
[data-ct-laptop][data-compact] .ctl-scale { position: static; width: auto; height: auto; transform: none !important; }
[data-ct-laptop][data-compact] .ctl-device { width: auto; height: auto; }
[data-ct-laptop][data-compact] .ctl-lid { position: static; width: auto; height: auto; padding: 0; background: none; border-radius: 0; }
[data-ct-laptop][data-compact] .ctl-bezel { height: auto; background: none; border-radius: 0; }
[data-ct-laptop][data-compact] :is(.ctl-cam, .ctl-deck, .ctl-lip, .ctl-shadow, .ctl-strip, .ctl-toolbar, .ctl-side) { display: none; }
[data-ct-laptop][data-compact] .ctl-screen { position: relative; left: auto; top: auto; width: auto; height: clamp(560px, 82vh, 760px); border: 1px solid var(--line); border-radius: 16px; }
[data-ct-laptop][data-compact] .ctl-app { flex-direction: column; }
[data-ct-laptop][data-compact] .ctl-main { height: auto; flex: 1; min-height: 0; }
[data-ct-laptop][data-compact] .ctl-mhead { display: flex; align-items: center; gap: 4px; padding: 6px 8px 6px 12px; background: var(--surface); border-bottom: 1px solid var(--line); flex: none; }
[data-ct-laptop][data-compact] .ctl-mtabs { display: flex; gap: 4px; overflow-x: auto; padding: 6px 8px; background: var(--surface); border-bottom: 1px solid var(--line); flex: none; scrollbar-width: none; }
[data-ct-laptop][data-compact] .ctl-mtabs::-webkit-scrollbar { display: none; }
.ctl-mtab { min-height: 44px; padding: 0 14px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--ink-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; flex: none; }
.ctl-mtab[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
[data-ct-laptop][data-compact] .ctl-cap { display: block; margin: 10px 4px 0; font-size: 13px; color: var(--muted); }
[data-ct-laptop][data-compact] .ctl-page { padding: 16px; }
[data-ct-laptop][data-compact] .ctl-page-title { font-size: 24px; }
[data-ct-laptop][data-compact] .ctl-dgrid { grid-template-columns: minmax(0, 1fr); }
[data-ct-laptop][data-compact] .ctl-dgrid > .side { grid-column: 1; grid-row: 1; }
[data-ct-laptop][data-compact] .ctl-dgrid > .main { grid-column: 1; grid-row: 2; }
[data-ct-laptop][data-compact] .ctl-sum { gap: 8px 20px; }
[data-ct-laptop][data-compact] .ctl-sum dd { font-size: 18px; }
[data-ct-laptop][data-compact] .ctl-search { flex: 1 1 100%; max-width: none; }
[data-ct-laptop][data-compact] .ctl-mrow { flex-wrap: wrap; gap: 6px 10px; padding: 12px; }
[data-ct-laptop][data-compact] :is(.ctl-mrow .ctl-initials, .ctl-codes) { display: none; }
[data-ct-laptop][data-compact] .ctl-mrow .who { flex: 1 1 120px; }
[data-ct-laptop][data-compact] .ctl-mact { order: 3; width: auto; flex: none; }
[data-ct-laptop][data-compact] .ctl-mstat { order: 4; width: 100%; padding-left: 30px; }
[data-ct-laptop][data-compact] .ctl-group-h { padding: 8px 12px; }
[data-ct-laptop][data-compact] .ctl-exp { grid-template-columns: 1fr; padding: 12px; }
[data-ct-laptop][data-compact] .ctl-shead { padding: 12px 12px 8px; }
[data-ct-laptop][data-compact] .ctl-shead :is(.row1, .row2) { flex-wrap: wrap; }
[data-ct-laptop][data-compact] .ctl-btn .lbl { display: none; }
[data-ct-laptop][data-compact] .ctl-sbody { padding: 8px 12px 12px; }
[data-ct-laptop][data-compact] .ctl-block::after { content: ""; position: absolute; inset: -4px 0; }
[data-ct-laptop][data-compact] .ctl-bgrid { grid-template-columns: 1fr; }
[data-ct-laptop][data-compact] .ctl-plist { max-height: 240px; }
[data-ct-laptop][data-compact] .ctl-sheetwrap { overflow-x: auto; }
[data-ct-laptop][data-compact] .ctl-badge { min-width: 600px; }
[data-ct-laptop][data-compact] .ctl-toasts { left: 12px; right: 12px; width: auto; top: 8px; }
[data-ct-laptop][data-compact] .ctl-pophover { left: 8px !important; right: 8px; top: auto !important; bottom: 8px; width: auto; }
[data-ct-laptop][data-compact] .ctl-modal { padding: 12px; }
[data-ct-laptop][data-compact] .ctl-head p.sub { font-size: 15px; }
