/* ===========================================================
   Table Plus App - mobile-first viewport stylesheet
   Prefix: shell0f298-
   Palette: #B03060 (rose accent) | #1E1E1E (canvas) | #BBBBBB (text)
   Direction: clean bold headings + light body, near-right-angle tool feel,
              grouped cover cards, segmented action buttons, slide indicator.
   =========================================================== */

:root {
  --shell0f298-bg: #1E1E1E;
  --shell0f298-bg-page: #0C0C0C;
  --shell0f298-bg-elev: #242424;
  --shell0f298-surface: #2A2A2A;
  --shell0f298-surface-2: #333333;
  --shell0f298-border: #3A3A3A;
  --shell0f298-border-soft: #2C2C2C;
  --shell0f298-text: #BBBBBB;
  --shell0f298-text-strong: #F4F4F4;
  --shell0f298-text-dim: #8A8A8A;
  --shell0f298-accent: #B03060;
  --shell0f298-accent-hi: #C93870;
  --shell0f298-accent-deep: #7A2147;
  --shell0f298-success: #3FAE7A;
  --shell0f298-warn: #E0A040;
  --shell0f298-radius: 3px;
  --shell0f298-radius-lg: 6px;
  --shell0f298-top-h: 56px;
  --shell0f298-bottom-h: 64px;
  --shell0f298-max: 430px;
  --shell0f298-tap: 44px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--shell0f298-bg-page);
  color: var(--shell0f298-text);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--shell0f298-accent-hi); text-decoration: none; }
a:hover, a:focus-visible { color: var(--shell0f298-text-strong); }
button { font-family: inherit; cursor: pointer; color: inherit; }

h1, h2, h3, h4 {
  color: var(--shell0f298-text-strong);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
}
p { margin: 0 0 10px; }
ul, ol { margin: 0 0 10px; padding-left: 18px; }

/* === Mobile canvas wrapper (centered column on wide screens) === */
.shell0f298-canvas {
  max-width: var(--shell0f298-max);
  margin: 0 auto;
  background: var(--shell0f298-bg);
  min-height: 100vh;
  position: relative;
  padding-bottom: calc(var(--shell0f298-bottom-h) + 14px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.03);
}

/* ================ Top navigation ================ */
.shell0f298-top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, #262626 0%, #1A1A1A 100%);
  border-bottom: 1px solid var(--shell0f298-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  min-height: var(--shell0f298-top-h);
  gap: 8px;
}
.shell0f298-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.shell0f298-logo {
  width: 34px;
  height: 34px;
  border-radius: var(--shell0f298-radius);
  object-fit: cover;
  border: 1px solid var(--shell0f298-accent);
  flex-shrink: 0;
  background: #111;
}
.shell0f298-brand-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--shell0f298-text-strong);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shell0f298-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.shell0f298-btn-register,
.shell0f298-btn-login {
  border: none;
  border-radius: var(--shell0f298-radius);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  min-height: 38px;
  min-width: 44px;
  transition: transform .12s ease, background .12s ease, color .12s ease;
}
.shell0f298-btn-register {
  background: var(--shell0f298-accent);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset;
}
.shell0f298-btn-register:active { transform: translateY(1px); background: var(--shell0f298-accent-hi); }
.shell0f298-btn-login {
  background: transparent;
  color: var(--shell0f298-text-strong);
  border: 1px solid var(--shell0f298-border);
}
.shell0f298-btn-login:active { background: var(--shell0f298-surface); }
.shell0f298-menu-btn {
  background: transparent;
  border: 1px solid var(--shell0f298-border);
  border-radius: var(--shell0f298-radius);
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--shell0f298-text-strong);
}
.shell0f298-menu-btn:active { background: var(--shell0f298-surface); }
.shell0f298-menu-btn svg { width: 18px; height: 18px; }

