:root {
  --bg: #080907;
  --panel: #11120f;
  --panel-2: #171913;
  --line: #303226;
  --line-soft: #22241b;
  --text: #f5f6ed;
  --muted: #9a9d8c;
  --mint: #d7ff00;
  --mint-dark: #a4c400;
  --red: #d7ff00;
  --amber: #d7ff00;
  --blue: #d7ff00;
  --violet: #d7ff00;
  --sidebar: 248px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { display: none; min-height: 100vh; }
body.authenticated .app-shell { display: block; }
.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(ellipse at 18% 0%, rgba(215,255,0,.07), transparent 34rem),
    #080907;
}
body.authenticated .auth-screen { display: none; }
.auth-card {
  width: min(940px, 100%);
  min-height: 600px;
  display: grid;
  grid-template-columns: 1fr .88fr;
  overflow: hidden;
  border: 1px solid #303226;
  border-radius: 16px;
  background: #10110e;
  box-shadow: 0 30px 100px rgba(0,0,0,.45);
}
.auth-brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 48%, rgba(215,255,0,.08), transparent 50%), #0c0e09;
  padding: 30px 34px;
}
.auth-logo { display: flex; align-items: center; gap: 11px; }
.auth-logo strong { display: block; font-size: 12px; letter-spacing: .14em; }
.auth-logo small { display: block; margin-top: 4px; color: #a4a78f; font-size: 9px; letter-spacing: .12em; }
.boot-art {
  width: 178px;
  height: 178px;
  align-self: center;
  margin: 18px 0 8px;
  filter: drop-shadow(0 0 28px rgba(215,255,0,.2));
  animation: boot-rise 2.2s ease-in-out infinite alternate;
}
@keyframes boot-rise { from { transform: translateY(3px) scale(.99); } to { transform: translateY(-5px) scale(1.02); } }
.auth-brand-panel > .eyebrow { margin-top: 6px; }
.auth-brand-panel h1 { margin: 3px 0 10px; font-size: 36px; line-height: 1.05; letter-spacing: -.04em; }
.auth-copy { max-width: 340px; margin: 0; color: #999c8b; font-size: 12px; line-height: 1.7; }
.boot-pledge { margin: 14px 0 0; border-left: 2px solid var(--mint); padding-left: 12px; color: #d7ff00; font-size: 11px; line-height: 1.8; }
.auth-form-panel { align-self: center; padding: 34px; }
.auth-step-label { display: flex; align-items: center; gap: 8px; color: #b7baaa; font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.auth-step-label .privacy-dot { width: 6px; height: 6px; }
.auth-form-panel h2 { margin: 25px 0 8px; font-size: 25px; letter-spacing: -.03em; }
.auth-help { margin: 0 0 20px; color: #96998a; font-size: 12px; line-height: 1.65; }
.auth-form-panel form label { display: block; margin: 18px 0 7px; color: #c8caba; font-size: 11px; font-weight: 750; }
.auth-form-panel input {
  width: 100%;
  height: 44px;
  border: 1px solid #383a2d;
  border-radius: 8px;
  outline: 0;
  background: #090a08;
  color: #f5f6ed;
  padding: 0 12px;
  font-size: 13px;
}
.auth-form-panel input:focus { border-color: #9ebd0a; box-shadow: 0 0 0 3px rgba(215,255,0,.08); }
.auth-submit { margin-top: 16px; }
.auth-back { width: 100%; margin-top: 12px; border: 0; background: transparent; color: #999c8b; padding: 8px; font-size: 11px; }
.auth-back:hover { color: var(--mint); }
.auth-message { min-height: 20px; margin: 12px 0; color: #d7ff00; font-size: 11px; line-height: 1.5; }
.auth-message.error { color: #ffcc69; }
.auth-config-warning { margin: 12px 0; border: 1px solid #55501d; border-radius: 8px; background: #1b190d; padding: 12px; color: #f1df8d; font-size: 11px; line-height: 1.6; }
.auth-config-warning p { margin: 5px 0 0; color: #c0b785; }
.auth-config-warning code { color: #f6edbc; }
.auth-identity { display: flex; flex-direction: column; gap: 4px; margin: 20px 0 14px; color: #aeb19f; font-size: 9px; letter-spacing: .1em; }
.auth-identity strong { color: #f5f6ed; font-size: 12px; letter-spacing: 0; overflow-wrap: anywhere; }
.totp-secret { display: block; margin: 7px 0 14px; border: 1px solid #464a2c; border-radius: 8px; background: #090a08; color: var(--mint); padding: 12px; font-size: 14px; font-weight: 850; letter-spacing: .12em; overflow-wrap: anywhere; user-select: all; }
.auth-footer { display: flex; align-items: center; gap: 8px; margin-top: 28px; border-top: 1px solid #25271f; padding-top: 15px; color: #888b7b; font-size: 9px; }
.auth-footer .privacy-dot { width: 6px; height: 6px; }
.signed-in-email { max-width: 210px; overflow: hidden; color: #bdc1b1; text-overflow: ellipsis; white-space: nowrap; }
.logout-button { border: 1px solid #393b2e; border-radius: 7px; background: #13150f; color: #d7ff00; padding: 7px 10px; font-size: 10px; font-weight: 800; }
.logout-button:hover { border-color: #757e30; }
.catalog-cover {
  height: 68px;
  margin: -15px -15px 12px;
  border-bottom: 1px solid rgba(215,255,0,.12);
  background-image: url("../images/covers.svg");
  background-size: 600% 100%;
  background-position: var(--cover-position, 0%) center;
}
.catalog-card { overflow: hidden; }
#metricsNav[hidden] { display: none; }
.activity-warning {
  margin: -12px 0 18px;
  border: 1px solid #6b581c;
  border-radius: 8px;
  background: #1b180c;
  color: #efda83;
  padding: 11px 13px;
  font-size: 11px;
  line-height: 1.6;
}
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.metric-card { min-height: 148px; border: 1px solid var(--line-soft); border-radius: 11px; background: var(--panel); padding: 20px; }
.metric-card strong { display: block; margin-top: 20px; color: var(--mint); font-size: 38px; }
.metric-card p, .metrics-status { color: #8d9180; font-size: 11px; line-height: 1.6; }
.metrics-status.error { color: #efda83; }

@media (max-width: 680px) {
  .auth-screen { min-height: 100svh; padding: 14px; }
  .auth-card { min-height: 0; grid-template-columns: 1fr; }
  .auth-brand-panel { min-height: 285px; padding: 20px 22px; }
  .boot-art { position: absolute; top: 42px; right: 12px; width: 128px; height: 128px; opacity: .76; }
  .auth-brand-panel > .eyebrow { margin-top: auto; }
  .auth-brand-panel h1 { font-size: 27px; }
  .auth-copy { max-width: 280px; font-size: 10px; }
  .boot-pledge { position: absolute; right: 20px; bottom: 18px; font-size: 9px; }
  .auth-form-panel { padding: 24px 22px; }
  .auth-form-panel h2 { margin-top: 17px; }
  .signed-in-email { display: none; }
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line-soft);
  background: #0d1012;
  padding: 24px 16px 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  padding: 0 8px 28px;
}
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #3a4d43;
  border-radius: 11px;
  background: linear-gradient(145deg, #1f3128, #121816);
  color: var(--mint);
  font-size: 18px;
  font-weight: 900;
}
.brand strong { display: block; font-size: 14px; letter-spacing: .12em; }
.brand small { display: block; margin-top: 3px; color: #6f7773; font-size: 9px; letter-spacing: .16em; }
.nav { display: flex; flex-direction: column; gap: 5px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9da49f;
  padding: 0 12px;
  text-align: left;
  font-size: 13px;
  font-weight: 650;
}
.nav-item svg { width: 18px; height: 18px; fill: currentColor; }
.nav-item:hover { background: #14181a; color: var(--text); }
.nav-item.active { background: #1a211e; color: var(--mint); }
.nav-glyph { width: 18px; color: currentColor; font-size: 9px; font-weight: 900; letter-spacing: -.08em; }
.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  border-top: 1px solid var(--line-soft);
  padding: 18px 8px 2px;
}
.privacy-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px rgba(105,227,173,.6); }
.sidebar-footer strong { display: block; font-size: 11px; }
.sidebar-footer small { display: block; margin-top: 3px; color: #69706c; font-size: 9px; }

.main { min-height: 100vh; margin-left: var(--sidebar); }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(9,11,13,.92);
  backdrop-filter: blur(16px);
  padding: 0 38px;
}
.menu-button { display: none; }
.search-wrap {
  width: 260px;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101315;
  padding: 0 12px;
}
.search-wrap svg { width: 15px; fill: #747b77; }
.search-wrap input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 12px; }
.search-wrap input::placeholder { color: #66706b; }
.status { display: flex; align-items: center; gap: 8px; margin-left: auto; color: #a7aeaa; font-size: 11px; }
.status-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }

.content { max-width: 1180px; margin: 0 auto; padding: 38px 38px 60px; }
.view { display: none; animation: enter .22s ease-out; }
.view.active { display: block; }
@keyframes enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.page-heading.compact { align-items: center; }
.eyebrow { margin: 0 0 7px; color: var(--mint); font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.page-heading h1 { margin: 0; font-size: clamp(34px, 4vw, 48px); line-height: 1; letter-spacing: -.04em; }
.page-heading h1 span { color: var(--mint); }
.page-heading > div > p:last-child { margin: 10px 0 0; color: var(--muted); font-size: 13px; }

.primary-button, .secondary-button {
  height: 42px;
  border-radius: 8px;
  border: 0;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 800;
  transition: .18s ease;
}
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--mint); color: #092016; }
.primary-button:hover { background: #82edbd; transform: translateY(-1px); }
.primary-button svg { width: 15px; fill: currentColor; }
.primary-button.wide { width: 100%; }
.secondary-button { border: 1px solid var(--line); background: #171b1e; color: var(--text); }
.secondary-button:hover { border-color: #46504b; background: #1d2220; }

.readiness-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.readiness-card, .stat-card, .daily-card, .tool-card, .workbench, .audit-item {
  border: 1px solid var(--line-soft);
  background: var(--panel);
  border-radius: 12px;
}
.readiness-card { min-height: 174px; padding: 20px; }
.readiness-top { display: flex; justify-content: space-between; align-items: center; }
.card-label { display: block; color: #7f8983; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.readiness-top strong { display: inline-block; margin-top: 10px; font-size: 42px; line-height: 1; }
.readiness-top small { color: #69716d; font-size: 13px; }
.score-ring {
  --score: 42;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle closest-side, var(--panel) 72%, transparent 73%), conic-gradient(var(--mint) calc(var(--score) * 1%), #242a27 0);
  color: var(--mint);
  font-size: 12px;
  font-weight: 900;
}
.progress { height: 5px; margin: 22px 0 10px; border-radius: 10px; background: #252b28; overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: inherit; background: var(--mint); transition: width .35s ease; }
.readiness-card > p { margin: 0; color: #8d9691; font-size: 11px; }
.stat-card { min-height: 174px; display: flex; flex-direction: column; justify-content: center; padding: 20px; }
.stat-card strong { margin-top: 20px; font-size: 36px; }
.stat-card strong small { font-size: 14px; color: #aeb5b1; }
.stat-card p { margin: 7px 0 0; color: #7d8581; font-size: 11px; }

.section-heading { margin: 32px 0 12px; }
.section-heading h2 { margin: 0; font-size: 20px; }
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tool-card { position: relative; min-height: 178px; padding: 18px; transition: .18s ease; }
.tool-card:hover { border-color: #3b4641; transform: translateY(-2px); }
.tool-card.hidden { display: none; }
.tool-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; margin-bottom: 16px; font-weight: 900; }
.tool-icon.mint { background: rgba(105,227,173,.1); color: var(--mint); }
.tool-icon.violet { background: rgba(177,154,247,.1); color: var(--violet); }
.tool-icon.amber { background: rgba(231,180,76,.1); color: var(--amber); }
.tool-icon.blue { background: rgba(119,170,243,.1); color: var(--blue); }
.tool-card h3 { margin: 0 0 6px; font-size: 14px; }
.tool-card p { min-height: 38px; margin: 0; color: #858e89; font-size: 11px; line-height: 1.55; }
.text-button { border: 0; background: transparent; color: var(--mint); padding: 12px 0 0; font-size: 11px; font-weight: 800; }
.text-button span { margin-left: 5px; }
.text-button.danger { color: var(--red); }
.daily-card { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 13px; margin-top: 12px; padding: 16px 18px; }
.daily-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(105,227,173,.1); color: var(--mint); }
.daily-card h3 { margin: 0; font-size: 14px; }
.daily-card p:last-child { margin: 5px 0 0; color: #7f8883; font-size: 11px; }
.daily-card .eyebrow { margin-bottom: 4px; }

.workbench { padding: 22px; }
.workbench label { display: block; margin-bottom: 8px; color: #adb5b0; font-size: 11px; font-weight: 750; }
.workbench input[type="text"], .workbench input[type="url"], .workbench input[type="password"], .workbench textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: #0c0f11;
  color: var(--text);
  padding: 12px 13px;
  font-size: 13px;
}
.workbench textarea { resize: vertical; line-height: 1.6; }
.workbench input:focus, .workbench textarea:focus { border-color: #4a7965; box-shadow: 0 0 0 3px rgba(105,227,173,.05); }
.input-action { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.result-empty { min-height: 220px; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; align-content: center; margin-top: 18px; border: 1px dashed var(--line); border-radius: 10px; text-align: center; }
.result-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #1b201e; color: #9ca59f; font-size: 18px; }
.result-empty h3 { margin: 12px 0 5px; font-size: 13px; }
.result-empty p { margin: 0; color: #7e8782; font-size: 11px; }
.result-empty.good { border-color: rgba(105,227,173,.25); background: rgba(105,227,173,.025); }
.result-empty.bad { border-color: rgba(242,108,116,.25); background: rgba(242,108,116,.025); }
.result-empty.good .result-icon { background: rgba(105,227,173,.12); color: var(--mint); }
.result-empty.bad .result-icon { background: rgba(242,108,116,.12); color: var(--red); }
.risk-details { width: 100%; padding: 14px 24px; text-align: left; }
.risk-details h3 { margin: 0 0 12px; }
.risk-details ul { margin: 0; padding-left: 18px; color: #b8bfbb; font-size: 12px; line-height: 1.8; }

.workbench.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.workbench input[type="range"] { accent-color: var(--mint); padding: 0; }
.range-value { display: flex; justify-content: space-between; margin: 7px 0 16px; color: #737b77; font-size: 10px; }
.range-value strong { color: #bfc6c2; }
.password-output, .vault-output { min-height: 180px; border-left: 1px solid var(--line-soft); padding: 18px 0 18px 22px; }
.password-row { display: flex; align-items: center; margin: 20px 0 16px; }
.password-row code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--mint); font-size: 16px; }
.password-row button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 7px; background: #171b1d; color: #bdc5c1; }
.strength { height: 5px; border-radius: 8px; background: #252b28; overflow: hidden; }
.strength span { display: block; width: 0; height: 100%; background: var(--mint); transition: .25s; }
.password-output p { color: #858e89; font-size: 11px; }
.button-row { display: flex; gap: 8px; margin-top: 12px; }
.vault-output h3 { margin: 22px 0 8px; font-size: 15px; }
.vault-output p { min-height: 44px; color: #858e89; font-size: 12px; line-height: 1.6; }

.audit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.audit-item { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; padding: 16px; }
.audit-symbol { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: #1a1f1c; color: var(--mint); font-size: 13px; font-weight: 900; }
.audit-item h3 { margin: 0 0 4px; font-size: 13px; }
.audit-item p { margin: 0; color: #7f8883; font-size: 11px; }
.audit-state { min-width: 38px; border-radius: 20px; background: #1d2220; color: #aeb5b1; padding: 6px 8px; text-align: center; font-size: 9px; font-weight: 800; }
.audit-state.ok { background: rgba(105,227,173,.1); color: var(--mint); }
.audit-state.warn { background: rgba(231,180,76,.1); color: var(--amber); }

.drop-zone { min-height: 170px; display: grid !important; place-items: center; align-content: center; border: 1px dashed var(--line) !important; border-radius: 10px; cursor: pointer; }
.drop-zone:hover { border-color: #4a7965 !important; background: rgba(105,227,173,.02); }
.drop-zone input { display: none; }
.upload-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #1b201e; color: var(--mint); font-size: 16px; }
.drop-zone strong { margin: 10px 0 3px; color: var(--text); }
.drop-zone p { margin: 0; color: #7e8782; font-size: 11px; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(3,5,6,.72);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: .18s;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal { width: min(480px, calc(100% - 28px)); border: 1px solid var(--line); border-radius: 14px; background: #111417; padding: 20px; box-shadow: 0 24px 80px rgba(0,0,0,.5); }
.modal-heading { display: flex; justify-content: space-between; align-items: flex-start; }
.modal-heading h2 { margin: 0; font-size: 20px; }
.modal-close { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 8px; background: #171b1e; color: #aab1ad; font-size: 18px; }
.checklist { display: flex; flex-direction: column; margin: 18px 0 14px; }
.checklist label { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line-soft); padding: 12px 4px; cursor: pointer; }
.checklist label:last-child { border-bottom: 1px solid var(--line-soft); }
.checklist input { width: 17px; height: 17px; accent-color: var(--mint); }
.checklist strong { display: block; font-size: 12px; }
.checklist small { display: block; margin-top: 3px; color: #7f8883; font-size: 10px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 60; max-width: 320px; border: 1px solid #3a4b43; border-radius: 8px; background: #171d1a; color: #dce9e2; padding: 12px 15px; font-size: 12px; transform: translateY(20px); opacity: 0; pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: none; }

@media (max-width: 980px) {
  :root { --sidebar: 210px; }
  .content { padding-inline: 24px; }
  .topbar { padding-inline: 24px; }
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .readiness-grid { grid-template-columns: 2fr 1fr; }
  .readiness-grid .stat-card:last-child { display: none; }
}

@media (max-width: 680px) {
  :root { --sidebar: 0px; }
  .sidebar {
    width: 250px;
    transform: translateX(-100%);
    transition: transform .25s ease;
    box-shadow: 20px 0 50px rgba(0,0,0,.4);
  }
  .sidebar.open { transform: none; }
  .main { margin-left: 0; }
  .topbar { height: 62px; padding: 0 16px; }
  .menu-button { width: 38px; height: 38px; display: flex; flex-direction: column; justify-content: center; gap: 4px; border: 1px solid var(--line); border-radius: 8px; background: #111416; margin-right: 9px; padding: 0 9px; }
  .menu-button span { width: 17px; height: 1.5px; background: #bac2be; }
  .search-wrap { flex: 1; width: auto; }
  .status { margin-left: 10px; }
  .status-pulse { display: none; }
  .content { padding: 26px 16px 40px; }
  .page-heading { align-items: flex-start; gap: 16px; }
  .page-heading .primary-button { margin-top: 4px; }
  .page-heading h1 { font-size: 34px; }
  .readiness-grid { grid-template-columns: 1fr 1fr; }
  .readiness-card { grid-column: 1 / -1; }
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .daily-card { grid-template-columns: 42px 1fr; }
  .daily-card .secondary-button { grid-column: 1 / -1; width: 100%; }
  .workbench.split { grid-template-columns: 1fr; }
  .password-output, .vault-output { border-left: 0; border-top: 1px solid var(--line-soft); padding: 18px 0 0; }
  .audit-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .page-heading { flex-direction: column; }
  .page-heading .primary-button { width: 100%; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 155px; }
  .input-action { grid-template-columns: 1fr; }
  .input-action .primary-button { width: 100%; }
  .status { display: none; }
  .readiness-grid { grid-template-columns: 1fr; }
  .readiness-grid .stat-card { display: none; }
}

/* Yellow/black Grinders Security identity and defensive tool library. */
.sidebar { background: #0c0d09; }
.brand-mark { border-color: #66731b; background: #1d220d; color: var(--mint); }
.nav-item.active { background: #252a11; color: var(--mint); }
.privacy-dot, .status-pulse { background: var(--mint); box-shadow: 0 0 12px rgba(215,255,0,.45); }
.tool-icon.mint, .tool-icon.violet, .tool-icon.amber, .tool-icon.blue {
  background: rgba(215,255,0,.09);
  color: var(--mint);
}
.library-heading { align-items: center; }
.library-controls { display: flex; align-items: center; gap: 10px; margin: -4px 0 14px; }
.library-controls label { color: var(--muted); font-size: 11px; }
.library-controls select {
  min-width: 190px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--text);
  padding: 9px 11px;
}
.tool-count { margin-left: auto; color: #858879; font-size: 11px; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.catalog-card {
  display: flex;
  flex-direction: column;
  min-height: 158px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--panel);
  padding: 15px;
  transition: border-color .16s ease, transform .16s ease;
}
.catalog-card:hover { border-color: #626c24; transform: translateY(-2px); }
.catalog-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.catalog-card h3 { margin: 0; font-size: 13px; }
.catalog-card p { margin: 9px 0 13px; color: #939686; font-size: 11px; line-height: 1.55; }
.catalog-tag { color: #c1e600; font-size: 8px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.catalog-category { color: #747866; font-size: 9px; }
.catalog-open { align-self: flex-start; margin-top: auto; border: 0; background: transparent; color: var(--mint); padding: 0; font-size: 10px; font-weight: 850; }
.catalog-empty { grid-column: 1 / -1; padding: 34px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); text-align: center; font-size: 12px; }
.tool-note { color: #858879; font-size: 11px; line-height: 1.6; }
.risk-details { width: 100%; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.risk-details p, .risk-details li { overflow-wrap: anywhere; word-break: break-word; }
.tool-modal-summary { color: #c8caba; font-size: 13px; line-height: 1.6; }
.tool-modal-body { margin: 15px 0 20px; border: 1px solid var(--line-soft); border-radius: 9px; background: #0b0c09; padding: 14px; color: #a8aa98; font-size: 12px; line-height: 1.75; white-space: pre-line; }
.tool-modal-body strong { color: var(--mint); }
.page-heading h1 { color: #f4f5ea; }
.readiness-card, .stat-card, .daily-card, .tool-card, .workbench, .audit-item { border-color: #27291f; }
.primary-button { background: var(--mint); color: #111306; }
.primary-button:hover { background: #e5ff55; }
.score-ring { background: radial-gradient(circle closest-side, var(--panel) 72%, transparent 73%), conic-gradient(var(--mint) calc(var(--score) * 1%), #282b20 0); color: var(--mint); }
.progress span, .strength span { background: var(--mint); }

@media (max-width: 980px) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .library-controls { flex-wrap: wrap; }
  .library-controls select { flex: 1; min-width: 0; }
  .catalog-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr; }
}
