/* ==========================================================================
   Projectboard — hoja de estilo única (sin build)
   ========================================================================== */

:root {
  --bg: #0a0e15;
  --bg-elev: #0f1520;
  --panel: rgba(19, 26, 38, 0.72);
  --panel-solid: #131a26;
  --panel-hover: #18202e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e8edf7;
  --muted: #93a1b8;
  --faint: #64748b;
  --accent: #7c9cff;
  --accent-2: #4fd1c5;
  --accent-3: #ffd479;
  --danger: #ff7a90;
  --ok: #6ee7b7;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.9);
  --ring: 0 0 0 3px rgba(124, 156, 255, 0.28);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #2a3648 transparent;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 620px at 12% -12%, #1b2440 0%, transparent 62%),
    radial-gradient(900px 560px at 96% 0%, #12333a 0%, transparent 58%),
    radial-gradient(800px 700px at 50% 120%, #1a1730 0%, transparent 60%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }

.app { min-height: 100dvh; }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- botones */
.btn {
  --btn-bg: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--text);
  font-weight: 550;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn:hover { background: rgba(255, 255, 255, 0.11); border-color: rgba(255, 255, 255, 0.24); }
.btn:active { transform: translateY(1px) scale(0.995); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.btn.primary {
  background: linear-gradient(135deg, #6f8fff 0%, #4fd1c5 140%);
  border-color: transparent;
  color: #071018;
  font-weight: 650;
  box-shadow: 0 10px 26px -14px rgba(111, 143, 255, 0.9);
}
.btn.primary:hover { filter: brightness(1.06); }

.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.07); color: var(--text); }

.btn.danger { color: var(--danger); border-color: rgba(255, 122, 144, 0.35); }
.btn.danger:hover { background: rgba(255, 122, 144, 0.12); }

.btn.sm { padding: 6px 10px; font-size: 13px; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); border-color: var(--line); }
.icon-btn:focus-visible { outline: none; box-shadow: var(--ring); }

/* ------------------------------------------------------------------ login */
.auth {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
}
.auth-art {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 6vw, 76px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(700px 500px at 10% 0%, rgba(124, 156, 255, 0.16), transparent 60%),
    radial-gradient(600px 500px at 90% 100%, rgba(79, 209, 197, 0.13), transparent 60%);
}
.auth-art::after {
  content: "";
  position: absolute;
  inset: -30% -20% auto auto;
  width: 520px; height: 520px;
  background: conic-gradient(from 200deg, #7c9cff22, #4fd1c522, #ffd47922, #7c9cff22);
  filter: blur(30px);
  border-radius: 50%;
  animation: drift 26s linear infinite;
  pointer-events: none;
}
@keyframes drift { to { transform: rotate(1turn) translateY(20px); } }

.auth-art h1 {
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 14ch;
}
.auth-art h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #8aa4ff, #4fd1c5 60%, #ffd479);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-art p { color: var(--muted); max-width: 42ch; margin-top: 16px; font-size: 15px; }
.auth-points { display: grid; gap: 14px; margin-top: 34px; }
.auth-point { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 14px; }
.auth-point i {
  flex: none;
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: rgba(124, 156, 255, 0.14);
  border: 1px solid rgba(124, 156, 255, 0.3);
  color: var(--accent);
  font-style: normal;
  font-size: 13px;
}
.auth-point b { color: var(--text); font-weight: 600; }

.auth-panel {
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 64px);
}
.auth-card {
  width: min(400px, 100%);
  padding: 30px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.auth-card h2 { font-size: 22px; letter-spacing: -0.02em; }
.auth-card > p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.auth-card form { margin-top: 22px; display: grid; gap: 14px; }
.auth-foot { margin-top: 16px; font-size: 13px; color: var(--faint); text-align: center; }
.auth-switch {
  background: none; border: 0; color: var(--accent); cursor: pointer;
  padding: 0; font-size: 13px; text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------------- inputs */
.field { display: grid; gap: 6px; }
.field > label { font-size: 12.5px; color: var(--muted); font-weight: 600; letter-spacing: 0.02em; }
.input, .select, .textarea {
  width: 100%;
  padding: 11px 13px;
  background: rgba(6, 10, 17, 0.6);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.input::placeholder, .textarea::placeholder { color: #566175; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: rgba(124, 156, 255, 0.65);
  box-shadow: var(--ring);
  background: rgba(6, 10, 17, 0.85);
}
.textarea { resize: vertical; min-height: 84px; }
.select { appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
.row { display: flex; gap: 10px; align-items: center; }
.row > * { min-width: 0; }
.grow { flex: 1; }

.form-error {
  margin-top: 4px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
  color: #ffd3da;
  background: rgba(255, 122, 144, 0.1);
  border: 1px solid rgba(255, 122, 144, 0.28);
}

/* ------------------------------------------------------------------ shell */
.shell { min-height: 100dvh; display: flex; flex-direction: column; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px clamp(14px, 2.4vw, 26px);
  background: rgba(10, 14, 21, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; }
.brand .mark {
  display: grid; grid-template-columns: repeat(3, 3px); gap: 2px;
  align-items: end;
  width: 26px; height: 26px;
  padding: 6px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(124, 156, 255, 0.22), rgba(79, 209, 197, 0.16));
  border: 1px solid rgba(124, 156, 255, 0.35);
}
.brand .mark i { display: block; width: 3px; border-radius: 2px; background: var(--accent); }
.brand .mark i:nth-child(1) { height: 10px; }
.brand .mark i:nth-child(2) { height: 6px; background: var(--accent-2); }
.brand .mark i:nth-child(3) { height: 8px; background: var(--accent-3); }
.badge {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 6px;
  color: var(--accent);
  background: rgba(124, 156, 255, 0.12);
  border: 1px solid rgba(124, 156, 255, 0.25);
  letter-spacing: 0;
}

.search { position: relative; flex: 1; max-width: 420px; margin-left: auto; }
.search input { width: 100%; padding: 9px 13px 9px 34px; font-size: 13.5px; }
.search::before {
  content: "⌕";
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-52%);
  color: var(--faint);
  font-size: 17px;
  pointer-events: none;
}
.userbox { display: flex; align-items: center; gap: 10px; }
.avatar {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-size: 12.5px; font-weight: 700;
  color: #08111a;
  background: linear-gradient(135deg, #8aa4ff, #4fd1c5);
  text-transform: uppercase;
  flex: none;
}
.user-email {
  font-size: 13px; color: var(--muted); max-width: 22ch;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.layout {
  flex: 1;
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  min-height: 0;
}

/* ---------------------------------------------------------------- sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 12px;
  border-right: 1px solid var(--line);
  background: rgba(9, 13, 20, 0.5);
}
.side-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6px 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--faint);
}
.side-list { display: grid; gap: 3px; overflow-y: auto; }
.side-item {
  --dot: var(--accent);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.side-item:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.side-item:focus-visible { outline: none; box-shadow: var(--ring); }
.side-item.active {
  background: linear-gradient(100deg, rgba(124, 156, 255, 0.16), rgba(79, 209, 197, 0.07));
  border-color: rgba(124, 156, 255, 0.32);
  color: var(--text);
}
.side-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); flex: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot) 18%, transparent); }
.side-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; font-size: 14px; }
.side-count {
  font-size: 11.5px; font-family: var(--mono);
  color: var(--faint);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 1px 7px;
}
.side-group { margin-top: 16px; }
.side-empty { padding: 10px; font-size: 13px; color: var(--faint); }
.side-foot {
  margin-top: auto;
  padding: 12px 8px 2px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--faint);
  display: flex; justify-content: space-between; gap: 8px;
}

/* ----------------------------------------------------------------- board */
.board-area { min-width: 0; padding: clamp(14px, 2.2vw, 26px); overflow-x: hidden; }

.board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.board-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.board-title .swatch {
  width: 12px; height: 32px; border-radius: 6px; background: var(--dot, var(--accent));
  flex: none;
}
.board-title h1 { font-size: clamp(21px, 2.6vw, 28px); letter-spacing: -0.025em; line-height: 1.15; }
.board-title .sub { color: var(--muted); font-size: 13.5px; margin-top: 4px; max-width: 62ch; }
.board-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.progress-wrap { display: flex; align-items: center; gap: 10px; }
.progress { width: 108px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.09); overflow: hidden; }
.progress > i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.progress-label { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

.columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(232px, 1fr));
  gap: 14px;
  align-items: start;
}
.col {
  display: flex;
  flex-direction: column;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.col.dragover {
  border-color: rgba(124, 156, 255, 0.6);
  background: rgba(124, 156, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(124, 156, 255, 0.25);
}
.col-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 8px;
  position: sticky;
  top: 0;
}
.col-head h2 {
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.col-head .count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 1px 6px;
}
.col-head .add { margin-left: auto; }
.cards { display: flex; flex-direction: column; gap: 9px; padding: 4px 10px 12px; min-height: 44px; }
.col-empty {
  padding: 14px 10px;
  text-align: center;
  font-size: 12.5px;
  color: #4c586b;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
}

/* ------------------------------------------------------------------ card */
.card {
  position: relative;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel-solid);
  box-shadow: 0 8px 18px -16px rgba(0, 0, 0, 0.9);
  cursor: grab;
  transition: transform 0.14s ease, border-color 0.16s ease, background 0.16s ease,
    box-shadow 0.16s ease;
}
.card:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--panel-hover);
  box-shadow: 0 14px 26px -18px rgba(0, 0, 0, 0.95);
}
.card:focus-within { border-color: rgba(124, 156, 255, 0.45); }
.card.dragging { opacity: 0.45; cursor: grabbing; }
.card.done .card-title { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(147, 161, 184, 0.5); }

.card-top { display: flex; align-items: flex-start; gap: 8px; }
.prio {
  width: 6px; height: 6px; border-radius: 50%; margin-top: 7px; flex: none;
  background: #64748b;
}
.prio.p0 { background: #64748b; }
.prio.p1 { background: #7c9cff; }
.prio.p2 { background: #ffb86b; }
.prio.p3 { background: #ff6b81; box-shadow: 0 0 0 3px rgba(255, 107, 129, 0.16); }
.card-title {
  flex: 1;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.35;
  overflow-wrap: anywhere;
  background: none; border: 0; padding: 0; text-align: left; color: inherit;
  cursor: pointer;
}
.card-title:hover { color: #fff; }
.card .card-del { opacity: 0; }
.card:hover .card-del, .card:focus-within .card-del { opacity: 1; }
.card-del { width: 24px; height: 24px; margin: -3px -4px 0 0; font-size: 13px; }

.card-notes {
  margin: 6px 0 0 14px;
  font-size: 12.5px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 9px 0 0 14px;
  min-height: 22px;
}
.due {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px;
  color: var(--muted);
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}
.due.late { color: #ffb3c0; background: rgba(255, 122, 144, 0.12); }
.moves { margin-left: auto; display: flex; gap: 2px; opacity: 0; transition: opacity 0.16s ease; }
.card:hover .moves, .card:focus-within .moves { opacity: 1; }
.moves .icon-btn { width: 24px; height: 24px; font-size: 11px; }
.owner-tag { font-size: 11px; color: var(--faint); margin-left: auto; }

/* -------------------------------------------------------------- empty/hero */
.hero {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 30px;
}
.hero-inner {
  max-width: 520px;
  padding: 40px 34px;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.hero .glyph {
  display: grid; place-items: center;
  width: 62px; height: 62px;
  margin: 0 auto 18px;
  border-radius: 18px;
  font-size: 26px;
  background: linear-gradient(135deg, rgba(124, 156, 255, 0.2), rgba(79, 209, 197, 0.14));
  border: 1px solid rgba(124, 156, 255, 0.35);
}
.hero h1 { font-size: 26px; letter-spacing: -0.03em; }
.hero p { color: var(--muted); margin: 10px auto 22px; max-width: 40ch; }

/* ----------------------------------------------------------------- modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(4, 7, 12, 0.66);
  backdrop-filter: blur(6px);
  animation: fade 0.16s ease;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  width: min(520px, 100%);
  max-height: min(88dvh, 720px);
  overflow-y: auto;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #151d2a, #101722);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 1);
  animation: pop 0.18s cubic-bezier(0.2, 0.9, 0.25, 1);
}
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.985); } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px 12px;
}
.modal-head h2 { font-size: 17px; letter-spacing: -0.02em; }
.modal-body { padding: 0 20px 18px; display: grid; gap: 14px; }
.modal-foot {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--line);
}
.modal-foot .left { margin-right: auto; }

.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch-btn {
  width: 26px; height: 26px; border-radius: 8px; cursor: pointer;
  border: 2px solid transparent;
  background: var(--s);
  transition: transform 0.14s ease, border-color 0.14s ease;
}
.swatch-btn:hover { transform: scale(1.08); }
.swatch-btn[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25); }

.member-list { display: grid; gap: 8px; }
.member {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.member .who { min-width: 0; flex: 1; }
.member .who b { display: block; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.member .who span { font-size: 11.5px; color: var(--faint); }
.pill {
  font-size: 11px; font-weight: 650; letter-spacing: 0.03em;
  padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
}
.pill.editor { color: #bfe9e3; background: rgba(79, 209, 197, 0.12); border-color: rgba(79, 209, 197, 0.3); }
.pill.viewer { color: #cdd7ea; background: rgba(148, 163, 184, 0.12); }
.pill.owner { color: #ffe6b3; background: rgba(255, 212, 121, 0.12); border-color: rgba(255, 212, 121, 0.3); }
.hint { font-size: 12px; color: var(--faint); }

/* ----------------------------------------------------------------- toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 100;
  transform: translate(-50%, 20px);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  color: #08111a;
  background: linear-gradient(135deg, #a9b9ff, #7ff0e4);
  box-shadow: 0 16px 34px -16px rgba(0, 0, 0, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.24s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: linear-gradient(135deg, #ffb3c0, #ff889b); }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .columns { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
}

@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .sidebar::-webkit-scrollbar { display: none; }
  .side-head, .side-foot, .side-group { display: none; }
  .side-list { display: flex; gap: 8px; overflow: visible; }
  .side-item {
    width: auto;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
  }
  .side-name { max-width: 160px; }
  .user-email { display: none; }
  .search { max-width: none; }
}

@media (max-width: 620px) {
  .topbar { gap: 10px; padding: 9px 12px; }
  .brand .label { display: none; }
  .columns { grid-template-columns: minmax(0, 1fr); }
  .board-area { padding: 12px; }
  .board-head { margin-bottom: 14px; }
  .progress { width: 80px; }
  .modal-foot { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
