/* Tudimez marketing site v0.5 */
:root {
  --mint: #9BD8B4;
  --mint-soft: #DDF2E5;
  --mint-pale: #EDF8F1;
  --kelly: #1B7A43;
  --kelly-dark: #145F34;
  --ink: #1F2A24;
  --muted: #3E4B44;
  --line: #CFE3D6;
  --white: #FFFFFF;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--white); line-height: 1.5; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--kelly); outline-offset: 3px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 8px; font-weight: 700; font-size: 19px; padding: 15px 28px; border: 2px solid var(--kelly); transition: background .2s; }
.btn-primary { background: var(--kelly); color: var(--white); }
.btn-primary:hover { background: var(--kelly-dark); border-color: var(--kelly-dark); }
.btn-outline { background: var(--white); color: var(--kelly); }
.btn-outline:hover { background: var(--mint-pale); }
.btn-white { background: var(--white); color: var(--kelly-dark); border-color: var(--white); }
.btn-white:hover { background: var(--mint-pale); }

/* Header */
header { position: sticky; top: 0; z-index: 20; background: var(--white); box-shadow: 0 1px 0 var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 92px; }
.logo-img { height: 66px; width: auto; }
.menu { display: flex; align-items: center; gap: 38px; }
.menu a { font-size: 17px; font-weight: 600; color: var(--ink); }
.menu a:hover { color: var(--kelly); }
.menu .btn { color: var(--white); font-size: 18px; padding: 12px 26px; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle svg { width: 30px; height: 30px; fill: var(--ink); }

/* Hero */
.hero { position: relative; background: var(--mint); overflow: hidden; min-height: 540px; }
.hero::before { /* very subtle texture */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(255,255,255,.25), transparent 45%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 3; padding-top: 52px; padding-bottom: 52px; }
.hero-copy { max-width: 470px; }
.hero h1 { font-size: 54px; line-height: 1.08; font-weight: 800; letter-spacing: -0.5px; }
.checks { list-style: none; margin: 28px 0 32px; }
.checks li { display: flex; align-items: center; gap: 12px; font-size: 20px; margin-bottom: 10px; }
.ico-check { flex: 0 0 26px; width: 26px; height: 26px; fill: var(--kelly); }
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* Diagonal portrait collage */
.collage { position: absolute; top: 0; bottom: 0; right: -60px; width: 64%; z-index: 1; display: flex; gap: 8px; }
.slice { position: relative; flex: 1; overflow: hidden; transform: skewX(-14deg); background: var(--mint-soft); }
.slice img { position: absolute; top: 0; left: -40%; width: 180%; height: 100%; object-fit: cover; object-position: center 20%; transform: skewX(14deg); transform-origin: top; }
.collage::after { /* fade left edge and bottom into mint */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--mint) 0%, rgba(155,216,180,0) 14%),
    linear-gradient(0deg, var(--mint) 0%, rgba(155,216,180,0) 30%);
}
.hero-preview { position: absolute; z-index: 2; right: 15%; bottom: 22px; width: 34%; max-width: 440px; border-radius: 10px; box-shadow: 0 18px 40px rgba(0,0,0,.28); border: 4px solid var(--white); }

/* Sections */
section { padding: 72px 0; }
.section-title { text-align: center; font-size: 44px; font-weight: 800; letter-spacing: -0.4px; }
.section-sub { text-align: center; font-size: 21px; color: var(--muted); margin-top: 8px; }

/* Industry cards */
.industries { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; margin-top: 40px; }
.card { border: 2px solid var(--line); border-radius: 8px; padding: 22px 10px 24px; text-align: center; background: var(--white); }
.card svg { width: 54px; height: 54px; fill: var(--kelly); margin: 0 auto 12px; }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.card p { font-size: 15px; color: var(--muted); line-height: 1.35; }

/* Benefits band */
.benefits { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; background: var(--mint-pale); border-radius: 12px; padding: 34px 44px; }
.benefits .big-ico { width: 100px; height: 100px; fill: var(--kelly); }
.benefits h2 { font-size: 34px; font-weight: 800; line-height: 1.15; }
.benefits .lead { font-size: 21px; margin-top: 6px; }
.benefits ul { list-style: none; }
.benefits li { display: flex; align-items: center; gap: 10px; font-size: 18px; margin: 6px 0; }

