/* ---------------------------------------------------------------------------
   AllInOneMonitor - Website, server & infrastructure monitoring
   Author: MD OMAR FARUK | www.faruk.bd | Copyright (c) 2026
   --------------------------------------------------------------------------- */
/* AllInOneMonitor - one stylesheet for the public site, the user panel and the admin panel. */
:root {
  --accent: #059669; --accent-2: #10b981; --accent-ink: #fff; --accent-soft: rgba(5, 150, 105, .12);
  --bg: #f4f5fa; --card: #ffffff; --ink: #111827; --ink-2: #374151; --muted: #6b7280; --line: #e5e7eb; --line-2: #f3f4f6;
  --green: #16a34a; --red: #dc2626; --yellow: #d97706; --blue: #2563eb; --gray: #9ca3af;
  --green-soft: rgba(22, 163, 74, .12); --red-soft: rgba(220, 38, 38, .12); --yellow-soft: rgba(217, 119, 6, .14); --blue-soft: rgba(37, 99, 235, .12); --gray-soft: rgba(156, 163, 175, .18);
  --radius: 12px; --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06); --shadow-lg: 0 12px 32px rgba(16, 24, 40, .12);
  --side-w: 248px; --font: 'Inter', 'Segoe UI', system-ui, -apple-system, 'Noto Sans Bengali', sans-serif; --mono: ui-monospace, 'Cascadia Code', Consolas, monospace;
}
[data-theme="dark"] {
  --bg: #0f1218; --card: #171b24; --ink: #e5e7eb; --ink-2: #cbd1dc; --muted: #9aa3b2; --line: #262c38; --line-2: #1e232d; --accent-soft: rgba(5, 150, 105, .2);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4); --shadow-lg: 0 12px 32px rgba(0, 0, 0, .5); --gray: #6b7280;
}
@media (prefers-color-scheme: dark) { [data-theme="auto"] { --bg: #0f1218; --card: #171b24; --ink: #e5e7eb; --ink-2: #cbd1dc; --muted: #9aa3b2; --line: #262c38; --line-2: #1e232d; --accent-soft: rgba(5, 150, 105, .2); --shadow: 0 1px 2px rgba(0, 0, 0, .4); --shadow-lg: 0 12px 32px rgba(0, 0, 0, .5); --gray: #6b7280; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 14.5px; line-height: 1.55; color: var(--ink); background: var(--bg); }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 24px; } h2 { font-size: 19px; } h3 { font-size: 16px; } h4 { font-size: 14px; }
p { margin: 0 0 1em; } img { max-width: 100%; } code, .mono { font-family: var(--mono); font-size: .92em; }
pre { background: #0f172a; color: #e2e8f0; padding: 14px 16px; border-radius: 10px; overflow: auto; font-size: 13px; line-height: 1.5; }
[data-theme="dark"] pre { background: #0b0e14; }
/* a code box given a light background inline (var(--line-2)) or by its own class needs the page text colour, not the dark-box one */
pre[style*="background:var(--line"], pre.mt-code { color: var(--ink); border: 1px solid var(--line); }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .right { text-align: right; } .center { text-align: center; } .nowrap { white-space: nowrap; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .row.between { justify-content: space-between; } .grow { flex: 1; }
.hidden, [hidden] { display: none !important; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 10px; top: 10px; background: var(--card); padding: 8px; z-index: 999; }
.ic { width: 18px; height: 18px; flex: none; vertical-align: -4px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* ---- buttons / badges / forms */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; transition: .15s; white-space: nowrap; line-height: 1.2; }
.btn:hover { text-decoration: none; border-color: var(--muted); } .btn .ic { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); } .btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-ghost { background: transparent; } .btn-danger { color: var(--red); border-color: rgba(220, 38, 38, .35); } .btn-danger:hover { background: var(--red-soft); }
.btn-success { background: var(--green); border-color: var(--green); color: #fff; } .btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 7px; } .btn-lg { padding: 13px 24px; font-size: 16px; }
.btn.busy { opacity: .6; pointer-events: none; } .btn:disabled { opacity: .5; cursor: default; } .btn-block { width: 100%; justify-content: center; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--ink-2); cursor: pointer; position: relative; } .icon-btn:hover { background: var(--line-2); text-decoration: none; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.4; }
.badge .dot { width: 7px; height: 7px; } .st-green { background: var(--green-soft); color: var(--green); } .st-red { background: var(--red-soft); color: var(--red); } .st-yellow { background: var(--yellow-soft); color: var(--yellow); } .st-blue { background: var(--blue-soft); color: var(--blue); } .st-gray { background: var(--gray-soft); color: var(--muted); }
.pill { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--line-2); color: var(--ink-2); font-size: 12px; font-weight: 600; }
.alert { padding: 12px 40px 12px 14px; border-radius: 10px; margin-bottom: 14px; position: relative; border: 1px solid; font-weight: 500; }
.alert-success { background: var(--green-soft); border-color: rgba(22, 163, 74, .3); color: var(--green); } .alert-danger { background: var(--red-soft); border-color: rgba(220, 38, 38, .3); color: var(--red); } .alert-warning { background: var(--yellow-soft); border-color: rgba(217, 119, 6, .3); color: var(--yellow); } .alert-info { background: var(--blue-soft); border-color: rgba(37, 99, 235, .3); color: var(--blue); }
.alert-x { position: absolute; right: 8px; top: 6px; background: none; border: 0; font-size: 20px; color: inherit; cursor: pointer; opacity: .6; }
label { font-weight: 600; font-size: 13px; color: var(--ink-2); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], input[type=date], input[type=datetime-local], input[type=time], select, textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--ink); font: inherit; transition: .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); } textarea { min-height: 90px; resize: vertical; }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; accent-color: var(--accent); vertical-align: -2px; margin-right: 6px; }
.f-row { margin-bottom: 14px; } .f-row > label { display: block; margin-bottom: 5px; } .f-row small { display: block; margin-top: 4px; } .f-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 16px; } .f-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; } .check input { margin: 0; }
.inline { display: inline; } .toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; } .toolbar input[type=search], .toolbar select { width: auto; min-width: 160px; }
.input-group { display: flex; } .input-group input { border-radius: 9px 0 0 9px; } .input-group .btn { border-radius: 0 9px 9px 0; border-left: 0; }

