/* ==========================================================================
   Shbest - shared surface stylesheet (shbest.cyou)
   Mobile-first phone canvas: 320-430px, centered frame on wide screens.
   Design cues: rounded headings + compact body, near-square corners,
   compact square game tiles, scenario-branch rhythm, segmented CTAs.
   Class prefix: shellce4d7-
   ========================================================================== */

:root {
  --shellce4d7-bg:          #273746;
  --shellce4d7-bg-deep:     #1e2a36;
  --shellce4d7-panel:       #31445a;
  --shellce4d7-panel-soft:  #2b3d4e;
  --shellce4d7-ink:         #f5f5f5;
  --shellce4d7-muted:       #bdc3c7;
  --shellce4d7-coral:       #fa8072;
  --shellce4d7-coral-deep:  #e2695b;
  --shellce4d7-pink:        #ff69b4;
  --shellce4d7-line:        #46586b;
  --shellce4d7-radius:      4px;
  --shellce4d7-radius-sm:   3px;
  --shellce4d7-font-head:   'Baloo 2', 'Quicksand', 'Segoe UI', system-ui, sans-serif;
  --shellce4d7-font-body:   'Be Vietnam Pro', 'Segoe UI', system-ui, sans-serif;
  --shellce4d7-bnav-h:      64px;
  --shellce4d7-head-h:      98px;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #141c24;
  color: var(--shellce4d7-ink);
  font-family: var(--shellce4d7-font-body);
  font-size: 15px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--shellce4d7-pink); }
h1, h2, h3 { font-family: var(--shellce4d7-font-head); margin: 0; }
p { margin: 0 0 10px; }
ul { margin: 0; padding: 0; }
:focus-visible {
  outline: 2px solid var(--shellce4d7-pink);
  outline-offset: 2px;
  border-radius: var(--shellce4d7-radius-sm);
}
.shellce4d7-sr {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- phone canvas ---------- */
.shellce4d7-canvas {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--shellce4d7-bg);
}
.shellce4d7-main {
  padding-bottom: calc(var(--shellce4d7-bnav-h) + 30px + env(safe-area-inset-bottom, 0px));
}

/* ---------- top bar: brand row + action row ---------- */
.shellce4d7-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--shellce4d7-bg-deep);
  border-bottom: 1px solid var(--shellce4d7-line);
}
.shellce4d7-brandrow {
  display: flex; align-items: center;
  padding: 9px 14px 7px;
}
.shellce4d7-brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--shellce4d7-ink);
}
.shellce4d7-logo {
  width: 38px; height: 38px;
  border-radius: 8px;
  border: 1px solid var(--shellce4d7-line);
  object-fit: cover;
}
.shellce4d7-sitename {
  font-family: var(--shellce4d7-font-head);
  font-size: 21px; font-weight: 700;
  letter-spacing: .4px;
}
.shellce4d7-sitename b { color: var(--shellce4d7-coral); font-weight: 700; }
.shellce4d7-actrow {
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px 10px;
}

/* segmented action CTA (register | login) */
.shellce4d7-seg {
  display: flex; flex: 1; max-width: 236px;
  border: 1px solid var(--shellce4d7-coral);
  border-radius: var(--shellce4d7-radius);
  overflow: hidden;
}
.shellce4d7-segbtn {
  flex: 1;
  min-height: 40px;
  border: 0;
  padding: 8px 6px;
  font-size: 13.5px; font-weight: 600;
  transition: filter .15s ease;
}
.shellce4d7-segbtn + .shellce4d7-segbtn {
  border-left: 1px solid var(--shellce4d7-coral);
}
.shellce4d7-segbtn-hot {
  background: var(--shellce4d7-coral);
  color: #1e2a36;
}
.shellce4d7-segbtn-ghost {
  background: transparent;
  color: var(--shellce4d7-coral);
}
.shellce4d7-segbtn:active { filter: brightness(1.18); }

/* expandable menu */
.shellce4d7-menubtn {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 40px; padding: 8px 12px;
  background: var(--shellce4d7-panel-soft);
  color: var(--shellce4d7-ink);
  border: 1px solid var(--shellce4d7-line);
  border-radius: var(--shellce4d7-radius);
  font-size: 13px; font-weight: 600;
}
.shellce4d7-menubtn svg { color: var(--shellce4d7-coral); }
.shellce4d7-menubtn span { transition: color .2s ease; }
.shellce4d7-menubtn[aria-expanded="true"] span { color: var(--shellce4d7-coral); }

