/* Wedding — editorial cream board. Fraunces for titles, system sans for
   notes. Desktop is a bucket rail + feed; phone is a chip scroller. */

:root {
  --bg: #f3ebe3;
  --paper: #fbf6ef;
  --ink: #2a221e;
  --muted: #7a6a62;
  --faint: #a3938b;
  --blush: #c97b7b;
  --blush-deep: #a85c5c;
  --blush-soft: #f4e0db;
  --gold: #b08d57;
  --gold-soft: #efe4d0;
  --line: rgba(42, 34, 30, 0.12);
  --line-strong: rgba(42, 34, 30, 0.22);
  --shadow: 0 1px 2px rgba(42, 34, 30, 0.04), 0 10px 28px rgba(42, 34, 30, 0.06);
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nav-h: calc(3.15rem + env(safe-area-inset-top, 0px));
  --radius: 18px;
  --radius-sm: 11px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.hidden { display: none !important; }

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(201, 123, 123, 0.13), transparent 55%),
    radial-gradient(900px 500px at -10% 110%, rgba(176, 141, 87, 0.12), transparent 50%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
}

body.wd-body {
  min-height: 100dvh;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.wd-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a { color: inherit; }

/* ── Nav ── */
.wd-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--nav-h);
  padding: calc(0.55rem + env(safe-area-inset-top, 0px)) 18px 0.55rem;
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, white);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.wd-nav-brand,
.wd-nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wd-nav-logo,
.wd-nav-section,
.wd-nav-links a {
  text-decoration: none;
  font-size: 0.82rem;
  color: var(--muted);
}

.wd-nav-section {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
}

.wd-search {
  flex: 1;
  max-width: 280px;
  margin: 0 8px;
}

.wd-status {
  font-size: 0.72rem;
  color: var(--faint);
  white-space: nowrap;
}

.wd-boot {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
}

/* ── Shell ── */
.wd-shell {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
  min-height: calc(100dvh - var(--nav-h));
}

.wd-rail {
  padding: 28px 18px 40px 22px;
  border-right: 1px solid var(--line);
  position: sticky;
  top: var(--nav-h);
  align-self: start;
  height: calc(100dvh - var(--nav-h));
  overflow: auto;
}

