/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0d0f14;
  --surface:  #141720;
  --surface2: #1c2030;
  --border:   #252b3d;
  --border2:  #2e3650;
  --accent:   #c9a84c;
  --accent2:  #e8c96a;
  --text:     #e2e6f0;
  --text2:    #8a93ad;
  --text3:    #545d78;
  --green:    #4caf8a;
  --red:      #e05a5a;
  --blue:     #5a8ae0;

  --sidebar-w: 220px;
  --radius: 8px;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'DM Mono', 'Courier New', monospace;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  overflow: hidden;
}

/* ── App Shell ── */
.app-shell {
  display: flex;
  height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 0;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--border);
}

.logo-mark {
  width: 36px; height: 36px;
  background: var(--accent);
  color: #0d0f14;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
}

.logo-firm {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}
.logo-sub {
  display: block;
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 1px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: none;
  background: none;
  color: var(--text2);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: all 0.15s;
  letter-spacing: 0.01em;
}
.nav-item:hover { background: var(--surface2); color: var(--text); }
.nav-item.active { background: var(--surface2); color: var(--accent); font-weight: 500; }
.nav-icon { font-size: 15px; width: 18px; text-align: center; }

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}
.api-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text3);
  font-family: var(--font-mono);
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}
.status-dot.error { background: var(--red); box-shadow: 0 0 6px var(--red); }

/* ── Main Content ── */
.main-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg);
  position: relative;
}

/* ── Tab Panels ── */
.tab-panel {
  display: none;
  padding: 40px 48px;
  min-height: 100vh;
  animation: fadeIn 0.2s ease;
}
.tab-panel.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── Panel Header ── */
.panel-header {
  margin-bottom: 36px;
}
.panel-header h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.panel-sub {
  color: var(--text2);
  font-size: 14px;
  margin-top: 6px;
}

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}
.card-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 500;
}
.card-hint {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 14px;
  line-height: 1.5;
}

/* ── Analyze Grid ── */
.analyze-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: start;
}
.upload-col, .questions-col { display: flex; flex-direction: column; gap: 24px; }

/* ── Drop Zone ── */
.drop-zone {
  border: 1.5px dashed var(--border2);
  border-radius: 6px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--accent);
  background: rgba(201,168,76,0.04);
}
.drop-zone.large { padding: 48px 24px; margin-bottom: 32px; }
.drop-icon { font-size: 28px; color: var(--text3); margin-bottom: 10px; }
.drop-primary { font-weight: 500; color: var(--text); margin-bottom: 4px; }
.drop-secondary { font-size: 12px; color: var(--text2); }
.file-link { color: var(--accent); cursor: pointer; text-decoration: underline; }

.file-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--surface2);
  border-radius: 6px;
  border: 1px solid var(--border2);
}
.file-icon { color: var(--accent); }
.file-name { flex: 1; font-size: 12px; font-family: var(--font-mono); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-remove { background: none; border: none; color: var(--text3); cursor: pointer; font-size: 18px; line-height: 1; padding: 0 2px; }
.file-remove:hover { color: var(--red); }
.hidden { display: none !important; }

/* ── Memo List (sidebar of active memos) ── */
.memo-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.memo-empty { font-size: 12px; color: var(--text3); text-align: center; padding: 16px; font-family: var(--font-mono); }
.memo-count-row { display: flex; justify-content: space-between; font-size: 11px; color: var(--text3); font-family: var(--font-mono); }
.memo-limit { color: var(--text3); }
.memo-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 11px;
  font-family: var(--font-mono);
}
.memo-chip-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.memo-chip-remove { background: none; border: none; color: var(--text3); cursor: pointer; font-size: 14px; }
.memo-chip-remove:hover { color: var(--red); }

/* ── Questions ── */
.questions-card { max-height: 560px; overflow-y: auto; }
.question-section { margin-bottom: 20px; }
.question-section:last-child { margin-bottom: 0; }
.section-title {
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.question-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
}
.q-checkbox {
  width: 14px;
  height: 14px;
  min-width: 14px;
  accent-color: var(--accent);
  cursor: pointer;
  margin-top: 2px;
}
.q-label {
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.5;
  cursor: pointer;
}

/* ── Run Row ── */
.run-row { display: flex; align-items: center; gap: 16px; }
.run-hint { font-size: 12px; color: var(--text3); font-family: var(--font-mono); }

