/* Kaynak: apexajans.com :root, 2026-10 */
:root {
  --bg: #F7F8FB; --bg-2: #FFFFFF; --bg-3: #EDF0F5; --bg-dark: #0A1230;
  --text: #0A1230; --text-2: #475370; --text-3: #8896AC; --text-inv: #F5F7FA;
  --border: #E2E6EE; --border-2: #CCD3E0;
  --green: #00D562; --green-2: #00E673; --green-deep: #00A050; --green-dim: rgba(0,213,98,.15);
  --blue: #3D7FFF; --blue-2: #6B9EFF; --blue-deep: #2563EB; --blue-dim: rgba(61,127,255,.08);
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --t-fast: 150ms cubic-bezier(.4,0,.2,1); --t-base: 280ms cubic-bezier(.4,0,.2,1);
  /* Panel'e özel eklemeler */
  --amber: #F5A524; --amber-dim: rgba(245,165,36,.14);
  --red: #E5484D;   --red-dim: rgba(229,72,77,.10);
}

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

html {
  overflow-x: hidden;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(61,127,255,.06), transparent 60%),
    radial-gradient(700px 380px at 88% 0%, rgba(0,213,98,.05), transparent 55%),
    var(--bg);
}

a { color: var(--blue-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg-2);
  padding: 8px 12px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Logo */
.logo-mark {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 12px solid var(--green);
  vertical-align: middle;
  margin-right: 8px;
}
.logo-text {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text);
}
.logo-sub {
  color: var(--text-3);
  font-weight: 500;
}

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px clamp(16px, 3vw, 28px);
  min-height: 56px;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 40;
}
.topbar .btn-primary {
  box-shadow: none;
}
.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.brand-link:hover { text-decoration: none; }
.topbar-nav {
  display: flex;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-tab, .bottom-tab {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-3);
  padding: 8px 12px;
  border-radius: 0;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.nav-tab:hover, .bottom-tab:hover {
  color: var(--text);
  text-decoration: none;
}
.nav-tab.is-active, .bottom-tab.is-active {
  color: var(--text);
  border-bottom-color: var(--green);
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.badge {
  display: inline-block;
  min-width: 1.2em;
  padding: 0 5px;
  margin-left: 4px;
  font-size: 10px;
  background: var(--red-dim);
  color: var(--red);
  border-radius: 4px;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--text-2);
  border: 1px solid var(--border);
  background: var(--bg-2);
  cursor: pointer;
  border-radius: 0;
  padding: 0;
  appearance: none;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.icon-btn:hover {
  color: var(--blue);
  border-color: var(--blue);
  background: var(--blue-dim);
  text-decoration: none;
}

.app-main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px clamp(16px, 3vw, 28px) calc(96px + env(safe-area-inset-bottom, 0px));
  min-height: calc(100vh - 60px);
}

/* Bottom nav (mobile) */
.bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  justify-content: space-around;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  z-index: 40;
}
.fab {
  display: none;
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  width: 52px;
  height: 52px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--green);
  background: var(--green);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  border-radius: 0;
  box-shadow: 0 4px 16px rgba(10,18,48,.12);
  z-index: 41;
  appearance: none;
}
.fab:hover:not(:disabled) {
  background: var(--green-2);
  border-color: var(--green-2);
}

@media (max-width: 767px) {
  .topbar-nav { display: none; }
  .bottom-nav { display: flex; }
  .fab:not([hidden]) { display: flex; align-items: center; justify-content: center; }
  #btn-new-task { display: none !important; }
  .bottom-tab {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
  }
  .filter-chip, .btn, .icon-btn, .task-menu-btn {
    min-height: 44px;
  }
  .icon-btn, .task-menu-btn {
    min-width: 44px;
  }
  .app-main {
    padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
  }
  .board-filters, .board-page, .archive-page, .settings-page {
    max-width: 100%;
    overflow-x: hidden;
  }
}

