/* SNO Lufthavn — snosl.com
   The look comes straight from the in-world build: charcoal architecture,
   walnut slat fascias, brass-edged lettering, taxiway-yellow wayfinding. */

:root {
  --bg: #14181F;
  --deep: #0E1116;
  --panel: #1B2028;
  --line: #2A313C;
  --ink: #ECE7DD;
  --muted: #98A0AC;
  --muted-2: #6B7482;
  --brass: #C9A96A;
  --brass-bright: #E6CC8F;
  --yellow: #F5C518;
  --red: #D0342C;
  --green: #2E9E5B;
  --light: #F3F1EC;
  --light-panel: #FAF9F6;
  --light-line: #DDD9CF;
  --ink-dark: #1C222B;
  --muted-dark: #5A6472;
  --font-body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Michroma', Verdana, sans-serif;
  --font-mono: 'IBM Plex Mono', Consolas, monospace;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--brass); text-decoration: none; }
a:hover { color: var(--brass-bright); }
img { max-width: 100%; display: block; }

.display { font-family: var(--font-display); }
.mono { font-family: var(--font-mono); }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--yellow); color: var(--bg); padding: 10px 16px; font-weight: 700;
}
.skip:focus { left: 0; z-index: 50; }

/* ---------- wood slat band (the fascia) ---------- */
.wood {
  background: repeating-linear-gradient(72deg,
    #53381F 0px, #53381F 4px,
    #6A4830 4px, #6A4830 7px,
    #7E5A38 7px, #7E5A38 10px,
    #644226 10px, #644226 14px);
}
.wood-strip { height: 8px; }

/* ---------- navigation ---------- */
.nav { background: var(--deep); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding: 16px 24px;
  max-width: 1240px; margin: 0 auto;
}
.wordmark {
  font-family: var(--font-display); font-size: 15px; letter-spacing: 0.3em;
  color: var(--ink); white-space: nowrap;
}
.wordmark em { font-style: normal; color: var(--brass); }
.nav-links { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--muted); padding-bottom: 4px; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); border-bottom: 2px solid var(--yellow); }
/* the member-area door: quiet outlined mono, the twin of the area's LOG OUT */
.nav-links a.nav-login { font-size: 11.5px; letter-spacing: 0.1em; color: var(--muted);
  border: 1px solid var(--line); border-radius: 3px; padding: 8px 13px; }
