.plan-board-page {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.plan-board-page__overview,
.plan-board-page__list-card,
.plan-board-page__chart-card,
.plan-board-page__editor-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 0;
  border-radius: 20px;
  box-shadow: none;
}

.plan-board-page__split {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
  min-height: 0;
  align-items: stretch;
}

.plan-board-page__split--stacked {
  grid-template-columns: minmax(0, 1fr);
}

.plan-board-page__list-card .ant-card-body,
.plan-board-page__editor-card .ant-card-body,
.plan-board-page__detail-card .ant-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.plan-board-page__detail-actions.ant-space {
  align-items: center;
}

.plan-board-page__detail-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  padding: 24px;
  border-radius: 18px;
  border: 1px dashed rgba(22, 93, 255, 0.18);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96) 0%, rgba(238, 244, 255, 0.96) 100%);
}

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

.plan-board-page__chart-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(22, 93, 255, 0.05) 0%, rgba(22, 93, 255, 0.015) 100%),
    #ffffff;
  border: 1px solid rgba(22, 93, 255, 0.08);
}

.plan-board-page__chart-title.ant-typography,
.plan-board-page__chart-description.ant-typography {
  margin-bottom: 0;
}

.plan-board-page__chart-description.ant-typography {
  margin-top: 4px;
  color: rgba(24, 34, 48, 0.62);
}

.plan-board-page__chart-shell {
  width: 100%;
  padding: 12px 12px 6px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.plan-board-page__intro.ant-typography {
  margin: 6px 0 0;
}

.plan-board-page__auto-refresh-control.ant-space {
  align-items: center;
}

.plan-board-page__auto-refresh-button.ant-btn {
  border-radius: 999px;
  border-color: rgba(22, 93, 255, 0.18);
}

.plan-board-page__auto-refresh-button--active.ant-btn {
  border-color: rgba(34, 197, 94, 0.28);
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.96), rgba(239, 246, 255, 0.96));
}

.plan-board-page__auto-refresh-countdown.ant-typography {
  margin: 0;
  min-width: 2.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.plan-board-page__alert {
  border-radius: 18px;
}

.plan-board-page__mobile-overview {
  padding: 16px 18px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(22, 93, 255, 0.06) 0%, rgba(22, 93, 255, 0.02) 100%),
    #ffffff;
  border: 1px solid rgba(22, 93, 255, 0.08);
}

.plan-board-page__mobile-overview-title.ant-typography {
  display: block;
  margin: 0;
  font-size: 16px;
}

.plan-board-page__mobile-overview-description.ant-typography {
  margin: 4px 0 0;
}

.plan-board-page__list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
}

.plan-board-page__list-panel,
.plan-board-page__detail-panel {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

.plan-board-page__list-controls {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding-bottom: 12px;
}

.plan-board-page__list-scroller {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.plan-board-page__detail-panel {
  gap: 14px;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
}

.plan-board-page__list-filter-bar {
  margin: 12px 0 16px;
}

.plan-board-page__list-filter-bar .ant-select {
  min-width: 150px;
}

.plan-board-page__list-item {
  padding: 0;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 16px;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.plan-board-page__list-item:hover {
  background: #f8fbff;
  border-color: rgba(22, 93, 255, 0.12);
}

.plan-board-page__list-item--active {
  background: #f5f9ff;
  border-color: rgba(22, 93, 255, 0.22);
}

.plan-board-page__list-body {
  width: 100%;
  padding: 14px 16px;
}

.plan-board-page__list-note.ant-typography {
  margin: 8px 0 10px;
}

.plan-board-page__list-tags.ant-space {
  justify-content: flex-end;
}

.plan-board-page__priority-button.ant-btn {
  min-width: 40px;
  border-radius: 999px;
  font-weight: 600;
}

.plan-board-page__priority-button--active.ant-btn {
  box-shadow: 0 10px 20px rgba(22, 93, 255, 0.18);
}

.plan-board-page__automation-status {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(126, 141, 163, 0.28);
  background: linear-gradient(135deg, rgba(246, 248, 252, 0.96), rgba(238, 242, 247, 0.88));
  min-height: 34px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.plan-board-page__automation-status--compact {
  min-height: 30px;
  border-radius: 14px;
}

.plan-board-page__automation-status-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0.96;
}

.plan-board-page__automation-status--idle .plan-board-page__automation-status-fill {
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.18), rgba(148, 163, 184, 0.3));
}

.plan-board-page__automation-status--active .plan-board-page__automation-status-fill {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.2), rgba(59, 130, 246, 0.42), rgba(34, 197, 94, 0.2));
  background-size: 200% 100%;
  animation: plan-board-status-flow 2.4s linear infinite;
}

