﻿:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --sidebar: #1f2937;
  --sidebar-2: #263445;
  --line: #d7dee8;
  --line-dark: #3a4759;
  --text: #16202d;
  --muted: #5b6778;
  --primary: #1d4ed8;
  --primary-dark: #173c9a;
  --success: #047857;
  --warning: #92400e;
  --code-bg: #0f172a;
  --code-text: #dbeafe;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: var(--primary-dark); font-weight: 800; }
button, input, textarea { font: inherit; }

.app-shell { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  background: var(--sidebar);
  color: #fff;
  padding: 24px 22px;
  border-right: 1px solid var(--line-dark);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}
.brand-row { display: flex; gap: 14px; align-items: center; margin-bottom: 28px; }
.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eef2f7;
  color: #111827;
  font-weight: 900;
  letter-spacing: .04em;
  flex: 0 0 auto;
}
h1 { font-size: 18px; margin: 0 0 4px; color: #fff; }
.sidebar p { margin: 0; color: #cbd5e1; font-size: 13px; }
.nav-list { display: grid; gap: 9px; }
.nav-list button {
  width: 100%;
  text-align: left;
  background: transparent;
  color: #e5e7eb;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 800;
  cursor: pointer;
}
.nav-list button.active, .nav-list button:hover { background: var(--sidebar-2); border-color: #93c5fd; color: #fff; }
.side-note { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-dark); color: #cbd5e1; font-size: 13px; line-height: 1.55; }

.main-content { padding: 32px; min-width: 0; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.kicker { color: var(--primary); text-transform: uppercase; letter-spacing: .12em; font-weight: 900; font-size: 12px; margin: 0 0 12px; }
h2 { max-width: 980px; margin: 0; font-size: clamp(38px, 4.6vw, 64px); line-height: 1.05; letter-spacing: -.04em; }
h3 { margin: 28px 0 14px; font-size: 26px; }
.lead { color: var(--muted); font-size: 17px; line-height: 1.55; max-width: 900px; }
.lead.small { font-size: 15px; }

.status-card, .panel, pre, .notice, .cards > div, .kit-card, .empty {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.status-card strong { color: var(--primary-dark); }
.status-card span { display: block; margin-top: 8px; word-break: break-all; color: var(--muted); font-size: 12px; }
.notice { margin: 18px 0; border-left: 5px solid var(--success); }
.hidden { display: none !important; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: 14px; margin: 20px 0; }
.cards strong { display: block; color: var(--primary-dark); font-size: 28px; margin-top: 12px; }
.tab { padding-top: 8px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(240px, 1fr)); gap: 16px; }
label { display: block; color: var(--muted); font-weight: 800; }
.full-label { margin-top: 14px; }
input, textarea {
  width: 100%;
  margin-top: 8px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  outline: none;
}
input:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29, 78, 216, .12); }
textarea { min-height: 130px; font-family: Consolas, "Courier New", monospace; }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
button, .button-link {
  appearance: none;
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: 11px 14px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button:hover, .button-link:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
pre { min-height: 150px; overflow: auto; white-space: pre-wrap; font: 13px Consolas, "Courier New", monospace; background: var(--code-bg); color: var(--code-text); border-color: #1e293b; }
.kit-list { margin-top: 16px; display: grid; gap: 12px; }
.kit-card { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.kit-card strong { display: block; }
.kit-card span, .kit-card small, .kit-card code { display: block; color: var(--muted); font-size: 12px; }
.kit-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.empty { color: var(--muted); background: var(--surface-soft); }

/* Compatibility selectors for older generated HTML/classes. */
aside { background: var(--sidebar); color: #fff; }
aside .mark, .mark { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: #eef2f7; color: #111827; font-weight: 900; }
aside button { display: block; width: 100%; }

@media (max-width: 950px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .main-content { padding: 20px; }
  .hero, .cards, .form-grid { grid-template-columns: 1fr; }
  h2 { font-size: 34px; }
  .kit-card { align-items: flex-start; flex-direction: column; }
}


/* Production compact console + user guide */
.hero { grid-template-columns: minmax(0, 1fr) 360px; }
.hero h2 { font-size: 30px; line-height: 1.2; letter-spacing: -0.02em; max-width: 820px; font-weight: 760; }
.kicker { letter-spacing: .09em; }
.lead { font-size: 15px; max-width: 760px; }
.main-content { padding: 28px 32px; }
.sidebar { width: 300px; }
.status-card { font-size: 14px; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.guide-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.guide-card h4, .workflow-table h4 { margin: 0 0 10px; font-size: 17px; }
.guide-card p { margin: 0 0 10px; color: var(--muted); line-height: 1.55; }
.guide-card ul { margin: 0; padding-left: 18px; color: var(--text); line-height: 1.55; }
.guide-card li + li { margin-top: 4px; }
.guide-card code { background: #eef2ff; color: var(--primary-dark); padding: 2px 5px; border-radius: 5px; }
.workflow-table { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }
th { color: var(--primary-dark); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; }
.guide-warning { margin-top: 18px; padding: 16px; border-left: 5px solid #b45309; background: #fff7ed; border-radius: 10px; line-height: 1.55; }
.side-note { font-size: 12.5px; }
@media (max-width: 1100px) { .guide-grid { grid-template-columns: 1fr; } .hero { grid-template-columns: 1fr; } }

