/* PanelCP website. Same palette, type and corners as the panel itself: white and true black, system font. */

:root {
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --surface: #ffffff;
  --fill: rgba(120, 120, 128, .12);
  --label: #1d1d1f;
  --label-2: #55555b;
  --separator: rgba(60, 60, 67, .18);
  --accent: #0071e3;
  --accent-text: #0066cc;
  --accent-press: #0062c4;
  --on-accent: #ffffff;
  --green: #1f7a37;
  --red: #c9211c;
  --material: rgba(255, 255, 255, .76);
  --select: rgba(0, 0, 0, .06);
  --frame: 0 0 0 1px rgba(0, 0, 0, .08), 0 40px 80px -32px rgba(0, 0, 0, .28);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI Variable Text",
    "Segoe UI", "Helvetica Neue", Roboto, Ubuntu, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, "Cascadia Code", Consolas, "Liberation Mono", monospace;
  --gutter: clamp(20px, 5vw, 48px);
  --gap: clamp(72px, 11vw, 144px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --bg-2: #101012; --surface: #1c1c1e; --fill: rgba(118, 118, 128, .26);
    --label: #f5f5f7; --label-2: #a6a6ad; --separator: rgba(110, 110, 118, .42);
    --accent: #0a75ea; --accent-text: #4aa3ff; --accent-press: #2b8bf5; --green: #30d158; --red: #ff6961;
    --material: rgba(0, 0, 0, .72); --select: rgba(255, 255, 255, .1);
    --frame: 0 0 0 1px rgba(255, 255, 255, .14);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --bg-2: #101012; --surface: #1c1c1e; --fill: rgba(118, 118, 128, .26);
  --label: #f5f5f7; --label-2: #a6a6ad; --separator: rgba(110, 110, 118, .42);
  --accent: #0a75ea; --accent-text: #4aa3ff; --accent-press: #2b8bf5; --green: #30d158; --red: #ff6961;
  --material: rgba(0, 0, 0, .72); --select: rgba(255, 255, 255, .1);
  --frame: 0 0 0 1px rgba(255, 255, 255, .14);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--label); font: 1.0625rem/1.55 var(--font); letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
code, pre { font-family: var(--mono); letter-spacing: 0; }
:not(pre) > code { font-size: .88em; background: var(--fill); padding: .12em .36em; border-radius: 5px; overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 20; background: var(--surface); padding: 8px 14px; }

.wrap { max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Pictures of the panel exist in both themes; CSS shows the one that matches the page. */
.shot-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot-light { display: none; }
  :root:not([data-theme="light"]) .shot-dark { display: block; }
}
:root[data-theme="dark"] .shot-light { display: none; }
:root[data-theme="dark"] .shot-dark { display: block; }

/* ------------------------------------------------------------ type scale */

.t-hero { font-size: clamp(2.75rem, 8.2vw, 6.25rem); line-height: .98; letter-spacing: -.046em; font-weight: 680; }
.t-page { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.03; letter-spacing: -.043em; font-weight: 680; }
.t-section { font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.06; letter-spacing: -.037em; font-weight: 660; }
.t-group { font-size: 1.375rem; line-height: 1.25; letter-spacing: -.022em; font-weight: 620; }
.t-lead { font-size: clamp(1.1875rem, 2vw, 1.4375rem); line-height: 1.42; letter-spacing: -.017em; color: var(--label-2); max-width: 38em; }
.t-small { font-size: .9375rem; line-height: 1.5; letter-spacing: -.004em; color: var(--label-2); }

/* --------------------------------------------------------------- buttons */

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 0; border-radius: 24px;
  background: var(--accent); color: var(--on-accent); font: 560 1.0625rem/1 var(--font); letter-spacing: -.011em; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--accent-press); text-decoration: none; }
