/* OwnRemote's web pages: the homepage (/) and the admin console (/admin/).
   One stylesheet for both, so the console reads as part of the site: white
   pages, hairline borders, large quiet headings, one blue primary button.
   No web fonts: the CSP allows nothing from elsewhere, and the system's
   Korean fonts are good. */

:root {
  --text: #1f1e1e;
  --text-2: #5f5c5a;
  --text-3: #8a8683;
  --line: #e7e4e1;
  --line-2: #d9d5d2;
  --bg: #ffffff;
  --bg-2: #f8f7f6;
  --bg-3: #f1efed;
  /* The main colour (the mark's blue): buttons, links, what is selected.
     White on it is 6.7:1; hover and press go deeper. */
  --primary: #1D4ED8;
  --primary-hover: #1E3A8A;
  --link: #1D4ED8;
  --primary-tint: #EAF1FE;
  --green: #1f9d55;
  --red: #c93a3a;
  --amber: #b7791f;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(31, 30, 30, 0.06), 0 4px 16px rgba(31, 30, 30, 0.06);
  --font: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic",
    system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 15px/1.55 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; }
[hidden] { display: none !important; }
/* A tab the phone app opened (from-app.js): no way to buy credits and no
   prices, whatever a script shows (Google Play's payments policy). */
.from-app [data-purchase] { display: none !important; }
.mono { font-family: var(--mono); font-size: 13px; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.spacer { flex: 1; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px;
  font: 500 14px var(--font); color: var(--text);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 6px;
  cursor: pointer; white-space: nowrap; text-decoration: none;
}
.btn:hover { background: var(--bg-2); text-decoration: none; }
.btn.primary { color: #fff; background: var(--primary); border-color: var(--primary); }
.btn.primary:hover { background: var(--primary-hover); }
.btn.danger { color: #fff; background: var(--red); border-color: var(--red); }
.btn.large { height: 44px; padding: 0 20px; font-size: 15px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: default; }
.link-btn {
  font: inherit; color: var(--link); background: none; border: 0; padding: 0; cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }

/* ------------------------------------------------------------- forms */

label.field, div.field { display: block; margin: 0 0 14px; }
label.field > span, div.field > span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 550; color: var(--text); }
label.field > small { display: block; margin-top: 6px; color: var(--text-3); font-size: 12.5px; }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=search], input[type=datetime-local], input:not([type]), select {
  width: 100%; height: 38px; padding: 0 11px;
  font: 14px var(--font); color: var(--text);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 6px;
}
input:focus, select:focus { outline: 2px solid rgba(29, 78, 216, 0.25); border-color: var(--link); }
label.check { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 14px; cursor: pointer; }
label.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--primary); }
/* The one line under a checkbox that says more of it (the login's "stay signed in"). */
.check-hint { margin: -6px 0 12px 24px; }
fieldset.pair-target { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px 4px; margin: 0 0 6px; }
fieldset.pair-target legend { padding: 0 6px; font-size: 13px; font-weight: 550; }
fieldset.pair-target select { width: 100%; margin: 0 0 10px; }
fieldset.pair-target p { margin: 0 0 10px; }
.form-error { color: var(--red); font-size: 13px; margin: -4px 0 12px; }

