/* =========================================================================
   I Do Weddings — admin panel
   Mobile-first, built to feel like a native app when installed to a phone.
   ========================================================================= */

:root {
  --teal:        #3aafa9;
  --teal-deep:   #2b8a84;
  --teal-dark:   #1a5c58;
  --teal-soft:   #e6f2f1;
  --teal-line:   rgba(58,175,169,.22);
  --ink:         #1e2d2d;
  --ink-2:       #4a6868;
  --ink-3:       #7d9a9a;
  --cream:       #f2f6f6;
  --card:        #ffffff;
  --line:        #e2ecec;
  --rose:        #c2726b;
  --amber:       #c99a3f;
  --green:       #4f9d72;
  --radius:      14px;
  --radius-sm:   10px;
  --shadow:      0 2px 10px rgba(30,45,45,.05), 0 12px 32px rgba(30,45,45,.05);
  --shadow-lift: 0 8px 22px rgba(30,45,45,.12);
  --tabbar-h:    64px;
  --safe-b:      env(safe-area-inset-bottom, 0px);
  --safe-t:      env(safe-area-inset-top, 0px);
  --serif:       'Cormorant Garamond', Georgia, serif;
  --sans:        'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --script:      'Great Vibes', cursive;
}

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

/* Cormorant defaults to old-style figures, where 1 reads as a capital I.
   Force lining numerals everywhere numbers matter. */
.stat .n, .hero-card .name, .topbar h1, .item-title, .tl-time,
.album .meta .t, .card-head h2, .sheet-head h2, .empty h3, .avatar {
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
  overscroll-behavior-y: contain;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 12px);
  min-height: 100vh;
}
body.no-tabbar { padding-bottom: 0; }

img { max-width: 100%; display: block; }
a { color: var(--teal-deep); }

/* Keep iOS from zooming when a field is focused. */
input, select, textarea, button { font-family: inherit; font-size: 16px; }

/* ---------------------------------------------------------------- TOP BAR */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(242,246,246,.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  padding-top: var(--safe-t);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 14px;
}
.topbar h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: .01em;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar .sub {
  font-size: .72rem;
  color: var(--ink-3);
  letter-spacing: .04em;
  margin-top: 1px;
}
.topbar-title { flex: 1; min-width: 0; }
.topbar-title h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.icon-btn {
  width: 40px; height: 40px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--ink);
  border-radius: 50%;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s;
}
.icon-btn:active { background: rgba(58,175,169,.14); }
.icon-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ----------------------------------------------------------------- LAYOUT */

.wrap { padding: 16px 14px 24px; max-width: 900px; margin: 0 auto; }
.wrap-wide { max-width: 1180px; }

.section-label {
  font-size: .65rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 26px 2px 10px;
  font-weight: 400;
}
.section-label:first-child { margin-top: 4px; }

/* ------------------------------------------------------------------ CARDS */

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card + .card { margin-top: 12px; }
.card-pad { padding: 18px 16px; }
.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 0;
}
.card-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.2rem;
  flex: 1;
}

/* --------------------------------------------------------------- HERO CARD */

.hero-card {
  background: linear-gradient(145deg, var(--teal-dark) 0%, var(--teal-deep) 55%, #348f89 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(26,92,88,.24);
}
.hero-card::after {
  content: '';
  position: absolute;
  right: -50px; top: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14);
}
.hero-card::before {
  content: '';
  position: absolute;
  right: -20px; top: -20px;
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.10);
}
.hero-card .greet {
  font-size: .68rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  opacity: .72;
}
.hero-card .name {
  font-family: var(--script);
  font-size: 2.5rem;
  line-height: 1.2;
  margin: 2px 0 4px;
}
.hero-card .line {
  font-size: .86rem;
  opacity: .82;
  position: relative;
  line-height: 1.6;
}

