/* ═══════════════════════════════════════════════════════════
   Nafith CargoX AI — Shared Stylesheet
   Extracted from index.html styles: base, innovationTeamTheme,
   modelRegistryFixV78Stable, rs-conf/stage cards, toastSystem
   ═══════════════════════════════════════════════════════════ */

/* ── Google Font ── */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;600;700;800&display=swap');

/* ── Base Reset ── */
*{font-family:'Tajawal',system-ui,sans-serif}
:root{
  --navy:#0b2340;--navy2:#13365b;--cyan:#1177c7;--red:#c7342f;--amber:#c27a12;--green:#11845b;
  --surface:#f4f7fb;--surface2:#ffffff;--border:rgba(16,24,40,.10);
}
body{background:#eef2f7;min-height:100vh}
html.rs-booting [data-t],
html.rs-booting [data-brand-name],
html.rs-booting #pgTitle,
html.rs-booting #pgSub{
  visibility:hidden;
}

/* ── Layout ── */
.sidebar{
  background:linear-gradient(180deg,var(--navy),var(--navy2));
  width:clamp(230px, 20vw, 280px);
  height:100vh;
  max-height:100vh;
  position:fixed;
  top:0;
  bottom:0;
  z-index:30;
  overflow-y:auto;
  overflow-x:hidden;
  display:flex;
  flex-direction:column;
  overscroll-behavior:contain;
}
[dir=rtl] .sidebar{left:auto;right:0}
[dir=ltr] .sidebar{left:0;right:auto}
.main-content{
  margin-left:clamp(230px, 20vw, 280px);
  min-height:100vh;
  display:flex;
  flex-direction:column;
}
[dir=rtl] .main-content{margin-left:0;margin-right:clamp(230px, 20vw, 280px)}