/* ---- cards / grids / tables */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; } .card-head h2, .card-head h3 { margin: 0; }
.card.flush { padding: 0; overflow: hidden; } .card.flush .card-head { padding: 16px 20px 0; }
.grid { display: grid; gap: 18px; } .grid > * { min-width: 0; } .cols-2 { grid-template-columns: repeat(2, 1fr); } .cols-3 { grid-template-columns: repeat(3, 1fr); } .cols-4 { grid-template-columns: repeat(4, 1fr); } .cols-2-1 { grid-template-columns: 2fr 1fr; } .cols-1-2 { grid-template-columns: 1fr 2fr; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stat-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; } .stat-ic .ic { width: 20px; height: 20px; }
.stat.green .stat-ic { background: var(--green-soft); color: var(--green); } .stat.red .stat-ic { background: var(--red-soft); color: var(--red); } .stat.yellow .stat-ic { background: var(--yellow-soft); color: var(--yellow); } .stat.gray .stat-ic { background: var(--gray-soft); color: var(--muted); } .stat.blue .stat-ic { background: var(--blue-soft); color: var(--blue); }
.stat-v { font-size: 24px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; } .stat-l { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 2px; } .stat-s { font-size: 12px; }
.tbl { width: 100%; border-collapse: collapse; } .tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); font-weight: 700; white-space: nowrap; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; } .tbl tr:last-child td { border-bottom: 0; } .tbl tr:hover td { background: var(--line-2); } .tbl .right, .tbl th.right { text-align: right; } .tbl a.strong { color: var(--ink); font-weight: 600; }
.tbl-wrap { overflow-x: auto; } .tbl .actions { white-space: nowrap; text-align: right; } .tbl .actions .btn, .tbl .actions form { margin-left: 4px; }
.pager { display: flex; gap: 4px; align-items: center; margin-top: 14px; flex-wrap: wrap; } .pager a { padding: 6px 11px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink-2); font-weight: 600; } .pager a.on { background: var(--accent); color: #fff; border-color: var(--accent); } .pager .muted { margin-left: 8px; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); } .empty .ic { width: 42px; height: 42px; opacity: .5; margin-bottom: 10px; } .empty h3 { color: var(--ink); } .empty .btn { margin-top: 10px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; } .tabs a { padding: 10px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; } .tabs a.on { color: var(--accent); border-color: var(--accent); } .tabs a:hover { text-decoration: none; color: var(--ink); }
.upbar { display: flex; gap: 2px; height: 28px; align-items: stretch; } .upbar i { flex: 1; border-radius: 2px; background: var(--gray-soft); min-width: 2px; } .upbar i.ok { background: var(--green); } .upbar i.warn { background: var(--yellow); } .upbar i.bad { background: var(--red); } .upbar i.none { background: var(--line); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 13.5px; } .kv dt { color: var(--muted); font-weight: 600; } .kv dd { margin: 0; word-break: break-word; }
.menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 50; display: none; } .menu.open { display: block; } .menu.right { left: auto; right: 0; }
.menu a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 7px; color: var(--ink); font-weight: 500; } .menu a:hover { background: var(--line-2); text-decoration: none; } .menu a.on { background: var(--accent-soft); color: var(--accent); } .menu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: flex; flex-direction: column; }
.ava, .org-ava { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: none; }
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 999; display: flex; flex-direction: column; gap: 8px; } .toast { background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(8px); transition: .25s; font-weight: 600; } .toast.show { opacity: 1; transform: none; } .toast-success { background: var(--green); color: #fff; } .toast-danger { background: var(--red); color: #fff; }
.chart-box { position: relative; height: 240px; } .chart-box.tall { height: 320px; } .chart-box.short { height: 160px; }
.progress { height: 8px; background: var(--line-2); border-radius: 999px; overflow: hidden; } .progress i { display: block; height: 100%; background: var(--accent); border-radius: 999px; } .progress.green i { background: var(--green); } .progress.yellow i { background: var(--yellow); } .progress.red i { background: var(--red); }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); } .timeline li { position: relative; padding: 0 0 16px 18px; } .timeline li::before { content: ""; position: absolute; left: -7px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--card); }
.code-box { position: relative; } .code-box .btn { position: absolute; right: 8px; top: 8px; }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; } .type-opt { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; transition: .15s; } .type-opt input { display: none; } .type-opt:hover { border-color: var(--muted); } .type-opt.on, .type-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); } .type-opt b { display: block; margin-bottom: 3px; } .type-opt small { color: var(--muted); display: block; line-height: 1.35; }

