/* ============================================================
   Solitaire — customer app styles (on top of /shared/theme.css)
   Phone-first shell centered on larger screens.
   ============================================================ */

/* ---------- app shell ---------- */
.c-shell {
  height: 100dvh;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
@media (min-width: 700px) {
  .c-shell {
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    box-shadow: var(--shadow-2);
  }
}
.c-main { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }

/* top header (catalog / simple views) */
.c-header {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 12px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex: none;
  min-height: 58px;
}
.c-header-title {
  font-size: var(--fs-xl); font-weight: 800; letter-spacing: .1em; color: var(--navy);
}
.c-header .btn-icon { background: transparent; font-size: 20px; }
.c-header .btn-icon:hover { background: var(--surface-3); }

/* bottom tab bar */
.c-tabbar {
  flex: none;
  display: flex;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.c-tab {
  flex: 1; border: none; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 0 7px; color: var(--muted); font-size: var(--fs-xs); font-weight: 600;
  position: relative;
}
.c-tab.active { color: var(--primary); }
.c-tab-icon { font-size: 21px; line-height: 1; }
.c-tab .badge { position: absolute; top: 3px; left: calc(50% + 8px); }

/* ---------- hamburger drawer ---------- */
.c-drawer-backdrop {
  position: absolute; inset: 0; z-index: 60;
  background: rgba(10, 18, 35, .45); animation: fade-in .15s ease;
}
.c-drawer {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(300px, 84%);
  background: var(--surface); box-shadow: var(--shadow-3);
  display: flex; flex-direction: column;
  animation: c-slide-right .18s ease;
}
@keyframes c-slide-right { from { transform: translateX(-30px); opacity: 0; } }
.c-drawer-head {
  padding: var(--sp-5) var(--sp-4);
  background: var(--primary-soft); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: var(--sp-3);
}
.c-drawer-menu { padding: var(--sp-2) 0; flex: 1; overflow-y: auto; }
.c-drawer-item {
  display: flex; align-items: center; gap: var(--sp-3); width: 100%;
  border: none; background: none; cursor: pointer; text-align: left;
  padding: 13px var(--sp-4); font-size: var(--fs-md); font-weight: 500; color: var(--text);
}
.c-drawer-item:hover { background: var(--surface-2); }
.c-drawer-item .c-mi { width: 24px; text-align: center; font-size: 17px; }
.c-drawer-item.danger { color: var(--danger); }
.c-drawer-foot { padding: var(--sp-3) var(--sp-4); font-size: var(--fs-xs); color: var(--muted); border-top: 1px solid var(--border); }

/* ---------- onboarding / start screens ---------- */
.c-start {
  flex: 1; overflow-y: auto;
  padding: var(--sp-6) var(--sp-5) var(--sp-8);
  display: flex; flex-direction: column; gap: var(--sp-4);
  background:
    radial-gradient(900px 420px at 50% -8%, var(--primary-soft) 0%, transparent 65%),
    var(--bg);
}
.c-start-brand { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: var(--sp-3) 0 var(--sp-2); }
.c-start-brand .t { font-size: 22px; font-weight: 800; letter-spacing: .13em; color: var(--navy); }
.c-start-brand .s { font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.c-choice-card {
  border: 1px solid var(--border); border-radius: var(--r-xl);
  background: var(--surface); box-shadow: var(--shadow-1);
  padding: var(--sp-6) var(--sp-5); text-align: center; cursor: pointer;
  transition: box-shadow .15s, transform .1s, border-color .15s;
}
.c-choice-card:hover { border-color: var(--primary); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.c-choice-icon { font-size: 44px; margin-bottom: var(--sp-2); }
.c-invite-card {
  border: 1px solid var(--primary-soft-2); border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); text-align: left;
}
.c-invite-head { background: var(--primary); color: #fff; font-weight: 700; font-size: var(--fs-sm); padding: 8px 14px; }
.c-invite-body { padding: var(--sp-4); display: flex; align-items: center; gap: var(--sp-3); }
.c-pending-hero { text-align: center; padding: var(--sp-6) 0 var(--sp-2); }
.c-pending-hero .ic { font-size: 54px; }
.c-kv { display: flex; gap: var(--sp-3); padding: 7px 0; font-size: var(--fs-md); }
.c-kv .k { color: var(--muted); min-width: 128px; flex: none; font-size: var(--fs-sm); padding-top: 2px; }
.c-kv .v { font-weight: 600; overflow-wrap: anywhere; }

/* ---------- catalog ---------- */
.c-catalog { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 90px; }
.c-catalog-inner { padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-4); }

.c-banner { position: relative; overflow: hidden; border-radius: var(--r-lg); flex: none; }
.c-banner-track { display: flex; transition: transform .4s ease; }
.c-banner-slide {
  flex: none; width: 100%; min-height: 116px;
  background: linear-gradient(120deg, var(--primary-soft), var(--primary-soft-2));
  padding: var(--sp-4) var(--sp-5);
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  position: relative; overflow: hidden;
}
.c-banner-slide h3 { margin: 0; font-size: var(--fs-lg); color: var(--navy); position: relative; }
.c-banner-slide p { margin: 0; font-size: var(--fs-sm); color: var(--text-2); max-width: 46ch; position: relative; }
.c-banner-slide img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.c-banner-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.c-banner-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--navy); opacity: .25; transition: opacity .2s; }
.c-banner-dots i.on { opacity: .85; }

.c-cats { display: flex; gap: var(--sp-2); overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.c-cats::-webkit-scrollbar { display: none; }

.c-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
@media (min-width: 520px) { .c-grid { grid-template-columns: repeat(3, 1fr); } }
.c-product {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-1);
}
.c-product-img {
  height: 110px; background: var(--surface-2); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 38px;
}
.c-product-img img { width: 100%; height: 100%; object-fit: cover; }
.c-product-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.c-product-name {
  font-weight: 600; font-size: var(--fs-sm); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.6em;
}
.c-product-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; }
.c-add-btn {
  width: 30px; height: 30px; border-radius: 50%; border: none; cursor: pointer; flex: none;
  background: var(--primary); color: #fff; font-size: 17px; font-weight: 700; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .1s, background .15s;
}
.c-add-btn:hover:not(:disabled) { background: var(--primary-strong); }
.c-add-btn:active:not(:disabled) { transform: scale(.9); }
.c-add-btn:disabled { background: var(--surface-3); color: var(--muted); cursor: not-allowed; }
.c-add-btn.in-draft { background: var(--success); }

