:root {
  --ink: #14212b;
  --ink-soft: #3d5160;
  --muted: #6b7f8f;
  --line: rgba(20, 33, 43, 0.12);
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: #ffffff;
  --accent: #0f766e;
  --accent-deep: #0b3d5c;
  --danger: #b42318;
  --shadow: 0 18px 40px rgba(11, 61, 92, 0.1);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(15, 118, 110, 0.18), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(11, 61, 92, 0.16), transparent 30%),
    linear-gradient(160deg, #eef5f4 0%, #f7f1e8 48%, #e8eef5 100%);
  background-attachment: fixed;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  padding: 28px 28px 48px;
}

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  animation: rise 0.55s ease both;
}

.brand-block {
  max-width: 640px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.site-nav a:hover {
  color: var(--accent-deep);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.site-nav a.active {
  color: #fff;
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--accent-deep);
}

.tagline {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 42ch;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.editable-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.editable-toggle input {
  width: auto;
  margin: 0;
  accent-color: var(--accent);
}

.editable-toggle:has(input:checked) {
  border-color: rgba(15, 118, 110, 0.45);
  background: rgba(15, 118, 110, 0.1);
  color: var(--accent-deep);
}

.view-only .person-card.readonly {
  cursor: default;
}

.view-only .person-card.readonly:hover {
  transform: none;
  box-shadow: none;
}

.view-only .board-footer {
  display: none;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  background: var(--accent-deep);
  color: #fff;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(11, 61, 92, 0.18);
}

.btn.secondary {
  background: var(--surface-strong);
  color: var(--accent-deep);
  border-color: var(--line);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.btn.ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--line);
}

.btn.danger {
  background: var(--danger);
}

.btn.small {
  padding: 0.45rem 0.8rem;
  font-size: 0.9rem;
}

.board-rail {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
}

.board {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 180px);
  animation: rise 0.6s ease both;
  transition: opacity 0.15s ease, transform 0.15s ease, outline-color 0.15s ease;
}

.board:nth-child(2) { animation-delay: 0.05s; }
.board:nth-child(3) { animation-delay: 0.1s; }
.board:nth-child(4) { animation-delay: 0.15s; }

.board.board-dragging {
  opacity: 0.45;
  transform: scale(0.98);
}

.board.board-drop-target {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.board-header {
  padding: 16px 16px 10px;
  border-bottom: 1px solid var(--line);
}

.board-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.board-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.board-drag-handle {
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  color: var(--muted);
  border-radius: 8px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  letter-spacing: -2px;
  font-size: 0.85rem;
  cursor: grab;
  user-select: none;
}

.board-drag-handle:active {
  cursor: grabbing;
}

.board-drag-handle:hover {
  color: var(--accent-deep);
  border-color: rgba(11, 61, 92, 0.35);
}

.board-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.board-actions .icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.board-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.board-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.count-pill {
  color: var(--muted);
  font-size: 0.85rem;
}

.role-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.role-count-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.2rem 0.45rem 0.2rem 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid color-mix(in srgb, var(--role-color) 35%, transparent);
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.role-count-chip strong {
  color: var(--role-color);
  font-size: 0.82rem;
}

.role-count-chip em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.7rem;
}

.role-count-label {
  max-width: 7.5ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-icon.tiny {
  width: 20px;
  height: 20px;
  border-radius: 6px;
}

.role-icon.tiny svg {
  width: 11px;
  height: 11px;
}

.person-card.tbd {
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.95),
      rgba(255, 255, 255, 0.95) 8px,
      rgba(15, 118, 110, 0.06) 8px,
      rgba(15, 118, 110, 0.06) 16px
    );
  border-style: dashed;
}

.person-card.tricipta {
  background-color: #f3fbfa;
  background-image: url("/petronas-logo.svg");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: clamp(64px, 28%, 96px) auto;
}