/* ---- public site */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; } .wrap.narrow { max-width: 820px; }
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--card) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-nav { display: flex; align-items: center; gap: 24px; height: 64px; } .site-menu { display: flex; gap: 4px; flex: 1; } .site-menu a { padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 600; } .site-menu a:hover, .site-menu a.on { background: var(--line-2); text-decoration: none; color: var(--ink); }
.site-actions { display: flex; align-items: center; gap: 8px; } .menu-btn { display: none; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; color: var(--ink); letter-spacing: -.02em; } .brand:hover { text-decoration: none; } .brand img { height: 34px; width: auto; max-width: 240px; object-fit: contain; display: block; } .brand-mark { width: 30px; height: 30px; } .brand-sm { font-size: 16px; } .brand-sm .brand-mark { width: 26px; height: 26px; } .brand-sm img { height: 30px; max-width: 200px; }
/* logo for the theme in use: light logo (dark text) on light pages, dark logo (white text) on dark pages */
.brand .brand-dark { display: none; } [data-theme="dark"] .brand .brand-light { display: none; } [data-theme="dark"] .brand .brand-dark { display: block; }
@media (prefers-color-scheme: dark) { [data-theme="auto"] .brand .brand-light { display: none; } [data-theme="auto"] .brand .brand-dark { display: block; } }
.auth-top .brand img { height: 44px; } .maint-page .brand { justify-content: center; } .maint-page .brand img { height: 48px; }
.lang-toggle { font-weight: 700; font-size: 12.5px; padding: 6px 9px; border-radius: 7px; border: 1px solid var(--line); color: var(--ink-2); } .lang-toggle:hover { text-decoration: none; background: var(--line-2); }
.theme-toggle .ic-moon { display: none; } [data-theme="dark"] .theme-toggle .ic-sun { display: none; } [data-theme="dark"] .theme-toggle .ic-moon { display: block; } .theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (prefers-color-scheme: dark) { [data-theme="auto"] .theme-toggle .ic-sun { display: none; } [data-theme="auto"] .theme-toggle .ic-moon { display: block; } }
.site-main { min-height: 60vh; }
.hero { padding: 72px 0 56px; text-align: center; background: radial-gradient(ellipse at top, var(--accent-soft), transparent 60%); } .hero h1 { font-size: clamp(32px, 5vw, 52px); max-width: 820px; margin: 0 auto 16px; } .hero p { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0 auto 26px; } .hero .row { justify-content: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; margin-bottom: 18px; } .hero-badge .dot { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.section { padding: 56px 0; } .section h2 { font-size: clamp(24px, 3vw, 32px); text-align: center; margin-bottom: 8px; } .section .lead { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 32px; font-size: 16px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; } .feature { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; } .feature .stat-ic { margin-bottom: 12px; } .feature h3 { margin-bottom: 6px; } .feature p { color: var(--muted); margin: 0; font-size: 14px; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; align-items: stretch; } .price { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; position: relative; } .price.hot { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); } .price .tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 999px; letter-spacing: .04em; }
.price .amount { font-size: 38px; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 2px; } .price .amount small { font-size: 14px; color: var(--muted); font-weight: 600; } .price ul { list-style: none; padding: 0; margin: 16px 0 20px; flex: 1; } .price li { padding: 6px 0; border-top: 1px solid var(--line-2); font-size: 13.5px; display: flex; gap: 8px; } .price li .ic { color: var(--green); width: 16px; }
.cycle-switch { display: inline-flex; background: var(--line-2); border-radius: 999px; padding: 3px; margin: 0 auto 26px; } .cycle-switch a { padding: 7px 16px; border-radius: 999px; font-weight: 600; color: var(--muted); } .cycle-switch a.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); } .cycle-switch a:hover { text-decoration: none; }
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 24px; background: var(--card); margin-top: 40px; } .foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; } .foot-grid h4 { margin-bottom: 10px; } .foot-grid a { display: block; color: var(--ink-2); padding: 3px 0; font-size: 13.5px; } .foot-brand p { margin: 10px 0; } .foot-status { display: inline-flex !important; align-items: center; gap: 7px; font-weight: 600; } .foot-status .dot { color: var(--green); }
.foot-bottom { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px; font-size: 13px; color: var(--muted); }
.prose { max-width: 820px; } .prose h2 { margin-top: 1.4em; } .prose h3 { margin-top: 1.2em; } .prose li { margin-bottom: 4px; } .prose img { border-radius: 10px; }
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; } .doc-nav { position: sticky; top: 80px; } .doc-nav a { display: block; padding: 6px 10px; border-radius: 7px; color: var(--ink-2); font-weight: 500; } .doc-nav a.on, .doc-nav a:hover { background: var(--line-2); text-decoration: none; } .doc-nav h4 { margin: 14px 10px 4px; font-size: 11.5px; text-transform: uppercase; color: var(--muted); letter-spacing: .05em; }
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 520px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow-lg); z-index: 60; display: flex; gap: 12px; align-items: center; font-size: 13.5px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; } .post-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; } .post-card .body { padding: 18px; } .post-card .cover { aspect-ratio: 16/9; background: var(--line-2); object-fit: cover; width: 100%; }
.changelog-item { border-left: 3px solid var(--accent); padding: 4px 0 20px 18px; position: relative; } .changelog-item .ver { font-family: var(--mono); font-weight: 700; color: var(--accent); }