/* Buttons — Apex site .btn spirit: mono, uppercase, square, bordered */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  line-height: 1.2;
  padding: 10px 16px;
  border: 1px solid var(--border-2);
  background: var(--bg-2);
  color: var(--text);
  cursor: pointer;
  border-radius: 0;
  text-decoration: none;
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  text-decoration: none;
}
.btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--green);
  border-color: var(--green);
  color: var(--text);
  font-weight: 700;
}
.btn-primary:hover {
  background: var(--green-2);
  border-color: var(--green-2);
  color: var(--text);
}
.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-2);
}
.btn-ghost:hover {
  color: var(--blue);
  background: var(--blue-dim);
  border-color: transparent;
}
.btn-danger {
  background: var(--bg-2);
  border-color: var(--red);
  color: var(--red);
}
.btn-danger:hover {
  background: var(--red-dim);
  border-color: var(--red);
  color: var(--red);
}
.btn-sm {
  padding: 8px 12px;
  font-size: 12px;
  letter-spacing: .07em;
}
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Forms */
.field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-3);
  margin: 0 0 8px;
}
input[type="text"],
input[type="password"],
input[type="search"],
input[type="date"],
input[type="number"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-2);
  background: var(--bg-2);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%),
    linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 11px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px var(--blue-dim);
}
input::placeholder, textarea::placeholder {
  color: var(--text-3);
}
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-2);
}

/* Cards / surfaces */
.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.card:hover {
  border-color: var(--border-2);
  box-shadow: 0 4px 16px rgba(10,18,48,.06);
}

.placeholder-view {
  max-width: 520px;
  margin: 48px auto;
  text-align: center;
}
.placeholder-view h1 {
  font-family: var(--font-mono);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-3);
  font-weight: 500;
  margin: 0 0 12px;
}
.placeholder-view p {
  color: var(--text-2);
  margin: 0;
}

/* Auth pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 4px 24px rgba(10,18,48,.06);
}
.auth-brand { margin-bottom: 20px; }
.auth-title {
  font-family: var(--font-mono);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 8px;
}
.auth-lead { color: var(--text-2); margin: 0 0 20px; font-size: 14px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-error {
  background: var(--red-dim);
  color: var(--red);
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 14px;
}
.auth-notice {
  background: var(--blue-dim);
  color: var(--text);
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 14px;
  border: 1px solid rgba(61,127,255,.25);
}
.empty-state {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0;
}
.auth-warn {
  background: var(--amber-dim);
  color: var(--text);
  padding: 12px;
  margin-bottom: 14px;
  font-size: 13px;
  border: 1px solid rgba(245,165,36,.35);
}
.env-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.env-list li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.env-list li.ok .env-mark { color: var(--green-deep); }
.env-list li.bad .env-mark { color: var(--red); }
.env-list small {
  display: block;
  color: var(--text-3);
  margin-top: 2px;
  word-break: break-all;
}
.code-block {
  background: var(--bg-3);
  padding: 10px;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 12px;
}

/* Settings */
.settings-page h1 {
  font-family: var(--font-mono);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-3);
  margin: 0 0 20px;
}
.settings-section {
  margin-bottom: 28px;
}
.settings-section h2 {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 12px;
}
.settings-section .card { max-width: 480px; }
.settings-form { display: flex; flex-direction: column; gap: 12px; }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.form-msg { font-size: 13px; margin-top: 8px; }
.form-msg.ok { color: var(--green-deep); }
.form-msg.err { color: var(--red); }

