@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* Inventar — component stylesheet. Every colour, length and radius is a token from tokens.css. */

body { margin: 0; font-family: var(--font-sans); background: var(--surface); color: var(--ink); -webkit-font-smoothing: antialiased; }
.inv-stage { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-6); max-width: 393px; box-sizing: border-box; }
.inv-stage-row { padding: var(--space-5); display: flex; gap: var(--space-4); align-items: center; flex-wrap: wrap; }
.inv-stage-screen { width: 393px; min-height: 120px; position: relative; background: var(--surface); }

/* Focus: one ring everywhere */
.inv-btn:focus-visible, .inv-iconbtn:focus-visible, .inv-field input:focus-visible, .inv-select:focus-visible,
.inv-switch:focus-visible, .inv-nav-item:focus-visible, .inv-card:focus-visible, .inv-link:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px;
}

/* ---------- Button ---------- */
.inv-btn { font: inherit; font-size: 18px; line-height: 24px; font-weight: 500; height: var(--size-control); padding: 0 var(--space-6);
  border: 0; border-radius: var(--radius-sm); background: var(--brand); color: var(--on-brand); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3); box-shadow: var(--shadow-button); white-space: nowrap; flex: none; }
.inv-btn-secondary { background: var(--brand-bright); }
.inv-btn-danger { background: var(--danger); }
.inv-btn-success { background: var(--success); }
.inv-btn-sm { height: 40px; font-size: 16px; line-height: 20px; font-weight: 700; padding: 0 var(--space-4); }
.inv-btn-block { display: flex; width: 100%; }
.inv-btn-square { width: var(--size-action); height: var(--size-action); padding: 0; font-size: 16px; line-height: 20px; font-weight: 700; }
.inv-btn:disabled { opacity: var(--opacity-disabled); cursor: default; box-shadow: none; }
.inv-btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.inv-btn-ghost:hover { background: var(--surface-raised); }
/* Disabled square actions: the fill drains to a diagonal hatch of the signal's soft tint over white, the label stays in the signal ink.
   It reads as "not available right now" rather than "faded out", and the hatch is visible in both themes. */
.inv-btn-square:disabled { opacity: 1; box-shadow: inset 0 0 0 1px var(--line); cursor: not-allowed; }
.inv-btn-square.inv-btn-danger:disabled { color: var(--danger-ink); background: repeating-linear-gradient(135deg, var(--danger-soft) 0 5px, var(--surface-raised) 5px 10px); }
.inv-btn-square.inv-btn-success:disabled { color: var(--success-ink); background: repeating-linear-gradient(135deg, var(--success-soft) 0 5px, var(--surface-raised) 5px 10px); }
.inv-item-resting .inv-btn-square:disabled { opacity: 1; }
.inv-btn svg { width: var(--size-icon); height: var(--size-icon); flex: none; }

/* ---------- IconButton ---------- */
.inv-iconbtn { font: inherit; width: 44px; height: 44px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.inv-iconbtn svg { width: var(--size-icon); height: var(--size-icon); }
.inv-iconbtn-filled { background: var(--brand); color: var(--on-brand); width: 52px; height: 52px; box-shadow: var(--shadow-button); }
.inv-iconbtn-muted { color: var(--icon-muted); }

/* ---------- TextField / Select ---------- */
.inv-field { display: flex; flex-direction: column; gap: var(--space-2); }
.inv-field-label { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); }
.inv-field-box { display: flex; align-items: center; height: var(--size-control); box-sizing: border-box; gap: var(--space-3);
  border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-raised); padding: 0 var(--space-4);
  transition: border-color .15s, box-shadow .15s; }
