/*
 * Office Unbound — product interface concepts.
 *
 * Typeset HTML mockups of the planned applications, rendered by
 * Concepts::render(). Every application rule is scoped under `.ux` (the
 * mockup root, which is also the size container its panes respond to), and
 * the figure around it under `.concept`, so nothing here reaches the site.
 *
 * Order: figure · tokens and reset · shell · components · one block per
 * concept (prefixed: wk- workspace, ml- mail, cal- calendar, doc- docs,
 * sh- sheets, sl- slides, fl- files, sy- sync client, ch- chat, mt- meet,
 * ad- admin, ma- migration assessment, mp- migration progress, msp-).
 */

/* ------------------------------------------------------------ figure -- */

.concept { margin: 0 0 2rem; }
.concept__label {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.55rem; margin: 0 0 0.6rem;
  font: 400 0.74rem/1.3 var(--mono, monospace); color: var(--muted, #5C6470); letter-spacing: 0.02em;
}
.concept__tag {
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.68rem;
  color: var(--st-development, #8A5A0E); background: var(--st-development-bg, #F5E9D2); padding: 0.25rem 0.42rem; border-radius: 2px;
}
.concept__screen { display: block; }
.concept__caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1.5rem; margin-top: 0.75rem; font-size: 0.88rem; line-height: 1.45; color: var(--muted, #5C6470); }
.concept__more { font-weight: 500; white-space: nowrap; }
.section--dark .concept__label, .section--dark .concept__caption { color: #9AA6B6; }
.section--dark .concept__tag { color: #F1C9A0; background: rgba(255, 255, 255, 0.1); }

/* ---------------------------------------------------- tokens · reset -- */

.ux {
  --ux-bg: #FBFAF7;
  --ux-surface: #FFFFFF;
  --ux-side: #F4F2ED;
  --ux-sunken: #EFECE5;
  --ux-hover: #EAE6DD;
  --ux-sel: #E4EBF2;
  --ux-sel-line: #B7C6D8;
  --ux-line: #E3DFD6;
  --ux-line-2: #CDC7BA;
  --ux-ink: #18212D;
  --ux-text: #2E3540;
  --ux-muted: #5D6570;
  --ux-faint: #6B7280;
  --ux-navy: #14243A;
  --ux-navy-2: #24364F;
  --ux-accent: #A9481F;
  --ux-accent-ink: #A4451F;
  --ux-accent-soft: #F6E3D8;
  --ux-teal: #2D6A68;
  --ux-teal-soft: #DCEBE8;
  --ux-ok: #2F6E47;
  --ux-ok-bg: #E0EEE4;
  --ux-warn: #8A5A0E;
  --ux-warn-bg: #F5E9D2;
  --ux-bad: #A3362A;
  --ux-bad-bg: #F6DEDA;
  --ux-info: #3E5878;
  --ux-info-bg: #E2E8F0;
  --ux-top-bg: #14243A;
  --ux-top-2: #24364F;
  --ux-top-text: #E7ECF2;
  --ux-top-muted: #9DAABB;
  --ux-sans: "Plex Sans", "Segoe UI", system-ui, sans-serif;
  --ux-mono: "Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --ux-serif: "Source Serif", Georgia, serif;
  --ux-h: 580px;

  container: ux / inline-size;
  position: relative;
  display: flex; flex-direction: column;
  width: 100%;
  overflow: hidden;
  background: var(--ux-bg);
  color: var(--ux-text);
  border: 1px solid #C9C2B4;
  border-radius: 8px;
  font: 400 13px/1.4 var(--ux-sans);
  text-align: left;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
.ux--dark {
  --ux-bg: #0F1926;
  --ux-surface: #18263A;
  --ux-side: #132034;
  --ux-sunken: #1E2E44;
  --ux-hover: #22344C;
  --ux-sel: #263C58;
  --ux-sel-line: #3F5F86;
  --ux-line: #26364C;
  --ux-line-2: #34475F;
  --ux-ink: #F1F4F8;
  --ux-text: #D6DDE6;
  --ux-muted: #9DAABB;
  --ux-faint: #7D8B9D;
  --ux-accent-soft: #3A2A25;
  --ux-teal: #5FA9A5;
  --ux-teal-soft: #1C3A3D;
  --ux-ok: #7CC191;
  --ux-ok-bg: #1D3528;
  --ux-warn: #E2B567;
  --ux-warn-bg: #3A2F1A;
  --ux-bad: #EE8F80;
  --ux-bad-bg: #432421;
  --ux-info: #9FB8D6;
  --ux-info-bg: #22344C;
  --ux-top-bg: #0B1420;
  --ux-top-2: #1B2A3E;
  border-color: #0B1420;
}

.ux :where(p, ul, ol, li, dl, dt, dd, h1, h2, h3, h4, h5, figure, table, blockquote) { margin: 0; padding: 0; }
.ux :where(ul, ol) { list-style: none; }
.ux :where(li + li) { margin-top: 0; }
.ux :where(b, strong) { font-weight: 600; color: inherit; }
.ux svg { max-width: none; }

.ux .ux-i { width: 16px; height: 16px; flex: none; display: block; fill: none; stroke: currentColor; }
.ux .ux-i--sm { width: 14px; height: 14px; }
.ux .ux-i--lg { width: 20px; height: 20px; }

.ux .ux-mono { font-family: var(--ux-mono); font-size: 12px; }
.ux .ux-muted { color: var(--ux-muted); }
.ux .ux-faint { color: var(--ux-faint); }
.ux .ux-tr { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ux .ux-num { font-variant-numeric: tabular-nums; }
.ux .ux-sp { flex: 1; }
.ux .ux-hide { display: none; }

/* -------------------------------------------------------------- shell -- */

.ux .ux-top {
  flex: none; display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 10px 0 14px;
  background: var(--ux-top-bg); color: var(--ux-top-text);
}
.ux .ux-brand { display: flex; align-items: center; gap: 9px; flex: none; min-width: 0; }
.ux .ux-mark { width: 20px; height: 20px; fill: #F3F0E9; flex: none; }
.ux .ux-mark .ux-mark__lift { fill: var(--ux-accent); }
.ux .ux-brand__name { font-weight: 600; font-size: 13.5px; letter-spacing: -0.005em; white-space: nowrap; }
.ux .ux-brand__app { font-size: 13.5px; color: var(--ux-top-muted); padding-left: 10px; border-left: 1px solid #3A4D66; white-space: nowrap; }
.ux .ux-search {
  flex: 1 1 auto; max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px 0 10px;
  background: var(--ux-top-2); border: 1px solid #33475F; border-radius: 5px; color: var(--ux-top-muted); min-width: 0;
}
.ux .ux-search__ph { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ux .ux-kbd { font: 500 11px/1 var(--ux-mono); border: 1px solid #44597A; border-radius: 3px; padding: 2px 5px; color: var(--ux-top-muted); }
.ux .ux-top__acts { display: flex; align-items: center; gap: 4px; flex: none; }
.ux .ux-tb { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 5px; color: #C9D2DE; }
.ux .ux-tb .ux-i { width: 18px; height: 18px; }
.ux .ux-tb__badge {
  position: absolute; top: 3px; right: 2px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px;
  background: var(--ux-accent); color: #fff; font: 600 10px/15px var(--ux-sans); font-style: normal; text-align: center;
  border: 1.5px solid var(--ux-top-bg); box-sizing: content-box;
}
.ux .ux-top .ux-av { margin-left: 6px; }
.ux .ux-top .ux-pres { border-color: var(--ux-top-bg); }

.ux .ux-body { flex: none; display: grid; grid-template-columns: 64px 224px minmax(0, 1fr); height: var(--ux-h); min-height: 0; }
.ux .ux-body--noside { grid-template-columns: 64px minmax(0, 1fr); }
.ux .ux-body > * { min-width: 0; min-height: 0; }

.ux .ux-rail { display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 6px; background: var(--ux-side); border-right: 1px solid var(--ux-line); }
.ux .ux-rail__i {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0 6px; border-radius: 6px;
  color: var(--ux-muted); font-size: 11px; line-height: 1.1;
}
.ux .ux-rail__i .ux-i { width: 20px; height: 20px; }
.ux .ux-rail__i.is-on { color: var(--ux-ink); background: var(--ux-surface); box-shadow: inset 0 0 0 1px var(--ux-line); font-weight: 500; }
.ux .ux-rail__i.is-on::before { content: ""; position: absolute; left: -6px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 2px 2px 0; background: var(--ux-accent); }
.ux .ux-rail__i.is-on .ux-i { color: var(--ux-accent); }
.ux .ux-rail__i--end { margin-top: auto; }
.ux .ux-rail__badge {
  position: absolute; top: 3px; left: calc(50% + 4px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--ux-accent); color: #fff; font: 600 10px/16px var(--ux-sans); font-style: normal; text-align: center;
}

.ux .ux-side { display: flex; flex-direction: column; background: var(--ux-side); border-right: 1px solid var(--ux-line); overflow: hidden; padding: 12px 10px; gap: 2px; }
.ux .ux-main { display: flex; flex-direction: column; overflow: hidden; background: var(--ux-surface); }

.ux .ux-tabbar { display: none; }

/* Navigation lists in sidebars. */
.ux .ux-nav__h { display: flex; align-items: center; gap: 6px; margin: 12px 0 4px; padding: 0 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ux-faint); }
.ux .ux-nav__h:first-child { margin-top: 2px; }
.ux .ux-nav__h .ux-i { width: 14px; height: 14px; }
.ux .ux-nav__i { display: flex; align-items: center; gap: 9px; min-height: 30px; padding: 0 8px; border-radius: 5px; color: var(--ux-text); white-space: nowrap; }
.ux .ux-nav__i > span:not([class]) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ux .ux-nav__i .ux-i { color: var(--ux-muted); }
.ux .ux-nav__i.is-on { background: var(--ux-sel); color: var(--ux-ink); font-weight: 500; }
.ux .ux-nav__i.is-on .ux-i { color: var(--ux-navy); }
.ux--dark .ux-nav__i.is-on .ux-i { color: var(--ux-ink); }
.ux .ux-nav__i.is-unread { font-weight: 600; color: var(--ux-ink); }
.ux .ux-nav__i--sub { padding-left: 33px; }
.ux .ux-count { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--ux-accent-ink); font-variant-numeric: tabular-nums; }
.ux .ux-count--muted { color: var(--ux-faint); font-weight: 500; }
.ux .ux-count--pill { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ux-accent); color: #fff; text-align: center; line-height: 18px; font-size: 11px; }

/* --------------------------------------------------------- components -- */

.ux .ux-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; padding: 0 11px; flex: none;
  border: 1px solid var(--ux-line-2); border-radius: 5px; background: var(--ux-surface); color: var(--ux-ink);
  font: 500 12.5px/1 var(--ux-sans); white-space: nowrap;
}
.ux .ux-btn .ux-i { width: 15px; height: 15px; }
.ux .ux-btn--pri { background: var(--ux-accent); border-color: var(--ux-accent); color: #fff; }
.ux .ux-btn--navy { background: var(--ux-navy); border-color: var(--ux-navy); color: #fff; }
.ux .ux-btn--quiet { background: transparent; border-color: transparent; color: var(--ux-text); padding: 0 8px; }
.ux .ux-btn--sm { height: 26px; padding: 0 9px; font-size: 12px; }
.ux .ux-btn--block { width: 100%; height: 34px; font-size: 13px; }
.ux .ux-btn__sep { width: 1px; align-self: stretch; margin: 6px -3px 6px 3px; background: rgba(255, 255, 255, 0.35); }
.ux .ux-ib { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 5px; color: var(--ux-muted); }
.ux .ux-ib.is-on { background: var(--ux-sel); color: var(--ux-ink); }

.ux .ux-chip {
  display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 10px; flex: none;
  background: var(--ux-sunken); color: var(--ux-text); font: 500 11px/1 var(--ux-sans); white-space: nowrap;
}
.ux .ux-chip .ux-i { width: 12px; height: 12px; }
.ux .ux-chip--ok { background: var(--ux-ok-bg); color: var(--ux-ok); }
.ux .ux-chip--warn { background: var(--ux-warn-bg); color: var(--ux-warn); }
.ux .ux-chip--bad { background: var(--ux-bad-bg); color: var(--ux-bad); }
.ux .ux-chip--info { background: var(--ux-info-bg); color: var(--ux-info); }
.ux .ux-chip--accent { background: var(--ux-accent-soft); color: var(--ux-accent-ink); }
.ux .ux-chip--teal { background: var(--ux-teal-soft); color: var(--ux-teal); }
.ux .ux-chip--line { background: transparent; box-shadow: inset 0 0 0 1px var(--ux-line-2); }
.ux .ux-chip--sq { border-radius: 3px; height: 19px; padding: 0 5px; }
.ux .ux-ex {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 3px; flex: none;
  font: 500 11px/1 var(--ux-mono); text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap;
  color: var(--ux-warn); background: var(--ux-warn-bg); border: 1px dashed currentColor;
}

.ux .ux-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--ux-faint); }
.ux .ux-dot--ok { background: #3C8A55; }
.ux .ux-dot--warn { background: #C8902A; }
.ux .ux-dot--bad { background: #B8443A; }
.ux .ux-dot--info { background: #4F6E95; }

.ux .ux-tabs { display: flex; align-items: stretch; gap: 18px; border-bottom: 1px solid var(--ux-line); padding: 0 16px; flex: none; overflow: hidden; }
.ux .ux-tab { display: flex; align-items: center; gap: 6px; padding: 10px 0 9px; color: var(--ux-muted); font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ux .ux-tab.is-on { color: var(--ux-ink); border-bottom-color: var(--ux-accent); }
.ux .ux-seg { display: inline-flex; border: 1px solid var(--ux-line-2); border-radius: 5px; overflow: hidden; flex: none; }
.ux .ux-seg > span { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; font-size: 12.5px; font-weight: 500; color: var(--ux-muted); white-space: nowrap; }
.ux .ux-seg > span + span { border-left: 1px solid var(--ux-line-2); }
.ux .ux-seg > span.is-on { background: var(--ux-sel); color: var(--ux-ink); }

.ux .ux-card { background: var(--ux-surface); border: 1px solid var(--ux-line); border-radius: 7px; min-width: 0; overflow: hidden; }
.ux .ux-card__h { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-bottom: 1px solid var(--ux-line); }
.ux .ux-card__t { font-weight: 600; font-size: 13px; color: var(--ux-ink); white-space: nowrap; }
.ux .ux-card__h .ux-chip, .ux .ux-card__h .ux-btn, .ux .ux-card__h .ux-ex { margin-left: auto; }
.ux .ux-card__b { padding: 12px 14px; }
.ux .ux-card__f { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--ux-line); }

.ux .ux-bar { display: block; height: 6px; border-radius: 3px; background: var(--ux-sunken); overflow: hidden; }
.ux .ux-bar > span { display: block; height: 100%; border-radius: 3px; background: var(--ux-teal); }
.ux .ux-bar--warn > span { background: #C8902A; }
.ux .ux-bar--bad > span { background: #B8443A; }
.ux .ux-bar--navy > span { background: var(--ux-navy); }
.ux .ux-bar--thick { height: 8px; border-radius: 4px; }
.ux .ux-w0 { width: 0; } .ux .ux-w3 { width: 3%; } .ux .ux-w5 { width: 5%; } .ux .ux-w8 { width: 8%; } .ux .ux-w10 { width: 10%; }
.ux .ux-w12 { width: 12%; } .ux .ux-w15 { width: 15%; } .ux .ux-w18 { width: 18%; } .ux .ux-w20 { width: 20%; } .ux .ux-w22 { width: 22%; }
.ux .ux-w25 { width: 25%; } .ux .ux-w28 { width: 28%; } .ux .ux-w30 { width: 30%; } .ux .ux-w33 { width: 33%; } .ux .ux-w36 { width: 36%; }
.ux .ux-w38 { width: 38%; } .ux .ux-w40 { width: 40%; } .ux .ux-w42 { width: 42%; } .ux .ux-w45 { width: 45%; } .ux .ux-w48 { width: 48%; }
.ux .ux-w50 { width: 50%; } .ux .ux-w52 { width: 52%; } .ux .ux-w55 { width: 55%; } .ux .ux-w58 { width: 58%; } .ux .ux-w60 { width: 60%; }
.ux .ux-w62 { width: 62%; } .ux .ux-w65 { width: 65%; } .ux .ux-w68 { width: 68%; } .ux .ux-w71 { width: 71%; } .ux .ux-w73 { width: 73%; }
.ux .ux-w75 { width: 75%; } .ux .ux-w78 { width: 78%; } .ux .ux-w80 { width: 80%; } .ux .ux-w82 { width: 82%; } .ux .ux-w85 { width: 85%; }
.ux .ux-w88 { width: 88%; } .ux .ux-w90 { width: 90%; } .ux .ux-w92 { width: 92%; } .ux .ux-w95 { width: 95%; } .ux .ux-w100 { width: 100%; }

.ux .ux-av {
  position: relative; display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%;
  color: #fff; font: 600 11.5px/1 var(--ux-sans); letter-spacing: 0.02em;
}
.ux .ux-av > span { line-height: 1; }
.ux .ux-av--sm { width: 24px; height: 24px; font-size: 11px; letter-spacing: 0; }
.ux .ux-av--lg { width: 36px; height: 36px; font-size: 13px; }
.ux .ux-av--xl { width: 64px; height: 64px; font-size: 22px; font-weight: 500; }
.ux .ux-av--a1 { background: #2D6A68; } .ux .ux-av--a2 { background: #B0522C; } .ux .ux-av--a3 { background: #3E5878; } .ux .ux-av--a4 { background: #6A6A2C; }
.ux .ux-av--a5 { background: #6E4A6B; } .ux .ux-av--a6 { background: #4F5B66; } .ux .ux-av--a7 { background: #946519; } .ux .ux-av--a8 { background: #3F6B4A; }
.ux .ux-pres { position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ux-surface); background: #9AA1AA; box-sizing: content-box; }
.ux .ux-av--sm .ux-pres { width: 8px; height: 8px; }
.ux .ux-pres--on { background: #3C8A55; }
.ux .ux-pres--away { background: #C8902A; }
.ux .ux-pres--busy { background: #B8443A; }
.ux .ux-pres--off { background: var(--ux-surface); box-shadow: inset 0 0 0 1.5px #9AA1AA; }
.ux .ux-stack { display: flex; align-items: center; }
.ux .ux-stack > .ux-av { box-shadow: 0 0 0 2px var(--ux-surface); }
.ux .ux-stack > .ux-av + .ux-av { margin-left: -6px; }

/* File-type tints, shared by Files, Chat, Mail and the sync client. */
.ux .ux-ft { color: var(--ux-muted); }
.ux .ux-ft--doc { color: #3B5F8F; }
.ux .ux-ft--sheet { color: #2F7350; }
.ux .ux-ft--slides { color: #B0522C; }
.ux .ux-ft--pdf { color: #A3362A; }
.ux .ux-ft--folder { color: #9A7426; }
.ux .ux-ft--img { color: #6E4A6B; }
.ux--dark .ux-ft--doc { color: #8DB0DE; }
.ux--dark .ux-ft--sheet { color: #7CC191; }

/* Tables. Specific enough to beat the site's own table rules, including
   inside dark sections. */
.ux .ux-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ux .ux-table th, .ux .ux-table td, .section--dark .ux .ux-table th, .section--dark .ux .ux-table td {
  padding: 8px 10px; border-bottom: 1px solid var(--ux-line); text-align: left; vertical-align: middle; white-space: nowrap;
  font: inherit; text-transform: none; letter-spacing: 0; color: inherit;
}
.ux .ux-table thead th, .section--dark .ux .ux-table thead th {
  font-size: 11.5px; font-weight: 500; color: var(--ux-muted); background: var(--ux-bg); border-bottom-color: var(--ux-line-2); padding-top: 7px; padding-bottom: 7px;
}
.ux .ux-table th:first-child, .ux .ux-table td:first-child { padding-left: 16px; }
.ux .ux-table td:last-child, .ux .ux-table th:last-child { padding-right: 16px; }
.ux .ux-table .is-sel td { background: var(--ux-sel); }
.ux .ux-table .ux-r { text-align: right; }
.ux .ux-cell { display: flex; align-items: center; gap: 9px; min-width: 0; }
.ux .ux-cell__t { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ux .ux-cell__t > span:first-child { color: var(--ux-ink); font-weight: 500; }
.ux .ux-cell__t > span + span { font-size: 11.5px; color: var(--ux-muted); }
.ux .ux-cb { display: inline-block; width: 14px; height: 14px; border: 1.5px solid var(--ux-line-2); border-radius: 3px; flex: none; vertical-align: middle; }
.ux .ux-cb.is-on { background: var(--ux-navy); border-color: var(--ux-navy); }

/* Toolbars and headers inside an app's main area. */
.ux .ux-bar-h { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 16px; border-bottom: 1px solid var(--ux-line); flex: none; min-width: 0; }
.ux .ux-title { font-size: 16px; font-weight: 600; color: var(--ux-ink); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ux .ux-crumbs { display: flex; align-items: center; gap: 4px; color: var(--ux-muted); white-space: nowrap; min-width: 0; overflow: hidden; }
.ux .ux-crumbs .ux-i { width: 13px; height: 13px; color: var(--ux-faint); }
.ux .ux-crumbs > span:last-child { color: var(--ux-ink); font-weight: 500; }
.ux .ux-field { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 9px; border: 1px solid var(--ux-line-2); border-radius: 5px; background: var(--ux-surface); color: var(--ux-faint); min-width: 0; }
.ux .ux-field > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ux .ux-kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; font-size: 12.5px; }
.ux .ux-kv > :nth-child(odd) { color: var(--ux-muted); }
.ux .ux-kv > :nth-child(even) { color: var(--ux-ink); font-weight: 500; text-align: right; }

/* Status rows: icon · text · state, used for health, checks and alerts. */
.ux .ux-rows > li { display: flex; align-items: flex-start; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--ux-line); min-width: 0; }
.ux .ux-rows > li:first-child { border-top: 0; }
.ux .ux-rows__t { flex: 1; min-width: 0; line-height: 1.35; }
.ux .ux-rows__t > span { display: block; }
.ux .ux-rows__t > span:first-child { color: var(--ux-ink); font-weight: 500; }
.ux .ux-rows__t > span + span { font-size: 12px; color: var(--ux-muted); margin-top: 1px; }
.ux .ux-rows > li > .ux-dot { margin-top: 5px; }
.ux .ux-rows > li > .ux-i { margin-top: 1px; }
.ux .ux-rows > li > .ux-chip, .ux .ux-rows > li > .ux-btn { margin-top: -1px; }
.ux .ux-ok { color: var(--ux-ok); } .ux .ux-warn { color: var(--ux-warn); } .ux .ux-bad { color: var(--ux-bad); } .ux .ux-info { color: var(--ux-info); } .ux .ux-teal { color: var(--ux-teal); }

/* ------------------------------------------------- shell, responsive -- */

@container ux (max-width: 900px) {
  .ux .ux-body { grid-template-columns: 64px minmax(0, 1fr); }
  .ux .ux-body > .ux-side { display: none; }
  .ux .ux-search { max-width: 360px; }
}
@container ux (max-width: 720px) {
  .ux .ux-brand__name { display: none; }
  .ux .ux-brand__app { border-left: 0; padding-left: 0; color: var(--ux-top-text); font-weight: 600; }
  .ux .ux-kbd, .ux .ux-tb--help { display: none; }
}
@container ux (max-width: 540px) {
  .ux .ux-top { gap: 8px; padding: 0 8px 0 12px; }
  .ux .ux-search { flex: 0 0 32px; width: 32px; height: 32px; margin: 0 0 0 auto; padding: 0; justify-content: center; background: transparent; border-color: transparent; color: #C9D2DE; }
  .ux .ux-search .ux-i { width: 18px; height: 18px; }
  .ux .ux-search__ph, .ux .ux-tb--grid { display: none; }
  .ux .ux-top__acts { gap: 0; }
  .ux .ux-body, .ux .ux-body--noside { grid-template-columns: minmax(0, 1fr); }
  .ux .ux-body > .ux-rail { display: none; }
  .ux .ux-tabbar { display: grid; grid-template-columns: repeat(5, 1fr); flex: none; height: 54px; border-top: 1px solid var(--ux-line); background: var(--ux-side); }
  .ux .ux-tabbar__i { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ux-muted); font-size: 11px; }
  .ux .ux-tabbar__i .ux-i { width: 20px; height: 20px; }
  .ux .ux-tabbar__i.is-on { color: var(--ux-accent-ink); font-weight: 500; }
  .ux--dark .ux-tabbar__i.is-on { color: #F1C9A0; }
}

/* ======================================================= mail · ml- == */

.ux .ml-side .ux-btn--block { margin-bottom: 8px; }
.ux .ml-main { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: 100%; }
.ux .ml-list { display: flex; flex-direction: column; min-height: 0; min-width: 0; border-right: 1px solid var(--ux-line); background: var(--ux-surface); }
.ux .ml-list__h { display: flex; align-items: center; gap: 8px; padding: 11px 12px 10px 16px; border-bottom: 1px solid var(--ux-line); flex: none; }
.ux .ml-list__h .ux-title { font-size: 15px; }
.ux .ml-msgs { flex: 1; overflow: hidden; }
.ux .ml-grp { padding: 9px 16px 5px; font-size: 11.5px; font-weight: 600; color: var(--ux-muted); background: var(--ux-bg); border-bottom: 1px solid var(--ux-line); }
.ux .ml-msg { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 11px; padding: 10px 14px 11px 16px; border-bottom: 1px solid var(--ux-line); }
.ux .ml-msg.is-unread::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--ux-accent); }
.ux .ml-msg.is-sel { background: var(--ux-sel); }
.ux .ml-msg__b { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ux .ml-msg__r1, .ux .ml-msg__r2 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ux .ml-msg__from { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ux-ink); }
.ux .ml-msg__time { flex: none; font-size: 11.5px; color: var(--ux-faint); font-variant-numeric: tabular-nums; }
.ux .ml-msg__subj { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ux-text); }
.ux .ml-msg__r2 .ux-i { color: var(--ux-faint); }
.ux .ml-msg__r2 .ml-flag { color: var(--ux-accent); }
.ux .ml-msg__prev { font-size: 12px; color: var(--ux-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ux .ml-msg.is-unread .ml-msg__from, .ux .ml-msg.is-unread .ml-msg__subj { font-weight: 600; color: var(--ux-ink); }
.ux .ml-msg.is-unread .ml-msg__time { color: var(--ux-accent-ink); font-weight: 600; }

.ux .ml-read { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.ux .ml-tools { display: flex; align-items: center; gap: 2px; padding: 0 12px; height: 47px; border-bottom: 1px solid var(--ux-line); flex: none; overflow: hidden; }
.ux .ml-sep { width: 1px; height: 18px; background: var(--ux-line-2); margin: 0 6px; flex: none; }
.ux .ml-read__in { flex: 1; overflow: hidden; padding: 18px 26px 12px; }
.ux .ml-subj { font-size: 18px; line-height: 1.3; font-weight: 600; color: var(--ux-ink); letter-spacing: -0.01em; margin-bottom: 14px; }
.ux .ml-from { display: flex; align-items: flex-start; gap: 11px; min-width: 0; }
.ux .ml-from__t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; }
.ux .ml-from__t > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ux .ml-from__n { font-weight: 600; color: var(--ux-ink); font-size: 13px; }
.ux .ml-from__time { flex: none; font-size: 12px; color: var(--ux-muted); }
.ux .ml-ext { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 7px 10px; border-radius: 5px; background: var(--ux-warn-bg); color: var(--ux-warn); font-size: 12px; }
.ux .ml-body { margin-top: 16px; font-size: 13.5px; line-height: 1.6; color: var(--ux-text); max-width: 64ch; }
.ux .ml-body p + p, .ux .ml-body p + ul, .ux .ml-body ul + p { margin-top: 10px; }
.ux .ml-body ul > li { position: relative; padding-left: 16px; }
.ux .ml-body ul > li::before { content: ""; position: absolute; left: 3px; top: 0.7em; width: 5px; height: 5px; border-radius: 50%; background: var(--ux-faint); }
.ux .ml-sig { color: var(--ux-muted); }
.ux .ml-atts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ux .ml-att { display: flex; align-items: center; gap: 9px; padding: 7px 14px 7px 9px; border: 1px solid var(--ux-line-2); border-radius: 6px; min-width: 0; max-width: 100%; background: var(--ux-surface); }
.ux .ml-att__t { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ux .ml-att__t > span:first-child { font-weight: 500; color: var(--ux-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ux .ml-att__t > span + span { font-size: 11.5px; color: var(--ux-muted); }
.ux .ml-quick { flex: none; display: flex; align-items: center; gap: 9px; margin: 0 26px 16px; height: 40px; padding: 0 8px 0 12px; border: 1px solid var(--ux-line-2); border-radius: 6px; color: var(--ux-faint); }
.ux .ml-quick > span:first-of-type { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@container ux (max-width: 1080px) { .ux .ml-main { grid-template-columns: 300px minmax(0, 1fr); } }
@container ux (max-width: 760px) { .ux .ml-tools__x span { display: none; } .ux .ml-tools__x { padding: 0 7px; } .ux .ml-read__in { padding: 16px 18px 10px; } .ux .ml-quick { margin: 0 18px 14px; } }
@container ux (max-width: 640px) {
  .ux .ml-main { grid-template-columns: minmax(0, 1fr); }
  .ux .ml-main > .ml-read { display: none; }
  .ux .ml-list { border-right: 0; }
}

/* ================================================== workspace · wk- == */

.ux.wk { --ux-h: 600px; }
.ux .wk-body { grid-template-columns: 64px 196px minmax(0, 1fr); }
.ux .wk-main { display: grid; grid-template-columns: 300px minmax(0, 1fr) 236px; }
.ux .wk-invite { margin-top: 16px; border: 1px solid var(--ux-line-2); border-radius: 7px; background: var(--ux-bg); overflow: hidden; }
.ux .wk-invite__when { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.ux .wk-invite__day { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 44px; height: 46px; flex: none; border-radius: 5px; background: var(--ux-surface); border: 1px solid var(--ux-line-2); line-height: 1; }
.ux .wk-invite__day > span:first-child { font-size: 11px; font-weight: 600; color: var(--ux-accent-ink); text-transform: uppercase; letter-spacing: 0.05em; }
.ux .wk-invite__day > span + span { font-size: 19px; font-weight: 600; color: var(--ux-ink); margin-top: 3px; }
.ux .wk-invite__t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ux .wk-invite__t > span:first-child { font-weight: 600; color: var(--ux-ink); }
.ux .wk-invite__t > span + span { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ux-ok); }
.ux .wk-invite__acts { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--ux-line); background: var(--ux-surface); }

.ux .wk-day { display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 12px; border-left: 1px solid var(--ux-line); background: var(--ux-bg); overflow: hidden; }
.ux .wk-day__h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 12px; }
.ux .wk-evs { display: flex; flex-direction: column; gap: 6px; }
.ux .wk-ev { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 8px; align-items: start; }
.ux .wk-ev__time { font: 400 11.5px/1 var(--ux-mono); color: var(--ux-muted); padding-top: 8px; }
.ux .wk-ev__c { display: flex; flex-direction: column; gap: 2px; padding: 6px 9px 7px; border-left: 3px solid var(--ux-teal); border-radius: 0 5px 5px 0; background: var(--ux-teal-soft); min-width: 0; }
.ux .wk-ev__c > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ux .wk-ev__c > span:first-child { font-weight: 500; color: var(--ux-ink); font-size: 12.5px; }
.ux .wk-ev__c > span + span { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--ux-muted); }
.ux .wk-ev__c--navy { border-left-color: var(--ux-info); background: var(--ux-info-bg); }
.ux .wk-ev__c--rust { border-left-color: var(--ux-accent); background: var(--ux-accent-soft); }
.ux .wk-ev__c--plain { border-left-color: var(--ux-line-2); background: var(--ux-sunken); }
.ux .wk-now { position: relative; display: flex; align-items: center; height: 10px; }
.ux .wk-now > span { font: 500 11px/1 var(--ux-mono); color: var(--ux-accent-ink); background: var(--ux-bg); padding-right: 6px; position: relative; z-index: 1; }
.ux .wk-now::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid var(--ux-accent); }
.ux .wk-day__sub { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--ux-line); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ux-faint); }
.ux .wk-files { display: flex; flex-direction: column; gap: 2px; }
.ux .wk-files > li { display: flex; align-items: center; gap: 8px; min-height: 28px; font-size: 12.5px; color: var(--ux-text); }

.ux .wk-toast {
  position: absolute; right: 18px; bottom: 18px; z-index: 3; display: flex; gap: 10px; align-items: flex-start; width: 340px; padding: 12px 12px 12px 14px;
  background: var(--ux-surface); border: 1px solid var(--ux-line-2); border-left: 3px solid var(--ux-accent); border-radius: 7px;
  box-shadow: 0 8px 24px rgba(20, 36, 58, 0.16), 0 1px 3px rgba(20, 36, 58, 0.12);
}
.ux .wk-toast__t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; line-height: 1.4; }
.ux .wk-toast__h { display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; }
.ux .wk-toast__h > span:first-child { font-weight: 600; color: var(--ux-ink); }
.ux .wk-toast__h .ux-i { color: var(--ux-muted); }
.ux .wk-toast__acts { display: flex; gap: 6px; margin-top: 4px; }
.ux .wk-toast__x { color: var(--ux-faint); }

@container ux (max-width: 1060px) {
  .ux .wk-main { grid-template-columns: 290px minmax(0, 1fr); }
  .ux .wk-main > .wk-day { display: none; }
}
@container ux (max-width: 900px) { .ux .wk-body { grid-template-columns: 64px minmax(0, 1fr); } }
@container ux (max-width: 640px) {
  .ux .wk-main { grid-template-columns: minmax(0, 1fr); }
  .ux .wk-main > .ml-read { display: none; }
  .ux .wk-main > .ml-list { border-right: 0; }
}
@container ux (max-width: 540px) {
  .ux.wk .ux-body { height: 520px; }
  .ux .wk-body { grid-template-columns: minmax(0, 1fr); }
  .ux .wk-toast { left: 10px; right: 10px; width: auto; bottom: 66px; }
}
.ux .ml-quota { margin-top: auto; padding: 10px 8px 2px; display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; color: var(--ux-muted); }
.ux .ml-save { color: var(--ux-teal); }
@container ux (max-width: 900px) { .ux .ml-seg3 { display: none; } }

/* ==================================================== calendar · cal- == */

.ux.cal { --ux-h: 600px; }
.ux .cal-side .ux-btn--block { margin-bottom: 10px; }
.ux .cal-mini { padding: 4px 4px 6px; }
.ux .cal-mini__h { display: flex; align-items: center; gap: 6px; padding: 0 2px 6px; font-weight: 600; color: var(--ux-ink); font-size: 12.5px; }
.ux .cal-mini__h .ux-i { color: var(--ux-muted); }
.ux .cal-mini__g { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 1px; text-align: center; font-size: 11px; font-variant-numeric: tabular-nums; }
.ux .cal-mini__dow { color: var(--ux-faint); font-weight: 600; padding-bottom: 3px; }
.ux .cal-mini__d { line-height: 22px; color: var(--ux-text); }
.ux .cal-mini__d.is-out { color: var(--ux-faint); }
.ux .cal-mini__d.is-wk { background: var(--ux-sel); }
.ux .cal-mini__d.is-today { background: var(--ux-accent); color: #fff; font-weight: 600; border-radius: 3px; }
.ux .cal-sw { width: 12px; height: 12px; border-radius: 3px; flex: none; background: var(--ux-teal); }
.ux .cal-sw--navy { background: var(--ux-info); } .ux .cal-sw--rust { background: var(--ux-accent); }
.ux .cal-sw--off { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ux-line-2); }

.ux .cal-main { min-height: 0; }
.ux .cal-bar { gap: 6px; }
.ux .cal-range { margin-left: 6px; font-size: 15px; }
.ux .cal-wrap { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 272px; min-height: 0; }
.ux .cal-grid { --cal-cols: 52px repeat(5, minmax(0, 1fr)); display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.ux .cal-head, .ux .cal-allday, .ux .cal-body { display: grid; grid-template-columns: var(--cal-cols); }
.ux .cal-head { border-bottom: 1px solid var(--ux-line); }
.ux .cal-tz { font-size: 11px; color: var(--ux-faint); padding: 6px 6px 0 0; text-align: right; }
.ux .cal-dh { display: flex; align-items: baseline; gap: 6px; padding: 8px 10px 7px; border-left: 1px solid var(--ux-line); color: var(--ux-muted); font-size: 12px; }
.ux .cal-dh b { font-size: 18px; font-weight: 500; color: var(--ux-ink); }
.ux .cal-dh.is-today { box-shadow: inset 0 3px 0 var(--ux-accent); }
.ux .cal-dh.is-today, .ux .cal-dh.is-today b { color: var(--ux-accent-ink); font-weight: 600; }
.ux .cal-allday { border-bottom: 1px solid var(--ux-line-2); min-height: 28px; }
.ux .cal-allday > .cal-tz { padding-top: 7px; }
.ux .cal-allday > span:not(.cal-tz) { border-left: 1px solid var(--ux-line); padding: 3px; min-width: 0; }
.ux .cal-ad { display: flex; align-items: center; gap: 4px; height: 21px; padding: 0 6px; border-radius: 3px; background: var(--ux-accent-soft); color: var(--ux-accent-ink); font-size: 11.5px; font-weight: 500; white-space: nowrap; overflow: hidden; }
.ux .cal-ad--teal { background: var(--ux-teal-soft); color: var(--ux-teal); }
.ux .cal-body { flex: 1; position: relative; min-height: 0; }
.ux .cal-hours { display: grid; grid-template-rows: repeat(9, 50px); }
.ux .cal-hours > span { font: 400 11px/1 var(--ux-mono); color: var(--ux-faint); text-align: right; padding: 4px 8px 0 0; }
.ux .cal-col {
  position: relative; display: grid; grid-template-rows: repeat(18, 25px); grid-template-columns: minmax(0, 1fr); padding: 0 4px 0 3px; border-left: 1px solid var(--ux-line);
  background-image: linear-gradient(var(--ux-line) 1px, transparent 1px); background-size: 100% 50px;
}
.ux .cal-col.is-today { background-color: #FCF6F2; }
.ux .cal-ev {
  grid-column: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; margin: 1px 0; padding: 3px 7px; overflow: hidden;
  border-left: 3px solid var(--ux-teal); border-radius: 0 4px 4px 0; background: var(--ux-teal-soft); font-size: 11.5px; line-height: 1.3;
}
.ux .cal-ev > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ux .cal-ev > span:first-child { font-weight: 500; color: var(--ux-ink); }
.ux .cal-ev > span + span { color: var(--ux-muted); }
.ux .cal-ev--navy { border-left-color: var(--ux-info); background: var(--ux-info-bg); }
.ux .cal-ev--rust { border-left-color: var(--ux-accent); background: var(--ux-accent-soft); }
.ux .cal-ev--plain { border-left-color: var(--ux-line-2); background: var(--ux-sunken); }
.ux .cal-ev--new { border: 1.5px solid var(--ux-navy); border-left-width: 3px; background: var(--ux-surface); box-shadow: 0 4px 12px rgba(20, 36, 58, 0.15); }
.ux .cal-r3 { grid-row-start: 3; } .ux .cal-r4 { grid-row-start: 4; } .ux .cal-r5 { grid-row-start: 5; } .ux .cal-r6 { grid-row-start: 6; } .ux .cal-r7 { grid-row-start: 7; }
.ux .cal-r9 { grid-row-start: 9; } .ux .cal-r10 { grid-row-start: 10; } .ux .cal-r11 { grid-row-start: 11; } .ux .cal-r12 { grid-row-start: 12; } .ux .cal-r13 { grid-row-start: 13; }
.ux .cal-r14 { grid-row-start: 14; } .ux .cal-r15 { grid-row-start: 15; } .ux .cal-r16 { grid-row-start: 16; }
.ux .cal-s1 { grid-row-end: span 1; } .ux .cal-s2 { grid-row-end: span 2; } .ux .cal-s3 { grid-row-end: span 3; } .ux .cal-s4 { grid-row-end: span 4; }
.ux .cal-s1 > span + span { display: none; }
.ux .cal-s2 > span:first-child, .ux .cal-s3 > span:first-child, .ux .cal-s4 > span:first-child { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ux .cal-range__s { display: none; }
.ux .cal-s1 { padding-top: 2px; padding-bottom: 2px; }
.ux .cal-now { position: absolute; left: -4px; right: 0; top: 183px; border-top: 2px solid var(--ux-accent); z-index: 2; }
.ux .cal-now::before { content: ""; position: absolute; left: -1px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--ux-accent); }

.ux .cal-panel { display: flex; flex-direction: column; border-left: 1px solid var(--ux-line); background: var(--ux-bg); min-height: 0; overflow: hidden; }
.ux .cal-panel__h { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--ux-line); }
.ux .cal-panel__h .ux-i { color: var(--ux-muted); }
.ux .cal-panel__b { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 14px; overflow: hidden; }
.ux .cal-in { padding: 7px 9px; border: 1px solid var(--ux-line-2); border-radius: 5px; background: var(--ux-surface); }
.ux .cal-in--title { font-weight: 600; color: var(--ux-ink); border-color: var(--ux-navy); box-shadow: 0 0 0 2px var(--ux-sel); }
.ux .cal-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; min-width: 0; }
.ux .cal-row > .ux-i { color: var(--ux-muted); }
.ux .cal-row--ok, .ux .cal-row--ok > .ux-i { color: var(--ux-ok); }
.ux .cal-people { display: flex; flex-wrap: wrap; gap: 4px; }
.ux .cal-toggle { position: relative; width: 28px; height: 16px; border-radius: 8px; background: var(--ux-line-2); margin-left: auto; flex: none; }
.ux .cal-toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.ux .cal-toggle.is-on { background: var(--ux-teal); }
.ux .cal-toggle.is-on::after { left: 14px; }
.ux .cal-sub { margin-top: 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ux-muted); }
.ux .cal-rooms { display: flex; flex-direction: column; border: 1px solid var(--ux-line); border-radius: 6px; background: var(--ux-surface); }
.ux .cal-rooms > li { display: flex; align-items: center; gap: 9px; padding: 8px 10px; }
.ux .cal-rooms > li + li { border-top: 1px solid var(--ux-line); }
.ux .cal-rooms > li.is-on { background: var(--ux-sel); }
.ux .cal-radio { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--ux-line-2); flex: none; }
.ux .is-on > .cal-radio { border: 4px solid var(--ux-navy); }
.ux .cal-room { flex: 1; display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ux .cal-room > span:first-child { font-weight: 500; color: var(--ux-ink); }
.ux .cal-room > span + span { font-size: 11.5px; color: var(--ux-muted); }

@container ux (max-width: 1100px) { .ux .cal-wrap { grid-template-columns: minmax(0, 1fr); } .ux .cal-wrap > .cal-panel { display: none; } }
@container ux (max-width: 640px) {
  .ux .cal-grid { --cal-cols: 44px repeat(3, minmax(0, 1fr)); }
  .ux .cal-d4, .ux .cal-d5 { display: none !important; }
  .ux .cal-v3 { display: none; }
  .ux .cal-range { font-size: 14px; margin-left: 2px; }
}
@container ux (max-width: 540px) {
  .ux .cal-bar > .ux-ib { display: none; }
  .ux .cal-views > span:first-child { display: none; }
  .ux .cal-tz { font-size: 0; }
  .ux .cal-range__l { display: none; }
  .ux .cal-range__s { display: inline; }
  .ux .cal-dh { padding: 7px 6px; gap: 4px; }
}

/* ============================== editors (docs, sheets, slides) · ed- == */

.ux .ed-head { display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 16px; border-bottom: 1px solid var(--ux-line); flex: none; min-width: 0; }
.ux .ed-ficon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 6px; flex: none; color: #fff; background: #3B5F8F; }
.ux .ed-ficon .ux-i { width: 20px; height: 20px; }
.ux .ed-ficon--sheet { background: #2F7350; }
.ux .ed-ficon--slides { background: #B0522C; }
.ux .ed-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ux .ed-meta .ux-crumbs { font-size: 11.5px; }
.ux .ed-meta .ux-crumbs > span:last-child { color: var(--ux-muted); font-weight: 400; }
.ux .ed-name { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 15px; font-weight: 600; color: var(--ux-ink); }
.ux .ed-saved { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 11.5px; font-weight: 400; color: var(--ux-muted); }
.ux .ed-saved .ux-i { color: var(--ux-ok); }
.ux .ed-people { margin-right: 4px; }
.ux .ed-menu { display: flex; align-items: center; gap: 2px; padding: 3px 10px; border-bottom: 1px solid var(--ux-line); flex: none; font-size: 12.5px; color: var(--ux-text); overflow: hidden; }
.ux .ed-menu > span:not([class]) { padding: 4px 8px; border-radius: 4px; }
.ux .ed-tools { display: flex; align-items: center; gap: 1px; padding: 4px 10px; height: 42px; border-bottom: 1px solid var(--ux-line); background: var(--ux-bg); flex: none; overflow: hidden; }
.ux .ed-tools .ux-ib { width: 28px; height: 28px; }
.ux .ed-sep { width: 1px; height: 20px; background: var(--ux-line-2); margin: 0 6px; flex: none; }
.ux .ed-dd { display: inline-flex; align-items: center; justify-content: space-between; gap: 6px; height: 28px; padding: 0 6px 0 9px; border: 1px solid var(--ux-line-2); border-radius: 4px; background: var(--ux-surface); font-size: 12.5px; color: var(--ux-ink); white-space: nowrap; flex: none; margin-right: 4px; }
.ux .ed-dd .ux-i { color: var(--ux-muted); }
.ux .ed-dd--w { min-width: 104px; }
.ux .ed-dd--font { min-width: 112px; }

@container ux (max-width: 900px) { .ux .ed-hist span, .ux .ed-x2 { display: none; } .ux .ed-hist { padding: 0 8px; } }
@container ux (max-width: 640px) {
  .ux .ed-menu, .ux .ed-x1, .ux .ed-people, .ux .ed-cmt, .ux .ed-saved { display: none; }
  .ux .ed-head { padding: 8px 10px 8px 12px; gap: 8px; }
  .ux .ed-ficon { width: 30px; height: 30px; }
}
@container ux (max-width: 420px) { .ux .ed-hist, .ux .ed-meta .ux-crumbs { display: none; } }

/* ======================================================== docs · doc- == */

.ux.doc { --ux-h: 660px; }
.ux .doc-stage { flex: 1; display: flex; justify-content: center; gap: 18px; padding: 22px 22px 0; background: var(--ux-sunken); overflow: hidden; min-height: 0; }
.ux .doc-page {
  flex: 0 1 640px; min-width: 0; padding: 40px 56px; background: #fff; color: #23282F;
  box-shadow: 0 1px 2px rgba(20, 36, 58, 0.1), 0 0 0 1px rgba(20, 36, 58, 0.06);
  font: 400 14px/1.6 var(--ux-serif);
}
.ux .doc-kicker { font: 500 11px/1.3 var(--ux-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ux-accent-ink); margin-bottom: 6px; }
.ux .doc-h1 { font: 600 26px/1.15 var(--ux-serif); color: #14243A; letter-spacing: -0.01em; }
.ux .doc-meta { font: 400 12px/1.5 var(--ux-sans); color: var(--ux-muted); margin: 8px 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--ux-line); }
.ux .doc-h2 { font: 600 15px/1.3 var(--ux-sans); color: #14243A; margin: 18px 0 6px; }
.ux .doc-p { margin: 0 0 8px; }
.ux .doc-table { width: 100%; border-collapse: collapse; margin: 8px 0 6px; font: 400 12.5px/1.4 var(--ux-sans); }
.ux .doc-table th, .ux .doc-table td, .section--dark .ux .doc-table th, .section--dark .ux .doc-table td { padding: 6px 8px; border: 1px solid #CFC9BC; text-align: left; vertical-align: top; color: #23282F; font: inherit; text-transform: none; letter-spacing: 0; }
.ux .doc-table thead th, .section--dark .ux .doc-table thead th { background: #EEF2F6; font-weight: 600; color: #14243A; font-size: 12px; }
.ux .doc-anchor { background: #F6E3B8; box-shadow: 0 2px 0 #D9A23A; }
.ux .doc-caret { position: relative; display: inline-block; width: 0; height: 1.2em; vertical-align: text-bottom; border-left: 2px solid #6E4A6B; margin: 0 1px; }
.ux .doc-caret > span { position: absolute; left: -2px; bottom: 100%; padding: 1px 5px; background: #6E4A6B; color: #fff; font: 500 11px/1.4 var(--ux-sans); white-space: nowrap; border-radius: 3px 3px 3px 0; }
.ux .doc-comments { flex: 0 0 248px; display: flex; flex-direction: column; gap: 12px; padding-top: 128px; }
.ux .doc-anchor--soft { background: #F3EBDD; box-shadow: 0 2px 0 #E4D3B2; }
.ux .doc-table td:nth-child(2) { white-space: nowrap; }
.ux .doc-thread { background: var(--ux-surface); border: 1px solid var(--ux-line); border-radius: 7px; padding: 10px 12px; display: flex; flex-direction: column; gap: 10px; font-size: 12.5px; }
.ux .doc-thread.is-on { border-color: #D9A23A; box-shadow: 0 4px 14px rgba(20, 36, 58, 0.1); position: relative; }
.ux .doc-thread.is-on::before { content: ""; position: absolute; left: -19px; top: 18px; width: 18px; border-top: 1.5px dashed #D9A23A; }
.ux .doc-c { display: flex; flex-direction: column; gap: 4px; }
.ux .doc-c + .doc-c { padding-top: 10px; border-top: 1px solid var(--ux-line); }
.ux .doc-c__h { display: flex; align-items: center; gap: 7px; }
.ux .doc-c__h > span:nth-child(2) { font-weight: 600; color: var(--ux-ink); flex: 1; }
.ux .doc-c__h > span:last-child { font-size: 11.5px; }
.ux .doc-c p { line-height: 1.45; }
.ux .doc-at { color: var(--ux-teal); font-weight: 600; }
.ux .doc-c__f { display: flex; gap: 6px; }
.ux .doc-c__f .ux-field { flex: 1; height: 26px; }
.ux .doc-c__more { font-size: 11.5px; color: var(--ux-teal); font-weight: 500; }

@container ux (max-width: 1000px) { .ux .doc-comments { display: none; } .ux .doc-page { padding: 36px 44px; } }
@container ux (max-width: 640px) { .ux .doc-stage { padding: 12px 12px 0; } .ux .doc-page { padding: 24px 20px; font-size: 13.5px; } .ux .doc-h1 { font-size: 22px; } .ux .doc-table th:nth-child(3), .ux .doc-table td:nth-child(3) { display: none; } }

/* ====================================================== sheets · sh- == */

.ux.sh { --ux-h: 600px; }
.ux .sh-fmt { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 4px; font: 500 12.5px/1 var(--ux-sans); color: var(--ux-muted); flex: none; }
.ux .sh-fx { display: flex; align-items: center; gap: 0; height: 34px; border-bottom: 1px solid var(--ux-line); flex: none; font-size: 12.5px; min-width: 0; }
.ux .sh-name { width: 74px; flex: none; height: 100%; display: flex; align-items: center; padding: 0 10px; border-right: 1px solid var(--ux-line); font: 500 12px/1 var(--ux-mono); color: var(--ux-ink); }
.ux .sh-fx__i { padding: 0 10px; font: italic 500 13px/1 var(--ux-serif); color: var(--ux-muted); border-right: 1px solid var(--ux-line); height: 100%; display: flex; align-items: center; }
.ux .sh-formula { padding: 0 10px; font: 400 12.5px/1 var(--ux-mono); color: var(--ux-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ux .sh-f { color: var(--ux-ink); font-weight: 500; }
.ux .sh-ref1 { color: #2D6A68; } .ux .sh-ref2 { color: #A4451F; } .ux .sh-ref3 { color: #3E5878; } .ux .sh-ref4 { color: #6E4A6B; } .ux .sh-ref5 { color: #946519; }
.ux .sh-wrap { flex: 1; overflow: hidden; min-height: 0; background: #fff; }
.ux .sh-grid { border-collapse: collapse; table-layout: fixed; width: max-content; font: 400 12.5px/1 var(--ux-sans); color: #23282F; }
.ux .sh-c0 { width: 40px; } .ux .sh-cA { width: 196px; } .ux .sh-cB { width: 132px; } .ux .sh-cN { width: 96px; }
.ux .sh-grid th, .ux .sh-grid td, .section--dark .ux .sh-grid th, .section--dark .ux .sh-grid td {
  height: 26px; padding: 0 8px; border: 1px solid #E4E1DA; text-align: left; vertical-align: middle; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font: inherit; color: inherit; text-transform: none; letter-spacing: 0;
}
.ux .sh-grid thead th, .ux .sh-grid tbody th, .section--dark .ux .sh-grid thead th, .section--dark .ux .sh-grid tbody th { background: #F3F1EC; color: #6B717A; font-size: 11.5px; text-align: center; padding: 0 4px; border-color: #DCD8CF; }
.ux .sh-grid thead th.is-hl, .ux .sh-grid tr.is-hl > th { background: #DDE6F0; color: var(--ux-navy); font-weight: 600; }
.ux .sh-grid .sh-corner { background: #EAE7E0; }
.ux .sh-grid td.sh-title { font: 600 15px/1 var(--ux-sans); color: #14243A; }
.ux .sh-grid td.sh-note { color: #6B717A; font-size: 12px; font-style: italic; }
.ux .sh-hdr td { background: #14243A; color: #fff; font-weight: 600; border-color: #24364F; }
.ux .sh-grid td.sh-n { text-align: right; font-variant-numeric: tabular-nums; }
.ux .sh-grid td.sh-svc { color: #5D6570; }
.ux .sh-grid td.sh-b { font-weight: 600; }
.ux .sh-grid td.sh-neg { color: #A3362A; }
.ux .sh-tot td { font-weight: 600; background: #F7F5F0; border-top: 2px solid #14243A; }
.ux .sh-grid td.is-sel { position: relative; outline: 2px solid #2F7350; outline-offset: -2px; background: #EAF3EC; }
.ux .sh-grid td.is-sel::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 6px; height: 6px; background: #2F7350; border: 1px solid #fff; }
.ux .sh-grid td.is-peer { position: relative; outline: 2px solid #6E4A6B; outline-offset: -2px; overflow: visible; }
.ux .sh-peer { position: absolute; right: -2px; bottom: 100%; padding: 1px 5px; background: #6E4A6B; color: #fff; font: 500 11px/1.4 var(--ux-sans); border-radius: 3px 3px 0 3px; z-index: 2; }
.ux .sh-foot { display: flex; align-items: center; gap: 2px; height: 38px; padding: 0 12px 0 6px; border-top: 1px solid var(--ux-line); background: var(--ux-bg); flex: none; overflow: hidden; }
.ux .sh-tab { padding: 0 14px; height: 38px; display: flex; align-items: center; font-size: 12.5px; color: var(--ux-muted); border-right: 1px solid var(--ux-line); white-space: nowrap; }
.ux .sh-tab.is-on { background: #fff; color: #2F7350; font-weight: 600; box-shadow: inset 0 -2px 0 #2F7350; }
.ux .sh-stat { font-size: 12px; color: var(--ux-muted); white-space: nowrap; }
.ux .sh-stat b { color: var(--ux-ink); }

@container ux (max-width: 540px) { .ux .sh-colB { display: none; } .ux .sh-grid .sh-cA { width: 150px; } .ux .sh-grid .sh-cN { width: 78px; } .ux .sh-tab { padding: 0 10px; } .ux .sh-x2 { display: none; } }
@container ux (max-width: 640px) { .ux .sh-cA { width: 156px; } .ux .sh-cB { width: 104px; } .ux .sh-x { display: none; } }
@container ux (max-width: 420px) { .ux .sh-fx__i { display: none; } .ux .sh-name { width: 48px; } }

/* ====================================================== slides · sl- == */

.ux.sl { --ux-h: 600px; }
.ux .sl-body { flex: 1; display: grid; grid-template-columns: 188px minmax(0, 1fr); min-height: 0; }
.ux .sl-thumbs { display: flex; flex-direction: column; gap: 12px; padding: 14px 14px 14px 8px; border-right: 1px solid var(--ux-line); background: var(--ux-bg); overflow: hidden; }
.ux .sl-thumbs > li { display: flex; gap: 6px; align-items: flex-start; }
.ux .sl-n { width: 16px; flex: none; text-align: right; font-size: 11px; color: var(--ux-faint); padding-top: 2px; }
.ux .sl-th { flex: 1; aspect-ratio: 16 / 9; display: flex; flex-direction: column; gap: 5px; padding: 9px 10px; background: #fff; border: 1px solid var(--ux-line-2); border-radius: 3px; overflow: hidden; }
.ux .sl-th b { font-size: 11px; line-height: 1.2; font-weight: 600; color: #14243A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ux .sl-th--navy { background: #14243A; justify-content: flex-end; }
.ux .sl-th--navy b { color: #fff; }
.ux .is-on > .sl-th { outline: 2px solid var(--ux-accent); outline-offset: 1px; border-color: transparent; }
.ux .is-on > .sl-n { color: var(--ux-accent-ink); font-weight: 600; }
.ux .sl-l { display: block; height: 4px; border-radius: 2px; background: #D9D4C9; }
.ux .sl-l--inv { background: #C4572E; }
.ux .sl-l--40 { width: 40%; } .ux .sl-l--48 { width: 48%; } .ux .sl-l--55 { width: 55%; } .ux .sl-l--62 { width: 62%; } .ux .sl-l--70 { width: 70%; }
.ux .sl-mini-t { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.ux .sl-mini-t > i { background: #E7E3DA; border-radius: 1px; }
.ux .sl-mini-t > i:nth-child(-n+3) { background: #14243A; }
.ux .sl-mini-line { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); align-items: start; border-top: 2px solid #CFC9BC; margin-top: 8px; }
.ux .sl-mini-line > i { width: 6px; height: 6px; margin-top: -4px; border-radius: 50%; background: #14243A; }
.ux .sl-mini-line > i:first-child { background: #C4572E; }

.ux .sl-stage { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 28px 14px; background: var(--ux-sunken); overflow: hidden; min-width: 0; }
.ux .sl-slide { container: slide / inline-size; width: 100%; max-width: 620px; flex: none; background: #fff; box-shadow: 0 1px 3px rgba(20, 36, 58, 0.14), 0 0 0 1px rgba(20, 36, 58, 0.06); }
.ux .sl-in { aspect-ratio: 16 / 9; display: flex; flex-direction: column; padding: 6cqw 6.5cqw 3.5cqw; color: #23282F; }
.ux .sl-kick { font: 500 max(11px, 1.5cqw)/1.3 var(--ux-mono); letter-spacing: 0.05em; text-transform: uppercase; color: #A4451F; }
.ux .sl-title { margin-top: 1.4cqw; }
.ux .sl-title > span { display: inline-block; font: 400 max(18px, 4.6cqw)/1.1 var(--ux-serif); color: #14243A; letter-spacing: -0.01em; outline: 1.5px solid #3E5878; outline-offset: 0.8cqw; position: relative; }
.ux .sl-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 2.5cqw; margin-top: auto; margin-bottom: auto; }
.ux .sl-steps > li { position: relative; display: flex; flex-direction: column; gap: 0.6cqw; padding-top: 2.4cqw; border-top: 2px solid #CFC9BC; }
.ux .sl-steps > li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: #14243A; border: 2px solid #fff; }
.ux .sl-steps > li.is-now { border-top-color: #C4572E; }
.ux .sl-steps > li.is-now::before { background: #C4572E; }
.ux .sl-when { font: 500 max(11px, 1.35cqw)/1.3 var(--ux-mono); color: #6B717A; }
.ux .sl-what { font: 600 max(12px, 2cqw)/1.25 var(--ux-sans); color: #14243A; }
.ux .sl-det { font: 400 max(11px, 1.55cqw)/1.4 var(--ux-sans); color: #4A525D; }
.ux .sl-foot { display: flex; align-items: center; gap: 1cqw; font: 500 max(11px, 1.3cqw)/1 var(--ux-sans); color: #6B717A; }
.ux .sl-mark { width: max(12px, 2cqw); height: max(12px, 2cqw); fill: #14243A; }
.ux .sl-mark .ux-mark__lift { fill: #C4572E; }
.ux .sl-notes { width: 100%; max-width: 620px; display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; background: var(--ux-surface); border: 1px solid var(--ux-line); border-radius: 6px; font-size: 12.5px; line-height: 1.5; }
.ux .sl-notes__h { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ux-faint); }

@container slide (max-width: 520px) {
  .ux .sl-in { aspect-ratio: auto; padding: 18px 18px 14px; gap: 0; }
  .ux .sl-steps { grid-template-columns: 1fr 1fr; gap: 16px 14px; margin: 18px 0 14px; }
  .ux .sl-steps > li { padding-top: 10px; gap: 3px; }
}
@container ux (max-width: 760px) { .ux .sl-body { grid-template-columns: 112px minmax(0, 1fr); } .ux .sl-th b { display: none; } .ux .sl-stage { padding: 16px; } }
@container ux (max-width: 540px) { .ux .sl-body { grid-template-columns: minmax(0, 1fr); } .ux .sl-thumbs { display: none; } .ux .sl-stage { padding: 12px; } }

/* ======================================================= files · fl- == */

.ux.fl { --ux-h: 600px; }
.ux .fl-new { justify-content: center; margin-bottom: 8px; }
.ux .fl-main { display: grid; grid-template-columns: minmax(0, 1fr) 286px; }
.ux .fl-list { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.ux .fl-bar { gap: 6px; }
.ux .fl-crumbs { font-size: 14px; }
.ux .fl-crumbs > span:last-child { font-weight: 600; }
.ux .fl-table td { padding-top: 7px; padding-bottom: 7px; }
.ux .fl-table .fl-cb { width: 36px; padding-right: 0; }
.ux .fl-table .fl-name { max-width: 0; width: 40%; }
.ux .fl-table .fl-name .ux-cell__t > span:first-child { font-weight: 500; }
.ux .fl-sub { display: none; }
.ux .fl-c-own .ux-cell { gap: 7px; }
.ux .fl-c-own { max-width: 150px; }
.ux .fl-c-own .ux-tr { display: none; }
.ux .fl-share { display: inline-flex; align-items: center; gap: 5px; color: var(--ux-muted); font-size: 12px; }
.ux .fl-table .fl-c-sync { width: 40px; text-align: center; }
.ux .fl-table thead .fl-c-sync .ux-i { margin: 0 auto; color: var(--ux-faint); }
.ux .fl-s { display: inline-grid; place-items: center; color: var(--ux-faint); vertical-align: middle; }
.ux .fl-s--ok { color: var(--ux-ok); }
.ux .fl-s--busy { color: var(--ux-info); }
.ux .fl-s--pin { color: #fff; background: var(--ux-ok); border-radius: 50%; }
.ux .fl-s--pin .ux-i { stroke-width: 2; }
.ux .fl-legend { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 16px; border-top: 1px solid var(--ux-line); font-size: 11.5px; color: var(--ux-muted); }
.ux .fl-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.ux .fl-legend .fl-s--pin .ux-i { width: 14px; height: 14px; }

.ux .fl-detail { display: flex; flex-direction: column; gap: 0; border-left: 1px solid var(--ux-line); background: var(--ux-bg); overflow: hidden; min-height: 0; }
.ux .fl-detail__h { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 12px; border-bottom: 1px solid var(--ux-line); font-size: 12px; }
.ux .fl-detail__n { font-size: 14px; font-weight: 600; color: var(--ux-ink); margin-top: 8px; }
.ux .fl-prev { display: block; padding: 8px; border: 1px solid var(--ux-line); border-radius: 5px; background: #fff; }
.ux .fl-prev__g { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2px; }
.ux .fl-prev__g > i { height: 9px; background: #EEEBE4; }
.ux .fl-prev__g > i:nth-child(-n+4) { background: #14243A; }
.ux .fl-prev__g > i:nth-child(n+21) { background: #D3DED6; }
.ux .fl-sec { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ux-muted); }
.ux .fl-sec__a { font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ux-teal); }
.ux .fl-acl { padding: 0 16px; }
.ux .fl-acl > li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 4px 0; font-size: 12.5px; }
.ux .fl-acl > li > .ux-muted { font-size: 12px; }
.ux .fl-grp { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ux-sunken); color: var(--ux-muted); }
.ux .fl-link { display: flex; align-items: center; gap: 6px; margin: 8px 16px 2px; padding: 6px 9px; border-radius: 5px; background: var(--ux-sunken); font-size: 12px; color: var(--ux-muted); }
.ux .fl-vers { padding: 0 16px; }
.ux .fl-vers > li { display: flex; align-items: center; gap: 9px; padding: 6px 0; border-top: 1px solid var(--ux-line); }
.ux .fl-vers > li:first-child { border-top: 0; }
.ux .fl-v { font: 500 11.5px/1 var(--ux-mono); color: var(--ux-muted); width: 28px; }
.ux .is-cur .fl-v { color: var(--ux-accent-ink); }
.ux .fl-vt { flex: 1; display: flex; flex-direction: column; line-height: 1.3; font-size: 12.5px; min-width: 0; }
.ux .fl-vt > span:first-child { color: var(--ux-ink); font-weight: 500; }
.ux .fl-vt > span + span { font-size: 11.5px; color: var(--ux-muted); }

@container ux (max-width: 1120px) { .ux .fl-main { grid-template-columns: minmax(0, 1fr); } .ux .fl-main > .fl-detail { display: none; } .ux .fl-c-own .ux-tr { display: block; } }
@container ux (max-width: 760px) { .ux .fl-c-own, .ux .fl-c-size, .ux .fl-x1 { display: none; } }
@container ux (max-width: 600px) {
  .ux .fl-c-mod, .ux .fl-c-share, .ux .fl-cb { display: none; }
  .ux .fl-sub { display: block; }
  .ux .fl-table .fl-name { width: auto; }
  .ux .fl-crumbs > span:first-child, .ux .fl-crumbs > .ux-i:nth-child(2) { display: none; }
  .ux .fl-legend > span:nth-child(n+3) { display: none; }
}

/* ================================================= sync client · sy- == */

.ux.sy { background: #DAD4C8; border-color: #BDB5A6; }
.ux .sy-desk { position: relative; display: flex; align-items: flex-end; gap: 22px; padding: 28px 22px 14px 28px; min-height: 600px; }
.ux .sy-win {
  flex: 1; align-self: flex-start; display: flex; flex-direction: column; min-width: 0; height: 430px; overflow: hidden;
  background: var(--ux-surface); border: 1px solid #B9B2A4; border-radius: 8px; box-shadow: 0 12px 32px rgba(20, 36, 58, 0.18);
}
.ux .sy-win__bar { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 4px 0 12px; background: var(--ux-bg); border-bottom: 1px solid var(--ux-line); font-size: 12.5px; font-weight: 500; color: var(--ux-ink); }
.ux .sy-wc { display: grid; place-items: center; width: 34px; height: 28px; color: var(--ux-muted); }
.ux .sy-win__addr { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-bottom: 1px solid var(--ux-line); color: var(--ux-muted); }
.ux .sy-path { flex: 1; display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border: 1px solid var(--ux-line-2); border-radius: 4px; font-size: 12px; color: var(--ux-text); white-space: nowrap; overflow: hidden; min-width: 0; }
.ux .sy-path .ux-i { color: var(--ux-faint); }
.ux .sy-pmark { width: 14px; height: 14px; fill: var(--ux-navy); flex: none; }
.ux .sy-pmark .ux-mark__lift { fill: var(--ux-accent); }
.ux .sy-win__body { flex: 1; display: grid; grid-template-columns: 196px minmax(0, 1fr); min-height: 0; }
.ux .sy-tree { padding: 8px 6px; border-right: 1px solid var(--ux-line); background: var(--ux-bg); font-size: 12.5px; }
.ux .sy-tree > li { display: flex; align-items: center; gap: 7px; height: 28px; padding: 0 8px; border-radius: 4px; white-space: nowrap; overflow: hidden; color: var(--ux-text); }
.ux .sy-tree > li .ux-i { color: var(--ux-muted); }
.ux .sy-tree__ou { margin-top: 8px; font-weight: 600; color: var(--ux-ink); }
.ux .sy-tree__sub { padding-left: 22px !important; }
.ux .sy-tree > li.is-on { background: var(--ux-sel); }
.ux .sy-files { font-size: 12.5px; }
.ux .sy-files td { padding-top: 6px; padding-bottom: 6px; }
.ux .sy-files .sy-fn { max-width: 0; width: 55%; }
.ux .sy-st--ok { color: var(--ux-ok); } .ux .sy-st--busy { color: var(--ux-info); } .ux .sy-st--warn { color: var(--ux-warn); }
.ux .sy-st--pin { color: #fff; background: var(--ux-ok); border-radius: 50%; }
.ux .sy-st--cloud { color: var(--ux-faint); }

.ux .sy-tray {
  flex: 0 0 340px; display: flex; flex-direction: column; overflow: hidden;
  background: var(--ux-surface); border: 1px solid #B9B2A4; border-radius: 10px; box-shadow: 0 16px 40px rgba(20, 36, 58, 0.22);
}
.ux .sy-tray__h { display: flex; align-items: center; gap: 9px; padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--ux-line); }
.ux .sy-tmark { width: 18px; height: 18px; fill: var(--ux-navy); flex: none; }
.ux .sy-tmark .ux-mark__lift { fill: var(--ux-accent); }
.ux .sy-tray__t { font-weight: 600; color: var(--ux-ink); white-space: nowrap; }
.ux .sy-acct { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.ux .sy-acct .ux-cell__t { flex: 1; }
.ux .sy-status { display: flex; gap: 12px; margin: 0 14px; padding: 12px; border: 1px solid var(--ux-line); border-radius: 7px; background: var(--ux-bg); }
.ux .sy-status__i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ux-info-bg); color: var(--ux-info); flex: none; }
.ux .sy-status__t { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ux .sy-status__t > span:first-child { font-weight: 600; color: var(--ux-ink); }
.ux .sy-status__t > span:nth-child(2) { font-size: 12px; color: var(--ux-muted); }
.ux .sy-status__t .ux-bar { margin-top: 4px; }
.ux .sy-status__t .ux-bar > span { background: var(--ux-info); }
.ux .sy-conflict { margin: 10px 14px 0; padding: 10px 12px; border-radius: 7px; background: var(--ux-warn-bg); border: 1px solid #E6CF9F; font-size: 12.5px; line-height: 1.45; }
.ux .sy-conflict__h { display: flex; align-items: center; gap: 6px; color: var(--ux-warn); font-weight: 600; margin-bottom: 4px; }
.ux .sy-conflict b { color: var(--ux-ink); }
.ux .sy-conflict__a { display: flex; gap: 6px; margin-top: 8px; }
.ux .sy-sec { padding: 14px 14px 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ux-faint); }
.ux .sy-act > li { display: flex; align-items: center; gap: 10px; padding: 7px 14px; }
.ux .sy-act .ux-cell__t { flex: 1; }
.ux .sy-act .ux-cell__t > span:first-child { font-weight: 500; font-size: 12.5px; }
.ux .sy-act__i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: var(--ux-sunken); color: var(--ux-muted); flex: none; }
.ux .sy-act__i--up { background: var(--ux-info-bg); color: var(--ux-info); }
.ux .sy-act__i--pin { background: var(--ux-ok-bg); color: var(--ux-ok); }
.ux .sy-act__t { font-size: 11.5px; color: var(--ux-faint); flex: none; }
.ux .sy-foot { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--ux-line); background: var(--ux-bg); }
.ux .sy-quota { flex: 1; display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; color: var(--ux-muted); }
.ux .sy-task { display: flex; align-items: center; height: 44px; padding: 0 10px; background: #1B2633; color: #C9D2DE; }
.ux .sy-task__start { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 5px; }
.ux .sy-task__tray { display: flex; align-items: center; gap: 12px; font-size: 11.5px; }
.ux .sy-task__ou { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 5px; background: #2C3A4C; }
.ux .sy-task__ou .sy-tmark { width: 16px; height: 16px; fill: #F3F0E9; }
.ux .sy-task__dot { position: absolute; right: 3px; bottom: 3px; width: 8px; height: 8px; border-radius: 50%; background: #5B8FD0; border: 1.5px solid #2C3A4C; }
.ux .sy-task__clock { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; color: #E7ECF2; }

@container ux (max-width: 980px) { .ux .sy-win__body { grid-template-columns: minmax(0, 1fr); } .ux .sy-tree, .ux .sy-c-mod { display: none; } }
@container ux (max-width: 640px) {
  .ux .sy-desk { justify-content: center; padding: 18px 14px 12px; min-height: 0; }
  .ux .sy-win { display: none; }
  .ux .sy-tray { flex: 1 1 auto; max-width: 400px; }
}
@container ux (max-width: 400px) { .ux .sy-desk { padding: 10px 8px; } .ux .sy-task__tray > .ux-i { display: none; } }

/* ======================================================== chat · ch- == */

.ux.ch { --ux-h: 640px; }
.ux .ch-body { grid-template-columns: 64px 236px minmax(0, 1fr); }
.ux .ch-side__h { display: flex; align-items: center; gap: 2px; padding: 0 0 6px 8px; }
.ux .ch-side__h .ux-title { font-size: 15px; }
.ux .ch-team { font-weight: 600; color: var(--ux-ink); margin-top: 4px; }
.ux .ch-tav { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; color: #fff; font-size: 11px; font-weight: 600; flex: none; background: var(--ux-navy); }
.ux .ch-tav--teal { background: var(--ux-teal); }
.ux .ch-chan { padding-left: 26px; min-height: 28px; }
.ux .ch-chan .ux-i { width: 14px; height: 14px; }
.ux .ch-main { display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
.ux .ch-chan-col { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ux .ch-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px 8px 16px; flex: none; min-width: 0; }
.ux .ch-head__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 7px; background: var(--ux-sunken); color: var(--ux-navy); flex: none; }
.ux .ch-head__t { display: flex; flex-direction: column; min-width: 0; font-size: 12px; }
.ux .ch-head__t .ux-title { font-size: 15px; }
.ux .ch-mem { margin-right: 2px; }
.ux .ch-mem__n { margin-left: 6px; font-size: 12px; color: var(--ux-muted); font-weight: 500; }
.ux .ch-tabs { padding-left: 16px; }
.ux .ch-feed { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 6px 0 4px; overflow: hidden; background: var(--ux-bg); }
.ux .ch-day { position: relative; text-align: center; font-size: 11.5px; font-weight: 600; color: var(--ux-muted); margin: 4px 0; }
.ux .ch-day::before { content: ""; position: absolute; left: 16px; right: 16px; top: 50%; border-top: 1px solid var(--ux-line); }
.ux .ch-day > span { position: relative; background: var(--ux-bg); padding: 0 10px; }
.ux .ch-post { display: flex; gap: 11px; padding: 8px 16px; font-size: 13px; line-height: 1.5; }
.ux .ch-post.is-thread { background: var(--ux-sel); box-shadow: inset 3px 0 0 var(--ux-navy); }
.ux .ch-post__b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ux .ch-post__h { display: flex; align-items: baseline; gap: 8px; line-height: 1.2; }
.ux .ch-post__h > span:first-child { font-weight: 600; color: var(--ux-ink); }
.ux .ch-post__h > span + span { font-size: 11.5px; color: var(--ux-faint); }
.ux .ch-at { color: var(--ux-accent-ink); background: var(--ux-accent-soft); padding: 0 3px; border-radius: 3px; font-weight: 600; }
.ux .ch-file { display: flex; align-items: center; gap: 10px; max-width: 420px; margin-top: 4px; padding: 8px 10px; border: 1px solid var(--ux-line-2); border-radius: 7px; background: var(--ux-surface); }
.ux .ch-file .ux-cell__t { flex: 1; }
.ux .ch-replies { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12px; }
.ux .ch-replies > span:nth-child(2) { color: var(--ux-teal); font-weight: 600; }
.ux .ch-reacts { display: flex; gap: 6px; margin-top: 2px; }
.ux .ch-react { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border: 1px solid var(--ux-line-2); border-radius: 12px; font-size: 12px; color: var(--ux-muted); background: var(--ux-surface); }
.ux .ch-react.is-mine { border-color: var(--ux-sel-line); background: var(--ux-sel); color: var(--ux-navy); }
.ux .ch-meet-card { display: flex; align-items: center; gap: 11px; max-width: 460px; padding: 10px 12px; border: 1px solid var(--ux-line-2); border-left: 3px solid var(--ux-info); border-radius: 7px; background: var(--ux-surface); }
.ux .ch-meet-card .ux-cell__t { flex: 1; }
.ux .ch-meet-card__i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 7px; background: var(--ux-info-bg); color: var(--ux-info); flex: none; }
.ux .ch-typing { display: flex; align-items: center; gap: 8px; padding: 6px 16px 0 57px; font-size: 12px; color: var(--ux-muted); font-style: italic; }
.ux .ch-dots { display: inline-flex; gap: 3px; }
.ux .ch-dots > i { width: 5px; height: 5px; border-radius: 50%; background: var(--ux-faint); }
.ux .ch-compose { flex: none; margin: 8px 16px 14px; border: 1px solid var(--ux-line-2); border-radius: 8px; background: var(--ux-surface); overflow: hidden; }
.ux .ch-compose__tools { display: flex; align-items: center; gap: 1px; padding: 3px 6px; border-bottom: 1px solid var(--ux-line); }
.ux .ch-compose__tools .ux-ib { width: 28px; height: 28px; }
.ux .ch-compose__in { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 6px 0 12px; color: var(--ux-faint); }
.ux .ch-compose__in > span:first-child { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ux .ch-send { display: grid; place-items: center; width: 32px; height: 30px; border-radius: 5px; background: var(--ux-accent); color: #fff; }
.ux .ch-compose--sm { margin: 8px 12px 12px; }
.ux .ch-thread { display: flex; flex-direction: column; border-left: 1px solid var(--ux-line); min-height: 0; overflow: hidden; }
.ux .ch-thread__h { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 14px; border-bottom: 1px solid var(--ux-line); flex: none; font-size: 12px; }
.ux .ch-thread__h .ux-i { color: var(--ux-muted); }
.ux .ch-thread__b { flex: 1; overflow: hidden; padding: 6px 0; }
.ux .ch-post--sm { padding: 8px 14px; font-size: 12.5px; gap: 9px; }
.ux .ch-thread__n { position: relative; margin: 2px 14px 2px; padding-bottom: 6px; border-bottom: 1px solid var(--ux-line); font-size: 11.5px; font-weight: 600; color: var(--ux-muted); }

@container ux (max-width: 1100px) { .ux .ch-main { grid-template-columns: minmax(0, 1fr); } .ux .ch-main > .ch-thread { display: none; } }
@container ux (max-width: 900px) { .ux .ch-body { grid-template-columns: 64px minmax(0, 1fr); } }
@container ux (max-width: 640px) { .ux .ch-meet span:not(.ux-i) { display: none; } .ux .ch-mem, .ux .ch-x { display: none; } .ux .ch-post { padding: 8px 12px; } .ux .ch-compose { margin: 8px 10px 10px; } .ux .ch-typing { padding-left: 53px; } }
@container ux (max-width: 540px) { .ux .ch-body { grid-template-columns: minmax(0, 1fr); } .ux .ch-meet { display: none; } .ux .ch-head__t > .ux-muted { display: none; } }

/* ===================================================== meet · mt- (dark) == */

.ux.mt { background: #0B1420; }
.ux .mt-top { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 14px; border-bottom: 1px solid var(--ux-line); color: var(--ux-ink); flex: none; }
.ux .mt-top__t { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ux .mt-top__t > span:first-child { font-weight: 600; font-size: 14px; }
.ux .mt-top__t > span + span { font-size: 11.5px; color: var(--ux-muted); }
.ux .mt-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; background: var(--ux-sunken); color: var(--ux-text); font-size: 12px; white-space: nowrap; flex: none; }
.ux .mt-pill--rec { color: var(--ux-muted); }
.ux .mt-rec { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ux-muted); }
.ux .mt-body { display: grid; grid-template-columns: minmax(0, 1fr) 290px; height: 540px; min-height: 0; }
.ux .mt-stage { display: flex; flex-direction: column; gap: 10px; padding: 12px; min-width: 0; min-height: 0; }
.ux .mt-share { flex: 1; display: flex; flex-direction: column; gap: 8px; min-height: 0; padding: 10px 12px 12px; border-radius: 8px; background: #08101A; overflow: hidden; }
.ux .mt-share__lbl { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ux-muted); }
.ux .mt-shot { flex: 1; display: flex; flex-direction: column; border-radius: 5px; background: #fff; color: #23282F; overflow: hidden; min-height: 0; }
.ux .mt-shot__bar { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; background: #F3F1EC; border-bottom: 1px solid #E3DFD6; font-size: 12px; font-weight: 500; color: #18212D; }
.ux .mt-shot__ic { width: 14px; height: 14px; border-radius: 3px; background: #2F7350; flex: none; }
.ux .mt-tb { width: 100%; border-collapse: collapse; font: 400 12.5px/1.2 var(--ux-sans); }
.ux .mt-tb th, .ux .mt-tb td, .section--dark .ux .mt-tb th, .section--dark .ux .mt-tb td { padding: 7px 12px; border-bottom: 1px solid #ECE9E2; text-align: left; color: #23282F; font: inherit; text-transform: none; letter-spacing: 0; vertical-align: middle; white-space: nowrap; }
.ux .mt-tb thead th, .section--dark .ux .mt-tb thead th { background: #14243A; color: #fff; font-weight: 600; font-size: 12px; border-bottom: 0; }
.ux .mt-tb .ux-r { text-align: right; font-variant-numeric: tabular-nums; }
.ux .mt-tb tr.is-flag td { background: #FBEFD8; }
.ux .mt-tb tr.is-flag td:last-child { color: #A4451F; font-weight: 600; }
.ux .mt-shot__note { margin-top: auto; padding: 7px 12px; font-size: 11.5px; color: #8A5A0E; background: #FBF6EC; border-top: 1px solid #ECE9E2; }
.ux .mt-tiles { flex: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.ux .mt-tile { position: relative; aspect-ratio: 16 / 10; border-radius: 7px; overflow: hidden; display: grid; place-items: center; background: #22344C; }
.ux .mt-tile--t1 { background: #24403F; } .ux .mt-tile--t2 { background: #3A3046; } .ux .mt-tile--t3 { background: #43362A; }
.ux .mt-tile--t4 { background: #2A3A52; } .ux .mt-tile--t5 { background: #26313F; } .ux .mt-tile--t6 { background: #1E2B3C; }
.ux .mt-sil { position: absolute; inset: 14% 0 0; width: 100%; height: 86%; }
.ux .mt-tile--t1 .mt-sil { fill: #5F8F8A; } .ux .mt-tile--t2 .mt-sil { fill: #8A7499; } .ux .mt-tile--t3 .mt-sil { fill: #A08566; } .ux .mt-tile--t4 .mt-sil { fill: #6D86A8; }
.ux .mt-tile.is-speaking { box-shadow: inset 0 0 0 2px #5FA9A5, 0 0 0 1px #5FA9A5; }
.ux .mt-room { color: #9DAABB; }
.ux .mt-room .ux-i { width: 28px; height: 28px; }
.ux .mt-name { position: absolute; left: 5px; bottom: 5px; right: 5px; display: flex; align-items: center; gap: 4px; width: fit-content; max-width: calc(100% - 10px); padding: 2px 6px; border-radius: 4px; background: rgba(8, 16, 26, 0.78); color: #F1F4F8; font-size: 11px; }
.ux .mt-name .ux-i { width: 12px; height: 12px; }
.ux .is-hand .mt-name .ux-i, .ux .mt-tile--t4 .mt-name .ux-i { color: #EE8F80; }
.ux .mt-hand { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #E2B567; color: #2A1F0E; }
.ux .mt-panel { display: flex; flex-direction: column; border-left: 1px solid var(--ux-line); background: var(--ux-side); min-height: 0; overflow: hidden; }
.ux .mt-tabs { padding: 0 14px; }
.ux .mt-sec { display: flex; justify-content: space-between; padding: 12px 14px 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ux-faint); }
.ux .mt-sec__a { font-size: 12px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--ux-teal); }
.ux .mt-people > li { display: flex; align-items: center; gap: 9px; padding: 5px 14px; font-size: 12.5px; color: var(--ux-ink); }
.ux .mt-people > li > .ux-tr { flex: 1; }
.ux .mt-people > li > .ux-i { color: var(--ux-muted); }
.ux .mt-people .mt-ok { color: var(--ux-teal); }
.ux .mt-people .mt-off { color: var(--ux-bad); }
.ux .mt-q { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border-radius: 11px; background: #E2B567; color: #2A1F0E; font-size: 11px; font-weight: 600; }
.ux .mt-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.ux .mt-eq > i { width: 3px; border-radius: 1px; background: #5FA9A5; }
.ux .mt-eq > i:nth-child(1) { height: 6px; } .ux .mt-eq > i:nth-child(2) { height: 13px; } .ux .mt-eq > i:nth-child(3) { height: 9px; }
.ux .mt-room-av { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ux-sunken); color: var(--ux-muted); flex: none; }
.ux .mt-chat { margin-top: auto; border-top: 1px solid var(--ux-line); padding-bottom: 12px; }
.ux .mt-msg { display: flex; flex-direction: column; gap: 1px; padding: 5px 14px; font-size: 12.5px; line-height: 1.4; }
.ux .mt-msg > span:first-child { font-weight: 600; color: var(--ux-ink); font-size: 12px; }
.ux .mt-in { display: flex; align-items: center; justify-content: space-between; margin: 8px 14px 0; height: 34px; padding: 0 10px; border: 1px solid var(--ux-line-2); border-radius: 6px; color: var(--ux-faint); }
.ux .mt-ctrl { display: flex; align-items: center; justify-content: center; gap: 6px; height: 72px; padding: 0 12px; border-top: 1px solid var(--ux-line); background: #0B1420; flex: none; }
.ux .mt-c { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 58px; height: 54px; border-radius: 8px; background: var(--ux-sunken); color: var(--ux-ink); font-size: 11px; }
.ux .mt-c .ux-i { width: 20px; height: 20px; }
.ux .mt-c.is-off { background: #F1F4F8; color: #14243A; }
.ux .mt-c.is-sel { background: var(--ux-sel); box-shadow: inset 0 -2px 0 #5FA9A5; }
.ux .mt-div { width: 1px; height: 32px; background: var(--ux-line-2); margin: 0 4px; }
.ux .mt-leave { display: flex; align-items: center; gap: 7px; height: 40px; margin-left: 10px; padding: 0 16px; border-radius: 8px; background: #B8443A; color: #fff; font-weight: 600; font-size: 13px; }
.ux .mt-leave .ux-i { width: 20px; height: 20px; }

@container ux (max-width: 1000px) { .ux .mt-body { grid-template-columns: minmax(0, 1fr); } .ux .mt-panel { display: none; } .ux .mt-c.is-sel { box-shadow: none; background: var(--ux-sunken); } }
@container ux (max-width: 760px) {
  .ux .mt-x1 { display: none; }
  .ux .mt-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ux .mt-body { height: auto; }
  .ux .mt-share { flex: none; }
  .ux .mt-shot { flex: none; }
}
@container ux (max-width: 560px) {
  .ux .mt-x2 { display: none; }
  .ux .mt-top { gap: 8px; }
  .ux .mt-top .ux-mark { display: none; }
  .ux .mt-tb th:nth-child(1), .ux .mt-tb td:nth-child(1), .ux .mt-tb th:nth-child(3), .ux .mt-tb td:nth-child(3) { display: none; }
  .ux .mt-tb th, .ux .mt-tb td { padding: 6px 8px; }
  .ux .mt-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ux .mt-tile:nth-child(n+5) { display: none; }
  .ux .mt-c { width: 52px; }
  .ux .mt-leave { margin-left: 4px; padding: 0 12px; }
  .ux .mt-leave span { display: none; }
}

/* ======================================================= admin · ad- == */

.ux.ad { --ux-h: 680px; }
.ux .ad-table .ad-c-last { display: none; }
.ux .ad-kv { grid-template-columns: auto minmax(0, 1fr); }
.ux .ad-cards > .ux-card { flex: none; }
.ux .ad-side { gap: 1px; }
.ux .ad-org { margin-top: auto; display: flex; align-items: center; gap: 9px; padding: 10px 8px 2px; border-top: 1px solid var(--ux-line); }
.ux .ad-main { display: grid; grid-template-columns: minmax(0, 1fr) 288px; background: var(--ux-bg); }
.ux .ad-users { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; background: var(--ux-surface); border-right: 1px solid var(--ux-line); }
.ux .ad-users .ux-bar-h .ux-cell__t > span + span { font-size: 12px; }
.ux .ad-note { display: flex; align-items: center; gap: 8px; margin: 12px 16px 0; padding: 8px 11px; border-radius: 6px; background: var(--ux-teal-soft); color: var(--ux-teal); font-size: 12.5px; }
.ux .ad-note > span { color: var(--ux-text); }
.ux .ad-filters { display: flex; align-items: center; gap: 6px; padding: 12px 16px; flex-wrap: wrap; }
.ux .ad-search { width: 230px; margin-right: 6px; }
.ux .ad-table .ad-user { max-width: 0; width: 34%; }
.ux .ad-sto { display: flex; flex-direction: column; gap: 4px; width: 100px; font-size: 11.5px; color: var(--ux-muted); }
.ux .ad-table tr.ad-off td { color: var(--ux-faint); }
.ux .ad-table tr.ad-off .ux-av { opacity: 0.5; }
.ux .ad-cards { display: flex; flex-direction: column; gap: 12px; padding: 12px; overflow: hidden; min-height: 0; }
.ux .ad-cards .ux-card__h .ux-i { color: var(--ux-muted); }
.ux .ad-health > li { padding: 7px 14px; align-items: center; font-size: 12.5px; }
.ux .ad-health > li > .ux-dot { margin-top: 0; }
.ux .ad-health > li > span:last-child { font-size: 12px; font-weight: 500; }
.ux .ad-upd { padding: 10px 14px; border-top: 1px solid var(--ux-line); display: flex; flex-direction: column; gap: 5px; }
.ux .ux-card__h + .ad-upd { border-top: 0; }
.ux .ad-upd__t { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 600; color: var(--ux-ink); }
.ux .ad-upd__d { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ux-muted); }
.ux .ad-upd__a { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.ux .ad-upd__n { margin-left: auto; font-size: 12px; color: var(--ux-teal); }
.ux .ad-kv { font-size: 12px; gap: 7px 10px; }

@container ux (max-width: 1100px) {
  .ux.ad .ux-body { height: auto; }
  .ux .ad-table .ad-c-last { display: table-cell; }
  .ux .ad-main { grid-template-columns: minmax(0, 1fr); }
  .ux .ad-users { border-right: 0; border-bottom: 1px solid var(--ux-line); }
  .ux .ad-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: start; }
}
@container ux (max-width: 700px) { .ux .ad-table .ad-c-last, .ux .ad-c-role, .ux .ad-x1 { display: none; } .ux .ad-search { width: 100%; margin: 0 0 4px; } }
@container ux (max-width: 540px) { .ux .ad-c-sto { display: none; } 
  .ux .ad-table .ad-user { width: 58%; } .ux .ad-note { margin: 10px 12px 0; } }

/* ============================ migration center, shared · mg- ma- mp- == */

.ux.ma, .ux.mp { --ux-h: auto; }
.ux .mg-main { background: var(--ux-bg); }
.ux .mg-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px 10px; background: var(--ux-surface); flex-wrap: wrap; }
.ux .mg-head__t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ux .mg-head__t .ux-crumbs { font-size: 11.5px; }
.ux .mg-head__t .ux-crumbs > span:last-child { color: var(--ux-muted); font-weight: 400; }
.ux .mg-title { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.ux .mg-tabs { background: var(--ux-surface); }
.ux .mg-content { display: flex; flex-direction: column; gap: 14px; padding: 14px 16px 16px; min-width: 0; }
.ux .mg-2 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.ux .mg-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }

.ux .ma-src { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; }
.ux .ma-src__tabs { padding: 12px 14px; border-right: 1px solid var(--ux-line); grid-row: span 2; align-self: stretch; display: flex; align-items: center; }
.ux .ma-src__b { display: flex; align-items: center; gap: 11px; padding: 12px 14px 6px; min-width: 0; }
.ux .ma-src__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 7px; background: var(--ux-info-bg); color: var(--ux-info); flex: none; }
.ux .ma-src__t { flex: 1; }
.ux .ma-src__perm { display: flex; align-items: center; gap: 6px; padding: 0 14px 12px 61px; font-size: 12px; color: var(--ux-muted); }
.ux .ma-stats { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); border: 1px solid var(--ux-line); border-radius: 7px; background: var(--ux-surface); overflow: hidden; }
.ux .ma-stat { display: flex; flex-direction: column; gap: 3px; padding: 11px 12px; min-width: 0; border-left: 1px solid var(--ux-line); }
.ux .ma-stat:first-child { border-left: 0; }
.ux .ma-stat__l { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ux-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ux .ma-stat__l .ux-i { width: 13px; height: 13px; flex: none; }
.ux .ma-stat__v { font-size: 19px; font-weight: 600; color: var(--ux-ink); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ux .ma-stat__s { font-size: 11px; color: var(--ux-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ux .ma-ready .ma-w { font-weight: 500; color: var(--ux-ink); }
.ux .ux-table.ma-ready td.ma-c-note, .ux .ux-table.ma-ready th.ma-c-note { white-space: normal; font-size: 12px; line-height: 1.35; min-width: 180px; }
.ux .ma-compat > li { display: flex; flex-direction: column; gap: 3px; padding: 10px 14px 10px 17px; border-top: 1px solid var(--ux-line); position: relative; font-size: 12px; color: var(--ux-muted); line-height: 1.45; }
.ux .ma-compat > li:first-child { border-top: 0; }
.ux .ma-compat > li::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 2px 2px 0; background: #3C8A55; }
.ux .ma-compat--warn::before { background: #C8902A !important; } .ux .ma-compat--info::before { background: #4F6E95 !important; } .ux .ma-compat--bad::before { background: #B8443A !important; }
.ux .ma-compat__h { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; color: var(--ux-ink); }
.ux .ma-compat__h b { font-variant-numeric: tabular-nums; }
.ux .ma-waves > li { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-top: 1px solid var(--ux-line); }
.ux .ma-waves > li:first-child { border-top: 0; }
.ux .ma-wn { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ux-navy); color: #fff; font-size: 11.5px; font-weight: 600; flex: none; }
.ux .ma-infra .ux-i { color: var(--ux-muted); }
.ux .ma-foot { padding: 8px 14px 10px; border-top: 1px solid var(--ux-line); font-size: 11.5px; color: var(--ux-muted); line-height: 1.4; }

@container ux (max-width: 1100px) { .ux .ma-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } .ux .ma-stat:nth-child(5) { border-left: 0; } .ux .ma-stat:nth-child(n+5) { border-top: 1px solid var(--ux-line); } .ux .mg-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container ux (max-width: 900px) { .ux .mg-2 { grid-template-columns: minmax(0, 1fr); } .ux .ma-c-note { display: none; } }
@container ux (max-width: 640px) {
  .ux .mg-3 { grid-template-columns: minmax(0, 1fr); }
  .ux .ma-src { grid-template-columns: minmax(0, 1fr); }
  .ux .ma-src__tabs { border-right: 0; border-bottom: 1px solid var(--ux-line); grid-row: auto; }
  .ux .ma-src__b { flex-wrap: wrap; }
  .ux .ma-src__t { flex: 1 1 200px; }
  .ux .ma-src__b > .ux-chip { margin-left: 47px; }
  .ux .ma-src__perm { padding-left: 14px; }
  .ux .ma-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ux .ma-stat:nth-child(odd) { border-left: 0; }
  .ux .ma-stat:nth-child(n+3) { border-top: 1px solid var(--ux-line); }
  .ux .ma-stat:nth-child(5) { border-left: 0; }
  .ux .mg-x1, .ux .mg-x2 { display: none; }
  .ux .mg-content { padding: 12px 10px; gap: 12px; }
  .ux .ma-c-vol { display: none; }
}

.ux .mg-2--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ux .mp-waves { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ux .mp-waves > li { display: flex; flex-direction: column; gap: 7px; padding: 11px 12px; border: 1px solid var(--ux-line); border-radius: 7px; background: var(--ux-surface); min-width: 0; }
.ux .mp-waves > li.is-on { border-color: var(--ux-navy); box-shadow: inset 0 3px 0 var(--ux-navy); }
.ux .mp-waves > li:not(.is-on):not(.is-done) .ma-wn { background: var(--ux-sunken); color: var(--ux-muted); }
.ux .mp-waves > li.is-done .ma-wn { background: var(--ux-ok); }
.ux .mp-waves__h { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ux-muted); }
.ux .mp-waves__h > .ux-tr { flex: 1; }
.ux .mp-waves__n { font-weight: 600; color: var(--ux-ink); }
.ux .mp-waves__s { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--ux-muted); }
.ux .mp-waves__s > span:first-child { color: var(--ux-ink); font-weight: 500; }
.ux .mp-work > li { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1.1fr) 40px; align-items: center; gap: 12px; padding: 9px 14px; border-top: 1px solid var(--ux-line); }
.ux .mp-work > li:first-child { border-top: 0; }
.ux .mp-work__i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: var(--ux-sunken); color: var(--ux-muted); }
.ux .mp-work__t { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ux .mp-work__t > span:first-child { font-weight: 500; color: var(--ux-ink); }
.ux .mp-work__t > span + span { font-size: 11.5px; color: var(--ux-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ux .mp-work__p { text-align: right; font-weight: 600; color: var(--ux-ink); font-size: 12.5px; }
.ux .mp-facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ux-line); background: var(--ux-bg); }
.ux .mp-facts > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; font-size: 12px; line-height: 1.35; min-width: 0; }
.ux .mp-facts > div + div { border-left: 1px solid var(--ux-line); }
.ux .mp-facts > div > span:first-child { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ux-faint); }
.ux .mp-facts b { color: var(--ux-ink); font-weight: 600; }
.ux .mp-facts > div > span:last-child { color: var(--ux-muted); }
.ux .mp-issues > li { align-items: center; }
.ux .mp-checks > li { align-items: center; padding: 8px 14px; font-size: 12.5px; }
.ux .mp-plan > li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 14px; border-top: 1px solid var(--ux-line); }
.ux .mp-plan > li:first-child { border-top: 0; }
.ux .mp-ck { display: grid; place-items: center; width: 18px; height: 18px; margin-top: 1px; border-radius: 4px; border: 1.5px solid var(--ux-line-2); flex: none; color: #fff; }
.ux .mp-plan > li.is-done .mp-ck { background: var(--ux-ok); border-color: var(--ux-ok); }
.ux .mp-plan > li.is-done .ux-rows__t > span:first-child { color: var(--ux-muted); text-decoration: line-through; }
.ux .mp-plan > li.is-key { background: var(--ux-accent-soft); }
.ux .mp-plan > li.is-key .mp-ck { border-color: var(--ux-accent); }
.ux .mp-plan > li.is-rb { background: var(--ux-info-bg); }
.ux .mp-plan > li.is-rb .mp-ck { border: 0; color: var(--ux-info); }

@container ux (max-width: 1100px) { .ux .mp-waves { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container ux (max-width: 900px) { .ux .mg-2--even { grid-template-columns: minmax(0, 1fr); } }
@container ux (max-width: 640px) {
  .ux .mp-work > li { grid-template-columns: 28px minmax(0, 1fr) 40px; }
  .ux .mp-work__bar { grid-column: 2 / 4; grid-row: 2; }
  .ux .mp-facts { grid-template-columns: minmax(0, 1fr); }
  .ux .mp-facts > div + div { border-left: 0; border-top: 1px solid var(--ux-line); }
  .ux .mp-issues > li { flex-wrap: wrap; }
  .ux .mp-issues > li > .ux-btn { margin-left: 26px; }
}
@container ux (max-width: 480px) { .ux .mp-waves { grid-template-columns: minmax(0, 1fr); } .ux .mp-waves > li:nth-child(n+3) { display: none; } }

/* ==================================================== MSP console · msp- == */

.ux.msp { --ux-h: auto; }
.ux .msp-iso { height: 26px; padding: 0 10px; border-radius: 13px; font-size: 12px; }
.ux .msp-menu-wrap { position: relative; }
.ux .msp-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 4; display: flex; flex-direction: column; width: 220px; padding: 5px;
  background: var(--ux-surface); border: 1px solid var(--ux-line-2); border-radius: 7px; box-shadow: 0 10px 28px rgba(20, 36, 58, 0.18);
}
.ux .msp-menu > span { display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 9px; border-radius: 4px; color: var(--ux-ink); font-size: 12.5px; white-space: nowrap; }
.ux .msp-menu > span .ux-i { color: var(--ux-muted); }
.ux .msp-menu > span.is-hl { background: var(--ux-sel); }
.ux .msp-menu > i { display: block; height: 1px; margin: 4px 2px; background: var(--ux-line); }
.ux .msp-tablecard { overflow: hidden; }
.ux .msp-filters { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--ux-line); flex-wrap: wrap; }
.ux .msp-search { width: 220px; margin-right: 6px; }
.ux .msp-org { max-width: 0; width: 26%; }
.ux .msp-tav { width: 28px; height: 28px; font-size: 11px; border-radius: 6px; }
.ux .msp-tav--a1 { background: #2D6A68; } .ux .msp-tav--a2 { background: #B0522C; } .ux .msp-tav--a3 { background: #3E5878; } .ux .msp-tav--a4 { background: #6A6A2C; }
.ux .msp-tav--a5 { background: #6E4A6B; } .ux .msp-tav--a6 { background: #4F5B66; } .ux .msp-tav--a7 { background: #946519; } .ux .msp-tav--a8 { background: #3F6B4A; }
.ux .msp-mods { display: flex; gap: 3px; }
.ux .msp-mods > span { padding: 2px 5px; border-radius: 3px; background: var(--ux-sunken); font-size: 11px; color: var(--ux-text); line-height: 1.2; }
.ux .msp-st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.ux .msp-upd { font-size: 12px; }
.ux .msp-upd--ok { color: var(--ux-ok); } .ux .msp-upd--info { color: var(--ux-info); font-weight: 500; }
.ux .msp-me { display: flex; align-items: center; gap: 10px; padding: 12px 14px 6px; }
.ux .msp-perm { padding: 4px 14px 12px; display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; }
.ux .msp-perm > li { display: flex; align-items: center; gap: 7px; }
.ux .msp-perm .is-y .ux-i { color: var(--ux-ok); }
.ux .msp-perm .is-n { color: var(--ux-muted); }
.ux .msp-perm .is-n .ux-i { color: var(--ux-bad); }
.ux .msp-when { display: flex; flex-direction: column; width: 62px; flex: none; font-size: 11.5px; line-height: 1.3; color: var(--ux-muted); }
.ux .msp-when > span:first-child { font-weight: 600; color: var(--ux-ink); }
.ux .msp-alerts > li, .ux .msp-maint > li { font-size: 12.5px; }

@container ux (max-width: 1100px) { .ux .msp-c-mig { display: none; } }
@container ux (max-width: 960px) { .ux .msp-c-mod, .ux .msp-c-users { display: none; } }
@container ux (max-width: 760px) { .ux .msp-c-sto, .ux .msp-c-upd, .ux .msp-x2 { display: none; } .ux .msp-iso { order: 5; } .ux .msp-org { width: 55%; } }
@container ux (max-width: 640px) { .ux .msp-menu { display: none; } .ux .msp-search { width: 100%; margin: 0 0 4px; } .ux .msp-iso { white-space: normal; height: auto; padding: 4px 10px; } }

/* ------------------------------------------- narrowest-width touches -- */

@container ux (max-width: 1080px) { .ux .ml-seg3 { display: none; } .ux .ml-tools__x span { display: none; } .ux .ml-tools__x { padding: 0 7px; } }
@container ux (max-width: 420px) {
  .ux .cal-views { display: none; }
  .ux .ch-meet-card { flex-wrap: wrap; }
  .ux .ch-meet-card__i { display: none; }
  .ux .ch-meet-card .ux-cell__t { flex: 1 1 100%; }
  .ux .fl-crumbs > span:nth-child(3), .ux .fl-crumbs > .ux-i:nth-child(4) { display: none; }
}
.ux .ml-list__h .ux-title { flex: none; }
.ux .ml-list__h .ux-seg { min-width: 0; overflow: hidden; }
/* Review fixes: give the admin user column room; keep policy lines whole. */
.ux .ad-table .ad-user { max-width: none; width: auto; min-width: 210px; }
@container ux (max-width: 540px) { .ux .ad-table .ad-user { min-width: 0; max-width: 0; width: 58%; } }
@container ux (max-width: 1200px) { .ux .ad-table .ad-c-sto { display: none; } }
.ux.wk .ml-tools__x > span { display: none; }
.ux.wk .ml-tools__x { padding: 0 7px; }
