/* ============================================================
   Design tokens — Google Photos / Material
   ============================================================ */

:root {
  /* Primary */
  --gp-blue: #1a73e8;
  --gp-blue-hover: #185abc;
  --gp-blue-container: #e8f0fe;

  /* Neutral */
  --gp-white: #ffffff;
  --gp-surface: #f8f9fa;
  --gp-surface-variant: #f1f3f4;
  --gp-divider: #dadce0;
  --gp-text: #202124;
  --gp-text-secondary: #5f6368;
  --gp-disabled: #9aa0a6;

  /* Semantic */
  --gp-success: #188038;
  --gp-success-bg: #e6f4ea;
  --gp-warning: #f9ab00;
  --gp-warning-bg: #fef7e0;
  --gp-error: #d93025;
  --gp-error-bg: #fce8e6;

  /* Type */
  --gp-font-display: "Google Sans", Roboto, Helvetica, Arial, sans-serif;
  --gp-font-body: Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Elevation */
  --gp-elev-1: 0 1px 2px rgba(60, 64, 67, 0.1);
  --gp-elev-2: 0 2px 6px rgba(60, 64, 67, 0.14);
  --gp-elev-3: 0 4px 12px rgba(60, 64, 67, 0.18);
  --gp-elev-float: 0 8px 24px rgba(60, 64, 67, 0.2);

  /* Radius */
  --gp-radius-sm: 8px;
  --gp-radius-md: 12px;
  --gp-radius-lg: 16px;
  --gp-radius-dialog: 28px;
  --gp-radius-pill: 9999px;

  /* Motion */
  --gp-quick: 100ms;
  --gp-standard: 150ms;
  --gp-dialog: 250ms;
  --gp-ease: cubic-bezier(0.2, 0, 0, 1);

  /* Icons, inlined so the page stays fully self-contained */
  --gp-icon-search: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z'/%3E%3C/svg%3E");

  /* Layout */
  --gp-photo-gap: 4px;
  --gp-page-pad: 24px;
  --gp-toolbar-h: 64px;

  /* Aliases. The rest of this sheet is written against these names, so the
     palette above is the single place to change a colour. The last four were
     referenced in the calendar and songs views but never defined, which left
     those rules invalid. */
  --vault-text: var(--gp-text);
  --vault-fg: var(--gp-text);
  --vault-muted: var(--gp-text-secondary);
  --vault-line: var(--gp-divider);
  --vault-border: var(--gp-divider);
  --vault-line-strong: var(--gp-disabled);
  --vault-surface: var(--gp-white);
  --vault-surface2: var(--gp-surface-variant);
  --vault-bg: var(--gp-white);
  --vault-blue: var(--gp-blue);
  --vault-accent: var(--gp-blue-container);
  --vault-red: var(--gp-error);
  --vault-shadow: var(--gp-elev-float);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--vault-bg);
  color: var(--vault-text);
  font-family: var(--gp-font-body);
  font-size: 14px;
  line-height: 1.43;
  -webkit-font-smoothing: antialiased;
}

html.vault-booting,
html.vault-locked,
html.vault-modal-open {
  overflow: hidden;
}

body {
  opacity: 0;
}

html.vault-mounted body {
  opacity: 1;
  transition: opacity 180ms ease;
}

#app {
  min-height: 100vh;
}

.vault-app {
  min-height: 100vh;
  padding: 0 20px 44px;
}

.vault-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(280px, 720px) auto;
  align-items: center;
  gap: 16px;
  min-height: var(--gp-toolbar-h);
  padding: 8px 0;
  /* Flat and opaque: the spec rules out gradients and glassmorphism, and a
     solid toolbar keeps the photos below it the only thing with depth. */
  background: var(--gp-white);
}

.vault-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.vault-brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ea4335, #fbbc04 45%, #34a853 72%, #4285f4);
}

.vault-brand-wordmark {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.vault-search {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 24px;
  background: var(--gp-surface-variant);
  transition: background var(--gp-standard) var(--gp-ease), box-shadow var(--gp-standard) var(--gp-ease);
}

/* Lifts to white on focus, the way the Google Photos search field does. */
.vault-search:focus-within {
  background: var(--gp-white);
  box-shadow: 0 1px 4px rgba(60, 64, 67, 0.3);
}

.vault-search-icon {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--vault-blue);
  flex: 0 0 12px;
}

.vault-search input,
.vault-gate-form input,
.vault-settings-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--vault-text);
  font: inherit;
}

.vault-actions,
.vault-settings-actions,
.vault-viewer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vault-action,
.vault-icon-button {
  appearance: none;
  cursor: pointer;
  font-family: var(--gp-font-display);
  font-size: 14px;
  font-weight: 500;
  transition: background var(--gp-standard) var(--gp-ease), box-shadow var(--gp-standard) var(--gp-ease),
    border-color var(--gp-standard) var(--gp-ease);
}

/* Secondary button: the default. Outlined pill, blue label. */
.vault-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 24px;
  border: 1px solid var(--gp-divider);
  border-radius: var(--gp-radius-pill);
  background: transparent;
  color: var(--gp-blue);
  white-space: nowrap;
}

.vault-action:hover {
  background: var(--gp-surface);
}

/* Filled tonal: quieter than primary, still clearly interactive. */
.vault-action-subtle {
  border-color: transparent;
  background: var(--gp-blue-container);
  color: var(--gp-blue);
}

.vault-action-subtle:hover {
  background: #d7e6fd;
}

.vault-action-danger {
  border-color: var(--gp-divider);
  background: transparent;
  color: var(--gp-error);
}

.vault-action-danger:hover {
  background: var(--gp-error-bg);
}

.vault-action:disabled {
  color: var(--gp-disabled);
  border-color: var(--gp-divider);
  background: transparent;
  cursor: default;
}

.vault-icon-button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--gp-text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.vault-icon-button:hover {
  background: var(--gp-surface-variant);
  color: var(--gp-text);
}

.vault-settings-gear {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, transparent 26%, var(--vault-text) 27%, var(--vault-text) 36%, transparent 37%),
    conic-gradient(from 0deg, #4285f4, #34a853, #fbbc04, #ea4335, #4285f4);
}

.vault-summary {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0 22px;
}

.vault-summary h1 {
  margin: 0;
  font-family: var(--gp-font-display);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.25px;
}

.vault-summary p,
.vault-token-status,
.vault-settings-note,
.vault-gate-note,
.vault-date-marker {
  color: var(--vault-muted);
}

.vault-summary p {
  margin: 6px 0 0;
  font-size: 0.95rem;
}

.vault-summary-stats {
  display: inline-flex;
  gap: 18px;
  white-space: nowrap;
  color: var(--vault-muted);
}

.vault-summary-stats strong {
  color: var(--vault-text);
  font-weight: 600;
}

.vault-stream {
  display: grid;
  gap: 28px;
}