/* floating quote-draft pill */
.c-draft-pill {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: flex; align-items: center; gap: 10px;
  background: var(--navy); color: #fff;
  border: none; cursor: pointer;
  padding: 11px 20px; border-radius: var(--r-full);
  font-size: var(--fs-md); font-weight: 700; box-shadow: var(--shadow-3);
  animation: pop-in .18s ease;
}
@media (prefers-color-scheme: dark) { .c-draft-pill { background: var(--primary); } }
.c-draft-pill .badge { background: #fff; color: var(--primary); }

/* bottom sheet (quote drawer) */
.c-sheet-backdrop {
  position: absolute; inset: 0; z-index: 70;
  background: rgba(10, 18, 35, .5); animation: fade-in .15s ease;
  display: flex; align-items: flex-end;
}
.c-sheet {
  width: 100%; max-height: 86%;
  background: var(--surface); border-radius: var(--r-xl) var(--r-xl) 0 0;
  display: flex; flex-direction: column; animation: c-slide-up .22s ease;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
@keyframes c-slide-up { from { transform: translateY(40px); opacity: 0; } }
.c-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-4) var(--sp-5) var(--sp-2); flex: none; }
.c-sheet-body { overflow-y: auto; padding: 0 var(--sp-5) var(--sp-4); flex: 1; }
.c-sheet-foot { padding: var(--sp-3) var(--sp-5) var(--sp-4); border-top: 1px solid var(--border); flex: none; }

