/* Onyx palette adapted from Jaryan Command: presentation only; the site's real forms and data stay in place. */
body[data-command-skin]{--accent:#fbbf24;--accent-light:#251c18;--dark:#1d1015;--body:#0d0709;--parity-yellow:#fbbf24;--parity-ink:#ede0e5;--parity-muted:#c5adb6;--parity-line:#4f343e;--parity-paper:#1d1015;--turquoise:#fbbf24;--teal:#fbbf24;--navy:#1f1116;--navy-soft:#321c24;--ink:#ebdfe3;--muted:#b9a0a9;--line:#493039;--paper:#0d0709;--white:#1c1014;--family-line:#493039;--family-muted:#b9a0a9;--radius:5px;--jv-void:#0d0709;--jv-panel:#1c0f14;--jv-panel-2:#2b181f;--jv-mint:#fbbf24;--jv-mint-2:#fbbf24;--jv-text:#ebdfe3;--jv-text-2:#c5aab4;--jv-text-3:#b699a3;--jv-edge:#442b34;--jv-edge-2:#63434e;background:#0d0709;color:#ebdfe3;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:#0d0709;--body:#0d0709;--paper:#0d0709;--dark:#1d1015}
body[data-command-skin] .catalog-filter{scrollbar-width:thin;scrollbar-color:#623f4c #1d1015;padding-bottom:8px}
body[data-command-skin] ::selection{background:#964524;color:#fff}
body[data-command-skin] :is(h1,h2,h3,h4){color:#efe6e9}
body[data-command-skin] :is(p,small,.muted,.hint,.breadcrumb,.portal-breadcrumb){color:#c1a8b1}
body[data-command-skin] :is(input,select,textarea){background:#140c0f!important;color:#ead9df!important;border-color:#623e4b!important;border-radius:4px;accent-color:var(--accent)}
body[data-command-skin] :is(input,textarea)::placeholder{color:#b29aa3;opacity:1}
body[data-command-skin] :is(.button,.p-button,.portal-login,.floating-assistant,.back-top){background:var(--accent);color:#11090c;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:#2c181f;color:#e6d0d8;border:1px solid #5e3a47;border-radius:4px}
body[data-command-skin] :is(.portal-header,.portal-header-row,.portal-nav,.app-header){background:#140b0e!important;border-color:#432b34;color:#ddccd2}
body[data-command-skin] .portal-header{box-shadow:none}
body[data-command-skin] .mobile-menu-toggle{background:#2d1920;color:#ebdbe1;border:1px solid #64414d;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:#bca1ab}
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:#cbadb8}
body[data-command-skin] .assistant-badge{background:#2f1b22;border-color:#633f4c;box-shadow:none;border-radius:4px}
body[data-command-skin] .global-search{background:#1f1116;border-color:#573843;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:#331c24}
body[data-command-skin] .menu-top{color:#d1bcc4}
body[data-command-skin] :is(.menu-top.selected,.menu-top:hover,.menu-expander){color:var(--accent)}
body[data-command-skin] .mega-menu{background:#1f1116;border:1px solid #573843;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:#d3bbc4}
body[data-command-skin] .mega-links a:hover{background:#381f28;color:#fff}
body[data-command-skin] .command-palette{flex-shrink:0;width:36px;height:36px;background:#26161c;color:var(--accent);border:1px solid #61424d;border-radius:4px;font-size:22px;line-height:1}
body[data-command-skin] :is(.portal-container,.page-container){color:#e0d0d6}
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:#1d1115!important;color:#ddc9d0;border-color:#4e333d!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,#331c24,#190e12)!important;color:#ebdfe3;border-color:#563843;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:#1d1115!important;color:#dfcad1!important;border-color:#50333d!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:#decbd2}
body[data-command-skin] :is(.tool-card:hover,.document-row:hover,.dataset-row:hover,.content-card:hover,.guide-topic-card:hover){background:#311c23!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:#321c24;color:#dfc6cf;border-color:#623f4c;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:#fbbf24;background:#2a2118;border-color:#6b4d2a}
body[data-command-skin] .error{color:#ffb1be;background:#341d28}
body[data-command-skin] :is(.portal-table,table){background:#1c1014;color:#e0ccd3;border-color:#52343f}
body[data-command-skin] :is(th,td){border-color:#52343f!important}
body[data-command-skin] th{background:#331d25!important;color:#efe0e5!important}
body[data-command-skin] tbody tr:nth-child(even){background:#27161c}
body[data-command-skin] tbody tr:hover{background:#3a2029}
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:#e0ccd3!important}
body[data-command-skin] :is(.law-sidebar a,.guide-index a,.guide-links a,.registry-result a,.info-sidebar a){color:#dcc4cd}
body[data-command-skin] :is(.law-layout-page,.law-reading-page,.draft-main){--accent:var(--turquoise);--accent-light:#32251f;--dark:#1c1014}
body[data-command-skin] :is(.law-crumbs a,.law-crumbs [aria-current],.law-article-nav a){color:#dfc5ce}
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:#381f28!important;color:#efdee4!important;border-color:#68404f!important}
body[data-command-skin] .law-analysis-action{background:var(--accent);color:#120a0d}
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:#140b0e;color:#c2a8b1;border-color:#492d37}
body[data-command-skin] .portal-footer h3{color:#e7d7dd}
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:#331c24!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:#fbbf24!important;color:#11090c!important;border-color:#fbbf24!important}
body[data-command-skin] .p-button.accent:hover,body[data-command-skin] .button:hover,body[data-command-skin] .portal-login:hover{background:#fbbf24;color:#11090c;border-color:#fbbf24}
body[data-command-skin] .p-button.outline{background:#2b181f;color:#eadae0;border:1px solid #623e4b}
body[data-command-skin] .p-button.outline:hover{background:#3f232d;color:#fff;border-color:#83616d}
/* Intro emphasis must stay readable across the whole Persian line box. */
body[data-command-skin] .ai-hero mark{background:none;color:#fbbf24;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:#361e27;color:#fbbf24}
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:#170d11;border-color:#492e38}
body[data-command-skin] :is(.app-body,.workspace-content,.app-shell){background:#11090c}
body[data-command-skin] :is(.app-nav a,.user-row,.sidebar-help,.quota-box){color:#ccb0ba;border-color:#53323e}
body[data-command-skin] .app-nav a[aria-current="page"]{background:#361f27;color:var(--accent)}
body[data-command-skin] .header-home{display:inline-flex!important;align-items:center;flex-shrink:0;gap:5px;color:#eedde3!important;font-size:12px;padding:7px 11px;border:1px solid #64404d;border-radius:4px;background:#2e1a21}
body[data-command-skin] .command-home-link{border:1px solid #64404d;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%,#74344b25,transparent 65%)}
body.reference-chat[data-command-skin] :is(.app-sidebar,.app-header,.chat-topline){background:#180e12}
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:#ecdfe4;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:#26161c;border:1px solid #5a3643;border-radius:4px;color:#dac4cc;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:#381f28;border-color:#643c4a;color:#e1cad2;border-radius:5px}
body.reference-chat[data-command-skin] .bubble.assistant{background:#231419;color:#e1cad2;border-color:#553440;border-radius:5px;box-shadow:inset 3px 0 var(--accent)}
body.reference-chat[data-command-skin] .source{background:#311c23;color:#debeca;border-color:#693f4e}
body.reference-chat[data-command-skin] .composer{background:#221318;border:1px solid #724455;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:#120a0d}
body.reference-chat[data-command-skin] .new-conversation{background:var(--accent);color:#120a0d;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:#24141a;color:#d2b7c1;border-color:#55323f;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%,#58253755,transparent 70%),#140b0e}
body[data-command-skin].login-page .login-form-side{background:#1c0f14}
body[data-command-skin].login-page :is(.login-flow span,.login-form-box){color:#e6d6dc}
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 #462d36;background:#0d0709;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%,#0d070955 55%,#0d0709e8 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:#c4aeb6}
.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:#10090c!important;border:1px solid var(--accent)}
.command-secondary{background:#221318;color:#e7d6dc!important;border:1px solid #623f4c}
.command-code{position:absolute;left:5%;bottom:32px;font:10px/2 monospace;letter-spacing:2px;color:#b4909d;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:#1c1014;border:1px solid #4e333d;border-radius:5px;transition:border-color .2s,transform .2s}
.command-card:first-child{background:linear-gradient(140deg,#242019,#1f1217);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:#1f1116;border:1px solid #53343f;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 #4c303a;background:radial-gradient(ellipse at bottom,#592d3d33,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,#73354b38,transparent 65%);z-index:-1}
.command-robot svg{height:190px;max-width:100%;filter:drop-shadow(0 0 12px #de659022)}
.command-robot .robot-eye{fill:var(--accent);animation:command-eye 6s infinite}.command-robot .robot-core{fill:var(--accent)}
.command-robot .robot-panel{fill:#321c24;stroke:#92596e;stroke-width:.7}
.command-robot .robot-scan{stroke:#e688aa;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(#0d070988,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}}
