:root {
  --ink: #0d2637;
  --muted: #5e7380;
  --line: #cfe0ea;
  --paper: #f7fbff;
  --surface: #ffffff;
  --carolina: #7bafd4;
  --ocean: #006d9c;
  --ocean-dark: #053b57;
  --sky-soft: #e6f4ff;
  --mint: #d9edf8;
  --green: var(--ocean);
  --green-dark: var(--ocean-dark);
  --coral: #f26d5b;
  --gold: #f8c95a;
  --blue: var(--carolina);
  --shadow: 0 20px 60px rgba(5, 59, 87, 0.14);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(123, 175, 212, 0.28), transparent 330px),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 48px;
}

.topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 12px 0;
  background: rgba(251, 252, 250, 0.84);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(207, 224, 234, 0.7);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 168px;
  height: 48px;
}

.tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  overflow-x: auto;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.tab {
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--muted);
  background: transparent;
  white-space: nowrap;
}

.tab.active {
  color: var(--ocean-dark);
  background: var(--sky-soft);
  font-weight: 700;
}

.primary-action,
.secondary-action,
.contribute-button,
.secondary-link {
  border: 0;
  border-radius: 8px;
  font-weight: 800;
}

.primary-action {
  justify-self: end;
  padding: 12px 18px;
  color: #fff;
  background: var(--ocean);
  box-shadow: 0 10px 24px rgba(0, 109, 156, 0.24);
}

.primary-action:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.primary-action:hover,
.contribute-button:hover {
  background: var(--ocean-dark);
}

.secondary-action {
  border: 0;
  padding: 11px 16px;
  color: var(--ocean-dark);
  background: var(--sky-soft);
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  color: var(--ocean-dark);
  background: var(--sky-soft);
  text-decoration: none;
}

.danger-action {
  border: 0;
  border-radius: 8px;
  padding: 9px 13px;
  color: #fff;
  background: #a33a2f;
  font-weight: 800;
}

.account-box {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  min-width: 0;
}

.account-box span {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not([data-view="discover"]) .home-only {
  display: none !important;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: stretch;
  min-height: 290px;
  padding: 38px 0 20px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--ocean);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 0.94;
}

.hero-card {
  align-self: end;
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-card strong,
.hero-card span {
  display: block;
}

.hero-card span {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.35;
}

.mini-image,
.wish-art {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #ecf0f6;
}

.wish-art img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wish-art.has-image {
  background: #edf7ff;
}

.wish-art.has-image::before {
  display: none;
}

.wish-art.has-image img {
  display: block;
}

.mini-image {
  aspect-ratio: 1.1;
}

.mini-image::before,
.wish-art::before {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 10px;
  background: currentColor;
  box-shadow: inset 0 -14px rgba(0, 0, 0, 0.08);
}

.mini-image.laptop,
.art-tech {
  color: var(--ocean);
  background: var(--sky-soft);
}

.art-home {
  color: var(--coral);
  background: #fff0ed;
}

.art-travel {
  color: #0084ad;
  background: #e5f8fb;
}

.art-school {
  color: #8e67d5;
  background: #f0ebfb;
}

.art-health {
  color: var(--gold);
  background: #fff7dc;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 14px 0 24px;
}

.stats-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.stats-grid span {
  display: block;
  font-size: 1.9rem;
  font-weight: 900;
}

.stats-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.beta-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -14px 0 26px;
  padding: 14px 16px;
  border: 1px solid #f4d39a;
  border-radius: 8px;
  color: #694507;
  background: #fff7e6;
}

.beta-notice span {
  color: #755b2b;
}

.tester-guide {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.tester-guide h2 {
  margin: 4px 0 0;
  font-size: 1.45rem;
}

.tester-guide ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tester-guide li {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #f7fbff;
}

.tester-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.how-layout,
.trust-grid {
  display: grid;
  gap: 16px;
}

.how-layout {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.trust-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.how-layout article,
.trust-grid article {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(5, 59, 87, 0.08);
}

.how-layout span {
  display: grid;
  place-items: center;
  width: 34px;
  aspect-ratio: 1;
  margin-bottom: 14px;
  border-radius: 999px;
  color: white;
  background: var(--ocean);
  font-weight: 900;
}

.how-layout h3,
.trust-grid h3 {
  margin-bottom: 8px;
}

.how-layout p,
.trust-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.beta-limits {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbff;
}

.beta-limits h3 {
  margin: 4px 0 0;
  font-size: 1.3rem;
}

.beta-limits ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.beta-limits li {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: white;
  font-weight: 750;
  line-height: 1.35;
}

.policy-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid #f4d39a;
  border-radius: 8px;
  color: #694507;
  background: #fff7e6;
}

.policy-note span {
  color: #755b2b;
  line-height: 1.4;
}

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

.policy-grid article {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(5, 59, 87, 0.08);
}

.policy-grid h3 {
  margin: 4px 0 10px;
  font-size: 1.35rem;
}

.policy-grid p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.5;
}

