/* CMD Web 8206: PWA/install shell; existing attachment viewer preserved. */
.cmd-pwa-viewer-8205,
.cmd-pwa-install-dialog-8205 {
  border: 0;
  padding: 0;
  color: #132238;
  background: transparent;
}

.cmd-pwa-viewer-8205::backdrop,
.cmd-pwa-install-dialog-8205::backdrop {
  background: rgba(9, 22, 40, .72);
  backdrop-filter: blur(3px);
}

.cmd-pwa-viewer-8205 {
  width: min(1120px, 96vw);
  height: min(900px, 94dvh);
  max-width: none;
  max-height: none;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(6, 24, 52, .34);
}

.cmd-pwa-viewer-card-8205 {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  background: #f6f9fd;
}

.cmd-pwa-viewer-head-8205 {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #d9e4f1;
  background: #fff;
}

.cmd-pwa-viewer-head-8205 strong,
.cmd-pwa-viewer-head-8205 small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd-pwa-viewer-head-8205 strong { font-size: 16px; }
.cmd-pwa-viewer-head-8205 small { margin-top: 2px; color: #607089; }

.cmd-pwa-viewer-brand-8205,
.cmd-pwa-install-logo-8205 {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #2a78dc, #0e3e78);
  font-weight: 900;
  letter-spacing: -.04em;
  box-shadow: 0 8px 22px rgba(31, 99, 181, .24);
}
.cmd-pwa-viewer-brand-8205 { width: 42px; height: 42px; border-radius: 12px; font-size: 14px; }
.cmd-pwa-install-logo-8205 { width: 82px; height: 82px; margin: 0 auto; border-radius: 22px; font-size: 26px; }

.cmd-pwa-icon-button-8205 {
  width: 44px;
  height: 44px;
  border: 1px solid #d3dfec;
  border-radius: 12px;
  background: #fff;
  color: #223650;
  font-size: 18px;
  cursor: pointer;
}

.cmd-pwa-viewer-body-8205 {
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: auto;
  background: #172231;
  overscroll-behavior: contain;
}
.cmd-pwa-preview-image-8205 { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.cmd-pwa-preview-pdf-8205 { width: 100%; height: 100%; border: 0; background: #fff; }

.cmd-pwa-loader-8205,
.cmd-pwa-unsupported-8205 { max-width: 520px; padding: 28px; color: #fff; text-align: center; }
.cmd-pwa-loader-8205 span { display: block; width: 36px; height: 36px; margin: 0 auto 12px; border: 4px solid rgba(255,255,255,.25); border-top-color: #fff; border-radius: 50%; animation: cmdPwaSpin8205 .8s linear infinite; }
@keyframes cmdPwaSpin8205 { to { transform: rotate(360deg); } }
.cmd-pwa-file-mark-8205 { display: inline-grid; place-items: center; min-width: 82px; height: 96px; padding: 0 12px; border: 2px solid rgba(255,255,255,.6); border-radius: 12px; font-weight: 900; text-transform: uppercase; }
.cmd-pwa-unsupported-8205 h3 { margin: 18px 0 8px; }
.cmd-pwa-unsupported-8205 p { margin: 0; color: #d7e1ec; line-height: 1.55; }

.cmd-pwa-viewer-actions-8205 {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid #d9e4f1;
  background: #fff;
}
.cmd-pwa-viewer-actions-8205 .btn { text-decoration: none; }
body.cmd-pwa-preview-open-8205 { overflow: hidden !important; }

.cmd-pwa-install-dialog-8205 { width: min(480px, calc(100vw - 28px)); border-radius: 20px; box-shadow: 0 28px 80px rgba(6, 24, 52, .34); }
.cmd-pwa-install-card-8205 { padding: 28px; text-align: center; background: #fff; border-radius: 20px; }
.cmd-pwa-install-card-8205 h3 { margin: 18px 0 8px; font-size: 22px; }
.cmd-pwa-install-card-8205 p { margin: 0; color: #52647c; line-height: 1.6; }
.cmd-pwa-install-actions-8205 { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.cmd-pwa-install-actions-8205 .btn { min-height: 44px; padding: 10px 14px; border: 1px solid #c9d8e8; border-radius: 11px; background: #fff; color: #17304d; font: inherit; font-weight: 800; }
.cmd-pwa-install-actions-8205 .btn.primary { border-color: #1f63b5; background: #1f63b5; color: #fff; }
.cmd-pwa-install-actions-8205 a { display: grid; place-items: center; text-decoration: none; }
.cmd-pwa-standalone-8205 [data-cmd-install-8205] { display: none !important; }

.cmd-pwa-update-8205 { position: fixed; z-index: 30000; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid #b9d5f4; border-radius: 14px; background: #fff; color: #17304d; box-shadow: 0 16px 40px rgba(10, 35, 67, .22); }
.cmd-pwa-update-8205 button { border: 0; border-radius: 9px; padding: 9px 12px; background: #1f63b5; color: #fff; font-weight: 800; cursor: pointer; }

.cmd-install-page-8205 { min-height: 100dvh; margin: 0; display: grid; place-items: center; padding: max(24px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom)); box-sizing: border-box; background: radial-gradient(circle at 50% 0, #e6f2ff, #f5f8fc 46%, #edf2f8); color: #122238; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.cmd-install-shell-8205 { width: min(680px, 100%); padding: clamp(24px, 6vw, 48px); box-sizing: border-box; border: 1px solid #d7e3f0; border-radius: 28px; background: rgba(255,255,255,.94); text-align: center; box-shadow: 0 28px 80px rgba(22, 55, 95, .16); }
.cmd-install-shell-8205 .cmd-pwa-install-logo-8205 { width: 104px; height: 104px; border-radius: 28px; font-size: 32px; }
.cmd-install-shell-8205 h1 { margin: 24px 0 8px; font-size: clamp(28px, 7vw, 42px); letter-spacing: -.04em; }
.cmd-install-shell-8205 > p { margin: 0 auto; max-width: 480px; color: #52647c; line-height: 1.6; }
.cmd-install-primary-actions-8205 { display: grid; gap: 10px; margin-top: 26px; }
.cmd-install-primary-actions-8205 button { min-height: 50px; border-radius: 14px; font: inherit; font-weight: 800; cursor: pointer; }
#cmdInstallPrimary8205 { border: 0; color: #fff; background: #1f63b5; }
#cmdInstallOpen8205 { border: 1px solid #c9d8e8; color: #17304d; background: #fff; }
#cmdInstallHint8205 { margin-top: 18px; padding: 14px; border-radius: 14px; background: #edf5ff; color: #35516f; font-size: 14px; line-height: 1.55; }
.cmd-install-diagnostics-8205,
.cmd-install-browser-guides-8205 { margin-top: 22px; text-align: left; }
.cmd-install-section-head-8205 { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; justify-content: space-between; }
.cmd-install-section-head-8205 h2,
.cmd-install-browser-guides-8205 h2 { margin: 0; color: #17304d; font-size: 18px; }
#cmdInstallBrowser8205 { color: #607089; font-size: 13px; }
#cmdInstallStatus8205 { margin: 10px 0 0; padding: 12px 14px; border: 1px solid #bfd7ef; border-radius: 12px; background: #edf6ff; color: #264d74; font-size: 14px; line-height: 1.5; }
#cmdInstallStatus8205[data-state="installed"],
#cmdInstallStatus8205[data-state="ready"],
#cmdInstallStatus8205[data-state="accepted"] { border-color: #abd9bf; background: #edf9f2; color: #17623a; }
#cmdInstallStatus8205[data-state="blocked"] { border-color: #f1c4b9; background: #fff3f0; color: #8e341f; }
.cmd-install-diagnostics-8205 details { margin-top: 10px; border: 1px solid #d7e3f0; border-radius: 12px; background: #fff; }
.cmd-install-diagnostics-8205 summary { padding: 12px 14px; color: #274869; font-size: 14px; font-weight: 800; cursor: pointer; }
#cmdInstallChecks8205 { display: grid; gap: 8px; margin: 0; padding: 0 14px 14px; list-style: none; }
#cmdInstallChecks8205 li { display: flex; gap: 12px; justify-content: space-between; padding-top: 8px; border-top: 1px solid #e5edf5; color: #243c58; font-size: 14px; }
#cmdInstallChecks8205 li small { color: #718096; font-size: 13px; }
#cmdInstallChecks8205 li[data-state="ready"] small { color: #177245; }
#cmdInstallChecks8205 li[data-state="attention"] small { color: #9a5b17; }
.cmd-install-browser-guides-8205 { display: grid; gap: 10px; }
.cmd-install-browser-guides-8205 article { display: grid; gap: 4px; padding: 13px 14px; border: 1px solid #d7e3f0; border-radius: 13px; background: #fff; color: #52647c; font-size: 14px; line-height: 1.5; }
.cmd-install-browser-guides-8205 article strong { color: #17304d; }
.cmd-install-browser-guides-8205 article.is-current { border-color: #5c9de6; background: #f0f7ff; box-shadow: 0 0 0 2px rgba(31,99,181,.08); }
.cmd-install-origin-8205 { display: block; margin-top: 14px; color: #718096; font-size: 12px; }

@media (max-width: 700px) {
  .cmd-pwa-viewer-8205 { width: 100vw; height: 100dvh; margin: 0; border-radius: 0; }
  .cmd-pwa-viewer-head-8205 { padding: calc(8px + env(safe-area-inset-top)) 10px 8px; gap: 8px; }
  .cmd-pwa-viewer-brand-8205 { width: 38px; height: 38px; border-radius: 10px; font-size: 13px; }
  .cmd-pwa-icon-button-8205 { width: 40px; height: 40px; }
  .cmd-pwa-viewer-actions-8205 { display: grid; grid-template-columns: 1fr 1fr; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
  .cmd-pwa-viewer-actions-8205 #cmdPwaViewerBack8205 { grid-column: 1 / -1; min-height: 44px; }
  .cmd-pwa-viewer-actions-8205 .btn { display: grid; place-items: center; min-height: 40px; padding: 8px; }
  .cmd-pwa-install-card-8205 { padding: 24px 18px; }
  .cmd-pwa-update-8205 { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  .cmd-pwa-loader-8205 span { animation-duration: 1.8s; }
}
