:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-soft: #f9fafb;
  --ink-panel: #111827;
  --line: #e1e6ee;
  --line-strong: #cfd7e4;
  --text: #121826;
  --muted: #667085;
  --faint: #98a2b3;
  --primary: #1f4f8f;
  --primary-dark: #173b6b;
  --primary-soft: #edf3fa;
  --accent: #dfe7ef;
  --ok: #168a53;
  --ok-soft: #e9f7ef;
  --warn: #b76a00;
  --warn-soft: #fff4df;
  --danger: #c93434;
  --danger-soft: #fff0f0;
  --teal: #087f7a;
  --shadow-sm: 0 1px 2px rgba(18, 24, 38, 0.06);
  --shadow-md: 0 18px 44px rgba(18, 24, 38, 0.10);
  --shadow-lg: 0 28px 70px rgba(18, 24, 38, 0.14);
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, #ffffff 0, var(--bg) 360px);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
}

body.embed-mode .topbar,
body.embed-mode .sidebar,
body.embed-mode .app-header {
  display: none;
}

body.embed-mode .app-shell,
body.embed-mode .app-main {
  display: block;
  min-height: 100vh;
}

body.embed-mode .page {
  padding-top: 22px;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.topbar {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  margin-bottom: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 120px;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--text);
  color: #ffffff;
  font-weight: 900;
}

.brand-text {
  font-size: 18px;
  letter-spacing: 0;
}

.sidebar-toggle {
  display: inline-grid;
  place-items: center;
  width: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  box-shadow: none;
}

.sidebar-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 140ms ease;
}

.sidebar-nav {
  display: grid;
  gap: 22px;
  align-content: start;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.sidebar-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.sidebar-section {
  display: grid;
  gap: 6px;
}

.sidebar-section h2 {
  margin: 0 0 3px;
  padding: 0 10px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 800;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
}

.sidebar-link:hover {
  color: var(--text);
  background: var(--surface-soft);
}

.sidebar-link.is-active {
  color: var(--text);
  border-color: #cfd8f4;
  background: #e9eefb;
  font-weight: 700;
}

.sidebar-link.is-disabled {
  color: var(--faint);
  cursor: not-allowed;
  opacity: 0.72;
}

.sidebar-link.is-disabled:hover {
  background: transparent;
}

.sidebar-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--primary-soft);
  color: var(--primary);
}

.sidebar-link.is-disabled .sidebar-icon {
  background: var(--surface-soft);
  color: var(--faint);
}

.sidebar-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-main {
  min-width: 0;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.sidebar-collapsed .app-shell {
  grid-template-columns: 72px minmax(0, 1fr);
}

.sidebar-collapsed .sidebar {
  padding: 18px 12px;
}

.sidebar-collapsed .sidebar-brand {
  justify-content: center;
  margin-bottom: 22px;
}

.sidebar-collapsed .sidebar .brand {
  min-width: 0;
}

.sidebar-collapsed .brand-text,
.sidebar-collapsed .sidebar-section h2,
.sidebar-collapsed .sidebar-label {
  display: none;
}

.sidebar-collapsed .sidebar-toggle {
  background: #ffffff;
}

.sidebar-collapsed .sidebar-toggle svg {
  transform: rotate(180deg);
}

.sidebar-collapsed .sidebar-footer {
  justify-content: center;
}

.sidebar-collapsed .sidebar-link {
  justify-content: center;
  padding: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav a {
  color: var(--muted);
  border-radius: 8px;
  padding: 8px 11px;
}

.task-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.task-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
}

.task-modal-panel {
  position: relative;
  width: min(1400px, calc(100vw - 40px));
  height: calc(100vh - 40px);
  margin: 20px auto;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.28);
}

#task-modal-frame {
  width: 100%;
  height: 100%;
  border: 0;
}

.task-modal-close {
  position: absolute;
  right: 12px;
  top: 10px;
  z-index: 2;
  min-height: 34px;
  width: 34px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #d5dde8;
  background: #fff;
  color: #1f2937;
  box-shadow: var(--shadow-sm);
}

.nav a:hover {
  color: var(--text);
  background: var(--surface-soft);
}

.nav a.is-active {
  color: var(--text);
  background: #e9eefb;
  border: 1px solid #cfd8f4;
  font-weight: 700;
}

.account-menu {
  position: relative;
}

.account-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  list-style: none;
}

.account-menu summary::-webkit-details-marker {
  display: none;
}

.account-menu summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
}

.account-menu[open] summary {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 79, 143, 0.10);
}

.account-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  gap: 4px;
  width: 160px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  z-index: 20;
}

.account-panel a,
.account-panel button {
  justify-content: flex-start;
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  color: var(--text);
}

.account-panel a:hover,
.account-panel button:hover {
  background: var(--surface-soft);
}

.account-panel form {
  margin: 0;
}

.page {
  max-width: 1500px;
  margin: 0 auto;
  padding: 30px 32px 48px;
}

.wide { max-width: none; }

.board-page {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 68px);
  overflow: hidden;
  padding-bottom: 16px;
}

.board-page .page-head {
  flex: 0 0 auto;
  margin-bottom: 14px;
}

.toast-stack {
  position: fixed;
  top: 82px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  display: grid;
  gap: 8px;
  width: min(420px, calc(100vw - 24px));
}

.toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #c7d8ff;
  background: #eef4ff;
  color: #12367d;
  box-shadow: var(--shadow-md);
  animation: toastIn 180ms ease;
}

.toast.success {
  border-color: #b9e5cf;
  background: #edf9f2;
  color: #155d3b;
}

.toast.error {
  border-color: #f2c6cd;
  background: #fff2f4;
  color: #8f1d33;
}

.toast.warning {
  border-color: #f2dfb2;
  background: #fff8e9;
  color: #7a4c00;
}

.toast button {
  min-height: 24px;
  width: 24px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  box-shadow: none;
}

.toast.is-leaving {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

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

.page-head, .week-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 4px;
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: 0;
}
h2 {
  font-size: 15px;
  margin-bottom: 12px;
  letter-spacing: 0;
}
h3 {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0;
}
.page-head p, .week-head p {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}

.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 13px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.danger-button {
  border-color: #f3b5b5;
  background: var(--danger-soft);
  color: var(--danger);
}

.danger-button:hover {
  border-color: #e89191;
  background: #ffe6e6;
}

.button:hover, button:hover {
  border-color: #b8c2d3;
  background: var(--surface-soft);
}

.button:active, button:active { transform: translateY(1px); }

.primary, button.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.primary:hover {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
}

.subtle {
  color: var(--muted);
  box-shadow: none;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.metrics div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.metrics span {
  color: var(--muted);
  font-weight: 650;
}

.metrics strong {
  font-size: 24px;
  line-height: 1;
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px 160px 150px auto;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.board-page .filters {
  flex: 0 0 auto;
}

input, select, textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

select {
  height: 46px;
  padding-right: 42px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #667085 50%),
    linear-gradient(135deg, #667085 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 20px,
    calc(100% - 16px) 20px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  font-weight: 760;
  cursor: pointer;
}

select:hover {
  border-color: #b8c2d3;
  background-color: var(--surface-soft);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 79, 143, 0.10);
}

textarea { resize: vertical; }

.kanban {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 12px;
  align-items: stretch;
  height: calc(100vh - 300px);
  min-height: 420px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
}

.board-page .kanban {
  flex: 1;
  height: auto;
  min-height: 0;
}

.kanban-column {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: rgba(249, 250, 251, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  overflow: hidden;
}

.kanban-column.is-over {
  border-color: rgba(31, 79, 143, 0.42);
  background: #f4f8fc;
  box-shadow: inset 0 0 0 2px rgba(31, 79, 143, 0.10);
}

.column-head {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding: 2px 2px 4px;
}

.column-head h2 {
  margin: 0;
  font-size: 14px;
}

.column-head span {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
}

.cards {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 84px;
  overflow-y: auto;
  padding-right: 3px;
}

.task-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 6.8px solid var(--primary);
  border-radius: 8px;
  padding: 8px 9px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 140ms ease, transform 140ms ease, border-color 140ms ease;
}

.task-card:hover {
  border-color: #c4cede;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.task-card.is-dragging {
  opacity: 0.54;
  transform: rotate(0deg) scale(0.99);
}

.task-card.drop-gap-before {
  margin-top: 10px;
}

.card-title {
  font-size: 13px;
  font-weight: 760;
  margin-bottom: 2px;
  line-height: 1.28;
}

.card-project {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.card-meta, .card-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.priority-high, .priority-urgent { border-left-color: var(--danger); }
.priority-low { border-left-color: var(--ok); }
.is-overdue { box-shadow: inset 0 0 0 1px rgba(201, 52, 52, 0.24), var(--shadow-sm); }

.task-card.card-color-slate { border-left-color: #64748b; }
.task-card.card-color-blue { border-left-color: #3b82f6; }
.task-card.card-color-teal { border-left-color: #14b8a6; }
.task-card.card-color-green { border-left-color: #22a06b; }
.task-card.card-color-amber { border-left-color: #f59e0b; }
.task-card.card-color-orange { border-left-color: #f97316; }
.task-card.card-color-rose { border-left-color: #f43f5e; }
.task-card.card-color-violet { border-left-color: #8b5cf6; }

.delivery-card.card-color-slate { border-left-color: #64748b; }
.delivery-card.card-color-blue { border-left-color: #3b82f6; }
.delivery-card.card-color-teal { border-left-color: #14b8a6; }
.delivery-card.card-color-green { border-left-color: #22a06b; }
.delivery-card.card-color-amber { border-left-color: #f59e0b; }
.delivery-card.card-color-orange { border-left-color: #f97316; }
.delivery-card.card-color-rose { border-left-color: #f43f5e; }
.delivery-card.card-color-violet { border-left-color: #8b5cf6; }

.progress {
  height: 4px;
  background: #edf1f6;
  border-radius: 999px;
  overflow: hidden;
  margin: 5px 0;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--ok);
}

.progress.large { height: 9px; }

.task-list { display: grid; gap: 10px; }

.list-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.list-row div { display: grid; gap: 4px; }
.list-row span { color: var(--muted); font-size: 13px; }

.narrow, .auth-panel {
  max-width: 760px;
  margin: 30px auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.auth-panel {
  max-width: 440px;
  margin-top: 72px;
  padding: 30px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.auth-brand h1 {
  margin: 0;
  font-size: 28px;
}

.auth-brand p {
  margin: 2px 0 0;
  color: var(--muted);
}

.feishu-login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #1f4f8f;
  color: #ffffff;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

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

.password-login-link {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.password-login-link:hover {
  color: var(--primary);
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.form { display: grid; gap: 14px; }
.form p { display: grid; gap: 6px; margin: 0; }
.form p[hidden] { display: none; }
.form label { display: grid; gap: 6px; font-weight: 650; }
.form ul { margin: 4px 0 0; padding-left: 20px; }
.compact { gap: 10px; }
.actions { display: flex; gap: 10px; margin-top: 8px; }

.content-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.content-panel {
  padding: 18px;
}

.task-shell {
  display: grid;
  gap: 18px;
}

.task-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.task-hero h1 {
  max-width: 880px;
  margin-bottom: 12px;
  font-size: 36px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-meta span {
  padding: 5px 10px;
  border: 1px solid #bfd3f2;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #334155;
  font-size: 12px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hero-actions .button,
.hero-actions button {
  border-color: #bfd3f2;
}

.range-field input[type="range"] {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: auto;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  accent-color: var(--primary);
}

.range-field input[type="range"]:focus,
.range-field input[type="range"]:focus-visible {
  border-color: transparent;
  box-shadow: none;
  outline: none;
}

.range-field input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: #dbe7f7;
}

.range-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -5px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.22);
}

.range-field input[type="range"]::-moz-range-track {
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: #dbe7f7;
}

.range-field input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.22);
}

.range-field small {
  color: var(--muted);
}

.task-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 18px;
}

.task-workspace,
.task-inspector {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
}

.task-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.task-summary div {
  display: grid;
  gap: 5px;
  padding: 14px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fafc, #ffffff);
  border: 1px solid var(--line);
}

.task-summary strong {
  font-size: 16px;
}

.panel-label {
  display: block;
  margin-bottom: 4px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.rich-copy {
  margin: 0;
  color: #344054;
  font-size: 15px;
}

.rich-copy p,
.rich-copy ul,
.rich-copy ol,
.rich-copy blockquote,
.rich-copy pre {
  margin: 0 0 10px;
}

.rich-copy ul,
.rich-copy ol {
  padding-left: 22px;
}

.rich-copy blockquote {
  padding: 8px 12px;
  border-left: 4px solid #b8c8e8;
  border-radius: 6px;
  background: #f6f8fc;
}

.rich-copy a {
  color: var(--primary);
  font-weight: 800;
}

.rich-copy figure {
  margin: 10px 0;
}

.rich-copy table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.rich-copy th,
.rich-copy td {
  padding: 8px 10px;
  border: 1px solid var(--line);
  text-align: left;
}

.rich-copy th {
  background: #f6f8fc;
  font-weight: 900;
}

.rich-copy :last-child {
  margin-bottom: 0;
}

.preline { white-space: pre-line; }

.ckeditor-shell {
  --ck-border-radius: 8px;
  --ck-color-base-border: var(--line-strong);
  --ck-color-focus-border: var(--primary);
  --ck-color-toolbar-background: #f8fafc;
  --ck-color-button-on-background: #eef4ff;
  --ck-color-button-on-color: var(--primary);
}

.ckeditor-shell .ck.ck-editor {
  width: 100%;
}

.ckeditor-shell .ck.ck-editor__main > .ck-editor__editable {
  min-height: 170px;
  padding: 12px 14px;
  color: var(--text);
  line-height: 1.65;
}

.ckeditor-shell .ck.ck-toolbar {
  border-color: var(--line-strong);
}

.ckeditor-shell .ck.ck-editor__editable.ck-focused:not(.ck-editor__nested-editable) {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 79, 143, 0.13);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.delivery-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.delivery-card {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-left: 8.5px solid var(--primary);
  border-radius: 8px;
  background: #f8fafc;
  color: inherit;
}

.delivery-card strong {
  font-size: 14px;
  line-height: 1.4;
}

.delivery-card span {
  font-size: 12px;
  color: var(--muted);
}

.delivery-editor {
  margin-top: 10px;
}

.selected-deliveries {
  margin-top: 0;
}

.selected-delivery-card {
  position: relative;
  padding-right: 72px;
}

.selected-delivery-card > a {
  display: grid;
  gap: 4px;
  color: inherit;
}

.delivery-remove {
  position: absolute;
  right: 10px;
  top: 50%;
  min-height: 30px;
  padding: 0 10px;
  border-color: #f3b5b5;
  background: var(--danger-soft);
  color: var(--danger);
  box-shadow: none;
  font-size: 12px;
  opacity: 0;
  transform: translateY(-50%) translateX(4px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.selected-delivery-card:hover .delivery-remove,
.selected-delivery-card:focus-within .delivery-remove {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.delivery-picker-modal[hidden] {
  display: none;
}

.delivery-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
}

.delivery-picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
}

.delivery-picker-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(720px, calc(100vw - 36px));
  max-height: min(640px, calc(100vh - 48px));
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.delivery-picker-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.delivery-picker-panel h3 {
  margin: 2px 0 0;
  font-size: 20px;
}

.delivery-selectable {
  text-align: left;
  cursor: pointer;
  position: relative;
}

.delivery-selectable.is-selected {
  background: #f4fbf7;
  outline: 2px solid #22a06b;
  outline-offset: -2px;
}

.delivery-check {
  position: absolute;
  right: 10px;
  top: 10px;
  color: #22a06b;
  font-size: 20px;
  line-height: 1;
  text-align: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 120ms ease, transform 120ms ease;
}

.delivery-selectable.is-selected .delivery-check {
  opacity: 1;
  transform: scale(1);
}

.delivery-checkboxes {
  display: none;
}

.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-swatches.compact {
  margin-top: 10px;
}

.color-swatch {
  width: 24px;
  min-height: 24px;
  height: 24px;
  padding: 0;
  border-radius: 999px;
  border: 2px solid #d7deea;
  box-shadow: none;
}

.color-swatch.is-active {
  border-color: #111827;
  transform: scale(1.06);
}

.color-swatch.color-slate { background: #64748b; }
.color-swatch.color-blue { background: #3b82f6; }
.color-swatch.color-teal { background: #14b8a6; }
.color-swatch.color-green { background: #22a06b; }
.color-swatch.color-amber { background: #f59e0b; }
.color-swatch.color-orange { background: #f97316; }
.color-swatch.color-rose { background: #f43f5e; }
.color-swatch.color-violet { background: #8b5cf6; }

.sr-only-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.subtasks { display: grid; gap: 8px; margin: 12px 0; }

.subtask-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.subtask {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.check {
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  border-radius: 5px;
  box-shadow: none;
}

.check.checked { background: var(--ok); border-color: var(--ok); }
.done { color: var(--muted); text-decoration: line-through; }

.subtask-inline-editor {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  font: inherit;
  color: inherit;
  background: #fff;
}

.icon-danger {
  width: 30px;
  min-height: 30px;
  padding: 0;
  border-color: transparent;
  box-shadow: none;
  color: var(--danger);
  background: transparent;
  font-size: 20px;
  line-height: 1;
}

.icon-danger:hover {
  border-color: #f3b5b5;
  background: var(--danger-soft);
}

.add-subtask-form {
  margin-top: 12px;
}

.subtask-actions {
  display: block;
  margin-top: 12px;
}

.subtask-actions .add-subtask-form {
  margin-top: 0;
}

.subtask-template-menu {
  position: relative;
  flex: 0 0 auto;
}

.subtask-template-menu summary {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  box-shadow: var(--shadow-sm);
}

.subtask-template-menu summary::-webkit-details-marker {
  display: none;
}

.subtask-template-menu > div {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 10;
  display: grid;
  gap: 6px;
  width: 150px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.subtask-template-menu button {
  width: 100%;
  justify-content: flex-start;
  min-height: 36px;
  padding: 0 10px;
  box-shadow: none;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.media-upload-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.media-file-picker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.media-file-picker input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.media-file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 7px;
  background: #eef4ff;
  color: var(--primary);
  font-weight: 800;
}

.media-file-name {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-upload-form button[type="submit"] {
  min-width: 104px;
}

.media-upload-form .errorlist {
  grid-column: 1 / -1;
  margin: 0;
}

.attachments {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.attachment {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-soft);
}

.attachment-preview {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #0f172a;
  box-shadow: none;
  cursor: zoom-in;
}

.attachment-preview:hover img,
.attachment-preview:hover video,
.attachment-preview:focus-visible img,
.attachment-preview:focus-visible video {
  opacity: 0.86;
}

.attachment-preview img,
.attachment-preview video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: opacity 140ms ease;
}

.attachment-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  transform: translate(-50%, -50%);
}

.attachment-file-link {
  display: grid;
  min-height: 120px;
  place-items: center;
  color: var(--primary);
  font-weight: 900;
}

.attachment figcaption {
  position: relative;
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  word-break: break-word;
}

.attachment figcaption > span {
  min-width: 0;
}

.attachment figcaption form {
  flex: 0 0 auto;
}

.attachment-delete {
  min-height: 28px;
  padding: 0 10px;
  border-color: #f3b5b5;
  background: var(--danger-soft);
  color: var(--danger);
  box-shadow: none;
  font-size: 12px;
  opacity: 0;
  transform: translateX(4px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.attachment:hover .attachment-delete,
.attachment:focus-within .attachment-delete {
  opacity: 1;
  transform: translateX(0);
}

.media-lightbox[hidden] {
  display: none;
}

.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 24px;
}

.media-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.64);
}

.media-lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100vw - 40px));
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.32);
}

.media-lightbox-close {
  opacity: 1;
  transform: none;
}

.media-lightbox-body {
  display: grid;
  min-height: min(58vh, 620px);
  place-items: center;
  background: #0f172a;
}

.media-lightbox-body img,
.media-lightbox-body video {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 136px);
}

.media-lightbox-body img[hidden],
.media-lightbox-body video[hidden] {
  display: none;
}

.media-lightbox-caption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  word-break: break-word;
}

.comments, .timeline { display: grid; gap: 10px; margin-bottom: 12px; }

.comment, .timeline > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface-soft);
}

.comment span, .timeline span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.comment p, .timeline p { margin: 8px 0 0; }

.meta-list {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 8px 12px;
}

.meta-list dt { color: var(--muted); }
.meta-list dd { margin: 0; }

.week-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.week-view-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  min-width: 0;
}

.view-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  max-width: 100%;
}

.view-tabs a {
  padding: 8px 12px;
  border-radius: 7px;
  color: var(--muted);
  font-weight: 700;
}

.view-tabs a.is-active {
  background: #e9eefb;
  color: var(--text);
}

.week-filter {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  min-width: 0;
}

.week-filter select {
  width: 220px;
  min-height: 42px;
  height: 42px;
  background-color: var(--surface);
}

.week-filter .week-status-filter {
  width: 150px;
  font-weight: 800;
}

.filter-multiselect {
  position: relative;
  width: 240px;
  max-width: 100%;
}

.filter-multiselect summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 9px 40px 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(45deg, transparent 50%, #667085 50%) calc(100% - 22px) 18px / 6px 6px no-repeat,
    linear-gradient(135deg, #667085 50%, transparent 50%) calc(100% - 16px) 18px / 6px 6px no-repeat,
    var(--surface);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.filter-multiselect summary::-webkit-details-marker {
  display: none;
}

.filter-multiselect-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  display: grid;
  gap: 6px;
  width: 280px;
  max-width: calc(100vw - 32px);
  max-height: 340px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.filter-multiselect-panel input[type="search"] {
  min-height: 38px;
  height: 38px;
}

.filter-option-list {
  display: grid;
  gap: 4px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 8px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.filter-option[hidden] {
  display: none;
}

.filter-option:hover,
.filter-option.is-selected {
  background: #eef5ff;
  color: var(--primary-dark);
}

.filter-option input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  accent-color: var(--primary);
}

.week-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.person-lane {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  min-height: 420px;
  box-shadow: var(--shadow-sm);
}

.person-lane header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.person-lane h2 { margin: 0; font-size: 20px; }
.person-lane header span { color: var(--muted); }
.goals, .week-tasks { display: grid; gap: 10px; margin-bottom: 16px; }

.goal, .week-task {
  display: block;
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface-soft);
}

.goal div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.goal span, .week-task span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.goal-progress {
  display: grid;
  gap: 4px;
  margin-top: 10px;
}

.goal-progress .progress {
  margin: 0;
}

.status-done { border-left-color: var(--ok); }
.status-risk, .status-delayed { border-left-color: var(--danger); }
.status-doing, .status-review { border-left-color: var(--warn); }
.empty { color: var(--muted); margin: 0; }

.gantt-board {
  display: grid;
  gap: 14px;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
}

.people-gantt-board {
  overflow-x: hidden;
}

.gantt-product {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.gantt-product > header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: #fcfdff;
}

.gantt-product h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #475569;
}

.gantt-product header span {
  color: var(--muted);
  font-size: 12px;
}

.goal-block {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.goal-block:last-child {
  border-bottom: 0;
}

.goal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.goal-priority-block {
  padding-top: 18px;
}

.goal-priority-block .goal-head {
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #dbe6f3;
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  background: #f8fbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.goal-head strong {
  font-size: 16px;
}

.goal-priority-block .goal-head strong {
  color: var(--text);
  font-size: 22px;
  line-height: 1.2;
}

.goal-head strong a {
  color: inherit;
}

.goal-head span {
  color: var(--muted);
  font-size: 12px;
}

.gantt-week-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(420px, 2.4fr) 110px;
  align-items: center;
  gap: 10px;
}

.gantt-week-header {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.gantt-week-header span {
  text-align: center;
}

.gantt-task-list {
  display: grid;
  gap: 8px;
}

.chain-list {
  display: grid;
  gap: 10px;
}

.chain-block {
  position: relative;
  overflow: hidden;
  border: 1px solid #dce5f2;
  border-radius: 8px;
  background: #fbfdff;
}

.chain-block.is-independent {
  background: #fff;
}

.chain-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #e5ebf3;
  background: #f5f8fc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.chain-head strong {
  color: var(--text);
}

.chain-task-list {
  position: relative;
  gap: 0;
}

.chain-task-list::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 27px;
  bottom: 27px;
  width: 2px;
  transform: translateX(-1px);
  background: #b8c7dc;
}

.gantt-task-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(420px, 2.4fr) 110px;
  align-items: center;
  gap: 10px;
}

.people-task-board {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.people-task-week-row,
.people-task-list {
  min-width: 900px;
}

.people-task-week-row,
.people-task-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.95fr) minmax(420px, 2.1fr) 92px;
  align-items: center;
  gap: 10px;
}

.people-task-week-row {
  padding: 10px 14px 4px 218px;
  border-bottom: 1px solid var(--line);
  background: #fcfdff;
}

.people-task-list {
  display: grid;
}

.people-task-group {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #edf2f7;
}

.people-task-group:last-child {
  border-bottom: 0;
}

.people-task-person {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: start;
  min-height: 50px;
  padding: 8px 10px;
  border: 1px solid #dce5f2;
  border-radius: 8px;
  background: #f8fbff;
}

.people-task-person strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
}

.people-task-person span:not(.product-icon) {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.people-task-items {
  display: grid;
  gap: 6px;
}

.people-task-row {
  min-height: 42px;
}

.people-task-row .gantt-task-track {
  height: 26px;
}

.people-task-row .gantt-task-bar {
  top: 3px;
}

.people-task-row .gantt-task-meta strong {
  font-size: 13px;
}

.people-task-row .meta-tags {
  margin-top: 4px;
}

.chain-task-row {
  padding: 9px 12px;
  border-bottom: 1px solid #edf2f7;
}

.chain-task-row:last-child {
  border-bottom: 0;
}

.chain-task-meta {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  min-height: 52px;
}

.chain-node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  align-self: start;
  width: 20px;
  height: 20px;
  margin-top: 8px;
  border-radius: 999px;
  background: #fbfdff;
  box-shadow: 0 0 0 5px #fbfdff;
}

.chain-node > span {
  display: block;
  width: 20px;
  height: 20px;
  border: 2px solid #3b82f6;
  border-radius: 999px;
  background: #fbfdff;
  box-shadow: inset 0 0 0 4px #fbfdff;
}

.chain-task-row:not(.is-first) .chain-node > span {
  border-radius: 6px;
  transform: rotate(45deg);
}

.chain-task-row:not(.is-first) .chain-node > span::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  margin: 4px 0 0 4px;
  border-right: 2px solid #3b82f6;
  border-bottom: 2px solid #3b82f6;
}

.chain-block.is-independent .chain-task-list::before,
.chain-block.is-independent .chain-node {
  display: none;
}

.chain-block.is-independent .chain-task-meta {
  grid-template-columns: 1fr;
}

.chain-task-copy {
  min-width: 0;
}

.gantt-task-meta strong {
  display: block;
  font-size: 14px;
}

.gantt-task-title {
  display: flex !important;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.gantt-task-title > a:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-delivery-action {
  flex: 0 0 auto;
  opacity: 0;
  pointer-events: none;
  padding: 3px 8px;
  border: 1px solid #c7ddff;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  transition: opacity 120ms ease, transform 120ms ease;
  transform: translateX(-3px);
}

.gantt-task-row:hover .task-delivery-action,
.people-task-row:hover .task-delivery-action,
.task-delivery-action:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.gantt-task-meta strong a {
  color: inherit;
}

.gantt-task-meta span {
  color: var(--muted);
  font-size: 12px;
}

.meta-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.gantt-task-meta .meta-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid #d8e1ee;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.gantt-task-meta .meta-tag.product-tag {
  border-color: #c7ddff;
  background: #eef5ff;
  color: #24599c;
}

.gantt-task-meta .meta-tag.muted {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: var(--muted);
}

.gantt-task-track {
  position: relative;
  height: 30px;
  border: 1px solid #e5ebf3;
  border-radius: 8px;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, #f8fafc 0, #f8fafc calc(14.285% - 1px), #e7edf5 calc(14.285% - 1px), #e7edf5 14.285%);
}

.gantt-task-track.has-days {
  height: 42px;
}

.gantt-track-days {
  position: absolute;
  inset: 3px 0 auto;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  color: #718096;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.gantt-track-days span {
  text-align: center;
}

.gantt-task-bar {
  position: absolute;
  top: 4px;
  height: 20px;
  min-width: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #5b7cff;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.gantt-task-track.has-days .gantt-task-bar {
  top: 20px;
  height: 18px;
}

.gantt-task-bar.priority-low {
  background: #22a06b;
}

.gantt-task-bar.priority-normal {
  background: #3b82f6;
}

.gantt-task-bar.priority-high {
  background: #f59e0b;
}

.gantt-task-bar.priority-urgent {
  background: #ef4444;
}

.gantt-task-bar .bar-progress {
  display: block;
  height: 100%;
  background: rgba(15, 23, 42, 0.22);
}

.gantt-task-bar .bar-percent {
  position: absolute;
  z-index: 1;
  left: 10px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.gantt-task-status {
  display: flex;
  justify-content: flex-end;
  text-align: right;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.gantt-task-status .status-pill {
  justify-self: end;
  min-width: 54px;
  padding: 4px 9px;
  border-radius: 999px;
  text-align: center;
  font-size: 11px;
  line-height: 1;
}

.status-pill.status-todo {
  border-color: #d8e1ee;
  background: #f8fafc;
  color: #64748b;
}

.status-pill.status-doing {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #2563eb;
}

.status-pill.status-review {
  border-color: #fde68a;
  background: #fffbeb;
  color: #b45309;
}

.status-pill.status-done {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.status-pill.status-delayed {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #be123c;
}

.status-pill.status-archived {
  border-color: #e2e8f0;
  background: #f1f5f9;
  color: #475569;
}

.compose-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.compose-hero {
  margin-bottom: 18px;
  padding: 26px 28px;
  border: 1px solid rgba(18, 24, 38, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: var(--shadow-md);
}

.compose-hero h1 {
  margin-bottom: 8px;
}

.compose-hero p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.compose-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.compose-main {
  display: grid;
  gap: 14px;
}

.compose-side {
  position: sticky;
  top: 88px;
}

.form-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.span-two {
  grid-column: 1 / -1;
}

.form-field {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.form-field:first-of-type {
  margin-top: 0;
}

.form-grid-two > .form-field {
  margin-top: 0;
}

.form-field label {
  font-weight: 760;
}

.participant-field > div[id^="id_"],
.participant-field #participants-container > div[id^="id_"],
.participant-field ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  list-style: none;
}

.participant-field > div[id^="id_"] > div,
.participant-field #participants-container > div[id^="id_"] > div,
.participant-field li {
  min-width: 0;
  padding: 0;
}

.participant-field > div[id^="id_"] label,
.participant-field #participants-container > div[id^="id_"] label,
.participant-field li label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.participant-field > div[id^="id_"] label:hover,
.participant-field #participants-container > div[id^="id_"] label:hover,
.participant-field li label:hover {
  border-color: var(--line-strong);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.participant-field > div[id^="id_"] label:has(input:checked),
.participant-field #participants-container > div[id^="id_"] label:has(input:checked),
.participant-field li label:has(input:checked) {
  border-color: #bad4ff;
  background: #eef5ff;
  color: var(--primary-dark);
}

.participant-field input[type="checkbox"] {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  appearance: none;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--surface);
  box-shadow: none;
  cursor: pointer;
}

.participant-field input[type="checkbox"]:checked {
  border-color: var(--primary);
  background-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 9.2 7.7 12 13.4 6' fill='none' stroke='white' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 18px 18px;
}

.participant-field input[type="checkbox"]:focus {
  box-shadow: 0 0 0 3px rgba(31, 79, 143, 0.10);
}

.vertical-actions {
  display: grid;
  gap: 10px;
}

.compact-shell {
  max-width: 980px;
}

.narrow-step {
  max-width: 560px;
  margin: 0 auto;
}

.member-table {
  display: grid;
  padding: 0;
  overflow: hidden;
}

.goals-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px 16px;
}

.goals-filter label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.goals-filter select {
  width: 240px;
  height: 42px;
  min-height: 42px;
  background-color: var(--surface);
}

.weekly-goal-sections {
  display: grid;
  gap: 14px;
}

.goals-list-surface[aria-busy="true"] {
  opacity: 0.62;
}

.weekly-goal-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.weekly-goal-section-head h2 {
  margin: 2px 0 0;
  font-size: 22px;
}

.weekly-goal-section-head > span {
  color: var(--muted);
  font-weight: 800;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
  font-weight: 800;
}

.member-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 120px 120px 180px;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.goal-row {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 150px 130px 100px 120px;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.product-row {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 80px 100px 150px 120px;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.archive-row {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) 150px 180px 140px 190px;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.member-row:last-child {
  border-bottom: 0;
}

.goal-row:last-child {
  border-bottom: 0;
}

.product-row:last-child {
  border-bottom: 0;
}

.archive-row:last-child {
  border-bottom: 0;
}

.member-head,
.goal-head,
.product-head {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.member-person {
  display: grid;
  gap: 3px;
}

.member-person span {
  color: var(--muted);
  font-size: 13px;
}

.product-person,
.product-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.product-inline.compact {
  gap: 7px;
}

.product-person > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.product-person span {
  color: var(--muted);
  font-size: 13px;
}

.product-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 850;
}

.product-icon.small {
  width: 30px;
  height: 30px;
}

.product-icon.tiny {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 11px;
}

.product-icon.placeholder {
  font-size: 14px;
}

.product-form-grid {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.product-icon-preview {
  display: grid;
  place-items: center;
  width: 144px;
  height: 144px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-weight: 800;
  overflow: hidden;
}

.product-icon-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.form-stack {
  display: grid;
  gap: 14px;
}

.form-stack .form-field {
  margin-top: 0;
}

.goal-progress-cell {
  display: grid;
  gap: 2px;
}

.goal-progress-cell span {
  color: var(--muted);
  font-size: 12px;
}

.role-pill,
.status-pill {
  justify-self: start;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 750;
  font-size: 12px;
}

.status-pill {
  background: var(--ok-soft);
  color: var(--ok);
}

.muted-pill {
  background: var(--surface-soft);
  color: var(--muted);
}

.member-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.member-actions form {
  margin: 0;
}

.member-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.member-form {
  padding: 22px;
}

.switch-field {
  align-content: start;
}

.switch-field input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  padding: 0;
  accent-color: var(--primary);
}

.form-field small {
  color: var(--muted);
}

.version-head {
  margin-bottom: 12px;
}

.version-tabs-wrap {
  position: relative;
  margin-bottom: 16px;
  overflow: hidden;
}

.version-tabs-wrap::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 48px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(246, 248, 252, 0), var(--bg));
}

.version-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 54px 8px 0;
  scrollbar-width: thin;
}

.version-tab {
  flex: 0 0 auto;
  max-width: 240px;
  overflow: hidden;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.version-tab:hover,
.version-tab.is-active {
  border-color: #bad4ff;
  background: #eef5ff;
  color: var(--primary-dark);
}

.version-tab.is-empty {
  cursor: default;
}

.version-layout {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
}

.version-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  min-height: 0;
}

.version-column,
.version-compose {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.version-column {
  display: flex;
  min-height: 0;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.version-column > header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.version-column > header .button {
  min-height: 34px;
  padding: 0 12px;
}

.version-column h2 {
  margin: 0;
  font-size: 18px;
}

.version-timeline {
  position: relative;
  display: grid;
  flex: 1 1 auto;
  gap: 0;
  align-content: start;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 16px 18px;
}

.version-timeline::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 30px;
  bottom: 22px;
  width: 2px;
  background: #dce6f5;
}

.version-timeline.is-empty::before {
  display: none;
}

.version-item {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 16px;
}

.version-item:last-child {
  padding-bottom: 0;
}

.version-node {
  position: relative;
  z-index: 1;
  padding-top: 12px;
}

.version-node span,
.version-full-node span {
  display: block;
  width: 14px;
  height: 14px;
  border: 3px solid #3b82f6;
  border-radius: 999px;
  background: #fff;
}

.version-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.version-card.is-compact {
  padding: 10px 12px;
}

.version-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.version-card.is-compact .version-card-head {
  margin-bottom: 0;
}

.version-card-title {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.version-title-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.version-card-title strong,
.version-card-title small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.version-card-head strong {
  font-size: 15px;
}

.version-card-head small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.version-title-line span,
.version-full-node em {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--primary-dark);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.version-meta {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.version-meta span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.version-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.version-card:hover .version-card-actions,
.version-card:focus-within .version-card-actions {
  opacity: 1;
  transform: translateY(0);
}

.version-card-actions form {
  margin: 0;
}

.version-card-actions .button,
.version-card-actions button,
.version-card-actions .danger-button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.version-full-node {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
  color: var(--muted);
}

.version-full-node span {
  width: 12px;
  height: 12px;
  border-color: #22a06b;
}

.version-full-node strong {
  font-size: 13px;
}

.version-form {
  display: grid;
  gap: 14px;
}

.version-compose {
  position: sticky;
  top: 88px;
}

.readonly-field {
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--text);
  font-weight: 850;
}

.version-modal[hidden] {
  display: none;
}

.version-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 24px;
}

.version-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
}

.version-modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(760px, calc(100vw - 40px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.version-modal-panel.small-panel {
  width: min(420px, calc(100vw - 40px));
}

.version-modal-panel > header {
  padding-right: 38px;
}

.version-modal-panel h2 {
  margin-bottom: 0;
  font-size: 18px;
}

.version-modal-close {
  opacity: 1;
  transform: none;
}

.version-page {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 68px);
  overflow: hidden;
  padding-bottom: 18px;
}

.version-page .page-head,
.version-tabs-wrap {
  flex: 0 0 auto;
}

@media (max-width: 980px) {
  .topbar, .page-head, .week-head, .list-row, .detail-title {
    align-items: stretch;
    flex-direction: column;
  }
  .topbar { gap: 14px; padding: 14px 18px; }
  .nav { flex-wrap: wrap; }
  .app-shell {
    display: block;
  }
  .sidebar {
    position: sticky;
    z-index: 30;
    height: auto;
    min-height: 0;
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar-brand {
    margin-bottom: 12px;
  }
  .sidebar-nav {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .sidebar-section {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .sidebar-section h2 {
    padding: 0;
    white-space: nowrap;
  }
  .sidebar-collapsed .app-shell {
    display: block;
  }
  .sidebar-collapsed .brand-text,
  .sidebar-collapsed .sidebar-label,
  .sidebar-collapsed .sidebar-section h2 {
    display: inline;
  }
  .sidebar-collapsed .sidebar-toggle {
    position: static;
    width: 34px;
    min-height: 34px;
    border-radius: 8px;
  }
  .app-header {
    min-height: 58px;
    padding: 0 18px;
  }
  .filters, .task-layout, .kanban, .metrics, .compose-form, .form-grid-two, .task-summary {
    grid-template-columns: 1fr;
  }
  .version-layout,
  .version-board {
    grid-template-columns: 1fr;
  }
  .version-page {
    height: auto;
    overflow: visible;
  }
  .version-layout,
  .version-board,
  .version-column {
    min-height: 0;
  }
  .version-timeline {
    max-height: none;
    overflow: visible;
  }
  .version-compose {
    position: static;
  }
  .week-view-bar {
    align-items: stretch;
    flex-direction: column;
  }
  .week-filter {
    justify-content: flex-start;
  }
  .filter-multiselect {
    width: 100%;
  }
  .filter-multiselect-panel {
    left: 0;
    right: auto;
    width: 100%;
  }
  .week-filter select {
    width: 100%;
  }
  .gantt-task-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .chain-task-row {
    padding: 10px;
  }
  .gantt-week-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .people-task-board {
    min-width: 0;
  }
  .people-task-week-row {
    display: none;
  }
  .people-task-list {
    min-width: 0;
  }
  .people-task-group {
    grid-template-columns: 1fr;
  }
  .people-task-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .gantt-task-track {
    min-height: 30px;
  }
  .task-hero, .compose-hero {
    padding: 22px;
  }
  .hero-actions {
    justify-content: flex-start;
  }
  .compose-side {
    position: static;
  }
  .kanban-column { min-height: auto; }
  .member-row,
  .goal-row,
  .archive-row,
  .product-row,
  .product-form-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .goals-filter,
  .weekly-goal-section-head,
  .pagination {
    align-items: stretch;
    flex-direction: column;
  }
  .goals-filter select {
    width: 100%;
  }
  .subtask-actions,
  .inline-form,
  .media-upload-form {
    grid-template-columns: 1fr;
  }
  .subtask-template-menu > div {
    left: 0;
    right: auto;
  }
  .member-head,
  .goal-head,
  .archive-head,
  .product-head {
    display: none;
  }
  .member-actions {
    justify-content: flex-start;
  }
  .page { padding: 22px 18px 36px; }
}
