/* PixelCraft Studio — PHP edition styles */
:root {
  --bg: #10130f;
  --bg-soft: #141814;
  --panel: #171b16;
  --panel-2: #1a2018;
  --panel-3: #242a22;
  --line: #2a3328;
  --line-2: #40503c;
  --text: #f2f4ef;
  --muted: #8f9b8a;
  --muted-2: #a3ad9f;
  --dim: #687466;
  --accent: #c9f25b;
  --accent-2: #d6fa76;
  --radius: 1.25rem;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.display-font { font-family: Georgia, "Times New Roman", serif; letter-spacing: -0.02em; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

/* Header */
.site-header {
  position: relative; z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(16,19,15,.82);
  backdrop-filter: blur(14px);
}
.site-header .bar { display: flex; height: 80px; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--text); font-weight: 700; letter-spacing: .22em; font-size: .875rem; }
.brand:hover { color: var(--text); }
.brand-badge {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: var(--bg); font-weight: 900;
}
.nav { display: none; align-items: center; gap: 1.75rem; font-size: .875rem; }
.nav a { color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--text); }
@media (min-width: 768px) { .nav { display: flex; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 48px; padding: 0 1.5rem; border-radius: 999px;
  background: var(--accent); color: var(--bg);
  border: 1px solid transparent; font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
}
.btn:hover { background: var(--accent-2); color: var(--bg); }
.btn:active { transform: translateY(1px); }
.btn-outline {
  background: transparent; color: var(--accent); border: 1px solid var(--line-2);
}
.btn-outline:hover { background: var(--accent); color: var(--bg); }
.btn-sm { height: 40px; padding: 0 1rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Hero */
.hero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .28;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
}
.hero .container {
  position: relative; display: grid; gap: 3rem; padding-top: 5rem; padding-bottom: 5rem;
  grid-template-columns: 1fr; align-items: center; min-height: 540px;
}
@media (min-width: 1024px) { .hero .container { grid-template-columns: 1.08fr .92fr; } }
.eyebrow {
  display: flex; align-items: center; gap: .75rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .28em; color: var(--accent);
}
.eyebrow::before { content: ""; display: block; width: 40px; height: 1px; background: var(--accent); }
.hero h1 { font-size: clamp(3rem, 8vw, 6.5rem); line-height: .92; margin-top: 1.5rem; }
.hero h1 span { color: var(--accent); }
.hero p.lead { margin-top: 2rem; max-width: 34rem; font-size: 1.1rem; line-height: 1.75; color: var(--muted-2); }
.hero .actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.tagline { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--muted); }

/* Hero art */
.hero-art { position: relative; margin: 0 auto; width: 100%; max-width: 470px; }
.hero-art .frame {
  position: relative; aspect-ratio: .9; overflow: hidden;
  border-radius: 2rem; border: 1px solid var(--line-2); background: var(--panel-2);
  padding: 1rem; box-shadow: 0 24px 80px rgba(0,0,0,.34);
}
.hero-art .inner {
  display: flex; flex-direction: column; justify-content: space-between; height: 100%;
  border-radius: 1.5rem; border: 1px solid var(--line-2); background: #273022; padding: 1.25rem;
}
.hero-art .top { display: flex; align-items: center; justify-content: space-between; }
.hero-art .top .label { font-size: 10px; font-weight: 700; letter-spacing: .24em; color: var(--accent); }
.hero-art .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 15px var(--accent); }
.hero-art .center { position: relative; display: grid; place-items: center; flex: 1; padding: 2rem 0; }
.hero-art .glow { position: absolute; width: 12rem; height: 12rem; border-radius: 50%; background: rgba(201,242,91,.1); filter: blur(48px); }
.hero-art .pixel-card {
  position: relative; display: grid; place-items: center; width: 13rem; aspect-ratio: 1;
  border-radius: 2rem; border: 1px solid rgba(201,242,91,.4); background: #b1d559;
  transform: rotate(-8deg); box-shadow: 12px 18px 0 var(--bg);
}
.hero-art .pixel-card .ring { width: 7rem; height: 7rem; border-radius: 50%; border: 14px solid rgba(16,19,15,.8); }
.hero-art .pixel-card .nub { position: absolute; bottom: 20px; right: 20px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); }
.hero-art .foot { display: grid; grid-template-columns: repeat(3,1fr); gap: .5rem; border-top: 1px solid var(--line-2); padding-top: 1rem; font-size: 10px; color: var(--muted-2); }
.hero-art .foot span:last-child { text-align: right; }
.pill-note {
  position: absolute; right: -1rem; top: -2rem; border-radius: 999px;
  border: 1px solid var(--line-2); padding: .5rem 1rem; font-size: 10px; letter-spacing: .2em; color: var(--accent);
  display: none;
}
@media (min-width: 640px) { .pill-note { display: block; } }

