:root{
  /* Main */
  --black:#100718;
  --beige:#ebe3d1;

  /* Rainbow bars */
  --blue:#86f1e9;
  --green:#2def87;
  --yellow:#f9ce09;
  --red:#f90a0b;

  /* Theme tokens (LIGHT default) */
  --ink: rgba(16,7,24,.92);
  --ink2: rgba(16,7,24,.72);

  --stroke: rgba(16,7,24,.14);

  --surface: rgba(235,227,209,.82);     /* cards/panels */
  --surface2: rgba(235,227,209,.72);    /* inputs/pills */
  --glass: rgba(255,255,255,.45);       /* frosted */
  --glass2: rgba(255,255,255,.35);      /* frosted alt */
  --soft: rgba(16,7,24,.06);            /* subtle fill */
  --soft2: rgba(16,7,24,.10);

  --shadow: 0 18px 55px rgba(16,7,24,.20);
  --shadow2: 0 10px 28px rgba(16,7,24,.14);

  --radius: 18px;
  --sidebarW: 300px;

  --page-bg:
    radial-gradient(1200px 600px at 20% 15%, rgba(134,241,233,.16), transparent 60%),
    radial-gradient(900px 500px at 70% 25%, rgba(45,239,135,.12), transparent 60%),
    radial-gradient(900px 650px at 70% 80%, rgba(249,206,9,.10), transparent 60%),
    radial-gradient(900px 650px at 20% 80%, rgba(249,10,11,.08), transparent 60%),
    linear-gradient(180deg, #f6f0e4 0%, #ebe3d1 45%, #f7f2ea 100%);
}

/* DARK THEME OVERRIDES */
html[data-theme="dark"]{
  --ink: rgba(235,227,209,.92);
  --ink2: rgba(235,227,209,.72);

  --stroke: rgba(235,227,209,.14);

  --surface: rgba(16,7,24,.62);
  --surface2: rgba(16,7,24,.52);
  --glass: rgba(16,7,24,.40);
  --glass2: rgba(16,7,24,.34);
  --soft: rgba(235,227,209,.06);
  --soft2: rgba(235,227,209,.10);

  --shadow: 0 18px 55px rgba(0,0,0,.45);
  --shadow2: 0 10px 28px rgba(0,0,0,.35);

  --page-bg:
    radial-gradient(1200px 600px at 20% 15%, rgba(134,241,233,.12), transparent 60%),
    radial-gradient(900px 500px at 70% 25%, rgba(45,239,135,.10), transparent 60%),
    radial-gradient(900px 650px at 70% 80%, rgba(249,206,9,.08), transparent 60%),
    radial-gradient(900px 650px at 20% 80%, rgba(249,10,11,.07), transparent 60%),
    linear-gradient(180deg, #0b0512 0%, #100718 55%, #0b0512 100%);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--ink);
  background: var(--page-bg);
  overflow-x:hidden;
}

/* Layout */
.app{
  min-height:100vh;
  display:grid;
  grid-template-columns: var(--sidebarW) 1fr;
}

/* Sidebar (left nav) */
aside {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;

  /* BACKGROUND UPDATE HERE */
  background-color: #100718; /* Fallback color */
  background-image: 
    /* Layer 1: Dark tint (Adjust 0.85 to 0.5 if you want the stripes brighter) */
    linear-gradient(180deg, rgba(16,7,24,0.85) 0%, rgba(11,5,18,0.95) 100%),
    /* Layer 2: Your stripes image */
    url("assets/images/stripes.png");
    
  background-size: cover;       /* Ensures it covers the full height/width */
  background-position: center;  /* Keeps the middle of the stripes visible */
  background-repeat: no-repeat;
  
  /* Rest of the styling stays the same */
  border-right: 1px solid rgba(134,241,233, 0.15);
  display: flex;
  flex-direction: column;
  z-index: 50;
  box-shadow: 5px 0 30px rgba(0,0,0,0.5);
}
/* Brand Section */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px 24px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.brand h1 {
  font-size: 42px;
  letter-spacing: -1px;
  margin: 0;
  line-height: 1;
  background: linear-gradient(90deg, #fff, #a0a0a0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  font-weight: 800;
}

.brand-subtitle {
  font-family: monospace;
  font-size: 14px;
  color: var(--blue);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
  opacity: 0.8;
}

.mark{
  width:44px;height:44px;border-radius:14px;
  background:
    linear-gradient(180deg, rgba(235,227,209,.10), rgba(235,227,209,.02)),
    linear-gradient(90deg, var(--blue), var(--green), var(--yellow), var(--red));
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
  border: 1px solid rgba(235,227,209,.22);
  position: relative;
  overflow:hidden;
}
.mark:after{
  content:"";
  position:absolute; inset:-40%;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.22), transparent 55%);
  transform: rotate(18deg);
}
.brand p{
    padding-left: 6px;
  margin:4px 0 0;
  font-size: 16px;
  opacity:.85;
}

/* Navigation Container */
.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1; /* Pushes footer down */
  overflow-y: auto;
}

