:root {
  --navy: #001b2a;
  --navy-2: #0b3550;
  --blue: #1e5aa8;
  --gold: #f2b705;
  --bg: #f3f6f8;
  --card: #fff;
  --text: #173249;
  --muted: #687b8b;
  --line: #dce5ed;
  --green: #168a50;
  --red: #c83b43;
  --amber: #a96c00;
  --violet: #6451a6;
  --shadow: 0 12px 30px rgba(0, 27, 42, 0.08);
  --radius: 18px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

[hidden] {
  display: none !important;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background: var(--navy);
  scroll-behavior: smooth;
  overflow-x: clip;
  width: 100%;
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  overscroll-behavior-y: none;
}

button, input, select {
  font: inherit;
}

.pwa-body {
  min-height: 100dvh;
  padding: calc(72px + var(--safe-top)) 0 calc(96px + var(--safe-bottom));
  background: linear-gradient(180deg, #eaf0f4 0, #f6f8fa 240px);
  width: 100%;
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pwa-skip {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: #fff;
  padding: 10px 14px;
  border-radius: 8px;
}

.pwa-skip:focus {
  top: 12px;
}

/* Topbar */
.pwa-topbar {
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  height: calc(64px + var(--safe-top));
  padding: calc(12px + var(--safe-top)) max(18px, env(safe-area-inset-right)) 10px max(18px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(120deg, var(--navy), #063654);
  box-shadow: 0 4px 18px rgba(0, 27, 42, 0.17);
}

.pwa-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
}

.pwa-brand img {
  display: block;
  width: 118px;
  height: 40px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.pwa-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.pwa-icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.pwa-icon-button svg {
  width: 22px;
}

.pwa-badge {
  position: absolute;
  right: -4px;
  top: -4px;
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 10px;
  color: var(--navy);
  background: var(--gold);
  font-size: 11px;
  font-weight: 800;
}

.pwa-online-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2fd477;
  box-shadow: 0 0 0 4px rgba(47, 212, 119, 0.14);
}

.pwa-online-dot.offline {
  background: #ff8b8f;
  box-shadow: 0 0 0 4px rgba(255, 139, 143, 0.14);
}

.pwa-connection {
  position: fixed;
  z-index: 100;
  top: calc(64px + var(--safe-top));
  left: 0;
  right: 0;
  padding: 7px 16px;
  display: flex;
  justify-content: center;
  gap: 10px;
  color: #fff;
  background: #a82f36;
  font-size: 13px;
}

.pwa-connection a {
  text-decoration: underline;
  font-weight: 700;
}

/* Obra Switcher */
.pwa-work-switcher {
  width: 100%;
  max-width: 900px;
  margin: 14px auto 0;
  padding: 0 16px;
  box-sizing: border-box;
}

.pwa-work-switcher > summary {
  list-style: none;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  color: #fff;
  background: linear-gradient(120deg, var(--navy), var(--navy-2));
  border-radius: 15px;
  box-shadow: var(--shadow);
  cursor: pointer;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

.pwa-work-switcher > summary::-webkit-details-marker {
  display: none;
}

.pwa-work-switcher summary > span:not(.pwa-work-icon),
.pwa-work-info {
  min-width: 0;
  overflow: hidden;
}

.pwa-work-switcher summary small {
  display: block;
  color: #9db3c4;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pwa-work-switcher summary strong {
  display: block;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  min-width: 0;
  max-width: 100%;
}

.pwa-work-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.pwa-work-icon svg {
  width: 22px;
}

.pwa-chevron {
  width: 20px;
  flex-shrink: 0;
}

.pwa-work-switcher[open] .pwa-chevron {
  transform: rotate(180deg);
}

.pwa-work-form {
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 0 15px 15px;
  box-sizing: border-box;
}

.pwa-work-form label,
.pwa-search label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.pwa-select-row,
.pwa-search > div {
  display: flex;
  gap: 8px;
}

.pwa-select-row select,
.pwa-search input {
  min-width: 0;
  flex: 1;
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid #c8d5df;
  border-radius: 11px;
  background: #fff;
}

.pwa-select-row button,
.pwa-search button,
.pwa-settings-card button {
  padding: 0 16px;
  border: 0;
  border-radius: 11px;
  color: var(--navy);
  background: var(--gold);
  font-weight: 800;
  flex-shrink: 0;
}

/* Main Content Layout */
.pwa-main {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 22px 16px 34px;
  box-sizing: border-box;
  min-width: 0;
}

.pwa-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 2px 18px;
  min-width: 0;
}

.pwa-welcome > div {
  min-width: 0;
  flex: 1;
}

.pwa-welcome small,
.pwa-eyebrow,
.pwa-kicker {
  color: #947000;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pwa-welcome h1,
.pwa-page-head h1 {
  margin: 2px 0 0;
  color: var(--navy);
  font-size: clamp(24px, 6.5vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  overflow-wrap: break-word;
  word-break: break-word;
}

.pwa-welcome p,
.pwa-page-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: break-word;
}

.pwa-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 16px;
  color: var(--navy);
  background: var(--gold);
  box-shadow: 0 6px 16px rgba(0, 27, 42, 0.14);
  font-weight: 800;
  flex-shrink: 0;
}

.pwa-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pwa-avatar.large {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  font-size: 26px;
}

/* Project Card */
.pwa-project-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  color: #fff;
  background: linear-gradient(125deg, var(--navy), #0e4669);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  box-sizing: border-box;
  min-width: 0;
}

.pwa-project-card:after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -60px;
  top: -80px;
  border: 24px solid rgba(242, 183, 5, 0.11);
  border-radius: 50%;
  pointer-events: none;
}

.pwa-project-card h2 {
  max-width: 78%;
  margin: 5px 0;
  color: #fff;
  font-size: 20px;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
  word-break: break-word;
}

.pwa-project-card p {
  max-width: 82%;
  margin: 0;
  color: #bed0dc;
  font-size: 13px;
  overflow-wrap: break-word;
}

.pwa-project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 17px;
}

.pwa-project-meta span {
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
  white-space: nowrap;
}

/* Section Headings */
.pwa-section {
  margin-top: 28px;
}

.pwa-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.pwa-section-head h2 {
  margin: 2px 0 0;
  color: var(--navy);
  font-size: 21px;
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
}

.pwa-sync-label {
  max-width: 140px;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
  flex-shrink: 0;
}

/* Module Grid */
.pwa-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.pwa-module-card {
  position: relative;
  min-height: 142px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 27, 42, 0.045);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.pwa-module-card:active {
  transform: scale(0.98);
}

.pwa-module-card > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.pwa-module-card small {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pwa-module-card strong {
  margin-top: 2px;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: break-word;
}

.pwa-module-card i {
  position: absolute;
  right: 14px;
  top: 17px;
  color: #8fa0ad;
  font-style: normal;
}

.pwa-module-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  font-weight: 900;
  flex-shrink: 0;
}

.is-rdo .pwa-module-icon,
.is-blue {
  color: #1e5aa8;
  background: #eaf3ff;
}

.is-inspection .pwa-module-icon,
.is-green {
  color: #168a50;
  background: #e9f8f0;
}

.is-form .pwa-module-icon,
.is-violet {
  color: #6451a6;
  background: #f0edff;
}

.is-stock .pwa-module-icon,
.is-amber {
  color: #a96c00;
  background: #fff6da;
}

/* Activity & List Items */
.pwa-activity-list,
.pwa-record-list,
.pwa-link-list,
.pwa-stock-list,
.pwa-notification-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 27, 42, 0.04);
  box-sizing: border-box;
}

