/* ══════════════════════════════════════════
   MOAF-DiT Explorer — styles.css
   ══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #f7f8fc;
  --surface:     #ffffff;
  --border:      #e2e6ef;
  --border-strong: #c8d0e0;
  --text:        #1a1d2e;
  --muted:       #64748b;
  --dim:         #94a3b8;
  --accent:      #2563eb;
  --accent-dim:  #dbeafe;
  --accent-dark: #1d4ed8;
  --green:       #16a34a;
  --green-dim:   #dcfce7;
  --amber:       #d97706;
  --amber-dim:   #fef3c7;
  --red:         #dc2626;
  --red-dim:     #fee2e2;
  --purple:      #7c3aed;
  --purple-dim:  #ede9fe;
  --radius:      10px;
  --shadow:      0 1px 4px rgba(0,0,0,.07);
  --shadow-lg:   0 4px 20px rgba(0,0,0,.09);
  --sidebar-w:   260px;
  --font:        'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono:        'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.5;
}

/* ── Layout ── */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
  background: #1a1d2e;
  color: #e2e8f0;
  padding: 28px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.logo {
  font-size: 20px;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: -.5px;
}
.logo span { color: #60a5fa; }

.logo-sub {
  font-size: 11px;
  color: #475569;
  margin-bottom: 28px;
  font-family: var(--mono);
  line-height: 1.4;
}

.nav { display: flex; flex-direction: column; gap: 2px; }

.nav-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #475569;
  font-weight: 600;
  margin: 14px 0 4px 4px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: none;
  background: none;
  cursor: pointer;
  color: #94a3b8;
  font-size: 13px;
  font-family: var(--font);
  border-radius: 8px;
  text-align: left;
  width: 100%;
  transition: .15s;
}
.nav-btn:hover:not(.disabled) { background: rgba(255,255,255,.06); color: #e2e8f0; }
.nav-btn.active { background: rgba(37,99,235,.25); color: #93c5fd; }
.nav-btn.done { color: #86efac; }
.nav-btn.disabled { opacity: .4; cursor: default; pointer-events: none; }

.nav-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.nav-btn.active .nav-num { background: #2563eb; border-color: #2563eb; color: #fff; }
.nav-btn.done .nav-num   { background: #16a34a; border-color: #16a34a; color: #fff; }

.sidebar-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #2d3748;
}

.onto-badge {
  background: rgba(37,99,235,.2);
  border: 1px solid rgba(37,99,235,.4);
  color: #93c5fd;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-family: var(--mono);
  margin-bottom: 8px;
  word-break: break-all;
}

.session-display {
  font-size: 10px;
  color: #334155;
  font-family: var(--mono);
  margin-bottom: 8px;
}

.sidebar-note {
  font-size: 11px;
  color: #475569;
  line-height: 1.6;
}

/* ── Main ── */
.main {
  padding: 40px 48px;
  max-width: 920px;
  width: 100%;
}

/* ── Panels ── */
.panel { display: none; }
.panel.active { display: block; }

.panel-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.panel-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.6;
  max-width: 680px;
}

.section-hint {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

/* ── Setup cards ── */
.setup-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.setup-step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.step-circle {
  width: 26px;
  height: 26px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Form elements ── */
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.5;
}
.hint a { color: var(--accent); }

input[type="text"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font);
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input[type="text"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
textarea { resize: vertical; }

.input-row {
  display: flex;
  gap: 8px;
}
.input-row input { flex: 1; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  transition: .15s;
  white-space: nowrap;
}
.btn-primary  { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1.5px solid var(--border); }
.btn-secondary:hover { background: var(--bg); }
.btn-danger   { background: #fef2f2; color: var(--red); border: 1.5px solid #fecaca; }
.btn-danger:hover { background: var(--red-dim); }
.btn:disabled { opacity: .5; cursor: default; }

.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ── Drop zone ── */
.dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: .2s;
  background: var(--bg);
}
.dropzone:hover, .dropzone.drag {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.dz-icon { font-size: 36px; margin-bottom: 10px; }
.dropzone p { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.dropzone p strong { color: var(--text); }
.dz-hint { font-size: 12px !important; color: var(--dim) !important; }
input[type="file"] { display: none; }

/* ── Stats row ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.stat-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
}
.stat-card .val {
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--mono);
  line-height: 1;
}
.stat-card .lbl {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* ── Progress ── */
.progress-wrap { margin-bottom: 18px; }
.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.progress-track {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width .35s;
}
.progress-log {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
  margin-top: 6px;
  min-height: 18px;
}

/* ── Status line ── */
.status-line {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0;
  min-height: 20px;
  display: flex;
  align-items: center;
  gap: 7px;
}

/* ── Spinner ── */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Ask area ── */
.ask-wrap { position: relative; }
.q-input {
  width: 100%;
  padding: 13px 56px 13px 15px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: var(--font);
  background: var(--surface);
  color: var(--text);
  outline: none;
  min-height: 88px;
  resize: vertical;
  transition: border-color .15s, box-shadow .15s;
  line-height: 1.5;
}
.q-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
}
.ask-send {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font);
  transition: .15s;
}
.ask-send:hover { background: var(--accent-dark); }
.ask-send:disabled { opacity: .5; cursor: default; }
.ask-hint { font-size: 12px; color: var(--dim); margin-top: 6px; }

/* ── Coverage banner ── */
.banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 9px;
  margin: 18px 0;
  border: 1.5px solid transparent;
}
.banner.full    { background: var(--green-dim); border-color: #bbf7d0; color: #14532d; }
.banner.partial { background: var(--amber-dim); border-color: #fcd34d; color: #78350f; }
.banner.missing { background: var(--red-dim);   border-color: #fca5a5; color: #7f1d1d; }

.ban-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.ban-title { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.ban-exp   { font-size: 13px; line-height: 1.5; }

/* ── Similar chips ── */
.sim-bar {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0;
}
.sim-chip {
  display: inline-block;
  margin: 3px 4px 3px 0;
  padding: 3px 11px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-family: var(--mono);
  transition: .1s;
}
.sim-chip:hover { background: var(--accent); color: #fff; }

/* ── Entity section ── */
.ent-section { margin: 18px 0; }
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

/* ── Entity cards ── */
.ent-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.ent-head {
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
  transition: background .1s;
}
.ent-head:hover { background: var(--bg); }

.kind-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  flex-shrink: 0;
}
.kind-Class            { background: #dbeafe; color: #1e40af; }
.kind-ObjectProperty   { background: #dcfce7; color: #14532d; }
.kind-DataProperty     { background: #fef3c7; color: #78350f; }
.kind-Individual       { background: var(--purple-dim); color: #4c1d95; }
.kind-AnnotationProperty { background: #f1f5f9; color: #475569; }

.ent-name       { font-size: 14px; font-weight: 700; font-family: var(--mono); color: var(--text); }
.ent-label-alt  { font-size: 13px; color: var(--muted); }
.ent-score      { margin-left: auto; font-size: 11px; color: var(--dim); font-family: var(--mono); background: var(--bg); padding: 2px 8px; border-radius: 6px; flex-shrink: 0; }
.ent-arrow      { color: var(--dim); font-size: 12px; margin-left: 4px; transition: transform .15s; }
.ent-head.open .ent-arrow { transform: rotate(180deg); }

.ent-body {
  display: none;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}
.ent-body.open { display: block; }

.ent-row {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.5;
}
.ent-k { color: var(--muted); min-width: 110px; flex-shrink: 0; font-weight: 600; }
.ent-v { color: var(--text); flex: 1; word-break: break-word; }

.triple-chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 5px;
  color: var(--accent);
  margin-top: 2px;
}
.iri-text {
  font-family: var(--mono);
  font-size: 11px;
  word-break: break-all;
  color: var(--dim);
}

/* ── Answer block ── */
.ans-block {
  background: #f8faff;
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.7;
  margin: 16px 0;
  white-space: pre-wrap;
}

/* ── Propose form ── */
.propose-box {
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 20px 0;
  background: linear-gradient(135deg, #f0f7ff 0%, #f8faff 100%);
}
.propose-box h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}
.propose-box p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.miss-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.miss-chip {
  padding: 4px 13px;
  border-radius: 8px;
  background: var(--amber-dim);
  border: 1.5px solid #fcd34d;
  color: #78350f;
  font-size: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: .1s;
}
.miss-chip.sel { background: var(--amber); color: #fff; border-color: var(--amber); }

.p-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.p-field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.p-field label { font-weight: 600; color: var(--text); }
.p-field.full { grid-column: 1 / -1; }

.success-msg { font-size: 13px; color: var(--green); }
.err-msg { font-size: 13px; color: var(--red); padding: 8px 12px; background: var(--red-dim); border-radius: 6px; }

/* ── Admin ── */
.admin-gate {
  max-width: 440px;
  margin: 60px auto;
  text-align: center;
}
.admin-gate h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.admin-gate p  { color: var(--muted); font-size: 14px; margin-bottom: 22px; line-height: 1.5; }

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 10px;
}
.a-stat {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.a-stat .v {
  font-size: 30px;
  font-weight: 700;
  font-family: var(--mono);
  line-height: 1;
}
.a-stat .l { font-size: 12px; color: var(--muted); margin-top: 4px; }

.divider { border: none; border-top: 1px solid var(--border); margin: 26px 0; }

.miss-bar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 9px;
  font-size: 13px;
}
.miss-bar-fill {
  height: 14px;
  background: var(--accent);
  border-radius: 4px;
  min-width: 6px;
  transition: width .4s;
}

.log-wrap { overflow-x: auto; }
.log-tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.log-tbl th {
  background: #1a1d2e;
  color: #e2e8f0;
  padding: 9px 12px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
.log-tbl td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.log-tbl tr:hover td { background: #f8faff; }

.cbadge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.cbadge.f { background: var(--green-dim); color: #14532d; }
.cbadge.p { background: var(--amber-dim); color: #78350f; }
.cbadge.m { background: var(--red-dim);   color: #7f1d1d; }

.prop-card {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.6;
}
.prop-card strong { color: var(--accent); }

/* ── Utilities ── */
code { font-family: var(--mono); font-size: 13px; background: #f1f5f9; padding: 1px 5px; border-radius: 4px; }

/* ── Responsive ── */
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main { padding: 24px 20px; }
  .stats-row, .admin-stats, .p-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .stats-row, .admin-stats { grid-template-columns: 1fr 1fr; }
  .p-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   CONVERSATION LOG & NOTE SYSTEM
   ══════════════════════════════════════════ */

/* Memory indicator bar */
.conv-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  padding: 6px 12px;
  margin-bottom: 12px;
}

/* Session log wrapper */
.session-log-wrap {
  margin-top: 36px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.session-log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.log-count {
  font-size: 11px;
  color: var(--dim);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.session-log {
  max-height: 600px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
}

.log-empty {
  color: var(--dim);
  font-size: 13px;
  text-align: center;
  padding: 24px;
  font-style: italic;
}

/* Individual log entry */
.log-entry {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border);
}
.log-entry:last-child { border-bottom: none; padding-bottom: 0; }

/* Question bubble */
.log-q {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.log-q-bubble {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid #bfdbfe;
  border-radius: 10px 10px 10px 2px;
  padding: 8px 12px;
  font-size: 14px;
  color: #1e3a8a;
  font-weight: 500;
  flex: 1;
  line-height: 1.4;
}
.log-q-icon { font-size: 16px; flex-shrink: 0; }
.log-ts {
  font-size: 11px;
  color: var(--dim);
  font-family: var(--mono);
  white-space: nowrap;
  margin-top: 4px;
}

/* Answer area */
.log-a {
  margin-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.log-cov-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 8px;
  width: fit-content;
}
.badge-full    { background: var(--green-dim); color: #14532d; border: 1px solid #bbf7d0; }
.badge-partial { background: var(--amber-dim); color: #78350f; border: 1px solid #fcd34d; }
.badge-missing { background: var(--red-dim);   color: #7f1d1d; border: 1px solid #fca5a5; }

.log-ans-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 13px;
}

.log-missing {
  font-size: 12px;
  color: var(--red);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.mono-tag {
  font-family: var(--mono);
  background: var(--red-dim);
  border: 1px solid #fca5a5;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
}

/* User note */
.log-note {
  font-size: 12px;
  color: var(--purple);
  background: var(--purple-dim);
  border: 1px solid #c4b5fd;
  border-radius: 7px;
  padding: 6px 12px;
  line-height: 1.5;
}

/* Action buttons row */
.log-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.log-action-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  color: var(--muted);
  font-family: var(--font);
  transition: .15s;
}
.log-action-btn:hover {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border-strong);
}

/* Inline note form */
.note-form {
  background: var(--bg);
  border: 1.5px solid #c4b5fd;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 4px;
}
.note-form textarea {
  width: 100%;
  font-size: 13px;
  resize: vertical;
  min-height: 64px;
}

/* ══════════════════════════════════════════
   PROPOSE FORM — redesigned
   ══════════════════════════════════════════ */

.propose-card {
  background: #f8f9fb;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 28px 28px 24px;
  margin: 24px 0;
  box-shadow: var(--shadow);
}

/* Header */
.propose-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.propose-header-icon {
  width: 36px;
  height: 36px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.propose-header-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.propose-header-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* Form fields */
.pf {
  margin-bottom: 16px;
}

.pf-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}

.pf-req {
  color: var(--red);
  margin-left: 2px;
}

.pf-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-size: 14px;
  font-family: var(--font);
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.pf-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.pf-input::placeholder {
  color: var(--dim);
  font-size: 13px;
}

.pf-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.55;
}

.pf-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

/* Type + Parent side-by-side row */
.pf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 0;
}

.pf-half {
  margin-bottom: 16px;
}

/* Submit row */
.propose-submit-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.propose-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #1a1d2e;
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background .15s, transform .1s;
  letter-spacing: .01em;
}

.propose-submit-btn:hover {
  background: #2d3255;
}

.propose-submit-btn:active {
  transform: scale(0.98);
}

@media (max-width: 600px) {
  .pf-row { grid-template-columns: 1fr; }
  .propose-card { padding: 20px 16px; }
}