/* ---- auth */
.auth { background: var(--bg); } .auth-wrap { max-width: 440px; margin: 0 auto; padding: 40px 16px; } .auth-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; } .auth-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); } .auth-card h1 { font-size: 22px; } .auth-foot { text-align: center; margin-top: 18px; font-size: 13px; }
.social-btns { display: grid; gap: 8px; margin: 14px 0; } .or { text-align: center; color: var(--muted); font-size: 12px; margin: 14px 0; position: relative; } .or::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); z-index: 0; } .or span { background: var(--card); padding: 0 10px; position: relative; }
.code-input { font-size: 26px; letter-spacing: 8px; text-align: center; font-family: var(--mono); }
.qr { background: #fff; padding: 10px; border-radius: 10px; display: inline-block; }

/* ---- panel shell */
.panel { background: var(--bg); } .shell { display: flex; min-height: 100vh; }
.side { width: var(--side-w); flex: none; background: var(--card); border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 45; }
.side-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 10px; } .side-close { display: none; } .side-label { padding: 6px 20px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.org-switch { position: relative; padding: 4px 12px 10px; } .org-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; cursor: pointer; text-align: left; } .org-btn .org-name { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .org-switch .menu { left: 12px; right: 12px; }
.side-nav { flex: 1; padding: 6px 12px; } .side-nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px; color: var(--ink-2); font-weight: 600; margin-bottom: 2px; } .side-nav a:hover { background: var(--line-2); text-decoration: none; color: var(--ink); } .side-nav a.on { background: var(--accent-soft); color: var(--accent); } .side-nav .ic { width: 19px; height: 19px; opacity: .9; }
.nav-group { padding: 12px 12px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
/* menu sections: a bordered box per group so it is clear which pages belong together */
.nav-sec { border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin: 0 0 10px; background: var(--card); }
.nav-sec .nav-group { display: flex; align-items: center; gap: 8px; padding: 7px 10px 7px; margin: 0 0 4px; border-bottom: 1px dashed var(--line); }
.nav-sec .nav-group::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line); flex: none; }
.nav-sec.on { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: inset 3px 0 0 var(--accent); }
.nav-sec.on .nav-group { color: var(--accent); }
.nav-sec.on .nav-group::before { background: var(--accent); }
.nav-sec a { margin-bottom: 1px; }
.nav-sec a:last-child { margin-bottom: 0; }
.side-bottom { padding: 12px; border-top: 1px solid var(--line); display: grid; gap: 6px; } .plan-chip, .side-admin { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 9px; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line); } .plan-chip { background: var(--accent-soft); color: var(--accent); border-color: transparent; } .plan-chip:hover, .side-admin:hover { text-decoration: none; background: var(--line-2); }
.shell-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 10px 24px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; min-height: 58px; }
.top-search { flex: 1; max-width: 420px; display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; color: var(--muted); } .top-search input { border: 0; background: transparent; padding: 8px 0; } .top-search input:focus { box-shadow: none; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; } .user-menu { position: relative; } .user-btn { background: none; border: 0; padding: 0; cursor: pointer; }
.bell-n { position: absolute; top: 2px; right: 2px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 999px; line-height: 1.3; }
.crumbs { font-weight: 600; color: var(--muted); } .crumbs span { color: var(--ink); }
.content { padding: 24px; flex: 1; max-width: 1400px; width: 100%; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; } .page-head h1 { margin-bottom: 2px; } .page-head p { margin: 0; } .page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.panel-foot { display: flex; justify-content: space-between; padding: 14px 24px; font-size: 12.5px; border-top: 1px solid var(--line); }
.monitor-row .name { font-weight: 600; color: var(--ink); } .monitor-row .url { font-size: 12.5px; color: var(--muted); word-break: break-all; }
.loc-chip { display: inline-block; font-size: 11px; padding: 2px 7px; border-radius: 5px; background: var(--line-2); margin-right: 3px; font-weight: 600; }
.big-status { display: flex; align-items: center; gap: 14px; } .big-status .dot { width: 14px; height: 14px; } .big-status.up .dot { background: var(--green); box-shadow: 0 0 0 5px var(--green-soft); } .big-status.down .dot { background: var(--red); box-shadow: 0 0 0 5px var(--red-soft); } .big-status.degraded .dot { background: var(--yellow); box-shadow: 0 0 0 5px var(--yellow-soft); } .big-status.paused .dot, .big-status.pending .dot { background: var(--gray); }

