:root {
  --bg: #eef6f5;
  --ink: #132536;
  --muted: #637589;
  --line: rgba(22, 45, 67, 0.1);
  --panel: rgba(255, 255, 255, 0.94);
  --primary: #0b376d;
  --primary-2: #0b6b7a;
  --teal: #16a29a;
  --orange: #f59a23;
  --soft-orange: #fff1dd;
  --soft-blue: #eaf2ff;
  --soft-teal: #e8fbf8;
  --soft-red: #fff0f0;
  --shadow: 0 18px 60px rgba(4, 40, 70, 0.18);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(circle at top left, #c9f7ed 0, transparent 34%), radial-gradient(circle at top right, #ffe5bd 0, transparent 31%), linear-gradient(135deg, #edf8f7 0%, #e9f1fb 42%, #fff8ee 100%);
  color: var(--ink);
}

body {
  min-height: 100vh;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.desktop-bg {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(120deg, rgba(255, 255, 255, 0.55) 0, transparent 36%), radial-gradient(circle at 50% 92%, rgba(11, 107, 122, 0.18), transparent 34%);
  pointer-events: none;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.phone-frame {
  width: min(100%, 430px);
  height: min(920px, calc(100vh - 48px));
  min-height: 720px;
  background: linear-gradient(180deg, #f8fffe 0%, #edf6f5 100%);
  border: 12px solid #0a1320;
  border-radius: 48px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.top-status {
  height: 32px;
  padding: 8px 26px 0;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 800;
  color: #0a1320;
  letter-spacing: 0.02em;
}

.status-icons {
  letter-spacing: 2px;
  font-size: 8px;
  padding-top: 3px;
}

.app-header {
  padding: 10px 20px 18px;
  background: linear-gradient(160deg, #0b376d 0%, #0b6b7a 58%, #13a190 100%);
  color: #fff;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
  box-shadow: 0 10px 30px rgba(9, 67, 98, 0.24);
  position: relative;
  z-index: 20;
  transition: padding 0.26s ease, border-radius 0.26s ease, box-shadow 0.26s ease, background 0.26s ease;
}

.app-header.is-compact {
  padding: 8px 20px 10px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  box-shadow: 0 8px 24px rgba(9, 67, 98, 0.2);
}

.mygov-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  transition: opacity 0.2s ease, max-height 0.26s ease, margin 0.26s ease, transform 0.26s ease;
  overflow: hidden;
  max-height: 44px;
}

.app-header.is-compact .mygov-strip {
  opacity: 0;
  max-height: 0;
  margin-bottom: 0;
  pointer-events: none;
  transform: translateY(-8px);
}

.strip-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-pill,
.version-pill,
.lang-toggle {
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.01em;
  backdrop-filter: blur(14px);
}

.lang-toggle {
  min-width: 46px;
  box-shadow: none;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  transition: gap 0.26s ease, transform 0.26s ease;
}

.app-header.is-compact .brand-row {
  justify-content: center;
  gap: 0;
  transform: translateY(0);
}

.logo-mark {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  padding: 9px;
  gap: 5px;
  transition: opacity 0.18s ease, width 0.26s ease, height 0.26s ease, margin 0.26s ease, padding 0.26s ease, border-width 0.26s ease, transform 0.26s ease;
}

.app-header.is-compact .logo-mark {
  opacity: 0;
  width: 0;
  height: 0;
  padding: 0;
  margin: 0;
  border-width: 0;
  transform: scale(0.8);
  overflow: hidden;
}

.logo-mark span {
  border-radius: 999px;
  background: #fff;
  opacity: 0.95;
}

.logo-mark span:nth-child(3) {
  grid-column: span 2;
  background: #ffc66d;
}

.eyebrow {
  margin: 0 0 5px;
  font-size: 11px;
  font-weight: 900;
  color: rgba(8, 58, 91, 0.72);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.app-header .eyebrow {
  color: rgba(255, 255, 255, 0.76);
  transition: opacity 0.18s ease, max-height 0.26s ease, margin 0.26s ease, transform 0.26s ease;
  overflow: hidden;
  max-height: 24px;
}

.app-header.is-compact .eyebrow {
  opacity: 0;
  max-height: 0;
  margin: 0;
  transform: translateY(-6px);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.05em;
  transition: font-size 0.26s ease, letter-spacing 0.26s ease, text-align 0.26s ease;
}

.app-header.is-compact h1 {
  font-size: 22px;
  letter-spacing: -0.035em;
  text-align: center;
}

h2 {
  margin: 2px 0 4px;
  font-size: 25px;
  letter-spacing: -0.04em;
}

h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.tagline {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.83);
  transition: opacity 0.18s ease, max-height 0.26s ease, margin 0.26s ease, transform 0.26s ease;
  overflow: hidden;
  max-height: 90px;
}

.app-header.is-compact .tagline {
  opacity: 0;
  max-height: 0;
  margin-top: 0;
  transform: translateY(-6px);
}

.content-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px 110px;
  scroll-behavior: smooth;
}

.content-scroll::-webkit-scrollbar {
  width: 0;
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 35px rgba(8, 47, 70, 0.08);
}

.user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  margin-bottom: 14px;
}

.muted,
.small {
  margin: 0;
  color: var(--muted);
}

.small {
  font-size: 12px;
}

.trust-stack {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.trust-label,
.meta-pill,
.priority-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.trust-label.official {
  background: #e6f0ff;
  color: #0b376d;
}

.trust-label.sample {
  background: #f5f1ff;
  color: #5b44aa;
}

.trust-label.live {
  background: #e8fbf8;
  color: #087c75;
}

.trust-label.review {
  background: #fff1dd;
  color: #935511;
}

.trust-label.partner {
  background: #eef7ff;
  color: #0e6180;
}

.tab-panel {
  display: none;
  animation: panelIn 0.25s ease both;
}

.tab-panel.active {
  display: block;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-card {
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 251, 248, 0.95));
}

.hero-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.score-orb {
  flex: 0 0 90px;
  width: 90px;
  height: 90px;
  border-radius: 999px;
  border: 8px solid rgba(22, 162, 154, 0.16);
  background: radial-gradient(circle at 45% 25%, #fff 0, #fef8ef 45%, #ffcc7f 100%);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--primary);
  padding: 0;
}

.score-orb span {
  display: block;
  font-size: 29px;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
}

.score-orb small {
  display: block;
  margin-top: -18px;
  color: #7a530f;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.1;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.quick-card {
  border: 0;
  background: #fff;
  border-radius: 24px;
  padding: 14px;
  text-align: left;
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(6, 51, 84, 0.08);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quick-card strong {
  display: block;
  font-size: 14px;
  letter-spacing: -0.02em;
}

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

.quick-icon {
  width: 40px;
  height: 40px;
  border-radius: 16px;
  background: var(--soft-teal);
  display: grid;
  place-items: center;
}

.section-card {
  padding: 16px;
  margin-bottom: 14px;
}

.section-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

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

.text-button {
  border: 0;
  background: transparent;
  color: var(--primary-2);
  font-weight: 900;
  font-size: 12px;
  padding: 4px 0;
}

.need-list,
.cards-list,
.integration-list,
.release-list {
  display: grid;
  gap: 10px;
}

.need-item,
.release-list div,
.integration-list div,
.nearby-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 20px;
  padding: 12px;
}

.need-item strong,
.nearby-row strong {
  display: block;
  font-size: 13px;
}

.need-item small,
.nearby-row small {
  color: var(--muted);
  font-size: 11px;
}

.need-icon,
.card-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--soft-blue);
}

.need-icon.food,
.card-icon.food {
  background: var(--soft-orange);
}

.need-icon.health,
.card-icon.health {
  background: #e7f7ff;
}

.need-icon.education,
.card-icon.education {
  background: #f3edff;
}

.need-icon.mental,
.card-icon.mental {
  background: #ecfff5;
}

.need-icon.disaster,
.card-icon.disaster {
  background: var(--soft-red);
}

.need-icon.volunteer,
.card-icon.volunteer {
  background: #fff4f7;
}

.priority-pill {
  margin-left: auto;
  color: var(--primary-2);
  background: var(--soft-teal);
}

.release-list div span,
.integration-list div span {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--soft-teal);
  color: var(--primary-2);
  font-weight: 900;
}

.release-list div p,
.integration-list div p {
  margin: 0;
}

.program-card,
.org-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 24px;
  padding: 14px;
  display: grid;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(5, 45, 78, 0.06);
}