/* Nav Links (Tactical Buttons) */
.nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: rgba(235,227,209, 0.65);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid transparent;
}

/* Hover State - "Scan" effect */
.nav a:hover {
  background: rgba(255,255,255, 0.03);
  color: var(--blue);
  padding-left: 20px; /* Slide effect */
}

/* Active State - "Engaged" look */
.nav a.active {
  background: linear-gradient(90deg, rgba(134,241,233, 0.1) 0%, transparent 100%);
  color: #fff;
  border: 1px solid rgba(134,241,233, 0.2);
  border-left: 3px solid var(--blue);
  box-shadow: 0 0 15px rgba(134,241,233, 0.05);
}
/* Icons in Nav */
.nav-icon {
  width: 18px;
  height: 18px;
  opacity: 0.7;
  fill: currentColor;
}
.nav a.active .nav-icon {
  opacity: 1;
  filter: drop-shadow(0 0 5px var(--blue));
}

/* Special "Wiki" link style */
.nav a[target="_blank"] {
  margin-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-radius: 0;
  padding-top: 20px;
  color: var(--yellow);
}
.nav a[target="_blank"]:hover {
  background: transparent;
  color: #fff;
}

/* Support Button Style */
.nav a.support-link {
  color: var(--red);
  font-weight: 600;
}
.nav a.support-link:hover {
  color: #ff4d4d;
  background: rgba(249,10,11, 0.05);
}

.dot{
  width:9px;height:9px;border-radius:999px;
  background: rgba(235,227,209,.65);
  box-shadow: 0 0 0 4px rgba(235,227,209,.10);
  flex: 0 0 auto;
}
.nav a.active .dot{
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(134,241,233,.20);
}
.nav small{
  margin-left:auto;
  font-size:15px;
  opacity:.8;
}

/* Sidebar Footer */
.sidebar-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-family: monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}
.ping-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}

.sidebar-theme-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.2);
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: background 0.2s;
}
.sidebar-theme-btn:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
}
.barline{
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--yellow), var(--red));
  margin: 12px 0 10px;
  opacity:.95;
}
.sidebar-footer-row{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
}
.sidebar-footer-title{ color: rgba(235,227,209,.92); }

.sidebar-theme-btn{
  color: rgba(235,227,209,.92);
  border-color: rgba(235,227,209,.22);
  background: rgba(16,7,24,.28);
}

/* Main content */
main{ padding: 28px 28px 80px; }

.toprow{
  display:flex;
  gap:14px;
  align-items:center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.search{
  flex: 1 1 460px;
  display:flex;
  align-items:center;
  gap:10px;
  background: var(--surface2);
  border: 1px solid var(--stroke);
  padding: 10px 12px;
  border-radius: 16px;
  box-shadow: var(--shadow2);
}
.search-icon{ opacity:.7; font-weight:800; }
.search input{
  width:100%;
  border:none;
  outline:none;
  background: transparent;
  font-size: 14px;
  color: var(--ink);
}

.top-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface2);
  box-shadow: var(--shadow2);
  font-size: 13px;
  cursor:pointer;
  user-select:none;
  transition: transform .15s ease;
  color: var(--ink);
}
.pill:hover{ transform: translateY(-1px); }