.c-qty-row { display: flex; align-items: center; gap: var(--sp-3); padding: 10px 0; border-bottom: 1px solid var(--border); }
.c-qty-row:last-child { border-bottom: none; }
.c-stepper {
  display: flex; align-items: center; gap: 0; border: 1px solid var(--border-strong);
  border-radius: var(--r-full); overflow: hidden; flex: none; background: var(--surface);
}
.c-stepper button {
  width: 30px; height: 30px; border: none; background: var(--surface-2); cursor: pointer;
  font-size: 16px; font-weight: 700; color: var(--primary); line-height: 1;
}
.c-stepper button:hover { background: var(--primary-soft); }
.c-stepper .q { min-width: 34px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- messenger ---------- */
.c-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
.c-chat-header {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 10px; background: var(--surface); border-bottom: 1px solid var(--border);
  flex: none; min-height: 58px;
}
.c-switcher {
  display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1;
  border: none; background: none; cursor: pointer; text-align: left; padding: 4px 6px;
  border-radius: var(--r-md);
}
.c-switcher:hover { background: var(--surface-2); }
.c-switcher-name { font-weight: 700; font-size: var(--fs-md); display: flex; align-items: center; gap: 6px; min-width: 0; }
.c-switcher-name .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-switcher-sub { font-size: var(--fs-xs); color: var(--muted); display: flex; align-items: center; gap: 5px; }
.c-online-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); flex: none; display: inline-block; }
.c-chevron { color: var(--muted); font-size: 10px; flex: none; }

/* switcher dropdown */
.c-switch-backdrop { position: absolute; inset: 0; z-index: 55; }
.c-switch-panel {
  position: absolute; top: 60px; left: 10px; right: 10px; z-index: 56;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-3); overflow: hidden; max-height: min(430px, 70%);
  overflow-y: auto; animation: pop-in .15s ease;
}
.c-switch-section {
  font-size: var(--fs-xs); font-weight: 800; color: var(--muted); text-transform: uppercase;
  letter-spacing: .06em; padding: 12px 16px 5px;
}
.c-switch-row { display: flex; align-items: center; gap: var(--sp-3); padding: 10px 16px; cursor: pointer; }
.c-switch-row:hover { background: var(--surface-2); }
.c-switch-row.active { background: var(--primary-soft); }
.c-switch-row .meta { flex: 1; min-width: 0; }
.c-switch-row .nm { font-weight: 600; font-size: var(--fs-md); display: flex; align-items: center; gap: 6px; }
.c-switch-row .lm { font-size: var(--fs-sm); color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* thread */
.c-thread { flex: 1; min-height: 0; overflow-y: auto; padding: var(--sp-3) 0 var(--sp-2); scroll-behavior: smooth; }
.c-thread.no-smooth { scroll-behavior: auto; }
.c-thread-load { display: flex; justify-content: center; padding: 6px 0 10px; }

/* message extras on top of theme.css chat kit */
.msg-row { position: relative; }
.msg-actions-btn {
  border: none; background: none; color: var(--muted); cursor: pointer;
  font-size: 15px; line-height: 1; padding: 2px 4px; border-radius: 6px;
  opacity: 0; transition: opacity .12s; flex: none; align-self: center;
}
.msg-row:hover .msg-actions-btn { opacity: .8; }
@media (hover: none) { .msg-actions-btn { opacity: .45; } }
.msg-failed { color: var(--danger); cursor: pointer; font-weight: 600; }
.c-flash { animation: c-flash 1.2s ease; }
@keyframes c-flash { 0%, 45% { background: var(--primary-soft); } 100% { background: transparent; } }

/* context menu */
.c-menu {
  position: fixed; z-index: calc(var(--z-modal) + 5);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-3); min-width: 168px; padding: 5px; animation: pop-in .12s ease;
}
.c-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  border: none; background: none; cursor: pointer; text-align: left;
  padding: 9px 12px; font-size: var(--fs-md); color: var(--text); border-radius: var(--r-sm);
}
.c-menu button:hover { background: var(--surface-2); }
.c-menu button.danger { color: var(--danger); }