.btn:active { transform: scale(.97); transition: transform 100ms ease-out; }
.btn:focus-visible { border-radius: 24px; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn-plain { background: var(--fill); color: var(--label); }
.btn-plain:hover { background: var(--select); }
.btn-sm { min-height: 36px; padding: 0 16px; border-radius: 18px; font-size: .9375rem; }

/* ---------------------------------------------------------------- header */

.top { position: sticky; top: 0; z-index: 10; background: var(--material); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); }
.top .wrap { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 30px); min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--label); font-weight: 640; font-size: 1.1875rem; letter-spacing: -.026em; margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.top nav { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 30px); }
.top nav a { color: var(--label); font-size: .9375rem; padding-block: 10px; }
.top nav a[aria-current="page"] { color: var(--accent-text); }
.theme { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--label); cursor: pointer; }
.theme:hover { background: var(--select); }
.theme .icon { width: 20px; height: 20px; }

/* ------------------------------------------------------------------ home */

.hero { padding-top: clamp(48px, 8vw, 104px); }
.hero h1 { max-width: 10.5em; }
.hero-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px 48px; margin-top: clamp(22px, 3vw, 36px); }
.hero-act { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; }
.hero-shot { margin-top: clamp(40px, 6vw, 76px); }
.hero-shot img { width: 100%; border-radius: clamp(10px, 1.4vw, 18px); box-shadow: var(--frame); }

.section { padding-top: var(--gap); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 4.5vw, 56px); }
.section-head h2 { max-width: 15em; }

/* The tour: the panel's own menu on the left, its real pages on the right. */
.tour { display: grid; grid-template-columns: 232px minmax(0, 1fr); border-radius: 18px; overflow: hidden; background: var(--bg-2); box-shadow: var(--frame); }
.tour-menu { padding: 18px 12px; border-right: 1px solid var(--separator); display: flex; flex-direction: column; gap: 2px; }
.tour-menu button { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 38px; padding: 0 12px; border: 0; border-radius: 9px; background: none;
  color: var(--label); font: 500 .9375rem/1.2 var(--font); letter-spacing: -.009em; text-align: left; cursor: pointer; }
.tour-menu button .icon { color: var(--accent-text); }
.tour-menu button:hover { background: var(--select); }
.tour-menu button:active { transform: scale(.98); transition: transform 100ms ease-out; }
.tour-menu button[aria-selected="true"] { background: var(--select); font-weight: 620; }
.tour-page { min-width: 0; }
.tour-text { padding: 22px 28px; border-bottom: 1px solid var(--separator); min-height: 7.6em; display: grid; align-content: center; gap: 4px; background: var(--surface); }
.tour-text p { color: var(--label-2); max-width: 46em; }
.tour-page img { width: 100%; }

/* What a container gets: a grouped list, like the panel's settings. */
.parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); column-gap: clamp(32px, 6vw, 88px); margin: 0; }
.parts > div { padding: 22px 0; border-top: 1px solid var(--separator); }
.parts dt { font-weight: 620; letter-spacing: -.017em; font-size: 1.1875rem; }
.parts dd { margin: 4px 0 0; color: var(--label-2); }

.band { background: var(--bg-2); margin-top: var(--gap); padding-block: clamp(64px, 9vw, 120px); }
.band + .section { padding-top: var(--gap); }

.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 1rem; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 16px 24px 16px 0; border-top: 1px solid var(--separator); }
thead th { border-top: 0; padding-top: 0; font-size: .9375rem; font-weight: 500; color: var(--label-2); }
tbody th { font-weight: 560; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.score { font-size: clamp(1.5rem, 3.4vw, 2.375rem); line-height: 1.1; letter-spacing: -.035em; font-weight: 640; }
.score td, .score th { padding-block: 20px; vertical-align: middle; }
.score th { font-size: 1.0625rem; letter-spacing: -.011em; line-height: 1.4; font-weight: 500; }
.ok { color: var(--green); }
.bad { color: var(--red); }

.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(36px, 6vw, 88px); }
.plain { margin: 18px 0 0; padding: 0; list-style: none; }
.plain li { padding: 12px 0; border-top: 1px solid var(--separator); }

