/* Made in Maine — site + admin styles */

:root {
  --ink: #0b2533;
  --pine: #0b3e30;
  --pine-deep: #082d24;
  --tide: #2f5d68;
  --seaglass: #dde8e4;
  --orange: #f2722c;
  --orange-soft: #ffb488;
  --paper: #f3efe6;
  --paper-2: #e8e2d4;
  --card: #fcfaf5;
  --muted: #55686b;
  --line: rgba(11, 37, 51, .14);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --pill: 999px;

  --gutter: clamp(16px, 4vw, 40px);
  --wrap: min(1240px, 100% - var(--gutter) * 2);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: var(--pill); background: var(--ink); color: var(--paper); }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.label {
  margin: 0 0 14px;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.text-link { display: inline-flex; gap: 6px; padding-bottom: 2px; border-bottom: 1.5px solid currentColor; font-weight: 700; transition: color .2s, gap .2s var(--ease); }
.text-link:hover { color: var(--orange); gap: 10px; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  background: transparent;
  color: inherit;
  font: 700 .95rem/1 var(--sans);
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-primary { background: var(--orange); color: #1d1007; box-shadow: 0 8px 24px -10px rgba(242, 114, 44, .8); }
.button-primary:hover { background: #ff8240; }
.button-glass { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .1); color: #fff; backdrop-filter: blur(10px); }
.button-glass:hover { background: rgba(255, 255, 255, .2); }
.button-light { background: var(--paper); color: var(--pine-deep); }
.button-light:hover { background: #fff; }
.button-quiet { min-height: 36px; padding: 7px 14px; border-color: var(--line); font-size: .85rem; }
.button-quiet:hover { border-color: var(--ink); }
.button-muted { background: var(--paper-2); color: var(--muted); cursor: default; }
.button-muted:hover { transform: none; }

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
}
.topbar-inner { width: var(--wrap); min-height: 88px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { width: 272px; flex-shrink: 0; }
.topbar nav { display: flex; gap: 4px; padding: 5px; border-radius: var(--pill); background: rgba(11, 37, 51, .05); }
.topbar nav a { padding: 9px 18px; border-radius: var(--pill); font-size: .92rem; font-weight: 600; transition: background .2s, color .2s; }
.topbar nav a:hover { background: rgba(11, 37, 51, .07); }
.topbar nav a[aria-current="page"] { background: var(--card); color: var(--pine); box-shadow: 0 1px 2px rgba(11, 37, 51, .1), 0 4px 14px -6px rgba(11, 37, 51, .25); }

/* Home: hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: min(780px, calc(100svh - 104px));
  margin: 0 var(--gutter);
  border-radius: var(--r-xl);
  background: #0d2a2a;
  color: #fffdf6;
}
.hero-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 47%; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(3, 29, 30, .9) 0%, rgba(3, 29, 30, .74) 36%, rgba(3, 29, 30, .16) 72%, rgba(3, 29, 30, .02) 100%);
}
.hero-copy { width: 100%; max-width: 1240px; margin: 0 auto; padding: clamp(72px, 10vw, 120px) clamp(24px, 6vw, 88px) clamp(110px, 12vw, 140px); }
.hero-kicker { margin: 0 0 22px; color: #d7e4dd; font-size: .74rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.hero h1 {
  margin: 0;
  font: 500 clamp(2.5rem, 6vw, 6rem)/1.02 var(--serif);
  letter-spacing: -.045em;
  text-shadow: 0 3px 24px rgba(0, 0, 0, .2);
}
.hero h1 span { display: block; }
@media (min-width: 601px) { .hero h1 span { white-space: nowrap; } }
.hero-lede { max-width: 540px; margin: 28px 0 0; color: #e1e8e4; font-size: clamp(1.02rem, 1.4vw, 1.15rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.now-pill {
  position: absolute;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 18px 10px 14px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--pill);
  background: rgba(3, 29, 30, .5);
  backdrop-filter: blur(12px);
  font-size: .86rem;
  color: #e6eeea;
}
.now-pill strong { color: #fff; font-weight: 700; }
.now-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.now-dot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--orange); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(3); opacity: 0; } }

/* Home: intro */
.intro {
  width: var(--wrap);
  margin: 0 auto;
  padding: clamp(80px, 11vw, 140px) 0 clamp(64px, 8vw, 100px);
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}
.intro-statement { margin: 0; color: var(--pine); font: 500 clamp(2rem, 4.2vw, 3.7rem)/1.08 var(--serif); letter-spacing: -.035em; text-wrap: balance; }
.intro-aside p { margin: 0 0 22px; color: #3e5458; font-size: 1.08rem; line-height: 1.75; }
.tag { display: inline-block; padding: 0 .55em; border-radius: var(--pill); background: var(--seaglass); color: var(--pine); font-weight: 600; white-space: nowrap; }

/* Home: apps teaser */
.shed-teaser {
  position: relative;
  overflow: hidden;
  width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: clamp(36px, 6vw, 80px);
  border-radius: var(--r-xl);
  background: var(--pine-deep);
  color: var(--paper);
}
.shed-teaser::before, .app-detail.tone-pine .detail-visual::before {
  /* faint contour lines, like a trail map */
  content: "";
  position: absolute;
  inset: -20%;
  opacity: .5;
  pointer-events: none;
  background: repeating-radial-gradient(ellipse at 85% 60%, transparent 0 30px, rgba(243, 239, 230, .07) 31px 32px);
}
.shed-copy { position: relative; }
.shed-copy .label { color: var(--orange-soft); }
.shed-copy h2 { margin: 0; font: 500 clamp(3rem, 6vw, 5.6rem)/.95 var(--serif); letter-spacing: -.045em; }
.shed-copy p:not(.label) { max-width: 420px; margin: 22px 0 30px; color: #c6d3cd; font-size: 1.08rem; }
.shed-stack { position: relative; justify-self: center; display: grid; justify-items: center; gap: 24px; --spread: 96px; }
.stack-icons { position: relative; display: block; width: calc(120px + var(--spread) * (var(--n) - 1)); height: 170px; transition: width .5s var(--ease); }
.stack-icons > * {
  position: absolute;
  top: 20px;
  left: 0;
  width: 120px;
  height: 120px;
  border-radius: 28px;
  box-shadow: 0 18px 36px -12px rgba(0, 0, 0, .55);
  transform: translateX(calc(var(--i) * var(--spread))) rotate(calc((var(--i) - (var(--n) - 1) / 2) * 8deg));
  transition: transform .5s var(--ease);
}
.stack-icons img { object-fit: cover; }
.stack-next { display: grid; place-items: center; border: 2px dashed rgba(243, 239, 230, .4); background: rgba(243, 239, 230, .04); color: rgba(243, 239, 230, .7); font: 300 3rem/1 var(--sans); box-shadow: none !important; }
.shed-stack:hover { --spread: 100px; }
.shed-stack:hover .stack-icons > * { transform: translateX(calc(var(--i) * var(--spread))) rotate(calc((var(--i) - (var(--n) - 1) / 2) * 4deg)) translateY(-6px); }
.stack-caption { padding: 8px 16px; border-radius: var(--pill); background: rgba(243, 239, 230, .1); font-size: .9rem; color: #d7e1dc; }
.stack-caption strong { color: #fff; }

/* Inner pages: heading block */
.page-head {
  width: var(--wrap);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 110px) 0 clamp(36px, 4vw, 52px);
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  align-items: end;
  gap: clamp(28px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { margin: 0; color: var(--pine); font: 500 clamp(2.8rem, 5.4vw, 5.2rem)/1 var(--serif); letter-spacing: -.045em; }
.page-head .label { color: var(--ink); }
.page-lede { margin: 0 0 6px; color: #42585c; font-size: 1.1rem; line-height: 1.7; }
.has-card h1 { font-size: clamp(2.4rem, 4.1vw, 4rem); }
/* Headline + green card: the card lines up with the headline itself, not the label above it */
.has-card { grid-template-columns: 1.1fr .9fr; grid-template-rows: auto auto; row-gap: 0; align-items: stretch; }
.has-card > div:first-child { grid-row: 1 / 3; display: grid; grid-template-rows: subgrid; }
.has-card > div:first-child > div { align-self: end; }
.has-card .head-card { grid-row: 2; }
.has-card h1 { align-self: center; }
.head-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(16px, 1.6vw, 22px) clamp(24px, 2.6vw, 32px);
  border-radius: var(--r-xl);
  /* "aurora": soft green and sea-green glows over deep pine */
  background:
    radial-gradient(60% 90% at 15% 110%, rgba(64, 140, 104, .55) 0%, transparent 70%),
    radial-gradient(50% 80% at 90% -10%, rgba(40, 110, 110, .5) 0%, transparent 70%),
    #072a21;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 18px 36px -24px rgba(6, 31, 25, .6);
  color: var(--paper);
}
.head-card::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: -1;
  background: repeating-radial-gradient(ellipse at 100% 0%, transparent 0 26px, rgba(243, 239, 230, .07) 27px 28px);
}
.head-card p { margin: 0; color: #e7eee9; font: 400 clamp(1.15rem, 1.55vw, 1.4rem)/1.5 var(--serif); letter-spacing: -.01em; }
.about-hello { margin: 0 0 10px; color: var(--orange); font: italic 500 clamp(1.4rem, 2.4vw, 2rem)/1.2 var(--serif); letter-spacing: -.02em; }

/* About */
.about-photo { position: relative; width: var(--wrap); margin: clamp(36px, 5vw, 56px) auto 0; }
.about-photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: center 40%; border-radius: var(--r-xl); }
.about-photo figcaption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  max-width: calc(100% - 40px);
  padding: 9px 16px;
  border-radius: var(--pill);
  background: rgba(3, 29, 30, .55);
  backdrop-filter: blur(12px);
  color: #eef3f0;
  font-size: .88rem;
}
.about-story { width: var(--wrap); margin: clamp(48px, 7vw, 96px) auto 0; }
.story-block { display: grid; grid-template-columns: minmax(200px, .4fr) 1fr; gap: 32px; padding: 40px 0; border-top: 1px solid var(--line); }
.story-block h2 { margin: 0; color: var(--pine); font: 500 clamp(1.8rem, 2.6vw, 2.3rem)/1.1 var(--serif); letter-spacing: -.03em; }
.story-block p { max-width: 62ch; margin: 0 0 16px; font-size: 1.12rem; line-height: 1.75; color: #2f4549; }
.story-block p:last-child { margin-bottom: 0; }
.soft { color: var(--muted) !important; font-size: 1rem !important; }
.cta-band {
  width: var(--wrap);
  margin: clamp(32px, 5vw, 64px) auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: clamp(28px, 4vw, 44px) clamp(28px, 4vw, 52px);
  border-radius: var(--r-lg);
  background: var(--seaglass);
}
.cta-band h2 { margin: 0; color: var(--pine); font: 500 clamp(1.7rem, 3vw, 2.5rem)/1.1 var(--serif); letter-spacing: -.03em; }

/* Apps hub */
.shed-grid {
  width: var(--wrap);
  margin: 0 auto;
  padding: clamp(32px, 4vw, 48px) 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 20px;
}
.app-tile {
  position: relative;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 28px;
  border-radius: var(--r-lg);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.app-tile:has(.tile-link:hover) { transform: translateY(-6px); box-shadow: 0 30px 50px -28px rgba(11, 37, 51, .55); }
.app-tile.tone-pine { background: var(--pine); color: var(--paper); }
.app-tile.tone-tide { background: var(--seaglass); color: var(--ink); }
.tile-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: auto; }
.tile-icon { width: 76px; height: 76px; object-fit: cover; border-radius: 20px; box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .45); }
.tile-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .55;
  transition: transform .35s var(--ease), opacity .2s, background .2s;
}
.app-tile:has(.tile-link:hover) .tile-arrow { opacity: 1; transform: rotate(-45deg); background: var(--orange); border-color: var(--orange); color: #1d1007; }
.tile-eyebrow { margin-top: 56px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.tile-name { margin: 4px 0 0; font: 500 clamp(2.2rem, 11cqi, 3.4rem)/1 var(--serif); letter-spacing: -.04em; }
.tile-summary { margin-top: 12px; max-width: 30ch; font: 500 clamp(1.15rem, 5cqi, 1.45rem)/1.3 var(--serif); opacity: .85; }
.app-tile .chips { margin-top: 26px; }
.tile-seasoning { border: 2px dashed var(--line); color: var(--muted); justify-content: flex-end; }
.tile-seasoning .tile-name { color: var(--ink); font-size: clamp(1.8rem, 8cqi, 2.4rem); }
.seasoning-mark { margin-bottom: auto; color: var(--orange); font-size: 2rem; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chips > * { padding: 5px 12px; border: 1px solid color-mix(in srgb, currentColor 28%, transparent); border-radius: var(--pill); font-size: .8rem; font-weight: 600; }

/* Whole tile is clickable via the name link; store badges sit above it */
.tile-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tile-link:focus-visible { outline: none; }
.app-tile:has(.tile-link:focus-visible) { outline: 3px solid var(--orange); outline-offset: 3px; }
.store-badges { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; }
.tile-badges { margin-top: 20px; }
.detail-badges { margin-top: 28px; }
.store-badge { display: block; line-height: 0; border-radius: 9px; transition: transform .2s var(--ease); }
.store-badge img { height: 40px; width: auto; }
.store-badge[href]:hover { transform: translateY(-2px); }
.store-badge[aria-disabled="true"] { cursor: default; }
.tone-pine .store-badge { box-shadow: 0 0 0 1px rgba(243, 239, 230, .35); }

/* Apps: single app */
.app-detail { width: var(--wrap); margin: 0 auto; padding-top: clamp(28px, 4vw, 44px); }
.back-link { display: inline-flex; gap: 8px; padding: 8px 16px; border-radius: var(--pill); background: rgba(11, 37, 51, .06); font-size: .9rem; font-weight: 600; transition: background .2s, gap .2s var(--ease); }
.back-link:hover { background: rgba(11, 37, 51, .1); gap: 12px; }
.detail-head { display: flex; align-items: center; gap: clamp(18px, 3vw, 28px); margin: clamp(32px, 5vw, 56px) 0 clamp(32px, 4vw, 48px); }
.detail-icon { width: clamp(80px, 10vw, 112px); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 26%; box-shadow: 0 16px 32px -14px rgba(0, 0, 0, .5); }
.detail-head .label { margin-bottom: 8px; color: var(--muted); }
.detail-head h1 { margin: 0; color: var(--pine); font: 500 clamp(3rem, 7vw, 6rem)/.95 var(--serif); letter-spacing: -.05em; }
.detail-body { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.detail-copy > .detail-summary { max-width: none; margin: 0 0 18px; color: var(--pine); font: 500 clamp(1.8rem, 3vw, 2.6rem)/1.1 var(--serif); letter-spacing: -.03em; }
.detail-copy > p { max-width: 54ch; margin: 0 0 24px; color: #2f4549; font-size: 1.1rem; line-height: 1.75; }
.detail-actions { margin-top: 20px; }
.help-card { margin-top: 40px; padding: 24px 26px; border-radius: var(--r-md); background: var(--paper-2); }
.help-card h2 { margin: 0 0 8px; font: 600 1.25rem/1.25 var(--serif); }
.help-card p { margin: 0; color: var(--muted); }
.detail-visual {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 520px;
  margin: 0;
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--r-xl);
}
.tone-pine .detail-visual { background: var(--pine); }
.tone-tide .detail-visual { background: var(--tide); }
.detail-visual img { position: relative; box-shadow: 0 34px 60px -20px rgba(0, 0, 0, .55); }
.shape-phone img { width: auto; max-width: min(290px, 72%); max-height: min(620px, 72vh); border: 8px solid #111; border-radius: 42px; }
.shape-wide img { width: 100%; border: 6px solid rgba(255, 255, 255, .7); border-radius: 16px; }
.more-apps { width: var(--wrap); margin: clamp(56px, 8vw, 96px) auto 0; padding-top: 32px; border-top: 1px solid var(--line); }
.more-apps h2 { margin: 0 0 18px; font: 500 1.6rem/1.2 var(--serif); }
.more-row { display: flex; flex-wrap: wrap; gap: 12px; }
.more-chip { display: flex; align-items: center; gap: 14px; padding: 12px 22px 12px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); transition: transform .25s var(--ease), border-color .2s; }
.more-chip:hover { transform: translateY(-3px); border-color: var(--ink); }
.more-chip img { width: 44px; height: 44px; object-fit: cover; border-radius: 12px; }
.more-chip strong, .more-chip small { display: block; }
.more-chip small { color: var(--muted); }

/* Footer */
.site-footer { width: var(--wrap); margin: clamp(80px, 10vw, 128px) auto var(--gutter); }
.footer-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--r-lg);
  background: var(--paper-2);
}
.footer-brand img { width: 200px; }
.footer-brand p { margin: 10px 0 0; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 24px; font-weight: 600; }
.footer-nav a:hover, .footer-meta a:hover { color: var(--orange); }
.footer-meta { display: grid; justify-items: end; gap: 4px; color: var(--muted); font-size: .85rem; }

/* Modern motion: cross-page transitions and scroll-linked reveals */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-group(*) { animation-duration: .45s; animation-timing-function: var(--ease); }

  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
    .hero-photo {
      animation: drift linear both;
      animation-timeline: scroll(root);
      animation-range: 0 100vh;
    }
  }
}
@keyframes reveal { from { opacity: 0; transform: translateY(32px) scale(.98); } }
@keyframes drift { to { transform: translateY(10%) scale(1.06); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

@media (max-width: 900px) {
  .intro, .shed-teaser, .page-head, .detail-body, .story-block { grid-template-columns: 1fr; }
  .story-block { gap: 14px; }
  .has-card { row-gap: 28px; }
  .has-card > div:first-child, .has-card .head-card { grid-row: auto; }
  .has-card > div:first-child { display: block; }
  .footer-card { grid-template-columns: 1fr; }
  .footer-meta { justify-items: start; }
  .detail-visual { min-height: 440px; }
}

@media (max-width: 600px) {
  .topbar-inner { min-height: 68px; gap: 10px; }
  .brand { width: 168px; }
  .topbar nav { padding: 3px; }
  .topbar nav a { padding: 8px 11px; font-size: .84rem; }
  .hero { margin: 0 8px; border-radius: var(--r-lg); min-height: 640px; align-items: flex-start; }
  .hero::before { background: linear-gradient(180deg, rgba(3, 29, 30, .88) 0%, rgba(3, 29, 30, .7) 60%, rgba(3, 29, 30, .5) 100%); }
  .hero-photo { object-position: 67% center; }
  .hero-actions .button { flex: 1 1 100%; }
  .now-pill { left: 16px; right: auto; max-width: calc(100% - 32px); }
  .shed-stack { --spread: 60px; }
  .stack-icons { height: 130px; }
  .stack-icons > * { width: 92px; height: 92px; border-radius: 22px; }
  .stack-icons { width: calc(92px + var(--spread) * (var(--n) - 1)); }
  .shed-stack:hover { --spread: 68px; }
  .about-photo img { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
  .app-tile { min-height: 360px; }
  .detail-visual { min-height: 0; border-radius: var(--r-lg); }
}

/* ===== Admin ===== */
.admin-body { background: #ecebe4; }
.admin-shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.admin-side {
  position: sticky;
  top: 12px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: calc(100vh - 24px);
  margin: 12px 0 12px 12px;
  padding: 24px 16px;
  border-radius: var(--r-lg);
  background: var(--ink);
  color: #dfe7e6;
}
.admin-brand { padding: 0 8px; }
.admin-brand img { width: 180px; filter: brightness(0) invert(1); }
.admin-nav { display: grid; gap: 4px; }
.admin-nav a { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border-radius: var(--r-sm); font-weight: 600; transition: background .2s; }
.admin-nav a:hover { background: rgba(255, 255, 255, .06); }
.admin-nav a[aria-current="page"] { background: rgba(255, 255, 255, .12); color: #fff; }
.soon { padding: 2px 8px; border-radius: var(--pill); background: rgba(242, 114, 44, .2); color: var(--orange-soft); font-size: .7rem; font-weight: 700; letter-spacing: .04em; }
.admin-side-foot { display: grid; gap: 6px; margin-top: auto; padding: 0 14px; font-size: .9rem; }
.admin-side-foot form { margin: 0; }
.admin-side-foot button { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; opacity: .75; }
.admin-side-foot a:hover, .admin-side-foot button:hover { color: var(--orange-soft); opacity: 1; }
.admin-main { width: 100%; max-width: 1180px; padding: clamp(28px, 4vw, 56px); }
.admin-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.admin-head .label { color: var(--muted); }
.admin-head h1 { margin: 0; font: 500 clamp(2.4rem, 4vw, 3.6rem)/1 var(--serif); letter-spacing: -.04em; color: var(--pine); }
.admin-sub { max-width: 60ch; margin: 12px 0 0; color: var(--muted); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { display: grid; gap: 4px; padding: 22px 24px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); transition: transform .25s var(--ease), border-color .2s; }
.stat-card:hover { transform: translateY(-3px); border-color: var(--ink); }
.stat-num { font: 500 2.8rem/1 var(--serif); color: var(--pine); }
.stat-card span:last-child { color: var(--muted); font-weight: 600; }
.stat-soon { border-style: dashed; background: transparent; }

.admin-panel { overflow: hidden; margin-bottom: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font: 600 1.3rem/1.2 var(--serif); }
.panel-head a { font-weight: 600; }
.panel-head a:hover { color: var(--orange); }
.mini-list { margin: 0; padding: 0; list-style: none; }
.mini-list li { display: flex; align-items: center; gap: 14px; padding: 14px 24px; border-top: 1px solid var(--line); }
.mini-list li:first-child { border-top: 0; }
.mini-list img { width: 36px; height: 36px; object-fit: cover; border-radius: 10px; }
.mini-list strong { flex: 1; }
.mini-list a { color: var(--muted); font-weight: 600; }
.mini-list a:hover { color: var(--ink); }

.status-pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--pill); font-size: .74rem; font-weight: 700; text-transform: capitalize; }
.status-published { color: #0b6b46; background: #dff1e6; }
.status-draft { color: #8a5519; background: #fdecd3; }
.status-hidden { color: #6d6661; background: #ebe7e2; }

.data-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.data-table th { padding: 12px 24px; text-align: left; color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.data-table td { padding: 14px 24px; border-top: 1px solid var(--line); }
.app-cell { display: flex; align-items: center; gap: 12px; }
.app-cell img { width: 40px; height: 40px; object-fit: cover; border-radius: 11px; }
.app-cell strong, .app-cell small { display: block; }
.app-cell small { color: var(--muted); }
.row-actions { display: flex; justify-content: flex-end; gap: 6px; }
.row-actions form { margin: 0; }

.admin-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 28px; }
.admin-form h2 { margin: 0; font: 600 1.6rem/1.2 var(--serif); }
.admin-form .full, .form-actions { grid-column: 1 / -1; }
.field { display: grid; align-content: start; gap: 6px; font-size: .86rem; font-weight: 700; }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid #c8cbc3;
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink);
  font: 400 .97rem/1.4 var(--sans);
  transition: border-color .2s, box-shadow .2s;
}
.field input[type="file"] { padding: 9px; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(242, 114, 44, .18); }
.hint { color: var(--muted); font-size: .8rem; font-weight: 400; }
.check { display: flex; align-items: center; gap: 10px; font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--pine); }
.signed-in { margin-bottom: 6px; font-size: .82rem; opacity: .75; }
.signed-in strong { display: block; color: #fff; opacity: 1; font-size: .92rem; }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 0 24px; }
.account-grid .admin-form { grid-template-columns: 1fr; }
.panel-empty { margin: 0; padding: 24px; color: var(--muted); }
.device-list .device-info { flex: 1; }
.device-info strong, .device-info small { display: block; }
.device-info small { color: var(--muted); }
.device-list form { margin: 0; }
.setup-sub { margin: 10px 0 0 !important; font: 600 1.25rem/1.2 var(--serif); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }

.notice { margin: 0 0 20px; padding: 14px 18px; border-radius: var(--r-md); background: #dfeee6; color: #154733; }
.notice.error { background: #fae3dc; color: #7a2216; }
.notice code { font-size: .9em; }

.filter-pills { display: flex; gap: 4px; padding: 4px; border-radius: var(--pill); background: rgba(11, 37, 51, .05); font-size: .82rem; font-weight: 600; color: var(--muted); }
.filter-pills span { padding: 5px 12px; border-radius: var(--pill); }
.filter-pills .is-on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(11, 37, 51, .15); }
.empty-state { max-width: 520px; margin: 0 auto; padding: 72px 24px; text-align: center; }
.empty-mark { color: var(--orange); font-size: 2rem; }
.empty-state h3 { margin: 10px 0 8px; font: 500 1.8rem/1.2 var(--serif); color: var(--pine); }
.empty-state p { margin: 0; color: var(--muted); }

.login-card, .setup-card { padding: clamp(28px, 5vw, 44px); border-radius: var(--r-xl); background: var(--card); box-shadow: 0 30px 60px -30px rgba(11, 37, 51, .35); }
.login-card { width: min(440px, calc(100% - 32px)); margin: 10vh auto; }
.login-card > img { width: 200px; margin-bottom: 28px; }
.login-card h1, .setup-card h1 { margin: 0 0 8px; color: var(--pine); font: 500 2.6rem/1 var(--serif); letter-spacing: -.035em; }
.login-card > p { margin: 0; color: var(--muted); }
.login-card form { display: grid; gap: 16px; margin: 26px 0 22px; }
.login-card .notice { margin: 18px 0 0; }
.setup-shell { width: min(720px, calc(100% - 32px)); margin: 48px auto; }
.setup-shell > img { width: 240px; margin: 0 0 24px 8px; }
.setup-card .admin-form { padding: 20px 0 0; }

@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; margin: 8px 8px 0; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px; }
  .admin-brand img { width: 140px; }
  .admin-nav { display: flex; overflow-x: auto; order: 3; width: 100%; }
  .admin-nav a { flex-shrink: 0; gap: 8px; }
  .admin-side-foot { display: flex; gap: 16px; margin: 0 0 0 auto; padding: 0; }
  .admin-form { grid-template-columns: 1fr; }
  .data-table th:nth-child(2), .data-table td:nth-child(2) { display: none; }
  .data-table td, .data-table th { padding-inline: 16px; }
  .row-actions { flex-wrap: wrap; }
}

/* ===== Support center (public) ===== */
.support-wrap { width: min(880px, 100% - var(--gutter) * 2); margin: clamp(28px, 4vw, 44px) auto 0; }
.support-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--pill); background: rgba(11, 37, 51, .06); }
.seg a, .seg button { padding: 8px 16px; border: 0; border-radius: var(--pill); background: none; color: inherit; font: 600 .9rem/1.2 var(--sans); cursor: pointer; transition: background .2s; }
.seg a:hover, .seg button:hover { background: rgba(11, 37, 51, .06); }
.seg [aria-current="page"], .seg [aria-pressed="true"] { background: var(--card); color: var(--pine); box-shadow: 0 1px 3px rgba(11, 37, 51, .15); }
.support-who { display: flex; align-items: center; gap: 12px; margin: 0; font-size: .9rem; color: var(--muted); }
.support-who > span { display: inline-flex; align-items: center; gap: 6px; }
.support-who button, .text-button { padding: 0; border: 0; background: none; color: var(--ink); font: 600 .9rem var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.support-who button:hover, .text-button:hover { color: var(--orange); }
.apple-mark { --logo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 170 170'%3E%3Cpath d='M150.4 130.3c-2.4 5.4-5.2 10.4-8.4 15-4.4 6.3-8 10.6-10.8 13-4.3 4-8.9 6-13.9 6.1-3.6 0-7.9-1-12.9-3.1-5-2-9.6-3.1-13.8-3.1-4.4 0-9.2 1-14.3 3.1-5.1 2.1-9.2 3.2-12.4 3.3-4.8.2-9.5-1.9-14.2-6.3-3-2.6-6.8-7.1-11.3-13.5-4.8-6.8-8.8-14.7-11.9-23.7-3.3-9.7-5-19.2-5-28.3 0-10.4 2.3-19.4 6.8-27 3.5-6.1 8.3-10.9 14.2-14.4 5.9-3.5 12.3-5.3 19.2-5.4 3.8 0 8.7 1.2 14.8 3.5 6.1 2.3 10 3.5 11.7 3.5 1.3 0 5.6-1.4 12.9-4.1 6.9-2.5 12.7-3.5 17.5-3.1 12.9 1 22.6 6.1 29.1 15.4-11.5 7-17.2 16.8-17.1 29.4.1 9.8 3.7 18 10.6 24.4 3.2 3 6.7 5.3 10.6 6.9-.8 2.4-1.7 4.7-2.7 6.9zM119.1 7.2c0 7.7-2.8 14.9-8.4 21.5-6.7 7.9-14.9 12.4-23.7 11.7-.1-.9-.2-1.9-.2-2.9 0-7.4 3.2-15.3 8.9-21.8 2.8-3.3 6.4-6 10.8-8.1 4.4-2.1 8.5-3.3 12.4-3.5.1 1 .2 2.1.2 3.1z'/%3E%3C/svg%3E"); display: inline-block; width: 14px; height: 17px; background: currentColor; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.apple-button { display: inline-block; line-height: 0; border-radius: 10px; transition: transform .2s var(--ease); }
.apple-button img { width: 300px; max-width: 100%; height: auto; }
.apple-button:hover { transform: translateY(-2px); }

.ticket-form { display: grid; gap: 20px; }
.form-step { margin: 0; padding: clamp(22px, 3vw, 30px); border: 0; border-radius: var(--r-lg); background: var(--card); box-shadow: 0 1px 2px rgba(11, 37, 51, .05); display: grid; gap: 16px; min-width: 0; }
.form-step legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 2px; font: 500 1.45rem/1.2 var(--serif); color: var(--pine); }
.step-num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--pine); color: var(--paper); font: 700 .85rem/1 var(--sans); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.app-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.pick-card, .pick-chip { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.pick-card:hover, .pick-chip:hover { border-color: rgba(11, 62, 48, .45); }
.pick-card input, .pick-chip input { position: absolute; opacity: 0; pointer-events: none; }
.pick-card:has(input:checked), .pick-chip:has(input:checked) { border-color: var(--pine); box-shadow: 0 0 0 3px rgba(11, 62, 48, .14); }
.pick-card:has(input:checked)::after, .pick-chip:has(input:checked)::after { content: "✓"; position: absolute; top: 8px; right: 10px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--pine); color: #fff; font-size: .7rem; font-weight: 800; }
.pick-card:has(input:focus-visible), .pick-chip:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 2px; }
.pick-card img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.pick-glyph, .row-glyph { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; background: var(--seaglass); color: var(--pine); font: 600 1.4rem var(--serif); }
.pick-card strong, .pick-card small, .pick-chip strong, .pick-chip small { display: block; }
.pick-card small, .pick-chip small { color: var(--muted); font-size: .82rem; line-height: 1.35; }
.type-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pick-chip { padding: 14px 40px 14px 16px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ticket-form .field input, .ticket-form .field textarea, .reply-box textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink); font: 400 1rem/1.5 var(--sans); transition: border-color .2s, box-shadow .2s; }
.ticket-form .field textarea, .reply-box textarea { field-sizing: content; min-height: 130px; resize: vertical; }
.reply-box textarea { min-height: 90px; }
.ticket-form .field input:focus, .ticket-form .field textarea:focus, .reply-box textarea:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 4px rgba(11, 62, 48, .12); }
.field [aria-invalid="true"] { border-color: #c2412d !important; }
.field-error { display: block; margin: 0; color: #a8321f; font-size: .85rem; font-weight: 600; }
.optional { color: var(--muted); font-weight: 400; font-size: .8rem; }

.drop { position: relative; }
.drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-zone { display: grid; justify-items: center; gap: 2px; padding: 22px; border: 1.5px dashed rgba(11, 37, 51, .25); border-radius: var(--r-md); color: var(--muted); text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.drop-zone strong { color: var(--pine); }
.drop-zone span { font-size: .88rem; }
.drop.is-over .drop-zone, .drop-zone:hover { border-color: var(--pine); background: rgba(11, 62, 48, .04); }
.drop input:focus-visible + .drop-zone { outline: 3px solid var(--orange); outline-offset: 2px; }
.drop-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.drop.has-files .drop-list { margin-top: 10px; }
.drop-list li { display: flex; align-items: center; gap: 8px; max-width: 240px; padding: 6px 8px 6px 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: .85rem; }
.drop-list img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.file-badge { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 6px; border-radius: 8px; background: var(--seaglass); color: var(--pine); font: 800 .65rem var(--sans); letter-spacing: .04em; }
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-name small { color: var(--muted); }
.file-remove { width: 24px; height: 24px; flex-shrink: 0; border: 0; border-radius: 50%; background: rgba(11, 37, 51, .07); color: var(--ink); font-size: 1rem; line-height: 1; cursor: pointer; }
.file-remove:hover { background: #fae3dc; color: #a8321f; }
.drop-compact .drop-zone { display: inline-flex; gap: 6px; padding: 8px 14px; border-radius: var(--pill); }
.drop-compact .drop-zone span { font-size: .82rem; }

.reply-to { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--seaglass); }
.reply-to .apple-mark { width: 18px; height: 22px; color: var(--ink); }
.reply-to strong, .reply-to small { display: block; }
.reply-to small { color: var(--muted); }
.apple-offer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.apple-offer p { margin: 0; color: var(--muted); max-width: 40ch; }
.apple-offer-card { margin-top: 32px; padding: 22px 24px; border: 0; border-radius: var(--r-lg); background: var(--seaglass); }
.apple-offer-card p { color: var(--ink); }
.form-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 4px 4px 0; }
.form-submit .button { min-height: 54px; padding-inline: 28px; font-size: 1rem; }
.button[disabled] { opacity: .6; cursor: progress; transform: none; }

.sent-banner { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 28px; padding: 22px 24px; border-radius: var(--r-lg); background: linear-gradient(135deg, #dff1e6, #e9f4ef); color: #154733; }
.sent-banner p { margin: 4px 0 0; }
.sent-check { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: #1b7a52; color: #fff; font-weight: 800; }

.thread-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.thread-head img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; }
.thread-head > div { flex: 1; min-width: 0; }
.thread-head h1 { margin: 0; color: var(--pine); font: 500 clamp(1.7rem, 3.4vw, 2.4rem)/1.1 var(--serif); letter-spacing: -.03em; }
.thread-meta { margin: 0 0 4px; color: var(--muted); font-size: .85rem; font-weight: 600; }
.ticket-status { flex-shrink: 0; padding: 5px 12px; border-radius: var(--pill); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.status-open { background: #fdecd3; color: #8a5519; }
.status-waiting { background: #dde9f4; color: #24527a; }
.status-resolved { background: #dff1e6; color: #0b6b46; }
.page-support .status-waiting { background: #fdecd3; color: #8a5519; } /* "Waiting on you" deserves the attention colour */
.page-support .status-open { background: #dde9f4; color: #24527a; }

.thread { display: grid; gap: 14px; margin: 0 0 24px; padding: 0; list-style: none; }
.bubble { max-width: min(640px, 88%); padding: 16px 18px; border-radius: 22px; background: var(--card); box-shadow: 0 1px 2px rgba(11, 37, 51, .06); }
.bubble.from-you, .bubble.from-admin { justify-self: end; border-bottom-right-radius: 8px; background: var(--pine); color: #eef3f0; }
.bubble.from-me, .bubble.from-customer { justify-self: start; border-bottom-left-radius: 8px; }
.bubble.is-note { justify-self: end; border-bottom-right-radius: 8px; background: #fff6d8; border: 1px dashed #d9b54a; }
.bubble-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 6px; font-size: .85rem; }
.bubble-head time { opacity: .65; font-size: .8rem; white-space: nowrap; }
.bubble-body p { margin: 0 0 10px; overflow-wrap: anywhere; }
.bubble-body p:last-child { margin-bottom: 0; }
.bubble-body a { text-decoration: underline; text-underline-offset: 2px; }
.attachments { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.attachments a { display: flex; align-items: center; gap: 8px; max-width: 260px; overflow: hidden; border-radius: 12px; background: rgba(255, 255, 255, .7); color: var(--ink); }
.attachments a:has(.file-badge) { padding: 6px 12px 6px 6px; font-size: .85rem; }
.attachments img { width: 160px; height: 110px; object-fit: cover; transition: transform .3s var(--ease); }
.attachments a:hover img { transform: scale(1.04); }
.note-tag { margin-left: 6px; padding: 2px 8px; border-radius: var(--pill); background: #f3dc8f; color: #6b5110; font-size: .7rem; font-weight: 700; }

.reply-box { display: grid; gap: 12px; padding: 18px; border-radius: var(--r-lg); background: var(--card); box-shadow: 0 1px 2px rgba(11, 37, 51, .06), 0 16px 32px -24px rgba(11, 37, 51, .4); }
.reply-note { margin: 0; color: var(--muted); font-size: .9rem; }
.reply-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.resolve-form { margin: 14px 4px 0; text-align: right; }

.empty-card { display: grid; justify-items: center; gap: 10px; padding: clamp(36px, 6vw, 64px) 24px; border-radius: var(--r-xl); background: var(--card); text-align: center; }
.empty-card h1, .empty-card h2 { margin: 0; color: var(--pine); font: 500 clamp(1.7rem, 3vw, 2.2rem)/1.15 var(--serif); }
.empty-card p { max-width: 46ch; margin: 0; color: var(--muted); }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 10px 0; }

.ticket-list, .inbox-list { display: grid; margin: 0; padding: 0; list-style: none; }
.ticket-list { gap: 10px; }
.ticket-row, .inbox-row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--card); transition: background .2s, transform .2s var(--ease); }
.ticket-row { border-radius: var(--r-md); box-shadow: 0 1px 2px rgba(11, 37, 51, .05); }
.ticket-row:hover { transform: translateY(-2px); background: #fff; }
.ticket-row img, .inbox-row img { width: 44px; height: 44px; flex-shrink: 0; border-radius: 11px; object-fit: cover; }
.ticket-row .row-glyph, .inbox-row .row-glyph { width: 44px; height: 44px; font-size: 1.2rem; }
.row-main { flex: 1; min-width: 0; }
.row-main strong, .row-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-main strong { font-weight: 600; }
.is-unread .row-main strong { font-weight: 800; }
.row-main small { color: var(--muted); }
.unread-dot { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--orange); vertical-align: 1px; }

/* App page help card */
.help-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.button-light-pine { background: var(--pine); color: var(--paper); }
.button-light-pine:hover { background: #0f4d3c; }

/* ===== Support (admin) ===== */
.inbox-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.inbox-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--pill); font-weight: 600; transition: background .2s; }
.inbox-tabs a:hover { background: rgba(11, 37, 51, .06); }
.inbox-tabs a[aria-current="page"] { background: var(--ink); color: #fff; }
.tab-count { min-width: 22px; padding: 1px 7px; border-radius: var(--pill); background: rgba(11, 37, 51, .08); font-size: .78rem; text-align: center; }
.inbox-tabs a[aria-current="page"] .tab-count { background: rgba(255, 255, 255, .18); }
.inbox-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.inbox-filters input, .inbox-filters select, .saved-pick select { min-height: 42px; padding: 8px 14px; border: 1px solid #c8cbc3; border-radius: var(--pill); background: #fff; color: var(--ink); font: 500 .92rem var(--sans); }
.search-field { flex: 1 1 280px; }
.search-field input { width: 100%; padding-left: 38px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2355686b' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E") 14px center no-repeat; }
.inbox-filters input:focus, .inbox-filters select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(242, 114, 44, .18); }
.clear-filters { font-weight: 600; color: var(--muted); }
.clear-filters:hover { color: var(--orange); }
.inbox-row { padding: 14px 22px; border-top: 1px solid var(--line); }
.inbox-list li:first-child .inbox-row { border-top: 0; }
.inbox-row:hover { background: #fff; }
.inbox-row.is-unread { background: #fffaf3; }
.row-tags { display: flex; gap: 6px; flex-shrink: 0; }
.tag-pill { padding: 3px 10px; border-radius: var(--pill); background: rgba(11, 37, 51, .06); font-size: .74rem; font-weight: 700; }
.tag-problem { background: #fae3dc; color: #8f2e1d; }
.tag-feature { background: #e9e3f7; color: #4b3a86; }
.tag-billing { background: #dff1e6; color: #0b6b46; }
.tag-high { background: #c2412d; color: #fff; }
.row-time { display: grid; justify-items: end; flex-shrink: 0; min-width: 92px; font-size: .85rem; }
.row-time small { color: var(--muted); font-size: .76rem; }

.ticket-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 20px 0 24px; }
.ticket-head .label { color: var(--muted); }
.ticket-head h1 { margin: 0; color: var(--pine); font: 500 clamp(1.9rem, 3.4vw, 2.8rem)/1.08 var(--serif); letter-spacing: -.03em; }
.ticket-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.thread-admin .bubble.from-customer { background: #fff; }
.thread-event { justify-self: center; color: var(--muted); font-size: .8rem; }
.thread-event span { padding: 4px 12px; border-radius: var(--pill); background: rgba(11, 37, 51, .05); }
.composer.is-note { background: #fffbea; box-shadow: 0 0 0 1.5px #e6c96a; }
.composer-mode { display: inline-flex; gap: 4px; justify-self: start; padding: 4px; border-radius: var(--pill); background: rgba(11, 37, 51, .06); }
.composer-mode label { cursor: pointer; }
.composer-mode input { position: absolute; opacity: 0; }
.composer-mode span { display: block; padding: 6px 14px; border-radius: var(--pill); font-size: .86rem; font-weight: 600; }
.composer-mode input:checked + span { background: var(--card); color: var(--pine); box-shadow: 0 1px 3px rgba(11, 37, 51, .15); }
.composer-mode input:focus-visible + span { outline: 3px solid var(--orange); }
.composer .only-note, .composer.is-note .only-reply { display: none; }
.composer.is-note .only-note { display: inline-flex; }
.composer-tools { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.reply-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.ticket-side { position: sticky; top: 16px; display: grid; gap: 14px; }
.side-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.side-card h2 { margin: 0 0 10px; font: 700 .74rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.side-card h2:not(:first-child) { margin-top: 18px; }
.side-card h3 { margin: 18px 0 8px; font: 600 1rem var(--serif); }
.side-card p { margin: 0 0 6px; }
.side-strong { font-weight: 700; }
.side-muted { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .88rem; }
.seg-full { display: flex; width: 100%; margin: 0; }
.seg-full button { flex: 1; padding: 8px 6px; font-size: .82rem; }
.side-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.side-list a { display: block; padding: 8px 10px; border-radius: 10px; }
.side-list a:hover { background: rgba(11, 37, 51, .05); }
.side-list span, .side-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-list small { color: var(--muted); font-size: .8rem; }
.details { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0 0 16px; font-size: .9rem; }
.details dt { color: var(--muted); }
.details dd { margin: 0; overflow-wrap: anywhere; }
.copy-link { width: 100%; }
.stat-alert { border-color: var(--orange); }
.stat-alert .stat-num { color: #c2531d; }
.check.full { grid-column: 1 / -1; }
.reply-list a { color: var(--muted); font-weight: 600; }

@media (max-width: 1000px) {
  .ticket-layout { grid-template-columns: 1fr; }
  .ticket-side { position: static; }
}
@media (max-width: 640px) {
  .field-row, .type-picker { grid-template-columns: 1fr; }
  .bubble { max-width: 94%; }
  .row-tags { display: none; }
  .inbox-row { padding: 12px 14px; }
  .row-time { min-width: 0; }
  .thread-head { flex-wrap: wrap; }
  .topbar nav a { padding: 8px 9px; font-size: .8rem; }
}

/* Site check */
.health-list li { align-items: flex-start; }
.health-mark { display: grid; place-items: center; width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; font-size: .8rem; font-weight: 800; }
.health-mark.is-ok { background: #dff1e6; color: #0b6b46; }
.health-mark.is-off { background: #fdecd3; color: #8a5519; }
.health-list small code, .test-result code { font-size: .85em; }
.test-result { padding: 0 28px 24px; }
.mail-error { margin: 0 0 12px; padding: 14px 16px; overflow-x: auto; border-radius: var(--r-sm); background: #1d2b30; color: #f3efe6; font-size: .85rem; white-space: pre-wrap; }
.health-list small strong { display: inline; }

/* Site text editor */
.panel-actions { display: flex; align-items: center; gap: 18px; font-size: .9rem; }
.panel-actions a { font-weight: 600; }
.text-fields { grid-template-columns: 1fr; }
.text-fields textarea { field-sizing: content; min-height: 70px; }
.edited-tag { margin-left: 6px; padding: 2px 8px; border-radius: var(--pill); background: #dde9f4; color: #24527a; font-size: .7rem; font-weight: 700; }
.save-bar { position: sticky; bottom: 12px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 22px; border-radius: var(--pill); background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(12px); box-shadow: 0 10px 30px -12px rgba(11, 37, 51, .35); }
a.now-pill { transition: background .2s, transform .2s var(--ease); }
a.now-pill:hover { background: rgba(3, 29, 30, .7); transform: translateY(-2px); }