.hero{
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--soft2);
  background:
    radial-gradient(800px 360px at 20% 10%, rgba(134,241,233,.22), transparent 55%),
    radial-gradient(800px 420px at 85% 20%, rgba(45,239,135,.18), transparent 55%),
    radial-gradient(900px 520px at 70% 95%, rgba(249,206,9,.14), transparent 55%),
    var(--surface2);
  box-shadow: var(--shadow);
  padding: 22px;
  overflow:hidden;
  position: relative;
}
.hero:after{
  content:"";
  position:absolute;
  inset:-40%;
  background: linear-gradient(135deg, rgba(249,10,11,.08), transparent 40%, rgba(134,241,233,.10));
  transform: rotate(10deg);
  pointer-events:none;
}

.hero-grid{
  position: relative;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
  align-items:center;
}

.hero h2{
  margin:0 0 10px;
  font-size: 34px;
  letter-spacing: -.6px;
  line-height:1.05;
  color: var(--ink);
}
.hero p{
  margin:0 0 16px;
  color: var(--ink2);
  font-size: 14.5px;
  line-height:1.5;
  max-width: 62ch;
}

.cta-row{ display:flex; gap:10px; flex-wrap:wrap; }

.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--surface2);
  box-shadow: var(--shadow2);
  cursor:pointer;
  user-select:none;
  font-weight: 650;
  font-size: 13px;
  transition: transform .15s ease, filter .15s ease;
  color: var(--ink);
}
.btn:hover{ transform: translateY(-1px); filter: brightness(1.01); }

.btn.primary{
  border-color: var(--stroke);
  background:
    linear-gradient(180deg, rgba(255,255,255,.38), rgba(255,255,255,.08)),
    linear-gradient(90deg, rgba(134,241,233,.95), rgba(45,239,135,.92), rgba(249,206,9,.90));
  color: var(--black);
}
.btn.danger{
  color: var(--beige);
  border-color: rgba(249,10,11,.35);
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(0,0,0,.15)),
    linear-gradient(90deg, rgba(249,10,11,.92), rgba(249,206,9,.78));
}

.hero-card{
  border-radius: var(--radius);
  border: 1px solid var(--soft2);
  background: var(--glass2);
  backdrop-filter: blur(8px);
  padding: 14px;
  box-shadow: var(--shadow2);
  position: relative;
  color: var(--ink);
}
.hero-card .mini{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
}
.hero-card h3{
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing:.2px;
  color: var(--ink2);
  text-transform: uppercase;
}
.stat{
  display:flex;
  align-items: baseline;
  gap:8px;
  margin: 10px 0 6px;
}
.stat b{ font-size: 26px; letter-spacing: -.6px; }
.stat span{ font-size: 12px; opacity:.75; }

.hero-note{
  margin-top:12px;
  color: var(--ink2);
  font-size:12.5px;
  line-height:1.45;
}

.badge{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--stroke);
  background: var(--surface2);
  color: var(--ink);
}
.badge .rainbow{
  width: 18px;
  height: 6px;
  border-radius: 999px;
  margin-right:8px;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--yellow), var(--red));
}

/* Sections */
.sections{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.card{
  grid-column: span 4;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--soft2);
  box-shadow: var(--shadow2);
  padding: 14px;
  position: relative;
  overflow:hidden;
  transform: translateY(0);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card h3{
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: -.2px;
  color: var(--ink);
}
.card p{
  margin:0 0 12px;
  font-size: 13px;
  line-height:1.45;
  color: var(--ink2);
}
.card .meta{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
}

.tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--glass2);
  font-size: 12px;
  color: var(--ink2);
}
.tag i{
  width:10px;height:10px;border-radius:999px; display:inline-block;
  background: var(--blue);
}
.tag.green i{ background: var(--green); }
.tag.yellow i{ background: var(--yellow); }
.tag.red i{ background: var(--red); }

.linkbtn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--soft);
  color: var(--ink);
  font-weight: 650;
  font-size: 13px;
  cursor:pointer;
  user-select:none;
  text-decoration:none;
  transition: transform .15s ease;
}
.linkbtn:hover{ transform: translateY(-1px); }

