:root {
  color-scheme: light;
  --bg-canvas: #f6f5f2;
  --bg-sidebar: #efede8;
  --bg-surface: #ffffff;
  --bg-subtle: #faf9f7;
  --bg-hover: #f3f1ec;

  --text-primary: #18181b;
  --text-secondary: #57554f;
  --text-tertiary: #716e68;

  --border-hairline: #e6e4de;
  --border-control: #d5d2ca;
  --border-control-hover: #b8b4aa;

  /* Understated hospitality terracotta-claret + deep espresso */
  --accent-brand: #8b322c;
  --accent-brand-hover: #762924;
  --accent-ink: #1f1e1c;
  --accent-ink-hover: #32302d;

  --tone-green-bg: #ecf5f0;
  --tone-green-fg: #215e3f;
  --tone-green-dot: #2e855a;

  --tone-amber-bg: #faf2e3;
  --tone-amber-fg: #7c5116;
  --tone-amber-dot: #d08c28;

  --tone-blue-bg: #eef2f9;
  --tone-blue-fg: #2d4c7c;
  --tone-blue-dot: #4b74b8;

  --tone-red-bg: #fbeeed;
  --tone-red-fg: #992929;
  --tone-red-dot: #cf3f3f;

  --tone-stone-bg: #f1f0ec;
  --tone-stone-fg: #52504a;
  --tone-stone-dot: #949087;

  --focus-ring: #2d5be3;

  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-card: 0 1px 2px rgba(24, 24, 27, 0.03), 0 4px 12px rgba(24, 24, 27, 0.02);
  --shadow-elevated: 0 1px 2px rgba(24, 24, 27, 0.06);
}

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

::selection {
  background-color: #ead7d4;
  color: var(--text-primary);
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.brand-name,
.metric-value {
  font-family: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.02em;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.icon {
  inline-size: 16px;
  block-size: 16px;
  flex-shrink: 0;
}

/* --- APP SHELL (Sidebar + Workspace) --- */
.app-shell {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  min-block-size: 100dvh;
}

.sidebar {
  background-color: var(--bg-sidebar);
  border-inline-end: 1px solid var(--border-hairline);
  padding: 1.25rem 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  position: sticky;
  inset-block-start: 0;
  block-size: 100dvh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 0.5rem 1.25rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 36px;
  block-size: 36px;
  border-radius: 9px;
  background: var(--accent-brand);
  color: #ffffff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.side-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tab-btn {
  inline-size: 100%;
  min-block-size: 40px;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  text-align: start;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.tab-btn:hover {
  background-color: rgba(24, 24, 27, 0.04);
  color: var(--text-primary);
}

.tab-btn.active {
  background-color: var(--bg-surface);
  border-color: var(--border-hairline);
  box-shadow: var(--shadow-elevated);
  color: var(--text-primary);
  font-weight: 600;
}

.tab-btn.active .icon {
  color: var(--accent-brand);
}

.nav-pill {
  margin-inline-start: auto;
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(24, 24, 27, 0.06);
  color: var(--text-secondary);
}

.sidebar-footer {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-quota-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-block-end: 0.4rem;
}

.sidebar-quota-head label {
  font-weight: 500;
}

.sidebar-meta {
  margin: 0;
  font-size: 0.74rem;
  color: var(--text-tertiary);
}

/* --- CUSTOM PROGRESS BAR (modern-web-guidance: progress) --- */
progress {
  appearance: none;
  border: 0 solid;
  overflow: clip;
  inline-size: 100%;
  block-size: 6px;
  --progress-bar-radius: 999px;
  border-radius: var(--progress-bar-radius);
  background: #eae7e1;
}

progress::-webkit-progress-bar {
  background: transparent;
}

progress::-webkit-progress-value {
  background: var(--accent-brand);
  border-radius: var(--progress-bar-radius);
  transition: inline-size 0.3s ease;
}

progress::-moz-progress-bar {
  background: var(--accent-brand);
  border-radius: var(--progress-bar-radius);
  transition: inline-size 0.3s ease;
}

/* --- STATUS PILLS (Dot + Subtle Tinted Surface) --- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.24rem 0.62rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}

.status-dot {
  inline-size: 6px;
  block-size: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tone-green {
  background: var(--tone-green-bg);
  color: var(--tone-green-fg);
}
.tone-green .status-dot { background: var(--tone-green-dot); }

.tone-amber {
  background: var(--tone-amber-bg);
  color: var(--tone-amber-fg);
}
.tone-amber .status-dot { background: var(--tone-amber-dot); }

.tone-blue {
  background: var(--tone-blue-bg);
  color: var(--tone-blue-fg);
}
.tone-blue .status-dot { background: var(--tone-blue-dot); }

.tone-red {
  background: var(--tone-red-bg);
  color: var(--tone-red-fg);
}
.tone-red .status-dot { background: var(--tone-red-dot); }

.tone-stone {
  background: var(--tone-stone-bg);
  color: var(--tone-stone-fg);
}
.tone-stone .status-dot { background: var(--tone-stone-dot); }

/* --- MAIN WORKSPACE --- */
.workspace {
  max-inline-size: 1220px;
  inline-size: 100%;
  margin-inline: auto;
  padding: 1.75rem 2rem 2.5rem;
}

.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-block-end: 1.5rem;
}

.page-header h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
}

.page-subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* --- HARMONIOUS BUTTON SYSTEM --- */
.btn {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  min-block-size: 40px;
  padding: 0.48rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-sm {
  min-block-size: 34px;
  padding: 0.3rem 0.68rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-primary {
  background-color: var(--accent-ink);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 2px rgba(24, 24, 27, 0.08);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--accent-ink-hover);
}

.btn-surface {
  background-color: var(--bg-surface);
  border-color: var(--border-control);
  color: var(--text-primary);
  box-shadow: 0 1px 2px rgba(24, 24, 27, 0.03);
}

.btn-surface:hover:not(:disabled) {
  background-color: var(--bg-hover);
  border-color: var(--border-control-hover);
}

.btn-subtle {
  background-color: var(--bg-subtle);
  border-color: var(--border-hairline);
  color: var(--text-secondary);
}

.btn-subtle:hover:not(:disabled) {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* --- STATUS BANNER --- */
.status-banner {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  margin-block-end: 1.25rem;
  font-size: 0.86rem;
  font-weight: 500;
  border: 1px solid var(--border-hairline);
  background: var(--tone-blue-bg);
  color: var(--tone-blue-fg);
}

.status-banner[data-tone="error"] {
  background: var(--tone-red-bg);
  color: var(--tone-red-fg);
  border-color: #f3d0ce;
}

.status-banner[data-tone="success"] {
  background: var(--tone-green-bg);
  color: var(--tone-green-fg);
  border-color: #cbe6d7;
}

/* --- UNIFIED METRICS RIBBON --- */
.metrics-ribbon {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-block-end: 1.25rem;
  overflow: hidden;
}

.metric-cell {
  padding: 1.1rem 1.35rem;
  border-inline-end: 1px solid var(--border-hairline);
}

.metric-cell:last-child {
  border-inline-end: 0;
}

.metric-cell h2 {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-secondary);
}

.metric-value {
  margin: 0.35rem 0 0.2rem;
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.15;
}

.metric-caption {
  font-size: 0.76rem;
  color: var(--text-tertiary);
}

/* --- CARDS & SECTIONS --- */
.surface-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.25rem 1.4rem;
  margin-block-end: 1.25rem;
}

.table-card {
  padding: 0;
  overflow: hidden;
}

.table-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.1rem 1.4rem 0.85rem;
}

