@charset "UTF-8";

:root {
  /* White Golden Glass Theme Variables */
  --yellow: #d4af37;
  --yellow-deep: #b88600;
  --yellow-soft: #fffdf5;
  --yellow-glow: rgba(212, 175, 55, 0.22);
  --ink: #1f2937;
  --ink-soft: #374151;
  --text: #1f2937;
  --text-main: #1f2937;
  --muted: #6b7280;
  --muted-light: #9ca3af;
  --paper: #fdfbf7; /* Off-white golden base wall */
  --surface: rgba(255, 255, 255, 0.78); /* Frosted white golden glass */
  --surface-strong: rgba(255, 255, 255, 0.92);
  --border: rgba(212, 175, 55, 0.32); /* Golden glass border */
  --glass-border: 1px solid rgba(212, 175, 55, 0.32);
  --glass-shadow: 0 12px 36px 0 rgba(184, 134, 0, 0.12);
  --shadow: 0 20px 60px rgba(184, 134, 0, 0.10);
  --success: #16a34a;
  --danger: #ef4444;
  --info: #3b82f6;
  --purple: #8b5cf6;
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1200px;
}

/* Base Reset & Global Defaults */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; background: var(--paper); }
body {
  margin: 0;
  background: radial-gradient(circle at 15% 10%, rgba(255, 244, 204, 0.55) 0%, transparent 45%),
              radial-gradient(circle at 85% 90%, rgba(212, 175, 55, 0.12) 0%, transparent 50%),
              var(--paper) !important;
  color: var(--text) !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--yellow-deep);
  outline-offset: 3px;
}

.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.narrow { max-width: 860px; }
.full-width { width: 100%; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--yellow); color: #fff; padding: 10px 14px; z-index: 100000; font-weight: 800; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Guardrail Demo Banner & Flash Alerts */
.demo-guardrail-bar { background: var(--surface-strong); color: var(--ink); font-size: 11px; padding: 8px 0; border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.demo-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.demo-pill { background: linear-gradient(135deg, var(--yellow), var(--yellow-deep)); color: #fff; font-weight: 900; padding: 2px 8px; border-radius: 6px; letter-spacing: 0.05em; }
.demo-switch-links a { color: var(--yellow-deep); font-weight: 700; }
.flash-banner { margin: 16px 0; padding: 14px 18px; border-radius: 12px; font-weight: 700; font-size: 13px; backdrop-filter: blur(10px); }
.flash-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.flash-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.urgency-ticker-bar { background: linear-gradient(90deg, rgba(255, 250, 230, 0.9), rgba(255, 255, 255, 0.9), rgba(255, 250, 230, 0.9)); color: var(--ink); font-size: 12px; padding: 9px 0; border-bottom: 2px solid var(--yellow); backdrop-filter: blur(16px); text-align: center; font-weight: 700; }

/* Buttons & Form Controls */
.button {
  display: inline-flex; justify-content: center; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 22px; border-radius: 11px; font-weight: 800; font-size: 13px;
  letter-spacing: -0.01em; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.button:hover { transform: translateY(-2px); box-shadow: var(--glass-shadow); }
.button-small { min-height: 42px; padding-inline: 16px; font-size: 12px; }
.button-yellow { background: linear-gradient(135deg, #ffd02b, var(--yellow), var(--yellow-deep)); color: #111; border-color: var(--yellow-deep); box-shadow: 0 4px 14px rgba(212, 175, 55, 0.28); }
.button-yellow:hover { background: linear-gradient(135deg, var(--yellow), var(--yellow-deep)); color: #fff; }
.button-dark { background: var(--surface-strong); color: var(--ink); border: 1px solid var(--border); box-shadow: var(--glass-shadow); }
.button-dark:hover { background: var(--yellow-soft); border-color: var(--yellow-deep); }
.button-outline { border-color: var(--border); color: var(--ink); background: var(--surface); backdrop-filter: blur(8px); }
.button-outline:hover { border-color: var(--yellow-deep); background: var(--yellow-soft); }

.form-input,
.clean-form input[type="text"],
.clean-form input[type="tel"],
.clean-form input[type="email"],
.clean-form input[type="password"],
.clean-form input[type="number"],
.clean-form select,
.clean-form textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 13px; background: var(--surface-strong); color: var(--ink);
  backdrop-filter: blur(8px);
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.form-row-4 { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 12px; }
.consent-label { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; color: var(--muted); cursor: pointer; }

/* Site Header & Public Navigation */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--surface-strong);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--glass-shadow);
}
.nav-wrap { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: 174px; height: 66px; object-fit: contain; object-position: left center; }
.primary-nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); }
.primary-nav > a:not(.button) { font-size: 13px; font-weight: 650; color: var(--ink-soft); transition: color 0.2s; }
.primary-nav > a:not(.button):hover, .primary-nav > a.active { color: var(--yellow-deep); }
.primary-nav > a.active { position: relative; }
.primary-nav > a.active:after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 2px; background: var(--yellow); }
.menu-toggle { display: none; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px; cursor: pointer; }
.menu-toggle span:not(.sr-only) { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px; }

/* Hero Section & Visuals */
.hero-section {
  background: radial-gradient(ellipse at 80% 42%, rgba(255, 243, 191, 0.75) 0, rgba(255, 243, 191, 0) 45%),
              linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, var(--paper) 100%);
  padding: 62px 0 72px; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; align-items: center; gap: 48px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--yellow-deep); font-size: 10px; letter-spacing: 0.16em; font-weight: 900; line-height: 1.5; }
.eyebrow-dot, .pulse-dot { display: inline-block; width: 8px; height: 8px; background: var(--yellow); border-radius: 50%; box-shadow: 0 0 0 4px var(--yellow-glow); }
.hero-copy h1, .page-hero h1 { font-size: clamp(44px, 5.2vw, 70px); line-height: 0.99; letter-spacing: -0.065em; margin: 22px 0; font-weight: 900; color: var(--ink); }
h1 span, .section-heading h2 span, .readiness-panel h2 span, .page-hero h1 span { color: var(--yellow-deep); }
.hero-lead { max-width: 550px; font-size: 16px; line-height: 1.8; color: var(--muted); margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-actions .button-outline { color: var(--ink); border-color: var(--border); background: var(--surface-strong); }
.play-icon { font-size: 11px; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; }
.hero-trust { display: flex; align-items: center; gap: 12px; margin-top: 34px; }
.trust-mark { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #eef8ed; color: #288142; font-weight: 900; }
.hero-trust p { font-size: 12px; line-height: 1.5; margin: 0; color: var(--muted); }
.hero-trust strong { color: var(--ink); }

.hero-visual { position: relative; min-width: 0; }
.hero-image-frame {
  position: relative; padding: 12px; border-radius: 26px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transform: rotate(0.6deg);
}
.hero-reference { width: 100%; aspect-ratio: 1.35; object-fit: cover; object-position: top; border-radius: 17px; background: #fff; }
.visual-label {
  display: flex; align-items: center; gap: 11px; position: absolute; left: 26px; bottom: 26px;
  background: var(--surface-strong); color: var(--ink); padding: 12px 16px;
  border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--glass-shadow);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.visual-label strong, .visual-label small { display: block; }
.visual-label strong { font-size: 10px; letter-spacing: 0.08em; color: var(--ink); }
.visual-label small { font-size: 11px; color: var(--muted); margin-top: 2px; }
.floating-note {
  position: absolute; right: -18px; top: 28px; display: flex; align-items: center; gap: 10px;
  background: var(--surface-strong); border: 1px solid var(--border); border-radius: 14px;
  padding: 13px 16px; box-shadow: var(--shadow); backdrop-filter: blur(14px);
}
.note-icon { width: 34px; height: 34px; display: grid; place-items: center; background: var(--yellow-soft); color: var(--yellow-deep); border: 1px solid var(--border); border-radius: 10px; font-weight: 900; }
.floating-note strong, .floating-note small { display: block; }
.floating-note strong { font-size: 11px; color: var(--ink); }
.floating-note small { font-size: 10px; color: var(--muted); }

/* Value Strip & Grids */
.value-strip { border-block: 1px solid var(--border); background: var(--surface); backdrop-filter: blur(16px); }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); padding: 24px 0; gap: 28px; }
.value-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); padding: 24px 0; gap: 22px; }
.value-grid article, .value-grid-4 article { display: flex; gap: 15px; align-items: flex-start; }
.value-icon { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 12px; background: var(--yellow-soft); border: 1px solid var(--border); color: var(--yellow-deep); font-size: 12px; font-weight: 900; }
.value-grid h2, .value-grid-4 h2 { font-size: 13px; margin: 0 0 4px; letter-spacing: -0.02em; color: var(--ink); }
.value-grid p, .value-grid-4 p { font-size: 12px; color: var(--muted); margin: 0; }