.card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-top strong {
  display: block;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.card-subtitle small {
  color: var(--muted);
  font-size: 11px;
}

.card-copy {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.48;
}

.program-meta,
.org-meta,
.sheet-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.meta-pill {
  background: #f2f7fa;
  color: #3f6178;
}

.details-button {
  border: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 900;
}

.inline-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sticky-tools {
  position: sticky;
  top: -16px;
  z-index: 5;
  backdrop-filter: blur(18px);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f4f8fb;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px 12px;
  margin: 10px 0 10px;
}

.search-box input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  color: var(--ink);
  font-size: 13px;
}

.filter-row,
.chip-picker {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.filter-row::-webkit-scrollbar,
.chip-picker::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.filter-chip,
.interest-chip {
  border: 1px solid var(--line);
  background: #fff;
  color: #426072;
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.filter-chip.active,
.interest-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.primary-button,
.secondary-button {
  border: 0;
  border-radius: 18px;
  padding: 12px 14px;
  font-weight: 900;
  font-size: 13px;
}

.primary-button {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  width: 100%;
  margin-top: 12px;
}

.secondary-button {
  background: #eef5f8;
  color: var(--primary);
}

.volunteer-hero {
  background: linear-gradient(135deg, #fff7ea, #e8fbf8);
}

.inner {
  margin-top: 10px;
}

.map-card {
  height: 300px;
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #dff8f3, #eef4ff 48%, #fff3df);
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(11, 55, 109, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 55, 109, 0.08) 1px, transparent 1px), radial-gradient(circle at 30% 35%, rgba(22, 162, 154, 0.18), transparent 23%), radial-gradient(circle at 72% 62%, rgba(245, 154, 35, 0.2), transparent 25%);
  background-size: 32px 32px, 32px 32px, auto, auto;
}

.map-card::before,
.map-card::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  transform: rotate(-26deg);
}

.map-card::before {
  width: 420px;
  height: 28px;
  left: -80px;
  top: 135px;
}

.map-card::after {
  width: 280px;
  height: 22px;
  right: -55px;
  top: 82px;
  transform: rotate(36deg);
}

.map-label {
  position: absolute;
  background: rgba(255, 255, 255, 0.78);
  color: rgba(19, 37, 54, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 900;
  z-index: 3;
}

.label-one {
  top: 24px;
  left: 20px;
}

.label-two {
  bottom: 24px;
  right: 20px;
}

.radius-ring {
  position: absolute;
  border: 1px dashed rgba(11, 55, 109, 0.22);
  border-radius: 999px;
  z-index: 2;
}

.ring-one {
  width: 170px;
  height: 170px;
  top: 48px;
  left: 72px;
}

.ring-two {
  width: 128px;
  height: 128px;
  bottom: 38px;
  right: 54px;
}

.map-pin {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 14px 14px 14px 4px;
  transform: rotate(-45deg);
  border: 0;
  background: var(--primary);
  color: #fff;
  font-size: 0;
  display: grid;
  place-items: center;
  z-index: 6;
  box-shadow: 0 10px 24px rgba(11, 55, 109, 0.28);
}

.map-pin span {
  transform: rotate(45deg);
  font-size: 13px;
  font-weight: 900;
}

.map-pin.food {
  background: var(--orange);
}

.map-pin.health {
  background: #188cc1;
}

.map-pin.volunteer {
  background: #d14a7f;
}

.map-pin.education {
  background: #7a55d6;
}

.map-pin.mental {
  background: #20a971;
}

.map-pin.disaster {
  background: #c93b32;
}

.nearby-row {
  align-items: flex-start;
}

.nearby-row > div:last-child {
  min-width: 0;
}

.warning-box {
  display: grid;
  gap: 4px;
  background: #fff8ec;
  border: 1px solid rgba(245, 154, 35, 0.24);
  color: #6f4510;
  border-radius: 18px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.45;
}

.warning-box.compact {
  margin-top: 10px;
}

.request-flow {
  padding: 16px;
}

.stepper {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.step-pill {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #edf5f7;
  color: var(--muted);
  font-weight: 900;
  font-size: 12px;
}

.step-pill.active,
.step-pill.done {
  background: var(--primary);
  color: #fff;
}

.step-line {
  flex: 1;
  height: 2px;
  background: #edf5f7;
}

.request-form {
  display: grid;
  gap: 12px;
}

.request-step {
  display: none;
  padding: 0;
  border: 0;
  margin: 0;
}

.request-step.active {
  display: grid;
  gap: 12px;
}

.request-step legend {
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.request-form label {
  display: grid;
  gap: 6px;
}

.request-form label span {
  font-size: 12px;
  font-weight: 900;
  color: var(--ink);
}

.request-form input,
.request-form select,
.request-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #f7fbfc;
  border-radius: 18px;
  padding: 12px;
  outline: none;
  color: var(--ink);
}

.request-form textarea {
  resize: none;
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 10px;
}

.form-actions .primary-button {
  margin-top: 0;
}

.hidden {
  display: none !important;
}

.summary-box {
  display: grid;
  gap: 10px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  font-size: 13px;
}

.summary-row span:first-child {
  color: var(--muted);
}

.summary-row span:last-child {
  font-weight: 900;
  text-align: right;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.metric-card {
  padding: 16px;
}

.metric-card span {
  display: block;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -0.06em;
  color: var(--primary);
}

.metric-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.trend-row {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}

.trend-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 900;
}

.trend-track {
  height: 9px;
  border-radius: 999px;
  background: #edf5f7;
  overflow: hidden;
}

.trend-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--orange));
}