/* ============================================================ homepage */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner, .hero .inner, .section .inner, .site-footer .inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
}
.site-header .inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 700; font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; }
.site-nav { display: flex; gap: 22px; }
.site-nav a { color: var(--text-2); font-size: 14.5px; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav a[aria-current] { color: var(--text); font-weight: 600; }
.site-header .actions { display: flex; gap: 10px; margin-left: auto; }

.hero { padding: 84px 0 72px; border-bottom: 1px solid var(--line); }
.hero .inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--link); font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.hero h1 { font-size: 52px; line-height: 1.12; letter-spacing: -0.03em; font-weight: 750; }
.hero .lead { margin: 22px 0 32px; font-size: 18px; color: var(--text-2); max-width: 34em; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .note { margin-top: 16px; color: var(--text-3); font-size: 13.5px; }

/* The phone in the hero: an app grid, as the viewer shows it. */
.phone {
  justify-self: center;
  width: 280px; padding: 14px; border-radius: 36px;
  background: #151414; box-shadow: 0 30px 60px rgba(31, 30, 30, 0.18);
}
.phone-screen { border-radius: 24px; background: #fbfaf9; overflow: hidden; }
.phone-bar { display: flex; justify-content: space-between; padding: 12px 18px 6px; font-size: 11px; color: var(--text-2); }
.phone-title { padding: 6px 18px 2px; font-weight: 700; font-size: 17px; }
.phone-sub { padding: 0 18px 14px; font-size: 11.5px; color: var(--text-3); }
.phone-pc { display: flex; justify-content: space-between; padding: 6px 18px; font-size: 12.5px; font-weight: 600; }
.phone-pc .on { color: var(--green); font-weight: 500; }
.phone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 6px; padding: 10px 14px 34px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 11px; color: var(--text); }
.tile i {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-style: normal; font-weight: 700; font-size: 18px;
}
.t1 { background: #3b5cc4; } .t2 { background: #1f9d55; } .t3 { background: #d9822b; }
.t4 { background: #7a4fc4; } .t5 { background: #2a8fbd; } .t6 { background: #c93a6a; }

.section { padding: 80px 0; border-bottom: 1px solid var(--line); }
.section.alt { background: var(--bg-2); }
.section h2 { font-size: 34px; letter-spacing: -0.02em; }
.section .sub { margin: 12px 0 44px; font-size: 17px; color: var(--text-2); max-width: 40em; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { padding: 24px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.step b { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; background: var(--bg-3); font-size: 14px; margin-bottom: 14px; }
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 14.5px; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 48px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--text-2); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan { display: flex; flex-direction: column; padding: 28px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.plan.featured { border-color: var(--text); box-shadow: var(--shadow); }
.plan .tag { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--bg-3); color: var(--text-2); margin-bottom: 14px; }
.plan h3 { font-size: 20px; }
.plan .price { margin: 12px 0 4px; font-size: 34px; font-weight: 750; letter-spacing: -0.02em; }
.plan .price small { font-size: 14px; font-weight: 500; color: var(--text-2); }
.plan .for { color: var(--text-2); font-size: 14px; min-height: 44px; }
/* The packs of credits (pricing.js): the home page and the top-up dialog. */
.prices { margin-top: 28px; }
.prices h3 { font-size: 20px; margin-bottom: 6px; }
table.price-list { width: 100%; max-width: 520px; border-collapse: collapse; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 12px; }
table.price-list th { text-align: left; font-size: 12px; font-weight: 600; color: var(--text-3); padding: 9px 14px; border-bottom: 1px solid var(--line); }
table.price-list td { padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
table.price-list tr:last-child td { border-bottom: 0; }
table.price-list .amount { text-align: right; font-variant-numeric: tabular-nums; }
.price-note { color: var(--text-2); font-size: 13px; margin-top: 8px; }
/* What a pack covers, in hours (pricing.js coverage). */
.price-cover { max-width: 520px; margin-top: 16px; }
.price-cover h4 { font-size: 15px; margin: 0 0 4px; }
.price-cover p { font-size: 14px; margin: 0; }
.price-cover .price-note { font-size: 13px; margin-top: 6px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 26px; flex: 1; }
.plan li { position: relative; padding-left: 22px; margin: 0 0 10px; font-size: 14.5px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin-top: 10px; color: var(--text-2); }

.site-footer { padding: 36px 0 48px; color: var(--text-3); font-size: 13.5px; }
.site-footer .inner { display: flex; gap: 24px; align-items: center; }
.site-footer a { color: var(--text-2); }
/* The business's details ([legal.business], legal.rs): a line of their own under the links; none set, nothing. */
.site-footer .business-row { margin-top: 14px; }
.site-footer .business-row:empty { display: none; }
.business { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; color: var(--text-3); font-size: 12.5px; line-height: 1.5; }
.business-label { color: var(--text-3); opacity: 0.85; margin-right: 2px; }
.business a { color: inherit; }
.legal-foot { flex-wrap: wrap; }
.legal-foot .business { flex-basis: 100%; }
.page-legal .business, .legal-links + .business { justify-content: center; margin-top: 8px; }

/* The error page (server/src/error_page.rs): the homepage's header and
   footer around one short message, a way home and to sign in. */
body.error-body { display: flex; flex-direction: column; min-height: 100vh; }
.error-page { flex: 1; padding: 96px 0 88px; border-bottom: 1px solid var(--line); }
.error-page .inner { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.error-page h1 { font-size: 40px; line-height: 1.18; letter-spacing: -0.03em; font-weight: 750; word-break: keep-all; }
.error-page .lead { margin: 18px 0 30px; font-size: 17px; color: var(--text-2); max-width: 34em; word-break: keep-all; }
.error-page .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.error-code { font-family: var(--mono); letter-spacing: 0.04em; }
@media (max-width: 600px) {
  .error-page { padding: 56px 0 56px; }
  .error-page .inner { padding: 0 16px; }
  .error-page h1 { font-size: 30px; }
}

/* ============================================================== console */

.console { background: var(--bg-2); min-height: 100vh; }
.topbar { background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar .row1, .topbar .tabs, .page { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.topbar .row1 { display: flex; align-items: center; gap: 14px; height: 56px; }
.org { color: var(--text-2); font-size: 14px; padding-left: 14px; border-left: 1px solid var(--line); }
.topbar .row1 .home-link { color: var(--text-2); font-size: 14px; }
.account { position: relative; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--bg-3); color: var(--text); font: 600 14px var(--font);
}
.tabs { display: flex; gap: 26px; }
.tabs a {
  display: inline-block; padding: 10px 0 12px; color: var(--text-2); font-size: 14.5px;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: var(--text); border-bottom-color: var(--primary); font-weight: 550; }

.page { padding-top: 36px; padding-bottom: 64px; }
.page-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 24px; }
.page-head > div:first-child { flex: 1; margin-right: 14px; }
.page-head h1 { font-size: 30px; letter-spacing: -0.02em; }
.page-head p { margin-top: 6px; color: var(--text-2); max-width: 70ch; text-wrap: pretty; word-break: keep-all; overflow-wrap: break-word; }
/* A filter beside the title keeps its own width: a form control is width 100%,
   which squeezed the reports tab's title and intro to a one-word column. */
.page-head > select { width: auto; flex: none; }
.crumbs { font-size: 14px; color: var(--text-2); margin-bottom: 14px; }
.toolbar { display: flex; gap: 10px; margin-bottom: 14px; }
.toolbar input[type=search] { max-width: 420px; }
.toolbar .pc-count { align-self: center; font-size: 14px; white-space: nowrap; }

.panel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.panel + .panel { margin-top: 20px; }
.panel-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 16px; }
.panel-head p { color: var(--text-2); font-size: 13.5px; }
.panel-body { padding: 20px 22px; }

table.list { width: 100%; border-collapse: collapse; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel table.list { border: 0; border-radius: 0; }
table.list th {
  text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-3); padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--bg);
}
table.list td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 14px; }
table.list tr:last-child td { border-bottom: 0; }
table.list tr.clickable { cursor: pointer; }
table.list tr.clickable:hover td { background: var(--bg-2); }
table.list td.menu-cell { width: 44px; text-align: right; }
.cell-title { font-weight: 600; }
.cell-sub { color: var(--text-3); font-size: 12.5px; margin-top: 2px; }
.empty { padding: 48px 24px; text-align: center; color: var(--text-2); }
.empty h3 { color: var(--text); font-size: 17px; margin-bottom: 8px; }
.empty .btn { margin-top: 18px; }
.empty-actions { display: flex; gap: 10px; justify-content: center; }
.month-input { width: auto !important; flex: none; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--bg); color: var(--text); }

.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--text-2); white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.status.on { color: var(--text); }
.status.on::before { background: var(--green); }
.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 550; background: var(--bg-3); color: var(--text-2); }
.pill.green { background: #e3f4ea; color: #17723f; }
.pill.red { background: #fbe9e9; color: #a62d2d; }
.pill.blue { background: var(--primary-tint); color: var(--primary-hover); }
.pill.amber { background: #fdf1dc; color: #8a5a12; }

/* App icons, as the PC found them; the name's first letter until then. */
.app-icon {
  width: 28px; height: 28px; flex: none; border-radius: 7px; object-fit: contain;
  display: inline-flex; align-items: center; justify-content: center; vertical-align: middle;
}
span.app-icon { background: var(--bg-3); color: var(--text-2); font-weight: 650; font-size: 13px; }
.icon-holder { display: inline-flex; }
.icons { display: flex; align-items: center; gap: 4px; }
.icons .more { font-size: 12.5px; color: var(--text-3); margin-left: 4px; }
.app-cell { display: flex; align-items: center; gap: 12px; }

/* The "⋯" menu of a row, and the account menu. */
.menu-btn {
  width: 30px; height: 30px; border-radius: 6px; border: 0; background: none; cursor: pointer;
  color: var(--text-2); font-size: 18px; line-height: 1;
}
.menu-btn:hover { background: var(--bg-3); color: var(--text); }
.menu {
  position: absolute; z-index: 30; min-width: 190px; padding: 6px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow);
}
.menu button, .menu .menu-label {
  display: block; width: 100%; text-align: left; padding: 8px 10px;
  font: 14px var(--font); color: var(--text); background: none; border: 0; border-radius: 5px; cursor: pointer;
}
.menu .menu-label { cursor: default; color: var(--text-3); font-size: 12.5px; }
.menu button:hover { background: var(--bg-2); }
.menu button.danger { color: var(--red); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }

/* Dialogs. */
dialog {
  width: min(520px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 24px 64px rgba(31, 30, 30, 0.22); color: var(--text);
}
dialog::backdrop { background: rgba(31, 30, 30, 0.35); }
dialog form { padding: 24px 26px 22px; }
dialog h2 { font-size: 19px; margin-bottom: 6px; }
dialog .intro { color: var(--text-2); font-size: 14px; margin-bottom: 20px; }
.download-step { display: flex; align-items: center; gap: 16px; padding: 14px 16px; margin: 10px 0 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); }
.download-step div { flex: 1; font-size: 14px; }
.download-step small { display: block; color: var(--text-2); font-size: 13px; margin-top: 2px; }
#my-diagnostics { margin-top: 24px; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.btn.small { height: 30px; padding: 0 10px; font-size: 13px; }
dialog.wide { width: min(960px, calc(100vw - 32px)); }
.diag-text {
  max-height: 60vh; overflow: auto; margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg-2); font: 12px/1.45 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere;
}
dialog .buttons { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
/* Six boxes of one digit for a one-time code (console.js setUpCodeBoxes). */
.code-boxes { display: flex; gap: 8px; margin-top: 6px; }
.code-boxes input.code-box { width: 0; flex: 1 1 0; max-width: 52px; height: 56px !important; padding: 0; text-align: center; font: 600 24px var(--mono) !important; }
@media (max-width: 380px) { .code-boxes { gap: 5px; } .code-boxes input.code-box { height: 48px !important; font-size: 20px !important; } }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--link); cursor: pointer; }
button.link:disabled { color: var(--text-3); cursor: default; }

