/* Route-scoped RTLCode presentation; functional components remain native. */
#rtlcode-auth-chrome { display: none; }
#rtlcode-public-chrome, #rtlcode-home { display: none; }
html[data-rtlcode-auth="true"] {
  --rtl-paper: #f8f9f5;
  --rtl-ink: #1b2b23;
  --rtl-muted: #738077;
  --rtl-line: #dce2d9;
  --rtl-field: #fff;
  --rtl-accent: #c9f17d;
  --rtl-link: #35604a;
  color-scheme: light;
}
html.dark[data-rtlcode-auth="true"] {
  --rtl-paper: #18211c;
  --rtl-ink: #ecf1e9;
  --rtl-muted: #a1afa5;
  --rtl-line: #3b493f;
  --rtl-field: #202d25;
  --rtl-link: #c9f17d;
  color-scheme: dark;
}
html[data-rtlcode-auth="true"] body { background: var(--rtl-paper); color: var(--rtl-ink); }
html[data-rtlcode-auth="true"] #rtlcode-auth-chrome { display: block; }
html[data-rtlcode-auth="true"] #rtlcode-auth-chrome .rtl-zh { display: none; }
html[data-rtlcode-auth="true"][lang^="zh"] #rtlcode-auth-chrome .rtl-zh { display: inline; }
html[data-rtlcode-auth="true"][lang^="zh"] #rtlcode-auth-chrome .rtl-en { display: none; }
html[data-rtlcode-auth="true"] .rtl-rail {
  position: fixed; inset: 0 auto 0 0; width: 45%; padding: 42px 48px 32px;
  background: #142019; color: #f0f5e9; display: flex; flex-direction: column;
  overflow: hidden; z-index: 1;
}
html[data-rtlcode-auth="true"] .rtl-rail::after {
  content: ''; position: absolute; width: 460px; height: 460px; border: 1px solid #29382b;
  border-radius: 50%; right: -300px; bottom: -250px; pointer-events: none;
  box-shadow: 0 0 0 65px #142019, 0 0 0 66px #253428, 0 0 0 131px #142019, 0 0 0 132px #213125;
}
html[data-rtlcode-auth="true"] .rtl-wordmark { display: inline-flex; align-items: center; gap: 12px; width: fit-content; text-decoration: none; }
html[data-rtlcode-auth="true"] .rtl-wordmark > span { color: #f2f5ec; font-size: 26px; font-weight: 720; letter-spacing: -1.1px; }
html[data-rtlcode-auth="true"] .rtl-brand-dot { color: #c9f17d; }
html[data-rtlcode-auth="true"] .rtl-rail-index { position: absolute; top: 59px; right: 42px; color: #91a48b; font: 9px ui-monospace, monospace; letter-spacing: 1.5px; }
html[data-rtlcode-auth="true"] .rtl-story { margin: auto 0; padding: 48px 0 28px; position: relative; z-index: 2; }
html[data-rtlcode-auth="true"] .rtl-eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 28px; color: #c9f17d; font-size: 11px; letter-spacing: 2.2px; }
html[data-rtlcode-auth="true"] .rtl-eyebrow > span:first-child { width: 6px; height: 6px; background: #c9f17d; border-radius: 50%; }
html[data-rtlcode-auth="true"] .rtl-story h1 { margin: 0; font-size: clamp(43px, 4.1vw, 68px); font-weight: 650; line-height: 1.21; letter-spacing: -2.5px; }
html[data-rtlcode-auth="true"] .rtl-story h1 em { color: #c9f17d; font-style: normal; }
html[data-rtlcode-auth="true"] .rtl-story-copy { margin: 25px 0 36px; font-size: 14px; line-height: 1.9; color: #a3b39f; }
html[data-rtlcode-auth="true"] .rtl-art { width: 100%; max-width: 370px; border: 1px solid #3d4d39; background: #1c2a1f; border-radius: 12px; font: 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow: hidden; box-shadow: 0 18px 40px #0d160d30; transform: rotate(-2deg); }
html[data-rtlcode-auth="true"] .rtl-art-heading { display: flex; justify-content: space-between; align-items: center; height: 42px; padding: 0 18px; border-bottom: 1px solid #33432f; color: #a2b49a; font-size: 10px; }
html[data-rtlcode-auth="true"] .rtl-art-dots { display: flex; gap: 5px; }
html[data-rtlcode-auth="true"] .rtl-art-dots i { width: 5px; height: 5px; border-radius: 50%; background: #607558; }
html[data-rtlcode-auth="true"] .rtl-art-line { display: flex; align-items: center; gap: 17px; padding: 0 23px; margin-top: 23px; color: #607558; font-size: 11px; }
html[data-rtlcode-auth="true"] .rtl-art-line + .rtl-art-line { margin-top: 12px; }
html[data-rtlcode-auth="true"] .rtl-art-muted { color: #afbea6; }
html[data-rtlcode-auth="true"] .rtl-art-rule { width: 95px; height: 4px; border-radius: 4px; background: #34472d; }
html[data-rtlcode-auth="true"] .rtl-art-rule-short { width: 65px; }
html[data-rtlcode-auth="true"] .rtl-art-command { display: flex; gap: 10px; padding: 26px 24px 27px; color: #d4eeaf; font-size: 14px; }
html[data-rtlcode-auth="true"] .rtl-art-command > span:first-child { color: #8ba074; }
html[data-rtlcode-auth="true"] .rtl-caret { margin-left: -9px; color: #c9f17d; }
html[data-rtlcode-auth="true"] .rtl-art-bottom { display: flex; justify-content: space-between; padding: 11px 18px; border-top: 1px solid #33432f; font-size: 8px; letter-spacing: 1.6px; color: #829779; }
html[data-rtlcode-auth="true"] .rtl-rail-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 10px; color: #95a68f; position: relative; z-index: 2; }
html[data-rtlcode-auth="true"] .rtl-toolbar { position: absolute; top: 42px; right: 42px; z-index: 10; display: flex; align-items: center; gap: 12px; }
html[data-rtlcode-auth="true"] .rtl-preferences { display: flex; align-items: center; gap: 12px; }
html[data-rtlcode-auth="true"] .rtl-preferences button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 6px 8px; color: var(--rtl-muted); background: transparent; border: 0; border-radius: 7px; font-size: 12px; cursor: pointer; }
html[data-rtlcode-auth="true"] .rtl-preferences button:hover { color: var(--rtl-ink); background: color-mix(in srgb, var(--rtl-line) 45%, transparent); }
html[data-rtlcode-auth="true"] .rtl-preferences button:focus-visible { outline: 2px solid var(--rtl-link); outline-offset: 3px; }
html[data-rtlcode-auth="true"] .rtl-toolbar-divider { width: 1px; height: 15px; background: var(--rtl-line); }
html[data-rtlcode-auth="true"] .rtl-mobile-brand { display: none; }
html[data-rtlcode-auth="true"] .rtl-sun { display: none; }
html.dark[data-rtlcode-auth="true"] .rtl-sun { display: block; }
html.dark[data-rtlcode-auth="true"] .rtl-moon { display: none; }
/* The native form and its event handlers stay in place, including conditional flows. */
html[data-rtlcode-auth="true"] #app [data-rtl-auth-shell],
html[data-rtlcode-auth="true"] #app > .min-h-screen.items-center.justify-center {
  margin-left: 45%; width: 55%; min-height: 100vh; min-height: 100svh; padding: 116px 48px 64px;
  background: transparent; overflow: visible; align-items: center;
}
html[data-rtlcode-auth="true"] #app [data-rtl-auth-shell] > .absolute,
html[data-rtlcode-auth="true"] #app > .min-h-screen.items-center.justify-center > .absolute { display: none; }
html[data-rtlcode-auth="true"] #app [data-rtl-auth-content],
html[data-rtlcode-auth="true"] #app > .min-h-screen.items-center.justify-center > .relative.z-10 { width: 100%; max-width: 400px; }
html[data-rtlcode-auth="true"] #app [data-rtl-auth-original-brand],
html[data-rtlcode-auth="true"] #app [data-rtl-auth-copyright],
html[data-rtlcode-auth="true"] #app > .min-h-screen.items-center.justify-center > .relative.z-10 > .mb-8.text-center,
html[data-rtlcode-auth="true"] #app > .min-h-screen.items-center.justify-center > .relative.z-10 > .mt-8.text-center.text-xs { display: none; }
html[data-rtlcode-auth="true"] #app .card-glass { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
html[data-rtlcode-auth="true"] #app .card-glass > .space-y-6 > .text-center:first-child { text-align: left; margin-bottom: 34px; }
html[data-rtlcode-auth="true"] #app .card-glass h2 { color: var(--rtl-ink); font-size: 29px; letter-spacing: -0.8px; font-weight: 650; line-height: 1.4; }
html[data-rtlcode-auth="true"] #app .card-glass h2 + p { margin-top: 9px; color: var(--rtl-muted); line-height: 1.7; }
html[data-rtlcode-auth-page="/login"] #app .card-glass h2 + p,
html[data-rtlcode-auth-page="/register"] #app .card-glass h2 + p { font-size: 0; }
html[data-rtlcode-auth-page="/login"] #app .card-glass h2 + p::after { content: 'Sign in to your RTLCode account.'; font-size: 14px; }
html[data-rtlcode-auth-page="/register"] #app .card-glass h2 + p::after { content: 'Create your RTLCode account and start building.'; font-size: 14px; }
html[data-rtlcode-auth-page="/login"][lang^="zh"] #app .card-glass h2 + p::after { content: '登录你的 RTLCode 账户，继续创造。'; }
html[data-rtlcode-auth-page="/register"][lang^="zh"] #app .card-glass h2 + p::after { content: '创建 RTLCode 账户，开启你的 AI 工作流。'; }
html[data-rtlcode-auth="true"] #app .input-label { margin-bottom: 9px; color: var(--rtl-ink); font-size: 13px; font-weight: 550; }
html[data-rtlcode-auth="true"] #app .input { min-height: 50px; background: var(--rtl-field); border: 1px solid var(--rtl-line); border-radius: 9px; color: var(--rtl-ink); font-size: 15px; box-shadow: 0 1px 2px #14201903; }
html[data-rtlcode-auth="true"] #app .input::placeholder { color: var(--rtl-muted); opacity: .8; }
html[data-rtlcode-auth="true"] #app .input:focus { border-color: #739862; outline: 2px solid #9abf7628; outline-offset: 1px; --tw-ring-shadow: 0 0 #0000; }
html[data-rtlcode-auth="true"] #app .input.input-error { border-color: #dc5454; }
html[data-rtlcode-auth="true"] #app .input-hint { color: var(--rtl-muted); font-size: 12px; }
html[data-rtlcode-auth="true"] #app .card-glass .text-gray-500,
html[data-rtlcode-auth="true"] #app [data-rtl-auth-content] > .mt-6 p { color: var(--rtl-muted); }
html[data-rtlcode-auth="true"] #app .card-glass [class*="text-primary-"],
html[data-rtlcode-auth="true"] #app [data-rtl-auth-content] > .mt-6 a { color: var(--rtl-link); }
html[data-rtlcode-auth="true"] #app .btn { min-height: 48px; border-radius: 9px; font-weight: 600; }
html[data-rtlcode-auth="true"] #app .btn-primary { background: var(--rtl-accent); border: 1px solid var(--rtl-accent); color: #1b2b16; box-shadow: none; --tw-ring-color: #9abf76; }
html[data-rtlcode-auth="true"] #app .btn-primary:hover:not(:disabled) { background: #bce76f; border-color: #bce76f; box-shadow: none; }
html[data-rtlcode-auth="true"] #app .btn-primary svg { color: #1b2b16; }
html[data-rtlcode-auth="true"] #app .btn-secondary { border-color: var(--rtl-line); background: var(--rtl-field); color: var(--rtl-ink); box-shadow: none; }
html[data-rtlcode-auth="true"] #app [data-rtl-auth-content] > .mt-6 { margin-top: 29px; font-size: 13px; }
@media (min-width: 1500px) {
  html[data-rtlcode-auth="true"] .rtl-rail { padding-left: 64px; padding-right: 64px; }
  html[data-rtlcode-auth="true"] .rtl-story { max-width: 440px; margin-left: auto; margin-right: auto; width: 100%; }
}
@media (max-width: 1100px) and (min-width: 801px) {
  html[data-rtlcode-auth="true"] .rtl-rail { width: 42%; padding: 32px; }
  html[data-rtlcode-auth="true"] .rtl-rail-index { display: none; }
  html[data-rtlcode-auth="true"] .rtl-story h1 { font-size: 44px; }
  html[data-rtlcode-auth="true"] .rtl-story-copy { font-size: 12px; }
  html[data-rtlcode-auth="true"] .rtl-art-command { font-size: 11px; }
  html[data-rtlcode-auth="true"] #app [data-rtl-auth-shell],
  html[data-rtlcode-auth="true"] #app > .min-h-screen.items-center.justify-center { margin-left: 42%; width: 58%; padding-left: 36px; padding-right: 36px; }
}
@media (max-height: 760px) and (min-width: 801px) {
  html[data-rtlcode-auth="true"] .rtl-story { padding-top: 32px; }
  html[data-rtlcode-auth="true"] .rtl-story h1 { font-size: 44px; }
  html[data-rtlcode-auth="true"] .rtl-eyebrow { margin-bottom: 18px; }
  html[data-rtlcode-auth="true"] .rtl-story-copy { margin: 20px 0 26px; }
  html[data-rtlcode-auth="true"] .rtl-art-line { margin-top: 16px; }
  html[data-rtlcode-auth="true"] .rtl-art-command { padding-top: 20px; padding-bottom: 20px; }
}
@media (max-width: 800px) {
  html[data-rtlcode-auth="true"] .rtl-rail { display: none; }
  html[data-rtlcode-auth="true"] .rtl-toolbar { position: absolute; top: 24px; left: 24px; right: 24px; justify-content: space-between; }
  html[data-rtlcode-auth="true"] .rtl-mobile-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--rtl-ink); font-size: 20px; font-weight: 700; letter-spacing: -1px; }
  html[data-rtlcode-auth="true"] .rtl-preferences { gap: 7px; }
  html[data-rtlcode-auth="true"] .rtl-preferences button { padding-left: 4px; padding-right: 4px; }
  html[data-rtlcode-auth="true"] #app [data-rtl-auth-shell],
  html[data-rtlcode-auth="true"] #app > .min-h-screen.items-center.justify-center { margin-left: 0; width: 100%; padding: 125px 26px 48px; }
  html[data-rtlcode-auth="true"] #app .input { font-size: 16px; }
  html[data-rtlcode-auth="true"] #app .card-glass h2 { font-size: 27px; }
}
@media (max-width: 360px) {
  html[data-rtlcode-auth="true"] .rtl-toolbar { left: 18px; right: 18px; }
  html[data-rtlcode-auth="true"] .rtl-mobile-brand { font-size: 18px; }
  html[data-rtlcode-auth="true"] .rtl-preferences { gap: 2px; }
  html[data-rtlcode-auth="true"] #app [data-rtl-auth-shell],
  html[data-rtlcode-auth="true"] #app > .min-h-screen.items-center.justify-center { padding-left: 20px; padding-right: 20px; }
}

/* Public pages share the brand, while native tools and document content stay intact. */
html[data-rtlcode-public] { --rtl-paper:#f8f9f5; --rtl-ink:#1b2b23; --rtl-muted:#738077; --rtl-line:#dce2d9; --rtl-field:#fff; --rtl-accent:#c9f17d; --rtl-link:#35604a; color-scheme:light; }
html.dark[data-rtlcode-public] { --rtl-paper:#18211c; --rtl-ink:#ecf1e9; --rtl-muted:#a1afa5; --rtl-line:#3b493f; --rtl-field:#202d25; --rtl-link:#c9f17d; color-scheme:dark; }
html[data-rtlcode-public] body { display:flex; flex-direction:column; min-height:100vh; min-height:100svh; background:var(--rtl-paper); color:var(--rtl-ink); }
html[data-rtlcode-public] #rtlcode-public-chrome { display:contents; }
html[data-rtlcode-public] #rtlcode-public-chrome .rtl-zh { display:none; }
html[data-rtlcode-public][lang^="zh"] #rtlcode-public-chrome .rtl-zh { display:inline; }
html[data-rtlcode-public][lang^="zh"] #rtlcode-public-chrome .rtl-en { display:none; }
html[data-rtlcode-public] [hidden] { display:none !important; }
html[data-rtlcode-public] .rtl-public-header { order:-1; width:min(1200px,100%); margin:0 auto; padding:30px 40px; display:flex; justify-content:space-between; align-items:center; gap:24px; }
html[data-rtlcode-public] .rtl-public-brand { display:inline-flex; align-items:center; gap:10px; color:var(--rtl-ink); text-decoration:none; font-size:25px; font-weight:720; letter-spacing:-1px; white-space:nowrap; }
html[data-rtlcode-public] .rtl-public-dot { color:#78a243; }
html[data-rtlcode-public] .rtl-public-nav { display:flex; align-items:center; gap:24px; font-size:13px; }
html[data-rtlcode-public] .rtl-public-nav a, html[data-rtlcode-public] .rtl-public-nav button { color:var(--rtl-muted); text-decoration:none; }
html[data-rtlcode-public] .rtl-public-nav button { border:0; background:none; cursor:pointer; padding:8px 0; min-width:28px; }
html[data-rtlcode-public] .rtl-public-nav [data-rtl-theme] { font-size:23px; line-height:1; }
html[data-rtlcode-public] .rtl-public-nav .rtl-public-signin { background:var(--rtl-ink); color:var(--rtl-paper); padding:10px 20px; border-radius:8px; font-weight:600; }
html[data-rtlcode-public] .rtl-public-nav a:hover, html[data-rtlcode-public] .rtl-public-nav button:hover { color:var(--rtl-link); }
html[data-rtlcode-public] .rtl-public-nav .rtl-public-signin:hover { background:var(--rtl-link); color:var(--rtl-paper); }
html[data-rtlcode-public] #rtlcode-home { width:min(1200px,100%); padding:0 40px; margin:0 auto; flex:1; }
html[data-rtlcode-public-page="home"] #rtlcode-home { display:block; }
html[data-rtlcode-public-page="home"] #app { display:none; }
html[data-rtlcode-public] .rtl-home-hero { display:grid; grid-template-columns:1.05fr 1fr; gap:70px; align-items:center; min-height:620px; padding:70px 0 80px; }
html[data-rtlcode-public] .rtl-home-eyebrow { font:10px ui-monospace,monospace; letter-spacing:2.3px; color:var(--rtl-link); display:flex; align-items:center; gap:10px; margin-bottom:28px; }
html[data-rtlcode-public] .rtl-home-eyebrow > span { width:6px; height:6px; border-radius:50%; background:#83ac4d; }
html[data-rtlcode-public] .rtl-home-copy h1 { font-size:clamp(48px,5vw,72px); line-height:1.19; font-weight:670; letter-spacing:-2.8px; }
html[data-rtlcode-public] .rtl-home-copy h1 em { font-style:normal; color:var(--rtl-link); }
html[data-rtlcode-public] .rtl-home-description { margin:27px 0 30px; font-size:15px; line-height:1.9; color:var(--rtl-muted); }
html[data-rtlcode-public] .rtl-home-actions { display:flex; align-items:center; gap:26px; flex-wrap:wrap; }
html[data-rtlcode-public] .rtl-home-primary { display:inline-flex; align-items:center; justify-content:space-between; gap:34px; background:var(--rtl-accent); color:#1b2b16; padding:15px 23px; min-width:160px; border-radius:9px; font-size:14px; font-weight:650; text-decoration:none; }
html[data-rtlcode-public] .rtl-home-primary:hover { background:#bce76f; }
html[data-rtlcode-public] .rtl-home-register { color:var(--rtl-ink); display:inline-flex; align-items:center; gap:18px; text-decoration:none; font-size:13px; }
html[data-rtlcode-public] .rtl-home-note { margin-top:24px; font-size:11px; color:var(--rtl-muted); }
html[data-rtlcode-public] .rtl-home-studio { background:#142019; border:1px solid #30402e; border-radius:16px; color:#ecf4df; box-shadow:0 30px 55px #14201916; transform:rotate(-2deg); overflow:hidden; }
html[data-rtlcode-public] .rtl-studio-top { display:flex; align-items:center; justify-content:space-between; padding:18px 22px; border-bottom:1px solid #33432e; font:10px ui-monospace,monospace; color:#a7b69b; }
html[data-rtlcode-public] .rtl-studio-dots { color:#71875f; font-size:9px; letter-spacing:3px; }
html[data-rtlcode-public] .rtl-studio-content { padding:32px 32px 20px; font:12px ui-monospace,monospace; color:#71875f; }
html[data-rtlcode-public] .rtl-studio-content p { display:flex; align-items:center; gap:23px; margin-bottom:18px; }
html[data-rtlcode-public] .rtl-studio-content p > span { color:#bdcca8; min-width:60px; }
html[data-rtlcode-public] .rtl-studio-content i { background:#354a2d; width:90px; height:5px; border-radius:4px; }
html[data-rtlcode-public] .rtl-studio-content p:nth-child(3) i { width:55px; }
html[data-rtlcode-public] .rtl-studio-prompt { color:#d0ef9c; font-size:18px; margin-top:32px; margin-bottom:14px; letter-spacing:-.4px; }
html[data-rtlcode-public] .rtl-studio-prompt > span { color:#c9f17d; }
html[data-rtlcode-public] .rtl-studio-endpoint { margin:0 23px 24px; padding:17px 16px 14px; border:1px solid #3a4b31; border-radius:8px; background:#1c2b1d; }
html[data-rtlcode-public] .rtl-studio-endpoint > span:first-child { color:#97ae80; font:8px ui-monospace,monospace; letter-spacing:1.6px; }
html[data-rtlcode-public] .rtl-studio-endpoint > div { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:12px; }
html[data-rtlcode-public] .rtl-studio-endpoint code { font:12px ui-monospace,monospace; color:#d7e7c6; overflow-wrap:anywhere; }
html[data-rtlcode-public] #rtl-copy-endpoint { padding:5px 8px; border:1px solid #526441; color:#c4d7ad; border-radius:5px; background:transparent; cursor:pointer; font-size:10px; white-space:nowrap; }
html[data-rtlcode-public] #rtl-copy-status { display:block; font-size:10px; color:#c9f17d; }
html[data-rtlcode-public] .rtl-studio-bottom { border-top:1px solid #33432e; padding:13px 23px; display:flex; justify-content:space-between; font:8px ui-monospace,monospace; letter-spacing:1px; color:#8d9e7c; }
html[data-rtlcode-public] .rtl-home-details { display:grid; grid-template-columns:1fr 1fr 1fr; gap:48px; padding:48px 0 60px; border-top:1px solid var(--rtl-line); }
html[data-rtlcode-public] .rtl-home-section-title > p { font:8px ui-monospace,monospace; letter-spacing:1.7px; color:var(--rtl-muted); margin-bottom:16px; }
html[data-rtlcode-public] .rtl-home-section-title h2 { font-size:28px; font-weight:600; letter-spacing:-.8px; line-height:1.4; }
html[data-rtlcode-public] .rtl-feature-number { font:9px ui-monospace,monospace; letter-spacing:1.1px; color:var(--rtl-link); }
html[data-rtlcode-public] .rtl-home-feature h3 { font-size:17px; margin:18px 0 12px; font-weight:600; }
html[data-rtlcode-public] .rtl-home-feature p { font-size:13px; color:var(--rtl-muted); line-height:1.9; }
html[data-rtlcode-public] .rtl-public-footer { order:2; display:flex; align-items:center; justify-content:space-between; gap:20px; width:min(1200px,100%); margin:auto auto 0; padding:25px 40px; border-top:1px solid var(--rtl-line); font-size:10px; color:var(--rtl-muted); }
html[data-rtlcode-public] .rtl-public-footer a { color:var(--rtl-muted); text-decoration:none; }
html[data-rtlcode-public] #app { flex:1; }
html[data-rtlcode-public] #app > .min-h-screen { min-height:calc(100svh - 180px); background:transparent !important; }
html[data-rtlcode-public] #app > div > header, html[data-rtlcode-public] #app > div > footer,
html[data-rtlcode-public] #app > div > .pointer-events-none { display:none; }
html[data-rtlcode-public] #app a[href*="github.com/Wei-Shaw/sub2api"] { display:none !important; }
html[data-rtlcode-public] #app h1, html[data-rtlcode-public] #app h2 { color:var(--rtl-ink); letter-spacing:-.6px; }
html[data-rtlcode-public] #app [class*="text-primary-"] { color:var(--rtl-link); }
html[data-rtlcode-public] #app .btn-primary, html[data-rtlcode-public] #app button[class*="bg-primary-"], html[data-rtlcode-public] #app a[class*="bg-primary-"] { background:var(--rtl-accent); background-image:none; color:#1b2b16; box-shadow:none; border-color:var(--rtl-accent); }
html[data-rtlcode-public] #app input:not([type="checkbox"]):not([type="radio"]), html[data-rtlcode-public] #app select { border-color:var(--rtl-line); border-radius:9px; background:var(--rtl-field); color:var(--rtl-ink); }
html[data-rtlcode-public] #app .shadow-glow { box-shadow:none; }
html[data-rtlcode-public] #app aside.sidebar { display:none; }
html[data-rtlcode-public] #app aside.sidebar ~ .relative.min-h-screen { margin-left:0 !important; }
html[data-rtlcode-public] #app aside.sidebar ~ div > header { display:none; }
@media(max-width:900px) {
 html[data-rtlcode-public] .rtl-home-hero { gap:35px; min-height:560px; }
 html[data-rtlcode-public] .rtl-home-copy h1 { font-size:52px; }
 html[data-rtlcode-public] .rtl-studio-content { padding:26px 22px 16px; }
 html[data-rtlcode-public] .rtl-studio-prompt { font-size:15px; }
 html[data-rtlcode-public] .rtl-home-details { gap:30px; }
}
@media(max-width:700px) {
 html[data-rtlcode-public] .rtl-public-header { padding:23px 24px; gap:14px; flex-wrap:wrap; }
 html[data-rtlcode-public] .rtl-public-brand { font-size:22px; }
 html[data-rtlcode-public] .rtl-public-nav { gap:14px; font-size:11px; }
 html[data-rtlcode-public] .rtl-public-nav .rtl-public-signin { padding:8px 12px; }
 html[data-rtlcode-public] #rtlcode-home { padding:0 26px; }
 html[data-rtlcode-public] .rtl-home-hero { grid-template-columns:1fr; gap:48px; padding:50px 0 52px; min-height:auto; }
 html[data-rtlcode-public] .rtl-home-copy h1 { font-size:55px; letter-spacing:-2px; }
 html[data-rtlcode-public] .rtl-home-description { font-size:14px; }
 html[data-rtlcode-public] .rtl-home-studio { max-width:440px; width:100%; margin:0 auto; transform:rotate(-1deg); }
 html[data-rtlcode-public] .rtl-home-details { grid-template-columns:1fr; gap:30px; padding:32px 0 40px; }
 html[data-rtlcode-public] .rtl-home-section-title h2 br { display:none; }
 html[data-rtlcode-public] .rtl-public-footer { padding:24px 26px; gap:14px; }
 html[data-rtlcode-public] .rtl-public-footer-copy { display:none; }
}
@media(max-width:390px) {
 html[data-rtlcode-public] .rtl-public-header { padding:20px; }
 html[data-rtlcode-public] .rtl-public-nav { width:100%; justify-content:flex-end; }
 html[data-rtlcode-public] .rtl-home-copy h1 { font-size:48px; }
 html[data-rtlcode-public] .rtl-home-actions { gap:20px; }
 html[data-rtlcode-public] .rtl-studio-content { padding:24px 18px 16px; }
 html[data-rtlcode-public] .rtl-studio-endpoint { margin:0 14px 18px; padding:14px 10px; }
}

/* User workspace. Original links, forms, tables and dialogs keep their handlers. */
html[data-rtlcode-console] {
  --rtl-paper:#f5f6f1; --rtl-ink:#1b2b23; --rtl-muted:#7b867c; --rtl-line:#e0e5dc;
  --rtl-field:#fff; --rtl-accent:#c9f17d; --rtl-link:#3d644b; --rtl-soft:#edf2e8;
  color-scheme:light;
}
html.dark[data-rtlcode-console] {
  --rtl-paper:#151e19; --rtl-ink:#e6eee3; --rtl-muted:#96a591; --rtl-line:#344236;
  --rtl-field:#1d2921; --rtl-link:#c9f17d; --rtl-soft:#29372b; color-scheme:dark;
}
html[data-rtlcode-console] body { background:var(--rtl-paper); color:var(--rtl-ink); font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif; }
html[data-rtlcode-console] #app > .min-h-screen { background:var(--rtl-paper); }
html[data-rtlcode-console] #app > .min-h-screen > .bg-mesh-gradient { display:none; }
html[data-rtlcode-console] #app aside.sidebar {
  inset:16px auto 16px 16px; width:232px; height:auto; border:1px solid #263a2a;
  border-radius:20px; background:#15251b; box-shadow:0 12px 30px #1420190a; color:#c5d2bf;
}
html[data-rtlcode-console] #app .sidebar-header { height:92px; padding:0 22px; gap:11px; border-color:#304231; flex-shrink:0; }
html[data-rtlcode-console] #app .sidebar-logo { width:35px; height:35px; border-radius:10px; box-shadow:none; flex-shrink:0; }
html[data-rtlcode-console] #app .sidebar-brand-title { color:#f3f7ef; font-size:21px; font-weight:650; letter-spacing:-.7px; }
html[data-rtlcode-console] #app .sidebar-brand-title::after { content:'.'; color:var(--rtl-accent); }
html[data-rtlcode-console] #app .sidebar-brand > .relative > span { display:none; }
html[data-rtlcode-console] #app .sidebar-brand > .relative::after { content:'WORKSPACE'; color:#89a281; font:8px ui-monospace,monospace; letter-spacing:2px; }
html[data-rtlcode-console] #app .sidebar-nav { padding:28px 13px 14px; }
html[data-rtlcode-console] #app .sidebar-nav::before { content:'工作空间'; display:block; padding:0 15px 14px; color:#7f9976; font-size:9px; letter-spacing:2px; }
html[data-rtlcode-console]:not([lang^="zh"]) #app .sidebar-nav::before { content:'YOUR WORKSPACE'; }
html[data-rtlcode-console] #app .sidebar-link { position:relative; border-radius:9px; min-height:44px; padding:11px 15px; margin-bottom:6px; font-size:12px; font-weight:450; color:#afc0a8; gap:12px; }
html[data-rtlcode-console] #app .sidebar-link svg { width:17px; height:17px; stroke-width:1.5; flex-shrink:0; }
html[data-rtlcode-console] #app .sidebar-link:hover { background:#253b29; color:#edf4e4; }
html[data-rtlcode-console] #app .sidebar-link-active,
html[data-rtlcode-console] #app .sidebar-link-active:hover { background:#c9f17d; color:#23331d; font-weight:600; }
html[data-rtlcode-console] #app .sidebar-link-active::after { content:''; width:5px; height:5px; border-radius:50%; background:#3e602b; margin-left:auto; flex-shrink:0; }
html[data-rtlcode-console] #app .sidebar > .mt-auto { margin:0 13px; padding:13px 0 12px; border-color:#304231; }
html[data-rtlcode-console] #app .sidebar > .mt-auto .sidebar-link { font-size:11px; min-height:38px; margin-bottom:3px; }
html[data-rtlcode-console] #app aside.sidebar ~ .relative.min-h-screen { margin-left:268px; }
html[data-rtlcode-console][data-rtl-console-collapsed] #app aside.sidebar { width:72px; }
html[data-rtlcode-console][data-rtl-console-collapsed] #app .sidebar-header { padding:0 17px; }
html[data-rtlcode-console][data-rtl-console-collapsed] #app .sidebar-nav { padding:20px 10px; }
html[data-rtlcode-console][data-rtl-console-collapsed] #app .sidebar-nav::before,
html[data-rtlcode-console][data-rtl-console-collapsed] #app .sidebar-link-active::after { display:none; }
html[data-rtlcode-console][data-rtl-console-collapsed] #app .sidebar-link { padding:11px; justify-content:center; }
html[data-rtlcode-console][data-rtl-console-collapsed] #app .sidebar > .mt-auto { margin:0 10px; }
html[data-rtlcode-console][data-rtl-console-collapsed] #app aside.sidebar ~ .relative.min-h-screen { margin-left:108px; }
html[data-rtlcode-console] #app aside.sidebar ~ div > header { background:var(--rtl-paper); border-color:var(--rtl-line); backdrop-filter:none; box-shadow:none; margin:0 28px; }
html[data-rtlcode-console] #app aside.sidebar ~ div > header > div { height:79px; padding:0 4px; }
html[data-rtlcode-console] #app header h1 { color:var(--rtl-ink); font-size:12px; font-weight:500; letter-spacing:.2px; }
html[data-rtlcode-console] #app header h1::before { content:'工作空间 / '; color:var(--rtl-muted); font-size:11px; }
html[data-rtlcode-console]:not([lang^="zh"]) #app header h1::before { content:'Workspace / '; }
html[data-rtlcode-console] #app header h1 + p { color:var(--rtl-muted); font-size:10px; margin-top:4px; }
html[data-rtlcode-console] #app header [class*="bg-gradient-to-"] { background:#dbeacb; background-image:none; color:#36532c; border-radius:9px; box-shadow:none; }
html[data-rtlcode-console] #app header .group.relative { background:var(--rtl-soft); border-radius:8px; }
html[data-rtlcode-console] #app main { padding:30px 32px 36px 28px; max-width:1700px; margin:0 auto; }
html[data-rtlcode-console] #app main::before { content:attr(data-rtl-console-heading); display:block; margin:0 0 26px; font-size:29px; font-weight:600; letter-spacing:-1px; line-height:1.4; color:var(--rtl-ink); }
html[data-rtlcode-console] .card,
html[data-rtlcode-console] .stat-card,
html[data-rtlcode-console] .table-wrapper { background:var(--rtl-field); border:1px solid var(--rtl-line); border-radius:15px; box-shadow:none; backdrop-filter:none; }
html[data-rtlcode-console] #app main .card { padding:22px; }
html[data-rtlcode-console] #app main .card h2,
html[data-rtlcode-console] #app main .card h3 { color:var(--rtl-ink); font-weight:550; letter-spacing:-.3px; }
html[data-rtlcode-console] #app [class*="text-gray-9"],
html[data-rtlcode-console] #app [class*="text-gray-8"],
html[data-rtlcode-console] #app [class*="text-gray-7"] { color:var(--rtl-ink); }
html[data-rtlcode-console] #app [class*="text-gray-5"],
html[data-rtlcode-console] #app [class*="text-gray-4"] { color:var(--rtl-muted); }
html[data-rtlcode-console] #app [class*="text-primary-"] { color:var(--rtl-link); }
html[data-rtlcode-console] #app [class*="bg-primary-50"],
html[data-rtlcode-console] #app .bg-white { background-color:var(--rtl-field); }
html[data-rtlcode-console] #app .shadow-glow { box-shadow:none; }
html[data-rtlcode-console] #app [data-rtl-stat-row] { gap:16px; }
html[data-rtlcode-console] #app [data-rtl-stat-row] > .card { padding:24px 21px; min-height:128px; }
html[data-rtlcode-console] #app [data-rtl-stat-row] > .card > .flex { align-items:flex-start; gap:13px; }
html[data-rtlcode-console] #app [data-rtl-stat-row] > .card > .flex > .rounded-lg { background:var(--rtl-soft); border-radius:10px; padding:9px; }
html[data-rtlcode-console] #app [data-rtl-stat-row] > .card > .flex > .rounded-lg svg { color:var(--rtl-link); width:17px; height:17px; }
html[data-rtlcode-console] #app [data-rtl-stat-row] .text-xl { margin:8px 0 7px; font-size:27px; line-height:1.15; letter-spacing:-.7px; color:var(--rtl-ink); font-variant-numeric:tabular-nums; }
html[data-rtlcode-console] #app [data-rtl-stat-row="1"] > .card:first-child { background:#deefbf; border-color:#cedfb2; }
html[data-rtlcode-console] #app [data-rtl-stat-row="1"] > .card:first-child .text-xl,
html[data-rtlcode-console] #app [data-rtl-stat-row="1"] > .card:first-child p { color:#35502b; }
html[data-rtlcode-console] #app [data-rtl-stat-row="1"] > .card:first-child > .flex > .rounded-lg { background:#c9e3a3; }
html[data-rtlcode-console] #app [data-rtl-stat-row="2"] .text-xl { font-size:23px; }
html[data-rtlcode-console] #app [data-rtl-stat-row="2"] > .card { min-height:135px; }
html[data-rtlcode-console] .btn { min-height:39px; border-radius:9px; font-size:12px; font-weight:550; padding:9px 14px; box-shadow:none; transition:background-color .15s,border-color .15s; }
html[data-rtlcode-console] .btn-primary { background:#c9f17d; border:1px solid #c1e975; color:#26351e; background-image:none; }
html[data-rtlcode-console] .btn-primary:hover { background:#bee56e; border-color:#b2d965; }
html[data-rtlcode-console] .btn-secondary { background:var(--rtl-field); border:1px solid var(--rtl-line); color:var(--rtl-ink); }
html[data-rtlcode-console] .btn-secondary:hover { background:var(--rtl-soft); border-color:#adbea3; }
html[data-rtlcode-console] .input,
html[data-rtlcode-console] .select-trigger,
html[data-rtlcode-console] .search-input,
html[data-rtlcode-console] input:not([type="checkbox"]):not([type="radio"]),
html[data-rtlcode-console] textarea { background:var(--rtl-field); border-color:var(--rtl-line); color:var(--rtl-ink); border-radius:9px; font-size:12px; }
html[data-rtlcode-console] input:focus,
html[data-rtlcode-console] textarea:focus,
html[data-rtlcode-console] .select-trigger:focus-visible { outline:2px solid #89a36f55; outline-offset:2px; --tw-ring-color:#789969; border-color:#89a36f; }
html[data-rtlcode-console] .input-error { border-color:#dd6a61 !important; }
html[data-rtlcode-console] input[type="checkbox"], html[data-rtlcode-console] input[type="radio"] { accent-color:#62833f; }
html[data-rtlcode-console] .dropdown,
html[data-rtlcode-console] .select-dropdown,
html[data-rtlcode-console] .modal-content { background:var(--rtl-field); color:var(--rtl-ink); border:1px solid var(--rtl-line); border-radius:15px; box-shadow:0 18px 60px #1220161c; }
html[data-rtlcode-console] .modal-header,
html[data-rtlcode-console] .modal-footer { background:var(--rtl-field); border-color:var(--rtl-line); }
html[data-rtlcode-console] .modal-title { color:var(--rtl-ink); font-size:19px; letter-spacing:-.4px; }
html[data-rtlcode-console] .modal-overlay { background:#10201677; backdrop-filter:blur(4px); }
html[data-rtlcode-console] .modal-body { scrollbar-color:#aabb9d transparent; }
html[data-rtlcode-console] .dropdown-item:hover { background:var(--rtl-soft); }
html[data-rtlcode-console] .table-header,
html[data-rtlcode-console] thead { background:var(--rtl-soft); color:var(--rtl-muted); }
html[data-rtlcode-console] th { font-size:10px; letter-spacing:.5px; font-weight:550; }
html[data-rtlcode-console] td { font-size:12px; border-color:var(--rtl-line); }
html[data-rtlcode-console] .code { background:var(--rtl-soft); color:var(--rtl-link); border-radius:6px; border-color:var(--rtl-line); }
html[data-rtlcode-console] .empty-state-title { color:var(--rtl-ink); font-size:17px; }
html[data-rtlcode-console] .empty-state-description { color:var(--rtl-muted); }
html[data-rtlcode-console] .modal-content [class*="text-gray-9"],
html[data-rtlcode-console] .modal-content [class*="text-gray-7"] { color:var(--rtl-ink); }
html[data-rtlcode-console] .modal-content [class*="text-gray-5"] { color:var(--rtl-muted); }
@media(min-width:1200px) { html[data-rtlcode-console] #app [data-rtl-stat-row="1"] { grid-template-columns:1.25fr 1fr 1fr 1.1fr; } }
@media(max-width:1200px) and (min-width:1024px) {
 html[data-rtlcode-console] #app aside.sidebar { width:208px; }
 html[data-rtlcode-console] #app aside.sidebar ~ .relative.min-h-screen { margin-left:238px; }
 html[data-rtlcode-console] #app main { padding:26px 24px; }
 html[data-rtlcode-console] #app [data-rtl-stat-row] > .card { padding:19px 14px; }
}
@media(max-width:1023px) {
 html[data-rtlcode-console] #app aside.sidebar { inset:0 auto 0 0; width:260px; border-radius:0 19px 19px 0; }
 html[data-rtlcode-console] #app aside.sidebar ~ .relative.min-h-screen { margin-left:0 !important; }
 html[data-rtlcode-console] #app aside.sidebar ~ div > header { margin:0 20px; }
 html[data-rtlcode-console] #app aside.sidebar ~ div > header > div { height:70px; }
 html[data-rtlcode-console] #app main { padding:25px 22px 32px; }
 html[data-rtlcode-console] #app main::before { font-size:26px; margin-bottom:22px; }
}
@media(max-width:600px) {
 html[data-rtlcode-console] #app aside.sidebar ~ div > header { margin:0 16px; }
 html[data-rtlcode-console] #app main { padding:23px 16px 30px; }
 html[data-rtlcode-console] #app main::before { font-size:24px; }
 html[data-rtlcode-console] #app main .card { padding:17px; }
 html[data-rtlcode-console] #app [data-rtl-stat-row] { gap:10px; }
 html[data-rtlcode-console] #app [data-rtl-stat-row] > .card { padding:16px 13px; min-height:133px; }
 html[data-rtlcode-console] #app [data-rtl-stat-row] > .card > .flex { flex-wrap:wrap; gap:9px; }
 html[data-rtlcode-console] #app [data-rtl-stat-row] > .card > .flex > .rounded-lg { padding:7px; }
 html[data-rtlcode-console] #app [data-rtl-stat-row] .text-xl { font-size:23px; }
 html[data-rtlcode-console] #app header .relative button .text-sm { max-width:110px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
}
@media(prefers-reduced-motion:reduce) { html[data-rtlcode-console] #app *, html[data-rtlcode-console] #app *::before { scroll-behavior:auto !important; transition:none !important; } }
/* Keep the wordmark legible despite native hover utility classes. */
html[data-rtlcode-console] #app aside.sidebar .sidebar-brand-title { color:#f3f7ef; }
html[data-rtlcode-console] #app header button > .text-left > .text-sm { max-width:180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
html[data-rtlcode-console] #app [data-rtl-stat-row] [class*="text-purple-"],
html[data-rtlcode-console] #app [data-rtl-stat-row] [class*="text-violet-"] { color:var(--rtl-link); }
html[data-rtlcode-console] #app main .card button.group > div:first-child { background:var(--rtl-soft); }
html[data-rtlcode-console] #app main .card button.group > div:first-child svg { color:var(--rtl-link); }
