:root {
  --bg: #ffffff;
  --bg-secondary: #fbfaf8;
  --bg-card: #ffffff;
  --bg-input: #fbfaf8;
  --bg-nav: #ffffff;

  --border: #e8e6e1;
  --border-hover: #d2cfc8;
  --border-focus: #ea580c;

  --text: #111111;
  --text-secondary: #52525b;
  --text-muted: #8e8e93;
  --text-inverse: #ffffff;

  --orange: #ea580c;
  --orange-hover: #c2410c;
  --orange-light: #fff7ed;
  --orange-border: #fed7aa;
  --gusto-red-orange: #e23b1c;

  --accent: #ea580c;
  --accent-hover: #c2410c;
  --accent-soft: #fff7ed;

  --green: #16a34a;
  --green-bg: #f0fdf4;
  --red: #dc2626;
  --red-bg: #fef2f2;
  --amber: #f59e0b;
  --amber-bg: #fffbeb;
  --blue: #2563eb;
  --blue-bg: #eff6ff;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Consolas', 'Cascadia Code', 'Menlo', monospace;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 2px 6px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-float: 0 20px 35px -10px rgba(0,0,0,0.18), 0 8px 12px -5px rgba(0,0,0,0.1);
  --transition: 0.18s ease;
}

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

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg-secondary);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.navbar {
  background: #ffffff;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.nav-brand { display: flex; align-items: center; gap: 1rem; }
.brand-link { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit; }
.nav-links { display: flex; align-items: center; gap: 0.35rem; }
.nav-link {
  background: transparent; border: none; color: var(--text-secondary);
  font-family: inherit; font-size: 0.825rem; font-weight: 500;
  padding: 0.35rem 0.75rem; border-radius: var(--radius-sm);
  cursor: pointer; transition: all var(--transition);
}
.nav-link:hover { color: var(--text); background: var(--bg-secondary); }
.nav-link.active { color: var(--orange); background: var(--orange-light); font-weight: 600; }

.logo-wrapper { position: relative; }
.logo-box {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.35);
}
.logo-pulse { display: none; }
.logo-icon { width: 18px; height: 18px; }

.brand-title { display: flex; align-items: center; gap: 0.5rem; }
.brand-elara { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.brand-badge {
  font-size: 0.6rem; font-weight: 600;
  padding: 2px 6px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  letter-spacing: 0.06em;
}
.brand-sub { font-size: 0.7rem; color: var(--text-muted); }
.brand-text { line-height: 1.3; }

.nav-right { display: flex; align-items: center; gap: 0.75rem; }

.status-badge {
  display: flex; align-items: center; gap: 0.45rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem; font-weight: 600;
  color: #15803d;
}
.status-badge.degraded {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}
.status-badge.degraded .solid-dot {
  background: #f59e0b;
}
.status-dot { position: relative; width: 7px; height: 7px; }
.solid-dot { width: 7px; height: 7px; background: var(--green); border-radius: 50%; }
.ping-wave { display: none; }
.status-text { white-space: nowrap; }

.auth-box { display: flex; align-items: center; gap: 0.4rem; }
.user-pill {
  display: flex; align-items: center; gap: 0.4rem;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem; font-weight: 600; color: var(--text);
}
.user-avatar {
  width: 20px; height: 20px; background: #e4e4e7;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text);
}
.btn-secondary-nav {
  background: #f4f4f5; border: 1px solid #e4e4e7;
  color: var(--text); padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm); font-size: 0.78rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 0.35rem; cursor: pointer;
  transition: all var(--transition);
}
.btn-secondary-nav:hover { background: #e4e4e7; color: #000; border-color: #d4d4d8; }
.btn-logout {
  color: #ef4444;
  background: #fef2f2;
  border-color: #fee2e2;
}
.btn-logout:hover { background: #fee2e2; color: #dc2626; border-color: #fca5a5; }

.btn-profile {
  gap: 0.45rem;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  color: var(--text);
}
.btn-profile:hover {
  background: #e4e4e7;
  border-color: #d4d4d8;
}
.profile-nav-text {
  font-weight: 600;
}
.user-pill-tag {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--orange);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-motion { border: none; border-radius: var(--radius-sm); cursor: pointer; font-family: inherit; font-weight: 600; display: inline-flex; align-items: center; transition: all var(--transition); }
.btn-auth {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 34px;
  padding: 0 0.95rem;
  background: var(--orange);
  color: #ffffff;
  border: 1px solid var(--orange);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.25);
  transition: all var(--transition);
  user-select: none;
}
.btn-auth svg {
  width: 14px;
  height: 14px;
  stroke: #ffffff;
  stroke-width: 2.2;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.btn-auth:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
}
.btn-auth:hover svg {
  transform: translateX(1.5px);
}
.btn-auth:active {
  transform: translateY(0);
}
.btn-auth:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.container { max-width: 1380px; margin: 1.5rem auto; padding: 0 1.25rem; }
.grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.25rem; align-items: start; }
@media (max-width: 1024px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.card-header {
  display: flex; align-items: flex-start; gap: 0.75rem;
  margin-bottom: 1.25rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.header-icon-box {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--bg-secondary); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); flex-shrink: 0;
}
.header-icon-cyan { background: var(--bg-secondary); color: var(--text-secondary); }