.btn-run {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background: var(--accent);
  color: #0d0f14;
  border: none;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.btn-run:hover { background: var(--accent2); transform: translateY(-1px); }
.btn-run:disabled { background: var(--surface2); color: var(--text3); cursor: not-allowed; transform: none; }
.btn-run-icon { font-size: 11px; }

.btn-secondary {
  padding: 9px 18px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  color: var(--text);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ── Results ── */
.results-section {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}
.results-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 24px;
}
.results-header h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
}
.results-meta { font-size: 12px; font-family: var(--font-mono); color: var(--text3); }
.results-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.result-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.result-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
}
.result-block-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.result-block-toggle { color: var(--text3); font-size: 12px; transition: transform 0.2s; }
.result-block.collapsed .result-block-toggle { transform: rotate(-90deg); }
.result-block-body {
  padding: 20px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text);
}
.result-block.collapsed .result-block-body { display: none; }

.result-block-body h3 { font-family: var(--font-display); font-size: 17px; font-weight: 400; margin: 16px 0 6px; color: var(--accent2); }
.result-block-body h4 { font-size: 12px; font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text3); margin: 14px 0 4px; }
.result-block-body p { margin-bottom: 10px; }
.result-block-body ul, .result-block-body ol { padding-left: 20px; margin-bottom: 10px; }
.result-block-body li { margin-bottom: 4px; }
.result-block-body strong { color: var(--accent2); font-weight: 600; }

.signal-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  font-weight: 500;
  text-transform: uppercase;
  margin-left: 10px;
}
.signal-tag.positive { background: rgba(76,175,138,0.15); color: var(--green); border: 1px solid rgba(76,175,138,0.3); }
.signal-tag.negative { background: rgba(224,90,90,0.15); color: var(--red); border: 1px solid rgba(224,90,90,0.3); }
.signal-tag.neutral  { background: rgba(201,168,76,0.15); color: var(--accent); border: 1px solid rgba(201,168,76,0.3); }

/* ── Loading ── */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,15,20,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  backdrop-filter: blur(4px);
}
.loading-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 40px 48px;
  text-align: center;
}
.loading-spinner {
  width: 36px; height: 36px;
  border: 2px solid var(--border2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-label {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 6px;
}
.loading-sub { font-size: 12px; color: var(--text2); }

/* ── Memo Library ── */
.memo-upload-area { margin-bottom: 8px; }
.library-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text3);
}
.empty-icon { font-size: 36px; margin-bottom: 16px; color: var(--text3); }
.empty-sub { font-size: 12px; margin-top: 6px; }
.memo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.memo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color 0.2s;
}
.memo-card:hover { border-color: var(--border2); }
.memo-card.active-context { border-color: var(--accent); }
.memo-card-name {
  font-weight: 500;
  font-size: 13px;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.memo-card-meta { font-size: 11px; font-family: var(--font-mono); color: var(--text3); margin-bottom: 14px; }
.memo-card-actions { display: flex; gap: 8px; }
.btn-use-memo {
  flex: 1;
  padding: 7px;
  background: none;
  border: 1px solid var(--border2);
  color: var(--text2);
  border-radius: 5px;
  font-size: 11px;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.05em;
}
.btn-use-memo:hover { border-color: var(--accent); color: var(--accent); }
.btn-use-memo.active { background: rgba(201,168,76,0.1); border-color: var(--accent); color: var(--accent); }
.btn-del-memo {
  padding: 7px 10px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text3);
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s;
}
.btn-del-memo:hover { border-color: var(--red); color: var(--red); }

/* ── LBO ── */
.lbo-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}
.lbo-inputs { max-height: calc(100vh - 200px); overflow-y: auto; }

.input-group {
  margin-bottom: 14px;
}
.input-group label {
  display: block;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text2);
  margin-bottom: 5px;
  letter-spacing: 0.04em;
}
.input-group input[type="number"],
.input-group input[type="text"],
.input-group input[type="password"] {
  width: 100%;
  padding: 8px 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
}
.input-group input:focus { border-color: var(--accent); }

.lbo-placeholder {
  text-align: center;
  padding: 80px 20px;
  color: var(--text3);
}

/* LBO Summary Tables */
.lbo-summary-content { font-size: 13px; }
.lbo-table-section { margin-bottom: 24px; }
.lbo-table-section h3 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.lbo-table {
  width: 100%;
  border-collapse: collapse;
}
.lbo-table th, .lbo-table td {
  padding: 7px 10px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 12px;
  border-bottom: 1px solid var(--border);
}
.lbo-table th {
  color: var(--text3);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.lbo-table td:first-child, .lbo-table th:first-child { text-align: left; }
.lbo-table tr:last-child td { border-bottom: none; }
.lbo-table .total-row td { border-top: 1px solid var(--border2); font-weight: 600; color: var(--accent2); }

.returns-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.return-stat {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px;
  text-align: center;
}
.return-stat-value {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--accent2);
  line-height: 1;
  margin-bottom: 4px;
}
.return-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
}

.download-row { margin-top: 20px; display: flex; gap: 12px; }