.inv-field-box:hover { border-color: var(--icon-muted); }
.inv-field:focus-within .inv-field-box { border-color: var(--focus); box-shadow: 0 0 0 4px var(--focus-halo); }
.inv-field-box > svg { width: 20px; height: 20px; color: var(--icon-muted); flex: none; transition: color .15s; }
.inv-field:focus-within .inv-field-box > svg { color: var(--brand); }
.inv-field input, .inv-field textarea { flex: 1; min-width: 0; font: inherit; font-size: 16px; line-height: 24px; color: var(--ink-body); background: transparent; border: 0; padding: 0; }
.inv-field input::placeholder, .inv-field textarea::placeholder { color: var(--ink-placeholder); opacity: 1; }
.inv-field input:focus, .inv-field textarea:focus { outline: none; }
.inv-field-multiline .inv-field-box { height: auto; min-height: 96px; align-items: flex-start; padding-top: var(--space-3); padding-bottom: var(--space-3); }
.inv-field-multiline .inv-field-box > svg { margin-top: 2px; }
.inv-field textarea { resize: none; }
.inv-field-trailing { background: none; border: 0; padding: 0; margin: 0 calc(-1 * var(--space-2)) 0 0; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; color: var(--icon-muted); cursor: pointer; border-radius: var(--radius-sm); flex: none; }
.inv-field-trailing:hover { color: var(--ink); background: var(--surface); }
.inv-field-trailing svg { width: 20px; height: 20px; }
.inv-field-error .inv-field-box { border-color: var(--danger); }
.inv-field-error:focus-within .inv-field-box { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.inv-field-error .inv-field-box > svg { color: var(--danger-ink); }
.inv-field-help { display: flex; align-items: center; gap: var(--space-1); font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.inv-field-error .inv-field-help { color: var(--danger-ink); }
.inv-field-disabled .inv-field-box { opacity: var(--opacity-disabled); }

.inv-select { font: inherit; width: 100%; height: var(--size-control); box-sizing: border-box; padding: 0 var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--surface-raised); color: var(--ink); font-size: 16px; line-height: 24px; font-weight: 500; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.inv-select:hover { border-color: var(--icon-muted); }
.inv-select:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px var(--focus-halo); }
.inv-select svg { width: 20px; height: 20px; color: var(--icon-muted); flex: none; }
.inv-select-placeholder { color: var(--ink-placeholder); font-weight: 400; }

/* ---------- Switch ---------- */
.inv-switch { position: relative; width: 52px; height: 32px; border-radius: var(--radius-full); border: 2px solid var(--line); background: var(--surface-raised); cursor: pointer; padding: 0; flex: none; }
.inv-switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: var(--radius-full); background: var(--icon-muted); transition: left .15s, background .15s; }
.inv-switch[aria-checked="true"] { background: var(--brand); border-color: var(--brand); }
.inv-switch[aria-checked="true"]::after { left: 24px; background: var(--on-brand); }
.inv-switch-danger[aria-checked="false"] { background: var(--danger); border-color: var(--danger); }
.inv-switch-danger[aria-checked="false"]::after { background: var(--on-brand); }
.inv-switch-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); font-size: 18px; line-height: 24px; font-weight: 500; color: var(--ink); }

/* ---------- PageHeader ---------- */
.inv-header { display: flex; align-items: flex-start; gap: var(--space-2); padding: var(--space-4) var(--space-5) 0; }
.inv-header-text { flex: 1; min-width: 0; }
.inv-header-title { margin: 0; font-size: 32px; line-height: 40px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.inv-header-subtitle { margin: 0; font-size: 24px; line-height: 32px; font-weight: 400; color: var(--accent-bright); }
.inv-header-bar { align-items: center; padding-top: var(--space-2); }
.inv-header-bar .inv-header-title { font-size: 24px; line-height: 32px; font-weight: 400; color: var(--accent-bright); padding-left: var(--space-4); }
.inv-header-actions { display: flex; gap: var(--space-2); align-items: center; }

/* ---------- BottomNav ---------- */
.inv-nav { display: flex; height: var(--size-nav); background: var(--surface-raised); border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow-nav); padding: var(--space-1) var(--space-2) 0; box-sizing: border-box; }
.inv-nav-item { flex: 1; font: inherit; background: none; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--icon-muted); font-size: 14px; line-height: 20px; border-radius: var(--radius-sm); }
.inv-nav-item svg { width: var(--size-icon); height: var(--size-icon); }
.inv-nav-item[aria-current="page"] { color: var(--brand-ink); }