.card h2 { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.card-desc { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.15rem; }

.card-top {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.75rem;
  margin-bottom: 1rem; padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.card-header-inline { display: flex; align-items: center; gap: 0.65rem; }

.field { margin-bottom: 0.85rem; }
.field label {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; font-weight: 600; color: var(--text);
  margin-bottom: 0.3rem;
}
.required-star { color: var(--red); margin-left: 0.15rem; }
.field-hint { font-size: 0.7rem; color: var(--text-muted); font-weight: 400; }

input[type="text"], input[type="password"], textarea, select {
  width: 100%; background: var(--bg-input);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem; font-family: inherit; font-size: 0.85rem;
  color: var(--text); transition: border-color var(--transition); outline: none;
}
select { cursor: pointer; }
textarea { resize: vertical; line-height: 1.55; }
input:focus, textarea:focus, select:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(0,0,0,0.06); }
input::placeholder, textarea::placeholder { color: #b0b0b0; }

.files-section-title {
  margin: 1rem 0 0.5rem; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted);
}
.file-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-bottom: 1.2rem; }
@media (max-width: 900px) { .file-group { grid-template-columns: 1fr; } }

.file-dropzone {
  background: var(--bg-secondary); border: 1px dashed var(--border);
  border-radius: var(--radius-sm); padding: 0.6rem;
  display: flex; align-items: flex-start; gap: 0.5rem;
  cursor: pointer; transition: all var(--transition);
}
.file-dropzone:hover { border-color: var(--text-muted); background: #f0f1f3; }
.file-dropzone.has-file { border-style: solid; border-color: var(--green); background: var(--green-bg); }
.file-dropzone.has-file .drop-icon { background: var(--green-bg); color: var(--green); }

.drop-icon {
  width: 30px; height: 30px; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); flex-shrink: 0;
}
.drop-info { display: flex; flex-direction: column; overflow: hidden; }
.drop-info label { font-size: 0.75rem; font-weight: 600; color: var(--text); cursor: pointer; }
.drop-sub { font-size: 0.65rem; color: var(--text-muted); }
.drop-filename { font-size: 0.65rem; color: var(--blue); font-family: var(--font-mono); margin-top: 0.1rem; }
.hidden-file-input { display: none; }