/* structured cards inside bubbles */
.c-card-msg { min-width: 210px; max-width: 100%; white-space: normal; }
.c-card-msg-head {
  display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: var(--fs-sm);
  padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px dashed var(--border-strong);
}
.c-card-item { display: flex; align-items: baseline; gap: 8px; padding: 3px 0; font-size: var(--fs-sm); }
.c-card-item .q { font-weight: 800; color: var(--primary); flex: none; min-width: 30px; font-variant-numeric: tabular-nums; }
.c-card-item .nm { font-weight: 600; }
.c-card-item .ps { color: var(--muted); font-size: var(--fs-xs); }
.c-card-note { margin-top: 6px; font-size: var(--fs-sm); color: var(--text-2); font-style: italic; }

/* typing row */
.c-typing { display: flex; align-items: center; gap: 4px; padding: 0 14px; min-height: 26px; flex: none; }
.c-typing .who { font-size: var(--fs-xs); color: var(--muted); }
.c-typing .typing-dots { padding: 0 2px; }

/* reply bar above composer */
.c-replybar {
  display: flex; align-items: center; gap: 10px; padding: 8px 14px;
  background: var(--surface-2); border-top: 1px solid var(--border); flex: none;
}
.c-replybar .bar { width: 3px; align-self: stretch; border-radius: 2px; background: var(--primary); flex: none; }
.c-replybar .meta { flex: 1; min-width: 0; font-size: var(--fs-sm); }
.c-replybar .meta b { color: var(--primary); font-size: var(--fs-xs); display: block; }
.c-replybar .meta span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--text-2); }

/* composer extras */
.composer { flex: none; }
.composer .btn-icon { flex: none; }
.c-attach-tray {
  display: flex; gap: var(--sp-4); padding: var(--sp-3) var(--sp-4) var(--sp-4);
  background: var(--surface); border-top: 1px solid var(--border); flex: none;
  justify-content: space-evenly;
}
.c-attach-opt {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  border: none; background: none; cursor: pointer; font-size: var(--fs-xs); color: var(--text-2); font-weight: 600;
}
.c-attach-opt .ic {
  width: 52px; height: 52px; border-radius: var(--r-lg); font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary);
}
.c-attach-opt:hover .ic { background: var(--primary-soft-2); }

/* recording state */
.c-recording {
  display: flex; align-items: center; gap: 10px; flex: 1;
  background: var(--danger-soft); color: var(--danger);
  border-radius: var(--r-xl); padding: 9px 15px; font-weight: 700; font-size: var(--fs-sm);
}
.c-rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); animation: c-blink 1s infinite; flex: none; }
@keyframes c-blink { 50% { opacity: .25; } }

/* archived notice */
.c-archived-note {
  padding: 12px 16px; text-align: center; font-size: var(--fs-sm); color: var(--muted);
  background: var(--surface-2); border-top: 1px solid var(--border); flex: none;
}

/* uploading pill */
.c-uploading {
  position: absolute; bottom: 76px; left: 50%; transform: translateX(-50%); z-index: 30;
  display: flex; align-items: center; gap: 8px;
  background: var(--navy); color: #fff; padding: 8px 16px; border-radius: var(--r-full);
  font-size: var(--fs-sm); font-weight: 600; box-shadow: var(--shadow-2);
}
@media (prefers-color-scheme: dark) { .c-uploading { background: var(--primary); } }

/* new-messages jump chip */
.c-jump {
  position: absolute; bottom: 84px; right: 14px; z-index: 25;
  border: 1px solid var(--border); background: var(--surface); color: var(--primary);
  border-radius: var(--r-full); padding: 7px 14px; font-size: var(--fs-sm); font-weight: 700;
  cursor: pointer; box-shadow: var(--shadow-2);
}