.pwa-activity {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #edf1f4;
  min-width: 0;
}

.pwa-activity:last-child {
  border-bottom: 0;
}

.pwa-activity-mark {
  width: 7px;
  height: 36px;
  border-radius: 6px;
  background: var(--blue);
  flex-shrink: 0;
}

.pwa-activity span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
}

.pwa-activity small {
  color: #927000;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pwa-activity strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.pwa-activity em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  overflow-wrap: break-word;
}

.pwa-activity time {
  color: var(--muted);
  font-size: 12px;
  flex-shrink: 0;
}

/* Empty States */
.pwa-empty-inline,
.pwa-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 22px;
  color: var(--muted);
  text-align: center;
  box-sizing: border-box;
}

.pwa-empty-inline strong,
.pwa-empty-state h2 {
  color: var(--navy);
  overflow-wrap: break-word;
}

.pwa-empty-inline span,
.pwa-empty-state p {
  margin-top: 4px;
  font-size: 14px;
  overflow-wrap: break-word;
}

.pwa-empty-state {
  margin-top: 18px;
  border: 1px dashed #bacbd7;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
}

.pwa-empty-state.compact {
  margin: 0;
}

/* Page Heads & Primary Buttons */
.pwa-page-head {
  padding: 7px 2px 19px;
  min-width: 0;
}