.shellce4d7-menu {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--shellce4d7-bg-deep);
  border-bottom: 1px solid var(--shellce4d7-line);
  box-shadow: 0 14px 22px rgba(10, 16, 22, .45);
  padding: 8px 14px 18px;
  max-height: calc(100vh - var(--shellce4d7-head-h));
  overflow-y: auto;
  transform: translateX(16px);
  opacity: 0;
  visibility: hidden;
  transition: transform .24s ease, opacity .24s ease, visibility .24s;
  z-index: 39;
}
.shellce4d7-menu.shellce4d7-is-open { transform: none; opacity: 1; visibility: visible; }
.shellce4d7-menuhead {
  font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--shellce4d7-muted); margin: 6px 2px 4px;
}
.shellce4d7-menulinks { list-style: none; }
.shellce4d7-menulink {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 46px;
  padding: 11px 10px;
  border-bottom: 1px solid rgba(70, 88, 107, .45);
  color: var(--shellce4d7-ink);
  text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: background .18s ease, color .18s ease;
}
.shellce4d7-menulink::after { content: "\203A"; color: var(--shellce4d7-muted); font-size: 18px; }
.shellce4d7-menulink:active { color: var(--shellce4d7-coral); }
.shellce4d7-menulink.shellce4d7-is-current {
  background: rgba(250, 128, 114, .16);
  border-left: 3px solid var(--shellce4d7-coral);
  padding-left: 8px;
  color: var(--shellce4d7-coral);
  font-weight: 600;
}
.shellce4d7-menugroup {
  font-family: var(--shellce4d7-font-head);
  font-size: 12.5px; font-weight: 600;
  color: var(--shellce4d7-pink);
  margin: 14px 2px 4px;
}

/* ---------- hero carousel ---------- */
.shellce4d7-hero { margin: 12px 14px 0; }
.shellce4d7-heroview {
  position: relative;
  border: 1px solid var(--shellce4d7-line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--shellce4d7-bg-deep);
}
.shellce4d7-herotrack {
  display: flex;
  transition: transform .45s ease;
}
.shellce4d7-slide {
  position: relative;
  flex: 0 0 100%;
  padding: 0;
  border: 0;
  background: var(--shellce4d7-bg-deep);
  aspect-ratio: 5 / 2;
  min-height: 118px;
  width: 100%;
}
.shellce4d7-slideimg {
  width: 100%; height: 100%;
  object-fit: cover;
}
.shellce4d7-slidecap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 12px 9px;
  background: linear-gradient(180deg, rgba(20, 28, 36, 0) 0%, rgba(20, 28, 36, .92) 78%);
  text-align: left;
}
.shellce4d7-slidecap strong {
  display: block;
  font-family: var(--shellce4d7-font-head);
  font-size: 14.5px; font-weight: 700;
  color: var(--shellce4d7-ink);
}
.shellce4d7-slidecap em {
  display: block;
  font-style: normal;
  font-size: 11.5px;
  color: var(--shellce4d7-muted);
}
.shellce4d7-heronav {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 44px;
  display: grid; place-items: center;
  border: 0;
  background: rgba(20, 28, 36, .58);
  color: var(--shellce4d7-ink);
  border-radius: var(--shellce4d7-radius-sm);
}
.shellce4d7-heronav-prev { left: 4px; }
.shellce4d7-heronav-next { right: 4px; }
.shellce4d7-herodots {
  display: flex; justify-content: center; gap: 4px;
  padding: 9px 0 2px;
}
.shellce4d7-dot {
  position: relative;
  width: 30px; height: 20px;
  padding: 0; border: 0; background: transparent;
}
.shellce4d7-dot::before {
  content: "";
  position: absolute;
  left: 5px; right: 5px; top: 8px;
  height: 4px;
  border-radius: 2px;
  background: var(--shellce4d7-muted);
  opacity: .45;
  transition: background .2s ease, opacity .2s ease;
}
.shellce4d7-dot.shellce4d7-is-on::before { background: var(--shellce4d7-pink); opacity: 1; }