/* ================ Full-screen menu overlay ================ */
.shell0f298-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(12,12,12,.97);
  overflow-y: auto;
  padding: 14px 14px 40px;
}
.shell0f298-overlay[hidden] { display: none; }
.shell0f298-overlay-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--shell0f298-border);
}
.shell0f298-overlay-title {
  font-size: 12px;
  color: var(--shell0f298-text-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}
.shell0f298-overlay-close {
  background: var(--shell0f298-surface);
  border: 1px solid var(--shell0f298-border);
  color: var(--shell0f298-text-strong);
  width: 38px; height: 38px;
  border-radius: var(--shell0f298-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.shell0f298-overlay-close svg { width: 18px; height: 18px; }
.shell0f298-overlay nav { display: flex; flex-direction: column; }
.shell0f298-overlay a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 8px;
  color: var(--shell0f298-text-strong);
  border-bottom: 1px solid var(--shell0f298-border-soft);
  font-size: 15px;
  font-weight: 600;
}
.shell0f298-overlay a:active { background: var(--shell0f298-surface); }
.shell0f298-overlay-num {
  color: var(--shell0f298-accent);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  min-width: 22px;
}
.shell0f298-overlay-tag {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--shell0f298-text-dim);
  padding: 2px 6px;
  border: 1px solid var(--shell0f298-border);
  border-radius: 2px;
}

/* ================ Hero ================ */
.shell0f298-hero {
  padding: 16px 12px 6px;
}
.shell0f298-hero h1 {
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.shell0f298-hero-lead {
  font-size: 13px;
  color: var(--shell0f298-text);
  margin-bottom: 14px;
}
.shell0f298-hero-cta {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.shell0f298-cta-primary,
.shell0f298-cta-ghost {
  flex: 1;
  border: none;
  border-radius: var(--shell0f298-radius);
  padding: 12px 10px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-height: var(--shell0f298-tap);
  transition: transform .12s ease, background .12s ease;
}
.shell0f298-cta-primary {
  background: var(--shell0f298-accent);
  color: #fff;
}
.shell0f298-cta-primary:active { background: var(--shell0f298-accent-hi); transform: translateY(1px); }
.shell0f298-cta-ghost {
  background: transparent;
  color: var(--shell0f298-text-strong);
  border: 1px solid var(--shell0f298-border);
}
.shell0f298-cta-ghost:active { background: var(--shell0f298-surface); }

/* trust strip */
.shell0f298-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}
.shell0f298-trust li {
  background: var(--shell0f298-surface);
  border: 1px solid var(--shell0f298-border-soft);
  border-radius: var(--shell0f298-radius);
  padding: 8px 6px;
  text-align: center;
  font-size: 11px;
  color: var(--shell0f298-text);
  line-height: 1.3;
}
.shell0f298-trust li b {
  display: block;
  color: var(--shell0f298-text-strong);
  font-size: 12px;
  margin-bottom: 2px;
}

/* ================ Carousel ================ */
.shell0f298-carousel {
  position: relative;
  border-radius: var(--shell0f298-radius-lg);
  overflow: hidden;
  border: 1px solid var(--shell0f298-border);
  background: var(--shell0f298-surface);
  margin-bottom: 4px;
}
.shell0f298-slide {
  position: relative;
  display: block;
  border: none;
  background: none;
  padding: 0;
  width: 100%;
  text-align: left;
}
.shell0f298-slide[data-active="false"] { display: none; }
.shell0f298-slide img {
  width: 100%;
  height: 175px;
  object-fit: cover;
}
.shell0f298-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 14px 14px;
  background: linear-gradient(0deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.35) 70%, rgba(0,0,0,0) 100%);
  color: #fff;
}
.shell0f298-slide-tag {
  display: inline-block;
  background: var(--shell0f298-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 2px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.shell0f298-slide-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 3px;
}
.shell0f298-slide-sub {
  display: block;
  font-size: 11px;
  color: var(--shell0f298-text);
}
.shell0f298-dots {
  position: absolute;
  bottom: 10px;
  right: 12px;
  display: flex;
  gap: 5px;
  z-index: 2;
}
.shell0f298-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  border: none;
  padding: 0;
  transition: all .25s ease;
}
.shell0f298-dot[data-active="true"] {
  background: var(--shell0f298-accent);
  width: 20px;
  border-radius: 4px;
}

