/* ==================================================
   VIEW ALL / INNER PAGE
   ================================================== */

.view-all-page {
  position: relative;
font-size: 13px;
/* line-height: 2px; */
  width: 100%;
  min-height: 100svh;

  display: grid;
  grid-template-columns: minmax(290px, 390px) minmax(0, 1fr);
  gap: 40px;

  padding: 125px clamp(30px, 4vw, 70px) 100px;

  overflow: visible;

  background:
    linear-gradient(rgba(2, 7, 18, 0.16), rgba(2, 7, 18, 0.32)),
    url("innerPg.png") center / cover fixed no-repeat;
}

/* ==================================================
   LEFT TYPE MENU
   ================================================== */

.type-menu {
  align-self: start;

  min-width: 0;
}

/* ---------- PAGE INTRO ---------- */

.type-menu > header {
  margin-bottom: 20px;
}

.type-menu h1 {
  margin: 0 0 8px;

  color: white;

  font-size: clamp(24px, 2vw, 32px);
  font-weight: 500;

  text-transform: uppercase;
  letter-spacing: 0.035em;
}

.type-menu > header p {
  max-width: 340px;

  color: #b8c7d8;

}

/* ==================================================
   PROJECT TYPE LIST
   ================================================== */
:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  --editor-bg: #07111f;
  --editor-panel: #081421;
  --editor-panel-2: #0a1727;
  --editor-panel-3: #0e1e31;
  --editor-line: #263d5b;
  --editor-line-strong: #355578;
  --editor-text: #e8f1fb;
  --editor-muted: #8da5c1;

  /* Developer Sandbox / project-content colors */
  --sandbox-blue: #5fc8ff;
  --sandbox-blue-dark: #2f8dff;
  --sandbox-violet: #8a67ff;
  --sandbox-text: #edf6ff;
  --sandbox-muted: #a8bbcf;
  --sandbox-background: #030815;

  --sandbox-bg: rgba(4, 15, 34, 0.88);
  --sandbox-panel: rgba(7, 24, 52, 0.88);
  --sandbox-panel-soft: rgba(10, 31, 62, 0.72);
  --sandbox-panel-lighter: rgba(23, 57, 92, 0.42);
  --sandbox-border: rgba(95, 170, 255, 0.2);
  --sandbox-border-strong: rgba(95, 200, 255, 0.38);
  --sandbox-code: #071323;
  --sandbox-note: rgba(95, 200, 255, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;

  color: var(--editor-text);
  background: var(--editor-bg);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

/* ==========================================================================
   EDITOR TOP BAR
   ========================================================================== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  gap: 1rem;

  min-height: 64px;

  padding: 0.7rem 1rem;

  border-bottom: 1px solid var(--editor-line);

  background: rgba(9, 23, 39, 0.97);

  backdrop-filter: blur(14px);
}

.topbar > div:first-child strong,
.topbar > div:first-child span {
  display: block;
}

.topbar > div:first-child span,
.status {
  color: var(--editor-muted);
  font-size: 0.75rem;
}

.status {
  text-align: right;
}

.status.error {
  color: #ffb9b9;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;

  gap: 0.45rem;
}

/* ==========================================================================
   START / STOP HELP
   ========================================================================== */

.stop-help {
  padding: 0.5rem 1rem;

  border-bottom: 1px solid var(--editor-line);

  color: #a8bdd5;
  background: #0b1b2e;

  font-size: 0.75rem;
  line-height: 1.7;
}

.stop-help strong {
  margin-left: 0.55rem;
}

.stop-help strong:first-child {
  margin-left: 0;
}

.stop-help code,
.stop-help kbd {
  padding: 0.12rem 0.3rem;

  border: 1px solid #2d496a;
  border-radius: 0.25rem;

  color: #eef6ff;
  background: #07111f;
}

.runtime-info {
  display: block;

  margin-top: 0.35rem;

  color: #8fa8c4;
}

.runtime-info strong {
  margin-right: 0.25rem;

  color: #bfd1e4;
}

.runtime-info code {
  margin-right: 0.5rem;
}

/* ==========================================================================
   MAIN EDITOR LAYOUT
   ========================================================================== */

.editor-layout {
  display: grid;

  grid-template-columns:
    285px
    minmax(440px, 620px)
    minmax(480px, 1fr);

  min-height: calc(100vh - 102px);
}

.sidebar,
.workspace,
.preview-column {
  min-width: 0;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.sidebar {
  overflow: auto;

  max-height: calc(100vh - 102px);

  border-right: 1px solid var(--editor-line);

  background: var(--editor-panel);
}

.sidebar-section {
  padding: 0.85rem;

  border-bottom: 1px solid var(--editor-line);
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 0.5rem;

  margin-bottom: 0.6rem;
}

.section-title-row h2 {
  margin: 0;

  font-size: 0.78rem;

  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-help {
  color: var(--editor-muted);

  font-size: 0.7rem;
  line-height: 1.45;
}

/* ==========================================================================
   EDITOR INPUTS
   ========================================================================== */

input,
select,
textarea {
  width: 100%;

  padding: 0.55rem 0.62rem;

  border: 1px solid var(--editor-line-strong);
  border-radius: 0.28rem;

  color: #edf5ff;
  background: #06101d;
}

textarea {
  resize: vertical;
  line-height: 1.45;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(91, 143, 194, 0.25);
  outline-offset: 1px;
}

/* ==========================================================================
   EDITOR BUTTONS
   ========================================================================== */

button {
  padding: 0.45rem 0.65rem;

  border: 1px solid #476b95;
  border-radius: 0.28rem;

  color: #edf5ff;
  background: #153556;
}

button:hover {
  background: #1d476f;
}

button.danger,
.danger-small {
  border-color: #7a4957;
  background: #47242f;
}

button.danger:hover,
.danger-small:hover {
  background: #5a2b39;
}

.danger-small {
  padding: 0.2rem 0.42rem;
  font-size: 0.7rem;
}

/* ==========================================================================
   SEARCH RESULTS
   ========================================================================== */

.search-results {
  display: grid;

  gap: 0.35rem;

  margin-top: 0.55rem;
}

.search-result {
  display: grid;

  gap: 0.15rem;

  text-align: left;

  background: transparent;
  border-color: #213852;
}

.search-result strong {
  font-size: 0.76rem;
}

.search-result span,
.search-result small {
  color: var(--editor-muted);
  font-size: 0.66rem;
}

.search-result code {
  overflow-wrap: anywhere;

  color: #b8d0ea;
  font-size: 0.64rem;
}

/* ==========================================================================
   PAGE OUTLINE
   ========================================================================== */

.outline-fixed,
.outline-item {
  margin-top: 0.45rem;

  border: 1px solid #213852;
  border-radius: 0.32rem;

  background: #0a1828;
}

.outline-fixed {
  display: grid;

  padding: 0.6rem;
}

.outline-fixed small {
  color: var(--editor-muted);
  font-size: 0.64rem;
}

.outline-item {
  display: grid;
  grid-template-columns: 1fr auto;
}

.outline-open {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  align-items: center;

  gap: 0.45rem;

  border: 0;

  text-align: left;

  background: transparent;
}

.outline-open strong,
.outline-open small {
  display: block;
}

.outline-open strong {
  font-size: 0.72rem;
}

.outline-open small {
  color: var(--editor-muted);
  font-size: 0.62rem;
}

.outline-number {
  color: #8bb0d8;

  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.outline-actions {
  display: flex;
  align-items: center;

  gap: 0.15rem;

  padding-right: 0.35rem;
}

.outline-actions button {
  padding: 0.2rem 0.35rem;
  font-size: 0.7rem;
}

/* ==========================================================================
   WORKSPACE
   ========================================================================== */

.workspace {
  overflow: auto;

  max-height: calc(100vh - 102px);

  padding: 0.9rem;

  border-right: 1px solid var(--editor-line);
}

/* ==========================================================================
   EDITOR DETAILS / PANELS
   ========================================================================== */

details {
  margin-bottom: 0.9rem;

  border: 1px solid var(--editor-line);
  border-radius: 0.38rem;

  background: var(--editor-panel-2);
}

summary {
  cursor: pointer;

  padding: 0.75rem 0.85rem;

  border-bottom: 1px solid var(--editor-line);

  font-size: 0.8rem;
  font-weight: 700;
}

details:not([open]) summary {
  border-bottom: 0;
}

/* ==========================================================================
   EDITOR FORMS
   ========================================================================== */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 0.7rem;

  padding: 0.8rem;
}

.form-grid label {
  display: grid;
  align-content: start;

  gap: 0.25rem;

  padding: 0.55rem;

  border: 1px solid #1e344e;
  border-radius: 0.3rem;

  background: #081523;
}

.form-grid label > span {
  font-size: 0.7rem;
  font-weight: 700;
}

.form-grid label small {
  color: var(--editor-muted);

  font-size: 0.64rem;
  line-height: 1.4;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.checkbox {
  display: flex !important;
  align-items: center !important;
}

.checkbox input {
  width: auto;
}

.form-actions {
  display: flex;
  align-items: center;

  gap: 0.45rem;
}

/* ==========================================================================
   NODE AREA
   ========================================================================== */

.node-help {
  margin-bottom: 0.7rem;

  padding: 0.65rem 0.75rem;

  border-left: 3px solid #3e678f;

  color: #9db3cc;
  background: #0a1b2e;

  font-size: 0.7rem;
  line-height: 1.45;
}

.node-empty,
.node-picker {
  padding: 1rem;

  border: 1px dashed #355373;

  color: var(--editor-muted);
  background: #081421;
}

.node-picker h2 {
  margin-top: 0;

  color: var(--editor-text);
}

.node-picker p {
  font-size: 0.75rem;
}

.node-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);

  gap: 0.5rem;
}

/* ==========================================================================
   NODE FORM
   ========================================================================== */

.node-form {
  border: 1px solid #294560;
  border-radius: 0.35rem;

  background: #091726;
}

.node-form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 1rem;

  padding: 0.8rem;

  border-bottom: 1px solid var(--editor-line);
}

.node-form-head h2 {
  margin: 0.1rem 0;

  font-size: 1rem;
}

.node-form-head small {
  color: var(--editor-muted);
  font-size: 0.63rem;
}

.node-form-head code {
  color: #9cbada;
  font-size: 0.65rem;
}

/* ==========================================================================
   CHILD EDITOR
   ========================================================================== */

.children-editor {
  border-top: 1px solid var(--editor-line);
}

.children-head {
  display: flex;
  align-items: start;
  justify-content: space-between;

  gap: 1rem;

  padding: 0.75rem 0.8rem;
}

.children-head h3 {
  margin: 0;

  font-size: 0.85rem;
}

.children-head p {
  margin: 0.2rem 0 0;

  color: var(--editor-muted);
  font-size: 0.67rem;
}

.children-list {
  display: grid;

  gap: 0.6rem;

  padding: 0 0.8rem 0.8rem;
}

.child-card {
  border: 1px solid #2b4867;
  border-radius: 0.32rem;

  background: #081522;
}

.child-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 0.5rem;

  padding: 0.48rem 0.58rem;

  border-bottom: 1px solid #263f5b;
}