/* ---- status page (public) */
.sp { max-width: 900px; margin: 0 auto; padding: 32px 20px; } .sp-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.sp-banner { padding: 18px 22px; border-radius: 14px; font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 12px; margin-bottom: 22px; } .sp-banner.operational { background: var(--green); color: #fff; } .sp-banner.degraded { background: var(--yellow); color: #fff; } .sp-banner.down { background: var(--red); color: #fff; } .sp-banner.maintenance { background: var(--blue); color: #fff; }
.sp-group { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 16px; overflow: hidden; } .sp-group h3 { padding: 12px 18px; margin: 0; background: var(--line-2); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.sp-comp { padding: 14px 18px; border-top: 1px solid var(--line-2); } .sp-comp .row { justify-content: space-between; } .sp-comp .upbar { margin-top: 10px; height: 22px; } .sp-comp .name { font-weight: 600; }
.sp-inc { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 14px; } .sp-inc.open { border-left: 4px solid var(--red); }
.sp-foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 30px; }

/* ---- responsive */
@media (max-width: 1000px) {
  .side { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: .2s; box-shadow: var(--shadow-lg); } .side.open { transform: none; } .side-close { display: inline-flex; }
  body.side-open::after { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 44; }
  .menu-btn { display: inline-flex; } .content { padding: 16px; } .topbar { padding: 8px 14px; } .top-search { display: none; }
  .cols-2, .cols-3, .cols-4, .cols-2-1, .cols-1-2 { grid-template-columns: 1fr; } .f-grid, .f-grid.cols-3 { grid-template-columns: 1fr; } .doc-layout { grid-template-columns: 1fr; } .doc-nav { position: static; }
}
@media (max-width: 760px) {
  .site-menu { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--card); border-bottom: 1px solid var(--line); flex-direction: column; padding: 10px; } .site-menu.open { display: flex; } .site-actions .btn-ghost { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; } .hero { padding: 44px 0 36px; } .section { padding: 36px 0; } .stat-v { font-size: 20px; } .tbl th, .tbl td { padding: 9px 8px; } .page-head { flex-direction: column; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media print { .side, .topbar, .site-header, .site-footer, .page-actions, .btn, .panel-foot { display: none !important; } .content { padding: 0; } .card { box-shadow: none; break-inside: avoid; } body { background: #fff; color: #000; } }
/* docs (docs/user/*.md through md_render) and the developer portal */
.doc-body { line-height: 1.65; } .doc-body.card { padding: 28px 32px; } .doc-body h1 { font-size: 30px; margin: 0 0 14px; } .doc-body h2 { font-size: 22px; margin: 34px 0 10px; padding-top: 8px; border-top: 1px solid var(--line-2); } .doc-body h3 { font-size: 17px; margin: 24px 0 8px; } .doc-body h4 { margin: 18px 0 6px; }
.doc-body h1 .anchor, .doc-body h2 .anchor, .doc-body h3 .anchor, .doc-body h4 .anchor { margin-left: 8px; color: var(--muted); opacity: 0; font-weight: 400; text-decoration: none; } .doc-body h2:hover .anchor, .doc-body h3:hover .anchor, .doc-body h4:hover .anchor { opacity: 1; }
.doc-body p, .doc-body ul, .doc-body ol { margin: 0 0 14px; } .doc-body li { margin: 4px 0; } .doc-body ul ul, .doc-body ol ol, .doc-body ul ol, .doc-body ol ul { margin: 4px 0 0; } .doc-body pre { margin: 0 0 16px; } .doc-body code { background: var(--line-2); padding: 1px 5px; border-radius: 5px; } .doc-body pre code { background: none; padding: 0; }
.doc-body blockquote { margin: 0 0 16px; padding: 10px 16px; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; } .doc-body blockquote p:last-child { margin: 0; }
.doc-body .tbl-wrap { overflow: auto; margin: 0 0 16px; } .doc-body .tbl td { vertical-align: top; } .doc-body img { max-width: 100%; border-radius: 10px; } .doc-body hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.doc-toc { background: var(--line-2); border-radius: 10px; padding: 12px 16px; margin: 0 0 20px; font-size: 14px; } .doc-toc ul { list-style: none; margin: 6px 0 0; padding: 0; columns: 2; gap: 24px; } .doc-toc li { margin: 2px 0; break-inside: avoid; } .doc-toc li.l3 { padding-left: 14px; font-size: 13px; }
/* the article column may never grow past the screen: long code scrolls inside its own box */
.doc-body { min-width: 0; overflow-wrap: anywhere; } .doc-body pre { max-width: 100%; overflow-x: auto; }
.doc-toc.is-long summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; } .doc-toc.is-long summary::-webkit-details-marker { display: none; } .doc-toc.is-long summary::before { content: "\25B8"; color: var(--muted); transition: transform .15s; } .doc-toc.is-long details[open] summary::before { transform: rotate(90deg); }
.doc-toc.is-long ul { columns: 3; } @media (max-width: 1000px) { .doc-toc.is-long ul { columns: 2; } }
.doc-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line-2); } .doc-search { margin: 0 0 8px; } .doc-search input { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); }
@media (max-width: 700px) { .doc-body.card { padding: 18px; } .doc-toc ul { columns: 1; } }