/* Toast */
.toast-root {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(360px, calc(100vw - 32px));
}
.toast {
  background: var(--bg-dark);
  color: var(--text-inv);
  padding: 12px 14px;
  font-size: 14px;
  border-left: 3px solid var(--green);
  box-shadow: 0 8px 24px rgba(10,18,48,.2);
  animation: toast-in var(--t-base) ease;
}
.toast.is-error { border-left-color: var(--red); }
.toast.is-leaving { opacity: 0; transition: opacity var(--t-fast); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Modal / confirm */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,18,48,.45);
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fade-in var(--t-fast) ease;
}
.modal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  width: min(400px, 100%);
  box-shadow: 0 12px 40px rgba(10,18,48,.18);
}
.modal-dots {
  display: flex;
  gap: 5px;
  margin-bottom: 12px;
}
.modal-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-2);
}
.modal-dots span:first-child { background: var(--green); }
.modal h2 {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin: 0 0 8px;
}
.modal p {
  margin: 0 0 18px;
  color: var(--text-2);
  font-size: 14px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

[hidden] { display: none !important; }

.fab:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.modal-wide {
  width: min(560px, 100%);
  max-height: min(90vh, 900px);
  overflow: auto;
}

/* Empty brands */
.empty-brands-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  max-width: 420px;
  margin: 48px auto;
  padding: 28px;
  text-align: left;
  background: var(--bg-2);
  border: 1px dashed var(--border-2);
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.empty-brands-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(10,18,48,.06);
}
.empty-brands-card strong {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.empty-brands-card span {
  color: var(--text-2);
  font-size: 14px;
}

/* Brand chip */
.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
}
.brand-chip:hover { border-color: var(--border-2); text-decoration: none; }
.brand-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand, var(--blue));
  flex-shrink: 0;
}

/* Settings lists — grid: handle | main | actions */
.settings-subhead {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-3);
  margin: 20px 0 8px;
}
.sortable-list,
.brand-settings-list,
.category-settings-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.sortable-list > li,
.brand-settings-list > li,
.category-settings-list > li {
  list-style: none;
  margin: 0;
}
.settings-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.settings-row:last-child { border-bottom: none; }
.drag-handle,
.drag-handle-spacer {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--bg-3);
  color: var(--text-3);
  cursor: grab;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
}
.drag-handle-spacer {
  visibility: hidden;
  border: none;
  background: transparent;
  cursor: default;
}
.drag-handle:active { cursor: grabbing; }
.row-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-wrap: wrap;
}
.row-main .brand-chip {
  flex: 0 1 auto;
  max-width: 100%;
}
.row-type {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-3);
  padding: 4px 8px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.row-name {
  font-size: 15px;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.muted { color: var(--text-3); font-size: 14px; }
.inline-add {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 4px;
}
.inline-add input {
  flex: 1 1 auto;
  min-width: 0;
}
.inline-add .btn {
  flex: 0 0 auto;
  white-space: nowrap;
  align-self: stretch;
}

@media (max-width: 720px) {
  .settings-row {
    grid-template-columns: 32px minmax(0, 1fr);
  }
  .row-actions {
    grid-column: 2 / -1;
    justify-content: flex-start;
  }
}
@media (max-width: 480px) {
  .inline-add {
    flex-wrap: wrap;
  }
  .inline-add .btn {
    width: 100%;
  }
}

/* Color palette */
.color-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.color-swatch {
  width: 28px;
  height: 28px;
  border: 2px solid transparent;
  background: var(--swatch);
  cursor: pointer;
  padding: 0;
}
.color-swatch.is-selected {
  border-color: var(--text);
  outline: 2px solid var(--bg-2);
}

.links-editor { display: flex; flex-direction: column; gap: 8px; }
.link-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 6px;
}

/* Brand page */
.brand-page { max-width: 960px; }
.brand-header {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 20px 20px 24px;
  margin-bottom: 20px;
  overflow: hidden;
}
.brand-header-stripe {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--brand, var(--blue));
}
.brand-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.brand-title {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.brand-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.brand-type-badge,
.brand-code-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-3);
  padding: 4px 8px;
  background: var(--bg-3);
}
.brand-notes {
  margin: 14px 0 0;
  color: var(--text-2);
  font-size: 14px;
  white-space: pre-wrap;
}
.brand-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.brand-link {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 6px 10px;
  border: 1px solid var(--border);
  color: var(--blue-deep);
  text-decoration: none;
}
.brand-link:hover { border-color: var(--blue); }
.brand-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.brand-tab {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-3);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 14px;
  cursor: pointer;
}
.brand-tab.is-active {
  color: var(--text);
  border-bottom-color: var(--green);
}
.brand-tab-panel { min-height: 120px; }

