/* Uncorp Wear UI kit: reusable classes. See docs/redesign/ui-kit.md. Shared file, edit in InternalPortal then run scripts/sync-ui-kit.sh. */

/* ---------- page + layout helpers ---------- */
.uw-page { display: flex; flex-direction: column; gap: var(--uw-s6); padding: var(--uw-s6) 0 var(--uw-s10); min-width: 0; }
.uw-page--narrow { max-width: 880px; }
.uw-stack { display: flex; flex-direction: column; gap: var(--uw-s4); min-width: 0; }
.uw-stack--sm { gap: var(--uw-s2); }
.uw-stack--lg { gap: var(--uw-s6); }
.uw-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--uw-s3); min-width: 0; }
.uw-row--between { justify-content: space-between; }
.uw-row--nowrap { flex-wrap: nowrap; }
.uw-grow { flex: 1 1 0; min-width: 0; }
/* Auto-fit grid: .uw-grid for cards, --stats for stat tiles. Never three forced equal columns on phones. */
.uw-grid { display: grid; gap: var(--uw-s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.uw-grid--stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.uw-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.uw-split { display: grid; gap: var(--uw-s6); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1100px) { .uw-split { grid-template-columns: minmax(0, 1fr) 360px; } .uw-split--wide-side { grid-template-columns: minmax(0, 1fr) 440px; } }
.uw-muted { color: var(--uw-muted); }
.uw-text-2 { color: var(--uw-text-2); }
.uw-num { font-variant-numeric: tabular-nums; }
.uw-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.uw-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.uw-h2 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -0.005em; color: var(--uw-text); }
.uw-h3 { margin: 0; font-size: 14px; font-weight: 600; color: var(--uw-text); }
.uw-label { font-size: var(--uw-fs-xs); font-weight: 600; color: var(--uw-muted); }

/* ---------- page header ---------- */
.uw-page-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--uw-s4); }
.uw-page-header__text { min-width: 0; flex: 1 1 320px; display: flex; flex-direction: column; gap: 4px; }
.uw-page-header__crumbs { font-size: var(--uw-fs-sm); color: var(--uw-muted); display: flex; align-items: center; gap: 6px; }
.uw-page-header__crumbs a { color: var(--uw-muted); text-decoration: none; }
.uw-page-header__crumbs a:hover { color: var(--uw-primary); }
.uw-page-header__title { margin: 0; font-size: clamp(24px, 1.2rem + 1vw, 34px); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; color: var(--uw-text); overflow-wrap: anywhere; }
.uw-page-header__count { font-weight: 600; color: var(--uw-muted); font-size: 0.6em; margin-left: 8px; letter-spacing: 0; }
.uw-page-header__sub { margin: 0; font-size: 15px; color: var(--uw-muted); line-height: 1.5; max-width: 70ch; }
.uw-page-header__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--uw-s2); }
.uw-page-header--compact .uw-page-header__title { font-size: 22px; letter-spacing: -0.01em; }

/* ---------- card / panel ---------- */
.uw-card { background: var(--uw-surface); border: 1px solid var(--uw-border); border-radius: var(--uw-r-lg); min-width: 0; overflow: hidden; }
.uw-card--raised { box-shadow: var(--uw-shadow-md); }
.uw-card--soft { box-shadow: var(--uw-shadow-sm); }
.uw-card--hero { border-radius: var(--uw-r-xl); box-shadow: var(--uw-shadow-md); }
.uw-card--well { background: var(--uw-bg); }
.uw-card--tint { background: var(--uw-primary-tint); border-color: #c7d2fe; }
.uw-card--danger { border-color: #fecaca; background: var(--uw-danger-bg); }
.uw-card--interactive { transition: border-color var(--uw-dur) var(--uw-ease), box-shadow var(--uw-dur) var(--uw-ease); cursor: pointer; }
.uw-card--interactive:hover { border-color: var(--uw-border-strong); box-shadow: var(--uw-shadow-md); }
.uw-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--uw-s3); padding: var(--uw-s4) var(--uw-s5); border-bottom: 1px solid var(--uw-border); }
.uw-card__title { margin: 0; font-size: 15px; font-weight: 700; color: var(--uw-text); }
.uw-card__sub { font-size: var(--uw-fs-sm); color: var(--uw-muted); }
.uw-card__body { padding: var(--uw-s5); }
.uw-card__body--flush { padding: 0; }
.uw-card__body--tight { padding: var(--uw-s4); }
.uw-card__foot { padding: var(--uw-s3) var(--uw-s5); border-top: 1px solid var(--uw-border); background: var(--uw-bg); display: flex; flex-wrap: wrap; gap: var(--uw-s2); align-items: center; }