/* ================ Category quick strip ================ */
.shell0f298-quick {
  display: flex;
  gap: 7px;
  padding: 14px 12px 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: sticky;
  top: var(--shell0f298-top-h);
  background: var(--shell0f298-bg);
  z-index: 30;
}
.shell0f298-quick::-webkit-scrollbar { display: none; }
.shell0f298-quick a {
  flex-shrink: 0;
  padding: 7px 12px;
  background: var(--shell0f298-surface);
  border: 1px solid var(--shell0f298-border);
  border-radius: var(--shell0f298-radius);
  color: var(--shell0f298-text-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.shell0f298-quick a:active { background: var(--shell0f298-accent); color: #fff; border-color: var(--shell0f298-accent); }

/* ================ Category sections ================ */
.shell0f298-section { padding: 14px 12px; }
.shell0f298-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--shell0f298-border-soft);
}
.shell0f298-section-head h2 {
  font-size: 16px;
  line-height: 1.25;
  flex: 1;
}
.shell0f298-section-count {
  font-size: 10px;
  color: var(--shell0f298-text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
}

.shell0f298-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
@media (min-width: 360px) {
  .shell0f298-grid { gap: 8px; }
}
@media (min-width: 395px) {
  .shell0f298-grid { grid-template-columns: repeat(5, 1fr); }
}

.shell0f298-card {
  background: var(--shell0f298-surface);
  border: 1px solid var(--shell0f298-border);
  border-radius: var(--shell0f298-radius);
  padding: 4px 4px 5px;
  text-align: center;
  display: block;
  color: inherit;
  transition: border-color .12s ease, transform .12s ease;
  min-width: 0;
}
.shell0f298-card:active {
  border-color: var(--shell0f298-accent);
  transform: scale(.97);
}
.shell0f298-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 2px;
  background: #111;
}
.shell0f298-card-name {
  display: block;
  font-size: 10px;
  color: var(--shell0f298-text);
  margin-top: 4px;
  line-height: 1.2;
  min-height: 24px;
  overflow: hidden;
  font-weight: 600;
}

/* ================ Content modules ================ */
.shell0f298-modules { padding: 6px 12px 14px; }
.shell0f298-module {
  background: var(--shell0f298-bg-elev);
  border: 1px solid var(--shell0f298-border-soft);
  border-left: 3px solid var(--shell0f298-accent);
  border-radius: var(--shell0f298-radius);
  padding: 14px;
  margin-bottom: 12px;
}
.shell0f298-module h2 {
  font-size: 16px;
  line-height: 1.25;
  margin-bottom: 9px;
}
.shell0f298-module h3 {
  font-size: 13px;
  margin: 14px 0 6px;
  color: var(--shell0f298-text-strong);
}
.shell0f298-module p { font-size: 13px; }
.shell0f298-module p:last-child { margin-bottom: 0; }
.shell0f298-module ul, .shell0f298-module ol { font-size: 13px; }
.shell0f298-module li { margin-bottom: 5px; }

.shell0f298-lead {
  font-size: 13px;
  color: var(--shell0f298-text-strong);
  font-weight: 600;
  background: rgba(176,48,96,.10);
  border-left: 2px solid var(--shell0f298-accent);
  padding: 8px 10px;
  border-radius: 2px;
  margin-bottom: 10px;
}

/* numbered steps */
.shell0f298-steps {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  counter-reset: shell0f298step;
}
.shell0f298-steps li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 10px;
  font-size: 13px;
  counter-increment: shell0f298step;
  min-height: 26px;
}
.shell0f298-steps li::before {
  content: counter(shell0f298step);
  position: absolute;
  left: 0; top: -1px;
  width: 24px; height: 24px;
  background: var(--shell0f298-accent);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shell0f298-steps li b { color: var(--shell0f298-text-strong); }

/* check list */
.shell0f298-check {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.shell0f298-check li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 6px;
  font-size: 13px;
}
.shell0f298-check li::before {
  content: "";
  position: absolute;
  left: 2px; top: 6px;
  width: 11px; height: 6px;
  border-left: 2px solid var(--shell0f298-accent-hi);
  border-bottom: 2px solid var(--shell0f298-accent-hi);
  transform: rotate(-45deg);
}

/* compact inline data rows */
.shell0f298-rows {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  border: 1px solid var(--shell0f298-border-soft);
  border-radius: var(--shell0f298-radius);
  overflow: hidden;
}
.shell0f298-rows li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  font-size: 12px;
  border-bottom: 1px solid var(--shell0f298-border-soft);
}
.shell0f298-rows li:last-child { border-bottom: none; }
.shell0f298-rows li b { color: var(--shell0f298-text-strong); font-weight: 700; }
.shell0f298-rows li span { color: var(--shell0f298-text-dim); }

/* fact grid */
.shell0f298-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.shell0f298-facts li {
  background: var(--shell0f298-surface);
  border: 1px solid var(--shell0f298-border);
  border-left: 3px solid var(--shell0f298-accent);
  padding: 8px 10px;
  border-radius: var(--shell0f298-radius);
  font-size: 11px;
  color: var(--shell0f298-text);
  line-height: 1.4;
}
.shell0f298-facts li b {
  display: block;
  color: var(--shell0f298-text-strong);
  font-size: 13px;
  margin-bottom: 2px;
}

/* inline CTA inside modules */
.shell0f298-inline-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 10px 16px;
  background: var(--shell0f298-accent);
  color: #fff !important;
  border: none;
  border-radius: var(--shell0f298-radius);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-height: var(--shell0f298-tap);
}
.shell0f298-inline-cta:active { background: var(--shell0f298-accent-hi); }