.trust-model {
  display: grid;
  gap: 10px;
}

.trust-model div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
}

.trust-model strong,
.trust-model span {
  display: block;
}

.trust-model span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.profile-card {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.avatar {
  width: 54px;
  height: 54px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.version-roadmap {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.version-roadmap div {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 10px;
  display: grid;
  gap: 4px;
}

.version-roadmap div.current {
  border-color: rgba(22, 162, 154, 0.45);
  background: #f0fffb;
}

.version-roadmap strong {
  color: var(--primary);
}

.version-roadmap span,
.roadmap-note {
  font-size: 12px;
  color: var(--muted);
}

.bottom-nav {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 78px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  padding: 9px;
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 45px rgba(6, 51, 84, 0.12);
}

.nav-item {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 22px;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 8px 2px;
}

.nav-item span {
  font-size: 18px;
  line-height: 1;
}

.nav-item small {
  font-size: 9px;
  font-weight: 900;
}

.nav-item.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.detail-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}

.detail-sheet.show {
  display: block;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 18, 31, 0.42);
  backdrop-filter: blur(6px);
}

.sheet-panel {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: min(406px, calc(100% - 34px));
  max-height: min(78vh, 720px);
  overflow-y: auto;
  background: #fff;
  border-radius: 32px;
  padding: 20px;
  box-shadow: 0 28px 80px rgba(2, 20, 34, 0.35);
  animation: sheetIn 0.24s ease both;
}

@keyframes sheetIn {
  from {
    transform: translate(-50%, 18px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.sheet-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #f0f5f7;
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
  z-index: 2;
}

.sheet-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0 14px;
}

.sheet-icon {
  width: 54px;
  height: 54px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--soft-teal);
  font-size: 24px;
}

.sheet-panel h2 {
  font-size: 22px;
  margin-bottom: 4px;
}

.sheet-section {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 14px;
}

.sheet-section p,
.sheet-section li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.sheet-section ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: #0b1828;
  color: #fff;
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: 0.24s ease;
  z-index: 80;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 520px) {
  .app-shell {
    padding: 0;
  }

  .phone-frame {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .app-header {
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
  }

  .sheet-panel {
    width: 100%;
    bottom: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
}

/* v0.3 MyNotifikasi style notification simulation */
.notification-quick .quick-icon,
.notification-preview-card .quick-icon {
  background: #fff1dd;
}

.notification-preview-card {
  border: 1px solid rgba(245, 154, 35, 0.22);
}

.mini-notification-stack,
.notification-list {
  display: grid;
  gap: 10px;
}

.mini-notification {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px;
}

.mini-notification.unread,
.notification-card.unread {
  border-color: rgba(11, 107, 122, 0.34);
  background: linear-gradient(135deg, #ffffff 0%, #f0fffb 100%);
}

.mini-notification span {
  width: 38px;
  height: 38px;
  border-radius: 15px;
  background: var(--soft-orange);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.mini-notification strong,
.notification-body strong {
  display: block;
  font-size: 13px;
  letter-spacing: -0.02em;
}

.mini-notification small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.full-width {
  width: 100%;
  margin-top: 12px;
}

.notification-control-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}

.notification-control-grid .primary-button,
.notification-control-grid .secondary-button {
  min-height: 46px;
  font-size: 11px;
  padding: 10px;
}

.notification-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 22px;
  padding: 12px;
}

.notification-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: var(--soft-blue);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.notification-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
}

.notification-top small {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.notification-body p {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.timeline-rail {
  display: grid;
  gap: 0;
  margin-top: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  position: relative;
  padding-bottom: 16px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 22px;
  bottom: -2px;
  width: 2px;
  background: var(--line);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-item > span {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 3px solid #d8e7e9;
  background: #fff;
  position: relative;
  z-index: 1;
}

.timeline-item.done > span,
.timeline-item.active > span {
  border-color: var(--teal);
  background: var(--teal);
}

.timeline-item strong {
  display: block;
  font-size: 13px;
}

.timeline-item small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.preference-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.preference-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 18px;
  padding: 12px 8px;
  display: grid;
  gap: 4px;
  text-align: left;
}

.preference-card.active {
  border-color: rgba(22, 162, 154, 0.45);
  background: var(--soft-teal);
}

.preference-card strong {
  font-size: 12px;
}

.preference-card small {
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 460px) {
  .notification-control-grid {
    grid-template-columns: 1fr;
  }
}


/* v0.5 Admin impact dashboard */
.admin-hero-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 251, 248, 0.98));
}