.wd-rail-label {
  margin: 22px 8px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.wd-rail-empty {
  margin: 0 8px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.wd-rail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
}

.wd-rail-item:hover { background: rgba(42, 34, 30, 0.04); }
.wd-rail-item.is-active {
  background: var(--paper);
  box-shadow: var(--shadow);
}

.wd-rail-name { font-weight: 600; }
.wd-rail-count {
  font-size: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.wd-new-bucket {
  display: flex;
  gap: 6px;
  margin-top: 14px;
}

.wd-new-bucket .wd-input { flex: 1; min-width: 0; }

.wd-tagbar {
  margin: -8px 0 16px;
}

.wd-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.wd-tag {
  appearance: none;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: color-mix(in srgb, var(--paper) 70%, transparent);
  color: var(--muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
}

.wd-tag:hover {
  color: var(--ink);
  background: var(--paper);
}

.wd-tag.is-on {
  background: var(--blush-soft);
  color: var(--blush-deep);
}

.wd-new-tag {
  display: inline-flex;
  min-width: 0;
}

.wd-tag-input {
  width: 7.5rem;
  min-width: 0;
  padding: 4px 10px;
  border: 1px dashed var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
}

.wd-tag-input::placeholder { color: var(--faint); font-weight: 500; }
.wd-tag-input:focus {
  outline: none;
  border-style: solid;
  border-color: var(--line-strong);
  background: var(--paper);
}

.wd-composer-tags { flex: 1; min-width: 0; }
.wd-composer-bar { flex-wrap: wrap; }

.wd-card-bar .wd-tags { flex: 1; }

.wd-main {
  padding: 28px 28px 72px;
  min-width: 0;
}

.wd-chips {
  display: none;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 14px;
  margin: 0 -8px 8px;
  scrollbar-width: none;
}

.wd-chips::-webkit-scrollbar { display: none; }

.wd-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.wd-chip em {
  font-style: normal;
  color: var(--muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.wd-chip.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.wd-chip.is-active em { color: color-mix(in srgb, var(--paper) 70%, var(--blush)); }

.wd-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.wd-kicker {
  margin: 0 0 4px;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

.wd-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 550;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.wd-copy {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 42rem;
}

.wd-bucket-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

/* ── Composer ── */
.wd-composer {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  margin-bottom: 22px;
}

.wd-composer-body {
  width: 100%;
  border: 0;
  resize: vertical;
  min-height: 72px;
  font: inherit;
  font-size: 1.05rem;
  background: transparent;
  color: var(--ink);
  padding: 6px 4px;
}

.wd-composer-body:focus { outline: none; }
.wd-composer-body::placeholder { color: var(--faint); }

.wd-composer-link {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.wd-composer-link label,
.wd-card-label-row,
.wd-file {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.wd-composer-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.wd-composer-file { margin-right: auto; }

/* ── Feed ── */
.wd-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.wd-collage {
  column-count: 2;
  column-gap: 10px;
}

@media (min-width: 640px) {
  .wd-collage { column-count: 3; }
}

@media (min-width: 960px) {
  .wd-collage { column-count: 4; }
}

@media (min-width: 1200px) {
  .wd-collage { column-count: 5; }
}

.wd-collage-tile {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #241c19;
  cursor: pointer;
  position: relative;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  text-align: left;
  color: inherit;
  box-shadow: var(--shadow);
}

.wd-collage-tile:focus-visible {
  outline: 2px solid var(--blush);
  outline-offset: 2px;
}

.wd-collage-tile.is-open {
  box-shadow: 0 0 0 2px var(--blush), var(--shadow);
}

.wd-collage-tile img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.wd-collage-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 160px;
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--paper);
  background:
    radial-gradient(800px 240px at 20% 0%, rgba(201, 123, 123, 0.45), transparent 55%),
    #2a221e;
}

.wd-collage-tile[data-shape="tall"] .wd-collage-ph { aspect-ratio: 3 / 4; min-height: 0; }
.wd-collage-tile[data-shape="port"] .wd-collage-ph { aspect-ratio: 4 / 5; min-height: 0; }
.wd-collage-tile[data-shape="sq"] .wd-collage-ph { aspect-ratio: 1 / 1; min-height: 0; }
.wd-collage-tile[data-shape="wide"] .wd-collage-ph,
.wd-collage-tile[data-shape="wide"] .wd-collage-play { aspect-ratio: 16 / 9; min-height: 0; }
.wd-collage-tile[data-shape="tall"] .wd-collage-play:not(:has(img)) { aspect-ratio: 9 / 16; min-height: 0; }

.wd-collage-play {
  position: relative;
  display: block;
}

.wd-collage-play img {
  width: 100%;
  height: auto;
  display: block;
}

.wd-collage-frame {
  display: block;
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #111;
  pointer-events: none;
}

.wd-collage-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  pointer-events: none;
}

.wd-collage-tile[data-shape="tall"] .wd-collage-frame { aspect-ratio: 9 / 16; }
.wd-collage-tile[data-shape="port"] .wd-collage-frame { aspect-ratio: 4 / 5; }
.wd-collage-tile[data-shape="sq"] .wd-collage-frame { aspect-ratio: 1 / 1; }
.wd-collage-tile[data-shape="wide"] .wd-collage-frame { aspect-ratio: 16 / 9; }

.wd-collage-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 10px 10px;
  background: linear-gradient(transparent, rgba(42, 34, 30, 0.78));
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.wd-inspect {
  margin: 0 0 18px;
  display: grid;
  gap: 10px;
  max-width: 420px;
}

.wd-notes-h {
  margin: 22px 0 10px;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
}

.wd-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.wd-card-image {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: var(--gold-soft);
  aspect-ratio: 4 / 5;
}

.wd-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wd-preview {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #241c19;
  aspect-ratio: 4 / 5;
}

.wd-preview[data-kind="youtube"] { aspect-ratio: 16 / 9; }
.wd-preview[data-kind="video"] { aspect-ratio: 16 / 9; }

.wd-card-image .wd-preview-ph {
  min-height: 0;
  height: 100%;
}

.wd-preview-play {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  min-height: 0;
}

.wd-preview-img,
.wd-preview-frame {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
  background: #111;
}

.wd-preview-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 180px;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--paper);
  background:
    radial-gradient(800px 240px at 20% 0%, rgba(201, 123, 123, 0.45), transparent 55%),
    #2a221e;
}

.wd-preview-ph.wd-kind-pinterest,
.wd-collage-ph.wd-kind-pinterest { background: #7a1f28; }
.wd-preview-ph.wd-kind-tiktok,
.wd-collage-ph.wd-kind-tiktok { background: #111; }
.wd-preview-ph.wd-kind-instagram,
.wd-collage-ph.wd-kind-instagram {
  background: linear-gradient(135deg, #833ab4, #fd1d1d 55%, #fcb045);
}

.wd-preview-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.wd-preview-play:hover .wd-preview-btn { transform: scale(1.06); }
.wd-preview-play:hover .wd-preview-btn svg circle { fill: rgba(42, 34, 30, 0.88); }

.wd-card-link {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 2px;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--blush-soft);
}

.wd-card-link:hover { background: color-mix(in srgb, var(--blush-soft) 70%, white); }

.wd-kind {
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 7px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--blush-deep);
}

.wd-kind-tiktok { color: #111; }
.wd-kind-instagram { color: #b1366a; }
.wd-kind-youtube { color: #a32626; }
.wd-kind-pinterest { color: #9b1d2a; }
.wd-kind-image { color: var(--gold); }
.wd-kind-link { color: var(--ink); }

.wd-card-link-text {
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.wd-card-link-host {
  font-size: 0.78rem;
  color: var(--muted);
}

.wd-card-body {
  width: 100%;
  border: 0;
  resize: vertical;
  min-height: 52px;
  font: inherit;
  font-size: 0.98rem;
  background: transparent;
  color: var(--ink);
  padding: 0;
}

.wd-card-body:focus { outline: none; }

.wd-card-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  flex-wrap: wrap;
}

.wd-file .wd-input { min-width: 0; }

/* ── Empty ── */
.wd-empty,
.wd-empty-card {
  grid-column: 1 / -1;
  color: var(--muted);
  max-width: 36rem;
}

.wd-empty-card {
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
}

.wd-empty-lead {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--ink);
}

.wd-suggest { margin-top: 16px; }
.wd-suggest-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}

.wd-chip-btn {
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--gold-soft);
  color: var(--ink);
  cursor: pointer;
}

.wd-chip-btn:hover { border-color: var(--gold); }

/* ── Controls ── */
.wd-input,
.wd-search {
  font: inherit;
  font-size: 16px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  width: 100%;
}

.wd-input:focus,
.wd-search:focus,
.wd-composer-body:focus,
.wd-card-body:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.wd-btn {
  font: inherit;
  font-weight: 650;
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  min-height: 44px;
}

.wd-btn-keep {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  min-width: 88px;
}

.wd-btn-ghost { background: transparent; }
.wd-btn:disabled { opacity: 0.4; cursor: default; }
.wd-danger { color: var(--blush-deep); }

.wd-icon-btn {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 12px;
}

.wd-icon-btn:hover { background: var(--blush-soft); color: var(--blush-deep); }

/* ── Gate ── */
.wd-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - var(--nav-h));
  padding: 24px 16px 48px;
}

.wd-gate-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 32px 28px 26px;
  max-width: 440px;
  width: 100%;
  text-align: center;
}

.wd-gate-features {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  text-align: left;
  display: grid;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.wd-gate-features strong {
  color: var(--ink);
  font-weight: 650;
}

.wd-gate-private {
  margin: 0 0 16px;
  font-size: 0.78rem;
  color: var(--faint);
  text-align: left;
}

.wd-gate-art { display: block; margin: 0 auto 10px; }
.wd-gate-title {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 550;
  margin: 0 0 8px;
}
.wd-gate-copy {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 20px;
}
.wd-gate-error {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--blush-deep);
  background: var(--blush-soft);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin: 0 0 16px;
  text-align: left;
}
.wd-gate-btn { width: 100%; }
.wd-gate-small {
  font-size: 0.76rem;
  color: var(--faint);
  margin: 12px 0 0;
  line-height: 1.45;
}
.wd-gate-small a { color: var(--ink); }

.wd-auth { text-align: left; }
.wd-auth-tabs {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--gold-soft);
  margin: 0 0 16px;
}
.wd-auth-tab {
  flex: 1;
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  min-height: 44px;
}
.wd-auth-tab.is-active {
  background: var(--ink);
  color: var(--paper);
}
.wd-auth-form { display: flex; flex-direction: column; gap: 12px; }
.wd-auth-field { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.wd-auth-field span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}
.wd-auth-error {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blush-deep);
  margin: 10px 0 0;
}
.wd-auth .wd-gate-btn { margin-top: 4px; }

