/* wwwroot/css/layout.css */
.ds-app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.ds-main { flex: 1; padding: var(--content-top) var(--gutter) var(--space-6); max-width: 1920px; width: 100%; margin-inline: auto; }
.ds-main:has(.ds-report-page, .ds-workspace), :root:has(.ds-report-page) .ds-context { max-width: none; }   /* report pages (context row, report + chat) and, since AIS-525, the workspace pages (the assistant's and the company's) use the full width above 1920 px, with the same side padding */

/* top bar (redesign 2026-11): one quiet 64 px band - the logo, the section tabs on the left; on the right the DEMO badge, the theme switch, the
   notifications bell, the tenant logo and the account button (it opens the account menu). The colours come from the --hdr-* tokens (tokens.css). */
.ds-topbar {
  position: relative; isolation: isolate; z-index: var(--z-nav);
  height: var(--nav-height); padding-inline: var(--header-inset);
  display: flex; align-items: center; gap: var(--space-8);
  background: var(--hdr-bg); box-shadow: var(--hdr-shadow); color: var(--hdr-text);
}
/* the blur sits on a layer behind the bar: a backdrop-filter on the bar itself would make it the containing block of the fixed account drawer (clipped to 64 px) */
.ds-topbar::before { content: ""; position: absolute; inset: 0; z-index: -1; -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); pointer-events: none; }
.ds-brand { display: block; width: 64px; height: 32px; color: var(--color-text); flex: none; }
.ds-brand--image { width: auto; height: 30px; }
.ds-nav { display: flex; align-items: center; gap: var(--nav-gap); margin: 0; padding: 0; list-style: none; }
.ds-nav__item {
  position: relative; display: inline-flex; align-items: center; gap: var(--space-2);
  min-width: var(--target-min); padding: 0 var(--space-2); border-radius: var(--radius-md);
  color: var(--color-text); text-decoration: none;
  font-size: var(--text-xs); line-height: var(--lh-tight); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-nav); text-transform: uppercase; white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

/* the section tabs: plain text on the bar, the current one white with a glowing green line on the bar's bottom edge */
.ds-topbar__sections { align-self: stretch; display: flex; min-width: 0; }
.ds-topbar .ds-nav { align-items: stretch; gap: var(--space-7); height: 100%; }
.ds-topbar .ds-nav > li { display: flex; }
.ds-topbar .ds-topbar__tab {
  min-height: 0; padding: 0; border-radius: 0; background: none;
  font-size: var(--text-md); line-height: 1.43; font-weight: var(--weight-regular); letter-spacing: 0; text-transform: none; color: var(--hdr-muted);
}
@media (hover: hover) { .ds-topbar .ds-topbar__tab:hover { color: var(--hdr-text); background: none; } }
.ds-topbar .ds-topbar__tab[aria-current] { color: var(--hdr-text); font-weight: var(--weight-medium); }
.ds-topbar .ds-topbar__tab[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--color-primary); box-shadow: 0 0 12px var(--color-primary); }
.ds-topbar .ds-topbar__tab:focus-visible { outline-offset: -4px; }

/* the right cluster */
.ds-topbar__aside { margin-inline-start: auto; display: flex; align-items: center; gap: var(--space-1); }
.ds-topbar__demo { margin-inline-end: var(--space-2); box-shadow: inset 0 0 0 1px var(--color-info); }   /* the DEMO PODACI badge: at every width */
.ds-topbar__icon {
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 36px; height: 36px; padding: 0; border: 0; border-radius: var(--radius-lg); background: transparent; color: var(--hdr-muted); text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.ds-topbar__icon[aria-current] { background: var(--hdr-hover); color: var(--hdr-text); }
@media (hover: hover) { .ds-topbar__icon:hover { background: var(--hdr-hover); color: var(--hdr-text); } }
@media (max-width: 399px) { .ds-topbar__switch { display: none; } }   /* DESIGN 10.1 item 6: below 400 px the account menu row „Promeni nalog“ serves */
.ds-topbar__count {
  position: absolute; top: 3px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box; border-radius: var(--radius-pill);
  background: var(--color-negative); color: var(--count-text); font-size: var(--text-count); line-height: 16px; font-weight: var(--weight-bold); text-align: center; box-shadow: 0 0 0 2px var(--hdr-solid);
}
.ds-topbar__divider { width: 1px; height: 22px; margin-inline: var(--space-2); background: var(--hdr-hair); }
/* AIS-520a: the tenant's name (the wordmark of a tenant without a logo image) stays inside its box and ends in an ellipsis instead of running over the account
   avatar; the full name is the link's title. A logo image keeps its size. */
.ds-topbar__tenant { display: flex; align-items: center; height: 24px; min-width: 0; max-width: 200px; min-height: var(--target-min); margin-inline-end: var(--space-2); overflow: hidden; color: var(--hdr-text); text-decoration: none; }
.ds-topbar__tenant:has(> .ds-tenant-logo) { flex: none; }
.ds-topbar__tenant .ds-tenant-logo { flex: none; height: 24px; max-width: 120px; }
.ds-topbar__tenant .ds-tenant-wordmark { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: var(--text-md); }
.ds-topbar__account {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 var(--space-2) 0 var(--space-1); border: 0; border-radius: var(--radius-pill);
  background: var(--hdr-chip); color: var(--hdr-text); cursor: pointer; transition: background-color var(--dur-fast) var(--ease);
}
.ds-topbar__account[aria-expanded="true"] { background: var(--hdr-hover-strong); }
@media (hover: hover) { .ds-topbar__account:hover { background: var(--hdr-hover-strong); } }
.ds-topbar__avatar {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--radius-pill);
  background: var(--avatar-bg); color: var(--avatar-text); font-size: var(--text-avatar); font-weight: var(--weight-semibold); letter-spacing: 0.02em;
}
.ds-topbar__chevron { opacity: 0.6; }
.ds-theme-toggle__moon { display: none; }
:root[data-theme="light"] .ds-theme-toggle__sun { display: none; }
:root[data-theme="light"] .ds-theme-toggle__moon { display: block; }
/* touch (DESIGN.md 14): the theme button, the bell (36) and the account button (40) keep their look and get a hit area 4 px around them (44 / 48), with the cluster 8 px
   apart, so neighbouring areas touch and never overlap */
@media (pointer: coarse), (max-width: 767px) {
  .ds-topbar__aside { gap: var(--space-2); }
  .ds-topbar__icon::before, .ds-topbar__account::before { content: ""; position: absolute; inset: calc(-1 * var(--space-1)); }
}

/* the domain row (DESIGN.md 10.2): only on the report pages; its look is in the redesign block below --------------------------- */
.ds-context { display: flex; width: calc(100% - 2 * var(--gutter)); max-width: calc(1920px - 2 * var(--gutter)); margin-inline: auto; }
.ds-context__domains { display: flex; min-width: 0; }
/* in-page tab strips (DESIGN.md 8.5): a 36 px row on the strip's 1 px rule, 14/20 500 muted, the current tab 600 with a 2 px accent indicator on the rule */
.ds-section-tab { position: relative; display: inline-flex; align-items: center; min-height: 36px; padding: 0; border: 0; background: none; font-size: var(--text-tab); line-height: 1.43; font-weight: var(--weight-medium); color: var(--color-text-muted); text-decoration: none; white-space: nowrap; cursor: pointer; }
@media (hover: hover) { .ds-section-tab:hover { color: var(--color-text); } }
.ds-section-tab[aria-selected="true"] { color: var(--color-text); font-weight: var(--weight-semibold); }
.ds-section-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 1px; background: var(--color-accent); }
.ds-section-tab:focus-visible { outline-offset: -2px; }   /* inside the tab: a strip that scrolls never clips the ring */
.ds-domain-tab { position: relative; display: inline-flex; align-items: center; gap: var(--space-1); padding: 0 2px; border: 0; background: none; color: var(--color-text); text-decoration: none; white-space: nowrap; cursor: pointer; font-size: var(--text-sm); line-height: var(--lh-body); font-weight: var(--weight-regular); }
.ds-domain-tab[data-locked="true"], .ds-domain-tab[aria-disabled="true"] { color: var(--color-text-muted); }
/* the hit area of a tab reaches past its text (44 px on touch) */
.ds-section-tab::before { content: ""; position: absolute; inset: -6px -4px; }
/* in-page strips: a short tab's hit area grows to the target width (32, 44 on touch), at most 12 px into the 24 px gap, so neighbouring areas touch and never overlap; a longer tab keeps 4 px (DESIGN.md 14) */
.ds-tabstrip .ds-section-tab::before { inset-inline: max(calc(-1 * var(--space-3)), min(calc(-1 * var(--space-1)), calc(50% - var(--target-min) / 2))); }
.ds-domain-tab:focus-visible, .ds-sidebar__item:focus-visible { outline-offset: -2px; }