.admin-role-card {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px;
}

.admin-role-card small,
.admin-role-card strong {
  display: block;
}

.admin-role-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.admin-role-card strong {
  margin-top: 3px;
  font-size: 13px;
}

.admin-metric-grid .metric-card {
  min-height: 96px;
}

.admin-action-grid,
.area-pressure-list,
.coverage-matrix,
.admin-queue,
.partner-verification {
  display: grid;
  gap: 10px;
}

.admin-action-card,
.area-pressure-card,
.coverage-row,
.queue-card,
.partner-status-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(5, 45, 78, 0.05);
}

.admin-action-card {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
}

.admin-action-icon,
.queue-icon {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: var(--soft-teal);
  display: grid;
  place-items: center;
  font-size: 20px;
}

.admin-action-card strong {
  display: block;
  font-size: 24px;
  letter-spacing: -0.06em;
  color: var(--primary);
}

.admin-action-card span,
.admin-action-card small {
  display: block;
}

.admin-action-card span {
  font-size: 12px;
  font-weight: 900;
}

.admin-action-card small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.area-pressure-top,
.queue-footer,
.partner-status-row > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.area-pressure-top strong,
.area-pressure-top span {
  font-size: 13px;
  font-weight: 900;
}

.area-pressure-top span {
  color: var(--primary);
}