.pwa-page-head.with-action {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.pwa-page-head.with-action > div {
  min-width: 0;
  flex: 1;
}

.pwa-primary-button {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 0 15px;
  border-radius: 12px;
  color: var(--navy);
  background: var(--gold);
  box-shadow: 0 6px 14px rgba(242, 183, 5, 0.2);
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Today Card */
.pwa-today-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 17px;
  color: #fff;
  background: linear-gradient(120deg, var(--navy), #0d4263);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  box-sizing: border-box;
  min-width: 0;
}

.pwa-today-card span {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.pwa-today-card small {
  color: #a8bdca;
  font-size: 12px;
}

.pwa-today-card strong {
  margin: 3px 0;
  font-size: 19px;
  overflow-wrap: break-word;
}

.pwa-today-card em {
  color: #d3dfe6;
  font-size: 12px;
  font-style: normal;
}

.pwa-today-card i {
  color: var(--gold);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  flex-shrink: 0;
}

.pwa-today-card.is-empty {
  color: var(--text);
  background: #fff;
  border: 1px dashed #afc1ce;
  box-shadow: none;
}

.pwa-today-card.is-empty small,
.pwa-today-card.is-empty em {
  color: var(--muted);
}

/* Filter Chips */
.pwa-filter-chips {
  display: flex;
  gap: 8px;
  margin: 18px -16px 13px;
  padding: 0 16px;
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.pwa-filter-chips::-webkit-scrollbar {
  display: none;
}

.pwa-filter-chips a {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.pwa-filter-chips a.active {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

/* Records List */
.pwa-record-list > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 15px;
  border-bottom: 1px solid #edf1f4;
  min-width: 0;
  box-sizing: border-box;
}

.pwa-record-list > a:last-child {
  border-bottom: 0;
}

.pwa-record-list > a > span:not(.pwa-status) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.pwa-record-list strong {
  font-size: 14px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.pwa-record-list em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  overflow-wrap: break-word;
}

.pwa-date-block {
  width: 45px !important;
  flex: none !important;
  align-items: center;
  padding: 6px;
  border-radius: 10px;
  background: #eef4f8;
}

.pwa-date-block b {
  font-size: 18px;
  line-height: 1;
}

.pwa-date-block small {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.pwa-status {
  flex: none;
  padding: 5px 8px;
  border-radius: 999px;
  color: #455b6b;
  background: #eef2f5;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.status-aprovado,
.status-aprovada,
.status-concluida,
.status-aprovado_responsavel,
.status-aprovado_contratante,
.status-entregue,
.status-finalizada {
  color: #087144;
  background: #e8f7ef;
}

.status-aguardando,
.status-pendente_aprovacao,
.status-aguardando_aprovacao,
.status-aguardando_contratante,
.status-em_separacao,
.status-separada {
  color: #835d00;
  background: #fff4cf;
}

.status-rejeitado,
.status-rejeitada,
.status-rejeitado_responsavel,
.status-rejeitado_contratante,
.status-cancelada,
.status-bloqueada {
  color: #a82f36;
  background: #ffedef;
}

.status-preenchimento,
.status-em_preenchimento,
.status-andamento,
.status-em_andamento,
.status-enviada {
  color: #185596;
  background: #e9f2ff;
}

/* Card Lists */
.pwa-card-list {
  display: grid;
  gap: 11px;
}

.pwa-list-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(0, 27, 42, 0.04);
  box-sizing: border-box;
  min-width: 0;
}

.pwa-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pwa-list-card h2 {
  margin: 12px 0 3px;
  color: var(--navy);
  font-size: 17px;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

.pwa-list-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: break-word;
}

.pwa-list-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid #edf1f4;
}

.pwa-list-card dt {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.pwa-list-card dd {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: break-word;
}

/* Search Box */
.pwa-search {
  margin-bottom: 13px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-sizing: border-box;
}

/* Info Grid (Almoxarifado, Obra) */
.pwa-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pwa-info-grid article {
  min-height: 92px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.pwa-info-grid small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pwa-info-grid strong {
  display: block;
  margin-top: 7px;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.25;
  overflow-wrap: break-word;
  word-break: break-word;
}

.pwa-info-grid.stock strong {
  font-size: 21px;
}

/* Stock List */
.pwa-stock-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 15px;
  border-bottom: 1px solid #edf1f4;
  min-width: 0;
  box-sizing: border-box;
}

.pwa-stock-list article:last-child {
  border-bottom: 0;
}

.pwa-stock-list article > span:first-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.pwa-stock-list small {
  color: var(--muted);
  font-size: 11px;
}

.pwa-stock-list strong {
  font-size: 14px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.pwa-stock-list em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.pwa-stock-number {
  text-align: right;
  flex-shrink: 0;
}

.pwa-stock-number strong {
  display: block;
  color: var(--navy);
  font-size: 18px;
}

.pwa-stock-number small {
  font-size: 10px;
  text-transform: uppercase;
}

/* Cover Card */
.pwa-cover-card {
  position: relative;
  height: 210px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy);
  box-shadow: var(--shadow);
  box-sizing: border-box;
}

.pwa-cover-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pwa-cover-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 35%, rgba(0, 27, 42, 0.87));
}

.pwa-cover-card.no-image {
  background: linear-gradient(135deg, var(--navy), #155078);
}

.pwa-cover-card > div {
  position: absolute;
  z-index: 1;
  left: 18px;
  bottom: 17px;
  right: 18px;
  color: #fff;
}

.pwa-cover-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.pwa-cover-card h2 {
  margin: 2px 0;
  color: #fff;
  font-size: 21px;
  overflow-wrap: break-word;
}

/* Link List */
.pwa-link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #edf1f4;
  font-weight: 700;
  min-width: 0;
  box-sizing: border-box;
}

.pwa-link-list a:last-child {
  border-bottom: 0;
}

.pwa-link-list i {
  color: var(--blue);
  font-style: normal;
  flex-shrink: 0;
}

/* Notification List */
.pwa-notification-list > a {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #edf1f4;
  min-width: 0;
  box-sizing: border-box;
}

.pwa-notification-list > a:last-child {
  border-bottom: 0;
}

.pwa-notification-list > a > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.pwa-notification-list small {
  color: var(--muted);
  font-size: 11px;
}

.pwa-notification-list strong {
  margin: 3px 0;
  font-size: 14px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.pwa-notification-list em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  overflow-wrap: break-word;
}

.pwa-notification-dot {
  width: 8px;
  height: 8px;
  margin-top: 18px;
  border-radius: 50%;
  background: #bcc8d1;
}

.pwa-notification-list a.unread {
  background: #f5f9fc;
}

.pwa-notification-list a.unread .pwa-notification-dot {
  background: var(--gold);
  box-shadow: 0 0 0 4px #fff5d5;
}

/* Profile */
.pwa-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0 7px;
  text-align: center;
}

.pwa-profile h1 {
  margin: 13px 0 0;
  color: var(--navy);
  font-size: 24px;
  overflow-wrap: break-word;
}

.pwa-profile p {
  margin: 2px;
  color: var(--muted);
  overflow-wrap: break-word;
}

.pwa-profile small {
  color: var(--muted);
  font-size: 12px;
}

.pwa-settings-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-sizing: border-box;
  min-width: 0;
}

.pwa-settings-card > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.pwa-settings-card strong {
  font-size: 14px;
  overflow-wrap: break-word;
}

.pwa-settings-card span {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: break-word;
}

.pwa-settings-card button {
  height: 40px;
  flex-shrink: 0;
}

.pwa-setting-value {
  display: grid !important;
  place-items: center;
  min-width: 44px;
  height: 34px;
  padding: 0 8px;
  border-radius: 9px;
  color: var(--navy) !important;
  background: #edf3f7;
  font-size: 11px !important;
  font-weight: 800;
  flex-shrink: 0;
}

.pwa-logout {
  margin-top: 12px;
}

.pwa-logout button {
  width: 100%;
  height: 48px;
  border: 1px solid #f1b4b7;
  border-radius: 13px;
  color: #a82f36;
  background: #fff;
  font-weight: 800;
}

/* Bottom Navigation */
.pwa-bottom-nav {
  position: fixed !important;
  z-index: 100;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  height: calc(72px + var(--safe-bottom));
  padding: 7px max(10px, env(safe-area-inset-right)) var(--safe-bottom) max(10px, env(safe-area-inset-left));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  border-top: 1px solid #d9e2e8;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -9px 26px rgba(0, 27, 42, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  touch-action: manipulation;
}

.pwa-bottom-nav a,
.pwa-bottom-nav button {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 2px;
  padding: 3px 2px;
  border: 0;
  color: #708391;
  background: transparent;
  font-size: 10px;
  min-width: 0;
  overflow: hidden;
}

.pwa-bottom-nav svg {
  width: 23px;
  height: 23px;
  flex-shrink: 0;
}

.pwa-bottom-nav span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.pwa-bottom-nav [aria-current="page"] {
  color: var(--navy);
  font-weight: 800;
}

.pwa-bottom-nav [aria-current="page"]:before {
  content: "";
  position: absolute;
  top: -8px;
  width: 26px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--gold);
}

.pwa-bottom-nav .pwa-quick-trigger {
  top: -23px;
  color: var(--navy);
  font-weight: 800;
}

.pwa-quick-trigger svg {
  width: 51px;
  height: 51px;
  padding: 14px;
  border: 5px solid #fff;
  border-radius: 18px;
  color: var(--navy);
  background: var(--gold);
  box-shadow: 0 8px 18px rgba(0, 27, 42, 0.2);
}

/* Quick Action Dialog */
.pwa-quick-dialog {
  width: min(560px, calc(100% - 20px));
  max-height: 80vh;
  margin: auto auto 8px;
  padding: 9px 18px 24px;
  border: 0;
  border-radius: 22px 22px 18px 18px;
  color: var(--text);
  background: #fff;
  box-sizing: border-box;
}

.pwa-quick-dialog::backdrop {
  background: rgba(0, 20, 32, 0.58);
  backdrop-filter: blur(2px);
}

.pwa-dialog-handle {
  width: 45px;
  height: 5px;
  margin: 2px auto 14px;
  border-radius: 4px;
  background: #d7e0e6;
}

.pwa-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pwa-dialog-head small {
  color: #947000;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.pwa-dialog-head h2 {
  margin: 2px 0 14px;
  color: var(--navy);
  font-size: 20px;
  overflow-wrap: break-word;
}

.pwa-dialog-head button {
  width: 37px;
  height: 37px;
  border: 0;
  border-radius: 11px;
  color: var(--muted);
  background: #edf2f5;
  font-size: 22px;
  flex-shrink: 0;
}

.pwa-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pwa-quick-grid a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.pwa-quick-grid a > span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-weight: 900;
  flex-shrink: 0;
}