.child-card-head strong {
  font-size: 0.7rem;
}

.child-card-head > div {
  display: flex;
  gap: 0.2rem;
}

.child-card-head button {
  padding: 0.2rem 0.38rem;
  font-size: 0.66rem;
}

/* ==========================================================================
   NODE SUBMIT BAR
   ========================================================================== */

.node-submit-bar {
  position: sticky;
  bottom: 0;

  display: flex;
  justify-content: flex-end;

  gap: 0.5rem;

  padding: 0.65rem 0.8rem;

  border-top: 1px solid var(--editor-line);

  background: #0b1a2b;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   SQL PANEL
   ========================================================================== */

.sql-inner {
  padding: 0.8rem;
}

.sql-inner p {
  color: var(--editor-muted);

  font-size: 0.7rem;
  line-height: 1.45;
}

.sql-inner textarea {
  margin-bottom: 0.55rem;

  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ==========================================================================
   PREVIEW COLUMN — EDITOR CHROME ONLY
   ========================================================================== */

.preview-column {
  overflow: auto;

  max-height: calc(100vh - 102px);

  background:
    linear-gradient(rgba(2, 7, 18, 0.18), rgba(2, 7, 18, 0.4)), #020914;
}

.preview-bar {
  position: sticky;
  top: 0;
  z-index: 20;

  display: flex;
  justify-content: space-between;

  gap: 1rem;

  padding: 0.65rem 0.9rem;

  border-bottom: 1px solid #294a6d;

  color: #e8f2ff;
  background: rgba(16, 37, 62, 0.96);

  backdrop-filter: blur(12px);
}

.preview-bar span {
  color: #a9bdd2;
  font-size: 0.7rem;
}

.preview {
  padding: 1.25rem;
}

/* ==========================================================================
   PREVIEW — SANDBOX RIGHT-COLUMN FOUNDATION
   Everything in this section is scoped to .preview so none of it changes
   the editor forms, sidebar, database view, or other localhost controls.
   ========================================================================== */

.preview .sandbox-entry-preview,
.preview .project-content {
  width: 100%;
  min-width: 0;
  max-width: 1100px;

  margin: 0 auto;
  padding: 24px;

  border: 1px solid rgba(95, 170, 255, 0.2);
  border-radius: 12px;

  color: var(--sandbox-text);

  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 34%),
    rgba(4, 15, 34, 0.9);

  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.04),
    0 18px 44px rgba(0, 0, 0, 0.2);
}

.preview .sandbox-entry-preview *,
.preview .project-content * {
  box-sizing: border-box;
}

.preview .sandbox-entry-preview a,
.preview .project-content a {
  color: inherit;
}

/* ==========================================================================
   PREVIEW — RECORD / PROJECT CONTENT HEADER
   Mirrors the right-column header used by single-project and reference-guide.
   ========================================================================== */

.preview .sandbox-entry-preview > header,
.preview .project-content > header,
.preview .project-detail-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.72fr);
  align-items: end;

  gap: 28px;

  margin: 0 0 22px;
  padding: 0 0 18px;

  border-bottom: 1px solid rgba(95, 170, 255, 0.18);
}

.preview .sandbox-entry-preview > header > div,
.preview .project-content > header > div,
.preview .project-detail-header > div {
  min-width: 0;
}

.preview .sandbox-entry-preview > header small,
.preview .project-content > header small,
.preview .project-detail-header small {
  display: block;

  margin: 0 0 6px;

  color: var(--sandbox-blue);

  font-size: 12px;
  font-weight: 700;

  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.preview .sandbox-entry-preview > header h2,
.preview .project-content > header h2,
.preview .project-detail-header h2 {
  margin: 0;

  color: #f1f7ff;

  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.05;

  letter-spacing: -0.025em;
}

.preview .sandbox-entry-preview > header p,
.preview .project-content > header p,
.preview .project-detail-header > p {
  max-width: 440px;

  margin: 0;

  color: var(--sandbox-muted);

  font-size: 12px;
  line-height: 1.65;

  text-align: right;
}

/* ==========================================================================
   PREVIEW — NAV / BUTTON NODES
   ========================================================================== */

.preview .project-doc-nav,
.preview .project-actions {
  display: flex;
  flex-wrap: wrap;

  gap: 8px;

  margin: 0 0 18px;
}

.preview .project-doc-nav {
  padding-bottom: 14px;

  border-bottom: 1px solid rgba(95, 170, 255, 0.12);
}

.preview .project-doc-nav a,
.preview .project-actions a,
.preview .project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 34px;

  padding: 8px 12px;

  border: 1px solid rgba(95, 200, 255, 0.28);
  border-radius: 5px;

  color: #cfeeff;

  background: linear-gradient(
    145deg,
    rgba(47, 141, 255, 0.1),
    rgba(5, 18, 43, 0.28)
  );

  font-size: 12px;
  font-weight: 600;

  letter-spacing: 0.045em;

  text-decoration: none;

  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.preview .project-doc-nav a:hover,
.preview .project-doc-nav a:focus-visible,
.preview .project-actions a:hover,
.preview .project-actions a:focus-visible,
.preview .project-link:hover,
.preview .project-link:focus-visible {
  border-color: rgba(95, 200, 255, 0.62);

  color: #ffffff;

  background: rgba(47, 141, 255, 0.18);
}

/* ==========================================================================
   PREVIEW — DISPLAY NODE
   ========================================================================== */

.preview .project-display {
  overflow: hidden;

  margin: 0 0 18px;

  border: 1px solid rgba(95, 170, 255, 0.18);
  border-radius: 8px;

  background: rgba(4, 15, 34, 0.76);
}

.preview .project-display .project-preview {
  display: grid;
  place-items: center;

  min-height: 300px;

  overflow: auto;

  padding: 16px;

  background:
    linear-gradient(rgba(95, 170, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 170, 255, 0.025) 1px, transparent 1px),
    rgba(2, 10, 24, 0.62);

  background-size: 32px 32px;
}

.preview .project-display .project-preview > * {
  max-width: 100%;
}

.preview .project-display .project-preview img {
  display: block;

  max-width: 100%;
  height: auto;

  margin: auto;

  border: 1px solid rgba(95, 170, 255, 0.12);
}

.preview .project-display .project-preview iframe {
  width: 100%;
  min-height: 280px;

  border: 0;
}

.preview .project-display + .project-actions,
.preview .project-display .project-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));

  gap: 8px;

  margin: 0;
  padding: 10px;

  border-top: 1px solid rgba(95, 170, 255, 0.14);

  background: rgba(5, 18, 43, 0.7);
}

/* ==========================================================================
   PREVIEW — STANDARD PROJECT DETAIL NODE
   ========================================================================== */

.preview .project-detail {
  overflow: hidden;

  margin: 0 0 16px;

  border: 1px solid rgba(95, 170, 255, 0.17);
  border-radius: 7px;

  background: rgba(6, 22, 47, 0.68);
}

.preview .project-detail > header {
  display: flex;
  /* align-items: center; */
  gap: 12px;
  min-height: 48px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(95, 170, 255, 0.14);
  background: rgba(11, 35, 68, 0.66);
}

.preview .project-detail > header > span {
  flex: 0 0 auto;

  color: var(--sandbox-blue);

  font-size: 12px;
  font-weight: 700;

  letter-spacing: 0.12em;
}

