/* DreamingFish Updater V4 */
html[data-theme="light"]{color-scheme:light;--bg:#f7f7f4;--bg-deep:#efefeb;--surface:#fff;--surface-2:#f0f0ec;--text:#171715;--text-soft:#30302d;--muted:#666660;--muted-2:#8a8a82;--line:rgba(19,19,17,.12);--line-strong:rgba(19,19,17,.25);--shadow-sm:0 18px 42px rgba(25,25,20,.08);--shadow-lg:0 48px 120px rgba(25,25,20,.14)}
html[data-theme="dark"]{color-scheme:dark;--bg:#090909;--bg-deep:#030303;--surface:#111;--surface-2:#181817;--text:#f5f5f1;--text-soft:#d8d8d2;--muted:#9c9c94;--muted-2:#6f6f68;--line:rgba(255,255,255,.12);--line-strong:rgba(255,255,255,.26);--shadow-sm:0 18px 42px rgba(0,0,0,.28);--shadow-lg:0 48px 120px rgba(0,0,0,.48)}
html,body{background:var(--bg)}body.product-page{color:var(--text);background:var(--bg);font-family:"HarmonyOS Sans SC",Inter,"SF Pro Display","Microsoft YaHei UI","Noto Sans SC","Segoe UI",sans-serif}.product-page .site-shell::before{display:none}.product-page .site-header,.docs-body .site-header{border-color:var(--line);background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(20px) saturate(120%)}.product-page .brand-copy strong,.docs-body .brand-copy strong{color:var(--text)}.product-page .brand-copy span,.docs-body .brand-copy span{color:var(--muted-2)}.product-page .nav-links a{color:var(--muted)}.product-page .nav-links a:hover,.product-page .nav-links a.active{color:var(--text);background:color-mix(in srgb,var(--text) 6%,transparent)}
.theme-toggle{position:relative;width:42px;height:42px;display:grid;place-items:center;flex:0 0 42px;padding:0;border:1px solid var(--line);border-radius:999px;color:var(--text);background:var(--surface);cursor:pointer;transition:.18s ease}.theme-toggle:hover{transform:translateY(-1px);border-color:var(--line-strong)}.theme-icon{position:absolute;width:19px;height:19px;transition:.18s ease}html[data-theme="light"] .theme-icon-sun{opacity:1;transform:scale(1)}html[data-theme="light"] .theme-icon-moon{opacity:0;transform:scale(.7) rotate(-18deg)}html[data-theme="dark"] .theme-icon-sun{opacity:0;transform:scale(.7) rotate(18deg)}html[data-theme="dark"] .theme-icon-moon{opacity:1;transform:scale(1)}
.product-page .button{border-radius:999px;font-weight:700}.product-page .button.large{min-height:50px;padding-inline:23px;font-size:14px}.product-page .button.primary{color:#fff;background:#171715;box-shadow:none}.product-page .button.primary:hover{background:#2a2a27;box-shadow:none}html[data-theme="dark"] .product-page .button.primary{color:#111;background:#f4f4ef}.product-page .button.secondary{color:var(--text);border-color:var(--line);background:var(--surface)}.product-page .button.secondary:hover{border-color:var(--line-strong);background:var(--surface-2)}.product-page .mobile-toggle{color:var(--text);border-color:var(--line);background:var(--surface)}
.codex-hero{padding:128px 0 68px;overflow:hidden}.codex-hero-copy{max-width:980px;text-align:center}.codex-kicker{display:inline-block;color:var(--muted);font-size:12px;font-weight:760;letter-spacing:.12em;text-transform:uppercase}.codex-hero h1{margin:24px 0;color:var(--text);font-size:clamp(58px,7.2vw,104px);line-height:.98;letter-spacing:-.065em;font-weight:680}.codex-hero-copy>p{max-width:760px;margin:0 auto;color:var(--muted);font-size:18px;line-height:1.8}.codex-hero-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:11px;margin-top:31px}.app-showcase{width:min(1510px,calc(100% - 40px));margin:76px auto 0}.app-showcase-frame{position:relative;padding:12px;border:1px solid var(--line);border-radius:38px;background:var(--surface-2);box-shadow:var(--shadow-lg)}.app-showcase-frame:before{content:"";position:absolute;inset:-120px 8% auto;height:230px;z-index:-1;border-radius:50%;background:radial-gradient(ellipse,rgba(46,232,223,.16),rgba(176,108,255,.08) 38%,transparent 72%);filter:blur(45px)}.app-showcase-frame img{width:100%;border-radius:27px;border:1px solid rgba(255,255,255,.12)}.app-showcase-caption{display:flex;justify-content:space-between;gap:24px;padding:17px 12px 0;color:var(--muted-2);font-size:12px}
.signal-section{padding:50px 0 130px}.signal-grid{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.signal-grid article{min-height:168px;padding:31px 28px;border-right:1px solid var(--line)}.signal-grid article:last-child{border-right:0}.signal-grid span{color:var(--muted-2);font:600 11px/1.2 "Cascadia Code",Consolas,monospace}.signal-grid strong{display:block;margin-top:25px;color:var(--text);font-size:20px;letter-spacing:-.025em}.signal-grid p{margin:7px 0 0;color:var(--muted);font-size:14px;line-height:1.7}
.editorial-section{padding:132px 0;border-top:1px solid var(--line);background:var(--surface)}.editorial-intro{display:grid;grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr);gap:54px;align-items:start}.editorial-intro .codex-kicker{grid-column:1/-1}.editorial-intro h2,.workflow-header h2,.sync-heading h2,.local-control-copy h2,.capability-heading h2,.codex-cta h2{margin:0;color:inherit;font-size:clamp(44px,5vw,72px);line-height:1.08;letter-spacing:-.055em;font-weight:620}.editorial-intro p{margin:5px 0 0;color:var(--muted);font-size:17px;line-height:1.85}.interface-editorial-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:72px}.editorial-card{min-height:520px;padding:38px;border:1px solid var(--line);border-radius:28px;background:var(--bg)}.editorial-card.dark-card{color:#f4f4f0;background:#151514;border-color:#151514}.editorial-card-top{display:flex;justify-content:space-between;color:var(--muted-2);font-size:11px;font-weight:760;letter-spacing:.1em;text-transform:uppercase}.dark-card .editorial-card-top{color:#8e8e86}.editorial-card h3{max-width:540px;margin:98px 0 20px;color:inherit;font-size:clamp(32px,3vw,47px);line-height:1.13;letter-spacing:-.045em;font-weight:610}.editorial-card>p{color:var(--muted);font-size:15px;line-height:1.82}.dark-card>p{color:#a9a9a1}.editorial-card ul{margin:27px 0 0;padding:0;list-style:none}.editorial-card li{padding:11px 0;border-top:1px solid var(--line);color:var(--text-soft);font-size:14px}.dark-card li{border-color:rgba(255,255,255,.12);color:#d5d5ce}.terminal-preview{display:grid;gap:10px;margin-top:31px;padding:22px;border:1px solid rgba(255,255,255,.12);border-radius:18px;background:#080808}.terminal-preview span{margin-bottom:6px;color:#63eee5;font-size:12px}.terminal-preview code{color:#a8aaa4;font:12px/1.5 "Cascadia Code",Consolas,monospace}
.workflow-section{padding:138px 0}.workflow-header{max-width:900px}.workflow-header .codex-kicker{margin-bottom:21px}.workflow-list{margin-top:76px;border-top:1px solid var(--line)}.workflow-row{display:grid;grid-template-columns:76px minmax(0,1fr) 220px;gap:28px;align-items:center;min-height:155px;border-bottom:1px solid var(--line)}.workflow-row>span{color:var(--muted-2);font:600 12px/1 "Cascadia Code",Consolas,monospace}.workflow-row h3{margin:0;color:var(--text);font-size:25px;letter-spacing:-.03em}.workflow-row p{max-width:720px;margin:7px 0 0;color:var(--muted);font-size:14px;line-height:1.72}.workflow-row>strong{color:var(--muted);font-size:13px;font-weight:650;text-align:right}
.sync-showcase{padding:138px 0;color:#f4f4ef;background:#111110}.light-kicker{color:#8f8f87}.sync-heading{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);gap:60px;align-items:end}.sync-heading .codex-kicker{grid-column:1/-1}.sync-heading p{margin:0 0 6px;color:#a5a59e;font-size:16px;line-height:1.82}.sync-cards{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:74px}.sync-card{min-height:430px;padding:39px;border:1px solid rgba(255,255,255,.14);border-radius:28px;background:#181817}.sync-card-accent{background:linear-gradient(145deg,rgba(46,232,223,.11),rgba(176,108,255,.08)),#181817}.sync-index{display:inline-flex;min-height:29px;align-items:center;padding:0 11px;border:1px solid rgba(255,255,255,.14);border-radius:999px;color:#c7c7bf;font-size:11px}.sync-card h3{margin:76px 0 17px;color:#f4f4ef;font-size:34px;letter-spacing:-.04em}.sync-card p{color:#a9a9a1;font-size:15px;line-height:1.82}.sync-card ul{margin:28px 0 0;padding:0;list-style:none}.sync-card li{padding:12px 0;border-top:1px solid rgba(255,255,255,.12);color:#d4d4cd;font-size:14px}
.local-control-section{padding:138px 0;background:var(--surface)}.local-control-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:84px;align-items:center}.local-control-copy .codex-kicker{margin-bottom:22px}.local-control-copy p{max-width:580px;margin:25px 0 0;color:var(--muted);font-size:16px;line-height:1.86}.text-link{display:inline-flex;align-items:center;gap:10px;margin-top:30px;padding-bottom:5px;border-bottom:1px solid var(--line-strong);color:var(--text);font-size:14px;font-weight:700}.local-control-panel{border-top:1px solid var(--line)}.local-control-panel>div{display:grid;grid-template-columns:160px 1fr;gap:22px;padding:25px 0;border-bottom:1px solid var(--line)}.local-control-panel span{color:var(--muted-2);font-size:12px}.local-control-panel strong{color:var(--text);font-size:17px;font-weight:600;letter-spacing:-.015em}
.capability-section{padding:138px 0}.capability-heading{max-width:900px}.capability-heading .codex-kicker{margin-bottom:22px}.capability-grid{display:grid;grid-template-columns:repeat(2,1fr);margin-top:78px;border-top:1px solid var(--line);border-left:1px solid var(--line)}.capability-grid article{min-height:250px;padding:34px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.capability-grid span{color:var(--text);font-size:24px;font-weight:620;letter-spacing:-.03em}.capability-grid p{max-width:520px;margin:72px 0 0;color:var(--muted);font-size:14px;line-height:1.76}
.codex-cta{padding:60px 0 128px}.codex-cta-inner{padding:90px 56px;border-radius:34px;color:#f4f4ef;text-align:center;background:#151514}.codex-cta p{max-width:650px;margin:25px auto 0;color:#a7a79f;font-size:16px;line-height:1.8}.codex-cta-inner>div{display:flex;justify-content:center;flex-wrap:wrap;gap:11px;margin-top:31px}.codex-cta .button.primary{color:#111;background:#f4f4ef}.codex-cta .button.secondary{color:#f4f4ef;border-color:rgba(255,255,255,.18);background:rgba(255,255,255,.05)}.product-page .site-footer{border-color:var(--line);background:var(--surface)}.product-page .footer-brand p,.product-page .footer-col a,.product-page .footer-bottom{color:var(--muted)}.product-page .footer-col h4{color:var(--text)}
/* docs themes */.docs-body{color:var(--text);background:var(--bg)}.docs-body .theme-toggle{width:40px;height:40px;flex-basis:40px}.docs-body .button.ghost{color:var(--muted)}.docs-body .button.secondary{color:var(--text);border-color:var(--line);background:var(--surface)}.docs-body .docs-sidebar{border-color:var(--line)}.docs-body .docs-group-title{color:var(--muted-2)}.docs-body .docs-nav a{color:var(--muted)}.docs-body .docs-nav a:hover,.docs-body .docs-nav a.active{color:var(--text)}.docs-body .docs-nav a.active{background:rgba(78,232,223,.09)}.docs-body .docs-breadcrumb{color:var(--muted-2)}.docs-body .docs-article h1,.docs-body .docs-article h2,.docs-body .docs-article h3,.docs-body .docs-article h4,.docs-body .docs-article strong{color:var(--text)}.docs-body .docs-lead,.docs-body .docs-article p,.docs-body .docs-article li{color:var(--muted)}.docs-body .doc-hero-meta span{color:var(--muted);border-color:var(--line);background:var(--surface)}.docs-body .callout{background:var(--surface)}.docs-body .step-card,.docs-body .path-card,.docs-body .role-card,.docs-body .compare-card,.docs-body .decision-card{border-color:var(--line);background:var(--surface)}.docs-body .doc-table-wrap{border-color:var(--line);background:var(--surface)}.docs-body .doc-table th{color:var(--text-soft);background:var(--surface-2)}.docs-body .doc-table td{color:var(--muted)}.docs-body .doc-table th,.docs-body .doc-table td{border-color:var(--line)}.docs-body .pager-link{border-color:var(--line);background:var(--surface)}.docs-body .pager-link span{color:var(--muted-2)}.docs-body .pager-link strong{color:var(--text-soft)}.docs-body .docs-toc h4{color:var(--muted-2)}.docs-body .docs-toc a{color:var(--muted);border-color:var(--line)}.docs-body .docs-toc a:hover,.docs-body .docs-toc a.active{color:var(--text)}.docs-body .docs-search-button{color:var(--muted);border-color:var(--line);background:var(--surface)}.docs-body .search-panel{border-color:var(--line-strong);background:var(--surface)}.docs-body .search-input{color:var(--text)}.docs-body .search-result strong{color:var(--text)}.docs-body .search-result span,.docs-body .search-empty,.docs-body .search-footer{color:var(--muted)}html[data-theme="light"] .docs-body .code-block{border-color:#2b2b29;background:#171715}html[data-theme="light"] .docs-body .code-head{color:#92928a;border-color:rgba(255,255,255,.1)}html[data-theme="light"] .docs-body .code-block pre{color:#e0eee9}html[data-theme="light"] .docs-body .copy-button{color:#b4b4ad;border-color:rgba(255,255,255,.14);background:rgba(255,255,255,.06)}html[data-theme="light"] .docs-body .docs-article :not(pre)>code{color:#262622;border-color:var(--line);background:#ecece7}html[data-theme="light"] .docs-body .docs-sidebar.open{background:#f7f7f4}
@media(max-width:1120px){.editorial-intro{grid-template-columns:1fr;gap:26px}.interface-editorial-grid{grid-template-columns:1fr}.editorial-card{min-height:460px}.sync-heading{grid-template-columns:1fr;gap:25px}.local-control-grid{gap:52px}}
@media(max-width:840px){.product-page .nav-links{background:var(--surface);border-color:var(--line)}.desktop-only{display:none!important}.codex-hero{padding-top:96px}.codex-hero h1{font-size:clamp(50px,14vw,76px)}.codex-hero-copy>p{font-size:16px}.app-showcase{width:calc(100% - 22px);margin-top:54px}.app-showcase-frame{padding:6px;border-radius:24px}.app-showcase-frame img{border-radius:18px}.signal-grid{grid-template-columns:1fr}.signal-grid article{min-height:auto;border-right:0;border-bottom:1px solid var(--line)}.editorial-section,.workflow-section,.sync-showcase,.local-control-section,.capability-section{padding:94px 0}.editorial-card{min-height:auto;padding:28px}.editorial-card h3{margin-top:64px}.workflow-row{grid-template-columns:46px minmax(0,1fr);gap:18px;padding:24px 0}.workflow-row>strong{grid-column:2;text-align:left}.sync-cards,.local-control-grid,.capability-grid{grid-template-columns:1fr}.sync-card{min-height:auto}.local-control-grid{gap:54px}.capability-grid{border-left:0}.capability-grid article{min-height:210px;border-left:1px solid var(--line)}.codex-cta-inner{padding:68px 28px}}
@media(max-width:560px){.product-page .navbar{gap:10px}.product-page .brand-copy span{display:none}.product-page .brand img{width:34px;height:34px}.product-page .nav-actions{gap:6px}.product-page .nav-actions>.button.primary{display:none}.theme-toggle{width:39px;height:39px;flex-basis:39px}.codex-hero{padding-top:76px}.codex-hero h1{font-size:49px}.codex-hero-actions .button{width:100%}.app-showcase-caption{flex-direction:column;gap:3px}.editorial-intro h2,.workflow-header h2,.sync-heading h2,.local-control-copy h2,.capability-heading h2,.codex-cta h2{font-size:39px}.editorial-card h3{font-size:31px}.workflow-row h3{font-size:22px}.sync-card{padding:28px}.sync-card h3{margin-top:58px;font-size:30px}.local-control-panel>div{grid-template-columns:1fr;gap:7px}.capability-grid article{padding:27px}.capability-grid p{margin-top:48px}.codex-cta{padding-bottom:84px}.codex-cta-inner{padding:58px 20px;border-radius:26px}.codex-cta-inner .button{width:100%}}

/* Explicitly override the V3 documentation body background. */
html[data-theme="light"] body.docs-body {
  background: #f7f7f4 !important;
  color: #171715;
}
html[data-theme="dark"] body.docs-body {
  background:
    radial-gradient(circle at 10% -8%, rgba(78,232,223,.08), transparent 32rem),
    radial-gradient(circle at 92% 4%, rgba(159,124,255,.07), transparent 30rem),
    #070b0f !important;
  color: #f5f5f1;
}
html[data-theme="light"] .docs-layout,
html[data-theme="light"] .docs-main,
html[data-theme="light"] .docs-sidebar,
html[data-theme="light"] .docs-toc { background: transparent; }
html[data-theme="light"] .docs-article hr { border-color: var(--line); }

/* Keep the overview workflow cards readable on the light documentation canvas. */
html[data-theme="light"] .docs-body .mini-flow div {
  border-color: var(--line);
  background: var(--surface);
}
html[data-theme="light"] .docs-body .mini-flow strong { color: var(--text); }
html[data-theme="light"] .docs-body .mini-flow span { color: var(--muted); }
html[data-theme="light"] .docs-body .mini-flow div:not(:last-child)::after { color: var(--muted-2); }

/* =========================================================
   V4.1 documentation layout hotfix
   Keep inline code inside list text instead of treating it as
   an additional CSS-grid item in the marker column.
   ========================================================= */
.docs-body .feature-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0 !important;
  list-style: none;
}
.docs-body .feature-list li {
  position: relative;
  display: block;
  min-width: 0;
  margin: 0;
  padding-left: 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
  overflow-wrap: break-word;
  word-break: normal;
}
.docs-body .feature-list li::before {
  content: "•";
  position: absolute;
  left: 2px;
  top: 0;
  width: 14px;
  color: var(--cyan);
  font-weight: 900;
  text-align: center;
}
.docs-body .docs-article :not(pre) > code {
  display: inline;
  max-width: 100%;
  padding: 2px 7px;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.docs-body .path-card,
.docs-body .role-card,
.docs-body .compare-card,
.docs-body .decision-card {
  align-self: start;
}
@media (max-width: 680px) {
  .docs-body .feature-list li {
    padding-left: 22px;
    font-size: 14px;
  }
}
.docs-body .feature-list code {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  vertical-align: baseline;
}
.docs-body .path-grid,
.docs-body .role-grid,
.docs-body .mode-compare,
.docs-body .decision-grid {
  align-items: stretch;
}
.docs-body .path-card,
.docs-body .role-card,
.docs-body .compare-card,
.docs-body .decision-card {
  align-self: stretch;
}
.docs-body .docs-article .feature-list code {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}


/* V4.3 — server branding and news product story */
.brand-experience{padding:144px 0;border-top:1px solid var(--line);background:var(--bg)}
.brand-experience-grid{display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);gap:92px;align-items:center}
.brand-experience-copy h2,.news-experience-heading h2{margin:22px 0 0;color:inherit;font-size:clamp(44px,5.2vw,76px);line-height:1.06;letter-spacing:-.058em;font-weight:620}
.brand-experience-copy p{max-width:610px;margin:28px 0 0;color:var(--muted);font-size:17px;line-height:1.88}
.brand-studio{overflow:hidden;border:1px solid var(--line);border-radius:30px;background:var(--surface);box-shadow:var(--shadow-sm)}
.brand-studio-head{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 24px;border-bottom:1px solid var(--line)}
.brand-studio-head span{color:var(--muted-2);font:650 10px/1.2 "Cascadia Code",Consolas,monospace;letter-spacing:.12em}
.brand-studio-head strong{color:var(--text);font-size:14px}
.brand-studio-preview{position:relative;min-height:390px;overflow:hidden;padding:27px;color:#fff8df;background:radial-gradient(circle at 72% 42%,rgba(255,232,155,.78),transparent 10%),linear-gradient(160deg,#5b676a 0%,#9b876f 42%,#283c34 70%,#071513 100%)}
.brand-studio-preview:before{content:"";position:absolute;inset:auto -5% -2%;height:56%;background:linear-gradient(150deg,#233b34,#071513);clip-path:polygon(0 46%,13% 18%,27% 43%,39% 20%,55% 48%,69% 17%,84% 39%,100% 14%,100% 100%,0 100%)}
.brand-preview-nav{position:relative;z-index:2;display:flex;align-items:center;gap:24px;color:rgba(255,248,223,.68);font-size:12px;font-weight:700}
.brand-preview-nav b{margin-right:auto;color:#fff8df;font-size:16px}
.brand-preview-copy{position:absolute;z-index:2;left:32px;top:105px}.brand-preview-copy small{display:block;font-size:22px;font-weight:700}.brand-preview-copy strong{display:block;margin-top:10px;font-size:64px;line-height:.95;letter-spacing:-.07em}.brand-preview-copy p{margin:22px 0 0;font-size:14px;font-weight:650}
.brand-preview-status{position:absolute;z-index:2;right:28px;bottom:28px;width:43%;padding:20px;border:1px solid rgba(255,255,255,.17);border-radius:20px;background:rgba(6,13,14,.73);backdrop-filter:blur(16px)}
.brand-preview-status span{font-size:16px;font-weight:700}.brand-preview-status b{float:right;color:#4deee5;font-size:18px}.brand-preview-status i{display:block;clear:both;height:6px;margin-top:16px;border-radius:999px;background:linear-gradient(90deg,#35e6d9,#51d8e8,#b36cff)}
.brand-studio-specs{display:grid;grid-template-columns:1fr 1fr}.brand-studio-specs>div{min-height:132px;padding:24px;border-top:1px solid var(--line);border-right:1px solid var(--line)}.brand-studio-specs>div:nth-child(2n){border-right:0}.brand-studio-specs span,.brand-studio-specs strong{display:block}.brand-studio-specs span{color:var(--muted-2);font-size:11px}.brand-studio-specs strong{margin-top:28px;color:var(--text);font-size:16px;line-height:1.5}
.news-experience{padding:144px 0;color:#f4f4ef;background:#121211}.news-experience-heading{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);gap:72px;align-items:end}.news-experience-heading .codex-kicker{grid-column:1/-1}.news-experience-heading p{margin:0 0 8px;color:#aaa9a1;font-size:16px;line-height:1.86}.news-product-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);gap:18px;margin-top:78px}.news-featured-card,.news-product-list{border:1px solid rgba(255,255,255,.13);border-radius:28px;background:#191918}.news-featured-card{padding:22px}.news-art{position:relative;height:320px;overflow:hidden;border-radius:19px;background:radial-gradient(circle at 71% 42%,rgba(255,226,143,.95),transparent 7%),linear-gradient(180deg,#59686d,#a88c69 54%,#18342d)}.news-art:before,.news-art:after,.news-art i{content:"";position:absolute;left:-5%;right:-5%;bottom:-1%;height:55%;background:#1c352e;clip-path:polygon(0 48%,12% 23%,23% 45%,36% 17%,50% 52%,64% 28%,76% 48%,89% 18%,100% 43%,100% 100%,0 100%)}.news-art:after{height:40%;background:#071716;clip-path:polygon(0 45%,17% 18%,30% 47%,46% 21%,63% 56%,78% 24%,100% 45%,100% 100%,0 100%)}.news-art i{left:auto;right:16%;bottom:0;width:8%;height:36%;background:linear-gradient(90deg,#502426,#9a3a32,#402126);clip-path:none;border-radius:4px 4px 0 0}.news-card-meta{margin-top:24px;color:#52ede4;font-size:11px;font-weight:760}.news-featured-card h3{margin:12px 0 0;color:#f5f2e7;font-size:34px;letter-spacing:-.04em}.news-featured-card p{max-width:650px;margin:13px 0 0;color:#aaa9a1;font-size:15px;line-height:1.8}.news-featured-card>span{display:block;margin-top:32px;padding-top:19px;border-top:1px solid rgba(255,255,255,.11);color:#d9d7ce;font-size:13px}.news-product-list{overflow:hidden}.news-product-list article{min-height:152px;padding:26px 28px;border-bottom:1px solid rgba(255,255,255,.11)}.news-product-list article:last-child{border-bottom:0}.news-product-list span,.news-product-list strong,.news-product-list small{display:block}.news-product-list span{color:#54eee5;font-size:11px}.news-product-list strong{margin-top:14px;color:#f0eee5;font-size:18px;line-height:1.45}.news-product-list small{margin-top:13px;color:#77776f;font-size:11px}
.capability-grid-six{grid-template-columns:repeat(3,1fr)}.capability-grid-six article{min-height:270px}.capability-grid-six p{margin-top:62px}
@media(max-width:1120px){.brand-experience-grid{grid-template-columns:1fr;gap:58px}.news-experience-heading{grid-template-columns:1fr;gap:28px}.news-product-grid{grid-template-columns:1fr}.capability-grid-six{grid-template-columns:repeat(2,1fr)}}
@media(max-width:840px){.brand-experience,.news-experience{padding:96px 0}.brand-studio-preview{min-height:330px}.brand-preview-copy strong{font-size:52px}.brand-preview-status{width:48%}.news-art{height:260px}.capability-grid-six{grid-template-columns:1fr}}
@media(max-width:560px){.brand-experience-copy h2,.news-experience-heading h2{font-size:39px}.brand-studio-head{align-items:flex-start;flex-direction:column}.brand-studio-preview{min-height:300px;padding:20px}.brand-preview-nav span{display:none}.brand-preview-copy{left:22px;top:86px}.brand-preview-copy small{font-size:18px}.brand-preview-copy strong{font-size:47px}.brand-preview-status{left:22px;right:22px;bottom:20px;width:auto}.brand-studio-specs{grid-template-columns:1fr}.brand-studio-specs>div{border-right:0}.news-featured-card{padding:15px}.news-art{height:210px}.news-featured-card h3{font-size:29px}.news-product-list article{padding:23px}.capability-grid-six article{min-height:220px}}

/* Light documentation theme: use neutral, high-contrast accents instead of pale cyan. */
html[data-theme="light"] body.docs-body {
  --cyan: #3e4746;
  --cyan-soft: #596260;
}
html[data-theme="light"] .docs-body .docs-nav a.active {
  color: var(--text);
  background: var(--surface-2);
  box-shadow: inset 3px 0 0 var(--text);
}
html[data-theme="light"] .docs-body .docs-nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}
html[data-theme="light"] .docs-body .docs-article a:not(.button):not(.pager-link) {
  color: var(--text-soft);
  text-decoration-color: var(--line-strong);
}
html[data-theme="light"] .docs-body .badge:not(.neutral) {
  color: var(--text-soft);
  border-color: var(--line-strong);
  background: var(--surface-2);
}
html[data-theme="light"] .docs-body .callout {
  border-color: var(--line-strong);
  background: var(--surface);
}
html[data-theme="light"] .docs-body .callout-icon {
  color: var(--text-soft);
  background: var(--surface-2);
}
html[data-theme="light"] .docs-body .feature-list li::before {
  color: var(--text-soft);
}
html[data-theme="light"] .docs-body .step-card::before {
  color: var(--text-soft);
  border-color: var(--line-strong);
  background: var(--surface-2);
}
html[data-theme="light"] .docs-body .docs-toc a:hover,
html[data-theme="light"] .docs-body .docs-toc a.active {
  color: var(--text);
  border-color: var(--line-strong);
}
html[data-theme="light"] .docs-body .docs-search-button:hover,
html[data-theme="light"] .docs-body .pager-link:hover {
  border-color: var(--line-strong);
}
html[data-theme="light"] .docs-body .search-result:hover,
html[data-theme="light"] .docs-body .search-result.selected {
  background: var(--surface-2);
}

/* Terminal mockup used by the docs (first-run tutorial) */
.docs-body .terminal {
  margin: 26px 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 15px;
  background: #071014;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}
.docs-body .terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: #0c1418;
}
.docs-body .terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.docs-body .terminal-title {
  margin-left: 8px;
  color: #7f9498;
  font: 600 11px/1 "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.02em;
}
.docs-body .terminal pre {
  margin: 0;
  padding: 19px;
  overflow: auto;
  color: #cde8e5;
  font: 12px/1.82 "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  white-space: pre;
}
html[data-theme="light"] .docs-body .terminal {
  border-color: #2b2b29;
  background: #171715;
}
html[data-theme="light"] .docs-body .terminal-bar {
  border-color: rgba(255, 255, 255, 0.09);
  background: #1d1d1b;
}
html[data-theme="light"] .docs-body .terminal-title {
  color: #92928a;
}
html[data-theme="light"] .docs-body .terminal pre {
  color: #e0eee9;
}
@media (max-width: 840px) {
  .docs-body .terminal pre {
    padding: 15px;
    font-size: 11px;
    line-height: 1.7;
  }
}

/* Numbered steps inside a docs callout should flow as inline text */
.docs-body .callout ol {
  margin: 6px 0 0;
  padding-left: 0;
  list-style-position: inside;
}
.docs-body .callout li {
  margin: 5px 0 0;
  font-size: 15px;
  line-height: 1.72;
}
.docs-body .callout li strong {
  display: inline;
  font-size: inherit;
}

/* Browser mockup for the admin web UI (dark console look) */
.ui-mock {
  margin: 26px 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: #0b1013;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.ui-mock-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #0d1317;
}
.ui-mock-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.ui-mock-url {
  max-width: 62%;
  margin-left: 10px;
  padding: 5px 14px;
  overflow: hidden;
  border: 1px solid #26343b;
  border-radius: 999px;
  background: #11191e;
  color: #8b9ba0;
  font: 600 11px/1 "Cascadia Code", Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mock-auth {
  display: grid;
  place-items: center;
  padding: 34px 18px;
  background:
    radial-gradient(circle at 18% 12%, rgba(53, 216, 208, 0.1), transparent 34%),
    radial-gradient(circle at 82% 88%, rgba(166, 123, 232, 0.1), transparent 34%),
    #090d10;
}
.mock-auth-card {
  width: min(430px, 100%);
  padding: 26px;
  border: 1px solid #354850;
  border-radius: 12px;
  background: #11191e;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}
.mock-auth-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.mock-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.mock-brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #35d8d0, #a67be8);
  color: #071013;
  font-size: 15px;
  font-weight: 900;
}
.mock-brand-name {
  color: #eef5f3;
  font-size: 15px;
  font-weight: 700;
}
.mock-brand-en {
  color: #8b9ba0;
  font-size: 10px;
}
.mock-brand-en strong {
  color: #eef5f3;
}
.mock-theme {
  color: #63747a;
  font-size: 13px;
}
.mock-kicker {
  margin-top: 26px;
  color: #35d8d0;
  font: 800 10px/1 "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.mock-title {
  margin: 7px 0 5px;
  color: #eef5f3;
  font-size: 21px;
  font-weight: 750;
}
.mock-sub {
  margin: 0;
  color: #8b9ba0;
  font-size: 12px;
}
.mock-form {
  display: grid;
  gap: 15px;
  margin-top: 24px;
}
.mock-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}
.mock-field > span {
  color: #8b9ba0;
  font-size: 10px;
  font-weight: 650;
}
.mock-field input {
  min-width: 0;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid #26343b;
  border-radius: 6px;
  background: #0c1317;
  color: #eef5f3;
  font-size: 14px;
  font-family: inherit;
}
.mock-field small,
.mock-help {
  color: #63747a;
  font-size: 10px;
  line-height: 1.55;
}
.mock-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8b9ba0;
  font-size: 10px;
  font-weight: 650;
}
.mock-check input {
  width: 16px;
  height: 16px;
  accent-color: #35d8d0;
}
.mock-submit {
  min-height: 42px;
  margin-top: 4px;
  border: 1px solid rgba(53, 216, 208, 0.58);
  border-radius: 6px;
  background: #1d8e89;
  color: #f7ffff;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.mock-submit:hover {
  background: #24a29c;
}
html[data-theme="light"] .docs-body .ui-mock {
  border-color: #2b2b29;
}
@media (max-width: 560px) {
  .mock-auth {
    padding: 22px 12px;
  }
  .mock-auth-card {
    padding: 20px;
  }
}

/* Admin console mockup (post-login dashboard) */
.mock-app {
  position: relative;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 640px;
  background: #0d1317;
}
.mock-sidebar {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 20px 12px 16px;
  background: #0d1317;
  border-right: 1px solid #26343b;
}
.mock-sb-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 54px;
  padding: 0 8px 18px;
  border-bottom: 1px solid #26343b;
}
.mock-sb-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid rgba(53, 216, 208, 0.52);
  border-radius: 8px;
  background: #13262a;
  color: #35d8d0;
  font-size: 14px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(166, 123, 232, 0.16);
}
.mock-sb-name {
  overflow: hidden;
  color: #eef5f3;
  font-size: 14px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mock-sb-en {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 700;
}
.mock-sb-en span {
  color: #35d8d0;
}
.mock-sb-en strong {
  color: #a67be8;
}
.mock-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  padding: 20px 0;
}
.mock-nav-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  color: #8b9ba0;
  font-size: 12px;
}
.mock-nav-item span {
  color: #63747a;
  font-size: 15px;
  text-align: center;
}
.mock-nav-item.active {
  background: rgba(53, 216, 208, 0.09);
  color: #eef5f3;
  box-shadow: inset 2px 0 0 #35d8d0;
}
.mock-nav-item.active span {
  color: #35d8d0;
}
.mock-nav-item.disabled {
  opacity: 0.38;
}
.mock-account {
  padding: 12px 8px 12px;
  border-top: 1px solid #26343b;
}
.mock-account-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  color: #63747a;
  font-size: 10px;
}
.mock-account-line strong {
  color: #eef5f3;
}
.mock-account-buttons {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.mock-account-btn {
  flex: 1;
  min-height: 30px;
  border: 1px solid #26343b;
  border-radius: 6px;
  background: #162127;
  color: #8b9ba0;
  font-size: 10px;
  font-weight: 650;
}
.mock-account-btn.accent {
  border-color: rgba(53, 216, 208, 0.34);
}
.mock-sb-footer {
  padding: 12px 8px 0;
  border-top: 1px solid #26343b;
}
.mock-conn {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8b9ba0;
  font-size: 11px;
}
.mock-conn-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #52d38b;
  box-shadow: 0 0 8px rgba(82, 211, 139, 0.38);
}
.mock-version {
  margin-top: 6px;
  color: #63747a;
  font-size: 10px;
}
.mock-main {
  position: relative;
  display: grid;
  grid-template-rows: 78px minmax(0, 1fr);
  min-width: 0;
  background: #090d10;
}
.mock-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 24px;
  background: rgba(13, 19, 23, 0.96);
  border-bottom: 1px solid #26343b;
}
.mock-kicker {
  color: #63747a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.mock-page-title {
  margin: 4px 0 0;
  color: #eef5f3;
  font-size: 19px;
  font-weight: 750;
}
.mock-topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.mock-icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #26343b;
  border-radius: 6px;
  background: #11191e;
  color: #8b9ba0;
  font-size: 15px;
}
.mock-picker {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #8b9ba0;
  font-size: 11px;
}
.mock-select {
  width: 200px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #26343b;
  border-radius: 6px;
  background: #0c1317;
  color: #eef5f3;
  font-size: 12px;
}
.mock-content {
  overflow: auto;
  padding: 22px 24px 36px;
}
.mock-view {
  width: min(1180px, 100%);
  margin: 0 auto;
}
.mock-service {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  padding: 12px 16px;
  border: 1px solid #26343b;
  border-radius: 8px;
  background: #11191e;
}
.mock-service-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.mock-service-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: #63747a;
}
.mock-service-name {
  color: #eef5f3;
  font-size: 14px;
  font-weight: 700;
}
.mock-service-addr {
  margin-top: 4px;
  color: #8b9ba0;
  font: 12px "Cascadia Code", Consolas, monospace;
}
.mock-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mock-btn {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.mock-btn.secondary {
  border-color: #26343b;
  background: #162127;
  color: #8b9ba0;
}
.mock-btn.primary {
  border-color: rgba(53, 216, 208, 0.58);
  background: #1d8e89;
  color: #f7ffff;
}
.mock-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.mock-metric {
  display: flex;
  min-width: 0;
  min-height: 74px;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 12px 15px;
  border: 1px solid #26343b;
  border-radius: 7px;
  background: #0f171b;
}
.mock-metric span {
  color: #8b9ba0;
  font-size: 10px;
}
.mock-metric strong {
  overflow: hidden;
  color: #eef5f3;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mock-panel {
  margin-top: 12px;
  border: 1px solid #26343b;
  border-radius: 8px;
  background: #11191e;
}
.mock-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  padding: 12px 16px;
  border-bottom: 1px solid #26343b;
}
.mock-panel-title {
  margin: 0;
  color: #eef5f3;
  font-size: 14px;
  font-weight: 750;
}
.mock-panel-sub {
  display: block;
  margin-top: 4px;
  color: #8b9ba0;
  font-size: 10px;
}
.mock-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.mock-table th {
  height: 34px;
  padding: 8px 13px;
  background: #0f171b;
  color: #63747a;
  font-size: 9px;
  font-weight: 800;
  text-align: left;
}
.mock-table td {
  height: 44px;
  padding: 8px 13px;
  border-bottom: 1px solid rgba(38, 52, 59, 0.72);
  color: #cdd7d6;
  font-size: 11px;
  text-align: left;
}
.mock-empty {
  display: grid;
  place-items: center;
  min-height: 92px;
  color: #63747a;
  font-size: 11px;
}
@media (max-width: 840px) {
  .mock-app {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .mock-topbar {
    padding: 0 16px;
  }
  .mock-content {
    padding: 18px 16px 28px;
  }
}
@media (max-width: 720px) {
  .mock-app {
    grid-template-columns: minmax(0, 1fr);
  }
  .mock-sidebar {
    display: none;
  }
  .mock-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mock-service {
    align-items: flex-start;
    flex-direction: column;
  }
  .mock-buttons {
    width: 100%;
  }
  .mock-buttons .mock-btn {
    flex: 1;
  }
}

/* Admin console mockup: modal, forms, file list and badges */
.mock-modal-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(4, 8, 10, 0.72);
}
.mock-modal {
  width: min(540px, 100%);
  padding: 20px;
  border: 1px solid #354850;
  border-radius: 10px;
  background: #11191e;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.mock-modal-kicker {
  color: #35d8d0;
  font: 800 9px/1 "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.14em;
}
.mock-modal-title {
  margin: 6px 0 0;
  color: #eef5f3;
  font-size: 17px;
  font-weight: 750;
}
.mock-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.mock-field.span-2 {
  grid-column: span 2;
}
.mock-path-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.mock-path-btn {
  min-width: 58px;
  min-height: 38px;
  border: 1px solid #26343b;
  border-radius: 6px;
  background: #162127;
  color: #8b9ba0;
  font-size: 11px;
  font-weight: 700;
}
.mock-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
.mock-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 5px;
  background: rgba(53, 216, 208, 0.09);
  color: #35d8d0;
  font-size: 9px;
  font-weight: 800;
}
.mock-badge.modified {
  background: rgba(232, 184, 103, 0.1);
  color: #e8b867;
}
.mock-badge.removed {
  background: rgba(237, 116, 125, 0.1);
  color: #ed747d;
}
.mock-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.mock-summary > div {
  min-height: 62px;
  padding: 10px 13px;
  border: 1px solid #26343b;
  border-radius: 7px;
  background: #0f171b;
}
.mock-summary span {
  display: block;
  color: #8b9ba0;
  font-size: 10px;
}
.mock-summary strong {
  display: block;
  margin-top: 5px;
  color: #eef5f3;
  font-size: 15px;
}
.mock-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(38, 52, 59, 0.72);
}
.mock-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8b9ba0;
  font-size: 11px;
}
.mock-toolbar-check {
  display: flex;
  align-items: center;
  gap: 7px;
}
.mock-toolbar-check input {
  width: 15px;
  height: 15px;
  accent-color: #35d8d0;
}
.mock-search {
  min-width: 170px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #26343b;
  border-radius: 6px;
  background: #0c1317;
  color: #eef5f3;
  font-size: 11px;
}
.mock-status-cell {
  color: #cdd7d6;
  font-size: 11px;
}
.mock-mono {
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 10px;
}
.mock-service-dot.running {
  background: #52d38b;
  box-shadow: 0 0 11px rgba(82, 211, 139, 0.46);
}
.mock-panel-note {
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid #26343b;
  background: rgba(12, 20, 24, 0.65);
  color: #8b9ba0;
  font-size: 12px;
  line-height: 1.65;
}
.mock-panel-note strong {
  color: #eef5f3;
  font-weight: 700;
}
.mock-textarea {
  width: 100%;
  min-height: 86px;
  padding: 8px 10px;
  border: 1px solid #26343b;
  border-radius: 6px;
  background: #0c1317;
  color: #eef5f3;
  font-size: 12px;
  font-family: inherit;
  resize: vertical;
}
.mock-note-line {
  margin: 12px 0 0;
  padding: 9px 11px;
  border-left: 2px solid #e8b867;
  background: rgba(232, 184, 103, 0.055);
  color: #b8aa90;
  font-size: 11px;
  line-height: 1.6;
}
@media (max-width: 720px) {
  .mock-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mock-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .mock-field.span-2 {
    grid-column: span 1;
  }
}