.pwa-quick-grid strong {
  align-self: end;
  font-size: 13px;
}

.pwa-quick-grid small {
  color: var(--muted);
  font-size: 11px;
}

.pwa-quick-grid strong,
.pwa-quick-grid small {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

@media (max-width: 479px) {
  .pwa-quick-grid a {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    row-gap: 4px;
  }

  .pwa-quick-grid a > span {
    grid-row: auto;
    margin-bottom: 4px;
  }

  .pwa-quick-grid strong {
    align-self: start;
  }
}

@media (max-width: 359px) {
  .pwa-quick-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pwa-quick-grid a {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .pwa-quick-grid a > span {
    grid-row: span 2;
    margin-bottom: 0;
  }
}

/* Toast */
.pwa-toast {
  position: fixed;
  z-index: 150;
  left: 50%;
  bottom: calc(82px + var(--safe-bottom));
  transform: translateX(-50%);
  width: min(480px, calc(100% - 28px));
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 13px;
  color: #fff;
  background: var(--navy);
  box-shadow: 0 12px 30px rgba(0, 27, 42, 0.24);
  font-size: 13px;
  box-sizing: border-box;
}

.pwa-toast button {
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  color: var(--navy);
  background: var(--gold);
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

/* Offline Page */
.pwa-offline-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #fff;
  background: radial-gradient(circle at 80% 10%, #155078 0, transparent 32%), var(--navy);
  box-sizing: border-box;
}

.pwa-offline-page main {
  width: min(520px, 100%);
  min-width: 0;
}

.pwa-offline-page img {
  width: 150px;
  margin-bottom: 46px;
  max-width: 100%;
}

.pwa-offline-page span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.pwa-offline-page h1 {
  margin: 6px 0 13px;
  color: #fff;
  font-size: clamp(31px, 10vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  overflow-wrap: break-word;
}

.pwa-offline-page p {
  color: #c7d7e1;
  overflow-wrap: break-word;
}

.pwa-offline-page button {
  height: 48px;
  margin-top: 12px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  color: var(--navy);
  background: var(--gold);
  font-weight: 800;
}

/* Responsive Breakpoints */
@media (min-width: 700px) {
  .pwa-main {
    padding-left: 24px;
    padding-right: 24px;
  }
  .pwa-module-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .pwa-card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pwa-info-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .pwa-bottom-nav {
    left: 50%;
    right: auto;
    width: 620px;
    transform: translate3d(-50%, 0, 0);
    -webkit-transform: translate3d(-50%, 0, 0);
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 20px 20px 0 0;
  }
  .pwa-filter-chips {
    margin-left: 0;
    margin-right: 0;
    padding: 0;
  }
  .pwa-quick-dialog {
    margin: auto;
  }
  .pwa-project-card {
    padding: 25px;
  }
  .pwa-project-card h2 {
    font-size: 27px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Public install and authentication */
.pwa-public-body {
  min-height: 100dvh;
  color: #fff;
  background:
    radial-gradient(circle at 88% 4%, rgba(30, 103, 153, 0.35), transparent 28rem),
    linear-gradient(145deg, #001b2a 0%, #062b41 52%, #001824 100%);
}

.pwa-public-body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.14;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 74%);
}

.pwa-public-header,
.pwa-public-main,
.pwa-public-footer {
  position: relative;
  z-index: 1;
}

.pwa-public-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 36px));
  min-height: calc(76px + var(--safe-top));
  margin: 0 auto;
  padding-top: var(--safe-top);
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.pwa-public-brand img {
  display: block;
  width: 138px;
  max-width: 100%;
}

.pwa-public-header nav a {
  display: inline-grid;
  min-height: 42px;
  padding: 0 17px;
  place-items: center;
  color: #dce9f1;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 11px;
  font-size: 13px;
  font-weight: 800;
}

.pwa-public-main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.pwa-public-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 36px));
  margin: 32px auto 0;
  padding: 24px 0 calc(24px + var(--safe-bottom));
  color: #94acbb;
  border-top: 1px solid rgba(255,255,255,.1);
}

