/* gchat.com: one small stylesheet, no frameworks. The old content (feature
   pages, FAQ answers, legal pages) is plain HTML styled by .prose. */
:root {
  --fg: #1d2129; --muted: #5d6573; --bg: #fff; --page: #eef1f6; --soft: #f4f6f9; --line: #dfe3ea; --silver: #c0cee9;
  /* The old site's blues (top bar #3e5e85, menu #c0cee9) and its orange hover */
  --accent: #2f5f98; --accent-dark: #234a7a; --hot: #e8551c; --ok: #116b3a; --err: #b42318;
  --radius: 10px; --wrap: 1080px;
  --shadow-sm: 0 1px 2px rgba(30,45,70,.06), 0 1px 3px rgba(30,45,70,.06);
  --shadow: 0 2px 6px rgba(30,45,70,.06), 0 8px 24px rgba(30,45,70,.08);
  --ring: 0 0 0 3px rgba(47,95,152,.25);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--fg); background: var(--page); }
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--accent-dark); text-underline-offset: 2px; }
a:hover { color: var(--hot); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
h2 { font-size: 1.35rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted, time { color: var(--muted); font-size: .9rem; }
.center { text-align: center; }
.float-right { float: right; margin: 0 0 1rem 1.5rem; max-width: 45%; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: .5rem 1rem; z-index: 10; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Header: the old site's three bands, redrawn as CSS gradients */
.topbar { background: linear-gradient(#3e5e85, #697fa4 45%, #b1bcda); font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: flex-end; align-items: center; gap: .6rem; min-height: 30px; color: #dfe6f3; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; text-shadow: 0 1px 1px rgba(0,0,0,.35); }
.topbar a:hover { color: #fc0; }
/* Same gradient as the background baked into toplogo.jpg, so the logo blends in */
.brandbar { background: linear-gradient(#fefefe, #f7f7f7 12%, #eeeced 25%, #e4e2e3 37%, #d0cecf 50%, #cfcfcf 62%, #d7d7d7 75%, #e1e1e1 87%, #e9e9e9); border-bottom: 1px solid #b0b0b0; }
.brandbar .wrap { display: flex; align-items: flex-end; gap: 1rem; height: 75px; }
.logo { display: block; flex: none; }
.logo img { display: block; }
.tagline { margin: 0 0 .9rem; font-weight: 700; color: #1d2129; font-size: 1.05rem; text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.menubar { background: linear-gradient(#fdfdfd, #efeeec 30%, #e8e4e3 46%, #c0cee9 54%, #d3dbe6 75%, #e8e9eb); border-bottom: 1px solid #b0b0b0; box-shadow: 0 1px 3px rgba(30,45,70,.12); }
.menubar .wrap { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.menubar a { color: #1d2129; font-weight: 700; text-decoration: none; padding: .6rem 1rem; white-space: nowrap; border-right: 1px solid rgba(255,255,255,.7); box-shadow: 1px 0 0 rgba(0,0,0,.08); }
.menubar a:first-child { padding-left: 0; }
.menubar a:hover { color: var(--hot); }
.menubar a[aria-current] { color: var(--accent-dark); background: rgba(255,255,255,.45); }
.menubar a:first-child[aria-current] { padding-left: .6rem; }
/* Every page sits on a white sheet over the silver page, like the old
   site's content boxes; the home page's panels sit on the page directly. */
main.wrap { flex: 1; width: 100%; padding-top: 2rem; padding-bottom: 3rem; }
main.sheet { max-width: calc(var(--wrap) - 32px); margin: 1.75rem auto 2.5rem; padding: 2.25rem 2.5rem 2.5rem; background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
main.sheet > :last-child { margin-bottom: 0; }
main section { margin: 0 0 2.5rem; }
.site-footer { background: linear-gradient(#fefefe, #eceef2 60px, #e4e7ec); border-top: 1px solid #c9ced8; box-shadow: inset 0 3px 0 var(--silver); padding: 2.2rem 0 1rem; font-size: .95rem; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.5rem; }
.site-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 .5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .25rem 0; }
.site-footer a { color: var(--fg); text-decoration: none; }
.site-footer a:hover { color: var(--accent-dark); text-decoration: underline; }
.copyright { color: var(--muted); font-size: .85rem; margin-top: 1.5rem; }

/* Buttons and forms */
.button, button { display: inline-block; background: linear-gradient(#3d70ad, var(--accent)); color: #fff; border: 1px solid var(--accent-dark); border-radius: 8px;
  padding: .55rem 1.15rem; font: inherit; font-weight: 600; line-height: 1.5; text-decoration: none; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 1px 2px rgba(30,45,70,.18); transition: background-color .15s, box-shadow .15s, color .15s; }
.button:hover, button:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.button:active, button:active { box-shadow: inset 0 2px 3px rgba(0,0,0,.2); }
/* The old banner's dark glossy buttons */
.button.glossy { background: linear-gradient(#6b7079, #3a3e45 50%, #26292e 51%, #33373d); border: 1px solid #1b1d21; border-radius: 9px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 2px 4px rgba(0,0,0,.35); padding: .6rem 1.3rem; text-shadow: 0 -1px 0 rgba(0,0,0,.5); }
.button.glossy:hover { background: linear-gradient(#7a808a, #474c54 50%, #2f3238 51%, #3d4148); color: #fc0; }
.button.secondary, button.secondary { background: linear-gradient(#fff, #f2f5fa); color: var(--accent-dark); border-color: #b9c6dc; box-shadow: var(--shadow-sm); }
.button.secondary:hover, button.secondary:hover { background: #e9eef6; border-color: var(--accent); color: var(--accent-dark); }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1.2rem 0; }
input, textarea, select { font: inherit; width: 100%; padding: .6rem .75rem; border: 1px solid #c3cad5; border-radius: 8px; background: #fff; color: var(--fg);
  box-shadow: inset 0 1px 2px rgba(30,45,70,.05); transition: border-color .15s, box-shadow .15s; }
input:hover, textarea:hover, select:hover { border-color: #9fb0c9; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
input[type=checkbox], input[type=radio] { width: auto; box-shadow: none; accent-color: var(--accent); }
.form label { display: block; font-weight: 600; font-size: .95rem; margin: 1.1rem 0 .35rem; }
.form button { margin-top: 1.4rem; }
.form .captcha { margin-top: 1.25rem; min-height: 65px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.search { display: flex; gap: .5rem; align-items: center; margin: 0 0 1.5rem; flex-wrap: wrap; }
.search label { flex-basis: 100%; font-size: .9rem; color: var(--muted); }
.search input { flex: 1; min-width: 0; }
.notice { border: 1px solid var(--line); border-left-width: 4px; background: var(--soft); border-radius: 8px; padding: .75rem 1rem; margin: 1rem 0; }
.notice p { margin: .2rem 0; }
.notice.ok { border-color: #a6d8b8; border-left-color: var(--ok); background: #edf8f1; color: var(--ok); }
.notice.error { border-color: #f1b5ae; border-left-color: var(--err); background: #fdf0ee; color: var(--err); }
.notice ul { margin: 0; padding-left: 1.2rem; }
.narrow { max-width: 640px; margin: 0 auto; }

/* Home */
.banner { position: relative; display: flex; justify-content: flex-end; aspect-ratio: 996 / 340; margin: 0 0 1.5rem;
  background: #5b6c90 url(/images/video-chat-banner.jpg) left center / cover no-repeat; border-radius: var(--radius); overflow: hidden;
  border: 1px solid #b0b0b0; box-shadow: 0 4px 18px rgba(30,45,70,.18); }
.banner-text { width: min(46%, 440px); padding: 1.6rem 1.8rem; color: #fff; text-shadow: 0 2px 3px rgba(0,0,0,.45); display: flex; flex-direction: column; justify-content: center; }
.banner h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin: 0 0 .7rem; letter-spacing: .01em; }
.banner-features { list-style: none; margin: 0 0 1rem; padding: 0; font-size: clamp(.95rem, 1.6vw, 1.2rem); }
.banner-features li { display: flex; align-items: center; gap: .6rem; margin: .25rem 0; }
.banner-features img { filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.banner-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0; }
.teaser { display: flex; gap: 1.2rem; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem;
  background: linear-gradient(#fff, #f7f9fc); box-shadow: var(--shadow-sm); }
.teaser > a { flex: none; }
.teaser img { border-radius: 12px; }
.teaser h2 { margin: 0 0 .3rem; }
.teaser h2 a { color: var(--fg); text-decoration: none; }
.teaser h2 a:hover { color: var(--hot); }
.teaser .lead { margin: 0; }
.section-title { font-size: 1.2rem; padding: 0 0 .45rem; border-bottom: 2px solid #c0cee9; margin-bottom: 1rem; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; background: #fff; box-shadow: var(--shadow-sm); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 2rem; align-items: center; margin-bottom: 3rem; }
.hero-img { border-radius: var(--radius); border: 1px solid var(--line); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--accent-dark); margin: 0 0 .4rem; }
.lead { font-size: 1.1rem; color: #3a404b; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.cards li { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; background: linear-gradient(#fff, #f8f9fb);
  box-shadow: var(--shadow-sm); transition: box-shadow .15s, border-color .15s, transform .15s; }
.cards li:hover { border-color: var(--silver); box-shadow: var(--shadow); transform: translateY(-1px); }
/* The whole card is the link */
.cards a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.cards a { display: flex; gap: .5rem; align-items: center; color: var(--fg); text-decoration: none; }
.cards a:hover strong { color: var(--hot); }
.cards p { margin: .4rem 0 0; color: var(--muted); font-size: .92rem; }
.product-list, .news-list { list-style: none; margin: 0; padding: 0; }
.product-list a { display: flex; gap: .8rem; align-items: center; padding: .6rem .4rem; margin: 0 -.4rem; border-bottom: 1px solid var(--line); color: var(--fg); text-decoration: none; border-radius: 6px; }
.product-list a:hover { background: var(--soft); }
.product-list a:hover strong { color: var(--hot); }
.product-list li:last-child a { border-bottom: 0; }
.product-list img, .product-rows img, .product-head > img, .teaser img { box-shadow: 0 1px 4px rgba(30,45,70,.2); }
.product-list small { display: block; color: var(--muted); }
.news-list li { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.news-list time { display: block; }

/* Product pages and lists */
.product-head { display: flex; gap: 1.6rem; align-items: flex-start; padding: 0 0 1.6rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.product-head h1 { margin-bottom: .4rem; }
.product-head .actions { margin-bottom: .6rem; }
.product-head > img { border-radius: var(--radius); flex: none; }
.version { color: var(--muted); font-weight: 400; font-size: .7em; }
.product-rows, .news-rows { list-style: none; margin: 0; padding: 0; }
.product-rows li, .news-rows li { display: flex; gap: 1.3rem; align-items: flex-start; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.product-rows li:first-child, .news-rows li:first-child { padding-top: .4rem; }
.product-rows h2 a, .news-rows h2 a { color: var(--fg); text-decoration: none; }
.product-rows h2 a:hover, .news-rows h2 a:hover { color: var(--hot); }
.product-rows img, .news-rows img { border-radius: 8px; flex: none; }
.product-rows h2, .news-rows h2 { font-size: 1.15rem; margin-bottom: .3rem; }
.news-rows p { margin: .2rem 0; }
.news-rows img { width: 80px; height: auto; object-fit: contain; }

/* Feature and FAQ pages: content plus a side menu */
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 2.5rem; align-items: start; }
.sidebar { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1rem 1rem; background: var(--soft); position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow: auto; }
/* The menu bar's silver-blue band as the box header */
.sidebar-title, .sidebar > .search { margin: 0 -1rem .8rem; padding: .7rem 1rem; background: linear-gradient(#fdfdfd, #efeeec 30%, #e8e4e3 46%, #c0cee9 54%, #d3dbe6 75%, #e8e9eb);
  border-bottom: 1px solid #c9ced8; border-radius: var(--radius) var(--radius) 0 0; }
.sidebar-title a { display: flex; gap: .6rem; align-items: center; font-weight: 700; color: var(--fg); text-decoration: none; }
.sidebar-title img { border-radius: 6px; }
.sidebar > .search label { color: var(--fg); font-weight: 600; }
.sidebar ul { list-style: none; margin: .3rem 0 .6rem; padding: 0 0 0 .4rem; }
.sidebar li { margin: .15rem 0; display: flex; align-items: center; gap: .3rem; }
.sidebar li a { flex: 1; }
.sidebar li a { display: block; padding: .25rem .5rem; border-radius: 6px; }
.sidebar a { color: var(--fg); text-decoration: none; font-size: .95rem; }
.sidebar a:hover { color: var(--accent-dark); background: #fff; }
.sidebar a[aria-current] { color: var(--accent-dark); font-weight: 600; background: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.sidebar summary { cursor: pointer; font-weight: 600; padding: .3rem 0; }
.crumbs { font-size: .9rem; color: var(--muted); margin: 0 0 .4rem; }
.badge { display: inline-block; background: var(--accent); color: #fff; border-radius: 4px; font-size: .7rem; padding: .05rem .35rem; vertical-align: middle; font-weight: 700; }
details.faq { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 .7rem; background: #fff; box-shadow: var(--shadow-sm); transition: border-color .15s; }
details.faq:hover, details.faq[open] { border-color: var(--silver); }
details.faq summary { cursor: pointer; padding: .85rem 2.6rem .85rem 1rem; font-weight: 600; list-style: none; position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: ""; position: absolute; right: 1.1rem; top: 50%; width: .5rem; height: .5rem; margin-top: -.35rem;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s; }
details.faq[open] summary::after { transform: rotate(-135deg); margin-top: -.1rem; }
details.faq[open] summary { border-bottom: 1px solid var(--line); color: var(--accent-dark); }
details.faq .prose { padding: .2rem 1rem .6rem; }

/* Old HTML content */
.prose { max-width: 78ch; }
.prose h2 { margin-top: 1.8rem; }
.prose h3 { margin-top: 1.4rem; }
.prose li { margin: .25rem 0; }
.with-sidebar .prose { max-width: none; }
.prose img { border-radius: 6px; }
.prose p img:only-child, .prose > img { display: block; margin: 1rem 0; }
.prose table { border-collapse: collapse; margin: 1rem 0; }
.prose td, .prose th { border: 1px solid var(--line); padding: .45rem .7rem; }
.prose th { background: var(--soft); text-align: left; }
.prose td code { white-space: nowrap; }
.prose dl.terms dt { font-weight: 700; margin-top: 1.2rem; }
.prose dl.terms dd { margin: .3rem 0 0; }
.prose ul { padding-left: 1.3rem; }
.prose::after { content: ""; display: block; clear: both; }

/* Customer portal and admin panel */
.block { display: block; }
.break { overflow-wrap: anywhere; }
code { font: .9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--soft); padding: .1rem .3rem; border-radius: 4px; }
.auth { max-width: 440px; }
.auth h1, .narrow > h1 { margin-bottom: .8rem; }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 2.5rem; align-items: start; }
.contact .form { max-width: 600px; }
.contact aside { border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); padding: 1.2rem 1.3rem; }
.contact aside h2 { font-size: 1.05rem; margin: 0 0 .3rem; }
.contact aside p { margin: 0 0 1.1rem; font-size: .95rem; color: var(--muted); }
.contact aside p:last-child { margin: 0; }
.portal { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.portal-nav { display: flex; flex-direction: column; gap: .15rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); padding: 1rem; position: sticky; top: 1rem; }
.portal-nav a[aria-current] { box-shadow: inset 3px 0 0 var(--accent); }
.portal-nav a, .linklike { color: var(--fg); text-decoration: none; padding: .35rem .5rem; border-radius: 6px; }
.portal-nav a:hover, .portal-nav a[aria-current] { background: #fff; color: var(--accent-dark); font-weight: 600; }
.portal-me { margin: 0 0 .6rem; font-weight: 700; padding: 0 .5rem; overflow-wrap: anywhere; }
.portal-me small { display: block; font-weight: 400; color: var(--muted); }
.linklike, .linklike:hover, .linklike:active { background: none; border: 0; box-shadow: none; font: inherit; font-weight: 400; text-align: left; width: 100%; cursor: pointer; color: var(--muted); margin: .4rem 0 0; }
.linklike:hover { color: var(--accent-dark); background: #fff; }
.portal-main h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.table-wrap { overflow-x: auto; margin: 0 0 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); }
.table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.table th, .table td { text-align: left; padding: .55rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { background: var(--soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #f8fafd; }
.table tfoot th, .table tfoot td { border-top: 2px solid var(--line); border-bottom: 0; }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tag { display: inline-block; font-size: .8rem; padding: .1rem .5rem; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.tag.ok { background: #edf8f1; border-color: #a6d8b8; color: var(--ok); }
.tag.off { background: #fdf0ee; border-color: #f1b5ae; color: var(--err); }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .4rem 1.2rem; margin: 0 0 1.5rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.plain-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.plain-list li { padding: .45rem 0; border-bottom: 1px solid var(--line); }
.downloads { list-style: none; margin: 0 0 .8rem; padding: 0; }
.downloads form { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 .6rem; }
button[disabled] { opacity: .5; cursor: not-allowed; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form .check { display: flex; gap: .5rem; align-items: center; font-weight: 400; }
.form .check input { width: auto; }
select { width: auto; }
.form select { width: 100%; }
.narrow-form, .portal-main .form { max-width: 560px; }

/* Admin panel: denser, full width */
body.admin { font-size: 15px; background: #fafbfc; }
.admin-header { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; padding: .6rem 16px; background: linear-gradient(#2a3a52, #1d2838); border-bottom: 3px solid var(--silver); color: #fff; }
.admin-header .logo { color: #fff; font-size: 1.05rem; font-weight: 700; }
.admin-header nav { display: flex; flex-wrap: wrap; gap: .1rem .3rem; flex: 1; }
.admin-header a { color: #d9dde3; text-decoration: none; padding: .3rem .5rem; border-radius: 6px; }
.admin-header a:hover, .admin-header a[aria-current] { background: rgba(255,255,255,.12); color: #fff; }
.admin-me { display: flex; gap: .4rem; align-items: center; }
.admin-me .linklike { color: #aab1bc; margin: 0; padding: .3rem .5rem; }
.admin-me .linklike:hover { background: rgba(255,255,255,.12); color: #fff; }
.admin-main { padding: 1.5rem 16px 3rem; max-width: 1280px; margin: 0 auto; width: 100%; flex: 1; }
.admin-main h1 { font-size: 1.6rem; }
.admin-main section { margin: 2rem 0; }
.admin-main .table-wrap { background: #fff; }
.admin-auth { margin: 4rem auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 2rem 2.2rem 2.2rem; }
.stats { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .8rem; }
.stats li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; color: var(--muted); box-shadow: var(--shadow-sm); }
.stats a { color: inherit; text-decoration: none; display: block; }
.stats strong { display: block; font-size: 1.5rem; color: var(--fg); }
.pager { display: flex; gap: 1rem; align-items: center; margin: .6rem 0; color: var(--muted); }
.small { font-size: .85rem; }
.wide-form { max-width: 900px; }
.inline-form { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: end; max-width: none; }
.inline-form > div { flex: 1 1 200px; }
.inline-form label { margin-top: 0; }
textarea.code { font: .85rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.danger, .linklike.danger { color: var(--err); }
.danger-zone { margin: 2rem 0; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; gap: .8rem; align-items: center; }
.danger-zone .check { display: flex; gap: .4rem; align-items: center; }
.danger-zone .linklike { width: auto; margin: 0; }
.indent { display: inline-block; width: 1.5rem; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-main .panel + .panel { margin-top: 1rem; }
.message-body { white-space: pre-wrap; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; overflow-wrap: anywhere; max-width: 78ch; }
.select-all { user-select: all; }
.form select { max-width: 100%; }
.search select { width: auto; }

@media (max-width: 820px) {
  .hero, .with-sidebar, .contact { grid-template-columns: 1fr; }
  main.sheet { margin: 1rem 16px 1.5rem; padding: 1.5rem 1.25rem 2rem; }
  .sidebar { position: static; max-height: none; }
  .tagline { font-size: .9rem; }
  .menubar a { padding: .55rem .75rem; }
  .product-head { flex-direction: column; }
  .float-right { float: none; max-width: 100%; margin: 1rem 0; }
  .portal { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .portal-nav { position: static; flex-direction: row; flex-wrap: wrap; padding: .6rem; }
  .portal-me { flex-basis: 100%; }
  .linklike { width: auto; margin: 0; }
  .form .row { grid-template-columns: 1fr; }
  .downloads form { flex-direction: column; align-items: stretch; }
}

/* Phones: the banner picture on top, the text below it on the banner's blue */
@media (max-width: 680px) {
  .banner { display: block; aspect-ratio: auto; background-size: 100% auto; background-position: left top; padding-top: 34.1%; }
  .banner-text { width: auto; background: linear-gradient(#5b6c90, #46557a); padding: 1.1rem 1.2rem 1.3rem; }
  .tagline { display: none; }
  .prose table { display: block; overflow-x: auto; }
  /* All menu items stay visible: two rows instead of a hidden scroll */
  .menubar .wrap { flex-wrap: wrap; overflow: visible; padding: 0 8px; }
  .menubar a, .menubar a:first-child { padding: .45rem .65rem; }
  .teaser { flex-direction: column; align-items: flex-start; }
  main.sheet { margin: 0; border-width: 0 0 1px; border-radius: 0; box-shadow: none; padding: 1.5rem 16px 2rem; }
  .product-rows li, .news-rows li { gap: 1rem; }
  .product-rows img, .news-rows img { width: 56px; height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