.vault-month {
  display: grid;
  gap: 18px;
}

.vault-month-heading {
  font-family: var(--gp-font-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--gp-text);
}

.vault-day-group {
  display: grid;
  gap: 10px;
}

.vault-date-marker {
  font-size: 0.92rem;
  padding: 0;
}

.vault-day-grid {
  column-gap: var(--gp-photo-gap);
  column-width: 170px;
}

.vault-card {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 var(--gp-photo-gap);
  padding: 0;
  border: 0;
  /* Neutral placeholder holds the tile's shape while the thumbnail decrypts. */
  background: var(--gp-surface-variant);
  overflow: hidden;
  cursor: pointer;
  break-inside: avoid;
  transition: transform var(--gp-standard) var(--gp-ease), box-shadow var(--gp-standard) var(--gp-ease),
    filter var(--gp-standard) var(--gp-ease);
}

.vault-card,
.vault-card img,
.vault-viewer-image,
.vault-viewer-video {
  border-radius: var(--gp-radius-lg);
}

.vault-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity var(--gp-standard) var(--gp-ease);
}

.vault-card img.is-ready {
  opacity: 1;
}

/* No borders on photos. Depth and a touch of brightness carry the hover. */
.vault-card:hover {
  transform: scale(1.01);
  box-shadow: var(--gp-elev-2);
  filter: brightness(1.04);
}

.vault-card.is-selected {
  /* An inset ring rather than a border, so the tile does not change size. */
  box-shadow: inset 0 0 0 3px var(--gp-blue);
  filter: brightness(0.95);
}

.vault-card:focus-visible {
  outline: 2px solid var(--gp-blue);
  outline-offset: 2px;
}

.vault-card-check {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: rgba(32, 33, 36, 0.3);
  color: white;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  z-index: 2;
}

.vault-card-check.is-visible,
.vault-card.is-selected .vault-card-check {
  display: inline-flex;
}

.vault-card.is-selected .vault-card-check {
  background: var(--vault-blue);
  border-color: var(--vault-blue);
}

.vault-video-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  min-height: 24px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(32, 33, 36, 0.72);
  color: white;
  font-size: 0.76rem;
}

.vault-card-video {
  min-height: 180px;
  display: grid;
  place-items: center;
  background: var(--gp-surface-variant);
}

.vault-empty {
  padding: 18px 0;
  color: var(--vault-muted);
}

.vault-gate,
.vault-settings-modal,
.vault-viewer {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

/* A plain Material scrim. No blur: the gallery underneath is already blurred
   for privacy, and stacking blurs is the glassmorphism the spec rules out. */
.vault-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(32, 33, 36, 0.34);
}

.vault-gate {
  display: grid;
  align-items: center;
  justify-content: center;
  padding: var(--gp-page-pad);
  background: var(--gp-surface);
}

.vault-locked .vault-app {
  filter: blur(14px);
  pointer-events: none;
  user-select: none;
}

.vault-gate-panel,
.vault-settings-panel,
.vault-viewer-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--gp-white);
  border: 0;
  border-radius: var(--gp-radius-dialog);
  box-shadow: var(--gp-elev-float);
}

.vault-gate-panel {
  width: min(100%, 420px);
  padding: 24px;
  display: grid;
  gap: 16px;
  border-radius: 18px;
}

.vault-gate-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--vault-muted);
  font-size: 0.9rem;
}

.vault-gate-panel h2 {
  margin: 0;
  font-size: 2.1rem;
  font-weight: 400;
  letter-spacing: -0.05em;
}

.vault-gate-panel p {
  margin: 0;
  color: var(--vault-muted);
}

.vault-gate-form {
  display: grid;
  gap: 10px;
}

.vault-gate-form input {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--vault-line);
  border-radius: 14px;
  background: white;
}

.vault-gate-form button {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--vault-text);
  color: white;
  font: inherit;
  cursor: pointer;
}

.vault-gate-error {
  color: var(--vault-red);
  min-height: 1.2em;
}

.vault-settings-panel {
  width: min(calc(100vw - 28px), 560px);
  padding: 20px;
  border-radius: 16px;
  display: grid;
  gap: 18px;
}

.vault-settings-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

.vault-settings-header h3 {
  margin: 0 0 4px;
  font-size: 1.35rem;
  font-weight: 500;
}

.vault-settings-header p,
.vault-settings-group h4 {
  margin: 0;
}

.vault-settings-group {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--vault-line);
}

.vault-settings-field {
  display: grid;
  gap: 8px;
}

.vault-settings-field span {
  font-size: 0.92rem;
}

.vault-settings-field input {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--vault-line);
  border-radius: 12px;
  background: white;
}

.vault-token-status {
  min-height: 1.2em;
  font-size: 0.9rem;
}

.vault-viewer-panel {
  width: min(calc(100vw - 24px), 1400px);
  height: min(calc(100vh - 24px), 940px);
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: var(--gp-radius-dialog);
  overflow: hidden;
}

.vault-viewer-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: var(--gp-toolbar-h);
  padding: 8px 16px;
  border-bottom: 0;
  background: var(--gp-white);
}

.vault-viewer-meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.95rem;
}

.vault-viewer-body {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  padding: 18px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.vault-viewer-image,
.vault-viewer-video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.vault-viewer-loading {
  color: rgba(255, 255, 255, 0.78);
}

.vault-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 1100;
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border-radius: 21px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(32, 33, 36, 0.92);
  color: white;
  box-shadow: var(--vault-shadow);
}

.vault-hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .vault-topbar {
    grid-template-columns: 1fr auto;
  }

  .vault-search {
    grid-column: 1 / -1;
    order: 3;
  }

  .vault-summary {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 720px) {
  .vault-app {
    padding: 0 12px 28px;
  }

  .vault-actions {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: end;
  }

  .vault-action {
    min-height: 38px;
    padding: 0 12px;
  }

  .vault-day-grid {
    column-width: 150px;
  }

  .vault-viewer-panel {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }
}

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

/* ============================================================
   Couple Features: Nav, Stats, Timeline, Bucket List, Modals
   ============================================================ */

.vault-nav {
  display: flex;
  gap: 4px;
  padding: 8px 0 16px;
}

.vault-locked .vault-nav {
  display: none;
}

.vault-nav-tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  padding: 7px 16px;
  border-radius: 20px;
  color: var(--vault-muted);
  transition: background 140ms, color 140ms, border-color 140ms;
}

.vault-nav-tab:hover {
  background: rgba(32, 33, 36, 0.06);
  color: var(--vault-text);
}

.vault-nav-tab.is-active {
  background: var(--vault-text);
  color: white;
  border-color: var(--vault-text);
}

.vault-couple-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0 18px;
}

.vault-couple-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--vault-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  gap: 2px;
  min-width: 80px;
}

