/* Cosmic palette adapted from Jaryan Command: presentation only; the site's real forms and data stay in place. */
body[data-command-skin]{--accent:#67e8f9;--accent-light:#251c18;--dark:#120b22;--body:#08060e;--parity-yellow:#67e8f9;--parity-ink:#e3ddf0;--parity-muted:#b1a6cc;--parity-line:#382c57;--parity-paper:#120b22;--turquoise:#67e8f9;--teal:#67e8f9;--navy:#130b25;--navy-soft:#1f143a;--ink:#e1dcee;--muted:#a499c0;--line:#342950;--paper:#08060e;--white:#120c20;--family-line:#342950;--family-muted:#a499c0;--radius:5px;--jv-void:#08060e;--jv-panel:#110b20;--jv-panel-2:#1a1033;--jv-mint:#67e8f9;--jv-mint-2:#67e8f9;--jv-text:#e1dcee;--jv-text-2:#afa3cc;--jv-text-3:#9e91be;--jv-edge:#2f244b;--jv-edge-2:#483a6c;background:#08060e;color:#e1dcee;color-scheme:dark}
body[data-command-skin] :focus-visible{outline:2px solid var(--accent);outline-offset:4px}
body[data-command-skin].portal-page,body[data-command-skin].workspace-page,body[data-command-skin].login-page{background:#08060e;--body:#08060e;--paper:#08060e;--dark:#120b22}
body[data-command-skin] .catalog-filter{scrollbar-width:thin;scrollbar-color:#45366b #120b22;padding-bottom:8px}
body[data-command-skin] ::selection{background:#964524;color:#fff}
body[data-command-skin] :is(h1,h2,h3,h4){color:#e8e4f1}
body[data-command-skin] :is(p,small,.muted,.hint,.breadcrumb,.portal-breadcrumb){color:#ada2c7}
body[data-command-skin] :is(input,select,textarea){background:#0d0818!important;color:#dcd5ee!important;border-color:#44346c!important;border-radius:4px;accent-color:var(--accent)}
body[data-command-skin] :is(input,textarea)::placeholder{color:#9e93b9;opacity:1}
body[data-command-skin] :is(.button,.p-button,.portal-login,.floating-assistant,.back-top){background:var(--accent);color:#0b0812;border-color:var(--accent);border-radius:4px;box-shadow:none}
body[data-command-skin] :is(.button.outline,.button-small,.p-button.secondary,.text-button,.icon-button){background:#1a1034;color:#d4caec;border:1px solid #403068;border-radius:4px}
body[data-command-skin] :is(.portal-header,.portal-header-row,.portal-nav,.app-header){background:#0c0817!important;border-color:#2f2549;color:#cfc7e2}
body[data-command-skin] .portal-header{box-shadow:none}
body[data-command-skin] .mobile-menu-toggle{background:#1b1036;color:#ded6f0;border:1px solid #47376e;border-radius:4px}
body[data-command-skin] .portal-header-row{min-height:102px;gap:16px}
body[data-command-skin] :is(.portal-logo,.brand,.header-brand){color:#f0f1eb}
body[data-command-skin] :is(.portal-logo small,.header-support small,.brand small){color:#a69ac3}
body[data-command-skin] .portal-logo img{background:var(--accent);border-radius:5px;padding:0}
body[data-command-skin] :is(.assistant-badge,.header-support,.header-icon){color:#b2a5d3}
body[data-command-skin] .assistant-badge{background:#1d1238;border-color:#45356d;box-shadow:none;border-radius:4px}
body[data-command-skin] .global-search{background:#130c24;border-color:#3e305f;border-radius:4px}
body[data-command-skin] .global-search :is(input,select){background:transparent!important}
body[data-command-skin] .global-search button{color:var(--accent);background:#1f143b}
body[data-command-skin] .menu-top{color:#c0b7d6}
body[data-command-skin] :is(.menu-top.selected,.menu-top:hover,.menu-expander){color:var(--accent)}
body[data-command-skin] .mega-menu{background:#130c24;border:1px solid #3e305f;box-shadow:0 22px 50px #0009}
body[data-command-skin] .mega-menu h3 a{color:var(--accent)}
body[data-command-skin] .mega-links a{color:#bfb4da}
body[data-command-skin] .mega-links a:hover{background:#231740;color:#fff}
body[data-command-skin] .command-palette{flex-shrink:0;width:36px;height:36px;background:#18102c;color:var(--accent);border:1px solid #483a69;border-radius:4px;font-size:22px;line-height:1}
body[data-command-skin] :is(.portal-container,.page-container){color:#d3cbe5}
body[data-command-skin] :is(.portal-panel,.portal-section,.tool-card,.content-card,.document-row,.portal-plan,.info-article,.info-sidebar,.guide-topic-card,.guide-section,.guide-sidebar,.catalogue-comparison,.catalogue-side-note,.product-summary,.product-related-links,.book-resources,.course-row,.book-row,.dataset-row,.circular-item,.reading-document,.doc-reader,.document-body,.dashboard-profile,.dashboard-metrics>div,.dashboard-sidebar,.exam-sidebar,.exam-body,.study-path,.service-guide,.service-tiles>*,.form-result,.tool-guidance,.plan-list>*,.account-metrics>div){background:#120c22!important;color:#ccc3e3;border-color:#372b56!important;border-radius:5px;box-shadow:inset 0 1px #ffffff04}
body[data-command-skin] :is(.portal-intro,.catalogue-heading,.product-hero,.tools-hero,.rules-hero,.subscription-hero,.book-hero,.dictionary-hero,.guide-hero,.service-hero,.ai-hero){background:linear-gradient(125deg,#1f143b,#100a1d)!important;color:#e1dcee;border-color:#3d305e;border-radius:5px}
body[data-command-skin] :is(.portal-filter,.portal-search,.reference-toolbar,.reference-column-menu>div,.reference-filter-row td,.registry-search,.registry-categories,.registry-coverage,.registry-document-meta,.registry-review-note,.law-education,.law-analysis-bar,.law-analysis,.law-sheet,.law-sheet-header,.law-sidebar,.law-contents-table,.law-official-block,.draft-main,.draft-reader,.draft-page,.dashboard-main,.exam-heading,.subscription-hero,.portal-faq details,.form-toolbar,.form-fields,.study-options button,.portal-soft){background:#120b23!important;color:#cec4e5!important;border-color:#382b58!important}
body[data-command-skin] :is(.law-official-text,.law-note-source,.law-stored-note,.reading-meta,.reading-document,.document-body,.guide-content,.guide-link,.registry-result,.registry-document-sidebar){color:#cec6e3}
body[data-command-skin] :is(.tool-card:hover,.document-row:hover,.dataset-row:hover,.content-card:hover,.guide-topic-card:hover){background:#1f1439!important;border-color:var(--accent)!important}
body[data-command-skin] :is(.tool-card>span:first-child,.overline,.catalogue-heading-title small,.portal-intro>small,.guide-section-icon,.reference-back,.reference-clear,.reference-provenance a,.reference-sources a){color:var(--accent)}
body[data-command-skin] :is(.tag,.portal-pill,.catalog-filter,.alphabet a,.exam-tabs button,.plan-switch button,.overview-tabs button,.portal-filter button,.study-options button){background:#1f143a;color:#cabfe6;border-color:#45366b;border-radius:4px}
body[data-command-skin] :is(.tag.ok,.ok){color:#a1e4b0;background:#132d23}
body[data-command-skin] :is(.tag.warn,.warn,.notice,.status-note,.reading-caution){color:#67e8f9;background:#2a2118;border-color:#6b4d2a}
body[data-command-skin] .error{color:#ffb1be;background:#341d28}
body[data-command-skin] :is(.portal-table,table){background:#110b21;color:#d0c7e5;border-color:#392c5a}
body[data-command-skin] :is(th,td){border-color:#392c5a!important}
body[data-command-skin] th{background:#20153b!important;color:#e3dcf3!important}
body[data-command-skin] tbody tr:nth-child(even){background:#18102d}
body[data-command-skin] tbody tr:hover{background:#251941}
body[data-command-skin] :is(.portal-table td,.law-official-table td,.law-contents-table td,.law-metrics-table td,.reference-table td){background:transparent!important;color:#d0c7e5!important}
body[data-command-skin] :is(.law-sidebar a,.guide-index a,.guide-links a,.registry-result a,.info-sidebar a){color:#c8bde3}
body[data-command-skin] :is(.law-layout-page,.law-reading-page,.draft-main){--accent:var(--turquoise);--accent-light:#32251f;--dark:#110b21}
body[data-command-skin] :is(.law-crumbs a,.law-crumbs [aria-current],.law-article-nav a){color:#cabee6}
body[data-command-skin] :is(.law-sidebar form button,.law-sidebar form,.law-sidebar .selected,.law-sidebar .active,.law-sidebar a[aria-current],.law-analysis-choices button[aria-pressed=true]){background:#221443!important;color:#e1d9f4!important;border-color:#473672!important}
body[data-command-skin] .law-analysis-action{background:var(--accent);color:#0b0814}
body[data-command-skin] :is(.selected,.active,[aria-current="page"]){border-color:var(--accent)}
body[data-command-skin] :is(.portal-footer,.footer-contact,.footer-bottom){background:#0c0817;color:#ada1c9;border-color:#322650}
body[data-command-skin] .portal-footer h3{color:#dad2ec}
body[data-command-skin] .portal-footer a:hover{color:var(--accent)}
/* Consistent component geometry across the established page families. */
body[data-command-skin] :is(.law-sheet,.law-sidebar,.portal-plan,.portal-intro,.catalogue-heading,.rules-hero,.rules-stats,.rules-popular,.rule-shortcuts a,.rules-table-row,.reference-dataset,.portal-search,.info-article,.info-sidebar,.guide-topic-card,.portal-faq details,.dashboard-profile,.dashboard-metrics article,.dashboard-plans article,.dashboard-sidebar,.service-guide,.study-path,.book-card,.exam-body,.exam-sidebar){border-radius:6px!important;box-shadow:none!important}
body[data-command-skin] :is(.catalog-filter button,.alphabet button,.study-options button,.law-sidebar-tabs strong,.law-analysis-choices,.law-analysis-choices button,.law-analysis-action,.reference-toolbar button){border-radius:4px}
body[data-command-skin] :is(.tool-card,.content-card){transition:border-color .18s ease,transform .18s ease}
body[data-command-skin] .tool-card>span{background:#211738!important;color:var(--accent)!important;border-radius:4px}
body[data-command-skin] .catalog-filter button.active,body[data-command-skin] .alphabet button.active,body[data-command-skin] .overview-tabs button[aria-selected=true]{background:#67e8f9!important;color:#0b0812!important;border-color:#67e8f9!important}
body[data-command-skin] .p-button.accent:hover,body[data-command-skin] .button:hover,body[data-command-skin] .portal-login:hover{background:#67e8f9;color:#0b0812;border-color:#67e8f9}
body[data-command-skin] .p-button.outline{background:#1a1033;color:#ddd5ef;border:1px solid #45356b}
body[data-command-skin] .p-button.outline:hover{background:#271949;color:#fff;border-color:#67588c}
/* Intro emphasis must stay readable across the whole Persian line box. */
body[data-command-skin] .ai-hero mark{background:none;color:#67e8f9;padding:0}
body[data-command-skin] .ai-hero h1{font-size:clamp(28px,3.8vw,49px);line-height:1.8;text-wrap:balance}
body[data-command-skin] .dashboard-metrics strong{color:var(--accent)}
body.reference-chat[data-command-skin] .app-nav a[aria-current="page"],body.reference-chat[data-command-skin] .app-nav a[aria-current="page"] span{background:#23193b;color:#67e8f9}
body.reference-chat[data-command-skin] .composer-footer .button{width:auto;min-width:82px;height:40px;min-height:40px;padding:8px 15px;gap:10px;border-radius:4px;font-size:12px;line-height:1.5;box-shadow:none}
body.reference-chat[data-command-skin] .composer-footer .button>span{font-size:16px}
body[data-command-skin] .back-top{width:42px;height:42px;bottom:24px;left:20px;font-size:18px}
body[data-command-skin] .floating-assistant{width:46px;height:46px;bottom:24px;right:20px;font-size:22px}
@media(max-width:750px){
  body[data-command-skin] .dashboard-layout{padding-top:18px;display:flex;flex-direction:column;gap:20px}
  body[data-command-skin] .dashboard-sidebar{padding:16px;width:100%}
  body[data-command-skin] .dashboard-sidebar h1{font-size:20px;margin-bottom:12px}
  body[data-command-skin] .dashboard-sidebar nav{display:grid;grid-template-columns:1fr 1fr;gap:6px;overflow:visible}
  body[data-command-skin] .dashboard-sidebar nav a{padding:8px;font-size:12px;white-space:normal}
  body[data-command-skin] .dashboard-sidebar form{margin-top:8px}
  body[data-command-skin] .dashboard-sidebar button{padding:6px 8px;font-size:12px}
  body[data-command-skin] .dashboard-main{width:100%;min-width:0}
  body[data-command-skin] .dashboard-metrics{gap:8px}
  body[data-command-skin] .back-top{left:12px;bottom:16px}
  body[data-command-skin] .floating-assistant{right:12px;bottom:16px}
}
@media(max-width:420px){
  body[data-command-skin] .portal-header-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 8px;height:auto;padding:18px 16px}
  body[data-command-skin] .portal-logo{grid-area:1/1;min-width:0;gap:8px}
  body[data-command-skin] .portal-logo>span{font-size:21px;white-space:nowrap}
  body[data-command-skin] .portal-logo small{font-size:8px;white-space:nowrap}
  body[data-command-skin] .portal-logo img{width:36px;height:36px}
  body[data-command-skin] .portal-header-row .portal-login{grid-area:1/2;margin-left:40px;padding:8px 10px;font-size:10px;white-space:nowrap}
  body[data-command-skin] .global-search{grid-area:2/1/3/3;width:100%;min-width:0;max-width:none}
}
body[data-command-skin] .app-sidebar{background:#0e081c;border-color:#322651}
body[data-command-skin] :is(.app-body,.workspace-content,.app-shell){background:#0a0614}
body[data-command-skin] :is(.app-nav a,.user-row,.sidebar-help,.quota-box){color:#b5a9d3;border-color:#38295c}
body[data-command-skin] .app-nav a[aria-current="page"]{background:#22173e;color:var(--accent)}
body[data-command-skin] .header-home{display:inline-flex!important;align-items:center;flex-shrink:0;gap:5px;color:#e0d8f3!important;font-size:12px;padding:7px 11px;border:1px solid #46366e;border-radius:4px;background:#1c1137}
body[data-command-skin] .command-home-link{border:1px solid #46366e;border-radius:4px;margin-bottom:10px}
body[data-command-skin] .app-header{gap:10px;flex-wrap:wrap}
body[data-command-skin] .app-header>div{margin-inline-end:auto}
body.reference-chat[data-command-skin] .app-shell::before{background:radial-gradient(ellipse at 25% 20%,#3f238525,transparent 65%)}
body.reference-chat[data-command-skin] :is(.app-sidebar,.app-header,.chat-topline){background:#0e081e}
body.reference-chat[data-command-skin] .chat-empty{max-width:820px;padding-top:10px}
body.reference-chat[data-command-skin] .chat-empty::before,body.reference-chat[data-command-skin] .chat-empty::after{display:none}
body.reference-chat[data-command-skin] .chat-empty h1{color:#e2dcef;font-size:clamp(23px,3vw,33px)}
body.reference-chat[data-command-skin] .welcome-mark{display:none}
body.reference-chat[data-command-skin] .prompt-grid button{background:#160c30;border:1px solid #3c2c64;border-radius:4px;color:#c8bee0;box-shadow:none}
body.reference-chat[data-command-skin] .prompt-grid button:hover{border-color:var(--accent)}
body.reference-chat[data-command-skin] :is(.prompt-icon,.prompt-arrow){color:var(--accent);background:transparent}
body.reference-chat[data-command-skin] .bubble.user{background:#221443;border-color:#43316f;color:#cec4e7;border-radius:5px}
body.reference-chat[data-command-skin] .bubble.assistant{background:#150c2b;color:#cec4e7;border-color:#3a2b5e;border-radius:5px;box-shadow:inset 3px 0 var(--accent)}
body.reference-chat[data-command-skin] .source{background:#1d103d;color:#c4b6e6;border-color:#463375}
body.reference-chat[data-command-skin] .composer{background:#140b2a;border:1px solid #4c387e;border-radius:5px;box-shadow:none}
body.reference-chat[data-command-skin] .composer textarea{background:transparent!important;border:0!important}
body.reference-chat[data-command-skin] .composer .button{background:var(--accent);color:#0c0913}
body.reference-chat[data-command-skin] .new-conversation{background:var(--accent);color:#0b0814;border-radius:4px;box-shadow:none}
body.reference-chat[data-command-skin] .app-nav{display:flex;flex-direction:column;gap:4px;margin-block:14px}
body.reference-chat[data-command-skin] .app-nav a{padding:9px 12px}
body.reference-chat[data-command-skin] .app-sidebar>.brand{display:flex;margin-bottom:18px}
body.reference-chat[data-command-skin] :is(.empty-list,.user-row){background:#150c2c;color:#bbafda;border-color:#38295e;border-radius:4px}
body.reference-chat[data-command-skin] .conversation-area{min-height:70px;overflow-y:auto}
body[data-command-skin].login-page .login-intro{background:radial-gradient(ellipse at 25% 30%,#2e186555,transparent 70%),#0c0817}
body[data-command-skin].login-page .login-form-side{background:#110b20}
body[data-command-skin].login-page :is(.login-flow span,.login-form-box){color:#d9d1eb}
body[data-command-skin].login-page em{color:var(--accent)}
/* Homepage uses the supplied command composition, with actual application links. */
.command-hero{position:relative;min-height:660px;overflow:hidden;border-bottom:1px solid #31264d;background:#08060e;isolation:isolate}
.command-hero canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:-2}
.command-hero::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,transparent 25%,#08060e55 55%,#08060ee8 90%);pointer-events:none}
.command-wrap{width:min(1270px,90%);margin-inline:auto}
.command-hero .command-wrap{padding-block:96px 100px}
.command-kicker{font-size:11px;letter-spacing:2px;color:var(--accent);display:block}
body[data-command-skin] .command-hero h1{font-size:clamp(42px,5.2vw,78px);line-height:1.65;letter-spacing:-2px;max-width:780px;margin-block:25px;color:#eff0e8}
.command-hero h1 span{color:var(--accent)}
body[data-command-skin] .command-hero p{max-width:480px;font-size:14px;line-height:2.5;color:#b2a8ca}
.command-actions{display:flex;gap:12px;margin-top:30px;flex-wrap:wrap}
.command-actions a{display:inline-flex;align-items:center;gap:16px;padding:13px 23px;border-radius:3px;font-weight:600}
.command-primary{background:var(--accent);color:#0a0712!important;border:1px solid var(--accent)}
.command-secondary{background:#150e27;color:#d9d1ec!important;border:1px solid #45366b}
.command-code{position:absolute;left:5%;bottom:32px;font:10px/2 monospace;letter-spacing:2px;color:#9787bd;direction:ltr}
.command-section{padding-block:75px}
.command-section+.command-section{padding-top:0}
.command-section h2{font-size:clamp(24px,3vw,38px);margin-block:14px}
.command-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:30px}
.command-card{display:flex;flex-direction:column;gap:17px;padding:32px;background:#110b21;border:1px solid #372b56;border-radius:5px;transition:border-color .2s,transform .2s}
.command-card:first-child{background:linear-gradient(140deg,#242019,#151021);border-color:#694128}
.command-card:hover{border-color:var(--accent);transform:translateY(-3px)}
.command-card>span{font-size:28px;color:var(--accent)}
.command-card h3{font-size:23px}.command-card p{font-size:14px;line-height:2.2}
.command-card b{color:var(--accent);font-size:13px;margin-top:auto}
.command-tool-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:30px}
.command-tool-grid a{padding:23px;background:#130c24;border:1px solid #3a2c5b;border-radius:4px;display:flex;flex-direction:column;gap:10px}
.command-tool-grid a:hover{border-color:var(--accent)}
.command-tool-grid span{color:var(--accent);font-size:25px}.command-tool-grid small{font-size:12px}
.command-ending{text-align:center;padding:70px 25px;margin-bottom:65px;border-block:1px solid #352953;background:radial-gradient(ellipse at bottom,#35216533,transparent 80%)}
.command-ending h2{font-size:clamp(25px,3vw,40px)}.command-ending .command-actions{justify-content:center}
.command-robot{height:190px;display:grid;place-items:center;position:relative;overflow:hidden;isolation:isolate;margin-bottom:12px}
.command-robot::before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse,#40248438,transparent 65%);z-index:-1}
.command-robot svg{height:190px;max-width:100%;filter:drop-shadow(0 0 12px #7a44ff22)}
.command-robot .robot-eye{fill:var(--accent);animation:command-eye 6s infinite}.command-robot .robot-core{fill:var(--accent)}
.command-robot .robot-panel{fill:#1d0e40;stroke:#634aa1;stroke-width:.7}
.command-robot .robot-scan{stroke:#996fff;stroke-width:1;opacity:.5;animation:command-scan 5s ease-in-out infinite}
@keyframes command-scan{0%,100%{transform:translateY(-55px);opacity:0}50%{transform:translateY(65px);opacity:.6}}
@keyframes command-eye{0%,92%,100%{opacity:1}95%{opacity:.2}}
@media(max-width:1100px){.command-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.command-grid{gap:12px}.command-card{padding:22px}.command-hero .command-wrap{padding-block:75px 100px}}
@media(max-width:750px){body[data-command-skin] .portal-header-row{gap:10px;flex-wrap:wrap;padding-block:18px}body[data-command-skin] .header-home{font-size:11px;padding:6px 8px}body[data-command-skin] .app-header>div{font-size:11px}body[data-command-skin] .app-header{padding:10px 12px}body[data-command-skin] .command-palette{width:30px;height:30px}.command-hero{min-height:620px}.command-hero .command-wrap{padding-block:55px 110px}.command-hero::after{background:linear-gradient(#08060e88,transparent 85%)}body[data-command-skin] .command-hero h1{font-size:clamp(37px,9vw,52px);letter-spacing:-1px;line-height:1.8}body[data-command-skin] .command-hero p{font-size:12px}.command-grid{grid-template-columns:1fr}.command-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.command-tool-grid a{padding:17px}.command-section{padding-block:45px}.command-card h3{font-size:22px}.command-actions a{padding:12px 16px;font-size:12px}.command-robot{height:140px}.command-robot svg{height:140px}body.reference-chat[data-command-skin] .chat-empty h1{font-size:23px}body.reference-chat[data-command-skin] .prompt-grid{gap:10px}}
@media print{body[data-command-skin],body[data-command-skin] :is(.law-sheet,.reading-document,.document-body,table,th,td,p,h1,h2,h3){background:white!important;color:black!important}.command-palette,.command-robot,.command-hero canvas{display:none!important}}
@media(prefers-reduced-motion:reduce){body[data-command-skin] *,body[data-command-skin] *::before,body[data-command-skin] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
