/* Browser chrome changes the visible viewport; keep the footer inside it. */
html:not(.electron-app) body,
.pwa-standalone body {
  height: 100dvh;
  min-height: 100dvh !important;
}
/* Installed surfaces blend into the system status bar and respect device cutouts. */
html.pwa-standalone body > header,
html.pwa-standalone header.topbar-mobile-compact.shell-panel,
html.pwa-standalone body.hub-index .meall-dashboard-bar {
  background: var(--pwa-header-surface) !important;
  backdrop-filter: none !important;
  border-top: 0 !important;
  padding-top: calc(16px + env(safe-area-inset-top, 0px)) !important;
  padding-left: max(16px, env(safe-area-inset-left, 0px)) !important;
  padding-right: max(16px, env(safe-area-inset-right, 0px)) !important;
}
html.pwa-standalone header.topbar-mobile-compact.shell-panel {
  padding-top: calc(8px + env(safe-area-inset-top, 0px)) !important;
}
.pwa-standalone body > .container {
  padding-bottom: max(18px, env(safe-area-inset-bottom, 0px)) !important;
}
.pwa-standalone #voiceCallModal .voice-call-content {
  padding-top: calc(20px + env(safe-area-inset-top, 0px)) !important;
}
.pwa-home {
  color: inherit;
  text-decoration: none;
  flex-shrink: 0;
}
.pwa-home:focus-visible {
  outline: 2px solid #00d87f;
  outline-offset: 3px;
  border-radius: 4px;
}
.pwa-connection-banner {
  position: relative;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--bg-secondary, #151b17);
  color: var(--text-primary, #f5f7f5);
  border-bottom: 1px solid #b88c39;
  font-size: 13px;
  flex-shrink: 0;
}
.pwa-connection-banner[hidden],
#pwaInstallButton[hidden],
#pwaInstallNow[hidden],
#pwaInstallHint[hidden] {
  display: none;
}
.pwa-connection-banner button {
  background: none;
  border: 1px solid currentColor;
  color: inherit;
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
}
.pwa-install-dialog {
  color: var(--text-primary, #f5f7f5);
  background: var(--bg-tertiary, #151b17);
  border: 1px solid var(--panel-border, #36423b);
  border-radius: 24px;
  width: min(600px, calc(100% - 24px));
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 28px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #6d7971 transparent;
  font: 15px/1.5 var(--app-font, sans-serif);
  box-shadow: 0 24px 80px #0006;
}
.pwa-install-dialog::backdrop {
  background: #0009;
  backdrop-filter: blur(6px);
}
.pwa-install-close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: 0;
  background: none;
  color: inherit;
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.pwa-install-close:hover {
  background: var(--border-color, #ffffff1f);
}
.pwa-install-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-right: 12px;
}
.pwa-install-brand img {
  flex-shrink: 0;
  border-radius: 18px;
}
.pwa-install-brand h2 {
  font-size: 22px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.pwa-install-brand p,
#pwaInstallHint {
  color: var(--text-secondary, #a7b2aa);
  font-size: 13px;
  margin-top: 8px;
}
.pwa-install-description {
  margin: 20px 0 16px;
}
.pwa-install-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pwa-install-features span {
  border: 1px solid var(--panel-border, #36423b);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 12px;
}
.pwa-install-screenshots {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
}
.pwa-install-screenshots img {
  width: 200px;
  height: auto;
  border: 1px solid var(--panel-border, #36423b);
  border-radius: 12px;
  scroll-snap-align: start;
}
.pwa-install-dialog .pwa-install-action {
  display: block;
  width: 100%;
  background: #00d87f;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  margin-top: 16px;
}
@media (max-width: 640px) {
  .pwa-install-dialog {
    padding: 24px 20px max(20px, env(safe-area-inset-bottom));
  }
  .pwa-install-brand h2 {
    font-size: 19px;
  }
  .pwa-install-screenshots img {
    width: 180px;
  }
  .pwa-connection-banner {
    align-items: start;
  }
}

.pwa-standalone .topbar-brand-group:has(.pwa-home) .meall-brand-lockup,
.pwa-standalone .meall-bar-left:has(.pwa-home) .meall-bar-logo {
  display: none;
}
.pwa-standalone .pwa-home {
  font-size: 22px;
  line-height: 1;
  text-shadow: 0 0 10px #00d87f80;
}

.pwa-standalone #root > .h-screen {
  height: 100dvh;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.pwa-standalone body > .welcome-hero {
  top: var(--pwa-header-height, 56px);
}
.pwa-standalone body > .welcome-hero:not(.collapsed) {
  height: calc(100dvh - var(--pwa-header-height, 56px));
}
@media (max-width: 700px) {
  .pwa-standalone body > header {
    padding-top: calc(12px + env(safe-area-inset-top, 0px)) !important;
  }
}

.pwa-install-banner {
  position: relative;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 0 0 auto;
  padding: 12px max(16px, env(safe-area-inset-right, 0px))
    max(12px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: var(--bg-secondary, #151b17);
  color: var(--text-primary, #f5f7f5);
  border-top: 1px solid var(--panel-border, #36423b);
}
.pwa-install-banner[hidden] {
  display: none;
}
.pwa-install-banner p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-secondary, #a7b2aa);
}
.pwa-install-banner button {
  flex-shrink: 0;
}

/* Decorative overlays must not tint the edge adjoining native chrome. */
html.pwa-standalone .scan-lines::before,
html.pwa-standalone .scan-lines::after {
  display: none;
}
html.pwa-standalone body.hub-index {
  animation: none !important;
}

@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 160ms;
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-group(*) { animation: none !important; }
}
@media (max-width: 899px) {
  html.pwa-keyboard-overlay .chat-composer {
    margin-bottom: max(0px, calc(var(--pwa-keyboard-height, env(keyboard-inset-height, 0px)) - var(--pwa-status-height, 40px) - env(safe-area-inset-bottom, 0px)));
  }
}
/* Self-contained surfaces: dashboard and Cockpit use different theme tokens. */
.pwa-sheet {
  --sheet-bg: #ffffff;
  --sheet-card: #f5f5f5;
  --sheet-text: #202020;
  --sheet-muted: #696969;
  --sheet-border: #dedede;
  --sheet-accent: #007a48;
  position: fixed;
  inset: auto 0 0;
  margin: 0 auto;
  box-sizing: border-box;
  width: min(560px, 100%);
  max-width: 100%;
  max-height: calc(100dvh - max(24px, env(safe-area-inset-top)));
  padding: 0;
  border: 1px solid var(--sheet-border);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: var(--sheet-bg);
  color: var(--sheet-text);
  box-shadow: 0 -12px 64px #0003;
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow: hidden;
  color-scheme: light;
}
html.dark .pwa-sheet, html[data-meall-theme='dark'] .pwa-sheet, body.dark .pwa-sheet {
  --sheet-bg: #111111;
  --sheet-card: #1b1b1b;
  --sheet-text: #f5f5f5;
  --sheet-muted: #a3a3a3;
  --sheet-border: #333333;
  --sheet-accent: #00d87f;
  color-scheme: dark;
}
.pwa-sheet[open] { display: flex; flex-direction: column; animation: pwa-sheet-enter 220ms ease-out; }
.pwa-sheet::backdrop { background: #0009; backdrop-filter: blur(5px); }
.pwa-sheet *, .pwa-sheet *::before, .pwa-sheet *::after { box-sizing: border-box; }
.pwa-sheet svg { width: 20px; height: 20px; flex-shrink: 0; }
.pwa-sheet-handle { width: 36px; height: 4px; border-radius: 4px; background: var(--sheet-border); margin: 10px auto 0; flex-shrink: 0; }
.pwa-sheet-header { display: flex; align-items: center; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--sheet-border); flex-shrink: 0; }
.pwa-sheet h2 { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: -.3px; flex: 1; color: var(--sheet-text); }
.pwa-sheet-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--sheet-accent); background: color-mix(in srgb, var(--sheet-accent) 12%, var(--sheet-bg)); }
.pwa-sheet .pwa-sheet-close { display: grid; place-items: center; width: 36px; height: 36px; min-height: 36px; border: 0; padding: 0; margin: 0; background: transparent; color: var(--sheet-muted); border-radius: 10px; cursor: pointer; }
.pwa-sheet .pwa-sheet-close:hover { background: var(--sheet-card); color: var(--sheet-text); }
.pwa-sheet-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px 24px max(24px, env(safe-area-inset-bottom)); scrollbar-width: thin; scrollbar-color: var(--sheet-border) var(--sheet-bg); }
.pwa-sheet p { margin: 0 0 16px; color: var(--sheet-muted); font-size: 13px; line-height: 1.6; }
.pwa-sheet .pwa-sheet-status { padding: 12px 14px; background: var(--sheet-card); border: 1px solid var(--sheet-border); border-radius: 12px; color: var(--sheet-text); }
.pwa-sheet h3 { display: flex; align-items: center; gap: 8px; margin: 24px 0 12px; font-size: 14px; font-weight: 600; color: var(--sheet-text); }
.pwa-sheet h3 svg { color: var(--sheet-accent); width: 18px; height: 18px; }
.pwa-sheet .pwa-sheet-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 14px; margin: 0 8px 12px 0; background: var(--sheet-card); color: var(--sheet-text); border: 1px solid var(--sheet-border); border-radius: 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 150ms, border-color 150ms; }
.pwa-sheet .pwa-sheet-button:hover { border-color: var(--sheet-accent); background: color-mix(in srgb, var(--sheet-accent) 8%, var(--sheet-card)); }
.pwa-sheet .pwa-sheet-primary { background: var(--sheet-accent); color: #fff; border-color: var(--sheet-accent); }
html.dark .pwa-sheet .pwa-sheet-primary, html[data-meall-theme='dark'] .pwa-sheet .pwa-sheet-primary, body.dark .pwa-sheet .pwa-sheet-primary { color: #051a10; }
.pwa-sheet .pwa-sheet-primary:hover { background: color-mix(in srgb, var(--sheet-accent) 85%, var(--sheet-bg)); }
.pwa-sheet :is(button, input, select):focus-visible { outline: 2px solid var(--sheet-accent); outline-offset: 3px; }
.pwa-sheet-section { margin: 16px 0; border: 1px solid var(--sheet-border); border-radius: 16px; background: var(--sheet-card); overflow: hidden; }
.pwa-sheet label.pwa-setting-row { display: flex; align-items: center; gap: 12px; margin: 0; padding: 16px; cursor: pointer; }
.pwa-setting-row + .pwa-setting-row { border-top: 1px solid var(--sheet-border); }
.pwa-setting-row > svg { color: var(--sheet-muted); }
.pwa-setting-copy { flex: 1; min-width: 0; }
.pwa-setting-copy strong { display: block; font-size: 13px; font-weight: 600; }
.pwa-setting-copy small { display: block; color: var(--sheet-muted); font-size: 12px; margin-top: 3px; line-height: 1.5; }
.pwa-sheet .pwa-setting-row input[type='checkbox'] { appearance: none; position: relative; width: 38px; height: 22px; flex: 0 0 38px; border-radius: 20px; background: var(--sheet-border); margin: 0; cursor: pointer; transition: background 150ms; }
.pwa-setting-row input[type='checkbox']::before { content: ''; position: absolute; width: 16px; height: 16px; top: 3px; left: 3px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px #0003; transition: transform 150ms; }
.pwa-setting-row input[type='checkbox']:checked { background: var(--sheet-accent); }
.pwa-setting-row input[type='checkbox']:checked::before { transform: translateX(16px); }
.pwa-quiet-hours { padding: 16px; }
.pwa-sheet .pwa-quiet-hours h3 { margin: 0 0 8px; }
.pwa-quiet-times { display: flex; gap: 12px; }
.pwa-sheet .pwa-quiet-times label { flex: 1; min-width: 0; margin: 0; font-size: 12px; color: var(--sheet-muted); }
.pwa-sheet input[type='time'], .pwa-sheet select { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; margin-top: 6px; background: var(--sheet-bg); color: var(--sheet-text); border: 1px solid var(--sheet-border); border-radius: 10px; font: inherit; font-size: 13px; }
.pwa-sheet .pwa-notification-thread { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--sheet-card); border: 1px solid var(--sheet-border); border-radius: 12px; margin-bottom: 8px; }
.pwa-notification-thread span { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 12px; color: var(--sheet-muted); }
.pwa-sheet .pwa-notification-thread button { margin: 0; flex-shrink: 0; }
.pwa-sheet label.pwa-shortcut-slot { display: grid; grid-template-columns: 28px 1fr; gap: 6px 10px; align-items: center; margin: 16px 0; padding: 14px; border: 1px solid var(--sheet-border); border-radius: 14px; background: var(--sheet-card); font-size: 13px; font-weight: 600; }
.pwa-shortcut-number { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: var(--sheet-accent); background: color-mix(in srgb, var(--sheet-accent) 12%, var(--sheet-bg)); }
.pwa-sheet .pwa-shortcut-slot select { grid-column: 1 / -1; }
.pwa-shortcut-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.pwa-sheet .pwa-shortcut-actions button { margin: 0; }
.pwa-sheet .pwa-shortcut-choice { display: flex; width: 100%; justify-content: flex-start; text-align: left; }
@keyframes pwa-sheet-enter { from { transform: translateY(48px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media (max-width: 480px) { .pwa-sheet-header { padding: 16px 18px; } .pwa-sheet-body { padding: 18px 16px max(24px, env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .pwa-sheet[open] { animation: none; } .pwa-sheet input, .pwa-sheet input::before, .pwa-sheet button { transition: none; } }

html.pwa-booting, html.pwa-booting body { background: #09090b !important; }
html.pwa-booting body > :not(#pwaBootScreen):not(#authLockOverlay) { visibility: hidden; }
html.pwa-booting body::before { content: ''; position: fixed; inset: 0; background: #09090b; z-index: 9989; }
#pwaBootScreen { position: fixed; inset: 0; z-index: 9990; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; background: #09090b; color: white; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; text-align: center; padding: 24px; }
.pwa-boot-mark { position: relative; overflow: visible; font-family: 'Avenir Next', 'Segoe UI', sans-serif; font-size: 52px; font-weight: 400; line-height: normal; letter-spacing: normal; text-shadow: 0 0 3px rgba(255, 255, 255, .72), 0 0 18px rgba(0, 216, 127, .5), 0 0 42px rgba(0, 216, 127, .28); white-space: nowrap; }
.pwa-boot-mark::after { content: '△_△'; position: absolute; inset: 0; pointer-events: none; color: currentColor; -webkit-text-fill-color: currentColor; text-shadow: 0 0 10px rgba(255, 255, 255, .86), 0 0 32px rgba(0, 216, 127, .58), 0 0 78px rgba(0, 216, 127, .36), 0 0 132px rgba(0, 216, 127, .2); opacity: .34; transform: translateZ(0); will-change: opacity; animation: pwa-boot-glow 2.8s ease-in-out infinite; }
.pwa-boot-spinner { width: 34px; height: 34px; border: 3px solid #00d87f29; border-top-color: #00d87f; border-radius: 50%; animation: pwa-boot-spin .9s linear infinite; }
.pwa-boot-status { font-size: 13px; opacity: .75; max-width: 320px; }
.pwa-boot-recovery { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.pwa-boot-recovery[hidden] { display: none; }
.pwa-boot-recovery button { border: 1px solid #00d87f80; border-radius: 8px; background: transparent; color: white; padding: 8px 16px; font: inherit; cursor: pointer; }
.pwa-boot-recovery a { color: #00d87f; }
@keyframes pwa-boot-spin { to { transform: rotate(360deg); } }
@keyframes pwa-boot-glow { 0%, 100% { opacity: .28; } 50% { opacity: .62; } }
@media (prefers-reduced-motion: reduce) { .pwa-boot-mark::after, .pwa-boot-spinner { animation: none; } }

[data-meall-cockpit-footer] > .pwa-notification-thread strong { display: block; color: var(--sheet-text); font-size: 13px; font-weight: 600; }
.pwa-notification-thread small { display: block; margin-top: 3px; color: var(--sheet-muted); font-size: 11px; }

[data-meall-cockpit-footer] { container: meall-footer / inline-size; flex-wrap: nowrap; }
@container meall-footer (max-width: 520px) { [data-meall-footer-context] { display: none; } }

.pwa-settings-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--panel-border); }
.pwa-settings-link { min-width: 0; padding: 14px !important; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; text-align: left; white-space: normal; }
.pwa-settings-link span { font-size: 12px; font-weight: 400; color: var(--text-secondary); }
@media (max-width: 420px) { .pwa-settings-links { grid-template-columns: 1fr; } }

.pwa-share-preview { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 140px; overflow-y: auto; font-size: 13px; color: var(--sheet-muted); }
.pwa-share-field { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; font-size: 13px; font-weight: 600; }
.pwa-share-field textarea { width: 100%; padding: 12px; border: 1px solid var(--sheet-border); border-radius: 10px; background: var(--sheet-card); color: inherit; font: inherit; resize: vertical; }
.pwa-sheet button:disabled { opacity: 0.5; cursor: wait; }

.pwa-share-sheet .pwa-sheet-body { display: flex; flex-direction: column; gap: 16px; }
.pwa-share-previews { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: 12px; }
.pwa-share-file, .pwa-share-text { min-width: 0; overflow: hidden; border: 1px solid var(--sheet-border); border-radius: 16px; background: var(--sheet-card); }
.pwa-share-file-visual { height: 132px; display: flex; align-items: flex-start; justify-content: center; overflow: hidden; padding: 16px 22px 0; background: radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--sheet-accent) 12%, var(--sheet-card)), var(--sheet-card)); }
.pwa-share-file-visual:has(img) { align-items: center; padding: 14px 22px 18px; }
.pwa-share-file-visual img { width: 100%; height: 100%; object-fit: cover; border: 6px solid #fff; border-bottom-width: 14px; border-radius: 3px; background: #fff; transform: rotate(-4deg); box-shadow: 0 8px 18px #0003, 0 2px 5px #0002; }
.pwa-share-file:nth-child(even) .pwa-share-file-visual img { transform: rotate(3deg); }
.pwa-share-paper { width: 100%; height: 150px; padding: 14px; background: #fbfcf9; color: #314138; border-radius: 4px; transform: rotate(-3deg); box-shadow: 0 12px 30px #0002; overflow: hidden; }
.pwa-share-paper small { display: block; font-size: 8px; letter-spacing: .12em; color: #758277; }
.pwa-share-paper strong { display: block; font-size: 11px; margin: 12px 0; overflow-wrap: anywhere; }
.pwa-share-paper-lines i { display: block; height: 3px; margin: 9px 0; background: #dce1d9; }
.pwa-share-paper-lines i:nth-child(even) { width: 65%; }
.pwa-share-file-caption { padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.pwa-share-file-caption strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.pwa-share-file-caption small, .pwa-share-text small { color: var(--sheet-muted); font-size: 10px; }
.pwa-share-file-symbol { font-size: 48px; color: var(--sheet-muted); }
.pwa-share-text { padding: 14px; grid-column: 1 / -1; }
.pwa-share-text p { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 110px; overflow: auto; font-size: 13px; }
.pwa-share-carousel { display: grid; grid-template-columns: 28px minmax(0, 1fr) 28px; align-items: center; gap: 6px; min-width: 0; }
.pwa-share-sheet .pwa-share-carousel > button { margin: 0; padding: 0; width: 28px; min-height: 44px; border-radius: 10px; }
.pwa-share-destinations { display: flex; position: relative; gap: 12px; height: 184px; min-width: 0; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.pwa-share-destinations::-webkit-scrollbar { display: none; }
.pwa-share-sheet .pwa-share-carousel > button:disabled { cursor: default; }
.pwa-share-sandbox { flex: none; width: min(var(--share-card-width), 100%); height: 184px; display: flex; flex-direction: column; scroll-snap-align: start; min-width: 0; border: 1px solid var(--sheet-border); border-radius: 16px; overflow: hidden; }
.pwa-share-sandbox h3 { flex-shrink: 0; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; margin: 0; padding: 12px 14px; font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--sheet-border); }
.pwa-share-agents { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); align-content: start; gap: 8px; padding: 14px; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; }
.pwa-share-sheet button.pwa-share-agent { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 4px; background: none; border: 0; color: var(--sheet-text); cursor: pointer; font: inherit; }
.pwa-share-portrait { width: 56px; height: 56px; border-radius: 18px; background: var(--sheet-card); display: grid; place-items: center; font-size: 24px; outline: 2px solid transparent; outline-offset: 3px; transition: outline-color 140ms; }
.pwa-share-portrait .agent-avatar-media { width: 100%; height: 100%; border-radius: inherit; }
.pwa-share-agent[aria-pressed="true"] .pwa-share-portrait { outline-color: var(--sheet-accent); }
.pwa-share-agent:focus-visible { outline: 2px solid var(--sheet-accent); border-radius: 12px; }
.pwa-share-agent-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.pwa-share-sheet .pwa-share-field { margin: 0; }
.pwa-share-actions { display: flex; align-items: center; gap: 8px; position: sticky; bottom: 0; background: var(--sheet-bg); padding-top: 8px; }
.pwa-share-sheet .pwa-share-actions .pwa-sheet-button { margin: 0; flex-shrink: 0; }
.pwa-share-status { min-width: 0; flex: 1; margin: 0; font-size: 11px; color: var(--sheet-muted); line-height: 1.4; max-height: 44px; overflow: auto; opacity: 0; transition: opacity 160ms ease; }
.pwa-share-status.is-visible { opacity: 1; }
.pwa-share-notice { position: fixed; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 10001; width: max-content; max-width: calc(100% - 32px); display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: #202024; color: #fff; box-shadow: 0 8px 30px #0004; font-size: 13px; }
.pwa-share-notice button { margin: 0; border: 0; background: transparent; color: #00d87f; cursor: pointer; font: inherit; }
@media (prefers-reduced-motion: reduce) { .pwa-share-status, .pwa-share-portrait { transition: none; } }