.vault-couple-stat-accent {
  border-color: rgba(234, 67, 53, 0.22);
  background: rgba(234, 67, 53, 0.04);
}

.vault-couple-stat-value {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.vault-couple-stat-label {
  font-size: 0.72rem;
  color: var(--vault-muted);
  text-align: center;
  white-space: nowrap;
}

.vault-section-title {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: -0.04em;
  flex: 1;
}

/* ---- Timeline ---- */

.vault-timeline {
  display: grid;
  gap: 18px;
}

.vault-tl-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 4px;
}

.vault-tl-list {
  display: grid;
  gap: 0;
  position: relative;
}

.vault-tl-list::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: var(--vault-line);
}

.vault-tl-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--vault-line);
  position: relative;
}

.vault-tl-item:last-child {
  border-bottom: none;
}

.vault-tl-dot {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid var(--vault-line);
  position: relative;
  z-index: 1;
}

.vault-tl-body {
  flex: 1;
  min-width: 0;
  padding-top: 5px;
}

.vault-tl-date {
  font-size: 0.8rem;
  color: var(--vault-muted);
  margin-bottom: 3px;
}

.vault-tl-title {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.vault-tl-note {
  font-size: 0.88rem;
  color: var(--vault-muted);
  margin-top: 4px;
  line-height: 1.45;
}

.vault-tl-delete {
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--vault-muted);
  font-size: 1.15rem;
  padding: 4px 8px;
  border-radius: 6px;
  flex: 0 0 auto;
  margin-top: 2px;
}

.vault-tl-delete:hover {
  color: var(--vault-red);
}

/* ---- Bucket List ---- */

.vault-bucket {
  display: grid;
  gap: 22px;
}

.vault-bucket-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vault-bucket-progress {
  font-size: 0.88rem;
  color: var(--vault-muted);
}

.vault-bucket-section {
  display: grid;
  gap: 8px;
}

.vault-bucket-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--vault-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 4px 0;
}

.vault-bucket-done-list {
  display: grid;
  gap: 8px;
}

.vault-bucket-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--vault-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
}

.vault-bucket-item.is-done {
  opacity: 0.6;
}

.vault-bucket-check {
  appearance: none;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 50%;
  border: 2px solid var(--vault-line-strong);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: bold;
  color: white;
}

.vault-bucket-item.is-done .vault-bucket-check {
  background: #34a853;
  border-color: #34a853;
}

.vault-bucket-text {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.vault-bucket-name {
  font-size: 0.95rem;
}

.vault-bucket-item.is-done .vault-bucket-name {
  text-decoration: line-through;
}

.vault-bucket-meta {
  font-size: 0.78rem;
  color: var(--vault-muted);
}

.vault-bucket-delete {
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--vault-muted);
  font-size: 1.1rem;
  padding: 4px 8px;
  border-radius: 6px;
  flex: 0 0 auto;
}

.vault-bucket-delete:hover {
  color: var(--vault-red);
}

/* ---- Feature Modals ---- */

.vault-feature-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.vault-feature-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--vault-line);
  box-shadow: var(--vault-shadow);
  width: min(calc(100vw - 28px), 460px);
  padding: 22px;
  border-radius: 16px;
  display: grid;
  gap: 16px;
}

.vault-feature-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vault-feature-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 500;
}

.vault-feature-form {
  display: grid;
  gap: 14px;
}

.vault-form-row {
  display: grid;
  gap: 5px;
}

.vault-form-row label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--vault-muted);
}

.vault-form-optional {
  font-weight: 400;
}

.vault-form-row input[type="text"],
.vault-form-row input[type="date"],
.vault-form-row select,
.vault-form-row textarea {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--vault-line);
  border-radius: 10px;
  background: white;
  font: inherit;
  color: var(--vault-text);
  outline: none;
  appearance: auto;
}

.vault-form-row textarea {
  min-height: 72px;
  padding: 10px 12px;
  resize: vertical;
}

.vault-form-row input:focus,
.vault-form-row select:focus,
.vault-form-row textarea:focus {
  border-color: var(--vault-blue);
}

.vault-form-submit {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--vault-text);
  color: white;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

@media (max-width: 720px) {
  .vault-couple-stat {
    min-width: 70px;
    padding: 8px 10px;
  }

  .vault-couple-stat-value {
    font-size: 1.1rem;
  }

  .vault-tl-dot {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    font-size: 1.05rem;
  }

  .vault-tl-list::before {
    left: 18px;
  }
}

/* ============================================================
   Layout: Left Sidebar
   ============================================================ */

.vault-layout {
  display: flex;
  min-height: 100vh;
}

.vault-sidebar {
  width: 240px;
  flex: 0 0 240px;
  background: rgba(255, 255, 255, 0.94);
  border-right: 1px solid var(--vault-line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 40;
  transition: transform 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

.vault-locked .vault-sidebar {
  pointer-events: none;
  opacity: 0.4;
}

.vault-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--vault-line);
  font-size: 0.97rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--vault-text);
}

.vault-sidenav {
  flex: 1;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vault-sidenav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 8px 16px;
  /* Rounded pill-ish selection, as on the Google Photos navigation rail. */
  border-radius: var(--gp-radius-lg);
  cursor: pointer;
  font-family: var(--gp-font-display);
  font-size: 14px;
  font-weight: 500;
  border: none;
  background: transparent;
  color: var(--gp-text-secondary);
  text-align: left;
  width: 100%;
  transition: background var(--gp-standard) var(--gp-ease), color var(--gp-standard) var(--gp-ease);
}

.vault-sidenav-item:hover {
  background: var(--gp-surface-variant);
  color: var(--gp-text);
}

.vault-sidenav-item.is-active {
  background: var(--gp-blue-container);
  color: var(--gp-blue);
}

.vault-sidenav-icon {
  font-size: 1rem;
  flex: 0 0 20px;
  text-align: center;
}

.vault-sidenav-divider {
  height: 1px;
  background: var(--vault-line);
  margin: 8px 4px;
}

.vault-sidenav-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--vault-muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 4px 12px 2px;
}

.vault-sidebar-footer {
  padding: 8px;
  border-top: 1px solid var(--vault-line);
}

.vault-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(32, 33, 36, 0.3);
  backdrop-filter: blur(2px);
  z-index: 38;
}

.vault-main {
  flex: 1;
  min-width: 0;
  padding: 0 24px 44px;
}

.vault-locked .vault-main {
  filter: blur(14px);
  pointer-events: none;
  user-select: none;
}

.vault-locked .vault-app {
  filter: none;
  pointer-events: auto;
  user-select: auto;
}

.vault-topbar {
  grid-template-columns: auto 1fr auto;
}

.vault-menu-btn {
  display: none;
}

.vault-menu-icon {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--vault-text);
  position: relative;
}

.vault-menu-icon::before,
.vault-menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--vault-text);
}