.btn-generate {
  width: 100%; padding: 0.75rem 1rem;
  background: var(--accent); color: var(--text-inverse);
  font-size: 0.88rem; font-weight: 600; border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-generate:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-generate:disabled { opacity: 0.6; cursor: not-allowed; }

.export-bar { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.btn-dl {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 0.35rem 0.65rem; border-radius: var(--radius-sm);
  font-size: 0.75rem; text-decoration: none; color: var(--text);
  font-weight: 600; display: inline-flex; align-items: center; gap: 0.35rem;
  transition: all var(--transition);
}
.btn-dl:hover { background: var(--bg-secondary); border-color: var(--border-hover); }
.btn-dl-docx:hover { color: var(--blue); }
.btn-dl-xlsx:hover { color: var(--green); }
.btn-dl-jira {
  background: #0052cc;
  color: #ffffff;
  border-color: #0052cc;
}
.btn-dl-jira:hover {
  background: #0747a6;
  color: #ffffff;
  border-color: #0747a6;
}
.btn-dl-json:hover { color: var(--amber); }
.btn-dl-stats:hover { color: #7c3aed; }

.empty-view { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.empty-icon-box {
  width: 56px; height: 56px; margin: 0 auto 1rem;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}
.empty-view h3 { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 0.35rem; }
.empty-view p { font-size: 0.8rem; color: var(--text-secondary); max-width: 380px; margin: 0 auto 1.25rem; }
.empty-view code { background: var(--bg-secondary); padding: 0.1rem 0.35rem; border-radius: 3px; font-size: 0.78rem; }

.hint-pills { display: flex; justify-content: center; gap: 0.4rem; flex-wrap: wrap; }
.pill-badge {
  font-size: 0.7rem; font-weight: 500; padding: 0.25rem 0.55rem;
  border-radius: 999px; background: var(--bg-secondary);
  border: 1px solid var(--border); color: var(--text-secondary);
}

.pipeline-loader {
  background: var(--bg-card);
  border: 1px solid var(--orange-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: 0 4px 14px -3px rgba(234, 88, 12, 0.08);
}
.pipeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}
.pipeline-title-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.pipeline-spinner-orange {
  width: 15px;
  height: 15px;
  border: 2px solid #fed7aa;
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
.pipeline-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}
.pipeline-percent {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--orange);
  font-family: var(--font-mono);
}
.pipeline-bar-wrapper {
  height: 8px;
  background: #ffedd5;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(234, 88, 12, 0.12);
  margin-bottom: 0.65rem;
}
.pipeline-bar {
  height: 100%;
  width: 10%;
  background: linear-gradient(90deg, #ea580c 0%, #f97316 60%, #fb923c 100%);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(234, 88, 12, 0.5);
  transition: width 0.35s ease;
}
.pipeline-subtext {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.pipeline-steps { display: flex; flex-direction: column; gap: 0.55rem; }
.step-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; color: var(--text-muted); transition: all var(--transition); }
.step-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: all var(--transition); }
.step-item.active { color: var(--orange); font-weight: 700; }
.step-item.active .step-dot { background: var(--orange); box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.2); }
.step-item.done { color: var(--green); }
.step-item.done .step-dot { background: var(--green); }

.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; margin-bottom: 1rem; }
@media (max-width: 768px) { .metrics-grid { grid-template-columns: 1fr 1fr; } }

.metric-card {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.75rem 0.95rem;
  display: flex; flex-direction: column; justify-content: center;
}
.metric-icon { display: none; }
.metric-info { display: flex; flex-direction: column; width: 100%; }
.metric-label { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.04em; margin-bottom: 0.25rem; }
.metric-value { font-size: 1.15rem; font-weight: 800; color: var(--text); font-family: var(--font-mono); }
.highlight-stack { color: var(--text); font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.summary-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.85rem 1rem; margin-bottom: 1rem; }
.summary-head { display: flex; align-items: center; gap: 0.35rem; font-size: 0.75rem; font-weight: 700; color: var(--text-secondary); margin-bottom: 0.3rem; }
.summary-box { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.55; }

.filter-bar { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.85rem; flex-wrap: wrap; }
.filter-label { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); }
.filter-pill {
  background: transparent; border: 1px solid var(--border);
  color: var(--text-secondary); padding: 0.2rem 0.55rem;
  border-radius: 999px; font-size: 0.7rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
}
.filter-pill:hover { background: var(--bg-secondary); }
.filter-pill.active { background: var(--text); color: var(--text-inverse); border-color: var(--text); }

.stories-box { display: flex; flex-direction: column; gap: 0.7rem; }

.story-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
  transition: box-shadow var(--transition);
}
.story-card:hover { box-shadow: var(--shadow); }

.story-head {
  background: var(--bg-secondary); padding: 0.65rem 0.85rem;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--border); cursor: pointer; user-select: none;
}
.story-head-left { display: flex; align-items: center; gap: 0.5rem; }
.story-badge {
  background: var(--bg-card); border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700;
  padding: 0.15rem 0.4rem; border-radius: 4px; color: var(--text);
}
.story-title-text { font-size: 0.88rem; font-weight: 600; color: var(--text); }