/* ---------- lead / H1 block ---------- */
.shellce4d7-lead { padding: 16px 16px 2px; }
.shellce4d7-h1 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.28;
  padding-left: 9px;
  border-left: 4px solid var(--shellce4d7-coral);
}
.shellce4d7-leadtext {
  margin-top: 9px;
  font-size: 13.5px;
  color: var(--shellce4d7-muted);
}

/* ---------- category quick strip ---------- */
.shellce4d7-catstrip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 14px 4px;
  scrollbar-width: none;
}
.shellce4d7-catstrip::-webkit-scrollbar { display: none; }
.shellce4d7-chip {
  flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px;
  padding: 8px 13px;
  background: var(--shellce4d7-panel-soft);
  border: 1px solid var(--shellce4d7-line);
  border-radius: var(--shellce4d7-radius-sm);
  color: var(--shellce4d7-ink);
  text-decoration: none;
  font-size: 12.5px; font-weight: 600;
}
.shellce4d7-chip b { color: var(--shellce4d7-coral); font-weight: 700; }
.shellce4d7-chip:active { border-color: var(--shellce4d7-coral); }

/* ---------- game sections ---------- */
.shellce4d7-sec { padding: 20px 14px 6px; }
.shellce4d7-sectitle {
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.3;
  padding-left: 9px;
  border-left: 4px solid var(--shellce4d7-pink);
}
.shellce4d7-secintro {
  margin: 8px 0 4px;
  font-size: 13.5px;
  color: var(--shellce4d7-muted);
}
.shellce4d7-secintro a { text-underline-offset: 3px; }
.shellce4d7-related {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 10px 0 12px;
}
.shellce4d7-relatedlink {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px;
  padding: 7px 11px;
  background: rgba(255, 105, 180, .12);
  border: 1px solid rgba(255, 105, 180, .35);
  border-radius: var(--shellce4d7-radius-sm);
  color: var(--shellce4d7-ink);
  text-decoration: none;
  font-size: 12px; font-weight: 600;
}
.shellce4d7-relatedlink::before { content: "\2197"; color: var(--shellce4d7-pink); font-size: 13px; }

/* compact square tile grid */
.shellce4d7-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  list-style: none;
}
.shellce4d7-tilebtn {
  display: flex; flex-direction: column; align-items: center;
  width: 100%;
  padding: 7px 4px 6px;
  background: var(--shellce4d7-panel-soft);
  border: 1px solid rgba(70, 88, 107, .6);
  border-radius: var(--shellce4d7-radius);
  color: var(--shellce4d7-ink);
  text-align: center;
  transition: transform .18s ease, border-color .18s ease;
}
.shellce4d7-tilebtn:active,
.shellce4d7-tilebtn:hover {
  transform: translateY(-3px);
  border-color: var(--shellce4d7-coral);
}
.shellce4d7-tileimg {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--shellce4d7-radius-sm);
  background: var(--shellce4d7-bg-deep);
}
.shellce4d7-tilename {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 5px;
  font-size: 10.5px;
  line-height: 1.25;
  min-height: 27px;
  color: var(--shellce4d7-muted);
}
.shellce4d7-tilebtn:hover .shellce4d7-tilename { color: var(--shellce4d7-ink); }