/* public header: the menu folds below 1100px (the links plus the actions no longer fit in one row) */
@media (max-width: 1100px) {
  .site-menu { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--card); border-bottom: 1px solid var(--line); flex-direction: column; padding: 10px; }
  .site-menu.open { display: flex; }
  .site-header .menu-btn { display: inline-flex; }
  .site-nav { gap: 12px; }
  .site-actions { margin-left: auto; }
}

/* phones: the 90-day bar must fit (90 marks), and the public header keeps its buttons on screen */
.upbar { overflow: hidden; }
.upbar i { min-width: 0; }
@media (max-width: 600px) { .upbar { gap: 1px; } }
@media (max-width: 440px) {
  .site-header .brand span { display: none; } .site-header .brand img { height: 30px; }
  .site-actions { gap: 6px; }
  .site-actions .btn { padding: 8px 12px; }
}

/* ===========================================================================
   2.1.4 public site: footer (.sf-*), home page (.hm-*), CMS pages (.page-*,
   .callout, .faq-item), product screenshots in light/dark (.shot-*)
   =========================================================================== */
/* product screenshots: two <picture>s, the theme picks one */
.shot-light { display: block; } .shot-dark { display: none; } [data-theme="dark"] .shot-light { display: none; } [data-theme="dark"] .shot-dark { display: block; }
@media (prefers-color-scheme: dark) { [data-theme="auto"] .shot-light { display: none; } [data-theme="auto"] .shot-dark { display: block; } }
.shot-light img, .shot-dark img { display: block; width: 100%; height: auto; }

/* footer */
.sf { padding: 0; margin-top: 56px; background: var(--card); }
.sf-cta { background: linear-gradient(120deg, #047857, var(--accent) 55%, #10b981); color: #fff; }
.sf-cta-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 0; flex-wrap: wrap; }
.sf-cta h2 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); margin: 0 0 6px; } .sf-cta p { margin: 0; color: rgba(255, 255, 255, .88); max-width: 560px; }
.sf-cta-btns, .hm-final .row { display: flex; gap: 10px; flex-wrap: wrap; }
.sf-btn-light { background: #fff; color: #065f46; border-color: #fff; font-weight: 700; } .sf-btn-light:hover { background: #ecfdf5; text-decoration: none; }
.sf-btn-line { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .6); } .sf-btn-line:hover { background: rgba(255, 255, 255, .12); text-decoration: none; }
.sf .wrap > .sf-grid { padding-top: 48px; }
.sf-grid { display: grid; grid-template-columns: minmax(240px, 1.7fr) repeat(5, minmax(0, 1fr)); gap: 28px; }
.sf-brand .brand { margin-bottom: 14px; } .sf-desc { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; max-width: 320px; }
.sf-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 12px; background: var(--bg); }
.sf-status:hover { text-decoration: none; border-color: var(--accent); }
.sf-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); animation: sfPulse 2s infinite; }
.sf-st-degraded .sf-pulse { background: var(--yellow); box-shadow: 0 0 0 3px var(--yellow-soft); } .sf-st-down .sf-pulse { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
@keyframes sfPulse { 50% { box-shadow: 0 0 0 6px transparent; } } @media (prefers-reduced-motion: reduce) { .sf-pulse { animation: none; } }
.sf-mail { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13.5px; margin-bottom: 12px; overflow-wrap: anywhere; } .sf-mail .ic { width: 16px; height: 16px; color: var(--accent); flex: none; }
.sf-social { display: flex; gap: 8px; flex-wrap: wrap; } .sf-social a { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); }
.sf-social a:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); } .sf-social svg { width: 17px; height: 17px; }
.sf-col h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 6px 0 14px; }
.sf-col ul { list-style: none; margin: 0; padding: 0; } .sf-col li { margin: 0 0 9px; } .sf-col a { color: var(--ink-2); font-size: 13.5px; } .sf-col a:hover { color: var(--accent); }
.sf-trust { list-style: none; margin: 40px 0 0; padding: 18px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sf-trust li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-2); } .sf-trust .ic { width: 18px; height: 18px; color: var(--accent); flex: none; }
.sf-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; border-top: 1px solid var(--line); padding: 18px 0 26px; font-size: 13px; color: var(--muted); }
.sf-prefs { display: flex; align-items: center; gap: 10px; }
.sf-lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; } .sf-lang a { padding: 4px 11px; border-radius: 999px; color: var(--muted); font-size: 12.5px; } .sf-lang a.on { background: var(--accent-soft); color: var(--accent); font-weight: 700; } .sf-lang a:hover { text-decoration: none; color: var(--ink); }
.sf-theme { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); padding: 5px 12px; font: inherit; font-size: 12.5px; cursor: pointer; }
.sf-theme:hover { color: var(--ink); border-color: var(--muted); } .sf-theme svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sf-credit { display: inline-flex; align-items: center; gap: 6px; } .sf-credit:empty { display: none; }
[data-theme="dark"] .sf .fkbd-ink { fill: #fff; } @media (prefers-color-scheme: dark) { [data-theme="auto"] .sf .fkbd-ink { fill: #fff; } }
@media (max-width: 1100px) { .sf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sf-brand { grid-column: 1 / -1; } .sf-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; } .sf-trust { grid-template-columns: 1fr; } .sf-cta-in { padding: 28px 0; } .sf-cta-btns .btn { flex: 1 1 auto; justify-content: center; } .sf-bottom { flex-direction: column; align-items: flex-start; } }