.story-head-right { display: flex; align-items: center; gap: 0.45rem; }
.priority-pill { font-size: 0.65rem; font-weight: 700; padding: 0.15rem 0.4rem; border-radius: 999px; }
.priority-high, .priority-highest { background: var(--red-bg); color: var(--red); }
.priority-medium { background: var(--amber-bg); color: var(--amber); }
.priority-low { background: var(--green-bg); color: var(--green); }

.sp-badge {
  font-size: 0.68rem; font-weight: 700; color: var(--text-muted);
  background: var(--bg-card); padding: 0.15rem 0.4rem;
  border-radius: 4px; border: 1px solid var(--border);
  font-family: var(--font-mono);
}
.accordion-chevron { width: 16px; height: 16px; color: var(--text-muted); transition: transform var(--transition); }
.story-card.open .accordion-chevron { transform: rotate(180deg); }

.story-body { padding: 0.85rem; display: none; }
.story-card.open .story-body { display: block; }

.story-text {
  font-size: 0.82rem; color: var(--text-secondary);
  background: var(--bg-secondary); padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm); border-left: 3px solid var(--text);
  margin-bottom: 0.75rem;
}

.ac-block { margin-bottom: 0.75rem; }
.ac-title { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.3rem; letter-spacing: 0.04em; }
.ac-list { list-style: none; padding: 0; }
.ac-list li { font-size: 0.78rem; color: var(--text-secondary); padding: 0.2rem 0 0.2rem 1rem; position: relative; }
.ac-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--green); font-weight: bold; }

.task-table-wrapper { 
  overflow-x: auto; 
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-sm); 
  border: 1px solid var(--border); 
}
.task-table { 
  width: 100%; 
  min-width: 520px;
  border-collapse: collapse; 
  font-size: 0.76rem; 
  text-align: left; 
}
.task-table th { background: var(--bg-secondary); color: var(--text); font-weight: 700; padding: 0.5rem 0.65rem; border-bottom: 1px solid var(--border); }
.task-table td { padding: 0.5rem 0.65rem; border-bottom: 1px solid #f3f4f6; color: var(--text-secondary); vertical-align: top; }
.task-table tr:last-child td { border-bottom: none; }
.task-table tr:hover td { background: var(--bg-secondary); }

.task-id { font-family: var(--font-mono); font-weight: 700; color: var(--text); }

.comp-badge { font-size: 0.65rem; font-weight: 600; padding: 0.12rem 0.4rem; border-radius: 4px; display: inline-block; }
.comp-backend { background: var(--blue-bg); color: var(--blue); }
.comp-api { background: #f0fdf4; color: #059669; }
.comp-database { background: var(--amber-bg); color: #b45309; }
.comp-tests { background: #faf5ff; color: #7c3aed; }
.comp-devops { background: #fef2f2; color: #dc2626; }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 1.5rem;
}
.modal-card {
  background: #fff; border: 1px solid var(--border);
  width: 100%; max-width: 420px; border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-lg);
}
.modal-lg { max-width: 800px; max-height: 85vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
.modal-subtitle { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.15rem; }
.modal-header-text h3 { font-size: 1rem; }

.close-btn { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--text-muted); line-height: 1; }
.close-btn:hover { color: var(--text); }

.auth-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.auth-tab-btn {
  flex: 1; padding: 0.5rem; background: none; border: none;
  border-bottom: 2px solid transparent;
  font-weight: 600; font-size: 0.82rem; cursor: pointer; color: var(--text-muted);
  transition: all var(--transition);
}
.auth-tab-btn:hover { color: var(--text-secondary); }
.auth-tab-btn.active { border-bottom-color: var(--text); color: var(--text); }

.hist-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.hist-table th { background: var(--bg-secondary); padding: 0.5rem 0.7rem; color: var(--text); font-weight: 600; border-bottom: 1px solid var(--border); text-align: left; }
.hist-table td { padding: 0.55rem 0.7rem; border-bottom: 1px solid #f3f4f6; color: var(--text-secondary); }
.hist-table tr:hover td { background: var(--bg-secondary); }

.modal-profile {
  max-width: 740px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.4rem;
}
.profile-body {
  padding-top: 0.2rem;
  overflow-y: auto;
  flex: 1;
}
.profile-user-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  margin-bottom: 1rem;
}
.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #f97316);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.3);
}
.profile-user-details {
  flex: 1;
  min-width: 0;
}
.profile-name-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.profile-full-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.profile-role-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 7px;
  background: #e5e7eb;
  color: #1f2937;
  border-radius: 4px;
}
.profile-meta-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.profile-username {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-weight: 500;
}
.profile-dot-sep {
  color: var(--border-hover);
}
.profile-user-id {
  font-family: var(--font-mono);
}

.profile-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.55rem;
}
.profile-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.profile-history-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 1px 7px;
  border-radius: 999px;
  font-family: var(--font-mono);
}