/* ── Cards ── */
.card{background:#fff;border-radius:14px;box-shadow:0 2px 12px rgba(0,0,0,.07);border:1px solid #e2e8f0}

/* ── Navigation ── */
.nav-item{display:flex;align-items:center;gap:10px;padding:11px 16px;border-radius:10px;color:#94a3b8;font-weight:500;cursor:pointer;transition:.15s;margin-bottom:3px}
.nav-item:hover{background:rgba(255,255,255,.08);color:#fff}
.nav-item.active{background:rgba(10,143,176,.2);color:#38bdf8;box-shadow:inset 3px 0 0 var(--cyan)}
[dir=rtl] .nav-item.active{box-shadow:inset -3px 0 0 var(--cyan)}
.nav-section{font-size:.68rem;letter-spacing:.1em;text-transform:uppercase;color:#475569;padding:8px 16px 4px;margin-top:8px}

/* ── Buttons ── */
.btn-pri{background:var(--cyan);color:#fff;border-radius:9px;padding:.6rem 1.2rem;font-weight:600;border:none;cursor:pointer;transition:.15s;display:inline-flex;align-items:center;gap:6px}
.btn-pri:hover{filter:brightness(1.08);box-shadow:0 4px 14px rgba(10,143,176,.35)}
.btn-pri:disabled{opacity:.55;cursor:not-allowed}
.btn-dark{background:var(--navy);color:#fff;border-radius:9px;padding:.6rem 1.2rem;font-weight:600;border:none;cursor:pointer;transition:.15s}
.btn-dark:hover{background:var(--navy2)}
.btn-sm{padding:.35rem .9rem;font-size:.8rem;border-radius:7px;font-weight:600;cursor:pointer;border:none;transition:.15s}

/* ── Auth tabs ── */
.auth-tab{
  flex:1;
  padding:8px;
  border-radius:7px;
  border:none;
  cursor:pointer;
  font-family:inherit;
  font-weight:600;
  background:none;
  color:#64748b;
  transition:.15s;
}
.auth-tab.active{
  background:#fff;
  color:var(--navy);
  box-shadow:0 1px 3px rgba(0,0,0,.1);
}

/* ── Form fields ── */
.field-label{font-size:.72rem;font-weight:700;color:#64748b;letter-spacing:.06em;text-transform:uppercase;margin-bottom:5px;display:block}
.fi{border:1px solid #e2e8f0;border-radius:8px;padding:.5rem .75rem;width:100%;background:#fff;font-family:inherit;font-size:.88rem;transition:.15s}
.fi:focus{outline:none;border-color:var(--cyan);box-shadow:0 0 0 3px rgba(10,143,176,.11)}

/* ── Decision badges ── */
.dec-hold{background:#fee2e2;color:#991b1b;border:1px solid #fca5a5}
.dec-susp{background:#fef3c7;color:#92400e;border:1px solid #fde68a}
.dec-clr {background:#dcfce7;color:#166534;border:1px solid #86efac}
.badge{display:inline-block;padding:3px 10px;border-radius:20px;font-size:.75rem;font-weight:700}

/* ── Drop zones ── */
.drop-z{border:2px dashed #cbd5e1;border-radius:12px;background:#f8fafc;min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;cursor:pointer;transition:.15s;position:relative}
.drop-z:hover,.drop-z.active{border-color:var(--cyan);background:#f0faff}
.drop-z input[type=file]{display:none}
.drop-z img{max-height:160px;max-width:100%;border-radius:8px;object-fit:contain}

/* ── X-ray frames ── */
.xray-frame{background:#06090f;border-radius:10px;overflow:hidden;border:1px solid #1e293b;position:relative;cursor:zoom-in}
.xray-frame img{width:100%;display:block;min-height:80px;object-fit:contain;transition:transform .15s}
.xray-frame:hover img{transform:scale(1.015)}
.zoom-tools{display:flex;gap:8px;align-items:center;margin:8px 0 12px}
.zoom-img-wrap{height:72vh;overflow:auto;background:#05070b;border-radius:10px;border:1px solid #334155;text-align:center}
.zoom-img-wrap img{transform-origin:top left;max-width:none}
.ev-chip{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:3px 8px;background:#f8fafc;border:1px solid #e2e8f0;font-size:.68rem;color:#475569;margin:2px}
.xray-cap{background:rgba(0,0,0,.7);color:#94a3b8;font-size:.68rem;padding:4px 10px;position:absolute;bottom:0;left:0;right:0;text-align:center}

/* ── Progress bar ── */
.prog-wrap{height:10px;background:#e2e8f0;border-radius:9px;overflow:hidden}
.prog-fill{height:100%;border-radius:9px;transition:width .5s;background:linear-gradient(90deg,var(--cyan),#38bdf8)}

/* ── Risk gauge ── */
.risk-big{font-size:3.5rem;font-weight:900;line-height:1}

/* ── Severity ── */
.sev-high{color:var(--red)}.sev-medium{color:var(--amber)}.sev-low{color:var(--green)}

/* ── Table ── */
.tbl{width:100%;border-collapse:collapse;font-size:.82rem}
.tbl th{background:#f1f5f9;padding:9px 12px;text-align:left;font-size:.7rem;font-weight:700;color:#475569;letter-spacing:.05em;text-transform:uppercase;border-bottom:1px solid #e2e8f0}
[dir=rtl] .tbl th{text-align:right}
.tbl td{padding:9px 12px;border-bottom:1px solid #f1f5f9;vertical-align:middle}
.tbl tr:hover td{background:#f8fafc}

/* ── Audit pill ── */
.pill{display:inline-block;padding:2px 8px;border-radius:12px;font-size:.7rem;background:#e0f2fe;color:#0369a1}

/* ── Modal ── */
.modal-bg{position:fixed;inset:0;z-index:50;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center;padding:16px}
.modal-box{background:#fff;border-radius:16px;max-width:900px;width:100%;max-height:92vh;overflow-y:auto;padding:24px}

/* ── Tabs ── */
.tab-bar{display:flex;gap:4px;border-bottom:2px solid #e2e8f0;margin-bottom:20px}
.tab-btn{padding:.4rem 1rem;font-size:.82rem;font-weight:600;border:none;background:none;cursor:pointer;color:#64748b;border-bottom:2px solid transparent;margin-bottom:-2px;transition:.12s}
.tab-btn.on{color:var(--cyan);border-bottom-color:var(--cyan)}
.section{display:none}.section.on{display:block}

/* ── Charts ── */
.chart-card{min-height:260px;display:flex;flex-direction:column}
.chart-title{font-weight:800;color:#0d1b2e;margin-bottom:8px;font-size:.9rem}
.chart-wrap{position:relative;flex:1;min-height:220px}
.kpi-sub{font-size:.72rem;color:#64748b;margin-top:4px}
.qwen-chip{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:4px 9px;font-size:.72rem;background:#eef6ff;border:1px solid #bfdbfe;color:#1e40af}
.brand-logo{display:block;object-fit:contain}
.sidebar-brand{
  display:flex;
  align-items:center;
  gap:12px;
  padding:0px 12px;
  margin:0px 0 0px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  box-shadow:0 10px 30px rgba(3,10,20,.14), inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter:blur(10px);
}
.sidebar-brand__mark{
  width:85px;
  height:80px;
  min-width:64px;
  flex-shrink:0;
  padding:0px;
  position:relative;
  overflow:hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 8px 18px rgba(2,8,23,.30);
}
.sidebar-brand__mark::after{
  content:'';
  position:absolute;
  inset:-1px;
  border-radius:inherit;
  border:1px solid rgba(56,189,248,.38);
  pointer-events:none;
}
.sidebar-brand__mark .brand-logo{
  width:100%;
  height:100%;
  filter:brightness(100) saturate(0);
}
.sidebar-brand__copy{min-width:0;flex:1;overflow:hidden}
.sidebar-brand__name{
  font-weight:900;
  color:#38bdf8;
  font-size:1rem;
  letter-spacing:.04em;
  line-height:1.1;
  text-shadow:0 1px 8px rgba(56,189,248,.40);
}
html[dir="rtl"] .sidebar-brand__name{
  font-size:.9rem;
  letter-spacing:0;
}
.auth-brand{
  width:max-content;
  margin:0 auto 12px;
  padding:0 12px;
  background:linear-gradient(180deg, #102f52, #071426);
  border-color:rgba(56,189,248,.28);
  box-shadow:0 16px 36px rgba(2,8,23,.22), inset 0 1px 0 rgba(255,255,255,.08);
}
/* .auth-brand .sidebar-brand__mark{
  border-radius:12px;
  background:rgba(255,255,255,.06);
} */
.auth-lang-btn{
  position:absolute;
  top:16px;
  right:16px;
  z-index:2;
  border:1px solid rgba(13,27,46,.16);
  border-radius:20px;
  padding:6px 14px;
  min-width:96px;
  font-size:.78rem;
  color:#0d1b2e;
  cursor:pointer;
  background:rgba(255,255,255,.92);
  font-family:inherit;
  font-weight:800;
  box-shadow:0 8px 22px rgba(2,8,23,.12);
  line-height:1.2;
  white-space:nowrap;
  transform:none;
  transition:none;
}
.auth-lang-btn:hover{
  border-color:rgba(13,27,46,.16);
  color:#0d1b2e;
  background:rgba(255,255,255,.92);
}
.sidebar-brand__tag{
  font-size:.64rem;
  color:#7dd3fc;
  letter-spacing:.2em;
  text-transform:uppercase;
  margin-top:2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  opacity:.75;
}

/* ═══ Innovation Team Theme ═══ */
body{
  background:
    radial-gradient(circle at 12% 14%, rgba(17,119,199,.09), transparent 24%),
    radial-gradient(circle at 86% 10%, rgba(245,158,11,.08), transparent 22%),
    linear-gradient(180deg, #eef4fa 0%, #f7fafc 42%, #eef3f8 100%);
  min-height:100vh;
  color:#0f172a;
  position:relative;
  overflow-x:hidden;
}
body::before,
body::after{
  content:'';
  position:fixed;
  pointer-events:none;
  z-index:0;
  border-radius:999px;
  filter:blur(36px);
  opacity:.55;
}
body::before{
  width:360px;height:360px;
  top:-120px;left:-120px;
  background:radial-gradient(circle, rgba(17,119,199,.22), rgba(17,119,199,0));
}
body::after{
  width:420px;height:420px;
  right:-150px;bottom:-150px;
  background:radial-gradient(circle, rgba(245,158,11,.16), rgba(245,158,11,0));
}
#authWrap,
#mainApp{position:relative;z-index:1}
#authWrap{
  background:
    radial-gradient(circle at top left, rgba(17,119,199,.18), transparent 28%),
    radial-gradient(circle at right 20%, rgba(245,158,11,.12), transparent 18%),
    linear-gradient(135deg,#071426 0%,#0b2441 56%,#102f52 100%);
}
#authWrap .card{
  border-radius:28px;
  background:rgba(255,255,255,.97);
  box-shadow:0 30px 80px rgba(2,8,23,.28);
  border:1px solid rgba(255,255,255,.28);
}
#authWrap .auth-card{
  position:relative;
}
.sidebar{
  width:clamp(230px, 20vw, 280px);
  background:
    linear-gradient(180deg, rgba(8,22,41,.98) 0%, rgba(11,35,64,.98) 48%, rgba(7,18,32,.99) 100%);
  box-shadow:inset -1px 0 0 rgba(255,255,255,.06), 0 20px 60px rgba(3,10,20,.24);
}
.main-content{
  margin-left:clamp(230px, 20vw, 280px);
  background:transparent;
}
[dir=rtl] .main-content{margin-right:clamp(230px, 20vw, 280px)}
header{
  background:rgba(255,255,255,.82);
  backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(148,163,184,.18);
  box-shadow:0 1px 0 rgba(255,255,255,.9), 0 12px 30px rgba(15,23,42,.04);
  padding:16px 28px;
}
.card{
  background:rgba(255,255,255,.96);
  border:1px solid var(--border);
  border-radius:22px;
  box-shadow:0 16px 40px rgba(15,23,42,.06);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover{
  transform:translateY(-1px);
  border-color:rgba(17,119,199,.16);
  box-shadow:0 22px 50px rgba(15,23,42,.09);
}
.nav-item{
  color:rgba(226,232,240,.82);
  border:1px solid transparent;
}
.nav-item:hover,
.nav-item.active{
  background:linear-gradient(90deg, rgba(17,119,199,.24), rgba(255,255,255,.05));
  color:#fff;
  border-color:rgba(255,255,255,.08);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.04);
}
button.nav-item{width:100%;text-align:left;background:none;border:1px solid transparent;font-family:inherit}
[dir=rtl] button.nav-item{text-align:right}
.nav-section{
  color:rgba(148,163,184,.8);
  letter-spacing:.16em;
}
.field-label{
  color:#5f7187;
  letter-spacing:.12em;
}
.fi{
  border-radius:14px;
  border:1px solid #d7e2ef;
  background:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92);
}
.fi:focus{
  border-color:rgba(17,119,199,.42);
  box-shadow:0 0 0 4px rgba(17,119,199,.12);
}
.btn-pri{
  background:linear-gradient(135deg,#0d4f92 0%, #1177c7 55%, #2d9ce0 100%);
  box-shadow:0 14px 30px rgba(17,119,199,.25);
  border-radius:12px;
}
.btn-pri:hover{filter:brightness(1.03);box-shadow:0 18px 34px rgba(17,119,199,.32)}
.btn-dark{
  background:linear-gradient(135deg,#0b1e35 0%, #123357 100%);
  border-radius:12px;
  box-shadow:0 10px 22px rgba(2,8,23,.16);
}
.badge,.pill,.qwen-chip{
  border-radius:999px;
}
.drop-z{
  background:linear-gradient(180deg,#fafdff 0%,#f4f8fc 100%);
  border-color:#d8e4f0;
  border-radius:18px;
}
.drop-z:hover,.drop-z.active{
  background:linear-gradient(180deg,#f8fcff 0%,#eef7ff 100%);
}
.xray-frame{
  border-radius:18px;
  border-color:#d5e3f1;
  box-shadow:0 14px 28px rgba(15,23,42,.12);
}
.xray-cap{
  background:linear-gradient(180deg, rgba(11,35,64,.08), rgba(11,35,64,.88));
  color:#edf4fb;
}
.chart-title{
  color:#0b2340;
}

/* ── Hero panel ── */
.it-hero{
  background:linear-gradient(135deg,#08172a 0%,#0b2544 48%,#133d68 100%);
  color:#fff;
  overflow:hidden;
  position:relative;
}
.it-hero::before{
  content:'';
  position:absolute;
  inset:-40% auto auto 60%;
  width:340px;height:340px;
  background:radial-gradient(circle, rgba(17,119,199,.42), transparent 62%);
  opacity:.8;
  pointer-events:none;
}
.it-hero::after{
  content:'';
  position:absolute;
  inset:auto -100px -120px auto;
  width:320px;height:320px;
  background:radial-gradient(circle, rgba(245,158,11,.2), transparent 66%);
  pointer-events:none;
}
.it-hero-grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(280px,.9fr);
  gap:20px;
  align-items:stretch;
}
.it-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.14);
  color:#d9ecff;
  font-size:.74rem;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.it-hero h2{
  margin:12px 0 10px;
  font-size:clamp(1.8rem, 4vw, 3.15rem);
  line-height:1.05;
  font-weight:900;
  letter-spacing:-.03em;
}
.it-hero p{
  max-width:58ch;
  color:rgba(226,232,240,.86);
  font-size:1rem;
  line-height:1.7;
}
.it-hero-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:18px;
}
.it-hero-panel{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  border-radius:20px;
  padding:16px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  align-content:start;
}
.it-hero-tile{
  background:rgba(255,255,255,.09);
  border:1px solid rgba(255,255,255,.11);
  border-radius:16px;
  padding:14px;
}
.it-hero-tile span{
  display:block;
  font-size:.74rem;
  color:#c8d9ee;
  margin-bottom:6px;
}
.it-hero-tile strong{
  display:block;
  font-size:1.1rem;
  color:#fff;
}
.it-hero-tile small{
  display:block;
  margin-top:4px;
  color:rgba(226,232,240,.78);
}
.it-hero-banner{
  grid-column:1 / -1;
  margin-bottom:18px;
}
.it-hero-compact{
  padding:16px 18px;
}
.it-hero-grid-compact{
  grid-template-columns:minmax(0,1fr) 320px;
  gap:14px;
  align-items:center;
}
.it-hero-compact h2{
  margin:8px 0 6px;
  font-size:clamp(1.35rem, 2.5vw, 2.1rem);
  line-height:1.12;
}
.it-hero-compact p{
  margin:0;
  max-width:60ch;
  font-size:.92rem;
  line-height:1.55;
}
.it-hero-compact .it-hero-actions{
  margin-top:12px;
}
.it-hero-mini{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  padding:12px;
  display:grid;
  gap:8px;
}
.it-hero-mini-item{
  background:rgba(255,255,255,.09);
  border:1px solid rgba(255,255,255,.11);
  border-radius:14px;
  padding:10px 12px;
}
.it-hero-mini-item span{
  display:block;
  font-size:.68rem;
  color:#c8d9ee;
  margin-bottom:2px;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.it-hero-mini-item strong{
  color:#fff;
  font-size:.95rem;
}

/* ── Model Registry fix ── */
#modelGrid{display:block !important;grid-template-columns:none !important;width:100% !important;max-width:100% !important}
#modelGrid .mr-v74-wrap{width:100% !important;max-width:100% !important;display:flex;flex-direction:column;gap:14px}
#modelGrid .mr-v74-summary{width:100% !important;display:grid;grid-template-columns:minmax(360px,1.4fr) repeat(3,minmax(160px,1fr));gap:14px}
#modelGrid .mr-v74-grid{width:100% !important;display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:14px}

/* ── Confidence pills ── */
.rs-conf{display:inline-block;border-radius:999px;padding:2px 8px;font-weight:900;font-size:.75rem;border:1px solid #cbd5e1;background:#f8fafc;color:#334155}
.rs-strong{background:#fee2e2;color:#991b1b;border-color:#fecaca}
.rs-med{background:#fffbeb;color:#92400e;border-color:#fde68a}
.rs-weak{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}
.rs-low{background:#f1f5f9;color:#475569;border-color:#cbd5e1}
.rs-stage-card{border:1px solid #e2e8f0;border-radius:14px;background:#fff;padding:12px;margin:10px 0;overflow:hidden}
.rs-stage-grid{display:grid;grid-template-columns:1.1fr .7fr .7fr 2fr;gap:8px;align-items:start}
.rs-stage-grid div{font-size:.82rem;min-width:0;overflow-wrap:anywhere}
.rs-evidence-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;margin-top:12px}
.rs-evidence-grid img{width:100%;border-radius:12px;border:1px solid #e2e8f0;object-fit:contain;background:#0f172a}

/* ── Toast System ── */
#rsToastContainer{position:fixed;bottom:24px;right:24px;z-index:9999;display:flex;flex-direction:column;gap:8px;pointer-events:none}
[dir=rtl] #rsToastContainer{right:auto;left:24px}
.rs-toast{display:flex;align-items:center;gap:10px;padding:12px 18px;border-radius:14px;font-size:.85rem;font-weight:600;color:#fff;min-width:260px;max-width:380px;pointer-events:all;box-shadow:0 8px 24px rgba(0,0,0,.18);transform:translateY(16px);opacity:0;transition:all .25s cubic-bezier(.34,1.56,.64,1);backdrop-filter:blur(8px)}
.rs-toast.show{transform:translateY(0);opacity:1}
.rs-toast.success{background:linear-gradient(135deg,#065f46,#059669)}
.rs-toast.error{background:linear-gradient(135deg,#991b1b,#dc2626)}
.rs-toast.info{background:linear-gradient(135deg,#1e3a5f,#1177c7)}
.rs-toast.warning{background:linear-gradient(135deg,#78350f,#d97706)}
.rs-toast i{font-size:1rem;flex-shrink:0}
.rs-toast .rs-toast-close{margin-left:auto;background:none;border:none;color:rgba(255,255,255,.7);cursor:pointer;font-size:1rem;padding:0 0 0 8px;flex-shrink:0}
.rs-loading-overlay{position:absolute;inset:0;background:rgba(255,255,255,.82);backdrop-filter:blur(4px);border-radius:inherit;z-index:10;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px}
.rs-spinner{width:36px;height:36px;border:3px solid #e2e8f0;border-top-color:var(--cyan);border-radius:50%;animation:rs-spin .7s linear infinite}
@keyframes rs-spin{to{transform:rotate(360deg)}}

/* ── Responsive ── */
@media (max-width: 1100px){
  .it-hero-grid{grid-template-columns:1fr}
  .it-hero-panel{grid-template-columns:1fr 1fr}
  .it-hero-grid-compact{grid-template-columns:1fr}
}
@media (max-width: 1080px){
  #modelGrid .mr-v74-summary{grid-template-columns:1fr}
  #modelGrid .mr-v74-grid{grid-template-columns:1fr}
}
@media (max-width: 900px){
  .sidebar{width:240px}
  .main-content{margin-left:240px}
  [dir=rtl] .main-content{margin-right:240px}
}
@media (max-width: 760px){
  .sidebar{
    width:100%;
    max-height:none;
    height:auto;
    position:relative;
    min-height:auto;
  }
  .main-content,
  [dir=rtl] .main-content{margin:0}
  header{padding:14px 16px}
  main{padding:16px}
  .it-hero-panel{grid-template-columns:1fr}
  .it-hero-compact{padding:14px}
}