.area-pressure-meta,
.coverage-values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.area-pressure-meta b,
.coverage-values b,
.queue-footer b {
  color: var(--ink);
}

.coverage-row {
  display: grid;
  gap: 10px;
}

.coverage-title,
.queue-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.coverage-title .card-icon {
  flex: 0 0 36px;
}

.coverage-values {
  grid-template-columns: repeat(3, 1fr);
}

.coverage-bars {
  display: grid;
  gap: 6px;
}

.gap-track {
  height: 7px;
  border-radius: 999px;
  background: #fff3e4;
  overflow: hidden;
}

.gap-track div {
  height: 100%;
  border-radius: 999px;
  background: rgba(245, 154, 35, 0.72);
}

.queue-top small,
.queue-top strong,
.queue-top span,
.queue-footer span,
.partner-status-row strong,
.partner-status-row span {
  display: block;
}

.queue-top small,
.queue-top span,
.queue-footer span,
.partner-status-row span {
  color: var(--muted);
  font-size: 11px;
}

.queue-top strong {
  font-size: 13px;
}

.queue-footer {
  margin-top: 10px;
  align-items: flex-start;
}

.partner-status-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.partner-status-row > .trust-label {
  justify-self: start;
}

.admin-warning {
  margin-top: 12px;
}

@media (max-width: 390px) {
  .admin-action-card {
    grid-template-columns: 38px 1fr;
  }

  .admin-action-card .trust-label {
    grid-column: 2;
    justify-self: start;
  }

  .coverage-values {
    grid-template-columns: 1fr;
  }
}