.nav-links a.nav-login:hover { color: var(--ink); border-color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  padding: 14px 26px; border-radius: 3px; border: 0; cursor: pointer;
  line-height: 1.2;
}
.btn svg { flex: none; }
.btn-yellow { background: var(--yellow); color: var(--bg); }
.btn-yellow:hover { background: #FFD330; color: var(--bg); }
.btn-red { background: var(--red); color: #FFF; }
.btn-red:hover { background: #E04338; color: #FFF; }
.btn-green { background: var(--green); color: var(--bg); }
.btn-green:hover { background: #35B76A; color: var(--bg); }
.btn-outline { background: transparent; border: 1.5px solid var(--brass); color: var(--brass); font-weight: 600; }
.btn-outline:hover { border-color: var(--brass-bright); color: var(--brass-bright); }
.btn-dark { background: var(--bg); color: var(--yellow); }
.btn-dark:hover { color: #FFD330; }
.btn-outline-dark { background: transparent; border: 1.5px solid var(--bg); color: var(--ink-dark); font-weight: 600; }
.btn-outline-dark:hover { background: var(--bg); color: var(--ink); }
.btn-sm { font-size: 13px; padding: 11px 18px; }

/* ---------- wayfinding chips ---------- */
.chip {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em;
  border: 1.5px solid var(--yellow); color: var(--yellow);
  padding: 6px 12px; white-space: nowrap;
}
.chip-solid {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em;
  background: var(--bg); color: var(--yellow);
  padding: 7px 13px; white-space: nowrap;
}

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section-deep { background: var(--deep); border-top: 1px solid var(--line); }
.section-light { background: var(--light); color: var(--ink-dark); }
.section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-size: 18px; font-weight: 600; }
.section-title {
  font-family: var(--font-display); font-size: clamp(22px, 3vw, 30px);
  letter-spacing: 0.06em; line-height: 1.35; margin-bottom: 36px;
}
.section-light .section-title { color: var(--ink-dark); }

/* ---------- hero ---------- */
.hero-photo {
  width: 100%; display: block; border-bottom: 1px solid var(--line);
  /* The photo carries the lit sign itself, so it owns the whole first
     screen: 100vh minus nav (72) + wood strip (8). */
  height: calc(100vh - 80px);
  min-height: 320px; max-height: 900px;
  object-fit: cover; object-position: center top;
}
.hero-media {
  min-height: 340px; display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line);
}
.hero-band {
  padding: 34px 24px; display: flex; align-items: center; justify-content: center;
}
.hero-band .big-wordmark {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.4vw, 54px);
  letter-spacing: 0.2em; white-space: nowrap;
  color: #1A1F26;
  -webkit-text-stroke: 1px rgba(230, 204, 143, 0.85);
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}
.hero-copy {
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  padding: 44px 24px 56px; text-align: center;
}
.hero-eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.28em; color: var(--yellow); }
.hero-sub { font-size: 20px; line-height: 1.55; color: #C9CDD4; max-width: 640px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-slurl { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); }

/* ---------- photo placeholders (until real captures land) ---------- */
.ph {
  display: flex; align-items: center; justify-content: center;
  background-color: var(--panel);
  background-image: repeating-linear-gradient(45deg,
    transparent 0px, transparent 12px,
    rgba(255, 255, 255, 0.045) 12px, rgba(255, 255, 255, 0.045) 24px);
}
.ph-label {
  font-family: var(--font-mono); font-size: 12px; color: var(--muted-2);
  border: 1px dashed #3A4250; padding: 8px 14px;
  background: rgba(14, 17, 22, 0.75); text-align: center;
}
.ph-light {
  background-color: #E9E6DF;
  background-image: repeating-linear-gradient(45deg,
    transparent 0px, transparent 12px,
    rgba(0, 0, 0, 0.05) 12px, rgba(0, 0, 0, 0.05) 24px);
}
.ph-light .ph-label { color: #7A7466; border-color: #C9C4B8; background: rgba(250, 249, 246, 0.8); }

/* ---------- captures ---------- */
.card-photo { width: 100%; height: 170px; object-fit: cover; display: block; }
.feature-photo { width: 100%; border-radius: 4px; display: block; }

/* ---------- departures board ---------- */
.board-scroll { overflow-x: auto; }
.board {
  min-width: 640px;
  background: #0B0D11; border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
}
.board-row {
  display: grid; grid-template-columns: 2fr 6fr 2fr 2fr;
  font-family: var(--font-mono); letter-spacing: 0.1em;
  padding: 16px 24px; border-bottom: 1px solid #1C212A;
}
.board-row:last-child { border-bottom: 0; }
.board-row.head {
  font-size: 12px; letter-spacing: 0.12em; color: var(--muted-2);
  border-bottom: 1px solid var(--line); padding: 12px 24px;
}
.board-row span { font-size: 15px; }
.board-row .t { color: var(--yellow); }
.board-row .s { color: var(--yellow); }
.board-row .dim { color: var(--muted); }
.board-caption { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); margin-top: 14px; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.card {
  display: flex; flex-direction: column;
  background: var(--light-panel); border: 1px solid var(--light-line);
  border-radius: 4px; overflow: hidden;
}
.card .ph, .card .ph-light { height: 170px; }
.card-wood { height: 6px; }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 26px; }
.card-body h3 { font-size: 17px; font-weight: 700; color: var(--ink-dark); }
.card-body p { font-size: 14.5px; line-height: 1.6; color: var(--muted-dark); }
.spec { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid #E5E1D7; padding-top: 14px; }
.spec-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.spec-row .k { color: var(--muted-dark); }
.spec-row .v { font-family: var(--font-mono); color: var(--ink-dark); }
.spec-row .price { font-family: var(--font-mono); font-weight: 600; color: #B08A4F; }

/* ---------- airline tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tile {
  display: flex; align-items: center; justify-content: center; height: 92px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
  font-family: var(--font-display); font-size: 14px; letter-spacing: 0.12em; color: var(--ink);
}
.tile.open {
  background: transparent; border: 1px dashed #3A4250;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; color: var(--muted-2);
}
/* uploaded livery (#39): the logo replaces the name, contained, never cropped */
.tile-logo { padding: 14px 18px; }
.tile-logo img { max-height: 60px; max-width: 100%; object-fit: contain; display: block; }
.airline-logo { max-height: 76px; max-width: 240px; object-fit: contain; display: block; }
.airline-logo-sm { height: 20px; max-width: 90px; object-fit: contain; vertical-align: -5px; margin-right: 8px; display: inline-block; }
a.tile { color: var(--ink); text-align: center; }
a.tile:hover { border-color: var(--brass); color: var(--brass-bright); }
a.board-row { color: inherit; }
a.board-row:hover { background: #10141B; }

/* ---------- airline carousel (activates only when the row overflows) ---------- */
.tiles-carousel .tiles {
  display: flex; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
}
.tiles-carousel .tiles::-webkit-scrollbar { display: none; }
.tiles-carousel .tile { flex: 0 0 calc(25% - 15px); }
.carousel-controls { display: none; align-items: center; justify-content: center; gap: 18px; margin-top: 18px; }
.tiles-carousel.is-scrollable .carousel-controls { display: flex; }
.car-btn {
  font-family: var(--font-mono); font-size: 14px; line-height: 1;
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  border-radius: 3px; padding: 8px 12px; cursor: pointer;
}
.car-btn:hover { color: var(--ink); border-color: var(--muted); }
.car-dots { display: flex; gap: 8px; }
.car-dot { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: #3A4250; cursor: pointer; }
.car-dot.active { background: var(--yellow); }

/* ---------- split (rentals teaser, visit) ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }
.split-col { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.price-rows { display: flex; flex-direction: column; gap: 14px; width: 100%; }
.price-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
}
.price-row .name { font-size: 15px; font-weight: 600; }
.price-row .amt { font-family: var(--font-mono); font-size: 13px; color: var(--brass); white-space: nowrap; }

/* ---------- steps ---------- */
.steps { display: flex; flex-direction: column; gap: 16px; }
.step { display: flex; gap: 14px; align-items: baseline; }
.step .n { font-family: var(--font-mono); font-size: 13px; color: #B08A4F; font-weight: 600; }
.step p { font-size: 15px; line-height: 1.6; color: #3A424E; }

.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.step-block { display: flex; flex-direction: column; gap: 12px; }
.step-block svg { color: var(--yellow); }
.step-block h3 { font-size: 16px; font-weight: 700; }
.step-block p { font-size: 14.5px; line-height: 1.65; color: var(--muted); }

/* ---------- contact card & join form ---------- */
.contact-card {
  display: flex; flex-direction: column; gap: 16px;
  background: var(--light-panel); border: 1px solid var(--light-line);
  border-radius: 4px; padding: 36px;
}
/* The card is a light panel on a dark site — everything inside must use the
   -dark ink tokens or it washes out (the ticketing card shipped unreadable). */
.contact-card h3 { color: var(--ink-dark); }
.contact-card p { color: var(--muted-dark); }
.contact-card .m-form label { color: var(--muted-dark); }
.contact-rows { display: flex; flex-direction: column; gap: 8px; }
.contact-row { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; font-size: 13.5px; }
.contact-row .k { color: var(--muted-dark); }
.contact-row .v { font-family: var(--font-mono); color: var(--ink-dark); text-align: right; }

.join { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid #E5E1D7; padding-top: 16px; }
.join h3 { font-size: 14px; font-weight: 700; color: var(--ink-dark); }
.join-form { display: flex; gap: 10px; flex-wrap: wrap; }
.join-form input[type="text"] {
  flex: 1 1 180px; border: 1px solid #C9C4B8; border-radius: 3px;
  padding: 12px 14px; font-family: var(--font-body); font-size: 14px; color: var(--ink-dark);
  background: #FFFFFF;
}
.join-form input[type="text"]:focus { outline: none; border-color: #B08A4F; }
.join-note { font-size: 12.5px; color: #7A7466; }
.join-msg { font-size: 13.5px; font-weight: 600; padding: 10px 14px; border-radius: 3px; }
.join-msg.ok { background: #E4F2E9; color: #1B6B43; border: 1px solid #B9E5CE; }
.join-msg.err { background: #F9E9E7; color: #A03A30; border: 1px solid #F6C8C4; }
.hp { position: absolute; left: -9999px; top: -9999px; }

/* ---------- note band ---------- */
.note-band {
  display: flex; align-items: center; gap: 18px; padding: 28px 0;
  background: var(--light-panel);
  border-top: 1px solid var(--light-line); border-bottom: 1px solid var(--light-line);
}
.note-band .bar { width: 6px; height: 44px; flex: none; }
.note-band p { font-size: 14.5px; line-height: 1.6; color: var(--muted-dark); }

/* ---------- site-wide notice banner (#39) ---------- */
.site-notice { background: var(--yellow); padding: 9px 0; }
.site-notice .mono { font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; color: var(--bg); }
.site-notice-red { background: var(--red); }
.site-notice-red .mono { color: #FFF; }
.site-notice .wrap { overflow: hidden; }
.notice-scroll { display: inline-block; white-space: nowrap; padding-left: 100%; will-change: transform; animation: notice-scroll 18s linear infinite; }
@keyframes notice-scroll { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .notice-scroll { animation: none; padding-left: 0; } }

/* ---------- page head (inner pages) ---------- */
.page-head { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding: 64px 0 12px; }
.page-head h1 {
  font-family: var(--font-display); font-size: clamp(26px, 4vw, 38px);
  letter-spacing: 0.05em; line-height: 1.3;
}
.page-head .lead { font-size: 16px; line-height: 1.65; max-width: 640px; }
.section-light .page-head .lead { color: var(--muted-dark); }

/* ---------- alternating feature rows ---------- */
.feature { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: center; }
.feature .ph, .feature .ph-light { min-height: 280px; border-radius: 4px; }
.feature-copy { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.feature-copy h2 { font-size: 22px; font-weight: 700; }
.feature-copy p { font-size: 15px; line-height: 1.7; }

/* ---------- footer ---------- */
.footer { background: var(--deep); }
.footer-inner { display: flex; flex-direction: column; gap: 14px; padding: 44px 24px 48px; max-width: 1240px; margin: 0 auto; }
.footer-inner .small {
  font-size: 13.5px; line-height: 1.7; color: var(--muted-2); max-width: 720px;
}
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: baseline; }
.footer-row .mono { font-size: 12px; color: var(--muted-2); }
.footer-row .credit { font-size: 12.5px; color: var(--muted-2); }
.footer-row .credit a { color: var(--muted); }
.footer-row .credit a:hover { color: var(--ink); }

/* ---------- member area ---------- */
.m-shell { max-width: 1000px; margin: 0 auto; padding: 36px 24px 72px; }
.m-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.m-role { font-size: 12px; letter-spacing: 0.08em; color: var(--muted-2); }
.m-out { font-size: 12px; letter-spacing: 0.1em; color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 7px 12px; }
.m-out:hover { color: var(--ink); border-color: var(--muted); }
.m-subnav { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.m-subnav a { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; padding: 8px 14px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); }
.m-subnav a.on, .m-subnav a:hover { color: var(--ink); border-color: var(--muted); }
.m-card { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 24px; margin-bottom: 22px; }
.m-card h2 { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.m-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.m-stat { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.m-stat .n { font-size: 26px; color: var(--yellow); }
.m-stat .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--muted-2); }
.m-form { display: grid; gap: 14px; }
.m-form label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted-2); display: block; margin-bottom: 5px; }
.m-form input, .m-form select, .m-form textarea { width: 100%; background: #0E1116; border: 1px solid var(--line); border-radius: 3px; color: var(--ink); padding: 10px 12px; font-size: 14px; font-family: var(--font-body); }
.m-form input:focus, .m-form select:focus, .m-form textarea:focus { outline: none; border-color: var(--yellow); }
.m-form textarea { resize: vertical; line-height: 1.55; }
.m-impersonating { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; background: #2E2609; border: 1px solid var(--yellow); border-radius: 3px; padding: 10px 14px; margin-bottom: 16px; color: var(--yellow); font-size: 12px; letter-spacing: 0.08em; }
.m-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.m-form .row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.m-check { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; padding-top: 10px; }
.m-check input { width: auto; }
.m-actions { display: flex; gap: 12px; align-items: center; }
.m-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.m-table th { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted-2); text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.m-table td { padding: 10px; border-bottom: 1px solid #1C212A; vertical-align: middle; }
.m-table .mono { font-family: var(--font-mono); font-size: 12.5px; }
.m-table tr.m-off td { opacity: 0.45; }
.m-table tr.m-dayrow td { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--muted-2); background: #10141B; padding: 6px 10px; }
.m-table tr.m-mine td { background: rgba(245, 197, 24, 0.05); }
.m-dim { color: var(--muted-2); font-size: 12.5px; }
.m-rowactions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn-line { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 3px; padding: 6px 11px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.05em; cursor: pointer; }
.btn-line:hover { color: var(--ink); border-color: var(--muted); }
/* Accounts: one dropdown per role, an airline's crew folded under its desk. */
.m-group { border-top: 1px solid #1C212A; }
.m-group:first-of-type { border-top: none; }
.m-group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 13px 10px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.m-group > summary::-webkit-details-marker { display: none; }
.m-group > summary::before { content: '\25B8'; color: var(--brass); }
.m-group[open] > summary::before { content: '\25BE'; }
.m-group > summary:hover { color: var(--brass-bright); }
.m-groupcount { color: var(--muted-2); letter-spacing: 0.06em; }
.m-group .m-table { margin-bottom: 14px; }
.m-groupempty { color: var(--muted-2); font-size: 13.5px; padding: 0 10px 14px; }
.m-crewtoggle { display: block; margin-top: 5px; background: none; border: none; padding: 0; color: var(--brass); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.05em; cursor: pointer; }
.m-crewtoggle:hover { color: var(--brass-bright); }
.m-table tr.m-crew td { background: rgba(255, 255, 255, 0.02); }
.m-table tr.m-crew td:first-child { padding-left: 28px; position: relative; }
.m-table tr.m-crew td:first-child::before { content: '\21B3'; position: absolute; left: 10px; color: var(--muted-2); }
/* Auto table layout hands any extra width a long crew username needs to the
   only column that can give way — the buttons — which then wrap onto a third
   line and grow every row on the page. Holding that column open keeps the
   table still when a crew unfolds. Narrow screens keep the old behaviour:
   there the width is better spent on the account itself. */
@media (min-width: 961px) {
  .m-accounts td.m-rowactions { min-width: 260px; }
}
.m-inlinedetails summary { list-style: none; cursor: pointer; }
.m-inlinedetails summary::-webkit-details-marker { display: none; }
.m-inlineform { display: flex; gap: 8px; margin-top: 8px; }
.m-inlineform input { background: #0E1116; border: 1px solid var(--line); border-radius: 3px; color: var(--ink); padding: 7px 10px; font-size: 13px; }
.m-danger { border-color: #6B2027; color: #E98B93; }
.m-danger:hover { border-color: #E98B93; color: #FFB3B9; }
.flash { padding: 12px 16px; border-radius: 3px; font-size: 14px; margin-bottom: 18px; }
.flash.ok { background: #12291B; border: 1px solid #1F5D36; color: #7BD89B; }
.flash.err { background: #2B1214; border: 1px solid #6B2027; color: #E98B93; }

/* Button-opened forms (issue #38): forms hide behind a button and open in an
   overlay panel, the page blurred behind. A no-JS browser gets them inline
   via the noscript override in the header. */
.m-openrow { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.m-overlay { display: none; position: fixed; inset: 0; z-index: 80; overflow-y: auto;
  padding: 24px; background: rgba(10, 13, 18, 0.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.m-overlay.open { display: block; }
.m-overlay .m-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
  padding: 24px; max-width: 680px; margin: 7vh auto 48px; }
.m-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.m-panel-head h2 { font-size: 17px; font-weight: 700; margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .cards, .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles-carousel .tile { flex-basis: calc(33.4% - 14px); }
  .split { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 620px) {
  .section { padding: 52px 0; }
  .cards, .steps-grid { grid-template-columns: 1fr; }
  .nav-inner { justify-content: center; }
  .nav-links { justify-content: center; gap: 18px; }
  .hero-sub { font-size: 17px; }
  .contact-card { padding: 26px 20px; }
  /* single column: section chip, then the photo, then heading and copy */
  .m-form .row2, .m-form .row3, .m-stats { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 14px; }
  .feature .feature-copy { display: contents; }
  .feature .feature-copy .chip-solid { order: -2; justify-self: start; }
  .feature .feature-photo { order: -1; }
  .tiles-carousel .tile { flex-basis: 44%; } /* two tiles and a peek, so the row invites a swipe */
}

/* ALEX's calendar (secure/messages.php): a month of scheduled sends. The
   grid keeps seven real columns and scrolls sideways on a phone instead of
   crushing the day cells. */
.m-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.m-cal-scroll { overflow-x: auto; }
.m-cal { min-width: 700px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.m-cal .cal-dow { background: #0E1116; padding: 7px 8px; font-size: 10.5px; letter-spacing: 0.14em; color: var(--muted-2); }
.m-cal .cal-day { background: #12151B; min-height: 88px; padding: 6px 7px; }
.m-cal .cal-day.out { background: #0E1116; }
.m-cal .cal-day .n { font-size: 11.5px; color: var(--muted-2); }
.m-cal .cal-day.today { outline: 1px solid var(--yellow); outline-offset: -1px; }
.m-cal .cal-day.today .n { color: var(--yellow); }
.cal-item { display: block; margin-top: 5px; padding: 3px 6px; border-radius: 2px; font-size: 10.5px; line-height: 1.35; background: rgba(244, 180, 0, 0.12); border-left: 2px solid var(--yellow); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-item.sent { background: rgba(255, 255, 255, 0.05); border-left-color: var(--muted-2); color: var(--muted); }
.cal-item.failed { background: rgba(226, 54, 54, 0.14); border-left-color: #E23636; }

/* The SmartBot page's button rows sit in labelled frames: GROUP and IM. */
.m-btnframes { display: flex; gap: 14px; flex-wrap: wrap; align-items: stretch; margin-bottom: 22px; }
.m-btnframes fieldset { border: 1px solid var(--line); border-radius: 3px; padding: 8px 14px 14px; margin: 0; min-width: 0; }
.m-btnframes legend { padding: 0 6px; font-size: 10.5px; letter-spacing: 0.14em; color: var(--muted-2); }
.m-btnframes .m-openrow { margin-bottom: 0; }