.faq details { border-top: 1px solid var(--separator); }
.faq details:last-child { border-bottom: 1px solid var(--separator); }
.faq summary { padding: 20px 0; font-size: 1.1875rem; font-weight: 600; letter-spacing: -.017em; cursor: pointer; }
.faq details p { padding-bottom: 22px; color: var(--label-2); max-width: 44em; }

/* ------------------------------------------------------------- post list */

.posts { list-style: none; margin: 0; padding: 0; }
.posts li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 6px 32px; padding: 26px 0; border-top: 1px solid var(--separator); }
.posts time { color: var(--label-2); font-size: .9375rem; line-height: 1.75rem; }
.posts h2, .posts h3 { font-size: 1.4375rem; line-height: 1.22; letter-spacing: -.026em; font-weight: 640; }
.posts h2 a, .posts h3 a { color: var(--label); }
.posts p { color: var(--label-2); margin-top: 6px; max-width: 42em; }
.more { margin-top: 22px; }

/* ------------------------------------------------------------ inner pages */

.page-head { padding-top: clamp(44px, 7vw, 92px); display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 72px); }

.feat { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: clamp(44px, 6vw, 76px); border-top: 1px solid var(--separator); }
.feat-text { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 18px clamp(28px, 5vw, 72px); }
.feat-text ul { margin: 0; padding-left: 1.15em; display: grid; gap: 9px; color: var(--label-2); }
.feat-text li::marker { color: var(--accent-text); }
.feat-text li strong { color: var(--label); font-weight: 600; }
.feat-shot { border-radius: 16px; overflow: hidden; background: var(--bg-2); box-shadow: var(--frame); }
.feat-shot img { width: 100%; }
.feat-dialogs { display: flex; flex-wrap: wrap; justify-content: center; align-items: start; gap: clamp(20px, 4vw, 48px); padding: clamp(24px, 4vw, 48px); border-radius: 16px; background: var(--bg-2); }
.feat-dialogs img { width: min(100%, 400px); border-radius: 14px; box-shadow: var(--frame); }
.toc { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.toc a { display: block; padding: 8px 15px; border-radius: 18px; background: var(--fill); color: var(--label); font-size: .9375rem; }
.toc a:hover { background: var(--select); text-decoration: none; }

.prose { max-width: 43rem; font-size: 1.125rem; line-height: 1.62; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: 1.75rem; line-height: 1.18; letter-spacing: -.03em; font-weight: 650; margin-top: 2em; }
.prose h3 { font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.3; margin-top: 1.7em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .45em; }
.prose pre { font-size: .875rem; line-height: 1.6; padding: 18px 20px; border-radius: 12px; overflow-x: auto; background: var(--bg-2) !important; }
.prose table { font-size: 1rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 11px 20px 11px 0; }
.prose img { border-radius: 12px; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .astro-code span { color: var(--shiki-dark) !important; }
}
:root[data-theme="dark"] .astro-code span { color: var(--shiki-dark) !important; }

.release { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 10px 32px; padding-block: 40px; border-top: 1px solid var(--separator); }
.release-head h2 { font-size: 1.75rem; letter-spacing: -.03em; line-height: 1.2; }
.release .prose { font-size: 1.0625rem; max-width: 46rem; }
.release .prose h3 { margin-top: 1.4em; font-size: 1.0625rem; }
.release .prose h3:first-child { margin-top: 0; }

/* ------------------------------------------------------------------ form */

.ask { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 36px clamp(32px, 6vw, 88px); align-items: start; }
.ask form { display: grid; gap: 20px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 560; font-size: .9375rem; }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: 11px 15px; border: 1px solid transparent; border-radius: 12px; background: var(--surface); color: var(--label);
  font: 1.0625rem/1.45 var(--font); letter-spacing: -.011em; box-shadow: inset 0 0 0 1px var(--separator); }
.field textarea { min-height: 128px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--label-2) 50%), linear-gradient(135deg, var(--label-2) 50%, transparent 50%); background-size: 6px 6px; background-position: right 20px center, right 14px center; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { border-radius: 12px; }
.hp { position: absolute; left: -9999px; }
.form-note { min-height: 1.5em; }
.form-done { display: grid; gap: 10px; padding: 32px 0; }

