:root {
  --slate:      #23133a;
  --slate2:     #1f1232;
  --slate3:     #3a1c63;
  --slate4:     #ffffff;
  --amber:      #883CF0;
  --amber2:     #873cf0e4;
  --amber-lt:   #1f1232;
  --amber-mid:  #5e309d;
  --cream:      #23133a;
  --parchment:  #1f1232;
  --sand:       #e8e0d0;
  --sand2:      #c445f6bf;
  --ink:        #e4e7ed;
  --ink2:       #dcdfe4;
  --ink3:       #b3b6bc;
  --ink4:       #c7d3e2;
  --ink5:       #cfe2f7;
  --rust:       #c0392b;
  --rust-lt:    #321212;
  --pine:       #1a6b3c;
  --pine-lt:    #2a1647;
  --teal:       #873cf055;
  --teal-lt:    #23133a;
  --rule:       #72569a;
  --rule2:      #5e309d;
  --shadow-sm:  0 1px 3px #be52e50f;
  --shadow:     0 2px 8px #be52e50f, 0 1px 2px #be52e50f;
  --shadow-lg:  0 8px 32px #be52e50f, 0 2px 8px #be52e50f;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}

.secret-server-aws-secrets-manager-guide {
  background: #191127;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
}

/* Subtle diagonal hatching bg */
.secret-server-aws-secrets-manager-guide::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(232,146,10,0.025) 20px,
    rgba(232,146,10,0.025) 21px
  );
  pointer-events: none; z-index: 0;
}

/* ═══ LAYOUT ═══ */
.shell { display: flex; min-height: 100vh; position: relative; z-index: 1; }

/* ═══════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════ */
.sidebar {
  width: 268px; flex-shrink: 0;
  background: #180f26;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto; display: flex; flex-direction: column;
  border-right: 3px solid var(--amber);
}
.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--slate3); border-radius: 2px; }

/* Sidebar top banner */
.sb-banner {
  background: var(--amber);
  padding: 5px 20px;
  font-size: 9px; font-weight: 700;
  color: var(--slate);
  text-transform: uppercase;
  display: flex; align-items: center; justify-content: space-between;
}
.sb-banner-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--slate); opacity: 0.5;
  animation: blink 1.8s infinite;
}
@keyframes blink { 0%,100%{opacity:.5} 50%{opacity:.15} }

.sb-brand {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--rule);
}
.sb-logo {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px;
}
.sb-logo-icon {
  width: 36px; height: 36px; border-radius: 4px;
  background: linear-gradient(135deg, var(--amber) 0%, #684895 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0; margin-top: 2px;
}
.sb-title {
  font-weight: 700; font-size: 15px;
  color: #fff;
}
.sb-title span { color: var(--amber2); }

.sb-meta {
  font-size: 9px;
  color: var(--ink5); line-height: 1.8;
}

/* Progress */
.sb-progress { padding: 14px 20px; border-bottom: 1px solid var(--rule); }
.sb-prog-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 7px;
}
.sb-prog-label { font-size: 9px; color: var(--ink5); }
.sb-prog-pct   { font-size: 11px; font-weight: 700; color: var(--amber2); }
.sb-prog-track {
  height: 3px; background: #282035; border-radius: 2px;
  position: relative; overflow: hidden;
}
.sb-prog-fill {
  height: 100%; width: 0%; border-radius: 2px;
  background: linear-gradient(90deg, var(--amber), var(--amber2));
  transition: width 0.5s cubic-bezier(.4,0,.2,1);
}

/* Nav */
nav { flex: 1; padding: 10px 0 16px; }
.nav-section { margin-bottom: 4px; }
.nav-section-hd {
  font-size: 9px; 
  color: var(--slate4); text-transform: uppercase;
  padding: 8px 20px 4px; font-weight: 700;
}
.nav-a {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 20px; color: var(--ink4);
  font-size: 11.5px; text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.15s; cursor: pointer;
}
.nav-a:hover { color: var(--amber2); background: #23133a9f; }
.nav-a.active {
  color: var(--amber2); font-weight: 500;
  border-left-color: var(--amber);
  background: #23133a;
}
.nav-a .nn {
  font-size: 9px; color: var(--slate4);
  min-width: 18px; text-align: right; flex-shrink: 0;
}
.nav-a.active .nn { color: var(--amber); }

.sb-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--slate3);
  font-size: 9px; color: var(--slate4); line-height: 1.8;
}