.profile-stats-section {
  margin-bottom: 1.15rem;
}
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.profile-stat-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.6rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.profile-stat-icon {
  color: var(--text-muted);
  margin-bottom: 0.2rem;
  display: flex;
}
.profile-stat-val {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text);
  line-height: 1.2;
}
.profile-stat-lbl {
  font-size: 0.68rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 0.2rem;
}

.profile-history-section {
  margin-bottom: 1rem;
}
.profile-history-container {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  max-height: 240px;
  overflow-y: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.profile-empty-history {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.4rem 1.2rem;
  text-align: center;
  color: var(--text-muted);
}
.profile-history-loading {
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.profile-hist-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.profile-hist-table th {
  position: sticky;
  top: 0;
  background: var(--bg-secondary);
  z-index: 2;
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.profile-hist-table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #f3f4f6;
  color: var(--text);
  vertical-align: middle;
}
.profile-hist-table tr:last-child td {
  border-bottom: none;
}
.profile-hist-table tr:hover td {
  background: var(--bg-secondary);
}

.best-run-row {
  background: rgba(245, 158, 11, 0.05) !important;
}
.best-run-row td:first-child {
  border-left: 3px solid #f59e0b;
}

.badge-best-lead {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.badge-best-ai {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.badge-score {
  display: inline-flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.btn-star {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1;
  padding: 0;
  transition: all var(--transition);
}
.btn-star:hover {
  color: #f59e0b;
  transform: scale(1.2);
}
.btn-star.active {
  color: #f59e0b;
  text-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
}

.btn-dl-view {
  background: var(--orange);
  color: #ffffff;
  border: 1px solid var(--orange);
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
}
.btn-dl-view:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
}

.hist-dl-actions {
  display: flex;
  gap: 0.3rem;
  align-items: center;
}
.hist-dl-actions .btn-dl {
  padding: 0.22rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  line-height: 1.2;
}
.btn-dl-jira {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.btn-dl-jira:hover {
  background: #dbeafe;
}

.profile-empty-history {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.2rem 1.2rem;
  text-align: center;
  color: var(--text-muted);
}
.profile-empty-history svg {
  margin-bottom: 0.5rem;
  opacity: 0.5;
}
.profile-empty-history p {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0.2rem;
}
.profile-empty-history span {
  font-size: 0.76rem;
  max-width: 340px;
  line-height: 1.4;
}

.profile-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 9999;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: #ffffff;
  color: #0f172a;
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius);
  font-size: 0.84rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  max-width: 400px;
  animation: toastSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  border: 1px solid var(--border);
  line-height: 1.45;
}
.toast .toast-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  display: inline-flex;
}
.toast .toast-msg {
  flex: 1;
  word-break: break-word;
}
.toast-info {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--orange);
}
.toast-warning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
}
.toast-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-left: 4px solid #dc2626;
}
.toast-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-left: 4px solid #16a34a;
}