.pwa-public-footer span {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pwa-public-eyebrow {
  display: block;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.pwa-auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .75fr);
  gap: clamp(42px, 8vw, 112px);
  align-items: center;
  min-height: calc(100dvh - 165px);
  padding: 54px 0 42px;
}

.pwa-auth-intro h1,
.pwa-install-copy h1 {
  max-width: 720px;
  margin: 12px 0 20px;
  color: #fff;
  font-size: clamp(44px, 6.1vw, 78px);
  line-height: .97;
  letter-spacing: -.055em;
}

.pwa-auth-intro h1 em,
.pwa-install-copy h1 em {
  color: var(--gold);
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
}

.pwa-auth-intro > p,
.pwa-install-copy > p {
  max-width: 610px;
  color: #b7cad6;
  font-size: 17px;
}

.pwa-auth-intro ul {
  display: grid;
  gap: 13px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.pwa-auth-intro li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #d6e2e9;
  font-size: 14px;
  font-weight: 700;
}

.pwa-auth-intro li span {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  color: var(--gold);
  border: 1px solid rgba(242,183,5,.45);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
}

.pwa-auth-card {
  padding: clamp(24px, 4vw, 38px);
  color: var(--text);
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 24px;
  box-shadow: 0 32px 90px rgba(0, 8, 14, .36);
}