/* ═══════════════════════════════════
   MAIN
   ═══════════════════════════════════ */
.main { flex: 1; height: 100vh; overflow-y: auto;}

/* ═══ HERO ═══ */
.hero {
  background: #23133a;
  padding: 0;
  position: relative; overflow: hidden;
}

/* Decorative amber corner */
.hero::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 140px 140px 0;
  border-color: transparent var(--amber) transparent transparent;
  opacity: 0.12;
}
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--amber), transparent);
}

.hero-inner { padding: 44px 52px 40px; }

/* Horizontal rule header */
.hero-rule-row {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 22px;
}
.hero-rule-line { flex: 1; height: 1px; background: var(--amber); }
.hero-rule-text {
  font-size: 9px; 
  color: var(--amber); text-transform: uppercase; white-space: nowrap;
}

/* Big masthead type */
.hero-masthead {
  font-weight: 900; font-size: 52px;
  color: #fff; line-height: 1.0;
   margin-bottom: 4px;
}
.hero-masthead em { font-style: italic; color: var(--amber2); }

.hero-kicker {
  font-style: italic; font-size: 18px;
  color: var(--ink4); margin-bottom: 20px;
}

.hero-body {
  font-size: 16px; line-height: 1.75;
  color: var(--ink4); max-width: 600px;
  margin-bottom: 28px;
}
.hero-body strong { color: rgba(255,255,255,0.75); font-weight: 600; }

