*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f3;
  --bg-tertiary: #efefec;
  --text-primary: #1a1a18;
  --text-secondary: #6b6b67;
  --text-tertiary: #9b9b96;
  --border-tertiary: rgba(0,0,0,0.12);
  --border-secondary: rgba(0,0,0,0.22);
  --border-primary: rgba(0,0,0,0.38);
  --text-info: #185FA5;
  --bg-info: #E6F1FB;
  --text-success: #3B6D11;
  --bg-success: #EAF3DE;
  --text-danger: #A32D2D;
  --radius-md: 8px;
  --radius-lg: 12px;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #1c1c1a;
    --bg-secondary: #252523;
    --bg-tertiary: #2e2e2b;
    --text-primary: #e8e8e2;
    --text-secondary: #9b9b96;
    --text-tertiary: #6b6b67;
    --border-tertiary: rgba(255,255,255,0.1);
    --border-secondary: rgba(255,255,255,0.18);
    --border-primary: rgba(255,255,255,0.3);
    --text-info: #85B7EB;
    --bg-info: #0C447C;
    --text-success: #97C459;
    --bg-success: #27500A;
    --text-danger: #F09595;
  }
}
body {
  font-family: var(--font-sans);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 250px;
  min-width: 250px;
  background: #0f1f3d;
  border-right: none;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar-logo {
  padding: 0 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sidebar-logo-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4da6ff;
}
.sidebar-beta {
  font-size: 11px;
  color: #4da6ff;
  background: rgba(77,166,255,0.15);
  padding: 2px 6px;
  border-radius: var(--radius-md);
  font-weight: 400;
}
.nav-item {
  padding: 8px 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background .1s, color .1s;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 0;
  text-decoration: none;
}
.nav-item:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.9); }
.nav-item.active {
  background: rgba(77,166,255,0.18);
  color: #4da6ff;
  font-weight: 500;
  border-right: 2px solid #4da6ff;
}
.nav-item svg { width: 14px; height: 14px; opacity: .7; }
.nav-spacer { flex: 1; }
.nav-section-label {
  padding: 16px 16px 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}