.policy-grid p:last-child {
  margin-bottom: 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 30px 0 18px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.toolbar {
  display: flex;
  gap: 10px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 240px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 12px 0;
  background: transparent;
}

select,
input,
textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
}

select {
  padding: 0 12px;
}

.view {
  display: none;
}

.active-view {
  display: block;
}

.wish-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.circle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.wish-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wish-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(5, 59, 87, 0.08);
}

.wish-art {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0;
}

.wish-content {
  min-width: 0;
  padding: 18px;
}

.wish-meta,
.card-footer,
.progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wish-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.card-footer {
  align-items: end;
  min-width: 0;
}

.card-actions {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}

.owner-actions,
.owner-detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.owner-actions[hidden] {
  display: none !important;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.category {
  color: var(--ocean-dark);
  background: var(--sky-soft);
}

.priority {
  color: #244a5e;
  background: #edf7ff;
}

.priority-high {
  color: #053b57;
  background: #cfe8f8;
}

.priority-medium {
  color: #00577d;
  background: #e6f4ff;
}

.priority-low {
  color: #37657d;
  background: #f1f8fc;
}

.status {
  color: #00577d;
  background: #d9edf8;
}

.status.ready {
  color: white;
  background: var(--ocean);
}

.status.purchased {
  color: white;
  background: var(--ocean-dark);
}

.wish-card h3 {
  margin: 16px 0 8px;
  font-size: 1.24rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.story {
  min-height: 68px;
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.progress-block {
  margin: 18px 0;
}

.progress-label {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.goal,
.store {
  color: var(--muted);
  min-width: 0;
  overflow-wrap: anywhere;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4eff6;
}

.progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ocean), var(--carolina));
}

.contribute-button {
  padding: 9px 13px;
  color: white;
  background: var(--ocean);
}

.details-button {
  padding: 9px 13px;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.balance-panel,
.activity-item,
.empty-state,
.profile-summary,
.circle-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.circle-card {
  padding: 18px;
  box-shadow: 0 12px 34px rgba(5, 59, 87, 0.08);
}

.circle-card h3 {
  margin-bottom: 8px;
  font-size: 1.45rem;
}

.circle-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.45;
}

.balance-panel {
  position: sticky;
  top: 86px;
  padding: 18px;
}

.account-settings {
  display: grid;
  gap: 16px;
}

.account-profile-card {
  margin-bottom: 0;
}

.account-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(5, 59, 87, 0.08);
}

.account-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.account-form {
  display: grid;
  gap: 14px;
  max-width: 520px;
}

.account-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.account-form input {
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.account-privacy {
  padding-top: 0;
  border-top: 0;
}

.account-panel {
  margin-bottom: 16px;
}

.profile-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  margin-bottom: 16px;
}

.profile-avatar {
  display: grid;
  overflow: hidden;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--sky-soft);
  color: var(--ocean-dark);
  font-weight: 900;
}

.profile-avatar-large {
  width: 74px;
  height: 74px;
  font-size: 1.15rem;
}

.profile-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-main {
  min-width: 0;
}

.profile-summary h3 {
  margin-bottom: 6px;
  font-size: 1.6rem;
  overflow-wrap: anywhere;
}

.profile-summary p {
  margin-bottom: 0;
  color: var(--muted);
}

.profile-bio {
  margin-top: 8px;
  max-width: 62ch;
  line-height: 1.45;
}

.profile-bio.muted {
  color: #6b8391;
}

.profile-actions {
  grid-column: 1 / -1;
  justify-content: flex-start;
}

.profile-summary .copy-field {
  grid-column: 1 / -1;
  margin-top: 0;
}

.readiness-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbff;
}

.readiness-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.readiness-top div {
  display: grid;
  gap: 2px;
}

