/* icehockeyapi.com: pricing, sign-in, the account area and the documentation, as approved in the phase 2 preview.
   Loaded on those pages only, after site.css; every class here is prefixed by its page (pr-, au-, ac-, dc-) or ui-. */

/* ---------- shared ---------- */
.ui-kw { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); font-weight: 500; margin: 0; line-height: 1.4; }
.ui-big { display: block; font-size: 40px; line-height: 1.1; letter-spacing: -.03em; font-weight: 500; margin-top: 8px; color: var(--ink); }
.ui-mono { font: 500 12.5px "JetBrains Mono", monospace; }
.ui-num { font-variant-numeric: tabular-nums; }
.ui-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: var(--r); font-size: 12px; white-space: nowrap; background: var(--ice); color: var(--muted); }
a.ui-chip:hover { color: var(--blue); }
.ui-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.ui-d-free { background: var(--green); }
.ui-d-paid { background: var(--blue); }
.ui-d-odds { background: #C98A12; }
.ui-d-live { background: var(--red); }
.ui-period { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); padding: 3px; background: #fff; flex: none; }
.ui-period button { height: 34px; min-width: 180px; border: 0; background: none; border-radius: var(--r); font: 500 13.5px Inter, sans-serif; color: var(--muted); cursor: pointer; white-space: nowrap; }
.ui-period button.on { background: var(--ink); color: #fff; }
.ui-scrim { position: fixed; inset: 0; background: rgba(11, 31, 58, .45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.ui-scrim[hidden] { display: none; }
.ui-modal { width: 100%; max-width: 480px; background: #fff; border-radius: var(--r); box-shadow: 0 30px 80px rgba(11, 31, 58, .3); overflow: hidden; }
.ui-mh { padding: 20px 24px; border-bottom: 1px solid var(--line); }
.ui-mh h3 { font-size: 18px; font-weight: 500; }
.ui-mh p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.ui-mb { padding: 20px 24px; font-size: 14px; color: var(--text); }
.ui-sum { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--ice); }
.ui-sum span:last-child { color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }
.ui-tick { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 13.5px; cursor: pointer; }
.ui-tick input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--blue); flex: none; }
.ui-tick a, .ui-small a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.ui-small { color: var(--muted); font-size: 12.5px; margin-top: 12px; }
.ui-small:empty { display: none; }
.ui-mf { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 12px; background: var(--ice); }
.ui-field { display: block; font-size: 13px; font-weight: 500; }
.ui-field input { display: block; width: 100%; height: 42px; margin-top: 6px; border: 1px solid var(--line); border-radius: var(--r); padding: 0 12px; font: 14px Inter, sans-serif; }
.ui-field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px #E6EEF9; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- pricing ---------- */
.pr-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--ice) 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.pr-hero::before { content: ""; position: absolute; inset: -40px; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 40px 40px; opacity: .45; animation: pr-drift 30s linear infinite; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
@keyframes pr-drift { to { transform: translate(40px, 40px); } }
.pr-hero .wrap { position: relative; padding-top: 52px; padding-bottom: 44px; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 40px; align-items: center; }
.pr-lead { color: var(--text); font-size: 16.5px; margin-top: 14px; max-width: 600px; }
.pr-ctas { display: flex; gap: 12px; margin-top: 22px; }
.pr-ticker { border: 1px solid var(--line); border-radius: var(--r); background: #fff; box-shadow: 0 10px 30px rgba(11, 31, 58, .06); overflow: hidden; }
.pr-th { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.pr-th span:last-child { display: inline-flex; align-items: center; gap: 6px; }
.pr-th span.on { color: var(--red); }
.pr-th span.on::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pr-pulse 1.6s ease-in-out infinite; }
@keyframes pr-pulse { 50% { opacity: .25; } }
.pr-trow { display: grid; grid-template-columns: minmax(0, 1fr) 52px 54px; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--ice); font-size: 14px; animation: pr-in .5s ease-out both; }
.pr-trow:last-child { border-bottom: 0; }
@keyframes pr-in { from { opacity: 0; transform: translateY(6px); } }
.pr-trow > div:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-trow > div:first-child span { color: var(--muted); }
.pr-trow small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.pr-sc { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pr-when { text-align: right; font-size: 12px; color: var(--muted); white-space: nowrap; }
.pr-when.on { color: var(--red); }
.pr-quiet { padding: 18px 16px; color: var(--muted); font-size: 14px; }
.pr-sec { padding: 56px 0; }
.pr-sec + .pr-sec { border-top: 1px solid var(--line); }
.pr-sh { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; }
.pr-sh h2 { font-size: 26px; font-weight: 500; letter-spacing: -.02em; }
.pr-sh p { color: var(--text); margin-top: 6px; max-width: 640px; }
.pr-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.pr-plan { border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 24px; display: flex; flex-direction: column; position: relative; scroll-margin-top: 90px; }
.pr-plan.best { border-color: var(--blue); box-shadow: 0 0 0 3px #E6EEF9; }
.pr-tag { position: absolute; top: -12px; left: 24px; height: 24px; padding: 0 10px; border-radius: var(--r); background: var(--blue); color: #fff; font-size: 12px; display: inline-flex; align-items: center; }
.pr-plan h3 { font-size: 18px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.pr-bl { color: var(--text); font-size: 14px; margin-top: 6px; min-height: 44px; }
.pr-price { margin-top: 16px; display: flex; align-items: baseline; gap: 6px; }
.pr-price b { font-size: 38px; font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pr-price span { color: var(--muted); font-size: 14px; }
.pr-note { color: var(--muted); font-size: 12.5px; height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-plan .btn { width: 100%; min-width: 0; margin-top: 18px; }
.pr-plan ul { list-style: none; padding: 0; margin-top: 20px; font-size: 14px; color: var(--text); flex: 1; }
.pr-plan li { display: flex; gap: 9px; padding: 7px 0; border-top: 1px solid var(--ice); }
.pr-plan li::before { content: "✓"; color: var(--green); flex: none; }
.pr-plan li.no { color: #9AA7B6; }
.pr-plan li.no::before { content: "×"; color: #B9C3CF; }
.pr-charge { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; font-size: 13.5px; color: var(--muted); text-align: center; }
.pr-charge code { font: 500 12.5px "JetBrains Mono", monospace; color: var(--ink); background: var(--ice); border-radius: var(--r); padding: 4px 8px; }
.pr-charge a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.pr-fresh { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pr-f { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; background: #fff; }
.pr-ev { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pr-ev b { font-size: 28px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pr-f h3 { font-size: 15px; font-weight: 500; margin-top: 8px; }
.pr-f p { color: var(--text); font-size: 13.5px; margin-top: 4px; }
.pr-bar { height: 6px; border-radius: 6px; background: var(--ice); margin-top: 14px; overflow: hidden; }
.pr-bar i { display: block; height: 100%; border-radius: 6px; background: var(--blue); animation: pr-fill 6s linear infinite; }
@keyframes pr-fill { from { width: 0; } to { width: 100%; } }
.pr-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.pr-stats div { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.pr-stats b { font-size: 30px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; display: block; }
.pr-stats span { color: var(--muted); font-size: 13.5px; }
.pr-cmp { width: 100%; border-collapse: collapse; font-size: 14px; }
.pr-cmp th, .pr-cmp td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.pr-cmp th { font-weight: 500; color: var(--ink); background: #fff; position: sticky; top: 64px; }
.pr-cmp td:first-child, .pr-cmp th:first-child { text-align: left; color: var(--text); white-space: normal; }
.pr-grp td { background: var(--ice); color: var(--blue); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; text-align: left; }
.pr-y { color: var(--green); }
.pr-n { color: #B9C3CF; }
.pr-qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pr-qa div { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.pr-qa h3 { font-weight: 500; font-size: 15px; }
.pr-qa p { color: var(--text); font-size: 14px; margin-top: 6px; }
.pr-qa a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- sign in ---------- */
.au { min-height: 640px; display: grid; grid-template-columns: 1fr 1fr; }
.au-side { background: linear-gradient(160deg, var(--ink) 0%, #12305A 100%); color: #fff; padding: 64px 56px; position: relative; overflow: hidden; }
.au-side::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 260px; border: 3px solid rgba(124, 180, 245, .25); border-radius: 120px; }
.au-side .ui-kw { color: var(--sky); }
.au-side .ui-big { color: #fff; font-size: 34px; }
.au-side p { color: #C9D8EA; margin-top: 14px; max-width: 420px; }
.au-side ul { list-style: none; padding: 0; margin-top: 28px; color: #DCE7F4; font-size: 14.5px; }
.au-side li { display: flex; gap: 10px; padding: 8px 0; }
.au-side li::before { content: "✓"; color: var(--sky); }
.au-main { display: grid; place-items: center; padding: 48px 16px; }
.au-card { width: 100%; max-width: 400px; }
.au-card h1 { font-size: 24px; font-weight: 500; letter-spacing: -.02em; margin: 0; }
.au-lead { color: var(--muted); margin-top: 6px; font-size: 14px; }
.au-error { margin-top: 16px; border: 1px solid #F3C2C9; background: #FDE8EB; color: #9E1C2D; border-radius: var(--r); padding: 10px 14px; font-size: 13.5px; }
.au-gbox { display: none; margin-top: 18px; min-height: 44px; }
.g-ready .au-gbox { display: flex; justify-content: center; }
.g-ready .au-google { display: none; }
.au-google { margin-top: 18px; width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 22px; background: #fff; display: flex; align-items: center; justify-content: center; gap: 10px; font: 500 14.5px Inter, sans-serif; color: var(--ink); }
.au-google:hover { border-color: var(--blue); }
.au-google svg { width: 18px; height: 18px; }
.au-fine { color: var(--muted); font-size: 12.5px; margin-top: 16px; text-align: center; }

/* ---------- account ---------- */
.ac { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 720px; }
.ac-nav { background: var(--ink); color: #C9D8EA; padding: 22px 12px; }
.ac-who { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; border-bottom: 1px solid rgba(255, 255, 255, .1); margin-bottom: 12px; }
.ac-who i { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 13px; flex: none; }
.ac-who div { min-width: 0; }
.ac-who b { display: block; color: #fff; font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-who span { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.ac-nav a, .ac-nav button { display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 12px; border-radius: var(--r); font: 14px Inter, sans-serif; white-space: nowrap; color: inherit; background: none; border: 0; cursor: pointer; }
.ac-nav svg { width: 17px; height: 17px; flex: none; opacity: .8; }
.ac-nav a:hover, .ac-nav button:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.ac-nav a.on { background: #fff; color: var(--ink); }
.ac-sep { height: 1px; background: rgba(255, 255, 255, .1); margin: 12px 0; }
.ac-main { background: #FAFCFE; padding: 28px 32px 56px; min-width: 0; }
.ac-notice { border: 1px solid #BFD4EE; background: #F2F7FD; color: var(--ink); border-radius: var(--r); padding: 12px 16px; font-size: 14px; margin-bottom: 16px; }
.ac-notice.bad { border-color: #F3C2C9; background: #FDE8EB; color: #9E1C2D; }
.ac-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.ac-head h1 { font-size: 26px; font-weight: 500; letter-spacing: -.02em; margin: 0; }
.ac-head p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.ac-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ac-card { border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 20px; display: flex; flex-direction: column; }
.ac-lbl { color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ac-v { font-size: 28px; font-weight: 500; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.ac-v small { font-size: 14px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.ac-sub { color: var(--text); font-size: 13.5px; margin-top: 4px; flex: 1; }
.ac-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.ac-btns .btn { min-width: 0; width: 100%; height: 36px; font-size: 13.5px; }
.ac-meter { height: 8px; border-radius: 8px; background: var(--ice); margin-top: 12px; overflow: hidden; }
.ac-meter i { display: block; height: 100%; background: var(--blue); }
.ac-keybox { display: flex; align-items: center; gap: 8px; margin-top: 10px; border: 1px solid var(--line); border-radius: var(--r); padding: 0 6px 0 12px; height: 40px; background: var(--ice); }
.ac-keybox code { flex: 1; font: 500 12.5px "JetBrains Mono", monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-copy { height: 30px; min-width: 64px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; font: 500 12.5px Inter, sans-serif; cursor: pointer; }
.ac-st { display: inline-flex; justify-content: center; align-items: center; min-width: 84px; height: 24px; border-radius: var(--r); font-size: 12px; }
.ac-st.ok { background: #E6F4EC; color: var(--green); }
.ac-st.off { background: var(--ice); color: var(--muted); }
.ac-st.bad { background: #FDE8EB; color: var(--red); }
.ac-two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.ac-panel { border: 1px solid var(--line); border-radius: var(--r); background: #fff; margin-bottom: 16px; }
.ac-two .ac-panel { margin-bottom: 0; }
.ac-ph { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.ac-ph h2 { font-size: 15.5px; font-weight: 500; }
.ac-ph a { color: var(--blue); font-size: 13.5px; }
.ac-ph2 { border-top: 1px solid var(--line); }
.ac-empty { padding: 18px 20px; color: var(--muted); font-size: 14px; }
.ac-day { padding: 10px 20px 4px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--ice); border-bottom: 1px solid var(--line); }
.ac-log { display: grid; grid-template-columns: 52px 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 20px; border-bottom: 1px solid var(--ice); font-size: 14px; }
.ac-t { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.ac-i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: #E6EEF9; color: var(--blue); }
.ac-i.ok { background: #E6F4EC; color: var(--green); }
.ac-i.bad { background: #FDE8EB; color: var(--red); }
.ac-m { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-m.bad { color: var(--red); }
.ac-r { color: var(--muted); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ac-bars { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding: 20px; }
.ac-bars i { flex: 1; background: #CFE0F5; border-radius: 4px 4px 0 0; }
.ac-bars i.now { background: var(--blue); }
.ac-barsx { display: flex; justify-content: space-between; padding: 0 20px 14px; color: var(--muted); font-size: 12px; }
.ac-ep { display: grid; grid-template-columns: minmax(0, 1fr) 80px; gap: 10px; padding: 10px 20px; border-bottom: 1px solid var(--ice); font-size: 13.5px; }
.ac-ep code { font: 500 12.5px "JetBrains Mono", monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-ep span { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
.ac-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ac-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12.5px; padding: 12px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ac-table td { padding: 14px 20px; border-bottom: 1px solid var(--ice); white-space: nowrap; vertical-align: middle; }
.ac-table tr:hover td { background: #FAFCFE; }
.ac-table .r { text-align: right; }
.ac-acts { width: 1%; text-align: right; }
.ac-acts .btn { min-width: 92px; height: 32px; font-size: 13px; padding: 0 10px; }
.ac-acts .btn + .btn { margin-left: 8px; }
.ac-spark { display: inline-block; width: 70px; height: 20px; vertical-align: middle; }
.ac-newkey { border: 1px solid #BFD4EE; background: #F2F7FD; border-radius: var(--r); padding: 18px 20px; margin-bottom: 16px; }
.ac-newkey h2 { font-size: 15px; font-weight: 500; }
.ac-newkey p { font-size: 13.5px; color: var(--text); margin-top: 4px; }
.ac-newkey .ac-keybox { background: #fff; margin-top: 12px; }
.ac-try code { font: 12px "JetBrains Mono", monospace; word-break: break-all; }
.ac-foot { padding: 14px 20px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); background: var(--ice); border-radius: 0 0 var(--r) var(--r); }
.ac-foot a { color: var(--blue); }
.ac-bill { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 20px; }
.ac-opt { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; }
.ac-opt.cur { border-color: var(--blue); background: #F2F7FD; }
.ac-on { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.ac-pp { font-size: 22px; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.ac-pp small { font-size: 13px; color: var(--muted); }
.ac-opt p { color: var(--text); font-size: 13px; margin-top: 4px; flex: 1; }
.ac-opt .btn { width: 100%; min-width: 0; height: 36px; margin-top: 12px; font-size: 13.5px; }
.ac-kv { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px 16px; padding: 18px 20px; font-size: 14px; }
.ac-kv span:nth-child(odd) { color: var(--muted); }
.ac-cardrow { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-top: 1px solid var(--ice); }
.ac-cardrow div { flex: 1; font-size: 14px; }
.ac-cardrow small { display: block; color: var(--muted); font-size: 12.5px; }
.ac-cardrow .btn { min-width: 130px; }
.ac-danger { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; margin-top: 16px; }
.ac-danger h2 { font-size: 15.5px; font-weight: 500; }
.ac-danger p { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.ac-danger .btn { min-width: 170px; }
.ac-list { padding-left: 18px; }
.ac-list li { margin-top: 6px; }

/* ---------- documentation ---------- */
.dc { display: grid; grid-template-columns: 272px minmax(0, 1fr); }
.dc-menu { position: sticky; top: 64px; height: calc(100vh - 64px); border-right: 1px solid var(--line); display: flex; flex-direction: column; background: #fff; }
.dc-search { padding: 16px; border-bottom: 1px solid var(--line); position: relative; }
.dc-search input { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: var(--r); padding: 0 34px 0 36px; font: 14px Inter, sans-serif; background: var(--ice); }
.dc-search input:focus { outline: none; border-color: var(--blue); background: #fff; }
.dc-search > svg { position: absolute; left: 28px; top: 28px; width: 16px; height: 16px; color: var(--muted); }
.dc-search kbd { position: absolute; right: 26px; top: 26px; font: 11px "JetBrains Mono", monospace; border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: var(--muted); background: #fff; }
.dc-res { position: absolute; left: 16px; width: min(420px, calc(100vw - 32px)); top: 62px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 16px 40px rgba(11, 31, 58, .14); z-index: 6; padding: 6px 0; max-height: 70vh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--blue) transparent; }
.dc-res h3 { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 8px 14px 4px; }
.dc-res a { display: flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: 13.5px; }
.dc-res a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-res a.sel { background: #F2F7FD; }
.dc-res a small { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.dc-res mark { background: #FFF1C2; color: inherit; border-radius: 3px; }
.dc-none { padding: 10px 14px; color: var(--muted); font-size: 13.5px; }
.dc-scroll { flex: 1; overflow-y: auto; padding: 8px 0 24px; scrollbar-width: thin; scrollbar-color: var(--blue) transparent; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18px, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 18px, #000 calc(100% - 28px), transparent 100%); }
.dc-scroll::-webkit-scrollbar, .dc-code::-webkit-scrollbar, .dc-json::-webkit-scrollbar, .dc-prose pre::-webkit-scrollbar { width: 6px; height: 6px; }
.dc-scroll::-webkit-scrollbar-thumb, .dc-code::-webkit-scrollbar-thumb, .dc-json::-webkit-scrollbar-thumb, .dc-prose pre::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 6px; }
.dc-scroll h2 { font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 16px 20px 6px; }
.dc-scroll a { display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 20px; font-size: 13.5px; color: var(--text); border-left: 3px solid transparent; white-space: nowrap; overflow: hidden; }
.dc-scroll a:hover { color: var(--blue); }
.dc-scroll a.on { border-left-color: var(--red); background: #F2F7FD; color: var(--ink); }
.dc-page { padding: 36px 48px 72px; min-width: 0; max-width: 1040px; }
.dc-404 { padding: 64px 16px; }
.dc-404 a { color: var(--blue); }
.dc-crumb { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.dc-crumb a { color: var(--blue); }
.dc-big { font-size: 32px; word-break: break-word; }
.dc-lead { color: var(--text); font-size: 15.5px; margin-top: 12px; max-width: 780px; }
.dc-page > h2 { font-size: 21px; font-weight: 500; letter-spacing: -.015em; margin-top: 44px; }
.dc-page > h2 + p { color: var(--text); margin-top: 6px; font-size: 14.5px; }
.dc-page > h2 + p a { color: var(--blue); }
.dc-chips { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.dc-start, .dc-rest { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.dc-start > div, .dc-rest > div, .dc-subj > div, .dc-ag > div, .dc-plans > div, .dc-faq > div { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; }
.dc-start i { width: 30px; height: 30px; border-radius: var(--r); background: #E6EEF9; color: var(--blue); display: grid; place-items: center; font-style: normal; font-size: 14px; }
.dc-start h3, .dc-rest h3, .dc-subj h3, .dc-ag h3, .dc-plans h3, .dc-faq h3 { font-weight: 500; font-size: 15px; margin-top: 10px; display: flex; align-items: center; gap: 8px; }
.dc-subj h3, .dc-ag h3, .dc-plans h3, .dc-faq h3, .dc-rest h3 { margin-top: 0; }
.dc-start p, .dc-rest p, .dc-subj p, .dc-ag p, .dc-plans p, .dc-faq p { color: var(--text); font-size: 13.5px; margin-top: 4px; flex: 1; }
.dc-faq p a, .dc-rest a, .dc-news a { color: var(--blue); }
.dc-rest a { margin-top: 10px; font-size: 13.5px; }
.dc-start .btn { margin-top: 12px; width: 100%; min-width: 0; height: 36px; font-size: 13.5px; }
.dc-subj, .dc-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.dc-eps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dc-eps a { font: 500 12px "JetBrains Mono", monospace; background: var(--ice); border-radius: var(--r); padding: 4px 8px; color: var(--ink); }
.dc-eps a:hover, .dc-more { color: var(--blue); }
.dc-more { margin-top: 10px; font-size: 13.5px; }
.dc-legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin-top: 10px; flex-wrap: wrap; }
.dc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dc-group { border: 1px solid var(--line); border-radius: var(--r); margin-top: 14px; overflow: hidden; }
.dc-gh { padding: 12px 16px; background: var(--ice); display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.dc-gh span { color: var(--muted); font-size: 13px; text-align: right; }
.dc-row { display: grid; grid-template-columns: 14px 340px minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 16px; border-top: 1px solid var(--ice); font-size: 13.5px; }
.dc-group .dc-row:first-child { border-top: 0; }
.dc-row:hover { background: #FAFCFE; }
.dc-row code { font: 500 12.5px "JetBrains Mono", monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-row code em { color: var(--muted); font-style: normal; margin-right: 6px; }
.dc-row span { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-ag, .dc-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.dc-ag code { display: block; font: 500 11.5px "JetBrains Mono", monospace; background: var(--ice); border-radius: var(--r); padding: 7px 8px; margin-top: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-agb { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.dc-agb a, .dc-agb button, .dc-call button, .dc-kb button, .dc-kb a, .dc-copy { height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r); background: #fff; font: 500 12.5px Inter, sans-serif; color: var(--ink); cursor: pointer; white-space: nowrap; }
.dc-agb a:hover, .dc-agb button:hover, .dc-kb a:hover, .dc-kb button:hover { border-color: var(--blue); color: var(--blue); }
.dc-plans span { color: var(--muted); font-size: 12.5px; margin-top: 10px; }
.dc-news > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ice); font-size: 14px; }
.dc-news > div span:first-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.dc-news > a { display: inline-block; margin-top: 10px; font-size: 13.5px; }
.dc-news code, .dc-prose code, .dc-table code { font: 500 12.5px "JetBrains Mono", monospace; background: var(--ice); border-radius: 6px; padding: 1px 6px; }
.dc-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 48px; }
.dc-pn a { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; font-size: 14px; }
.dc-pn a:hover { border-color: var(--blue); }
.dc-pn a small { display: block; color: var(--muted); font-size: 12px; }
.dc-pn a:last-child { text-align: right; }
.dc-call { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: var(--r); height: 46px; padding: 0 6px 0 14px; margin-top: 18px; background: #fff; }
.dc-call span { font: 500 12px "JetBrains Mono", monospace; background: #E6F4EC; color: var(--green); border-radius: 6px; padding: 3px 8px; }
.dc-call code { flex: 1; font: 500 13.5px "JetBrains Mono", monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-call button { min-width: 76px; }
.dc-try { border: 1px solid var(--line); border-radius: var(--r); margin-top: 18px; overflow: hidden; }
.dc-key { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 14px 16px; background: var(--ice); border-bottom: 1px solid var(--line); font-size: 13.5px; }
.dc-key input { height: 38px; border: 1px solid var(--line); border-radius: var(--r); padding: 0 12px; font: 500 12.5px "JetBrains Mono", monospace; width: 100%; background: #fff; }
.dc-kb { display: grid; grid-template-columns: repeat(3, 84px); gap: 8px; }
.dc-kb button, .dc-kb a { height: 38px; }
.dc-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 16px; }
.dc-form label span { display: block; font: 500 12px "JetBrains Mono", monospace; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-form label em { color: var(--muted); font: 11px Inter, sans-serif; margin-left: 6px; font-style: normal; }
.dc-form input, .dc-form select { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: var(--r); padding: 0 10px; font: 13.5px Inter, sans-serif; background: #fff; }
.dc-form input:focus, .dc-form select:focus, .dc-key input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px #E6EEF9; }
.dc-run { display: flex; align-items: center; gap: 12px; padding: 0 16px 16px; }
.dc-run code { flex: 1; font: 500 12.5px "JetBrains Mono", monospace; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-run .btn { min-width: 120px; }
.dc-codehead { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding: 8px 12px 8px 8px; background: #fff; }
.dc-tabs { display: flex; gap: 4px; }
.dc-tabs button { height: 32px; min-width: 96px; border: 0; background: none; border-radius: var(--r); font: 500 13px Inter, sans-serif; color: var(--muted); cursor: pointer; }
.dc-tabs button.on { background: var(--ice); color: var(--ink); }
.dc-copy { min-width: 76px; }
.dc-code, .dc-json, .dc-prose pre { margin: 0; background: #0E2340; color: #DCE7F4; font: 12.5px/1.65 "JetBrains Mono", monospace; padding: 16px 18px; overflow-x: auto; white-space: pre; scrollbar-width: thin; scrollbar-color: var(--sky) transparent; }
.dc-json { max-height: 520px; overflow-y: auto; }
.dc-k { color: #7CB4F5; }
.dc-s { color: #9FE0B8; }
.dc-n { color: #F6C67A; }
.dc-ah { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 10px 16px; background: #0B1D36; color: #9FB3CC; font-size: 12.5px; border-top: 1px solid #1B3557; }
.dc-ah .ok { color: #9FE0B8; }
.dc-ah .bad { color: #FF9AA8; }
.dc-ah a { color: #7CB4F5; text-decoration: underline; }
.dc-note { color: var(--muted); font-size: 13.5px; margin-top: 10px; }
.dc-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 12px; }
.dc-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12.5px; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); }
.dc-table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--ice); vertical-align: top; color: var(--text); }
.dc-table td:first-child { white-space: nowrap; }
.dc-ty { font: 12px "JetBrains Mono", monospace; color: var(--muted); white-space: nowrap; }
.dc-vals { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.dc-vals span { font: 11.5px "JetBrains Mono", monospace; background: var(--ice); border-radius: 6px; padding: 2px 6px; }
.dc-req { color: var(--red); font-size: 12px; }
.dc-errs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.dc-errs a { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; font: 500 13px "JetBrains Mono", monospace; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-errs a:hover { border-color: var(--blue); color: var(--blue); }
.dc-prose { max-width: 820px; margin-top: 18px; color: var(--text); font-size: 15px; }
.dc-prose h2 { font-size: 21px; font-weight: 500; letter-spacing: -.015em; margin-top: 36px; color: var(--ink); scroll-margin-top: 90px; }
.dc-prose h3 { font-size: 16.5px; font-weight: 500; margin-top: 28px; color: var(--ink); scroll-margin-top: 90px; }
.dc-prose p, .dc-prose ul, .dc-prose ol, .dc-prose table, .dc-prose pre { margin-top: 12px; }
.dc-prose ul, .dc-prose ol { padding-left: 20px; }
.dc-prose li { margin-top: 6px; }
.dc-prose li::marker { color: var(--blue); }
.dc-prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.dc-prose pre { border-radius: var(--r); }
.dc-prose pre code { background: none; padding: 0; font-size: 12.5px; color: inherit; }
.dc-prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dc-prose th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12.5px; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); }
.dc-prose td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--ice); vertical-align: top; }
.dc-prose tr:target td { background: #FFF7E0; }

/* ---------- narrow screens ---------- */
@media (max-width: 1100px) {
  .pr-plans, .pr-fresh, .pr-stats, .dc-ag, .dc-plans, .ac-bill, .dc-errs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr-hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .dc-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dc-row { grid-template-columns: 14px 260px minmax(0, 1fr); }
}
@media (max-width: 1000px) {
  .dc { grid-template-columns: minmax(0, 1fr); }
  .dc-menu { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .dc-scroll { max-height: 260px; }
  .dc-page { padding: 28px 16px 56px; }
  .ac { grid-template-columns: minmax(0, 1fr); }
  .ac-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 12px; }
  .ac-who, .ac-sep { display: none; }
  .ac-nav a, .ac-nav button { justify-content: center; }
  .ac-main { padding: 22px 16px 48px; }
  .ac-cards, .ac-two { grid-template-columns: minmax(0, 1fr); }
  .au { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .au-side { padding: 40px 24px; }
  .pr-cmpwrap { overflow-x: auto; }
}
@media (max-width: 700px) {
  .pr-plans, .pr-fresh, .pr-stats, .pr-qa, .dc-start, .dc-subj, .dc-rest, .dc-faq, .dc-ag, .dc-plans, .ac-bill, .dc-errs, .dc-form { grid-template-columns: minmax(0, 1fr); }
  .ui-big { font-size: 30px; }
  .dc-big { font-size: 24px; }
  .pr-sh, .ac-head, .ac-danger { flex-direction: column; align-items: flex-start; }
  .pr-ctas { flex-direction: column; }
  .ui-period button { min-width: 0; padding: 0 12px; }
  .dc-row { grid-template-columns: 14px minmax(0, 1fr); }
  .dc-row span { grid-column: 2; }
  .dc-key { grid-template-columns: minmax(0, 1fr); }
  .dc-kb { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dc-tabs { flex: 1; }
  .dc-tabs button { min-width: 0; flex: 1; }
  .dc-news > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ac-table thead { display: none; }
  .ac-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 14px 16px; border-bottom: 1px solid var(--ice); }
  .ac-table td { padding: 0; border: 0; white-space: normal; }
  .ac-table .r { text-align: left; }
  .ac-table .ac-hide { display: none; }
  .ac-table td.ac-acts { grid-column: 1 / -1; width: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ac-table td.ac-acts:has(.btn:only-child) { grid-template-columns: minmax(0, 1fr); }
  .ac-acts .btn { width: 100%; min-width: 0; }
  .ac-acts .btn + .btn { margin-left: 0; }
  .ac-log { grid-template-columns: 22px minmax(0, 1fr); }
  .ac-t, .ac-r { display: none; }
  .ac-kv { grid-template-columns: 120px minmax(0, 1fr); }
  .dc-table .dc-in { display: none; }
  .dc-table td:first-child, .dc-prose td { word-break: break-word; }
  .dc-table td:first-child { white-space: normal; }
  .dc-prose table, .dc-table { font-size: 13px; }
  .dc-prose td code, .dc-table code { word-break: break-all; }
}