.nav-item-static {
  cursor: default;
  opacity: 0.4;
  font-weight: 500;
  font-size: 12px;
}
.nav-item-static:hover {
  background: none;
  color: rgba(255,255,255,0.5);
}
.nav-item-server {
  padding-left: 28px;
  font-size: 12.5px;
}
.server-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.server-status-dot.dot-on  { background: #4da6ff; }
.server-status-dot.dot-off { background: rgba(255,255,255,0.2); }
.nav-item-add {
  color: rgba(77,166,255,0.75);
}
.nav-item-add:hover {
  color: #4da6ff;
  background: rgba(77,166,255,0.1);
}
.main { flex: 1; padding: 28px; overflow: auto; background: #ffffff; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.topbar h1 { font-size: 18px; font-weight: 500; }
.btn-new {
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity .15s;
}
.btn-new:hover { opacity: 0.82; }
.btn-new svg { width: 14px; height: 14px; }
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.metric {
  background: #f4f8ff;
  border: 0.5px solid #dce8fb;
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.metric-label { font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; }
.metric-value { font-size: 22px; font-weight: 500; color: var(--text-primary); }
.metric-sub { font-size: 11px; color: var(--text-success); margin-top: 2px; }
.section-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.server-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.server-card {
  background: var(--bg-primary);
  border: 0.5px solid var(--border-tertiary);
  border-radius: var(--radius-lg);
  padding: 16px;
  cursor: pointer;
  transition: border-color .15s;
  text-decoration: none;
  display: block;
  color: inherit;
}
.server-card:hover { border-color: var(--border-secondary); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.card-title { font-size: 14px; font-weight: 500; color: var(--text-primary); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 4px; }
.dot-on  { background: #639922; }
.dot-off { background: var(--border-secondary); }
.card-url {
  font-size: 12px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--radius-md);
  font-weight: 400;
}
.badge-blue   { background: #E6F1FB; color: #185FA5; }
.badge-teal   { background: #E1F5EE; color: #0F6E56; }
.badge-amber  { background: #FAEEDA; color: #854F0B; }
.badge-gray   { background: var(--bg-secondary); color: var(--text-secondary); }
.card-stats {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 0.5px solid var(--border-tertiary);
}
.card-stat { font-size: 12px; color: var(--text-secondary); }
.card-stat strong { color: var(--text-primary); font-weight: 500; }
.card-empty {
  border-style: dashed;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}
.card-empty-inner { text-align: center; }
.card-empty-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 0.5px solid var(--border-secondary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 8px;
}
.card-empty-label { font-size: 13px; color: var(--text-tertiary); }
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 100;
}
.overlay.show { display: block; }
.drawer {
  position: fixed;
  top: 0; right: 0;
  width: 400px;
  height: 100vh;
  background: var(--bg-primary);
  border-left: 0.5px solid var(--border-tertiary);
  z-index: 101;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .22s cubic-bezier(.4,0,.2,1);
}
.drawer.open { transform: translateX(0); }
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 0.5px solid var(--border-tertiary);
  flex-shrink: 0;
}
.drawer-title { font-size: 16px; font-weight: 500; }
.btn-close {
  background: none;
  border: 0.5px solid var(--border-secondary);
  width: 28px; height: 28px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  transition: background .1s;
}
.btn-close:hover { background: var(--bg-secondary); }
.step-tabs {
  display: flex;
  gap: 0;
  padding: 0 24px;
  border-bottom: 0.5px solid var(--border-tertiary);
  flex-shrink: 0;
}
.step-tab {
  padding: 12px 0;
  margin-right: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  cursor: default;
  font-weight: 400;
  white-space: nowrap;
}
.step-tab.active { color: var(--text-primary); border-bottom-color: var(--text-primary); font-weight: 500; }
.step-tab.done   { color: var(--text-success); }
.drawer-body { padding: 24px; overflow-y: auto; flex: 1; }
.field-group { margin-bottom: 18px; }
.field-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: block;
}
.field-label .required { color: var(--text-danger); }
.field-input {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  border: 0.5px solid var(--border-secondary);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  color: var(--text-primary);
  outline: none;
  font-family: var(--font-sans);
  transition: border-color .15s, box-shadow .15s;
}
.field-input:focus {
  border-color: var(--border-primary);
  box-shadow: 0 0 0 2px rgba(0,0,0,.06);
}
textarea.field-input { resize: vertical; min-height: 72px; line-height: 1.5; }
.client-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.client-btn {
  padding: 6px 14px;
  border: 0.5px solid var(--border-secondary);
  border-radius: var(--radius-md);
  font-size: 12px;
  cursor: pointer;
  background: none;
  color: var(--text-secondary);
  transition: all .15s;
  font-family: var(--font-sans);
}
.client-btn:hover { border-color: var(--border-primary); color: var(--text-primary); }
.client-btn.selected { background: var(--bg-secondary); color: var(--text-primary); border-color: var(--border-primary); }
.tool-section-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
  margin-top: 4px;
}
.tool-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.tool-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 0.5px solid var(--border-tertiary);
  border-radius: var(--radius-md);
  transition: border-color .15s;
}
.tool-item:hover { border-color: var(--border-secondary); }
.tool-name { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.tool-desc { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
.toggle { position: relative; width: 32px; height: 18px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--border-secondary);
  border-radius: 9px;
  transition: background .2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  left: 3px; bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform .2s;
}
.toggle input:checked + .toggle-slider { background: #639922; }
.toggle input:checked + .toggle-slider::before { transform: translateX(14px); }
.success-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.success-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #EAF3DE;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.success-title { font-size: 14px; font-weight: 500; }
.success-sub   { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.url-box {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 4px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.url-box-inner { flex: 1; min-width: 0; }
.url-box-label { font-size: 11px; color: var(--text-secondary); margin-bottom: 4px; }
.url-value {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--text-info);
  word-break: break-all;
}
.btn-copy {
  background: none;
  border: 0.5px solid var(--border-secondary);
  border-radius: var(--radius-md);
  padding: 4px 10px;
  font-size: 11px;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .1s;
  font-family: var(--font-sans);
}
.btn-copy:hover { background: var(--bg-secondary); }
.btn-copy.copied { color: var(--text-success); border-color: var(--text-success); }
.connect-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 8px; }
.ctab {
  padding: 5px 12px;
  border: 0.5px solid var(--border-secondary);
  border-radius: var(--radius-md);
  font-size: 12px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all .15s;
  background: none;
  font-family: var(--font-sans);
}
.ctab:hover { color: var(--text-primary); border-color: var(--border-primary); }
.ctab.active { color: var(--text-primary); border-color: var(--text-primary); font-weight: 500; }
.code-block {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 14px;
  white-space: pre-wrap;
  word-break: break-all;
}
.btn-row { display: flex; gap: 8px; margin-top: 24px; }
.btn-primary {
  flex: 1;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  padding: 9px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity .15s;
  font-family: var(--font-sans);
}
.btn-primary:hover { opacity: 0.82; }
.btn-secondary {
  background: none;
  border: 0.5px solid var(--border-secondary);
  padding: 9px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  cursor: pointer;
  color: var(--text-primary);
  transition: background .1s;
  font-family: var(--font-sans);
}
.btn-secondary:hover { background: var(--bg-secondary); }
.helper-text { font-size: 12px; color: var(--text-secondary); margin-bottom: 14px; }
.server-detail-header {
  margin-bottom: 20px;
}
.server-detail-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.server-detail-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.server-detail-title {
  font-size: 20px;
  font-weight: 600;
}
.server-detail-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.detail-stats {
  display: flex;
  gap: 0;
  border: 0.5px solid var(--border-tertiary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 16px;
}
.detail-stat {
  flex: 1;
  padding: 14px 18px;
  border-right: 0.5px solid var(--border-tertiary);
}
.detail-stat:last-child { border-right: none; }
.detail-stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 5px;
}
.detail-stat-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.detail-tool-category {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
  margin-top: 4px;
}
.detail-tabs {
  display: flex;
  gap: 0;
  border-bottom: 0.5px solid var(--border-tertiary);
  margin-bottom: 24px;
}
.detail-tab {
  padding: 10px 0;
  margin-right: 24px;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color .15s;
}
.detail-tab:hover { color: var(--text-primary); }
.detail-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
  font-weight: 500;
}
.model-card-icon { display: inline-block; }
.model-icon-claude   { background: linear-gradient(135deg, #d97757, #c96442); }
.model-icon-gpt      { background: linear-gradient(135deg, #19c37d, #0fa870); }
.model-icon-external { background: linear-gradient(135deg, #7b8cde, #5c6bc0); }
.model-selected-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 0.5px solid var(--border-secondary);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  margin-bottom: 0;
}
.model-selected-row:hover { border-color: #4da6ff; background: #f8fbff; }
.model-selected-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.model-selected-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}
.model-selected-sub {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 1px;
}
.model-change-btn {
  font-size: 12px;
  color: #4da6ff;
  font-weight: 500;
}
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 200;
}
.modal-overlay.show { display: block; }
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(.97);
  width: 520px;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  border: 0.5px solid var(--border-tertiary);
  z-index: 201;
  opacity: 0;
  pointer-events: none;
  transition: transform .2s cubic-bezier(.4,0,.2,1), opacity .2s;
}
.modal.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 0.5px solid var(--border-tertiary);
}
.modal-title { font-size: 15px; font-weight: 500; }
.modal-body { padding: 16px 16px 12px; }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px;
  border-top: 0.5px solid var(--border-tertiary);
}
.modal-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0.5px solid var(--border-secondary);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  margin-bottom: 14px;
  color: var(--text-tertiary);
}
.modal-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: none;
  font-size: 13px;
  color: var(--text-primary);
  font-family: var(--font-sans);
}
.modal-search-input::placeholder { color: var(--text-tertiary); }
.modal-model-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
}
.modal-model-card {
  border: 0.5px solid var(--border-tertiary);
  border-radius: var(--radius-lg);
  padding: 14px 10px 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  text-align: center;
  position: relative;
}
.modal-model-card:hover { border-color: var(--border-secondary); background: var(--bg-secondary); }
.modal-model-card.selected { border-color: #4da6ff; background: #eef6ff; }
.modal-model-card .modal-model-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  margin: 0 auto 8px;
}
.modal-model-card .modal-model-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}
.modal-model-card .modal-model-sub {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.modal-model-check {
  position: absolute;
  top: 8px; right: 8px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #4da6ff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .15s;
}
.modal-model-card.selected .modal-model-check { opacity: 1; }
.tool-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tool-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tool-list-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
}
.tool-remove-btn {
  background: none;
  border: 0.5px solid var(--border-secondary);
  border-radius: var(--radius-md);
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-tertiary);
  transition: background .1s, color .1s;
  flex-shrink: 0;
}
.tool-remove-btn:hover { background: #fdeaea; color: var(--text-danger); border-color: var(--text-danger); }
.tool-empty {
  font-size: 12px;
  color: var(--text-tertiary);
  padding: 14px 0;
}
.tool-icon-search     { background: linear-gradient(135deg, #f59e0b, #d97706); }
.tool-icon-gmail      { background: linear-gradient(135deg, #ea4335, #c5221f); }
.tool-icon-slack      { background: linear-gradient(135deg, #4a154b, #611f69); }
.tool-icon-gcal       { background: linear-gradient(135deg, #4285f4, #1a73e8); }
.tool-icon-notion     { background: linear-gradient(135deg, #1a1a1a, #444); }
.tool-icon-github     { background: linear-gradient(135deg, #24292e, #444d56); }
.tool-icon-jira       { background: linear-gradient(135deg, #0052cc, #0747a6); }
.tool-icon-confluence { background: linear-gradient(135deg, #0052cc, #253858); }
.tool-icon-figma      { background: linear-gradient(135deg, #f24e1e, #ff7262); }
.tool-icon-linear     { background: linear-gradient(135deg, #5e6ad2, #4a55c0); }
.tool-icon-gdrive     { background: linear-gradient(135deg, #34a853, #0f9d58); }
.tool-icon-salesforce { background: linear-gradient(135deg, #00a1e0, #0070d2); }
.tool-icon-zoom       { background: linear-gradient(135deg, #2d8cff, #0e71eb); }
.tool-icon-stripe     { background: linear-gradient(135deg, #635bff, #4f46e5); }
.tool-icon-hubspot    { background: linear-gradient(135deg, #ff7a59, #f05031); }
.model-icon-gemini     { background: linear-gradient(135deg, #4285f4, #34a853); }
.model-icon-grok       { background: linear-gradient(135deg, #1a1a1a, #444); }
.model-icon-llama      { background: linear-gradient(135deg, #0064e1, #0668e1); }
.model-icon-mistral    { background: linear-gradient(135deg, #f7931e, #e07b00); }
.model-icon-perplexity { background: linear-gradient(135deg, #20b8cd, #0ea5c2); }
.model-icon-copilot    { background: linear-gradient(135deg, #0078d4, #005a9e); }
.model-icon-deepseek   { background: linear-gradient(135deg, #4f6ef7, #3451d1); }
.settings-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.settings-nav {
  width: 160px;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: sticky;
  top: 0;
}
.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background .1s, color .1s;
  text-decoration: none;
}
.settings-nav-item:hover { background: var(--bg-secondary); color: var(--text-primary); }
.settings-nav-item.active { background: var(--bg-secondary); color: var(--text-primary); font-weight: 500; }
.settings-nav-item svg { opacity: .6; flex-shrink: 0; }
.settings-body {
  flex: 1;
  min-width: 0;
}
.settings-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.settings-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  margin-top: -8px;
}
.settings-fields { display: flex; flex-direction: column; gap: 0; }
.settings-divider { border: none; border-top: 0.5px solid var(--border-tertiary); margin: 24px 0; }
.settings-actions { margin-top: 20px; }
.settings-avatar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.settings-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4da6ff, #185FA5);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.apikey-list { display: flex; flex-direction: column; gap: 10px; }
.apikey-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 0.5px solid var(--border-tertiary);
  border-radius: var(--radius-lg);
}
.apikey-info { flex: 1; }
.apikey-label { font-size: 13px; font-weight: 500; }
.apikey-value { font-size: 12px; font-family: var(--font-mono); color: var(--text-secondary); margin-top: 3px; }
.apikey-meta { font-size: 11px; color: var(--text-tertiary); display: flex; flex-direction: column; gap: 2px; text-align: right; }
.team-member-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.member-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 0.5px solid var(--border-tertiary);
  border-radius: var(--radius-lg);
}
.member-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--text-secondary);
}
.member-info { flex: 1; }
.member-name { font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.member-email { font-size: 12px; color: var(--text-secondary); margin-top: 1px; }
.role-select {
  padding: 5px 8px;
  font-size: 12px;
  border: 0.5px solid var(--border-secondary);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  color: var(--text-primary);
  cursor: pointer;
  font-family: var(--font-sans);
}
.settings-invite-row { display: flex; gap: 8px; align-items: center; }
.notify-list { display: flex; flex-direction: column; gap: 0; }
.notify-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 0.5px solid var(--border-tertiary);
}
.notify-row:last-child { border-bottom: none; }
.security-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 0.5px solid var(--border-tertiary);
  border-radius: var(--radius-lg);
  margin-bottom: 4px;
}
.session-list { display: flex; flex-direction: column; gap: 8px; }
.session-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border: 0.5px solid var(--border-tertiary);
  border-radius: var(--radius-lg);
}
.danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 0.5px solid #fca5a5;
  border-radius: var(--radius-lg);
  background: #fff5f5;
}
.btn-danger {
  background: none;
  border: 0.5px solid var(--text-danger);
  color: var(--text-danger);
  padding: 7px 14px;
  border-radius: var(--radius-md);
  font-size: 12px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background .1s;
}
.btn-danger:hover { background: #fdeaea; }
.btn-danger-sm {
  background: none;
  border: 0.5px solid var(--border-secondary);
  color: var(--text-secondary);
  padding: 5px 10px;
  border-radius: var(--radius-md);
  font-size: 12px;
  cursor: pointer;
  font-family: var(--font-sans);
  white-space: nowrap;
  transition: all .1s;
  flex-shrink: 0;
}
.btn-danger-sm:hover { border-color: var(--text-danger); color: var(--text-danger); background: #fdeaea; }
.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.history-table thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0 12px 10px;
  border-bottom: 0.5px solid var(--border-tertiary);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.history-row td {
  padding: 11px 12px;
  border-bottom: 0.5px solid var(--border-tertiary);
}
.history-row:last-child td { border-bottom: none; }
.history-time { font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); }
.history-tool { color: var(--text-primary); font-weight: 400; }
.history-ms   { font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); }
.history-status {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--radius-md);
  font-weight: 500;
}
.status-ok  { background: var(--bg-success); color: var(--text-success); }
.status-err { background: #fdeaea; color: var(--text-danger); }

/* 사이드바 하단 사용자 영역 */
.nav-user {
  margin: 4px 12px 8px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}
.nav-user-name {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-user-email {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.nav-logout-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: background .1s, color .1s;
}
.nav-logout-btn:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
}