/* ---------- info panel ---------- */
.c-panel-backdrop { position: absolute; inset: 0; z-index: 65; background: rgba(10, 18, 35, .35); animation: fade-in .15s ease; }
.c-panel {
  position: absolute; top: 0; bottom: 0; right: 0; width: min(360px, 92%); z-index: 66;
  background: var(--surface); box-shadow: var(--shadow-3);
  display: flex; flex-direction: column; animation: c-slide-left .2s ease;
}
@keyframes c-slide-left { from { transform: translateX(40px); opacity: 0; } }
.c-panel-head { display: flex; align-items: center; gap: var(--sp-3); padding: 14px 16px; border-bottom: 1px solid var(--border); flex: none; }
.c-panel-body { flex: 1; overflow-y: auto; padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-5); }
.c-panel-id { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.c-panel-sec h4 {
  font-size: var(--fs-xs); font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: var(--sp-2);
}
.c-member-row { display: flex; align-items: center; gap: var(--sp-3); padding: 8px 0; }
.c-member-row .meta { flex: 1; min-width: 0; }
.c-member-row .nm { font-weight: 600; font-size: var(--fs-md); }
.c-member-row .rl { font-size: var(--fs-xs); color: var(--muted); }
.c-toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; }
.c-switch { position: relative; width: 42px; height: 24px; flex: none; border: none; cursor: pointer; border-radius: var(--r-full); background: var(--border-strong); transition: background .18s; }
.c-switch::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; transition: transform .18s; box-shadow: var(--shadow-1);
}
.c-switch.on { background: var(--primary); }
.c-switch.on::after { transform: translateX(18px); }
.c-media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.c-media-grid img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm);
  cursor: zoom-in; background: var(--surface-2);
}
.c-file-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  color: inherit; text-decoration: none; border-bottom: 1px solid var(--border);
}
.c-file-row:hover { text-decoration: none; background: var(--surface-2); }
.c-media-tabs { display: flex; gap: 6px; margin-bottom: var(--sp-2); }

/* ---------- lightbox ---------- */
.c-lightbox {
  position: fixed; inset: 0; z-index: calc(var(--z-modal) + 10);
  background: rgba(5, 10, 22, .92); display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px; padding: 20px; animation: fade-in .15s ease; cursor: zoom-out;
}
.c-lightbox img { max-width: 100%; max-height: 84vh; border-radius: var(--r-md); box-shadow: var(--shadow-3); cursor: default; }
.c-lightbox .cap { color: #cfd8ea; font-size: var(--fs-sm); text-align: center; }
.c-lightbox-x {
  position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.14); color: #fff; font-size: 16px; cursor: pointer;
}