.person-card.tricipta.tbd {
  background-image:
    url("/petronas-logo.svg"),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.92),
      rgba(255, 255, 255, 0.92) 8px,
      rgba(15, 118, 110, 0.06) 8px,
      rgba(15, 118, 110, 0.06) 16px
    );
  background-repeat: no-repeat, repeat;
  background-position: right 12px center, 0 0;
  background-size: clamp(64px, 28%, 96px) auto, auto;
}

.person-card.tricipta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.78) 55%,
    rgba(255, 255, 255, 0.35) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.person-card > * {
  position: relative;
  z-index: 1;
}

.person-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tbd-badge,
.tricipta-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.tbd-badge {
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent);
}

.tricipta-badge {
  background: rgba(0, 161, 155, 0.14);
  color: #007c77;
}

.person-projects {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0.35rem;
}

.project-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: rgba(11, 61, 92, 0.1);
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.field-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.modal-wide {
  width: min(560px, 100%);
}

.project-manager-item {
  align-items: center;
}

.project-manager-meta {
  flex: 1;
  display: grid;
  gap: 2px;
  min-width: 0;
}

.project-manager-meta span {
  font-weight: 700;
}

.project-manager-meta small {
  color: var(--muted);
  font-size: 0.78rem;
}

.muted-inline {
  display: block;
  font-style: normal;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
}

.checkbox-label input {
  width: auto;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  min-height: 24px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
}

.tag-chip.muted {
  background: #64748b;
}

.people-list {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 120px;
}

.people-list.drag-over {
  background: rgba(15, 118, 110, 0.08);
  outline: 2px dashed rgba(15, 118, 110, 0.35);
  outline-offset: -6px;
  border-radius: 12px;
}

.person-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(0.75rem, 1.6vw, 1.1rem);
  min-height: clamp(132px, 18vh, 180px);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(14px, 2vw, 18px);
  cursor: grab;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border-left: 4px solid var(--role-color, var(--accent));
}

.person-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(20, 33, 43, 0.08);
}

.person-card.dragging {
  opacity: 0.45;
  cursor: grabbing;
}

.person-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
}

.role-icon {
  width: clamp(40px, 5vw, 46px);
  height: clamp(40px, 5vw, 46px);
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
  background: var(--role-color);
}

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

.person-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-right: 0.25rem;
}

.person-name {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.3;
}

.person-role {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--role-color);
  font-weight: 600;
}

.person-email,
.person-notes {
  margin: 0;
  padding-top: 0.15rem;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--muted);
  word-break: break-word;
}

.person-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 2px;
}

.icon-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  border-radius: 8px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
}

.icon-btn:hover {
  color: var(--accent-deep);
  border-color: rgba(11, 61, 92, 0.35);
}

.board-footer {
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
}

.empty-column {
  margin: 18px 8px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 24, 34, 0.45);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 40;
  animation: fade 0.2s ease both;
}

.modal {
  width: min(480px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 28px 60px rgba(10, 24, 34, 0.28);
  animation: rise 0.25s ease both;
}

.modal h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent-deep);
}

.modal p {
  margin: 0 0 16px;
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  background: #fbfcfd;
  color: var(--ink);
}

textarea {
  min-height: 84px;
  resize: vertical;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.tag-manager-list,
.board-tag-picker {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  margin-top: 8px;
}

.tag-manager-item,
.board-tag-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.board-tag-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.tag-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tag-manager-item span,
.board-tag-option span {
  flex: 1;
  font-weight: 600;
}

.color-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.color-row input[type="color"] {
  width: 48px;
  height: 40px;
  padding: 2px;
  border-radius: 10px;
}

.role-legend {
  margin-top: 24px;
  animation: rise 0.7s ease both;
}

.role-legend h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--accent-deep);
}

.legend-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.4rem 0.7rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.legend-item .role-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}

.legend-item .role-icon svg {
  width: 14px;
  height: 14px;
}