/* Sections */
.section { padding: 5rem 0; }
.section-head { display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
@media (min-width: 640px) { .section-head { flex-direction: row; align-items: flex-end; } }
.section-head h2 { font-size: clamp(2.25rem, 5vw, 3.25rem); margin-top: .75rem; }
.section-head p { max-width: 22rem; font-size: .875rem; line-height: 1.6; color: var(--muted); }

/* Cards */
.card { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); }
.card.pad { padding: 1.5rem; }

/* Tool filter bar */
.filter-bar {
  display: flex; flex-direction: column; gap: .75rem; margin-bottom: 2rem;
  border: 1px solid var(--line); background: var(--panel); border-radius: 1rem; padding: .75rem;
}
@media (min-width: 768px) { .filter-bar { flex-direction: row; } }
.search-wrap { display: flex; flex: 1; align-items: center; gap: .75rem; border-radius: .75rem; background: var(--bg); padding: 0 1rem; }
.search-wrap input {
  flex: 1; height: 44px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: .95rem;
}
.cat-row { display: flex; gap: .5rem; overflow-x: auto; }
.cat-btn {
  white-space: nowrap; border: 0; border-radius: .5rem; padding: .55rem .85rem;
  font-size: .75rem; font-weight: 600; color: var(--muted); background: transparent; cursor: pointer;
}
.cat-btn:hover { background: var(--panel-3); }
.cat-btn.active { background: var(--accent); color: var(--bg); }

/* Tool grid */
.tool-grid { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .tool-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .tool-grid { grid-template-columns: repeat(5, 1fr); } }
.tool-card {
  min-height: 11rem; border-radius: 1rem; border: 1px solid var(--line); background: var(--panel);
  color: var(--text); padding: 1.25rem; text-align: left; cursor: pointer; transition: transform .18s, border-color .18s;
}
.tool-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.tool-card.active { border-color: var(--accent); background: var(--accent); color: var(--bg); }
.tool-card .row { display: flex; align-items: flex-start; justify-content: space-between; }
.tool-card .icon {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--panel-3); color: var(--accent); font-size: 1rem;
}
.tool-card.active .icon { background: var(--bg); color: var(--accent); }
.tool-card .num { font-size: .72rem; color: var(--muted); }
.tool-card.active .num { color: rgba(16,19,15,.6); }
.tool-card .meta { margin-top: 1.75rem; }
.tool-card .cat { font-size: 10px; font-weight: 700; letter-spacing: .2em; color: var(--muted); }
.tool-card.active .cat { color: rgba(16,19,15,.6); }
.tool-card .name { margin-top: .5rem; font-weight: 600; }
.tool-card.disabled { opacity: .4; cursor: not-allowed; }
.tool-card.disabled:hover { transform: none; }