/* the page heading: the h1, first in main; visible only where nothing else names the page (DESIGN.md 10.3) */
.ds-page-heading { margin: 0 0 var(--space-3); font-size: var(--text-xl); line-height: 1.4; font-weight: var(--weight-semibold); }

/* page grids ------------------------------------------------------------ */
.ds-page { display: grid; gap: var(--card-gap); }
/* the report page fills the viewport below the bars and leaves 24 px at the bottom (DESIGN.md S-02, 9.5; spec 21 5.1): the left column and the chat panel are both --work-h high */
.ds-grid-report { --work-h: max(520px, calc(100dvh - var(--nav-height) - var(--chrome-row, 0px) - var(--content-top) - var(--space-6))); }   /* 48 + 40 + 16 + 24 subtracted at 1440 x 900 */
.ds-grid-report { display: grid; grid-template-columns: minmax(0, 1fr) var(--chat-width); gap: var(--card-gap); align-items: start; }
.ds-grid-report--solo { grid-template-columns: minmax(0, 1fr); }   /* no assistant (a platform administrator in support mode): the report takes the width */

/* workspace frame: frame + sidebar + content panel, no title row (DESIGN.md 10.3) --------------------------- */
/* the frame fills the viewport below the rows above the content and leaves 24 px at the bottom (base.css scroll-padding-top reads --chrome-row too). It is a glass card
   (DESIGN.md 12.00 rule 2), but NOT a stacking context and has no backdrop-filter of its own: the page drawers, menus and popovers inside it are fixed and must stay above
   the top bar; the 20 px blur sits on a layer under the body, which is positioned so it paints over that layer */
.ds-workspace { position: relative; background: var(--card-bg); border-radius: var(--radius-card); box-shadow: var(--card-shadow); padding: var(--space-2); min-height: max(520px, calc(100dvh - var(--nav-height) - var(--chrome-row, 0px) - var(--content-top) - var(--space-6))); display: grid; }
.ds-workspace::before { content: ""; position: absolute; inset: 0; border-radius: inherit; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); pointer-events: none; }
.ds-workspace__body { position: relative; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: stretch; }
.ds-workspace__body > .ds-workspace__nav { grid-column: 1; grid-row: 1; min-width: 0; }   /* <nav aria-label="{area name}"> */
.ds-workspace__body > .ds-panel { grid-column: 2; grid-row: 1 / span 2; }
.ds-workspace__footer { grid-column: 1; grid-row: 2; align-self: end; min-width: 0; }
/* AIS-A532: every row is one line of one fixed height; the tile (20 px icon, 33 px tile), the label and the chevron are centred in it; the group labels and the
   children start at the text column (--sidebar-text-x = the row padding + the tile + the gap) */
.ds-sidebar { --sidebar-text-x: calc(var(--space-2) + 33px + var(--space-2)); display: flex; flex-direction: column; gap: 2px; padding: 0; margin: 0; list-style: none; }
.ds-sidebar__group { margin: var(--space-4) var(--space-2) var(--space-1) var(--sidebar-text-x); font-size: var(--text-xs); line-height: var(--lh-tight); font-weight: var(--weight-semibold); text-transform: uppercase; letter-spacing: var(--tracking-upper); color: var(--color-text-muted); }
.ds-sidebar__item { display: flex; align-items: center; gap: var(--space-2); height: var(--sidebar-item-h); white-space: nowrap; padding: 0 var(--space-2); border-radius: var(--radius-md) 0 0 var(--radius-md); color: var(--color-text); text-decoration: none; font-size: var(--text-sm); line-height: var(--lh-body); font-weight: var(--weight-medium); }
.ds-sidebar__icon { width: 20px; height: 20px; flex: none; }
.ds-sidebar__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }   /* a cut name shows whole in its tooltip (ui.js, data-ellipsis-tip) */
@media (hover: hover) { .ds-sidebar__item:hover { background: var(--chat-hover); } }   /* the frame is glass: surface-hover-1 is ~1.0:1 on it and shows nothing, chat-hover is the glass's own hover (DESIGN.md 8.5, 12.00 rule 6); the current item's rule below wins */
.ds-sidebar__item[aria-current="page"] { position: relative; z-index: 1; margin-right: -1px; background: var(--color-surface-2); font-weight: var(--weight-semibold); }
/* MY NOTIFICATIONS (DESIGN N-19 sidebar-section): a disclosure whose children are inset 20 px with 16 px glyphs; below 1100 px one tab that opens a Menu */
.ds-sidebar__chevron { flex: none; color: var(--color-text-muted); transition: transform var(--dur-fast) var(--ease); }
.ds-sidebar__section[aria-expanded="true"] .ds-sidebar__chevron { transform: rotate(180deg); }
.ds-sidebar__children { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 0; padding: 0; list-style: none; }
.ds-sidebar__children[hidden], .ds-sidebar__menu { display: none; }
.ds-sidebar .ds-popover-anchor:has(> .ds-sidebar__menu) { display: none; }   /* AIS-A535: the anchor of the hidden phone menu left an empty 20 px line above the section (Moja obaveštenja) */
.ds-sidebar__child { margin-inline-start: calc(var(--sidebar-text-x) - var(--space-2)); }   /* its glyph starts at the parent's text, not under its tile (AIS-A532) */
.ds-sidebar__button.ds-sidebar__child { width: calc(100% - var(--sidebar-text-x) + var(--space-2)); }   /* the add item is a button: it fills the row like the links */
.ds-sidebar__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-sidebar__trail { flex: none; margin-inline-start: auto; color: var(--color-warning); }   /* a report whose last scheduled run failed (N-20): shape + hidden text, never colour alone */
.ds-sidebar__child:disabled { color: var(--color-text-disabled); cursor: not-allowed; background: none; }
.ds-sidebar .ds-sidebar__tip { display: flex; }
.ds-sidebar__tip .ds-tooltip { left: calc(var(--sidebar-text-x) - var(--space-2)); transform: none; }   /* opens rightwards from the inset item */
.ds-panel { background: var(--color-surface-2); border-radius: var(--radius-inner); padding: var(--space-5) var(--space-6); min-width: 0; }
.ds-workspace:has(.ds-sidebar > li:first-child > [aria-current="page"]) .ds-panel { border-top-left-radius: 0; }
.ds-panel__cols { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: var(--space-4); align-items: start; }   /* DESIGN.md 5.2 (S-04, S-05, MY SETTINGS) */
.ds-stack { display: flex; flex-direction: column; gap: var(--space-3); }   /* inner cards 12 apart inside a panel (DESIGN.md 5.1) */

