/* Pretendard Variable — 프로젝트에 동봉(fonts/)해 OS·설치 폰트에 따라 화면이
   달라지지 않게 한다. 기존 폰트 스택은 한글이 맑은 고딕으로 떨어졌는데 이 폰트에는
   Regular/Bold 두 벌뿐이라, 800~900을 지정하면 렌더러가 획을 부풀린 합성 볼드로
   그려서 한글만 뭉개졌다(숫자·영문은 Segoe UI에 진짜 Black이 있어 인상도 어긋났다).
   Variable 파일 하나가 100~900 실제 웨이트를 모두 담고 있어 이 문제가 사라진다. */
@font-face {
  font-family: "Pretendard Variable";
  src: url("fonts/PretendardVariable.woff2") format("woff2-variations");
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #eef3f7;
  --line: #dce3ea;
  --text: #17212b;
  --muted: #647382;
  --primary: #216e76;
  --primary-dark: #15545b;
  --accent: #b84d38;
  --todo: #4776b4;
  --doing: #c07b26;
  --done: #27815d;
  --hold: #7a5ea8;
  --danger: #b33b3b;
  --shadow: 0 18px 46px rgba(20, 33, 45, 0.14);
  --task-row-height: 60px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 480px) minmax(320px, 540px);
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 48px 24px;
  background:
    linear-gradient(115deg, rgba(33, 110, 118, 0.14), transparent 42%),
    linear-gradient(245deg, rgba(184, 77, 56, 0.12), transparent 36%),
    var(--bg);
}

.login-panel, .login-preview, .modal-card, .lane, .team-card, .history-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.login-panel {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px;
  box-shadow: var(--shadow);
}

.brand-mark {
  width: 56px;
  height: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.brand-mark span { border-radius: 4px; background: var(--primary); }
.brand-mark span:nth-child(2) { background: var(--accent); }
.brand-mark span:nth-child(3) { background: var(--done); }

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, h3, h4, p { margin-top: 0; }
h1 { margin-bottom: 14px; font-size: 42px; line-height: 1.12; }
.login-copy { max-width: 390px; color: var(--muted); line-height: 1.65; }

.login-form, .modal-card, .filter-bar { display: grid; gap: 14px; }
.period-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input, select, textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 10px 12px;
  outline: none;
}

textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(33, 110, 118, 0.14); }

.login-form button, .primary-button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  padding: 0 16px;
  font-weight: 800;
}

.login-form button:hover, .primary-button:hover { background: var(--primary-dark); }

