/* Agent layout styles adapted from AIHOT at commit 91a1f497f6f6f4581f77de2a95e7e5b99eb4a15e.
 * https://github.com/KKKKhazix/AIHOT

MIT License

Copyright (c) 2026 数字生命卡兹克

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/

.access-document {
  --paper: #faf9f6;
  --sheet: #fff;
  --sidebar: #fdfdfb;
  --sunk: #f3f3ef;
  --ink: #202a30;
  --ink-secondary: #303c42;
  --muted: #59656b;
  --subtle: #657176;
  --line: #dfe4e1;
  --line-soft: #e9ede9;
  --line-strong: #d1d9d5;
  --accent: #176b75;
  --wash: rgba(23, 107, 117, .08);
  --selection: rgba(23, 107, 117, .05);
  --card-shadow: 0 1px 2px rgba(32, 42, 48, .025);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;
  font: 14px/1.5 system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.access-document h1, .access-document h2 { font-family: inherit; }
.access-shell { display: flex; min-height: 100dvh; }
.access-body { flex: 1; min-width: 0; padding: 24px 20px 72px; }
.access-sidebar {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  flex: none;
  flex-direction: column;
  width: 64px;
  height: 100dvh;
  padding: 20px 6px 14px;
  border-inline-end: 1px solid var(--line);
  background: var(--sidebar);
}
.access-brand { display: flex; height: 50px; flex: none; align-items: center; gap: 8px; margin-bottom: 16px; padding-inline: 4px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.access-brand strong { display: none; font-size: 23px; letter-spacing: -.05em; font-weight: 700; }
.access-sidebar nav { flex: 1; min-height: 0; overflow-y: auto; }
.access-sidebar nav a, .access-phone-tabs a { display: flex; align-items: center; color: var(--muted); text-decoration: none; }
.access-sidebar nav a { min-height: 48px; flex-direction: column; justify-content: center; gap: 3px; margin-bottom: 4px; padding: 5px 3px; border-radius: 8px; font-size: 10.5px; text-align: center; }
.access-sidebar nav a:hover, .access-phone-tabs a:hover { background: var(--sunk); color: var(--ink); }
.access-sidebar nav a[aria-current], .access-phone-tabs a[aria-current] { background: var(--wash); color: var(--accent); font-weight: 600; }
.access-sidebar-label { display: none; }
.access-sidebar-divider { margin: 10px 5px; border-top: 1px solid var(--line); }
.access-sidebar-end { padding-top: 8px; }
.access-sidebar-end small { display: none; padding: 10px 4px 0; color: var(--subtle); font-size: 10px; }
.access-document .access-sidebar-end .radar-more { position: relative; inset: auto; width: fit-content; margin-inline: auto; --menu-trigger: var(--ink-secondary); }
.access-document .access-sidebar-end .radar-more-trigger { min-height: 34px; padding-inline: 8px; border: 1px solid var(--line); background: transparent; color: var(--ink-secondary); box-shadow: none; font-size: 11px; }
.access-phone-bar, .access-phone-tabs { display: none; }
.access-glyph { flex: none; vertical-align: middle; }

.access-layout { display: grid; max-width: max(1100px, calc(200dvh - 236px)); gap: 32px; margin-inline: auto; padding-bottom: 56px; }
.access-main, .access-rail { min-width: 0; }
.access-hero { padding-top: 20px; }
.access-kicker { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; }
.access-kicker::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: currentColor; }
.access-hero h1 { margin: 16px 0 0; font-size: 32px; font-weight: 600; line-height: 1.3; letter-spacing: 0; }
.access-intro { max-width: 40em; margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.access-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; }
.access-facts span { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--line); border-radius: 100px; background: var(--sheet); color: var(--muted); font-size: 12px; }
.access-facts .access-fact-public { color: #2f7d5c; }
.access-fact-public::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.access-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 56px;
  margin-top: 24px;
  padding: 12px 16px;
  border: 1px solid rgba(184, 135, 58, .3);
  border-radius: 12px;
  background: rgba(184, 135, 58, .1);
  color: var(--ink-secondary);
  font-size: 13px;
  line-height: 1.6;
}
.access-notice > span { position: relative; padding-inline-start: 14px; }
.access-notice > span::before { position: absolute; top: 8px; inset-inline-start: 0; width: 6px; height: 6px; border-radius: 50%; background: #b8873a; content: ""; }
.access-notice strong { margin-inline-end: 6px; color: var(--ink); font-weight: 600; }
.access-notice a { flex: none; padding: 4px 10px; border: 1px solid rgba(184, 135, 58, .27); border-radius: 999px; background: var(--sheet); color: #7c5a24; text-decoration: none; }
.access-notice a:hover { border-color: #b8873a; }

.access-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 32px; scroll-margin-top: 62px; }
.access-method {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--sheet);
  color: var(--ink);
  box-shadow: var(--card-shadow);
  text-decoration: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.access-method:hover { border-color: var(--line-strong); box-shadow: 0 3px 12px rgba(32, 42, 48, .055); }
.access-method[aria-current] { border-color: rgba(23, 107, 117, .5); background: var(--selection); box-shadow: inset 0 0 0 1px var(--accent); }
.access-method-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.access-icon { display: grid; width: 36px; height: 36px; flex: none; place-items: center; border-radius: 8px; background: var(--sunk); color: var(--muted); }
.access-method[aria-current] .access-icon { background: var(--accent); color: #fff; }
.access-method-badge { display: inline-flex; align-items: center; min-height: 18px; padding: 0 8px; border-radius: 20px; background: var(--wash); color: var(--accent); font-size: 11px; font-weight: 500; text-align: center; }
.access-method strong { margin-top: 12px; font-size: 15.5px; font-weight: 600; }
.access-method-description { margin-top: 4px; color: var(--ink-secondary); font-size: 13px; line-height: 1.375; }
.access-method-tools { margin-top: 8px; color: var(--subtle); font-size: 12px; line-height: 1.375; }
.access-public-note { margin: 12px 0 0; color: var(--subtle); font-size: 12px; line-height: 1.75; }

.access-guide { margin-top: 36px; scroll-margin-top: 64px; }
.access-guide:focus-visible, .access-methods:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.access-guide-nav { display: flex; justify-content: space-between; gap: 12px; color: var(--subtle); font: 11.5px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.access-guide-nav a { color: var(--accent); font-family: system-ui, sans-serif; letter-spacing: 0; white-space: nowrap; }
.access-guide h2 { margin-top: 6px; font-size: 22px; font-weight: 600; line-height: 1.35; }
.access-guide p { margin: 6px 0 12px; }
.access-guide .access-lede { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.8; }
.access-rail { display: grid; align-self: start; gap: 16px; }
.access-rail-nav, .access-resources { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--sheet); box-shadow: var(--card-shadow); }
.access-rail-nav { display: none; }
.access-rail h2 { margin: 0 0 12px; font-size: 13px; font-weight: 600; line-height: 1.5; }
.access-rail-nav a, .access-resources a { padding: 8px; border-radius: 8px; text-decoration: none; }
.access-rail-nav a { display: flex; align-items: center; gap: 10px; margin-inline: -8px; margin-bottom: 2px; color: var(--ink-secondary); font-size: 13.5px; }
.access-rail-nav a .access-glyph { width: 16px; height: 16px; }
.access-rail-nav a[aria-current] { background: var(--wash); color: var(--accent); font-weight: 500; }
.access-rail-nav a[aria-current]::after { width: 6px; height: 6px; margin-inline-start: auto; border-radius: 50%; background: currentColor; content: ""; }
.access-rail-nav a:hover, .access-resources a:hover { background: var(--sunk); }
.access-resources ul { list-style: none; margin: 0 -8px -4px; padding: 0; }
.access-resources a { position: relative; display: grid; gap: 2px; padding-inline-end: 23px; }
.access-resources a::after { position: absolute; inset: 10px 8px auto auto; color: var(--subtle); font-size: 13px; content: "↗"; }
.access-resources strong { color: var(--ink-secondary); font-size: 13.5px; font-weight: 400; }
.access-resources span { color: var(--subtle); font-size: 12px; }
.access-resources p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.access-resources .access-help { display: inline-block; margin-top: 6px; padding-inline-start: 0; font-size: 13px; }

.access-page code, .access-search input { font: .88em/1.75 var(--mono); overflow-wrap: anywhere; }
.access-examples { display: grid; gap: 9px; margin: 16px 0; }
.access-copy { margin: 12px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--sheet); }
.access-examples .access-copy { margin: 0; }
.access-copy-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 16px; border-bottom: 1px solid var(--line-soft); color: var(--subtle); font-size: 12px; }
.access-copy code { display: block; padding: 16px; background: #f8f8f5; color: var(--ink-secondary); font: 12.5px/1.75 var(--mono); white-space: pre-wrap; }
.access-copy .copy-project { min-height: 28px; padding: 0 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--sheet); color: var(--muted); font-size: 12px; white-space: nowrap; }
.access-copy .copy-project:hover { border-color: var(--line-strong); color: var(--ink); }
.access-copy .copy-status:not(:empty), .access-copy .copy-fallback:not([hidden]) { display: block; margin: 0; padding: 5px 16px 8px; color: var(--accent); font-size: 12px; }
.access-section { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.access-section .section-head a { font-size: 13px; }
.access-section h3 { font-size: 16px; font-weight: 600; }
.access-routes { margin: 12px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--sheet); }
.access-routes div { display: grid; grid-template-columns: minmax(10rem, .8fr) minmax(0, 1fr); gap: 6px 14px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); }
.access-routes div:last-child { border-bottom: 0; }
.access-routes dd { margin: 0; color: var(--muted); font-size: 13.5px; }
.access-primary, .access-search button { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--sheet); color: var(--accent); font: inherit; font-size: 13px; text-decoration: none; }
.access-primary:hover, .access-search button:hover { border-color: var(--accent); }
.access-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 15px; font-size: 13px; }
.access-search label { font-size: 13px; font-weight: 600; }
.access-search div { display: flex; gap: 8px; margin-top: 6px; }
.access-search input { flex: 1; min-width: 0; padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--sheet); color: var(--ink); scroll-margin-top: 62px; }
.access-search button { flex: none; cursor: pointer; }
.access-questions { padding-inline-start: 18px; font-size: 14px; }
.access-questions li + li { margin-top: 8px; }
.access-steps { list-style: none; margin: 28px 0 22px; padding: 0; counter-reset: access-step; }
.access-steps > li { position: relative; padding-inline-start: 42px; counter-increment: access-step; }
.access-steps > li + li { margin-top: 32px; }
.access-steps > li::before { position: absolute; z-index: 1; inset: 0 auto auto 0; display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--wash); color: var(--accent); content: counter(access-step); font-size: 13px; font-weight: 600; }
.access-steps > li:not(:last-child)::after { position: absolute; inset: 36px auto -26px 13.5px; width: 1px; background: var(--line); content: ""; }
.access-steps > li > h3 { padding-top: 3px; font-size: 15.5px; font-weight: 600; }
.access-steps > li p { color: var(--ink-secondary); line-height: 1.8; }
.access-detail { margin-top: 8px; border-top: 1px solid var(--line); }
.access-detail summary { padding-block: 10px; color: var(--ink); font-weight: 600; cursor: pointer; }
.access-detail summary:hover { color: var(--accent); }
.access-detail .access-copy { margin-block: 6px 12px; }

@media (min-width: 941px) {
  .access-body { padding-inline: 28px; }
  .access-sidebar { width: 180px; padding: 24px 12px 14px; }
  .access-brand strong, .access-sidebar-label, .access-sidebar-end small { display: block; }
  .access-sidebar-label { padding: 12px 10px 4px; color: var(--subtle); font-size: 11px; }
  .access-sidebar nav a { min-height: 40px; flex-direction: row; justify-content: flex-start; gap: 10px; padding: 5px 10px; font-size: 14px; text-align: start; }
  .access-sidebar-end .radar-more { margin-inline: 4px auto; }
}
@media (min-width: 1176px) {
  .access-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
  .access-rail { position: sticky; top: 24px; }
  .access-rail-nav { display: block; }
}
@media (min-width: 1536px) {
  .access-layout { grid-template-columns: minmax(0, 1fr) 340px; }
  .access-methods { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 699px) {
  .access-sidebar { display: none; }
  .access-body { padding: 0 0 calc(72px + env(safe-area-inset-bottom)); }
  .access-layout { padding: 20px max(16px, env(safe-area-inset-right)) 56px max(16px, env(safe-area-inset-left)); }
  .access-phone-bar { position: sticky; z-index: 4; top: 0; display: flex; align-items: center; min-height: 48px; padding-inline: 16px; background: rgba(250, 249, 246, .85); backdrop-filter: blur(12px) saturate(150%); }
  .access-phone-bar a { display: inline-flex; min-height: 44px; align-items: center; gap: 7px; text-decoration: none; font-size: 16px; }
  .access-phone-bar span { font-size: 25px; line-height: 1; }
  .access-phone-tabs { position: fixed; z-index: 5; inset: auto 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px) saturate(150%); }
  .access-phone-tabs a { min-height: 50px; flex-direction: column; justify-content: center; gap: 2px; font-size: 10.5px; }
  .access-phone-tabs a[aria-current] { background: transparent; }
  .access-hero { padding-top: 0; }
}
@media (max-width: 640px) {
  .access-hero h1 { font-size: 28px; }
  .access-notice { align-items: flex-start; flex-direction: column; }
  .access-notice a { margin-inline-start: 14px; }
  .access-methods { gap: 10px; }
  .access-method { padding: 14px; }
  .access-method-tools { display: none; }
  .access-copy .copy-project { min-height: 34px; }
  .access-routes div { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .access-method { transition: none; }
}