/* Compact the admin console mocks so one screen fits inside the frame */
.mock-app {
  min-height: 500px;
}
.mock-sidebar {
  padding: 14px 10px 12px;
}
.mock-sb-brand {
  min-height: 44px;
  padding: 0 8px 12px;
}
.mock-nav {
  gap: 2px;
  padding: 12px 0;
}
.mock-nav-item {
  min-height: 32px;
  font-size: 11px;
}
.mock-account,
.mock-sb-footer {
  display: none;
}
.mock-main {
  grid-template-rows: 56px minmax(0, 1fr);
}
.mock-topbar {
  padding: 0 18px;
}
.mock-page-title {
  font-size: 16px;
}
.mock-kicker {
  font-size: 8px;
}
.mock-content {
  padding: 16px 18px 22px;
}
.mock-service {
  min-height: 56px;
  padding: 10px 14px;
}
.mock-service-name {
  font-size: 13px;
}
.mock-service-addr {
  margin-top: 2px;
  font-size: 11px;
}
.mock-metrics {
  gap: 8px;
  margin: 10px 0;
}
.mock-metric {
  min-height: 58px;
  gap: 4px;
  padding: 9px 12px;
}
.mock-metric strong {
  font-size: 15px;
}
.mock-panel {
  margin-top: 10px;
}
.mock-panel-header {
  min-height: 54px;
  padding: 9px 14px;
}
.mock-panel-title {
  font-size: 13px;
}
.mock-panel-note {
  padding: 9px 14px;
  font-size: 11px;
  line-height: 1.55;
}
.mock-summary {
  gap: 8px;
  margin: 10px 0;
}
.mock-summary > div {
  min-height: 50px;
  padding: 8px 12px;
}
.mock-summary strong {
  margin-top: 3px;
  font-size: 13px;
}
.mock-toolbar {
  padding: 8px 14px;
}
.mock-table th {
  height: 30px;
  padding: 6px 11px;
  font-size: 8px;
}
.mock-table td {
  height: 34px;
  padding: 6px 11px;
  font-size: 10px;
}
.mock-form-grid {
  gap: 10px;
  margin-top: 12px;
}
.mock-field input {
  min-height: 32px;
  font-size: 12px;
}
.mock-field small,
.mock-help {
  font-size: 9px;
}
.mock-textarea {
  min-height: 58px;
  font-size: 11px;
}
.mock-btn {
  min-height: 32px;
  padding: 0 10px;
  font-size: 11px;
}
.mock-search {
  min-height: 30px;
  font-size: 10px;
}
.mock-path-btn {
  min-height: 32px;
  font-size: 10px;
}
.mock-modal {
  padding: 16px;
}
.mock-modal-title {
  font-size: 15px;
}
.mock-note-line {
  margin: 10px 0 0;
  font-size: 10px;
}