/* Board */
.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 14px;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 8px;
}
.board-col {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}
.board-col-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 8px;
}
.board-col-head h2 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-3);
  margin: 0;
  font-weight: 500;
  flex: 1;
}
.board-col-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-3);
  flex-shrink: 0;
}
.board-col-dot.status-doing { background: var(--blue); }
.board-col-dot.status-waiting { background: var(--amber); }
.board-col-dot.status-done { background: var(--green); }
.board-col-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
}
.board-col-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 10px 12px;
  min-height: 40px;
}

/* Task card */
.task-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  border-left: 3px solid var(--brand, var(--blue));
  padding: 10px 10px 10px 12px;
  cursor: pointer;
  position: relative;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  content-visibility: auto;
  contain-intrinsic-size: auto 88px;
}
.task-card:hover {
  border-color: var(--border-2);
  box-shadow: 0 4px 16px rgba(10,18,48,.06);
}
.task-card-top {
  display: flex;
  gap: 6px;
  align-items: flex-start;
}
.task-card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.task-card-menu { position: relative; flex-shrink: 0; }
.task-menu-btn { width: 28px; height: 28px; font-size: 16px; }
.task-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
  min-width: 200px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  box-shadow: 0 8px 24px rgba(10,18,48,.12);
  padding: 4px;
}
.task-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text);
  cursor: pointer;
  appearance: none;
}
.task-menu-item:hover {
  background: var(--blue-dim);
  border-color: transparent;
  color: var(--blue-deep);
}
.task-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  align-items: center;
}
.due-badge, .prio-badge, .checklist-badge, .cat-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 2px 6px;
  background: var(--bg-3);
  color: var(--text-3);
}
.due-badge.is-overdue { background: var(--red-dim); color: var(--red); }
.due-badge.is-today { background: var(--amber-dim); color: var(--amber); }
.prio-badge { color: var(--red); font-weight: 700; }

/* Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,18,48,.45);
  z-index: 60;
  display: flex;
  justify-content: flex-end;
}
.task-drawer {
  width: min(480px, 100%);
  height: 100%;
  background: var(--bg-2);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(10,18,48,.14);
  animation: drawer-in var(--t-base) ease;
}
@keyframes drawer-in {
  from { transform: translateX(20px); opacity: .5; }
  to { transform: translateX(0); opacity: 1; }
}
.drawer-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
}
.drawer-header .modal-dots { margin: 0; }
.save-hint {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--green-deep);
  min-height: 1em;
}
.drawer-body {
  flex: 1;
  overflow: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.drawer-field {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}
.drawer-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  border: 1px solid var(--border);
  background: var(--bg);
  resize: vertical;
  padding: 12px 14px;
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.35;
  min-height: 64px;
}
.drawer-title:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px var(--blue-dim);
  background: var(--bg-2);
}
.is-invalid { border-color: var(--red) !important; box-shadow: 0 0 0 3px var(--red-dim) !important; }

/* Status segmented control */
.status-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border-2);
  background: var(--bg);
}
.status-seg-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 11px 8px;
  border: none;
  border-right: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
  background: transparent;
  cursor: pointer;
  color: var(--text-3);
  appearance: none;
  transition: background var(--t-fast), color var(--t-fast);
}
.status-seg-btn:nth-child(2n) { border-right: none; }
.status-seg-btn:nth-child(n+3) { border-bottom: none; }
.status-seg-btn:hover { color: var(--text); background: var(--bg-3); }
.status-seg-btn.is-active.status-todo {
  background: var(--bg-3);
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--text-3);
}
.status-seg-btn.is-active.status-doing {
  background: var(--blue-dim);
  color: var(--blue-deep);
  box-shadow: inset 0 -2px 0 var(--blue);
}
.status-seg-btn.is-active.status-waiting {
  background: var(--amber-dim);
  color: #9a6700;
  box-shadow: inset 0 -2px 0 var(--amber);
}
.status-seg-btn.is-active.status-done {
  background: var(--green-dim);
  color: var(--green-deep);
  box-shadow: inset 0 -2px 0 var(--green);
}