/* Tools Zone */
.toolzone{
  margin-top: 16px;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--soft2);
  background: var(--glass);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  padding: 14px;
}
.toolzone-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  padding: 8px 6px 12px;
}
.toolzone-header h3{
  margin:0;
  font-size: 18px;
  color: var(--ink);
}
.toolzone-header p{
  margin:6px 0 0;
  font-size: 13px;
  color: var(--ink2);
}

.toolgrid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.toolpanel{
  grid-column: span 7;
  border-radius: var(--radius);
  border: 1px solid var(--soft2);
  background: var(--surface);
  padding: 12px;
  color: var(--ink);
}
.toolpanel h4{ margin:0 0 10px; }

.sidepanel{
  grid-column: span 5;
  border-radius: var(--radius);
  border: 1px solid var(--soft2);
  background: var(--surface);
  padding: 12px;
  color: var(--ink);
}
.sidepanel h4{ margin:0 0 10px; }

.empty{
  border-radius: 14px;
  border: 1px dashed var(--stroke);
  background: var(--glass2);
  padding: 12px;
  font-size: 13px;
  color: var(--ink2);
  line-height:1.45;
}

/* Modal */
.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(16,7,24,.55);
  display:none;
  align-items:center;
  justify-content:center;
  padding: 18px;
  z-index: 50;
}
html[data-theme="dark"] .modal-backdrop{
  background: rgba(0,0,0,.62);
}
.modal{
  width: min(720px, 100%);
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid rgba(235,227,209,.22);
  background:
    radial-gradient(900px 420px at 20% 20%, rgba(134,241,233,.18), transparent 60%),
    radial-gradient(900px 520px at 90% 30%, rgba(45,239,135,.14), transparent 60%),
    rgba(235,227,209,.95);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  overflow:hidden;
  color: rgba(16,7,24,.90);
}
html[data-theme="dark"] .modal{
  background:
    radial-gradient(900px 420px at 20% 20%, rgba(134,241,233,.12), transparent 60%),
    radial-gradient(900px 520px at 90% 30%, rgba(45,239,135,.10), transparent 60%),
    rgba(16,7,24,.95);
  border: 1px solid rgba(235,227,209,.18);
  color: rgba(235,227,209,.92);
}
.modal header{
  padding: 14px 16px;
  background:
    linear-gradient(90deg, rgba(134,241,233,.35), rgba(45,239,135,.30), rgba(249,206,9,.28), rgba(249,10,11,.24));
  border-bottom: 1px solid rgba(16,7,24,.10);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
html[data-theme="dark"] .modal header{
  border-bottom: 1px solid rgba(235,227,209,.14);
}
.modal header b{ font-size: 14px; }

.modal header button{
  border: 1px solid rgba(16,7,24,.18);
  background: rgba(255,255,255,.35);
  border-radius: 12px;
  padding: 8px 10px;
  cursor:pointer;
  font-weight: 700;
  color: inherit;
}
html[data-theme="dark"] .modal header button{
  border: 1px solid rgba(235,227,209,.18);
  background: rgba(235,227,209,.10);
}
.modal .content{
  padding: 14px 16px 16px;
  font-size: 13.5px;
  line-height:1.5;
  color: inherit;
}
.modal-actions{
  margin-top:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* Mobile topbar */
.mobile-topbar{
  display:none;
  position: sticky;
  top:0;
  z-index: 20;
  padding: 10px 12px;
  background: var(--surface2);
  border-bottom: 1px solid var(--soft2);
  backdrop-filter: blur(10px);
}
.mobile-topbar .row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.topbar-right{
  display:flex;
  align-items:center;
  gap:10px;
}
.hamburger{
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--glass2);
  padding: 10px 12px;
  cursor:pointer;
  font-weight: 800;
  color: var(--ink);
}

/* Footer note */
.legal{
  margin-top:18px;
  color: var(--ink2);
  font-size: 12.5px;
}

/* Responsive */
@media (max-width: 980px){
  :root{ --sidebarW: 270px; }
  .hero-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 860px){
  .app{ grid-template-columns: 1fr; }
  aside{
    position: fixed;
    left: 0;
    top: 0;
    width: min(88vw, 340px);
    transform: translateX(-105%);
    transition: transform .2s ease;
    z-index: 30;
  }
  aside.open{ transform: translateX(0); }
  .mobile-topbar{ display:block; }
  main{ padding: 16px 14px 70px; }
  .sections .card{ grid-column: span 12 !important; }
  .toolpanel{ grid-column: span 12; }
  .sidepanel{ grid-column: span 12; }
}

/* -----------------------------
   ArcHub page components (Enhanced)
----------------------------- */

.pagehead {
  margin-bottom: 24px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--soft2);
  /* Dark glass effect with a subtle blue tint from your palette */
  background: linear-gradient(90deg, rgba(134,241,233,0.05) 0%, var(--surface2) 100%);
  box-shadow: var(--shadow2);
  padding: 24px;
  position: relative;
  overflow: hidden;
  /* Thick accent bar on the left using the Green brand color */
  border-left: 4px solid #2def87;
}