/* responsive ------------------------------------------------------------ */
@media (max-width: 980px) { .ds-topbar__tenant { max-width: 140px; } }
@media (max-width: 1279px) {
  .ds-topbar { gap: var(--space-6); }
  .ds-topbar .ds-nav { gap: var(--space-5); }
}
@media (max-width: 1099px) {
  .ds-grid-report { grid-template-columns: minmax(0, 1fr); }
  .ds-context__domains { overflow-x: auto; overflow-y: hidden; }   /* the domain well scrolls sideways inside its box */
  .ds-workspace__body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; }   /* nav row, panel row, footer row: the stretched frame gives its free height to the panel, never to the sidebar row (no band above the panel, DESIGN.md 10.3) */
  .ds-workspace__body > .ds-workspace__nav, .ds-workspace__body > .ds-panel, .ds-workspace__footer { grid-column: auto; grid-row: auto; }
  .ds-sidebar { flex-direction: row; overflow-x: auto; gap: 2px; padding-bottom: 0; }
  .ds-sidebar__item { white-space: nowrap; border-radius: var(--radius-md) var(--radius-md) 0 0; min-height: max(40px, var(--sidebar-item-h)); }
  .ds-sidebar__group { display: none; }
  .ds-sidebar__section, .ds-sidebar__children { display: none; }
  .ds-sidebar__menu { display: flex; }
  .ds-sidebar .ds-popover-anchor:has(> .ds-sidebar__menu) { display: inline-flex; }   /* the phone tab row keeps its anchor as before */
  .ds-panel { border-top-left-radius: var(--radius-inner) !important; padding: var(--space-4); }
  .ds-panel__cols { grid-template-columns: minmax(0, 1fr); }
  .ds-context__domains, .ds-sidebar { scrollbar-width: none; }
  .ds-context__domains::-webkit-scrollbar, .ds-sidebar::-webkit-scrollbar { display: none; }

  /* The rows scroll without a scrollbar, so an edge fade shows that more is off-screen: on the end that still has content (ui.js revealCurrent keeps
     data-more-start / data-more-end current; before it runs the end fade is on). */
  .ds-context__domains, .ds-workspace__nav .ds-sidebar {
    --ds-fade: 28px; --ds-fade-start: 0px; --ds-fade-end: var(--ds-fade);
    -webkit-mask-image: linear-gradient(90deg, transparent, var(--color-text) var(--ds-fade-start), var(--color-text) calc(100% - var(--ds-fade-end)), transparent);
    mask-image: linear-gradient(90deg, transparent, var(--color-text) var(--ds-fade-start), var(--color-text) calc(100% - var(--ds-fade-end)), transparent);
  }
  :is(.ds-context__domains, .ds-workspace__nav .ds-sidebar)[data-more-start="true"] { --ds-fade-start: var(--ds-fade); }
  :is(.ds-context__domains, .ds-workspace__nav .ds-sidebar)[data-more-end="false"] { --ds-fade-end: 0px; }
  .ds-workspace__nav .ds-sidebar:has(.ds-popover) { -webkit-mask-image: none; mask-image: none; }   /* the mask would hide the open MY NOTIFICATIONS menu */
}
@media (max-width: 767px) {
  .ds-topbar__tenant, .ds-topbar__divider { display: none; }   /* the tenant stays named in the sidebar footer */
  .ds-topbar__sections { display: none; }   /* the section tabs are in the account menu */
  .ds-workspace { padding: var(--space-1); }
  .ds-panel { padding: var(--space-3); }
  .ds-page-heading { font-size: var(--text-login); line-height: 1.44; }
}
@media (max-width: 399px) {
  .ds-brand--image { height: 24px; }
  .ds-topbar__demo .ds-icon { display: none; }   /* the badge drops its glyph and keeps the word */
  /* 360 px fits the mark, the badge and the cluster (DESIGN.md 14): a 12 px group gap, and the account button drops its chevron (the 32 px disc in a 44 px pill) */
  .ds-topbar { gap: var(--space-3); }
  .ds-topbar__account { justify-content: center; width: var(--touch-min); padding: 0; }
  .ds-topbar__chevron { display: none; }
}

/* pre-sign-in pages (S-01; spec 10 section 4): login, change password, two-factor, support-mode entry, the mock Microsoft page and the link page - the 440 px card,
   padding 32 (20 on phones), stacked fields 48 high, lg buttons 40 */
.ds-empty-layout { min-height: 100vh; min-height: 100dvh; }
.ds-login { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; gap: 64px; padding: var(--space-5) var(--space-4); }
.ds-login .ds-login__card { width: 440px; max-width: 100%; padding: var(--space-7); }   /* the glass card of the kit (.ds-card): radius 18 at every width */
.ds-login__brand { margin-bottom: var(--space-6); }
.ds-login__heading { margin-bottom: var(--space-2); font-size: var(--text-login); line-height: 1.44; font-weight: var(--weight-semibold); }
.ds-login__helper { margin-bottom: var(--space-6); color: var(--color-text-body); font-size: var(--text-sm); line-height: var(--lh-body); }
.ds-login__heading + :not(.ds-login__helper) { margin-top: var(--space-4); }   /* a card without the helper line: its first field or list starts 24 px below the heading */
.ds-login__form { display: grid; gap: var(--space-3); }
.ds-login__form .ds-btn { margin-top: var(--space-2); }   /* LOGIN 20 px below the second field */
.ds-login__alert { margin-bottom: var(--space-4); }
.ds-login__sso { margin-top: var(--space-4); }
.ds-login__microsoft { margin-top: var(--space-3); }   /* DESIGN S-01: the secondary "Sign in with Microsoft" button sits 12 px below LOGIN */
.ds-login .ds-field--stacked { min-height: 48px; }
.ds-login .ds-field__input { font-size: var(--text-md); }
.ds-identities { display: grid; gap: var(--space-3); margin: 0 0 var(--space-4); padding: 0; list-style: none; }
.ds-btn.ds-identity { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; padding: var(--space-2) var(--space-4); text-align: left; font-weight: var(--weight-regular); }
.ds-btn.ds-identity strong { font-weight: var(--weight-semibold); font-size: var(--text-sm); }
.ds-btn.ds-identity span { color: var(--color-text-muted); font-size: var(--text-xs); font-weight: var(--weight-regular); }

@media (max-width: 1099px) {
  .ds-login { flex-direction: column; gap: var(--space-5); padding: var(--space-8) var(--space-4) var(--space-6); }
}
@media (max-width: 767px) {
  .ds-login .ds-login__card { padding: var(--space-5); }
}

/* shell parts added by the shell ticket ----------------------------------------------------------------------- */
.ds-scroll-locked { overflow: hidden; }
.ds-brand-link { position: relative; display: flex; flex: none; border-radius: var(--radius-xs); }
.ds-brand-link::before { content: ""; position: absolute; inset: min(0px, calc(50% - 16px)); }   /* the 30 px mark keeps its look and gets a 32 px target on a fine pointer ... (DESIGN.md 14, rule 2) */
@media (pointer: coarse), (max-width: 767px) { .ds-brand-link::before { content: ""; position: absolute; inset: min(0px, calc(50% - 22px)); } }   /* ... and a 44 px target under touch and below 768 px */
.ds-support-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-2) var(--space-5); padding: var(--space-2) var(--gutter); background: var(--tint-warning); color: var(--color-warning); font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.ds-support-banner form { margin: 0; }
.ds-support-banner__notice { flex-basis: 100%; text-align: center; }
.ds-sidebar__item .ds-count { flex: none; }
.ds-sidebar__button { width: 100%; border: 0; background: none; text-align: left; cursor: pointer; font-family: inherit; }
.ds-sidebar-footer { margin-top: var(--space-4); }
.ds-sidebar-footer__who { display: grid; gap: 2px; margin: 0 var(--space-2) var(--space-2); font-size: var(--text-xs); color: var(--color-text-muted); }
.ds-sidebar-footer__who span:first-child { color: var(--color-text); font-weight: var(--weight-semibold); }
.ds-lang { display: flex; align-items: center; gap: var(--space-2); margin: var(--space-2) 0 0; font-size: var(--text-xs); color: var(--color-text-muted); }
.ds-lang a { display: inline-flex; align-items: center; justify-content: center; min-width: var(--target-min); min-height: var(--target-min); padding-inline: var(--space-1); color: var(--color-text-muted); text-decoration: none; }
.ds-lang a[aria-current="true"] { color: var(--color-text); }
@media (hover: hover) { .ds-lang a:hover { color: var(--color-text); } }
.ds-lang a[aria-current="true"] { font-weight: var(--weight-bold); }