/* ---------- stat tile ---------- */
.uw-stat { appearance: none; text-align: left; font: inherit; color: inherit; display: flex; flex-direction: column; gap: 6px; padding: var(--uw-s4); background: var(--uw-surface); border: 1px solid var(--uw-border); border-radius: var(--uw-r-lg); min-width: 0; text-decoration: none; }
button.uw-stat, a.uw-stat { cursor: pointer; transition: border-color var(--uw-dur) var(--uw-ease), background var(--uw-dur) var(--uw-ease); }
button.uw-stat:hover, a.uw-stat:hover { border-color: var(--uw-border-strong); background: var(--uw-bg); }
.uw-stat--active { border-color: var(--uw-primary) !important; background: var(--uw-primary-tint) !important; }
.uw-stat__label { font-size: var(--uw-fs-xs); font-weight: 600; color: var(--uw-muted); }
.uw-stat__value { font-size: 26px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; color: var(--uw-text); font-variant-numeric: tabular-nums; }
.uw-stat__hint { font-size: var(--uw-fs-xs); color: var(--uw-muted); }
.uw-stat--success .uw-stat__value { color: var(--uw-success); }
.uw-stat--danger .uw-stat__value { color: var(--uw-danger); }
.uw-stat--warning .uw-stat__value { color: var(--uw-warning-ink); }
.uw-stat--primary .uw-stat__value { color: var(--uw-primary); }

