/* Private Vault / Studio — shared visual system. Loaded after legacy layouts. */
html[data-theme] {
  --pv-bg:#f4f6f5; --pv-surface:#ffffff; --pv-raised:#edf2ef; --pv-text:#182c25;
  --pv-muted:#5c7167; --pv-line:#dce5df; --pv-accent:#167050; --pv-soft:#e2f3e9;
  --pv-on-accent:#ffffff; --pv-danger:#b23745; --pv-warning:#8c5c0e;
  --reading-surface:var(--pv-surface); --reading-raised:var(--pv-raised);
  --reading-text:var(--pv-text); --reading-muted:var(--pv-muted); --reading-border:var(--pv-line); --reading-link:var(--pv-accent);
  --workspace-accent:var(--pv-accent); --workspace-accent-soft:var(--pv-soft);
  --workspace-background:var(--pv-bg); --line:var(--pv-line); --muted:var(--pv-muted); --panel:var(--pv-surface); --accent:var(--pv-accent);
  background:var(--pv-bg); color-scheme:light;
}
html[data-theme=dark] {
  --pv-bg:#101715; --pv-surface:#18221e; --pv-raised:#202e27; --pv-text:#edf4ef;
  --pv-muted:#a2b4a8; --pv-line:#304138; --pv-accent:#a9e4bf; --pv-soft:#2b4335;
  --pv-on-accent:#153221; --pv-danger:#ffabb0; --pv-warning:#e8c48b; color-scheme:dark;
}
html[data-theme] body {background:var(--pv-bg)!important;color:var(--pv-text)!important;font-family:'Segoe UI Variable','Segoe UI','Nirmala UI',system-ui,sans-serif;font-size:14px;line-height:1.6;caret-color:auto}
html[data-theme] :is(h1,h2,h3,h4,strong,.brand-wordmark,.job-title,.serial-value) {color:var(--pv-text)!important}
html[data-theme] :is(p,small,label,legend,summary,.eyebrow,.video-meta,.job-detail,.collection-caption,.library-order,.service-row>span,.serial-label) {color:var(--pv-muted)!important}
html[data-theme] :is(.panel,.login,.video-card,.stats article,.admin-shortcuts a,aside,.viewer-header,.content>header,dialog,.notification-row,.link-panel,.menu-card,.preference-overview) {background:var(--pv-surface)!important;border-color:var(--pv-line)!important;box-shadow:none!important;color:var(--pv-text)!important}
html[data-theme] :is(input,select,textarea) {background:var(--pv-surface)!important;color:var(--pv-text)!important;border:1px solid var(--pv-line)!important;border-radius:10px;box-shadow:none!important;min-height:44px;font-size:14px;padding:10px 13px;caret-color:var(--pv-accent);max-width:100%}
html[data-theme] input::placeholder {color:var(--pv-muted)!important;opacity:.85}
html[data-theme] :is(button,.secondary,a.secondary) {border-radius:10px;min-height:44px;font-size:13px;font-weight:600;line-height:1.4;padding:11px 15px;box-shadow:none;transition:background .16s,border-color .16s,box-shadow .16s}
html[data-theme] button:hover {transform:none}
html[data-theme] :is(.secondary,a.secondary,.platform-filter,.video-copy-link,.theme-toggle,button:not([class])) {background:var(--pv-surface)!important;color:var(--pv-text)!important;border:1px solid var(--pv-line)!important;box-shadow:none!important}
html[data-theme] :is(.secondary,button:not([class])):hover {background:var(--pv-raised)!important;border-color:var(--pv-muted)!important}
html[data-theme] :is(.primary,.telegram-contact) {background:var(--pv-accent)!important;color:var(--pv-on-accent)!important;border:1px solid transparent!important;box-shadow:none!important}
html[data-theme] .primary:hover {filter:brightness(.94)}
html[data-theme] :is(button,a,input,select,textarea,summary):focus-visible {outline:3px solid var(--pv-accent);outline-offset:3px}
html[data-theme] :is(input[type=checkbox],input[type=radio]) {accent-color:var(--pv-accent);width:18px;min-width:18px!important;min-height:18px;height:18px;flex:0 0 18px;padding:0}
html[data-theme] :is(.device-note,.access-badge,.workspace,.avatar,.private-badge,.counter,.video-platform,.active-job-link,.admin-add-video,.menu-button,.rule-note,pre,code) {background:var(--pv-raised)!important;color:var(--pv-muted)!important;border-color:var(--pv-line)!important}
html[data-theme] :is(.brand-wordmark span,.panel a,.back-link,.video-direct-link,.notification-link,.accent,.platform-tools button) {color:var(--pv-accent)!important}
html[data-theme] :is(.service-row,.job,.video-expiry,.library-category,.profile,footer,.sidebar-note,.telegram-alert-setup,th,td,.platform-section) {border-color:var(--pv-line)!important}
html[data-theme] :is(.status-pill,.admin-status,.coming-badge) {border-radius:6px;font-size:12px;letter-spacing:0;font-weight:600;background:var(--pv-raised)!important;color:var(--pv-muted)!important}
html[data-theme] :is(.status-pill:not(.warning),.admin-status.ready) {background:var(--pv-soft)!important;color:var(--pv-accent)!important}
html[data-theme] :is(.warning,.coming-status,.admin-status.processing) {color:var(--pv-warning)!important}
html[data-theme] :is(#accessError,#error,.category-delete) {color:var(--pv-danger)!important}
html[data-theme] .toast {background:var(--pv-surface)!important;border-color:var(--pv-accent)!important;color:var(--pv-text)!important;z-index:60;box-shadow:0 14px 50px #0003!important}
html[data-theme] :is(.empty,.library-empty,.empty-state) {background:var(--pv-surface)!important;color:var(--pv-muted)!important;border:1px dashed var(--pv-line)!important;border-radius:14px;padding:40px 24px}
html[data-theme] .brand {gap:9px;letter-spacing:-1px;font-size:24px}
html[data-theme] .brand-mark {width:34px;height:34px}
html[data-theme] .brand-wordmark {font-weight:750}
html[data-theme] .brand-wordmark span {font-weight:400}
html[data-theme] .theme-toggle {position:fixed;right:22px;bottom:18px;z-index:35;font-size:12px;min-height:40px;padding:9px 14px;border-radius:30px;box-shadow:0 3px 12px #0001!important}
/* A quiet, persistent navigation rail. */
html[data-theme] .admin-console .shell {grid-template-columns:252px minmax(0,1fr)}
html[data-theme] .admin-console aside {padding:27px 18px 20px;height:100dvh;position:sticky;top:0;overflow-y:auto;border-right:1px solid var(--pv-line);scrollbar-width:thin}
html[data-theme] .admin-console aside>.brand {padding:0 10px}
html[data-theme] .admin-console .workspace {border-radius:12px;margin:26px 0 12px;padding:12px;gap:10px}
html[data-theme] .admin-console .workspace strong {font-size:12px}
html[data-theme] .admin-console .workspace small {font-size:11px;margin-top:2px}
html[data-theme] .admin-console .avatar {width:34px;height:34px;font-size:13px;border-radius:9px;background:var(--pv-soft)!important;color:var(--pv-accent)!important;border:0}
html[data-theme] .admin-console aside .meta-style-nav {margin-top:6px}
html[data-theme] .admin-console .meta-style-nav :is(a,summary) {color:var(--pv-muted)!important;font-size:12px;min-height:42px;border-radius:9px;font-weight:550;letter-spacing:0}
html[data-theme] .admin-console .meta-style-nav .sidebar-icon {width:19px;height:19px;flex-basis:19px;stroke-width:1.7}
html[data-theme] .admin-console .sidebar-group {margin:10px 0}
html[data-theme] .admin-console .sidebar-submenu {padding:2px 0 2px 30px;gap:2px}
html[data-theme] .admin-console aside .sidebar-submenu a {padding:9px 12px;min-height:38px;font-size:12px;color:var(--pv-muted)!important;border-radius:8px}
html[data-theme] .admin-console .meta-style-nav a.selected {background:var(--pv-soft)!important;color:var(--pv-accent)!important;box-shadow:inset 3px 0 var(--pv-accent)!important}
html[data-theme] .admin-console .sidebar-group.has-active-page>summary {color:var(--pv-text)!important}
html[data-theme] .admin-console .meta-style-nav :is(a,summary):hover {background:var(--pv-raised)!important}
html[data-theme] .admin-console .sidebar-note {padding:20px 10px 16px;margin-top:auto}
html[data-theme] .admin-console .sidebar-note h3 {font-size:12px}
html[data-theme] .admin-console .sidebar-note p {font-size:11px;line-height:1.7;margin-bottom:10px}
html[data-theme] .admin-console .sidebar-note a {font-size:12px;color:var(--pv-accent)!important}
html[data-theme] .admin-console .profile {padding:16px 8px 0}
html[data-theme] .admin-console .profile :is(strong,small) {font-size:11px}
html[data-theme] .admin-console .profile button {font-size:12px;color:var(--pv-muted)!important}
html[data-theme] .admin-console .content>header {height:68px;padding:0 clamp(22px,3vw,52px);font-size:12px;position:sticky;top:0;z-index:5}
html[data-theme] .private-badge {font-size:10px;border-radius:30px;letter-spacing:.06em;padding:7px 12px}
html[data-theme] .admin-console main {max-width:1920px;width:100%;padding:34px clamp(22px,3vw,52px) 72px}
html[data-theme] .admin-console :is(.admin-page-heading h1,.heading h1) {font-size:clamp(29px,2.7vw,40px);font-weight:650;letter-spacing:-1.3px;line-height:1.2;margin:8px 0 12px}
html[data-theme] .admin-console .eyebrow {font-size:10px;letter-spacing:.16em;font-weight:650}
html[data-theme] .admin-console :is(.admin-page-heading p,.heading p,.panel>p) {font-size:14px;line-height:1.7;max-width:760px}
html[data-theme] .admin-console .panel {padding:28px;border-radius:18px}
html[data-theme] .admin-console .admin-view.panel>h2 {font-size:29px;font-weight:650;letter-spacing:-.9px;margin:6px 0 10px}
html[data-theme] .admin-console .admin-view.panel>.eyebrow {display:block}
html[data-theme] .admin-console .admin-view.panel>p {margin-bottom:26px}
html[data-theme] .admin-console .heading {background:none!important;border:0;padding:0;box-shadow:none;margin-bottom:26px}
html[data-theme] .admin-console h3 {font-size:17px;font-weight:600;letter-spacing:-.2px}
html[data-theme] .admin-console .stats {grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:28px 0}
html[data-theme] .admin-console .stats article {border:1px solid var(--pv-line)!important;border-radius:16px;padding:22px;position:relative}
html[data-theme] .admin-console .stats article>span {font-size:12px;color:var(--pv-muted)!important}
html[data-theme] .admin-console .stats strong {font-size:36px;font-weight:600;letter-spacing:-1.4px;line-height:1.3;margin:16px 0 9px;font-variant-numeric:tabular-nums}
html[data-theme] .admin-console .stats small {font-size:11px}
html[data-theme] .admin-console .stats article:first-child {background:var(--pv-soft)!important;border-color:transparent!important}
html[data-theme] .admin-console .stats article:first-child strong {color:var(--pv-accent)!important}
html[data-theme] .admin-shortcuts {grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:28px 0}
html[data-theme] .admin-shortcuts>a {padding:24px;border-radius:16px;position:relative}
html[data-theme] .admin-shortcuts>a:after {content:'↗';position:absolute;right:22px;top:20px;font-size:20px;color:var(--pv-muted)}
html[data-theme] .admin-shortcuts>a:hover {border-color:var(--pv-accent)!important}
html[data-theme] .admin-shortcuts span {color:var(--pv-accent);font-size:10px;letter-spacing:.12em;margin-bottom:22px}
html[data-theme] .admin-shortcuts strong {font-size:18px;font-weight:600}
html[data-theme] .admin-shortcuts p {font-size:13px;max-width:300px;margin-top:8px}
html[data-theme] .active-job-titles {max-height:148px!important}
html[data-theme] .active-job-link :is(b,span) {color:var(--pv-muted)!important;font-size:11px!important}
/* Forms and permission controls use the same visual grammar. */
html[data-theme] .admin-console :is(#keyForm,#apiKeyForm,#hookForm,#customOttCreate) {padding:22px;border:1px solid var(--pv-line);border-radius:14px;background:var(--pv-raised);gap:16px;align-items:end}
html[data-theme] .admin-console .link-controls label {display:flex;flex-direction:column;gap:7px;font-size:12px;flex:1;min-width:160px}
html[data-theme] .admin-console .link-controls label:has(input[type=checkbox]) {flex-direction:row;align-items:center;min-height:44px;flex:0 1 auto}
html[data-theme] .admin-console .link-controls :is(input,select) {min-width:0;width:100%}
html[data-theme] .admin-console :is(#keyForm,#apiKeyForm)>.platform-grid {order:2;flex-basis:100%;margin:0}
html[data-theme] .admin-console :is(#keyForm,#apiKeyForm)>button {order:3;margin-left:auto}
html[data-theme] .admin-console .platform-grid {background:var(--pv-surface);border:1px solid var(--pv-line);border-radius:12px;padding:16px;gap:8px;grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
html[data-theme] .admin-console .platform-grid legend {font-size:12px;padding:0 6px}
html[data-theme] .admin-console .platform-grid label {display:flex;flex-direction:row;align-items:center;gap:9px;min-width:0!important;min-height:44px;padding:10px;border:1px solid transparent;border-radius:8px;background:transparent!important;color:var(--pv-muted)!important;font-size:12px;font-weight:500}
html[data-theme] .admin-console .platform-grid label:has(input:checked) {background:var(--pv-soft)!important;color:var(--pv-accent)!important;border-color:var(--pv-line)!important}
html[data-theme] :is(#newKeyBox,#apiSecretBox,.retention-notice,.device-note) {background:var(--pv-raised)!important;border:1px solid var(--pv-line)!important;border-radius:12px;padding:16px;color:var(--pv-muted)!important;font-size:13px}
html[data-theme] .admin-user-tools {border-top:0;margin:28px 0 18px;padding:0;gap:12px}
html[data-theme] .admin-user-tools label {font-size:12px}
html[data-theme] .admin-user-tools input {max-width:390px}
html[data-theme] #userSummary {font-size:12px;background:var(--pv-raised);padding:5px 10px;border-radius:20px;color:var(--pv-muted)!important}
/* Dense enough to scan; identities, state, permissions and actions stay distinct. */
html[data-theme] #keyList {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
html[data-theme] .admin-console #keyList .service-row {display:flex;align-items:stretch;flex-direction:column;gap:16px;margin:0;padding:20px;border:1px solid var(--pv-line);border-radius:14px;min-width:0;background:var(--pv-surface)}
.pv-user-identity {display:flex;align-items:center;gap:12px;min-width:0}
.pv-user-avatar {display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:12px;background:var(--pv-soft);color:var(--pv-accent);font-size:14px;font-weight:650;letter-spacing:.03em}
.pv-user-info {display:grid;gap:4px;min-width:0;flex:1}
html[data-theme] .admin-console #keyList .pv-user-info strong {font-size:15px;min-width:0;overflow-wrap:anywhere}
.pv-user-state {font-size:11px;line-height:1.6;color:var(--pv-muted)}
[data-user-state=revoked] .pv-user-state,[data-user-state=locked] .pv-user-state {color:var(--pv-danger)}
[data-user-state=expired] .pv-user-state {color:var(--pv-warning)}
.pv-user-actions {display:flex;gap:8px;flex-wrap:wrap;margin-top:auto}
html[data-theme] .admin-console #keyList .pv-user-actions button {font-size:12px;padding:9px 12px;min-height:40px}
html[data-theme] .pv-user-actions .pv-danger {color:var(--pv-danger)!important;margin-left:auto}
html[data-theme] .admin-console #keyList .user-platform-editor {order:0;width:100%;flex-basis:auto;border-top:1px solid var(--pv-line);padding-top:12px;margin:0}
html[data-theme] .admin-console #keyList .user-platform-editor summary {font-size:12px;line-height:1.7;min-height:32px;cursor:pointer;overflow-wrap:anywhere}
html[data-theme] .admin-console #keyList .user-platform-editor[open] .platform-grid {grid-template-columns:repeat(auto-fit,minmax(140px,1fr));margin:12px 0}
html[data-theme] .admin-console #apiKeyList .service-row {padding:20px;border:1px solid var(--pv-line);border-radius:12px;margin-top:16px;background:var(--pv-surface)}
html[data-theme] .admin-console #apiKeyList .service-row>span {font-size:12px;flex:1;min-width:180px}
/* Collections, processing and integration details. */
html[data-theme] .workflow-steps {display:flex;gap:24px;background:none;border:0;padding:0;margin:24px 0;list-style:none;flex-wrap:wrap}
html[data-theme] .workflow-steps li {font-size:12px;display:flex;align-items:center;gap:9px;color:var(--pv-muted)}
html[data-theme] .workflow-steps b {display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--pv-soft);color:var(--pv-accent)!important;font-size:10px}
html[data-theme] .platform-cards {display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px;margin:24px 0}
html[data-theme] .platform-card {background:var(--pv-surface)!important;border:1px solid var(--pv-line)!important;padding:22px;text-align:left;border-radius:14px;min-height:132px;position:relative}
html[data-theme] .platform-card:before {content:'';display:block;width:28px;height:20px;border:1.5px solid var(--pv-muted);border-radius:4px;margin-bottom:18px}
html[data-theme] .platform-card:after {content:'↗';position:absolute;right:20px;top:18px;color:var(--pv-muted)}
html[data-theme] .platform-card[aria-pressed=true] {background:var(--pv-soft)!important;border-color:var(--pv-accent)!important}
html[data-theme] .platform-card strong {font-size:16px;display:block}
html[data-theme] .platform-card small {font-size:11px;display:block;margin-top:6px}
html[data-theme] .upload-workspace {background:var(--pv-raised);border:1px solid var(--pv-line);border-radius:14px;padding:20px}
html[data-theme] .file-drop {border:1px dashed var(--pv-muted)!important;border-radius:12px;background:var(--pv-surface);padding:24px;grid-column:1/-1}
html[data-theme] .file-drop input {border:0!important;background:transparent!important;padding:6px 0}
html[data-theme] input::file-selector-button {background:var(--pv-soft);color:var(--pv-accent);border:0;border-radius:7px;padding:10px 12px;margin-right:14px}
html[data-theme] .platform-video-row {padding:16px;border:1px solid var(--pv-line);border-radius:10px;margin:8px 0;background:var(--pv-surface)}
html[data-theme] .admin-table-wrap {border-radius:14px;border-color:var(--pv-line)}
html[data-theme] .admin-video-table {font-size:13px}
html[data-theme] .admin-video-table th {background:var(--pv-raised)!important;color:var(--pv-muted)!important;font-size:10px;letter-spacing:.08em;padding:15px 18px}
html[data-theme] .admin-video-table td {padding:16px 18px}
html[data-theme] .admin-video-table :is(tbody,td) {background:var(--pv-surface);color:var(--pv-muted)}
html[data-theme] .admin-video-table tbody tr:hover td {background:var(--pv-raised)}
html[data-theme] .admin-video-table strong {font-size:13px}
html[data-theme] .admin-video-table small {font-size:11px}
html[data-theme] .admin-console #jobs .job {padding:18px 0}
html[data-theme] .job-symbol {background:var(--pv-soft);color:var(--pv-accent);border-radius:11px;width:38px;height:38px}
html[data-theme] .notification-pages {gap:12px;margin:22px 0 0;display:flex;align-items:center;justify-content:flex-end;font-size:12px;flex-wrap:wrap}
html[data-theme] :is(.service-icon,.service-icon.telegram) {background:var(--pv-raised);color:var(--pv-accent);border-color:var(--pv-line)}
html[data-theme] .admin-console details:not(.sidebar-group) summary {cursor:pointer;line-height:1.7}
html[data-theme] .admin-console pre {padding:18px;border-radius:10px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}
html[data-theme] .admin-console footer {font-size:10px;letter-spacing:.03em;margin-top:28px}
/* Viewer library — generous artwork, concise metadata. */
html[data-theme] #viewer .viewer-header {height:76px;min-height:76px;padding:0 clamp(20px,4vw,72px);position:sticky;top:0;z-index:6;border-bottom:1px solid var(--pv-line)}
html[data-theme] #viewer .viewer-header nav {gap:12px;display:flex;align-items:center}
html[data-theme] #viewer .viewer-header nav a {background:var(--pv-soft)!important;color:var(--pv-accent)!important;border:0;font-size:12px;min-height:40px;padding:10px 16px;border-radius:30px}
html[data-theme] #viewer .viewer-main {max-width:1920px;width:100%;padding:44px clamp(20px,4vw,72px) 88px}
html[data-theme] #viewer .library-toolbar {align-items:center;margin-bottom:28px;padding-bottom:26px;border-bottom:1px solid var(--pv-line)}
html[data-theme] #viewer h1 {font-size:clamp(32px,3.5vw,48px);font-weight:600;letter-spacing:-1.7px;margin:6px 0 10px}
html[data-theme] #viewer .library-toolbar p {font-size:13px}
html[data-theme] #viewer .library-search {max-width:380px;width:100%}
html[data-theme] #viewer .library-search label {font-size:11px;letter-spacing:.04em;margin-bottom:8px}
html[data-theme] #viewer .library-search input {width:100%;border-radius:30px;padding:13px 20px;min-height:48px}
html[data-theme] #viewer .library-controls {padding:0 0 12px;gap:16px}
html[data-theme] #viewer .platform-filter {border-radius:30px;min-height:40px;font-size:12px;padding:9px 16px}
html[data-theme] #viewer :is(.platform-filter[aria-pressed=true],#languageFilters .platform-filter[aria-pressed=true]) {background:var(--pv-accent)!important;color:var(--pv-on-accent)!important;border-color:transparent!important}
html[data-theme] #viewer #languageFilters .platform-filter {border-radius:8px;font-size:11px;min-height:36px;padding:8px 12px}
html[data-theme] #viewer .grid {grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:24px}
html[data-theme] #viewer .library-category {font-size:18px;font-weight:600;border:0;padding:24px 0 0;margin:0;letter-spacing:-.3px;color:var(--pv-text)!important}
html[data-theme] #viewer .video-card {border-radius:16px;transition:border-color .16s;box-shadow:none}
html[data-theme] #viewer .video-card:hover {transform:none;border-color:var(--pv-accent)!important}
html[data-theme] #viewer .art {aspect-ratio:16/9;background:radial-gradient(circle at 15% 20%,#557768,transparent 65%),#223c31;border-color:var(--pv-line)}
html[data-theme] #viewer .art:before,html[data-theme] #viewer .art:after {border-color:#b8e8cc22}
html[data-theme] #viewer .play-circle {background:#f0fff7;color:#214e35;width:52px;height:52px;padding:0;font-size:19px;border-radius:50%;box-shadow:0 8px 32px #0004}
html[data-theme] #viewer .video-body {padding:20px}
html[data-theme] #viewer .video-card h3 {font-size:18px;line-height:1.5;min-height:0;font-weight:600;margin:8px 0 12px;letter-spacing:-.2px}
html[data-theme] #viewer .serial-label {font-size:10px;text-transform:uppercase;letter-spacing:.08em;margin:12px 0 5px}
html[data-theme] #viewer .serial-value {font-size:14px;line-height:1.7}
html[data-theme] #viewer .video-expiry {font-size:11px;margin:16px 0;padding-top:14px;color:var(--pv-muted)!important}
html[data-theme] #viewer .video-link-actions {display:flex;align-items:center;justify-content:space-between;gap:8px}
html[data-theme] #viewer .video-link-actions>* {margin:0;font-size:12px}
html[data-theme] #viewer .video-copy-link {min-height:36px;padding:8px 10px}
html[data-theme] #viewerNotifications {border-radius:18px;padding:28px;margin-top:40px}
/* Entry pages: a contained two-column identity and sign-in experience. */
html[data-theme] .pv-auth {display:grid;grid-template-columns:1.08fr 1fr;max-width:1100px!important;width:calc(100% - 64px)!important;padding:0!important;margin:7vh auto!important;overflow:hidden;background:var(--pv-surface)!important;border:1px solid var(--pv-line)!important;border-radius:24px!important;min-height:640px;box-shadow:0 24px 80px #00000010!important}
html[data-theme] .pv-auth-story {position:relative;padding:52px;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;background:#17392c!important;color:#f0fff5;min-height:620px;border:0}
html[data-theme] .pv-auth-story .brand-wordmark,html[data-theme] .pv-auth-story .brand-wordmark span {color:#eef9f2!important}
html[data-theme] .pv-auth-story .brand {margin:0;position:relative;z-index:1}
.pv-auth-art {position:relative;height:230px;display:grid;place-items:center;margin:28px 0}
.pv-auth-orbit {width:235px;height:235px;border:1px solid #b4e3bf35;border-radius:50%;position:absolute}
.pv-auth-orbit:before {content:'';position:absolute;inset:24px;border:1px solid #b4e3bf35;border-radius:50%}
.pv-auth-orbit:after {content:'';position:absolute;inset:-24px;border:1px solid #b4e3bf18;border-radius:50%}
.pv-auth-tile {position:relative;width:150px;height:168px;background:#d7f1dc;border-radius:28px;display:grid;place-items:center;transform:rotate(-9deg);box-shadow:18px 18px 0 #81ae8f24,0 22px 48px #04150d44}
.pv-auth-tile svg {width:66px;height:66px;stroke:#23523b;fill:none;stroke-width:1.3;transform:rotate(9deg)}
html[data-theme] .pv-auth-story h2 {font-size:34px;font-weight:500;line-height:1.25;letter-spacing:-1.2px;color:#f0fff5!important;margin:0 0 16px}
html[data-theme] .pv-auth-story p {color:#b1cebb!important;font-size:14px;line-height:1.8;margin:0;max-width:330px}
.pv-auth-story small {display:block;margin-top:28px;letter-spacing:.14em;font-size:9px;color:#b1cebb!important}
html[data-theme] .pv-auth-form {padding:55px 48px;display:flex;flex-direction:column;justify-content:center;min-width:0}
html[data-theme] .pv-auth-form>.brand {display:none}
html[data-theme] .pv-auth-form .access-badge {align-self:flex-start;font-size:10px;letter-spacing:.09em;margin:0 0 22px;border-radius:30px;padding:7px 12px}
html[data-theme] .pv-auth-form h1,html[data-theme] #accessGate.pv-auth h1 {font-size:32px;line-height:1.22;letter-spacing:-1px;margin:10px 0 14px;font-weight:650}
html[data-theme] #accessGate.pv-auth h1 span {color:var(--pv-text)!important}
html[data-theme] .pv-auth-form p {font-size:13px;line-height:1.8}
html[data-theme] .pv-auth-form label {font-size:12px;margin:16px 0 10px}
html[data-theme] .pv-auth-form input {min-height:48px;font-size:15px;margin-top:9px;border-radius:10px}
html[data-theme] .pv-auth-form .primary {min-height:48px;font-size:13px;margin-top:14px}
html[data-theme] .pv-auth-form .device-note {font-size:11px;line-height:1.7;margin:12px 0 8px;padding:12px 14px;display:flex;gap:10px}
html[data-theme] .pv-auth-form .device-note strong {font-size:11px;color:var(--pv-text)!important}
html[data-theme] .pv-auth-form .access-support {margin-top:18px;padding-top:18px;border-top:1px solid var(--pv-line)}
html[data-theme] .pv-auth-form .access-support p {font-size:12px}
html[data-theme] .pv-auth-form .telegram-contact {display:inline-flex;justify-content:center;background:var(--pv-raised)!important;color:var(--pv-text)!important;border:1px solid var(--pv-line)!important;min-height:42px;font-size:12px;padding:10px 14px;border-radius:9px}
html[data-theme] .pv-auth-form>a {font-size:12px;color:var(--pv-accent);margin-top:20px}
html[data-theme] :is(#accessError,#error):not(:empty) {background:var(--pv-raised)!important;border:1px solid var(--pv-danger)!important;padding:12px 14px;border-radius:10px;color:var(--pv-danger)!important}
html[data-theme] .pv-quality>header {display:flex;background:var(--pv-surface);height:76px;border-color:var(--pv-line)}
html[data-theme] .pv-quality>main {max-width:1100px;padding:44px 28px 80px}
html[data-theme] .pv-quality .heading {background:none!important;border:0;box-shadow:none;padding:0}
html[data-theme] .pv-quality .settings-panel {max-width:680px;border-radius:18px;padding:30px}
html[data-theme] .pv-quality .settings-panel select {width:100%;margin-top:12px}
@media(min-width:1900px){html[data-theme] #keyList{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1200px){html[data-theme] .admin-console .shell{grid-template-columns:224px minmax(0,1fr)}html[data-theme] .admin-console .stats{grid-template-columns:repeat(2,minmax(0,1fr))}html[data-theme] #keyList{grid-template-columns:1fr}html[data-theme] .admin-shortcuts{grid-template-columns:1fr}html[data-theme] .admin-shortcuts>a{padding:22px}html[data-theme] .admin-shortcuts span{margin-bottom:10px}html[data-theme] .pv-auth-story{padding:40px}html[data-theme] .pv-auth-form{padding:40px 32px}}
@media(max-width:780px){
 html[data-theme] .admin-console .shell{display:block}
 html[data-theme] .admin-console aside{position:static;height:auto;padding:16px 20px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:14px;border-right:0;border-bottom:1px solid var(--pv-line);overflow:visible}
 html[data-theme] .admin-console aside>.brand{padding:0;font-size:21px}
 html[data-theme] .admin-console aside :is(.workspace,.sidebar-note,.nav-label,.meta-style-nav){display:none}
 html[data-theme] .admin-console .profile{grid-column:1/-1;margin:0;padding:10px 0 0}
 html[data-theme] .admin-console .profile .avatar{width:28px;height:28px}
 html[data-theme] .admin-console .mobile-navigation{display:flex;font-size:0;margin:0;gap:0}
 html[data-theme] .admin-console .mobile-navigation select{width:160px;min-height:42px;font-size:12px}
 html[data-theme] .admin-console .content>header{position:static;height:50px;padding:0 20px;font-size:11px}
 html[data-theme] .admin-console main{padding:26px 18px 76px}
 html[data-theme] .admin-console .panel{padding:22px 18px;border-radius:14px}
 html[data-theme] .admin-console .admin-view.panel>h2{font-size:26px}
 html[data-theme] .admin-console .stats{gap:12px;margin:22px 0}
 html[data-theme] .admin-console .stats article{padding:18px}
 html[data-theme] .admin-console .stats strong{font-size:29px}
 html[data-theme] .admin-console :is(#keyForm,#apiKeyForm,#hookForm,#customOttCreate){padding:16px;gap:14px}
 html[data-theme] .admin-console :is(#keyForm,#apiKeyForm)>button{width:100%}
 html[data-theme] .admin-console .link-controls label{min-width:100%;width:100%}
 html[data-theme] .admin-console .platform-grid label{min-width:0!important;width:auto}
 html[data-theme] .admin-user-tools input{min-width:100%;order:3;max-width:none}
 html[data-theme] .platform-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 html[data-theme] .platform-card{padding:18px;min-height:130px}
 html[data-theme] .platform-card strong{font-size:14px;overflow-wrap:anywhere}
 html[data-theme] .workflow-steps{gap:12px}
 html[data-theme] .workflow-steps li{font-size:11px}
 html[data-theme] #viewer .viewer-header{min-height:68px;height:68px;padding:0 18px}
 html[data-theme] #viewer .viewer-header .brand{font-size:21px}
 html[data-theme] #viewer .viewer-header nav a{display:none}
 html[data-theme] #viewer .viewer-main{padding:30px 18px 80px}
 html[data-theme] #viewer .library-toolbar{align-items:stretch;gap:20px}
 html[data-theme] #viewer .library-search{max-width:none}
 html[data-theme] #viewer .grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,255px),1fr));gap:18px}
 html[data-theme] .pv-auth{grid-template-columns:1fr;max-width:500px!important;width:calc(100% - 32px)!important;margin:24px auto!important;min-height:0;border-radius:18px!important}
 html[data-theme] .pv-auth-story{padding:24px;min-height:0;gap:20px}
 .pv-auth-art, .pv-auth-story small{display:none}
 html[data-theme] .pv-auth-story h2{font-size:24px;margin:0}
 html[data-theme] .pv-auth-story p{display:none}
 html[data-theme] .pv-auth-form{padding:30px 26px}
 html[data-theme] .pv-auth-form h1,html[data-theme] #accessGate.pv-auth h1{font-size:29px}
 html[data-theme] .pv-quality>header{padding:0 20px;font-size:12px}
 html[data-theme] .pv-quality>main{padding:30px 20px 80px}
}
@media(max-width:400px){html[data-theme] .admin-console aside{grid-template-columns:1fr}html[data-theme] .admin-console .mobile-navigation select{width:100%}html[data-theme] .admin-console .mobile-navigation{width:100%}html[data-theme] .platform-cards{grid-template-columns:1fr}.pv-user-actions{gap:6px}html[data-theme] .admin-console #keyList .pv-user-actions button{padding:9px;font-size:11px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*:before,*:after{transition:none!important;animation:none!important}}
