

:root {
  
  --od-brand:        #0F6CBD;   
  --od-brand-hover:  #115EA3;
  --od-brand-press:  #0F548C;
  --od-brand-soft:   #EBF3FC;   
  --od-brand-soft2:  #DCEBFA;   

  --ds-ink:     #242424;        
  --ds-ink2:    #424242;
  --ds-muted:   #616161;
  --ds-muted2:  #909090;
  --ds-line:    #E0E0E0;        
  --ds-line2:   #F0F0F0;
  --ds-surface: #FFFFFF;
  --ds-canvas:  #FAF9F8;        
  --ds-accent:  var(--od-brand);

  --od-appbar-h: 48px;          
}


body {
  font-family: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont,
               Roboto, "Helvetica Neue", sans-serif;
  background: var(--ds-canvas);
}



.od-appbar {
  height: var(--od-appbar-h); flex-shrink: 0;
  display: flex; align-items: center; gap: 12px; padding: 0 12px;
  
  color: var(--ds-ink);
  
  position: relative; z-index: 40;
}
.od-appbar-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }

.od-i.od-appbar-mark { width: 26px; height: 24px; flex-shrink: 0; stroke: none; }
.od-appbar-name { font-size: 15px; font-weight: 600; white-space: nowrap; }
.od-appbar-spacer { flex: 1; min-width: 0; }


.od-search {
  flex: 0 1 468px; display: flex; align-items: center; gap: 8px;
  
  height: 32px; padding: 0 12px; border-radius: var(--radius-pill);
  background: var(--ds-surface); color: var(--ds-ink);
  border: 1px solid var(--ds-line);
}
.od-search:focus-within { border-color: var(--accent); }
.od-search input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none;
  font: inherit; font-size: 13px; color: inherit;
}
.od-search input::placeholder { color: var(--ds-muted); }

.od-search-clear {
  flex: 0 0 auto; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; color: inherit; cursor: pointer; opacity: .75;
}
.od-search-clear:hover { opacity: 1; background: rgba(127,127,127,.22); }
.od-search-clear:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
@media (max-width: 900px) { .od-search { display: none; } }


.od-appbar-btn {
  width: 32px; height: 32px; flex-shrink: 0; border: 0; border-radius: var(--radius-sm);
  background: none; color: var(--ds-ink2); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.od-appbar-btn:hover { background: var(--surface-hover); color: var(--ds-ink); }


.od-acct { position: relative; flex-shrink: 0; }
.od-acct-btn {
  width: 32px; height: 32px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--surface-hover); color: var(--ds-ink);
  font-size: 12.5px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
.od-acct-btn:hover { background: var(--ds-line); }
.od-acct-pop {
  
  position: absolute; right: 0; left: auto; top: calc(100% + 6px); bottom: auto;
  width: 300px; z-index: 45;
  background: var(--ds-surface); color: var(--ds-ink);
  border: 1px solid var(--ds-line); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18); overflow: hidden;
}

.od-acct-pop[hidden] { display: none; }


.od-pop-host { position: relative; flex-shrink: 0; }


.od-acct-pop { border-radius: 12px; }
.ds-acct-menu.od-acct-pop { padding: 0; gap: 0; }
.od-acct-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 10px; border-bottom: 1px solid var(--divider); background: var(--surface-alt);
}
.od-acct-org { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }

.od-i.od-acct-org-mark { width: 22px; height: 20px; flex-shrink: 0; stroke: none; }
.od-acct-org-name {
  font-size: 12.5px; font-weight: 600; color: var(--text-secondary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.od-acct-signout {
  flex-shrink: 0; font-size: 12.5px; color: var(--text-secondary); text-decoration: none;
  padding: 2px 4px; border-radius: var(--radius-sm);
}
.od-acct-signout:hover { color: var(--od-brand-hover); text-decoration: underline; }

.od-acct-id { display: flex; align-items: center; gap: 14px; padding: 16px 14px 18px; min-width: 0; }
.od-acct-photo {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: var(--ds-ink2); color: #fff;
  background-size: cover; background-position: center;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 600; line-height: 1; user-select: none;
}
.od-acct-who { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.od-acct-name {
  font-size: 17px; font-weight: 600; color: var(--text-primary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.od-acct-mail {
  font-size: 12.5px; color: var(--text-secondary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.od-acct-pop .ds-acct-version {
  margin: 0; padding: 6px 10px; line-height: 1.35; overflow-wrap: anywhere;
}


.od-acct-btn > span {
  width: 100%; height: 100%; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center;
}
.has-photo {
  color: transparent; background-color: transparent;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}


.od-set-pop { width: 190px; }

.od-pop-title {
  padding: 9px 10px; border-bottom: 1px solid var(--divider); background: var(--surface-alt);
  font-size: 12.5px; font-weight: 600; color: var(--text-secondary);
}


body { display: flex; flex-direction: column; }
.ds-shell { flex: 1; min-height: 0; }



.ds-sidebar { background: var(--ds-canvas); border-right: 1px solid var(--ds-line); }


.ds-side-head { justify-content: flex-end; }
.ds-brand { display: none; }

.od-nav-group {
  font-size: 11px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase;
  color: var(--ds-muted); padding: 14px 12px 4px;
}
body.ds-sidebar-collapsed .od-nav-group { display: none; }


.od-nav-sep { height: 1px; background: var(--ds-line); margin: 10px 8px; }

.ds-nav-item { border-radius: 4px; margin: 1px 6px; }
.ds-nav-item:hover { background: var(--od-brand-soft2); }
.ds-nav-item.active {
  background: var(--od-brand-soft); color: var(--od-brand); font-weight: 600;
  
  box-shadow: inset 3px 0 0 var(--od-brand);
}
.ds-nav-item.active svg { color: var(--od-brand); }



.ds-subheader { background: var(--ds-surface); border-bottom: 1px solid var(--ds-line); }
.ds-content   { background: var(--ds-canvas); }

.ds-btn-primary {
  background: var(--od-brand); border-color: var(--od-brand); color: #fff;
}
.ds-btn-primary:hover { background: var(--od-brand-hover); border-color: var(--od-brand-hover); }
.ds-btn-primary:active { background: var(--od-brand-press); }

input[type=checkbox] { accent-color: var(--od-brand); }


.ds-row:hover { background: var(--ds-line2); }
.ds-row--open { box-shadow: inset 3px 0 0 var(--od-brand); background: var(--od-brand-soft); }



.od-hero {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: 8px; flex-shrink: 0;
  background: var(--ds-surface); border: 1px solid var(--ds-line);
}
.od-hero-icon {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
}
.od-hero-title { font-size: 15px; font-weight: 600; color: var(--ds-ink); }


.od-hero-link {
  font: inherit; color: inherit; background: none; border: 0; padding: 0;
  cursor: pointer; text-align: left; text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  text-underline-offset: 3px;
}
.od-hero-link:hover { text-decoration-color: currentColor; }
.od-hero-link:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
.od-hero-sub   { font-size: 12.5px; color: var(--ds-muted); margin-top: 2px; }


.od-hero--ok   .od-hero-icon { background: #16a34a; }
.od-hero--warn .od-hero-icon { background: #ca8a04; }
.od-hero--bad  .od-hero-icon { background: #dc2626; }


.od-area-toggle {
  border: 0; background: none; cursor: pointer; padding: 0; width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center; color: var(--ds-muted);
  flex-shrink: 0;
}
.od-subrow > td { background: var(--ds-line2); }
.od-subrow .od-subname { padding-left: 34px; color: var(--ds-ink2); }


.od-nav-badge {
  margin-left: auto; flex-shrink: 0;
  min-width: 20px; padding: 1px 6px; border-radius: 9px;
  background: var(--ds-bad); color: #fff;
  font-size: 10.5px; font-weight: 700; line-height: 16px; text-align: center;
  font-variant-numeric: tabular-nums;
}
.od-nav-badge[hidden] { display: none; }

body.ds-sidebar-collapsed .od-nav-badge { display: none; }


.od-callout {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  padding: 10px 14px; border-radius: 6px;
  background: #FFF4CE; border: 1px solid #F2D48F; color: var(--ds-ink);
  font-size: 12.5px;
}
.od-callout-link {
  margin-left: auto; flex-shrink: 0;
  border: 0; background: none; cursor: pointer; padding: 0;
  color: var(--od-brand); font: inherit; font-weight: 600; text-decoration: underline;
}

.od-update { margin: 10px 16px 0; flex-wrap: wrap; }
.od-update-btn { margin-left: auto; }


.od-facts { display: flex; gap: 22px; flex-wrap: wrap; padding: 2px 2px 6px; flex-shrink: 0; }
.od-fact  { display: inline-flex; align-items: baseline; gap: 7px; cursor: help; }
.od-fact-value {
  font-size: 17px; font-weight: 600; color: var(--ds-ink); font-variant-numeric: tabular-nums;
}
.od-fact-label { font-size: 11.5px; color: var(--ds-muted); }


.od-hero-action {
  border: 0; background: none; padding: 0; margin-left: 8px; cursor: pointer;
  font: inherit; font-size: inherit; font-weight: 600;
  color: var(--od-brand); text-decoration: underline; text-underline-offset: 2px;
}
.od-hero-action:hover { color: var(--od-brand-hover); }


.od-icon-btn {
  width: 26px; height: 26px; border-radius: 4px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ds-muted); text-decoration: none;
}
.od-icon-btn:hover { background: var(--od-brand-soft2); color: var(--od-brand); }


.od-chip-clear {
  display: inline-flex; align-items: center; gap: 5px;
  border-style: dashed; color: var(--ds-muted);
}
.od-chip-clear:hover { color: var(--ds-bad); border-color: var(--ds-bad); border-style: solid; }




.od-progress { height: 2px; flex-shrink: 0; background: var(--od-brand-soft); overflow: hidden; }
.od-progress[hidden] { display: none; }
.od-progress > span {
  display: block; height: 100%; width: 40%; background: var(--od-brand);
  animation: od-progress-slide 1.1s ease-in-out infinite;
}
@keyframes od-progress-slide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(300%); }
}


.od-shimmer { display: flex; flex-direction: column; gap: 8px; }
.od-shimmer-row {
  height: 38px; border-radius: 6px;
  background: linear-gradient(90deg, var(--ds-line2) 25%, #E8E8E8 37%, var(--ds-line2) 63%);
  background-size: 400% 100%;
  animation: od-shimmer 1.4s ease-in-out infinite;
}
@keyframes od-shimmer {
  0%   { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}


@media (prefers-reduced-motion: reduce) {
  .od-progress > span { animation: none; width: 100%; }
  .od-shimmer-row     { animation: none; background: var(--ds-line2); }
}



.od-tabs {
  display: flex; gap: 2px; padding: 0 12px; flex-shrink: 0;
  border-bottom: 1px solid var(--ds-line); background: var(--ds-surface);
}
.od-tab {
  border: 0; background: none; cursor: pointer; padding: 9px 12px 8px;
  font: inherit; font-size: 12.5px; color: var(--ds-muted);
  border-bottom: 2px solid transparent;
  display: inline-flex; align-items: center; gap: 6px;
}
.od-tab:hover { color: var(--ds-ink); background: var(--ds-line2); }
.od-tab.is-on { color: var(--od-brand); font-weight: 600; border-bottom-color: var(--od-brand); }
.od-tab-count {
  min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--ds-line2);
  font-size: 10.5px; font-weight: 700; line-height: 16px; color: var(--ds-muted2);
}
.od-tab.is-on .od-tab-count { background: var(--od-brand-soft); color: var(--od-brand); }


.od-tabs--zrodla { padding: 0; margin-bottom: 2px; background: none; flex-wrap: wrap; }

.od-tabs-aside { margin-left: auto; align-self: center; display: flex; align-items: center; }
.od-tabs-aside .ds-chips { margin-bottom: 0; }
.od-tab-mark { display: inline-flex; align-items: center; }
.od-tab-mark svg { width: 16px; height: 16px; }
.od-tab.is-off { color: var(--ds-muted2); }
.od-tab.is-off .od-tab-mark { filter: grayscale(1); opacity: .5; }
.od-tab.is-off:hover { color: var(--ds-ink2); }


.od-src-pusto {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 22px; border: 1px dashed var(--ds-line); border-radius: 10px; background: var(--ds-bg);
}


.od-src-pusto--srodek {
  align-items: center; text-align: center; gap: 14px; padding: 48px 22px;
}
.od-src-pusto-mark { display: inline-flex; width: 48px; height: 48px; opacity: .85; }
.od-src-pusto-mark svg, .od-src-pusto-mark img { width: 100%; height: 100%; }
.od-src-pusto-tekst { max-width: 46ch; color: var(--ds-muted); font-size: 13px; line-height: 1.5; }


.od-src-wybor {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%;
  padding: 14px 16px; text-align: left; cursor: pointer;
  border: 1px solid var(--ds-line); border-radius: 10px; background: var(--ds-bg);
}
.od-src-wybor:hover { border-color: var(--accent); background: var(--ds-bg2, var(--ds-bg)); }
.od-src-wybor:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.od-src-wybor-nazwa { font-size: 14px; font-weight: 600; color: var(--ds-ink); }
.od-src-wybor-opis  { font-size: 12px; color: var(--ds-muted); line-height: 1.45; }




.od-chat { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
.od-msg { max-width: 84%; }
.od-msg--agent  { align-self: flex-start; }
.od-msg--ja     { align-self: flex-end; }
.od-msg--system { align-self: center; max-width: 96%; }
.od-msg-meta { font-size: 10.5px; color: var(--ds-muted2); margin-bottom: 3px; }
.od-msg--ja .od-msg-meta { text-align: right; }
.od-msg-body {
  padding: 9px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.5;
  white-space: pre-wrap; overflow-wrap: anywhere;
  background: var(--ds-line2); color: var(--ds-ink);
}
.od-msg--ja .od-msg-body { background: var(--od-brand); color: #fff; }

.od-msg.is-pending .od-msg-body { opacity: .62; }
.od-msg.is-failed  .od-msg-body { opacity: .62; outline: 1px solid var(--ds-bad); }
.od-msg.is-failed  .od-msg-state { color: var(--ds-bad); font-weight: 600; }
.od-msg-file {
  margin-top: 3px; display: flex; align-items: center; gap: 4px; justify-content: flex-end;
  font-size: 10.5px; color: var(--ds-muted2);
}

.od-msg--verdict .od-msg-body {
  background: var(--ds-surface); border: 1px solid var(--ds-line);
  border-left: 3px solid #16a34a;
}


.od-fix {
  align-self: stretch; flex-shrink: 0; margin: 6px 0; padding: 10px 12px;
  border: 1px solid var(--ds-line); border-left-width: 3px; border-radius: 10px;
  background: var(--ds-surface);
}
.od-fix--warn  { border-left-color: var(--ds-warn); }
.od-fix--ok    { border-left-color: #16a34a; }
.od-fix--muted { border-left-color: var(--ds-line); opacity: .78; }
.od-fix-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 11px; }
.od-fix-who { margin-left: auto; }
.od-fix-why { margin: 7px 0; font-size: 12.5px; line-height: 1.5; color: var(--ds-ink); }
.od-fix-rows { display: flex; flex-direction: column; gap: 3px; margin: 8px 0; }

.od-fix-row {
  display: flex; align-items: baseline; gap: 7px; font-size: 11.5px;
  padding: 3px 0; border-bottom: 1px solid var(--ds-line2);
}
.od-fix-path { flex-shrink: 0; min-width: 120px; font-weight: 600; color: var(--ds-ink2); }
.od-fix-before, .od-fix-after {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere;
}
.od-fix-before { color: var(--ds-muted); text-decoration: line-through; }
.od-fix-after  { color: var(--ds-ink); }
.od-fix-arrow  { flex-shrink: 0; color: var(--ds-muted2); }
.od-fix-verdict { font-size: 11px; color: var(--ds-muted); }
.od-fix-error { margin-top: 5px; font-size: 11.5px; color: var(--ds-bad); }
.od-fix-act { display: flex; gap: 8px; margin-top: 9px; }


.od-live {
  
  align-self: flex-start; max-width: 92%; flex-shrink: 0; margin-top: 6px; padding: 10px 12px;
  border: 1px dashed color-mix(in srgb, var(--od-brand) 45%, var(--ds-line));
  border-left: 3px solid var(--od-brand); border-radius: 10px; background: var(--ds-surface);
}
.od-live-head { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.45; color: var(--ds-ink); }
.od-live-last {
  margin: 5px 0 7px; font-size: 12.5px; line-height: 1.45; color: var(--ds-ink2);
  overflow-wrap: anywhere;
}

.od-typing { display: inline-flex; gap: 3px; flex-shrink: 0; }
.od-typing i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--od-brand);
  animation: od-puls 1.2s ease-in-out infinite;
}
.od-typing i:nth-child(2) { animation-delay: .2s; }
.od-typing i:nth-child(3) { animation-delay: .4s; }
.od-live--queued .od-live-last { display: none; }

.od-live-tools { display: flex; flex-direction: column; gap: 2px; max-height: 220px; overflow: auto; }
.od-live .od-think-body { max-height: 220px; overflow: auto; }

.od-think-line { margin-bottom: 5px; }
.od-think-faza {
  display: inline-block; margin-right: 6px; font-size: 10px; text-transform: uppercase;
  letter-spacing: .4px; color: var(--ds-muted2);
}
@keyframes od-puls { 0%, 100% { opacity: .25 } 50% { opacity: 1 } }

@media (prefers-reduced-motion: reduce) {
  .od-typing i { animation: none; opacity: .8; }
}


.od-composer {
  display: flex; gap: 8px; align-items: flex-end; flex-shrink: 0;
  padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--ds-line);
}
.od-composer textarea { flex: 1; min-width: 0; }

.od-composer-side { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.od-composer-side > * { width: 100%; justify-content: center; }
.od-attach-pick { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }


.od-attach-chosen {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  margin-top: 8px; padding: 6px 8px; font-size: 12px;
  border: 1px solid var(--ds-line); border-radius: 8px; background: var(--ds-line2);
}

.od-attach-chosen .ds-truncate { max-width: 100%; }


.od-attach-note {
  display: flex; align-items: flex-start; gap: 8px; flex-shrink: 0;
  margin: 8px 0 0; padding: 9px 10px; font-size: 12.5px; line-height: 1.5;
  border-radius: 8px; border: 1px solid var(--ds-line); background: var(--ds-surface);
}
.od-attach-note > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.od-attach-note--ok { border-left: 3px solid #16a34a; }
.od-attach-note--ostrzezenie {
  border-left: 3px solid var(--ds-warn); color: var(--ds-ink); font-weight: 500;
}


.od-msg-attach {
  display: inline-flex; align-items: center; gap: 3px; margin-left: 6px;
  vertical-align: middle; color: var(--ds-muted2);
}
.od-msg--ja .od-msg-attach { color: var(--od-brand); }





.od-turn {
  flex-shrink: 0; margin: 2px 0 8px; padding: 8px 11px;
  font-size: 12.5px; line-height: 1.5; border-radius: 8px;
  border: 1px solid var(--ds-line); border-left-width: 3px; background: var(--ds-surface);
}
.od-turn--warn  { border-left-color: var(--ds-warn); background: var(--ds-warn-bg); color: var(--ds-ink); }
.od-turn--info  { border-left-color: var(--od-brand); }
.od-turn--ok    { border-left-color: #16a34a; }
.od-turn--muted { border-left-color: var(--ds-line); color: var(--ds-muted); }

.od-turn--error { border-left-color: var(--ds-bad); background: var(--ds-bad-bg); color: var(--ds-ink);
                  overflow-wrap: anywhere; }


.od-att-list { display: flex; flex-direction: column; gap: 6px; margin-top: 7px; }
.od-att {
  padding: 7px 9px; border-radius: 8px; font-size: 11.5px; line-height: 1.45;
  background: var(--ds-surface); border: 1px solid var(--ds-line); color: var(--ds-ink);
}
.od-att-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }

.od-att-name { flex: 1 1 9rem; min-width: 9rem; max-width: 100%; font-weight: 600; }
.od-att-toggle { font-size: 11px; padding: 2px 8px; }


.od-att-src { margin-top: 4px; font-size: 11px; }
.od-att-src--ok    { color: #16a34a; }
.od-att-src--warn  { color: var(--ds-warn); }
.od-att-src--bad   { color: var(--ds-bad); font-weight: 600; }
.od-att-src--muted { color: var(--ds-muted); }
.od-att-sha { margin-top: 2px; font-family: ui-monospace, monospace; font-size: 10px; color: var(--ds-muted2); }


.od-att-text {
  margin-top: 6px; max-height: 260px; overflow: auto;
  border-top: 1px solid var(--ds-line); padding-top: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; line-height: 1.55;
}
.od-att-text--blad { color: var(--ds-bad); }
.od-att-line { display: flex; gap: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.od-att-nr { flex-shrink: 0; width: 28px; text-align: right; color: var(--ds-muted2); user-select: none; }



.od-verdict--bad .od-msg-body   { border-left-color: var(--ds-bad); }
.od-verdict--warn .od-msg-body  { border-left-color: var(--ds-warn); }
.od-verdict--muted .od-msg-body { border-left-color: var(--ds-line); }

.od-run { margin-top: 8px; border-top: 1px solid var(--ds-line); padding-top: 7px; }
.od-run-meta {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  font-size: 11px; color: var(--ds-muted);
}
.od-run-sep { color: var(--ds-line); }
.od-run-toggle { margin-top: 7px; font-size: 11px; padding: 2px 8px; }

.od-steps {
  margin-top: 7px; max-height: 320px; overflow: auto;
  display: flex; flex-direction: column; gap: 3px; font-size: 11.5px;
}



.od-timeline { display: flex; flex-direction: column; gap: 0; flex-shrink: 0; }
.od-tl-item {
  display: flex; gap: 10px; padding: 8px 0 8px 2px;
  border-bottom: 1px solid var(--ds-line2);
}
.od-tl-dot {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; margin-top: 4px;
}
.od-tl-head { display: flex; gap: 10px; align-items: baseline; }
.od-tl-what { font-size: 12.5px; color: var(--ds-ink); flex: 1; min-width: 0; }
.od-tl-when { font-size: 11px; color: var(--ds-muted2); flex-shrink: 0; }
.od-tl-detail {
  font-size: 11.5px; color: var(--ds-muted); margin-top: 2px; overflow-wrap: anywhere;
}



.od-filter-x {
  border: 1px solid var(--ds-line); background: var(--ds-surface);
  
  border-radius: 6px; cursor: pointer; padding: 0 6px; align-self: stretch;
  color: var(--ds-muted); display: inline-flex; align-items: center;
}
.od-filter-x:hover { background: var(--ds-line2); color: var(--ds-bad); }
.ds-filter { display: inline-flex; align-items: stretch; gap: 4px; }


.ds-content.is-loading .ds-listbox,
.ds-content.is-loading .od-facts {
  opacity: .45; filter: blur(1.2px); pointer-events: none;
  transition: opacity .12s ease, filter .12s ease;
}
@media (prefers-reduced-motion: reduce) {
  .ds-content.is-loading .ds-listbox,
  .ds-content.is-loading .od-facts { filter: none; opacity: .5; transition: none; }
}


.od-section-head {
  display: flex; align-items: baseline; gap: 12px; flex-shrink: 0;
}


.ds-nav-item svg,
.od-appbar-btn svg,
.od-icon-btn svg,
.ds-table svg {
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.ds-nav-item.active svg { stroke-width: 2; }


.ds-table .od-icon-btn svg { stroke-width: 1.4; }


.ds-nav-item { font-size: 14px; padding: 8px 10px; }
.ds-nav-item svg { width: 20px; height: 20px; }
.od-nav-group { font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 600; }

.ds-table th {
  font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0;
  color: var(--ds-ink2); padding: 10px 10px;
}
.ds-table td { font-size: 13px; padding: 8px 10px; }
.ds-sort-header { font-size: 12px; font-weight: 600; }


.od-ficon {
  width: 22px; height: 22px; border-radius: 4px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
}
.od-ficon svg { stroke-width: 1.7; }


.od-ficon--faktura  { background: #0F6CBD; }   
.od-ficon--raport   { background: #107C41; }   
.od-ficon--umowa    { background: #7719AA; }   
.od-ficon--bank     { background: #0E7C7B; }   
.od-ficon--podatki  { background: #C43E1C; }   
.od-ficon--koszty   { background: #CA5010; }   
.od-ficon--rejestr  { background: #5C2E91; }   
.od-ficon--inne     { background: #8A8886; }   


.ds-filter-btn.is-active {
  border-color: var(--ds-line);
  background: var(--ds-surface);
  font-weight: 600;
}
.ds-filter-btn.is-active:hover { border-color: var(--ds-ink2); }


.od-i {
  width: 20px; height: 20px; flex-shrink: 0;
  fill: currentColor; stroke: none;
}
.od-i--sm { width: 16px; height: 16px; }
.ds-nav-item .od-i { width: 20px; height: 20px; }
.od-appbar-btn .od-i { width: 20px; height: 20px; }




.od-i--folder { color: #FFB900; }


.od-th { position: relative; display: inline-flex; }
.od-th-btn {
  display: inline-flex; align-items: center; gap: 5px;
  border: 0; background: none; cursor: pointer; padding: 2px 6px; margin: -2px -6px;
  border-radius: 4px; font: inherit; color: inherit;
}
.od-th-btn:hover { background: var(--ds-line2); }
.od-th-btn.is-sorted { color: var(--ds-ink); }
.od-th-chev { opacity: 0; flex-shrink: 0; }
.od-th-btn:hover .od-th-chev,
.od-th-btn.is-sorted .od-th-chev { opacity: .6; }
th[style*="right"] .od-th { justify-content: flex-end; width: 100%; }

.od-colmenu {
  position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; min-width: 208px;
  background: var(--ds-surface); border: 1px solid var(--ds-line); border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.16); padding: 4px; text-align: left;
}
.od-colmenu[hidden] { display: none; }

th[style*="right"] .od-colmenu { left: auto; right: 0; }
.od-colmenu-item {
  display: block; width: 100%; text-align: left; border: 0; background: none; cursor: pointer;
  padding: 7px 10px; border-radius: 4px; font: inherit; font-size: 13px;
  font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ds-ink);
}
.od-colmenu-item:hover { background: var(--ds-line2); }
.od-colmenu-item.is-on { font-weight: 600; color: var(--od-brand); }
.od-colmenu-sep { height: 1px; background: var(--ds-line); margin: 4px 6px; }



.od-lang { padding: 10px; }
.od-lang-opts { display: flex; gap: 4px; }
.od-lang-opt {
  flex: 1; border: 1px solid var(--stroke); background: var(--surface); cursor: pointer;
  padding: 5px 4px; border-radius: var(--radius-sm); font: inherit; font-size: 11.5px;
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.od-lang-opt:hover { background: var(--surface-hover); color: var(--text-primary); }
.od-lang-opt.is-on {
  border-color: var(--accent); color: var(--accent-hover); font-weight: 600;
  background: var(--surface-selected);
}

.od-flag {
  width: 16px; height: 11px; flex-shrink: 0; display: block; border-radius: 2px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.16);
}


.ds-nav-item.active {
  background: none;
  box-shadow: none;
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
}
.ds-nav-item.active::before {
  content: ""; position: absolute; left: 0; top: 20%;
  width: 3px; height: 60%; border-radius: 0;
  background: var(--accent);
}
.ds-nav-item.active:hover { background: var(--surface-hover); }
.ds-nav-item.active .od-i { color: var(--accent); }
.ds-nav-item { height: var(--navitem-h); padding: 0 16px; margin: 0 8px; gap: 12px; }
.ds-nav-item .od-i { width: 18px; height: 18px; }


.od-nav-count {
  margin-left: auto; font-family: var(--font-num); font-size: 12px;
  color: var(--text-tertiary); font-variant-numeric: tabular-nums;
}
.od-nav-count[hidden] { display: none; }
body.ds-sidebar-collapsed .od-nav-count { display: none; }



.od-domains { flex-wrap: wrap; }
.od-domain {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 10px 0 6px;
  border: 1px solid var(--stroke); border-radius: var(--radius-pill);
  background: var(--surface); cursor: pointer;
  color: var(--text-secondary); font-family: var(--font-ui); font-size: 12.5px;
}
.od-domain:hover { background: var(--surface-hover); }
.od-domain.is-on {
  border-color: var(--accent); background: var(--surface-selected);
  color: var(--text-primary); font-weight: 600;
}
.od-domain .od-ficon { width: 20px; height: 20px; border-radius: var(--radius-sm); }
.od-domain-n { font-family: var(--font-num); font-variant-numeric: tabular-nums; }


.od-callout { display: flex; align-items: center; gap: 10px; }


.od-name-cell { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }


.od-name {
  border: 0; background: none; padding: 0; cursor: pointer;
  font: inherit; color: inherit; text-align: left;
  max-width: min(300px, 15vw); text-decoration: none;
}
.od-name:hover, .od-name:focus-visible { text-decoration: underline; color: var(--accent); }


.od-rowacts { display: inline-flex; gap: 2px; flex-shrink: 0; visibility: hidden; }
td:hover > .od-name-cell > .od-rowacts,
.od-name-cell:focus-within .od-rowacts { visibility: visible; }


.od-domain-clear { padding: 0 8px; color: var(--text-tertiary); }
.od-domain-clear:hover { color: var(--ds-bad); border-color: var(--ds-bad); }


.ds-table td { white-space: nowrap; }


.ds-table td:not(:has(.od-name-cell)) {
  max-width: min(380px, 17vw); overflow: hidden; text-overflow: ellipsis;
}


.od-ficon {
  font-family: var(--font-ui); font-weight: 600; letter-spacing: -0.02em;
  line-height: 1; user-select: none;
}
.od-ficon--n1, .od-ficon--n2 { font-size: 10px; }
.od-ficon--n3 { font-size: 8.5px; }
.od-ficon--n4 { font-size: 7.5px; letter-spacing: -0.04em; }


.od-colmenu-opts { max-height: 300px; overflow-y: auto; padding: 2px 0; }
.od-colmenu-opt { display: flex; align-items: center; gap: 8px; width: 100%; }
.od-colmenu-opt .ds-filter-option-label { flex: 1; min-width: 0; }
.od-colmenu-clear { color: var(--ds-bad); }


.od-th-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 15px; height: 15px; padding: 0 4px; margin-left: 4px;
  border-radius: var(--radius-pill); background: var(--accent); color: #fff;
  font-family: var(--font-num); font-size: 10px; font-weight: 600;
}


.ds-content { background: var(--surface); }


.ds-sidebar { background: var(--app-canvas); border-right: 0; }
.ds-subheader { background: var(--surface); }


.ds-subheader[hidden] { display: none !important; }


.od-i { fill: none; stroke: currentColor; }


.od-i--dir { transition: transform 120ms ease; }
.od-i--up  { transform: rotate(180deg); }
.od-i--chev { transition: transform 120ms ease; }
.od-i--chev.is-open { transform: rotate(90deg); }


.od-dtile {
  width: 26px; height: 26px; border-radius: var(--radius-sm); flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--dt-bg, var(--surface-alt)); color: var(--dt-fg, var(--text-secondary));
}
.od-dtile--faktury        { --dt-bg: #E8EDF7; --dt-fg: #2E5AA8; }
.od-dtile--finanzen       { --dt-bg: #E6F2EC; --dt-fg: #1E7A4C; }
.od-dtile--fixkosten      { --dt-bg: #F7EFDD; --dt-fg: #C08A2E; }
.od-dtile--steuern        { --dt-bg: #F7E7E5; --dt-fg: #A8322A; }
.od-dtile--firmenstruktur { --dt-bg: #EFEAFA; --dt-fg: #6B4FBF; }
.od-dtile--kredite        { --dt-bg: #E3F1F5; --dt-fg: #00789C; }
.od-dtile--cashflow       { --dt-bg: #F4E8F4; --dt-fg: #A33EA1; }
.od-dtile--creditreform   { --dt-bg: #FAE8F1; --dt-fg: #C43E7F; }

.od-dtile--photo          { --dt-bg: #EDF2E0; --dt-fg: #5A7B26; }

.od-dtile--brak { --dt-bg: var(--surface-alt); --dt-fg: var(--text-secondary); }

.od-dicon--faktury        { color: #2E5AA8; }
.od-dicon--finanzen       { color: #1E7A4C; }
.od-dicon--fixkosten      { color: #C08A2E; }
.od-dicon--steuern        { color: #A8322A; }
.od-dicon--firmenstruktur { color: #6B4FBF; }
.od-dicon--kredite        { color: #00789C; }
.od-dicon--cashflow       { color: #A33EA1; }
.od-dicon--creditreform   { color: #C43E7F; }


.od-domain { padding: 0 6px; }
.od-domain.is-on { border-color: var(--accent); background: var(--surface-selected); }




.ds-sidebar { background: #FCFCFC; border-right: 0; }
.od-nav-sep { display: none; }


.ds-nav-item, .od-nav-group {
  font-family: 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont,
               Roboto, 'Helvetica Neue', sans-serif;
}
.ds-nav-item { color: #424242; }
.ds-nav-item .od-i { color: #424242; }
.ds-nav-item.active { color: #424242; }
.ds-nav-item.active .od-i { color: var(--accent); }



.ds-table th, .od-th-btn, .od-th-text {
  font-size: 14px; line-height: 19px; text-transform: none; letter-spacing: 0;
  font-weight: 600; color: var(--text-primary);
}




.ds-listbox {
  background: var(--surface) !important;
  border: 1px solid var(--stroke) !important;
  border-radius: 8px !important;
}


.ds-listbox > div { border-radius: 8px; }
.ds-table th:first-child, .ds-table td:first-child { padding-left: 24px; }
.ds-table th:last-child,  .ds-table td:last-child  { padding-right: 24px; }
.ds-table td { border-bottom: 1px solid var(--divider); }


.ds-table th {
  background: transparent;
  height: 48px; padding-top: 0; padding-bottom: 0;
  border-bottom: 1px solid var(--divider);
  position: sticky; top: 0; z-index: 2;
}
.ds-table thead { background: var(--surface); }


.od-th {
  display: inline-flex; align-items: center; gap: 0;
  height: 32px; border-radius: 4px; margin-left: -8px;
  position: relative;
}
.od-th:hover, .od-th:focus-within { background: var(--surface-alt); }
.od-th-btn {
  display: flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 4px 0 8px;
  background: none; border: 0; cursor: pointer;
  font: 600 14px/1.4 var(--font-ui);
  color: var(--text-primary);
}
.od-th-chevbtn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px; padding: 0 8px 0 2px;
  background: none; border: 0; cursor: pointer; color: var(--text-secondary);
}
.od-th-btn:focus-visible, .od-th-chevbtn:focus-visible {
  outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 4px;
}


.od-th-text { color: var(--text-primary); font-weight: 600; }
.od-th.is-sorted .od-th-text { color: var(--text-primary); font-weight: 600; }


.od-th-dir { font-size: 15px; line-height: 1; color: var(--text-primary); }
.od-th-chev { width: 14px; height: 14px; color: var(--text-secondary); opacity: 1; }
.od-th:hover .od-th-chev { color: var(--text-primary); }


.od-th.is-filtered .od-th-count { background: var(--accent); }


.ds-table td { color: var(--text-secondary); }
.ds-table td .od-name { color: var(--text-primary); }




.od-appbar, .ds-content, .ds-subheader { background: #FCFCFC; }


:root { --ds-sidebar-w: 230px; }


:root { --grid-line: #EBEBEB; }
.ds-listbox { border-color: var(--grid-line) !important; }
.ds-table th { border-bottom-color: var(--grid-line); }


.ds-table td { border-bottom: 0; }
.ds-table tbody tr { position: relative; }
.ds-table tbody tr::after {
  content: ""; position: absolute; left: 30px; right: 30px; bottom: 0;
  height: 1px; background: var(--grid-line); pointer-events: none;
}
.ds-table tbody tr:last-child::after { display: none; }


.od-domain {
  width: 32px; height: 32px; padding: 0; border-radius: 50%;
  background: #F3F2F1; border: 1px solid transparent;
  justify-content: center;
}
.od-domain:hover { background: #EAE8E6; }
.od-domain.is-on { border-color: var(--accent); background: var(--surface-selected); }
.od-domain .od-dtile { background: none; width: auto; height: auto; }
.od-domain-clear { width: 32px; height: 32px; }


.ds-subheader-title { font-size: 20px; font-weight: 600; color: #242424; line-height: 1.3; }
.ds-subheader-meta:empty { display: none; }




.od-nav-group {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}


.od-domain { width: 42px; height: 36px; }
.od-domain .od-i { width: 20px; height: 20px; }
.od-domain.is-on { border-width: 2px; }
.od-domain-clear { width: 42px; height: 36px; }


.od-name-cell .od-dtile { width: 26px; height: 26px; }
.od-name-cell .od-dtile .od-i { width: 16px; height: 16px; }


#browse-bars[hidden] { display: none !important; }




.ds-chips-label { font-weight: 700; color: var(--text-secondary); }


.ds-subheader { border-bottom: 0; }


.ds-chips { margin-bottom: 14px; }
#browse-bars { padding-bottom: 4px; }


.ds-side-head { display: flex; justify-content: flex-end; padding: 2px 2px 6px; }
.ds-side-toggle {
  width: 28px; height: 28px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--grid-line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text-secondary); cursor: pointer;
}
.ds-side-toggle:hover { background: var(--surface-hover); color: var(--text-primary); }
body.ds-sidebar-collapsed .ds-side-toggle { visibility: visible; }
body.ds-sidebar-collapsed .ds-side-head { justify-content: center; padding-right: 0; }


body.ds-sidebar-collapsed .ds-nav-item { padding-left: 14px; justify-content: flex-start; }
body.ds-sidebar-collapsed .ds-nav-item.active::before { left: 0; }


.od-domain-clear {
  width: 56px; height: 36px; border-radius: 18px;
  font: 600 12.5px/1 var(--font-ui); color: var(--text-secondary);
  gap: 0; padding: 0;
}
.od-domain-clear:hover { color: var(--ds-bad); border-color: var(--ds-bad); background: var(--surface-hover); }


.od-name-cell { width: 100%; }
.od-name-cell .od-rowacts { margin-left: auto; }




.od-nav-group--head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
body.ds-sidebar-collapsed .od-nav-group--head { display: flex; justify-content: center; }
body.ds-sidebar-collapsed .od-nav-group--head .ds-side-label { display: none; }
.ds-side-head { display: none; }


:root { --ds-sidebar-w-collapsed: 68px; }
body.ds-sidebar-collapsed .ds-nav-item {
  padding: 0 8px; justify-content: center;
}
body.ds-sidebar-collapsed .ds-nav-item.active::before { left: 0; }


.od-subrow[hidden] { display: none !important; }
.od-subrow td { height: 36px; color: var(--text-secondary); }
.od-subname { padding-left: 66px !important; }


.od-dicon, .od-dtile { flex-shrink: 0; }
.od-dicon { width: 20px; height: 20px; }


.ds-table td:has(.od-area-toggle) { max-width: 420px; }


.od-nav-group { font-size: 13px; font-weight: 700; }


.od-dtile--bwa               { --dt-bg: #E6F2EC; --dt-fg: #1E7A4C; }
.od-dtile--susa              { --dt-bg: #E6F2EC; --dt-fg: #1E7A4C; }
.od-dtile--opos              { --dt-bg: #FBEDE3; --dt-fg: #BC4B09; }
.od-dtile--jahresabschluss   { --dt-bg: #E3F1F5; --dt-fg: #00789C; }
.od-dtile--kontoauszug       { --dt-bg: #E8EDF7; --dt-fg: #2E5AA8; }
.od-dtile--unassigned        { --dt-bg: #F0EBF6; --dt-fg: #7A5C99; }

.od-dicon--bwa               { color: #1E7A4C; }
.od-dicon--susa              { color: #1E7A4C; }
.od-dicon--opos              { color: #BC4B09; }
.od-dicon--jahresabschluss   { color: #00789C; }
.od-dicon--kontoauszug       { color: #2E5AA8; }
.od-dicon--photo             { color: #5A7B26; }
.od-dicon--unassigned        { color: #7A5C99; }


.od-icon-btn { border: 0; background: none; appearance: none; }


.od-subrow { background: var(--surface); }
.od-subrow td { color: var(--text-secondary); background: var(--surface); }
.od-subrow:hover td { background: var(--surface-alt); }


.ds-side-toggle { visibility: visible; color: var(--text-tertiary); border-color: transparent; }
.ds-sidebar:hover .ds-side-toggle { border-color: var(--grid-line); color: var(--text-secondary); }
.ds-side-toggle:hover { background: var(--surface-hover); color: var(--text-primary); }


.od-hbar {
  position: sticky; top: 48px; z-index: 3;
  overflow-x: auto; overflow-y: hidden;
  height: 14px; background: var(--surface);
  border-bottom: 1px solid var(--grid-line);
}
.od-hbar > div { height: 1px; }
.od-hbar[hidden] { display: none !important; }
.od-tablewrap { overflow-x: auto; max-width: 100%; }


.od-hbar::-webkit-scrollbar { height: 12px; }
.od-hbar::-webkit-scrollbar-thumb {
  background: var(--stroke-control); border-radius: 6px;
  border: 3px solid var(--surface);
}
.od-hbar::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }
.od-hbar::-webkit-scrollbar-track { background: var(--surface); }
.od-hbar {  }


.od-sec { margin-bottom: 24px; }
.od-sec:last-child { margin-bottom: 0; }
.od-sec-h {
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-tertiary); margin-bottom: 10px;
}
.od-fld { margin-bottom: 12px; min-width: 0; }
.od-fld-k { font-size: 12px; line-height: 16px; color: var(--text-secondary); margin-bottom: 2px; }
.od-fld-v { font-size: 14px; line-height: 20px; color: var(--text-primary); overflow-wrap: anywhere; }
.od-fld-path { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0; }
.od-fld-path .ds-truncate { max-width: 240px; }


.ds-drawer-header { display: flex; align-items: flex-start; gap: 12px; }
.ds-drawer-header .od-dtile { width: 32px; height: 32px; flex-shrink: 0; }
.ds-drawer-header .od-dtile .od-i { width: 20px; height: 20px; }
.ds-drawer-title { font-size: 16px; line-height: 22px; font-weight: 600; color: var(--text-primary); }
.ds-drawer-label { font-size: 12px; line-height: 16px; color: var(--text-secondary); margin-top: 2px; }


.od-why {
  background: var(--warning-bg); border-left: 3px solid var(--warning-fg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 10px 14px; margin-bottom: 14px;
}
.od-why-body { font-size: 13px; line-height: 19px; color: var(--text-primary); overflow-wrap: anywhere; }


.od-hbar {
  position: sticky; bottom: 0; top: auto; z-index: 3;
  overflow-x: auto; overflow-y: hidden;
  height: 12px; background: var(--surface);
  border-bottom: 0; border-top: 1px solid var(--grid-line);
}
.od-hbar::-webkit-scrollbar { height: 10px; }
.od-hbar::-webkit-scrollbar-thumb {
  background: var(--stroke); border-radius: 5px; border: 2px solid var(--surface);
}
.od-hbar::-webkit-scrollbar-thumb:hover { background: var(--stroke-control); }


.od-detail-shell { padding: 16px; }
.od-detail-card {
  width: min(700px, 92vw);
  background: var(--surface);
  border: 1px solid var(--stroke) !important;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .16);
  overflow: hidden;
}
.od-detail-card .ds-drawer-header { border-radius: 10px 10px 0 0; }


.ds-drawer-label {
  font-size: 12px; line-height: 16px; font-weight: 600;
  color: var(--text-secondary); text-transform: none; letter-spacing: 0;
}


.od-sec-h {
  font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: uppercase;
  color: var(--text-primary); margin-bottom: 12px;
}
.od-sec > .od-fld,
.od-sec-grid { }
.od-sec {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 20px; margin-bottom: 24px;
}
.od-sec .od-sec-h { grid-column: 1 / -1; }
.od-fld-k { font-size: 14px; line-height: 20px; font-weight: 600; color: #424242; margin-bottom: 2px; }
.od-fld-v { font-size: 14px; line-height: 20px; color: var(--text-primary); }


.od-fld:has(.od-fld-path) { grid-column: 1 / -1; }
.od-fld:has(.od-fld-path) .ds-truncate { max-width: 100%; }


.od-why--rozwiazane {
  background: var(--surface-alt); border-left-color: var(--stroke-control);
}
.od-why-note { font-size: 12px; line-height: 17px; color: var(--ok, #1B6E3C); margin-top: 6px; }


.od-composer-box { min-height: 96px; resize: vertical; }



main { position: relative; }
#drawer-host:not(:empty) {
  position: absolute; right: 0; bottom: 0; width: min(400px, 34vw);
  padding: 0 16px 16px 0; box-sizing: border-box; z-index: 40;
}
body.ds-ma-panel .ds-page { padding-right: min(400px, 34vw); }

.ds-page { min-width: 0; }
.od-detail-shell { padding: 0; height: 100%; display: flex; }
.od-detail-card {
  width: 100%; max-height: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .07);
}

.od-detail-card .ds-drawer-body { flex: 1 1 auto; min-height: 0; }


@media (max-width: 1100px) {
  #drawer-host:not(:empty) {
    position: absolute; inset: 0; width: auto; padding: 16px; z-index: 200;
    background: rgba(10, 10, 10, .18);
  }
  .od-detail-shell { justify-content: flex-end; padding-top: 0 !important; }
  .od-detail-card { width: min(560px, 92vw); box-shadow: 0 8px 28px rgba(0, 0, 0, .16); }
}


.od-fld-link {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0;
  color: var(--accent); text-decoration: none;
}
.od-fld-link:hover { text-decoration: underline; }
.od-fld-link .ds-truncate { max-width: 100%; }


.od-path-link { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.od-path-link .ds-truncate { min-width: 0; }
.od-path-link a { display: inline-flex; align-items: center; flex: 0 0 auto; color: var(--accent); }
.od-path-link a .od-i { opacity: .75; }
.od-path-link a:hover .od-i { opacity: 1; }


.od-hbar::-webkit-scrollbar-thumb {
  background: #BBD6EF; border-radius: 5px; border: 2px solid var(--surface);
}
.od-hbar::-webkit-scrollbar-thumb:hover { background: #8FBCE4; }




.ds-content.od-fill { overflow: hidden; flex: 1 1 auto; }
.od-fill .ds-listbox {
  flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden;
}
.od-fill .od-tablewrap { flex: 1 1 auto; min-height: 0; overflow: auto; }

.od-fill .od-tablewrap { overflow-anchor: none; }


.od-row-fresh td { animation: od-row-fresh 2.4s ease-out; }
@keyframes od-row-fresh { from { background-color: var(--od-brand-soft); } }
@media (prefers-reduced-motion: reduce) { .od-row-fresh td { animation: none; } }


.od-fill #zrodlo-tresc {
  flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 14px;
}

.od-fill .od-hbar { display: none !important; }

.od-fill .ds-table th { background: var(--surface); }


.od-tablewrap::-webkit-scrollbar { width: 9px; height: 9px; }
.od-tablewrap::-webkit-scrollbar-thumb { background: #707070; border-radius: 5px; }
.od-tablewrap::-webkit-scrollbar-thumb:hover { background: #545454; }
.od-tablewrap::-webkit-scrollbar-track { background: transparent; }
.od-tablewrap::-webkit-scrollbar-corner { background: transparent; }



.od-hbar { height: 9px; }
.od-hbar::-webkit-scrollbar { height: 9px; }
.od-hbar::-webkit-scrollbar-thumb { background: #707070; border-radius: 5px; border: 0; }
.od-hbar::-webkit-scrollbar-thumb:hover { background: #545454; }

.ds-content::-webkit-scrollbar { width: 9px; height: 9px; }
.ds-content::-webkit-scrollbar-thumb { background: #707070; border-radius: 5px; }
.ds-content::-webkit-scrollbar-track { background: transparent; }



#drawer-host:not(:empty) { width: min(560px, 48vw); }
body.ds-ma-panel .ds-page { padding-right: min(560px, 48vw); }


@media (max-width: 1100px) {
  #drawer-host:not(:empty) { width: auto; }
  body.ds-ma-panel .ds-page { padding-right: 0; }
}


.od-fld-link .od-i { flex: 0 0 auto; opacity: .75; }
.od-fld-link:hover .od-i { opacity: 1; }


.od-fill .ds-table th:last-child,
.od-fill .ds-table td:last-child { padding-right: 26px; }


.od-tablewrap::-webkit-scrollbar { width: 5px; height: 5px; }
.od-tablewrap::-webkit-scrollbar-thumb { background: #707070; border-radius: 3px; }
.od-hbar { height: 5px; }
.od-hbar::-webkit-scrollbar { height: 5px; }
.od-hbar::-webkit-scrollbar-thumb { background: #707070; border-radius: 3px; border: 0; }


.od-tabs { gap: 6px; }
.od-tab { padding-left: 21px; padding-right: 21px; }


.od-cmdbar {
  display: flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 8px 12px; box-sizing: border-box;
  background: var(--surface); border: 1px solid var(--ds-line); border-radius: 10px;
  
  box-shadow: 0 2px 10px rgba(0,0,0,.10), 0 0 0 1px rgba(0,0,0,.02);
}
.od-cmdbar-spacer { flex: 1 1 auto; }
.od-cmd {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; background: none; cursor: pointer; font: inherit; font-size: 13px;
  color: var(--ds-ink); padding: 7px 12px; border-radius: 6px;
}
.od-cmd:hover { background: var(--ds-line2); }
.od-cmd[disabled] { opacity: .45; cursor: default; }
.od-cmd .od-i { color: var(--od-brand); }
.od-cmd--on { background: var(--od-brand-soft); color: var(--od-brand); }

.od-selchip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--ds-line); background: var(--surface); border-radius: 6px;
  padding: 6px 11px; font: inherit; font-size: 13px; color: var(--ds-ink); cursor: pointer;
}
.od-selchip:hover { background: var(--ds-line2); }
.od-selchip .od-i { color: var(--ds-muted); }
.od-cmdbar-rozwiniecie { margin-top: 10px; }


.od-fill .ds-listbox { position: relative; }
.od-fill .ds-listbox.od-przyciete::after {
  content: ''; position: absolute; pointer-events: none;
  top: 1px; bottom: 6px;      
  right: 5px; width: 16px;    
  background: linear-gradient(to right, rgba(255,255,255,0), var(--surface) 65%);
}



.od-dtile--settlement  { --dt-bg: #E8EDF7; --dt-fg: #2E5AA8; }
.od-dtile--order-flow  { --dt-bg: #E3F1F5; --dt-fg: #00789C; }
.od-dtile--contracts   { --dt-bg: #EFEAFA; --dt-fg: #6B4FBF; }


.od-link {
  border: 0; background: none; padding: 0; font: inherit; cursor: pointer;
  color: var(--accent); text-align: left;
}
.od-link:hover { text-decoration: underline; }


.od-slot { display: contents; }


.od-subgroup > td { background: var(--surface-alt); }
.od-subgroup .od-subname { padding-left: 34px; }
.od-subgroup-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.od-subgroup + .od-subrow .od-subname,
.od-subgroup ~ .od-subrow:not(.od-subgroup) .od-subname { padding-left: 62px; }


.od-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px; margin: 2px 0 4px;
}
.od-stat {
  display: flex; flex-direction: column; gap: 2px; text-align: left;
  padding: 12px 14px; border: 1px solid var(--ds-line); border-radius: 8px;
  background: var(--surface); cursor: pointer; font: inherit;
}
.od-stat:hover:not([disabled]) { border-color: var(--stroke-control); box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.od-stat[disabled] { cursor: default; }
.od-stat-value { font-size: 22px; font-weight: 600; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.od-stat-label { font-size: 12.5px; font-weight: 600; color: var(--text-secondary); }
.od-stat-note  { font-size: 11.5px; color: var(--text-tertiary); }

.od-stat--ok  .od-stat-value { color: #1E7A4C; }
.od-stat--bad .od-stat-value { color: var(--ds-bad); }
.od-stat--muted .od-stat-value { color: var(--text-secondary); }



.ds-sidebar .ds-side-toggle { visibility: hidden; }
.ds-sidebar:hover .ds-side-toggle,
.ds-sidebar .ds-side-toggle:focus-visible,
body.ds-sidebar-collapsed .ds-sidebar .ds-side-toggle { visibility: visible; }


.od-subrow:not(.od-subgroup):hover > td { background: var(--surface-hover); }
.od-subrow .od-rowacts { visibility: hidden; display: inline-flex; gap: 2px; margin-left: 8px; }
.od-subrow:hover .od-rowacts { visibility: visible; }
.od-subname { white-space: nowrap; }
.od-subname-cell { display: inline-flex; align-items: center; min-width: 0; }


.ds-row .od-rowacts { visibility: hidden; display: inline-flex; gap: 2px; margin-left: 6px; }
.ds-row:hover .od-rowacts { visibility: visible; }


.od-rowname {
  border: 0; background: none; padding: 0; font: inherit; cursor: pointer;
  color: var(--text-primary); text-align: left; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.od-rowname:hover { text-decoration: underline; }
.ds-row .od-rowname { font-weight: 600; }


.od-subname-cell { display: flex; align-items: center; justify-content: space-between;
                   gap: 8px; width: 100%; }
.od-subname-cell > .od-rowname { min-width: 0; }


.ds-content::-webkit-scrollbar { width: 5px; height: 5px; }
.ds-content::-webkit-scrollbar-thumb { background: #707070; border-radius: 3px; }
.od-hbar { height: 5px; }
.od-hbar::-webkit-scrollbar { height: 5px; }
.od-hbar::-webkit-scrollbar-thumb { background: #707070; border-radius: 3px; border: 0; }


.ds-row .od-rowacts,
.od-subrow .od-rowacts { margin-left: auto; }


.od-arearow-cell {
  display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0;
}
.od-arearow-cell .od-rowname {
  flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.od-detail-bar {
  display: flex; align-items: center; gap: 12px; flex: 0 0 auto;
  padding-bottom: 12px;
}
.od-detail-title { display: inline-flex; align-items: baseline; gap: 8px; min-width: 0; }
.od-detail-title strong { font-size: 14px; color: var(--ds-ink); }
.od-detail-title .ds-mono { font-size: 11px; }




.od-new-btn {
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
  align-self: flex-start; width: fit-content;
  margin: 12px 10px 6px; height: 36px; padding: 0 16px 0 11px;
  background: var(--od-brand); color: #fff; border: 0; border-radius: 18px;
  font: inherit; font-weight: 600; font-size: 14px; cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
}
.od-new-btn:hover  { background: var(--od-brand-hover); }
.od-new-btn:active { background: var(--od-brand-press); }
.od-new-btn .od-i  { width: 18px; height: 18px; }

body.ds-sidebar-collapsed .od-new-btn { justify-content: center; width: 36px; padding: 0; margin: 12px 8px 6px; }


.od-account-alert {
  margin: 2px 10px 6px; padding: 6px 10px;
  background: var(--ds-bad-bg); color: var(--ds-ink);
  border: 1px solid var(--ds-bad); border-radius: 8px;
  font-size: 12px; line-height: 1.35;
}
.od-account-alert[hidden] { display: none; }
.od-account-alert .ds-side-label { white-space: normal; }
.od-account-alert-head { display: flex; align-items: center; gap: 6px; color: var(--ds-bad); }
.od-account-alert-head .od-i { width: 16px; height: 16px; flex: 0 0 auto; }
.od-account-alert-head strong { font-size: 12.5px; font-weight: 600; }
.od-account-alert-body { margin-top: 2px; padding-left: 22px; }
.od-account-alert-body a { font-weight: 600; color: var(--ds-bad); white-space: nowrap; }

body.ds-sidebar-collapsed .od-account-alert { margin: 4px 8px 8px; padding: 8px 0; }
body.ds-sidebar-collapsed .od-account-alert-head { justify-content: center; }

@media (max-width: 900px) {
  .od-account-alert { margin: 4px 8px 8px; padding: 8px 0; }
  .od-account-alert .ds-side-label { display: none; }
  .od-account-alert-head { justify-content: center; }
}


.od-dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; min-height: 232px;
  padding: 22px; border: 1.5px dashed var(--ds-line); border-radius: 10px;
  background: var(--ds-canvas); cursor: pointer; color: var(--ds-ink2);
}

.od-dropzone-kinds { font-size: 13.5px; color: var(--ds-ink2); }
.od-dropzone:hover, .od-dropzone.is-drag { border-color: var(--od-brand); background: var(--od-brand-soft); }
.od-dropzone strong { color: var(--od-brand); }

.od-upload-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border: 1px solid var(--ds-line); border-radius: 6px;
  background: var(--ds-surface); margin-top: 6px;
}
.od-upload-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }

.od-select {
  width: 100%; padding: 8px 10px; font: inherit; font-size: 13px;
  border: 1px solid var(--ds-line); border-radius: 6px; background: var(--ds-surface); color: var(--ds-ink);
}
.od-select:focus { border-color: var(--od-brand); outline: none; }

.od-result { padding: 9px 11px; border-radius: 6px; font-size: 12.5px; border: 1px solid var(--ds-line); }
.od-result--ok   { background: var(--ds-ok-bg);   color: var(--ds-ok-soft); border-color: var(--ds-ok); }
.od-result--bad  { background: var(--ds-bad-bg);  color: var(--ds-bad);     border-color: var(--ds-bad); }
.od-result--warn { background: var(--ds-warn-bg); color: var(--ds-warn);    border-color: var(--ds-warn); }


.od-set-sep { height: 1px; background: var(--ds-line); margin: 20px 0 18px; }



.od-source-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px;
}
.od-source-card {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 9px 12px; border: 1px solid var(--ds-line); border-radius: 10px; background: var(--ds-surface);
}
.od-source-card .ds-btn { flex-shrink: 0; }
.od-source-body { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.od-source-ic {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--od-brand-soft); color: var(--od-brand);
}
.od-source-ic .od-i { width: 16px; height: 16px; }
.od-source-name {
  max-width: 100%; font-size: 13.5px; font-weight: 600; color: var(--ds-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}


.od-source-card.is-off { background: var(--ds-bg); border-style: dashed; }
.od-source-card.is-off .od-source-ic { filter: grayscale(1); opacity: .55; }
.od-source-card.is-off .od-source-name { color: var(--ds-muted); }
.od-source-card.is-on .od-source-ic { background: var(--ds-surface); }


.od-wizard-dots { display: flex; gap: 6px; margin-bottom: 14px; }
.od-wizard-dot { width: 22px; height: 4px; border-radius: 2px; background: var(--ds-line); }
.od-wizard-dot.is-on   { background: var(--od-brand); }
.od-wizard-dot.is-done { background: var(--od-brand-soft2); }




.gd-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.gd-brand {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ds-bg); border: 1px solid var(--ds-line);
}
.gd-title { font-size: 15px; font-weight: 600; letter-spacing: -0.2px; color: var(--ds-ink); }


.gd-prog { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin: 2px 0 18px; }
.gd-prog-seg { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.gd-prog-track { height: 4px; border-radius: 99px; background: var(--ds-line); position: relative; overflow: hidden; }
.gd-prog-track::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 99px;
  background: var(--od-brand); transition: width 420ms cubic-bezier(.4, 0, .2, 1);
}
.gd-prog-seg.is-done .gd-prog-track::after,
.gd-prog-seg.is-on   .gd-prog-track::after { width: 100%; }
.gd-prog-seg.is-done .gd-prog-track::after { background: var(--ds-ok); }
.gd-prog-seg.is-on.is-busy .gd-prog-track::after { animation: gd-puls 1.4s ease-in-out infinite; }
.gd-prog-lbl {
  font-size: 10.5px; letter-spacing: .5px; text-transform: uppercase; color: var(--ds-muted2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gd-prog-seg.is-done .gd-prog-lbl { color: var(--ds-ink2); }
.gd-prog-seg.is-on   .gd-prog-lbl { color: var(--ds-ink); font-weight: 600; }
@keyframes gd-puls { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }


.ds-modal--gd { width: 820px; max-width: calc(100vw - 40px); }

.gd-body { min-height: 0; max-height: calc(100vh - 200px); overflow-y: auto; overscroll-behavior: contain; }
.gd-cta { padding: 9px 16px; font-size: 13px; }


.gd-rys { margin: 0; display: flex; flex-direction: column; gap: 7px; align-items: center; }
.gd-rys svg { width: 100%; max-width: 440px; height: auto; }
.gd-rys figcaption { font-size: 11.5px; color: var(--ds-muted); text-align: center; }
.gd-rys-okno { fill: var(--ds-surface); stroke: var(--ds-line); stroke-width: 1.5; }
.gd-rys-pasek { fill: var(--ds-bg); }
.gd-rys-linia { fill: var(--ds-muted2); }
.gd-rys-linia--slaba { fill: var(--ds-line); }
.gd-rys-marka { fill: var(--ds-ink2); font-size: 11px; font-weight: 600; font-family: inherit; }
.gd-rys-chip { fill: none; stroke: var(--ds-line); stroke-width: 1.2; }
.gd-rys-chip-txt { fill: var(--ds-muted); font-size: 9px; font-family: inherit; letter-spacing: .4px; }
.gd-rys-strzalka { fill: none; stroke: var(--ds-muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gd-rys-naglowek { fill: var(--ds-ink); font-size: 11px; font-weight: 500; font-family: inherit; }
.gd-rys-kafel { fill: var(--ds-bg); stroke: var(--ds-line); stroke-width: 1; }
.gd-rys-tytul { fill: var(--ds-ink); font-size: 13px; font-weight: 600; font-family: inherit; }
.gd-rys-link { fill: var(--od-brand); opacity: .55; }
.gd-rys-zakladka { fill: var(--od-brand); }
.gd-rys-btn { fill: var(--od-brand); }
.gd-rys-btn2 { fill: none; stroke: var(--ds-line); stroke-width: 1.2; }
.gd-rys-btn2-txt { fill: var(--ds-ink2); font-size: 11px; font-family: inherit; }
.gd-rys-odnosnik { fill: var(--od-brand); font-size: 10.5px; font-family: inherit; }
.gd-rys-opis { fill: var(--ds-muted); font-size: 10.5px; font-family: inherit; }
.gd-rys-stan { fill: var(--ds-muted); font-size: 10.5px; font-family: inherit; }
.gd-rys-stan-ikona { fill: none; stroke: var(--ds-muted2); stroke-width: 1.3; }
.gd-rys-zakl { fill: var(--ds-muted); font-size: 10.5px; font-family: inherit; }
.gd-rys-zakl-on { fill: var(--od-brand); font-size: 10.5px; font-weight: 600; font-family: inherit; }
.gd-rys-btn-txt { fill: #fff; font-size: 12px; font-weight: 600; font-family: inherit; letter-spacing: .3px; }
.gd-rys-obwodka {
  fill: none; stroke: var(--od-brand); stroke-width: 2; opacity: 0;
  transform-box: fill-box; transform-origin: center;
  animation: gd-rys-puls 2.4s ease-out infinite;
}
.gd-rys-kursor { fill: var(--ds-ink); animation: gd-rys-kursor 2.4s ease-in-out infinite; }
@keyframes gd-rys-puls {
  0%, 45% { opacity: 0; transform: scale(1); }
  60%     { opacity: .9; transform: scale(1); }
  100%    { opacity: 0; transform: scale(1.18); }
}
@keyframes gd-rys-kursor {
  0%        { transform: translate(258px, 206px); }
  40%, 100% { transform: translate(66px, 160px); }
  48%       { transform: translate(66px, 160px) scale(.86); }
}
@media (prefers-reduced-motion: reduce) {
  .gd-rys-obwodka { opacity: .9; animation: none; }
  .gd-rys-kursor { animation: none; transform: translate(66px, 160px); }
}
}
.gd-step { animation: gd-wejscie 220ms ease both; }
@keyframes gd-wejscie { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .gd-prog-track::after { transition: none; }
  .gd-prog-seg.is-on.is-busy .gd-prog-track::after { animation: none; }
  .gd-step { animation: none; }
}

.gd-step { display: flex; flex-direction: column; gap: 12px; }
.gd-step-t { display: flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 600; color: var(--ds-ink); }

.gd-lead { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--ds-muted); }
.gd-row { display: flex; align-items: flex-start; gap: 9px; }
.gd-row .od-i { flex-shrink: 0; margin-top: 1px; }

.gd-addr {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px 10px 12px; border: 1px solid var(--ds-line); border-radius: 6px; background: var(--ds-bg);
}
.gd-addr code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-addr code, .gd-mail { font-family: 'Geist Mono', monospace; font-size: 12px; }

.gd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gd-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; border: 1px solid var(--ds-line); border-radius: 99px;
  font-size: 11px; color: var(--ds-muted);
}
.gd-chip .od-i { width: 12px; height: 12px; }

.gd-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gd-link {
  display: flex; align-items: center; gap: 9px; padding: 9px 11px;
  border: 1px solid var(--ds-line); border-radius: 6px; background: var(--ds-surface);
  font-size: 12.5px; color: var(--ds-ink); text-decoration: none;
}
.gd-link:hover { background: var(--od-brand-soft2); }
.gd-link .gd-go { margin-left: auto; color: var(--ds-muted2); }
.gd-howto { margin: 0; padding-left: 19px; font-size: 12.5px; line-height: 1.75; color: var(--ds-ink2); }



.gd-kam-fig { width: 100%; gap: 8px; }
.gd-kam {
  
  position: relative; width: 100%; aspect-ratio: 1440 / 600; overflow: hidden;
  border-radius: 10px; border: 1px solid var(--ds-line); background: #141414;
}

.gd-kam-fit { position: absolute; left: 0; top: 0; width: 1440px; height: 660px; transform-origin: 0 0; }
.gd-kam-scena {
  position: absolute; inset: 0; transform-origin: 50% 50%;
  transition: transform 1200ms cubic-bezier(.65, 0, .35, 1);
}
.gd-kam-cien {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: rgba(0, 0, 0, .55); transition: opacity 700ms ease;
}
.gd-kam-cien.is-on { opacity: 1; }

.gd-kam-cel {
  position: absolute; border-radius: 6px; box-shadow: 0 0 0 3px var(--od-brand);
  opacity: 0; transition: opacity 700ms ease; pointer-events: none;
}
.gd-kam-cien.is-on + .gd-kam-cel { opacity: 1; }
.gd-kam-kursor {
  position: absolute; width: 26px; height: 34px; opacity: 0;
  transition: transform 1200ms cubic-bezier(.65, 0, .35, 1), opacity 400ms ease;
}
.gd-kam-kursor svg { width: 100%; height: 100%; fill: #fff; stroke: rgba(0,0,0,.5); stroke-width: .7; }
.gd-kam-kursor.is-on { opacity: 1; }
.gd-kam-kursor.is-nacisk { scale: .82; }
.gd-kam-podpis { display: none; }
.gd-kam-podpis.is-on { display: inline; }


.gd-mk { position: absolute; inset: 0; background: #141414; color: #E4E4E4;
  font: 400 15px 'Segoe UI', system-ui, sans-serif; }
.gd-mk-pasek { position: absolute; left: 0; right: 0; top: 0; height: 56px; display: flex;
  align-items: center; gap: 24px; padding: 0 16px; }
.gd-mk-chip { display: inline-flex; align-items: center; height: 38px; padding: 0 20px;
  border: 1px solid #5F6368; border-radius: 19px; font-weight: 600; }
.gd-mk-szukaj { flex: 1; max-width: 700px; height: 40px; display: flex; align-items: center;
  padding: 0 20px; background: #2A2C30; border-radius: 20px; color: #9AA0A6; font-size: 14px; }
.gd-mk-awatar { width: 34px; height: 34px; border-radius: 17px; background: #B36AC7; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.gd-mk-okruch { position: absolute; left: 16px; top: 56px; font-size: 14px; color: #9AA0A6; }
.gd-mk-tresc { position: absolute; left: 56px; right: 0; top: 82px; bottom: 0; background: #1B1B1B;
  border-top-left-radius: 10px; }
.gd-mk-tytul { height: 64px; display: flex; align-items: center; padding: 0 28px;
  border-bottom: 1px solid #282A2D; font-size: 22px; }
.gd-mk-panel { margin: 22px 28px 0; height: 80px; background: #2C2E31; border-radius: 8px;
  display: flex; align-items: center; gap: 18px; padding: 0 22px; }
.gd-mk-info { flex: 1; }
.gd-mk-btn2 { display: inline-flex; align-items: center; height: 40px; padding: 0 18px;
  border: 1px solid #5F6368; border-radius: 4px; white-space: nowrap; }
.gd-mk-btn { display: inline-flex; align-items: center; height: 40px; padding: 0 16px;
  border-radius: 4px; background: var(--od-brand); color: #fff; font-weight: 600; font-size: 13px;
  letter-spacing: .3px; white-space: nowrap; }
.gd-mk-nag2 { margin: 44px 28px 0; font-size: 20px; opacity: .85; }
.gd-mk-opis { margin: 12px 28px 0; max-width: 420px; color: #9AA0A6; line-height: 1.55; }


.gd-mk4-tytul { font-size: 22px; }
.gd-mk4-lista { margin: 14px 28px 0; font-size: 13px; }
.gd-mk4-wiersz { display: grid; grid-template-columns: 380px 90px 220px 200px 40px; align-items: center;
  gap: 12px; height: 44px; border-bottom: 1px solid #282A2D; }
.gd-mk4-wiersz--nag { color: #9AA0A6; font-size: 12px; height: 34px; }
.gd-mk4-mail { color: #8AB4F8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-mk4-id { color: #9AA0A6; }
.gd-mk4-kebab { display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 16px; color: #9AA0A6; }

.gd-mk4-menu, .gd-mk4-klucze, .gd-mk4-menu2, .gd-mk4-dialog, .gd-mk4-plik {
  position: absolute; display: none; }
.gd-mk .gd-mk4-menu { left: 1140px; top: 150px; width: 200px; background: #2C2E31; border-radius: 8px;
  padding: 8px 0; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.gd-mk4-menu-poz { display: block; padding: 9px 16px; font-size: 14px; }

.gd-mk .gd-mk4-klucze { inset: 0; background: #1B1B1B; padding: 22px 28px; }
.gd-mk4-zakl { display: flex; gap: 26px; font-size: 14px; color: #9AA0A6; border-bottom: 1px solid #282A2D;
  padding-bottom: 10px; }
.gd-mk4-zakl .is-on { color: #8AB4F8; font-weight: 600; }
.gd-mk4-ostrzezenie { margin: 16px 0; padding: 12px 16px; border-radius: 6px; background: #3A2E12;
  color: #EEC58F; font-size: 13px; }
.gd-mk4-dodaj { display: inline-flex; align-items: center; height: 36px; padding: 0 16px;
  border: 1px solid #5F6368; border-radius: 4px; font-size: 14px; }
.gd-mk .gd-mk4-menu2 { left: 28px; top: 176px; width: 200px; background: #2C2E31;
  border-radius: 8px; padding: 8px 0; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.gd-mk4-nowy { display: block; padding: 9px 16px; font-size: 14px; }

.gd-mk .gd-mk4-dialog { left: 420px; top: 170px; width: 560px; background: #2C2E31; border-radius: 10px;
  padding: 22px 24px; box-shadow: 0 16px 40px rgba(0,0,0,.6); }
.gd-mk4-dlg-tytul { font-size: 18px; margin-bottom: 16px; }
.gd-mk4-opcja { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; color: #9AA0A6; }
.gd-mk4-opcja.is-on { color: #E4E4E4; }
.gd-mk4-opcja i { width: 14px; height: 14px; border-radius: 7px; border: 1.5px solid #5F6368; }
.gd-mk4-opcja.is-on i { border-color: var(--od-brand); box-shadow: inset 0 0 0 3px var(--od-brand); }
.gd-mk4-opcja b { color: #9AA0A6; font-weight: 400; }
.gd-mk4-dlg-btn { display: inline-flex; align-items: center; height: 36px; padding: 0 18px; margin-top: 16px;
  border-radius: 4px; background: var(--od-brand); color: #fff; font-size: 13px; font-weight: 600; }

.gd-mk .gd-mk4-plik { right: 28px; top: 96px; width: 300px; background: #2C2E31; border-radius: 8px;
  padding: 14px 16px; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.gd-mk4-plik-nag { display: block; font-size: 13px; color: #9AA0A6; }
.gd-mk4-plik-nazwa { display: block; margin-top: 4px; font-size: 13px; color: #8AB4F8;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.gd-kam-scena[data-etap="menu"]   .gd-mk4-menu,
.gd-kam-scena[data-etap="klucze"] .gd-mk4-klucze,
.gd-kam-scena[data-etap="menu2"]  .gd-mk4-klucze,
.gd-kam-scena[data-etap="menu2"]  .gd-mk4-menu2,
.gd-kam-scena[data-etap="dialog"] .gd-mk4-klucze,
.gd-kam-scena[data-etap="dialog"] .gd-mk4-dialog,
.gd-kam-scena[data-etap="plik"]   .gd-mk4-klucze,
.gd-kam-scena[data-etap="plik"]   .gd-mk4-plik { display: block; }


.gd-mkA-glowa { display: flex; gap: 22px; padding: 34px 40px 0; }
.gd-mkA-kafel { width: 72px; height: 72px; flex: none; border-radius: 10px; background: #2A2C2F;
  display: inline-flex; align-items: center; justify-content: center; }
.gd-mkA-kafel svg { width: 44px; height: 44px; }
.gd-mkA-opisy { display: block; }
.gd-mkA-tytul { display: block; font-size: 30px; letter-spacing: -.015em; }
.gd-mkA-odnosnik { display: inline-block; margin-top: 8px; font-size: 15px; color: #8AB4F8;
  border-bottom: 1px solid #8AB4F8; }
.gd-mkA-opis { display: block; margin-top: 14px; max-width: 640px; color: #9AA0A6; line-height: 1.5; }
.gd-mkA-akcje { display: flex; align-items: center; gap: 18px; padding: 30px 40px 0; }
.gd-mkA-btn, .gd-mkA-btn2 { height: 44px; padding: 0 26px; font-size: 15px; }
.gd-mkA-stan, .gd-mkA-stan2 { display: inline-flex; align-items: center; gap: 10px; font-size: 15px;
  color: #9AA0A6; }
.gd-mkA-stan2 { color: #81C995; }
.gd-mkA-stan i, .gd-mkA-stan2 i { width: 14px; height: 14px; border-radius: 7px; background: #5F6368; }
.gd-mkA-stan2 i { background: #81C995; }
.gd-mkA-zakl { display: flex; gap: 30px; margin: 40px 40px 0; padding-bottom: 12px;
  border-bottom: 1px solid #282A2D; font-size: 15px; color: #9AA0A6; }
.gd-mkA-zakl .is-on { color: #8AB4F8; border-bottom: 2px solid #8AB4F8; padding-bottom: 10px;
  margin-bottom: -12px; }
.gd-mkA-toast { position: absolute; left: 40px; top: 300px; padding: 16px 22px; border-radius: 8px;
  
  background: #2C2E31; box-shadow: 0 8px 24px rgba(0,0,0,.5); font-size: 15px; }

.gd-mkA-btn2, .gd-mkA-stan2, .gd-mkA-toast { display: none; }
.gd-kam-scena[data-etap="wlaczone"] .gd-mkA-btn,
.gd-kam-scena[data-etap="wlaczone"] .gd-mkA-stan { display: none; }
.gd-kam-scena[data-etap="wlaczone"] .gd-mkA-btn2,
.gd-kam-scena[data-etap="wlaczone"] .gd-mkA-stan2 { display: inline-flex; }
.gd-kam-scena[data-etap="wlaczone"] .gd-mkA-toast { display: block; }


.gd-mkK-pasek { display: flex; align-items: center; gap: 20px; height: 60px; padding: 0 28px;
  border-bottom: 1px solid #282A2D; }
.gd-mkK-nowe { height: 36px; }
.gd-mkK-narzedzie { font-size: 14px; color: #9AA0A6; }
.gd-mkK-tytul { padding: 22px 28px 0; font-size: 20px; }
.gd-mkK-lista { margin: 16px 28px 0; font-size: 13px; }
.gd-mkK-wiersz { display: grid; grid-template-columns: 420px 90px 240px 180px 40px; align-items: center;
  gap: 12px; height: 44px; border-bottom: 1px solid #282A2D; }
.gd-mkK-wiersz--nag { color: #9AA0A6; font-size: 12px; height: 34px; }
.gd-mkK-mail { color: #8AB4F8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-mkK-kebab { color: #9AA0A6; }
.gd-mkK-nowy { display: none; background: rgba(34, 49, 63, .9); }
.gd-kam-scena[data-etap="nowy"] .gd-mkK-nowy { display: grid; }

.gd-mkK-form { display: none; position: absolute; inset: 0; background: #1B1B1B; padding: 26px 40px; }
.gd-kam-scena[data-etap="form"] .gd-mkK-form { display: block; }
.gd-mkK-form-tytul { font-size: 24px; }
.gd-mkK-krok { display: flex; align-items: center; gap: 14px; margin: 26px 0 0; font-size: 18px; }
.gd-mkK-krok i { width: 26px; height: 26px; border-radius: 13px; background: #3C4043; font-style: normal;
  font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.gd-mkK-krok--szary { color: #9AA0A6; }
.gd-mkK-pole { display: block; width: 520px; margin: 18px 0 0 40px; padding: 8px 14px;
  border: 1px solid #5F6368; border-radius: 4px; }
.gd-mkK-etykieta { display: block; font-size: 12px; color: #8AB4F8; }
.gd-mkK-wartosc { display: block; margin-top: 3px; font-size: 15px; }
.gd-mkK-podpowiedz { display: block; margin-top: 4px; font-size: 12px; color: #9AA0A6;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-mkK-stopka { display: flex; align-items: center; gap: 20px; margin-top: 34px; }
.gd-mkK-zamknij { height: 40px; padding: 0 20px; }

@media (prefers-reduced-motion: reduce) {
  .gd-kam-scena, .gd-kam-cien, .gd-kam-cel, .gd-kam-kursor { transition: none; }
}


.gd-anim { gap: 8px; }
.gd-anim-kadr { display: grid; width: 100%; max-width: 440px; }

.gd-anim-kadr > .gd-sc { grid-area: 1 / 1; opacity: 0; visibility: hidden; pointer-events: none; }
.gd-anim[data-scena="0"] .gd-sc[data-n="0"],
.gd-anim[data-scena="1"] .gd-sc[data-n="1"],
.gd-anim[data-scena="2"] .gd-sc[data-n="2"],
.gd-anim[data-scena="3"] .gd-sc[data-n="3"] { opacity: 1; visibility: visible; animation: gd-wejscie-klatki 260ms ease; }
.gd-anim-kadr svg { width: 100%; height: auto; display: block; }
.gd-anim figcaption { display: grid; min-height: 2.6em; }
.gd-sc-podpis { grid-area: 1 / 1; opacity: 0; visibility: hidden; }
.gd-anim[data-scena="0"] .gd-sc-podpis[data-n="0"],
.gd-anim[data-scena="1"] .gd-sc-podpis[data-n="1"],
.gd-anim[data-scena="2"] .gd-sc-podpis[data-n="2"],
.gd-anim[data-scena="3"] .gd-sc-podpis[data-n="3"] { opacity: 1; visibility: visible; animation: gd-wejscie-klatki 260ms ease; }
.gd-mini-wiersz { fill: var(--ds-bg); }
.gd-mini-wiersz--on { fill: var(--od-brand-soft); }
@keyframes gd-wejscie-klatki { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .gd-anim-kadr > .gd-sc, .gd-sc-podpis { animation: none; }
}

.gd-sekcje { display: flex; flex-direction: column; gap: 16px; }
.gd-sekcja { display: flex; gap: 12px; }
.gd-sekcja-nr {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--od-brand-soft); color: var(--od-brand);
  font-size: 12px; font-weight: 700;
}
.gd-sekcja-tresc { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.gd-sekcja-t { font-size: 13px; font-weight: 600; color: var(--ds-ink); }
.gd-sekcja-opis { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--ds-ink2); }
.gd-sekcja-opis code {
  font-family: 'Geist Mono', monospace; font-size: 11.5px;
  background: var(--ds-bg); border: 1px solid var(--ds-line); border-radius: 4px; padding: 1px 5px;
}


.gd-rys--mini { align-items: flex-start; gap: 5px; }
.gd-rys--mini figcaption { text-align: left; font-size: 11px; }
.gd-mini { width: 100%; max-width: 360px; height: auto; }

.gd-mini-pole.gd-mini-pole--auto { stroke: var(--ds-line); }
.gd-mini-wartosc.gd-mini-wartosc--auto { fill: var(--ds-muted); }
.gd-rys-obwodka-stat { fill: none; stroke: var(--od-brand); stroke-width: 3; opacity: .28; }
.gd-mini-linia { stroke: var(--ds-line); stroke-width: 1; }
.gd-mini-etykieta { fill: var(--ds-muted); font-size: 10.5px; font-family: inherit; }
.gd-mini-pole { fill: var(--ds-bg); stroke: var(--od-brand); stroke-width: 1.4; }
.gd-mini-menu { fill: var(--ds-bg); stroke: var(--ds-line); stroke-width: 1; }
.gd-mini-wartosc { fill: var(--ds-ink); font-size: 12px; font-family: 'Geist Mono', monospace; }
.gd-mini-zakladka { fill: var(--od-brand); font-size: 11px; font-weight: 600; font-family: inherit; }
.gd-mini-radio { fill: none; stroke: var(--od-brand); stroke-width: 1.4; }
.gd-mini-radio.gd-mini-radio--off { stroke: var(--ds-line); }
.gd-mini-kebab { fill: var(--ds-muted2); }
.gd-mini-radio-kropka { fill: var(--od-brand); }

.gd-probe {
  display: flex; align-items: center; gap: 11px;
  padding: 13px; border: 1px solid var(--ds-line); border-radius: 6px; background: var(--ds-bg);
}
.gd-spin { animation: spin 1.1s linear infinite; color: var(--ds-muted); }
.gd-probe-t { font-size: 12.5px; font-weight: 500; color: var(--ds-ink); }
.gd-probe-s { font-size: 11.5px; color: var(--ds-muted); margin-top: 1px; }
.gd-found-name { font-size: 13px; font-weight: 600; }

.gd-akcje { display: flex; align-items: center; gap: 8px; margin-top: 8px; }

.gd-akcje--cta { margin-top: 10px; justify-content: flex-end; }
.gd-akcje .ds-textarea { flex: 1; min-width: 0; }
.gd-help { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.gd-fix {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px;
  border: 1px solid var(--ds-line); border-radius: 6px; font-size: 12px; color: var(--ds-ink2);
}
.gd-fix > .ds-btn, .gd-fix > a.ds-btn { margin-left: auto; flex-shrink: 0; }
.gd-link-form { margin-top: 4px; }

@media (max-width: 560px) { .gd-links { grid-template-columns: 1fr; } }


.od-tree { max-height: 280px; overflow-y: auto; border: 1px solid var(--ds-line); border-radius: 8px; }
.od-tree-row {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 8px 10px; border: 0; border-bottom: 1px solid var(--ds-line2);
  background: none; font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; color: var(--ds-ink);
}
.od-tree-row:last-child { border-bottom: 0; }
.od-tree-row:hover { background: var(--od-brand-soft2); }
.od-tree-into { flex: 1; }
.od-crumb { font-family: 'Geist Mono', monospace; }

.ds-content:has(> .od-chatpage) { flex: 1; min-height: 0; padding: 0; gap: 0; overflow: hidden; }

.ds-subheader:has(.ds-subheader-title:empty) { display: none; }

.od-chatpage { flex: 1; min-height: 0; display: flex; }
.od-chatmain { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.od-chatlog  { flex: 1; min-height: 0; overflow-y: auto; padding: 24px 24px 8px; }


.od-ct { max-width: 760px; margin: 0 auto 26px; display: flex; flex-direction: column; }
.od-who { font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-tertiary);
  font-weight: 600; margin-bottom: 5px; }
.od-ct--ja { align-items: flex-end; }
.od-ct--ja .od-who { margin-right: 2px; }
.od-bubble { background: var(--od-brand); color: #fff; border-radius: 14px 14px 3px 14px;
  padding: 10px 14px; max-width: 78%; white-space: pre-wrap; line-height: 1.55; font-size: 13.5px; }
.od-ct--ai .od-ai-body { width: 100%; }
.od-ai-text { white-space: pre-wrap; line-height: 1.68; color: var(--text-primary); font-size: 13.5px; }
.od-ct--progress .od-ai-text::after { content: '\258D'; color: var(--od-brand); animation: odBlink 1s steps(2) infinite; }
@keyframes odBlink { 0%,50%{opacity:1} 50.01%,100%{opacity:0} }
.od-ct--sys { max-width: 760px; margin: 0 auto 18px; }
.od-sys { background: color-mix(in srgb, var(--ds-bad) 8%, transparent); border: 1px solid color-mix(in srgb, var(--ds-bad) 30%, transparent);
  color: var(--text-primary); border-radius: 10px; padding: 9px 12px; font-size: 12.5px; white-space: pre-wrap; }


.od-md-h { display: block; font-weight: 650; font-size: 14.5px; margin: 16px 0 2px; color: var(--text-primary); }
.od-md-code { background: var(--surface-alt); border-radius: 4px; padding: 1px 5px;
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: .9em; }

.od-md-tablewrap { overflow-x: auto; margin: 12px 0; border: 1px solid var(--ds-line); border-radius: 10px; }
.od-md-table { width: 100%; border-collapse: collapse; white-space: normal; font-size: 12.5px;
  font-variant-numeric: tabular-nums; }
.od-md-table th, .od-md-table td { padding: 7px 12px; border-bottom: 1px solid var(--ds-line); }
.od-md-table thead th { background: var(--surface-alt); color: var(--text-secondary); font-weight: 600;
  font-size: 11px; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; position: sticky; top: 0; }
.od-md-table tbody tr:last-child td { border-bottom: 0; }
.od-md-table tbody tr:hover { background: var(--surface-hover); }
.od-md-table td { color: var(--text-primary); }

.od-code { display: block; white-space: pre; overflow-x: auto; background: var(--surface-alt);
  border-radius: 8px; padding: 10px 12px; margin: 10px 0;
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; line-height: 1.5; }


.od-think { margin: 0 0 10px; border-left: 2px solid var(--ds-line2); }
.od-think-head { cursor: pointer; font-size: 11.5px; color: var(--text-secondary); padding: 2px 0 2px 8px; user-select: none; list-style: none; }
.od-think-head::-webkit-details-marker { display: none; }

.od-reason-head { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer;
  list-style: none; user-select: none; border-radius: 4px; }
.od-reason-head::-webkit-details-marker { display: none; }
.od-reason-head .od-i--chev { color: var(--text-secondary); }
.od-reason-head:hover .od-i--chev { color: var(--text-primary); }
.od-reason-head:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.od-reason[open] > .od-reason-head .od-i--chev { transform: rotate(90deg); }
.od-think-n { color: var(--text-tertiary); font-size: 10.5px; }
.od-think-body { white-space: pre-wrap; font-size: 12px; color: var(--text-secondary); padding: 4px 0 4px 8px; }
.od-cstep { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--text-secondary);
  background: var(--surface-alt); border-radius: 8px; padding: 5px 9px; margin: 0 0 6px; }
.od-cstep-ic { flex-shrink: 0; color: var(--od-brand); }
.od-cstep-faza { font-weight: 600; color: var(--text-primary); }
.od-cstep-opis { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11px; color: var(--text-secondary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.od-cstep-meta { color: var(--text-tertiary); font-size: 10.5px; flex-shrink: 0; }
.od-cstep-run { color: var(--od-brand); flex-shrink: 0; }
.od-cstep--blad .od-cstep-faza { color: var(--ds-bad); }
.od-cost { font-size: 10.5px; color: var(--text-tertiary); margin-top: 10px; }


.od-composer-wrap { max-width: 760px; width: 100%; margin: 0 auto; padding: 4px 24px 16px; }
.od-composer2 { display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--ds-line2); border-radius: 18px; padding: 10px 12px 8px; }
.od-composer2:focus-within { border-color: color-mix(in srgb, var(--od-brand) 45%, var(--ds-line)); }
.od-composer2 textarea { width: 100%; border: 0; outline: 0; resize: none; background: transparent;
  font: inherit; font-size: 13.5px; line-height: 1.5; padding: 2px 2px 0; height: 24px; min-height: 24px;
  max-height: 200px; overflow-y: auto; color: var(--text-primary); }
.od-composer-bar { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.od-composer-spacer { flex: 1; }
.od-attach-btn { width: 30px; height: 30px; border-radius: 8px; border: 0; display: flex; align-items: center;
  justify-content: center; cursor: pointer; background: transparent; color: var(--text-secondary); }
.od-attach-btn:hover { background: var(--surface-hover); color: var(--text-primary); }
.od-think-toggle, .od-model-toggle { display: inline-flex; align-items: center; gap: 4px; font: inherit;
  font-size: 11.5px; padding: 5px 9px; cursor: pointer; border: 0; border-radius: 8px; background: transparent;
  color: var(--text-secondary); white-space: nowrap; }
.od-think-toggle:hover, .od-model-toggle:hover { background: var(--surface-hover); color: var(--text-primary); }
.od-send-btn { width: 30px; height: 30px; border-radius: 50%; border: 0; display: flex; align-items: center;
  justify-content: center; cursor: pointer; background: var(--od-brand); color: #fff; flex-shrink: 0; }
.od-send-btn:hover { background: var(--od-brand-hover); }
.od-send-btn.is-stop { background: var(--ds-bad); }
.od-attach-chip { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 11.5px;
  background: var(--surface-alt); border-radius: 999px; padding: 3px 6px 3px 10px; align-self: flex-start; }

.od-attach-chip[hidden] { display: none !important; }
.od-attach-name { color: var(--text-primary); max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.od-attach-x { border: 0; background: transparent; cursor: pointer; color: var(--text-tertiary); font-size: 15px; line-height: 1;
  width: 18px; height: 18px; border-radius: 50%; }
.od-attach-x:hover { background: var(--surface-hover); color: var(--text-primary); }
.od-composer-foot { text-align: center; font-size: 10.5px; color: var(--text-tertiary); min-height: 14px; margin-top: 6px; }


.od-welcome { max-width: 900px; margin: 4vh auto 0; text-align: center; }
.od-welcome-title { font-size: 22px; font-weight: 650; color: var(--text-primary); margin-bottom: 8px; }
.od-welcome-sub { font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; }
.od-welcome-groups { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 16px; }
.od-welcome-group { font: inherit; font-size: 12.5px; font-weight: 550; padding: 8px 16px; cursor: pointer;
  border: 1px solid var(--ds-line); border-radius: 999px; background: var(--surface); color: var(--text-primary); }
.od-welcome-group:hover { border-color: var(--od-brand); }
.od-welcome-group.is-active { background: var(--od-brand); border-color: var(--od-brand); color: #fff; }
.od-welcome-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.od-welcome-chip { text-align: left; font: inherit; font-size: 12.5px; line-height: 1.45; max-width: 510px;
  padding: 10px 14px; border: 1px solid var(--ds-line); border-radius: 12px; background: var(--surface);
  color: var(--text-primary); cursor: pointer; }
.od-welcome-chip:hover { border-color: var(--od-brand); background: var(--od-brand-soft); }


.od-chathist, .od-chatside { flex-shrink: 0; display: flex; flex-direction: column; background: var(--surface); }
.od-chathist { width: 240px; border-right: 1px solid var(--ds-line); }
.od-chatside { width: 280px; border-left: 1px solid var(--ds-line); }

.od-chatside.is-min { width: 34px; }
.od-chatside.is-min .od-side-scroll { display: none; }
.od-chatside.is-min .od-topics-label { display: none; }
.od-topics-toggle { display: flex; align-items: center; gap: 6px; width: 100%; border: 0; background: transparent;
  cursor: pointer; font: inherit; font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em;
  font-weight: 600; color: var(--text-tertiary); padding: 14px 10px 8px; }
.od-topics-toggle:hover { color: var(--text-primary); }
.od-chatside.is-min .od-topics-toggle { justify-content: center; padding: 14px 0; }

.od-side-new { margin: 14px 12px 6px; padding: 9px 12px; border: 1px solid var(--ds-line); border-radius: 10px;
  background: var(--surface); color: var(--text-primary); font: inherit; font-size: 12.5px; font-weight: 550; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px; }
.od-side-new:hover { border-color: var(--od-brand); background: var(--od-brand-soft); }
.od-side-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 2px 10px 14px; }
.od-side-h { font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-tertiary);
  margin: 14px 14px 6px; font-weight: 600; }
.od-hist-head { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 12px 4px;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-tertiary); font-weight: 600; }
.od-hist-switch { border: 0; background: transparent; cursor: pointer; font: inherit; font-size: 10.5px;
  text-transform: uppercase; letter-spacing: .04em; color: var(--od-brand); }
.od-hist-switch:hover { text-decoration: underline; }


.od-hist-row { position: relative; border-radius: 7px; }
.od-hist-row.is-active { background: var(--od-brand-soft); }
.od-hist-row .od-side-recent { display: block; width: 100%; text-align: left; font: inherit; font-size: 12px;
  color: var(--text-secondary); background: transparent; border: 0; border-radius: 7px; padding: 8px 26px 8px 10px;
  cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.od-hist-row:hover .od-side-recent { color: var(--text-primary); }
.od-hist-row:hover { background: var(--surface-hover); }
.od-hist-row.is-active .od-side-recent { color: var(--text-primary); font-weight: 550; }
.od-hist-more { position: absolute; right: 3px; top: 5px; width: 20px; height: 20px; border: 0; border-radius: 5px;
  background: transparent; color: var(--text-tertiary); cursor: pointer; line-height: 1; opacity: 0; }
.od-hist-row:hover .od-hist-more, .od-hist-row.is-active .od-hist-more { opacity: 1; }
.od-hist-more:hover { background: var(--surface); color: var(--text-primary); }

.od-hist-actions { position: absolute; right: 4px; top: 26px; z-index: 30; min-width: 148px;
  display: flex; flex-direction: column; padding: 4px; gap: 1px; background: var(--surface);
  border: 1px solid var(--ds-line); border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.10); }
.od-hist-actions[hidden] { display: none !important; }
.od-hist-actions button { text-align: left; border: 0; background: transparent; cursor: pointer; font: inherit;
  font-size: 11.5px; color: var(--text-secondary); padding: 4px 6px; border-radius: 5px; }
.od-hist-actions button:hover { background: var(--surface-hover); color: var(--text-primary); }
.od-hist-actions .od-hist-del:hover { color: var(--ds-bad); }
.od-hist-edit { width: calc(100% - 8px); margin: 4px; font: inherit; font-size: 12px; padding: 6px 8px;
  border: 1px solid var(--od-brand); border-radius: 7px; background: var(--surface); color: var(--text-primary); }

.od-side-cat { margin-bottom: 2px; }
.od-side-cat > summary { cursor: pointer; font-size: 12px; font-weight: 550; color: var(--text-primary);
  padding: 6px 8px; border-radius: 8px; list-style: none; }
.od-side-cat > summary::-webkit-details-marker { display: none; }
.od-side-cat > summary::before { content: '\25B8'; color: var(--text-tertiary); margin-right: 6px; font-size: 10px; }
.od-side-cat[open] > summary::before { content: '\25BE'; }
.od-side-cat > summary:hover { background: var(--surface-hover); }
.od-side-tmpl { display: block; width: 100%; text-align: left; font: inherit; font-size: 11.5px; line-height: 1.4;
  color: var(--text-secondary); background: transparent; border: 0; border-radius: 7px; padding: 7px 10px 7px 22px; cursor: pointer; }
.od-side-tmpl:hover { background: var(--od-brand-soft); color: var(--text-primary); }
.od-side-empty { font-size: 11.5px; color: var(--text-tertiary); padding: 6px 10px; }


@media (max-width: 1240px) { .od-chatside { display: none; } }
@media (max-width: 980px) {
  .od-chathist { display: none; }
  .od-chatlog { padding: 18px 14px 8px; }
  .od-composer-wrap { padding: 4px 14px 14px; }
}


.od-name-cell--spread { display: flex; width: 100%; }
.od-name-cell--spread .od-rowacts { margin-left: auto; padding-left: 8px; }


.ds-switch-card {
  border: 1px solid var(--ds-line);
  border-radius: 10px;
  background: var(--ds-surface);
  margin: 8px 0;
  transition: border-color .15s ease, box-shadow .15s ease;
  
  flex-shrink: 0;
}
.ds-switch-card.is-on {
  border-color: #16a34a;
  box-shadow: inset 3px 0 0 #16a34a;
}

.ds-switch-icon {
  display: flex; align-items: center; justify-content: center;
  width: 58px; line-height: 1;
  color: var(--ds-muted2);
  transition: color .15s ease;
}
.ds-switch-icon .od-i { width: 24px; height: 24px; }
.ds-switch-card.is-on .ds-switch-icon { color: #16a34a; }




.od-plugs { margin: 8px 10px 12px; }

.od-plugs-label {
  display: block; font-size: 11px; color: var(--ds-muted); text-transform: uppercase;
  letter-spacing: .4px; margin: 0 2px 6px;
  white-space: normal; line-height: 1.35; overflow-wrap: break-word;
}

.od-plugs-row { display: flex; flex-direction: column; gap: 6px; }
.od-plug-ic {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 8px 10px; border: 1px solid var(--ds-line); border-radius: 8px; background: var(--ds-surface);
  font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ds-ink); cursor: pointer; min-width: 0;
}
.od-plug-ic:hover { border-color: var(--od-brand); background: var(--od-brand-soft); }
.od-plug-ic > .ds-side-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.od-plug-badge {
  width: 22px; height: 22px; flex-shrink: 0; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
}
.od-plug-badge svg { width: 15px; height: 15px; }

.od-plug-badge--claude { background: #D97757; color: #fff; }
.od-plug-badge--gpt    { background: #0D0D0D; color: #fff; }
.od-plug-badge svg     { color: inherit; }

body.ds-sidebar-collapsed .od-plugs-row { flex-direction: column; }
body.ds-sidebar-collapsed .od-plugs .od-plug-ic { justify-content: center; padding: 8px 0; }


.od-steps { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.7; }
.od-steps li { margin-bottom: 2px; }
.od-copy-list { display: flex; flex-direction: column; gap: 8px; }
.od-copy-chip {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 8px 10px; border: 1px solid var(--ds-line); border-radius: 8px;
  background: var(--ds-surface); font: inherit; cursor: pointer; color: var(--ds-ink);
}
.od-copy-chip:hover { border-color: var(--od-brand); background: var(--od-brand-soft); }
.od-copy-chip.is-copied { border-color: var(--ds-ok); background: var(--ds-ok-bg); }
.od-copy-k { flex-shrink: 0; font-size: 11px; font-weight: 600; color: var(--ds-muted); min-width: 44px; }
.od-copy-v {
  flex: 1; min-width: 0; font-family: 'Geist Mono', monospace; font-size: 12px; color: var(--ds-ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.od-copy-chip .od-i { flex-shrink: 0; color: var(--od-brand); }

.od-conn-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--ds-line); border-radius: 8px; background: var(--ds-surface);
}
.od-conn-row + .od-conn-row { margin-top: 8px; }
.od-conn-name { font-size: 13px; font-weight: 600; }
.od-conn-url {
  font-family: 'Geist Mono', monospace; font-size: 11.5px; color: var(--od-brand);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}

.od-conn-card {
  padding: 12px 14px; border: 1px solid var(--ds-line); border-radius: 8px; background: var(--ds-surface);
}
.od-conn-app:hover { border-color: var(--od-brand); background: var(--od-brand-soft); }
.od-conn-app .od-i { width: 20px; height: 20px; flex-shrink: 0; color: var(--od-brand); }
@media (max-width: 560px) { .od-conn-apps { grid-template-columns: 1fr; } }


.od-domain.is-partial {
  border-color: var(--accent);
  border-style: dashed;
  background: transparent;
}
.od-conn-card + .od-conn-card { margin-top: 8px; }
.od-conn-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.od-conn-add { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.od-conn-actions .od-i { width: 15px; height: 15px; }


.od-sk {
  border-radius: 6px;
  background: linear-gradient(90deg, var(--ds-line2) 25%, #E8E8E8 37%, var(--ds-line2) 63%);
  background-size: 400% 100%;
  animation: od-shimmer 1.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .od-sk { animation: none; background: var(--ds-line2); } }

.od-sk--line   { height: 12px; }
.od-sk--title  { height: 22px; width: 200px; }
.od-sk--pill   { height: 36px; width: 44px; border-radius: 999px; flex: 0 0 auto; }
.od-sk--chip   { height: 30px; width: 96px; border-radius: 999px; flex: 0 0 auto; }
.od-sk--circle { height: 40px; width: 40px; border-radius: 50%; flex: 0 0 auto; }
.od-sk--row    { height: 38px; border-radius: 6px; }

.od-skgrp   { display: flex; flex-direction: column; gap: 14px; }
.od-skline  { display: flex; align-items: center; gap: 10px; }
.od-skrows  { display: flex; flex-direction: column; gap: 8px; }


.od-sktable { border: 1px solid var(--ds-line); border-radius: 8px; overflow: hidden; }
.od-sktable-head { height: 40px; border-bottom: 1px solid var(--ds-line); }
.od-sktr { display: flex; align-items: center; gap: 14px; padding: 10px 14px;
           border-bottom: 1px solid var(--ds-line2); }
.od-sktr:last-child { border-bottom: 0; }
.od-sktr .od-sk--name { height: 14px; flex: 1 1 auto; }
.od-sktr .od-sk--cell { height: 14px; width: 64px; flex: 0 0 auto; }


.od-sktiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.od-sktile  { height: 74px; border: 1px solid var(--ds-line); border-radius: 8px; }


.od-sksep { height: 1px; background: var(--ds-line); margin: 6px 0; }
.od-skcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.od-skcard  { height: 120px; border: 1px solid var(--ds-line); border-radius: 10px; }


.od-skchat { display: flex; gap: 16px; height: 100%; min-height: 320px; }
.od-skchat-main { flex: 1 1 auto; display: flex; flex-direction: column; gap: 12px; }
.od-skbubble { height: 54px; border-radius: 12px; max-width: 70%; }
.od-skbubble--me { align-self: flex-end; background: var(--od-brand-soft); }


.od-foldername-cell { display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0; }
.od-foldername { flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


.od-toggle {
  width: 40px; height: 22px; border-radius: 999px; border: 0; padding: 0;
  cursor: pointer; flex-shrink: 0; position: relative;
  background: var(--stroke-control, #c4c4c4); transition: background .15s ease;
}
.od-toggle.is-on { background: var(--accent); }
.od-toggle-knob {
  position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.28); transition: left .15s ease;
}
.od-toggle.is-on .od-toggle-knob { left: 20px; }
.od-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }



.od-diag-card {
  background: var(--surface); border: 1px solid var(--stroke);
  border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 12px;
}
.od-diag-title { font-size: 15px; font-weight: 600; line-height: 1.45; word-break: break-word; }
.od-diag-sub { color: var(--text-secondary); font-size: 12.5px; margin-top: 4px; word-break: break-word; }


.od-diag-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px 18px; margin-top: 12px;
}
.od-diag-fact-k { color: var(--text-tertiary); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.od-diag-fact-v { font-size: 13px; margin-top: 2px; word-break: break-word; }

.od-diag-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; }


.od-diag-pre {
  margin: 8px 0 0; padding: 10px 12px; max-height: 340px; overflow: auto;
  background: var(--surface-alt); border: 1px solid var(--divider); border-radius: var(--radius-sm);
  font-family: var(--font-num); font-size: 11.5px; line-height: 1.55;
  color: var(--text-primary); white-space: pre; tab-size: 2;
}
.od-diag-pre--wrap { white-space: pre-wrap; word-break: break-word; }


.od-diag-ev { border: 1px solid var(--stroke); border-radius: var(--radius-md); margin-bottom: 8px; background: var(--surface); }
.od-diag-ev-head {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px;
  background: none; border: 0; cursor: pointer; font: inherit; color: var(--text-primary); text-align: left;
}
.od-diag-ev-head:hover { background: var(--surface-hover); }
.od-diag-ev-when { font-size: 12.5px; white-space: nowrap; }
.od-diag-ev-meta { color: var(--text-secondary); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.od-diag-ev-body { padding: 0 12px 12px; }
.od-diag-ev-sec { margin-top: 10px; }
.od-diag-ev-sec > h4 {
  margin: 0; font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; color: var(--text-tertiary);
}


.od-diag-crumbs { list-style: none; margin: 8px 0 0; padding: 0; max-height: 260px; overflow: auto; }
.od-diag-crumb { display: flex; gap: 10px; padding: 3px 0; font-size: 12px; border-bottom: 1px solid var(--divider); }
.od-diag-crumb:last-child { border-bottom: 0; }
.od-diag-crumb-t { font-family: var(--font-num); color: var(--text-tertiary); white-space: nowrap; }
.od-diag-crumb-r { color: var(--text-secondary); min-width: 58px; }
.od-diag-crumb-x { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }



.od-date {
  height: 28px;
  padding: 0 8px;
  font: inherit;
  font-size: 12.5px;
  color: var(--text-primary);
  background: var(--fill-subtle, transparent);
  border: 1px solid var(--stroke-control, var(--ds-line));
  border-radius: 14px;
}
.od-date:hover { border-color: var(--text-secondary); }
.od-date:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 1px; }
[data-theme="dark"] .od-date { color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .od-date { color-scheme: dark; }
}


div.od-stat { cursor: default; }
div.od-stat:hover { border-color: var(--ds-line); box-shadow: none; }


.ds-modal.od-promo { width: 520px; overflow: hidden; }
.od-promo-art { position: relative; line-height: 0; border-bottom: 1px solid var(--stroke); }

.od-promo-art > svg { display: block; width: 100%; height: auto; }

.od-pa-bg   { fill: var(--od-brand-soft); }
.od-pa-tile { fill: var(--surface); stroke: var(--stroke); stroke-width: 1; }
.od-pa-ink  { fill: var(--od-brand); }

.od-pa-mark { color: var(--ds-ink); }
.od-pa-dash { stroke: var(--od-brand); stroke-opacity: .45; }
.od-pa-plus { stroke: var(--od-brand); }

.od-promo-badge {
  position: absolute; left: 18px; bottom: 12px;
  background: var(--surface); color: var(--od-brand);
  border: 1px solid color-mix(in srgb, var(--od-brand) 35%, var(--surface));
  font-size: 12px; font-weight: 700; line-height: 1.3; letter-spacing: .2px; white-space: nowrap;
  padding: 4px 12px; border-radius: var(--radius-pill);
}
.od-promo-body { gap: 12px; }
.od-promo-title { font-size: 17px; font-weight: 700; line-height: 1.3; }
.od-promo-lead  { font-size: 13px; line-height: 1.55; color: var(--ds-muted); }
.od-promo-koszt {
  align-self: flex-start; font-size: 12px; font-weight: 600;
  background: var(--od-brand-soft); color: var(--od-brand);
  padding: 4px 10px; border-radius: 6px;
}
.od-promo-kroki { display: flex; flex-direction: column; gap: 7px; }
.od-promo-krok  { display: flex; align-items: center; gap: 9px; font-size: 12.5px; }
.od-promo-krok > span {
  flex-shrink: 0; width: 19px; height: 19px; border-radius: 50%;
  background: var(--od-brand); color: #fff;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}

.od-promo-cta { display: flex; gap: 8px; flex-wrap: wrap; }
.od-promo-cta .od-plug-ic { flex: 1 1 180px; width: auto; }
.od-promo-note { font-size: 11.5px; color: var(--ds-muted2); line-height: 1.5; }

.od-promo-footer { justify-content: space-between; align-items: center; }
.od-promo-hide { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ds-muted); cursor: pointer; }



.od-scopebox {
  width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; padding: 0;
  position: relative; display: inline-block; box-sizing: border-box;
  border: 1px solid var(--stroke-control); border-radius: 3px;
  background: var(--surface); cursor: pointer;
}
.od-scopebox:hover { border-color: var(--accent); }
.od-scopebox:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }


.od-scopebox--explicit, .od-scopebox--inherited {
  background: var(--accent); border-color: var(--accent);
}
.od-scopebox--explicit::after, .od-scopebox--inherited::after {
  content: ''; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.od-scopebox--inherited {
  background: color-mix(in srgb, var(--accent) 55%, var(--surface-alt));
  border-color: color-mix(in srgb, var(--accent) 55%, var(--surface-alt));
  cursor: default;
}
.od-scopebox--inherited:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--surface-alt));
}


.od-scopebox--partial {
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 45%, var(--surface));
}
.od-scopebox--partial::after {
  content: ''; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px;
  border: solid color-mix(in srgb, var(--accent) 70%, var(--surface));
  border-width: 0 2px 2px 0; transform: rotate(45deg);
}


.od-scopebox--excluded { background: var(--surface-alt); border-color: var(--text-tertiary); }
.od-scopebox--excluded::before, .od-scopebox--excluded::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 1.5px;
  background: var(--text-secondary); border-radius: 1px;
}
.od-scopebox--excluded::before { transform: translate(-50%, -50%) rotate(45deg); }
.od-scopebox--excluded::after  { transform: translate(-50%, -50%) rotate(-45deg); }


.od-scopebox--none { border-style: dashed; }



.od-path-wrap { display: block; overflow-wrap: anywhere; word-break: break-word; }


.od-rowmenu {
  position: fixed; z-index: 60; min-width: 210px; padding: 4px;
  background: var(--surface); border: 1px solid var(--stroke);
  border-radius: var(--radius-md); box-shadow: var(--shadow-menu);
}
.od-rowmenu-i {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 7px 10px; border: 0; border-radius: var(--radius-sm);
  background: none; color: var(--text-primary); font: inherit; text-align: left;
  text-decoration: none; cursor: pointer;
}
.od-rowmenu-i:hover { background: var(--surface-hover); }
.od-rowmenu-i .od-i { color: var(--text-secondary); flex-shrink: 0; }
.od-rowmenu-sep { height: 1px; margin: 4px 6px; background: var(--divider); }





@media (max-width: 1700px) {
  body:not(.ds-mobile) .ds-table th,
  body:not(.ds-mobile) .ds-table td { padding-left: 6px; padding-right: 6px; }
  body:not(.ds-mobile) .ds-table th:first-child,
  body:not(.ds-mobile) .ds-table td:first-child { padding-left: 16px; }
  body:not(.ds-mobile) .ds-table th:last-child,
  body:not(.ds-mobile) .ds-table td:last-child { padding-right: 16px; }
  
  body:not(.ds-mobile) .od-fill .ds-table th:last-child,
  body:not(.ds-mobile) .od-fill .ds-table td:last-child { padding-right: 18px; }
  body:not(.ds-mobile) .ds-table th,
  body:not(.ds-mobile) .od-th-btn,
  body:not(.ds-mobile) .od-th-text { font-size: 12.5px; }
  body:not(.ds-mobile) .od-th { margin-left: -6px; }
  body:not(.ds-mobile) .od-th-btn { gap: 3px; padding-left: 6px; }
  body:not(.ds-mobile) .od-th-chevbtn { padding: 0 2px 0 0; }
}