.preview .project-detail > header h3 {
  margin: 0;

  color: #ecf6ff;

  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.preview .project-detail > p {
  margin: 0;

  padding: 15px;

  color: var(--sandbox-muted);

  font-size: 11px;
  line-height: 1.65;
}

/* ==========================================================================
   PREVIEW — PROJECT META / GRID NODE
   ========================================================================== */

.preview .project-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));

  gap: 0;
}

.preview .project-meta > div {
  min-width: 0;

  padding: 14px;

  border-right: 1px solid rgba(95, 170, 255, 0.12);
  border-bottom: 1px solid rgba(95, 170, 255, 0.12);
}

.preview .project-meta > div:last-child {
  border-right: 0;
}

.preview .project-meta small {
  display: block;

  margin-bottom: 5px;

  color: var(--sandbox-blue);

  font-size: 9px;
  font-weight: 700;

  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.preview .project-meta strong {
  display: block;

  color: #eef7ff;

  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
}

.preview .project-meta p {
  margin: 5px 0 0;

  color: var(--sandbox-muted);

<<<<<<< HEAD
  font-size: 11px;
  line-height: 1.55;
=======
  
>>>>>>> a906075 (generate data)
}

/* ==========================================================================
   PREVIEW — PROJECT DOCUMENTATION LINK-ROW STYLE
   Supports HTML entered inside standard/grid children.
   ========================================================================== */

.preview .project-documents {
  display: grid;
}

.preview .project-documents > a {
  position: relative;

  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr) auto;
  align-items: center;

  gap: 16px;

  padding: 12px 14px;

  border-bottom: 1px solid rgba(95, 170, 255, 0.12);

  color: inherit;

  text-decoration: none;
}

.preview .project-documents > a:last-child {
  border-bottom: 0;
}

.preview .project-documents > a:hover,
.preview .project-documents > a:focus-visible {
  background: rgba(95, 200, 255, 0.055);
}

.preview .project-documents > a strong {
  color: #e9f5ff;

<<<<<<< HEAD
  font-size: 11px;
=======
  font-size: 12px;
>>>>>>> a906075 (generate data)
  font-weight: 600;
}

.preview .project-documents > a small {
  color: var(--sandbox-muted);

  font-size: 9px;
  line-height: 1.45;
}

.preview .project-documents > a > span {
  color: var(--sandbox-blue);

  font-size: 20px;
}

/* ==========================================================================
   PREVIEW — PROJECT IMAGES / GALLERY THROUGH GRID OR HTML
   ========================================================================== */

.preview .project-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));

  gap: 10px;

  padding: 10px;
}

.preview .project-images img {
  display: block;

  width: 100%;
  height: auto;

  border: 1px solid rgba(95, 170, 255, 0.14);
}

/* ==========================================================================
   PREVIEW — REFERENCE DOCUMENT
   ========================================================================== */

.preview .project-doc {
  display: grid;

  gap: 16px;
}

.preview .project-doc-section {
  overflow: hidden;

  margin: 0 0 16px;

  border: 1px solid rgba(95, 170, 255, 0.18);
  border-radius: 7px;

  background: rgba(6, 22, 47, 0.7);
}

.preview .project-doc-section > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.65fr);
  align-items: center;

  gap: 18px;

  padding: 12px 14px;

  border-bottom: 1px solid rgba(95, 170, 255, 0.14);

  background: rgba(11, 35, 68, 0.66);
}

/* Editor-generated documentation header has span + h3 directly. */
.preview .project-doc-section > header > span {
  display: block;
  position: static;
  margin-bottom: 0.35rem;
  line-height: 1.2;
  grid-column: 1;
  grid-row: 1;

  align-self: center;

  width: fit-content;

  color: var(--sandbox-blue);

  font-size: 10px;
  font-weight: 700;

  letter-spacing: 0.12em;
}

/* Live reference-guide header has a wrapping div. */
.preview .project-doc-section > header > div {
  display: block;
  display: flex;
  align-items: center;

  gap: 11px;

  min-width: 0;
}

.preview .project-doc-section > header > div > span {
  color: var(--sandbox-blue);

  font-size: 10px;
  font-weight: 700;

  letter-spacing: 0.12em;
}