.vault-menu-icon::before { top: -5px; }
.vault-menu-icon::after { top: 5px; }

/* ============================================================
   Feature Views: QotD, Roulette, Coupons, Gratitude
   ============================================================ */

.vault-feature-page {
  display: grid;
  gap: 22px;
  max-width: 760px;
}

.vault-feature-page-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.vault-feature-page-icon {
  font-size: 2rem;
  flex: 0 0 auto;
  margin-top: 2px;
}

.vault-feature-page-title { flex: 1; }

.vault-feature-page-title h2 {
  margin: 0 0 4px;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.vault-feature-page-title p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--vault-muted);
}

.vault-partner-pick-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--vault-line);
  border-radius: 14px;
  padding: 20px;
  display: grid;
  gap: 12px;
}

.vault-partner-pick-label {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.vault-partner-pick-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--vault-muted);
}

.vault-partner-picker {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.vault-partner-btn {
  appearance: none;
  border: 1px solid var(--vault-line);
  background: white;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 12px;
  transition: all 140ms;
  color: var(--vault-text);
}

.vault-partner-btn:hover,
.vault-partner-btn.is-active {
  border-color: var(--vault-blue);
  background: rgba(26,115,232,0.08);
  color: var(--vault-blue);
}

.vault-partner-switch-btn {
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: inherit;
  color: var(--vault-blue);
  padding: 0;
  text-decoration: underline;
}

/* QotD */
.vault-qotd-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--vault-line);
  border-radius: 18px;
  padding: 26px;
  display: grid;
  gap: 18px;
}

.vault-qotd-meta {
  font-size: 0.8rem;
  color: var(--vault-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.vault-qotd-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--vault-blue);
  flex: 0 0 6px;
}

.vault-qotd-question {
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.35;
}

.vault-qotd-status {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.vault-qotd-status-badge {
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(32,33,36,0.06);
  color: var(--vault-muted);
}

.vault-qotd-status-badge.is-done {
  background: rgba(52,168,83,0.1);
  color: #34a853;
}

.vault-qotd-answer-form {
  display: grid;
  gap: 10px;
}

.vault-qotd-answer-form textarea {
  min-height: 100px;
  padding: 12px;
  border: 1px solid var(--vault-line);
  border-radius: 12px;
  font: inherit;
  font-size: 0.95rem;
  resize: vertical;
  outline: none;
  background: white;
}

.vault-qotd-answer-form textarea:focus {
  border-color: var(--vault-blue);
}

.vault-qotd-reveal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.vault-qotd-answer-card {
  background: white;
  border: 1px solid var(--vault-line);
  border-radius: 12px;
  padding: 16px;
}

.vault-qotd-answer-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--vault-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.vault-qotd-answer-card-text {
  font-size: 0.95rem;
  line-height: 1.5;
}

.vault-qotd-history { display: grid; gap: 8px; }

.vault-qotd-history-item {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--vault-line);
  border-radius: 10px;
  background: rgba(255,255,255,0.7);
  cursor: pointer;
  font: inherit;
  text-align: left;
  width: 100%;
  transition: background 120ms;
}

.vault-qotd-history-item:hover { background: rgba(255,255,255,0.95); }

.vault-qotd-history-date {
  font-size: 0.78rem;
  color: var(--vault-muted);
  flex: 0 0 72px;
  padding-top: 2px;
}

.vault-qotd-history-q { font-size: 0.9rem; }

/* Roulette */
.vault-roulette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 8px;
}

.vault-roulette-idea {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--vault-line);
  border-radius: 12px;
  background: rgba(255,255,255,0.88);
  transition: all 120ms;
}

.vault-roulette-idea.is-yes {
  border-color: rgba(52,168,83,0.35);
  background: rgba(52,168,83,0.05);
}

.vault-roulette-idea.is-no { opacity: 0.4; }

.vault-roulette-idea-emoji { font-size: 1.25rem; flex: 0 0 auto; }

.vault-roulette-idea-text {
  flex: 1;
  font-size: 0.88rem;
  min-width: 0;
}

.vault-roulette-idea-cat {
  font-size: 0.73rem;
  color: var(--vault-muted);
  display: block;
  margin-top: 2px;
}

.vault-roulette-vote-btns { display: flex; gap: 5px; flex: 0 0 auto; }

.vault-roulette-vote {
  appearance: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--vault-line);
  background: white;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 120ms;
}

.vault-roulette-vote.is-active-yes { background: #34a853; border-color: #34a853; color: white; }
.vault-roulette-vote.is-active-no { background: var(--vault-red); border-color: var(--vault-red); color: white; }

.vault-roulette-spin-area {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--vault-line);
  border-radius: 16px;
  padding: 22px;
  text-align: center;
  display: grid;
  gap: 14px;
}

.vault-roulette-picked {
  font-size: 1.1rem;
  font-weight: 500;
  padding: 16px;
  background: rgba(26,115,232,0.06);
  border-radius: 12px;
  border: 1px solid rgba(26,115,232,0.18);
}

.vault-roulette-spin-btn {
  appearance: none;
  border: 0;
  background: var(--vault-text);
  color: white;
  font: inherit;
  font-size: 1rem;
  padding: 13px 28px;
  border-radius: 14px;
  cursor: pointer;
  justify-self: center;
}

.vault-roulette-cat-filters { display: flex; gap: 6px; flex-wrap: wrap; }

.vault-cat-filter {
  appearance: none;
  border: 1px solid var(--vault-line);
  background: rgba(255,255,255,0.88);
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--vault-text);
  transition: all 120ms;
}

.vault-cat-filter.is-active { background: var(--vault-text); color: white; border-color: var(--vault-text); }

/* Coupons */
.vault-coupons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.vault-coupon-card {
  background: rgba(255,255,255,0.97);
  border: 1px solid var(--vault-line);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.vault-coupon-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ea4335, #fbbc04, #34a853, #4285f4);
}

.vault-coupon-card.is-redeemed { opacity: 0.55; }
.vault-coupon-card.is-redeemed::before { background: var(--vault-line); }

.vault-coupon-emoji { font-size: 2rem; }
.vault-coupon-title { font-size: 0.97rem; font-weight: 500; letter-spacing: -0.02em; padding-right: 20px; }
.vault-coupon-desc { font-size: 0.83rem; color: var(--vault-muted); line-height: 1.4; }

.vault-coupon-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.vault-coupon-expiry { font-size: 0.75rem; color: var(--vault-muted); }
.vault-coupon-expiry.is-expired { color: var(--vault-red); }