.waiting-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  background: var(--amber-dim);
  border: 1px solid rgba(245,165,36,.4);
}
.desc-view {
  min-height: 80px;
  padding: 12px 14px;
  border: 1px solid var(--border-2);
  background: var(--bg);
  white-space: pre-wrap;
  cursor: text;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}
.desc-view:hover { border-color: var(--border-2); }
.desc-view.is-placeholder { color: var(--text-3); }
.desc-edit { min-height: 110px; }
.cl-progress {
  height: 4px;
  background: var(--bg-3);
  margin: 0 0 10px;
}
.cl-progress-bar {
  height: 100%;
  width: 0;
  background: var(--green);
  transition: width var(--t-fast);
}
.cl-list { list-style: none; padding: 0; margin: 0 0 8px; }
.cl-item {
  display: grid;
  grid-template-columns: 28px auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.cl-text.is-done { text-decoration: line-through; color: var(--text-3); }
.activity-list { list-style: none; padding: 0; margin: 0 0 8px; }
.activity-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.activity-time {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-3);
}
.drawer-footer {
  margin-top: 8px;
  padding: 16px 0 4px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.drawer-meta {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.45;
}
.drawer-footer .row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

/* Board cards polish */
.task-menu-btn {
  border: 1px solid var(--border);
  background: var(--bg-2);
}
.task-menu-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.board-col-head h2 { letter-spacing: .12em; }

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
}
.toast-action {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: transparent;
  border: 1px solid rgba(245,247,250,.4);
  color: var(--text-inv);
  padding: 6px 10px;
  cursor: pointer;
  white-space: nowrap;
  appearance: none;
}
.toast-action:hover { border-color: var(--green); color: var(--green); }

@media (max-width: 900px) {
  .board { grid-template-columns: repeat(4, minmax(200px, 1fr)); }
}
@media (max-width: 767px) {
  .task-drawer { width: 100%; }
  .board { grid-template-columns: 1fr; }
  .drawer-body { padding: 16px; gap: 16px; }
}

/* Board page — filters, stripes, mobile, quick add, search */
.board-page { display: flex; flex-direction: column; gap: 16px; }
.board-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.filter-chips, .filter-brands, .filter-row, .view-toggle, .mobile-status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.filter-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 7px 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-3);
  cursor: pointer;
  appearance: none;
  border-radius: 0;
}
.filter-chip.is-active {
  border-color: var(--blue);
  color: var(--blue-deep);
  background: var(--blue-dim);
}
.filter-brands .filter-chip.is-active {
  border-color: var(--brand, var(--blue));
  box-shadow: inset 3px 0 0 var(--brand, var(--blue));
}
.filter-row select {
  min-width: 120px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 7px 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}
.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-3);
  cursor: pointer;
  user-select: none;
}
.filter-toggle input { accent-color: var(--blue); }
.col-sort { position: relative; }
.col-sort-btn { min-width: auto; }
.col-sort-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 25;
  min-width: 140px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  box-shadow: 0 8px 24px rgba(10,18,48,.12);
  padding: 4px;
}
.col-add {
  width: 28px;
  height: 28px;
  padding: 0;
  line-height: 1;
  font-size: 16px;
}