.preview .project-doc-section > header h3 {
  margin: 0;

  color: #edf7ff;

  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.preview .project-doc-section > header > span + h3 {
  display: block;
  margin-top: 0;
  line-height: 1.25;
  grid-column: 1;
  grid-row: 1;

  margin-left: 126px;
}

.preview .project-doc-section > header > p {
  max-width: 360px;

  margin: 0;

  color: var(--sandbox-muted);

  font-size: 10px;
  line-height: 1.5;

  text-align: right;
}

/* ==========================================================================
   PREVIEW — STANDARD / DOCUMENTATION CHILDREN
   LOCKED-IN STRUCTURE

   Standard and Documentation children are ALWAYS one full-width column.

   Behavior = None:
     full-width content only

   Behavior = Link or Collapsible:
     full-width content + one narrow action column on the right

   Grid and Split nodes are the ONLY node families that create content columns.
   ========================================================================== */

.preview .project-command-list {
  display: block;
}

.preview .project-command {
  position: relative;

  display: block;

  width: 100%;
  min-width: 0;

  margin: 0;
  padding: 12px 14px;

  border-bottom: 1px solid rgba(95, 170, 255, 0.11);

  color: var(--sandbox-text);
  background: transparent;
}

.preview .project-command:last-child {
  border-bottom: 0;
}

.preview .project-command:hover {
  background: rgba(95, 200, 255, 0.028);
}

.preview .project-command > .project-command-title,
.preview .project-command > strong {
  display: block;

  width: 100%;

  margin: 0 0 5px;

  color: #eaf6ff;

<<<<<<< HEAD
  font-size: 11px;
=======
  font-size: 12px;
>>>>>>> a906075 (generate data)
  font-weight: 600;
  line-height: 1.4;
}

.preview .project-command p {
  width: 100%;

  margin: 0 0 6px;

  color: var(--sandbox-muted);
<<<<<<< HEAD

  font-size: 11px;
  line-height: 1.55;
=======
  
>>>>>>> a906075 (generate data)

  overflow-wrap: break-word;
  word-break: normal;
}

.preview .project-command p:last-child {
  margin-bottom: 0;
}

.preview .project-command ul,
.preview .project-command ol {
  width: 100%;

  margin: 6px 0;
  padding-left: 20px;
}

.preview .project-command img {
  display: block;

  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   PREVIEW — STANDARD / DOCUMENTATION LINK OR COLLAPSE ACTION
   Only these behaviors create a second column.
   ========================================================================== */

.preview .project-command:has(> .project-command-action) {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    44px;

  align-items: stretch;

  gap: 0;

  padding: 0;
}

.preview .project-command-content,
.preview .project-command-summary {
  min-width: 0;

  padding: 12px 14px;
}

.preview .project-command-content > .project-command-title,
.preview .project-command-summary > .project-command-title {
  display: block;

  margin: 0 0 5px;

  color: #eaf6ff;

<<<<<<< HEAD
  font-size: 11px;
=======
  font-size: 12px;
>>>>>>> a906075 (generate data)
  font-weight: 600;
  line-height: 1.4;
}

.preview .project-command-action {
  display: grid;

  place-items: center;

  align-self: stretch;

  min-width: 44px;

  padding: 0;

  border: 0;
  border-left: 1px solid rgba(95, 170, 255, 0.14);
  border-radius: 0;

  color: var(--sandbox-blue);

  background: rgba(95, 200, 255, 0.065);

  text-decoration: none;
}

.preview button.project-command-action {
  font: inherit;
}

.preview .project-command-action:hover,
.preview .project-command-action:focus-visible {
  color: #ffffff;

  background: rgba(95, 200, 255, 0.13);
}

.preview .project-command-panel {
  grid-column: 1 / -1;

  padding: 12px 14px;

  border-top: 1px solid rgba(95, 170, 255, 0.12);

  color: var(--sandbox-muted);

  background: rgba(2, 11, 25, 0.36);

<<<<<<< HEAD
  font-size: 11px;
=======
  font-size: 12px;
>>>>>>> a906075 (generate data)
  line-height: 1.6;
}

/* ==========================================================================
   PREVIEW — INLINE CODE INSIDE STANDARD / DOCUMENTATION CONTENT
   Code never creates a content column here.
   ========================================================================== */

.preview .project-command code {
  color: #a8ddff;

  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  font-size: 0.96em;

  overflow-wrap: anywhere;
}

/* ==========================================================================
   PREVIEW — EXAMPLE
   ========================================================================== */

.preview .project-example {
  margin: 12px;

  overflow: hidden;

  border: 1px solid rgba(95, 170, 255, 0.16);
  border-radius: 5px;

  color: #dbefff;
  background: #050e1b;
}

.preview .project-example > small {
  display: block;

  padding: 8px 10px 0;

  color: var(--sandbox-blue);

  font-size: 8.5px;
  font-weight: 700;

  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.preview .project-example pre {
  overflow: auto;

  margin: 0;
  padding: 10px;
}

.preview .project-example code {
  color: #cdeaff;

  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
<<<<<<< HEAD
  font-size: 11px;
  line-height: 1.55;
=======
  
>>>>>>> a906075 (generate data)
}

/* ==========================================================================
   PREVIEW — NOTE
   ========================================================================== */

.preview .project-note {
  display: block;

  margin: 12px;
  padding: 11px 12px;

  border: 1px solid rgba(95, 200, 255, 0.16);
  border-left: 3px solid var(--sandbox-blue);

  color: var(--sandbox-muted);
  background: var(--sandbox-note);

<<<<<<< HEAD
  font-size: 11px;
  line-height: 1.55;
=======
  
>>>>>>> a906075 (generate data)
}

.preview .project-note strong {
  color: #e8f5ff;
}

.preview .project-note p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   PREVIEW — SPLIT NODE
   ========================================================================== */

.preview .project-split-list {
  display: grid;
}

.preview .project-split-row {
  margin: 0;

  border-bottom: 1px solid rgba(95, 170, 255, 0.12);
}

.preview .project-split-row:last-child {
  border-bottom: 0;
}

.preview .project-split-child-head {
  width: 100%;

  padding: 10px 12px;

  border-bottom: 1px solid rgba(95, 170, 255, 0.1);

  color: #dceeff;
  background: rgba(95, 200, 255, 0.035);
}

.preview .project-split {
  display: grid;
}

.preview .project-split--small-left {
  grid-template-columns: 1fr 3fr;
}

.preview .project-split--equal {
  grid-template-columns: 1fr 1fr;
}

.preview .project-split--small-right {
  grid-template-columns: 2fr 1fr;
}

.preview .project-split--three-column {
  grid-template-columns: 1fr 2fr 1fr;
}

.preview .project-split-cell {
  min-width: 0;

  padding: 11px 12px;

  border-right: 1px solid rgba(95, 170, 255, 0.12);

  color: var(--sandbox-muted);

<<<<<<< HEAD
  font-size: 11px;
  line-height: 1.55;
=======
  
>>>>>>> a906075 (generate data)
}

.preview .project-split-cell:last-child {
  border-right: 0;
}

.preview .project-split-cell code {
  color: #a8ddff;
  display: block;

  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ==========================================================================
   PREVIEW — GENERIC HTML ENTERED BY USER
   ========================================================================== */

.preview .sandbox-entry-preview h1,
.preview .project-content h1 {
  color: #f2f8ff;
}

.preview .sandbox-entry-preview h4,
.preview .sandbox-entry-preview h5,
.preview .sandbox-entry-preview h6,
.preview .project-content h4,
.preview .project-content h5,
.preview .project-content h6 {
  color: #e6f3ff;
}

.preview .sandbox-entry-preview p,
.preview .project-content p {
  overflow-wrap: anywhere;
}

.preview .sandbox-entry-preview code,
.preview .project-content code {
  max-width: 100%;
}

.preview .sandbox-entry-preview table,
.preview .project-content table {
  width: 100%;

  border-collapse: collapse;

  color: var(--sandbox-text);

<<<<<<< HEAD
  font-size: 11px;
=======
  font-size: 12px;
>>>>>>> a906075 (generate data)
}

.preview .sandbox-entry-preview th,
.preview .sandbox-entry-preview td,
.preview .project-content th,
.preview .project-content td {
  padding: 9px 10px;

  border: 1px solid rgba(95, 170, 255, 0.14);

  text-align: left;
  vertical-align: top;
}

.preview .sandbox-entry-preview th,
.preview .project-content th {
  color: #eaf6ff;
  background: rgba(95, 200, 255, 0.06);
}

.preview .sandbox-entry-preview ul,
.preview .sandbox-entry-preview ol,
.preview .project-content ul,
.preview .project-content ol {
  color: var(--sandbox-muted);
}

.preview .sandbox-entry-preview hr,
.preview .project-content hr {
  border: 0;
  border-top: 1px solid rgba(95, 170, 255, 0.15);
}

/* ==========================================================================
   PREVIEW — PROJECT LIBRARY / INNER.HTML
   These styles are intentionally scoped to .preview so the editor itself
   keeps its own controls, spacing and colors.
   ========================================================================== */

.preview .project-group {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);

  overflow: hidden;

  margin: 0 0 16px;

  border: 1px solid rgba(95, 170, 255, 0.18);
  border-radius: 8px;

  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 32%),
    rgba(5, 18, 43, 0.66);
}

.preview .project-group > header {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;

  gap: 8px;

  padding: 14px 12px;

  border-right: 1px solid rgba(95, 170, 255, 0.18);

  text-align: center;

  background: rgba(4, 16, 38, 0.55);
}

.preview .project-group > header > span {
  flex: 0 0 46px;

  width: 46px;
  height: 46px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(95, 200, 255, 0.3);
  border-radius: 9px;

  color: var(--sandbox-blue);

  background: radial-gradient(
    circle,
    rgba(95, 200, 255, 0.13),
    rgba(5, 15, 35, 0.9) 70%
  );

  font-size: 18px;

  box-shadow:
    inset 0 0 10px rgba(95, 200, 255, 0.07),
    0 0 8px rgba(95, 200, 255, 0.08);
}

.preview .project-group > header strong {
  display: block;

  color: #edf6ff;

  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
}

.preview .project-group > header small {
  display: block;

  color: #7890aa;

  font-size: 8px;
  line-height: 1.35;
}

.preview .project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 8px;

  padding: 10px;
}

.preview .project-grid > a {
  min-width: 0;

  display: flex;
  align-items: center;

  gap: 9px;

  padding: 10px;

  border: 1px solid rgba(95, 170, 255, 0.2);
  border-radius: 9px;

  color: inherit;
  background: rgba(47, 141, 255, 0.08);

  text-decoration: none;
}

.preview .project-grid > a:hover,
.preview .project-grid > a:focus-visible {
  background: rgba(47, 141, 255, 0.16);
}

.preview .project-content .project-icon {
  --icon-color: #eaf7ff;

  flex: 0 0 46px;

  width: 46px;
  height: 46px;

  display: grid;
  place-items: center;

  border: 1px solid color-mix(in srgb, var(--icon-color) 45%, transparent);
  border-radius: 9px;

  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--icon-color) 14%, transparent),
    rgba(5, 15, 35, 0.9) 70%
  );

  color: var(--icon-color);

  font-size: 11px;
  font-weight: 600;

  text-shadow: 0 0 7px var(--icon-color);

  box-shadow:
    inset 0 0 10px color-mix(in srgb, var(--icon-color) 10%, transparent),
    0 0 8px color-mix(in srgb, var(--icon-color) 18%, transparent);
}

.preview .project-content .project-icon img,
.preview .project-content .project-icon svg {
  width: 65%;
  height: 65%;

  object-fit: contain;
}

.preview .project-content .project-icon.blue {
  --icon-color: #4b96ff;
}

.preview .project-content .project-icon.cyan {
  --icon-color: #41dce9;
}

.preview .project-content .project-icon.purple {
  --icon-color: #a768ff;
}

.preview .project-content .project-icon.gold {
  --icon-color: #ffc461;
}

.preview .project-content .project-icon.green {
  --icon-color: #65e5a0;
}

.preview .project-content .project-icon.red {
  --icon-color: #ff6c80;
}

.preview .project-grid > a > span:last-child {
  min-width: 0;
}

.preview .project-grid strong {
  display: block;
  overflow: hidden;

  color: #edf6ff;

  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview .project-grid small {
  display: block;

  margin-top: 3px;

  color: #7890aa;

  font-size: 8px;
  line-height: 1.35;
}

//* Prevent preview header labels and headings from overlapping */
.preview header > span + h3 {
  grid-column: auto;
  grid-row: auto;
  margin-left: 0;
}

.preview header > span {
  position: static;
}

.preview header:has(> span + h3) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}
.database-view,
#databaseView,
.db-view {
  position: static !important;

  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;

  z-index: auto !important;

  float: none !important;
  clear: both;

  transform: none !important;

  width: 100% !important;
  max-width: none !important;

  margin: 2rem 0 0 !important;
}

.editor-layout {
  position: relative;
  z-index: auto;
}

.sidebar,
.workspace,
.preview-column {
  position: relative;
  z-index: auto;
}

.generated-panel,
.database-view {
  isolation: auto;
}

/* ==========================================================================
   GENERATED HTML PANEL
   ========================================================================== */

.generated-panel {
  margin: 1rem;

  color: var(--editor-text);
  background: var(--editor-panel-2);
}

.generated-panel textarea {
  width: calc(100% - 1.4rem);

  margin: 0.7rem;

  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.generated-panel button {
  margin: 0 0.7rem 0.7rem;
}

/* ==========================================================================
   DATABASE VIEW — BELOW EDITOR
   ========================================================================== */

.database-view {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);

  width: 100%;
  min-height: 420px;

  margin-top: 2rem;

  border-top: 2px solid var(--editor-line);

  background: #081421;
}

.database-view[hidden] {
  display: none;
}

.database-view aside {
  padding: 1rem;

  border-right: 1px solid var(--editor-line);

  background: #081421;
}

.database-view aside h2 {
  margin-top: 0;

  font-size: 0.85rem;
}

.db-table-list {
  display: grid;

  gap: 0.35rem;
}

.db-table-list button {
  text-align: left;
}

.db-table-area {
  min-width: 0;

  overflow-x: auto;

  padding: 1rem;

  background: #07111f;
}

.db-table-wrap {
  overflow-x: auto;

  border: 1px solid var(--editor-line);
}

.db-table-wrap table {
  width: 100%;

  border-collapse: collapse;

  font-size: 0.7rem;
}