/* home page */
.hm-eyebrow { text-align: center; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 700; color: var(--accent); margin: 0 0 8px; }
.hm-hero { padding: 64px 0 40px; background: radial-gradient(ellipse at 70% 0%, var(--accent-soft), transparent 60%), radial-gradient(ellipse at 0% 100%, rgba(16, 185, 129, .07), transparent 50%); overflow: hidden; }
.hm-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 48px; align-items: center; }
.hm-hero h1 { font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -.03em; line-height: 1.08; margin: 0 0 18px; }
.hm-sub { font-size: 17.5px; color: var(--muted); margin: 0 0 26px; max-width: 560px; }
.hm-ctas { gap: 10px; flex-wrap: wrap; }
.hm-ticks { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: var(--ink-2); } .hm-ticks li { display: flex; align-items: center; gap: 6px; } .hm-ticks .ic { width: 16px; height: 16px; color: var(--green); }
.hm-live { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; } .hm-live .dot { color: var(--green); background: var(--green); }
.hm-shot { margin: 0; } .hm-shot figcaption { font-size: 12px; color: var(--muted); text-align: center; margin-top: 10px; }
.hm-frame { border-radius: 14px; border: 1px solid var(--line); background: var(--card); box-shadow: 0 24px 60px rgba(16, 24, 40, .16), 0 2px 6px rgba(16, 24, 40, .06); overflow: hidden; }
[data-theme="dark"] .hm-frame { box-shadow: 0 24px 60px rgba(0, 0, 0, .55); } @media (prefers-color-scheme: dark) { [data-theme="auto"] .hm-frame { box-shadow: 0 24px 60px rgba(0, 0, 0, .55); } }
.hm-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--line-2); } .hm-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.hm-bar i:nth-child(1) { background: #f87171; } .hm-bar i:nth-child(2) { background: #fbbf24; } .hm-bar i:nth-child(3) { background: #34d399; }
.hm-bar span { margin-left: 10px; flex: 1; min-width: 0; font-size: 11.5px; color: var(--muted); background: var(--card); border-radius: 6px; padding: 3px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-hero-visual .hm-frame { transform: perspective(1600px) rotateY(-4deg) rotateX(1deg); transform-origin: left center; }
@media (prefers-reduced-motion: reduce) { .hm-hero-visual .hm-frame { transform: none; } }
.hm-channels { padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.hm-kicker { font-size: 13px; text-align: center; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; }
.hm-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hm-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.hm-chips .ic { width: 16px; height: 16px; color: var(--accent); }
.hm-chips-text li { background: var(--card); }
.hm-fam-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hm-fam { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; position: relative; transition: border-color .15s, transform .15s; }
.hm-fam:hover { border-color: var(--accent); transform: translateY(-2px); }
.hm-fam .stat-ic { margin-bottom: 14px; } .hm-fam h3 { margin: 0 0 6px; font-size: 17px; } .hm-fam p { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.hm-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; } .hm-tags li { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); cursor: default; }
.hm-more { font-weight: 600; font-size: 14px; }
.hm-steps-sec { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hm-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; position: relative; }
.hm-steps::before { content: ""; position: absolute; top: 22px; left: 16%; right: 16%; border-top: 2px dashed var(--line); }
.hm-steps li { text-align: center; position: relative; } .hm-steps h3 { margin: 14px 0 6px; } .hm-steps p { color: var(--muted); font-size: 14px; margin: 0 auto; max-width: 320px; }
.hm-num { width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; font-weight: 800; font-size: 18px; box-shadow: 0 0 0 6px var(--card), 0 0 0 7px var(--line); position: relative; }
.hm-rows .hm-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; padding: 28px 0; }
.hm-rows .hm-row + .hm-row { margin-top: 28px; }
.hm-row-flip .hm-row-text { order: 2; }
.hm-row-text h2 { text-align: left; font-size: clamp(24px, 2.8vw, 32px); letter-spacing: -.02em; margin: 0 0 12px; } .hm-row-text .hm-eyebrow { text-align: left; }
.hm-row-text > p { color: var(--muted); font-size: 16px; margin: 0 0 16px; } .hm-row-text > p.hm-eyebrow { color: var(--accent); font-size: 12px; margin: 0 0 8px; }
.hm-list { list-style: none; padding: 0; margin: 0 0 18px; } .hm-list li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; font-size: 14.5px; color: var(--ink-2); } .hm-list .ic { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 2px; }
.hm-code { margin: 0; font-size: 12.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.hm-int .hm-chips { margin-bottom: 20px; }
.hm-faq-list .faq-item { background: var(--card); } .hm-faq h2, .hm-faq .hm-eyebrow { text-align: center; }
.hm-final { padding: 20px 0 8px; }
.hm-final-in { text-align: center; border-radius: 22px; padding: 52px 24px; color: #fff; background: radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, .18), transparent 55%), linear-gradient(120deg, #047857, var(--accent) 55%, #10b981); }
.hm-final-in h2 { color: #fff; font-size: clamp(26px, 3.2vw, 36px); margin: 0 0 8px; } .hm-final-in p { color: rgba(255, 255, 255, .9); font-size: 16.5px; margin: 0 auto 22px; max-width: 560px; }
@media (max-width: 1000px) {
  .hm-hero-grid, .hm-rows .hm-row { grid-template-columns: 1fr; gap: 30px; } .hm-row-flip .hm-row-text { order: 0; }
  .hm-hero-visual .hm-frame { transform: none; } .hm-fam-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .hm-hero { padding: 40px 0 28px; } .hm-fam-grid, .hm-steps { grid-template-columns: 1fr; } .hm-steps::before { display: none; }
  .hm-ctas .btn { flex: 1 1 auto; justify-content: center; } .hm-final-in { padding: 38px 18px; border-radius: 16px; } .hm-final .btn { flex: 1 1 auto; justify-content: center; }
}

/* CMS pages (/p/<slug>): heading band, lead, contents, callouts, FAQ items, cards */
.page-hero { padding: 44px 0 6px; background: radial-gradient(ellipse at top, var(--accent-soft), transparent 70%); }
.page-hero h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.02em; margin: 6px 0 10px; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap; } .crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--accent); }
.page-updated { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); margin: 0; } .page-updated .ic { width: 15px; height: 15px; }
.page-section { padding-top: 24px; }
.page-body { padding: 34px 40px; line-height: 1.7; font-size: 15px; min-width: 0; overflow-wrap: break-word; }
.page-body h2 { text-align: left; font-size: 22px; margin: 36px 0 12px; padding-top: 18px; border-top: 1px solid var(--line-2); scroll-margin-top: 80px; } .page-body h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.page-body h3 { font-size: 17px; margin: 24px 0 8px; } .page-body ul, .page-body ol { padding-left: 22px; margin: 0 0 16px; } .page-body li { margin-bottom: 6px; }
.page-lead { font-size: 17.5px; line-height: 1.65; color: var(--ink-2); margin: 0 0 24px; }
.page-toc { background: var(--line-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin: 0 0 28px; font-size: 14px; }
.page-toc strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.page-toc ol { columns: 2; column-gap: 28px; margin: 0; padding-left: 20px; } .page-toc li { break-inside: avoid; margin: 0 0 5px; }
.callout { border-radius: 12px; padding: 14px 18px; margin: 0 0 20px; border: 1px solid var(--line); border-left: 4px solid var(--blue); background: var(--blue-soft); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; } .callout-ok { border-left-color: var(--green); background: var(--green-soft); } .callout-warn { border-left-color: var(--yellow); background: var(--yellow-soft); } .callout-info { border-left-color: var(--blue); }
.page-body .tbl-wrap { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--line); border-radius: 10px; } .page-body .tbl { margin: 0; font-size: 14px; } .page-body .tbl td { vertical-align: top; } .page-body .tbl th { white-space: normal; }
.page-body code { background: var(--line-2); padding: 1px 6px; border-radius: 5px; font-size: .88em; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; margin: 0 0 10px; background: var(--bg); }
.faq-item summary { cursor: pointer; list-style: none; padding: 14px 48px 14px 18px; font-weight: 600; position: relative; line-height: 1.45; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.faq-item[open] summary::after { content: "\2212"; } .faq-item[open] summary { color: var(--accent); }
.faq-a { padding: 0 18px 14px; color: var(--ink-2); } .faq-a p:last-child { margin-bottom: 0; }
.page-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 0 0 22px; }
.page-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--bg); } .page-card h3 { margin: 0 0 6px; font-size: 15.5px; color: var(--accent); } .page-card p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.page-related { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; } .page-related a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--ink-2); background: var(--card); } .page-related a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
@media (max-width: 700px) { .page-body { padding: 22px 18px; font-size: 14.5px; } .page-toc ol { columns: 1; } .page-lead { font-size: 16px; } .page-hero { padding-top: 28px; } }

/* 2.1.4: menu labels never break inside (Bengali "মূল্য তালিকা" wrapped at 1366) - the menu folds below 1100px instead */
.site-menu a { white-space: nowrap; }