.login-preview { padding: 28px; display: grid; gap: 16px; }
.preview-header, .topbar, .lane-header, .modal-header, .task-actions, .history-meta, .sidebar-top, .sidebar-bottom, .member-chip, .team-toolbar {
  display: flex;
  align-items: center;
}
.preview-header, .topbar, .lane-header, .modal-header, .team-toolbar { justify-content: space-between; gap: 16px; }
.preview-header { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.preview-header span, .preview-row p, .task-card p, .history-item p, .sidebar-top span, .member-chip small, .split-title span, .lane-subhead span { color: var(--muted); }
.preview-row { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; padding: 12px 0; }
.preview-row p { margin: 4px 0 0; line-height: 1.5; }

.status-dot { width: 10px; height: 10px; display: inline-block; border-radius: 999px; margin-top: 5px; }
.status-dot.todo { background: var(--todo); }
.status-dot.doing { background: var(--doing); }
.status-dot.done { background: var(--done); }
.status-dot.hold { background: var(--hold); }

.app-page { min-height: 100vh; display: grid; grid-template-columns: 230px 1fr; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  background: #f7f9fc;
  padding: 14px 10px 12px;
}
.sidebar-main { display: grid; gap: 24px; align-content: start; }
.sidebar-profile { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 6px; }
.sidebar-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: linear-gradient(145deg, #5f86f1, #2f67e9);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 10px rgba(47, 103, 233, 0.2);
}
.sidebar-profile-copy { min-width: 0; }
.sidebar-profile-copy strong, .sidebar-profile-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-profile-copy strong { color: #172033; font-size: 12px; line-height: 1.25; }
.sidebar-profile-copy small { margin-top: 2px; color: #536078; font-size: 11px; line-height: 1.25; }
.sidebar-week-label { display: none; }
.nav-list { display: grid; gap: 4px; }
.nav-item { width: 100%; min-height: 34px; border-radius: 7px; padding: 0 10px; }
.nav-icon, .sidebar-action-icon { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.ghost-button, .mini-button, .icon-button, .danger-button, .secondary-button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: #344054;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
}
.nav-item.active { color: #1f58cc; font-weight: 800; }
.nav-item:hover { background: #eaf0ff; color: #1f58cc; }
.sidebar-bottom { align-items: stretch; flex-direction: column; gap: 7px; }
.sidebar-setting-button, .sidebar-logout {
  width: 100%;
  min-height: 32px;
  display: flex;
  align-items: center;
  border-radius: 7px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}
.sidebar-setting-button { justify-content: center; gap: 6px; border: 0; background: #4d43df; color: #fff; }
.sidebar-setting-button:hover { background: #3f36c8; }
.sidebar-logout { justify-content: flex-start; gap: 10px; border: 0; background: transparent; color: #344054; }
.sidebar-logout:hover { background: #edf0f5; color: #172033; }
.ghost-button, .mini-button, .danger-button, .secondary-button { min-height: 36px; padding: 0 12px; font-weight: 800; }
.ghost-button:hover, .mini-button:hover, .secondary-button:hover { background: var(--surface-2); }
.danger-button { border-color: rgba(179, 59, 59, 0.35); color: var(--danger); }
.danger-button:hover { background: rgba(179, 59, 59, 0.08); }
.secondary-button { color: var(--primary-dark); }
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.workspace { min-width: 0; padding: 28px; }
.topbar { margin-bottom: 22px; }
.topbar h2 { margin-bottom: 0; font-size: 28px; }
.topbar-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.hold-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  margin-bottom: 14px;
  border: none;
  border-left: 4px solid #3f5fdb;
  border-radius: 10px;
  background: rgba(63, 95, 219, 0.08);
  color: #33449e;
  padding: 0 16px;
  font-weight: 800;
  text-align: left;
  transition: background 120ms ease;
}
.hold-notice:hover { background: rgba(63, 95, 219, 0.15); }
.hold-notice small { color: #33449e; font-weight: 600; }

.pipeline-grid {
  display: grid;
  grid-template-columns: minmax(192px, 0.72fr) minmax(420px, 1.91fr) minmax(192px, 0.72fr);
  gap: 14px;
  align-items: stretch;
}

.lane { min-width: 0; min-height: 560px; display: flex; flex-direction: column; padding: 14px; border-radius: 14px; }
.lane-header { min-height: 34px; margin-bottom: 10px; }
.lane-header > div { display: flex; gap: 8px; align-items: center; }
.lane-header h3 { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 16px; }
.do-week-controls { display: flex; align-items: center; justify-content: center; gap: 2px; margin-left: auto; border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 3px; }
.week-nav-button { width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 999px; background: transparent; color: var(--primary-dark); font-size: 12px; line-height: 1; padding: 0; font-weight: 900; }
.week-nav-button:hover:not(:disabled) { background: rgba(33, 110, 118, 0.1); }
.week-nav-button:disabled { color: #b9c1c9; cursor: not-allowed; }
.week-range-display { min-width: 150px; min-height: 26px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: transparent; padding: 0 10px; color: var(--text); font-size: 13px; font-weight: 800; white-space: nowrap; }
.count-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; border-radius: 999px; background: var(--surface-2); color: var(--text); padding: 0 7px; font-size: 12px; font-weight: 900; }
.count-badge.small { min-width: 20px; height: 20px; padding: 0 6px; font-size: 11px; }
.lane-subhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 30px; margin-bottom: 8px; }
.lane-subhead span { display: inline-flex; align-items: center; min-height: 22px; border-radius: 999px; background: var(--surface-2); padding: 0 10px; font-size: 11.5px; white-space: nowrap; }
.lane-footer { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.lane-footer button { width: 100%; }

.task-list { display: grid; gap: 10px; align-content: start; }
.equal-list { flex: 1; grid-auto-rows: auto; }
.task-list.compact { min-height: 150px; }
.week-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; flex: 1; }
.week-column { min-width: 0; display: flex; flex-direction: column; }
.do-matrix { display: grid; gap: 0; flex: 1; align-content: start; }
.do-matrix-head, .do-matrix-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.do-matrix-list { display: grid; gap: 10px; align-content: start; }
.do-cell { min-width: 0; display: grid; gap: 10px; align-content: start; }
.do-cell-empty { min-height: var(--task-row-height); display: flex; align-items: stretch; }
.do-placeholder-card { width: 100%; min-height: var(--task-row-height); display: flex; align-items: center; justify-content: flex-end; border: 1px solid #d3d9e0; border-radius: 7px; background: #f8f9fb; padding: 8px 10px; }
.expand-button.do-placeholder-button { display: grid; place-items: center; margin-left: auto; border-color: #c4cbd3; background: #f8f9fb; color: #9aa3ad; box-shadow: none; cursor: default; pointer-events: none; }
.split-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 30px; margin-bottom: 8px; }
.split-title strong { display: inline-flex; align-items: center; gap: 6px; }
.split-title span { display: inline-flex; align-items: center; min-height: 22px; border-radius: 999px; background: var(--surface-2); padding: 0 10px; font-size: 11.5px; white-space: nowrap; }

.task-card {
  display: flex;
  flex-direction: column;
  min-height: var(--task-row-height);
  border: 1px solid var(--line);
  border-left: 4px solid var(--todo);
  border-radius: 11px;
  background: #fff;
  padding: 8px 10px;
  cursor: pointer;
  transition: height 160ms ease, min-height 160ms ease, box-shadow 160ms ease;
}
.task-card:focus-visible { outline: 2px solid rgba(33, 110, 118, 0.55); outline-offset: 2px; }
.task-card.status-do { border-left-color: var(--doing); }
.task-card:not(.expanded) { height: var(--task-row-height); overflow: hidden; }
.task-card.status-done { border-left-color: var(--done); }
.task-card.status-hold { border-left-color: var(--hold); }
.task-card.expanded { height: auto; min-height: 148px; border-color: #c7d7e5; box-shadow: 0 12px 26px rgba(20, 33, 45, 0.1); }
.task-row-main { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.task-row-copy { min-width: 0; width: 100%; display: grid; gap: 8px; }
.task-meta-line { min-width: 0; display: flex; align-items: center; gap: 6px; }
.task-period { color: var(--text); font-size: 12px; font-weight: 700; letter-spacing: 0; white-space: nowrap; }
.task-tag { display: inline-flex; align-items: center; justify-content: center; min-height: 20px; border: 1px solid #9fb3c8; border-radius: 999px; background: #eef6fb; color: #17384b; padding: 0 8px; font-size: 11px; font-weight: 900; line-height: 1; white-space: nowrap; }
.task-tag[data-tag="신규"] { border-color: #b8c8d6; background: #f4f8fb; color: #36556d; }
.task-tag[data-tag="진행"] { border-color: #8eb5d3; background: #edf7fc; color: #124b68; }
.task-tag[data-tag="완료예정"] { border-color: #d3b16e; background: #fff8e6; color: #765013; }
.task-tag[data-tag="완료"] { border-color: #89b99c; background: #eef9f2; color: #1f6a3d; }
.task-tag[data-tag="보류"] { border-color: #aa98cf; background: #f4effb; color: #4f3d72; }
.tag-editor { position: relative; display: inline-flex; align-items: center; }
.tag-button { min-height: 18px; cursor: pointer; }
.tag-button:hover { box-shadow: 0 0 0 2px rgba(33, 110, 118, 0.12); }
.tag-select {
  width: auto;
  min-width: 58px;
  min-height: 22px;
  border: 1px solid #9fb3c8;
  border-radius: 4px;
  background: #fff;
  color: #17384b;
  padding: 1px 20px 1px 6px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}
.status-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 30;
  max-width: min(420px, calc(100vw - 36px));
  border: 1px solid rgba(33, 110, 118, 0.22);
  border-radius: 6px;
  background: #17212b;
  color: #fff;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.status-toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.due-date { color: var(--text); font-weight: 900; }
.expand-button { width: 26px; height: 26px; flex: 0 0 26px; display: grid; place-items: center; border: 1px solid #c9d6df; border-radius: 7px; background: linear-gradient(180deg, #ffffff 0%, #f5f8fa 100%); color: #355d70; padding: 0; box-shadow: 0 1px 2px rgba(20, 46, 61, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9); pointer-events: none; transition: border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.expand-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 180ms ease; }
.task-card.expanded .expand-button svg { transform: rotate(180deg); }
.task-card:hover .expand-button { border-color: #9eb5c2; color: #1f5268; box-shadow: 0 2px 5px rgba(20, 46, 61, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95); }
.expand-button.do-placeholder-button { visibility: hidden; }
.task-expanded { padding-top: 8px; }
.task-card strong { display: block; color: #111c27; font-size: 14px; line-height: 1.35; letter-spacing: 0; }
.task-title { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-card.expanded .task-title { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
.task-card p { margin: 7px 0 10px; font-size: 13px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.task-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pill { display: inline-flex; align-items: center; min-height: 22px; border-radius: 999px; background: var(--surface-2); color: var(--muted); padding: 0 8px; font-size: 12px; font-weight: 800; }
.task-actions { gap: 6px; justify-content: flex-start; flex-wrap: wrap; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.task-actions button { min-height: 30px; padding: 0 9px; font-size: 12px; border-radius: 8px; }

.empty-state { min-height: 78px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 7px; color: var(--muted); font-size: 13px; text-align: center; padding: 14px; }

.filter-bar { grid-template-columns: 170px minmax(220px, 1fr) 190px; align-items: end; margin-bottom: 16px; }
.history-list, .team-report { display: grid; gap: 12px; }
.history-item { padding: 16px; }
.history-item h3 { margin: 0 0 8px; font-size: 17px; }
.history-item p { margin-bottom: 12px; line-height: 1.5; }
.history-meta { justify-content: flex-start; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.history-actions { display: flex; gap: 8px; justify-content: flex-end; }

.team-toolbar { margin-bottom: 16px; }
.team-toolbar h3 { margin-bottom: 0; font-size: 22px; }
.team-toolbar label { width: 190px; }
.team-card { display: grid; grid-template-columns: 180px 1fr 1fr; gap: 14px; padding: 16px; }
.team-member { display: flex; gap: 12px; align-items: flex-start; }
.team-member .avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; background: var(--surface-2); color: var(--primary-dark); font-weight: 900; }
.team-member strong, .team-member span { display: block; }
.team-member span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.team-column { min-width: 0; border-left: 1px solid var(--line); padding-left: 14px; }
.team-column h4 { margin: 0 0 10px; font-size: 14px; }
.team-column ul { display: grid; gap: 8px; margin: 0; padding-left: 18px; }
.team-column li { line-height: 1.45; }
.team-column small { display: block; color: var(--muted); margin-top: 2px; white-space: pre-wrap; overflow-wrap: anywhere; }

.modal { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 22px; background: rgba(15, 24, 33, 0.5); backdrop-filter: blur(2px); }
.modal-card { width: min(560px, 100%); max-height: calc(100vh - 44px); overflow: auto; padding: 28px; border: none; border-radius: 20px; gap: 20px; box-shadow: 0 26px 60px rgba(20, 33, 45, 0.22); }
.modal-card.small { width: min(420px, 100%); }
.modal-header { cursor: move; user-select: none; margin-bottom: 2px; }
.modal-header h2 { margin: 0; font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.modal-header h2::before {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 18px;
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 3px 3px, var(--muted) 1.4px, transparent 1.6px),
    radial-gradient(circle at 11px 3px, var(--muted) 1.4px, transparent 1.6px),
    radial-gradient(circle at 3px 9px, var(--muted) 1.4px, transparent 1.6px),
    radial-gradient(circle at 11px 9px, var(--muted) 1.4px, transparent 1.6px),
    radial-gradient(circle at 3px 15px, var(--muted) 1.4px, transparent 1.6px),
    radial-gradient(circle at 11px 15px, var(--muted) 1.4px, transparent 1.6px);
}
.modal-header .icon-button { margin-left: auto; }
.icon-button {
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
  border: none;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
}
.icon-button:hover { background: var(--surface-2); color: var(--text); }

.modal-card label { color: #33404d; font-size: 13.5px; }
.modal-card input, .modal-card select, .modal-card textarea {
  border: 1px solid transparent;
  background: var(--surface-2);
  border-radius: 12px;
  min-height: 46px;
  padding: 11px 14px;
}
.modal-card textarea { min-height: 100px; }
.modal-card input:focus, .modal-card select:focus, .modal-card textarea:focus {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(33, 110, 118, 0.14);
}
.modal-card select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23647382' stroke-width='2'%3E%3Cpath d='M5 8l5 5 5-5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 38px;
}

.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.modal-actions button { min-height: 46px; padding: 0 24px; border-radius: 12px; font-weight: 700; border: none; }
.modal-actions .ghost-button { background: var(--surface-2); color: var(--text); }
.modal-actions .ghost-button:hover { background: #e2e8ee; }
.modal-actions .primary-button { background: var(--primary); }
.modal-actions .primary-button:hover { background: var(--primary-dark); }

@media (max-width: 1180px) {
  .pipeline-grid { grid-template-columns: 1fr; }
  .lane { min-height: auto; }
}

@media (max-width: 860px) {
  .login-page, .app-page, .team-card { grid-template-columns: 1fr; }
  .login-panel { min-height: auto; gap: 40px; }
  .sidebar { position: static; height: auto; gap: 18px; }
  .nav-list { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
  .nav-item { justify-content: center; text-align: center; }
  .filter-bar, .week-split, .period-row, .do-matrix-head, .do-matrix-row { grid-template-columns: 1fr; }
  .topbar, .team-toolbar { align-items: stretch; flex-direction: column; }
  .topbar-actions { justify-content: stretch; }
  .topbar-actions button, .team-toolbar label { width: 100%; }
  .team-column { border-left: 0; border-top: 1px solid var(--line); padding: 14px 0 0; }
}

@media (max-width: 560px) {
  .workspace, .login-page { padding: 18px; }
  .login-panel, .login-preview, .lane { padding: 18px; }
  h1 { font-size: 32px; }
  .nav-list { grid-template-columns: 1fr; }
  .task-actions button { flex: 1; }
}