/* ---------- provider strip ---------- */
.shellce4d7-providers { padding: 18px 14px 4px; }
.shellce4d7-providerlabel {
  font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--shellce4d7-muted); margin-bottom: 8px;
}
.shellce4d7-providerrow {
  display: flex; gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.shellce4d7-providerrow::-webkit-scrollbar { display: none; }
.shellce4d7-providerrow img {
  flex: none;
  height: 34px; width: auto;
  border-radius: var(--shellce4d7-radius-sm);
  background: var(--shellce4d7-panel-soft);
  padding: 3px 5px;
}

/* ---------- testimonial quotes ---------- */
.shellce4d7-quotes { margin-top: 10px; }
.shellce4d7-quote {
  border: 1px solid var(--shellce4d7-line);
  border-left: 3px solid var(--shellce4d7-pink);
  background: var(--shellce4d7-panel-soft);
  border-radius: var(--shellce4d7-radius-sm);
  padding: 11px 12px;
  margin-bottom: 10px;
}
.shellce4d7-quotehead {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px; margin-bottom: 4px;
}
.shellce4d7-quotehead strong { font-size: 13px; }
.shellce4d7-quotehead span { font-size: 11.5px; color: var(--shellce4d7-muted); }
.shellce4d7-stars { color: var(--shellce4d7-coral); font-size: 12px; letter-spacing: 2px; }
.shellce4d7-quote p { font-size: 13px; margin: 0; }

/* ---------- numbered steps ---------- */
.shellce4d7-steps { list-style: none; counter-reset: shellce4d7step; margin-top: 10px; }
.shellce4d7-step {
  position: relative;
  padding: 10px 12px 10px 48px;
  border: 1px solid var(--shellce4d7-line);
  background: var(--shellce4d7-panel-soft);
  border-radius: var(--shellce4d7-radius-sm);
  margin-bottom: 8px;
  font-size: 13px;
}
.shellce4d7-step::before {
  counter-increment: shellce4d7step;
  content: counter(shellce4d7step);
  position: absolute; left: 9px; top: 10px;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: var(--shellce4d7-coral);
  color: #1e2a36;
  font-family: var(--shellce4d7-font-head);
  font-weight: 700; font-size: 14px;
  border-radius: var(--shellce4d7-radius-sm);
}
.shellce4d7-step b { color: var(--shellce4d7-ink); }

/* ---------- app download split ---------- */
.shellce4d7-appsplit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.shellce4d7-apppane {
  border: 1px solid var(--shellce4d7-line);
  background: var(--shellce4d7-panel-soft);
  border-radius: var(--shellce4d7-radius);
  padding: 11px 10px;
}
.shellce4d7-apppane h3 { font-size: 13.5px; margin-bottom: 5px; }
.shellce4d7-apppane p { font-size: 12px; color: var(--shellce4d7-muted); margin-bottom: 10px; }
.shellce4d7-panebtn {
  display: block; width: 100%;
  min-height: 42px;
  padding: 10px 6px;
  background: var(--shellce4d7-coral);
  color: #1e2a36;
  border: 0;
  border-radius: var(--shellce4d7-radius-sm);
  font-size: 12.5px; font-weight: 700;
  text-align: center;
  transition: filter .15s ease;
}
.shellce4d7-panebtn:active { filter: brightness(1.15); }
.shellce4d7-applinks { display: grid; gap: 7px; }
.shellce4d7-applinks a {
  display: block;
  min-height: 40px;
  padding: 9px 8px;
  border: 1px solid var(--shellce4d7-line);
  border-radius: var(--shellce4d7-radius-sm);
  color: var(--shellce4d7-ink);
  text-decoration: none;
  text-align: center;
  font-size: 12px; font-weight: 600;
}

/* ---------- feature rows ---------- */
.shellce4d7-featlist {
  margin: 10px 0 0;
  border: 1px solid var(--shellce4d7-line);
  border-radius: var(--shellce4d7-radius);
  overflow: hidden;
}
.shellce4d7-featrow {
  display: grid;
  grid-template-columns: 104px 1fr;
  border-bottom: 1px solid rgba(70, 88, 107, .55);
}
.shellce4d7-featrow:last-child { border-bottom: 0; }
.shellce4d7-featrow dt {
  padding: 9px 10px;
  background: rgba(49, 68, 90, .55);
  font-family: var(--shellce4d7-font-head);
  font-size: 12.5px; font-weight: 600;
  color: var(--shellce4d7-coral);
}
.shellce4d7-featrow dd {
  margin: 0;
  padding: 9px 10px;
  font-size: 12.5px;
  color: var(--shellce4d7-muted);
}

/* ---------- scenario branches ---------- */
.shellce4d7-branch {
  border: 1px solid var(--shellce4d7-line);
  background: var(--shellce4d7-panel-soft);
  border-radius: var(--shellce4d7-radius);
  padding: 11px 12px;
  margin: 0 0 10px;
}
.shellce4d7-branchtag {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 9px;
  background: rgba(255, 105, 180, .16);
  color: var(--shellce4d7-pink);
  border-radius: var(--shellce4d7-radius-sm);
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .4px;
}
.shellce4d7-branch p { font-size: 13px; margin: 0; }

/* ---------- plain article block ---------- */
.shellce4d7-article p { font-size: 13.5px; color: var(--shellce4d7-muted); }
.shellce4d7-article p strong { color: var(--shellce4d7-ink); }
.shellce4d7-article a { text-underline-offset: 3px; }

/* ---------- extended footer (homepage) ---------- */
.shellce4d7-ext {
  margin-top: 24px;
  padding: 20px 16px 8px;
  background: var(--shellce4d7-bg-deep);
  border-top: 1px solid var(--shellce4d7-line);
}
.shellce4d7-exttitle {
  font-size: 16.5px;
  padding-left: 9px;
  border-left: 4px solid var(--shellce4d7-coral);
}
.shellce4d7-extbrand {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 12px;
}
.shellce4d7-extbrand img {
  width: 34px; height: 34px;
  border-radius: 7px;
  border: 1px solid var(--shellce4d7-line);
}
.shellce4d7-extbrand p { font-size: 12.5px; color: var(--shellce4d7-muted); margin: 0; }
.shellce4d7-ext h3 {
  font-size: 13.5px;
  color: var(--shellce4d7-ink);
  margin: 18px 0 8px;
}
.shellce4d7-extlist { list-style: none; display: grid; gap: 8px; }
.shellce4d7-extpromo {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  background: var(--shellce4d7-panel);
  border: 1px solid var(--shellce4d7-line);
  border-left: 3px solid var(--shellce4d7-coral);
  border-radius: var(--shellce4d7-radius-sm);
  color: var(--shellce4d7-ink);
  text-align: left;
  font-size: 13px; font-weight: 600;
  transition: transform .18s ease, border-color .18s ease;
}
.shellce4d7-extpromo svg { flex: none; color: var(--shellce4d7-coral); }
.shellce4d7-extpromo span { color: var(--shellce4d7-muted); font-size: 11.5px; font-weight: 400; margin-left: auto; text-align: right; }
.shellce4d7-extpromo:active { transform: translateY(-2px); border-color: var(--shellce4d7-coral); }
.shellce4d7-dirgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 10px;
}
.shellce4d7-dirgrid a {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px;
  color: var(--shellce4d7-muted);
  text-decoration: none;
  font-size: 12.5px;
  border-bottom: 1px dashed rgba(70, 88, 107, .7);
}
.shellce4d7-dirgrid a::before { content: "\203A"; color: var(--shellce4d7-pink); }
.shellce4d7-dirgrid a:active { color: var(--shellce4d7-pink); }
.shellce4d7-extnote {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--shellce4d7-line);
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--shellce4d7-muted);
}

