/* AIOS V25 – In-app guide. Fully scoped: no changes to other forms/modals/tables. */
.aios-help {
  --hg-bg: #0e2230;
  --hg-card: #142c3b;
  --hg-card-alt: #193545;
  --hg-border: #335365;
  --hg-text: #f1f8fb;
  --hg-muted: #aec3ce;
  --hg-accent: #47ead6;
  --hg-accent-ink: #002e30;
  --hg-tint: rgba(71, 234, 214, .09);
  --hg-glow: rgba(71, 234, 214, .2);
  --hg-shadow: rgba(0, 3, 10, .17);
  direction: rtl;
  color: var(--hg-text);
  width: min(100%, 1180px);
  margin: 0 auto 38px;
  padding-bottom: 10px;
  font-size: 14px;
  line-height: 1.9;
}
html[data-theme="light"] .aios-help {
  --hg-bg: #f0f7f8;
  --hg-card: #ffffff;
  --hg-card-alt: #e9f5f4;
  --hg-border: #c6dce2;
  --hg-text: #153947;
  --hg-muted: #546f7d;
  --hg-accent: #007a71;
  --hg-accent-ink: #ffffff;
  --hg-tint: #e1f4ef;
  --hg-glow: rgba(0, 116, 112, .12);
  --hg-shadow: rgba(19, 73, 89, .07);
}
.aios-help *, .aios-help *::before, .aios-help *::after { box-sizing: border-box; }
.aios-help :is(h1,h2,h3,h4,p,strong,b,small,summary) { color: inherit; }
.aios-help :is(h1,h2,h3,h4,p) { margin: 0; }
.aios-help a { text-decoration: none; }
.aios-help :is(a,button,summary):focus-visible { outline: 3px solid #fbbf55; outline-offset: 3px; }
.aios-help :is(.help-hero,.help-role-section,.help-faq,.help-bottom) { min-width: 0; }
.aios-help .help-eyebrow,.aios-help .help-kicker { font-size: 11px; letter-spacing: .01em; font-weight: 750; }
.aios-help .help-kicker { color: var(--hg-accent); }
.aios-help .help-hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(210px, .6fr);
  align-items: center; gap: 20px; min-height: 285px;
  padding: clamp(22px, 4.5vw, 45px); margin-bottom: 26px;
  background: linear-gradient(120deg, #082934 2%, #0b4150 64%, #092733 100%);
  border: 1px solid #326f74; border-radius: 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .14);
  color: #f4fbfd;
}
html[data-theme="light"] .aios-help .help-hero { background: linear-gradient(125deg, #e6f6f4 0%, #d3ecee 56%, #d6eaf1 100%); border-color: #b0d6dc; color: #163d4b; box-shadow: 0 16px 35px rgba(24,77,85,.07); }
.aios-help .help-hero::after { content:""; position:absolute; inset:-100px auto auto -170px; width:360px; height:360px; border-radius:50%; border:1px solid rgba(87,249,230,.12); box-shadow:0 0 0 48px rgba(87,249,230,.035),0 0 0 112px rgba(87,249,230,.025); pointer-events:none; z-index:-1; }
.aios-help .help-hero-main { position: relative; z-index: 1; }
.aios-help .help-eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 5px 12px; border-radius: 30px; background: rgba(75, 222, 215, .12); color: #b6fbf0; border: 1px solid rgba(128,244,228,.3); }
html[data-theme="light"] .aios-help .help-eyebrow { color:#006c69; border-color:#9acfc7; background:#dcf3ed; }
.aios-help .help-eyebrow-dot { width:7px;height:7px;border-radius:50%;background:#56eac9;box-shadow:0 0 0 4px rgba(72, 237, 206,.17); }
.aios-help .help-hero h1 { max-width: 670px; margin: 19px 0 11px; font-size: clamp(24px,3.25vw,37px); font-weight: 850; line-height: 1.55; letter-spacing: -.025em; }
.aios-help .help-hero h1 span { color: #66efdf; }
html[data-theme="light"] .aios-help .help-hero h1 span { color:#007e74; }
.aios-help .help-hero p { max-width: 630px; color: #c0d6db; font-size: 13px; line-height: 2.1; }
html[data-theme="light"] .aios-help .help-hero p { color:#4a6b76; }
.aios-help .help-hero-actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-top:24px; }
.aios-help .help-button { min-height: 42px; display: inline-flex; justify-content:center; align-items:center; gap: 12px; font-weight:800; font-size: 12px; padding:9px 17px; border:1px solid var(--hg-border); border-radius: 12px; transition: filter .15s, transform .15s, border-color .15s; white-space: normal; text-align:center; }
.aios-help .help-button:hover { transform: translateY(-1px); filter:brightness(1.07); }
.aios-help .help-button-main { background:#29e1cf; color:#042f34!important; border-color:#29e1cf; box-shadow:0 8px 23px rgba(32,215,195,.12); }
html[data-theme="light"] .aios-help .help-button-main { background:#00796f; color:white!important; border-color:#00796f; }
.aios-help .help-button-quiet { color:#d8f4f4!important; background:rgba(15,62,73,.48); border-color:rgba(147,220,218,.3); }
html[data-theme="light"] .aios-help .help-button-quiet { color:#175263!important; background:#f7fefe; border-color:#acd0d4; }
.aios-help .help-hero-visual { position: relative; height: 205px; min-width:0; display: grid; place-items:center; overflow:hidden; }
.aios-help .help-orbit { position:absolute; border-radius:50%; border:1px solid rgba(57,237,217,.35); transform: rotate(-18deg); }
.aios-help .help-orbit-one {width:195px;height:195px;box-shadow:0 0 38px rgba(43,235,213,.16) inset;}
.aios-help .help-orbit-two {width:132px;height:132px;border-style:dashed;animation:helpOrbit 23s linear infinite;}
@keyframes helpOrbit { to {transform: rotate(342deg);} }
.aios-help .help-core { height:78px;width:211px;display:flex;gap:12px;align-items:center;justify-content:center;border-radius:22px;background:linear-gradient(135deg,rgba(52,236,219,.19),rgba(15,86,104,.84));border:1px solid rgba(121,245,228,.48);box-shadow:0 0 52px rgba(47,224,208,.16); }
.aios-help .help-core span {display:grid;place-items:center;height:45px;width:45px;border:1px solid rgba(142,244,229,.56);border-radius:12px;background:rgba(9,63,76,.68);color:#ccfff5;font-size:16px;font-weight:850;}
.aios-help .help-core i {height:1px;flex:1;max-width:16px;background:#6cf5e0;}
.aios-help .help-hero-visual-caption {position:absolute;bottom:4px;font-size:11px;color:#c7edec;}
.aios-help .help-hero-visual-caption b {color:#6be9df;margin:0 8px;}
html[data-theme="light"] .aios-help .help-hero-visual-caption {color:#1f5260;}
.aios-help .help-section-intro {display:flex;align-items:end;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:17px;}
.aios-help .help-section-intro h2 {font-size:clamp(20px,2.4vw,25px);font-weight:850;margin-top:4px;}
.aios-help .help-role-hint {font-size:12px;color:var(--hg-muted);}
.aios-help .help-role-section {margin-bottom:34px;}
.aios-help .help-tabs {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:16px;}
.aios-help .help-tab {display:flex;gap:12px;align-items:center;justify-content:center;min-height:48px;padding:9px 11px;border-radius:12px;border:1px solid var(--hg-border);font:inherit;font-size:12.5px;font-weight:800;line-height:1.5;background:var(--hg-card);color:var(--hg-muted);cursor:pointer;transition:background .14s,border-color .14s,color .14s;}
.aios-help .help-tab:hover {border-color:var(--hg-accent);color:var(--hg-text);}
.aios-help .help-tab.is-active {background:var(--hg-tint);color:var(--hg-text);border-color:var(--hg-accent);box-shadow:inset 0 -2px 0 var(--hg-accent);}
.aios-help .help-tab-idx {display:grid;place-items:center;width:25px;height:25px;flex:none;border-radius:8px;background:var(--hg-card-alt);border:1px solid var(--hg-border);font-size:10px;color:var(--hg-muted);font-weight:800;}
.aios-help .help-tab.is-active .help-tab-idx {background:var(--hg-accent);color:var(--hg-accent-ink);border-color:var(--hg-accent);}
.aios-help .help-role-panel {padding:clamp(17px,2.8vw,27px);border:1px solid var(--hg-border);border-radius:19px;background:var(--hg-bg);box-shadow:0 12px 30px var(--hg-shadow);scroll-margin-top:95px;}
.aios-help .help-role-panel[hidden] {display:none!important;}
.aios-help .help-panel-heading {display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid var(--hg-border);}
.aios-help .help-panel-heading h3 {font-size:21px;margin-top:5px;font-weight:850;}
.aios-help .help-panel-heading p {font-size:12.5px;color:var(--hg-muted);margin-top:4px;}
.aios-help .help-duration {padding:5px 13px;border-radius:30px;font-size:11px;color:var(--hg-muted);background:var(--hg-card);border:1px solid var(--hg-border);}
.aios-help .help-steps {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;}
.aios-help .help-step {display:flex;gap:13px;align-items:start;padding:19px 17px;border:1px solid var(--hg-border);border-radius:14px;background:var(--hg-card);min-height:148px;transition:transform .15s,box-shadow .15s;}
.aios-help .help-step:hover {transform:translateY(-1px);box-shadow:0 12px 23px var(--hg-shadow);}
.aios-help .help-step-number {display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:11px;background:var(--hg-tint);border:1px solid var(--hg-border);color:var(--hg-accent);font-weight:900;font-size:16px;font-variant-numeric:tabular-nums;}
.aios-help .help-step h4 {font-size:14px;font-weight:850;line-height:1.7;margin:1px 0 6px;}
.aios-help .help-step p {font-size:12.5px;line-height:2.05;color:var(--hg-muted);}
.aios-help .help-step p strong {color:var(--hg-text);font-weight:850;}
.aios-help .help-step a {display:inline-flex;align-items:center;gap:7px;margin-top:8px;color:var(--hg-accent);font-size:12px;font-weight:800;}
.aios-help .help-step-note {display:block;margin-top:10px;padding:8px 10px;border-right:3px solid var(--hg-accent);border-radius:7px;background:var(--hg-tint);font-size:11.7px;line-height:1.9;color:var(--hg-text);}
.aios-help .help-callout {display:flex;gap:15px;align-items:start;margin-top:17px;padding:15px 17px;border:1px solid #a78547;border-radius:13px;background:rgba(230,161,55,.09);}
.aios-help .help-callout-mark {display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:9px;color:#3d260a;background:#f3b950;font-weight:900;}
.aios-help .help-callout strong {font-size:12.5px;font-weight:850;}
.aios-help .help-callout p {font-size:12px;color:var(--hg-muted);margin-top:5px;line-height:2;}
.aios-help .help-panel-cta {margin-top:20px;}
.aios-help .help-faq {scroll-margin-top:100px;margin-top:30px;}
.aios-help .help-faq-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:start;}
.aios-help .help-faq-grid details {min-width:0;border-radius:13px;border:1px solid var(--hg-border);background:var(--hg-card);overflow:hidden;}
.aios-help .help-faq-grid summary {display:flex;align-items:center;justify-content:space-between;gap:13px;list-style:none;cursor:pointer;padding:15px 16px;font-size:12.6px;line-height:1.8;font-weight:800;}
.aios-help .help-faq-grid summary::-webkit-details-marker {display:none;}
.aios-help .help-faq-grid details[open] {border-color:var(--hg-accent);}
.aios-help .help-faq-plus {display:grid;place-items:center;flex:none;width:23px;height:23px;border-radius:7px;background:var(--hg-tint);color:var(--hg-accent);font-size:20px;line-height:1;transition:transform .18s;}
.aios-help .help-faq-grid details[open] .help-faq-plus {transform:rotate(45deg);}
.aios-help .help-faq-grid details p {padding:0 16px 17px;font-size:12px;line-height:2.05;color:var(--hg-muted);}
.aios-help .help-bottom {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:15px;border-radius:16px;border:1px solid var(--hg-border);background:var(--hg-card-alt);margin-top:27px;padding:19px 22px;}
.aios-help .help-bottom strong {font-weight:850;font-size:14px;}
.aios-help .help-bottom p {font-size:12px;color:var(--hg-muted);}
/* Layout: link uses text glyph because not every icon exists in the local SVG sprite. */
.help-nav-symbol {font-size:20px;font-weight:850;display:grid;place-items:center;}
.help-login-link {justify-content:center!important;margin:10px 14px 16px;border:1px solid #417a7b!important;}
/* Guest nav should stay useful; adjust the main sidebar without affecting logged-in users. */
@media (max-width: 880px) {
  .aios-help .help-hero {grid-template-columns:1fr;gap:0;padding:24px 22px;min-height:auto;}
  .aios-help .help-hero-visual {display:none;}
}
@media (max-width: 710px) {
  .aios-help {font-size:13px;}
  .aios-help .help-hero {border-radius:17px;padding:21px 18px;margin-bottom:22px;}
  .aios-help .help-hero h1 {font-size:24px;line-height:1.6;}
  .aios-help .help-hero p {font-size:12px;}
  .aios-help .help-hero-actions {margin-top:17px;}
  .aios-help .help-tabs {grid-template-columns:repeat(2,minmax(0,1fr));}
  .aios-help .help-steps,.aios-help .help-faq-grid {grid-template-columns:1fr;}
  .aios-help .help-step {min-height:0;padding:15px 13px;}
  .aios-help .help-panel-heading h3 {font-size:18px;}
  .aios-help .help-section-intro h2 {font-size:20px;}
  .aios-help .help-duration {display:none;}
  .aios-help .help-bottom {padding:17px;}
}
@media (max-width: 360px) {
  .aios-help .help-tabs {gap:6px;}
  .aios-help .help-tab {gap:7px;padding:8px 5px;font-size:11px;}
  .aios-help .help-step-number {width:30px;height:30px;}
  .aios-help .help-hero-actions .help-button {width:100%;}
}
@media (prefers-reduced-motion: reduce) {
  .aios-help *, .aios-help *::before, .aios-help *::after {animation:none!important;transition:none!important;}
}
@media print {
  .aios-help {--hg-bg:#fff;--hg-card:#fff;--hg-card-alt:#f2f7f8;--hg-border:#bdcfd5;--hg-text:#000;--hg-muted:#324850;--hg-accent:#005d5a;}
  .aios-help .help-hero {background:#e9f5f3!important;color:#12343d!important;box-shadow:none;}
  .aios-help .help-hero p, .aios-help .help-hero h1 span {color:#12343d!important;}
  .aios-help .help-tabs {display:none;}
  .aios-help .help-role-panel[hidden] {display:block!important;}
  .aios-help .help-role-panel {page-break-inside:avoid;box-shadow:none;margin-bottom:14px;}
  .aios-help .help-step {break-inside:avoid;}
  .aios-help .help-button {display:none;}
}
