/* Backnix public website – mobile first, no external fonts, no frameworks. */
:root {
  --blue: #1565D8;
  --blue-600: #0F52B5;
  --blue-dark: #0B1F3A;
  --blue-900: #071528;
  --blue-bright: #2997FF;
  --blue-light: #EAF4FF;
  --bg: #F6F9FD;
  --white: #FFFFFF;
  --text: #243247;
  --muted: #5B6B82;
  --line: #DCE6F2;
  --green: #16A34A;
  --amber: #B45309;
  --red: #B91C1C;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11,31,58,.06), 0 8px 24px rgba(11,31,58,.06);
  --font: Inter, "Segoe UI", Roboto, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Smooth scrolling only for in-page navigation, not when a page opens at an anchor. */
html:focus-within { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 17px; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-600); }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--blue-dark); line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .9em; background: var(--blue-light); color: #0B3D91; padding: .1em .35em; border-radius: 5px; }
.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 820px; }
.narrow-sm { max-width: 480px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.mt { margin-top: 1.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }
.announcement { background: var(--blue-dark); color: #fff; text-align: center; padding: .45rem 1rem; font-size: .9rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .7rem 1.2rem; border-radius: 10px; font-weight: 650; font-size: .98rem;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s; font-family: inherit; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(21,101,216,.28); }
.btn-primary:hover { background: var(--blue-600); color: #fff; }
.btn-ghost { background: var(--white); color: var(--blue-dark); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-light { background: #fff; color: var(--blue-dark); }
.btn-light:hover { color: var(--blue); }
.btn-outline-light { border-color: rgba(255,255,255,.6); color: #fff; background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-lg { padding: .9rem 1.5rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--blue-dark); }
.brand-name { font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.brand-light { color: #fff; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger { display: flex; flex-direction: column; gap: 5px; padding: 10px; cursor: pointer; border-radius: 8px; }
.nav-burger span { width: 24px; height: 2.5px; background: var(--blue-dark); border-radius: 2px; transition: transform .2s; }
.nav-toggle:focus-visible + .nav-burger { outline: 3px solid var(--blue-bright); }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: #fff; border-bottom: 1px solid var(--line); padding: 1rem 1.25rem 1.5rem; box-shadow: var(--shadow); max-height: calc(100vh - 68px); overflow: auto; }
.nav-toggle:checked ~ .site-nav { display: block; }
.nav-toggle:checked + .nav-burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle:checked + .nav-burger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked + .nav-burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: .55rem 0; color: var(--blue-dark); text-decoration: none; font-weight: 600; }
.site-nav a[aria-current="page"] { color: var(--blue); }
.site-nav .sub { padding-left: 1rem; border-left: 2px solid var(--blue-light); }
.site-nav .sub a { font-weight: 500; }
.nav-actions { display: flex; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }
.site-nav .nav-actions .btn { padding: .55rem 1rem; display: inline-flex; }
.site-nav .nav-actions .btn-primary { color: #fff; }
@media (min-width: 980px) {
  .nav-burger { display: none; }
  .site-nav { display: flex !important; position: static; padding: 0; border: 0; box-shadow: none; align-items: center; gap: 1.6rem; background: transparent; overflow: visible; max-height: none; }
  .site-nav > ul { display: flex; gap: 1.3rem; }
  .site-nav .has-sub { position: relative; }
  .site-nav .sub { display: none; position: absolute; top: 100%; left: -1rem; min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: .5rem 1rem; }
  .site-nav .has-sub:hover .sub, .site-nav .has-sub:focus-within .sub { display: block; }
  .nav-actions { margin: 0; }
}

/* Hero */
.hero { background: radial-gradient(1200px 600px at 85% -10%, rgba(41,151,255,.35), transparent 60%), linear-gradient(160deg, var(--blue-dark) 0%, #0D2C57 55%, var(--blue-600) 130%); color: #E6EEF9; padding: 4rem 0 4.5rem; overflow: hidden; }
.hero h1 { color: #fff; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } .hero { padding: 5.5rem 0 6rem; } }
.hero-intro { font-size: 1.15rem; max-width: 46rem; }
.hero .hero-intro { color: #CFE0F5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; list-style: none; padding: 0; margin: 1.6rem 0 0; color: #BFD5F2; font-size: .95rem; }
.hero-points li::before { content: "✓"; color: #6EE7A0; font-weight: 800; margin-right: .4rem; }
.hero-art img { filter: drop-shadow(0 30px 60px rgba(0,0,0,.35)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--blue); margin-bottom: .7rem; }
.eyebrow-light { color: #8CC4FF; }
.eyebrow-problem { color: var(--red); }
.eyebrow-warn { color: var(--amber); }
.page-hero { background: linear-gradient(180deg, #fff, var(--blue-light)); border-bottom: 1px solid var(--line); padding: 2.2rem 0 3rem; }
.page-hero h1 { max-width: 22ch; }
.page-hero .hero-intro p { color: #3A4A61; }

/* Sections */
.section { padding: 3.6rem 0; }
.section-tight { padding: 0 0 2rem; }
.section-alt { background: #fff; border-block: 1px solid var(--line); }
.section-dark { background: var(--blue-dark); color: #D3E1F4; }
.section-dark h2 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 1.4rem; }
.section-problem { background: linear-gradient(180deg, #FFF7F7, var(--bg)); }
.section-consequence { background: #fff; border-block: 1px solid var(--line); }
.prose { max-width: 760px; }
.prose-light p { color: #C8D8EE; }
.lead-text { max-width: 760px; color: #3A4A61; }
.split { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.grid-2 { display: grid; gap: 1rem; }
.grid-3 { display: grid; gap: 1rem; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.gap-lg { gap: 1.5rem; }
.note { color: var(--muted); font-size: .92rem; margin-top: 1rem; }

/* Cards and grids */
.item-grid { list-style: none; padding: 0; margin: 1.6rem 0 1.4rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.item-grid.count-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.split .item-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.item-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.3rem 1rem; box-shadow: var(--shadow); }
.section-alt .item-card, .section-consequence .item-card { background: var(--bg); box-shadow: none; }
.item-card h3 { margin-bottom: .35rem; }
.item-card p { margin: 0; color: #46566D; font-size: .97rem; }
.section-problem .item-card { border-top: 3px solid #F2B8B8; }
.section-consequence .item-card { border-top: 3px solid #F5CF9B; }
.section-solution .item-card, .section-benefits .item-card { border-top: 3px solid var(--blue-bright); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.pad { padding: 1.5rem; }
.service-grid { display: grid; gap: 1rem; margin-top: 1.8rem; }
@media (min-width: 640px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .18s, border-color .18s; }
.service-card:hover { transform: translateY(-3px); border-color: var(--blue-bright); color: var(--text); }
.service-card img { margin-bottom: .6rem; }
.service-card p { color: #4A5B73; font-size: .96rem; }
.card-grid { display: grid; gap: 1.2rem; margin: 1.2rem 0; }
@media (min-width: 680px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.article-card { overflow: hidden; display: flex; flex-direction: column; }
.card-media img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card-media-placeholder { display: flex; align-items: flex-end; aspect-ratio: 16/9; padding: 1rem; text-decoration: none; color: #fff; font-weight: 700;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue)); position: relative; overflow: hidden; }
.card-media-placeholder::after { content: ""; position: absolute; right: -30px; top: -30px; width: 160px; height: 160px; border-radius: 50%; border: 26px solid rgba(255,255,255,.08); }
.cat-docker-backup { background: linear-gradient(135deg, #0B3A66, #1D8CF8); }
.cat-database-backup { background: linear-gradient(135deg, #0B1F3A, #2C6BD6); }
.cat-cloud-backup { background: linear-gradient(135deg, #0E4A8A, #2997FF); }
.cat-disaster-recovery { background: linear-gradient(135deg, #10284A, #3D5A80); }
.card-body { padding: 1.1rem 1.2rem 1.2rem; }
.card-body h3 a { color: var(--blue-dark); text-decoration: none; }
.card-body h3 a:hover { color: var(--blue); }
.card-body p { font-size: .95rem; color: #4A5B73; }
.card-kicker { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--blue); margin-bottom: .3rem; }
.card-kicker a { text-decoration: none; }
.card-meta { font-size: .85rem !important; color: var(--muted) !important; margin: 0; }

/* Badges */
.badge { display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .03em; padding: .22rem .55rem; border-radius: 999px; white-space: nowrap; }
.badge-ok { background: #DCFCE7; color: #166534; }
.badge-beta { background: #FEF3C7; color: #92400E; }
.badge-soon { background: var(--blue-light); color: #0B4BA8; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.feature-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; }
.feature-list p { margin: 0; color: var(--muted); font-size: .92rem; }
.feature-grid { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
@media (min-width: 680px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.feature-top { display: flex; justify-content: space-between; gap: .6rem; align-items: flex-start; }
.feature-card p { color: #4A5B73; font-size: .95rem; }

/* Steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 1rem; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; position: relative; box-shadow: var(--shadow); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; margin-bottom: .7rem; }
.steps p { font-size: .94rem; color: #4A5B73; margin: 0; }

/* Diagrams */
.diagram { margin: 1.5rem 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.diagram img { display: block; width: 100%; }
.diagram figcaption { color: var(--muted); font-size: .9rem; margin-top: .6rem; text-align: center; }

/* Checklist dark */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.check-list li { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 1rem 1.1rem 1rem 3rem; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 1rem; top: 1.1rem; width: 20px; height: 20px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' stroke='white' stroke-width='2.4' fill='none'/%3E%3C/svg%3E") center/14px no-repeat; }
.check-list strong { display: block; color: #fff; }
.check-list span { color: #BDD0EA; font-size: .95rem; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--blue) 0%, var(--blue-bright) 100%); color: #EAF4FF; padding: 3rem 0; }
.cta-band h2 { color: #fff; }
.cta-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: center; }
.cta-buttons { display: flex; gap: .8rem; flex-wrap: wrap; }

/* FAQ */
.faq-list { display: grid; gap: .6rem; margin-top: 1rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .2rem 1.1rem; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--blue-dark); padding: .8rem 0; list-style: none; position: relative; padding-right: 2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: .55rem; font-size: 1.4rem; color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq-answer { padding-bottom: .9rem; color: #46566D; }

/* Pricing */
.pricing { margin-top: 1rem; }
.currency-switch { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; color: var(--muted); font-size: .95rem; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: .35rem .85rem; font-weight: 700; cursor: pointer; color: var(--blue-dark); font-family: inherit; }
.chip-on { background: var(--blue-dark); color: #fff; border-color: var(--blue-dark); }
.bill-radio { position: absolute; opacity: 0; pointer-events: none; }
.bill-switch { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 1.4rem; }
.bill-switch label { padding: .5rem 1.1rem; border-radius: 999px; cursor: pointer; font-weight: 700; color: var(--muted); }
.bill-switch .save { color: var(--green); font-size: .8rem; margin-left: .25rem; }
#bill-monthly:checked ~ .bill-switch label[for="bill-monthly"], #bill-yearly:checked ~ .bill-switch label[for="bill-yearly"] { background: var(--blue); color: #fff; }
#bill-yearly:checked ~ .bill-switch label[for="bill-yearly"] .save { color: #BBF7D0; }
#bill-monthly:focus-visible ~ .bill-switch label[for="bill-monthly"], #bill-yearly:focus-visible ~ .bill-switch label[for="bill-yearly"] { outline: 3px solid var(--blue-bright); }
#bill-monthly:checked ~ .plans .price-yearly { display: none; }
#bill-yearly:checked ~ .plans .price-monthly { display: none; }
.plans { display: grid; gap: 1rem; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem; box-shadow: var(--shadow); position: relative; display: flex; flex-direction: column; }
.plan-featured { border: 2px solid var(--blue); }
.plan-flag { position: absolute; top: -12px; right: 1.2rem; background: var(--blue); color: #fff; font-size: .75rem; font-weight: 800; padding: .25rem .7rem; border-radius: 999px; margin: 0; }
.plan h3 { font-size: 1.8rem; margin: 0; }
.plan-name { color: var(--muted); margin-bottom: .8rem; }
.amount { font-size: 1.9rem; font-weight: 800; color: var(--blue-dark); margin: 0; letter-spacing: -.02em; }
.amount span { font-size: .95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.was { margin: 0; color: var(--muted); }
.price-note { font-size: .9rem; color: #4A5B73; }
.plan-desc { color: #4A5B73; font-size: .95rem; }
.plan-features { padding-left: 1.1rem; color: #4A5B73; font-size: .93rem; flex: 1; }
.callout { background: var(--blue-light); border: 1px solid #C7DFFF; border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-top: 1.6rem; }
.callout-warning { background: #FFFBEB; border: 1px solid #FCD34D; border-radius: 12px; padding: .8rem 1rem; color: #78350F; }

/* Forms */
.form { display: grid; gap: .9rem; }
.form.card { padding: 1.5rem; }
.form label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; color: var(--blue-dark); }
.form .opt { font-weight: 400; color: var(--muted); font-size: .85rem; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], input[type=url], input[type=datetime-local], input[type=date], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: .65rem .8rem; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: 3px solid rgba(41,151,255,.25); }
.check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: .55rem !important; font-weight: 500 !important; }
.check input { margin-top: .3rem; width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.flash { padding: .8rem 1rem; border-radius: 10px; margin: 1rem 0 0; font-weight: 600; }
.flash-ok { background: #DCFCE7; color: #14532D; border: 1px solid #86EFAC; }
.flash-err { background: #FEE2E2; color: #7F1D1D; border: 1px solid #FCA5A5; }
.no-data { background: #fff; border: 1px dashed var(--line); border-radius: 12px; padding: 1.2rem; color: var(--muted); }
.auth h1 { text-align: center; }
.search { display: flex; gap: .5rem; margin-top: 1.4rem; max-width: 620px; }
.search-inline { margin: 1.5rem auto 0; }

/* Articles */
.articles-layout { display: grid; gap: 2rem; }
@media (min-width: 960px) { .articles-layout { grid-template-columns: 240px 1fr; } }
.cat-filter ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.cat-filter a { display: flex; justify-content: space-between; padding: .45rem .7rem; border-radius: 8px; text-decoration: none; color: var(--blue-dark); font-weight: 600; }
.cat-filter a[aria-current="page"], .cat-filter a:hover { background: var(--blue-light); color: var(--blue); }
.count { color: var(--muted); font-weight: 500; }
.h-small { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.pagination { display: flex; gap: 1rem; align-items: center; justify-content: center; margin-top: 2rem; }
.article-hero { background: linear-gradient(180deg, #fff, var(--blue-light)); padding: 2rem 0 2.4rem; border-bottom: 1px solid var(--line); }
.article-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.article-desc { font-size: 1.15rem; color: #3A4A61; }
.article-meta { color: var(--muted); font-size: .92rem; }
.article-cover { margin: 2rem auto 0; }
.article-cover img { border-radius: var(--radius); }
.article-layout { display: grid; gap: 2rem; padding: 2.5rem 0 3.5rem; }
@media (min-width: 1100px) { .article-layout { grid-template-columns: 250px minmax(0, 760px); justify-content: center; } .toc { position: sticky; top: 90px; align-self: start; } }
.toc { font-size: .92rem; }
.toc summary { font-weight: 800; cursor: pointer; color: var(--blue-dark); margin-bottom: .5rem; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: .25rem .8rem; color: #46566D; text-decoration: none; }
.toc li a:hover { color: var(--blue); }
.toc .toc-l3 a { padding-left: 1.6rem; font-size: .88rem; }
.article-body h2 { margin-top: 2.2rem; scroll-margin-top: 90px; }
.article-body h3 { margin-top: 1.6rem; scroll-margin-top: 90px; }
.article-body .lead { font-size: 1.12rem; color: #33445C; }
.article-body ul, .article-body ol { padding-left: 1.3rem; }
.article-body li { margin-bottom: .35rem; }
.article-body pre { background: #0B1F3A; color: #E2ECF8; border-radius: 12px; padding: 1rem 1.1rem; overflow-x: auto; font-size: .88rem; line-height: 1.55; position: relative; }
.article-body pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.article-body pre[data-lang]::before { content: attr(data-lang); position: absolute; top: .4rem; right: .7rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #7FA6D6; }
.tok-c { color: #7F95B5; font-style: italic; }
.tok-s { color: #A5E3B4; }
.tok-k { color: #8EC8FF; font-weight: 600; }
.tok-n { color: #F9C784; }
.tok-v { color: #F5A3C7; }
.tok-a { color: #9AD0FF; }
.tok-p { color: #6E86A8; user-select: none; }
.table-wrap { overflow-x: auto; margin: 1.2rem 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.table-wrap table, .prose table { border-collapse: collapse; width: 100%; font-size: .93rem; }
.prose th, .prose td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--blue-light); color: var(--blue-dark); }
.service-cta { margin-top: 2.5rem; background: var(--blue-light); border: 1px solid #C7DFFF; border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.tags { margin-top: 1.5rem; }
.tag { display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .15rem .65rem; margin: 0 .3rem .3rem 0; font-size: .85rem; }
.preview-bar { background: #FEF3C7; color: #78350F; text-align: center; padding: .5rem; font-weight: 700; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .3rem; font-size: .88rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: .3rem; color: #9AABC2; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue); }
.big-code { font-size: 5rem; font-weight: 900; color: var(--blue-light); -webkit-text-stroke: 2px var(--blue); margin: 0; }

/* Account */
.account-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; flex-wrap: wrap; margin-bottom: 1.5rem; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }

/* Footer */
.site-footer { background: var(--blue-900); color: #A9BCD6; padding: 3rem 0 1.5rem; margin-top: 0; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-title { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { color: #C7D6EA; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.tagline { color: #fff; font-weight: 700; margin-top: .8rem; }
.muted-light { color: #8EA3C0; font-size: .92rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; border-top: 1px solid rgba(255,255,255,.08); margin-top: 2rem; padding-top: 1.2rem; font-size: .88rem; }
.footer-bottom p { margin: 0; }

/* Consent banner */
.consent { position: fixed; inset: auto 0 0 0; z-index: 90; padding: 1rem; }
.consent-inner { max-width: 1000px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 50px rgba(11,31,58,.25); padding: 1.2rem 1.3rem; display: grid; gap: 1rem; }
@media (min-width: 820px) { .consent-inner { grid-template-columns: 1fr auto; align-items: end; } }
.consent h2 { font-size: 1.1rem; margin-bottom: .3rem; }
.consent p { font-size: .92rem; margin-bottom: .4rem; }
.consent-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.consent-manage summary { cursor: pointer; font-weight: 700; color: var(--blue); }
.consent-manage .check { margin: .4rem 0; font-size: .92rem; }
.consent-manage { margin-top: .4rem; }
.legal .prose h2 { font-size: 1.35rem; margin-top: 1.8rem; }

/* ===================== Customer console (/account) ===================== */
.console { --ok: #15803D; --ok-bg: #E7F6EC; --warn: #A16207; --warn-bg: #FEF6DD; --down: #C2410C; --down-bg: #FDEDE4; --off: #7A889C; --off-bg: #EEF1F5;
  --term: #0A1A30; --term-line: #1B3354; --term-text: #D7E6FA; --term-dim: #7F9BC2; padding: 0 0 4rem; }
.console input:not([type=checkbox]):not([type=radio]):not([type=hidden]), .console select, .console textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: .62rem .8rem; }
.console textarea { font-family: var(--mono); font-size: .92rem; line-height: 1.5; resize: vertical; }
.console input:focus, .console select:focus, .console textarea:focus { border-color: var(--blue); outline: 3px solid rgba(41,151,255,.22); }
.console .form label small, .console .hint { font-weight: 400; color: var(--muted); font-size: .86rem; }

/* Sub navigation */
.cx-nav { background: #fff; border-bottom: 1px solid var(--line); }
.cx-nav .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 52px; }
.cx-tabs { display: flex; gap: .25rem; overflow-x: auto; margin: 0 -.25rem; padding: 0; list-style: none; }
.cx-tabs a { display: block; padding: .9rem .85rem .8rem; font-weight: 650; font-size: .95rem; color: var(--muted); text-decoration: none; border-bottom: 2.5px solid transparent; white-space: nowrap; }
.cx-tabs a:hover { color: var(--blue-dark); }
.cx-tabs a[aria-current="page"] { color: var(--blue-dark); border-bottom-color: var(--blue); }
.cx-org { font-size: .9rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: none; }
@media (min-width: 720px) { .cx-org { display: block; } }

.cx-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; padding: 2.2rem 0 1.6rem; }
.cx-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin: 0 0 .25rem; }
.cx-head p { margin: 0; color: var(--muted); }
.cx-head .back { display: inline-block; margin-bottom: .6rem; font-weight: 600; font-size: .93rem; text-decoration: none; }
.btn-add::before { content: ""; width: 14px; height: 14px; background:
  linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat, linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat; }

/* Status vocabulary */
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; background: var(--off); }
.is-online .dot, .dot.is-online { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }
.is-offline .dot, .dot.is-offline { background: var(--down); box-shadow: 0 0 0 3px var(--down-bg); }
.is-pending .dot, .dot.is-pending { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-bg); }
.status { display: inline-flex; align-items: center; gap: .5rem; font-weight: 650; font-size: .9rem; color: var(--blue-dark); white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: .45rem; padding: .22rem .65rem; border-radius: 999px; font-size: .82rem; font-weight: 700; background: var(--off-bg); color: #4B5A70; white-space: nowrap; }
.pill.is-online, .pill.run-completed { background: var(--ok-bg); color: var(--ok); }
.pill.is-offline, .pill.run-failed { background: var(--down-bg); color: var(--down); }
.pill.is-pending, .pill.run-queued, .pill.run-running { background: var(--warn-bg); color: var(--warn); }
.pill.run-running { background: var(--blue-light); color: var(--blue-600); }

/* Fleet strip: one block per server */
.fleet { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; display: grid; gap: 1rem; }
@media (min-width: 860px) { .fleet { grid-template-columns: auto 1fr; align-items: center; gap: 2.5rem; } }
.fleet-count { display: flex; align-items: baseline; gap: .6rem; }
.fleet-count strong { font-size: 2.6rem; line-height: 1; color: var(--blue-dark); font-weight: 800; letter-spacing: -.03em; }
.fleet-count span { color: var(--muted); font-weight: 600; }
.fleet-rack { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 .75rem; padding: 0; list-style: none; }
.fleet-rack li { flex: 1 1 26px; max-width: 64px; height: 26px; border-radius: 5px; background: var(--off-bg); border: 1px solid #DCE2EA; }
.fleet-rack li.is-online { background: #2FA25A; border-color: #23864A; }
.fleet-rack li.is-offline { background: #E0662E; border-color: #C2410C; }
.fleet-rack li.is-pending { background: repeating-linear-gradient(135deg, #F7D774 0 6px, #F2C94C 6px 12px); border-color: #D9A92D; }
.fleet-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: 0; padding: 0; list-style: none; font-size: .92rem; color: var(--muted); }
.fleet-legend li { display: inline-flex; align-items: center; gap: .5rem; }
.fleet-legend b { color: var(--blue-dark); }
.fleet-alert { margin: .9rem 0 0; color: var(--down); font-weight: 600; font-size: .93rem; }

/* Dashboard grid */
.cx-grid { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
@media (min-width: 1000px) { .cx-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 1.1rem; margin: 0; }
.panel-head a { font-weight: 600; font-size: .92rem; }
.panel-body { padding: 1.15rem 1.25rem; }
.panel-body > :last-child { margin-bottom: 0; }
.aside-stack { display: grid; gap: 1.5rem; }
.aside-stack .panel-body p { font-size: .95rem; }

/* Server list on the dashboard */
.srv-list { list-style: none; margin: 0; padding: 0; }
.srv-row { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); align-items: center; }
.srv-row:last-child { border-bottom: 0; }
.srv-name { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.srv-name a { font-weight: 700; color: var(--blue-dark); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srv-name a:hover { color: var(--blue); }
.srv-host { display: block; font-family: var(--mono); font-size: .82rem; color: var(--muted); grid-column: 1 / -1; padding-left: 1.6rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srv-facts { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; margin: .5rem 0 0; padding-left: 1.6rem; font-size: .88rem; color: var(--muted); }
.srv-facts dd { margin: 0; color: var(--text); display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .5rem; }
.srv-facts dd small { color: var(--muted); font-size: .85rem; }
.srv-facts .fail { color: var(--down); font-weight: 600; }
@media (min-width: 760px) {
  .srv-list-head, .srv-row { grid-template-columns: minmax(0, 2.2fr) 1.1fr 1.2fr 1fr 1.3fr; }
  .srv-list-head { display: grid; gap: 1rem; padding: .6rem 1.25rem; font-size: .82rem; font-weight: 650; color: var(--muted); border-bottom: 1px solid var(--line); background: #FAFCFE; }
  .srv-name { grid-column: 1; grid-row: 1; }
  .srv-host { grid-column: 1; grid-row: 2; }
  .srv-row .srv-status { grid-column: 2; grid-row: 1 / span 2; }
  .srv-facts { display: contents; }
  .srv-facts dt { display: none; }
  .srv-facts dd { grid-row: 1 / span 2; font-size: .9rem; display: block; }
  .srv-facts dd small { display: block; font-size: .82rem; margin-top: .2rem; }
}
.srv-list-head { display: none; }
@media (min-width: 760px) { .srv-list-head { display: grid; } }

.cx-empty { padding: 2.6rem 1.5rem; text-align: center; }
.cx-empty h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.cx-empty p { color: var(--muted); max-width: 46ch; margin: 0 auto 1.3rem; }
.cx-empty .glyph { width: 64px; height: 64px; margin: 0 auto 1.1rem; border-radius: 16px; background: var(--blue-light); display: grid; place-items: center; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; margin: 0; font-size: .93rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--blue-dark); font-weight: 600; text-align: right; }

/* ---------- Add server ---------- */
.pair { display: grid; gap: 2rem; }
@media (min-width: 1020px) { .pair { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } }
.pair-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.pair-step { position: relative; padding: 0 0 2.4rem 3.6rem; counter-increment: step; }
.pair-step::before { content: counter(step); position: absolute; left: 0; top: -.15rem; width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; color: var(--blue); background: #fff; border: 2px solid var(--blue); z-index: 1; }
.pair-step::after { content: ""; position: absolute; left: calc(1.15rem - 1px); top: 2.3rem; bottom: .2rem; width: 2px; background: var(--line); }
.pair-step:last-child { padding-bottom: 0; }
.pair-step:last-child::after { display: none; }
.pair-step h2 { font-size: 1.2rem; margin: .1rem 0 .35rem; }
.pair-step > p { color: var(--muted); max-width: 64ch; }
.pair-step.is-done::before { content: ""; background: var(--blue) center / 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8.5l4 4L14 4' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.pair-step.is-waiting::before { border-style: dashed; color: var(--muted); border-color: #9AAAC0; }

.term { background: var(--term); color: var(--term-text); border-radius: 12px; border: 1px solid var(--term-line); margin: 1rem 0; overflow: hidden; }
.term-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem .6rem .5rem 1rem; border-bottom: 1px solid var(--term-line); font-size: .82rem; color: var(--term-dim); }
.term-bar span { display: inline-flex; align-items: center; gap: .55rem; }
.term-bar span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2FA25A; box-shadow: 14px 0 0 #E0B341, 28px 0 0 #E0662E; margin-right: 28px; }
.term pre { margin: 0; padding: .95rem 1.1rem 1.05rem; overflow-x: auto; font-family: var(--mono); font-size: .88rem; line-height: 1.75; }
.term code { background: none; color: inherit; padding: 0; font-size: inherit; }
.term .p { color: #5FB0FF; user-select: none; }
.term .c { color: var(--term-dim); }
.copy { font: inherit; font-size: .8rem; font-weight: 650; color: var(--term-text); background: #15294A; border: 1px solid #2A4670; border-radius: 7px; padding: .3rem .7rem; cursor: pointer; }
.copy:hover { background: #1D3760; }
.copy[data-copied] { color: #8EE0AA; border-color: #2F7A4C; }
.dl-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 1rem 0 .4rem; }
.checksum { font-size: .84rem; color: var(--muted); margin: .4rem 0 0; overflow-wrap: anywhere; }
.checksum code { font-size: .8rem; }

.pair-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; margin-top: 1rem; max-width: 640px; }
.token-input { font-family: var(--mono) !important; letter-spacing: .06em; font-size: 1rem !important; }
.token-meter { display: flex; justify-content: space-between; font-size: .84rem; color: var(--muted); }
.token-meter b { color: var(--blue-dark); }
.token-meter.is-full b { color: var(--ok); }

.live { display: flex; gap: 1rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-top: 1rem; max-width: 640px; }
.live p { margin: 0; }
.live strong { color: var(--blue-dark); }
.pulse { width: 14px; height: 14px; border-radius: 50%; background: var(--warn); flex: none; position: relative; }
.pulse::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--warn); animation: pulse 1.6s ease-out infinite; }
.live.is-online .pulse { background: var(--ok); }
.live.is-online .pulse::after { display: none; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

.pair-aside { display: grid; gap: 1rem; }
@media (min-width: 1020px) { .pair-aside { position: sticky; top: 90px; } }
.pair-aside .panel-body { font-size: .93rem; }
.pair-aside ul { margin: 0; padding-left: 1.1rem; }
.pair-aside li { margin-bottom: .45rem; }

/* ---------- Server management ---------- */
.srv-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 1.5rem; scroll-margin-top: 90px; }
.srv-card:target { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,101,216,.12); }
.srv-card-head { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: flex-start; padding: 1.25rem 1.4rem 1rem; }
.srv-card-head h2 { font-size: 1.3rem; margin: 0 0 .2rem; display: flex; align-items: center; gap: .65rem; }
.srv-card-head .host { font-family: var(--mono); font-size: .86rem; color: var(--muted); margin: 0 0 0 1.55rem; }
.srv-card-head .desc { margin: .5rem 0 0 1.55rem; color: var(--text); font-size: .95rem; }
.srv-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #FAFCFE; margin: 0; }
.srv-meta div { padding: .75rem 1.4rem; border-right: 1px solid var(--line); }
.srv-meta div:last-child { border-right: 0; }
.srv-meta dt { font-size: .8rem; color: var(--muted); font-weight: 600; }
.srv-meta dd { margin: .1rem 0 0; font-weight: 650; color: var(--blue-dark); font-size: .95rem; overflow-wrap: anywhere; }
.srv-section { padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--line); }
.srv-section:last-child { border-bottom: 0; }
.srv-section > h3, .srv-section > details > summary { font-size: 1.02rem; font-weight: 700; color: var(--blue-dark); margin: 0; }
.srv-section > details > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.srv-section > details > summary::-webkit-details-marker { display: none; }
.srv-section > details > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; margin-right: .3rem; }
.srv-section details[open] > summary::after { transform: rotate(-135deg); }
.srv-section details[open] > summary { margin-bottom: 1rem; }
.srv-section .sub { font-weight: 400; color: var(--muted); font-size: .88rem; margin-left: auto; margin-right: .4rem; }
.srv-section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.srv-section-head h3 { margin: 0; font-size: 1.02rem; }
.srv-notice { margin: 0; padding: .85rem 1.4rem; background: var(--warn-bg); color: #6B4A06; font-size: .93rem; border-bottom: 1px solid #F1DFA6; }
.srv-notice code { background: rgba(255,255,255,.6); }
.srv-revoked { padding: 1.1rem 1.4rem; color: var(--muted); margin: 0; }
.srv-revoked p { margin: 0 0 1rem; }

.server-delete-dialog { width: min(480px, calc(100% - 2rem)); padding: 0; border: 1px solid var(--line); border-radius: 18px; color: var(--text); box-shadow: 0 24px 80px rgba(7,21,40,.28); }
.server-delete-dialog::backdrop { background: rgba(7,21,40,.52); backdrop-filter: blur(3px); }
.server-delete-content { display: grid; justify-items: center; padding: 2rem; text-align: center; }
.server-delete-icon { display: grid; place-items: center; width: 3.1rem; height: 3.1rem; margin-bottom: 1rem; border-radius: 50%; background: #FEF2F2; color: var(--red); font-size: 1.65rem; font-weight: 800; }
.server-delete-content h2 { margin: 0 0 .65rem; font-size: 1.55rem; }
.server-delete-content > p { margin: 0; color: var(--muted); font-size: .98rem; }
.server-delete-content > p strong { color: var(--blue-dark); overflow-wrap: anywhere; }
.server-delete-note { display: grid; gap: .2rem; width: 100%; margin-top: 1.25rem; padding: .85rem 1rem; border: 1px solid #BFDBFE; border-radius: 11px; background: #EFF6FF; text-align: left; font-size: .88rem; }
.server-delete-note strong { color: var(--blue-dark); }
.server-delete-note span { color: var(--muted); }
.server-delete-actions { display: flex; justify-content: flex-end; gap: .65rem; width: 100%; margin-top: 1.5rem; }
.btn-delete-confirm { background: var(--red); color: #fff; }
.btn-delete-confirm:hover { background: #991B1B; color: #fff; }
@media (max-width: 480px) { .server-delete-content { padding: 1.5rem; } .server-delete-actions { flex-direction: column-reverse; } .server-delete-actions .btn { width: 100%; } }

.job { border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; margin-top: .75rem; }
.job-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .6rem 1rem; }
.job-top h4 { margin: 0; font-size: 1rem; }
.job-sched { color: var(--muted); font-size: .9rem; margin: .15rem 0 0; }
.job-paths { display: flex; flex-wrap: wrap; gap: .35rem; margin: .7rem 0 0; padding: 0; list-style: none; }
.job-paths li { font-family: var(--mono); font-size: .8rem; background: var(--blue-light); color: #0B3D91; border-radius: 6px; padding: .15rem .5rem; }
.job-last { font-size: .88rem; color: var(--muted); margin: .7rem 0 0; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.job-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .85rem; }
.job-actions .btn, .console .btn-sm { padding: .42rem .8rem; font-size: .88rem; border-radius: 8px; }
.btn-danger-ghost { background: #fff; color: var(--down); border-color: #F2C6B3; }
.btn-danger-ghost:hover { border-color: var(--down); color: var(--down); }
.job details { margin-top: .8rem; }
.job details summary { font-size: .9rem; font-weight: 650; color: var(--blue); cursor: pointer; }
.job details .form { margin-top: .9rem; }
.muted-box { color: var(--muted); font-size: .93rem; margin: 0; }

.job-form { display: grid; gap: .95rem; max-width: 760px; }
.job-form .row { display: grid; gap: .95rem; }
@media (min-width: 640px) { .job-form .row { grid-template-columns: 1fr 1fr; } .job-form .row-3 { grid-template-columns: 1fr 1fr 1fr; } }
.schedule-options { display: grid; gap: .95rem; padding: .95rem; background: #FAFCFE; border: 1px dashed var(--line); border-radius: 10px; }
@media (min-width: 640px) { .schedule-options { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } }
.schedule-options[hidden], .schedule-options label[hidden] { display: none; }

.log-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.log-table th { text-align: left; font-size: .8rem; color: var(--muted); font-weight: 650; padding: .45rem .5rem; border-bottom: 1px solid var(--line); }
.log-table td { padding: .55rem .5rem; border-bottom: 1px solid #EDF2F8; vertical-align: top; }
.log-table tr:last-child td { border-bottom: 0; }
.log-table .num { text-align: right; white-space: nowrap; }
.log-table .err { color: var(--down); font-size: .85rem; }
.log-wrap { overflow-x: auto; margin-top: .4rem; }
.restore-form { display: flex; gap: .4rem; align-items: center; min-width: 280px; }
.restore-form select { min-width: 150px; max-width: 220px; }
.restore-form input { min-width: 170px; flex: 1; padding: .4rem .6rem !important; font-size: .85rem !important; font-family: var(--mono) !important; }
.events { list-style: none; margin: .4rem 0 0; padding: 0; font-size: .88rem; }
.events li { display: grid; grid-template-columns: 70px 150px 1fr; gap: .8rem; padding: .45rem 0; border-bottom: 1px solid #EDF2F8; }
.events li:last-child { border-bottom: 0; }
.events .lvl { font-weight: 700; font-size: .78rem; }
.events .lvl-error { color: var(--down); }
.events .lvl-warn, .events .lvl-warning { color: var(--warn); }
.events time { color: var(--muted); }
@media (max-width: 640px) { .events li { grid-template-columns: 1fr; gap: .1rem; } }
.sub-h { font-size: .95rem; margin: 1.3rem 0 .3rem; color: var(--blue-dark); }
.sub-h:first-child { margin-top: 0; }

.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 80; max-width: min(560px, calc(100% - 2rem)); margin: 0; box-shadow: 0 12px 32px rgba(11,31,58,.18); }
.toast:empty { display: none; }

/* ---------- Settings ---------- */
.settings { display: grid; gap: 1.5rem; max-width: 860px; }
.settings .panel-body .form { max-width: 560px; }
.settings #preferences .form { max-width: 760px; }
.settings .row { display: grid; gap: .95rem; }
@media (min-width: 640px) { .settings .row-3 { grid-template-columns: repeat(3, 1fr); } }
.settings section { scroll-margin-top: 90px; }
.panel-head p { margin: .15rem 0 0; color: var(--muted); font-size: .9rem; }
.pw-rules { font-size: .86rem; color: var(--muted); margin: -.3rem 0 0; }
.form-error { margin: 0; padding: .7rem .9rem; border-radius: 10px; background: var(--down-bg); color: #8A2C07; font-weight: 600; font-size: .93rem; }
.signout-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.signout-row p { margin: 0; color: var(--muted); font-size: .95rem; }
.console .btn:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.console .form label > span small { margin-left: .35rem; }
.backup-runs, .backup-events { margin-top: 1.4rem; }
.srv-row .srv-status { padding-left: 1.6rem; }
@media (min-width: 760px) { .srv-row .srv-status { padding-left: 0; } }
.job details summary::marker { color: var(--blue); }
.pair > *, .pair-step, .term { min-width: 0; }
@media (max-width: 639px) {
  .pair-step { padding-left: 2.75rem; }
  .pair-step::before { width: 2rem; height: 2rem; font-size: .9rem; }
  .pair-step::after { left: calc(1rem - 1px); top: 2rem; }
  .term pre { font-size: .8rem; }
}
.live[hidden], .console [hidden] { display: none !important; }

/* ---------- Run log inside a job card ---------- */
.job-error { margin: .55rem 0 0; padding: .55rem .75rem; border-radius: 8px; background: var(--down-bg); color: #8A2C07; font-size: .88rem; }
.runlog { margin-top: .9rem; border: 1px solid var(--line); border-radius: 12px; background: #FAFCFE; padding: 1rem; display: grid; gap: .9rem; }
.runlog-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; }
.runlog-title { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.runlog-title strong { color: var(--blue-dark); }
.runlog-sub { color: var(--muted); font-size: .86rem; }
.runlog-tools { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.console .runlog-tools select { width: auto; max-width: 100%; padding: .38rem .6rem; font-size: .86rem; }
.runlog-error { border-left: 4px solid var(--down); background: #fff; border-radius: 0 8px 8px 0; padding: .7rem .9rem; }
.runlog-error strong { display: block; color: var(--down); font-size: .88rem; margin-bottom: .15rem; }
.runlog-error p { margin: 0; color: var(--text); font-size: .93rem; overflow-wrap: anywhere; }
.runlog-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; font-size: .9rem; }
.runlog-steps li { display: grid; grid-template-columns: 14px minmax(150px, auto) 1fr; gap: .2rem .7rem; align-items: baseline; padding: .3rem 0; }
.runlog-steps li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--off); align-self: center; }
.runlog-steps li.is-done::before { background: var(--ok); }
.runlog-steps li.is-fail::before { background: var(--down); }
.runlog-steps li.is-wait::before { background: #fff; border: 2px solid var(--warn); width: 8px; height: 8px; }
.runlog-steps li.is-skip { color: var(--muted); }
.runlog-steps .lbl { font-weight: 650; color: var(--blue-dark); }
.runlog-steps .is-skip .lbl { color: var(--muted); font-weight: 500; }
.runlog-steps time, .runlog-steps .pending { color: var(--muted); }
.runlog-steps .extra { grid-column: 3; color: var(--muted); font-size: .85rem; }
.runlog-steps progress { width: min(260px, 100%); height: 8px; accent-color: var(--blue); }
@media (max-width: 560px) { .runlog-steps li { grid-template-columns: 14px 1fr; } .runlog-steps li > :nth-child(n+2), .runlog-steps .extra { grid-column: 2; } }
.runlog-term { background: var(--term); border: 1px solid var(--term-line); border-radius: 10px; max-height: 340px; overflow: auto; }
.runlog-lines { list-style: none; margin: 0; padding: .7rem 0; font-family: var(--mono); font-size: .8rem; line-height: 1.55; color: var(--term-text); }
.runlog-lines li { display: grid; grid-template-columns: 72px 58px 64px 1fr; gap: .7rem; padding: .12rem 1rem; }
.runlog-lines li:hover { background: rgba(255,255,255,.04); }
.runlog-lines time { color: var(--term-dim); }
.runlog-lines .src { color: #8FB4E6; }
.runlog-lines .msg { overflow-wrap: anywhere; white-space: pre-wrap; }
.runlog-lines .lvl { font-weight: 700; color: #9FD3FF; }
.runlog-lines .lvl-error .lvl, .runlog-lines .lvl-error .msg { color: #FF9C7A; }
.runlog-lines .lvl-warning .lvl { color: #F2C94C; }
.runlog-lines .lvl-debug { color: var(--term-dim); }
.runlog-lines .unlinked { opacity: .62; }
.runlog-lines .empty { display: block; color: var(--term-dim); font-family: var(--font); font-size: .88rem; }
@media (max-width: 640px) { .runlog-lines li { grid-template-columns: 64px 1fr; } .runlog-lines .src { display: none; } .runlog-lines .msg { grid-column: 1 / -1; } }
.runlog-live { margin: 0; font-size: .84rem; color: var(--muted); display: flex; align-items: center; gap: .5rem; }
.runlog-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.job, .runlog, .runlog > *, .backup-jobs { min-width: 0; }
.console .runlog-tools select { max-width: 100%; min-width: 0; }
@media (max-width: 640px) { .runlog { padding: .75rem; } .runlog-tools { width: 100%; } .console .runlog-tools select { flex: 1 1 100%; } .runlog-lines li { padding: .15rem .75rem; } }

/* Storage quota on the dashboard */
.quota + .quota { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.quota-title { font-weight: 700; color: var(--blue-dark); margin: 0 0 .5rem; }
.quota-bar { display: block; width: 100%; height: 10px; margin: 0 0 .45rem; border-radius: 99px; background: var(--off-bg); border: 0; }
.quota-bar::-webkit-meter-bar { background: var(--off-bg); border: 0; border-radius: 99px; height: 10px; }
.quota-bar::-webkit-meter-optimum-value, .quota-bar::-webkit-meter-suboptimum-value, .quota-bar::-webkit-meter-even-less-good-value { border-radius: 99px; }
.quota-bar::-webkit-meter-optimum-value { background: var(--blue); }
.quota-bar::-webkit-meter-suboptimum-value { background: #D9A92D; }
.quota-bar::-webkit-meter-even-less-good-value { background: var(--down); }
.quota-bar:-moz-meter-optimum::-moz-meter-bar { background: var(--blue); }
.quota-bar:-moz-meter-sub-optimum::-moz-meter-bar { background: #D9A92D; }
.quota-bar:-moz-meter-sub-sub-optimum::-moz-meter-bar { background: var(--down); }
.quota-text { margin: 0 0 .8rem; font-size: .93rem; color: var(--muted); }
.quota-text b { color: var(--blue-dark); }
.quota-alert { margin: .8rem 0 0; padding: .6rem .8rem; border-radius: 8px; background: var(--down-bg); color: #8A2C07; font-size: .9rem; font-weight: 600; }
.quota-alert.is-warn { background: var(--warn-bg); color: #6B4A06; }
.pair-more { margin: .6rem 0 0; max-width: 760px; }
.pair-more > summary { cursor: pointer; font-weight: 650; color: var(--blue); font-size: .93rem; }
.pair-more[open] > summary { margin-bottom: .2rem; }
.pair-more .hint { margin-top: .4rem; }
.cmd-list { margin: 0; display: grid; gap: .55rem; font-size: .9rem; }
.cmd-list dt { font-weight: 650; color: var(--blue-dark); }
.cmd-list dd { margin: .1rem 0 0; color: var(--muted); overflow-wrap: anywhere; }
.cmd-list code { font-size: .8rem; }

/* ---------- Billing ---------- */
.bill-grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .bill-grid { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.bill-plan { font-size: 1.5rem; font-weight: 800; color: var(--blue-dark); margin: 0 0 .8rem; display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.bill-gb { font-size: .95rem; font-weight: 700; color: var(--blue); background: var(--blue-light); border-radius: 999px; padding: .15rem .65rem; }
.bill-notes { margin: 0; padding-left: 1.1rem; font-size: .93rem; color: var(--text); }
.bill-notes li { margin-bottom: .5rem; }
.bill-plans { margin-top: 2.2rem; scroll-margin-top: 90px; }
.bill-plans > h2 { font-size: 1.35rem; margin-bottom: 1rem; }
.offer-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.offer { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; display: grid; gap: .6rem; align-content: start; scroll-margin-top: 90px; }
.offer.is-selected { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,101,216,.14); }
.offer.is-current { background: #F7FBF8; border-color: #BFE3CB; }
.offer-size { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; color: var(--blue-dark); margin: 0; line-height: 1.1; }
.offer-name { margin: 0 0 .3rem; color: var(--muted); font-weight: 600; }
.offer-buy { margin: 0; }
.offer-buy .btn { justify-content: space-between; gap: .5rem; padding: .7rem .9rem; }
.offer-buy .btn span { font-weight: 600; }
.offer-buy .btn b { margin-left: auto; font-size: 1.02rem; }
.offer-buy .btn small { font-weight: 500; opacity: .8; }
.offer-note { font-size: .84rem; color: var(--muted); margin: 0; }
.offer .pill { justify-self: start; }
.bill-history { margin-top: 2rem; }
.bill-history .log-wrap { padding: 0 1.25rem 1rem; }
#pricing-table { scroll-margin-top: 90px; }