/* Final CTA */
.final { background: var(--kelly); color: var(--white); border-radius: 12px; padding: 30px 52px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.final h2 { font-size: 40px; font-weight: 800; line-height: 1.1; }
.final p { font-size: 21px; margin-top: 6px; }
.final .btn { font-size: 21px; padding: 16px 30px; }
.final .btn svg { width: 22px; height: 22px; fill: var(--kelly-dark); }
.fine { font-size: 13px; color: var(--muted); text-align: center; margin: 20px auto 0; max-width: 780px; }

footer { border-top: 1px solid var(--line); padding: 26px 0; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* Responsive */
@media (max-width: 1180px) {
  .menu { gap: 24px; }
  .hero h1 { font-size: 46px; }
  .collage { width: 60%; }
  .industries { grid-template-columns: repeat(4, 1fr); }
  .benefits { grid-template-columns: auto 1fr; }
  .benefits ul { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav { height: 76px; }
  .logo-img { height: 52px; }
  .menu { display: none; }
  .menu-toggle { display: block; }
  .menu.open { display: flex; flex-direction: column; align-items: flex-start; position: absolute; top: 76px; left: 0; right: 0; background: var(--white); padding: 18px 32px 24px; gap: 16px; box-shadow: 0 8px 16px rgba(0,0,0,.08); }
  .hero { min-height: 0; }
  .hero .wrap { padding-bottom: 0; }
  .hero-copy { max-width: none; }
  .collage { position: relative; right: auto; width: auto; height: 330px; margin: 36px -40px 0 -20px; }
  .hero-preview { right: 50%; transform: translateX(50%); width: 62%; bottom: 16px; }
  .hero-media { position: relative; }
  .section-title { font-size: 34px; }
  .final { flex-direction: column; align-items: flex-start; padding: 30px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .hero h1 { font-size: 36px; }
  .checks li { font-size: 17px; }
  .cta-row .btn { width: 100%; justify-content: center; }
  .collage { height: 250px; gap: 5px; }
  .collage .slice:nth-child(5) { display: none; }
  .hero-preview { width: 78%; }
  .industries { grid-template-columns: repeat(2, 1fr); }
  .section-title { font-size: 28px; }
  .section-sub { font-size: 17px; }
  .benefits { grid-template-columns: 1fr; padding: 28px 22px; text-align: left; }
  .benefits .big-ico { width: 70px; height: 70px; }
  .benefits h2 { font-size: 27px; }
  .final h2 { font-size: 30px; }
  .final .btn { width: 100%; justify-content: center; }
}

/* fixes after render check */
img { height: auto; }
.slice img { height: 100%; }
.hero-copy { max-width: 540px; }
.hero-preview { width: 36%; max-width: 480px; right: 12%; bottom: 26px; }
.collage { width: 60%; }
@media (max-width: 900px) {
  .hero-preview { width: 66%; max-width: none; right: 50%; bottom: 14px; }
}
@media (max-width: 560px) {
  .hero-preview { width: 82%; }
}
.hero::before { display: none; }
.collage { gap: 0; }
.slice { background: transparent; }
.slice + .slice { border-left: 6px solid var(--white); }
.slice img { left: -70%; width: 240%; }
@media (max-width: 560px) { .slice + .slice { border-left-width: 4px; } }
.slice img { max-width: none; }
.collage { right: -10px; width: 62%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 13%);
          mask-image: linear-gradient(90deg, transparent 0, #000 13%); }
.collage::after { background: linear-gradient(0deg, var(--mint) 0%, rgba(155,216,180,0) 28%); }
@media (max-width: 900px) {
  .collage { right: auto; width: auto; -webkit-mask-image: none; mask-image: none; }
}
.collage { right: -40px; }
@media (max-width: 900px) {
  .collage { right: auto; height: 360px; }
  .hero-preview { position: relative; right: auto; bottom: auto; transform: none; width: 70%; margin: -90px auto 28px; }
}
@media (max-width: 560px) {
  .collage { height: 290px; }
  .hero-preview { width: 86%; margin-top: -60px; }
}

/* ---- v0.6: full-window width everywhere, transparent device mockup ---- */
.wrap { max-width: none; padding-left: 5vw; padding-right: 5vw; }

/* Industry cards span the full window */
.industries { gap: 1.2vw; }
.card { padding: 2vw 12px; }
.card svg { width: clamp(48px, 3.6vw, 72px); height: clamp(48px, 3.6vw, 72px); }
.card h3 { font-size: clamp(17px, 1.2vw, 22px); }
.card p { font-size: clamp(14px, .95vw, 17px); }
.section-title { font-size: clamp(30px, 2.8vw, 52px); }
.section-sub { font-size: clamp(17px, 1.25vw, 23px); }

/* Benefits and CTA bands run edge to edge */
#features .wrap, #pricing .wrap { padding-left: 0; padding-right: 0; }
.benefits, .final { border-radius: 0; padding-left: 5vw; padding-right: 5vw; }
.benefits { padding-top: 44px; padding-bottom: 44px; gap: 3vw; }
.benefits .big-ico { width: clamp(80px, 6vw, 120px); height: clamp(80px, 6vw, 120px); }
.benefits h2 { font-size: clamp(26px, 2.2vw, 42px); }
.benefits .lead { font-size: clamp(18px, 1.3vw, 24px); }
.benefits li { font-size: clamp(16px, 1.15vw, 21px); }
.final { padding-top: 44px; padding-bottom: 44px; }
.final h2 { font-size: clamp(28px, 2.5vw, 48px); }
.final p { font-size: clamp(17px, 1.3vw, 24px); }
.fine { padding: 0 5vw; }

@media (max-width: 900px) {
}
@media (max-width: 560px) {
  .card { padding: 20px 10px; }
}

/* ---- v0.7: hero restored to v0.5 layout; transparent device image kept ---- */
.hero .wrap { max-width: 1280px; padding-left: 32px; padding-right: 32px; }
.hero-preview { border: 0; border-radius: 0; box-shadow: none; filter: drop-shadow(0 16px 22px rgba(0,0,0,.30)); }
@media (max-width: 560px) { .hero .wrap { padding-left: 20px; padding-right: 20px; } }

/* ---- v0.8: owner area ---- */
.slice img { transform-origin: 50% 0; }
.owner-bar { background: var(--ink); color: var(--white); }
.owner-bar-inner { display: flex; align-items: center; gap: 18px; height: 56px; font-size: 15px; }
.owner-bar-inner a { margin-left: auto; color: var(--mint); font-weight: 600; }
.owner-panel { padding: 36px 0 60px; }
.owner-help { font-size: 17px; margin-bottom: 22px; }
.owner-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.owner-card { border: 2px solid var(--line); border-radius: 8px; padding: 14px; background: var(--white); }
.owner-thumb { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; margin-bottom: 10px; }
.owner-thumb img { width: 100%; height: 100%; object-fit: cover; }
.owner-card h3 { font-size: 17px; margin-bottom: 8px; }
.owner-card label { display: block; font-size: 14px; font-weight: 600; margin-top: 10px; }
.owner-card output { float: right; font-weight: 400; color: var(--muted); }
.owner-card input[type=range] { width: 100%; accent-color: var(--kelly); margin-top: 6px; }
.owner-actions { display: flex; align-items: center; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.owner-actions button { cursor: pointer; font-family: inherit; }
#owner-status { font-weight: 600; color: var(--kelly); }
#owner-status.is-error { color: #B42318; }
@media (max-width: 1100px) { .owner-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .owner-grid { grid-template-columns: 1fr 1fr; } }

/* ---- v0.9: dime logo ---- */
.logo-img { height: 76px; }
@media (max-width: 900px) { .logo-img { height: 54px; } }


/* v0.10: linked industry cards + template showroom */
a.card { display: block; color: inherit; text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
a.card:hover { border-color: var(--kelly); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.center-link { text-align: center; margin-top: 28px; }
.showroom { padding: 56px 0 72px; }
.show-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 40px; }
.show-card { border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--white); display: flex; flex-direction: column; }
.show-shot { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #111; }
.show-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .35s; }
.show-shot:hover img { transform: scale(1.04); }
.show-tag { position: absolute; left: 10px; top: 10px; background: rgba(0,0,0,.72); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 4px 10px; border-radius: 99px; }
.show-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.show-body h2 { font-size: 20px; }
.show-body p { color: var(--muted); font-size: 15px; line-height: 1.4; flex: 1; }
.show-body .btn { align-self: flex-start; margin-top: 6px; }
@media (max-width: 1100px) { .show-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .show-grid { grid-template-columns: 1fr; } }

/* v0.32: template-request line and contact page */
.template-request { text-align: center; margin-top: 28px; font-size: clamp(16px, 1.2vw, 20px); color: var(--muted); }
.template-request a { color: var(--kelly); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.template-request a:hover { color: var(--kelly-dark); }
.contact-page { padding: 56px 0 72px; }
.form-card { max-width: 640px; margin: 32px auto 0; background: var(--mint-pale); border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: grid; gap: 8px; }
.form-card label { font-weight: 700; margin-top: 8px; }
.form-card input, .form-card select, .form-card textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); }
.form-card textarea { resize: vertical; min-height: 140px; }
.form-card .btn { justify-self: start; margin-top: 16px; cursor: pointer; }
.form-card .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-err { background: #FDECEC; border: 1px solid #E5A3A3; color: #7A1F1F; padding: 10px 14px; border-radius: 8px; }
.form-ok { text-align: center; justify-items: center; }
.form-ok h2 { font-size: 28px; }
@media (max-width: 560px) { .form-card { padding: 20px; } .form-card .btn { justify-self: stretch; justify-content: center; } }

/* v0.33: owner login, logout, change password */
.pw-hint { font-size: 14px; color: var(--muted); }
.owner-logout { margin: 0 0 0 4px; }
.owner-logout button { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.45); border-radius: 6px; padding: 7px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.owner-logout button:hover { background: rgba(255,255,255,.12); }
.owner-flash { background: var(--mint-pale); border: 1px solid var(--line); color: var(--kelly-dark); font-weight: 600; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }
.owner-change { margin-top: 36px; }
.owner-change summary { cursor: pointer; font-weight: 700; font-size: 17px; color: var(--kelly-dark); }
.owner-change .form-card { margin-left: 0; margin-top: 16px; }
@media (max-width: 640px) { .owner-bar-inner { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px 14px; } .owner-bar-inner a { margin-left: 0; } }

/* v0.34: owner area upgrade */
.owner-nav { display: flex; gap: 18px; margin-left: 14px; }
.owner-bar-inner .owner-nav a { margin-left: 0; color: var(--white); font-weight: 600; opacity: .8; }
.owner-bar-inner .owner-nav a[aria-current="page"], .owner-bar-inner .owner-nav a:hover { opacity: 1; border-bottom: 2px solid var(--mint); }
.owner-bar-inner .owner-home { margin-left: auto; }
.owner-dot { color: #FF8A80; font-size: 12px; vertical-align: middle; }
.owner-h1 { font-size: clamp(28px, 2.4vw, 40px); margin-bottom: 14px; }
.owner-h2 { font-size: clamp(20px, 1.6vw, 26px); margin: 40px 0 8px; padding-top: 22px; border-top: 1px solid var(--line); }
.owner-wide { max-width: 640px; margin-left: 0; }
.owner-inline-form { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.owner-inline-form button { cursor: pointer; font-family: inherit; }
.owner-alert { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.owner-alert form.inline { margin: 0; }
.btn.sm { padding: 8px 16px; font-size: 15px; cursor: pointer; font-family: inherit; }
.owner-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0 12px; }
.owner-stat { border: 2px solid var(--line); border-radius: 8px; padding: 14px; font-size: 14px; color: var(--muted); background: var(--white); }
.owner-stat b { display: block; font-size: 30px; color: var(--ink); line-height: 1.1; }
.owner-table-wrap { overflow-x: auto; max-width: 100%; }
.owner-table { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 560px; }
.owner-table th, .owner-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.owner-table th { background: var(--mint-pale); }
.owner-pill { display: inline-block; padding: 2px 10px; border-radius: 99px; background: var(--mint-soft); color: var(--kelly-dark); font-weight: 600; white-space: nowrap; }
.owner-pill.bad { background: #FDECEC; color: #7A1F1F; }
.owner-logout-solo { text-align: center; margin-top: 18px; }
.owner-logout-solo button { background: transparent; border: 1px solid var(--line); border-radius: 6px; padding: 8px 16px; font: inherit; cursor: pointer; color: var(--muted); }
@media (max-width: 900px) { .owner-stats { grid-template-columns: repeat(2, 1fr); } .owner-nav { margin-left: 0; } }
@media (max-width: 640px) { .owner-bar-inner .owner-home { margin-left: 0; } }

/* v0.35: site editor (customer /admin) */
.site-group { border: 2px solid var(--line); border-radius: 10px; margin: 14px 0; background: var(--white); }
.site-group > summary { cursor: pointer; padding: 14px 18px; font-weight: 800; font-size: 18px; color: var(--kelly-dark); list-style-position: inside; }
.site-count { font-weight: 400; font-size: 14px; color: var(--muted); margin-left: 8px; }
.site-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; padding: 4px 18px 18px; }
.site-field { display: grid; gap: 5px; align-content: start; }
.site-field label { font-weight: 700; font-size: 14px; }
.site-field input[type=text], .site-field input[type=email], .site-field input[type=url], .site-field textarea, .site-image input[type=text], .site-image select, .site-image input[type=file], .owner-wide select { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); }
.site-field textarea { resize: vertical; }
.site-check { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.site-check input { width: 20px; height: 20px; accent-color: var(--kelly); }
.is-locked, .is-locked input, .is-locked textarea, .is-locked select { opacity: .6; }
.site-lock { font-size: 13px; font-weight: 700; color: #8a5a00; }
.site-savebar { position: sticky; bottom: 0; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); padding: 12px 0; margin-top: 18px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; z-index: 5; }
.site-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; margin-top: 18px; }
.site-image { border: 2px solid var(--line); border-radius: 10px; padding: 14px; background: var(--white); display: grid; gap: 8px; align-content: start; }
.site-image h3 { font-size: 17px; }
.site-image label { font-size: 13px; font-weight: 700; display: grid; gap: 4px; }
.site-thumb { aspect-ratio: 16 / 10; background: var(--mint-pale); border-radius: 8px; overflow: hidden; display: grid; place-items: center; color: var(--muted); }
.site-thumb img { width: 100%; height: 100%; object-fit: contain; }
.site-thumb.is-art { background: repeating-conic-gradient(#e9efe9 0% 25%, #fff 0% 50%) 50% / 16px 16px; }
.site-image-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.site-schemes { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-top: 16px; }
.site-scheme { border: 2px solid var(--line); border-radius: 10px; padding: 14px; text-align: center; display: grid; gap: 10px; justify-items: center; background: var(--white); }
.site-scheme.is-active { border-color: var(--kelly); box-shadow: 0 0 0 2px var(--mint); }
.site-swatches { display: flex; width: 100%; height: 38px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.site-swatches i { flex: 1; }
.form-card input.site-colour, .site-colour { width: 90px; height: 46px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.btn[disabled], button[disabled] { cursor: not-allowed; opacity: .55; }
.owner-table tr.is-locked td { color: var(--muted); }
@media (max-width: 760px) { .site-fields { grid-template-columns: 1fr; } }

/* ---- v0.36: site editor with a left sidebar ---- */
.ed-top { background: var(--ink); color: var(--white); display: flex; align-items: center; gap: 18px; min-height: 52px; padding: 8px 20px; font-size: 15px; }
.ed-top strong { margin-right: auto; }
.ed-top-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ed-top-nav a { color: var(--white); font-weight: 600; opacity: .85; }
.ed-top-nav a:hover, .ed-top-nav a[aria-current="page"] { opacity: 1; border-bottom: 2px solid var(--mint); }
.ed-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: calc(100vh - 52px); align-items: stretch; }
.ed-side { min-width: 0; background: var(--mint-pale); border-right: 1px solid var(--line); padding: 18px 14px 28px; }
.ed-side nav { position: sticky; top: 14px; }
.ed-logo { display: block; margin: 0 6px 14px; }
.ed-logo img { display: block; width: 150px; height: auto; }
.ed-group { margin: 16px 8px 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ed-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; margin-bottom: 2px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: 16px; border: 0; text-decoration: none; }
.ed-item:hover { background: var(--mint-soft); }
.ed-item.is-active { background: var(--kelly); color: var(--white); }
.ed-tag { font-style: normal; font-size: 11px; font-weight: 700; background: var(--mint); color: var(--ink); border-radius: 999px; padding: 2px 8px; }
.ed-item.is-active .ed-tag { background: var(--white); }
.ed-main { min-width: 0; }
.ed-version { margin: 40px 0 0; padding: 14px 36px 20px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
@media (max-width: 860px) { .ed-version { padding-left: 18px; padding-right: 18px; } }
.ed-main .owner-panel { padding-top: 28px; }
.ed-main .owner-panel .wrap { max-width: 980px; margin: 0; padding-left: 36px; padding-right: 36px; }
@media (max-width: 860px) {
  .ed-shell { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .ed-side { border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 10px 8px; position: sticky; top: 0; z-index: 20; }
  .ed-logo, .ed-group { display: none; }
  .ed-side nav { position: static; max-width: 100%; display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .ed-item { flex: 0 0 auto; white-space: nowrap; margin: 0; padding: 9px 14px; }
  .ed-main .owner-panel .wrap { padding-left: 18px; padding-right: 18px; }
  .ed-top { padding: 8px 14px; gap: 8px 14px; flex-wrap: wrap; }
  .ed-top strong { width: 100%; }
}

/* ---- v0.36: font picker, visitors, messages ---- */
.site-fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 14px; }
.site-font { border: 2px solid var(--line); border-radius: 10px; padding: 16px; background: var(--white); display: grid; gap: 8px; align-content: start; }
.site-font.is-active { border-color: var(--kelly); box-shadow: 0 0 0 2px var(--mint); }
.site-font h3 { font-size: 16px; }
.site-font .fp-head { font-size: 26px; line-height: 1.15; }
.site-font .fp-body { font-size: 15px; line-height: 1.4; color: var(--muted); }
.site-font .fp-note { font-size: 14px; color: var(--muted); }
.ed-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 14px 0 22px; }
.ed-stat { border: 2px solid var(--line); border-radius: 10px; padding: 14px; background: var(--white); }
.ed-stat b { display: block; font-size: 30px; line-height: 1.1; }
.ed-stat span { font-size: 14px; color: var(--muted); }
.ed-chart { border: 2px solid var(--line); border-radius: 10px; padding: 12px; background: var(--white); }
.ed-chart svg { display: block; width: 100%; height: auto; }
.ed-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ed-two > div { min-width: 0; }
.ed-two .owner-table { width: 100%; }
.ed-two .owner-table td { overflow-wrap: anywhere; }
.ed-privacy { background: var(--mint-pale); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 18px 0; font-size: 15px; }
.ed-msg { border: 2px solid var(--line); border-radius: 10px; padding: 14px 16px; background: var(--white); margin-top: 12px; }
.ed-msg.is-new { border-color: var(--kelly); }
.ed-msg header { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; justify-content: space-between; margin-bottom: 6px; padding: 0; background: none; box-shadow: none; position: static; }
.ed-msg p { white-space: pre-wrap; overflow-wrap: anywhere; }
.ed-msg .ed-meta { font-size: 14px; color: var(--muted); }
.ed-msg form { margin-top: 10px; }
@media (max-width: 700px) { .ed-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ed-two { grid-template-columns: minmax(0, 1fr); } }

/* ---- v0.37: sign-up page, terms, customers ---- */
.start-card { max-width: 820px; }
.pick { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
.pick legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.pick-card { display: block; position: relative; margin: 0; border: 2px solid var(--line); border-radius: 10px; background: var(--white); overflow: hidden; cursor: pointer; font-weight: 600; }
.pick-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick-card img { display: block; width: 100%; height: auto; }
.pick-card span { display: block; padding: 8px 10px; font-size: 15px; }
.pick-card:has(input:checked) { border-color: var(--kelly); box-shadow: 0 0 0 3px var(--mint); }
.pick-card:has(input:focus-visible) { outline: 3px solid var(--kelly); outline-offset: 2px; }
.form-card .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; margin-top: 14px; }
.form-card .check input { width: auto; margin-top: 4px; }
.start-steps { text-align: left; max-width: 420px; margin: 12px auto 18px; padding-left: 22px; }
.terms { max-width: 760px; margin: 28px auto 0; }
.terms h2 { font-size: 22px; margin: 26px 0 8px; }
.terms p { margin-bottom: 10px; line-height: 1.6; }
.owner-pill.warn { background: #FFF3D6; color: #7A5200; }
.owner-pill.muted { background: #ECEFEC; color: var(--muted); }
details.cust { margin-top: 10px; }
.cust-body { padding: 4px 0 6px; display: grid; gap: 10px; }
.cust-meta { overflow-wrap: anywhere; }
.cust-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cust-actions form { margin: 0; display: flex; gap: 8px; align-items: center; }
.cust-actions select { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.cust-more > summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.cust-check { width: 100%; font: 14px/1.5 ui-monospace, Menlo, Consolas, monospace; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.cust-hist { list-style: none; display: grid; gap: 4px; font-size: 14px; }
.cust-hist span { color: var(--muted); margin-right: 8px; }
.owner-wide label { display: block; font-weight: 700; margin-top: 8px; }

/* ---- v0.38: owner dashboard ---- */
a.ed-stat-link { display: block; color: inherit; text-decoration: none; }
a.ed-stat-link:hover { border-color: var(--kelly); }
.dash-table { min-width: 0; }
.dash-table td { vertical-align: middle; }
.dash-table td:last-child { text-align: right; }
.dash-table td.dash-when { white-space: nowrap; color: var(--muted); }
.dash-links { display: flex; flex-wrap: wrap; gap: 10px; }
.ed-main .hero .wrap { max-width: 1280px; }

.opt-list{display:grid;gap:6px}
.form-card label.opt{font-weight:400;display:block;margin-top:4px}
.form-card label.opt input{width:auto;display:inline;margin-right:6px}
.form-card label.opt span{color:var(--muted,#5b6470);font-size:.92em;display:block;margin-left:26px}
.form-card input[type=range]{padding:0}
.pg-list{list-style:none;padding:0;margin:0 0 24px;display:grid;gap:10px;max-width:760px}
.pg-list li{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:var(--white)}
.pg-list-name span{display:block;color:var(--muted,#5b6470);font-size:.92em}
.pg-list-act{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.pg-list-act form{margin:0}
.pg-row{display:grid;grid-template-columns:1.2fr 2fr .7fr;gap:8px}
.pg-row input{margin:0}
@media(max-width:640px){.pg-row{grid-template-columns:1fr}}
.pg-thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,150px));gap:12px;align-items:start}
.pg-thumb img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:0;display:block;margin-bottom:6px}
.pg-thumb input[type=text],.pg-thumb input:not([type]){margin-bottom:4px;font-size:.9em;padding:8px}

/* ------------------------------------------------------------------ photo library (v0.48) */
.pg-thumb-name{font-size:.85em;opacity:.75;margin:0 0 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pg-thumb-use{font-size:.82em;opacity:.8;margin:2px 0 6px}
label.pg-thumb{display:block;cursor:pointer}
label.pg-thumb span{display:block;font-size:.88em}
.pg-none{display:flex;align-items:center;justify-content:center;aspect-ratio:1/1;border:1px dashed rgba(127,127,127,.5);border-radius:0}
.pg-del{display:inline-block}
.pg-del summary{cursor:pointer;display:inline-block;padding:6px 12px;border:1px solid rgba(127,127,127,.5);border-radius:6px;font-size:.9em}
.pg-del[open]{display:block;margin-top:6px}
.pg-del p{margin:6px 0;font-size:.88em}
.pw-count{font-size:.6em;opacity:.7;font-weight:400}

/* ------------------------------------------------------------------ cleaner form controls (v0.49) */
.form-card input[type=radio],.form-card input[type=checkbox]{width:auto;padding:0;margin:0;flex:none}
.opt-list{display:grid;gap:8px;margin:6px 0 14px}
.form-card .opt-list label.opt{display:grid;grid-template-columns:22px 1fr;column-gap:12px;align-items:start;margin:0;padding:14px 16px;border:1px solid var(--line);background:var(--white);cursor:pointer}
.form-card .opt-list label.opt:hover{border-color:var(--green,#1b7a46)}
.form-card .opt-list label.opt:has(input:checked){border-color:var(--green,#1b7a46);box-shadow:inset 0 0 0 1px var(--green,#1b7a46)}
.form-card .opt-list label.opt input{grid-row:1/3;margin-top:3px;display:block}
.form-card .opt-list label.opt b{grid-column:2;font-weight:700}
.form-card .opt-list label.opt span{grid-column:2;margin-left:0;color:var(--muted,#5b6470);font-size:.92em}
label.pg-thumb span{display:flex;align-items:center;gap:6px}
.pg-thumb label.opt{display:flex;align-items:center;gap:6px;font-size:.88em}
.pg-thumbs.pg-pick label.pg-thumb:has(input:checked) img{outline:3px solid var(--green,#1b7a46);outline-offset:-3px}

/* ---- v0.51: sticky top bar with one Save button, slimmer editors ---- */
.ed-top { position: sticky; top: 0; z-index: 60; }
.ed-side nav { top: 66px; }
.ed-save { background: var(--mint); color: var(--ink); border: 0; border-radius: 6px; font: inherit; font-weight: 700; font-size: 14px; padding: 7px 18px; cursor: pointer; }
.ed-save:hover:not([disabled]) { background: var(--white); }
.ed-save[disabled] { opacity: .45; cursor: default; }
.ed-save[hidden] { display: none; }
.ed-save-note { font-size: 13px; opacity: .9; }
.ed-save-note.is-bad { color: #ffb4a8; font-weight: 700; opacity: 1; }
.ed-has-save .ed-main form[data-ed-save]:not([data-ed-keep]) button[type=submit] { display: none; }
.ed-main .btn { font-size: 14px; padding: 7px 14px; border-width: 1px; border-radius: 6px; gap: 6px; }
.ed-main .btn.sm { font-size: 13px; padding: 5px 11px; }
.ed-main .form-card { margin-top: 10px; padding: 16px 18px; gap: 4px; border-radius: 8px; }
.ed-main .form-card label { margin-top: 4px; font-size: 14px; }
.ed-main .form-card input, .ed-main .form-card select, .ed-main .form-card textarea { padding: 8px 10px; font-size: 15px; }
.ed-main .form-card .btn { margin-top: 8px; }
.ed-main .owner-h1 { font-size: 28px; margin-bottom: 10px; }
.ed-main .owner-h2 { font-size: 19px; margin: 24px 0 6px; padding-top: 14px; }
.ed-main .ed-stat { padding: 10px 12px; }
.ed-main .ed-stat b { font-size: 24px; }
.ed-main .cust-actions { gap: 6px; }
.ed-settings { display: grid; gap: 8px; margin: 18px 0 8px; }
.ed-panel { border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.ed-panel > summary { cursor: pointer; padding: 10px 14px; font-weight: 700; font-size: 16px; list-style-position: inside; }
.ed-panel[open] > summary { border-bottom: 1px solid var(--line); }
.ed-panel > :not(summary) { margin-left: 14px; margin-right: 14px; }
.ed-panel > .pw-hint:first-of-type { margin-top: 10px; }
.ed-panel > form:last-child, .ed-panel > .owner-table-wrap:last-child { margin-bottom: 14px; }
@media (max-width: 860px) { .ed-side { position: static; } .ed-top { gap: 6px 12px; } }

/* v0.52 */
.ed-newsignup{display:block;margin:0 0 16px;padding:14px 18px;border-radius:10px;background:#ffd600;color:#1b1b1b;font-size:1.05rem;text-decoration:none;border:2px solid #e0b800;box-shadow:0 2px 8px rgba(0,0,0,.15)}
.ed-newsignup:hover{background:#ffe53b}

/* Owner > Customers: search bar, table, paging (0.55) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.cust-search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0; }
.cust-search input[type=search] { flex: 1 1 260px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.cust-search select { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; }
.cust-table { min-width: 720px; }
.cust-table td a { text-decoration: none; }
.cust-table td a:hover b { text-decoration: underline; }
.cust-pages { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 16px 0; }
.cust-count { margin: 12px 0 6px; }

/* Blank page editor: tabs, code box, picture insert (0.55.1) */
.pg-tabs { display: flex; gap: 4px; margin: 14px 0 0; border-bottom: 2px solid var(--line); }
.pg-tabs button { font: inherit; font-weight: 600; padding: 10px 18px; border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; background: var(--mint-pale); cursor: pointer; margin-bottom: -2px; }
.pg-tabs button.is-on { background: #fff; border-bottom: 2px solid #fff; }
.pg-panel { padding-top: 6px; }
.pg-panel[hidden] { display: none; }
.pg-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; font-size: 14px; line-height: 1.5; min-height: 280px; tab-size: 2; white-space: pre; overflow: auto; }
.pg-quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.pg-insert { margin: 8px 0; }
.pg-ins { display: block; cursor: pointer; border: 1px solid var(--line); background: #fff; padding: 4px; border-radius: 8px; font: inherit; text-align: center; }
.pg-ins:hover, .pg-ins:focus-visible { border-color: var(--accent, #1a7f5a); outline: 2px solid var(--accent, #1a7f5a); }
.pg-ins span { display: block; font-size: .85em; font-weight: 600; padding-top: 2px; }
.pg-upload { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 12px; }
.pg-upload input[type=file] { width: auto; padding: 6px; }
.pg-preview { width: 100%; min-height: 380px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

/* /start: get-your-own-domain callout (0.56) */
.domain-callout { border: 2px solid var(--accent, #1a7f5a); background: #fff; border-radius: 12px; padding: 16px 18px; margin: 18px 0 10px; }
.domain-callout p { margin: 0 0 .6em; }
.domain-callout p:last-child { margin-bottom: 0; }
.domain-callout-title { font-weight: 800; font-size: 1.15em; }
.domain-callout-link { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; color: var(--accent, #1a7f5a); }
.domain-callout-link:hover, .domain-callout-link:focus-visible { text-decoration-thickness: 3px; }
.domain-todo { border: 2px solid #c98a00; background: #fff8e6; border-radius: 10px; padding: 12px 14px; margin: 10px 0; }
.domain-todo p { margin: 0 0 .5em; }

/* customer editor: download, connect domain (0.56) */
.download-lead { font-size: 1.1em; margin: 6px 0 14px; }
.download-btn { font-size: 1.15em; padding: 16px 28px; }
.download-list { margin: 8px 0 14px 1.2em; line-height: 1.7; }
.domain-checks { list-style: none; margin: 14px 0; padding: 0; }
.domain-checks li { padding: 10px 14px; margin: 6px 0; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.domain-checks li.ok { border-color: #1a7f5a; background: #eaf7f1; }
.domain-checks li.no { border-color: #c98a00; background: #fff8e6; }

/* Launch checklist (owner dashboard) */
.launch-box { background: #fff; border: 1px solid var(--line, #dfe5df); border-radius: 12px; padding: 18px 20px; margin-bottom: 24px; }
.launch-sum { margin: 0 0 10px; }
.launch-bar { height: 10px; background: #ECEFEC; border-radius: 99px; overflow: hidden; margin-bottom: 8px; }
.launch-bar span { display: block; height: 100%; background: var(--kelly-dark); border-radius: 99px; }
.launch-h { font-size: 0.95rem; margin: 16px 0 6px; }
.launch-list { list-style: none; margin: 0; padding: 0; }
.launch-list li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-top: 1px solid #EEF1EE; }
.launch-list li:first-child { border-top: 0; }
.launch-mark, .launch-box-btn { flex: 0 0 22px; width: 22px; height: 22px; border: 2px solid #B9C2B9; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1; color: #fff; background: #fff; padding: 0; }
.launch-box-btn { cursor: pointer; }
.is-ok .launch-mark, .is-ok .launch-box-btn { background: var(--kelly-dark); border-color: var(--kelly-dark); }
.is-todo .launch-mark { border-color: #D9534F; }
.launch-tick { margin: 0; }
.launch-text { flex: 1; }
.is-ok .launch-text { color: var(--muted); }

.key-backup summary { cursor: pointer; display: inline-block; list-style: none; }
.key-backup summary::-webkit-details-marker { display: none; }
.key-backup[open] summary { margin-bottom: 12px; }