.db-table-wrap th,
.db-table-wrap td {
  max-width: 360px;

  padding: 0.45rem 0.55rem;

  border: 1px solid var(--editor-line);

  text-align: left;
  vertical-align: top;

  overflow-wrap: anywhere;
}

.db-table-wrap th {
  position: sticky;
  top: 0;

  background: #10243b;
}

.empty {
  color: var(--editor-muted);
  font-size: 0.72rem;
}

/* ==========================================================================
   RESPONSIVE — EDITOR LAYOUT
   ========================================================================== */

@media (max-width: 1200px) {
  .editor-layout {
    grid-template-columns: 260px 1fr;
  }

  .preview-column {
    grid-column: 1 / -1;

    max-height: none;

    border-top: 1px solid var(--editor-line);
  }

  .workspace,
  .sidebar {
    max-height: none;
  }

  .database-view {
    grid-template-columns: 200px minmax(0, 1fr);
  }
}

/* ==========================================================================
   RESPONSIVE — SANDBOX PREVIEW, TABLET
   This follows the uploaded Sandbox responsive behavior: project content
   tightens, command rows keep a compact code column.
   ========================================================================== */

@media (max-width: 1100px) {
  .preview {
    padding: 18px;
  }

  .preview .project-group {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .preview .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preview .sandbox-entry-preview,
  .preview .project-content {
    padding: 18px;
  }
}

/* ==========================================================================
   RESPONSIVE — PHONE
   ========================================================================== */

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .status {
    text-align: left;
  }

  .editor-layout,
  .database-view {
    display: block;
  }

  .sidebar {
    max-height: none;

    border-right: 0;
  }

  .workspace {
    max-height: none;

    border-right: 0;
  }

  .form-grid,
  .node-picker-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .wide {
    grid-column: auto;
  }

  .database-view aside {
    border-right: 0;
    border-bottom: 1px solid var(--editor-line);
  }

  .preview {
    padding: 12px;
  }

  .preview .sandbox-entry-preview,
  .preview .project-content {
    width: 100%;
    min-width: 0;

    padding: 12px;
  }

  .preview .sandbox-entry-preview > header,
  .preview .project-content > header,
  .preview .project-detail-header {
    grid-template-columns: 1fr;

    gap: 7px;

    align-items: start;

    margin-bottom: 16px;
  }

  .preview .sandbox-entry-preview > header h2,
  .preview .project-content > header h2,
  .preview .project-detail-header h2 {
    font-size: 23px;
  }

  .preview .sandbox-entry-preview > header p,
  .preview .project-content > header p,
  .preview .project-detail-header > p {
    width: 100%;
    max-width: none;



    text-align: left;
  }

  .preview .project-doc-nav {
    flex-wrap: nowrap;

    gap: 6px;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 8px 0 10px;
  }

  .preview .project-doc-nav a {
    flex: 0 0 auto;

    white-space: nowrap;
  }

  .preview .project-doc {
    gap: 14px;
  }

  .preview .project-group {
    grid-template-columns: 1fr;
  }

  .preview .project-group > header {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;

    gap: 10px;

    padding: 11px 12px;

    border-right: 0;
    border-bottom: 1px solid rgba(95, 170, 255, 0.18);

    text-align: left;
  }

  .preview .project-group > header > span {
    flex: 0 0 38px;

    width: 38px;
    height: 38px;

    font-size: 15px;
  }

  .preview .project-group > header small {
    margin-top: 2px;
  }

  .preview .project-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));

    gap: 7px;

    padding: 9px;
  }

  .preview .project-grid > a {
    min-width: 0;

    padding: 9px;
  }

  .preview .project-content .project-icon {
    flex: 0 0 40px;

    width: 40px;
    height: 40px;

    font-size: 12px;
  }

  .preview .project-grid strong {
    white-space: normal;

    overflow: visible;
    text-overflow: clip;

    font-size: 12px;
  }

  .preview .project-doc-section > header {
    grid-template-columns: 1fr;

    gap: 7px;

    align-items: start;

    padding: 11px 12px;
  }

  .preview .project-doc-section > header > p {
    max-width: none;

    text-align: left;
  }


/* 
  .preview .project-command p {
    font-size: 12px;
  } */
  .preview .project-command:has(> .project-command-action) {
    grid-template-columns: minmax(0, 1fr) 40px;
  }

  .preview .project-command-action {
    min-width: 40px;
  }

  .preview .project-example {
    margin: 0 12px 12px;
  }

  .preview .project-example pre {
    padding: 11px;
  }

  .preview .project-example code {
    font-size: 12px;
  }

  .preview .project-note {
    margin: 0 12px 12px;

    padding: 10px 12px;
  }

  .preview .project-display .project-preview {
    min-height: 180px;
  }

  .preview .project-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));

    gap: 7px;
  }

  .preview .project-link {
    text-align: center;
  }

  .preview .project-detail > header {
    padding: 11px 12px;
  }

  .preview .project-detail > p {
    padding: 12px;

    font-size: 12px;
  }

  .preview .project-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preview .project-meta > div {
    padding: 11px;
  }

  .preview .project-meta > div + div {
    border-left: 0;
  }

  .preview .project-meta > div:nth-child(n + 3) {
    border-top: 1px solid rgba(95, 170, 255, 0.12);
  }

  .preview .project-meta > div:nth-child(even) {
    border-left: 1px solid rgba(95, 170, 255, 0.12);
  }

  .preview .project-documents > a {
    grid-template-columns: 1fr;

    gap: 4px;

    padding: 11px 34px 11px 12px;
  }

  .preview .project-documents > a > span {
    position: absolute;
    top: 50%;
    right: 12px;

    transform: translateY(-50%);
  }

  .preview .project-images {
    grid-template-columns: 1fr;

    gap: 8px;

    padding: 9px;
  }

  .preview .project-split--small-left,
  .preview .project-split--equal,
  .preview .project-split--small-right,
  .preview .project-split--three-column {
    grid-template-columns: 1fr;
  }

  .preview .project-split-cell {
    border-right: 0;
    border-bottom: 1px solid rgba(95, 170, 255, 0.12);
  }

  .preview .project-split-cell:last-child {
    border-bottom: 0;
  }
}

/* ==========================================================================
   FINAL PREVIEW CHILD LAYOUT CORRECTION
   Standard/documentation children contain arbitrary HTML and therefore
   must not treat each direct HTML element as a separate grid column.
   ========================================================================== */

.preview .project-command {
  position: relative;
  display: block;
  min-width: 0;
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(95, 170, 255, 0.11);
  color: var(--sandbox-text);
  background: transparent;
}

.preview .project-command:last-child {
  border-bottom: 0;
}

.preview .project-command:hover {
  background: rgba(95, 200, 255, 0.028);
}

.preview .project-command > .project-command-title,
.preview .project-command > strong {
  display: block;
  margin: 0 0 5px;
  color: #eaf6ff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.preview .project-command p {
  margin: 0 0 6px;
  color: var(--sandbox-muted);
  
  overflow-wrap: break-word;
  word-break: normal;
}

.preview .project-command p:last-child {
  margin-bottom: 0;
}

.preview .project-command ul,
.preview .project-command ol {
  margin: 6px 0;
  padding-left: 20px;
}

.preview .project-command img {
  max-width: 100%;
  height: auto;
}

/* Link/collapse children get content + action columns. */
.preview .project-command:has(> .project-command-action) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  padding: 0;
}

.preview .project-command-content,
.preview .project-command-summary {
  min-width: 0;
  padding: 12px 14px;
}

.preview .project-command-action {
  display: grid;
  place-items: center;
  align-self: stretch;
  min-width: 44px;
  padding: 0;
  border: 0;
  border-left: 1px solid rgba(95, 170, 255, 0.14);
  border-radius: 0;
  color: var(--sandbox-blue);
  background: rgba(95, 200, 255, 0.065);
  text-decoration: none;
}

.preview .project-command-action:hover,
.preview .project-command-action:focus-visible {
  color: #fff;
  background: rgba(95, 200, 255, 0.13);
}

.preview .project-command-panel {
  grid-column: 1 / -1;
  padding: 12px 14px;
  border-top: 1px solid rgba(95, 170, 255, 0.12);
  color: var(--sandbox-muted);
  background: rgba(2, 11, 25, 0.36);
  font-size: 12px;
  line-height: 1.6;
}

/* Reference-guide command rows alone use command + description columns. */
.preview .project-command:has(> code) {
  display: grid;
  grid-template-columns: minmax(95px, 125px) minmax(0, 1fr);
  padding: 0;
}

.preview .project-command > code {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid rgba(95, 170, 255, 0.12);
  color: #a8ddff;
  background: rgba(2, 11, 25, 0.58);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
  
}

.preview .project-command:has(> code) > div:not(.project-command-action) {
  min-width: 0;
  padding: 12px 14px;
}

.preview .project-command:has(> code):has(> .project-command-action) {
  grid-template-columns: minmax(95px, 125px) minmax(0, 1fr) 44px;
}

/* ==========================================================================
   DATABASE FLOW GUARANTEE
   The database belongs below the complete editor, never over the forms.
   ========================================================================== */

.database-view,
#databaseView,
.db-view {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  float: none !important;
  clear: both !important;
  transform: none !important;
  z-index: auto !important;
  width: 100% !important;
  max-width: none !important;
  margin: 2rem 0 0 !important;
}