/* Docs rails: resizable, smaller by default (desktop only) */
.docs-rail-handle {
  display: none;
  position: relative;
  cursor: col-resize;
}
.docs-rail-handle::after {
  content: "";
  position: absolute;
  inset: 0 4px;
  border-radius: 4px;
  background: var(--line);
  opacity: 0.55;
}
.docs-rail-handle:hover::after,
.docs-rail-handle:active::after {
  background: var(--cyan);
  opacity: 0.8;
}
@media (min-width: 1181px) {
  .docs-layout {
    /* Keep the center document wide enough for code and interface previews. */
    grid-template-columns: var(--rail-left, 200px) 12px minmax(0, 1fr) 12px var(--rail-right, 160px);
    column-gap: 0;
  }
  .docs-rail-handle {
    display: block;
    align-self: stretch;
    min-height: 100%;
    z-index: 3;
    touch-action: none;
  }
  .docs-sidebar {
    /* The rail already owns the left edge; do not add a viewport-sized inset. */
    min-width: 0;
    overflow-x: hidden;
    padding: 30px 18px 48px;
  }
  .docs-toc {
    padding: 40px 18px 40px 12px;
  }
  .docs-main {
    width: 100%;
    min-width: 0;
    padding: 50px 44px 90px;
  }
}

/* Keep embedded management UI previews isolated from documentation typography. */
.docs-body .docs-article .ui-mock .mock-sub {
  margin: 0;
  color: #8b9ba0;
  font-size: 12px;
  line-height: normal;
}
.docs-body .docs-article .ui-mock .mock-panel-note {
  margin: 0;
  color: #8b9ba0;
  font-size: 12px;
  line-height: 1.65;
}
.docs-body .docs-article .ui-mock .mock-brand-en strong,
.docs-body .docs-article .ui-mock .mock-account-line strong,
.docs-body .docs-article .ui-mock .mock-panel-note strong {
  color: #eef5f3;
}
.docs-body .docs-article .ui-mock .mock-note-line code {
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #8b9ba0;
  background: transparent;
  font: 10px/1.5 "Cascadia Code", Consolas, monospace;
}