.vault-coupon-redeem-btn {
  appearance: none;
  border: 0;
  background: var(--vault-text);
  color: white;
  font: inherit;
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.vault-coupon-redeemed-badge { font-size: 0.78rem; color: #34a853; font-weight: 500; }

.vault-coupon-delete-btn {
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--vault-muted);
  font-size: 1rem;
  padding: 4px;
  border-radius: 6px;
  position: absolute;
  top: 12px;
  right: 10px;
  line-height: 1;
}

.vault-coupon-delete-btn:hover { color: var(--vault-red); }

/* Gratitude */
.vault-gratitude-compose {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--vault-line);
  border-radius: 16px;
  padding: 20px;
  display: grid;
  gap: 12px;
}

.vault-gratitude-templates { display: flex; gap: 7px; flex-wrap: wrap; }

.vault-gratitude-template-btn {
  appearance: none;
  border: 1px solid var(--vault-line);
  background: white;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--vault-muted);
  transition: all 120ms;
}

.vault-gratitude-template-btn:hover { border-color: var(--vault-text); color: var(--vault-text); }

.vault-gratitude-input {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  border: 1px solid var(--vault-line);
  border-radius: 12px;
  font: inherit;
  font-size: 0.95rem;
  resize: vertical;
  outline: none;
  background: white;
  box-sizing: border-box;
}

.vault-gratitude-input:focus { border-color: var(--vault-blue); }

.vault-gratitude-send-btn {
  appearance: none;
  border: 0;
  background: var(--vault-text);
  color: white;
  font: inherit;
  font-size: 0.92rem;
  padding: 11px 20px;
  border-radius: 12px;
  cursor: pointer;
}

.vault-gratitude-feed { display: grid; gap: 10px; }

.vault-gratitude-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--vault-line);
  border-radius: 14px;
  align-items: flex-start;
}

.vault-gratitude-heart { font-size: 1.3rem; flex: 0 0 auto; }
.vault-gratitude-content { flex: 1; min-width: 0; }
.vault-gratitude-text { font-size: 0.97rem; line-height: 1.5; }
.vault-gratitude-meta { font-size: 0.78rem; color: var(--vault-muted); margin-top: 4px; }

.vault-gratitude-delete {
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--vault-muted);
  font-size: 1.1rem;
  padding: 4px;
  border-radius: 6px;
  flex: 0 0 auto;
}

.vault-gratitude-delete:hover { color: var(--vault-red); }

.vault-form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ============================================================
   Mobile: Sidebar becomes a drawer
   ============================================================ */

@media (max-width: 860px) {
  .vault-layout { display: block; }

  .vault-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100vh;
    transform: translateX(-100%);
    z-index: 39;
    box-shadow: 4px 0 24px rgba(32,33,36,0.12);
  }

  .vault-sidebar.is-open { transform: translateX(0); }

  .vault-main { padding: 0 16px 28px; }

  .vault-menu-btn { display: inline-flex; }

  .vault-locked .vault-sidebar { display: none; }

  .vault-qotd-reveal-grid { grid-template-columns: 1fr; }

  .vault-form-row-2col { grid-template-columns: 1fr; }

  .vault-roulette-grid { grid-template-columns: 1fr; }

  .vault-coupons-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .vault-coupons-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Calendar View
   ============================================================ */

.vault-cal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.vault-cal-nav-btn {
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  line-height: 1;
  border: 1px solid var(--vault-border);
  border-radius: 8px;
  background: var(--vault-surface);
  color: var(--vault-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}

.vault-cal-nav-btn:hover { background: var(--vault-surface2); }

.vault-cal-month-label {
  font-weight: 700;
  font-size: 1rem;
  min-width: 180px;
  text-align: center;
  color: var(--vault-fg);
}

.vault-cal-grid {
  border: 1px solid var(--vault-border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

.vault-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--vault-surface2);
}

.vault-cal-weekdays span {
  text-align: center;
  padding: 9px 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--vault-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.vault-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.vault-cal-cell {
  min-height: 58px;
  padding: 6px 4px 4px;
  border-top: 1px solid var(--vault-border);
  border-right: 1px solid var(--vault-border);
  cursor: pointer;
  transition: background 0.12s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.vault-cal-cell:nth-child(7n) { border-right: none; }
.vault-cal-cell:hover { background: var(--vault-surface2); }

.vault-cal-cell.vault-cal-empty {
  cursor: default;
  background: transparent !important;
}

.vault-cal-day-num {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--vault-fg);
  border-radius: 50%;
  transition: background 0.12s;
}

.vault-cal-cell.is-today .vault-cal-day-num {
  background: var(--vault-accent);
  color: #fff;
  font-weight: 700;
}

.vault-cal-dots {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  justify-content: center;
}

.vault-cal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.vault-cal-event-list {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vault-cal-event-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--vault-surface);
  border: 1px solid var(--vault-border);
}

.vault-cal-event-emoji {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.vault-cal-event-info { flex: 1; min-width: 0; }

.vault-cal-event-title {
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--vault-fg);
}

.vault-cal-event-meta {
  font-size: 0.78rem;
  color: var(--vault-muted);
  margin-top: 2px;
}

.vault-cal-empty-msg {
  color: var(--vault-muted);
  font-size: 0.9rem;
  text-align: center;
  margin: 8px 0 16px;
}

/* Anniversaries section */
.vault-cal-anniversaries { margin-top: 24px; }

.vault-ann-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.vault-ann-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--vault-surface);
  border: 1px solid var(--vault-border);
}

.vault-ann-emoji {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.vault-ann-info { flex: 1; min-width: 0; }

.vault-ann-label {
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--vault-fg);
}

.vault-ann-meta {
  font-size: 0.78rem;
  color: var(--vault-muted);
  margin-top: 2px;
}

/* Checkbox + radio form rows */
.vault-form-row-checkbox { padding: 4px 0; }

.vault-form-row-checkbox label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  cursor: pointer;
  font-size: 0.93rem;
}

.vault-radio-group {
  display: flex;
  gap: 24px;
  padding: 4px 0;
}

.vault-radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  cursor: pointer;
  font-size: 0.93rem;
}

/* ============================================================
   Song Dedications
   ============================================================ */

.vault-songs-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}

.vault-song-card {
  background: var(--vault-surface);
  border: 1px solid var(--vault-border);
  border-radius: 14px;
  padding: 16px;
  transition: border-color 0.15s;
}

.vault-song-card:hover { border-color: var(--vault-accent); }

.vault-song-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.vault-song-card-note {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #e91e8c 0%, #9c27b0 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  flex-shrink: 0;
  user-select: none;
}

.vault-song-card-info {
  flex: 1;
  min-width: 0;
}

.vault-song-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--vault-fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vault-song-artist {
  font-size: 0.82rem;
  color: var(--vault-muted);
  margin-top: 2px;
}

.vault-song-play-link {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  background: var(--vault-accent);
  color: #fff;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
  align-self: center;
  letter-spacing: 0.02em;
  transition: opacity 0.15s;
}

.vault-song-play-link:hover { opacity: 0.85; }