.readiness-top strong,
.readiness-score {
  color: var(--ink);
  font-weight: 900;
}

.readiness-top span:not(.readiness-score) {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.readiness-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.readiness-list li {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: white;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.3;
}

.readiness-list li.done {
  color: var(--ocean-dark);
  border-color: #a9cfe8;
  background: #eef8ff;
}

.readiness-list span {
  color: var(--ocean);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.empty-action {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.privacy-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.privacy-panel.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.privacy-panel div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbff;
}

.privacy-panel strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.privacy-panel span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
}

.summary-stats {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.summary-stats span {
  display: grid;
  gap: 2px;
  min-width: 96px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.summary-stats strong {
  color: var(--ink);
  font-size: 1.1rem;
}

.balance-panel h3 {
  margin-bottom: 16px;
}

.buy-item {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.buy-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.buy-item strong,
.buy-item span {
  display: block;
}

.buy-item span {
  margin-top: 4px;
  color: var(--muted);
}

.activity-list {
  display: grid;
  gap: 12px;
}

.activity-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 16px;
}

.activity-dot {
  display: grid;
  place-items: center;
  width: 34px;
  aspect-ratio: 1;
  border-radius: 999px;
  color: var(--ocean-dark);
  background: var(--sky-soft);
  font-size: 0.78rem;
  font-weight: 900;
}

.activity-side {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.detail-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(5, 59, 87, 0.08);
}

.detail-panel .wish-art {
  min-height: 420px;
  aspect-ratio: auto;
}

.detail-body {
  min-width: 0;
  padding: 28px;
}

.detail-body h2 {
  margin: 14px 0 10px;
  font-size: clamp(2rem, 4.2vw, 3.8rem);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.detail-body p {
  color: var(--muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.detail-facts div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-facts dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-facts dd {
  margin: 6px 0 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.payment-return {
  display: grid;
  gap: 4px;
  margin: 14px 0 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  line-height: 1.4;
}

.payment-return span {
  color: var(--muted);
  font-weight: 700;
}

.payment-return.success {
  border-color: #a9cfe8;
  background: #f1f8fd;
}

.payment-return.cancel {
  border-color: #f3d2b8;
  background: #fff8ef;
}

.share-panel {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1fr);
  max-width: 100%;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbff;
}

.share-panel p,
.share-panel strong {
  margin: 0;
}

.copy-field,
.share-panel input {
  min-width: 0;
  max-width: 100%;
  padding: 11px 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-field {
  margin-top: 14px;
}

.share-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-link-button {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
}

.proof-panel {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbff;
}

.proof-panel.needs-proof {
  background: #eef7ff;
}

.proof-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.proof-header .eyebrow,
.proof-header h3 {
  margin: 0;
}

.proof-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--ocean-dark);
  background: var(--sky-soft);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.proof-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.supporter-panel {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.supporter-panel h3 {
  margin-bottom: 12px;
}

.supporter-panel > p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
}

.supporter-list {
  display: grid;
  gap: 10px;
}

.supporter-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbff;
}

.supporter-item span {
  display: block;
  margin: 3px 0 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

.supporter-item p {
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.proof-panel p {
  margin-bottom: 14px;
}

.activity-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.activity-context {
  display: inline-flex;
  margin: 6px 0 2px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--ocean-dark);
  background: var(--sky-soft);
  font-size: 0.78rem;
  font-weight: 900;
}

.owner-dashboard {
  display: grid;
  gap: 16px;
}

.owner-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.owner-metrics article,
.owner-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(5, 59, 87, 0.08);
}

.owner-metrics article {
  padding: 16px;
}

.owner-metrics span {
  display: block;
  font-size: 1.55rem;
  font-weight: 900;
}

.owner-metrics p {
  margin: 4px 0 0;
  color: var(--muted);
}

.owner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.owner-panel {
  padding: 18px;
}

.owner-panel h3 {
  margin-bottom: 12px;
}

.owner-list {
  display: grid;
  gap: 10px;
}

.owner-list div {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbff;
}

.owner-row-button {
  display: grid;
  gap: 3px;
  min-width: 0;
  width: 100%;
  padding: 0;
  color: inherit;
  text-align: left;
  background: transparent;
}

.owner-row-button strong {
  color: var(--ink);
}

.owner-row-button:hover strong {
  color: var(--ocean-dark);
}

.feedback-card {
  display: grid;
  gap: 8px;
}

.feedback-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.feedback-card p {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
}

.feedback-card a {
  width: fit-content;
  color: var(--ocean-dark);
  font-weight: 800;
  text-decoration: none;
}

.feedback-status {
  align-self: start;
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--ocean-dark);
  background: var(--sky-soft);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.owner-list span,
.owner-list small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.empty-state {
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

dialog {
  width: min(560px, calc(100% - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(5, 59, 87, 0.48);
}

.modal-form {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.modal-header h2 {
  margin-bottom: 0;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 36px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 1.3rem;
  line-height: 1;
}

.modal-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.field-hint {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.auth-helper {
  margin: -4px 0 2px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #f7fbff;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.4;
}

.image-preview-panel {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sky-soft);
}

.image-preview-panel img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.image-preview-panel span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--ocean-dark);
  background: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 900;
}

.profile-image-preview {
  min-height: 120px;
}

.profile-image-preview img {
  height: 150px;
}

.modal-form .check-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-form .check-row input {
  width: auto;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
  width: 100%;
  padding: 12px;
}

.modal-form input[type="file"] {
  padding: 10px;
  color: var(--muted);
  background: #f7fbff;
}

.modal-form textarea {
  min-height: 96px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-message {
  min-height: 20px;
  margin-bottom: 0;
  color: #a33a2f;
  font-weight: 800;
}

.payment-note {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #f7fbff;
  font-size: 0.92rem;
  line-height: 1.45;
}

.celebrate-modal {
  gap: 16px;
}

.celebrate-summary {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbff;
}

.celebrate-summary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.celebrate-summary strong {
  color: var(--ink);
}

.celebrate-badge {
  justify-self: start;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--ocean-dark);
  background: var(--sky-soft);
  font-size: 0.82rem;
  font-weight: 900;
}

.celebrate-actions {
  display: grid;
  gap: 10px;
}

.link-button {
  border: 0;
  color: var(--ocean-dark);
  background: transparent;
  font-weight: 800;
}

.inline-link {
  padding: 0;
  text-align: left;
}

.full {
  width: 100%;
  justify-self: stretch;
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .tabs {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: flex-start;
    order: 3;
  }

  .brand-logo {
    width: 142px;
    height: auto;
  }

  .hero-panel,
  .beta-notice,
  .tester-guide,
  .dashboard-layout,
  .detail-panel,
  .profile-summary,
  .share-panel,
  .how-layout,
  .trust-grid,
  .policy-grid,
  .beta-limits,
  .owner-metrics,
  .owner-grid {
    grid-template-columns: 1fr;
  }

  .privacy-panel,
  .privacy-panel.compact,
  .readiness-list {
    grid-template-columns: 1fr;
  }

  .profile-avatar-large {
    width: 68px;
    height: 68px;
  }

  .profile-actions {
    justify-content: flex-start;
  }

  .account-box {
    justify-self: end;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .account-box span {
    display: none;
  }

  .beta-notice {
    align-items: flex-start;
    flex-direction: column;
  }

  .policy-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .tester-guide ul {
    grid-template-columns: 1fr;
  }

  .hero-card {
    align-self: auto;
  }

  .wish-grid,
  .wish-grid.compact,
  .circle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .app-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .topbar {
    gap: 10px;
  }

  .account-box {
    gap: 6px;
  }

  .account-box .secondary-action,
  .account-box .primary-action {
    padding: 9px 10px;
    font-size: 0.86rem;
  }

  .primary-action {
    padding: 10px 12px;
  }

  .tab {
    flex: 1;
    padding: 9px 8px;
    font-size: 0.9rem;
  }

  .hero-panel {
    padding-top: 30px;
    min-height: auto;
  }

  h1 {
    font-size: clamp(2.3rem, 15vw, 4rem);
  }

  .stats-grid,
  .wish-grid,
  .wish-grid.compact,
  .circle-grid,
  .form-row,
  .detail-facts {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .toolbar,
  .detail-actions,
  .card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .activity-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .activity-side {
    grid-column: 2;
    justify-items: start;
  }

  .detail-panel .wish-art {
    min-height: 260px;
    max-height: 360px;
  }

  .detail-body {
    padding: 20px;
  }

  .detail-body h2 {
    font-size: 2rem;
    line-height: 1.05;
  }

  .search-box {
    min-width: 0;
  }

  select {
    min-height: 44px;
  }
}