/* Sections & Cards */
.section { padding: 94px 0; }
.section-white { background: transparent; }
.section-muted { background: rgba(255, 255, 255, 0.45); backdrop-filter: blur(8px); }
.section-dark {
  background: linear-gradient(135deg, rgba(255, 253, 245, 0.9), rgba(255, 248, 220, 0.75)) !important;
  color: var(--ink) !important;
  border-block: 1px solid var(--border);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.section-heading { max-width: 650px; text-align: center; margin: 0 auto 42px; }
.section-heading h2, .readiness-panel h2, .simple-cta h2, .about-grid h2 { font-size: clamp(34px, 4vw, 49px); line-height: 1.05; letter-spacing: -0.055em; margin: 16px 0; color: var(--ink); }
.section-heading p { color: var(--muted); margin: 0; }
.steps-grid, .three-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card, .feature-card {
  position: relative; border: 1px solid var(--border); border-radius: 18px; padding: 27px;
  background: var(--surface); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  min-height: 230px; transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--glass-shadow);
}
.step-card:hover, .feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-number { position: static; display: block; margin: 0 0 14px; color: var(--yellow-deep); font-size: 11px; font-weight: 900; letter-spacing: 0.1em; line-height: 1.5; overflow-wrap: anywhere; }
.step-symbol, .feature-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--yellow-soft); border: 1px solid var(--border); color: var(--yellow-deep); font-size: 24px; font-weight: 800; margin-bottom: 24px; }
.step-card h3, .feature-card h2 { font-size: 17px; letter-spacing: -0.03em; margin: 0 0 9px; color: var(--ink); }
.step-card p, .feature-card p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.75; }
.center-action { text-align: center; margin-top: 30px; }

/* Readiness Panel, Journey, Resources & About */
.readiness-panel {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between;
  gap: 35px; padding: 44px 48px; border: 1px solid var(--border); border-radius: 24px;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.92), rgba(255, 246, 210, 0.82)) !important;
  color: var(--ink) !important; box-shadow: var(--shadow); backdrop-filter: blur(16px);
}
.readiness-panel > div:first-child { position: relative; z-index: 1; }
.eyebrow-light { color: var(--yellow-deep); }
.readiness-panel h2 { margin-bottom: 12px; color: var(--ink); }
.readiness-panel p { max-width: 540px; color: var(--muted); font-size: 13px; margin: 0; }
.readiness-panel .button { position: relative; z-index: 1; flex-shrink: 0; }
.panel-watermark { position: absolute; right: 9%; top: -55px; font-size: 230px; font-weight: 1000; color: rgba(212, 175, 55, 0.08); letter-spacing: -0.1em; pointer-events: none; }

.page-hero { padding: 78px 0 64px; background: linear-gradient(120deg, var(--paper), #fff7d7); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(42px, 5vw, 64px); margin: 18px 0; }
.page-hero p { font-size: 16px; max-width: 680px; color: var(--muted); line-height: 1.8; }

.journey-list { max-width: 900px; }
.journey-item { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.journey-item > span { display: grid; place-items: center; width: 48px; height: 48px; background: var(--yellow-soft); color: var(--yellow-deep); border: 1px solid var(--border); border-radius: 14px; font-weight: 900; }
.journey-item h2 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.03em; color: var(--ink); }
.journey-item p { margin: 0; color: var(--muted); max-width: 720px; font-size: 14px; }

.simple-cta { display: flex; justify-content: space-between; align-items: center; gap: 25px; }
.simple-cta h2 { margin-bottom: 0; }
.notice-card { display: flex; align-items: center; gap: 18px; padding: 24px; border: 1px solid var(--border); background: var(--surface); border-radius: 18px; box-shadow: var(--glass-shadow); backdrop-filter: blur(12px); }
.notice-icon { display: grid; place-items: center; flex: 0 0 46px; height: 46px; background: var(--yellow-soft); color: var(--yellow-deep); border: 1px solid var(--border); border-radius: 14px; font-weight: 900; font-size: 20px; }
.notice-card h2 { margin: 0 0 5px; font-size: 17px; color: var(--ink); }
.notice-card p { margin: 0; color: var(--muted); font-size: 13px; }

.status-pill, .preview-status { display: inline-flex; white-space: nowrap; padding: 6px 10px; border-radius: 99px; background: var(--yellow-soft); color: var(--yellow-deep); border: 1px solid var(--border); font-size: 10px; font-weight: 800; }
.resource-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.resource-preview { position: relative; border: 1px solid var(--border); border-radius: 18px; padding: 24px; min-height: 220px; background: var(--surface); backdrop-filter: blur(12px); box-shadow: var(--glass-shadow); }
.resource-type { font-size: 10px; letter-spacing: 0.12em; font-weight: 900; color: var(--yellow-deep); }
.resource-glyph { font-size: 35px; font-weight: 900; margin: 19px 0 8px; color: var(--yellow-deep); }
.resource-preview h3 { font-size: 16px; margin: 0 0 5px; color: var(--ink); }
.resource-preview p { font-size: 12px; color: var(--muted); margin: 0 0 14px; }
.preview-status { background: rgba(255, 255, 255, 0.7); color: var(--muted); }
.disclaimer { font-size: 12px; color: var(--muted); margin-top: 24px; }

.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; }
.about-grid h2 { margin-top: 12px; }
.about-grid p { color: var(--muted); font-size: 14px; }
.principle-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.principle-list span { padding: 8px 11px; border: 1px solid var(--border); background: var(--surface); border-radius: 9px; font-size: 11px; font-weight: 750; color: var(--ink); }
.error-page { min-height: 48vh; }

/* Quiz, Diagnostic & Plans */
.quiz-shell { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.quiz-steps-rail { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 14px; backdrop-filter: blur(14px); box-shadow: var(--glass-shadow); }
.rail-step { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; }
.rail-step.is-active { background: var(--yellow-soft); border: 1px solid var(--yellow); }
.rail-step > span { width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 12px; }
.rail-step strong, .rail-step small { display: block; line-height: 1.3; }
.rail-step small { font-size: 11px; color: var(--muted); }
.quiz-card, .result-summary-card, .enquiry-box { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.quiz-field-group { margin-bottom: 22px; }
.quiz-group-title { display: block; font-weight: 800; font-size: 15px; margin-bottom: 10px; color: var(--ink); }
.radio-card-list { display: grid; gap: 10px; }
.radio-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 2px solid var(--border); border-radius: 14px; cursor: pointer; background: rgba(255, 255, 255, 0.5); }
.radio-card:has(input:checked) { border-color: var(--yellow); background: var(--yellow-soft); }
.radio-card strong, .radio-card small { display: block; }
.radio-card small { font-size: 12px; color: var(--muted); }
.plan-card-popular { border: 2px solid var(--yellow) !important; box-shadow: var(--shadow); }
.plan-feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.focus-checklist { list-style: none; padding: 0; display: grid; gap: 12px; margin: 18px 0; }
.focus-checklist li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; font-weight: 600; }
.focus-num { width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 12px; }

/* Footer - White Golden Glass & Large Logo */
footer, .site-footer, .footer-wrapper {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(253, 248, 232, 0.95)) !important;
  color: var(--ink) !important;
  padding-top: 54px;
  border-top: 1px solid var(--border) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  box-shadow: 0 -10px 40px rgba(184, 134, 0, 0.08) !important;
}
.footer-main { display: grid; grid-template-columns: 1.2fr 0.75fr 0.9fr 1.15fr; gap: 35px; padding-bottom: 42px; }
.brand-footer img, .site-footer img, .footer-logo {
  width: 280px !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 105px !important;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 4px 10px rgba(212, 175, 55, 0.2));
}
.footer-brand p { font-size: 12px; color: var(--ink-soft) !important; margin: 9px 0; }
.footer-brand .footer-note { color: var(--muted) !important; font-size: 11px; max-width: 260px; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-links h2, .footer-cta h2 { font-size: 13px; margin: 8px 0 9px; color: var(--ink) !important; font-weight: 800; }
.footer-links a { font-size: 12px; color: var(--muted) !important; transition: color 0.2s; }
.footer-links a:hover { color: var(--yellow-deep) !important; }
.coming-soon { display: block; color: var(--yellow-deep); font-size: 9px; margin-top: 2px; font-weight: 700; }
.footer-cta h2 { font-size: 21px; line-height: 1.25; max-width: 210px; margin: 13px 0 17px; letter-spacing: -0.03em; }
.footer-cta .button { font-size: 11px; min-height: 43px; padding: 0 14px; }
.footer-bottom { border-top: 1px solid var(--border) !important; display: flex; justify-content: space-between; gap: 20px; padding: 19px 0; color: var(--muted) !important; font-size: 11px; }
.footer-bottom b { color: var(--yellow-deep) !important; padding: 0 4px; }

/* ==========================================================================
   WORKSPACE PORTAL (STUDENT / MENTOR / ADMIN) - WHITE GOLDEN GLASS
   ========================================================================== */
.workspace-body { background: var(--paper) !important; color: var(--ink) !important; }
.workspace-layout { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; position: relative; }

/* Sidebar - Zero Black, Pure White Golden Glass */
.workspace-sidebar,
.sidebar,
.dashboard-sidebar,
.admin-sidebar,
aside.workspace-sidebar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(253, 249, 236, 0.94) 100%) !important;
  background-color: #fdfbf7 !important;
  color: var(--ink) !important;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 22px 16px; position: sticky; top: 0; height: 100vh;
  border-right: 1px solid var(--border) !important;
  backdrop-filter: blur(20px) !important; -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 6px 0 28px rgba(184, 134, 0, 0.08) !important;
  overflow-y: auto;
  z-index: 40;
}