.database-view[hidden],
#databaseView[hidden],
.db-view[hidden] {
  display: none !important;
}

/* ==========================================================================
   NODE MODEL V3 — EDITOR HIERARCHY / POSITION / MODE
   ========================================================================== */

.page-structure-section {
  scroll-margin-top: 90px;
}

#node-editor {
  scroll-margin-top: 90px;
}

.outline-group {
  margin-top: 0.45rem;
  border: 1px solid #213852;
  border-radius: 0.35rem;
  overflow: hidden;
  background: #081523;
}

.outline-parent-row,
.outline-child-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: stretch;
}

.outline-parent-row {
  background: #0a1828;
}

.outline-child-row {
  border-top: 1px solid #1d324a;
  background: #071321;
}

.outline-toggle,
.outline-tree-branch {
  width: 2rem;
  min-width: 2rem;
  display: grid;
  place-items: center;
  border: 0;
  border-right: 1px solid #1f3752;
  border-radius: 0;
  color: #8eb3d9;
  background: transparent;
  font-size: 0.78rem;
}

.outline-toggle:disabled {
  cursor: default;
  opacity: 0.45;
}

.outline-tree-branch {
  color: #496a8d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.outline-open-parent,
.outline-open-child {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.outline-open-child {
  padding-left: 0.7rem;
}

.outline-open-parent:hover,
.outline-open-child:hover,
.outline-open-parent:focus-visible,
.outline-open-child:focus-visible {
  background: rgba(95, 200, 255, 0.06);
}

.outline-label {
  min-width: 0;
}

.outline-label strong {
  overflow-wrap: anywhere;
}

.outline-child-row .outline-label strong {
  color: #c8d8e9;
  font-weight: 500;
}

.outline-child-row .outline-label small {
  color: #6f88a4;
}

.outline-parent-row .outline-actions,
.outline-child-row .outline-actions {
  padding: 0.3rem;
  border-left: 1px solid #1f3752;
}

.outline-children[hidden] {
  display: none;
}

/* ==========================================================================
   NODE FORM — IDENTIFIABLE PARENT / CHILD EDITOR
   ========================================================================== */

.node-form {
  scroll-margin-top: 90px;
}

.node-form-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.node-identity-grid {
  border-bottom: 1px solid var(--editor-line);
}

.node-content-fields {
  padding-top: 0.9rem;
}

.node-assignment-note {
  margin: 0 0.8rem 0.8rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #274866;
  border-left: 3px solid #4779a8;
  border-radius: 0.25rem;
  color: #9fb5cb;
  background: #081728;
  font-size: 0.68rem;
  line-height: 1.5;
}

.node-assignment-note strong {
  color: #d9e8f7;
}

.node-field {
  transition:
    opacity 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}

.node-field.field-unassigned {
  opacity: 0.46;
  background: #07101b;
  border-color: #17283c;
}

.node-field.field-unassigned > span::after {
  content: " · unassigned";
  color: #60758c;
  font-size: 0.62rem;
  font-weight: 400;
}

.node-field.field-unassigned input,
.node-field.field-unassigned select,
.node-field.field-unassigned textarea {
  cursor: not-allowed;
  color: #6f8296;
  background: #050c14;
  border-color: #1b2a3b;
}

.node-field.field-assigned {
  opacity: 1;
}

.raw-code-input {
  min-height: 190px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.76rem;
  line-height: 1.5;
  tab-size: 2;
}

/* ==========================================================================
   PREVIEW — NODE MODEL V3
   Parent wrappers determine child layout.
   ========================================================================== */

.preview .project-command-list {
  display: block;
  width: 100%;
}

.preview .project-command {
  width: 100%;
  min-width: 0;
}

/* Standard / Code Link + Collapse: only the action area becomes a second column. */
.preview .project-command:has(> .project-command-action) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: stretch;
  gap: 0;
  padding: 0;
}

.preview .project-command-content,
.preview .project-command-summary {
  min-width: 0;
  padding: 12px 14px;
}

.preview .project-command-title {
  display: block;
  margin: 0 0 6px;
  color: #eaf6ff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.preview .project-command-panel {
  grid-column: 1 / -1;
  min-width: 0;
}

/* Split default rows remain full-width rows containing their own split grid. */
.preview .project-doc-section .project-command {
  padding: 0;
}

.preview .project-split-child-head {
  width: 100%;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(95, 170, 255, 0.1);
  color: #dceeff;
  background: rgba(95, 200, 255, 0.035);
}

.preview .project-split {
  display: grid;
  width: 100%;
  min-width: 0;
}

.preview .project-split--small-left {
  grid-template-columns: 1fr 3fr;
}

.preview .project-split--equal {
  grid-template-columns: 1fr 1fr;
}

.preview .project-split--small-right {
  grid-template-columns: 3fr 1fr;
}

.preview .project-split--three-column {
  grid-template-columns: 1fr 3fr 1fr;
}

.preview .project-split-cell {
  position: relative;
  min-width: 0;
  padding: 11px 12px;
  border-right: 1px solid rgba(95, 170, 255, 0.12);
  color: var(--sandbox-muted);
  
}

.preview .project-split-cell:last-child {
  border-right: 0;
}

/*
  Split Link mode:
  HTML stays ordinary HTML. Only the dedicated arrow action is clickable.
*/
.preview .project-split-cell > .project-command-action {
  float: right;
  width: 40px;
  min-width: 40px;
  min-height: 36px;
  margin: -2px -2px -2px 10px;
  border: 1px solid rgba(95, 170, 255, 0.14);
  border-radius: 4px;
}

/* Split Collapse panel uses its split grid when expanded. */
.preview .project-command-panel.project-split {
  display: grid;
  padding: 0;
}

.preview .project-command-panel.project-split[hidden] {
  display: none;
}

/* ==========================================================================
   PREVIEW — CODE / EXAMPLES
   ========================================================================== */

.preview .project-example {
  width: auto;
  min-width: 0;
}

.preview .project-example pre {
  overflow: auto;
  max-width: 100%;
}

.preview .project-example code {
  white-space: pre;
  word-break: normal;
  overflow-wrap: normal;
}

/* ==========================================================================
   PREVIEW — DISPLAY / PREVIEW
   ========================================================================== */

.preview .project-display {
  display: block;
}

.preview .project-display > .project-detail {
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(95, 170, 255, 0.16);
  border-radius: 0;
}

.preview .project-display-details {
  padding: 12px 14px;
  color: var(--sandbox-muted);
<<<<<<< HEAD
  font-size: 11px;
=======
  font-size: 12px;
>>>>>>> a906075 (generate data)
  line-height: 1.6;
}

/* ==========================================================================
   RESPONSIVE — NODE MODEL V3
   ========================================================================== */

@media (max-width: 760px) {
  .outline-parent-row,
  .outline-child-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .outline-parent-row .outline-actions,
  .outline-child-row .outline-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    border-top: 1px solid #1f3752;
    border-left: 0;
  }

  .preview .project-command:has(> .project-command-action) {
    grid-template-columns: minmax(0, 1fr) 40px;
  }

  .preview .project-split--small-left,
  .preview .project-split--equal,
  .preview .project-split--small-right,
  .preview .project-split--three-column {
    grid-template-columns: 1fr;
  }

  .preview .project-split-cell {
    border-right: 0;
    border-bottom: 1px solid rgba(95, 170, 255, 0.12);
  }

  .preview .project-split-cell:last-child {
    border-bottom: 0;
  }
}

/* ==========================================================================
   DATABASE FLOW GUARANTEE — KEEP BELOW EDITOR
   ========================================================================== */

.database-view,
#database-view,
#databaseView,
.db-view {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  float: none !important;
  clear: both !important;
  transform: none !important;
  z-index: auto !important;
  width: 100% !important;
  max-width: none !important;
  margin: 2rem 0 0 !important;
}

.database-view[hidden],
#database-view[hidden],
#databaseView[hidden],
.db-view[hidden] {
  display: none !important;
}

/* ==========================================================================
   EDITOR STATE SEPARATION — ENTRY vs NODE
   ========================================================================== */

.entry-panel--compact {
  margin-bottom: 1rem;
  border: 1px solid var(--editor-line);
  border-radius: 0.4rem;
  background: #081421;
  overflow: hidden;
}

.entry-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(95, 170, 255, 0.1);
}

.entry-summary-bar h2 {
  margin: 0.12rem 0 0.25rem;
}

.entry-summary-bar p {
  margin: 0;
  color: var(--editor-muted);
  font-size: 0.72rem;
}

.entry-summary-bar code {
  display: inline-block;
  margin-top: 0.35rem;
  color: #7fa6cb;
  font-size: 0.68rem;
}

.entry-summary-label,
.node-editor-shell-head small {
  color: #6d8fb0;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.entry-summary-actions {
  flex: 0 0 auto;
}

#entry-form[hidden] {
  display: none !important;
}

#entry-form:not([hidden]) {
  border-top: 1px solid var(--editor-line);
}

.node-editor-shell {
  margin-top: 0.8rem;
  border: 1px solid #223b55;
  border-radius: 0.4rem;
  background: #07121f;
  overflow: hidden;
}

.node-editor-shell.is-active {
  border-color: #456d94;
  box-shadow: 0 0 0 1px rgba(93, 160, 220, 0.08);
}

