/* v10 visual pass: denser meaning, calmer motion, readable microtype. */
:root {
  --pm-shadow-soft: 0 10px 30px rgba(7, 19, 39, .065), 0 2px 7px rgba(7, 19, 39, .035);
  --pm-shadow-premium: 0 18px 42px rgba(7, 19, 39, .12), inset 0 1px rgba(255, 255, 255, .78);
}

body { text-rendering: optimizeLegibility; }
button { touch-action: manipulation; }
.pm-screen { contain: layout paint style; backface-visibility: hidden; }
.pm-scroll { backface-visibility: hidden; }
:is(.pm-header__copy h1, .pm-section-head h2, .pm-flow-hero h2, .pm-command-card h2) { text-wrap: balance; }
:is(.pm-ticket, .pm-price-lines, .pm-score-console, .pm-live-score-module, .pm-money-module, .pm-rating-module) { font-variant-numeric: tabular-nums; }
.pm-backend-indicator { width: max-content; display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; padding: 4px 7px; border: 1px solid rgba(23,70,176,.12); border-radius: 999px; color: #315ee1; background: rgba(49,94,225,.06); font-size: 7px; font-style: normal; font-weight: 850; letter-spacing: .09em; }
.pm-backend-indicator i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(49,94,225,.08); }
.pm-backend-indicator.is-live { color: #0b9669; background: rgba(11,150,105,.07); border-color: rgba(11,150,105,.13); }
.pm-backend-indicator.is-live i { animation: pm-live-breathe 1.8s ease-in-out infinite; }
.pm-backend-indicator.is-offline, .pm-backend-indicator.is-error { color: #a65d19; background: rgba(190,111,31,.08); border-color: rgba(190,111,31,.14); }

/* Surfaces keep their grouping even while the page is in motion. */
:is(.pm-list-card, .pm-flow-facts, .pm-policy-preview, .pm-intent-timeline, .pm-decision-list, .pm-profile-card) {
  border-color: rgba(7, 19, 39, .065);
  box-shadow: var(--pm-shadow-soft);
}
.pm-sport-screen :is(.pm-partner-context, .pm-partner-list button, .pm-mutual-note, .pm-score-snapshot, .pm-live-score-module) {
  border-color: rgba(151, 180, 246, .13);
  background-image: linear-gradient(145deg, rgba(255, 255, 255, .072), rgba(255, 255, 255, .032));
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}
.pm-button--primary {
  background: linear-gradient(135deg, #315ee1 0%, #1746b0 58%, #102f7d 100%);
  box-shadow: 0 14px 29px rgba(23, 70, 176, .29), inset 0 1px rgba(255, 255, 255, .26), inset 0 -1px rgba(7, 20, 54, .2);
}
.pm-button--primary:disabled { color: rgba(255,255,255,.58); background: linear-gradient(135deg,#60739f,#3c4d74); box-shadow: none; }
.pm-button--secondary { background: rgba(255, 255, 255, .88); box-shadow: 0 7px 20px rgba(7, 19, 39, .055), inset 0 1px rgba(255,255,255,.9); }
.pm-sport-screen .pm-button--secondary { color: #f4f7ff; border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.055); box-shadow: inset 0 1px rgba(255,255,255,.035); }

/* Partner cards receive real human identity without adding visual noise. */
.pm-partner-context small { font-size: 9px; letter-spacing: 1.05px; }
.pm-partner-context p { margin-top: 1px; color: #96a6c3; font-size: 9.5px; line-height: 1.3; }
.pm-partner-list { gap: 8px; }
.pm-partner-list button { min-height: 80px; grid-template-columns: 48px minmax(0,1fr) 39px 28px; gap: 10px; padding: 10px 11px; border-radius: 20px; }
.pm-partner-avatar {
  width: 47px !important;
  height: 47px !important;
  border: 1px solid rgba(159,184,243,.28);
  border-radius: 16px !important;
  background-color: #14264c !important;
  background-image: url('/src/assets/mobile-generated/avatar-partner-sprite-v10.png') !important;
  background-repeat: no-repeat !important;
  background-size: 300% 100% !important;
  box-shadow: 0 8px 18px rgba(0,0,0,.18), inset 0 1px rgba(255,255,255,.15);
  transition: transform 280ms var(--pm-ease-emphasized), border-color 220ms ease, box-shadow 220ms ease;
}
.pm-partner-avatar--1 { background-position: 0 50% !important; }
.pm-partner-avatar--2 { background-position: 50% 50% !important; }
.pm-partner-avatar--3 { background-position: 100% 50% !important; }
.pm-partner-list button > div { gap: 4px; }
.pm-partner-list strong { font-size: 11px; letter-spacing: -.08px; }
.pm-partner-list small { color: #96a4bd; font-size: 9px; }
.pm-partner-list em { color: #b6cbff; font-size: 10px; }
.pm-partner-list em small { color: #788cac; font-size: 7.5px; letter-spacing: .5px; }
.pm-partner-list div > i { height: 4px; }
.pm-partner-list div > i b { border-radius: inherit; background: linear-gradient(90deg,#6f92ed,#a4c2ff); box-shadow: 0 0 12px rgba(111,146,237,.34); }
.pm-partner-choice { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid rgba(154,182,244,.16); border-radius: 10px; color: #8fa9db; background: rgba(83,115,183,.09); transition: transform 260ms var(--pm-ease-emphasized), color 180ms ease, background 180ms ease; }
.pm-partner-list button.is-selected { border-color: rgba(137,172,251,.72); background-image: linear-gradient(135deg,rgba(55,101,202,.34),rgba(45,73,137,.18)); box-shadow: 0 12px 26px rgba(0,0,0,.15), inset 0 1px rgba(255,255,255,.05); }
.pm-partner-list button.is-selected .pm-partner-avatar { transform: scale(1.045); border-color: #a8c4ff; box-shadow: 0 0 0 3px rgba(113,151,236,.16), 0 10px 22px rgba(0,0,0,.22); }
.pm-partner-list button.is-selected .pm-partner-choice { color: #102b68; border-color: #a9c6ff; background: #a9c6ff; transform: rotate(-5deg) scale(1.04); }
.pm-mutual-note strong { font-size: 10px; }
.pm-mutual-note span { color: #91a0bb; font-size: 8.5px; line-height: 1.35; }

/* Telegram-like information density remains readable on an actual iPhone. */
.pm-paid-strip > header small { font-size: 8.5px; }
.pm-paid-circle > small, .pm-paid-circle > em { font-size: 8px; }
.pm-chat-list__copy strong { font-size: 11.5px; letter-spacing: -.12px; }
.pm-chat-list__copy time { font-size: 9px; }
.pm-chat-list__copy > small { font-size: 10px; }
.pm-chat-list__copy > em { font-size: 8.5px; }
.pm-inbox__end { font-size: 8.5px; }
.pm-chat-topbar__person strong { font-size: 11.5px; }
.pm-chat-topbar__person small { font-size: 8.5px; }
.pm-chat-order small { font-size: 7.5px; }
.pm-chat-order strong { font-size: 9.5px; }
.pm-chat-day span { font-size: 8.5px; }
.pm-bubble { font-size: 10.5px; line-height: 1.36; }
.pm-bubble > small, .pm-bubble p > small { font-size: 8px; }
.pm-bubble--reply blockquote { font-size: 8.5px; }
.pm-bubble--voice > span strong { font-size: 8.5px; }
.pm-bubble--voice > span small, .pm-bubble--photo small { font-size: 8px; }
.pm-chat-seen { font-size: 8px; }
.pm-chat-composer input { font-size: 12px; }

/* Operator dashboards: labels become readable, hierarchy remains compact. */
.pm-command-card small, .pm-module-head small { font-size: 8.5px; }
.pm-command-card p { font-size: 10px; line-height: 1.45; }
.pm-command-card button { font-size: 10px; }
.pm-decision-list__priority { font-size: 8.5px; }
.pm-decision-list strong { font-size: 11px; }
.pm-decision-list small { font-size: 9px; line-height: 1.4; }
.pm-decision-list button, .pm-command-card button { min-height: 44px; font-size: 9.5px; }
.pm-operator-actions strong { font-size: 10px; }
.pm-operator-actions small { font-size: 8.5px; line-height: 1.3; }
.pm-human-boundary strong { font-size: 10px; }
.pm-human-boundary small { font-size: 9px; line-height: 1.4; }
.pm-capacity-module__axis, .pm-capacity-lane > b, .pm-capacity-lane > small { font-size: 8px; }
.pm-media-queue article small, .pm-live-score-module footer, .pm-live-score-module footer button { font-size: 8.5px; }
.pm-rating-module li > span { font-size: 9.5px; }
.pm-rating-module li small, .pm-audit-module p small, .pm-people-module > div:last-child small { font-size: 8px; }

/* Workflow contracts should look calm rather than template-heavy. */
.pm-flow-hero p { font-size: 13px; line-height: 1.48; }
.pm-flow-journey small { font-size: 9px; }
.pm-flow-facts strong { font-size: 13px; }
.pm-flow-facts small { font-size: 10px; }
.pm-flow-return strong { font-size: 10.5px; }
.pm-flow-return small { font-size: 9px; }
.pm-command-preview header small, .pm-command-receipt small, .pm-flow-progress header small { font-size: 8.5px; }

/* Composable identity: one participant shell, several assigned workspaces. */
.pm-menu-button {
  color: var(--pm-blue);
  background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(235,241,255,.86));
  box-shadow: 0 7px 20px rgba(23,70,176,.09), inset 0 1px rgba(255,255,255,.9);
}
.pm-role-choice--static { cursor: default; }
.pm-role-choice--static > svg { color: #0b9669; }
.pm-workspace-group { display: grid; gap: 5px; }
.pm-workspace-group > nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; padding: 0 4px 5px 48px; }
.pm-workspace-group > nav button { min-height: 35px; display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 11px; color: var(--pm-muted); background: rgba(23,70,176,.045); font-size: 8.5px; font-weight: 720; text-align: left; }
.pm-workspace-group > nav button svg { color: var(--pm-blue); }
.pm-menu-directory { display:grid; gap:10px; margin:0 0 12px; }
.pm-menu-directory > section { display:grid; gap:5px; }
.pm-menu-directory > section > header { display:flex; align-items:center; gap:7px; padding:0 4px; color:var(--pm-ink); }
.pm-menu-directory > section > header > span { display:grid; place-items:center; width:27px; height:27px; border-radius:10px; color:var(--pm-blue); background:rgba(36,92,214,.08); }
.pm-menu-directory > section > header strong { flex:1; font-size:10px; letter-spacing:.05px; }
.pm-menu-directory > section > header small { color:var(--pm-muted); font-size:8px; font-weight:760; }
.pm-menu-directory nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; }
.pm-menu-directory nav button { min-height:52px; display:grid; grid-template-columns:25px minmax(0,1fr) 14px; align-items:center; gap:6px; padding:7px 8px; border:1px solid rgba(32,61,111,.07); border-radius:14px; color:var(--pm-ink); background:rgba(255,255,255,.72); text-align:left; }
.pm-menu-directory nav button > span:first-child { display:grid; place-items:center; width:25px; height:25px; border-radius:9px; color:var(--pm-blue); background:rgba(36,92,214,.07); }
.pm-menu-directory nav button div { min-width:0; display:grid; gap:2px; }
.pm-menu-directory nav button strong { font-size:8.8px; line-height:1.15; }
.pm-menu-directory nav button small { overflow:hidden; color:var(--pm-muted); font-size:7px; line-height:1.2; text-overflow:ellipsis; white-space:nowrap; }
.pm-menu-directory nav button > svg { color:#a9b1bf; }
.pm-workspace-divider { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:8px 2px; padding-top:10px; border-top:1px solid rgba(32,61,111,.09); }
.pm-workspace-divider span { font-size:9px; font-weight:820; text-transform:uppercase; letter-spacing:.7px; }
.pm-workspace-divider small { color:var(--pm-muted); font-size:8px; }
.pm-workspace-board { display:grid; gap:9px; margin:10px 14px; padding:12px; border:1px solid rgba(255,255,255,.76); border-radius:22px; background:linear-gradient(145deg,rgba(255,255,255,.91),rgba(241,245,255,.72)); box-shadow:0 14px 28px rgba(20,48,95,.09); }
.pm-workspace-board > header { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.pm-workspace-board > header div { display:grid; gap:3px; }
.pm-workspace-board > header small { color:var(--pm-blue); font-size:7.5px; font-weight:850; letter-spacing:.85px; }
.pm-workspace-board > header strong { font-size:12px; line-height:1.2; letter-spacing:-.15px; }
.pm-workspace-board > header > span { display:grid; place-items:center; width:34px; height:34px; border-radius:13px; color:var(--pm-blue); background:rgba(36,92,214,.08); }
.pm-workspace-board > div { display:grid; gap:6px; }
.pm-workspace-board > div > button { min-height:58px; display:grid; grid-template-columns:34px 42px minmax(0,1fr) 16px; align-items:center; gap:7px; padding:8px; border:1px solid rgba(32,61,111,.07); border-radius:16px; color:var(--pm-ink); background:rgba(255,255,255,.77); text-align:left; }
.pm-workspace-board > div > button > span { display:grid; place-items:center; width:34px; height:34px; border-radius:12px; color:var(--pm-blue); background:rgba(36,92,214,.08); }
.pm-workspace-board > div > button.is-red > span { color:#d94d62; background:rgba(217,77,98,.09); }
.pm-workspace-board > div > button.is-amber > span { color:#b47918; background:rgba(225,161,48,.11); }
.pm-workspace-board > div > button.is-violet > span { color:#7456e8; background:rgba(116,86,232,.09); }
.pm-workspace-board > div > button.is-green > span { color:#16845f; background:rgba(22,132,95,.09); }
.pm-workspace-board > div > button > b { font-size:11px; letter-spacing:-.2px; }
.pm-workspace-board > div > button > div { min-width:0; display:grid; gap:2px; }
.pm-workspace-board > div > button strong { font-size:9px; }
.pm-workspace-board > div > button small { overflow:hidden; color:var(--pm-muted); font-size:7.5px; text-overflow:ellipsis; white-space:nowrap; }
.pm-workspace-board > div > button > svg { color:#a8b1bf; }
.pm-workspace-board > footer { display:flex; align-items:center; gap:6px; color:var(--pm-muted); font-size:7.5px; }
.pm-community-avatar { display:grid!important; place-items:center; overflow:hidden; width:38px!important; height:38px!important; border-radius:14px!important; color:white; background:linear-gradient(145deg,#245cd6,#193d95); font-size:10px; font-weight:850; box-shadow:0 7px 16px rgba(25,61,149,.2); }
.pm-community-avatar.is-club { background:linear-gradient(145deg,#16845f,#0c5c43); }
.pm-community-avatar.is-event { background:linear-gradient(145deg,#7456e8,#4e38ad); }
.pm-community-avatar img { width:100%; height:100%; object-fit:cover; }
.pm-chat-context-note { display:flex; align-items:flex-start; gap:8px; margin:10px 14px 4px; padding:10px; border:1px solid rgba(36,92,214,.08); border-radius:15px; color:var(--pm-blue); background:rgba(36,92,214,.045); }
.pm-chat-context-note p { display:grid; gap:3px; color:var(--pm-ink); }
.pm-chat-context-note strong { font-size:8.5px; }
.pm-chat-context-note small { color:var(--pm-muted); font-size:7.5px; line-height:1.35; }
.pm-channel-footer { min-height:62px; display:flex; align-items:center; justify-content:center; gap:7px; padding:10px 18px calc(10px + var(--safe-bottom)); color:var(--pm-muted); background:rgba(248,249,252,.96); font-size:8px; font-weight:730; }
.pm-bubble--attachment { display:grid!important; grid-template-columns:30px minmax(0,1fr) 14px; align-items:center; gap:7px; }
.pm-bubble--attachment > span { display:grid; place-items:center; width:30px; height:30px; border-radius:10px; color:white; background:rgba(255,255,255,.18); }
.pm-bubble--attachment p { display:grid; gap:2px; }
.pm-bubble--attachment p strong { font-size:8.5px; }
.pm-bubble--attachment p small { opacity:.78; font-size:7px; }
.pm-sheet-search { min-height:46px; display:flex; align-items:center; gap:8px; margin:12px 0; padding:0 12px; border:1px solid rgba(32,61,111,.08); border-radius:15px; color:var(--pm-muted); background:#f1f3f8; }
.pm-sheet-search input { min-width:0; flex:1; border:0; outline:0; color:var(--pm-ink); background:transparent; font-size:10px; }
.pm-search-results { display:grid; gap:6px; }
.pm-search-results button { min-height:57px; display:grid; gap:3px; padding:9px 11px; border:1px solid rgba(32,61,111,.07); border-radius:15px; color:var(--pm-ink); background:rgba(255,255,255,.72); text-align:left; }
.pm-search-results button small { color:var(--pm-blue); font-size:7px; font-weight:820; letter-spacing:.5px; }
.pm-search-results button strong { font-size:9.5px; }
.pm-search-results button span { color:var(--pm-muted); font-size:8px; }
.pm-media-compose { display:flex; align-items:center; gap:12px; margin:13px 0; padding:14px; border:1px solid rgba(36,92,214,.09); border-radius:19px; background:linear-gradient(145deg,#f8faff,#eef3ff); }
.pm-media-compose > span { display:grid; place-items:center; width:48px; height:48px; border-radius:17px; color:white; background:linear-gradient(145deg,#245cd6,#183d98); box-shadow:0 11px 23px rgba(36,92,214,.2); }
.pm-media-compose div { display:grid; gap:4px; }
.pm-media-compose strong { font-size:10px; }
.pm-media-compose small { color:var(--pm-muted); font-size:8px; line-height:1.35; }
.pm-compose-caption { display:grid; gap:6px; color:var(--pm-muted); font-size:8px; font-weight:730; }
.pm-compose-caption input { min-height:43px; padding:0 12px; border:1px solid rgba(32,61,111,.09); border-radius:14px; outline:0; color:var(--pm-ink); background:white; font-size:9px; }
.pm-call-active { display:grid; justify-items:center; gap:7px; padding:8px 4px 4px; text-align:center; }
.pm-call-active > div { position:relative; width:150px; height:188px; overflow:hidden; border-radius:28px; background:#101728; box-shadow:0 20px 38px rgba(10,20,42,.25); }
.pm-call-active > div > img { width:100%; height:100%; object-fit:cover; }
.pm-call-active > div > span { position:absolute; left:10px; right:10px; bottom:10px; display:flex; align-items:center; justify-content:center; gap:6px; min-height:30px; border-radius:12px; color:white; background:rgba(7,15,31,.7); backdrop-filter:blur(10px); font-size:8px; }
.pm-call-active > div > span i { width:6px; height:6px; border-radius:50%; background:#56e3ac; box-shadow:0 0 0 5px rgba(86,227,172,.12); }
.pm-call-active > small { margin-top:5px; color:var(--pm-blue); font-size:7.5px; font-weight:850; letter-spacing:.8px; }
.pm-call-active h2 { font-size:20px; }
.pm-call-active p { max-width:260px; color:var(--pm-muted); font-size:9px; line-height:1.45; }
.pm-call-active nav { display:flex; gap:10px; margin-top:7px; }
.pm-call-active nav button { width:48px; height:48px; display:grid; place-items:center; border-radius:18px; color:var(--pm-ink); background:#eef1f7; }
.pm-call-active nav button[data-call-end] { color:white; background:#df4d61; box-shadow:0 10px 20px rgba(223,77,97,.25); }
.pm-thread-info { display:grid; justify-items:center; gap:5px; padding:8px 4px 14px; text-align:center; }
.pm-thread-info > span { display:grid; place-items:center; width:58px; height:58px; border-radius:22px; color:white; background:linear-gradient(145deg,#245cd6,#173e9f); box-shadow:0 14px 27px rgba(36,92,214,.22); }
.pm-thread-info small { margin-top:5px; color:var(--pm-blue); font-size:7.5px; font-weight:850; letter-spacing:.8px; }
.pm-thread-info h2 { font-size:20px; }
.pm-thread-info p { color:var(--pm-muted); font-size:9px; }
.pm-thread-media { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin:12px 0; }
.pm-thread-media button { min-height:92px; display:grid; align-content:center; justify-items:center; gap:5px; padding:8px 5px; border:1px solid rgba(32,61,111,.07); border-radius:16px; color:var(--pm-ink); background:rgba(255,255,255,.78); text-align:center; }
.pm-thread-media button > span { display:grid; place-items:center; width:36px; height:36px; border-radius:13px; color:var(--pm-blue); background:rgba(36,92,214,.08); }
.pm-thread-media button strong { max-width:90px; overflow:hidden; font-size:8px; text-overflow:ellipsis; white-space:nowrap; }
.pm-thread-media button small { color:var(--pm-muted); font-size:6.8px; line-height:1.25; }
.pm-user-rail button { grid-template-columns: 30px minmax(0,1fr) 20px; }
.pm-user-rail button > span { color: var(--pm-ink-2); font-size: 9px; font-weight: 820; letter-spacing: -.15px; }
.pm-user-rail button > small { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 7px; color: var(--pm-muted); background: rgba(7,19,39,.045); font-size: 8px; font-weight: 800; }
.pm-user-rail button.is-active > small { color: white; background: var(--pm-blue); }
.pm-billing-switch { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 3px 0 12px; }
.pm-billing-switch button { min-height: 58px; display: grid; grid-template-columns: 25px minmax(0,1fr) 18px; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--pm-line); border-radius: 17px; color: var(--pm-muted); background: rgba(255,255,255,.78); text-align: left; }
.pm-billing-switch button > span { display: grid; gap: 2px; }
.pm-billing-switch strong { color: var(--pm-ink); font-size: 10px; }
.pm-billing-switch small { font-size: 8px; }
.pm-billing-switch button.is-active { color: var(--pm-blue); border-color: rgba(23,70,176,.28); background: #f1f5ff; box-shadow: inset 0 0 0 1px rgba(23,70,176,.08), 0 8px 20px rgba(23,70,176,.07); }
.pm-profile-card > div:nth-child(2) p { overflow: hidden; max-width: 205px; text-overflow: ellipsis; white-space: nowrap; }

@media (hover:hover) and (pointer:fine) {
  .pm-partner-list button:hover:not(:disabled) { transform: translateY(-2px); border-color: rgba(133,169,248,.46); box-shadow: 0 12px 28px rgba(0,0,0,.15); }
  .pm-partner-list button:hover .pm-partner-avatar { transform: scale(1.035); }
  .pm-menu-button:hover, .pm-role-choice:not(.pm-role-choice--static):hover, .pm-user-rail button:hover { transform: translateY(-1px); }
}

@media (prefers-reduced-motion: reduce) {
  .pm-partner-avatar, .pm-partner-choice { transition: none !important; }
}