/* ---------- chip / pill (status tones) ---------- */
.uw-chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: var(--uw-r-pill); font-size: var(--uw-fs-xs); font-weight: 700; line-height: 1; white-space: nowrap; background: var(--uw-surface-2); color: var(--uw-text-2); border: 0; font-family: inherit; }
.uw-chip--lg { height: 28px; padding: 0 12px; font-size: var(--uw-fs-sm); }
.uw-chip .mud-icon-root { width: 14px; height: 14px; }
.uw-chip--primary { background: var(--uw-primary-tint); color: var(--uw-primary); }
.uw-chip--success { background: var(--uw-success-bg); color: var(--uw-success-ink); }
.uw-chip--danger { background: var(--uw-danger-bg); color: var(--uw-danger-ink); }
.uw-chip--warning { background: var(--uw-warning-bg); color: var(--uw-warning-ink); }
.uw-chip--orange { background: var(--uw-orange-bg); color: var(--uw-orange-ink); }
.uw-chip--indigo { background: var(--uw-indigo-bg); color: var(--uw-indigo-ink); }
.uw-chip--info { background: var(--uw-sky-bg); color: var(--uw-sky-ink); }
.uw-chip--dark { background: var(--uw-text); color: #fff; }
.uw-chip--outline { background: transparent; box-shadow: inset 0 0 0 1px var(--uw-border-strong); }
.uw-chip--link { text-decoration: none; cursor: pointer; transition: box-shadow var(--uw-dur) var(--uw-ease), filter var(--uw-dur) var(--uw-ease); }
.uw-chip--link:hover { text-decoration: underline; text-underline-offset: 2px; box-shadow: inset 0 0 0 1px currentColor; filter: brightness(0.97); }
.uw-chip__count { font-variant-numeric: tabular-nums; }

/* ---------- buttons (min 44px touch on coarse pointers and phones) ---------- */
.uw-btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--uw-control); min-width: 44px; padding: 0 16px; border-radius: var(--uw-r-md); border: 1px solid transparent; font: inherit; font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap; cursor: pointer; text-decoration: none; transition: background var(--uw-dur) var(--uw-ease), border-color var(--uw-dur) var(--uw-ease), color var(--uw-dur) var(--uw-ease); -webkit-tap-highlight-color: transparent; user-select: none; }
.uw-btn:active { transform: translateY(1px); }
.uw-btn[disabled], .uw-btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.uw-btn .mud-icon-root { width: 18px; height: 18px; flex: none; }
.uw-btn--primary { background: var(--uw-primary); color: #fff; }
.uw-btn--primary:hover { background: var(--uw-primary-hover); color: #fff; }
.uw-btn--secondary { background: var(--uw-surface); color: var(--uw-text); border-color: var(--uw-border-strong); }
.uw-btn--secondary:hover { background: var(--uw-bg); border-color: var(--uw-faint); color: var(--uw-text); }
.uw-btn--ghost { background: transparent; color: var(--uw-text-2); }
.uw-btn--ghost:hover { background: var(--uw-surface-2); color: var(--uw-text); }
.uw-btn--danger { background: var(--uw-danger); color: #fff; }
.uw-btn--danger:hover { background: #b91c1c; color: #fff; }
.uw-btn--danger-quiet { background: var(--uw-surface); color: var(--uw-danger-ink); border-color: #fecaca; }
.uw-btn--danger-quiet:hover { background: var(--uw-danger-bg); }
.uw-btn--lg { height: 48px; padding: 0 22px; font-size: 15px; font-weight: 700; border-radius: var(--uw-r-md); }
.uw-btn--sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: var(--uw-r-sm); min-width: 32px; }
.uw-btn--icon { padding: 0; width: var(--uw-control); }
.uw-btn--block { width: 100%; }
@media (pointer: coarse), (max-width: 700px) { .uw-btn { height: var(--uw-touch); } .uw-btn--sm { height: 40px; } .uw-btn--icon { width: var(--uw-touch); } .uw-btn--lg { height: 50px; } }

/* ---------- segmented control ---------- */
.uw-seg { display: inline-flex; max-width: 100%; padding: 3px; gap: 2px; background: var(--uw-surface-2); border-radius: var(--uw-r-md); overflow-x: auto; scrollbar-width: none; }
.uw-seg::-webkit-scrollbar { display: none; }
/* Scroll hint: a soft shadow shows on whichever edge still has hidden tabs (the cover gradients, attached to the content, hide it once you reach that end). */
.uw-seg {
    background-color: var(--uw-surface-2);
    background-image: linear-gradient(to right, var(--uw-surface-2) 30%, transparent), linear-gradient(to left, var(--uw-surface-2) 30%, transparent),
                      radial-gradient(farthest-side at 0 50%, rgba(15, 23, 42, 0.22), transparent), radial-gradient(farthest-side at 100% 50%, rgba(15, 23, 42, 0.22), transparent);
    background-position: left center, right center, left center, right center;
    background-repeat: no-repeat;
    background-size: 36px 100%, 36px 100%, 14px 100%, 14px 100%;
    background-attachment: local, local, scroll, scroll;
}
.uw-seg__item { appearance: none; border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 600; color: var(--uw-text-2); height: 34px; min-width: 44px; padding: 0 14px; border-radius: 8px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background var(--uw-dur) var(--uw-ease), color var(--uw-dur) var(--uw-ease); }
a.uw-seg__item { text-decoration: none; }
.uw-seg__item:hover { color: var(--uw-text); }
.uw-seg__item[aria-checked="true"] { background: var(--uw-surface); color: var(--uw-text); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1); }
.uw-seg__count { font-size: 11px; font-weight: 700; color: var(--uw-muted); background: rgba(15, 23, 42, 0.06); border-radius: var(--uw-r-pill); padding: 2px 6px; font-variant-numeric: tabular-nums; }
.uw-seg__item[aria-checked="true"] .uw-seg__count { background: var(--uw-primary-tint); color: var(--uw-primary); }
@media (pointer: coarse), (max-width: 700px) { .uw-seg__item { height: 40px; } }

/* ---------- toolbar / filter bar ---------- */
.uw-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--uw-s3); padding: var(--uw-s3) var(--uw-s4); background: var(--uw-surface); border: 1px solid var(--uw-border); border-radius: var(--uw-r-lg); }
.uw-toolbar--bare { padding: 0; background: transparent; border: 0; }
.uw-toolbar__start { display: flex; flex-wrap: wrap; align-items: center; gap: var(--uw-s3); flex: 1 1 320px; min-width: 0; }
.uw-toolbar__end { display: flex; flex-wrap: wrap; align-items: center; gap: var(--uw-s2); margin-left: auto; }
.uw-search { display: flex; align-items: center; gap: 8px; height: var(--uw-control); padding: 0 12px; flex: 1 1 240px; max-width: 420px; background: var(--uw-surface); border: 1px solid var(--uw-border-strong); border-radius: var(--uw-r-md); color: var(--uw-muted); }
.uw-search:focus-within { border-color: var(--uw-primary); box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.14); }
.uw-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: var(--uw-text); height: 100%; }
.uw-search input::placeholder { color: var(--uw-muted) !important; }
@media (pointer: coarse), (max-width: 700px) { .uw-search { height: var(--uw-touch); max-width: none; } }