.plan-board-page__automation-status--success .plan-board-page__automation-status-fill {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.34));
}

.plan-board-page__automation-status--error .plan-board-page__automation-status-fill {
  background: linear-gradient(90deg, rgba(248, 113, 113, 0.2), rgba(239, 68, 68, 0.36));
}

.plan-board-page__automation-status-text.ant-typography {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  margin: 0;
  color: #10233f;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.plan-board-page__automation-status-copy {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: inherit;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 7px 12px;
}

.plan-board-page__automation-status-description.ant-typography {
  margin: 0;
  color: #10233f;
  font-size: 11px;
  line-height: 1.35;
  white-space: normal;
}

@keyframes plan-board-status-flow {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: 0 0;
  }
}

.plan-board-page__form {
  width: 100%;
  display: grid;
  gap: 14px;
}

.plan-board-page__form > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid rgba(22, 93, 255, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 255, 0.94) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 30px rgba(23, 61, 130, 0.04);
}

.plan-board-page__action-bar {
  margin-top: 4px;
}

.plan-board-page__select {
  width: 100%;
}

.plan-board-page__select.ant-select .ant-select-selector {
  min-height: 42px;
  border-radius: 12px;
  border-color: rgba(22, 93, 255, 0.14);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.plan-board-page__select.ant-select .ant-select-selection-wrap {
  align-items: center;
}

.plan-board-page__select.ant-select.ant-select-focused .ant-select-selector,
.plan-board-page__select.ant-select.ant-select-open .ant-select-selector {
  border-color: #1677ff;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.14);
}

.plan-board-page__select-popup.ant-select-dropdown {
  z-index: 1450;
  padding: 6px;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
}

.plan-board-page__select-popup.ant-select-dropdown .ant-select-item {
  min-height: 38px;
  border-radius: 10px;
}

.plan-board-page__notepad.ant-input {
  padding: 20px 18px;
  line-height: 1.85;
  border-radius: 22px;
  border: 1px solid rgba(22, 93, 255, 0.1);
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.96) 0,
      rgba(255, 255, 255, 0.96) 32px,
      rgba(75, 130, 255, 0.08) 32px,
      rgba(75, 130, 255, 0.08) 33px
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 18px 40px rgba(23, 61, 130, 0.06);
  overflow-y: auto;
  scrollbar-gutter: stable;
  resize: vertical;
}