.vault-song-message {
  margin: 12px 0 8px;
  font-size: 0.93rem;
  color: var(--vault-fg);
  font-style: italic;
  line-height: 1.55;
  padding-left: 12px;
  border-left: 3px solid var(--vault-accent);
}

.vault-song-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 8px;
  flex-wrap: wrap;
}

.vault-song-meta {
  font-size: 0.78rem;
  color: var(--vault-muted);
}

.vault-song-reactions {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}

.vault-song-react-btn {
  background: none;
  border: 1px solid var(--vault-border);
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
  line-height: 1.6;
}

.vault-song-react-btn:hover { background: var(--vault-surface2); }

.vault-song-react-btn.is-active {
  background: var(--vault-accent);
  border-color: var(--vault-accent);
}

.vault-song-reaction-display {
  font-size: 1rem;
  margin-right: 4px;
}

/* Mobile calendar tweaks */
@media (max-width: 540px) {
  .vault-cal-cell { min-height: 44px; }
  .vault-cal-weekdays span { font-size: 0.65rem; padding: 6px 0; }
  .vault-cal-day-num { font-size: 0.78rem; width: 22px; height: 22px; }
  .vault-cal-dot { width: 5px; height: 5px; }
  .vault-cal-month-label { min-width: 140px; font-size: 0.9rem; }
  .vault-song-card-note { width: 36px; height: 36px; font-size: 1.1rem; }
}

/* ============================================================
   Batched publishing, day selection and the photo viewer
   ============================================================ */

/* Primary button: the one filled, high-emphasis action on the screen. */
.vault-action-publish,
.vault-action-publish:hover {
  border-color: transparent;
  color: var(--gp-white);
  box-shadow: none;
}

.vault-action-publish {
  background: var(--gp-blue);
}

.vault-action-publish:hover {
  background: var(--gp-blue-hover);
}

.vault-action-publish:disabled {
  background: var(--gp-blue);
  color: var(--gp-white);
  opacity: 0.6;
  cursor: progress;
}

.vault-date-marker {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vault-date-count {
  font-size: 0.78rem;
  opacity: 0.7;
}

.vault-day-select {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--vault-muted);
  font: inherit;
  font-size: 0.78rem;
  padding: 2px 8px;
  border-radius: 12px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 140ms ease;
}

.vault-day-group:hover .vault-day-select,
.vault-day-select:focus-visible {
  opacity: 1;
  border-color: var(--vault-line);
}

/* Hold the slot open while the thumbnail is still being decrypted. */
.vault-card[style*="--vault-card-ratio"] img {
  aspect-ratio: var(--vault-card-ratio);
}

.vault-card.is-pending {
  opacity: 0.72;
}

.vault-card-pending {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  background: rgba(32, 33, 36, 0.72);
  color: #fff;
}

.vault-viewer-counter {
  font-size: 0.82rem;
  color: var(--vault-muted);
  white-space: nowrap;
}

.vault-viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 1.9rem;
  line-height: 1;
  color: #fff;
  background: rgba(32, 33, 36, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 140ms ease;
}

.vault-viewer-nav:hover {
  background: rgba(32, 33, 36, 0.78);
}

.vault-viewer-nav-prev { left: 20px; }
.vault-viewer-nav-next { right: 20px; }

.vault-viewer-image.is-preview {
  filter: blur(6px);
  transform: scale(1.01);
}

.vault-viewer-image {
  cursor: zoom-in;
}

.vault-viewer-image.is-zoomed {
  cursor: zoom-out;
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
}

.vault-viewer-body {
  position: relative;
  overflow: auto;
}

@media (max-width: 640px) {
  .vault-viewer-nav { width: 38px; height: 38px; font-size: 1.5rem; }
  .vault-viewer-nav-prev { left: 6px; }
  .vault-viewer-nav-next { right: 6px; }
  .vault-viewer-counter { display: none; }
  .vault-day-select { opacity: 1; border-color: var(--vault-line); }
}

/* ============================================================
   Drag a photo onto another day to re-date it
   ============================================================ */

.vault-card {
  -webkit-user-drag: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: manipulation;
}

html.vault-dragging,
html.vault-dragging body {
  cursor: grabbing;
  user-select: none;
}

/* Keep the drag readable: dim everything except candidate drop targets. */
html.vault-dragging .vault-day-group {
  transition: opacity 120ms ease;
  opacity: 0.55;
}

html.vault-dragging .vault-day-group.is-drop-target {
  opacity: 1;
}