/* ------------------------------------------------------------------- STATS */

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.stat {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  display: block;
}
.stat .n {
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 400;
  color: var(--teal-deep);
  line-height: 1;
}
.stat .l {
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 6px;
}
.stat.alert .n { color: var(--rose); }

/* -------------------------------------------------------------- LIST ITEMS */

.list { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line);
  background: var(--card);
  -webkit-tap-highlight-color: transparent;
  transition: background .15s;
  width: 100%;
  border-left: none; border-right: none; border-top: none;
  text-align: left;
  cursor: pointer;
  font-size: 1rem;
}
.item:last-child { border-bottom: none; }
.item:active { background: #f6fbfb; }
.item-main { flex: 1; min-width: 0; }
.item-title {
  font-size: .97rem;
  font-weight: 400;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.item-sub {
  font-size: .79rem;
  color: var(--ink-3);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.item-sub.wrap-2 { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.item-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.item .chev { width: 18px; height: 18px; stroke: #b9cccc; fill: none; stroke-width: 1.8; flex-shrink: 0; }
.item.unread { background: #f4fbfa; }
.item.unread .item-title { font-weight: 500; }

.avatar {
  width: 42px; height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.25rem;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.thumb { border-radius: 8px; }

/* Round tinted icon in a list row. */
.ic {
  width: 38px; height: 38px;
  flex: 0 0 38px;
  border-radius: 11px;
  background: var(--teal-soft);
  display: flex; align-items: center; justify-content: center;
}
.ic svg { width: 19px; height: 19px; stroke: var(--teal-deep); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------------- PILLS */

.pill {
  display: inline-block;
  font-size: .63rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 100px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  white-space: nowrap;
  font-weight: 400;
}
.pill.new     { background: #fdeceb; color: var(--rose); }
.pill.replied { background: #fbf3e2; color: #a07a2b; }
.pill.booked  { background: #e6f4ec; color: #3d7f5b; }
.pill.archived, .pill.muted { background: #eef2f2; color: var(--ink-3); }
.pill.draft   { background: #eef2f2; color: var(--ink-3); }
.dot-new {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--rose);
  flex-shrink: 0;
}

/* ----------------------------------------------------------------- BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 22px;
  border: none;
  border-radius: 100px;
  background: var(--teal-deep);
  color: #fff;
  font-size: .73rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s, background .2s, opacity .2s;
}
.btn:active { transform: scale(.975); }
.btn:disabled { opacity: .5; }
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--teal-deep); border: 1px solid var(--teal-line); }
.btn-soft  { background: var(--teal-soft); color: var(--teal-deep); }
.btn-plain { background: #eef2f2; color: var(--ink-2); }
.btn-danger{ background: transparent; color: var(--rose); border: 1px solid rgba(194,114,107,.3); }
.btn-sm    { min-height: 38px; padding: 8px 16px; font-size: .66rem; }
.btn-row   { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row .btn { flex: 1; min-width: 130px; }

/* Floating action button, sat above the tab bar. */
.fab {
  position: fixed;
  right: 16px;
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 16px);
  z-index: 55;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--teal-deep);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(43,138,132,.42);
  cursor: pointer;
  text-decoration: none;
  transition: transform .14s;
}
.fab:active { transform: scale(.93); }
.fab svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; }

/* ------------------------------------------------------------------ TABBAR */

.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  display: flex;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid var(--line);
  padding-bottom: var(--safe-b);
  height: calc(var(--tabbar-h) + var(--safe-b));
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--ink-3);
  font-size: .6rem;
  letter-spacing: .07em;
  padding-top: 6px;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.tab svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tab.active { color: var(--teal-deep); }
.tab.active svg { stroke-width: 1.9; }
.tab .badge {
  position: absolute;
  top: 2px;
  left: 50%;
  margin-left: 4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 100px;
  background: var(--rose);
  color: #fff;
  font-size: .6rem;
  line-height: 17px;
  text-align: center;
  font-weight: 400;
}

/* ------------------------------------------------------------------- FORMS */

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 7px;
}
.field .hint { font-size: .76rem; color: var(--ink-3); margin-top: 6px; line-height: 1.55; }
.input, input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=url], input[type=date], input[type=time], input[type=number], select, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfdfd;
  color: var(--ink);
  font-weight: 300;
  -webkit-appearance: none;
  appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d9a9a' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 38px;
}
textarea { resize: vertical; min-height: 110px; line-height: 1.65; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); background: #fff; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  cursor: pointer;
  font-size: .93rem;
}
.check input { width: 22px; height: 22px; flex: 0 0 22px; accent-color: var(--teal-deep); }

/* Segmented control */
.seg { display: flex; background: #eaf1f1; border-radius: 100px; padding: 3px; gap: 2px; }
.seg a, .seg button {
  flex: 1;
  text-align: center;
  padding: 9px 6px;
  border-radius: 100px;
  font-size: .72rem;
  letter-spacing: .06em;
  text-decoration: none;
  color: var(--ink-2);
  border: none;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}
.seg .on { background: #fff; color: var(--teal-deep); box-shadow: 0 1px 4px rgba(30,45,45,.10); font-weight: 400; }

/* -------------------------------------------------------------- PHOTO GRID */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 8px;
}
.photo {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: #e7efef;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.photo img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.photo.dragging { opacity: .45; transform: scale(.94); }
.photo.drag-over { outline: 2px dashed var(--teal); outline-offset: -2px; }
.photo .badge-cover {
  position: absolute;
  left: 5px; top: 5px;
  background: rgba(43,138,132,.92);
  color: #fff;
  font-size: .56rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 100px;
}
.photo .pick {
  position: absolute;
  right: 6px; top: 6px;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.92);
  background: rgba(30,45,45,.14);
  box-shadow: 0 1px 4px rgba(20,32,32,.28);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
}
.photo.selected .pick { background: var(--teal-deep); border-color: #fff; }
.photo.selected img { opacity: .68; }
.photo.selected { outline: 2px solid var(--teal-deep); outline-offset: -2px; }
.photo .pick svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 2.8; opacity: 0; }
.photo.selected .pick svg { opacity: 1; }
.photo .grip {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 26px;
  background: linear-gradient(transparent, rgba(30,45,45,.45));
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 4px;
}
.photo .grip svg { width: 16px; height: 16px; stroke: rgba(255,255,255,.85); fill: none; stroke-width: 2; }

/* Album covers */
.album-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.album {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  display: block;
}
.album .cover {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #b2cccc, #2b8a84);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.album .cover img { width: 100%; height: 100%; object-fit: cover; }
.album .cover .n {
  position: absolute; right: 7px; bottom: 7px;
  background: rgba(30,45,45,.6);
  color: #fff;
  font-size: .64rem;
  padding: 2px 8px;
  border-radius: 100px;
}
.album .meta { padding: 11px 12px 13px; }
.album .meta .t {
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.album .meta .d { font-size: .72rem; color: var(--ink-3); margin-top: 3px; }
.album.is-draft .cover::after {
  content: 'Hidden';
  position: absolute; left: 7px; top: 7px;
  background: rgba(30,45,45,.68); color: #fff;
  font-size: .58rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 100px;
}

/* --------------------------------------------------------------- TIMELINE */

.tl { position: relative; padding-left: 8px; }
.tl-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  position: relative;
  align-items: flex-start;
}
.tl-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 51px; top: 30px; bottom: -6px;
  width: 1px;
  background: var(--line);
}
.tl-time {
  flex: 0 0 62px;
  text-align: right;
  font-size: .78rem;
  color: var(--teal-deep);
  font-weight: 400;
  padding-top: 2px;
  letter-spacing: .01em;
}
.tl-dot {
  flex: 0 0 9px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--teal);
  margin-top: 7px;
  z-index: 1;
}
.tl-body { flex: 1; min-width: 0; }
.tl-body .t { font-size: .94rem; }
.tl-body .w { font-size: .76rem; color: var(--ink-3); margin-top: 2px; }
.tl-body .d { font-size: .8rem; color: var(--ink-2); margin-top: 4px; line-height: 1.6; }

/* ------------------------------------------------------------ BOTTOM SHEET */

.sheet-backdrop {
  position: fixed; inset: 0;
  background: rgba(20,32,32,.42);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  backdrop-filter: blur(2px);
}
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 210;
  background: var(--cream);
  border-radius: 22px 22px 0 0;
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(102%);
  transition: transform .3s cubic-bezier(.32,.72,0,1);
  padding-bottom: calc(24px + var(--safe-b));
  box-shadow: 0 -8px 40px rgba(30,45,45,.18);
}
.sheet.open { transform: translateY(0); }
.sheet-grab { display: flex; justify-content: center; padding: 10px 0 4px; position: sticky; top: 0; background: var(--cream); z-index: 2; }
.sheet-grab span { width: 38px; height: 4px; border-radius: 100px; background: #cfdcdc; }
.sheet-head {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 16px 14px;
  position: sticky; top: 24px; background: var(--cream); z-index: 2;
}
.sheet-head h2 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; flex: 1; }
.sheet-body { padding: 0 16px; }

/* -------------------------------------------------------------- MISC BITS */

.empty {
  text-align: center;
  padding: 52px 26px;
  color: var(--ink-3);
}
.empty svg { width: 46px; height: 46px; stroke: #c2d5d5; fill: none; stroke-width: 1.1; margin-bottom: 14px; stroke-linecap: round; stroke-linejoin: round; }
.empty h3 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; color: var(--ink-2); margin-bottom: 7px; }
.empty p { font-size: .87rem; line-height: 1.7; max-width: 300px; margin: 0 auto 20px; }

.flash {
  margin: 12px 14px 0;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: .87rem;
  background: #e6f4ec;
  color: #3d7f5b;
  border-left: 3px solid var(--green);
  animation: slideDown .3s ease;
  max-width: 900px;
}
.flash.err { background: #fdeceb; color: #9e4740; border-left-color: var(--rose); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 84px);
  transform: translate(-50%, 16px);
  z-index: 300;
  background: var(--ink);
  color: #fff;
  padding: 11px 20px;
  border-radius: 100px;
  font-size: .84rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s, transform .22s;
  box-shadow: var(--shadow-lift);
  max-width: 90vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.progress {
  height: 3px;
  background: var(--teal-soft);
  border-radius: 100px;
  overflow: hidden;
  margin-top: 10px;
}
.progress i { display: block; height: 100%; background: var(--teal); width: 0; transition: width .2s; }

.divider { height: 1px; background: var(--line); margin: 18px 0; }

.kv { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.kv:last-child { border-bottom: none; }
.kv dt { flex: 0 0 104px; color: var(--ink-3); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; padding-top: 2px; }
.kv dd { flex: 1; min-width: 0; word-break: break-word; }
.kv dd a { text-decoration: none; }

.note-body { font-size: .92rem; line-height: 1.75; color: var(--ink-2); white-space: pre-wrap; }

.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quick {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 15px 14px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 11px;
}
.quick svg { width: 20px; height: 20px; stroke: var(--teal-deep); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.quick span { font-size: .85rem; }

.drop {
  border: 1.5px dashed var(--teal-line);
  border-radius: var(--radius);
  background: #fbfdfd;
  padding: 28px 18px;
  text-align: center;
  color: var(--ink-3);
  cursor: pointer;
  display: block;
  transition: border-color .2s, background .2s;
}
.drop.over { border-color: var(--teal); background: var(--teal-soft); }
.drop svg { width: 34px; height: 34px; stroke: var(--teal); fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 10px; }
.drop .big { font-size: .95rem; color: var(--ink); margin-bottom: 4px; }
.drop .small { font-size: .78rem; line-height: 1.6; }

.sortable-row { display: flex; align-items: center; gap: 10px; }
.handle { cursor: grab; touch-action: none; color: #b9cccc; flex-shrink: 0; padding: 6px 2px; }
.handle svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.row-drag { opacity: .5; background: var(--teal-soft) !important; }

/* Lightbox for reviewing a photo full-screen */
.lb { position: fixed; inset: 0; background: rgba(16,26,26,.96); z-index: 400; display: none; align-items: center; justify-content: center; }
.lb.open { display: flex; }
.lb img { max-width: 96vw; max-height: 78vh; object-fit: contain; border-radius: 6px; }
.lb-close { position: absolute; top: calc(12px + var(--safe-t)); right: 12px; }
.lb-close svg { stroke: #fff; }
.lb-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 16px calc(20px + var(--safe-b)); display: flex; gap: 10px; justify-content: center; }

/* ------------------------------------------------------------ LOGIN SCREEN */

.login-page {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 24px; padding-bottom: 24px;
  background: linear-gradient(165deg, #1a5c58 0%, #1e2d2d 100%);
}
.login-box { width: 100%; max-width: 380px; text-align: center; }
.login-box .logo { font-family: var(--script); font-size: 3.1rem; color: var(--teal); line-height: 1.1; }
.login-box .tag {
  font-size: .64rem; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(244,246,246,.42); margin: 4px 0 34px;
}
.login-box .field label { color: rgba(244,246,246,.42); text-align: left; }
.login-box input {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(58,175,169,.26);
  color: #f2f6f6;
}
.login-box input:focus { background: rgba(255,255,255,.1); border-color: var(--teal); }
.login-box .btn { width: 100%; margin-top: 8px; }
.login-err {
  background: rgba(194,114,107,.14);
  border: 1px solid rgba(194,114,107,.3);
  color: #e8a9a3;
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: .85rem; margin-bottom: 18px;
}
.login-foot { margin-top: 26px; font-size: .75rem; color: rgba(244,246,246,.3); }
.login-foot a { color: rgba(58,175,169,.75); text-decoration: none; }

/* ------------------------------------------------------------- PRINT SHEET */

@media print {
  .topbar, .tabbar, .fab, .no-print { display: none !important; }
  body { background: #fff; padding: 0; }
  .card { box-shadow: none; border: 1px solid #ddd; }
  .wrap { max-width: none; padding: 0; }
}

/* ------------------------------------------------------- TABLET / DESKTOP */

@media (min-width: 860px) {
  body { padding-bottom: 0; padding-left: 232px; }
  body.login-page { padding-left: 24px; }

  .tabbar {
    top: 0; bottom: 0; right: auto;
    width: 232px;
    height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
    border-top: none;
    border-right: 1px solid var(--line);
    padding: 22px 12px;
    background: #fff;
    gap: 4px;
  }
  .tabbar::before {
    content: 'I Do Weddings';
    font-family: var(--script);
    font-size: 1.9rem;
    color: var(--teal-deep);
    padding: 0 14px 20px;
    display: block;
  }
  .tab {
    flex: 0 0 auto;
    flex-direction: row;
    justify-content: flex-start;
    gap: 13px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: .88rem;
    letter-spacing: .02em;
  }
  .tab.active { background: var(--teal-soft); }
  .tab .badge { position: static; margin-left: auto; }
  .fab { bottom: 28px; right: 28px; }
  .toast { bottom: 32px; left: calc(50% + 116px); }
  .album-grid { grid-template-columns: repeat(3, 1fr); }
  .quick-grid { grid-template-columns: repeat(4, 1fr); }
  .sheet { left: 50%; right: auto; transform: translate(-50%, 102%); width: 560px; border-radius: 22px 22px 0 0; }
  .sheet.open { transform: translate(-50%, 0); }
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

@media (min-width: 1100px) {
  .album-grid { grid-template-columns: repeat(4, 1fr); }
}