.plan-board-page__notepad.ant-input:focus,
.plan-board-page__notepad.ant-input-focused {
  border-color: rgba(22, 93, 255, 0.24);
  box-shadow:
    0 0 0 4px rgba(22, 93, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.plan-board-page__notepad-frame {
  width: 100%;
}

.plan-board-page__hidden-file-input {
  display: none;
}

.plan-board-page__note-resources {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.plan-board-page__note-resource-list {
  display: grid;
  gap: 12px;
}

.plan-board-page__note-resource-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(22, 93, 255, 0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.96));
}

.plan-board-page__note-resource-path {
  word-break: break-all;
}

.plan-board-page__note-resource-image,
.plan-board-page__note-resource-frame {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #fff;
}

.plan-board-page__note-resource-image {
  max-height: 320px;
  object-fit: contain;
}

.plan-board-page__note-resource-frame {
  min-height: 320px;
}

.plan-board-page__notepad-expand-button.ant-btn {
  color: rgba(71, 98, 130, 0.92);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.plan-board-page__notepad-expand-button.ant-btn:hover {
  color: #1d4ed8;
  background: #ffffff;
}

.plan-board-page__notepad-frame .ant-input-textarea,
.plan-board-page__notepad-frame .plan-board-page__notepad.ant-input {
  width: 100%;
}

.plan-board-page__readonly-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  margin-top: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(22, 93, 255, 0.14);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.plan-board-page__notepad--readonly.ant-input {
  overflow-y: auto;
}

.plan-board-page__notepad-toolbar {
  flex: 0 0 auto;
}

.plan-board-page__note-modal .ant-modal {
  max-width: 100vw;
  margin: 0;
  padding: 0;
  top: 0;
}

.plan-board-page__note-modal .ant-modal-content {
  min-height: 100dvh;
  border-radius: 0;
  overflow: hidden;
}

.plan-board-page__note-modal .ant-modal-header {
  padding: 20px 24px 12px;
}

.plan-board-page__note-modal .ant-modal-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding-inline: 24px;
}

.plan-board-page__notepad-modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1 1 auto;
  height: calc(100dvh - 88px);
  min-height: 0;
  padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
  overflow: hidden;
}

.plan-board-page__notepad-modal-body .ant-input-textarea {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}

.plan-board-page__notepad-modal-body .ant-input-textarea textarea {
  flex: 1 1 auto;
  min-height: 0;
}