/* mobile navigation drawer: 44 px rows with 20 px icons, never the DEMO PODACI badge */
/* the account menu (redesign 2026-11): it opens from the account button on the right of the bar, so it slides in from the right */
.ds-scrim.ds-scrim--drawer { place-items: stretch end; padding: 0; z-index: var(--z-drawer); }
.ds-nav-drawer { width: min(88vw, 360px); height: 100%; overflow-y: auto; padding: var(--space-3) var(--space-3) var(--space-6); background: var(--color-surface-1); box-shadow: var(--shadow-overlay); animation: ds-slide var(--dur-slow) var(--ease); }
/* the section tabs are in the bar from 768 px; the menu repeats them only on phones */
@media (min-width: 768px) { .ds-nav-drawer__list > li:has(> a:is([data-testid="navdrawer-ai-power-bi"], [data-testid="navdrawer-assistant"], [data-testid="navdrawer-dynamic-pricing"])) { display: none; } }
.ds-nav-drawer__head { display: flex; justify-content: flex-end; }
.ds-nav-drawer__list { display: grid; gap: var(--space-1); margin: 0; padding: 0; list-style: none; }
.ds-nav-drawer__list form { margin: 0; }
.ds-nav-drawer__item { display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: var(--touch-min); padding: 0 var(--space-3); border: 0; border-radius: var(--radius-md); background: none; color: var(--color-text); font-family: inherit; font-size: var(--text-sm); font-weight: var(--weight-medium); line-height: var(--lh-body); text-align: left; text-decoration: none; cursor: pointer; }   /* ZADATAK 11 (14:09): sentence case like the menus ("Nalog", "Odjava") */
.ds-nav-drawer__item > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-nav-drawer__item .ds-count { margin-left: auto; }
.ds-nav-drawer__divider { height: 1px; margin: var(--space-2) var(--space-3); background: var(--color-border-subtle); }   /* the line before Odjava */
.ds-nav-drawer .ds-lang { margin: var(--space-4) 0 0 var(--space-3); }
@media (hover: hover) { .ds-nav-drawer__item:hover { background: var(--color-surface-hover-1); } }

/* reconnect dialog and framework error bar */
.ds-reconnect { max-width: min(420px, calc(100vw - 32px)); padding: var(--space-6); border: 0; border-radius: var(--radius-card); background: var(--card-bg); color: var(--color-text); box-shadow: var(--card-shadow); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); text-align: center; }   /* a glass card (DESIGN.md 12.00 rule 2); nothing inside it is fixed, so the blur may sit on the dialog */
.ds-reconnect::backdrop { background: var(--color-scrim); }
.ds-reconnect__body { display: grid; justify-items: center; gap: var(--space-3); }
.ds-reconnect__body p { margin: 0; }
.ds-reconnect .components-rejoining-animation, .ds-reconnect .components-reconnect-first-attempt-visible, .ds-reconnect .components-failed-visible,
.ds-reconnect .components-pause-visible, .ds-reconnect .components-resume-failed-visible { display: none; }
.ds-reconnect.components-reconnect-show .components-rejoining-animation, .ds-reconnect.components-reconnect-show .components-reconnect-first-attempt-visible,
.ds-reconnect.components-reconnect-failed .components-failed-visible, .ds-reconnect.components-reconnect-paused .components-pause-visible,
.ds-reconnect.components-reconnect-resume-failed .components-resume-failed-visible { display: block; }
.ds-reconnect.components-reconnect-failed button.components-failed-visible, .ds-reconnect.components-reconnect-paused button.components-pause-visible { display: inline-flex; }
#blazor-error-ui { display: none; position: fixed; right: 0; bottom: 0; left: 0; z-index: var(--z-toast); align-items: center; gap: var(--space-4); padding: var(--space-3) var(--space-5); background: var(--tint-negative); color: var(--color-negative); font-size: var(--text-sm); }
#blazor-error-ui .dismiss { margin-inline-start: auto; min-width: var(--touch-min); min-height: var(--touch-min); border: 0; background: none; color: inherit; font-size: var(--text-lg); cursor: pointer; }

/* report page shell: report column, interim assistant column (21 section 5) ----------------------------------------------- */
.ds-report-switch { display: none; }
.ds-report-col, .ds-report-aside { min-width: 0; }
.ds-report-toolbar { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: flex-end; gap: var(--space-2) var(--space-5); margin-bottom: var(--space-3); }   /* the meta line on the right, 12 px above the frame */
@media (min-width: 1100px) {
  /* the column is --work-h high like the chat panel, so a banner takes room from the frame and the page itself does not scroll */
  .ds-grid-report > .ds-report-col { display: flex; flex-direction: column; height: var(--work-h); }
  .ds-grid-report > .ds-report-col > .ds-report.ds-report--page { flex: 1 1 0; height: auto; min-height: 240px; }
  .ds-grid-report > .ds-report-col > .ds-embed { flex: 1 1 0; height: auto; min-height: 0; }
}
.ds-report-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--space-2) var(--space-3); min-height: var(--control-h-md); font-size: var(--text-sm); color: var(--color-text-muted); }
.ds-report-meta .ds-tooltip { left: auto; right: 0; transform: none; }   /* the live badge sits at the right end of the meta line: its tooltip opens leftwards */
.ds-report-col > .ds-alert { margin-bottom: var(--space-3); }
.ds-report-col > .ds-banner { margin-bottom: var(--space-2); }   /* DESIGN 9.5: banners 8 px apart and 8 px above the frame */
@media (max-width: 1099px) {
  .ds-report.ds-report--page { height: auto; min-height: 520px; max-height: none; }
}
/* the Delta layout (DESIGN S-03, spec 66 section 8.4): AIS-A536 - the report grid with the same sizes, "›" and separator as every tool (from 1100 px; the first Delta
   opens the chat wide while the user has set no width); the report card takes the column height left under the dimension tiles (AIS-V823: it flexes like the frame of every other tool, at least 240 px, no gap above the tiles). Below 1100 px
   the columns stack and the report collapses to a 40 px bar on report-frame; collapsed, the frame is parked (still in the DOM, the embed stays loaded, spec 27 9.7) */