/* ── Toast ── */
.wd-toast {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--ink);
  color: var(--paper);
  font-weight: 650;
  font-size: 0.9rem;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  z-index: 300;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(92vw, 480px);
}
.wd-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.wd-toast-undo {
  font: inherit;
  font-weight: 700;
  border: 0;
  background: transparent;
  color: var(--gold-soft);
  cursor: pointer;
}

/* ── Phone / PWA ── */
.wd-new-bucket-mobile { display: none; }

@media (max-width: 899px) {
  .wd-shell { grid-template-columns: 1fr; }
  .wd-rail { display: none; }
  .wd-chips { display: flex; }
  .wd-main { padding: 16px 14px 80px; }
  .wd-composer-link { grid-template-columns: 1fr; }
  .wd-head { flex-direction: column; align-items: stretch; }
  .wd-bucket-tools { justify-content: flex-start; }
  .wd-nav-links a[href="/#projects"] { display: none; }
  .wd-search { max-width: none; }
}

@media (max-width: 640px) {
  .wd-nav { flex-wrap: wrap; }
  .wd-search { order: 3; flex: 1 1 100%; max-width: none; margin: 0; }
}

@media (pointer: coarse) {
  .wd-input,
  .wd-search,
  .wd-composer-body,
  .wd-card-body,
  .wd-auth input,
  .wd-tag-input {
    font-size: 16px;
  }
  .wd-tag { padding: 6px 12px; font-size: 0.8rem; }
}