/* Editor */
.editor-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); padding: 4rem 0; }
.editor-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .editor-grid { grid-template-columns: 1.15fr .85fr; } }
.dropzone {
  position: relative; display: flex; min-height: 385px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; overflow: hidden;
  border-radius: .85rem; border: 1px dashed var(--line-2); background: var(--panel);
  padding: 1.5rem; text-align: center; transition: background .2s, border-color .2s;
}
.dropzone:hover { background: #1d231c; }
.dropzone.dragging { border-color: var(--accent); background: rgba(201,242,91,.08); }
.dropzone .upload-badge {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 1rem;
  background: var(--accent); color: var(--bg); margin-bottom: 1.25rem; font-size: 1.6rem;
}
.dropzone .hint { margin-top: .5rem; font-size: .875rem; color: var(--muted); }
.dropzone .private-note { margin-top: 2rem; font-size: 10px; letter-spacing: .18em; color: var(--dim); }
.dropzone img.preview { max-height: 265px; max-width: 100%; border-radius: .5rem; object-fit: contain; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.file-chip {
  position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border: 1px solid var(--line-2); border-radius: .6rem; background: rgba(16,19,15,.9);
  backdrop-filter: blur(8px); padding: .75rem 1rem; text-align: left;
}
.file-chip .fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .875rem; font-weight: 500; }
.file-chip .fmeta { margin-top: .25rem; font-size: .75rem; color: var(--muted); }
.file-chip button {
  border: 0; background: transparent; color: var(--muted); cursor: pointer; border-radius: .4rem; padding: .4rem;
}
.file-chip button:hover { background: var(--panel-3); color: var(--text); }

/* Control panel */
.control-card { padding: 1.5rem; }
.control-head { display: flex; align-items: center; justify-content: space-between; }
.control-head .cp-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .18em; color: var(--accent); }
.control-head h3 { margin-top: .5rem; font-size: 1.15rem; }
.hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-size: .75rem; color: var(--muted); margin-bottom: .5rem; }
.field input[type=text], .field input[type=number], .field select {
  width: 100%; height: 44px; border-radius: .6rem; border: 1px solid var(--line-2);
  background: var(--bg); color: var(--text); padding: 0 .85rem; font-size: .95rem; outline: none;
}
.field input:focus, .field select:focus { border-color: var(--accent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.checkline { display: flex; align-items: center; gap: .5rem; font-size: .75rem; color: var(--muted); cursor: pointer; background: none; border: 0; }
.checkline .box {
  display: grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--line-2); color: transparent;
}
.checkline.on .box { border-color: var(--accent); background: var(--accent); color: var(--bg); }
.range-line { display: flex; align-items: center; justify-content: space-between; }
.range-line .val { font-size: .875rem; font-weight: 600; color: var(--accent); }
input[type=range] { width: 100%; margin-top: 1rem; accent-color: var(--accent); }
.info-note { border-radius: .75rem; background: var(--panel-3); padding: 1.25rem; font-size: .875rem; line-height: 1.6; color: var(--muted); }
.kv-row { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: .75rem; margin-bottom: .75rem; font-size: .875rem; }
.kv-row .k { color: var(--muted); }
.kv-row .v { max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.actions-stack { display: grid; gap: .75rem; margin-top: .75rem; }

/* Before/After slider */
.ba-wrap { position: relative; display: flex; min-height: 300px; width: 100%; align-items: center; justify-content: center; overflow: hidden; border-radius: .5rem; background: #0b0e0b; padding: .75rem; }
.ba-wrap img { max-height: 300px; max-width: 100%; border-radius: .4rem; object-fit: contain; pointer-events: none; }
.ba-after-layer { position: relative; display: flex; align-items: center; justify-content: center; }
.ba-before-layer { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ba-line { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); box-shadow: 0 0 14px rgba(201,242,91,.7); pointer-events: none; }
.ba-line::after {
  content: "⇔"; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--accent); background: var(--bg); color: var(--accent); font-size: .85rem;
}
.ba-tag { position: absolute; top: 14px; border-radius: 999px; padding: .25rem .75rem; font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.ba-tag.before { left: 14px; background: rgba(16,19,15,.85); color: var(--text); }
.ba-tag.after { right: 14px; background: var(--accent); color: var(--bg); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

/* Feature trio */
.feature-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); padding: 4rem 0; }
.feature-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .feature-grid { grid-template-columns: repeat(3,1fr); } }
.feature-grid .k { font-size: .72rem; font-weight: 700; letter-spacing: .2em; color: var(--accent); }
.feature-grid h3 { margin-top: .75rem; font-size: 1.25rem; }
.feature-grid p { margin-top: .5rem; font-size: .875rem; line-height: 1.6; color: var(--muted); }

/* About */
.about-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .about-grid { grid-template-columns: .8fr 1.2fr; align-items: end; } }
.about-points { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .about-points { grid-template-columns: repeat(3,1fr); } }
.about-points .n { margin-bottom: .75rem; font-size: 1.5rem; color: var(--accent); }
.about-points .t { font-weight: 600; }
.about-points .d { margin-top: .5rem; font-size: .875rem; line-height: 1.6; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 1.75rem 0; }
.site-footer .container { display: flex; flex-direction: column; justify-content: space-between; gap: .75rem; font-size: .75rem; color: var(--dim); }
@media (min-width: 640px) { .site-footer .container { flex-direction: row; } }