.ds-report-collapse { display: none; }
@media (min-width: 1100px) {
  .ds-report-col[data-tool="delta"] > .ds-embed > .ds-embed__frame { min-height: 240px; }   /* flex: 1 1 auto of the base frame fills the embed, the embed fills the column above the picker; only the 520 px floor of the base rule is lowered */
}
@media (max-width: 1099px) {
  .ds-grid-report--delta { grid-template-columns: minmax(0, 1fr); }
  .ds-report-collapse { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: var(--control-h-lg); margin-bottom: var(--space-2); padding: var(--space-1) var(--space-1) var(--space-1) var(--space-4); border-radius: var(--radius-xl); background: var(--color-report-frame); }
  .ds-report-collapse__title { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--color-text); }
  .ds-report-col[data-frame="collapsed"] > .ds-embed > .ds-embed__frame { flex: none; height: 0; min-height: 0; overflow: hidden; visibility: hidden; }
  /* the light theme's band ends above the collapsed report (as on phones), so the prompt and the tiles stand on the page, not on the band */
  :root:has(.ds-report-col[data-frame="collapsed"]) .ds-app::before { height: calc(var(--nav-height) + var(--chrome-row) + var(--content-top)); }
}
@media (max-width: 767px) { .ds-grid-report--delta { row-gap: 0; } }
@media (max-width: 767px) {
  .ds-report-switch { display: block; position: sticky; top: 0; z-index: var(--z-sticky); padding-block: var(--space-2); background: var(--color-bg); }
  .ds-report-switch .ds-segmented { display: flex; }
  .ds-report-switch .ds-segmented__item { flex: 1; min-height: calc(var(--touch-min) - 6px); }   /* the switch is 44 high with the well's 3 px inset */
  /* the view that is not shown is parked, never display: none: the embedded report would reload (spec 27 9.7); ToolWorkspace makes it inert */
  [data-active-view="report"] > [data-panel="assistant"], [data-active-view="assistant"] > [data-panel="report"] { height: 0; min-height: 0; overflow: hidden; visibility: hidden; }
  .ds-grid-report { row-gap: 0; }
  /* the report view: the frame fills the screen below the switch (DESIGN 14.1); the report scrolls inside it */
  .ds-report-col > .ds-embed > .ds-embed__frame { height: calc(100dvh - var(--switch-h)); min-height: 0; }
}

/* the chat panel in the report page column (36 section 3.1): as tall as the report column (--work-h), the log scrolls inside */
@media (min-width: 1100px) { .ds-report-aside > .ds-chat { height: var(--work-h); min-height: 0; } }
@media (max-width: 1099px) { .ds-report-aside > .ds-chat { height: min(720px, 85dvh); min-height: 0; } }
/* phones: the assistant view is a sheet as tall as the screen below the sticky switch (8 + 44 + 8; ToolWorkspace scrolls the page to it after a tool press), the input sits at its bottom above the safe area */
.ds-report-page { --switch-h: 60px; }
@media (max-width: 767px) {
  .ds-report-aside > .ds-chat { height: calc(100vh - var(--switch-h)); height: calc(100dvh - var(--switch-h)); min-height: 0; }
  .ds-report-aside { scroll-margin-top: calc(var(--switch-h) - var(--nav-height) - var(--chrome-row, 0px) - var(--content-top)); }   /* cancels the scroll padding of the page and leaves the switch above the sheet */
}

/* the assistant page (SC-09, 36 section 3.11): the conversation list (260) and the chat in the content panel of the workspace */
.ds-assistant { display: grid; grid-template-columns: 260px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: var(--space-4); flex: 1 1 0px; min-height: 480px; }
@media (min-width: 1100px) and (max-width: 1599px) { .ds-assistant { grid-template-columns: 248px minmax(0, 1fr); } }   /* AIS-A542: with the 272 px menu the chat keeps its 760 px column at 1440 (the debug grid below, later, keeps its own tracks) */
.ds-assistant__list, .ds-assistant__main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ds-assistant__bar, .ds-assistant .ds-assistant__history { display: none; }
.ds-assistant__main > .ds-empty { padding-block: var(--space-7); }
/* the content panel fills the frame down to the page's 24 px bottom margin: it is a column, at least --chat-h high (its content box), of the weekly-brief banner (when shown) and the
   assistant; the chat and the list take what the banner leaves, so the banner takes its room from the log and not from the page. The page does not scroll, the log scrolls inside
   (DESIGN.md 10.3, 14.1, N-01). The assistant never gets shorter than 480 (420 on phones): on a screen too short for the banner and that, the panel grows and the page scrolls. */
.ds-panel:has(.ds-assistant) { --chat-h: max(480px, calc(100dvh - var(--nav-height) - var(--chrome-row, 0px) - var(--content-top) - var(--space-6) - 2 * var(--space-2) - 2 * var(--space-5))); display: flex; flex-direction: column; box-sizing: content-box; min-height: var(--chat-h); }
.ds-assistant .ds-chat, .ds-assistant .ds-convlist { flex: 1; min-height: 0; }
/* AIS-A533: folded, the list is a 56 px rail and the chat takes the rest; the chat's ☰ (its own drawer of the same list) only where the list column is not shown */
.ds-assistant:has(.ds-assistant__list .ds-convlist--rail) { grid-template-columns: 56px minmax(0, 1fr); }
.ds-assistant .ds-chat__history-btn { display: none; }
.ds-assistant .ds-chat__new { display: none; }   /* AIS-A534: "Novi razgovor" is the history panel's while the panel (or its rail) shows */
@media (max-width: 1099px) {
  .ds-assistant { grid-template-columns: minmax(0, 1fr); }
  .ds-assistant:has(.ds-assistant__list .ds-convlist--rail) { grid-template-columns: minmax(0, 1fr); }
  .ds-assistant .ds-chat__history-btn { display: inline-grid; }
  .ds-assistant .ds-chat__new { display: inline-grid; }
  .ds-assistant__list { display: none; }
  .ds-assistant__bar { display: block; margin-bottom: var(--space-3); }
  .ds-assistant .ds-assistant__history { display: inline-flex; }
}
@media (max-width: 1099px) {
  .ds-panel:has(.ds-assistant) { --chat-h: max(480px, calc(100dvh - var(--nav-height) - var(--chrome-row, 0px) - var(--content-top) - var(--space-6) - 2 * var(--space-2) - max(40px, var(--sidebar-item-h)) - 2 * var(--space-4))); }   /* the sidebar is the tab row above the panel */
}
/* phones: the chat is a sheet that fills the screen below the top bar, the context row and the sidebar tabs, so they stay in view (the page is never scrolled to the sheet); its log scrolls,
   the input sits at the bottom of the screen above the safe area, the context chips are one scrolling row */
@media (max-width: 767px) {
  .ds-workspace:has(.ds-assistant) { padding: var(--space-2); }
  .ds-panel:has(.ds-assistant) { --chat-h: max(420px, calc(100dvh - var(--nav-height) - var(--chrome-row, 0px) - var(--content-top) - var(--space-2) - var(--sidebar-item-h) - var(--space-2))); padding: var(--space-2); }
  .ds-assistant { min-height: 420px; }
  .ds-assistant .ds-chat { padding-inline: var(--space-3); }
  .ds-assistant .ds-chat__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .ds-assistant .ds-chat__chips > li { flex: none; }
  .ds-assistant .ds-chat__info .ds-chat__chips { flex-wrap: wrap; overflow: visible; }   /* inside the info tip the chips wrap */
}

/* the docked debug panel (DESIGN.md 5.2, N-18; spec 39 9.2, 9.4): from 1280 px one more track right of the chat panel; the report column takes the rest and stays the same
   element in the same place (resized, never re-created). Below 1280 nothing here applies: the panel is a view of the chat panel's message area. */
@media (min-width: 1280px) {
  .ds-grid-report--debug { grid-template-columns: minmax(0, 1fr) var(--chat-width) var(--debug-panel-w); }
  .ds-grid-report--debug .ds-debug-panel { height: var(--work-h); }   /* as tall as the chat panel */
  .ds-assistant--debug { grid-template-columns: 260px minmax(0, 1fr) var(--debug-panel-w); }
  .ds-assistant--debug:has(.ds-assistant__list .ds-convlist--rail) { grid-template-columns: 56px minmax(0, 1fr) var(--debug-panel-w); }   /* the assistant page: inside the content panel, right of the chat */
  :is(.ds-grid-report--debug, .ds-assistant--debug) .ds-debug-panel { animation: ds-slide var(--dur-slow) var(--ease); }   /* slides in 24 px with a fade */
}
/* the assistant page below 1600 px: while the panel is open the conversation list folds behind its "Razgovori" button */
@media (min-width: 1280px) and (max-width: 1599px) {
  .ds-assistant--debug { grid-template-columns: minmax(0, 1fr) var(--debug-panel-w); }
  .ds-assistant--debug .ds-assistant__list { display: none; }
  .ds-assistant--debug .ds-assistant__history { display: inline-flex; }
  .ds-assistant--debug .ds-chat__history-btn { display: inline-grid; }   /* AIS-A533: the chat's ☰ opens the folded list */
}
@media (prefers-reduced-motion: reduce) {
  :is(.ds-grid-report--debug, .ds-assistant--debug) .ds-debug-panel { animation: none; }   /* opening is instant */
}