/* ── Settings ── */
.settings-card { margin-bottom: 24px; max-width: 600px; }
.api-key-row { display: flex; gap: 10px; margin-top: 4px; }
.api-key-row input { flex: 1; }
.key-status { font-size: 12px; font-family: var(--font-mono); margin-top: 8px; color: var(--green); }
.key-status.error { color: var(--red); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .analyze-grid, .lbo-grid { grid-template-columns: 1fr; }
  .tab-panel { padding: 28px 24px; }
}
@media (max-width: 700px) {
  .sidebar { width: 60px; min-width: 60px; }
  .logo-text, .nav-item span:last-child { display: none; }
  .sidebar-header { justify-content: center; padding: 16px 0; }
  .nav-item { justify-content: center; padding: 12px; }
}

/* ── Firm Profile Tab ── */
.profile-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.profile-banner-inner { display: flex; align-items: center; gap: 10px; }
.profile-banner-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text3);
}
.profile-banner-dot.active { background: var(--green); box-shadow: 0 0 6px var(--green); }
.profile-banner-date { font-size: 11px; font-family: var(--font-mono); color: var(--text3); }
.profile-banner-actions { display: flex; gap: 8px; }

.profile-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}
.profile-generate-col { display: flex; flex-direction: column; gap: 24px; }
.profile-view-col { display: flex; flex-direction: column; }
.profile-view-card { max-height: calc(100vh - 220px); overflow-y: auto; }

.profile-memo-list { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.profile-memo-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 11px;
  font-family: var(--font-mono);
}
.profile-memo-chip-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-memo-chip-remove {
  background: none; border: none; color: var(--text3);
  cursor: pointer; font-size: 14px;
}
.profile-memo-chip-remove:hover { color: var(--red); }

.profile-gen-status {
  margin-top: 10px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--green);
}
.profile-gen-status.error { color: var(--red); }

.profile-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text3);
}

.profile-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.profile-section:last-child { border-bottom: none; margin-bottom: 0; }
.profile-section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.profile-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.profile-field-row:last-child { margin-bottom: 0; }
.profile-field { display: flex; flex-direction: column; gap: 5px; }
.profile-field label {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.profile-value {
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
  min-height: 20px;
}
.profile-edit {
  width: 100%;
  padding: 8px 10px;
  background: var(--surface2);
  border: 1px solid var(--accent);
  border-radius: 5px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  resize: vertical;
  outline: none;
  line-height: 1.5;
}
.card-label { position: relative; }
.btn-edit-profile {
  position: absolute;
  right: 0;
  top: -2px;
  background: none;
  border: 1px solid var(--border2);
  color: var(--text2);
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 3px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-edit-profile:hover { border-color: var(--accent); color: var(--accent); }

/* ── Firm Profile Tab ── */
.profile-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.profile-banner-inner { display: flex; align-items: center; gap: 10px; }
.profile-banner-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text3);
}
.profile-banner-dot.active { background: var(--green); box-shadow: 0 0 6px var(--green); }
.profile-banner-date { font-size: 11px; font-family: var(--font-mono); color: var(--text3); }
.profile-banner-actions { display: flex; gap: 8px; }

.profile-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}
.profile-generate-col { display: flex; flex-direction: column; gap: 24px; }
.profile-view-col { display: flex; flex-direction: column; }
.profile-view-card { max-height: calc(100vh - 220px); overflow-y: auto; }

.profile-memo-list { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.profile-memo-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 11px;
  font-family: var(--font-mono);
}
.profile-memo-chip-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-memo-chip-remove {
  background: none; border: none; color: var(--text3);
  cursor: pointer; font-size: 14px;
}
.profile-memo-chip-remove:hover { color: var(--red); }

.profile-gen-status {
  margin-top: 10px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--green);
}
.profile-gen-status.error { color: var(--red); }

.profile-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text3);
}

.profile-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.profile-section:last-child { border-bottom: none; margin-bottom: 0; }
.profile-section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.profile-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.profile-field-row:last-child { margin-bottom: 0; }
.profile-field { display: flex; flex-direction: column; gap: 5px; }
.profile-field label {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.profile-value {
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
  min-height: 20px;
}
.profile-edit {
  width: 100%;
  padding: 8px 10px;
  background: var(--surface2);
  border: 1px solid var(--accent);
  border-radius: 5px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  resize: vertical;
  outline: none;
  line-height: 1.5;
}
.card-label { position: relative; }
.btn-edit-profile {
  position: absolute;
  right: 0;
  top: -2px;
  background: none;
  border: 1px solid var(--border2);
  color: var(--text2);
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 3px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-edit-profile:hover { border-color: var(--accent); color: var(--accent); }