/* Tactical Corner Detail */
.pagehead::after {
  position: absolute;
  top: 0;
  right: 0;
  background: #f90a0b; /* Red brand color */
  color: #fff;
  font-family: monospace;
  font-size: 10px;
  padding: 2px 8px;
  font-weight: bold;
  letter-spacing: 1px;
}

.pagehead-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.pagehead h2 {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: var(--ink);
  /* Subtle text shadow for a "glow" look */
  text-shadow: 0 0 10px rgba(134,241,233, 0.2);
}

.pagehead p {
  margin: 0;
  color: var(--ink2);
  line-height: 1.6;
  font-size: 14.5px;
  max-width: 65ch;
  /* Monospace font for that 'briefing' feel */
  font-family: 'Inter', system-ui, sans-serif; 
}

/* Secondary status text for the right column */
.pagehead-status {
  font-family: monospace;
  font-size: 12px;
  color: #86f1e9; /* Blue brand color */
  text-align: right;
  opacity: 0.8;
}

.kvgrid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:10px;
}
.kv{
  border-radius: 14px;
  border: 1px solid var(--soft2);
  background: var(--glass2);
  padding: 10px 12px;
}
.kv .k{
  font-size: 12px;
  color: var(--ink2);
  margin-bottom: 6px;
}
.kv .v{
  font-weight: 800;
  letter-spacing: -.2px;
}

.featurelist{
  margin:10px 0 0;
  padding:0;
  list-style:none;
  display:grid;
  gap:8px;
}
.featurelist li{
  display:flex;
  gap:10px;
  align-items:flex-start;
  border-radius: 14px;
  border: 1px solid var(--soft2);
  background: var(--glass2);
  padding: 10px 12px;
  color: var(--ink2);
  line-height: 1.45;
  font-size: 13px;
}
.featurelist b{ color: var(--ink); }

.shell{
  border-radius: var(--radius);
  border: 1px solid var(--soft2);
  background: var(--surface);
  box-shadow: var(--shadow2);
  padding: 12px;
}

.shell h4{
  margin:0 0 10px;
  font-size: 14px;
  letter-spacing:.2px;
}

.shell .sub{
  margin:-6px 0 10px;
  color: var(--ink2);
  font-size: 12.5px;
  line-height:1.45;
}

.placeholder{
  border-radius: 14px;
  border: 1px dashed var(--stroke);
  background: var(--glass2);
  padding: 12px;
  color: var(--ink2);
  font-size: 13px;
  line-height: 1.5;
}

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.toolbar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin-bottom: 10px;
}

.input{
  width:100%;
  border:none;
  outline:none;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.inputwrap{
  display:flex;
  align-items:center;
  gap:10px;
  background: var(--surface2);
  border: 1px solid var(--stroke);
  padding: 10px 12px;
  border-radius: 16px;
  box-shadow: var(--shadow2);
}

.minirow{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content: space-between;
}

.note{
  margin-top:12px;
  color: var(--ink2);
  font-size: 12.5px;
  line-height:1.45;
}

@media (max-width: 980px){
  .pagehead-grid{ grid-template-columns: 1fr; }
  .kvgrid{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
}