/* ==== redesign 2026-11: domain sub-tabs, report card ==================================================================================== */
/* the domain tabs are the sub-tabs of the Power BI reports: a segmented well under the top bar, on the left, with the selected domain as a raised pill */
.ds-context { align-items: center; }
.ds-context__domains {
  align-items: center; gap: 2px; padding: var(--space-1); border-radius: var(--radius-xl);
  background: var(--well-bg); box-shadow: var(--well-shadow);
}
/* 32 px tabs in the 40 px well; 44 px in a 52 px well under a coarse pointer and on phones (DESIGN.md 14), each tab its own target */
.ds-domain-tab {
  height: var(--target-min); padding: 0 var(--space-4); border-radius: var(--radius-seg); color: var(--color-text-muted); font-size: var(--text-domain-tab);
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.ds-domain-tab::before { content: ""; position: absolute; inset: 0; }
.ds-domain-tab[aria-selected="true"] { background: var(--pill-bg); color: var(--pill-text); font-weight: var(--weight-medium); box-shadow: var(--pill-shadow); }
@media (hover: hover) {
  .ds-domain-tab:hover { color: var(--color-text); }
}
@media (max-width: 1099px) {
  .ds-context__domains { max-width: 100%; }
}

/* the report sits in a card of its own colour (the report frame), fitted whole by the embed, with soft depth (its radius 18 is set in components.css) */
.ds-embed__frame { box-shadow: var(--report-shadow); }

/* the context row's title (the kicker and the selected domain) on the left, the report's data line on the right */
.ds-context { gap: var(--space-4); padding-top: var(--space-5); }
/* the height the row reserves (--chrome-row): 20 px above the well (the tab + 8) and a few px more, so 68 (80 under touch); below 1100 the data line wraps under the title and
   the well, so 96 (108 under touch and on phones, where the title is hidden and the well is 52) */
:root:has(.ds-context) { --chrome-row: calc(var(--target-min) + 36px); }
.ds-context__title { display: flex; flex-direction: column; gap: 2px; margin-inline-end: var(--space-2); min-width: 0; }
.ds-context__kicker { font-size: var(--text-kicker); line-height: 1.5; font-weight: var(--weight-semibold); letter-spacing: var(--tracking-kicker); text-transform: uppercase; color: var(--hdr-subtle); }
.ds-context__name { font-size: var(--text-xl); line-height: 1.2; font-weight: var(--weight-semibold); letter-spacing: -0.02em; color: var(--hdr-text); white-space: nowrap; }
.ds-context__meta { margin-inline-start: auto; min-width: 0; }
.ds-context__meta:empty { display: none; }
.ds-context__meta .ds-report-meta { min-height: 0; gap: var(--space-2); font-size: var(--text-xs); color: var(--hdr-muted); }
@media (max-width: 1099px) {
  .ds-context { flex-wrap: wrap; row-gap: var(--space-2); }
  :root:has(.ds-context) { --chrome-row: calc(var(--target-min) + 64px); }
  .ds-context__meta { flex-basis: 100%; margin-inline-start: 0; }
  .ds-context__meta .ds-report-meta { justify-content: flex-start; }
}
@media (max-width: 767px) {
  .ds-context__title { display: none; }   /* the phone keeps the tabs; the selected tab names the domain */
}

/* the chat width beside the report (from 1100 px): narrow (the dragged width or --chat-width), wide, or over the whole workspace with the report column hidden
   but kept in the DOM (spec 27 9.7); a dragged width is a share of the workspace (chat-resize.js), so it scales with the window, and never takes more than 65 %;
   the defaults grow with very wide screens (24 % / 40 % of the workspace) */
.ds-report-aside { position: relative; }
.ds-chat-resizer { display: none; }
@media (min-width: 1100px) {
  .ds-grid-report[data-chat-size="compact"] { grid-template-columns: minmax(0, 1fr) min(var(--chat-w-compact, max(var(--chat-width), 24%)), 65%); }
  .ds-grid-report[data-chat-size="wide"] { grid-template-columns: minmax(0, 1fr) min(var(--chat-w-wide, max(clamp(480px, 40vw, 720px), 40%)), 65%); }
  .ds-grid-report[data-chat-size="full"] { grid-template-columns: 0 minmax(0, 1fr); column-gap: 0; }
  .ds-grid-report[data-chat-size="full"] > .ds-report-col { visibility: hidden; overflow: hidden; pointer-events: none; }
  .ds-grid-report[data-chat-size] .ds-chat-resizer {
    position: absolute; top: 0; bottom: 0; left: calc(-1 * var(--card-gap)); z-index: 1; width: var(--card-gap);
    display: flex; align-items: center; justify-content: center; cursor: col-resize; touch-action: none; border-radius: var(--radius-md);
  }
  .ds-grid-report[data-chat-size="full"] .ds-chat-resizer { display: none; }
  .ds-chat-resizer::before { content: ""; width: 3px; height: 40px; border-radius: var(--radius-xs); background: var(--chat-grip); transition: background-color var(--dur-fast) var(--ease), height var(--dur-fast) var(--ease); }
  .ds-chat-resizer:focus-visible::before, .ds-resizing .ds-chat-resizer::before { height: 64px; background: var(--color-primary-text); }
  .ds-chat-resizer:focus-visible { outline-offset: -2px; }
}
@media (min-width: 1100px) and (hover: hover) { .ds-chat-resizer:hover::before { height: 64px; background: var(--color-primary-text); } }
@media (min-width: 1280px) {
  .ds-grid-report--debug[data-chat-size="compact"] { grid-template-columns: minmax(0, 1fr) min(var(--chat-w-compact, max(var(--chat-width), 24%)), 50%) var(--debug-panel-w); }
  .ds-grid-report--debug[data-chat-size="wide"] { grid-template-columns: minmax(0, 1fr) min(var(--chat-w-wide, max(clamp(480px, 40vw, 720px), 40%)), 50%) var(--debug-panel-w); }
  .ds-grid-report--debug[data-chat-size="full"] { grid-template-columns: 0 minmax(0, 1fr) var(--debug-panel-w); column-gap: 0; }
  .ds-grid-report--debug[data-chat-size="full"] > .ds-debug-panel { margin-inline-start: var(--card-gap); }
}
.ds-resizing, .ds-resizing * { cursor: col-resize !important; -webkit-user-select: none; user-select: none; }
.ds-resizing iframe { pointer-events: none; }   /* the report's iframe would swallow the drag */

/* the indigo band of the light theme (--canopy; none in the dark theme) behind the top bar, and on the report pages behind the context row too, deep enough that
   the cards rise out of it; on phones it ends above the report switch. A support or impersonation banner sits above the top bar, so the band starts at the bar
   (anchor positioning; a browser without it keeps top 0) */
.ds-app { position: relative; }
.ds-topbar { anchor-name: --ds-topbar; }
.ds-app::before { content: ""; position: absolute; inset: 0 0 auto; top: anchor(--ds-topbar top, 0px); z-index: -1; height: var(--nav-height); background: var(--canopy); pointer-events: none; }
:root:has(.ds-context) .ds-app::before { height: 310px; }
@media (max-width: 767px) { :root:has(.ds-context) .ds-app::before { height: calc(var(--nav-height) + var(--chrome-row) + var(--content-top)); } }

/* ==== motion (AIS-516, D-20261107-motion-animations): js/motion-fx.js moves transform, opacity, filter and clip-path only; never the report ============== */
[hidden] { display: none !important; }

/* the splash of the first signed-in page of the session: the logo on the page ground; it takes clicks only while the script runs it (mm-splash--live), and CSS
   hides it on its own after 4.5 s (AIS-526) should the script never come. AIS-517: the logo's own dot is masked off (in bce-logo.png and bce-logo-dark.png, 260 x 96, the
   letters end at x 221 and the dot sits at x 225-259, y 61-95) and a separate brand dot sits on its place, so it can pop, hop and fly to the chat. */
.mm-splash {
  position: fixed; inset: 0; z-index: calc(var(--z-nav) + 100); display: grid; place-items: center; pointer-events: none;
  background: radial-gradient(600px 400px at 50% 45%, color-mix(in srgb, var(--color-primary) 16%, transparent), transparent 70%), var(--color-bg);
  animation: mm-splash-failsafe 0.4s ease 4.5s forwards;
}
.mm-slogo { position: relative; width: 150px; max-width: 40vw; aspect-ratio: 260 / 96; }
.mm-slogo img { width: 100%; height: auto; clip-path: inset(0 13.5% 0 0); filter: var(--splash-logo-glow); }
.mm-sdot {
  position: absolute; left: 93.1%; top: 81.2%; width: 13.5%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: var(--brand-dot); box-shadow: var(--brand-dot-glow-splash);
}
.mm-splash__skip { position: absolute; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); color: var(--splash-skip); font-size: var(--text-micro); letter-spacing: 0.08em; }
.mm-splash--live { pointer-events: auto; cursor: pointer; animation: none; }
@keyframes mm-splash-failsafe { to { opacity: 0; visibility: hidden; } }