/* Tool landing */
.tool-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); padding: 5rem 0; }
.tool-hero::before {
  content: ""; position: absolute; inset: 0; opacity: .2;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
}
.tool-hero .container { position: relative; max-width: 1024px; }
.tool-hero h1 { font-size: clamp(2.75rem, 7vw, 5.5rem); line-height: .95; margin-top: 1.75rem; max-width: 60rem; }
.tool-hero .lead { margin-top: 2rem; max-width: 40rem; font-size: 1.2rem; line-height: 1.7; color: var(--muted-2); }
.tool-hero .actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.landing-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; max-width: 1024px; }
@media (min-width: 768px) { .landing-grid { grid-template-columns: 1.1fr .9fr; } }
.landing-grid h2 { font-size: 2rem; margin-top: 1.5rem; }
.landing-grid .body { margin-top: 1.25rem; line-height: 1.8; color: var(--muted-2); }
.benefit { display: flex; align-items: center; gap: .75rem; font-size: .875rem; margin-top: .75rem; }
.benefit::before { content: "✓"; color: var(--accent); font-weight: 700; }
.steps { margin-top: 1.75rem; list-style: none; }
.steps li { display: flex; gap: 1rem; margin-top: 1.25rem; }
.steps .sn {
  display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%; background: var(--accent); color: var(--bg); font-size: .72rem; font-weight: 700;
}
.steps .st { padding-top: .25rem; font-size: .875rem; color: var(--muted-2); }