@keyframes toastSlideIn { 0% { transform: translateX(100%); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }
@keyframes toastSlideOut { 0% { transform: translateX(0); opacity: 1; } 100% { transform: translateX(100%); opacity: 0; } }

.hidden { display: none !important; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

.ambient-glow, .bg-grid-pattern { display: none; }

.landing-section {
  padding: 1rem 0 3.5rem;
}

.gusto-hero-canvas {
  background: radial-gradient(110% 90% at 50% 0%, #ee4724 0%, #e23b1c 50%, #cb2d0f 100%);
  color: #ffffff;
  border-radius: 24px;
  padding: 4.5rem 2rem 4rem;
  margin: 0 0 3rem;
  box-shadow: 0 20px 45px -15px rgba(226, 59, 28, 0.38);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.gusto-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.95rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  border-radius: 999px;
  margin-bottom: 1.4rem;
  backdrop-filter: blur(8px);
}

.gusto-title {
  font-size: 2.85rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: #ffffff;
  max-width: 840px;
  margin: 0 auto 1.25rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.gusto-subtitle {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  max-width: 680px;
  margin: 0 auto 2.2rem;
  font-weight: 400;
}

.gusto-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.25rem;
  flex-wrap: wrap;
}

.btn-gusto-primary {
  background: #ffffff;
  color: #111111;
  border: 1px solid #ffffff;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  padding: 0.85rem 1.85rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}
.btn-gusto-primary:hover {
  background: #f4f4f5;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.btn-gusto-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  backdrop-filter: blur(8px);
}
.btn-gusto-secondary:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.hero-feature-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  max-width: 820px;
  margin: 0 auto;
}

.h-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  transition: all var(--transition);
}
.h-pill:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.45);
}
.h-pill svg {
  color: #ffffff;
  opacity: 0.9;
}

.workflow-section {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.75rem 2.25rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.workflow-title {
  text-align: center;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2.25rem;
  letter-spacing: -0.02em;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .workflow-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .workflow-steps { grid-template-columns: 1fr; }
}

.wf-step {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem 1.2rem;
  transition: all var(--transition);
}
.wf-step:hover {
  border-color: var(--orange);
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

.wf-num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--orange);
  margin-bottom: 0.6rem;
  border-bottom: 2px solid var(--orange-border);
  padding-bottom: 0.4rem;
}

.wf-step h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.wf-step p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.modal-form-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

@media (max-width: 1024px) {
  .navbar {
    padding: 0 1.25rem;
  }
  .container {
    padding: 0 1rem;
    margin: 1rem auto;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 0.85rem;
    height: 52px;
  }
  .brand-elara {
    font-size: 0.95rem;
  }
  .logo-box {
    width: 28px;
    height: 28px;
  }
  .logo-box svg {
    width: 16px;
    height: 16px;
  }
  .status-badge {
    padding: 0.25rem 0.5rem;
  }
  .status-text {
    display: none;
  }
  
  .container {
    padding: 0 0.65rem;
    margin: 0.75rem auto;
  }

  input[type="text"],
  input[type="password"],
  textarea,
  select {
    font-size: 16px !important;
  }

  .gusto-hero-canvas {
    padding: 2.5rem 1rem 2.2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
  }
  .gusto-title {
    font-size: 1.75rem;
    line-height: 1.22;
    margin-bottom: 0.85rem;
  }
  .gusto-subtitle {
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 1.6rem;
  }
  .gusto-actions {
    flex-direction: column;
    width: 100%;
    margin-bottom: 2.2rem;
  }
  .btn-gusto-primary,
  .btn-gusto-secondary {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1.2rem;
    font-size: 0.92rem;
  }
  .floating-card {
    display: none;
  }
  .mockup-body {
    padding: 1rem 0.85rem;
  }
  .mockup-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .mockup-story-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .mockup-story-badges {
    width: 100%;
    justify-content: space-between;
  }

  .card {
    padding: 1.1rem 0.9rem;
  }
  .card-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    gap: 0.6rem;
  }
  .header-icon-box {
    width: 32px;
    height: 32px;
  }
  .card h2 {
    font-size: 0.95rem;
  }

  .card-top {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .export-bar {
    width: 100%;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.45rem;
  }
  .export-bar.hidden {
    display: none !important;
  }
  .export-bar .btn-dl {
    padding: 0.5rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    box-sizing: border-box;
    border-radius: var(--radius-sm);
  }
  .export-bar .btn-dl-docx,
  .export-bar .btn-dl-xlsx {
    flex: 1 1 calc(50% - 0.25rem);
    justify-content: center;
  }
  .export-bar .btn-dl-jira {
    flex: 1 1 100% !important;
    width: 100% !important;
    justify-content: center;
    background: #0052cc !important;
    color: #ffffff !important;
    border: 1px solid #0052cc !important;
    padding: 0.55rem 0.75rem !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }
  .export-bar .btn-dl-jira:hover {
    background: #0747a6 !important;
    border-color: #0747a6 !important;
  }

  .workflow-section {
    padding: 1.5rem 1rem;
  }
  .workflow-title {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
  }
}