/* ---------- WarehouseCard ---------- */
.inv-card { display: flex; flex-direction: column; gap: var(--space-4); width: 100%; box-sizing: border-box; text-align: left; font: inherit; cursor: pointer;
  background: var(--surface-raised); color: var(--ink); border: 1px solid transparent; border-radius: var(--radius-md); padding: var(--space-5); box-shadow: var(--shadow-card);
  transition: border-color .15s, box-shadow .15s; }
.inv-card:hover { border-color: var(--line); }
.inv-card-head { display: flex; align-items: flex-start; gap: var(--space-4); }
.inv-card-tile { width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--brand-ink); display: flex; align-items: center; justify-content: center; flex: none; }
.inv-card-tile svg { width: 24px; height: 24px; }
.inv-card-text { flex: 1; min-width: 0; }
.inv-card-name { margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-card-desc { margin: 2px 0 0; font-size: 15px; line-height: 22px; color: var(--ink-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.inv-card .inv-iconbtn { margin: calc(-1 * var(--space-2)) calc(-1 * var(--space-2)) 0 0; flex: none; }
.inv-card .inv-iconbtn-fav { color: var(--icon-muted); }
.inv-card .inv-iconbtn-fav[aria-pressed="true"] { color: var(--danger); }
.inv-card .inv-iconbtn-fav[aria-pressed="true"] svg { fill: currentColor; }
.inv-card-foot { display: flex; align-items: center; gap: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.inv-card-stat { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.inv-card-stat svg { width: 18px; height: 18px; color: var(--icon-muted); }
.inv-card-stat b { color: var(--ink); font-weight: 700; }
.inv-card-open { margin-left: auto; display: inline-flex; align-items: center; gap: var(--space-1); font-size: 14px; line-height: 20px; font-weight: 500; color: var(--brand-ink); }
.inv-card-open svg { width: 18px; height: 18px; transform: rotate(-90deg); }
.inv-card-resting { background: var(--surface-muted); opacity: var(--opacity-resting); box-shadow: none; }
.inv-card-owner { display: inline-flex; align-items: center; padding: 1px var(--space-2); border-radius: var(--radius-full); background: var(--brand-soft); color: var(--brand-ink); font-size: 12px; line-height: 18px; font-weight: 500; margin-left: var(--space-2); vertical-align: 3px; }

/* ---------- ItemRow ---------- */
.inv-item { display: grid; grid-template-columns: var(--size-thumb) 1fr auto; gap: var(--space-4); align-items: center; padding: var(--space-4) var(--space-5); background: var(--surface-raised); }
.inv-item-resting { background: var(--surface-muted); opacity: var(--opacity-resting); }
.inv-item-hint { margin: 0; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.inv-item-thumb { width: var(--size-thumb); height: var(--size-thumb); border-radius: var(--radius-sm); object-fit: cover; background: var(--line); display: block; }
.inv-item-thumb-empty { width: var(--size-thumb); height: var(--size-thumb); border-radius: var(--radius-sm); background: var(--brand-soft); box-sizing: border-box; display: flex; align-items: center; justify-content: center; color: var(--brand-ink); }
.inv-item-text { display: flex; flex-direction: column; align-items: center; gap: var(--space-1); text-align: center; min-width: 0; }
.inv-item-name { margin: 0; font-size: 16px; line-height: 20px; font-weight: 700; color: var(--ink-muted); }
.inv-item-count { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.inv-item-actions { display: flex; gap: var(--space-2); }

/* ---------- StatusBadge ---------- */
.inv-badge { display: inline-flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-6); border-radius: var(--radius-md); font-size: 18px; line-height: 24px; font-weight: 500; }
.inv-badge svg { width: var(--size-icon); height: var(--size-icon); }
.inv-badge-out { background: var(--danger-soft); color: var(--danger-ink); }
.inv-badge-in { background: var(--success-soft); color: var(--success-ink); }
.inv-badge-sm { padding: var(--space-1) var(--space-3); font-size: 14px; line-height: 20px; gap: var(--space-1); }
.inv-badge-sm svg { width: 16px; height: 16px; }
.inv-badge-block { display: flex; justify-content: center; width: 100%; box-sizing: border-box; }

/* ---------- Avatar ---------- */
.inv-avatar { width: var(--size-avatar); height: var(--size-avatar); border-radius: var(--radius-full); object-fit: cover; display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand); color: var(--on-brand); font-size: 16px; font-weight: 700; flex: none; overflow: hidden; }
.inv-avatar-sm { width: 32px; height: 32px; font-size: 13px; }
.inv-avatar-lg { width: 64px; height: 64px; font-size: 22px; }
.inv-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- MemberRow ---------- */
.inv-member { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-2) 0; }
.inv-member-text { flex: 1; min-width: 0; }
.inv-member-name { margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; color: var(--ink); }
.inv-member-role { font-weight: 400; }
.inv-member-email { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.inv-member-resting { opacity: var(--opacity-resting); }
.inv-member-add { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-3) var(--space-2); font: inherit; font-size: 18px; line-height: 24px; font-weight: 500; color: var(--ink-muted); background: none; border: 0; cursor: pointer; border-radius: var(--radius-sm); }
.inv-member-add svg { width: var(--size-icon); height: var(--size-icon); color: var(--ink); }

/* ---------- ActivityList ---------- */
.inv-activity { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.inv-activity li { display: grid; grid-template-columns: 12px 1fr; gap: var(--space-4); align-items: center; }
.inv-activity-dot { width: 12px; height: 12px; border-radius: var(--radius-full); }
.inv-activity-out .inv-activity-dot { background: var(--danger-ink); }
.inv-activity-in .inv-activity-dot { background: var(--success-ink); }
.inv-activity-add .inv-activity-dot { background: var(--brand-ink); }
.inv-activity-what { margin: 0; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--ink); }
.inv-activity-when { margin: 0; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--accent); }

/* ---------- DetailCard ---------- */
.inv-detail { background: var(--surface-raised); border-radius: var(--radius-lg); padding: var(--space-6) var(--space-5); box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: var(--space-5); }
.inv-detail-head { display: flex; align-items: flex-start; gap: var(--space-4); }
.inv-detail-head-text { flex: 1; min-width: 0; }
.inv-detail-name { margin: 0; font-size: 24px; line-height: 32px; font-weight: 700; color: var(--ink); }
.inv-detail-desc { margin: var(--space-1) 0 0; font-size: 16px; line-height: 24px; color: var(--ink-muted); }
.inv-detail-head .inv-iconbtn { margin: calc(-1 * var(--space-2)) calc(-1 * var(--space-2)) 0 0; }
.inv-detail-section { display: flex; flex-direction: column; gap: var(--space-3); }
.inv-detail-section-title { margin: 0; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.inv-detail-section-title .inv-detail-section-action { font: inherit; letter-spacing: 0; text-transform: none; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--brand-ink); background: none; border: 0; padding: 0; cursor: pointer; }
.inv-detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.inv-detail-fact-wide { grid-column: 1 / -1; }
.inv-detail-fact { background: var(--surface); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); min-width: 0; }
.inv-detail-fact-label { margin: 0; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.inv-detail-fact-value { margin: 2px 0 0; font-size: 18px; line-height: 24px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.inv-detail-fact-mono { letter-spacing: .06em; }
.inv-detail-list { display: flex; flex-direction: column; }
.inv-detail-list > * + * { border-top: 1px solid var(--line); }
.inv-detail-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) 0; font-size: 16px; line-height: 24px; color: var(--ink); }
.inv-detail-row-hint { display: block; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.inv-divider { border: 0; border-top: 1px solid var(--line); margin: 0; }
.inv-divider-brand { border-top-color: var(--line-brand); }
.inv-detail .inv-member { padding: var(--space-3) 0; }
.inv-detail .inv-member-add { margin: 0 calc(-1 * var(--space-2)); }

/* ---------- Access: RoleBadge, RolePicker, PermissionMatrix, AccessRow, GroupCard, AvatarStack, RequestRow ---------- */
.inv-role { display: inline-flex; align-items: center; gap: var(--space-1); padding: 2px var(--space-2); border-radius: var(--radius-full); font-size: 12px; line-height: 18px; font-weight: 500; white-space: nowrap; }
.inv-role svg { width: 14px; height: 14px; }
.inv-role-owner { background: var(--brand-soft); color: var(--brand-ink); }
.inv-role-admin { background: var(--accent-soft); color: var(--accent); }
.inv-role-member { background: var(--surface); color: var(--ink-body); box-shadow: inset 0 0 0 1px var(--line); }
.inv-role-viewer { background: var(--surface); color: var(--ink-muted); box-shadow: inset 0 0 0 1px var(--line); }
.inv-role-md { font-size: 14px; line-height: 20px; padding: var(--space-1) var(--space-3); }
.inv-role-md svg { width: 16px; height: 16px; }
.inv-role-btn { font: inherit; border: 0; cursor: pointer; padding-right: var(--space-1); }
.inv-role-btn svg:last-child { width: 14px; height: 14px; opacity: .8; }

.inv-rolepicker { display: flex; flex-direction: column; gap: var(--space-2); margin: 0; padding: 0; border: 0; }
.inv-rolepicker legend { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); margin-bottom: var(--space-2); padding: 0; }
.inv-roleopt { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--surface-raised); border: 1px solid var(--line); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.inv-roleopt:hover { border-color: var(--icon-muted); }
.inv-roleopt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.inv-roleopt:has(input:focus-visible) { border-color: var(--focus); box-shadow: 0 0 0 4px var(--focus-halo); }
.inv-roleopt-on { border-color: var(--brand-ink); background: var(--brand-soft); }
.inv-roleopt-on:hover { border-color: var(--brand-ink); }
.inv-roleopt-off { opacity: var(--opacity-disabled); cursor: not-allowed; }
.inv-roleopt-check { width: 22px; height: 22px; border-radius: var(--radius-full); border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; flex: none; margin-top: 1px; color: var(--on-brand); }
.inv-roleopt-check svg { width: 14px; height: 14px; display: none; }
.inv-roleopt-on .inv-roleopt-check { background: var(--brand); border-color: var(--brand); }
.inv-roleopt-on .inv-roleopt-check svg { display: block; }
.inv-roleopt-text { flex: 1; min-width: 0; }
.inv-roleopt-name { margin: 0; font-size: 16px; line-height: 24px; font-weight: 700; color: var(--ink); }
.inv-roleopt-desc { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }

.inv-matrix { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; color: var(--ink); background: var(--surface-raised); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); }
.inv-matrix th, .inv-matrix td { padding: var(--space-3) var(--space-1); border-top: 1px solid var(--line); text-align: center; vertical-align: middle; }
.inv-matrix thead th { border-top: 0; padding-top: var(--space-4); font-weight: 500; }
.inv-matrix th:first-child, .inv-matrix td:first-child { text-align: left; padding-left: var(--space-4); font-weight: 400; color: var(--ink-body); width: 38%; font-size: 13px; line-height: 18px; }
.inv-matrix-role { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; line-height: 14px; font-weight: 500; background: none !important; box-shadow: none !important; padding: 0; }
.inv-matrix-role-icon { width: 28px; height: 28px; border-radius: var(--radius-full); display: inline-flex; align-items: center; justify-content: center; }
.inv-matrix-role-icon svg { width: 16px; height: 16px; }
.inv-role-owner .inv-matrix-role-icon { background: var(--brand-soft); color: var(--brand-ink); }
.inv-role-admin .inv-matrix-role-icon { background: var(--accent-soft); color: var(--accent); }
.inv-role-member .inv-matrix-role-icon, .inv-role-viewer .inv-matrix-role-icon { background: var(--surface); color: var(--ink-body); box-shadow: inset 0 0 0 1px var(--line); }
.inv-matrix-role-name { color: var(--ink-body); }
.inv-matrix td:last-child, .inv-matrix th:last-child { padding-right: var(--space-4); }
.inv-matrix .inv-matrix-hl { background: var(--brand-soft); }
.inv-matrix-yes { color: var(--success-ink); }
.inv-matrix-no { color: var(--icon-muted); }
.inv-matrix td svg { width: 18px; height: 18px; vertical-align: -4px; }
.inv-matrix-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.inv-access { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) 0; }
.inv-access-tile { width: var(--size-avatar); height: var(--size-avatar); border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--brand-ink); display: flex; align-items: center; justify-content: center; flex: none; }
.inv-access-tile svg { width: 22px; height: 22px; }
.inv-access-text { flex: 1; min-width: 0; }
.inv-access-name { margin: 0; font-size: 16px; line-height: 22px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-access-sub { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-access-sub b { font-weight: 500; color: var(--ink-body); }
.inv-access-end { display: flex; align-items: center; gap: var(--space-1); flex: none; }

.inv-group { display: flex; flex-direction: column; gap: var(--space-3); width: 100%; box-sizing: border-box; text-align: left; font: inherit; cursor: pointer;
  background: var(--surface-raised); color: var(--ink); border: 1px solid transparent; border-radius: var(--radius-md); padding: var(--space-4); box-shadow: var(--shadow-card); transition: border-color .15s; }
.inv-group:hover { border-color: var(--line); }
.inv-group-head { display: flex; align-items: center; gap: var(--space-3); }
.inv-group-name { margin: 0; font-size: 16px; line-height: 22px; font-weight: 700; color: var(--ink); }
.inv-group-count { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.inv-group-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.inv-group-open { display: inline-flex; align-items: center; color: var(--brand-ink); font-size: 14px; line-height: 20px; font-weight: 500; gap: 2px; }
.inv-group-open svg { width: 18px; height: 18px; }

.inv-stack { display: inline-flex; align-items: center; }
.inv-stack .inv-avatar { width: 32px; height: 32px; font-size: 12px; box-shadow: 0 0 0 2px var(--surface-raised); margin-left: -8px; }
.inv-stack .inv-avatar:first-child { margin-left: 0; }
.inv-stack-more { width: 32px; height: 32px; border-radius: var(--radius-full); margin-left: -8px; background: var(--surface); color: var(--ink-muted); box-shadow: 0 0 0 2px var(--surface-raised); font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; }

.inv-request { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); background: var(--surface-raised); border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.inv-request-head { display: flex; align-items: center; gap: var(--space-3); }
.inv-request-when { margin: 0; font-size: 12px; line-height: 16px; color: var(--accent); flex: none; }
.inv-request-actions { display: flex; gap: var(--space-2); }
.inv-request-actions .inv-btn { flex: 1; }

/* ---------- OrSeparator / Link ---------- */
.inv-or { text-align: center; font-size: 20px; line-height: 28px; color: var(--ink-muted); margin: 0; }
.inv-link { font: inherit; font-size: 20px; line-height: 28px; color: var(--link); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; cursor: pointer; }
.inv-link-sm { font-size: 16px; line-height: 24px; }
.inv-center { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); text-align: center; }