/* ---------- common footer ---------- */
.shellce4d7-footer {
  padding: 14px 16px 18px;
  text-align: center;
  background: var(--shellce4d7-bg-deep);
  border-top: 1px solid var(--shellce4d7-line);
  font-size: 12px;
  color: var(--shellce4d7-muted);
}
.shellce4d7-footer b { color: var(--shellce4d7-coral); font-weight: 600; }

/* ---------- fixed mobile bottom nav ---------- */
.shellce4d7-bnav {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: calc(var(--shellce4d7-bnav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--shellce4d7-bg-deep);
  border-top: 1px solid var(--shellce4d7-line);
  z-index: 45;
}
.shellce4d7-bnavitem {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  min-height: var(--shellce4d7-bnav-h);
  padding: 6px 2px 4px;
  background: none;
  border: 0;
  color: var(--shellce4d7-muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
}
.shellce4d7-bnavitem svg { transition: transform .18s ease; }
.shellce4d7-bnavitem:active svg { transform: translateY(-2px); }
.shellce4d7-bnavlabel { transition: color .2s ease; letter-spacing: .2px; }
.shellce4d7-bnavitem:active .shellce4d7-bnavlabel { color: var(--shellce4d7-ink); }
.shellce4d7-bnavitem.shellce4d7-is-current { color: var(--shellce4d7-coral); }
.shellce4d7-bnavitem.shellce4d7-is-current::before {
  content: "";
  position: absolute;
  top: 0; left: 10px; right: 10px;
  height: 3px;
  background: var(--shellce4d7-coral);
  border-radius: 0 0 3px 3px;
}
.shellce4d7-bnavitem.shellce4d7-is-current .shellce4d7-bnavlabel {
  color: var(--shellce4d7-coral);
  font-weight: 700;
}

/* ---------- responsive: dense phones ---------- */
@media (max-width: 430px) {
  .shellce4d7-h1 { font-size: 19px; }
  .shellce4d7-sectitle { font-size: 16.5px; }
  .shellce4d7-sec { padding: 17px 12px 5px; }
  .shellce4d7-hero { margin: 10px 12px 0; }
  .shellce4d7-grid { gap: 7px; }
  .shellce4d7-tilename { font-size: 10px; }
  .shellce4d7-seg { max-width: 208px; }
  .shellce4d7-segbtn { font-size: 12.5px; padding: 8px 4px; }
  .shellce4d7-heronav { width: 30px; height: 42px; }
  .shellce4d7-ext { padding: 18px 13px 8px; }
  .shellce4d7-dirgrid { gap: 6px 8px; }
}

/* smallest canvas: keep 4 readable columns */
@media (max-width: 359px) {
  .shellce4d7-grid { gap: 6px; }
  .shellce4d7-tilename { font-size: 9.5px; }
  .shellce4d7-sitename { font-size: 19px; }
  .shellce4d7-appsplit { grid-template-columns: 1fr; }
  .shellce4d7-dirgrid { grid-template-columns: 1fr; }
}

/* wider phone canvas: fit a 5th tile column */
@media (min-width: 391px) {
  .shellce4d7-grid { grid-template-columns: repeat(5, 1fr); gap: 9px; }
}

/* desktop: keep the centered phone canvas visible as a frame */
@media (min-width: 431px) {
  body { padding: 0; }
  .shellce4d7-canvas {
    border-left: 1px solid #0d1319;
    border-right: 1px solid #0d1319;
    box-shadow: 0 0 44px rgba(5, 9, 13, .55);
  }
}

/* respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shellce4d7-herotrack { transition: none; }
  .shellce4d7-tilebtn,
  .shellce4d7-extpromo,
  .shellce4d7-bnavitem svg { transition: none; }
  .shellce4d7-tilebtn:active,
  .shellce4d7-tilebtn:hover { transform: none; }
}

/* ---------- help-page tools: editorial rails and checkable records ---------- */
.shellce4d7-helpintro {
  margin: 14px 14px 0;
  padding: 16px 14px 15px;
  border: 1px solid var(--shellce4d7-line);
  border-top: 4px solid var(--shellce4d7-coral);
  background: linear-gradient(135deg, rgba(250,128,114,.18), rgba(49,68,90,.72));
}
.shellce4d7-helpintro h1 { font-size: 23px; line-height: 1.2; }
.shellce4d7-helpintro p { margin: 9px 0 0; color: var(--shellce4d7-muted); font-size: 13.5px; }
.shellce4d7-helpstamp {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--shellce4d7-pink);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.shellce4d7-actiongrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.shellce4d7-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 9px 8px;
  border: 1px solid var(--shellce4d7-coral);
  border-radius: var(--shellce4d7-radius-sm);
  background: var(--shellce4d7-coral);
  color: #1e2a36;
  text-align: center;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
}
.shellce4d7-action-alt { background: transparent; color: var(--shellce4d7-coral); }
.shellce4d7-action:active { filter: brightness(1.14); }
.shellce4d7-rail {
  position: relative;
  margin: 16px 14px 0;
  padding-left: 19px;
  border-left: 2px solid rgba(255,105,180,.5);
}
.shellce4d7-railitem {
  position: relative;
  margin: 0 0 12px;
  padding: 11px 12px;
  border: 1px solid var(--shellce4d7-line);
  background: var(--shellce4d7-panel-soft);
  border-radius: var(--shellce4d7-radius-sm);
}
.shellce4d7-railitem::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 15px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--shellce4d7-bg);
  border-radius: 50%;
  background: var(--shellce4d7-coral);
}
.shellce4d7-railitem h3 { margin: 0 0 5px; font-size: 14px; color: var(--shellce4d7-ink); }
.shellce4d7-railitem p { margin: 0; color: var(--shellce4d7-muted); font-size: 13px; }
.shellce4d7-checkgrid { display: grid; gap: 8px; margin-top: 10px; }
.shellce4d7-checkitem {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 9px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--shellce4d7-line);
  background: rgba(49,68,90,.55);
  border-radius: var(--shellce4d7-radius-sm);
}
.shellce4d7-checkmark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--shellce4d7-pink);
  border-radius: 50%;
  color: var(--shellce4d7-pink);
  font-size: 15px;
  font-weight: 700;
}
.shellce4d7-checkitem strong { display: block; margin-bottom: 2px; font-size: 13px; color: var(--shellce4d7-ink); }
.shellce4d7-checkitem span { color: var(--shellce4d7-muted); font-size: 12.5px; }
.shellce4d7-helpnote {
  margin-top: 10px;
  padding: 11px 12px;
  border-left: 3px solid var(--shellce4d7-coral);
  background: rgba(250,128,114,.12);
  color: var(--shellce4d7-muted);
  font-size: 13px;
}
.shellce4d7-helpnote strong { color: var(--shellce4d7-ink); }
.shellce4d7-matrix { margin-top: 10px; border: 1px solid var(--shellce4d7-line); border-radius: var(--shellce4d7-radius); overflow: hidden; }
.shellce4d7-matrixrow { display: grid; grid-template-columns: 42% 58%; border-bottom: 1px solid var(--shellce4d7-line); }
.shellce4d7-matrixrow:last-child { border-bottom: 0; }
.shellce4d7-matrixrow > * { margin: 0; padding: 10px; font-size: 12.5px; }
.shellce4d7-matrixrow dt { background: rgba(250,128,114,.13); color: var(--shellce4d7-coral); font-weight: 700; }
.shellce4d7-matrixrow dd { color: var(--shellce4d7-muted); background: var(--shellce4d7-panel-soft); }
.shellce4d7-faqstack { display: grid; gap: 8px; margin-top: 10px; }
.shellce4d7-faqitem { border: 1px solid var(--shellce4d7-line); background: var(--shellce4d7-panel-soft); border-radius: var(--shellce4d7-radius-sm); }
.shellce4d7-faqitem summary { cursor: pointer; padding: 12px; color: var(--shellce4d7-ink); font-size: 13px; font-weight: 700; }
.shellce4d7-faqitem p { padding: 0 12px 12px; margin: 0; color: var(--shellce4d7-muted); font-size: 12.5px; }
.shellce4d7-safetyband {
  margin: 14px 14px 0;
  padding: 13px;
  border: 1px solid rgba(255,105,180,.45);
  background: rgba(255,105,180,.1);
}
.shellce4d7-safetyband strong { display: block; color: var(--shellce4d7-pink); font-size: 13.5px; }
.shellce4d7-safetyband span { display: block; margin-top: 4px; color: var(--shellce4d7-muted); font-size: 12.5px; }
.shellce4d7-signal {
  display: grid;
  grid-template-columns: 9px 1fr;
  gap: 10px;
  margin-top: 9px;
  padding: 10px;
  border: 1px solid var(--shellce4d7-line);
  background: var(--shellce4d7-panel-soft);
  border-radius: var(--shellce4d7-radius-sm);
}
.shellce4d7-signal i { display: block; width: 9px; min-height: 100%; background: var(--shellce4d7-coral); border-radius: 5px; }
.shellce4d7-signal strong { display: block; font-size: 13px; color: var(--shellce4d7-ink); }
.shellce4d7-signal p { margin: 3px 0 0; color: var(--shellce4d7-muted); font-size: 12.5px; }
.shellce4d7-safetycols { display: grid; gap: 9px; margin-top: 10px; }
.shellce4d7-safetycol { padding: 12px; border-top: 3px solid var(--shellce4d7-pink); background: var(--shellce4d7-panel-soft); }
.shellce4d7-safetycol h3 { font-size: 14px; margin-bottom: 5px; }
.shellce4d7-safetycol p { color: var(--shellce4d7-muted); font-size: 12.5px; margin: 0; }
.shellce4d7-route {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px dashed var(--shellce4d7-line);
}
.shellce4d7-route:last-child { border-bottom: 0; }
.shellce4d7-route b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--shellce4d7-coral); color: #1e2a36; font-size: 12px; }
.shellce4d7-route span { color: var(--shellce4d7-muted); font-size: 12.5px; }
.shellce4d7-route strong { color: var(--shellce4d7-ink); }
.shellce4d7-helpfoot { padding: 18px 14px 2px; }
.shellce4d7-helpfoot p { color: var(--shellce4d7-muted); font-size: 12.5px; }
@media (max-width: 359px) {
  .shellce4d7-actiongrid { grid-template-columns: 1fr; }
  .shellce4d7-helpintro h1 { font-size: 21px; }
}