.kv { display: grid; grid-template-columns: 160px 1fr; gap: 12px 20px; font-size: 14px; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.policy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.fixed-port { border-top: 1px solid var(--line); padding-top: 14px; margin: 4px 0 16px; }
.fixed-port .field { max-width: 220px; }
.fixed-port p { margin: 0; }
/* The balance page: a few figures above its ledger. */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.stat { padding: 18px 22px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.stat-label { color: var(--text-2); font-size: 13px; font-weight: 550; }
.stat-value { margin-top: 6px; font-size: 28px; font-weight: 750; letter-spacing: -0.02em; }
.stat-value.negative { color: var(--red); }
.stat-sub { margin-top: 4px; color: var(--text-3); font-size: 12.5px; }
.amount { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.list th.amount { text-align: right; }
.amount.plus { color: var(--green); }
.more-row { text-align: center; border-top: 1px solid var(--line); }
.notice { padding: 12px 14px; border-radius: 8px; background: var(--bg-2); color: var(--text-2); font-size: 13.5px; margin-bottom: 16px; }

/* Login. */
.login-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; background: var(--bg-2); }
.login-card { width: min(400px, 100%); padding: 32px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.login-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.login-card h1 { font-size: 22px; margin-bottom: 6px; }
.login-card p.muted { margin-bottom: 22px; font-size: 14px; }
.login-foot { margin-top: 18px; color: var(--text-3); font-size: 13.5px; }
/* Two-factor authentication: the QR code, the key, the recovery codes. */
.login-card .qr { display: flex; justify-content: center; margin: 4px 0 12px; }
.login-card .qr img { width: 220px; height: 220px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.login-card .secret { padding: 10px 12px; margin: 6px 0 16px; background: var(--bg-2); border-radius: 8px; word-break: break-all; letter-spacing: 0.04em; user-select: all; }
.recovery-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin: 0 0 16px; padding: 12px 12px 12px 32px; background: var(--bg-2); border-radius: 8px; user-select: all; }

#toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 50;
  padding: 11px 18px; border-radius: 8px; background: var(--text); color: #fff; font-size: 14px;
  box-shadow: var(--shadow); max-width: min(560px, calc(100vw - 32px));
}
#toast.bad { background: var(--red); }

/* The language switch, "English | 한국어" (i18n.js): the current one in bold. */
.lang-switch { display: inline-flex; align-items: center; font-size: 13px; }
.lang-switch button {
  font: inherit; color: var(--text-3); background: none; border: 0; padding: 2px 7px; cursor: pointer;
}
.lang-switch button + button { border-left: 1px solid var(--line-2); }
.lang-switch button:hover { color: var(--text); }
.lang-switch button[aria-pressed=true] { color: var(--text); font-weight: 600; }
/* As links, on a page with an address per language (the help page). */
.lang-switch a { padding: 2px 7px; color: var(--text-3); }
.lang-switch a + a { border-left: 1px solid var(--line-2); }
.lang-switch a:hover { color: var(--text); text-decoration: none; }
.lang-switch a[aria-current] { color: var(--text); font-weight: 600; }

@media (max-width: 860px) {
  /* No room next to the buttons: the footer has it. */
  .site-header .lang-switch { display: none; }
  .hero .inner, .steps, .features, .plans { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .site-nav { display: none; }
  .policy-grid, .kv, .stats { grid-template-columns: 1fr; }
  table.list .hide-narrow { display: none; }
}

/* A phone (360 to 430 px wide): the headers in one row that fits. Until
   2026-10-11 they were the desktop's, made narrower only by hiding the
   homepage's links, and ran 20 to 220 px past the right edge (the console's
   most: the account name, both languages, "Homepage" and the avatar). */
@media (max-width: 600px) {
  .site-header .inner { gap: 12px; height: 58px; }
  /* The error page's message is at 16 px from the edge on a phone: its header and footer with it. */
  .error-body .site-header .inner, .error-body .site-footer .inner { padding: 0 16px; }
  .site-header .actions { gap: 6px; }
  .site-header .actions .btn { height: 34px; padding: 0 11px; font-size: 13.5px; }
  .brand { gap: 8px; font-size: 16px; white-space: nowrap; }
  .brand-mark { width: 24px; height: 24px; }
  /* The footer's links and languages go to a second line rather than past the edge. */
  .site-footer .inner { flex-wrap: wrap; gap: 10px 20px; }

  .topbar .row1, .topbar .tabs, .page { padding-left: 16px; padding-right: 16px; }
  .topbar .row1 { gap: 10px; height: 52px; }
  /* Who is signed in is the first line of the avatar's menu. */
  .org { display: none; }
  /* The tabs scroll sideways rather than widen the page (an operator has seven). */
  .tabs { gap: 20px; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { white-space: nowrap; flex: none; }

  .notice-banners { padding: 12px 16px 0; }
  .page { padding-top: 24px; }
  .page-head { flex-wrap: wrap; }
  .page-head > div:first-child { flex: 1 1 15em; margin-right: 0; }
  .page-head h1 { font-size: 26px; }
  /* A list wider than the phone scrolls inside its box. */
  :has(> table.list) { overflow-x: auto; }
  table.list .pill { white-space: nowrap; }
  /* "1 / 4" on one line, not one word a line (the table scrolls instead). */
  table.list td[data-pcs] { white-space: nowrap; }
}
@media (max-width: 480px) {
  /* The homepage's hero has "Get started free" right under the header, and
     the error page has "Sign in" in its message: each header keeps the other. */
  body:not(.error-body) .site-header .actions .btn.primary { display: none; }
  .error-body .site-header .actions .btn:not(.primary) { display: none; }
  /* The homepage is in the avatar's menu (console.js). */
  .topbar .row1 .home-link { display: none; }
}

/* The monthly connection statistics under the owners (docs/DESIGN.md 6.11). */
#stats-panel { margin-top: 20px; }
.panel-body .intro { color: var(--text-2); font-size: 14px; margin-bottom: 16px; }

/* The operators' status page (docs/DESIGN.md 10.3): a pill for how each
   thing stands, then its number; then short lists. */
.status-overall { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.status-overall .pill { font-size: 13px; padding: 4px 12px; }
.status-overall small { color: var(--text-3); font-size: 12.5px; }
.stat-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.status-tiles .stat-value.muted { color: var(--text-3); }
.alert-row { display: flex; align-items: center; gap: 12px; padding: 13px 22px; border-bottom: 1px solid var(--line); font-size: 14px; }
.alert-row:last-child { border-bottom: 0; }
.alert-row .alert-text { flex: 1; }
.status-ok-line { padding: 18px 22px; color: var(--text-2); font-size: 14px; }
td.amount.negative { color: var(--red); }
.rules { margin: 4px 0 0; padding: 0; list-style: none; color: var(--text-2); font-size: 13px; }

/* One owner's support view (docs/DESIGN.md 6.14): each likely cause, and
   under it what to tell the owner. */
.cause-row { align-items: flex-start; }
.cause-row .pill { margin-top: 1px; }
.cause-tell { margin-top: 4px; line-height: 1.5; }
.cause-tell b { color: var(--text); font-weight: 600; }
dd.negative { color: var(--red); }
a.owner-link { color: inherit; text-decoration: none; }
a.owner-link:hover { text-decoration: underline; }
.support-link { font-size: 12.5px; }

/* The privacy policy and the terms (/privacy, /terms; server/src/legal.rs):
   one readable column, tables that scroll rather than widen the page. */
body.legal { background: var(--bg-2); }
.legal-top, .legal-doc, .legal-foot { width: min(760px, 100%); margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.legal-top { display: flex; align-items: center; gap: 12px; padding-top: 18px; padding-bottom: 18px; }
.legal-langs { display: inline-flex; font-size: 13px; }
.legal-langs > * { padding: 2px 7px; color: var(--text-3); }
.legal-langs > * + * { border-left: 1px solid var(--line-2); }
.legal-langs [aria-current] { color: var(--text); font-weight: 600; }
.legal-doc { padding-top: 28px; padding-bottom: 36px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; word-break: keep-all; overflow-wrap: break-word; }
.legal-doc h1 { font-size: 26px; line-height: 1.3; margin: 0 0 18px; }
.legal-doc h2 { font-size: 19px; margin: 30px 0 10px; }
.legal-doc h3 { font-size: 16px; margin: 22px 0 8px; }
.legal-doc blockquote { margin: 0 0 18px; padding: 10px 14px; background: var(--bg-2); border-left: 3px solid var(--line-2); color: var(--text-2); font-size: 14px; }
.legal-doc blockquote p { margin: 4px 0; }
.legal-doc table { display: block; overflow-x: auto; border-collapse: collapse; margin: 12px 0 18px; font-size: 14px; }
.legal-doc th, .legal-doc td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: top; }
.legal-doc th { background: var(--bg-2); font-weight: 600; }
.legal-doc code { font-family: var(--mono); font-size: 0.92em; background: var(--bg-3); padding: 1px 4px; border-radius: 4px; }
.legal-doc a { text-decoration: underline; }
.legal-foot { display: flex; gap: 20px; padding-top: 18px; padding-bottom: 40px; color: var(--text-3); font-size: 13.5px; }
.legal-foot a { color: var(--text-2); }
@media (max-width: 600px) {
  .legal-doc { border-radius: 0; border-left: 0; border-right: 0; padding-left: 16px; padding-right: 16px; }
  .legal-top, .legal-foot { padding-left: 16px; padding-right: 16px; }
  .legal-doc h1 { font-size: 22px; }
}

/* The console's links to them, shown once the server has them. */
.legal-links { margin: 18px 0 0; color: var(--text-3); font-size: 12.5px; text-align: center; }
.legal-links a { color: var(--text-3); }
.legal-links .sep { margin: 0 8px; color: var(--line-2); }
.page-legal { padding: 8px 0 28px; }
/* In the sign-up form, above the boxes that agree to them. */
.legal-links.signup-legal { margin: 0 0 10px; text-align: left; font-size: 13px; }

/* The site's document pages (/help, server/src/help.rs; /docs/turn-api,
   turn_docs.rs; their frame is site_chrome.rs): the homepage's header and
   footer, a title band like its hero, and then the contents beside the
   text — a sticky column on a wide screen, a fold over the text on a narrow
   one (a <details>, so no script is needed). Under the sticky header a
   topic opened by its link scrolls to below it (scroll-margin-top). */
.doc-hero { padding: 56px 0 40px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.doc-hero .inner, .doc-layout { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.doc-hero h1 { font-size: 40px; line-height: 1.18; letter-spacing: -0.03em; font-weight: 750; word-break: keep-all; }
.doc-hero .eyebrow { margin-bottom: 10px; }
.doc-hero .lead { margin-top: 16px; font-size: 17px; color: var(--text-2); max-width: 44em; word-break: keep-all; }
.doc-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 56px; padding-top: 40px; padding-bottom: 72px; align-items: start; }
.doc-side { position: sticky; top: 88px; max-height: calc(100vh - 112px); overflow-y: auto; overscroll-behavior: contain; margin-left: -8px; padding: 0 4px 0 8px; }
.doc-toc-title { margin: 0 0 10px; color: var(--text-3); font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; }
.help-toc { font-size: 14px; }
.help-toc ul { list-style: none; margin: 0; padding: 0; }
.help-toc > ul > li { margin: 0 0 6px; }
.help-toc > ul > li:has(> ul) { margin: 12px 0; }
.help-toc > ul > li > a { display: block; padding: 4px 8px; margin: 0 -8px; border-radius: 6px; color: var(--text-2); }
.help-toc > ul > li:has(> ul) > a { color: var(--text); font-weight: 600; }
.help-toc > ul > li > a:hover { background: var(--bg-2); }
.help-toc li ul { margin: 6px 0 0; padding-left: 2px; }
.help-toc li li { margin: 0; }
.help-toc li li a { display: flex; align-items: baseline; padding: 4px 8px; border-radius: 6px; color: var(--text-2); font-size: 13.5px; line-height: 1.4; }
.help-toc a { word-break: keep-all; overflow-wrap: break-word; }
.help-toc a:hover { color: var(--text); text-decoration: none; }
.help-toc li li a:hover { background: var(--bg-2); }
.help-toc .help-light { flex: none; margin-right: 6px; }
.doc-toc-fold { display: none; }
.doc-page .site-footer { border-top: 1px solid var(--line); }
.doc-main { min-width: 0; max-width: 760px; word-break: keep-all; overflow-wrap: break-word; }
.doc-main a { text-decoration: underline; text-underline-offset: 2px; }
.doc-main .help-toc a { text-decoration: none; }
.doc-main code { font-family: var(--mono); font-size: 0.92em; background: var(--bg-3); padding: 1px 4px; border-radius: 4px; }
.doc-main table { display: block; overflow-x: auto; border-collapse: collapse; margin: 12px 0 18px; font-size: 14px; }
.doc-main th, .doc-main td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.doc-main th { background: var(--bg-2); font-weight: 600; }
.help-group, .help-business, .turn-section { scroll-margin-top: 84px; }
.help-group + .help-group, .help-business, .turn-section + .turn-section { margin-top: 56px; }
.help-group > h2, .help-business > h2, .turn-section > h2 { font-size: 26px; line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 12px; }
.help-intro { color: var(--text-2); margin: 0 0 18px; }
.help-business { padding: 24px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; }
.help-business > h2 { font-size: 20px; }
.help-business p { color: var(--text-2); }

.help-label { margin: 16px 0 6px; color: var(--text-2); font-size: 13px; font-weight: 600; }
/* The tray's marks: a shape for each colour, each with the same dark edge. */
.help-light { display: inline-block; width: 1.25em; margin-right: 6px; text-align: center; -webkit-text-stroke: 0.6px #1A1A1A; }
.help-light.green { color: #22C55E; }
.help-light.yellow { color: #FACC15; }
.help-light.red { color: #EF4444; }
.help-light.cross svg { width: 0.95em; height: 0.95em; vertical-align: -0.12em; fill: #EF4444; stroke: #1A1A1A; stroke-width: 1.1px; stroke-linejoin: round; overflow: visible; }
.help-lights { display: table; width: 100%; margin: 0; }
.doc-main .help-lights th { width: 1%; white-space: nowrap; background: var(--bg); }
.doc-main .help-lights td { color: var(--text-2); }

/* A topic: a card, as the homepage's steps and plans are. */
.help-topic { margin: 0 0 16px; padding: 22px 24px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; scroll-margin-top: 84px; }
.help-topic > h3 { display: flex; align-items: baseline; font-size: 18px; line-height: 1.35; margin: 0 0 4px; }
.help-topic > h3 .help-light { flex: none; }
.help-topic:target { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.14), var(--shadow); }
.help-topic ol, .help-topic ul { margin: 6px 0; padding-left: 22px; }
.help-topic li { margin: 5px 0; }
.help-topic > p:not(.help-label):not(.help-top) { color: var(--text); }
.help-says { list-style: none; padding-left: 0 !important; margin: 4px 0; }
.help-says li { display: inline-block; margin: 2px 6px 2px 0; padding: 3px 9px; background: var(--bg-3); border-radius: 6px; font-size: 13.5px; }
.help-note { margin-top: 10px; padding: 10px 12px; background: var(--bg-2); border-radius: 8px; color: var(--text-2); font-size: 14px; }
.help-top { margin: 10px 0 0; font-size: 12.5px; text-align: right; }
.doc-main .help-top a { color: var(--text-3); text-decoration: none; }

@media (max-width: 960px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 24px; }
  .doc-side { display: none; }
  .doc-toc-fold { display: block; margin: 0 0 28px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
  .doc-toc-fold > summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; font-weight: 600; cursor: pointer; list-style: none; }
  .doc-toc-fold > summary::-webkit-details-marker { display: none; }
  .doc-toc-fold > summary::after { content: ""; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: translateY(-2px) rotate(45deg); transition: transform 0.15s; }
  .doc-toc-fold[open] > summary::after { transform: translateY(3px) rotate(-135deg); }
  .doc-toc-fold .help-toc { padding: 4px 18px 16px; border-top: 1px solid var(--line); padding-top: 14px; }
  .doc-main { max-width: none; }
}
@media (max-width: 600px) {
  .doc-page .site-header .inner, .doc-page .site-footer .inner, .doc-hero .inner, .doc-layout { padding-left: 16px; padding-right: 16px; }
  .doc-hero { padding: 32px 0 24px; }
  .doc-hero h1 { font-size: 30px; }
  .doc-hero .lead { font-size: 15.5px; }
  .doc-layout { padding-bottom: 48px; }
  .help-group > h2, .help-business > h2, .turn-section > h2 { font-size: 22px; }
  .help-group + .help-group, .help-business, .turn-section + .turn-section { margin-top: 40px; }
  .help-topic { padding: 18px 16px 12px; }
  .help-topic > h3 { font-size: 17px; }
  .help-business { padding: 18px 16px; }
  .help-group, .help-business, .turn-section, .help-topic { scroll-margin-top: 74px; }
}

/* The abuse report form (/report; server/src/report.rs): no script, the
   legal pages' layout. The hidden field is for programs only: off screen,
   not display:none, which some fill in anyway and some skip. */
textarea {
  width: 100%; padding: 9px 11px; resize: vertical;
  font: 14px/1.5 var(--font); color: var(--text);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 6px;
}
textarea:focus { outline: 2px solid rgba(29, 78, 216, 0.25); border-color: var(--link); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice.warn { background: #fdf1dc; color: #6b4510; }
.report .form-error { margin: 0 0 14px; font-size: 14px; }
fieldset.report-who { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px 2px; margin: 0 0 14px; }
fieldset.report-who legend { padding: 0 6px; font-size: 13px; font-weight: 550; }
.report-police li { margin-bottom: 6px; }

/* The homepage's one line against remote-support scams. */
.scam-note { padding: 14px 0; border-top: 1px solid var(--line); background: var(--bg-2); color: var(--text-2); font-size: 13.5px; }
.scam-note .inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.scam-note a { margin-left: 6px; white-space: nowrap; }

/* Operators' notices, at the top of an owner's console until dismissed. */
.notice-banners { max-width: 1180px; margin: 0 auto; padding: 16px 28px 0; }
.notice-banner { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin-bottom: 8px; border-radius: 8px; background: var(--primary-tint); color: var(--text); font-size: 14px; }
.notice-banner.warning { background: #fdf1dc; color: #5b3a0d; }
.notice-banner .notice-text { flex: 1; min-width: 0; }
.notice-banner .notice-title { font-weight: 650; display: block; }
.notice-banner .notice-body { white-space: pre-line; overflow-wrap: anywhere; margin: 2px 0 0; }
.notice-banner .notice-close { flex: none; }
/* The email banner's text takes the room and its button keeps to the right,
   as a notice's close does (it sat mid-row, 2026-10-11). */
.notice-banner > div:first-child { flex: 1; min-width: 0; }
.notice-banner > .btn { flex: none; align-self: center; }
/* The update banner's buttons keep to the right, side by side, and go under
   the text on a phone. */
.notice-banner .update-actions { flex: none; display: flex; gap: 8px; align-self: center; flex-wrap: wrap; }
.notice-banner .update-failed { color: var(--red); }
@media (max-width: 600px) {
  .notice-banner.update-banner { flex-wrap: wrap; }
  .notice-banner.update-banner .notice-text { flex-basis: 100%; }
}
.report-body { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; font-size: 14px; margin: 0 0 12px; }
.report-notes li { margin-bottom: 8px; white-space: pre-line; overflow-wrap: anywhere; }

/* ------------------------------------------------------------ pairing: waiting for the PC */

.pair-waiting { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; color: var(--text-2); }
.spinner {
  flex: none; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--line-2); border-top-color: var(--primary);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.5s; } }

/* The "add app" dialog's list of the PC's installed apps (app-picker.js). */
dialog.picker { width: min(720px, calc(100vw - 32px)); }
.picker-bar { display: flex; gap: 8px; margin-bottom: 10px; }
.picker-bar input { flex: 1; min-width: 0; }
#picker-state { min-height: 22px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#picker-state p { margin: 0; }
.picker-loading { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14px; }
.picker-list {
  list-style: none; margin: 0; padding: 4px; max-height: min(52vh, 520px); overflow-y: auto;
  border: 1px solid var(--line); border-radius: 10px;
}
.picker-list:empty { display: none; }
.picker-item label {
  display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; cursor: pointer;
}
.picker-item label:hover { background: var(--bg-2); }
.picker-item.chosen label { background: var(--primary-tint); }
.picker-item.added label { cursor: default; opacity: 0.75; }
.picker-item input[type=checkbox] { flex: none; width: 18px; height: 18px; margin: 0; }
.picker-item .app-icon { width: 32px; height: 32px; }
.picker-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.picker-name { font-size: 14.5px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-program { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
dialog.picker .buttons { align-items: center; }
dialog.picker .buttons .spacer { flex: 1; }
.btn.link { border-color: transparent; background: none; color: var(--link); padding-left: 4px; padding-right: 4px; }
.btn.link:hover { text-decoration: underline; background: none; }

/* ------------------------------------------------------------ downloads (downloads.js)
   The homepage's "Download" section and the phone app's box in the
   console: Google Play, the APK with its version and size, and a QR code
   for a phone's camera. The QR code is always dark on white, with its
   own white margin, whatever the page's colours: scanners need it so. */
/* Side by side, Android the wider; alone (no Windows installer), it takes
   the row. */
.dl-cards { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.dl-card { flex: 1 1 260px; min-width: 0; padding: 24px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
#dl-android { flex: 2 1 460px; }
.dl-card h3 { font-size: 17px; margin-bottom: 10px; }
.dl-text { color: var(--text-2); font-size: 14.5px; margin-bottom: 16px; }
.dl-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.dl-buttons .btn { max-width: 100%; }
.dl-android { display: flex; flex-wrap: wrap; gap: 20px 24px; align-items: flex-start; }
.dl-android-main { flex: 1 1 220px; min-width: 0; }
.dl-meta { margin-top: 10px; color: var(--text-2); font-size: 13.5px; }
.dl-note { margin-top: 8px; color: var(--text-3); font-size: 13px; line-height: 1.5; }
.dl-qr { flex: none; margin: 0; width: 176px; text-align: center; }
.dl-qr img { display: block; width: 176px; height: 176px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px; image-rendering: pixelated; }
.dl-qr figcaption { margin-top: 8px; font-size: 12.5px; color: var(--text-2); line-height: 1.45; }
.dl-qr a { display: block; border-radius: 8px; }
.dl-qr a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.dl-qr .dl-qr-url { display: block; margin-top: 2px; font-family: var(--mono); font-size: 11.5px; color: var(--text-3); overflow-wrap: anywhere; }
/* In the console: under "no PCs yet", and in Settings. */
.dl-empty { max-width: 560px; margin: 28px auto 0; padding-top: 22px; border-top: 1px solid var(--line); text-align: left; }
.dl-empty h4 { margin: 0 0 12px; font-size: 15px; color: var(--text); }
.dl-empty .btn { margin-top: 0; }
.kv dd.dl-settings .dl-android { max-width: 640px; }
.kv dd.dl-settings .dl-qr, .kv dd.dl-settings .dl-qr img { width: 144px; }
.kv dd.dl-settings .dl-qr img { height: 144px; }
/* On a phone the buttons are the way: a code to scan with the same phone
   is no use, and it would push them off the screen. */
@media (max-width: 600px) {
  .dl-android { flex-direction: column; }
  .dl-qr { display: none; }
  .dl-buttons .btn { flex: 1 1 100%; }
}

/* Google and Kakao (social.rs): each provider's own button (docs/DESIGN.md 6.1).
 * Google: white, #747775 border, #1F1F1F text, the four-colour G. Kakao:
 * #FEE500, the black speech bubble, the label black at 85%, 12px corners. */
.social { margin-top: 18px; display: grid; gap: 10px; }
.social-or { display: flex; align-items: center; gap: 12px; margin: 0 0 4px; color: var(--text-3); font-size: 13px; }
.social-or::before, .social-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.btn-social { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 44px; padding: 0 16px; font: 500 15px/1 Roboto, Arial, system-ui, sans-serif; cursor: pointer; }
.btn-social[hidden] { display: none; }
.btn-social .social-logo { width: 20px; height: 20px; flex: none; }
.btn-social.google { background: #FFFFFF; color: #1F1F1F; border: 1px solid #747775; border-radius: 4px; }
.btn-social.google:hover { background: #F8F9FA; }
.btn-social.kakao { background: #FEE500; color: rgba(0, 0, 0, 0.85); border: 0; border-radius: 12px; }
.btn-social.kakao:hover { background: #F5DC00; }
.btn-social:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.identities { list-style: none; margin: 8px 0 0; padding: 0; }
.identity { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.identity:first-child { border-top: 0; }
.identity-text { flex: 1; display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.identity-mark { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; }
.identity-mark svg { width: 16px; height: 16px; }
.identity-mark.google { background: #FFFFFF; border: 1px solid #747775; }
.identity-mark.kakao { background: #FEE500; }

/* B2B TURN docs (/docs/turn-api; server/src/turn_docs.rs): the help page's
   frame, with code samples that scroll inside themselves rather than
   widen the page. */
.turn-code { margin: 6px 0 14px; padding: 12px 14px; max-width: 100%; overflow-x: auto; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); font: 13px/1.5 var(--mono); white-space: pre; word-break: normal; overflow-wrap: normal; }
.doc-main .turn-code code { padding: 0; background: none; border-radius: 0; font-size: inherit; }
.turn-table td code { white-space: nowrap; }
.turn-section > p:not(.help-label):not(.help-top) { margin: 0 0 10px; }
.turn-section > ul { margin: 6px 0 12px; padding-left: 22px; }
.turn-section li { margin: 4px 0; }

/* B2B tab */
.stats.b2b-totals { grid-template-columns: repeat(4, 1fr); margin-bottom: 0; }
.b2b-month-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
#b2b-month { width: 120px !important; }
.b2b-secret { padding: 10px 12px; margin: 6px 0 16px; background: var(--bg-2); border-radius: 8px; word-break: break-all; user-select: all; font-size: 14px; }
@media (max-width: 860px) {
  .stats.b2b-totals { grid-template-columns: 1fr 1fr; }
}

/* Usage history (console.js drawUsage): the month and PC filters, the
   month's totals, the share of each kind of connection as a bar. */
.usage-filters { flex-wrap: wrap; align-items: center; }
.usage-filter { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.usage-filter select { min-width: 150px; max-width: 260px; }
.kind-shares { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px 22px; }
.kind-share-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kind-share-num { font-weight: 600; font-variant-numeric: tabular-nums; }
.kind-bar { height: 8px; margin: 8px 0 6px; background: var(--bg-3); border-radius: 99px; overflow: hidden; }
.kind-fill { display: block; height: 100%; border-radius: 99px; background: var(--text-2); }
.kind-fill.kind-direct_lan, .kind-fill.kind-direct_p2p { background: #2f9e5e; }
.kind-fill.kind-relay_udp, .kind-fill.kind-relay_tcp { background: var(--primary); }
table.usage-list .app-cell { min-width: 0; }