/* the brand dot in flight (splash -> chat avatar, send -> thinking dot) and its greeting at the avatar: elements of motion-fx.js on <body>, never in the way of a click */
.mm-fly {
  position: fixed; left: 0; top: 0; z-index: calc(var(--z-nav) + 200); width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; pointer-events: none;
  background: var(--brand-dot); box-shadow: var(--brand-dot-glow-fly);
}
.mm-dot-hi {
  position: fixed; z-index: calc(var(--z-nav) + 150); padding: 7px 12px; border-radius: 12px 12px 12px 4px; font-size: var(--text-xs); white-space: nowrap; pointer-events: none;
  color: var(--brand-dot-hi-fg); background: var(--brand-dot-hi-bg); box-shadow: var(--brand-dot-hi-shadow);
}

/* AIS-518, the dot's scenes (motion-fx.js, elements on <body>, never in the way of a click): a ring out of a point, the "z" of the sleeping dot, the toast that
   comes down from the bell with a new notification, and the layer over the empty report frame while the report loads (the frame and the iframe are untouched) */
.mm-ring { position: fixed; left: 0; top: 0; z-index: calc(var(--z-nav) + 150); border-radius: 50%; border: 1.5px solid var(--brand-dot-ring); pointer-events: none; }
.mm-z { position: fixed; left: 0; top: 0; z-index: calc(var(--z-nav) + 150); color: var(--brand-dot-z); line-height: 1; pointer-events: none; }
.mm-toast {
  position: fixed; left: 0; top: 0; z-index: var(--z-toast); display: flex; gap: var(--space-2); align-items: flex-start; width: min(260px, calc(100vw - 16px)); padding: var(--space-3);
  border-radius: var(--radius-xl); background: var(--color-surface-1); box-shadow: var(--shadow-overlay); color: var(--color-text-muted); font-size: var(--text-xs); pointer-events: none;
}
.mm-toast b { display: block; color: var(--color-text); font-weight: var(--weight-semibold); }
.mm-toast__dot { flex: none; width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; background: var(--brand-dot); box-shadow: var(--brand-dot-glow); }
.mm-load { position: fixed; left: 0; top: 0; z-index: calc(var(--z-sticky) - 1); overflow: hidden; pointer-events: none; }
.mm-load__scan { position: absolute; left: 0; right: 0; top: 58%; height: 2px; border-radius: 2px; background: var(--brand-dot-scan); }
.mm-load__dot { position: absolute; left: 0; top: calc(58% - 7px); width: 14px; height: 14px; border-radius: 50%; background: var(--brand-dot); box-shadow: var(--brand-dot-glow); }
.mm-load__text { position: absolute; left: 0; right: 0; top: 66%; color: var(--color-text-muted); font-size: var(--text-micro); letter-spacing: 0.04em; text-align: center; }   /* a dark island (tokens.css): the dark text-muted on the report frame in both themes */
.ds-topbar__icon svg { transform-origin: 50% 3px; }

/* AIS-520: the sign-in button while the browser waits for the answer: "Prijavljujem…" and the brand dot hopping beside it instead of the spinner; the dot
   that flies from the logo into it; the layer that puts the app out of focus while the dot greets in the middle of the screen, and the greeting there */
.ds-btn.mm-signing[aria-busy="true"] { gap: 10px; color: var(--color-on-primary); }
.ds-btn.mm-signing[aria-busy="true"]::after { display: none; }
.mm-bdot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--brand-dot-button); box-shadow: var(--brand-dot-button-glow); }
.mm-lfly { position: fixed; left: 0; top: 0; z-index: calc(var(--z-toast) + 10); border-radius: 50%; pointer-events: none; background: var(--brand-dot); box-shadow: var(--brand-dot-glow-fly); }
.mm-focus {
  position: fixed; inset: 0; z-index: calc(var(--z-nav) + 140); pointer-events: none; opacity: 0;
  -webkit-backdrop-filter: blur(10px) saturate(0.8); backdrop-filter: blur(10px) saturate(0.8); background: var(--focus-veil);
}
.mm-hello {
  position: fixed; left: 0; top: 0; z-index: calc(var(--z-nav) + 160); padding: var(--space-3) var(--space-4); border-radius: var(--radius-card) var(--radius-card) var(--radius-card) var(--radius-chip); font-size: var(--text-lg); font-weight: var(--weight-medium);
  white-space: nowrap; pointer-events: none; color: var(--brand-dot-hi-fg); background: var(--brand-dot-hi-bg); box-shadow: var(--brand-dot-hi-shadow);
}
@media (max-width: 639px) { .mm-hello { border-radius: var(--radius-card); font-size: var(--text-md); } }

/* the moving line under the current section tab and the moving pill under the selected domain (the items' own line and pill stand down while it runs) */
.ds-topbar__sections, .ds-context__domains { position: relative; }
.mm-indicator { position: absolute; top: 0; left: 0; z-index: 0; opacity: 0; pointer-events: none; }
.ds-topbar__sections.mm-ind .ds-topbar__tab[aria-current]::after { display: none; }
.ds-topbar__sections .mm-indicator::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--color-primary); box-shadow: 0 0 12px var(--color-primary);
}
.ds-context__domains .mm-indicator { border-radius: 9px; background: var(--pill-bg); box-shadow: var(--pill-shadow); }
.ds-context__domains .ds-domain-tab { z-index: 1; }
.ds-context__domains.mm-ind .ds-domain-tab[aria-selected="true"] { background: transparent; box-shadow: none; }

/* AIS-523, the section switch: the old view fades out with a blur (0.25 s) and the new one shows at once beneath it, where js/motion-fx.js rebuilds it; the name
   exists only during the switch */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