/* inline text promo link */
.shell0f298-text-promo {
  color: var(--shell0f298-accent-hi);
  font-weight: 700;
  border-bottom: 1px dashed var(--shell0f298-accent);
}
.shell0f298-text-promo:active { color: var(--shell0f298-text-strong); }

/* ================ Extended footer ================ */
.shell0f298-extended {
  padding: 8px 12px 18px;
  border-top: 1px dashed var(--shell0f298-border-soft);
  margin-top: 6px;
}
.shell0f298-ext-block { margin-bottom: 16px; }
.shell0f298-ext-block:last-child { margin-bottom: 0; }
.shell0f298-ext-block h3 {
  font-size: 12px;
  color: var(--shell0f298-text-strong);
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--shell0f298-border-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.shell0f298-ext-block p {
  font-size: 12px;
  color: var(--shell0f298-text);
  margin: 0 0 8px;
  line-height: 1.55;
}
.shell0f298-ext-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.shell0f298-ext-links li a {
  font-size: 12px;
  color: var(--shell0f298-text);
  display: block;
  padding: 5px 0;
  border-bottom: 1px dotted var(--shell0f298-border-soft);
}
.shell0f298-ext-links li a:active { color: var(--shell0f298-accent-hi); }
.shell0f298-ext-links li small {
  display: block;
  color: var(--shell0f298-text-dim);
  font-size: 10px;
  margin-top: 1px;
}

.shell0f298-ext-promos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.shell0f298-ext-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--shell0f298-surface);
  border: 1px solid var(--shell0f298-border);
  border-left: 3px solid var(--shell0f298-accent);
  border-radius: var(--shell0f298-radius);
  padding: 9px 11px;
  color: var(--shell0f298-text-strong);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  min-height: var(--shell0f298-tap);
  width: 100%;
}
.shell0f298-ext-promo:active { background: var(--shell0f298-accent-deep); }
.shell0f298-ext-promo small {
  display: block;
  color: var(--shell0f298-text-dim);
  font-size: 10px;
  font-weight: 400;
  margin-top: 1px;
}
.shell0f298-ext-promo-arrow {
  flex-shrink: 0;
  color: var(--shell0f298-accent-hi);
  font-weight: 800;
}

.shell0f298-ext-disclaimer {
  font-size: 11px;
  color: var(--shell0f298-text-dim);
  background: #161616;
  border: 1px solid var(--shell0f298-border-soft);
  border-radius: var(--shell0f298-radius);
  padding: 10px 12px;
  line-height: 1.55;
}

/* ================ Universal footer ================ */
.shell0f298-footer {
  border-top: 1px solid var(--shell0f298-border);
  padding: 14px 12px;
  text-align: center;
  background: #161616;
}
.shell0f298-footer p {
  margin: 0;
  font-size: 11px;
  color: var(--shell0f298-text-dim);
  letter-spacing: 0.04em;
}

/* ================ Bottom nav ================ */
.shell0f298-bottom {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--shell0f298-max);
  z-index: 70;
  background: linear-gradient(180deg, #252525 0%, #131313 100%);
  border-top: 1px solid var(--shell0f298-accent-deep);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: var(--shell0f298-bottom-h);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.shell0f298-bottom a,
.shell0f298-bottom button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 7px 2px 9px;
  background: transparent;
  border: none;
  color: var(--shell0f298-text-dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  position: relative;
  min-height: var(--shell0f298-bottom-h);
}
.shell0f298-bottom a:active,
.shell0f298-bottom button:active { color: var(--shell0f298-text-strong); }
.shell0f298-bottom svg { width: 22px; height: 22px; }
.shell0f298-active { color: var(--shell0f298-text-strong) !important; }
.shell0f298-active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 30%;
  right: 30%;
  height: 3px;
  background: var(--shell0f298-accent);
  border-radius: 0 0 3px 3px;
}
.shell0f298-bottom-promo {
  color: var(--shell0f298-accent-hi) !important;
}
.shell0f298-bottom-promo:active {
  color: var(--shell0f298-text-strong) !important;
}

/* ================ Utilities ================ */
.shell0f298-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--shell0f298-accent);
  color: #fff;
  padding: 8px 12px;
  z-index: 1000;
  font-size: 12px;
  font-weight: 700;
}
.shell0f298-skip:focus { left: 8px; top: 8px; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--shell0f298-accent-hi);
  outline-offset: 1px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