.vault-day-group.is-drop-target {
  outline: 2px solid var(--vault-blue, #1a73e8);
  outline-offset: 6px;
  border-radius: 10px;
}

.vault-day-drop-hint {
  display: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--vault-blue, #1a73e8);
}

.vault-day-group.is-drop-target .vault-day-drop-hint {
  display: inline;
}

html.vault-dragging .vault-day-select {
  display: none;
}

.vault-drag-ghost {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;
  pointer-events: none;
  width: 92px;
  height: 92px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(32, 33, 36, 0.34);
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: #dfe3e8;
  opacity: 0.92;
}

.vault-drag-ghost img,
.vault-drag-ghost-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vault-drag-ghost-count {
  position: absolute;
  right: 4px;
  bottom: 4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--vault-blue, #1a73e8);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   Selection bar
   ============================================================ */

.vault-selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 0;
  padding: 10px 14px;
  border: 1px solid var(--vault-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
}

.vault-selection-count {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.vault-selection-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ============================================================
   Mobile
   ============================================================ */

@media (max-width: 720px) {
  /* Avoids iOS zooming the page when a text field takes focus. */
  .vault-search input,
  .vault-gate-form input,
  .vault-feature-form input,
  .vault-feature-form textarea,
  .vault-feature-form select {
    font-size: 16px;
  }

  .vault-action {
    min-height: 42px;
    padding: 0 14px;
  }

  .vault-icon-button {
    width: 44px;
    height: 44px;
  }

  /* Dock the selection actions to the bottom, within thumb reach. */
  .vault-selection-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 35;
    margin: 0;
    border-radius: 16px 16px 0 0;
    border-bottom: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -6px 22px rgba(32, 33, 36, 0.16);
  }

  html.vault-selecting .vault-stream {
    padding-bottom: 84px;
  }

  .vault-day-select {
    opacity: 1;
    border-color: var(--vault-line);
    min-height: 32px;
  }

  .vault-drag-ghost {
    width: 76px;
    height: 76px;
  }
}

@media (max-width: 480px) {
  .vault-app,
  .vault-main {
    padding-left: 10px;
    padding-right: 10px;
  }

  /* A denser grid reads better than a few very large tiles on a phone. */
  .vault-day-grid {
    column-width: 108px;
    column-gap: 5px;
  }

  .vault-card {
    margin-bottom: 5px;
  }

  .vault-month-heading {
    font-size: 1.05rem;
  }

  .vault-summary-stats {
    gap: 12px;
    font-size: 0.85rem;
  }

  .vault-selection-actions {
    gap: 8px;
  }

  .vault-selection-count {
    font-size: 0.82rem;
  }
}

/* Phone browsers report 100vh including chrome that later slides away. */
@supports (height: 100dvh) {
  #app,
  .vault-app {
    min-height: 100dvh;
  }

  @media (max-width: 720px) {
    .vault-viewer-panel {
      height: 100dvh;
    }
  }
}

/* Hover affordances do nothing on touch and can stick after a tap. */
@media (hover: none) {
  .vault-day-group:hover .vault-day-select {
    opacity: 1;
  }

  .vault-viewer-nav {
    width: 44px;
    height: 44px;
  }
}

/* The viewer panel is a grid with no explicit column, so an auto track could
   size itself to the image's intrinsic width and push the body wider than the
   screen. Pinning the column to minmax(0, 1fr) keeps it inside the panel. */
.vault-viewer-panel {
  grid-template-columns: minmax(0, 1fr);
}

.vault-viewer-body {
  max-width: 100%;
}

@media (max-width: 640px) {
  /* Comfortable touch targets on a phone. */
  .vault-viewer-nav {
    width: 44px;
    height: 44px;
    font-size: 1.7rem;
  }
}

/* ============================================================
   Material surface pass
   Applied last so it settles the shared surfaces — dialogs, inputs,
   chips, snackbar, focus — against the tokens at the top of this file.
   ============================================================ */

/* Accessibility: one visible, consistent focus ring everywhere. */
:where(button, a, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--gp-blue);
  outline-offset: 2px;
  border-radius: var(--gp-radius-sm);
}

/* Content-first: generous, even page gutters. */
.vault-app,
.vault-main {
  padding-left: var(--gp-page-pad);
  padding-right: var(--gp-page-pad);
}

.vault-sidebar {
  background: var(--gp-white);
  border-right: 1px solid var(--gp-divider);
}

.vault-sidebar-brand {
  font-family: var(--gp-font-display);
  font-size: 20px;
  font-weight: 500;
  border-bottom: 0;
}

.vault-sidenav-label {
  font-family: var(--gp-font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

/* Day and month headings sit quietly above the photos. */
.vault-date-marker {
  font-family: var(--gp-font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--gp-text);
}

.vault-date-count {
  color: var(--gp-text-secondary);
  font-family: var(--gp-font-body);
  font-weight: 400;
}

/* Chip */
.vault-day-select {
  padding: 6px 14px;
  border: 0;
  border-radius: var(--gp-radius-pill);
  background: var(--gp-surface-variant);
  color: var(--gp-text);
  font-family: var(--gp-font-display);
  font-size: 12px;
  font-weight: 500;
}

.vault-day-select:hover {
  background: var(--gp-blue-container);
  color: var(--gp-blue);
  border-color: transparent;
}

.vault-day-group:hover .vault-day-select,
.vault-day-select:focus-visible {
  border-color: transparent;
}

/* Dialogs share one radius and one shadow. */
.vault-gate-panel,
.vault-settings-panel,
.vault-feature-panel {
  border: 0;
  border-radius: var(--gp-radius-dialog);
  background: var(--gp-white);
  box-shadow: var(--gp-elev-float);
}

.vault-settings-panel h3,
.vault-feature-header h3 {
  font-family: var(--gp-font-display);
  font-weight: 500;
}

/* Text fields */
.vault-settings-field input,
.vault-feature-form input,
.vault-feature-form textarea,
.vault-feature-form select {
  border: 1px solid var(--gp-divider);
  border-radius: var(--gp-radius-sm);
  background: var(--gp-white);
  color: var(--gp-text);
  font-family: var(--gp-font-body);
}

.vault-settings-field input:focus,
.vault-feature-form input:focus,
.vault-feature-form textarea:focus,
.vault-feature-form select:focus {
  outline: none;
  border-color: var(--gp-blue);
  box-shadow: inset 0 0 0 1px var(--gp-blue);
}

/* The unlock button is the primary action on the gate. */
.vault-gate-form button,
.vault-form-submit {
  min-height: 48px;
  border: 0;
  border-radius: var(--gp-radius-pill);
  background: var(--gp-blue);
  color: var(--gp-white);
  font-family: var(--gp-font-display);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--gp-standard) var(--gp-ease);
}

.vault-gate-form button:hover,
.vault-form-submit:hover {
  background: var(--gp-blue-hover);
}

.vault-gate-error {
  color: var(--gp-error);
}

/* Snackbar */
.vault-toast {
  border: 0;
  border-radius: var(--gp-radius-sm);
  background: #323639;
  color: var(--gp-white);
  box-shadow: var(--gp-elev-3);
  font-family: var(--gp-font-body);
  font-size: 14px;
  padding: 0 16px;
  max-width: min(560px, calc(100vw - 32px));
}

/* Selection bar reads as a floating surface, not a bordered box. */
.vault-selection-bar {
  border: 0;
  border-radius: var(--gp-radius-lg);
  background: var(--gp-white);
  box-shadow: var(--gp-elev-2);
}

.vault-selection-count {
  font-family: var(--gp-font-display);
  color: var(--gp-text);
}

.vault-summary p,
.vault-empty {
  color: var(--gp-text-secondary);
  font-size: 14px;
}

.vault-drag-ghost {
  border: 0;
  border-radius: var(--gp-radius-lg);
  box-shadow: var(--gp-elev-float);
  background: var(--gp-surface-variant);
}

.vault-day-group.is-drop-target {
  outline-color: var(--gp-blue);
}

.vault-day-drop-hint {
  font-family: var(--gp-font-display);
  font-weight: 500;
  color: var(--gp-blue);
}

.vault-card-pending,
.vault-video-badge {
  border-radius: var(--gp-radius-pill);
  background: rgba(32, 33, 36, 0.72);
  font-family: var(--gp-font-body);
}

/* Google Photos breakpoints: denser grids as the viewport grows. */
@media (min-width: 1024px) {
  .vault-day-grid { column-width: 200px; }
}

@media (min-width: 1440px) {
  .vault-day-grid { column-width: 220px; }
}

@media (max-width: 720px) {
  .vault-app,
  .vault-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Accessibility: 48px touch targets on phones. */
  .vault-action,
  .vault-gate-form button,
  .vault-form-submit {
    min-height: 48px;
  }

  .vault-icon-button {
    width: 48px;
    height: 48px;
  }

  .vault-sidenav-item {
    min-height: 48px;
  }

  .vault-summary h1 {
    font-size: 24px;
  }

  .vault-month-heading {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .vault-app,
  .vault-main {
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Two columns on a phone, per the responsive spec. */
  .vault-day-grid {
    column-width: 150px;
    column-gap: var(--gp-photo-gap);
  }

  .vault-card {
    border-radius: var(--gp-radius-md);
  }

  .vault-card,
  .vault-card img {
    border-radius: var(--gp-radius-md);
  }
}

/* Hover effects are meaningless on touch and can stick after a tap. */
@media (hover: none) {
  .vault-card:hover {
    transform: none;
    box-shadow: none;
    filter: none;
  }
}

/* Stat tiles read as quiet tonal chips rather than outlined boxes. */
.vault-couple-stats {
  gap: 12px;
  padding: 4px 0 24px;
}

.vault-couple-stat {
  border: 0;
  border-radius: var(--gp-radius-md);
  background: var(--gp-surface);
  padding: 12px 20px;
  min-width: 96px;
}

.vault-couple-stat-accent {
  border: 0;
  background: var(--gp-blue-container);
}

.vault-couple-stat-accent .vault-couple-stat-value {
  color: var(--gp-blue);
}

.vault-couple-stat-value {
  font-family: var(--gp-font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: normal;
  color: var(--gp-text);
}

.vault-couple-stat-label {
  font-family: var(--gp-font-body);
  font-size: 12px;
  color: var(--gp-text-secondary);
}

/* A real magnifier instead of a coloured dot. The glyph is masked so it takes
   its colour from the palette, and it is inlined so nothing is fetched. */
.vault-search-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 0;
  background: var(--gp-text-secondary);
  -webkit-mask: var(--gp-icon-search) center / 20px 20px no-repeat;
  mask: var(--gp-icon-search) center / 20px 20px no-repeat;
}

.vault-search:focus-within .vault-search-icon {
  background: var(--gp-blue);
}

/* Accessibility fix. The palette pairs Google Blue with the blue container for
   tonal buttons and the selected nav item, but #1A73E8 on #E8F0FE measures
   3.93:1 -- under the 4.5:1 the same spec requires. Blue Hover (#185ABC) is
   already in the palette and measures 5.68:1 on that background, so labels on
   tonal surfaces use it. Blue on white is unaffected and stays 4.51:1. */
:root {
  --gp-on-container: var(--gp-blue-hover);
}

.vault-action-subtle,
.vault-sidenav-item.is-active,
.vault-day-select:hover,
.vault-couple-stat-accent .vault-couple-stat-value {
  color: var(--gp-on-container);
}

/* ============================================================
   Navigation icons

   Outlined 24px glyphs in the Material Symbols Rounded manner, inlined as
   masks rather than images so each one paints with `currentColor`. That means
   a single rule gives them the inactive grey and the active blue, which emoji
   could never do. Nothing is fetched over the network.
   ============================================================ */

:root {
  --gp-icon-photos: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.8'/%3E%3Cpath d='m21 15-3.1-3.1a2 2 0 0 0-2.8 0L6 21'/%3E%3C/svg%3E");
  --gp-icon-timeline: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='6' r='2'/%3E%3Ccircle cx='6' cy='18' r='2'/%3E%3Cpath d='M6 8v8'/%3E%3Cpath d='M11 6h9'/%3E%3Cpath d='M11 18h6'/%3E%3C/svg%3E");
  --gp-icon-checklist: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 6h11'/%3E%3Cpath d='M10 12h11'/%3E%3Cpath d='M10 18h11'/%3E%3Cpath d='m3 6 1.5 1.5L7 5'/%3E%3Cpath d='m3 12 1.5 1.5L7 11'/%3E%3Cpath d='m3 18 1.5 1.5L7 17'/%3E%3C/svg%3E");
  --gp-icon-calendar: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 10h18'/%3E%3Cpath d='M8 3v4'/%3E%3Cpath d='M16 3v4'/%3E%3C/svg%3E");
  --gp-icon-question: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.4 9.5a2.7 2.7 0 0 1 5.2.9c0 1.8-2.6 2.4-2.6 2.4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
  --gp-icon-dice: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Ccircle cx='8.4' cy='8.4' r='1.3' fill='%23000' stroke='none'/%3E%3Ccircle cx='12' cy='12' r='1.3' fill='%23000' stroke='none'/%3E%3Ccircle cx='15.6' cy='15.6' r='1.3' fill='%23000' stroke='none'/%3E%3C/svg%3E");
  --gp-icon-ticket: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9.5V7a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v2.5a2.5 2.5 0 0 0 0 5V17a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-2.5a2.5 2.5 0 0 0 0-5Z'/%3E%3Cpath d='M13 6v2'/%3E%3Cpath d='M13 11v2'/%3E%3Cpath d='M13 16v2'/%3E%3C/svg%3E");
  --gp-icon-heart: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.5-1.5 3-3.2 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.8 0-3 .5-4.5 2-1.5-1.5-2.7-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4 3 5.5l7 7Z'/%3E%3C/svg%3E");
  --gp-icon-music: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18V5l12-2v13'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Ccircle cx='18' cy='16' r='3'/%3E%3C/svg%3E");
  --gp-icon-settings: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3.5'/%3E%3Cpath d='M12 2v3'/%3E%3Cpath d='M12 19v3'/%3E%3Cpath d='M2 12h3'/%3E%3Cpath d='M19 12h3'/%3E%3Cpath d='m4.9 4.9 2.2 2.2'/%3E%3Cpath d='m16.9 16.9 2.2 2.2'/%3E%3Cpath d='m19.1 4.9-2.2 2.2'/%3E%3Cpath d='m7.1 16.9-2.2 2.2'/%3E%3C/svg%3E");
}

.vault-sidenav-icon[data-icon] {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  /* currentColor is what makes one rule cover inactive, hover and active. */
  background: currentColor;
  -webkit-mask: var(--gp-icon) center / 24px 24px no-repeat;
  mask: var(--gp-icon) center / 24px 24px no-repeat;
}

.vault-sidenav-icon[data-icon="photos"] { --gp-icon: var(--gp-icon-photos); }
.vault-sidenav-icon[data-icon="timeline"] { --gp-icon: var(--gp-icon-timeline); }
.vault-sidenav-icon[data-icon="checklist"] { --gp-icon: var(--gp-icon-checklist); }
.vault-sidenav-icon[data-icon="calendar"] { --gp-icon: var(--gp-icon-calendar); }
.vault-sidenav-icon[data-icon="question"] { --gp-icon: var(--gp-icon-question); }
.vault-sidenav-icon[data-icon="dice"] { --gp-icon: var(--gp-icon-dice); }
.vault-sidenav-icon[data-icon="ticket"] { --gp-icon: var(--gp-icon-ticket); }
.vault-sidenav-icon[data-icon="heart"] { --gp-icon: var(--gp-icon-heart); }
.vault-sidenav-icon[data-icon="music"] { --gp-icon: var(--gp-icon-music); }
.vault-sidenav-icon[data-icon="settings"] { --gp-icon: var(--gp-icon-settings); }