.pwa-auth-card-head {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.pwa-auth-icon {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  overflow: hidden;
  background: var(--navy);
  border-radius: 16px;
}

.pwa-auth-icon img { width: 100%; height: 100%; object-fit: cover; }
.pwa-auth-card-head div > span { color: var(--blue); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.pwa-auth-card-head h2 { margin: 2px 0; color: var(--navy); font-size: 25px; letter-spacing: -.03em; }
.pwa-auth-card-head p { margin: 0; color: var(--muted); font-size: 13px; }

.pwa-auth-form {
  display: grid;
  margin-top: 24px;
}

.pwa-auth-form > label:not(.pwa-auth-remember) {
  margin: 14px 0 7px;
  color: #304d61;
  font-size: 12px;
  font-weight: 850;
}

.pwa-auth-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 13px;
  background: #f5f8fa;
  border: 1px solid #cad7df;
  border-radius: 12px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.pwa-auth-field:focus-within {
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(30,90,168,.11);
}

.pwa-auth-field > svg { width: 20px; flex: 0 0 20px; color: #688397; }
.pwa-auth-field input { width: 100%; min-width: 0; height: 49px; padding: 0; color: var(--navy); background: transparent; border: 0; outline: 0; }
.pwa-auth-field button { display: grid; width: 38px; height: 38px; padding: 8px; place-items: center; color: #627c8f; background: transparent; border: 0; border-radius: 8px; cursor: pointer; }
.pwa-auth-field button svg { width: 20px; }
.pwa-auth-field-error { margin-top: 5px; color: var(--red); font-size: 11px; font-weight: 700; }

.pwa-auth-errors {
  padding: 11px 13px;
  color: #8d242b;
  background: #fff0f1;
  border: 1px solid #efc4c7;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
}

.pwa-auth-errors ul { margin: 0; padding-left: 18px; }
.pwa-auth-remember { display: flex; align-items: center; gap: 9px; margin: 17px 0; color: #526a7b; font-size: 12px; cursor: pointer; }
.pwa-auth-remember input { width: 18px; height: 18px; accent-color: var(--blue); }

.pwa-auth-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 53px;
  padding: 0 17px 0 20px;
  color: #fff;
  background: linear-gradient(120deg, var(--blue), #123e72);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 13px 24px rgba(30,90,168,.24);
  font-weight: 850;
  cursor: pointer;
}

.pwa-auth-submit svg { width: 21px; }
.pwa-auth-install { display: flex; justify-content: center; gap: 5px; margin-top: 21px; color: var(--muted); font-size: 12px; }
.pwa-auth-install a { color: var(--blue); font-weight: 850; }
.pwa-auth-security { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 20px -8px -10px; padding-top: 15px; color: #718594; border-top: 1px solid var(--line); font-size: 10px; text-align: center; }
.pwa-auth-security svg { width: 17px; flex: 0 0 17px; color: var(--green); }

.pwa-install-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(350px, .7fr);
  gap: clamp(36px, 8vw, 110px);
  align-items: center;
  min-height: 680px;
  padding: 64px 0;
}

.pwa-install-copy h1 { font-size: clamp(46px, 6.4vw, 82px); }
.pwa-install-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.pwa-install-actions button,
.pwa-install-final button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px;
  color: var(--navy);
  background: var(--gold);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 16px 35px rgba(242,183,5,.18);
  font-weight: 900;
  cursor: pointer;
}

.pwa-install-actions button svg { width: 21px; }
.pwa-install-actions > a { display: inline-grid; min-height: 54px; padding: 0 21px; place-items: center; color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; font-weight: 800; }
.pwa-install-help { min-height: 40px; margin-top: 13px !important; color: #91aaba !important; font-size: 12px !important; }
.pwa-install-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; max-width: 620px; margin-top: 25px; overflow: hidden; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); border-radius: 13px; }
.pwa-install-trust span { display: grid; gap: 2px; padding: 14px; background: rgba(0,27,42,.55); }
.pwa-install-trust b { color: #fff; font-size: 12px; }
.pwa-install-trust small { color: #8fa9b8; font-size: 9px; }

.pwa-phone-stage { position: relative; display: grid; min-height: 540px; place-items: center; }
.pwa-phone-glow { position: absolute; width: 380px; height: 380px; background: rgba(242,183,5,.15); border-radius: 50%; filter: blur(45px); }
.pwa-phone { position: relative; width: 278px; padding: 10px; background: #091722; border: 1px solid rgba(255,255,255,.24); border-radius: 38px; box-shadow: 0 35px 90px rgba(0,0,0,.45); transform: rotate(3deg); }
.pwa-phone-speaker { position: absolute; top: 17px; left: 50%; z-index: 2; width: 64px; height: 6px; background: #071018; border-radius: 8px; transform: translateX(-50%); }
.pwa-phone-screen { min-height: 520px; padding: 35px 18px 20px; color: var(--text); background: linear-gradient(160deg, #eef3f6, #fff); border-radius: 30px; }
.pwa-phone-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.pwa-phone-top img { width: 92px; filter: brightness(0) saturate(100%) invert(13%) sepia(34%) saturate(1350%) hue-rotate(158deg); }
.pwa-phone-top span { width: 30px; height: 30px; background: #dfe8ed; border-radius: 50%; }
.pwa-phone-screen > small { color: #708491; font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.pwa-phone-screen h2 { margin: 5px 0 2px; color: var(--navy); font-size: 20px; }
.pwa-phone-screen > p { margin: 0; color: var(--muted); font-size: 10px; }
.pwa-phone-progress { height: 7px; margin: 18px 0; overflow: hidden; background: #d8e3e9; border-radius: 8px; }
.pwa-phone-progress i { display: block; width: 68%; height: 100%; background: var(--gold); }
.pwa-phone-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.pwa-phone-stats span { display: grid; padding: 12px; background: #fff; border: 1px solid #dde7ec; border-radius: 12px; box-shadow: 0 8px 18px rgba(0,27,42,.05); }
.pwa-phone-stats b { color: var(--navy); font-size: 15px; }
.pwa-phone-stats small { color: var(--muted); font-size: 8px; }
.pwa-phone-list { display: grid; gap: 9px; margin-top: 14px; }
.pwa-phone-list span { display: flex; align-items: center; gap: 10px; padding: 10px; background: #fff; border-radius: 11px; }
.pwa-phone-list i { display: grid; width: 28px; height: 28px; place-items: center; color: #fff; background: var(--blue); border-radius: 8px; font-size: 9px; font-style: normal; }
.pwa-phone-list span:nth-child(2) i { background: var(--green); }
.pwa-phone-list span:nth-child(3) i { color: var(--navy); background: var(--gold); }
.pwa-phone-list b { color: #29475c; font-size: 10px; }

.pwa-install-steps { padding: 65px clamp(20px, 5vw, 58px); color: var(--text); background: #f4f7f9; border-radius: 28px; }
.pwa-install-section-head { max-width: 620px; margin-bottom: 30px; }
.pwa-install-section-head h2 { margin: 5px 0; color: var(--navy); font-size: clamp(31px, 4vw, 45px); letter-spacing: -.045em; }
.pwa-install-section-head p { margin: 0; color: var(--muted); }
.pwa-install-step-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pwa-install-step-grid article { display: flex; gap: 17px; padding: 25px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.pwa-platform { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; color: #fff; background: var(--green); border-radius: 14px; font-weight: 950; }
.pwa-platform.is-apple { background: var(--navy); }
.pwa-install-step-grid small { color: var(--blue); font-size: 9px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.pwa-install-step-grid h3 { margin: 4px 0 11px; color: var(--navy); font-size: 19px; }
.pwa-install-step-grid ol { display: grid; gap: 7px; margin: 0; padding-left: 18px; color: var(--muted); font-size: 12px; }

.pwa-install-capabilities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; padding: 58px 0; }
.pwa-install-capabilities article { padding: 24px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 17px; }
.pwa-install-capabilities svg { width: 30px; color: var(--gold); }
.pwa-install-capabilities h3 { margin: 15px 0 7px; color: #fff; font-size: 17px; }
.pwa-install-capabilities p { margin: 0; color: #9fb4c1; font-size: 12px; }
.pwa-install-final { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 34px; color: var(--text); background: #fff; border-radius: 20px; }
.pwa-install-final span { color: var(--blue); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.pwa-install-final h2 { margin: 4px 0 0; color: var(--navy); font-size: clamp(21px, 3vw, 30px); }

/* Formulários privados ficam cifrados no IndexedDB, nunca no Cache Storage. */
.pwa-local-draft-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; padding: 11px 13px; border: 1px solid #c9dbe7; border-radius: 10px; color: #234760; background: #f0f7fb; font: 600 13px/1.35 'Segoe UI', Arial, sans-serif; }
.pwa-local-draft-status[hidden] { display: none; }
.pwa-local-draft-status button { border: 0; background: transparent; color: #a82f36; font: inherit; cursor: pointer; }
.pwa-offline-preparation { margin: -6px 0 18px; padding: 10px 13px; border: 1px solid #bedbcf; border-radius: 10px; color: #145342; background: #effaf5; font-size: 12px; font-weight: 700; }
.pwa-offline-page { display: block; }
.pwa-offline-page .pwa-offline-shell { width: min(760px, 100%); margin: 0 auto; }
.pwa-offline-shell header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.pwa-offline-shell header img { width: 130px; margin: 0; }
.pwa-offline-intro { max-width: 620px; }
.pwa-offline-page [data-offline-root] > h1 { font-size: clamp(27px, 7vw, 39px); }
.pwa-offline-page [data-offline-root] > h2 { margin: 28px 0 12px; font-size: 18px; }
.pwa-offline-editor { overflow: hidden; margin-top: 20px; padding: 18px; border-radius: 18px; color: #17354a; background: #fff; }
.pwa-offline-editor form { display: grid; gap: 14px; }
.pwa-offline-editor fieldset { min-width: 0; border: 0; padding: 0; }
.pwa-offline-editor details, .pwa-offline-editor [data-qci-question], .pwa-offline-editor .rdo-item-form { margin: 10px 0; padding: 14px; border: 1px solid #dbe5eb; border-radius: 12px; background: #f9fbfc; }
.pwa-offline-editor summary { cursor: pointer; font-weight: 800; }
.pwa-offline-editor label { display: grid; gap: 6px; margin: 10px 0; font-size: 13px; font-weight: 700; }
.pwa-offline-editor label:has(input[type=checkbox]), .pwa-offline-editor label:has(input[type=radio]) { display: flex; align-items: center; }
.pwa-offline-editor input:not([type=checkbox]):not([type=radio]):not([type=hidden]), .pwa-offline-editor textarea, .pwa-offline-editor select { width: 100%; min-height: 42px; box-sizing: border-box; padding: 9px 10px; border: 1px solid #b7cad5; border-radius: 8px; color: #17354a; background: #fff; font: inherit; }
.pwa-offline-editor input[type=checkbox], .pwa-offline-editor input[type=radio] { width: 18px; height: 18px; flex: 0 0 auto; }
.pwa-offline-editor [data-qci-details] { display: block !important; }
.pwa-offline-editor .rdo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.pwa-offline-editor .qci-question-copy, .pwa-offline-editor .wf-slim-question-copy { display: grid; gap: 4px; font-weight: 800; }
.pwa-offline-editor p, .pwa-offline-editor small { color: #36576c; }
.pwa-offline-editor span { color: inherit; font-size: inherit; font-weight: inherit; text-transform: none; letter-spacing: normal; }
.pwa-offline-editor .qci-item-row, .pwa-offline-editor .rdo-item-topo { font-weight: 800; }
.pwa-offline-editor .pwa-offline-file-note { display: block; padding: 8px; color: #895f11; background: #fff5da; border-radius: 8px; }
.pwa-offline-page .pwa-offline-save, .pwa-offline-page .pwa-offline-retry { cursor: pointer; }
.pwa-offline-actions { position: sticky; bottom: 0; z-index: 2; margin-top: 12px; padding: 10px; border-radius: 12px; background: #163b54; }
.pwa-offline-actions p { margin: 8px 0 0; font-size: 12px; }
.pwa-offline-list { display: grid; gap: 8px; }
.pwa-offline-list a { display: block; padding: 13px; border: 1px solid #4b7088; border-radius: 10px; color: #fff; text-decoration: none; background: #153c55; }
.pwa-local-rdos { margin: 20px 0; padding: 18px; border: 1px solid #c9dbe7; border-radius: 18px; background: #fff; }
.pwa-local-rdos[hidden] { display: none; }
.pwa-local-rdos h2 { margin: 0 0 6px; font-size: 19px; }
.pwa-local-rdos p { margin: 0 0 13px; color: #537184; font-size: 13px; }
.pwa-local-rdos [data-pwa-rdo-local-list] { display: grid; gap: 10px; }
.pwa-local-rdo-card { display: grid; gap: 5px; padding: 13px; border: 1px solid #dce6eb; border-radius: 12px; background: #f7fafb; }
.pwa-local-rdo-card strong { color: #092d42; font-size: 15px; }
.pwa-local-rdo-card span { color: #47687c; font-size: 12px; }
.pwa-local-rdo-card a { color: #075c85; font-size: 13px; font-weight: 800; text-decoration: underline; }

@media (max-width: 820px) {
  .pwa-public-header,
  .pwa-public-main,
  .pwa-public-footer { width: min(100% - 28px, 620px); }
  .pwa-auth-shell,
  .pwa-install-hero { grid-template-columns: 1fr; }
  .pwa-auth-shell { gap: 36px; padding-top: 38px; }
  .pwa-auth-intro h1,
  .pwa-install-copy h1 { font-size: clamp(42px, 13vw, 66px); }
  .pwa-auth-intro ul { display: none; }
  .pwa-install-hero { padding-top: 44px; }
  .pwa-phone-stage { min-height: 510px; }
  .pwa-install-step-grid { grid-template-columns: 1fr; }
  .pwa-install-capabilities { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .pwa-public-header { min-height: calc(67px + var(--safe-top)); }
  .pwa-public-brand img { width: 115px; }
  .pwa-public-header nav a { min-height: 38px; padding: 0 13px; font-size: 11px; }
  .pwa-auth-shell { min-height: auto; padding: 34px 0 16px; }
  .pwa-auth-intro > p,
  .pwa-install-copy > p { font-size: 15px; }
  .pwa-auth-card { margin: 0 -2px; border-radius: 19px; }
  .pwa-auth-card-head h2 { font-size: 22px; }
  .pwa-auth-install { flex-direction: column; align-items: center; }
  .pwa-public-footer { align-items: flex-start; flex-direction: column; gap: 4px; }
  .pwa-install-actions { display: grid; }
  .pwa-install-actions button,
  .pwa-install-actions > a { width: 100%; }
  .pwa-install-trust { grid-template-columns: 1fr; }
  .pwa-phone-stage { min-height: 480px; }
  .pwa-phone { width: 245px; }
  .pwa-phone-screen { min-height: 460px; }
  .pwa-install-steps { margin: 0 -7px; padding: 38px 18px; border-radius: 21px; }
  .pwa-install-step-grid article { padding: 19px; }
  .pwa-install-final { align-items: stretch; flex-direction: column; padding: 25px; }
}