/* ---------- data table ----------
   Wrap any <table class="uw-table"> in .uw-table-wrap. Add .uw-table-wrap--sticky for a bounded scroll box with a sticky
   header, .uw-table--dense for tighter rows. Mud tables/data grids get the same look automatically (uw-mud.css). */
.uw-table-wrap { background: var(--uw-surface); border: 1px solid var(--uw-border); border-radius: var(--uw-r-lg); overflow: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.uw-table-wrap--sticky { max-height: min(72vh, 760px); }
.uw-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; color: var(--uw-text); }
.uw-table th { position: sticky; top: 0; z-index: 1; text-align: left; font-size: 12px; font-weight: 700; color: var(--uw-text-2); background: var(--uw-surface-2); padding: 11px 16px; border-bottom: 1px solid var(--uw-border); white-space: nowrap; }
.uw-table td { padding: 13px 16px; border-bottom: 1px solid var(--uw-surface-2); vertical-align: middle; }
.uw-table tbody tr:last-child td { border-bottom: 0; }
.uw-table tbody tr:hover td { background: var(--uw-bg); }
.uw-table tbody tr.is-selected td { background: var(--uw-primary-tint); }
.uw-table--dense th { padding: 8px 12px; }
.uw-table--dense td { padding: 8px 12px; font-size: 13px; }
.uw-table .num, .uw-table td.num, .uw-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.uw-table a { font-weight: 600; }
/* On phones a wide table scrolls sideways inside its box instead of squashing; first column stays put. */
@media (max-width: 700px) { .uw-table--pin th:first-child, .uw-table--pin td:first-child { position: sticky; left: 0; background: var(--uw-surface); z-index: 2; } .uw-table--pin th:first-child { background: var(--uw-surface-2); z-index: 3; } }