.table-card-head h2,
.section-head h2 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
}

.section-desc {
  margin: 0.2rem 0 0;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.section-head {
  margin-block-end: 1rem;
}

/* --- FORMS & CONTROLS --- */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.field label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.req {
  color: var(--accent-brand);
}

.hint {
  font-size: 0.76rem;
  color: var(--text-tertiary);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
select,
textarea {
  font: inherit;
  font-size: max(0.875rem, 14px);
  padding: 0.5rem 0.75rem;
  min-block-size: 40px;
  border: 1px solid var(--border-control);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  inline-size: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input::placeholder,
textarea::placeholder {
  color: #9c9890;
}

input:hover:not(:disabled),
select:hover:not(:disabled),
textarea:hover:not(:disabled) {
  border-color: var(--border-control-hover);
}

textarea {
  min-block-size: 165px;
  resize: vertical;
  line-height: 1.55;
}

/* Custom file input button theming (modern-web-guidance: browser-ui-theming) */
input[type="file"] {
  font: inherit;
  font-size: 0.84rem;
  color: var(--text-secondary);
  padding: 0.45rem;
  border: 1px dashed var(--border-control);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  inline-size: 100%;
}

input[type="file"]::file-selector-button {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.42rem 0.85rem;
  margin-inline-end: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-control);
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
}

input[type="checkbox"] {
  inline-size: 16px;
  block-size: 16px;
  accent-color: var(--accent-ink);
  flex-shrink: 0;
}

.checkbox-inline {
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
}

.checkbox-inline label {
  color: var(--text-primary);
  font-size: 0.84rem;
  cursor: pointer;
}

.toggle-card {
  padding: 0.85rem 1rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  margin-block-end: 1rem;
}

.error-msg {
  display: none;
  color: var(--tone-red-fg);
  font-size: 0.78rem;
  font-weight: 500;
}

:is(:user-invalid, .user-invalid-fallback) {
  border-color: var(--tone-red-dot);
  background-color: #fffafa;
}

:is(:user-invalid, .user-invalid-fallback) + .error-msg {
  display: block;
}

/* --- COMPACT DISCOVERY BAR --- */
.discovery-bar {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 130px auto;
  gap: 0.75rem;
  align-items: end;
}

/* --- INTEGRATED FILTER BAR --- */
.filter-region {
  padding: 0 1.4rem 0.95rem;
  border-block-end: 1px solid var(--border-hairline);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) 165px 185px auto auto;
  gap: 0.6rem;
  align-items: center;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  inset-inline-start: 0.72rem;
  inline-size: 15px;
  block-size: 15px;
  color: var(--text-tertiary);
  pointer-events: none;
}

.input-with-icon input {
  padding-inline-start: 2.15rem;
}

/* --- RESPONSIVE DATA TABLE --- */
.table-wrapper {
  overflow: auto;
  max-inline-size: 100%;
  max-block-size: min(600px, 72dvh);
  container-type: inline-size;
}

table {
  inline-size: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.86rem;
}

thead {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
}

thead th {
  background: var(--bg-subtle);
  color: var(--text-secondary);
  text-align: start;
  padding: 0.65rem 1.15rem;
  border-block-end: 1px solid var(--border-hairline);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

tbody th,
tbody td {
  padding: 0.85rem 1.15rem;
  border-block-end: 1px solid #f0eee9;
  vertical-align: middle;
  text-align: start;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-block-end: 0;
}

tbody th {
  position: sticky;
  inset-inline-start: 0;
  z-index: 1;
  background: var(--bg-surface);
  font-weight: 600;
  color: var(--text-primary);
  max-inline-size: 260px;
}

tbody tr:hover th,
tbody tr:hover td {
  background-color: #fbfaf8;
}

.cell-sub {
  display: block;
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--text-tertiary);
  margin-block-start: 0.15rem;
}

.cell-sub a {
  color: var(--text-secondary);
  text-decoration: none;
}

.cell-sub a:hover {
  text-decoration: underline;
  color: var(--accent-brand);
}

.mx-ok {
  color: var(--tone-green-fg);
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* Empty State */
.empty-state-cell {
  padding: 3rem 1.5rem !important;
  text-align: center !important;
}

.empty-state {
  max-inline-size: 380px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.empty-icon {
  inline-size: 38px;
  block-size: 38px;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  margin-block-end: 0.25rem;
}

.empty-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.empty-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

@container (width < 680px) {
  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  thead {
    display: none;
  }

  tr {
    margin: 0.75rem;
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
  }

  tbody th {
    position: sticky;
    inset-block-start: 0;
    max-inline-size: none;
    background: var(--bg-subtle);
  }

  #leads-table {
    --label-2: "Bölge & Sektör";
    --label-3: "E-Posta";
    --label-4: "Konu";
    --label-5: "Durum";
    --label-6: "İşlem";
  }

  #leads-table td:nth-child(2)::before { content: var(--label-2) ": "; font-weight: 600; }
  #leads-table td:nth-child(3)::before { content: var(--label-3) ": "; font-weight: 600; }
  #leads-table td:nth-child(4)::before { content: var(--label-4) ": "; font-weight: 600; }
  #leads-table td:nth-child(5)::before { content: var(--label-5) ": "; font-weight: 600; }
  #leads-table td:nth-child(6)::before { content: var(--label-6) ": "; font-weight: 600; }
}

/* --- SETTINGS & QUEUE LAYOUTS --- */
.quota-panel {
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.1rem;
  margin-block-end: 1.15rem;
}

.quota-panel-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  font-weight: 500;
  margin-block-end: 0.5rem;
}

.inline-action-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  margin-block-end: 1rem;
}

