@media screen {
  .of-theme-options {
    --theme-option-ink: var(--of-design-ink, #26232b);
    --theme-option-muted: var(--of-design-muted, #595364);
    --theme-option-line: var(--of-design-rule, #dad4df);
    --theme-option-active: var(--of-design-selection, #f0e7f4);
    --theme-option-mark: var(--of-design-accent, #613a70);
    min-inline-size: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0 16px 16px;
    border: 0;
    color: var(--theme-option-ink);
  }

  .of-theme-label {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .of-theme-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-block-size: 44px;
    padding-inline: 10px;
    border: 1px solid var(--theme-option-line);
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 615;
    line-height: 1.2;
  }

  .of-theme-options label:has(input:checked),
  .of-theme-options label:hover { background: var(--theme-option-active); }

  .of-theme-options label:has(input:focus-visible) {
    outline: 2px solid var(--theme-option-mark);
    outline-offset: -2px;
  }

  .of-theme-options input[type="radio"] {
    inline-size: 15px;
    block-size: 15px;
    margin: 0;
    accent-color: var(--theme-option-mark);
  }

  .of-theme-launcher {
    display: none;
    min-inline-size: 44px;
    min-block-size: 44px;
    align-items: center;
    gap: 9px;
    padding: 6px 9px;
    border: 1px solid var(--of-design-rule, #d8dce6);
    border-radius: 7px;
    background: var(--of-design-paper, #f9faff);
    color: var(--of-design-ink, #202632);
    font: inherit;
    text-align: start;
    cursor: pointer;
  }

  .of-theme-launcher:is(:hover, [aria-expanded="true"]),
  .of-workspace-toolbar .of-theme-launcher--toolbar:is(:hover, [aria-expanded="true"]) {
    background: var(--of-design-selection, #e5eafb);
    border-color: var(--of-design-accent, #304eb1);
  }

  .of-theme-launcher:focus-visible,
  .of-theme-dialog .of-theme-close:focus-visible {
    outline: 2px solid var(--of-design-accent, #304eb1);
    outline-offset: 2px;
  }

  .of-theme-launcher-art {
    position: relative;
    display: block;
    flex: 0 0 auto;
    inline-size: 30px;
    block-size: 30px;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid #728591;
    border-radius: 6px;
    background:
      radial-gradient(circle at 28% 31%, #fffcf0 0 12%, transparent 14%),
      radial-gradient(circle at 74% 34%, #ecd0aa 0 5%, transparent 7%),
      linear-gradient(113deg, #e1d5bd 51%, #345266 53%, #162b3c 82%);
  }

  .of-theme-launcher-art::after {
    content: "";
    position: absolute;
    inset: 51% 10% 10% 13%;
    border-block-start: 1px solid rgb(255 248 228 / .72);
    border-inline-end: 1px solid rgb(255 248 228 / .72);
    transform: skewX(-20deg);
  }

  .of-theme-launcher-copy {
    min-inline-size: 0;
    display: grid;
    gap: 2px;
  }

  .of-theme-launcher-copy strong {
    color: inherit;
    font-size: 12px;
    font-weight: 740;
    line-height: 1.15;
  }

  .of-theme-launcher-copy small {
    overflow: hidden;
    color: var(--of-design-muted, #545d73);
    font-size: 11px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .of-theme-dialog {
    position: fixed;
    inset: auto;
    inset-block-end: max(18px, env(safe-area-inset-bottom, 0px));
    inset-inline-start: max(12px, env(safe-area-inset-left, 0px));
    inline-size: min(420px, calc(100% - 24px));
    max-inline-size: none;
    max-block-size: min(510px, calc(100dvh - env(safe-area-inset-bottom, 0px) - 24px));
    box-sizing: border-box;
    overflow: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--of-design-rule, #d8dce6);
    border-radius: 12px;
    background: var(--of-design-paper, #f9faff);
    color: var(--of-design-ink, #202632);
    box-shadow: 0 18px 44px rgb(13 19 37 / .20);
  }

  .of-theme-dialog::backdrop { background: rgb(15 32 47 / .21); }

  html.omniflow-entry-locked .of-theme-dialog { display: none !important; }

  html[data-omniflow-theme="dark"] .of-theme-dialog { color-scheme: dark; }

  .of-theme-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
  }

  .of-theme-dialog-head h2 {
    margin: 0;
    color: inherit;
    font-family: inherit;
    font-size: 24px;
    font-weight: 620;
    letter-spacing: -.025em;
    line-height: 1.15;
  }

  .of-theme-dialog-head form { margin: 0; }

  .of-theme-dialog .of-theme-close {
    display: grid;
    place-items: center;
    inline-size: 44px;
    min-block-size: 44px;
    padding: 0;
    border: 1px solid var(--of-design-rule, #d8dce6);
    border-radius: 7px;
    background: transparent;
    color: inherit;
    box-shadow: none;
    font: 400 24px / 1 system-ui, sans-serif;
    cursor: pointer;
  }

  .of-theme-dialog .of-theme-close:hover { background: var(--of-design-selection, #e5eafb); }

  .of-theme-dialog .of-theme-preview-options {
    --theme-option-ink: var(--of-design-ink, #202632);
    --theme-option-line: var(--of-design-rule, #d8dce6);
    --theme-option-active: var(--of-design-selection, #e5eafb);
    --theme-option-mark: var(--of-design-accent, #304eb1);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 0;
  }

  .of-theme-dialog .of-theme-preview-options :is(.of-theme-card, .of-theme-system) {
    min-inline-size: 0;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid var(--theme-option-line);
    border-radius: 7px;
    color: var(--theme-option-ink) !important;
    font-size: 13px !important;
    font-weight: 620 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }

  .of-theme-dialog .of-theme-preview-options :is(.of-theme-card, .of-theme-system):has(input:checked) {
    border-color: var(--theme-option-mark);
  }

  .of-theme-dialog .of-theme-preview-options label:has(input:focus-visible) {
    outline: 2px solid var(--theme-option-mark) !important;
    outline-offset: -2px !important;
  }

  .of-theme-dialog .of-theme-preview-options input[type="radio"]:focus-visible {
    outline: none !important;
    box-shadow: none !important;
  }

  .of-theme-dialog .of-theme-preview-options .of-theme-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0;
  }

  .of-theme-card-caption,
  .of-theme-dialog .of-theme-preview-options .of-theme-system {
    display: flex;
    align-items: center;
    gap: 8px;
    min-block-size: 44px;
    padding-inline: 9px;
  }

  .of-theme-dialog .of-theme-preview-options .of-theme-system { grid-column: 1 / -1; }
  .of-theme-system input { margin-inline-start: auto !important; }
  .of-theme-system .of-theme-launcher-art { inline-size: 24px; block-size: 24px; }

  .of-theme-scene {
    position: relative;
    display: block;
    block-size: clamp(65px, 23vw, 111px);
    isolation: isolate;
    overflow: hidden;
    background: var(--scene-backdrop);
  }

  .of-theme-scene--day {
    --scene-backdrop: radial-gradient(ellipse at 30% 28%, rgb(255 251 242 / 57%), transparent 85%),
      url("./assets/workspace-limestone.png") center / 192px repeat #e5ded2;
    --scene-disc: #fffdf4;
    --scene-window: #fffcf7;
    --scene-sidebar: #142332;
    --scene-line: #b1bdc1;
    --scene-bar: #4c7790;
    --scene-border: #9aa5a6;
  }

  .of-theme-scene--night {
    --scene-backdrop: radial-gradient(ellipse at 32% 30%, #223e57, #101b27 77%);
    --scene-disc: #ebcda8;
    --scene-window: #20333f;
    --scene-sidebar: #142332;
    --scene-line: #829faa;
    --scene-bar: #abd3ea;
    --scene-border: #718896;
  }

  .of-theme-scene::before {
    content: "";
    position: absolute;
    inset: 15% auto auto 11%;
    inline-size: 21px;
    block-size: 21px;
    border-radius: 50%;
    background: var(--scene-disc);
  }

  .of-theme-scene--night::before {
    background: transparent;
    box-shadow: -5px 3px var(--scene-disc);
    transform: translateX(5px) rotate(-25deg);
  }

  .of-theme-scene > span {
    position: absolute;
    inset: 37% 10% 16% 25%;
    border: 1px solid var(--scene-border);
    border-radius: 4px 4px 1px 1px;
    background:
      linear-gradient(var(--scene-sidebar), var(--scene-sidebar)) left / 19% 100% no-repeat,
      linear-gradient(var(--scene-line), var(--scene-line)) 56% 27% / 54% 1px no-repeat,
      linear-gradient(var(--scene-bar), var(--scene-bar)) 37% 69% / 10% 27% no-repeat,
      linear-gradient(var(--scene-bar), var(--scene-bar)) 56% 62% / 10% 35% no-repeat,
      linear-gradient(var(--scene-bar), var(--scene-bar)) 75% 71% / 10% 24% no-repeat,
      var(--scene-window);
    box-shadow: 0 4px 12px rgb(22 31 61 / .19);
  }

  html[data-omniflow-theme="dark"]:not(.omniflow-entry-locked) {
    --theme-canvas: var(--of-design-canvas, #151825);
    --theme-paper: var(--of-design-paper, #202536);
    --theme-raised: var(--of-design-raised, #292f42);
    --theme-selected: var(--of-design-selection, #333d59);
    --theme-rule: var(--of-design-rule, #404963);
    --theme-ink: var(--of-design-ink, #edf0fa);
    --theme-muted: var(--of-design-muted, #b7bdcf);
    --theme-accent: var(--of-design-accent, #b7c7ff);
    --theme-danger: #ffaaa1;
    --theme-focus: 0 0 0 2px var(--theme-accent);
    --mono-canvas: var(--theme-canvas);
    background: var(--theme-canvas) !important;
  }

  html[data-omniflow-theme="dark"]:not(.omniflow-entry-locked) body {
    background: var(--theme-canvas) !important;
  }

  html[data-omniflow-theme="dark"]:not(.omniflow-entry-locked) :is(.of-job-header, .of-workspace-toolbar, .mobile-command-center, .desktop-nav-toggle, .tablet-side-nav, .mobile-bottom-nav, .of-theme-options) {
    color-scheme: dark;
    --cr-focus: var(--theme-focus);
    --of-focus: var(--theme-focus);
  }

  html[data-omniflow-theme="dark"]:not(.omniflow-entry-locked) .of-theme-options {
    --theme-option-ink: var(--theme-ink);
    --theme-option-muted: var(--theme-muted);
    --theme-option-line: var(--theme-rule);
    --theme-option-active: var(--theme-selected);
    --theme-option-mark: var(--theme-accent);
  }

  html[data-omniflow-theme="dark"]:not(.omniflow-entry-locked) body .of-job-header #ofSaveIndicator,
  html[data-omniflow-theme="dark"]:not(.omniflow-entry-locked) body .of-job-header #ofSaveIndicator .of-save-check {
    color: #a0ceb5;
  }

  html[data-omniflow-theme="dark"]:not(.omniflow-entry-locked) .header-history-suggestions {
    color-scheme: dark;
    background: var(--theme-paper);
    color: var(--theme-ink);
    border-color: var(--theme-rule);
  }

  html[data-omniflow-theme="dark"]:not(.omniflow-entry-locked) .header-history-suggestion {
    background: var(--theme-paper) !important;
    color: var(--theme-ink) !important;
  }

  html[data-omniflow-theme="dark"]:not(.omniflow-entry-locked) .header-history-suggestion:is(:hover, .active) {
    background: var(--theme-selected) !important;
    border-color: var(--theme-rule);
  }

  html[data-omniflow-theme="dark"]:not(.omniflow-entry-locked) .header-history-suggestion strong { color: var(--theme-ink) !important; }
  html[data-omniflow-theme="dark"]:not(.omniflow-entry-locked) :is(.header-history-suggestions-head, .header-history-suggestion span) { color: var(--theme-muted) !important; }

  html[data-omniflow-theme="dark"]:not(.omniflow-entry-locked) body :is(.tablet-side-nav, .mobile-bottom-nav) {
    background: #101213 !important;
    border-color: #33393b !important;
  }

  html[data-omniflow-theme="dark"]:not(.omniflow-entry-locked) body :is(.tablet-side-btn, .mobile-bottom-nav-btn).active {
    background: var(--theme-raised) !important;
    color: var(--theme-ink) !important;
    box-shadow: inset 0 0 0 1px var(--theme-rule) !important;
  }

  html[data-omniflow-theme="dark"]:not(.omniflow-entry-locked) .app-nav-marker { background: var(--theme-accent); }

  html[data-omniflow-theme="dark"]:not(.omniflow-entry-locked) body.overview-mode {
    background: var(--panel-canvas, var(--theme-canvas)) !important;
  }

  /* Editing and document surfaces have explicit print palettes. Keep the old
     workbench surfaces on paper until their component colors are tokenized. */
  html[data-omniflow-theme="dark"]:not(.omniflow-entry-locked) .tab-stage > :is(#tabHistorie, #tabVykazy, #tabRevizeBudget, #tabServisNaklady, #tabUcpavky, #tabRevize, #tabServis, #tabDokumentace, #tabNastaveni) {
    background: #f4f4f4;
  }

  html[data-omniflow-theme="dark"]:not(.omniflow-entry-locked) body.calendar-mode #tabKalendar {
    color-scheme: dark;
    --plan-amber: #ffc38d;
    --plan-amber-paper: #413028;
    --plan-overdue: #ffbaac;
    --plan-overdue-paper: #462e2d;
    --plan-complete: #a1d5b6;
    --plan-complete-paper: #233a32;
    --plan-leave: #d9bbf3;
    --plan-leave-paper: #372d45;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) body.calendar-mode #tabKalendar {
    /* The older roster and agenda controls use these screen tokens. */
    --mono-ink: var(--plan-ink);
    --mono-muted: var(--plan-muted);
    --mono-line: var(--plan-line);
    --mono-white: var(--plan-paper);
    --mono-canvas: var(--of-design-canvas);
    --mono-surface: var(--plan-tint);
    --mono-tint: var(--plan-active);
    --mono-raised: var(--plan-accent);
    --mono-warning: var(--plan-amber);
    --mono-warning-soft: var(--plan-amber-paper);
    --mono-success: var(--plan-complete);
    --mono-success-soft: var(--plan-complete-paper);
    --mono-danger: var(--plan-overdue);
    --mono-danger-soft: var(--plan-overdue-paper);
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) body.calendar-mode #tabKalendar :is(.plan-calendar-main, .plan-calendar-day) {
    background: color-mix(in srgb, var(--plan-paper) 89%, transparent);
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) body.calendar-mode #tabKalendar .plan-select select {
    background-color: var(--plan-paper) !important;
    border-color: var(--plan-line) !important;
    color: var(--plan-ink) !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) body.calendar-mode #tabKalendar .kal-outing-table :is(td, th) {
    border-color: var(--plan-line) !important;
    background: var(--plan-paper) !important;
    color: var(--plan-ink) !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) body.calendar-mode #tabKalendar .kal-outing-table thead th {
    background: var(--plan-tint) !important;
    color: var(--plan-muted) !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) body.calendar-mode #tabKalendar .kal-outing-table tbody tr:is(:hover, :focus-within, .kal-outing-selected) > :is(td, th) {
    background: var(--plan-active) !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) body.calendar-mode #tabKalendar .kal-team-week-table :is(th, td) {
    background: var(--plan-paper) !important;
    border-color: var(--plan-line) !important;
    color: var(--plan-ink) !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) body.calendar-mode #tabKalendar .kal-team-week-table thead th {
    background: var(--plan-tint) !important;
    color: var(--plan-muted) !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) body.calendar-mode #tabKalendar .kal-team-week-cell[data-state="leave"] {
    background: var(--plan-leave-paper);
    color: var(--plan-leave);
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) body.calendar-mode #tabKalendar .kal-email-row:not([data-email-status="confirmed"]):not([data-email-status="legacy"]) {
    background: var(--plan-paper) !important;
    border-color: var(--plan-line) !important;
    border-inline-start-color: var(--plan-accent) !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) body.object360-mode #tabObjekty360 {
    --object-directory-paper: var(--of-design-paper);
    --object-directory-subtle: var(--of-design-raised);
    --object-directory-text: var(--of-design-ink);
    --object-directory-muted: var(--of-design-muted);
    --object-directory-line: var(--of-design-rule);
    --object-directory-selected: var(--of-design-selection);
    --object-directory-selected-line: color-mix(in srgb, var(--of-design-accent) 50%, var(--of-design-rule));
    --object-directory-accent: var(--of-design-accent);
    --object-quality-ink: var(--of-design-ink);
    --object-quality-muted: var(--of-design-muted);
    --object-quality-accent: var(--of-design-accent);
    --object-quality-line: var(--of-design-rule);
    --object-quality-wash: var(--of-design-raised);
    --object-risk: #853e22;
    --object-risk-surface: #f7e9de;
    --object-card-surface: color-mix(in srgb, var(--of-design-paper) 86%, transparent);
    color: var(--of-design-ink);
  }

  html[data-omniflow-theme="dark"]:not(.omniflow-entry-locked) body.object360-mode #tabObjekty360 {
    --object-risk: #ffc6a2;
    --object-risk-surface: #422f2a;
    color-scheme: dark;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) body.object360-mode #tabObjekty360 .object360-workspace-header {
    border-color: var(--of-design-rule);
    background: transparent;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) body.object360-mode #tabObjekty360 #object360CreateButton {
    background: var(--of-design-accent) !important;
    color: var(--of-design-paper) !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360 #object360UnassignedButton.has-items #object360UnassignedCount {
    color: var(--object-risk) !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360 .object360-work-year-controls label {
    color: var(--of-design-muted) !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360 .object360-year-control select {
    background: var(--object-card-surface) !important;
    border-color: var(--of-design-rule) !important;
    color: var(--of-design-ink) !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) body.object360-mode #tabObjekty360 #object360DirectoryPanel {
    background: color-mix(in srgb, var(--of-design-paper) 48%, transparent) !important;
    border-color: var(--of-design-rule) !important;
    box-shadow: none !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) body.object360-mode #tabObjekty360 #object360DirectoryPanel .object360-directory-head {
    background: linear-gradient(120deg, var(--object-card-surface), transparent) !important;
    border-color: var(--of-design-rule) !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360 #object360DirectoryPanel :is(.object360-directory-heading h3, #object360DirectoryResult) {
    color: var(--of-design-ink) !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) body.object360-mode #tabObjekty360 #object360DirectoryPanel :is(input[type="search"], .object360-directory-controls select, .object360-directory-refine > summary) {
    background: var(--object-card-surface) !important;
    border-color: var(--of-design-rule) !important;
    color: var(--of-design-ink) !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360 :is(.object360-search, .object360-directory-controls select):focus {
    border-color: var(--of-design-accent) !important;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--of-design-accent) 24%, transparent) !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360 #object360DirectoryPanel .object360-directory-switch {
    border-color: var(--of-design-rule);
    background: var(--object-card-surface) !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360 #object360DirectoryPanel .object360-directory-switch button {
    color: var(--of-design-muted);
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360 #object360DirectoryPanel :is(.object360-directory-switch, .object360-directory-filters) button:is(:hover, [aria-pressed="true"]) {
    background: var(--of-design-selection) !important;
    border-color: var(--object-directory-selected-line) !important;
    color: var(--of-design-accent) !important;
    box-shadow: none !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360 #object360DirectoryPanel .object360-directory-quick button[aria-pressed="true"] strong {
    color: inherit;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) body.object360-mode #tabObjekty360 #object360DirectoryPanel #object360ObjectList {
    background: transparent !important;
    scrollbar-color: var(--object-directory-selected-line) transparent;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) body.object360-mode #tabObjekty360 #object360ObjectList .object360-object-btn {
    background: var(--object-card-surface) !important;
    border-color: var(--of-design-rule) !important;
    color: var(--of-design-ink) !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) body.object360-mode #tabObjekty360 #object360ObjectList .object360-object-btn:hover:not(.active) {
    background: var(--of-design-raised) !important;
    border-color: var(--object-directory-selected-line) !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) body.object360-mode #tabObjekty360 #object360ObjectList .object360-object-btn.active {
    background: var(--of-design-selection) !important;
    border-color: var(--object-directory-selected-line) !important;
    box-shadow: inset 3px 0 var(--of-design-accent) !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360 #object360ObjectList .object360-object-btn.active::before {
    background: var(--of-design-accent) !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360 #object360ObjectList .object360-object-name {
    color: var(--of-design-ink) !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360 #object360ObjectList :is(.object360-object-address, .object360-object-client, .object360-catalog-completion) {
    color: var(--of-design-muted) !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360 #object360ObjectList :is(.object360-object-next:not(.warning):not(.danger), .object360-allocation-badge) {
    background: var(--of-design-raised) !important;
    color: var(--of-design-muted) !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360 #object360ObjectList .object360-catalog-progress { background: var(--of-design-rule); }
  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360 #object360ObjectList .object360-catalog-progress > i { background: var(--of-design-accent); }
  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360 #object360ObjectList .object360-catalog-completion strong { color: var(--of-design-accent); }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360[data-directory-mode="table"] .object360-directory-table :is(td, th) {
    border-color: var(--of-design-rule) !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360[data-directory-mode="table"] .object360-directory-table thead th {
    background: var(--of-design-raised) !important;
    color: var(--of-design-ink) !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360[data-directory-mode="table"] .object360-directory-table tbody tr {
    --object-table-row-surface: var(--of-design-paper);
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360[data-directory-mode="table"] .object360-directory-table tbody tr:nth-child(even) {
    --object-table-row-surface: color-mix(in srgb, var(--of-design-paper) 55%, var(--of-design-raised));
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360[data-directory-mode="table"] .object360-directory-table tbody tr:is(:hover, :focus-within, .is-selected) {
    --object-table-row-surface: var(--of-design-selection);
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360[data-directory-mode="table"] .object360-directory-table tbody tr.is-selected > :first-child {
    box-shadow: inset 3px 0 var(--of-design-accent) !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360[data-directory-mode="table"] .object360-directory-table :is(.object360-table-number, .object360-table-client, .object360-table-deadline, .object360-table-secondary) {
    color: var(--of-design-muted) !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360 .object360-table-object {
    color: var(--of-design-ink) !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360 .object360-table-object:is(:hover, [aria-current="true"]) {
    color: var(--of-design-accent) !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360 :is(.object360-object-btn, .object360-table-object, .object360-directory-switch button, .object360-directory-quick button):focus-visible {
    outline-color: var(--of-design-accent) !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) body.object360-mode #tabObjekty360 #object360Detail:not(.is-empty) {
    background: var(--object-card-surface) !important;
    border-color: var(--of-design-rule) !important;
    box-shadow: none !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) body.object360-mode #tabObjekty360 #object360Detail .object360-hero {
    background: linear-gradient(115deg, transparent, color-mix(in srgb, var(--of-design-selection) 78%, transparent)) !important;
    color: var(--of-design-ink);
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) body.object360-mode #tabObjekty360 #object360Detail .object360-hero-name {
    color: var(--of-design-ink) !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) body.object360-mode #tabObjekty360 #object360Detail :is(.object360-hero-meta, .object360-metric-arrow) {
    color: var(--of-design-muted) !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) body.object360-mode #tabObjekty360 #object360Detail :is(
    .object360-building-mark, .object360-hero-metric, .object360-more-menu > summary,
    .object360-hero-eyebrow > span:not(.danger, .warning, .success), .object360-hero-status:not(.danger, .warning, .success)
  ) {
    background: var(--object-card-surface) !important;
    border-color: var(--of-design-rule) !important;
    color: var(--of-design-ink) !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360 #object360Detail :is(.object360-hero-metric:hover, .object360-more-menu:is([open], :hover) > summary) {
    background: var(--of-design-selection) !important;
    border-color: var(--object-directory-selected-line) !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360 #object360Detail .object360-hero-metric strong { color: var(--of-design-ink); }
  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360 #object360Detail .object360-hero-metric.is-urgent strong { color: var(--object-risk); }
  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360 #object360Detail .object360-hero-status:is(.danger, .warning) {
    background: var(--object-risk-surface) !important;
    color: var(--object-risk) !important;
  }

  html[data-omniflow-theme="light"]:not(.omniflow-entry-locked) #tabObjekty360 #object360Detail .object360-hero-status.success {
    background: #e5f0e8 !important;
    color: #245742 !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) body.object360-mode #tabObjekty360 #object360Detail .object360-tabs {
    background: var(--of-design-paper) !important;
    border-color: var(--of-design-rule) !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) body.object360-mode #tabObjekty360 #object360Detail .object360-tabs .object360-tab:is(:hover, .active) {
    background: var(--of-design-selection) !important;
    color: var(--of-design-accent) !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) body.object360-mode #tabObjekty360 #object360Detail .object360-tabs .object360-tab.active {
    box-shadow: inset 0 -3px var(--of-design-accent) !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360 #object360Detail :is(.object360-tab, .object360-hero-metric, .object360-deadline-bars button):focus-visible {
    outline-color: var(--of-design-accent) !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360 :is(
    #object360DirectoryToggle, .object360-catalog-empty button, #object360DirectoryPager button, #object360DirectoryPager select
  ) {
    background: var(--object-card-surface) !important;
    border-color: var(--of-design-rule) !important;
    color: var(--of-design-accent) !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360 :is(
    #object360DirectoryToggle, .object360-catalog-empty button, #object360DirectoryPager button:not(:disabled)
  ):hover {
    background: var(--of-design-selection) !important;
    border-color: var(--object-directory-selected-line) !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360 .object360-catalog-empty {
    background: var(--object-card-surface);
    border-color: var(--of-design-rule);
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360 .object360-search::placeholder {
    color: var(--of-design-muted) !important;
    opacity: 1;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360 #object360ObjectList .object360-object-counts span {
    color: var(--of-design-muted);
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) body.object360-mode #tabObjekty360 #object360Detail .object360-identity-stack {
    background: transparent !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360 #object360Detail .object360-desk-primary {
    background: var(--of-design-accent);
    border-color: var(--of-design-accent);
    color: var(--of-design-paper);
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360 #object360Detail .object360-desk-primary:hover {
    background: color-mix(in srgb, var(--of-design-accent) 85%, var(--of-design-ink));
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360 #object360Detail .object360-first-deadline:hover {
    background: var(--of-design-selection);
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360 #object360Detail :is(.object360-overview-count, .object360-activity-mark) {
    background: var(--of-design-selection);
    color: var(--of-design-accent);
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360 #object360Detail :is(.object360-safety-workspace, .object360-business-workspace) {
    --object-control-ink: var(--of-design-ink);
    --object-control-muted: var(--of-design-muted);
    --object-control-line: var(--of-design-rule);
    --object-control-paper: var(--of-design-paper);
    --object-control-wash: var(--of-design-raised);
    --object-control-accent: var(--of-design-accent);
    --object-control-tint: var(--of-design-selection);
    --object-control-risk: var(--object-risk);
    --object-control-risk-paper: var(--object-risk-surface);
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360 #object360Detail .object360-safety-workspace .object360-agenda-group:not(.is-urgent) .object360-agenda-heading {
    background: var(--of-design-raised);
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360 #object360Detail .object360-safety-workspace .object360-agenda-row {
    color: var(--of-design-ink);
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360 #object360Detail .object360-safety-workspace .object360-agenda-row:hover {
    background: var(--of-design-selection);
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360 #object360Detail :is(
    .object360-archive-workspace .object360-docs-navigation select, .object360-archive-workspace .object360-docs-filters > summary,
    .object360-commercial-tools > summary
  ) {
    background: var(--of-design-paper) !important;
    border-color: var(--of-design-rule) !important;
    color: var(--of-design-accent) !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360 #object360Detail :is(
    .object360-overview-arrow, .object360-agenda-arrow, .object360-docs-requirements > summary,
    .object360-technician-history > summary, .object360-people-identity > summary
  ) {
    color: var(--of-design-accent) !important;
  }

  html[data-omniflow-theme]:not(.omniflow-entry-locked) #tabObjekty360 #object360Detail .object360-docs-control {
    color: var(--of-design-muted);
  }

  html[data-omniflow-theme="dark"]:not(.omniflow-entry-locked) #tabNastaveni .of-theme-settings {
    background: var(--theme-paper);
    border-color: var(--theme-rule);
  }

  html[data-omniflow-theme="dark"]:not(.omniflow-entry-locked) .of-theme-settings :is(.global-panel-title, .global-panel-subtitle) {
    color: var(--theme-ink);
  }
}

@media screen and (min-width: 1181px) {
  .tablet-side-nav .of-theme-launcher--sidebar {
    display: flex;
    flex: 0 0 auto;
    inline-size: 100%;
    margin-block-start: 13px;
  }

  html[data-desktop-nav="collapsed"] .tablet-side-nav .of-theme-launcher--sidebar {
    justify-content: center;
    inline-size: 44px;
    align-self: center;
    padding-inline: 0;
  }

  html[data-desktop-nav="collapsed"] .of-theme-launcher--sidebar .of-theme-launcher-copy { display: none; }

  .of-theme-dialog {
    inset-inline-start: calc(var(--of-navigation-width, 206px) + 12px);
  }
}

@media screen and (width < 1181px) {
  .of-workspace-toolbar {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .of-workspace-toolbar .of-theme-launcher--toolbar {
    display: flex;
    align-self: center;
    padding: 5px 7px;
    border-color: var(--toolbar-line);
    border-radius: 6px;
    background: var(--toolbar-paper);
  }

  .of-theme-launcher--toolbar .of-theme-launcher-art {
    inline-size: 26px;
    block-size: 26px;
  }

  .of-theme-dialog {
    inset-inline: 0;
    margin-inline: auto;
  }
}

@media screen and (max-width: 740px) {
  .of-workspace-toolbar { grid-template-columns: minmax(0, 1fr) auto; }
  .of-workspace-toolbar .of-toolbar-actions { grid-column: 1 / -1; }
}

@media print {
  .of-theme-launcher, .of-theme-dialog { display: none !important; }
}