.sidebar-brand img { width: 170px; height: 56px; object-fit: contain; object-position: left center; filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.15)); }
.role-badge {
  display: inline-block; margin-top: 6px; padding: 4px 10px; border-radius: 6px;
  background: var(--yellow-soft) !important; color: var(--yellow-deep) !important;
  border: 1px solid var(--border) !important;
  font-size: 10px; font-weight: 900; letter-spacing: 0.1em;
}
.role-badge-admin { background: #fef2f2 !important; color: #dc2626 !important; border-color: #fecaca !important; }

.sidebar-nav { display: flex; flex-direction: column; gap: 6px; margin: 22px 0 auto; }
.workspace-sidebar small,
.workspace-sidebar .nav-section-title,
.sidebar-section-label {
  color: var(--yellow-deep) !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em;
}

.sidebar-link,
.workspace-sidebar a:not(.button) {
  display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: 12px;
  font-size: 13px; font-weight: 650; color: var(--ink-soft) !important;
  background: transparent !important; border: 1px solid transparent !important;
  transition: all 0.18s ease;
}
.sidebar-link:hover,
.workspace-sidebar a:not(.button):hover {
  background: rgba(212, 175, 55, 0.14) !important;
  color: var(--ink) !important;
  border-color: var(--border) !important;
}
.sidebar-link.is-active,
.sidebar-link.active,
.workspace-sidebar a.is-active {
  background: linear-gradient(135deg, #ffd43b, var(--yellow), var(--yellow-deep)) !important;
  color: #111 !important;
  font-weight: 800 !important;
  border: 1px solid var(--yellow-deep) !important;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.28) !important;
}
.sidebar-link.is-active *,
.sidebar-link.active * {
  color: #111 !important;
}

.sidebar-badge {
  margin-left: auto; padding: 2px 8px; border-radius: 99px; font-size: 10px; font-weight: 800;
  background: var(--yellow-soft) !important; color: var(--yellow-deep) !important;
  border: 1px solid var(--border) !important;
}
.sidebar-link.is-active .sidebar-badge {
  background: rgba(255, 255, 255, 0.9) !important;
  color: #111 !important;
  border-color: transparent !important;
}

.sidebar-logout-btn {
  width: 100%; text-align: left; background: #fff5f5 !important; color: #dc2626 !important;
  border: 1px solid #fecaca !important; padding: 10px 14px; border-radius: 10px;
  font-size: 12px; font-weight: 700; cursor: pointer; transition: background 0.2s;
}
.sidebar-logout-btn:hover { background: #fee2e2 !important; }

/* Workspace Main Content & Panels */
.workspace-main { display: flex; flex-direction: column; min-width: 0; background: transparent; }
.workspace-topbar {
  background: var(--surface-strong) !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  position: sticky; top: 0; z-index: 25;
}
.topbar-search { flex: 1; max-width: 440px; }
.topbar-search input { width: 100%; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--paper); font-size: 13px; color: var(--ink); }
.topbar-profile { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.streak-pill { background: var(--yellow-soft); color: var(--yellow-deep); border: 1px solid var(--border); padding: 6px 12px; border-radius: 99px; font-size: 12px; font-weight: 800; }
.profile-chip strong, .profile-chip small { display: block; line-height: 1.25; text-align: right; color: var(--ink); }
.profile-chip small { font-size: 11px; color: var(--muted); }

.workspace-content { padding: 26px 28px 60px; display: grid; gap: 22px; }
.dashboard-welcome-banner {
  background: var(--surface) !important; border: 1px solid var(--border) !important;
  border-radius: 20px; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; box-shadow: var(--glass-shadow); backdrop-filter: blur(16px);
}
.dashboard-welcome-banner h1 { margin: 0 0 4px; font-size: 26px; color: var(--ink); }
.dashboard-welcome-banner p { margin: 0; color: var(--muted); font-style: italic; }

.next-target-card {
  background: linear-gradient(135deg, var(--yellow-soft), rgba(255, 242, 198, 0.85)) !important;
  color: var(--ink) !important; border: 1px solid var(--border) !important;
  padding: 18px 22px; border-radius: 16px; display: flex; flex-direction: column; gap: 8px; max-width: 360px;
  box-shadow: var(--glass-shadow);
}

.kpi-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kpi-card { background: var(--surface) !important; border: 1px solid var(--border) !important; border-radius: 16px; padding: 20px; box-shadow: var(--glass-shadow); backdrop-filter: blur(14px); }
.kpi-label { display: block; font-size: 12px; color: var(--muted); font-weight: 700; }
.kpi-value { display: block; font-size: 30px; font-weight: 900; letter-spacing: -0.04em; margin: 6px 0 4px; color: var(--yellow-deep); }
.kpi-subtext { font-size: 11px; color: var(--success); font-weight: 700; }

.workspace-two-col { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 20px; }
.workspace-panel, .sub-panel {
  background: var(--surface) !important; border: 1px solid var(--border) !important;
  border-radius: 18px; padding: 24px; box-shadow: var(--glass-shadow);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.panel-header h1, .panel-header h2 { margin: 0; font-size: 20px; color: var(--ink); }
.panel-link { font-size: 12px; font-weight: 800; color: var(--yellow-deep); }

/* Checklists, Trends, Errors & Question Audit */
.target-checklist { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.target-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255, 255, 255, 0.65); }
.target-row.is-done { background: #f0fdf4; border-color: #bbf7d0; }
.target-row label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink); }
.subject-tag { padding: 3px 9px; border-radius: 6px; font-size: 11px; font-weight: 800; background: #e0f2fe; color: #0369a1; }
.subject-physics { background: #dcfce7; color: #15803d; }
.subject-chemistry { background: #fef3c7; color: #b45309; }
.subject-maths { background: #dbeafe; color: #1d4ed8; }
.target-hours { font-size: 12px; color: var(--muted); font-weight: 700; }

.trend-bars { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; height: 170px; padding-top: 24px; border-bottom: 1px solid var(--border); }
.trend-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.trend-bar-fill { width: 100%; max-width: 44px; background: linear-gradient(180deg, #ffd43b, var(--yellow-deep)); border-radius: 8px 8px 0 0; display: flex; align-items: flex-start; justify-content: center; padding-top: 6px; font-size: 11px; font-weight: 900; color: #111; }

.quick-actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.error-breakdown-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; font-size: 13px; }
.error-breakdown-list li { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.err-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.err-label { flex: 1; color: var(--ink); }
.subject-bar-block { margin-top: 14px; }
.progress-track { height: 10px; background: rgba(212, 175, 55, 0.18); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.progress-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--yellow), var(--yellow-deep)); }

.question-audit-card { border: 1px solid var(--border); border-radius: 16px; padding: 20px; margin-bottom: 16px; background: var(--surface); backdrop-filter: blur(12px); }
.q-meta-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.q-badge { background: var(--yellow-soft); color: var(--yellow-deep); border: 1px solid var(--border); padding: 4px 10px; border-radius: 8px; font-weight: 900; font-size: 12px; }
.q-prompt { font-weight: 700; font-size: 15px; margin: 0 0 14px; color: var(--ink); }
.q-options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.q-option { padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.8); font-size: 13px; color: var(--ink); }
.q-opt-correct { background: #dcfce7; border-color: #22c55e; font-weight: 700; }
.q-opt-wrong { background: #fee2e2; border-color: #ef4444; }
.opt-tag { float: right; font-size: 11px; font-weight: 800; }
.q-explanation-box { background: var(--yellow-soft); border: 1px solid var(--border); padding: 12px 16px; border-radius: 12px; font-size: 13px; color: var(--ink); }

/* Admin Table, Live Tools & Phone Mockups */
.table-responsive { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); color: var(--ink); }
.admin-table th { background: var(--yellow-soft); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--yellow-deep); font-weight: 800; }
.apk-meta-box { margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--yellow-soft); border: 1px solid var(--border); font-size: 12px; display: grid; gap: 4px; }

.live-tool-panel { background: var(--surface) !important; color: var(--ink) !important; border: 1px solid var(--border); padding: 32px; border-radius: 22px; text-align: center; box-shadow: var(--glass-shadow); backdrop-filter: blur(16px); }
.pomodoro-widget { margin-top: 16px; }
.pomodoro-time { font-size: 56px; font-weight: 900; color: var(--yellow-deep); letter-spacing: -0.04em; margin-bottom: 14px; }

.mobile-frames-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.phone-mockup { border: 6px solid var(--border); border-radius: 36px; padding: 20px; background: var(--surface-strong); box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.phone-notch { background: var(--yellow-soft); color: var(--yellow-deep); border: 1px solid var(--border); font-size: 10px; font-weight: 800; text-align: center; padding: 5px 12px; border-radius: 99px; margin-bottom: 16px; }
.phone-ring, .phone-score { text-align: center; padding: 18px; margin: 12px 0; border-radius: 18px; background: var(--yellow-soft); border: 2px solid var(--yellow); }
.phone-ring strong { display: block; font-size: 32px; font-weight: 900; color: var(--yellow-deep); }
.phone-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 12px; }
.phone-list li { padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.7); border: 1px solid var(--border); }

/* ==========================================================================
   MOBILE OVERLAPPING DRAWER & BACKDROP (CLICK OUTSIDE / OPTION TO CLOSE)
   ========================================================================== */
.sidebar-overlay,
.workspace-backdrop,
.mobile-nav-backdrop {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(31, 41, 55, 0.35) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  z-index: 9998 !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.sidebar-overlay.show,
.sidebar-overlay.is-open,
.workspace-backdrop.is-open,
body.sidebar-open .sidebar-overlay {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Responsive Breakpoints */
@media (max-width: 1000px) {
  .hero-grid { gap: 30px; }
  .primary-nav { gap: 14px; }
  .primary-nav > a:not(.button) { font-size: 12px; }
  .brand img { width: 145px; }
  .nav-wrap { gap: 18px; }
  .footer-main { grid-template-columns: 1fr 1fr; row-gap: 32px; }
}

@media (max-width: 960px) {
  /* Prevent Sidebar from Pushing/Squishing Content on Mobile */
  .workspace-layout {
    display: block !important;
    width: 100% !important;
    overflow-x: hidden;
  }

  /* Overlapping Fixed Golden Glass Drawer */
  .workspace-sidebar,
  .sidebar,
  .dashboard-sidebar,
  .admin-sidebar,
  aside.workspace-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 286px !important;
    max-width: 84vw !important;
    height: 100dvh !important;
    z-index: 9999 !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(253, 248, 230, 0.98) 100%) !important;
    border-right: 1px solid var(--border) !important;
    box-shadow: 16px 0 45px rgba(31, 41, 55, 0.18) !important;
    transform: translateX(-105%) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow-y: auto !important;
  }

  
/* Mobile drawer viewport alignment fix */
@media (max-width: 960px) {
  body.workspace-body #portal-sidebar.workspace-sidebar {
    box-sizing: border-box !important;
    left: 0 !important;
    right: auto !important;
    width: min(286px, 86vw) !important;
    max-width: 86vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    margin: 0 !important;
  }

  body.workspace-body #portal-sidebar.workspace-sidebar.is-open {
    transform: translateX(0) !important;
  }
}

/* Open State Classes for Mobile Drawer */
  .workspace-sidebar.is-open,
  .workspace-sidebar.open,
  .workspace-sidebar.active,
  .workspace-sidebar.show,
  .sidebar.is-open,
  .sidebar.open,
  .admin-sidebar.is-open,
  body.sidebar-open .workspace-sidebar,
  body.nav-open .workspace-sidebar {
    transform: translateX(0) !important;
  }

  .workspace-main { width: 100% !important; max-width: 100vw !important; }
  .quiz-shell, .workspace-two-col, .kpi-grid-4, .kpi-grid-3, .mobile-frames-grid, .value-grid-4, .form-row-2, .form-row-3, .form-row-4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container { width: min(var(--container), calc(100% - 34px)); }
  .nav-wrap { min-height: 72px; }
  .brand img { width: 145px; height: 58px; }
  .menu-toggle { display: block; }
  .primary-nav {
    display: none; position: fixed; top: 72px; left: 12px; right: 12px; padding: 18px 22px 22px;
    background: var(--surface-strong); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border); border-radius: 18px;
    box-shadow: 0 20px 40px rgba(184, 134, 0, 0.16);
    align-items: stretch; gap: 4px; z-index: 9999;
  }
  .primary-nav.is-open { display: flex; flex-direction: column; }
  .primary-nav > a:not(.button) { padding: 12px 8px; font-size: 14px; border-bottom: 1px solid rgba(212, 175, 55, 0.15); }
  .primary-nav > a.active:after { display: none; }
  .nav-cta { margin-top: 9px; }
  .hero-section { padding: 42px 0 46px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-copy h1 { font-size: clamp(40px, 11vw, 58px); }
  .hero-lead { font-size: 14px; }
  .hero-actions { gap: 9px; }
  .hero-actions .button { min-height: 48px; padding-inline: 15px; font-size: 12px; }
  .hero-visual { max-width: 590px; width: calc(100% - 8px); margin-inline: auto; }
  .hero-reference { aspect-ratio: 1.15; }
  .floating-note { right: -7px; top: -18px; padding: 10px; }
  .value-grid { grid-template-columns: 1fr; gap: 19px; padding: 22px 0; }
  .value-grid article { align-items: center; }
  .section { padding: 68px 0; }
  .section-heading { margin-bottom: 28px; }
  .steps-grid, .three-card-grid, .resource-preview-grid, .q-options-grid { grid-template-columns: 1fr; }
  .step-card, .feature-card { min-height: 0; padding: 23px; }
  .step-symbol, .feature-icon { margin-bottom: 17px; }
  .readiness-panel { padding: 29px 24px; align-items: flex-start; flex-direction: column; gap: 23px; }
  .readiness-panel h2, .section-heading h2, .simple-cta h2, .about-grid h2 { font-size: 34px; }
  .page-hero { padding: 56px 0 42px; }
  .page-hero h1 { font-size: clamp(36px, 10vw, 52px); }
  .page-hero p { font-size: 14px; }
  .journey-item { grid-template-columns: 45px 1fr; gap: 14px; padding: 22px 0; }
  .journey-item > span { width: 40px; height: 40px; }
  .journey-item h2 { font-size: 17px; }
  .journey-item p { font-size: 13px; }
  .notice-card { align-items: flex-start; flex-wrap: wrap; padding: 19px; }
  .notice-card > div:nth-child(2) { flex: 1 1 calc(100% - 65px); }
  .status-pill { margin-left: 64px; }
  .simple-cta { align-items: flex-start; flex-direction: column; }
  .about-grid { grid-template-columns: 1fr; gap: 16px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-cta { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .panel-watermark { font-size: 140px; top: 0; }
  .workspace-topbar { padding: 12px 16px; }
  .workspace-content { padding: 18px 16px 48px; }
}

@media (max-width: 420px) {
  .container { width: calc(100% - 28px); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .floating-note { right: -4px; max-width: 220px; }
  .visual-label { left: 16px; bottom: 16px; padding: 9px 11px; }
  .visual-label strong { font-size: 9px; }
  .visual-label small { font-size: 9px; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-cta { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Fluid Typography & UX Helper Banner (Easy-to-Use Upgrade) */
.workspace-header-card h1,
.workspace-header h1,
.workspace-header-row h1,
.dashboard-welcome-banner h1,
.panel-header h1 {
  font-size: clamp(1rem, 3.2vw + 0.2rem, 1.45rem) !important;
  line-height: 1.25 !important;
  word-break: break-word;
}
.ux-helper-banner {
  background: linear-gradient(135deg, #fffdf5 0%, #fef9e7 100%) !important;
  border: 1px solid rgba(212, 175, 55, 0.42) !important;
  border-left: 4px solid #d4af37 !important;
  border-radius: 14px !important;
  padding: 14px 18px !important;
  font-size: 13.5px !important;
  line-height: 1.55 !important;
  color: #1f2937 !important;
  box-shadow: 0 4px 14px rgba(184, 134, 0, 0.06) !important;
}
.ux-helper-banner strong {
  color: #92400e !important;
}


/* ==========================================================================
   PHASE 2 RESPONSIVE UI STABILISATION & MOBILE APK VIEWPORT FIXES
   Fixes identified in JEE MENIA APK Pre-Build Security & UI Audit:
   1. Unifies mobile navigation drawer breakpoint (<= 1080px) so public-nav
      never renders as an expanded vertical list unless toggled open.
   2. Compacts mobile header & urgency ticker vertical height on phones.
   3. Eliminates cramped multi-column study-tool cards & 4th-card orphan wrap:
      1 column on phones (< 640px), 2 columns on tablets (640px–1080px),
      and balanced multi-column grids on desktop.
   ========================================================================== */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Study-Tool Cards & Steps Grid: Prevent 3+1 orphan card wrap and cramped text */
.steps-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 18px !important;
}

@media (min-width: 640px) and (max-width: 1120px) {
  .steps-grid,
  .kpi-grid,
  .kpi-grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 1080px) {
  .site-header .nav-wrap {
    min-height: 64px !important;
    padding-block: 6px !important;
    gap: 12px !important;
  }
  .site-header .brand img {
    height: 36px !important;
    max-height: 36px !important;
    width: auto !important;
  }
  .site-header .menu-toggle {
    display: inline-flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 8px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(212, 175, 55, 0.45) !important;
    background: #fffdf5 !important;
    cursor: pointer !important;
    z-index: 1100 !important;
  }
  .site-header .primary-nav:not(.is-open) {
    display: none !important;
  }
  .site-header .primary-nav.is-open {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    position: fixed !important;
    top: 66px !important;
    left: 12px !important;
    right: 12px !important;
    max-height: calc(100dvh - 82px) !important;
    overflow-y: auto !important;
    padding: 16px 18px 20px !important;
    background: #ffffff !important;
    border: 1.5px solid #E5AD00 !important;
    border-radius: 16px !important;
    box-shadow: 0 22px 45px rgba(17, 19, 21, 0.18) !important;
    gap: 4px !important;
    z-index: 9999 !important;
  }
  .site-header .primary-nav.is-open > a:not(.button) {
    padding: 11px 10px !important;
    font-size: 14.5px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    border-bottom: 1px solid #f3f4f6 !important;
  }
  .site-header .primary-nav.is-open .jm-nav-dropdown {
    width: 100% !important;
    flex-direction: column !important;
    align-items: stretch !important;
    margin-top: 4px !important;
  }
  .site-header .primary-nav.is-open .jm-nav-dropbtn {
    width: 100% !important;
    min-height: 44px !important;
    justify-content: space-between !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
  }
  .site-header .primary-nav.is-open .jm-nav-dropmenu {
    position: static !important;
    width: 100% !important;
    box-shadow: none !important;
    margin-top: 4px !important;
  }
  .site-header .primary-nav.is-open .nav-cta {
    width: 100% !important;
    min-height: 46px !important;
    margin-top: 8px !important;
    justify-content: center !important;
  }
}

@media (max-width: 639px) {
  .container {
    width: calc(100% - 28px) !important;
  }
  /* Compact Urgency Ticker on Mobile so Header Area Never Pushes Content Down Excessively */
  .urgency-ticker-bar {
    padding: 6px 0 !important;
    font-size: 11.5px !important;
  }
  .urgency-ticker-bar .demo-switch-links {
    display: none !important;
  }
  .hero-section {
    padding: 28px 0 36px !important;
  }
  .hero-copy h1,
  .page-hero h1 {
    font-size: clamp(28px, 8.2vw, 38px) !important;
    line-height: 1.08 !important;
    margin: 14px 0 !important;
  }
  .hero-lead,
  .page-hero p {
    font-size: 14.5px !important;
    line-height: 1.65 !important;
  }
  /* Deliberate 1-Column Study-Tool Cards on Mobile Phones (320px–430px+) with Readable Text */
  .steps-grid,
  .three-card-grid,
  .resource-preview-grid,
  .kpi-grid,
  .kpi-grid-4,
  .kpi-grid-3,
  .workspace-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .step-card,
  .feature-card,
  .card,
  .workspace-panel {
    padding: 18px 16px !important;
    min-height: 0 !important;
  }
  .step-card h3,
  .feature-card h2,
  .card h3 {
    font-size: 17px !important;
    line-height: 1.3 !important;
  }
  .step-card p,
  .feature-card p,
  .card p {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }
  /* Touch Targets >= 44px on Mobile */
  .button,
  .button-small,
  .sidebar-link,
  .jm-mobile-drawer-btn {
    min-height: 44px !important;
  }
  .workspace-topbar {
    padding: 10px 14px !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
  }
  .workspace-content {
    padding: 14px 12px 44px !important;
    gap: 16px !important;
  }
}


/* ==========================================================================
   25-PAGE SPEC DESIGN TOKENS & BOTTOM NAV (SECTIONS 16 & 17)
   Primary Gold: #B88716 | Dark Surface: #17191E | Warm White: #FFFDF7
   Body Text: #242833 | Muted Text: #5D6470 | Touch Target >= 44px
   ========================================================================== */
:root {
  --spec-primary-gold: #B88716;
  --spec-dark-surface: #17191E;
  --spec-warm-white: #FFFDF7;
  --spec-body-text: #242833;
  --spec-muted-text: #5D6470;
}

.jm-mobile-bottom-nav {
  display: none;
}

@media (max-width: 960px) {
  .jm-mobile-bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: rgba(255, 253, 247, 0.98);
    border-top: 1.5px solid rgba(184, 135, 22, 0.35);
    box-shadow: 0 -8px 24px rgba(23, 25, 30, 0.10);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 9500;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .jm-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 44px;
    font-size: 11px;
    font-weight: 700;
    color: #5D6470;
    text-decoration: none;
    transition: color 0.15s ease, background 0.15s ease;
  }
  .jm-bottom-nav-icon {
    font-size: 17px;
    line-height: 1;
  }
  .jm-bottom-nav-item.is-active {
    color: #B88716;
    font-weight: 800;
    position: relative;
  }
  .jm-bottom-nav-item.is-active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 22%;
    right: 22%;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, #FFC400, #B88716);
  }
  .workspace-content {
    padding-bottom: 84px !important;
  }
}


/* Student Mock Test mobile content width safety */
@media (max-width: 960px) {
  .workspace-main,
  .workspace-content {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .workspace-content > .card,
  .workspace-content > section.card {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
  }

  .workspace-content .table-responsive {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .workspace-content .table-responsive .workspace-table {
    min-width: 900px;
  }
}


/* FINAL MOBILE VIEWPORT SAFETY FIX */
@media (max-width: 960px) {
  html,
  body.workspace-body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  body.workspace-body .workspace-layout,
  body.workspace-body .workspace-main,
  body.workspace-body .workspace-content {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body.workspace-body .workspace-content {
    padding-left: 12px;
    padding-right: 12px;
  }

  body.workspace-body .workspace-content > *,
  body.workspace-body .workspace-content .card,
  body.workspace-body .workspace-content section {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
  }

  body.workspace-body .workspace-content img {
    max-width: 100%;
    height: auto;
  }

  body.workspace-body .jm-avatar-dropdown {
    position: relative;
    min-width: 0;
  }

  body.workspace-body .jm-avatar-menu.is-open {
    position: fixed;
    top: 125px;
    left: 12px;
    right: 12px;
    width: auto;
    min-width: 0;
    max-width: none;
    max-height: calc(100dvh - 155px);
    overflow-y: auto;
    box-sizing: border-box;
    z-index: 10001;
  }

  body.workspace-body .jm-avatar-menu.is-open * {
    overflow-wrap: anywhere;
  }
}


/* === V6.0 UI CARD, TEXT CARD & MOBILE/DESKTOP CLARITY UPGRADE === */
/**
 * JEE MENIA v6.0 Syllabus Tracker, UI Card & Text Card Clarity Stylesheet
 * Responsive across 360px Mobile and 1366px+ Desktop with zero horizontal overflow.
 */
.jm-progress-bar {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.jm-progress-bar > div {
  height: 100%;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.jm-dimensions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.jm-dim-card,
.jm-leader-card,
.jm-elevated-card,
.card,
.workspace-panel,
.step-card {
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.85);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.055), 0 2px 6px rgba(15, 23, 42, 0.03);
  color: #0f172a;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover,
.workspace-panel:hover,
.step-card:hover {
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08), 0 3px 10px rgba(212, 175, 55, 0.12);
}

/* Text Card Clarity & High-Contrast Typography */
.card h1, .card h2, .card h3,
.workspace-panel h1, .workspace-panel h2, .workspace-panel h3,
.step-card h3 {
  color: #0f172a;
  letter-spacing: -0.015em;
  line-height: 1.32;
}

.card p, .workspace-panel p, .step-card p {
  color: #334155;
  line-height: 1.68;
}

.muted {
  color: #475569 !important;
  line-height: 1.6;
}

.target-row {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 13px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.target-row:hover {
  border-color: rgba(212, 175, 55, 0.55);
  background: #fffdf9;
}

.kpi-card {
  background: #ffffff;
  border: 1.5px solid rgba(212, 175, 55, 0.42);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 6px 18px rgba(184, 134, 0, 0.08);
}
.kpi-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.15;
}
.kpi-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  margin-top: 3px;
}

.status-pill, .badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.25;
}

.form-control {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 13.5px;
  color: #0f172a;
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control:focus {
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.22);
  outline: none;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 800;
  text-align: left;
  padding: 11px 13px;
  border-bottom: 2px solid #cbd5e1;
  white-space: nowrap;
}
.admin-table td {
  padding: 11px 13px;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
  vertical-align: middle;
}
.admin-table tr:hover td {
  background: #fffdf7;
}

/* Mobile 360px & Tablet Responsive Safeguards (Zero Horizontal Overflow) */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  .workspace-content {
    padding: 16px 12px 84px !important;
    gap: 16px !important;
  }
  .card, .workspace-panel, .step-card, .jm-elevated-card {
    padding: 15px 14px !important;
    border-radius: 14px !important;
  }
  .workspace-grid-2, .grid-2, .grid-3, .form-row-2, .form-row-3, .form-row-4, .cbt-admin-review-grid {
    grid-template-columns: 1fr !important;
  }
  .target-row {
    flex-direction: column;
    align-items: flex-start;
  }
  #jm-minimized-timer-pill {
    left: 12px;
    right: 12px;
    bottom: 68px !important;
    justify-content: space-between;
    font-size: 12px !important;
  }
}


/* ==========================================================================
   SAFE FINAL OVERRIDE — PUBLIC HEADER MENU BUTTON
   Original stylesheet above is preserved; no existing rules were removed.
   ========================================================================== */
.site-header .menu-toggle {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 8px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 11px;
  background: #fffdf5;
  color: #1f2937;
  cursor: pointer;
}

.site-header .menu-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  min-height: 2px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: #1f2937;
  flex: 0 0 2px;
}

.site-header .menu-toggle:hover {
  background: #fff7df;
  border-color: #b88600;
}

.site-header .menu-toggle:focus-visible {
  outline: 3px solid rgba(212, 175, 55, 0.35);
  outline-offset: 3px;
}


/* JEE MENIA — FINAL MOBILE HAMBURGER OVERRIDE */
@media (max-width: 1080px) {
  .site-header .nav-wrap > button.menu-toggle {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: flex !important;
    position: relative !important;
    flex: 0 0 48px !important;
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 8px !important;
    margin: 0 !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: #fffdf5 !important;
    background-image: none !important;
    border: 1.5px solid #d4af37 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
    z-index: 1100 !important;
  }

  .site-header .nav-wrap > button.menu-toggle::before,
  .site-header .nav-wrap > button.menu-toggle::after {
    content: none !important;
    display: none !important;
  }

  .site-header .nav-wrap > button.menu-toggle > span:not(.sr-only) {
    display: block !important;
    position: static !important;
    flex: 0 0 3px !important;
    width: 23px !important;
    min-width: 23px !important;
    height: 3px !important;
    min-height: 3px !important;
    max-height: 3px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #b88600 !important;
    border: 0 !important;
    border-radius: 3px !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
}
/* Final responsive hamburger visibility */
@media (min-width: 1081px) {
  .site-header .menu-toggle {
    display: none !important;
  }
}

@media (max-width: 1080px) {
  .site-header .menu-toggle {
    display: flex !important;
  }
}

/* JEE MENIA mobile student shell — compact, intentional, touch-first */
@media (max-width: 960px) {
  body.workspace-body .jm-student-topbar {
    position: sticky !important;
    top: 0;
    z-index: 9400;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 10px !important;
    padding: 10px 14px 12px !important;
    background: rgba(255,253,247,.97) !important;
    border-bottom: 1px solid rgba(184,135,22,.22);
    box-shadow: 0 5px 18px rgba(31,41,55,.055);
    backdrop-filter: blur(18px);
  }
  .jm-topbar-main-row {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 42px;
  }
  .jm-topbar-brand {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: #182338;
    text-decoration: none;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .09em;
    white-space: nowrap;
  }
  .jm-topbar-brand img {
    display: block;
    width: 92px;
    height: 27px;
    object-fit: contain;
  }
  .jm-topbar-main-row .topbar-profile {
    margin-left: auto;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
  }
  .jm-topbar-main-row .jm-topbar-help,
  .jm-topbar-main-row .jm-topbar-alerts,
  .jm-topbar-main-row .jm-topbar-streak { display: none !important; }
  .jm-mobile-drawer-btn {
    display: inline-flex !important;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    min-height: 42px !important;
    padding: 0 !important;
    flex-direction: column;
    gap: 0;
    border-radius: 13px !important;
    align-items: center;
    justify-content: center;
    background: #fff8e3 !important;
    border: 1px solid #e8c45b !important;
    color: #8a6100 !important;
    box-shadow: 0 3px 9px rgba(164,116,0,.08);
    font-size: 17px !important;
  }
  .jm-menu-btn-label { display: none; }
  .jm-topbar-search {
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
  }
  .jm-topbar-search input {
    width: 100%;
    height: 43px;
    box-sizing: border-box;
    padding: 0 15px !important;
    border-radius: 14px !important;
    background: #fff !important;
    border: 1px solid #e8dfc9 !important;
    color: #243047 !important;
    font-size: 13px !important;
    box-shadow: inset 0 1px 2px rgba(31,41,55,.025);
  }
  .jm-topbar-search input::placeholder { color: #8a8f98; opacity: 1; }
  .jm-avatar-trigger {
    display: inline-flex !important;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    padding: 3px !important;
    justify-content: center;
    align-items: center;
    border-radius: 50% !important;
    border: 1px solid #e7c45b !important;
    background: #fff !important;
    box-shadow: 0 3px 10px rgba(164,116,0,.08);
  }
  .jm-avatar-circle {
    display: inline-flex !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(145deg,#ffdf70,#c18b10) !important;
    color: #3c2a00 !important;
    font-size: 12px !important;
    font-weight: 900;
  }
  .jm-avatar-caret,
  .jm-avatar-meta { display: none !important; }

  /* Account menu becomes a compact bottom sheet above the bottom navigation. */
  body.workspace-body .jm-avatar-menu.is-open {
    position: fixed !important;
    top: auto !important;
    left: 12px !important;
    right: 12px !important;
    bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 520px !important;
    max-height: min(66dvh, 560px) !important;
    margin: 0 auto !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    padding: 14px !important;
    border: 1px solid #e8dfca !important;
    border-radius: 22px !important;
    background: rgba(255,255,255,.99) !important;
    box-shadow: 0 20px 60px rgba(20,29,43,.24) !important;
    z-index: 10002 !important;
  }
  .jm-avatar-menu-header { padding: 6px 8px 12px !important; }
  .jm-avatar-menu-header strong { font-size: 16px !important; }
  .jm-avatar-menu-header span { font-size: 12px !important; }
  .jm-avatar-menu-item,
  .jm-avatar-signout-btn {
    min-height: 46px !important;
    display: flex !important;
    align-items: center;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
  }

  /* Drawer: full-height, readable sections, clear active route. */
  .workspace-sidebar {
    width: min(88vw, 340px) !important;
    max-width: 340px !important;
    padding: 20px 14px calc(20px + env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 0 22px 22px 0;
    background: linear-gradient(180deg,#fffefa 0%,#fff9e9 100%) !important;
    box-shadow: 20px 0 60px rgba(22,31,45,.24) !important;
    overflow-x: hidden;
    overscroll-behavior: contain;
  }
  .workspace-sidebar .sidebar-brand {
    padding: 4px 7px 16px;
    border-bottom: 1px solid #eee4ce;
  }
  .workspace-sidebar .sidebar-nav {
    margin: 15px 0 auto !important;
    gap: 5px !important;
    padding-bottom: 12px;
  }
  .workspace-sidebar .sidebar-section-label {
    padding: 15px 10px 5px !important;
    color: #9a6c08 !important;
    font-size: 9px !important;
    letter-spacing: .15em !important;
  }
  .workspace-sidebar .sidebar-link {
    min-height: 46px !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    gap: 12px !important;
  }
  .workspace-sidebar .sidebar-link.is-active {
    background: linear-gradient(110deg,#ffe58a,#e5b72c) !important;
    border: 1px solid #d6a51b !important;
    box-shadow: 0 5px 14px rgba(183,132,12,.13) !important;
    color: #2d250f !important;
  }
  .workspace-sidebar .sidebar-footer {
    padding-top: 12px;
    border-top: 1px solid #eee4ce;
  }
  .sidebar-overlay { z-index: 9998 !important; }
  .workspace-sidebar { z-index: 9999 !important; }

  /* Floating bottom navigation: compact pill-like destinations, safe-area aware. */
  .jm-mobile-bottom-nav {
    height: calc(66px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 7px 6px calc(7px + env(safe-area-inset-bottom, 0px)) !important;
    grid-template-columns: repeat(5,minmax(0,1fr)) !important;
    align-items: center;
    background: rgba(255,255,255,.97) !important;
    border-top: 1px solid #e9e1d1 !important;
    box-shadow: 0 -8px 28px rgba(22,31,45,.09) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  .jm-bottom-nav-item {
    min-width: 0;
    min-height: 50px !important;
    padding: 4px 1px !important;
    border-radius: 12px;
    gap: 3px !important;
    font-size: 10px !important;
    font-weight: 750 !important;
    color: #737b89 !important;
  }
  .jm-bottom-nav-icon {
    width: 27px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px !important;
    line-height: 1;
  }
  .jm-bottom-nav-item.is-active {
    color: #8d6508 !important;
    background: #fff7df;
  }
  .jm-bottom-nav-item.is-active::before { display: none !important; }
  .workspace-content { padding-bottom: 102px !important; }
}
@media (max-width: 380px) {
  .jm-topbar-brand span { display: none; }
  .jm-topbar-brand img { width: 86px; }
  .jm-mobile-bottom-nav { grid-template-columns: repeat(5,minmax(0,1fr)) !important; }
  .jm-bottom-nav-item { font-size: 9px !important; }
}

@media(max-width:960px){.jm-topbar-search kbd,.jm-topbar-search .search-shortcut,.jm-topbar-search [data-shortcut-hint]{display:none!important}}

/* Student portal: restore the grouped study sidebar and make the top toolbar icon-led. */
body.workspace-body .jm-icon-toolbar {
  min-height: 76px;
  display: grid !important;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 12px 24px !important;
  background: rgba(255,255,255,.94) !important;
  border-bottom: 1px solid rgba(190,147,39,.20);
  box-shadow: 0 5px 22px rgba(42,35,18,.045);
}
.jm-toolbar-left { display:flex; align-items:center; gap:14px; min-width:0; }
.jm-icon-toolbar .jm-topbar-brand { display:flex; flex-direction:column; align-items:flex-start; gap:0; color:#253047; text-decoration:none; font-size:11px; font-weight:850; letter-spacing:.075em; line-height:1.2; white-space:nowrap; }
.jm-icon-toolbar .jm-topbar-brand img { width:102px; height:29px; object-fit:contain; }
.jm-icon-toolbar .jm-toolbar-search { width:100%; max-width:560px; justify-self:end; position:relative; }
.jm-icon-toolbar .jm-toolbar-search input { width:100%; height:42px; border:1px solid #e9dfc9; border-radius:13px; background:#fffdfa; padding:0 48px 0 14px; color:#243047; font-size:12px; }
.jm-icon-toolbar .jm-cmd-kbd { position:absolute; right:12px; top:50%; transform:translateY(-50%); color:#9a8a68; font-size:11px; pointer-events:none; }
.jm-icon-toolbar .jm-toolbar-actions { display:flex; align-items:center; justify-content:flex-end; gap:9px; min-width:max-content; }
.jm-icon-action { position:relative; display:inline-flex; align-items:center; justify-content:center; width:42px; height:42px; min-width:42px; padding:0; border:1px solid #eee2c7; border-radius:14px; background:linear-gradient(180deg,#fff 0%,#fffaf0 100%); color:#9a6c08; box-shadow:0 3px 10px rgba(141,104,13,.055); cursor:pointer; text-decoration:none; transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease; }
.jm-icon-action:hover { transform:translateY(-2px); border-color:#d8ae36; box-shadow:0 7px 18px rgba(141,104,13,.12); }
.jm-icon-action svg,.jm-mobile-drawer-btn svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.jm-icon-count { position:absolute; top:-5px; right:-5px; min-width:17px; height:17px; padding:0 4px; display:grid; place-items:center; border-radius:99px; background:#c58e08; color:#fff; border:2px solid #fff; font-size:9px; font-weight:900; }
.jm-streak-action { gap:3px; width:auto; min-width:48px; padding:0 9px; }
.jm-streak-number { font-size:11px; font-weight:900; color:#805b06; }
.jm-toolbar-avatar { display:flex; align-items:center; margin-left:2px; }
.jm-icon-toolbar .jm-mobile-drawer-btn { display:none; }
.jm-topbar-popover { position:absolute; z-index:10020; right:86px; top:68px; width:min(310px,calc(100vw - 28px)); padding:16px; border:1px solid #ead9ae; border-radius:16px; background:rgba(255,255,255,.98); box-shadow:0 18px 48px rgba(31,41,55,.16); color:#334155; }
.jm-topbar-popover[hidden] { display:none !important; }
.jm-topbar-popover-title { font-weight:900; color:#8c6509; }
.jm-topbar-popover p { margin:8px 0; font-size:13px; }
.jm-topbar-popover small { color:#7b8493; }
.jm-topbar-popover a { display:inline-block; margin-top:10px; color:#956900; font-weight:800; font-size:12px; }
@media (min-width:961px) {
  .workspace-sidebar { width:248px !important; }
  .workspace-main { min-width:0; }
  .jm-sidebar-group>summary { cursor:pointer; }
}
@media (max-width:960px) {
  body.workspace-body .jm-icon-toolbar { display:grid !important; grid-template-columns:1fr auto; gap:9px 10px; padding:9px 12px 11px !important; min-height:0; }
  .jm-toolbar-left { grid-column:1; grid-row:1; gap:9px; }
  .jm-icon-toolbar .jm-mobile-drawer-btn { display:inline-flex !important; width:40px; min-width:40px; height:40px; min-height:40px !important; padding:0 !important; align-items:center; justify-content:center; border:1px solid #e5c35d !important; border-radius:12px !important; background:#fff8e5 !important; color:#956900 !important; }
  .jm-icon-toolbar .jm-mobile-drawer-btn svg { width:20px; height:20px; }
  .jm-icon-toolbar .jm-topbar-brand img { width:88px; height:25px; }
  .jm-icon-toolbar .jm-topbar-brand span { font-size:8px; }
  .jm-icon-toolbar .jm-toolbar-actions { grid-column:2; grid-row:1; gap:5px; }
  .jm-icon-action { width:35px; min-width:35px; height:35px; border-radius:11px; }
  .jm-icon-action svg { width:17px; height:17px; }
  .jm-streak-action { width:40px; min-width:40px; padding:0 4px; }
  .jm-streak-number { font-size:10px; }
  .jm-toolbar-avatar { margin-left:0; }
  .jm-icon-toolbar .jm-toolbar-search { grid-column:1 / -1; grid-row:2; max-width:none; width:100%; }
  .jm-icon-toolbar .jm-toolbar-search input { height:40px; font-size:12px; }
  .jm-topbar-popover { top:98px; right:12px; }
  .workspace-sidebar .jm-sidebar-group { margin:5px 5px 9px !important; }
  .workspace-sidebar .jm-sidebar-group>summary { padding:11px 9px !important; }
  .workspace-sidebar .jm-sidebar-group-links .sidebar-link { min-height:44px !important; }
}
@media (max-width:380px) {
  .jm-icon-toolbar .jm-toolbar-actions { gap:3px; }
  .jm-icon-action { width:32px; min-width:32px; height:34px; }
  .jm-streak-action { width:36px; min-width:36px; }
  .jm-icon-toolbar .jm-topbar-brand img { width:78px; }
}