/* ---------- timeline ---------- */
.uw-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.uw-timeline__item { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: var(--uw-s3); padding-bottom: var(--uw-s5); }
.uw-timeline__item:last-child { padding-bottom: 0; }
.uw-timeline__item::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--uw-border); }
.uw-timeline__item:last-child::before { display: none; }
.uw-timeline__mark { width: 28px; height: 28px; border-radius: 50%; background: var(--uw-surface); border: 2px solid var(--uw-border-strong); color: var(--uw-muted); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; box-sizing: border-box; }
.uw-timeline__mark .mud-icon-root { width: 15px; height: 15px; }
.uw-timeline__item--done .uw-timeline__mark { background: var(--uw-primary); border-color: var(--uw-primary); color: #fff; }
.uw-timeline__item--done::before { background: var(--uw-primary); }
.uw-timeline__item--current .uw-timeline__mark { border-color: var(--uw-primary); color: var(--uw-primary); }
.uw-timeline__item--success .uw-timeline__mark { background: var(--uw-success); border-color: var(--uw-success); color: #fff; }
.uw-timeline__item--danger .uw-timeline__mark { background: var(--uw-danger); border-color: var(--uw-danger); color: #fff; }
.uw-timeline__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.uw-timeline__title { font-size: 14px; font-weight: 600; color: var(--uw-text); }
.uw-timeline__time { font-size: var(--uw-fs-xs); color: var(--uw-muted); white-space: nowrap; }
.uw-timeline__body { font-size: 13px; color: var(--uw-text-2); line-height: 1.5; margin-top: 2px; }
/* Horizontal stepper (client "where is my order"): add .uw-timeline--steps */
.uw-timeline--steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.uw-timeline--steps .uw-timeline__item { display: flex; flex-direction: column; gap: 10px; padding: 0 10px 0 0; }
.uw-timeline--steps .uw-timeline__item::before { left: 36px; right: 6px; top: 13px; bottom: auto; width: auto; height: 3px; }
@media (max-width: 700px) { .uw-timeline--steps { display: flex; flex-direction: column; } .uw-timeline--steps .uw-timeline__item { display: grid; padding: 0 0 var(--uw-s5); } .uw-timeline--steps .uw-timeline__item::before { left: 13px; right: auto; top: 28px; bottom: 0; width: 2px; height: auto; } }

/* ---------- empty state ---------- */
.uw-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 40px 24px; color: var(--uw-text-2); }
.uw-empty__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--uw-surface-2); color: var(--uw-muted); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.uw-empty__icon .mud-icon-root { width: 24px; height: 24px; }
.uw-empty__title { margin: 0; font-size: 16px; font-weight: 700; color: var(--uw-text); }
.uw-empty__text { margin: 0; font-size: 14px; max-width: 46ch; line-height: 1.5; }
.uw-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }

/* ---------- avatar ---------- */
.uw-avatar { --_s: 32px; width: var(--_s); height: var(--_s); border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: calc(var(--_s) * 0.38); font-weight: 700; letter-spacing: 0; background: var(--uw-surface-2); color: var(--uw-text-2); overflow: hidden; object-fit: cover; position: relative; }
.uw-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.uw-avatar--xs { --_s: 24px; } .uw-avatar--sm { --_s: 28px; } .uw-avatar--lg { --_s: 44px; } .uw-avatar--xl { --_s: 64px; }
.uw-avatar--t0 { background: var(--uw-primary-tint); color: var(--uw-primary); }
.uw-avatar--t1 { background: var(--uw-success-bg); color: var(--uw-success-ink); }
.uw-avatar--t2 { background: var(--uw-warning-bg); color: var(--uw-warning-ink); }
.uw-avatar--t3 { background: var(--uw-orange-bg); color: var(--uw-orange-ink); }
.uw-avatar--t4 { background: var(--uw-sky-bg); color: var(--uw-sky-ink); }
.uw-avatar--t5 { background: var(--uw-danger-bg); color: var(--uw-danger-ink); }
.uw-avatar--solid { background: var(--uw-primary); color: #fff; }
.uw-avatar-stack { display: inline-flex; } .uw-avatar-stack .uw-avatar + .uw-avatar { margin-left: -8px; box-shadow: 0 0 0 2px var(--uw-surface); }

/* ---------- progress / aging bar (a bar WITHOUT a heavy track; thin neutral rail) ---------- */
.uw-progress { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.uw-progress__meta { display: flex; justify-content: space-between; gap: 8px; font-size: var(--uw-fs-xs); color: var(--uw-muted); }
.uw-progress__rail { height: 8px; border-radius: 4px; background: var(--uw-surface-2); overflow: hidden; }
.uw-progress__fill { height: 100%; border-radius: 4px; background: var(--uw-primary); transition: width 300ms var(--uw-ease); }
.uw-progress--success .uw-progress__fill { background: var(--uw-success); }
.uw-progress--warning .uw-progress__fill { background: var(--uw-warning); }
.uw-progress--danger .uw-progress__fill { background: var(--uw-danger); }
.uw-progress--thin .uw-progress__rail { height: 4px; }
/* Segmented "river" bar for pipeline distribution: children are .uw-river__seg with inline flex-grow + background */
.uw-river { display: flex; height: 14px; border-radius: 7px; overflow: hidden; gap: 2px; }
.uw-river__seg { min-width: 4px; }
.uw-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--uw-text-2); }
.uw-legend__item { display: inline-flex; align-items: center; gap: 6px; }
.uw-legend__swatch { width: 8px; height: 8px; border-radius: 2px; background: var(--uw-faint); }

