/* First theme: paper, ink and cyan from the supplied Kivotos Intel source; existing gestures retained. */
html[data-ui="classic"] {
  --classic-ink: #17293c; --classic-blue: #0796cf; --classic-ease: cubic-bezier(.22,1,.36,1);
  --classic-surface: linear-gradient(135deg,#fff,#f6f9fc);
  scroll-padding-top: 112px;
  overflow-anchor: none;
}
html[data-ui="classic"] body { color: var(--classic-ink); background: #f6f9fc; }
html[data-ui="classic"] body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(#8199ac09 1px,transparent 1px),linear-gradient(90deg,#8199ac09 1px,transparent 1px); background-size: 24px 24px; }
html[data-ui="classic"] :is(button,a,input,select,textarea,summary):focus-visible { outline: 3px solid #007dae; outline-offset: 4px; }
html[data-ui="classic"] #site-header { position: sticky; top: 12px; z-index: 80; margin: 12px 16px 0; }
html[data-ui="classic"] #site-header > header { position: relative; isolation: isolate; max-width: 1280px; margin: auto; border: 1px solid #cfdeea; border-radius: 14px; background: #f6f9fcf5; backdrop-filter: blur(10px) saturate(1.03); -webkit-backdrop-filter: blur(10px) saturate(1.03); box-shadow: inset 0 2px 2px #fff,inset 0 -1px 2px #427c9e26,0 8px 30px #476b8617; animation: none; }
html[data-ui="classic"] #site-header > header > div { max-width: none; min-height: 64px; gap: 12px; padding-inline: 18px; }
html[data-ui="classic"] #site-header nav a { padding-inline: 9px; white-space: nowrap; border-radius: 0; border-bottom: 3px solid transparent; }
html[data-ui="classic"] #site-header [aria-current="page"] { color: #00648e; background: transparent; border-bottom-color: #0796cf; box-shadow: none; }
html[data-ui="classic"] #site-header > header > div > a > span:first-child { border-radius: 10px; background: #17293c; box-shadow: 3px 3px 0 #10b6eb; transform: rotate(-5deg); }
html[data-ui="classic"] #mobile-navigation { border-radius: 0 0 24px 24px; background: #f7fcfff0; }
html[data-ui="classic"] main { max-width: 1280px; margin-inline: auto; }
html[data-ui="classic"] :is(main > section,main > div > section,main article,main aside > section) { border: 1px solid #cfdeea; border-radius: 16px; background: var(--classic-surface); box-shadow: 3px 4px 0 #17293c0c; }
html[data-ui="classic"] main > section:first-child { margin-top: 24px; }
html[data-ui="classic"] :is(main article,main aside > section) { transition: transform .45s var(--classic-ease),box-shadow .4s,border-color .3s; }
html[data-ui="classic"] .text-muted { color: #627b91; }
html[data-ui="classic"] .text-brand { color: #00648e; }
html[data-ui="classic"] [class*="bg-teal-"] { background-color: #e4f5ff; }
html[data-ui="classic"] [data-page="home"] main > section:first-child > div { padding-block: 36px; gap: 28px; }
html[data-ui="classic"] [data-page="home"] h1 { font-size: clamp(30px,3.5vw,44px); line-height: 1.2; }
html[data-ui="classic"] [data-page="home"] figure { border: 2px solid #17293c; border-radius: 16px; box-shadow: 5px 6px 0 #17293c12; }
html[data-ui="classic"] [data-page="home"] figure img { height: clamp(190px,26vw,280px); }
html[data-ui="classic"] [data-page="home"] main article { min-height: 0; padding: 20px; }
html[data-ui="classic"] [data-page="home"] main article h3 { margin-top: 16px; }
html[data-ui="classic"] [data-page="home"] main article a { margin-top: 18px; }
html[data-ui="classic"] .text-ink { color: var(--classic-ink); }
html[data-ui="classic"] :is(input:not([type="range"]):not([type="checkbox"]),select,textarea) { max-width: 100%; color: var(--classic-ink); border-color: #cfdeea; border-radius: 10px; background: #fff; transition: box-shadow .3s,border-color .3s,background .3s; }
html[data-ui="classic"] :is(input,select,textarea):focus { box-shadow: 0 0 0 4px #8ed1ff24; }
html[data-ui="classic"] :is(button,a)[class*="bg-brand"] { background: var(--classic-ink); color: white; border-radius: 10px; box-shadow: 3px 3px 0 #67cef2; }
html[data-ui="classic"] :is(button,summary,a[class*="inline-flex"]) { transition: transform .35s var(--classic-ease),box-shadow .35s,background-color .25s,border-color .25s; }
html[data-ui="classic"] :is(button,a[class*="inline-flex"]):active:not(:disabled) { transform: scale(.975); }
html[data-ui="classic"] .style-toggle { border-radius: 14px; background: #ffffff80; border-color: #fff; color: #215d88; }
html[data-ui="classic"] #site-footer > footer { margin-top: 32px; border-color: #fff; background: #ffffff80; border-radius: 28px 28px 0 0; }
html[data-ui="classic"] [data-page="rvc"] main { padding-top: 36px; }
html[data-ui="classic"] .rvc-page-heading h1 { font-size: clamp(2rem,4vw,3.5rem); letter-spacing: -.045em; color: #193f5b; }
html[data-ui="classic"] .rvc-page-heading > p:last-child { font-size: 16px; color: #617d92; }
html[data-ui="classic"] .rvc-workspace { grid-template-columns: minmax(0,1fr) 330px; gap: 28px; align-items: start; }
html[data-ui="classic"] .rvc-workflow { min-width: 0; padding: 28px; }
html[data-ui="classic"] .rvc-mode-panel { border-radius: 22px; border-color: #fff; background: #e8f3fb70; box-shadow: inset 0 1px #fff; }
html[data-ui="classic"] .rvc-mode-panel [role="radio"] { border-radius: 18px; background: #ffffff75; }
html[data-ui="classic"] .rvc-mode-panel [aria-checked="true"] { border-color: #54a1d5; background: #dcedfb85; box-shadow: 0 4px 18px #3583b91c; }
html[data-ui="classic"] :is(#rvc-school-browser,#rvc-upload-wrap,#rvc-advanced,#rvc-result) { border-radius: 22px; border-color: #fff; background: #ffffff80; box-shadow: inset 0 1px #fff,0 5px 20px #47779608; }
html[data-ui="classic"] #rvc-model-gallery { padding: 5px; }
html[data-ui="classic"] [data-model-id] { border-radius: 16px; background: #fff; border: 1px solid #cfdeea; box-shadow: 3px 4px 0 #17293c0c; transition: transform .4s var(--classic-ease),box-shadow .4s,border-color .3s; }
html[data-ui="classic"] [data-model-id][aria-selected="true"] { border-color: #0796cf; background: #e4f5ff; box-shadow: inset 0 2px #fff,0 0 0 1px #64a4ce80,0 8px 18px #2a72a818; }
html[data-ui="classic"] .rvc-step > p:first-child { color: #245a7e; }
html[data-ui="classic"] .rvc-inspector { min-width: 0; }
html[data-ui="classic"] #rvc-convert { min-height: 58px; border-radius: 20px; font-size: 17px; }
html[data-ui="classic"] :is(#rvc-service-status,#rvc-status) { border-radius: 16px; }
html[data-ui="classic"] .classic-range-wrap { position: relative; padding: 24px 0 5px; }
html[data-ui="classic"] input[type="range"] { appearance: none; -webkit-appearance: none; width: 100%; height: 6px; border-radius: 20px; background: linear-gradient(90deg,#347ed0 var(--classic-fill,50%),#cbd9e4b8 var(--classic-fill,50%)); cursor: pointer; box-shadow: inset 0 1px 2px #31557418; }
html[data-ui="classic"] input[type="range"]::-webkit-slider-thumb { appearance: none; width: 24px; height: 24px; border: 1px solid #ffffffeb; border-radius: 50%; background: linear-gradient(145deg,#ffffff80,#d6ecfb4a); box-shadow: inset 0 2px 2px #fff,inset 0 -1px 2px #416e9426,0 2px 7px #2675ae30; backdrop-filter: blur(4px); transition: transform .28s var(--classic-ease),box-shadow .25s; }
html[data-ui="classic"] input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border: 1px solid #ffffffeb; border-radius: 50%; background: linear-gradient(145deg,#ffffff80,#d6ecfb4a); box-shadow: inset 0 2px 2px #fff,0 2px 7px #2675ae30; transition: transform .28s var(--classic-ease); }
html[data-ui="classic"] input[type="range"]::-moz-range-track { height: 8px; border-radius: 20px; background: transparent; }
html[data-ui="classic"] .classic-range-wrap.is-adjusting input::-webkit-slider-thumb { transform: scaleX(1.13) scaleY(1.04); box-shadow: inset 0 2px 2px #fff,0 2px 8px #2675ae35; }
html[data-ui="classic"] .classic-range-wrap.is-adjusting input::-moz-range-thumb { transform: scaleX(1.13) scaleY(1.04); }
.classic-range-feedback { display: none; }
.classic-range-wrap { display: contents; }
html[data-ui="classic"] .classic-range-wrap { display: block; }
html[data-ui="classic"] .classic-range-feedback { display: block; position: absolute; left: clamp(22px,var(--classic-fill),calc(100% - 22px)); top: 1px; transform: translate(-50%,5px) scale(.96); opacity: 0; pointer-events: none; background: #f8fcff59; border: 1px solid #ffffffcc; box-shadow: inset 0 1px #fff,0 3px 9px #3b739518; border-radius: 11px; padding: 3px 9px; color: #225c85; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; transition: opacity .15s,transform .28s var(--classic-ease); }
html[data-ui="classic"] .is-adjusting .classic-range-feedback { opacity: 1; transform: translate(-50%,0) scale(1); }
.classic-only { display: none; }
.classic-only[hidden] { display: none !important; }
html[data-ui="classic"] .classic-only { display: block; }
.classic-console { padding: 22px; overflow: visible; }
.classic-console-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .1em; color: #5b819c; }
.classic-console-top i { color: #2686ca; font-size: 15px; }
.classic-deck { position: relative; height: 292px; margin: 20px 0 24px; touch-action: pan-y; overflow-anchor: none; }
.classic-deck[data-stack-layout="horizontal"] { overflow-x: auto; overflow-y: hidden; touch-action: pan-x pan-y; }
html[data-ui="classic"] .classic-pane { position: absolute; left: 0; top: 0; width: 100%; height: 252px; display: flex; flex-direction: column; align-items: flex-start; padding: 22px; border-radius: 26px; isolation: isolate; border: 1px solid #ffffffcf; background: #edf7ff8c; box-shadow: inset 0 2px 2px #fff,inset 0 -1px 2px #638da430,0 8px 25px #49759a20; transform-origin: center; transition: none; touch-action: none; user-select: none; -webkit-user-select: none; }
.classic-pane::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: rgba(247,252,255,.22); backdrop-filter: blur(8px) saturate(1.03); -webkit-backdrop-filter: blur(8px) saturate(1.03); pointer-events: none; }
.classic-pane > * { opacity: 1; }
.classic-deck[data-stack-layout="horizontal"] .classic-pane { touch-action: pan-x; }
.classic-pane-icon { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #fff; border-radius: 14px; background: #ffffff70; color: #287bb8; }
.classic-pane h3 { margin-top: 15px; font-size: 24px; line-height: 1.3; color: #1d4b6b; overflow-wrap: anywhere; }
.classic-pane p { margin-top: 9px; font-size: 12px; color: #61809a; line-height: 1.7; }
.classic-pane button { margin-top: auto; padding: 7px 0; color: #2676b0; font-size: 12px; font-weight: 700; }
.classic-deck-controls { display: flex; gap: 6px; align-items: center; }
.classic-deck-controls button { padding: 7px 12px; border: 1px solid transparent; border-radius: 12px; background: transparent; font-size: 12px; color: #68869d; }
.classic-deck-controls button[aria-pressed="true"] { background: #ffffffba; border-color: #fff; color: #236ba0; box-shadow: 0 3px 10px #436a8710; }
.classic-deck-controls button:last-child { margin-left: auto; padding-inline: 8px; }
/* A narrow, directional reflection, matching the supplied page's lens edges. */
html[data-ui="classic"] :is(.classic-pane,.is-character-stack [data-model-id])::after { content: ""; position: absolute; inset: 0; padding: 2px; border-radius: inherit; pointer-events: none; background: radial-gradient(ellipse at var(--classic-light-x,24%) var(--classic-light-y,10%),#fff 0%,#ffffffb3 28%,transparent 62%),linear-gradient(128deg,#fff,transparent 24% 67%,#ffffffc9); mask: linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0); mask-composite: exclude; -webkit-mask: linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0); -webkit-mask-composite: xor; opacity: .88; }
html[data-ui="classic"] :is(#rvc-advanced summary,.rvc-step-tune > [role="group"] button) { background: #ffffff2e; border-color: #adc6d559; box-shadow: inset 0 1px #ffffffb0; border-radius: 14px; }
html[data-ui="classic"] #rvc-advanced summary { padding-block: 6px; }
/* Role mode changes stay in the first UI. Native option buttons keep their handlers. */
html[data-ui="classic"] .classic-character-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; color: #547084; font-size: 12px; }
.classic-character-switch { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; min-width: 216px; border-radius: 18px; background: #dce8f08c; border: 1px solid #ffffffa6; box-shadow: inset 0 1px 3px #54718a14; }
.classic-character-switch button { position: relative; padding: 8px 12px; min-height: 36px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.classic-character-switch button[aria-pressed="true"] { color: #214f70; }
.classic-character-pill { position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 14px; background: #f7fcffc7; box-shadow: inset 0 2px 1px #fff,inset 0 -1px 1px #52789426,0 2px 7px #496b821c; transition: transform .38s var(--classic-ease); }
.classic-character-switch[data-active="stack"] .classic-character-pill { transform: translateX(100%); }
.classic-character-nav { display: none; }
html[data-ui="classic"] .classic-character-nav:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding-top: 9px; }
.classic-character-nav button { width: 38px; height: 38px; border: 1px solid #ffffffd1; border-radius: 50%; background: #ffffff66; box-shadow: inset 0 1px #fff,0 3px 8px #3e668618; }
.classic-character-nav button:disabled { opacity: .35; cursor: default; }
.classic-character-nav span { min-width: 130px; text-align: center; color: #617b8d; font-size: 12px; font-variant-numeric: tabular-nums; }
html[data-ui="classic"] :is(#rvc-model-gallery,#rvc-trained-model-gallery).is-character-stack { position: relative; overflow: visible; max-height: none; height: 246px; padding: 0; touch-action: pan-y; isolation: isolate; overflow-anchor: none; border-radius: 30px; }
html[data-ui="classic"] .is-character-stack[data-stack-layout="horizontal"] { overflow-x: auto; overflow-y: hidden; touch-action: pan-x pan-y; overscroll-behavior-x: contain; scrollbar-width: thin; }
html[data-ui="classic"] .is-character-stack[data-stack-layout="horizontal"] [data-model-id] { touch-action: pan-x; }
html[data-ui="classic"] .is-character-stack > [role="group"] { position: static; height: auto; display: block; }
html[data-ui="classic"] .is-character-stack [data-model-id] { position: absolute; left: 0; top: 0; min-height: 184px; height: auto; margin: 0; padding: 22px; border-radius: 28px; background: linear-gradient(135deg,#f7fcffe0,#e8f4ffcf 64%,#f8fcffe3); box-shadow: inset 0 2px 2px #fff,inset 0 -1px 2px #638da433,0 12px 26px #40658025; transform-origin: center center; transition: none; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; backdrop-filter: blur(8px) saturate(1.03); -webkit-backdrop-filter: blur(8px) saturate(1.03); }
html[data-ui="classic"] .is-character-stack [data-model-id] .truncate { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
html[data-ui="classic"] .is-character-stack [data-model-id] > * { opacity: 1; }
html[data-ui="classic"] .is-character-stack [data-model-id][data-stack-rear="true"] { pointer-events: none; }
html[data-ui="classic"] .is-character-stack [data-model-id][data-stack-off="true"] { visibility: hidden; }
html[data-ui="classic"] .is-character-stack [data-model-id] p.font-black { font-size: 20px; }
html[data-ui="classic"] .is-character-stack [data-model-id] > p { margin-top: 20px; }
html[data-ui="classic"] .is-character-stack[data-dragging="true"] { cursor: grabbing; user-select: none; }
.classic-character-layouts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; flex-basis: 100%; }
.classic-character-nav .classic-character-layouts button { width: auto; min-height: 38px; padding: 6px 12px; border-radius: 14px; font-size: 12px; }
.classic-character-layouts button[aria-pressed="true"] { background: #edf8ffe6; color: #1f679c; border-color: #fff; }
.classic-character-hint { flex-basis: 100%; text-align: center; font-size: 11px; color: #607e93; padding: 2px 10px 8px; }
@supports (backdrop-filter: url("#classic-refraction")) {
  html[data-ui="classic"] #site-header > header { backdrop-filter: blur(6px); }
  html[data-ui="classic"] .classic-pane::before { backdrop-filter: url("#classic-refraction"); }
  html[data-ui="classic"] .classic-range-feedback { backdrop-filter: url("#classic-refraction"); }
  html[data-ui="classic"] .is-character-stack [data-model-id] { backdrop-filter: url("#classic-refraction") blur(4px); }
}
/* Keep edge reflections; do not repeatedly rasterize overlapping SVG lenses in motion. */
html[data-ui="classic"] .is-character-stack [data-stack-rear="true"],
html[data-ui="classic"] .is-character-stack[data-animating="true"] [data-model-id],
html[data-ui="classic"] .is-character-stack[data-panning="true"] [data-model-id],
html[data-ui="classic"] .classic-deck[data-animating="true"] .classic-pane::before,
html[data-ui="classic"] .classic-deck[data-panning="true"] .classic-pane::before,
html[data-ui="classic"] .classic-pane[aria-hidden="true"]::before { backdrop-filter: none; -webkit-backdrop-filter: none; }
html[data-ui="classic"] :is(.classic-deck,.is-character-stack)[data-dragging="true"] { overflow: visible; }
html[data-ui="classic"] .is-character-stack [data-stack-held="true"] { will-change: transform; }
.community-toggle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px; width: 38px; height: 40px; border: 1px solid #cbd5d1; border-radius: 10px; background: #ffffffa6; color: #27647f; font-size: 18px; }
.community-toggle:hover { background: #fff; }
.community-dialog { padding: 0; width: min(1320px,calc(100vw - 32px)); max-width: none; height: min(900px,calc(100dvh - 40px)); max-height: none; border: 1px solid #fff; border-radius: 28px; overflow: hidden; background: #f5f9fc; box-shadow: 0 30px 100px #1c456340; color: #24516f; }
.community-dialog::backdrop { background: #17354d66; backdrop-filter: blur(8px); }
.community-dialog[open] { animation: community-arrive .4s cubic-bezier(.22,1,.36,1) both; }
.community-dialog.is-closing { animation: community-depart .2s ease both; }
.community-toolbar { display: flex; gap: 12px; align-items: center; height: 52px; padding: 0 16px; border-bottom: 1px solid #dce8f1; background: #ffffffbd; font-size: 13px; }
.community-toolbar strong { margin-right: auto; }
.community-toolbar a { font-size: 12px; color: #47738f; }
.community-close { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #cfdee9; border-radius: 50%; background: #f5f9fc; }
.community-content { position: relative; height: calc(100% - 52px); }
.community-content iframe { display: block; width: 100%; height: 100%; border: 0; background: #f5f9fc; }
.community-loading { position: absolute; inset: 0; display: grid; place-content: center; gap: 12px; text-align: center; padding: 24px; background: #f5f9fc; }
.community-loading[hidden] { display: none; }
.community-loading button { padding: 10px 18px; border-radius: 12px; border: 1px solid #bad4e7; }
body.community-open { overflow: hidden; }
@keyframes community-arrive { from { opacity: 0; transform: translateY(22px) scale(.975); } to { opacity: 1; transform: none; } }
@keyframes community-depart { to { opacity: 0; transform: translateY(12px) scale(.985); } }
@media (hover:hover) {
  html[data-ui="classic"] main article:hover { transform: translateY(-4px); box-shadow: inset 0 1px #fff,0 16px 35px #31597614; }
  html[data-ui="classic"] [data-model-id]:hover { transform: translateY(-3px); }
}
@media (max-width:1250px) { html[data-ui="classic"] #site-header nav.lg\:flex { display: none; } html[data-ui="classic"] #site-header [data-menu-toggle] { display: inline-flex; } html[data-ui="classic"] #mobile-navigation:not(.hidden) { display: block; } }
@media (max-width:1000px) { html[data-ui="classic"] .rvc-workspace { grid-template-columns: minmax(0,1fr); } html[data-ui="classic"] .rvc-inspector { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; } html[data-ui="classic"] .rvc-inspector > * { margin: 0; } html[data-ui="classic"] .classic-console { grid-column: 1/-1; } html[data-ui="classic"] .classic-deck { max-width: 600px; margin-inline: auto; height: 220px; } }
@media (max-width:600px) {
  html[data-ui="classic"] #site-header { margin: 8px 8px 0; top: 8px; }
  html[data-ui="classic"] #site-header > header { border-radius: 20px; }
  html[data-ui="classic"] #site-header > header > div { padding-inline: 10px; gap: 7px; min-height: 64px; }
  html[data-ui="classic"] #site-header > header > div > a { gap: 7px; }
  html[data-ui="classic"] #site-header > header > div > a > span:first-child { width: 32px; height: 32px; }
  html[data-ui="classic"] #site-header [data-language-toggle] { padding-inline: 8px; gap: 5px; }
  html[data-ui="classic"] #site-header [data-language-toggle] i { display: none; }
  html[data-ui="classic"] .style-toggle { width: 36px; height: 40px; flex-basis: 36px; }
  html[data-ui="classic"] .rvc-workflow { padding: 18px; border-radius: 24px; }
  html[data-ui="classic"] .rvc-workspace { gap: 20px; }
  html[data-ui="classic"] .rvc-inspector { grid-template-columns: minmax(0,1fr); }
  html[data-ui="classic"] .classic-character-toolbar { flex-wrap: wrap; }
  html[data-ui="classic"] .classic-character-switch { flex: 1; }
  html[data-ui="classic"] .is-character-stack [data-model-id] { padding: 22px 18px; }
  .community-toggle { width: 32px; flex-basis: 32px; }
  .community-dialog { width: calc(100vw - 12px); height: calc(100dvh - 16px); border-radius: 20px; }
  .community-toolbar { gap: 8px; padding-inline: 12px; }
}
@media (max-width:360px) { html[data-ui="classic"] #site-header > header > div > a > span:last-child { max-width: 70px; } }
@supports not (backdrop-filter: blur(1px)) { html[data-ui="classic"] #site-header > header, .classic-pane::before { background: #f0f7fcf5; } }
@media (prefers-reduced-motion:reduce) { html[data-ui="classic"] *,html[data-ui="classic"] *::before,html[data-ui="classic"] *::after,.community-dialog,.community-dialog::backdrop { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