/* Toast */
.toast-zone { position: fixed; right: 1rem; bottom: 1rem; z-index: 100; display: grid; gap: .5rem; }
.toast {
  border: 1px solid var(--line-2); border-radius: .75rem; background: var(--panel-2); color: var(--text);
  padding: .8rem 1.1rem; font-size: .875rem; box-shadow: 0 12px 40px rgba(0,0,0,.4);
  animation: toast-in .25s ease;
}
.toast.ok { border-color: var(--accent); }
.toast.err { border-color: #e26d5c; color: #f3b9af; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Admin */
.login-shell { display: grid; place-items: center; min-height: 100vh; padding: 1rem; }
.login-card {
  width: 100%; max-width: 28rem; border: 1px solid var(--line); border-radius: 1.5rem;
  background: var(--panel); padding: 2.5rem; box-shadow: 0 24px 80px rgba(0,0,0,.4);
}
.login-card .lock {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 1rem;
  background: var(--accent); color: var(--bg); font-size: 1.2rem; margin-top: 3rem;
}
.login-card h1 { font-size: 2.25rem; margin-top: .75rem; }
.login-card .sub { margin-top: 1rem; font-size: .875rem; line-height: 1.6; color: var(--muted); }
.login-card form { margin-top: 2rem; }
.alert-err {
  border: 1px solid #e26d5c; border-radius: .6rem; background: rgba(226,109,92,.08);
  color: #f3b9af; padding: .7rem 1rem; font-size: .85rem; margin-bottom: 1.25rem;
}
.admin-shell { min-height: 100vh; background: var(--bg); }
.admin-header { border-bottom: 1px solid var(--line); background: rgba(16,19,15,.85); }
.admin-header .bar { display: flex; height: 64px; align-items: center; justify-content: space-between; }
.admin-nav { display: flex; align-items: center; gap: 1.25rem; font-size: .875rem; }
.admin-nav a { color: var(--muted); }
.admin-nav a.active, .admin-nav a:hover { color: var(--accent); }
.admin-body { max-width: 1150px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.admin-title-row { display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem; border-bottom: 1px solid var(--line); padding-bottom: 1.75rem; }
@media (min-width: 640px) { .admin-title-row { flex-direction: row; align-items: flex-end; } }
.admin-title-row h1 { font-size: 2.75rem; margin-top: .75rem; }
.admin-title-row .sub { margin-top: .75rem; max-width: 34rem; color: var(--muted); }
.metric-grid { display: grid; gap: 1rem; padding: 1.75rem 0; grid-template-columns: 1fr; }
@media (min-width: 640px) { .metric-grid { grid-template-columns: repeat(3,1fr); } }
.metric .lbl { font-size: .75rem; color: var(--muted); }
.metric .val { margin-top: .75rem; font-size: 1.9rem; font-weight: 600; }
.metric .note { margin-top: .25rem; font-size: .72rem; color: var(--muted); }
.chart-card { margin-bottom: 1.25rem; }
.chart-head { display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; }
@media (min-width: 640px) { .chart-head { flex-direction: row; align-items: flex-start; } }
.range-tabs { display: flex; border: 1px solid var(--line); border-radius: .75rem; padding: .25rem; background: rgba(16,19,15,.5); }
.range-tabs button {
  border: 0; border-radius: .5rem; padding: .5rem .8rem; font-size: .75rem; font-weight: 600;
  background: transparent; color: var(--muted); cursor: pointer;
}
.range-tabs button.active { background: var(--accent); color: var(--bg); }
.range-total { border: 1px solid rgba(201,242,91,.2); border-radius: .75rem; background: rgba(201,242,91,.05); padding: .75rem 1rem; }
.range-total .l { font-size: .72rem; color: var(--muted); }
.range-total .v { margin-top: .25rem; font-size: 1.5rem; font-weight: 600; color: var(--accent); }
.bars { display: flex; height: 176px; align-items: flex-end; gap: 6px; margin-top: 2rem; border: 1px solid var(--line); border-radius: 1rem; background: rgba(16,19,15,.4); padding: 1rem; }
.bars .col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .5rem; height: 100%; }
.bars .bar-track { position: relative; display: flex; height: 100%; width: 100%; align-items: flex-end; }
.bars .bar-fill { width: 100%; border-radius: 6px 6px 0 0; background: rgba(201,242,91,.75); transition: background .2s; }
.bars .col:hover .bar-fill { background: var(--accent); }
.bars .day { font-size: 9px; color: var(--muted); white-space: nowrap; }
.chart-foot { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 1rem; padding-top: .75rem; font-size: .75rem; color: var(--muted); }
.tool-rows { display: grid; gap: 1rem; padding: 1.75rem 0; }
.tool-row { display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; }
@media (min-width: 640px) { .tool-row { flex-direction: row; align-items: center; } }
.tool-row .left { display: flex; align-items: flex-start; gap: 1rem; }
.tool-row .ticon {
  display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0;
  border-radius: .75rem; background: var(--panel-3); color: var(--muted);
}
.tool-row .ticon.on { background: var(--accent); color: var(--bg); }
.tool-row h2 { font-size: 1rem; }
.badge { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: .1rem .6rem; font-size: .68rem; color: var(--muted); margin-left: .5rem; }
.tool-row .desc { margin-top: .35rem; max-width: 36rem; font-size: .875rem; line-height: 1.5; color: var(--muted); }
.tool-row .route { margin-top: .5rem; font-size: .72rem; color: var(--muted); font-family: monospace; }
.switch { position: relative; width: 46px; height: 26px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel-3); cursor: pointer; transition: background .2s; flex-shrink: 0; }
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--muted); transition: left .18s, background .18s;
}
.switch.on { background: var(--accent); border-color: var(--accent); }
.switch.on::after { left: 22px; background: var(--bg); }
.switch-label { font-size: .75rem; font-weight: 600; color: var(--muted); }
.switch-label.on { color: var(--accent); }
.safe-note { display: flex; gap: .75rem; border: 1px solid rgba(201,242,91,.2); border-radius: .75rem; background: rgba(201,242,91,.05); padding: 1.25rem; }
.safe-note .t { font-weight: 500; }
.safe-note .d { margin-top: .25rem; font-size: .875rem; line-height: 1.6; color: var(--muted); }

/* Utility */
.center-msg { display: grid; place-items: center; min-height: 70vh; text-align: center; }
.center-msg h1 { font-size: 2.75rem; }
.mt-2 { margin-top: .5rem; } .mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; }
.hidden { display: none !important; }