.node-editor-shell-head {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid #213852;
  background: #091827;
}

.node-editor-shell-head h2 {
  margin: 0.12rem 0 0;
  color: #d9e9f8;
  font-size: 0.92rem;
}

#node-editor {
  margin-top: 0;
}

@media (max-width: 700px) {
  .entry-summary-bar {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ==========================================================================
   DATABASE TABLE — WIDE HORIZONTAL SCROLL + SORTABLE HEADERS
   ========================================================================== */

/*
  Do not squeeze the database table to the viewport. The table keeps the
  natural width of its columns and the wrapper scrolls left/right.
*/
.db-table-area {
  min-width: 0;
  overflow: hidden;
}

.db-table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-bottom: 0.55rem;
  color: var(--editor-muted);
  font-size: 0.68rem;
}

.db-table-toolbar strong {
  color: var(--editor-text);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.db-table-toolbar small {
  margin-left: auto;
}

.db-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.db-table-wrap:focus-visible {
  outline: 2px solid rgba(95, 170, 255, 0.45);
  outline-offset: 2px;
}

.db-table-wrap table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
}

.db-table-wrap th,
.db-table-wrap td {
  width: auto;
  min-width: max-content;
  max-width: none;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

/*
  Keep long text fields readable as their own wide columns rather than wrapping
  them into narrow vertical strips.
*/
.db-table-wrap td[data-column="description"],
.db-table-wrap td[data-column="notes"],
.db-table-wrap td[data-column="content"],
.db-table-wrap td[data-column="metadata"] {
  min-width: 360px;
  max-width: 640px;
  white-space: normal;
  overflow-wrap: break-word;
}

.db-table-wrap th {
  z-index: 2;
  padding: 0;
}

.db-sort-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  width: 100%;
  min-width: max-content;
  padding: 0.48rem 0.6rem;
  border: 0;
  border-radius: 0;
  color: #d9e9f8;
  background: transparent;
  text-align: left;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.db-sort-button:hover,
.db-sort-button:focus-visible,
.db-sort-button.is-sorted {
  background: rgba(95, 200, 255, 0.09);
}

.db-sort-indicator {
  color: #70c7f4;
  font-size: 0.58rem;
}

.db-record-action,
.db-record-action-heading {
  position: sticky;
  right: 0;
  z-index: 1;
  background: #081421;
}

.db-record-action-heading {
  z-index: 3;
  padding: 0.48rem 0.6rem !important;
  background: #10243b;
}

.db-record-action button {
  white-space: nowrap;
}

@media (max-width: 700px) {
  .db-table-toolbar small {
    width: 100%;
    margin-left: 0;
  }
}

/* ==========================================================================
   DATABASE BULK SELECTION + DATABASE DANGER ZONE
   ========================================================================== */

.database-danger-zone {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 110, 110, 0.22);
}

.database-danger-zone h3 {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  color: #ffd1d1;
}

.database-danger-zone p {
  margin: 0 0 0.75rem;
  color: var(--editor-muted);
  font-size: 0.68rem;
  line-height: 1.45;
}

.database-danger-zone .danger {
  width: 100%;
}

.db-selected-count {
  color: #b8d5ee;
  font-size: 0.68rem;
}

#db-delete-selected {
  margin-left: auto;
  white-space: nowrap;
}

.db-select-heading,
.db-select-cell {
  position: sticky;
  left: 0;
  z-index: 3;
  min-width: 42px !important;
  width: 42px !important;
  text-align: center;
  background: #0b1a2a;
}

.db-select-heading {
  z-index: 5;
  background: #10243b;
}

.db-select-heading input,
.db-select-cell input {
  width: 15px;
  height: 15px;
  margin: 0;
  cursor: pointer;
}

.db-table-wrap tbody tr:has(.db-select-cell input:checked) td {
  background-color: rgba(85, 154, 211, 0.08);
}

.db-table-wrap tbody tr:has(.db-select-cell input:checked) .db-select-cell {
  background: #132a40;
}

@media (max-width: 900px) {
  #db-delete-selected {
    margin-left: 0;
  }
}

.project-types {
  display: grid;
  gap: 14px;
}

/* ---------- TYPE CARD ---------- */

.project-types button {
  width: 100%;

  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;

  padding: 15px;

  border: 1px solid rgba(105, 180, 255, 0.25);
  border-radius: 9px;

  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 35%),
    rgba(5, 18, 43, 0.72);

  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.05),
    0 10px 25px rgba(0, 0, 0, 0.16);

  color: var(--text);

  text-align: left;

  cursor: pointer;

  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

/* ---------- ICON ---------- */

.project-types button > span:first-child {
  width: 50px;
  height: 50px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(95, 200, 255, 0.42);
  border-radius: 9px;

  background: radial-gradient(
    circle,
    rgba(95, 200, 255, 0.16),
    rgba(5, 18, 43, 0.8) 70%
  );

  color: var(--blue);

  font-size: 23px;

  text-shadow: 0 0 6px rgba(95, 200, 255, 0.8);

  box-shadow:
    inset 0 0 12px rgba(95, 200, 255, 0.08),
    0 0 10px rgba(95, 200, 255, 0.1);
}

/* ---------- TEXT ---------- */

.project-types button > span:last-child {
  display: grid;
  gap: 4px;
}

.project-types strong {
  color: var(--blue);

  font-size: 13px;
  font-weight: 500;

  text-transform: uppercase;
  letter-spacing: 0.035em;
}

.project-types small {
  color: #b8c7d8;

  font-size: 11px;
  line-height: 1.45;
}

/* ==================================================
   HOVER
   ================================================== */

.project-types button:hover,
.project-types button:focus-visible {
  transform: translateX(3px);

  border-color: rgba(95, 200, 255, 0.5);

  background:
    linear-gradient(145deg, rgba(95, 200, 255, 0.08), transparent 40%),
    rgba(6, 23, 52, 0.88);

  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.07),
    0 12px 28px rgba(0, 0, 0, 0.2),
    0 0 14px rgba(64, 158, 255, 0.08);
}

/* ==================================================
   ACTIVE TYPE
   ================================================== */

.project-types button[aria-current="true"] {
  border-color: rgba(95, 200, 255, 0.55);

  background:
    linear-gradient(145deg, rgba(47, 141, 255, 0.16), transparent 45%),
    rgba(6, 23, 52, 0.9);

  box-shadow:
    inset 3px 0 var(--blue),
    0 0 16px rgba(64, 158, 255, 0.9);
}

.project-types button[aria-current="true"] > span:first-child {
  border-color: rgba(95, 200, 255, 0.7);

  box-shadow:
    inset 0 0 14px rgba(95, 200, 255, 0.12),
    0 0 12px rgba(95, 200, 255, 0.18);
}
/* ==================================================
   RIGHT CONTENT AREA
   ================================================== */

.project-content {
  min-width: 0;

  padding: 24px;

  border: 1px solid rgba(105, 180, 255, 0.28);
  border-radius: 9px;

  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 30%),
    rgba(5, 18, 43, 0.74);

  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.28),
    inset 0 1px rgba(255, 255, 255, 0.06),
    0 0 22px rgba(64, 158, 255, 0.08);
}

/* ==================================================
   CONTENT HEADER
   ================================================== */

.project-content > header {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
font-size: 12px;;
  margin-bottom: 20px;
}

.project-content > header small {
  display: block;

  margin-bottom: 5px;

  color: var(--blue);

  font-size: 12px;
  letter-spacing: 0.08em;
}

.project-content > header h2 {
  color: white;

  font-size: clamp(24px, 2vw, 32px);
  font-weight: 500;
}

.project-content > header p {
  max-width: 380px;

  color: #b8c7d8;

  

  text-align: right;
}

/* ==================================================
   PROJECT GROUP
   ================================================== */

.project-group {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);

  border: 1px solid rgba(95, 170, 255, 0.2);
  border-radius: 9px;

  background: rgba(3, 14, 34, 0.52);

  overflow: hidden;
}

.project-group + .project-group {
  margin-top: 14px;
}

/* ---------- GROUP LABEL ---------- */

.project-group > header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;

  padding: 18px 14px;

  border-right: 1px solid rgba(95, 170, 255, 0.18);

  background: linear-gradient(
    145deg,
    rgba(47, 141, 255, 0.08),
    transparent 70%
  );
}

.project-group > header > span {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(95, 200, 255, 0.4);
  border-radius: 9px;

  background: rgba(47, 141, 255, 0.08);

  color: var(--blue);

  font-size: 18px;

  box-shadow:
    inset 0 0 10px rgba(95, 200, 255, 0.08),
    0 0 8px rgba(95, 200, 255, 0.08);
}

.project-group h3 {
  color: var(--blue);

  font-size: 13px;
  font-weight: 500;

  text-transform: uppercase;
  letter-spacing: 0.035em;
}

.project-group > header small {
  display: block;

  margin-top: 4px;

  color: #91a6bc;

  font-size: 9px;
  line-height: 1.35;
}

/* ==================================================
   PROJECT GRID
   ================================================== */

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 10px;

  padding: 14px;
}

/* ---------- PROJECT CARD ---------- */

.project-grid > a {
  min-width: 0;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px;

  border: 1px solid rgba(95, 170, 255, 0.16);
  border-radius: 9px;

  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent),
    rgba(5, 18, 43, 0.58);

  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.project-grid > a:hover,