.inline-action-form .field {
  min-inline-size: 260px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.9rem;
  margin-block-end: 0.85rem;
}

fieldset {
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem;
  margin: 0 0 1.1rem;
}

legend {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
  padding-inline: 0.4rem;
}

.password-row {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

/* --- DIALOGS (modern-web-guidance: dialog + light-dismiss + prevent-page-scroll) --- */
dialog {
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 0;
  max-inline-size: min(720px, 94vw);
  inline-size: 100%;
  color: var(--text-primary);
  background: var(--bg-surface);
  box-shadow: 0 24px 48px rgba(24, 24, 27, 0.16), 0 4px 12px rgba(24, 24, 27, 0.06);
}

#csv-dialog {
  max-inline-size: min(500px, 94vw);
}

dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background-color: rgba(24, 24, 27, 0.38);
  backdrop-filter: blur(3px);
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.35rem;
  border-block-end: 1px solid var(--border-hairline);
}

.dialog-header h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.btn-icon {
  inline-size: 34px;
  block-size: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-icon:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.dialog-body {
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.dialog-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block-start: 0.85rem;
  margin-block-start: 0.25rem;
  border-block-start: 1px solid var(--border-hairline);
}

.dialog-footer-right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.workspace-footer {
  margin-block-start: 2rem;
  padding-block-start: 1rem;
  border-block-start: 1px solid var(--border-hairline);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    block-size: auto;
    border-inline-end: 0;
    border-block-end: 1px solid var(--border-hairline);
    padding: 1rem;
  }

  .side-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .tab-btn {
    inline-size: auto;
  }

  .sidebar-footer {
    display: none;
  }

  .workspace {
    padding: 1.25rem;
  }

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

  .discovery-bar,
  .filter-bar {
    grid-template-columns: 1fr;
  }
}