@media (max-width: 640px) {
  .story-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
  }
  .story-head-left {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    width: 100%;
  }
  .story-badge {
    flex-shrink: 0;
  }
  .story-title-text {
    font-size: 0.82rem;
    line-height: 1.35;
    word-break: break-word;
  }
  .story-head-right {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-top: 0.35rem;
    border-top: 1px dashed var(--border);
  }

  .task-table-wrapper {
    overflow-x: visible !important;
    border: none !important;
    background: transparent !important;
  }
  .task-table,
  .task-table thead,
  .task-table tbody,
  .task-table tr,
  .task-table td {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .task-table thead {
    display: none !important;
  }
  .task-table tr {
    background: #ffffff !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    margin-bottom: 0.65rem !important;
    padding: 0.7rem 0.8rem !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03) !important;
  }
  .task-table td {
    border: none !important;
    padding: 0.15rem 0 !important;
  }
  .task-table td.task-id {
    font-size: 0.72rem !important;
    color: var(--text-muted) !important;
    font-weight: 700 !important;
    font-family: var(--font-mono) !important;
  }
  .task-table td.task-title {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: var(--text) !important;
    padding: 0.2rem 0 0.35rem !important;
    line-height: 1.35 !important;
  }
  .task-table td.task-comp {
    padding-bottom: 0.25rem !important;
  }
  .task-table td.task-desc {
    font-size: 0.8rem !important;
    color: var(--text-secondary) !important;
    line-height: 1.5 !important;
    background: var(--bg-secondary) !important;
    padding: 0.5rem 0.65rem !important;
    border-radius: 4px !important;
    margin: 0.35rem 0 !important;
    border-left: 3px solid var(--text-muted) !important;
    word-break: break-word !important;
  }
  .task-table td.task-est {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: var(--text) !important;
    text-align: right !important;
    padding-top: 0.25rem !important;
  }
  .task-table td.task-est::before {
    content: "Трудоемкость: ";
    font-weight: 500;
    color: var(--text-muted);
  }

  .metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
  }
  .metric-card {
    padding: 0.55rem 0.65rem;
  }
  .metric-value {
    font-size: 0.95rem;
  }

  .form-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 0.5rem;
  }
  .modal-form-actions {
    flex-direction: column;
  }
  .modal-form-actions button,
  .modal-form-actions a {
    width: 100%;
    justify-content: center;
  }

  .modal-overlay {
    padding: 0.5rem;
  }
  .modal-card {
    padding: 1.15rem 0.85rem;
    max-height: 92vh;
  }
  .modal-profile {
    padding: 0.9rem 0.7rem;
    max-height: 94vh;
  }

  .toast-container {
    bottom: 0.75rem;
    right: 0.6rem;
    left: 0.6rem;
    max-width: none;
  }
  .toast {
    max-width: none;
    width: 100%;
    font-size: 0.78rem;
    padding: 0.6rem 0.85rem;
  }
}

@media (max-width: 480px) {
  .status-badge {
    display: none;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .btn-auth {
    padding: 0.35rem 0.65rem;
    font-size: 0.76rem;
  }
  .btn-profile {
    padding: 0.35rem 0.55rem;
    font-size: 0.76rem;
    gap: 0.35rem;
  }
  .user-pill-tag {
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
  }

  .profile-user-card {
    padding: 0.65rem 0.75rem;
    gap: 0.65rem;
  }
  .profile-avatar {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }
  .profile-full-name {
    font-size: 0.92rem;
  }
  .profile-meta-row {
    font-size: 0.72rem;
  }

  .profile-stats-grid {
    gap: 0.35rem;
  }
  .profile-stat-box {
    padding: 0.45rem 0.25rem;
  }
  .profile-stat-val {
    font-size: 1.05rem;
  }
  .profile-stat-lbl {
    font-size: 0.62rem;
  }

  .profile-actions button {
    width: 100%;
    justify-content: center;
  }
  
  .filter-bar {
    gap: 0.3rem;
  }
  .filter-pill {
    padding: 0.2rem 0.45rem;
    font-size: 0.68rem;
  }
}