/* Tutorial previews focus on the page being explained; hide the decorative app rail. */
.docs-body .docs-article .ui-mock .mock-app {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-width: 0;
}
.docs-body .docs-article .ui-mock .mock-sidebar {
  display: none;
}
.docs-body .docs-article .ui-mock .mock-main {
  width: 100%;
  min-width: 0;
}

/* More breathing room inside the admin console mocks */
.mock-app {
  min-height: 560px;
}
.mock-nav-item {
  min-height: 36px;
}
.mock-main {
  grid-template-rows: 60px minmax(0, 1fr);
}
.mock-content {
  padding: 20px 22px 28px;
}
.mock-service {
  min-height: 60px;
  padding: 11px 16px;
}
.mock-metric {
  min-height: 64px;
  padding: 10px 14px;
}
.mock-panel {
  margin-top: 14px;
}
.mock-panel-header {
  min-height: 58px;
  padding: 10px 16px;
}
.mock-panel-note {
  padding: 10px 16px;
}
.mock-summary > div {
  min-height: 56px;
  padding: 9px 13px;
}
.mock-toolbar {
  padding: 9px 16px;
}
.mock-table th {
  height: 32px;
  padding: 7px 12px;
}
.mock-table td {
  height: 38px;
  padding: 7px 12px;
  font-size: 11px;
}
.mock-form-grid {
  gap: 12px;
  margin-top: 14px;
}
.mock-field input {
  min-height: 34px;
}
.mock-modal {
  padding: 18px;
}
.mock-modal-actions {
  margin-top: 18px;
}