/* Tag row */
.hero-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 32px; }
.htag {
  font-size: 9px;
  font-weight: 700; text-transform: uppercase;
  padding: 4px 11px; border: 1px solid;
  display: flex; align-items: center; gap: 5px;
}
.htag.amber { border-color: #3a1c63; color: var(--amber2); background: #23133a; }
.htag.teal  { border-color: #5e309d;  color: #d5e2e5;       background: #1f1232; }
.htag.pine  { border-color: rgba(26,107,60,0.4);   color: #5de6a0;       background: rgba(26,107,60,0.08); }
.htag.rust  { border-color: rgba(192,57,43,0.4);   color: #f48072;       background: rgba(192,57,43,0.08); }

/* Stat strip */
.hero-stats {
  display: grid; grid-template-columns: repeat(4,1fr);
  border-top: 1px solid var(--rule2);
}
.hstat {
  padding: 18px 20px;
  border-right: 1px solid var(--slate3);
}
.hstat:last-child { border-right: none; }
.hstat-n {
  
  font-weight: 700; font-size: 28px;
  color: var(--amber2); line-height: 1;
  margin-bottom: 4px; 
}
.hstat-n sup { font-size: 14px; }
.hstat-l { font-size: 9px; color: var(--ink5); text-transform: uppercase; line-height: 1.5; }

/* ═══ CONTENT SECTIONS ═══ */
.sec {
  background: #191127;
  border-bottom: 1px solid var(--rule);
  padding: 44px 52px;
  animation: fadeUp 0.4s ease both;
  opacity: 0;
}
.sec:nth-child(odd)  { background: #191127; }
.sec:nth-child(even) { background: #1f1232; }

@keyframes fadeUp {
  from { opacity:0; transform:translateY(8px); }
  to   { opacity:1; transform:translateY(0); }
}
.sec:nth-child(2){animation-delay:.05s}
.sec:nth-child(3){animation-delay:.10s}
.sec:nth-child(4){animation-delay:.15s}
.sec:nth-child(5){animation-delay:.20s}
.sec:nth-child(6){animation-delay:.25s}
.sec:nth-child(7){animation-delay:.30s}
.sec:nth-child(8){animation-delay:.35s}
.sec:nth-child(9){animation-delay:.40s}

/* Section header */
.sec-hd { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.sec-num {
  font-weight: 900; font-size: 36px;
  color: var(--sand2); line-height: 1;
  flex-shrink: 0; margin-top: -4px;
  -webkit-text-stroke: 1px var(--sand2);
}

.sec-label {
  font-size: 9px; font-weight: 700;
  color: var(--amber); text-transform: uppercase;
  margin-bottom: 3px;
}
h2 {
  font-weight: 700; font-size: 24px;
  color: var(--ink); line-height: 1.25;
}

h3 {
  font-weight: 700; font-size: 16px;
  color: var(--ink2); margin-bottom: 10px;
  
}

p {
  font-size: 15px; line-height: 1.8;
  color: var(--ink3); margin-bottom: 14px;
}
p strong { color: var(--ink); font-weight: 600; }

/* Inline code */
code {
  font-size: 11.5px; background: var(--amber-lt);
  border: 1px solid var(--amber-mid); color: #f0f8ff;
  padding: 1px 5px; border-radius: 2px;
}

/* ═══ TERM HIGHLIGHT ═══ */
.term {
  font-size: 11.5px;
  background: var(--slate); color: var(--amber2);
  padding: 1px 6px; border-radius: 2px;
  border-bottom: 2px solid var(--amber);
  display: inline;
}

/* ═══ CALLOUTS ═══ */
.callout {
  display: flex; gap: 12px;
  padding: 14px 16px; margin: 16px 0;
  border-left: 4px solid; border-radius: 0 4px 4px 0;
}
.callout-icon { font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.callout p { margin: 0; font-size: 13.5px; }
.callout-title {
  font-size: 9px; font-weight: 700; 
  text-transform: uppercase; margin-bottom: 5px;
}
.callout.warn  { background: var(--rust-lt); border-color: var(--rust); }
.callout.warn  .callout-title { color: var(--rust); }
.callout.info  { background: var(--teal-lt); border-color: var(--teal); }
.callout.info  .callout-title { color: var(--teal); }
.callout.tip   { background: var(--pine-lt); border-color: var(--pine); }
.callout.tip   .callout-title { color: var(--pine); }
.callout.note  { background: var(--amber-lt); border-color: var(--amber); }
.callout.note  .callout-title { color: #8b5e0a; }

/* ═══ CODE BLOCKS ═══ */
.cblock {
  background: var(--slate);
  border-radius: 0; margin: 16px 0;
  border: 1px solid var(--slate3);
  box-shadow: var(--shadow);
  border-left: 3px solid var(--amber);
}
.cb-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px;
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid var(--slate3);
}
.cb-label {
  font-size: 10px; color: var(--ink5);
  display: flex; align-items: center; gap: 8px;
  
}
.cb-pill {
  background: var(--amber); color: var(--slate);
  font-size: 8px; font-weight: 700;
   padding: 1px 6px;
  border-radius: 1px; text-transform: uppercase;
}
.cb-copy {
   font-size: 10px;
  color: var(--ink5); background: none;
  border: 1px solid var(--slate3); padding: 2px 10px;
  cursor: pointer; transition: all 0.15s; border-radius: 2px;
}
.cb-copy:hover { color: var(--amber2); border-color: var(--amber); }
.cb-copy.ok    { color: #5de6a0; border-color: var(--pine); }
pre {
  padding: 18px 16px; overflow-x: auto;
  font-size: 12px; line-height: 1.65;
  color: rgba(255,255,255,0.72);
}
pre::-webkit-scrollbar { height: 3px; }
pre::-webkit-scrollbar-thumb { background: var(--slate3); }

.kw  { color: #cf9eff; }
.str { color: #b5de8c; }
.num { color: var(--amber2); }
.cmt { color: #4e6070; font-style: italic; }
.key { color: #80d9ff; }
.val { color: #7de8c8; }
.op  { color: #80d9ff; }

/* ═══ ARCHITECTURE DIAGRAM ═══ */
.diagram {
  background: var(--slate);
  border: 1px solid var(--slate3);
  border-left: 3px solid var(--amber);
  padding: 32px 28px;
  margin: 20px 0;
  box-shadow: var(--shadow);
}
.diag-title-row {
  font-size: 9px; 
  color: var(--amber); text-transform: uppercase;
  margin-bottom: 24px; display: flex; align-items: center; gap: 10px;
}
.diag-title-row::after { content: ''; flex: 1; height: 1px; background: var(--slate3); }

.diag-row { display: flex; align-items: center; gap: 0; }
.dnode {
  background: var(--slate2);
  border: 1px solid var(--slate3);
  border-radius: 3px; padding: 16px 18px;
  min-width: 155px; text-align: center;
  flex-shrink: 0; transition: all 0.2s;
  cursor: default;
}
.dnode:hover { border-color: var(--amber); box-shadow: 0 0 24px rgba(232,146,10,0.12); }
.dnode.orange { border-top: 2px solid var(--amber); }
.dnode.teal   { border-top: 2px solid #3a1c63; }
.dn-ico { font-size: 24px; margin-bottom: 6px; }
.dn-name {
  font-weight: 700; font-size: 12px; color: #fff;
  margin-bottom: 4px;
}
.dn-sub { font-size: 10px; color: var(--ink4); line-height: 1.45; }

.dconn {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-width: 70px; padding: 0 4px;
}
.dc-line {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--slate3), var(--amber), var(--slate3));
  position: relative;
}
.dc-arr {
  position: absolute; top: -6px; font-size: 12px; color: var(--amber);
}
.dc-arr.r { right: -4px; }
.dc-arr.l { left: -4px; }
.dc-lbl {
  font-size: 9px; color: var(--ink4); margin-top: 7px;
  text-align: center; line-height: 1.4;
}

.diag-legend {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--slate3);
}
.dl-item { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--ink4); }
.dl-dot  { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ═══ STEP WIZARD ═══ */
.steps { display: flex; flex-direction: column; }
.step  { display: flex; gap: 16px; }
.step-spine { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.step-badge {
  width: 32px; height: 32px;
  background: var(--parchment);
  border: 2px solid var(--sand2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
  color: var(--ink3); cursor: pointer;
  transition: all 0.2s; flex-shrink: 0;
}
.step.done   .step-badge { background: var(--pine); border-color: var(--pine); color: #fff; }
.step.active .step-badge { background: var(--amber-lt); border-color: var(--amber); color: #8b5e0a; }
.step-line { flex: 1; width: 1px; background: var(--rule); min-height: 16px; margin: 3px 0; }
.step:last-child .step-line { display: none; }
.step-content { padding-bottom: 22px; flex: 1; }
.step-title {
  font-weight: 700; font-size: 15px;
  color: var(--ink); margin: 5px 0 7px;
}
.step.done .step-title { color: var(--pine); }
.step-body {
  font-size: 14.5px; line-height: 1.75;
  color: var(--ink3);
}

/* ═══ TABS ═══ */
.tabs { display: flex; border-bottom: 2px solid var(--rule); margin-bottom: 20px; overflow-x: auto; }
.tab-btn {
  font-size: 11px; padding: 9px 18px;
  border: none; background: none; cursor: pointer;
  color: var(--ink4); border-bottom: 2px solid transparent;
  margin-bottom: -2px; white-space: nowrap;
  transition: all 0.15s;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.on { color: var(--amber); border-bottom-color: var(--amber); font-weight: 500; }
.tab-pane { display: none; }
.tab-pane.on { display: block; }

/* ═══ MAPPING TABLE ═══ */
.mtable {
  border: 1px solid var(--rule);
  overflow: hidden; margin: 18px 0;
  box-shadow: var(--shadow-sm);
}
.mrow {
  display: grid;
  grid-template-columns: 1fr 52px 1fr 80px;
  border-bottom: 1px solid var(--rule);
}
.mrow:last-child { border-bottom: none; }
.mrow.hdr { background: var(--slate); }
.mcell { padding: 10px 14px; font-size: 12px;}
.mrow.hdr .mcell {
  font-size: 9px; font-weight: 700;
  color: rgba(255,255,255,0.35); text-transform: uppercase;
}
.marrow {
  display: flex; align-items: center; justify-content: center;
  border-left: 1px solid var(--rule); border-right: 1px solid var(--rule);
  font-size: 14px; color: var(--amber);
  background: var(--amber-lt);
}
.mrow.hdr .marrow { background: rgba(232,146,10,0.15); border-color: rgba(255,255,255,0.1); }
.mdir { padding: 10px 12px; display: flex; align-items: center; }
.mtag {
  display: inline-flex; align-items: center;
  padding: 2px 7px; font-size: 9px; font-weight: 700;
   border: 1px solid; border-radius: 1px;
  text-transform: uppercase;
}
.mtag.bidi { background: var(--pine-lt); color: var(--pine); border-color: rgba(26,107,60,0.3); }
.mtag.push { background: var(--amber-lt); color: #8b5e0a; border-color: var(--amber-mid); }
.mtag.pull { background: var(--teal-lt); color: var(--teal); border-color: rgba(14,116,144,0.3); }
.mrow:hover:not(.hdr) { background: var(--amber-lt); }

/* ═══ ACCORDION / CONFLICT CARDS ═══ */
.accord {
  border: 1px solid var(--rule);
  margin: 10px 0; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.accord-hd {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; cursor: pointer;
  background: var(--parchment);
  border-left: 4px solid transparent;
  transition: all 0.15s; justify-content: space-between;
}
.accord:nth-child(1) .accord-hd { border-left-color: var(--rust); }
.accord:nth-child(2) .accord-hd { border-left-color: var(--amber); }
.accord:nth-child(3) .accord-hd { border-left-color: var(--amber); }
.accord:nth-child(4) .accord-hd { border-left-color: var(--teal); }
.accord:nth-child(5) .accord-hd { border-left-color: var(--pine); }
.accord.open .accord-hd { background: var(--cream); }
.accord-hd:hover { background: var(--cream); }

.accord-left { display: flex; align-items: center; gap: 10px; }
.accord-title {
  
  font-size: 12.5px; color: var(--ink); font-weight: 500;
}
.sev {
  
  font-size: 8px; font-weight: 700;
  padding: 2px 7px; border: 1px solid; text-transform: uppercase;
}
.sev.crit { background: var(--rust-lt); color: var(--rust); border-color: rgba(192,57,43,0.3); }
.sev.high { background: var(--amber-lt); color: #8b5e0a; border-color: var(--amber-mid); }
.sev.med  { background: var(--teal-lt); color: var(--teal); border-color: rgba(14,116,144,0.3); }
.sev.low  { background: var(--pine-lt); color: var(--pine); border-color: rgba(26,107,60,0.3); }

.accord-chev { font-size: 11px; color: var(--ink4); transition: transform 0.2s; flex-shrink: 0; }
.accord.open .accord-chev { transform: rotate(180deg); }
.accord-body {
  display: none; padding: 20px 20px;
  border-top: 1px solid var(--rule); background: var(--cream);
}
.accord.open .accord-body { display: block; }
.accord-body p { font-size: 14px; }

/* ═══ SECURITY GRID ═══ */
.sec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.sc-card {
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: 18px; box-shadow: var(--shadow-sm);
  transition: all 0.2s; position: relative;
  overflow: hidden;
}
.sc-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.sc-card:nth-child(1)::before { background: var(--amber); }
.sc-card:nth-child(2)::before { background: var(--teal); }
.sc-card:nth-child(3)::before { background: var(--pine); }
.sc-card:nth-child(4)::before { background: var(--rust); }
.sc-card:nth-child(5)::before { background: var(--amber2); }
.sc-card:nth-child(6)::before { background: #7e57c2; }
.sc-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.sc-ico { font-size: 22px; margin-bottom: 8px; }
.sc-title {
  font-weight: 700; font-size: 14px; color: var(--ink);
  margin-bottom: 6px;
}
.sc-body {
  font-size: 14px; line-height: 1.75; color: var(--ink3);
}

/* ═══ CHECKLISTS ═══ */
.cklist { list-style: none; display: flex; flex-direction: column; gap: 5px; margin: 12px 0; }
.ckitem {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 13px; border: 1px solid var(--rule);
  cursor: pointer; transition: all 0.15s;
  font-size: 14.5px; color: var(--ink3);
  background: var(--cream);
}
.ckitem:hover { border-color: var(--rule); background: var(--amber-lt); }
.ckitem.checked { border-color: rgba(26,107,60,0.35); background: var(--pine-lt); color: var(--ink); }
.ckbox {
  width: 16px; height: 16px; border: 2px solid var(--sand2);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; flex-shrink: 0; margin-top: 2px;
  transition: all 0.15s; background: var(--cream);
}
.ckitem.checked .ckbox { background: var(--pine); border-color: var(--pine); color: #fff; }

/* ═══ QUIZ ═══ */
.qcard {
  border: 1px solid var(--rule); margin: 14px 0;
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.qcard-hd {
  padding: 12px 16px;
  background: var(--slate);
  display: flex; align-items: center; gap: 10px;
}
.q-label {
  font-size: 9px; font-weight: 700;
  color: var(--amber); text-transform: uppercase;
}
.q-divider { flex: 1; height: 1px; background: var(--slate3); }
.qcard-body { padding: 18px 18px; background: var(--cream); }
.q-text {
  font-style: italic; font-size: 16px;
  color: var(--ink); line-height: 1.65; margin-bottom: 16px;
}
.q-opts { display: flex; flex-direction: column; gap: 7px; }
.qopt {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 14px; border: 1px solid var(--rule);
  cursor: pointer; transition: all 0.15s;
  font-size: 14.5px; color: var(--ink3);
  background: var(--parchment);
}
.qopt:hover { border-color: var(--amber); background: #1f1232; color: var(--ink); }
.qopt.correct { border-color: #77b255; background: #77b25520; color: #60c090; }
.qopt.wrong   { border-color: #dc143c; background: #dc143c2b; color: #ff7a90; }
.qopt.disabled { pointer-events: none; }
.qltr {
  font-weight: 700; font-size: 13px;
  width: 22px; height: 22px; border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; background: var(--rule);
  color: var(--ink3); margin-top: 1px;
}
.qfb {
  margin-top: 12px; padding: 11px 14px;
  font-size: 14px; line-height: 1.65;
  display: none; border-left: 3px solid;
}
.qfb.show { display: block; }
.qfb.ok  { background: #77b25520; color: #60c090; border-color: #77b255; }
.qfb.err { background: #dc143c2b; color: #ff7a90; border-color: #dc143c; }

/* ═══ BADGE ═══ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 9px; font-weight: 700; 
  padding: 2px 7px; border: 1px solid; text-transform: uppercase;
}
.badge.amber { background: var(--amber-lt); color: #8b5e0a; border-color: var(--amber-mid); }
.badge.pine  { background: var(--pine-lt); color: var(--pine); border-color: rgba(26,107,60,0.3); }
.badge.teal  { background: var(--teal-lt); color: var(--teal); border-color: rgba(14,116,144,0.3); }
.badge.rust  { background: var(--rust-lt); color: var(--rust); border-color: rgba(192,57,43,0.3); }

/* ═══ FOOTER ═══ */
.footer-sec {
  background: var(--slate);
  border-top: 3px solid var(--amber);
  padding: 28px 52px;
  display: flex; align-items: center; justify-content: space-between;
}
.ft-text {
  font-size: 13px; color: var(--ink5); line-height: 1.75;
}
.ft-btn {
  font-weight: 700; font-size: 14px;
  background: var(--amber); color: var(--slate);
  border: none; padding: 11px 26px;
  cursor: pointer; 
  transition: all 0.2s;
}
.ft-btn:hover { background: var(--amber2); box-shadow: 0 4px 20px #be52e50f; transform: translateY(-1px); }
.ft-btn.done  { background: var(--pine); color: #fff; }

/* ═══ RESPONSIVE ═══ */
@media(max-width:900px) {
  .sidebar{width:220px}
  .hero-inner,.sec{padding:32px 28px}
  .hero-masthead{font-size:38px}
  .hero-stats{grid-template-columns:repeat(2,1fr)}
  .sec-grid{grid-template-columns:1fr}
}
@media(max-width:680px){
  .shell{flex-direction:column}
  .sidebar{width:100%;height:auto;position:relative}
  .hero-inner,.sec{padding:26px 20px}
  .footer-sec{flex-direction:column;gap:16px;align-items:flex-start}
}


  ::-webkit-scrollbar { width: 6px; height: 6px; }
  ::-webkit-scrollbar-track { background: #873cf015; }
  ::-webkit-scrollbar-thumb { background: #873cf015; border-radius: 3px; }