.error {
  color: var(--danger);
  font-size: 0.88rem;
  margin: 0;
}

.project-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  animation: rise 0.55s ease both;
}

.view-only .project-layout {
  grid-template-columns: 1fr;
}

.project-panel-card,
.project-card,
.project-empty {
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.project-panel-card {
  padding: 20px;
  position: sticky;
  top: 18px;
}

.project-panel-card h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--accent-deep);
}

.project-panel-card > p {
  margin: 0 0 16px;
  color: var(--muted);
}

.people-picker {
  max-height: 320px;
}

.person-autocomplete {
  display: grid;
  gap: 10px;
}

.selected-people {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.selected-person-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(11, 61, 92, 0.18);
  background: rgba(11, 61, 92, 0.08);
  color: var(--accent-deep);
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.selected-person-chip:hover {
  background: rgba(180, 35, 24, 0.1);
  border-color: rgba(180, 35, 24, 0.28);
  color: var(--danger);
}

.autocomplete-field {
  position: relative;
}

.autocomplete-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  gap: 4px;
  max-height: 260px;
  overflow: auto;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(10, 24, 34, 0.14);
}

.autocomplete-option {
  display: grid;
  gap: 2px;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  color: var(--ink);
}

.autocomplete-option strong {
  font-size: 0.95rem;
}

.autocomplete-option.active,
.autocomplete-option:hover {
  background: rgba(15, 118, 110, 0.1);
}

.autocomplete-empty {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.project-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.search-field {
  flex: 1;
  max-width: 360px;
  margin: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.project-card {
  padding: 18px;
  animation: rise 0.45s ease both;
}

.project-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.project-card-title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--accent-deep);
  letter-spacing: -0.02em;
}

.project-card-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.project-people-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.project-card .role-counts {
  margin-top: 8px;
}

.project-person-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-left: 3px solid var(--role-color, var(--line));
}

.project-person-meta {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 2px;
}

.project-person-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.project-person-name {
  font-weight: 700;
}

.project-involvement {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-deep);
  background: rgba(11, 61, 92, 0.08);
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  white-space: nowrap;
}

.project-person-role {
  color: var(--role-color, var(--muted));
  font-size: 0.84rem;
  font-weight: 600;
}

.project-empty {
  padding: 36px 24px;
  text-align: center;
}

.project-empty h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  color: var(--accent-deep);
}

.project-empty p {
  margin: 0;
  color: var(--muted);
}

.icon-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-height: 280px;
  overflow: auto;
  padding: 4px;
}

.icon-picker-option {
  display: grid;
  justify-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  padding: 0.55rem 0.35rem;
  color: var(--ink-soft);
}

.icon-picker-option small {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: lowercase;
}

.icon-picker-option.active,
.icon-picker-option:hover {
  border-color: color-mix(in srgb, var(--role-color, var(--accent)) 55%, transparent);
  background: color-mix(in srgb, var(--role-color, var(--accent)) 12%, white);
}

.icon-picker-option .role-icon {
  width: 34px;
  height: 34px;
}

.icon-picker-option .role-icon svg {
  width: 16px;
  height: 16px;
}

.role-preview {
  padding-top: 4px;
}

.role-manage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.role-manage-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.role-manage-card .project-card-actions .btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.role-color-swatch {
  margin-top: 14px;
  height: 6px;
  border-radius: 999px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 960px) {
  .project-layout {
    grid-template-columns: 1fr;
  }

  .project-panel-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .app-shell {
    padding: 18px 14px 36px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .top-actions {
    width: 100%;
  }

  .top-actions .btn {
    flex: 1;
    text-align: center;
  }

  .project-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-field {
    max-width: none;
  }

  .board {
    flex-basis: 280px;
    max-height: none;
  }

  .person-card {
    min-height: 148px;
    padding: 16px;
  }

  .people-list {
    gap: 12px;
  }
}