/* ---------- list rows (queue / inbox style) ---------- */
.uw-list { display: flex; flex-direction: column; }
.uw-list__row { appearance: none; width: 100%; text-align: left; font: inherit; color: inherit; background: var(--uw-surface); border: 0; border-bottom: 1px solid var(--uw-surface-2); padding: 14px var(--uw-s5); display: flex; align-items: center; gap: var(--uw-s3); cursor: pointer; text-decoration: none; min-height: 56px; }
.uw-list__row:last-child { border-bottom: 0; }
.uw-list__row:hover { background: var(--uw-bg); }
.uw-list__row[aria-current="true"], .uw-list__row.is-active { background: var(--uw-primary-tint); }
.uw-list__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.uw-list__title { font-size: 14px; font-weight: 600; color: var(--uw-text); }
.uw-list__sub { font-size: var(--uw-fs-xs); color: var(--uw-muted); }

/* ---------- skeleton + misc ---------- */
.uw-skeleton { background: linear-gradient(90deg, var(--uw-surface-2) 25%, #e9eef5 50%, var(--uw-surface-2) 75%); background-size: 200% 100%; animation: uw-shimmer 1.4s linear infinite; border-radius: var(--uw-r-sm); min-height: 14px; }
@keyframes uw-shimmer { to { background-position: -200% 0; } }
.uw-kbd { display: inline-flex; align-items: center; font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1; color: var(--uw-muted); background: var(--uw-surface); border: 1px solid var(--uw-border); border-radius: 6px; padding: 3px 6px; }
.uw-divider { height: 1px; background: var(--uw-border); border: 0; margin: var(--uw-s4) 0; }
.uw-link { color: var(--uw-primary); font-weight: 600; text-decoration: none; }
.uw-link:hover { color: var(--uw-primary-hover); text-decoration: underline; }

/* ---------- UiRowActions: compact per-row Actions dropdown ---------- */
.uw-rowactions { display: inline-flex; vertical-align: middle; flex: none; }
/* Admin audit / simple tables that must stay inside their card: nowrap cells, long values clip with an ellipsis (full text in title), the table scrolls inside the card. */
body .mcp-table { max-width: 100%; }
body .mcp-table .mud-table-container { overflow-x: auto; margin-top: 0; border: 0; border-radius: 0; }
body .mcp-table th, body .mcp-table td { white-space: nowrap; }
.mcp-clip { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.uw-rowactions-cell { display: flex; justify-content: center; min-width: max-content; }
.uw-rowactions .mud-menu, .uw-rowactions .mud-menu > .mud-button-root { flex: none; width: auto; }
body .uw-rowactions .mud-button-root { height: 34px; min-height: 34px; padding: 0 10px 0 12px; font-size: 13px; font-weight: 600; white-space: nowrap; border-radius: var(--uw-r-sm); }
body .uw-rowactions__list .mud-menu-item { min-height: 40px; font-size: 14px; }
body .uw-rowactions__list .uw-rowactions__item--danger, body .uw-rowactions__list .uw-rowactions__item--danger .mud-typography { color: var(--uw-danger); }
body .uw-rowactions__list .uw-rowactions__item--danger:hover { background: #fef2f2; }
body .uw-rowactions__list .mud-divider { margin: 4px 0; }
