:root {
      --bg: #f0f4f8;
      --panel: #ffffff;
      --ink: #1f2329;
      --muted: #8a93a2;
      --line: #e6ebf2;
      --line-strong: #d5dde8;
      --doing: #faad14;
      --done: #52c41a;
      --todo: #ff4d4f;
      --planned: #722ed1;
      --info: #1890ff;
      --accent: #2f6bff;
      --danger: #ff4d4f;
      --shadow: 0 8px 20px rgba(31, 45, 61, 0.06);
      --month-w: 220px;
      --week-w: 64px;
      --year-h: 48px;
      --month-h: 98px;
      --stage-h: 32px;
      --week-goal-h: 38px;
      --week-min: 200px;
      --card-h: 128px;
      --week-stack: calc(var(--card-h) * 3 + 20px);
    }

    * { box-sizing: border-box; }
    html, body { height: 100%; margin: 0; }
    body {
      font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
      color: var(--ink);
      background: var(--bg);
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    button { font-family: inherit; cursor: pointer; }

    .topbar {
      display: flex;
      align-items: stretch;
      justify-content: space-between;
      gap: 16px;
      padding: 14px 20px 10px;
      background: #fff;
      border-bottom: 1px solid var(--line);
      overflow: visible;
      z-index: 20;
    }

    .brand { flex: 0 1 280px; min-width: 180px; }
    .brand h1,
    .milestone-title { margin: 0; font-size: 18px; font-weight: 700; text-align: center; }
    .brand p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }

    .legend {
      display: flex;
      flex-wrap: wrap;
      gap: 10px 14px;
      margin-top: 8px;
    }

    .legend span {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: var(--muted);
      font-size: 12px;
    }

    .dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
    }

    .top-actions { display: flex; gap: 8px; flex-shrink: 0; align-self: center; }

    .milestone-wrap {
      flex: 1;
      min-width: 220px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 8px;
      overflow: visible;
    }

    .milestone-track {
      position: relative;
      flex: 1;
      min-height: 36px;
      display: flex;
      align-items: flex-end;
    }

    .milestone-track::before {
      content: "";
      position: absolute;
      left: 8px;
      right: 36px;
      bottom: 5px;
      height: 2px;
      background: #d8e0ea;
    }

    .milestone-nodes {
      position: relative;
      z-index: 1;
      flex: 1;
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      min-width: 0;
      padding: 0 8px;
      height: 100%;
    }

    .ms-node {
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-end;
      gap: 4px;
      width: 0;
      flex: 1;
      min-width: 0;
      border: 0;
      background: transparent;
      padding: 0;
      color: inherit;
    }

    .ms-dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: #fff;
      border: 2px solid var(--accent);
      box-shadow: 0 0 0 3px #fff;
      flex-shrink: 0;
      margin: 0;
    }

    .ms-node.is-done .ms-dot {
      background: var(--accent);
    }

    .ms-node.is-current .ms-dot {
      background: var(--doing);
      border-color: var(--doing);
    }

    .ms-name {
      max-width: 88px;
      font-size: 11px;
      font-weight: 600;
      line-height: 1.2;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      color: var(--ink);
    }

    .ms-tip {
      position: fixed;
      top: 0;
      left: 0;
      width: max-content;
      max-width: 240px;
      padding: 8px 10px;
      background: #1f2329;
      color: #fff;
      border-radius: 8px;
      font-size: 12px;
      line-height: 1.55;
      text-align: left;
      opacity: 0;
      pointer-events: none;
      z-index: 45;
      box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
    }

    .ms-tip.show { opacity: 1; }
    .ms-tip strong { display: block; margin-bottom: 4px; }
    .ms-tip em {
      display: block;
      font-style: normal;
      color: #c5ccd6;
      font-size: 11px;
      margin-bottom: 4px;
    }

    .ms-node:hover .ms-dot { transform: scale(1.15); }

    .ms-add {
      position: relative;
      z-index: 1;
      width: 22px;
      height: 22px;
      margin: 0 0 -5px 6px;
      border: 1px dashed #b7c2d0;
      border-radius: 50%;
      background: #fff;
      color: #8a93a2;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      flex-shrink: 0;
    }

    .ms-add svg { width: 12px; height: 12px; }
    .ms-add:hover { color: var(--accent); border-color: var(--accent); }

    .ms-empty {
      width: 100%;
      color: var(--muted);
      font-size: 12px;
      text-align: center;
    }

    .btn {
      border: 1px solid var(--line-strong);
      background: #fff;
      color: var(--ink);
      border-radius: 10px;
      padding: 8px 12px;
      font-size: 13px;
      transition: background .15s ease, box-shadow .15s ease;
    }

    .btn:hover { background: #f7f9fc; }
    .btn-accent {
      background: var(--accent);
      border-color: var(--accent);
      color: #fff;
    }
    .btn-accent:hover { background: #1f58e6; }
    .btn-ghost { background: transparent; }
    .btn-danger {
      color: var(--danger);
      border-color: #ffd0d0;
      background: #fff5f5;
    }

    .board-wrap {
      flex: 1;
      overflow: auto;
      cursor: grab;
    }

    .board-wrap .card { cursor: grab; }
    .board-wrap button,
    .board-wrap input,
    .board-wrap label,
    .board-wrap select,
    .board-wrap a { cursor: pointer; }

    .board-wrap input { cursor: text; }

    .board-wrap.is-panning,
    .board-wrap.is-panning * {
      cursor: grabbing !important;
      user-select: none !important;
    }
    .board {
      display: grid;
      min-width: max-content;
      min-height: 100%;
      background: var(--bg);
    }

    .corner,
    .year-head,
    .month-head,
    .stage-head,
    .week-goal-bar,
    .week-label,
    .add-year,
    .cell {
      border-right: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }

    .corner {
      position: sticky;
      left: 0;
      top: 0;
      z-index: 12;
      grid-column: 1;
      grid-row: 1 / 4;
      background: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      color: var(--muted);
    }

    .year-head {
      position: sticky;
      top: 0;
      z-index: 8;
      height: var(--year-h);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      font-weight: 700;
      background: #fff;
      letter-spacing: 0.08em;
    }

    .year-head.is-current { color: var(--accent); }

    .month-head {
      position: sticky;
      top: var(--year-h);
      z-index: 7;
      height: var(--month-h);
      padding: 8px 12px 7px;
      background: #fff;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 6px;
    }

    .month-head.is-current { box-shadow: inset 0 3px 0 var(--accent); }

    .month-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }

    .month-title { font-weight: 700; font-size: 15px; }
    .month-stats { color: var(--muted); font-size: 12px; white-space: nowrap; }

    .progress {
      display: flex;
      height: 4px;
      border-radius: 99px;
      overflow: hidden;
      background: #eef2f6;
    }

    .progress i { display: block; height: 100%; }
    .progress .s-done { background: var(--done); }
    .progress .s-doing { background: var(--doing); }
    .progress .s-todo { background: var(--todo); }

    .stage-head {
      position: sticky;
      top: calc(var(--year-h) + var(--month-h));
      z-index: 6;
      height: var(--stage-h);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      font-weight: 700;
      background: #fff;
    }

    .stage-head.todo { color: #cf1322; background: #fff5f5; }
    .stage-head.doing { color: #d48806; background: #fffbe6; }
    .stage-head.done { color: #389e0d; background: #f6ffed; }

    .week-goal-bar {
      display: flex;
      align-items: center;
      padding: 4px 8px;
      background: #fff;
      min-height: var(--week-goal-h);
    }

    .week-goal-bar .week-goal {
      width: 100%;
    }

    .month-goal,
    .week-goal {
      display: flex;
      align-items: center;
      gap: 6px;
      min-width: 0;
    }

    .month-goal {
      padding-bottom: 5px;
      border-bottom: 1px solid var(--line);
    }

    .week-goal {
      flex-shrink: 0;
      padding: 6px 8px;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 8px;
    }

    .month-goal label,
    .week-goal label {
      flex-shrink: 0;
      font-size: 11px;
      color: var(--muted);
    }

    .month-goal input,
    .week-goal input {
      flex: 1;
      min-width: 0;
      border: 0;
      background: transparent;
      font: inherit;
      font-size: 12px;
      color: var(--ink);
      padding: 0;
      outline: none;
      text-overflow: ellipsis;
    }

    .month-goal input::placeholder,
    .week-goal input::placeholder { color: #b0b8c4; }
    .month-goal input:focus,
    .week-goal input:focus { color: var(--accent); }

    .icon-btn {
      width: 26px;
      height: 26px;
      border: 1px solid var(--line);
      background: #fff;
      border-radius: 8px;
      color: var(--muted);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0;
    }

    .icon-btn:hover { color: var(--accent); border-color: #cdd8ff; background: #f4f7ff; }

    .week-label {
      position: sticky;
      left: 0;
      z-index: 6;
      background: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 13px;
      color: #5b6472;
    }

    .week-label.is-current { color: var(--accent); background: #f5f8ff; }

    .cell {
      min-height: var(--week-min);
      padding: 10px;
      display: flex;
      flex-direction: column;
      gap: 8px;
      background: #f5f8fb;
      overflow: hidden;
    }

    .cell-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
      min-height: 0;
      flex: 1 1 auto;
    }

    .cell.is-clamped .cell-list {
      max-height: var(--week-stack);
      overflow-x: hidden;
      overflow-y: auto;
    }

    .cell-expand {
      flex: 0 0 auto;
      width: 100%;
      border: 1px dashed #d5dde8;
      background: #fff;
      color: var(--accent);
      border-radius: 8px;
      padding: 6px 8px;
      font-size: 12px;
      font-weight: 600;
    }

    .cell-expand:hover { background: #f4f7ff; border-color: #cdd8ff; }

    .cell.stage-todo { background: #fff8f8; }
    .cell.stage-doing { background: #fffdf6; }
    .cell.stage-done { background: #f6fff6; }
    .cell.is-current { box-shadow: inset 0 0 0 1px rgba(47, 107, 255, 0.25); }
    .cell.drag-over {
      background: #e8f1ff;
      box-shadow: inset 0 0 0 2px var(--accent);
    }

    .cell-add {
      margin-top: auto;
      flex: 0 0 auto;
      width: 100%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      border: 0;
      background: transparent;
      color: #8a93a2;
      border-radius: 8px;
      padding: 4px 6px;
      font-size: 12px;
      line-height: 1;
    }

    .cell-add svg {
      width: 14px;
      height: 14px;
      flex-shrink: 0;
    }

    .cell-add:hover {
      color: var(--accent);
      background: #eef3fb;
    }

    .year-split { border-right: 2px solid #cfd8e3; }

    .add-year {
      position: sticky;
      right: 0;
      z-index: 5;
      background: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      writing-mode: vertical-rl;
      letter-spacing: 0.18em;
      font-weight: 700;
      color: var(--accent);
      cursor: pointer;
      border: 0;
      border-left: 1px solid var(--line);
    }

    .add-year:hover { background: #f4f7ff; }

    .card {
      position: relative;
      flex: 0 0 auto;
      min-height: fit-content;
      background: #fff;
      border: 0;
      border-radius: 12px;
      padding: 12px 12px 10px 14px;
      box-shadow: var(--shadow);
      cursor: grab;
      user-select: none;
      overflow: hidden;
    }

    .card::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 4px;
      background: var(--stripe, var(--doing));
    }

    .card.status-doing { --stripe: var(--doing); }
    .card.status-done { --stripe: var(--done); }
    .card.status-todo { --stripe: var(--todo); }
    .card.status-planned { --stripe: var(--planned); }

    .card:hover { box-shadow: 0 10px 24px rgba(31, 45, 61, 0.1); }
    .card.dragging { opacity: 0.4; cursor: grabbing; }
    .card.drop-before { box-shadow: 0 -3px 0 var(--accent), var(--shadow); }
    .card.drop-after { box-shadow: 0 3px 0 var(--accent), var(--shadow); }

    .card-title {
      margin: 0 28px 8px 0;
      font-size: 14px;
      font-weight: 700;
      line-height: 1.4;
    }

    .status-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 12px;
      font-weight: 600;
      margin-bottom: 8px;
    }

    .status-badge svg { width: 14px; height: 14px; }
    .status-doing { color: #d48806; }
    .status-done { color: #389e0d; }
    .status-todo { color: #cf1322; }
    .status-planned { color: #531dab; }

    .pills {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-bottom: 10px;
    }

    .pill {
      display: inline-flex;
      align-items: center;
      border-radius: 6px;
      padding: 3px 7px;
      font-size: 11px;
      line-height: 1.3;
      background: #eef6ff;
      color: #3d6ea8;
    }

    .pill.due {
      background: #fff1f0;
      color: #cf1322;
    }

    .pill.due-done,
    .pill.due-empty {
      background: #f3f5f8;
      color: var(--muted);
    }

    .card-foot {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }

    .doc-btn {
      width: 22px;
      height: 22px;
      border: 0;
      border-radius: 6px;
      background: #f3e8ff;
      color: var(--planned);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      position: relative;
    }

    .doc-btn svg { width: 13px; height: 13px; }
    .doc-btn .count {
      position: absolute;
      top: -5px;
      right: -6px;
      min-width: 14px;
      height: 14px;
      border-radius: 99px;
      background: var(--planned);
      color: #fff;
      font-size: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0 3px;
    }

    .avatar {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      color: #fff;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: 700;
    }

    .card-actions {
      position: absolute;
      top: 8px;
      right: 8px;
      display: none;
      gap: 2px;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 2px;
      box-shadow: var(--shadow);
    }

    .card:hover .card-actions { display: flex; }

    .card-actions button {
      border: 0;
      background: transparent;
      color: #667085;
      font-size: 12px;
      padding: 2px 6px;
      border-radius: 6px;
    }

    .card-actions button:hover { background: #f4f7fb; color: var(--ink); }
    .card-actions .act-del:hover { background: #fff1f0; color: var(--danger); }

    .overlay {
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.32);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 24px;
      z-index: 40;
    }

    .overlay.show { display: flex; }
    .overlay-top { z-index: 46; }

    .modal {
      width: min(560px, 100%);
      max-height: calc(100vh - 48px);
      overflow: auto;
      background: #fff;
      border-radius: 16px;
      box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
      padding: 22px 22px 18px;
    }

    .modal h2 { margin: 0 0 16px; font-size: 18px; }

    .field { margin-bottom: 12px; }
    .field label {
      display: block;
      font-size: 12px;
      color: var(--muted);
      margin-bottom: 6px;
    }

    .field input,
    .field textarea,
    .field select {
      width: 100%;
      border: 1px solid var(--line-strong);
      border-radius: 10px;
      padding: 9px 10px;
      font: inherit;
      font-size: 14px;
      background: #fff;
      color: var(--ink);
    }

    .field input:focus,
    .field textarea:focus,
    .field select:focus {
      outline: 2px solid rgba(47, 107, 255, 0.18);
      border-color: var(--accent);
    }

    .field textarea { min-height: 100px; resize: vertical; }
    .place-row,
    .meta-row {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 8px;
    }

    .field-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 6px;
    }

    .field-head label { margin-bottom: 0; }

    .subtask-editor { display: flex; flex-direction: column; gap: 6px; }

    .sub-line {
      display: grid;
      grid-template-columns: 16px minmax(0, auto) minmax(0, 1fr) 28px;
      gap: 8px;
      align-items: center;
      min-height: 32px;
      padding: 4px 6px;
      border-radius: 8px;
      background: #f8fafc;
    }

    .sub-line input {
      margin: 0;
      accent-color: var(--done);
    }

    .sub-line .sub-title,
    .sub-line .sub-desc {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 13px;
      line-height: 1.3;
    }

    .sub-line .sub-title { font-weight: 600; }
    .sub-line .sub-desc { color: var(--muted); }
    .sub-line.is-done .sub-title,
    .sub-line.is-done .sub-desc { text-decoration: line-through; }

    .icon-del {
      width: 28px;
      height: 28px;
      border: 0;
      background: transparent;
      color: #98a2b3;
      border-radius: 8px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0;
    }

    .icon-del svg { width: 15px; height: 15px; }
    .icon-del:hover { color: var(--danger); background: #fff1f0; }

    .subtask-list {
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin: 0 0 10px;
    }

    .subtask-item {
      display: grid;
      grid-template-columns: 16px 1fr;
      gap: 6px 8px;
      align-items: start;
      padding: 4px 0;
    }

    .subtask-item input {
      margin-top: 2px;
      accent-color: var(--done);
    }

    .subtask-item .sub-title {
      font-size: 12px;
      font-weight: 600;
      line-height: 1.4;
    }

    .subtask-item .sub-desc {
      grid-column: 2;
      color: var(--muted);
      font-size: 11px;
      line-height: 1.4;
    }

    .subtask-item.is-done .sub-title {
      color: var(--muted);
      text-decoration: line-through;
    }

    .preview-subs { display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; }
    .preview-subs .subtask-item { padding: 6px 8px; border-radius: 8px; background: #f6f8fb; }

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

    .doc-row input {
      width: 100%;
      border: 1px solid var(--line-strong);
      border-radius: 10px;
      padding: 8px 9px;
      font: inherit;
      font-size: 13px;
    }

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

    .confirm-text { margin: 0 0 16px; color: #667085; line-height: 1.6; }

    .people-modal { width: min(640px, 100%); }

    .people-toolbar {
      display: flex;
      gap: 8px;
      margin-bottom: 12px;
    }

    .people-toolbar input { flex: 1; }

    .people-form {
      display: grid;
      grid-template-columns: 1fr 1fr auto auto;
      gap: 8px;
      margin-bottom: 14px;
    }

    .people-form input {
      border: 1px solid var(--line-strong);
      border-radius: 10px;
      padding: 9px 10px;
      font: inherit;
      font-size: 14px;
    }

    .people-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
      max-height: 420px;
      overflow: auto;
    }

    .person-row {
      display: grid;
      grid-template-columns: 32px 1fr auto auto;
      gap: 10px;
      align-items: center;
      padding: 10px 12px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #f8fafc;
    }

    .person-row .meta { min-width: 0; }
    .person-row .name { font-weight: 700; font-size: 14px; }
    .person-row .sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
    .person-row .count { color: var(--muted); font-size: 12px; white-space: nowrap; }
    .person-row .ops { display: flex; gap: 6px; }

      .people-empty {
      color: var(--muted);
      font-size: 13px;
      text-align: center;
      padding: 24px 8px;
    }

    .card-preview {
      position: fixed;
      top: 0;
      left: 0;
      width: 340px;
      max-width: calc(100vw - 24px);
      max-height: calc(100vh - 24px);
      overflow: auto;
      background: #fff;
      border-radius: 16px;
      box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
      border: 1px solid var(--line);
      padding: 0 0 14px;
      z-index: 28;
      opacity: 0;
      pointer-events: none;
      transform: translateX(8px);
      transition: opacity .16s ease, transform .16s ease;
    }

    .card-preview.show {
      opacity: 1;
      pointer-events: auto;
      transform: translateX(0);
    }

    .card-preview::before {
      content: "";
      display: block;
      height: 4px;
      background: var(--stripe, var(--doing));
    }

    .card-preview.status-doing { --stripe: var(--doing); }
    .card-preview.status-done { --stripe: var(--done); }
    .card-preview.status-todo { --stripe: var(--todo); }
    .card-preview.status-planned { --stripe: var(--planned); }

    .preview-body { padding: 16px 18px 0; }
    .preview-kicker {
      margin: 0 0 6px;
      color: var(--muted);
      font-size: 12px;
    }
    .preview-title {
      margin: 0 0 10px;
      font-size: 18px;
      font-weight: 700;
      line-height: 1.4;
    }
    .preview-owner {
      display: flex;
      align-items: center;
      gap: 8px;
      margin: 10px 0 12px;
    }
    .preview-owner .avatar { width: 28px; height: 28px; font-size: 12px; }
    .preview-owner .name { font-weight: 700; font-size: 13px; }
    .preview-owner .sub { color: var(--muted); font-size: 12px; }
    .preview-grid {
      display: grid;
      grid-template-columns: 72px 1fr;
      gap: 8px 10px;
      margin-bottom: 14px;
      font-size: 13px;
    }
    .preview-grid dt { color: var(--muted); }
    .preview-grid dd { margin: 0; word-break: break-all; }
    .preview-content {
      margin: 0 0 14px;
      color: #3d4654;
      font-size: 13px;
      line-height: 1.7;
      white-space: pre-wrap;
    }
    .preview-docs { display: flex; flex-direction: column; gap: 6px; }
    .preview-docs a,
    .preview-docs span {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 7px 10px;
      border-radius: 8px;
      background: #f6f8fb;
      color: #3d4654;
      text-decoration: none;
      font-size: 12px;
    }
    .preview-docs a:hover { background: #eef3ff; color: var(--accent); }
    .preview-hint {
      margin: 14px 18px 0;
      color: var(--muted);
      font-size: 12px;
    }

    .toast {
      position: fixed;
      left: 50%;
      bottom: 24px;
      transform: translateX(-50%) translateY(12px);
      background: #1f2329;
      color: #fff;
      padding: 8px 14px;
      border-radius: 999px;
      font-size: 13px;
      opacity: 0;
      pointer-events: none;
      transition: .2s ease;
      z-index: 50;
    }

    .toast.show {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    @media (max-width: 720px) {
      .brand p, .legend, .milestone-wrap { display: none; }
      .place-row, .meta-row, .doc-row, .people-form, .person-row { grid-template-columns: 1fr; }
      .sub-line { grid-template-columns: 16px 1fr 28px; }
      .sub-line .sub-desc { display: none; }
    }