/* v0.5 MyGOV mini app readiness polish */
.readiness-quick {
  background: linear-gradient(135deg, rgba(11, 55, 109, 0.96), rgba(12, 128, 142, 0.92));
  color: #fff;
}

.readiness-quick small,
.readiness-quick strong {
  color: #fff;
}

.readiness-card {
  border: 1px solid rgba(23, 135, 151, 0.2);
}

.readiness-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 10px;
}

.readiness-chips span {
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #0b376d;
  background: rgba(23, 135, 151, 0.1);
  border: 1px solid rgba(23, 135, 151, 0.18);
}

.miniapp-readiness-panel,
.host-contract-panel {
  border: 1px solid rgba(11, 55, 109, 0.12);
}

.readiness-checklist {
  display: grid;
  gap: 10px;
}

.readiness-checklist div {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 2px 10px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.95);
}

.readiness-checklist span {
  grid-row: span 2;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
  font-weight: 900;
}

.readiness-checklist strong {
  color: #0f172a;
  font-size: 13px;
}

.readiness-checklist small {
  color: #64748b;
  line-height: 1.45;
}

.host-contract-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.host-contract-grid div {
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.host-contract-grid small {
  display: block;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.host-contract-grid strong {
  color: #0b376d;
  font-size: 12px;
  word-break: break-word;
}

@media (max-width: 380px) {
  .host-contract-grid {
    grid-template-columns: 1fr;
  }
}


/* v0.6 integration architecture and stakeholder demo pack */
.integration-architecture-panel .readiness-checklist div span,
.stakeholder-pack-panel .host-contract-grid div small {
  letter-spacing: 0.08em;
}
.compact-architecture div span {
  min-width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 900;
}
.stakeholder-pack-panel .host-contract-grid strong {
  font-size: 0.82rem;
}