/* Brand stripes */
.board-stripes { display: flex; flex-direction: column; gap: 14px; }
.stripes-empty-toggle { align-self: flex-start; }
.brand-stripe {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-2);
  overflow: hidden;
  border-left: 4px solid var(--brand, var(--blue));
}
.brand-stripe-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 10px 14px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}
.brand-stripe-name {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.brand-stripe-name:hover { color: var(--blue); }
.brand-stripe-counts {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  margin-left: 0.25rem;
  margin-right: auto;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.brand-stripe-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 0;
  overflow-x: auto;
}
.stripe-cell {
  border-right: 1px solid var(--border);
  min-height: 80px;
  padding-bottom: 8px;
}
.stripe-cell:last-child { border-right: none; }
.stripe-cell-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-3);
}

/* Mobile board */
.board-mobile { display: flex; flex-direction: column; gap: 14px; }
.mobile-status-tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  padding: 8px 0;
}
.mobile-brand-group {
  border-left: 3px solid var(--brand, var(--blue));
  padding-left: 10px;
}
.mobile-brand-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
}

/* Quick add */
.quickadd-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(10,18,48,.35);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 16px 16px;
}
.quickadd-bar {
  width: min(640px, 100%);
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  box-shadow: 0 16px 48px rgba(10,18,48,.18);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: drawer-in var(--t-base) ease;
}
.quickadd-input {
  width: 100%;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}
.quickadd-input:focus {
  outline: none;
  border-color: var(--blue);
}
.quickadd-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-height: 24px;
}
.quickadd-warn {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--red);
}
.quickadd-brand {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  background: var(--bg);
}
.quickadd-brand.is-invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 2px var(--red-dim);
}
.quickadd-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.quickadd-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-3);
  margin-left: auto;
}

/* Search */
.search-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(10,18,48,.35);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 16px 16px;
}
.search-panel {
  width: min(560px, 100%);
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  box-shadow: 0 16px 48px rgba(10,18,48,.18);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(70vh, 560px);
  animation: drawer-in var(--t-base) ease;
}
.search-input {
  width: 100%;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}
.search-input:focus { outline: none; border-color: var(--blue); }
.search-results {
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 80px;
}
.search-empty {
  margin: 12px 0;
  color: var(--text-3);
  font-size: 13px;
}
.search-result {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  appearance: none;
  color: var(--text);
  font-family: var(--font);
}
.search-result:hover {
  background: var(--blue-dim);
  border-color: transparent;
}
.search-result-title { font-weight: 500; font-size: 14px; }
.search-result-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-3);
}

.sortable-ghost { opacity: .4; }
.sortable-drag { box-shadow: 0 8px 24px rgba(10,18,48,.16); }

/* Nav counts (Geciken · Takip) */
.nav-counts {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--amber);
  margin-left: 6px;
}
.bottom-tab .nav-counts {
  display: block;
  margin-left: 0;
  margin-top: 2px;
  font-size: 9px;
}

/* Waiting badge */
.waiting-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .04em;
  padding: 2px 6px;
  background: var(--bg-3);
  color: var(--text-3);
  white-space: nowrap;
}
.waiting-badge.is-follow {
  background: var(--amber-dim);
  color: var(--amber);
}
.drawer-waiting-badge {
  display: inline-block;
  margin-top: 8px;
}
.waiting-actions {
  margin-top: 10px;
}