/* ---------------------------------------------------------------- footer */

.foot { margin-top: var(--gap); border-top: 1px solid var(--separator); padding-block: 34px 48px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: baseline; justify-content: space-between; }
.foot ul { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; list-style: none; }
.foot a { color: var(--label-2); font-size: .9375rem; display: inline-block; padding-block: 6px; }

@media (max-width: 860px) {
  .tour { grid-template-columns: minmax(0, 1fr); }
  .tour-menu { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--separator); padding: 10px; gap: 4px; scrollbar-width: none; }
  .tour-menu::-webkit-scrollbar { display: none; }
  .tour-menu button { width: auto; white-space: nowrap; min-height: 44px; }
  .tour-text { padding: 18px 20px; min-height: 9.6em; }
  /* A whole screen would be unreadable on a phone: show its left part at a legible size. */
  .tour-shot, .feat-shot { overflow: hidden; }
  .tour-shot img, .feat-shot img { width: 760px; max-width: none; }
  .hero-shot { overflow: hidden; margin-inline: calc(-1 * var(--gutter)); padding-left: var(--gutter); }
  .hero-shot img { width: 820px; max-width: none; border-radius: 12px 0 0 12px; }
  .feat-text, .ask, .posts li, .release { grid-template-columns: minmax(0, 1fr); }
  th, td { padding-right: 16px; }
}
@media (max-width: 560px) {
  .top nav a.wide { display: none; }
  .top .wrap, .top nav { gap: 13px; }
  .top nav a { font-size: .875rem; }
  .top .btn-sm { padding-inline: 13px; font-size: .875rem; }
  .top .theme { display: none; }
  .hero-act .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-transparency: reduce) { .top { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; } }
@media (prefers-contrast: more) { :root { --separator: currentColor; } .top { background: var(--bg); } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { .btn:active, .tour-menu button:active { transform: none; } }

/* --------------------------------------------- install, cloud, notices */

.notice { padding: 16px 20px; border-radius: 14px; background: var(--bg-2); margin-bottom: 22px; }
.cmd { display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 22px; border-radius: 16px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--separator); }
.cmd pre { margin: 0; flex: 1; min-width: 0; padding: 12px 0; font-size: .9375rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.cmd .btn { flex: none; }
.builder { display: grid; gap: 30px; margin-bottom: 34px; }
.builder fieldset { border: 0; margin: 0; padding: 0; }
.builder legend { padding: 0; font-weight: 560; font-size: .9375rem; margin-bottom: 10px; }
.builder .two { gap: 24px 32px; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices label { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px 0 15px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--separator); cursor: pointer; }
.choices label:has(:checked) { box-shadow: inset 0 0 0 2px var(--accent); }
.choices input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.steps { margin: 0; padding-left: 1.4em; display: grid; gap: 14px; max-width: 44em; }
.steps li { padding-left: .4em; }
.steps li::marker { color: var(--accent-text); font-weight: 620; }
.plan { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 28px clamp(32px, 6vw, 88px); padding: clamp(24px, 4vw, 48px); border-radius: 20px; background: var(--bg-2); }
.plan > div { display: grid; gap: 14px; align-content: start; }
.plan .plain { margin: 0; }
.plan .plain li:first-child { border-top: 0; padding-top: 0; }
.price span { margin-right: .08em; font-size: clamp(3.5rem, 8vw, 5.5rem); line-height: 1; letter-spacing: -.055em; font-weight: 680; }
.ask-page { padding-top: clamp(44px, 7vw, 92px); }
.ask-page form { padding: clamp(20px, 3vw, 36px); border-radius: 20px; background: var(--bg-2); }
.post-head { max-width: 50rem; margin-bottom: clamp(28px, 4vw, 48px); }
.prose-end { margin-top: 56px; }
@media (max-width: 860px) { .plan { grid-template-columns: minmax(0, 1fr); } .cmd { flex-direction: column; align-items: stretch; padding: 8px 14px 14px; } .cmd pre { padding: 8px 2px; } }