/* message-info (receipts) card shown inside the .c-lightbox overlay */
.c-receipts-card {
  background: var(--surface, #fff); color: var(--text, #101828);
  border-radius: var(--r-lg, 14px); box-shadow: var(--shadow-3);
  width: min(420px, 92vw); max-height: 80vh; overflow: auto; cursor: default;
}
.c-receipts-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border, #e4e7ec);
}
.c-receipts-head .c-lightbox-x { position: static; width: 30px; height: 30px; background: var(--surface-3, #eef1f6); color: var(--muted, #667085); }
.c-receipts-body { padding: 16px 18px; }

/* ---------- calls ---------- */
.c-call-overlay {
  position: fixed; inset: 0; z-index: calc(var(--z-modal) + 20);
  background: linear-gradient(180deg, #14295e 0%, #0c1730 100%);
  color: #fff; display: flex; flex-direction: column; align-items: center;
  padding: max(48px, env(safe-area-inset-top)) 24px 40px;
  animation: fade-in .2s ease;
}
.c-call-overlay .who { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 6vh; z-index: 2; }
.c-call-name { font-size: var(--fs-2xl); font-weight: 800; color: #fff; }
.c-call-state { font-size: var(--fs-md); color: #b9c6e4; min-height: 22px; font-variant-numeric: tabular-nums; }
.c-call-sim {
  margin-top: 12px; font-size: var(--fs-xs); color: #93a5cd; background: rgba(255,255,255,.08);
  padding: 5px 12px; border-radius: var(--r-full); z-index: 2;
}
.c-call-videos { position: absolute; inset: 0; }
.c-call-remote { position: absolute; inset: 0; }
.c-call-remote video { width: 100% !important; height: 100% !important; object-fit: cover; }
.c-call-local {
  position: absolute; right: 14px; top: max(56px, env(safe-area-inset-top)); width: 108px; height: 148px;
  border-radius: var(--r-md); overflow: hidden; background: #1d2b4e; box-shadow: var(--shadow-3); z-index: 3;
}
.c-call-controls { margin-top: auto; display: flex; gap: 22px; align-items: center; z-index: 3; }
.c-call-btn {
  width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; font-size: 22px;
  display: flex; align-items: center; justify-content: center; transition: background .15s, transform .1s;
}
.c-call-btn:hover { background: rgba(255,255,255,.24); }
.c-call-btn:active { transform: scale(.94); }
.c-call-btn.off { background: #fff; color: var(--navy); }
.c-call-btn.hang { background: var(--danger); }
.c-call-btn.answer { background: var(--success); }
.c-call-avatar-ring { position: relative; }
.c-call-avatar-ring::before, .c-call-avatar-ring::after {
  content: ''; position: absolute; inset: -12px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.22); animation: c-ring 1.8s infinite;
}
.c-call-avatar-ring::after { animation-delay: .55s; }
.c-call-avatar-ring.still::before, .c-call-avatar-ring.still::after { animation: none; opacity: 0; }
@keyframes c-ring { 0% { transform: scale(.85); opacity: 0; } 45% { opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }

/* incoming call modal */
.c-incoming {
  position: fixed; z-index: calc(var(--z-modal) + 15);
  top: 14px; left: 50%; transform: translateX(-50%);
  width: min(400px, calc(100vw - 24px));
  background: var(--navy); color: #fff; border-radius: var(--r-xl);
  box-shadow: var(--shadow-3); padding: 16px 18px;
  display: flex; align-items: center; gap: 14px; animation: c-drop .25s ease;
}
@media (prefers-color-scheme: dark) { .c-incoming { background: #223d78; } }
@keyframes c-drop { from { transform: translate(-50%, -30px); opacity: 0; } }
.c-incoming .meta { flex: 1; min-width: 0; }
.c-incoming .nm { font-weight: 800; font-size: var(--fs-lg); color: #fff; }
.c-incoming .sub { font-size: var(--fs-sm); color: #b9c6e4; }
.c-incoming .c-call-btn { width: 46px; height: 46px; font-size: 18px; }

/* ---------- profile / org settings ---------- */
.c-page { flex: 1; min-height: 0; overflow-y: auto; padding: var(--sp-4) var(--sp-4) var(--sp-8); }
.c-page-narrow { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--sp-4); }
.c-photo-edit { position: relative; width: 84px; margin: 0 auto; }
.c-photo-edit .pencil {
  position: absolute; right: -4px; bottom: -2px; width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--surface); background: var(--primary); color: #fff; font-size: 13px; cursor: pointer;
}
.c-invite-row { display: flex; align-items: center; gap: var(--sp-3); padding: 10px 0; border-bottom: 1px solid var(--border); }
.c-invite-row:last-child { border-bottom: none; }

/* skeleton rows for lists */
.c-skel-list { display: flex; flex-direction: column; gap: 14px; padding: var(--sp-4); }
.c-skel-row { display: flex; gap: 12px; align-items: center; }
.c-skel-row .grow .skeleton-text { width: 70%; }
.c-skel-row .grow .skeleton-text:last-child { width: 45%; }