.plan-board-page__notepad--expanded.ant-input {
  flex: 1 1 auto;
  min-height: calc(100dvh - 180px);
  height: calc(100dvh - 180px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  resize: none;
}

.plan-board-page__notepad-modal-body .plan-board-page__notepad--expanded.ant-input {
  min-height: 100%;
  height: 100%;
}

.plan-board-page__overlay {
  position: fixed;
  inset: 0;
  z-index: 1700;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: rgba(11, 23, 57, 0.24);
  backdrop-filter: blur(10px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.plan-board-page__overlay--detail-only {
  background: #f5f7fb;
  backdrop-filter: none;
}

.plan-board-page__overlay-card.ant-card {
  width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  border: none;
  border-radius: 0;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.plan-board-page__overlay--detail-only .plan-board-page__overlay-card.ant-card {
  background: #f5f7fb;
}

.plan-board-page__overlay-card .ant-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 14px 0 0;
  overflow: hidden;
}

.plan-board-page__overlay-header {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  padding-top: max(14px, env(safe-area-inset-top, 0px));
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(22, 93, 255, 0.08);
  background: inherit;
}

.plan-board-page__overlay-title.ant-typography,
.plan-board-page__viewer-heading.ant-typography {
  margin: 0;
}

.plan-board-page__overlay-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 18px calc(env(safe-area-inset-bottom, 0px) + 24px);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 960px) {
  .plan-board-page {
    overflow: auto;
    overscroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
  }

  .plan-board-page__split--mobile-detail-only {
    gap: 0;
  }

  .plan-board-page__split {
    grid-template-columns: minmax(0, 1fr);
  }

  .plan-board-page__list-card.ant-card {
    min-height: auto;
  }

  .plan-board-page__list-card .ant-card-body,
  .plan-board-page__editor-card .ant-card-body,
  .plan-board-page__detail-card .ant-card-body {
    padding-top: 14px;
    padding-bottom: max(14px, env(safe-area-inset-bottom, 0px));
    overflow: visible;
  }

  .plan-board-page__list-controls {
    position: static;
    background: transparent;
  }

  .plan-board-page__mobile-overview {
    padding: 14px 16px;
  }

  .plan-board-page__mobile-overview .ant-space {
    width: 100%;
  }

  .plan-board-page__mobile-overview .ant-space-item {
    max-width: 100%;
  }

  .plan-board-page__list-filter-bar {
    margin: 0;
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 0;
  }

  .plan-board-page__list-filter-bar .ant-select {
    min-width: 136px;
    flex: 1 1 136px;
  }

  .plan-board-page__list,
  .plan-board-page__list-scroller {
    min-height: auto;
    overflow: visible;
    padding-right: 0;
  }

  .plan-board-page__list-scroller {
    display: block;
    flex: 0 0 auto;
  }

  .plan-board-page__detail-panel {
    gap: 12px;
    padding-right: 0;
    overflow: visible;
  }

  .plan-board-page__list-card--mobile-hidden,
  .plan-board-page__detail-card--mobile-hidden {
    display: none;
  }

  .plan-board-page__detail-card--mobile-only.ant-card {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    width: 100vw;
    min-height: 100dvh;
    border-radius: 0;
    background: #f5f7fb;
    overflow: hidden;
  }

  .plan-board-page__detail-card--mobile-only.ant-card .ant-card-head {
    position: sticky;
    top: 0;
    z-index: 1;
    padding-top: max(0px, env(safe-area-inset-top, 0px));
    background: inherit;
  }

  .plan-board-page__detail-card--mobile-only.ant-card .ant-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .plan-board-page__overlay-card.ant-card {
    width: 100%;
    max-width: 100%;
  }

  .plan-board-page__overlay-card .ant-card-body {
    padding-top: 0;
  }

  .plan-board-page__overlay-header {
    padding-inline: 18px;
  }
}

.plan-board-page__viewer-pre {
  margin: 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 13px;
  line-height: 1.65;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.plan-board-page__detail-text {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.plan-board-page__detail-text-body.ant-typography {
  flex: 1;
  min-width: 0;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.plan-board-page__detail-text-body--collapsed.ant-typography {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.plan-board-page__detail-text-toggle.ant-btn {
  flex: none;
  margin-top: -2px;
  color: #476282;
}

.plan-board-page__detail-section {
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.plan-board-page__detail-section-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.plan-board-page__detail-section-summary::-webkit-details-marker {
  display: none;
}

.plan-board-page__detail-section-body {
  margin-top: 12px;
  min-width: 0;
}

.plan-board-page__checklist.ant-space,
.plan-board-page__release-summary.ant-space {
  width: 100%;
}

.plan-board-page__memo-pre {
  max-height: min(60vh, 520px);
}

.plan-board-page__file-tags {
  margin-top: 8px;
}

.plan-board-page__viewer-tabs .ant-tabs-content-holder {
  min-height: 0;
}

.plan-board-page__viewer-tabs,
.plan-board-page__viewer-tabs .ant-tabs-content,
.plan-board-page__viewer-tabs .ant-tabs-tabpane {
  min-height: 0;
}

.plan-board-page__viewer-tabs .ant-tabs-tabpane {
  padding-inline: 0;
}

.plan-board-page__viewer-tabs .previewer-ui {
  height: auto;
}

.plan-board-page__viewer-tabs .previewer-ui__body.previewer-ui__scroll {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.plan-board-page__viewer-tabs .previewer-ui__editor-body {
  overflow: visible;
}

.plan-board-page__viewer-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plan-board-page__summary-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.8;
}

.plan-board-page__evidence-modal .ant-modal {
  top: 40px;
  padding-bottom: 24px;
}

.plan-board-page__evidence-modal .ant-modal-content {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 80px);
  border-radius: 24px;
}

.plan-board-page__evidence-modal .ant-modal-body {
  display: flex;
  flex: 1 1 auto;
  min-height: calc(100vh - 220px);
  overflow: hidden;
}

.plan-board-page__evidence-modal-body {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.plan-board-page__evidence-modal-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 0;
}

.plan-board-page__evidence-modal-toolbar {
  flex: 0 0 auto;
}

.plan-board-page__evidence-modal-body--expanded {
  width: 100%;
}

.plan-board-page__evidence-modal-body .previewer-ui,
.plan-board-page__evidence-modal-body .codex-diff-previewer,
.plan-board-page__evidence-modal-body .evidence-attachment-preview-body__previewer,
.plan-board-page__evidence-modal-body .evidence-attachment-preview-body__frame-wrap,
.plan-board-page__evidence-modal-body .evidence-attachment-preview-body__media-wrap,
.plan-board-page__evidence-modal-body .evidence-attachment-preview-body__audio-wrap {
  flex: 1 1 auto;
  min-height: 0;
}

.plan-board-page__evidence-modal-body .previewer-ui__body.previewer-ui__scroll,
.plan-board-page__evidence-modal-body .previewer-ui__pre,
.plan-board-page__evidence-modal-body .previewer-ui__markdown pre,
.plan-board-page__evidence-modal-body .codex-diff-previewer__diff-body,
.plan-board-page__evidence-modal-body .codex-diff-previewer__diff-section--expanded .codex-diff-previewer__diff-body {
  min-height: 0;
  max-height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
}

.plan-board-page__evidence-modal--expanded .ant-modal {
  max-width: 100vw;
  top: 0;
  padding-bottom: 0;
}

.plan-board-page__evidence-modal--expanded .ant-modal-content {
  min-height: 100vh;
  border-radius: 0;
}

.plan-board-page__evidence-modal--expanded .ant-modal-body {
  display: flex;
  flex-direction: column;
  padding-inline: 0;
  padding-bottom: 0;
  min-height: calc(100vh - 120px);
  overflow: hidden;
}

.plan-board-page__evidence-modal--expanded .plan-board-page__evidence-modal-shell {
  flex: 1 1 auto;
  min-height: 0;
}

.plan-board-page__evidence-modal--expanded .plan-board-page__evidence-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.plan-board-page__evidence-modal--expanded .evidence-attachment-preview-body__frame-wrap {
  height: calc(100vh - 140px);
  min-height: calc(100vh - 140px);
  border-radius: 0;
  border-inline: 0;
}

.plan-board-page__evidence-modal--expanded .evidence-attachment-preview-body__image {
  max-height: calc(100vh - 140px);
  border-radius: 0;
  border-inline: 0;
}

.plan-board-page__overlay .ant-input,
.plan-board-page__overlay .ant-input-affix-wrapper,
.plan-board-page__overlay .ant-input-textarea textarea {
  font-size: 16px;
}

@media (max-width: 768px) {
  .plan-board-page__chart-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .plan-board-page__chart-panel {
    padding: 14px;
    border-radius: 16px;
  }

  .plan-board-page__overlay-card.ant-card {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
  }

  .plan-board-page__detail-card--mobile-only.ant-card {
    min-height: 100dvh;
  }

  .plan-board-page__form {
    gap: 12px;
  }

  .plan-board-page__list-card .ant-card-head {
    padding-inline: 14px;
  }

  .plan-board-page__form > div {
    padding: 14px;
    border-radius: 16px;
  }

  .plan-board-page__note-modal .ant-modal-header {
    padding: 16px 18px 10px;
  }

  .plan-board-page__note-modal .ant-modal-body {
    padding-inline: 18px;
  }

  .plan-board-page__notepad-modal-body {
    min-height: calc(100dvh - 76px);
    padding-bottom: max(18px, env(safe-area-inset-bottom, 0px));
  }

  .plan-board-page__overlay-card .ant-card-body {
    padding: 14px 14px 18px;
  }

  .plan-board-page__detail-card--mobile-only.ant-card .ant-card-head {
    padding-inline: 14px;
  }

  .plan-board-page__detail-card--mobile-only.ant-card .ant-card-body {
    padding: 14px 14px max(18px, env(safe-area-inset-bottom, 0px));
  }

  .plan-board-page__list-filter-bar .ant-select {
    min-width: 128px;
  }

  .plan-board-page__readonly-field {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 960px) {
  .plan-board-page__split {
    grid-template-columns: 1fr;
  }

  .plan-board-page__list-card--mobile-hidden {
    display: none;
  }

  .plan-board-page__detail-card.plan-board-page__detail-card--mobile-hidden {
    display: none;
  }
}