.wd-standalone .wd-nav-logo span,
.wd-standalone .wd-nav-section span { display: none; }
.wd-standalone .wd-nav {
  padding-top: calc(0.4rem + env(safe-area-inset-top, 0px));
}
.wd-standalone .wd-nav-links { font-size: 0.75rem; }

/* ── Home + Plan ── */
.wd-tabbar {
  display: none;
  gap: 0;
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper);
}

.wd-tab {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.88rem;
  color: var(--muted);
}

.wd-tab.is-active {
  background: var(--ink);
  color: var(--paper);
}

.wd-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}

.wd-filter {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 9rem;
}

.wd-select { padding: 8px 10px; min-height: 44px; }

.wd-composer-more {
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  margin-top: 8px;
}

.wd-composer-tags-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

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

.wd-fav-btn {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wd-fav-btn.is-on { color: var(--blush-deep); }
.wd-card.is-fav { box-shadow: 0 0 0 1px var(--blush-soft), var(--shadow); }

.wd-status-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wd-status-pill {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 650;
  padding: 5px 9px;
  border-radius: 999px;
  cursor: pointer;
}

.wd-status-pill.is-on {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--ink);
}

.wd-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wd-home { display: grid; gap: 22px; }

.wd-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.wd-stat {
  display: grid;
  gap: 2px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.wd-stat-n {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
}

.wd-stat-label { font-weight: 650; }
.wd-stat-copy { font-size: 0.78rem; color: var(--muted); line-height: 1.35; }

.wd-home-h {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.wd-home-link {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--blush-deep);
  text-decoration: none;
}

.wd-feed-home { grid-template-columns: 1fr; }

.wd-empty-inline {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.wd-plan-form {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.wd-plan-notes { resize: vertical; min-height: 52px; font: inherit; }

.wd-task-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.wd-task {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.wd-task.is-done { opacity: 0.65; }
.wd-task.is-done .wd-task-check span { text-decoration: line-through; }

.wd-task-check {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  min-height: 44px;
}

.wd-task-check input { width: 18px; height: 18px; margin-top: 3px; flex: none; }

.wd-decision {
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.wd-decision.is-decided { border-color: var(--gold); }

.wd-decision-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.wd-decision-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
}

.wd-decision-actions { display: flex; gap: 4px; align-items: center; }
.wd-decision-notes { margin: 8px 0 0; color: var(--muted); font-size: 0.92rem; }

.wd-decision-clips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.wd-decision-clip {
  font-size: 0.78rem;
  font-weight: 650;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--blush-soft);
  text-decoration: none;
}

.wd-plan-list { display: grid; gap: 10px; }

.wd-collage-tile.is-fav::after {
  content: '♥';
  position: absolute;
  top: 8px;
  right: 8px;
  color: var(--paper);
  font-size: 0.85rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

@media (max-width: 899px) {
  .wd-tabbar { display: flex; }
}