.project-grid > a:focus-visible {
  transform: translateY(-2px);

  border-color: rgba(95, 200, 255, 0.42);

  background:
    linear-gradient(145deg, rgba(47, 141, 255, 0.09), transparent),
    rgba(5, 18, 43, 0.78);
}

/* ---------- PROJECT TEXT ---------- */

.project-grid > a > div {
  min-width: 0;

  display: grid;
  gap: 3px;
}

.project-grid strong {
  color: white;

  font-size: 11px;
  font-weight: 500;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-grid small {
  color: #849ab1;

  font-size: 9px;
  line-height: 1.25;
}

/* ==================================================
   PROJECT ICON OVERRIDES
   Reuses existing .project-icon styles
   ================================================== */

.project-content .project-icon {
  flex: 0 0 44px;

  width: 44px;
  height: 44px;

  font-size: 11px;
}

/* ==================================================
   PROJECT DOCUMENTATION
   ================================================== */

/* ---------- SECTION INDEX ---------- */

.project-doc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;

  margin-bottom: 22px;
  padding: 10px 0;

  border-top: 1px solid rgba(95, 170, 255, 0.16);
  border-bottom: 1px solid rgba(95, 170, 255, 0.16);
}

.project-doc-nav a {
  padding: 6px 9px;

  border: 1px solid rgba(95, 170, 255, 0.18);
  border-radius: 6px;

  background: rgba(47, 141, 255, 0.06);

  color: #a9bdd2;

  font-size: 12px;

  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.project-doc-nav a:hover,
.project-doc-nav a:focus-visible {
  color: white;

  border-color: rgba(95, 200, 255, 0.4);

  background: rgba(47, 141, 255, 0.13);
}

/* ==================================================
   DOCUMENT
   ================================================== */

.project-doc {
  display: grid;
  gap: 24px;
}

/* ==================================================
   DOCUMENT SECTION
   ================================================== */

.project-doc-section {
  overflow: hidden;

  border: 1px solid rgba(95, 170, 255, 0.18);
  border-radius: 9px;

  background: rgba(3, 14, 34, 0.52);
}

/* ---------- SECTION HEADER ---------- */

.project-doc-section > header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;

  padding: 16px 18px;

  border-bottom: 1px solid rgba(95, 170, 255, 0.16);

  background: linear-gradient(
    145deg,
    rgba(47, 141, 255, 0.08),
    transparent 65%
  );
}

.project-doc-section > header > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-doc-section > header span {
  color: rgba(95, 200, 255, 0.48);

  font-size: 12px;
  letter-spacing: 0.08em;
}

.project-doc-section h3 {
  color: var(--blue);

  font-size: 14px;
  font-weight: 500;

  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-doc-section > header > p {
  max-width: 420px;

  color: #91a6bc;

  font-size: 12px;
  line-height: 1.4;

  text-align: right;
}

/* ==================================================
   COMMAND LIST
   ================================================== */

.project-command-list {
  display: grid;
}

/* ---------- COMMAND ROW ---------- */

.project-command {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 18px;

  padding: 13px 18px;
}

.project-command + .project-command {
  border-top: 1px solid rgba(95, 170, 255, 0.11);
}

/* ---------- COMMAND ---------- */

.project-command code {
  align-self: start;
display: block;
  width: fit-content;
  max-width: 300px;
min-width: 100%;
  padding: 5px 8px;
overflow: scroll;
  overflow-wrap:anywhere;

  border: 1px solid rgba(95, 200, 255, 0.22);
  border-radius: 5px;

  background: rgba(2, 10, 28, 0.8);

  color: #b8e8ff;

  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  font-size: 11px;

  box-shadow: inset 0 0 8px rgba(95, 200, 255, 0.04);
}

/* ---------- COMMAND DESCRIPTION ---------- */

.project-command > div {
  display: grid;
  gap: 4px;
}

.project-command strong {
  color: #e5f1fb;

  font-weight: 500;
}

.project-command p {
  color: #8fa5bb;
  /* font-size: 11px;
  line-height: 1.5; */
}

.project-command p code {
  color: #b8e8ff;

  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

/* ==================================================
   CODE EXAMPLE
   ================================================== */

.project-example {
  margin: 0 18px 18px;
}

.project-example > small {
  display: block;

  margin-bottom: 6px;

  color: #7594b2;

  font-size: 8px;
  letter-spacing: 0.08em;
}

.project-example pre {
  margin: 0;
  padding: 14px;

  overflow-x: auto;

  border: 1px solid rgba(95, 170, 255, 0.18);
  border-radius: 7px;

  background: rgba(1, 8, 22, 0.88);

  box-shadow: inset 0 0 18px rgba(39, 121, 203, 0.06);
}

.project-example code {
  color: #bcecff;

  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  font-size: 11px;
  line-height: 1.7;
}

/* ==================================================
   DOCUMENTATION NOTE
   ================================================== */

.project-note {
  margin: 0 18px 18px;
  padding: 12px 14px;

  border-left: 2px solid rgba(255, 196, 97, 0.7);

  background: rgba(255, 196, 97, 0.05);
}

.project-note strong {
  display: block;

  margin-bottom: 4px;

  color: #ffc461;

  font-size: 12px;
  font-weight: 500;
}

.project-note p {
  color: #a9b8c7;

  font-size: 11px;
  line-height: 1.5;
}

/* ==================================================
   SINGLE PROJECT PAGE
   ================================================== */

/* ---------- PROJECT HEADER ---------- */

.project-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;

  margin-bottom: 22px;
}

.project-detail-header small {
  display: block;

  margin-bottom: 5px;

  color: var(--blue);

  font-size: 12px;
  letter-spacing: 0.08em;
}

.project-detail-header h2 {
  color: white;

  font-size: clamp(26px, 2vw, 34px);
  font-weight: 500;
}

.project-detail-header > p {
  max-width: 420px;

  color: #b8c7d8;

  

  text-align: right;
}

/* ==================================================
   PROJECT DISPLAY
   ================================================== */

.project-display {
  margin-bottom: 22px;
}

/* ---------- MAIN PREVIEW ---------- */

.project-preview {
  overflow: hidden;

  min-height: 300px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(95, 170, 255, 0.2);
  border-radius: 9px;

  background: rgba(3, 14, 34, 0.6);
}

.project-preview img {
  width: 100%;
  height: auto;

  object-fit: contain;
}

/* ---------- PROJECT LINKS ---------- */

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin-top: 10px;
}

.project-link {
  padding: 8px 12px;

  border: 1px solid rgba(95, 200, 255, 0.3);
  border-radius: 7px;

  background: rgba(47, 141, 255, 0.08);

  color: var(--blue);

  font-size: 12px;
}

.project-link:hover,
.project-link:focus-visible {
  color: white;

  border-color: rgba(95, 200, 255, 0.5);

  background: rgba(47, 141, 255, 0.16);
}

/* ==================================================
   PROJECT DETAIL SECTION
   ================================================== */

.project-detail {
  overflow: hidden;

  margin-top: 16px;

  border: 1px solid rgba(95, 170, 255, 0.18);
  border-radius: 9px;

  background: rgba(3, 14, 34, 0.52);
  & > header {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 14px 16px;

    border-bottom: 1px solid rgba(95, 170, 255, 0.14);

    background: linear-gradient(
      145deg,
      rgba(47, 141, 255, 0.08),
      transparent 65%
    );
  }
  & > header span {
    color: rgba(95, 200, 255, 0.5);

    font-size: 9px;
    letter-spacing: 0.08em;
  }
  h3 {
    color: var(--blue);
    font-weight: 500;

    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  & > p {
    padding: 16px;

    color: #a6b8ca;

    /* font-size: 11px; */
    line-height: 1.65;
  }
}

/* ==================================================
   PROJECT INFORMATION
   ================================================== */

.project-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  & > div {
    min-width: 0;

    padding: 15px;
  }
  & > div + div {
    border-left: 1px solid rgba(95, 170, 255, 0.12);
  }
  small {
    display: block;

    margin-bottom: 5px;

    color: #718da8;

    font-size: 8px;
    letter-spacing: 0.07em;
  }
  strong {
    color: #e5f1fb;
    font-weight: 500;
  }
}

/* ==================================================
   PROJECT DOCUMENTS
   ================================================== */

.project-documents {
  display: grid;
  & > a {
    position: relative;

    display: grid;
    grid-template-columns: minmax(130px, 180px) 1fr 20px;
    gap: 14px;
    align-items: center;

    padding: 13px 16px;

    transition: background 160ms ease;
  }
  & > a + a {
    border-top: 1px solid rgba(95, 170, 255, 0.11);
  }
  & > a:hover,
  & > a:focus-visible {
    background: rgba(47, 141, 255, 0.08);
  }

  strong {
    color: #e5f1fb;

    font-size: 11px;
    font-weight: 500;
  }
  small {
    color: #879db3;

    font-size: 9px;
    line-height: 1.4;
  }
  & > a > span {
    color: var(--blue);

    font-size: 16px;
    text-align: right;
  }
}

/* ==================================================
   PROJECT IMAGES
   ================================================== */

.project-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;

  padding: 14px;
  img {
    width: 100%;

    border: 1px solid rgba(95, 170, 255, 0.15);
    border-radius: 7px;

    object-fit: cover;
  }
}