.mm-vt-section .ds-main { view-transition-name: work; }
.mm-vt-section::view-transition-old(work) { animation: mm-vt-out 0.25s cubic-bezier(.4, 0, 1, 1) both; mix-blend-mode: normal; }
.mm-vt-section::view-transition-new(work) { animation: none; opacity: 1; mix-blend-mode: normal; }
@keyframes mm-vt-out { to { opacity: 0; transform: scale(.985); filter: blur(10px); } }
/* the band of light of the rebuild (over the work area, never inside the report) and the glow behind the content that drifts toward the section */
.ds-main { position: relative; }
.mm-sweep { position: absolute; inset: 0; z-index: 6; overflow: hidden; pointer-events: none; }
.mm-sweep__band { position: absolute; top: 0; bottom: 0; left: 0; width: 60%; opacity: 0; background: var(--sweep-band); filter: blur(10px); }
.mm-aura { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.mm-aura__blob { position: absolute; left: 10%; top: 8%; width: 70vw; height: 70vh; border-radius: 50%; background: var(--aura); filter: blur(20px); }
/* the green ring where a main action is pressed (on <body>, gone after 0.55 s) */
.mm-cring {
  position: fixed; left: 0; top: 0; z-index: calc(var(--z-toast) + 20); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  border: 1.5px solid var(--brand-dot-ring); pointer-events: none;
}

/* AIS-517, the brand dot of the chat: idle it breathes; while an answer is on its way it hops with a squash and a ring ripples out of it, and the composer's edge
   breathes. The glow behind the chat drifts slowly. The bell's count pops in. */
.ds-chat__orb::before { animation: mm-idle 3.2s ease-in-out infinite; }
.ds-chat[data-busy] .ds-chat__orb::before { animation: ds-hop 0.9s cubic-bezier(.3, 0, .3, 1) infinite; }
.ds-chat[data-busy] .ds-chat__orb::after { animation: mm-ripple 1.2s ease-out infinite; }
/* AIS-518: asleep while the connection is down (gray, slow breathing; the subtitle gives way to chat.offline); listening, the dot follows the voice (--mm-amp) */
.ds-chat__offline { display: none; }
:root[data-mm-conn="down"] .ds-chat__subtitle { display: none; }
:root[data-mm-conn="down"] .ds-chat__offline { display: block; }
:root[data-mm-conn="down"] .ds-chat__orb::before { background: var(--brand-dot-sleep); box-shadow: var(--brand-dot-sleep-glow); animation: mm-sleep 3.4s ease-in-out infinite; }
@keyframes mm-sleep { 50% { transform: scale(0.86); opacity: 0.7; } }
.ds-chat:is([data-voice="listening"], [data-voice="hearing"]) .ds-chat__orb::before {
  animation: none; transform: scale(calc(1 + var(--mm-amp, 0) * 0.55)); box-shadow: var(--brand-dot-glow-strong); transition: transform 0.1s linear;
}
.ds-chat:is([data-voice="listening"], [data-voice="hearing"]) .ds-voice-orb { transform: scale(calc(1 + var(--mm-amp, 0) * 0.15)); transition: transform 0.1s linear; }
@keyframes mm-idle { 50% { transform: scale(1.12); box-shadow: var(--brand-dot-glow-strong); } }
@keyframes mm-ripple { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(2.6); } }
.ds-chat::before { animation: mm-drift 9s ease-in-out infinite alternate; }
@keyframes mm-drift { to { transform: translate(-60px, 40px) scale(1.15); } }
.ds-chat[data-busy] .ds-composer { background-size: 200% 200%; animation: mm-breathe 1.6s ease-in-out infinite; }
@keyframes mm-breathe { 50% { box-shadow: var(--composer-ring-breathe); background-position: 100% 100%; } }
.ds-topbar__count { animation: mm-count-in 0.45s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes mm-count-in { from { opacity: 0; transform: scale(0); } }

/* a press gives way a little (the tool cards: components.css; the suggestions are not lifted on hover - their block clips to whole rows) */
.ds-chat .ds-chat__prompts .ds-chip--prompt { transition: transform 0.2s var(--ease), background-color 0.2s var(--ease); }
:is(.ds-icon-btn, .ds-send, .ds-chip--prompt):active { transform: scale(0.97); }

/* the light that runs once around the report card when the domain or the report changes: a ring on the card's own pseudo-element (motion-fx.js sweepReport
   moves a band of it with clip-path); the report frame and the Power BI iframe inside are never touched, and it takes no click */
.ds-embed::after {
  content: ""; position: absolute; inset: 0; z-index: 3; padding: 1.5px; border-radius: var(--radius-xl); pointer-events: none; opacity: 0;
  background: var(--report-sweep); -webkit-mask: var(--mask-fill) content-box, var(--mask-fill); -webkit-mask-composite: xor; mask-composite: exclude;
}

/* reduced motion is gentle, not dead: nothing moves or flies and there is no splash logo; the ground of the first page fades away (0.3 s, motion-fx.js) and an
   answer fades in; the brand dot stands still but is there */
@media (prefers-reduced-motion: reduce) {
  .mm-splash { animation: mm-splash-failsafe 0.3s ease 1.5s forwards; }
  .mm-slogo, .mm-splash__skip { display: none; }
  .mm-vt-section .ds-main { view-transition-name: none; }
  .ds-chat__orb::before, .ds-chat__orb::after, .ds-chat::before, .ds-chat .ds-composer, .ds-topbar__count { animation: none !important; }
  .ds-chat .ds-chat__orb::before, .ds-chat .ds-voice-orb { transform: none !important; }
}

/* AIS-A528 K7: the chat hidden beside the report - the report takes the whole width, the pill at the bottom right brings the chat back */
.ds-grid-report.ds-grid-report--chat-hidden, .ds-grid-report.ds-grid-report--chat-hidden[data-chat-size] { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
.ds-grid-report--chat-hidden > .ds-report-aside[data-hidden] { display: none; }
.ds-chat-pill { position: fixed; right: var(--space-6); bottom: var(--space-5); z-index: var(--z-nav); display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-4) 0 var(--space-3); border: 0; border-radius: var(--radius-pill); background: var(--color-surface-3); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-green) 45%, transparent), var(--card-shadow); color: var(--color-text); font: inherit; font-size: var(--text-sm); cursor: pointer; }
@media (hover: hover) { .ds-chat-pill:hover { background: var(--color-surface-hover-2); } }
@media (max-width: 1099px) { .ds-chat-pill { display: none; } }
/* AIS-A528 K10: the full-screen button shows the icon of what it does */
.ds-fullscreen[aria-pressed="true"] .ds-fullscreen__enter, .ds-fullscreen:not([aria-pressed="true"]) .ds-fullscreen__exit { display: none; }

/* AIS-A530 K11: the sidebar collapses to its icons (from 1100 px); the names show on hover (title), the counters stay as small badges on the icon */
.ds-nav-toggle { display: none; }
@media (min-width: 1100px) {
  .ds-nav-toggle { display: grid; place-items: center; width: 32px; height: 32px; margin: 0 0 var(--space-2) auto; padding: 0; border: 0; border-radius: var(--radius-md); background: none; color: var(--color-text-muted); cursor: pointer; }   /* AIS-A532: a real 32 px button, its right edge on the items' right edge */
  .ds-nav-toggle .ds-icon { display: block; }
  .ds-workspace__body[data-nav="collapsed"] { grid-template-columns: 64px minmax(0, 1fr); }
  .ds-workspace__body[data-nav="collapsed"] .ds-nav-toggle { margin-inline: auto; }
  .ds-workspace__body[data-nav="collapsed"] :is(.ds-sidebar__label, .ds-sidebar__group, .ds-sidebar__chevron, .ds-sidebar__children) { display: none; }
  .ds-workspace__body[data-nav="collapsed"] .ds-sidebar__item { position: relative; justify-content: center; padding: 0; border-radius: var(--radius-md); }
  .ds-workspace__body[data-nav="collapsed"] .ds-sidebar__item .ds-count { position: absolute; top: 2px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; font-size: var(--text-count); line-height: 16px; }
}
@media (min-width: 1100px) and (hover: hover) { .ds-nav-toggle:hover { background: var(--chat-hover); color: var(--color-text); } }