/* Wider reading column and calmer hierarchy inside tutorial previews. */
@media (min-width: 1181px) {
  .docs-main {
    padding: 50px 28px 90px;
  }
  .docs-article {
    max-width: 1000px;
  }
}

.docs-body .docs-article .ui-mock .mock-topbar {
  min-height: 72px;
  padding: 14px 24px;
  gap: 24px;
}
.docs-body .docs-article .ui-mock .mock-topbar .mock-kicker {
  margin: 0;
  line-height: 1;
}
.docs-body .docs-article .ui-mock .mock-topbar .mock-page-title {
  margin: 5px 0 0;
  font-size: 18px;
  line-height: 1.25;
}
.docs-body .docs-article .ui-mock .mock-topbar-actions {
  min-width: 0;
}
.docs-body .docs-article .ui-mock .mock-content {
  padding: 24px 26px 34px;
}
.docs-body .docs-article .ui-mock .mock-service {
  min-height: 68px;
  padding: 14px 18px;
}
.docs-body .docs-article .ui-mock .mock-metrics,
.docs-body .docs-article .ui-mock .mock-summary {
  gap: 12px;
  margin: 16px 0;
}
.docs-body .docs-article .ui-mock .mock-metric,
.docs-body .docs-article .ui-mock .mock-summary > div {
  min-height: 76px;
  padding: 12px 15px;
}
.docs-body .docs-article .ui-mock .mock-metric strong,
.docs-body .docs-article .ui-mock .mock-summary strong {
  color: #eef5f3;
  line-height: 1.3;
}
.docs-body .docs-article .ui-mock .mock-panel {
  margin-top: 18px;
}
.docs-body .docs-article .ui-mock .mock-panel-header {
  align-items: flex-start;
  flex-wrap: wrap;
  min-height: 72px;
  gap: 24px;
  padding: 14px 18px;
}
.docs-body .docs-article .ui-mock .mock-panel-header > * {
  min-width: 0;
}
.docs-body .docs-article .ui-mock .mock-panel-header .mock-buttons {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.docs-body .docs-article .ui-mock .mock-panel-note {
  padding: 12px 18px;
  line-height: 1.7;
}
.docs-body .docs-article .ui-mock .mock-toolbar {
  padding: 11px 18px;
}
.docs-body .docs-article .ui-mock .mock-table th {
  height: 34px;
  padding: 8px 14px;
}
.docs-body .docs-article .ui-mock .mock-table td {
  height: 40px;
  padding: 8px 14px;
}

@media (max-width: 720px) {
  .docs-body .docs-article .ui-mock .mock-topbar {
    min-height: 104px;
    padding: 12px 16px;
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .docs-body .docs-article .ui-mock .mock-topbar-actions {
    width: 100%;
    justify-content: flex-end;
    gap: 6px;
  }
  .docs-body .docs-article .ui-mock .mock-picker {
    gap: 6px;
  }
  .docs-body .docs-article .ui-mock .mock-select {
    width: 130px;
  }
  .docs-body .docs-article .ui-mock .mock-content {
    padding: 18px 16px 28px;
  }
  .docs-body .docs-article .ui-mock .mock-panel-header {
    padding: 12px 14px;
    gap: 12px;
  }
  .docs-body .docs-article .ui-mock .mock-panel-header .mock-buttons {
    width: 100%;
    justify-content: flex-start;
  }
  .docs-body .docs-article .ui-mock .mock-panel-note {
    padding: 10px 14px;
  }
  .docs-body .docs-article .ui-mock .mock-toolbar {
    padding: 10px 14px;
    flex-wrap: wrap;
  }
}

/* Give dense tutorial previews a real frame instead of letting controls touch
   the panel edge or letting the project modal clip its action row. */
.docs-body .docs-article .ui-mock .mock-content {
  padding-inline: 34px;
}
.docs-body .docs-article .ui-mock .mock-panel > .mock-form-grid {
  box-sizing: border-box;
  width: 100%;
  margin-top: 0;
  padding: 10px 18px 18px;
}
@media (min-width: 721px) {
  .docs-body .docs-article .ui-mock:has(.mock-modal-overlay) .mock-app {
    min-height: 640px;
  }
}
@media (max-width: 720px) {
  .docs-body .docs-article .ui-mock .mock-content {
    padding-inline: 16px;
  }
  .docs-body .docs-article .ui-mock .mock-panel > .mock-form-grid {
    padding: 8px 14px 14px;
  }
}

/* The create-project tutorial mirrors the full three-part project dialog. */
.docs-body .docs-article .ui-mock.project-create-preview:has(.mock-modal-overlay) .mock-app {
    min-height: 1070px;
}
.project-create-preview .mock-modal-overlay {
  align-items: start;
  padding-block: 24px;
}
.project-create-preview .mock-create-project-modal {
  width: min(620px, 100%);
}
.project-create-preview .mock-form-section {
  display: grid;
  gap: 4px;
  padding: 9px 11px;
  border: 1px solid #26343b;
  border-radius: 7px;
  background: rgba(53, 216, 208, 0.035);
}
.project-create-preview .mock-form-section.span-2 {
  grid-column: span 2;
}
.project-create-preview .mock-form-section strong {
  color: #eef5f3;
  font-size: 11px;
}
.project-create-preview .mock-form-section small {
  color: #63747a;
  font-size: 9px;
  line-height: 1.5;
}
.project-create-preview .mock-sync-warning {
  padding: 10px;
  border: 1px solid rgba(232, 184, 103, 0.34);
  border-radius: 7px;
  background: rgba(232, 184, 103, 0.055);
}
.project-create-preview .mock-sync-warning > span {
  color: #e8b867;
}
@media (max-width: 720px) {
  .docs-body .docs-article .ui-mock.project-create-preview:has(.mock-modal-overlay) .mock-app {
      min-height: 1335px;
  }
  .project-create-preview .mock-modal-overlay {
    padding: 14px 10px;
  }
  .project-create-preview .mock-form-section.span-2 {
    grid-column: span 1;
  }
}

/* Warning-yellow term highlight for doc prose; bright gold on dark (matches
   the admin mock's caution color), deeper gold on light for readability. */
.docs-body .warn-yellow {
  color: #a16c06;
}
html[data-theme="dark"] .docs-body .warn-yellow {
  color: #e8b867;
}

/* Directory diagrams: nested lists, guide lines and semantic badges. */
.docs-body .docs-file-tree{margin:24px 0 32px;padding:0;overflow:hidden;border:1px solid var(--line);border-radius:16px;background:var(--surface);container-type:inline-size}
.docs-body .docs-file-tree-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 20px;border-bottom:1px solid var(--line);background:var(--surface-2);color:var(--muted);font-size:12px;line-height:1.5}
.docs-body .docs-file-tree-head strong{color:var(--text);font-size:15px;font-weight:700;line-height:1.5}
.docs-body .docs-file-tree-head>span::before{content:none}
.docs-body .docs-file-tree-body{padding:14px 17px 17px}
.docs-body .docs-file-tree .docs-tree-nodes{list-style:none;margin:0;padding:0}
.docs-body .docs-file-tree .docs-tree-nodes .docs-tree-nodes{margin:2px 0 3px 15px;padding:0 0 0 17px}
.docs-body .docs-file-tree .docs-tree-node{position:relative;list-style:none;margin:0;padding:0}
.docs-body .docs-file-tree .docs-tree-nodes .docs-tree-nodes>.docs-tree-node::before{content:"";position:absolute;left:-17px;top:20px;width:17px;border-top:1px solid var(--line-strong)}
.docs-body .docs-file-tree .docs-tree-nodes .docs-tree-nodes>.docs-tree-node::after{content:"";position:absolute;left:-17px;top:0;bottom:0;border-left:1px solid var(--line-strong)}
.docs-body .docs-file-tree .docs-tree-nodes .docs-tree-nodes>.docs-tree-node:last-child::after{bottom:auto;height:20px}
.docs-body .docs-file-tree-row{display:grid;grid-template-columns:19px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:40px;margin:1px 0;padding:7px 7px;border:0;border-radius:7px;color:var(--text-soft);font-size:13px;line-height:1.6}
.docs-body .docs-file-tree-row.root{margin-bottom:3px;padding:9px 9px;background:var(--surface-2)}
.docs-body .docs-file-tree .tree-icon{display:block;width:19px;height:19px;line-height:1;color:var(--muted-2)}
.docs-body .docs-file-tree .tree-icon svg{display:block;width:19px;height:19px}
.docs-body .docs-file-tree .tree-icon.folder{color:#b48735}
.docs-body .docs-file-tree .tree-icon.file{color:var(--muted-2)}
.docs-body .docs-file-tree .tree-name{min-width:0;overflow-wrap:anywhere;word-break:normal;color:var(--text-soft);font-family:"Cascadia Code",Consolas,monospace;font-size:13px;font-weight:500;line-height:1.65}
.docs-body .docs-file-tree-row:has(.folder) .tree-name{font-weight:650;color:var(--text)}
.docs-body .docs-file-tree .tree-slash{color:var(--muted-2);font-weight:400}
.docs-body .docs-file-tree .tree-note{font-family:inherit;font-size:11px;line-height:1.6;font-weight:500;white-space:normal;color:var(--muted)}
.docs-body .docs-file-tree .tree-tag{justify-self:end;max-width:190px;padding:2px 8px;border:1px solid var(--line);border-radius:6px;background:var(--surface-2)}
.docs-body .docs-file-tree .tag-required{color:#8552bd;border-color:rgba(133,82,189,.16);background:rgba(133,82,189,.07)}
.docs-body .docs-file-tree .tag-sync{color:#16887f;border-color:rgba(22,136,127,.16);background:rgba(22,136,127,.07)}
.docs-body .docs-file-tree .tag-initial{color:#a57421;border-color:rgba(165,116,33,.16);background:rgba(165,116,33,.07)}
.docs-body .docs-file-tree .required-component .tree-name,.docs-body .docs-file-tree .tag-component{color:#cf5864}
.docs-body .docs-file-tree .tag-component{border-color:rgba(207,88,100,.16);background:rgba(207,88,100,.06)}
html[data-theme="dark"] .docs-file-tree .tree-icon.folder{color:#d8b268}
html[data-theme="dark"] .docs-file-tree .tag-required{color:#c2a0f0;background:rgba(194,160,240,.07)}
html[data-theme="dark"] .docs-file-tree .tag-sync{color:#60cfc3;background:rgba(96,207,195,.07)}
html[data-theme="dark"] .docs-file-tree .tag-initial{color:#e0bd7c;background:rgba(224,189,124,.07)}
html[data-theme="dark"] .docs-file-tree .required-component .tree-name,html[data-theme="dark"] .docs-file-tree .tag-component{color:#ed8792}
@container(max-width:500px){
  .docs-body .docs-file-tree-head{align-items:flex-start;flex-direction:column;gap:4px;padding:14px 16px}
  .docs-body .docs-file-tree-body{padding:12px}
  .docs-body .docs-file-tree-row{grid-template-columns:19px minmax(0,1fr);gap:2px 8px;padding:7px 6px}
  .docs-body .docs-file-tree .tree-icon{grid-column:1;grid-row:1;align-self:center}
  .docs-body .docs-file-tree .tree-name{grid-column:2;grid-row:1}
  .docs-body .docs-file-tree .tree-note{grid-column:2;grid-row:2;justify-self:start;margin-bottom:2px;font-size:10px}
  .docs-body .docs-file-tree .docs-tree-nodes .docs-tree-nodes{margin-left:14px;padding-left:14px}
  .docs-body .docs-file-tree .docs-tree-nodes .docs-tree-nodes>.docs-tree-node::before{left:-14px;width:14px}
  .docs-body .docs-file-tree .docs-tree-nodes .docs-tree-nodes>.docs-tree-node::after{left:-14px}
}

.docs-body .docs-article .ui-mock .mock-content {
  container-type: inline-size;
}
.docs-body .docs-article .ui-mock .mock-summary > div {
  min-width: 0;
  overflow: hidden;
}
.docs-body .docs-article .ui-mock .mock-summary > div > * {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@container (max-width: 720px) {
  .docs-body .docs-article .ui-mock .mock-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@container (max-width: 380px) {
  .docs-body .docs-article .ui-mock .mock-summary {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Management UI illustration for the two force-sync granularities. */
.docs-body .sync-rule-preview {
  margin: 30px 0 28px;
  overflow: hidden;
  border: 1px solid #2b4147;
  border-radius: 18px;
  color: #ecf4f0;
  background: #0b1519;
  box-shadow: 0 18px 44px rgba(10, 20, 22, .14);
}
.docs-body .sync-rule-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid #23343a;
}
.docs-body .sync-rule-kicker {
  display: block;
  color: #719498;
  font: 700 10px/1.2 "Cascadia Code", Consolas, monospace;
  letter-spacing: .13em;
}
.docs-body .sync-rule-preview-head h3 {
  margin: 7px 0 0;
  color: #f2f5ee;
  font-size: 19px;
  line-height: 1.25;
}
.docs-body .sync-rule-project {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid #2b4147;
  border-radius: 8px;
  color: #b9c8c4;
  font-size: 12px;
}
.docs-body .sync-rule-preview-note {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 13px 22px;
  border-bottom: 1px solid #23343a;
  background: rgba(36, 62, 64, .28);
  color: #9aada9;
  font-size: 12px;
  line-height: 1.65;
}
.docs-body .sync-rule-preview-note strong {
  flex: 0 0 auto;
  color: #4de6dc;
  font-size: 12px;
}
.docs-body .sync-rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 18px 18px;
}
.docs-body .sync-rule-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid #263b41;
  border-radius: 12px;
  background: #111f24;
}
.docs-body .sync-rule-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.docs-body .sync-rule-card-head > div {
  min-width: 0;
}
.docs-body .sync-rule-label {
  display: block;
  color: #839b9a;
  font-size: 11px;
  line-height: 1.4;
}
.docs-body .sync-rule-card-head strong {
  display: block;
  min-width: 0;
  margin-top: 6px;
  overflow-wrap: anywhere;
  color: #f1f5ed;
  font: 700 14px/1.45 "Cascadia Code", Consolas, monospace;
}
.docs-body .sync-rule-state {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid rgba(77, 230, 220, .36);
  border-radius: 999px;
  color: #4de6dc;
  font-size: 10px;
  white-space: nowrap;
}
.docs-body .sync-rule-path {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin-top: 14px;
  padding: 10px 11px;
  border: 1px solid #2a4248;
  border-radius: 8px;
  background: #0b171b;
}
.docs-body .sync-rule-folder {
  flex: 0 0 auto;
  color: #e8b867;
  font-size: 10px;
}
.docs-body .sync-rule-path code {
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow-wrap: anywhere;
  color: #e7efeb;
  border: 0;
  background: transparent;
  font: 700 12px/1.45 "Cascadia Code", Consolas, monospace;
}
.docs-body .sync-rule-toggle {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 30px;
  height: 18px;
  margin-left: auto;
  border-radius: 999px;
  background: #218b86;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.docs-body .sync-rule-toggle i {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #dffcf6;
}
.docs-body .sync-rule-card p {
  margin: 12px 0 0;
  color: #9aada9;
  font-size: 12px;
  line-height: 1.7;
}
.docs-body .sync-rule-hint {
  display: block;
  margin-top: 12px;
  color: #d4a653;
  font-size: 11px;
  line-height: 1.5;
}
.docs-body .sync-rule-preview-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 12px 22px 15px;
  border-top: 1px solid #23343a;
  color: #728a89;
  font-size: 11px;
}
.docs-body .sync-rule-preview-foot span::before {
  content: "✓";
  margin-right: 6px;
  color: #4de6dc;
}
@media (max-width: 720px) {
  .docs-body .sync-rule-preview-head,
  .docs-body .sync-rule-preview-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .docs-body .sync-rule-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 480px) {
  .docs-body .sync-rule-preview-head,
  .docs-body .sync-rule-preview-note {
    padding-left: 16px;
    padding-right: 16px;
  }
  .docs-body .sync-rule-grid {
    padding: 12px;
  }
  .docs-body .sync-rule-preview-foot {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Match the real admin controls used for directory/file force-sync settings. */
.docs-body .sync-rule-preview {
  padding: 0;
  border: 1px solid rgba(232, 184, 103, .56);
  border-left: 4px solid #e8b867;
  border-radius: 14px;
  background: #0b1519;
}
.docs-body .sync-rule-panel + .sync-rule-panel {
  border-top: 1px solid #2b3b40;
}
.docs-body .sync-rule-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px 16px;
  border-bottom: 1px solid #2b3b40;
  background: rgba(232, 184, 103, .05);
}
.docs-body .sync-rule-panel-head h3 {
  margin: 0;
  color: #e8b867;
  font-size: 17px;
  line-height: 1.4;
}
.docs-body .sync-rule-panel-head p {
  margin: 5px 0 0;
  color: #879c9e;
  font-size: 12px;
  line-height: 1.4;
}
.docs-body .sync-rule-panel-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.docs-body .sync-rule-button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid #2b4147;
  border-radius: 8px;
  color: #94a9a8;
  background: #101f25;
  font: 700 12px/1 "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  white-space: nowrap;
}
.docs-body .sync-rule-button.primary {
  border-color: #e8b867;
  color: #172023;
  background: #e8b867;
}
.docs-body .sync-rule-search {
  box-sizing: border-box;
  width: min(300px, 100%);
  min-width: 150px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #2b4147;
  border-radius: 8px;
  outline: 0;
  color: #e7efeb;
  background: #081217;
  font: 12px/1 "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
}
.docs-body .sync-rule-search::placeholder {
  color: #718689;
}
.docs-body .sync-rule-panel-note {
  margin: 0;
  padding: 15px 20px;
  border-bottom: 1px solid #2b3b40;
  color: #84999a;
  background: #0d1a1f;
  font-size: 12px;
  line-height: 1.75;
}
.docs-body .sync-rule-panel-note strong {
  color: #e8b867;
}
.docs-body .sync-rule-select-all {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 15px 20px;
  border-bottom: 1px solid #2b3b40;
  color: #91a5a5;
  font-size: 12px;
}
.docs-body .sync-rule-select-all input,
.docs-body .sync-rule-checkbox input {
  width: 18px;
  height: 18px;
  margin: 0 4px 0 0;
  accent-color: #e8b867;
}
.docs-body .sync-rule-select-all strong {
  color: #e9f0eb;
  font-size: 13px;
}
.docs-body .sync-rule-table {
  overflow: hidden;
}
.docs-body .sync-rule-table-head,
.docs-body .sync-rule-table-row {
  display: grid;
  align-items: center;
  min-width: 0;
}
.docs-body .sync-rule-dir-grid,
.docs-body .sync-rule-file-grid {
  grid-template-columns: 52px minmax(165px, 1.15fr) minmax(165px, 1.35fr) 62px;
}
.docs-body .sync-rule-table-head {
  min-height: 43px;
  padding: 0 20px;
  color: #71898b;
  font-size: 11px;
  font-weight: 700;
  background: #0b171b;
}
.docs-body .sync-rule-table-row {
  min-height: 58px;
  padding: 0 20px;
  border-top: 1px solid #26363b;
  color: #90a5a4;
  font-size: 11px;
  background: #102126;
}
.docs-body .sync-rule-table-row > * {
  min-width: 0;
}
.docs-body .sync-rule-table-row > strong {
  color: #d9e4de;
  font-size: 11px;
  line-height: 1.45;
}
.docs-body .sync-rule-checkbox {
  display: flex;
  align-items: center;
}
.docs-body .sync-rule-entry {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}
.docs-body .sync-rule-entry strong {
  color: #e8efea;
  font: 700 13px/1.4 "Cascadia Code", Consolas, monospace;
}
.docs-body .sync-rule-entry em {
  color: #71898b;
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}
.docs-body .sync-rule-chevron {
  flex: 0 0 12px;
  color: #8ba2a1;
  font: 700 18px/1 Arial, sans-serif;
  font-style: normal;
  text-align: center;
}
.docs-body .sync-rule-folder-mark {
  position: relative;
  display: inline-block;
  flex: 0 0 22px;
  width: 22px;
  height: 14px;
  border: 2px solid #e8b867;
  border-radius: 2px;
  box-sizing: border-box;
}
.docs-body .sync-rule-folder-mark::before {
  position: absolute;
  top: -5px;
  left: 1px;
  width: 9px;
  height: 5px;
  border: 2px solid #e8b867;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  content: "";
}
.docs-body .sync-rule-panel-foot {
  margin: 0;
  padding: 13px 20px 15px;
  border-top: 1px solid #2b3b40;
  color: #b49b72;
  background: rgba(232, 184, 103, .07);
  font-size: 11px;
  line-height: 1.65;
}
@media (max-width: 760px) {
  .docs-body .sync-rule-panel-head {
    flex-direction: column;
    gap: 12px;
  }
  .docs-body .sync-rule-panel-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .docs-body .sync-rule-search {
    flex: 1 1 190px;
  }
}
@media (max-width: 560px) {
  .docs-body .sync-rule-panel-head,
  .docs-body .sync-rule-panel-note,
  .docs-body .sync-rule-select-all,
  .docs-body .sync-rule-panel-foot {
    padding-left: 14px;
    padding-right: 14px;
  }
  .docs-body .sync-rule-dir-grid,
  .docs-body .sync-rule-file-grid {
    grid-template-columns: 38px minmax(0, 1.2fr) minmax(0, 1fr) 52px;
  }
  .docs-body .sync-rule-table-head,
  .docs-body .sync-rule-table-row {
    padding-left: 14px;
    padding-right: 14px;
  }
  .docs-body .sync-rule-table-head {
    font-size: 10px;
  }
  .docs-body .sync-rule-table-row > strong,
  .docs-body .sync-rule-entry em {
    font-size: 10px;
  }
  .docs-body .sync-rule-entry strong {
    font-size: 12px;
  }
}

.tutorial-transfer-demo{padding:24px;background:var(--surface);color:var(--text)}.tutorial-transfer-demo h3{margin-top:8px}.tutorial-transfer-demo small{color:var(--muted)}

/* Tutorial cards share the cyan, violet and amber accents from the homepage. */
.docs-body .doc-mode-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:28px 0 36px}
.docs-body .doc-mode-card{--mode-accent:#12a99f;--mode-tint:rgba(18,169,159,.08);position:relative;display:flex;flex-direction:column;overflow:hidden;padding:24px 20px 20px;border:1px solid var(--line);border-radius:20px;background:linear-gradient(145deg,var(--mode-tint),transparent 65%),var(--surface);box-shadow:0 8px 32px rgba(0,0,0,.035)}
.docs-body .doc-mode-card::before{content:"";position:absolute;left:20px;right:20px;top:0;height:3px;border-radius:4px;background:var(--mode-accent)}
.docs-body .mode-required{--mode-accent:#9063cf;--mode-tint:rgba(144,99,207,.08)}
.docs-body .mode-initial{--mode-accent:#b88027;--mode-tint:rgba(184,128,39,.08)}
.doc-mode-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.doc-mode-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:var(--mode-tint);color:var(--mode-accent);font-size:25px;font-weight:700}
.doc-mode-tag{color:var(--mode-accent);font-size:12px;font-weight:700;padding:4px 9px;border:1px solid var(--mode-accent);border-radius:999px;white-space:nowrap}
.docs-body .doc-mode-card h3{margin:0 0 10px;font-size:22px;line-height:1.3}
.docs-body .doc-mode-card p{font-size:14px;line-height:1.8;margin:12px 0;color:var(--muted)}
.docs-body .doc-mode-card .doc-mode-intro{margin:0 0 18px;min-height:50px;color:var(--text);font-weight:600}
.doc-mode-behavior{display:flex;flex-wrap:wrap;gap:6px 8px;padding:11px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);color:var(--mode-accent);font-size:12px;font-weight:700}
.doc-mode-behavior i{font-style:normal;opacity:.45}
.doc-mode-player{display:grid;gap:5px;margin-top:auto;padding-top:12px;font-size:13px;line-height:1.75;color:var(--muted)}
.doc-mode-player b{color:var(--text)}
.doc-mode-card footer{margin-top:16px;padding-top:13px;border-top:1px solid var(--line);font-size:12px;line-height:1.75;color:var(--muted)}
.doc-version-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:24px 0 28px}
.doc-version-grid section{padding:22px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(135deg,rgba(46,232,223,.055),rgba(176,108,255,.035)),var(--surface)}
.doc-version-grid section>span{font-size:12px;color:var(--muted)}
.docs-body .doc-version-grid h3{font-size:19px;margin:8px 0 14px}
.doc-version-grid strong{font-size:34px;line-height:1;color:#12a99f;letter-spacing:-1px}
.docs-body .doc-version-grid p{font-size:13px;line-height:1.75;margin:14px 0 0}
.docs-body .doc-release-list{list-style:none;padding:0;margin:26px 0}
.docs-body .doc-release-list li{position:relative;padding:12px 16px 12px 27px;margin:0;border-left:2px solid var(--line)}
.docs-body .doc-release-list li::before{content:"";position:absolute;left:-5px;top:24px;width:8px;height:8px;border-radius:50%;background:#12a99f;box-shadow:0 0 0 4px var(--bg)}
html[data-theme="dark"] .mode-sync{--mode-accent:#2ee8df;--mode-tint:rgba(46,232,223,.075)}
html[data-theme="dark"] .mode-required{--mode-accent:#ba8dff;--mode-tint:rgba(186,141,255,.075)}
html[data-theme="dark"] .mode-initial{--mode-accent:#efc779;--mode-tint:rgba(239,199,121,.075)}
html[data-theme="dark"] .doc-version-grid strong{color:#2ee8df}
@media(max-width:1400px){.docs-body .doc-mode-grid,.doc-version-grid{grid-template-columns:1fr}.docs-body .doc-mode-card{padding:24px}.docs-body .doc-mode-card .doc-mode-intro{min-height:0}.doc-mode-top{margin-bottom:12px}.doc-mode-player{margin-top:0}}

.docs-body .docs-file-tree .tree-icon img{display:block;width:21px;height:21px;object-fit:contain}.docs-body .docs-file-tree .tree-icon{width:21px;height:21px}.docs-body .docs-file-tree-row{grid-template-columns:21px minmax(0,1fr) auto}