/* Bugün ekranı */
.today-page { display: flex; flex-direction: column; gap: 20px; max-width: 720px; }
.today-title { margin: 0 0 4px; font-size: 22px; font-weight: 600; }
.today-section-title {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-3);
}
.today-list { display: flex; flex-direction: column; gap: 10px; }
.today-card-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.today-waiting-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-left: 4px;
}
.today-all-clear {
  font-size: 15px;
  color: var(--green-deep);
  padding: 24px 16px;
  background: var(--green-dim);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  margin: 0;
}
.pulse-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.pulse-table th,
.pulse-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.pulse-table th {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-3);
  background: var(--bg-3);
}
.pulse-table tbody tr:last-child td { border-bottom: none; }
.pulse-row {
  cursor: pointer;
  transition: background var(--t-fast);
}
.pulse-row:hover,
.pulse-row:focus-visible {
  background: var(--blue-dim);
  outline: none;
}
.pulse-brand {
  font-weight: 500;
  border-left: 3px solid var(--brand, var(--blue));
  padding-left: 10px !important;
}
.prefs-row { align-items: center; }
.prefs-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 500;
  width: 100%;
  max-width: 280px;
}
.prefs-input {
  font-family: var(--font-mono);
  padding: 8px 10px;
  border: 1px solid var(--border);
  background: var(--bg);
}
.prefs-hint { margin: 10px 0 0; font-size: 12px; }

/* Routines */
.routines-page { display: flex; flex-direction: column; gap: 16px; }
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.routine-list { display: flex; flex-direction: column; gap: 12px; }
.routine-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.routine-card.is-inactive { opacity: .72; }
.routine-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.routine-card-title { margin: 0; font-size: 16px; font-weight: 600; }
.routine-card-meta, .routine-card-next {
  margin: 0;
  font-size: 13px;
  color: var(--text-3);
}
.routine-card-brands { display: flex; flex-wrap: wrap; gap: 6px; }
.routine-icon {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue);
}
.drawer-routine-link {
  margin: 0;
  font-size: 13px;
}
.drawer-routine-link a { color: var(--blue-deep); }
.routine-form-backdrop {
  position: fixed;
  inset: 0;
  z-index: 75;
  background: rgba(10,18,48,.4);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 16px 16px;
  overflow: auto;
}
.routine-form {
  width: min(560px, 100%);
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  box-shadow: 0 16px 48px rgba(10,18,48,.18);
  padding: 16px 18px 18px;
  max-height: 90vh;
  overflow: auto;
}
.routine-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.routine-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: var(--font);
}
.routine-weekdays { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.routine-brand-pick { display: flex; flex-direction: column; gap: 6px; }
.routine-preview {
  font-size: 12px;
  color: var(--text-3);
  padding: 10px 12px;
  background: var(--bg-3);
  border: 1px dashed var(--border);
  margin-bottom: 12px;
  line-height: 1.45;
}
.today-upcoming-list { display: flex; flex-direction: column; gap: 6px; }
.today-upcoming-row {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  cursor: pointer;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  appearance: none;
}
.today-upcoming-row:hover {
  border-color: var(--blue);
  background: var(--blue-dim);
}

/* —— Arşiv (08) —— */
.archive-page { display: flex; flex-direction: column; gap: 16px; max-width: 960px; }
.archive-months { display: flex; flex-direction: column; gap: 10px; }
.archive-year { font-size: 15px; margin: 12px 0 4px; color: var(--text-muted); }
.archive-month-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
}
.archive-month-card:hover { border-color: var(--blue); }
.archive-month-title { font-weight: 600; font-size: 16px; }
.archive-toolbar { display: flex; gap: 8px; align-items: center; }
.archive-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.archive-search { min-width: 160px; padding: 8px 10px; }
.archive-summary { font-size: 13px; }
.archive-actions { flex-wrap: wrap; }
.archive-detail-list { display: flex; flex-direction: column; gap: 8px; }
.archive-brand-head { font-size: 15px; margin: 16px 0 6px; }
.archive-task-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: var(--bg-2);
}
.archive-task-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.archive-task-title { font-weight: 500; }
.archive-task-meta { font-size: 12px; }
.archive-task-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.board-col-head .col-archive { margin-left: 4px; }
.trash-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.trash-row { align-items: flex-start; }

@media (max-width: 900px) {
  .brand-stripe-grid { grid-template-columns: repeat(4, minmax(160px, 1fr)); }
}
@media (max-width: 767px) {
  .board-filters { padding: 10px; }
  .brand-stripe-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }
  .stripe-cell { scroll-snap-align: start; }
}
