body[data-role="member"] [data-new] {
  display: none;
}
.app-version {
  margin: 7px 0 0 46px;
  font:
    600 9px "Plus Jakarta Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
  color: #8a948f;
  letter-spacing: 0.04em;
}
.form-error {
  color: var(--red);
  font-size: 11px;
}
.team-card .manage-team {
  margin-top: 16px;
  width: 100%;
}
.team-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.team-line:last-child {
  border-bottom: 0;
}
.team-line strong {
  font-size: 13px;
}
.team-line p {
  font-size: 11px;
  color: var(--muted);
  margin: 3px 0;
}
.task-schedule {
  margin: -5px 12px 12px 43px;
  padding-bottom: 8px;
}
.member-stack {
  max-height: 300px;
  overflow: auto;
  margin: 15px 0;
}
.check-label {
  display: flex !important;
  align-items: center;
}
.check-label input {
  width: auto !important;
}
.form select[multiple] {
  min-height: 100px;
  padding: 8px;
}
.form small {
  font-weight: 400;
}
.choice-field {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.choice-field legend {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 7px;
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.choice-card {
  display: grid !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px;
  background: white;
  cursor: pointer;
  font-weight: 400 !important;
}
.choice-card:hover {
  border-color: #d0d0d0;
  background: #f6f5f4;
}
.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice-check {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  color: transparent;
  background: white;
  font-size: 12px;
}
.choice-card:has(input:checked) {
  border-color: var(--green);
  background: #edf5fd;
}
.choice-card input:checked + .choice-check {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.choice-card strong,
.choice-card small {
  display: block;
}
.choice-card strong {
  font-size: 11px;
}
.choice-card small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 2px;
}
.team-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 16px;
}
.team-card .team-actions .btn {
  margin: 0;
  width: 100%;
  padding-inline: 7px;
}
.team-card h3 a {
  color: inherit;
  text-decoration: none;
}
.team-card h3 a:hover {
  color: var(--green);
  text-decoration: underline;
}
.team-page-head {
  margin-top: 18px;
}
.team-member-list {
  max-height: 620px;
  overflow: auto;
}
.team-stats {
  margin: 18px 0;
  grid-template-columns: repeat(4, 1fr);
}
.team-stats .stat {
  padding: 12px;
}
.team-stats .stat strong {
  font-size: 21px;
}
.team-stats .stat i {
  display: none;
}
.overview-members {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}
.overview-members .person {
  padding: 10px;
}
.overview-tasks {
  display: grid;
  gap: 7px;
}
.overview-task {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: white;
  border-radius: 9px;
  padding: 10px;
  color: inherit;
}
.overview-task:hover {
  background: #f7f9f6;
}
.overview-task span:first-child {
  display: grid;
  gap: 3px;
}
.overview-task strong {
  font-size: 12px;
}
.overview-task small {
  font-size: 9px;
  color: var(--muted);
}
.overview-activity {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.overview-activity > span:first-child {
  display: grid;
  gap: 3px;
}
.overview-activity strong {
  font-size: 12px;
}
.overview-activity small {
  font-size: 9px;
  color: var(--muted);
}
.overview-activity .progress {
  grid-column: 1/-1;
  margin: 0;
}
.task-evidence {
  margin: -5px 8px 12px 42px;
  border-left: 2px solid #e2e7e2;
  padding: 5px 0 5px 13px;
}
.evidence-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.evidence-head > span {
  display: grid;
  gap: 2px;
  font-size: 11px;
}
.evidence-head small {
  color: var(--muted);
}
.evidence-list {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}
.evidence-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: center;
  padding: 7px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  background: #f7f8f5;
}
.evidence-item:hover {
  background: #edf2ee;
}
.evidence-item > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.evidence-item strong {
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.evidence-item small {
  font-size: 9px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.file-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: white;
  color: var(--green);
  font-weight: 700;
}
.evidence-empty {
  font-size: 10px;
  margin: 7px 0 0;
}
.quota {
  height: 7px;
  background: #e8ebe6;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 18px;
}
.quota span {
  height: 100%;
  display: block;
  background: var(--green-2);
}
.quota-label {
  font-size: 10px;
  color: var(--muted);
  text-align: right;
  margin: 5px 0 18px;
}
.or {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.or:before,
.or:after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
.upload-zone {
  border: 1px dashed #bdc9c1;
  border-radius: 11px;
  padding: 14px;
  background: #f8faf7;
}
@media (max-width: 760px) {
  .task-evidence {
    margin-left: 30px;
  }
  .evidence-head {
    align-items: flex-start;
  }
}
.task-title-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}
.task-title-link:hover {
  color: var(--green);
  text-decoration-color: currentColor;
}
dialog {
  max-height: calc(100vh - 28px);
  overflow-y: auto;
}
.onboarding-modal {
  width: min(520px, calc(100% - 28px));
}
.onboarding-modal .cohort-card {
  background: var(--cream);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 16px 0;
}
.onboarding-modal .cohort-card strong,
.onboarding-modal .cohort-card small {
  display: block;
}
.onboarding-modal .cohort-card small {
  color: var(--muted);
  margin-top: 4px;
}
.onboarding-modal a {
  color: var(--green);
  font-weight: 700;
}
.task-detail-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-top: 5px;
}
.task-detail-title h2 {
  margin-bottom: 3px;
}
.task-description {
  font-size: 13px;
  line-height: 1.6;
  color: #4f5b56;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 15px 0;
}
.detail-facts div {
  display: grid;
  gap: 3px;
  padding: 10px;
  background: #f7f8f5;
  border-radius: 9px;
}
.detail-facts small,
.deliverable-box small {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.detail-facts strong,
.deliverable-box strong {
  font-size: 12px;
}
.deliverable-box {
  display: grid;
  gap: 4px;
  border-left: 3px solid var(--green);
  padding: 10px 12px;
  background: #edf2ee;
  border-radius: 0 9px 9px 0;
}
.modal-section {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 20px;
}
.modal-section > h2,
.complete-box h2 {
  font-size: 15px;
  margin-bottom: 10px;
}
.mini-timeline {
  display: grid;
  gap: 8px;
  margin-bottom: 13px;
}
.mini-timeline > div {
  padding: 9px 11px;
  background: #f7f8f5;
  border-radius: 9px;
  font-size: 11px;
}
.mini-timeline strong {
  margin-right: 7px;
}
.mini-timeline p {
  margin: 5px 0;
  line-height: 1.45;
}
.mini-timeline small {
  color: var(--muted);
}
.compact-form textarea {
  min-height: 65px;
}
.compact-form > div {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.compact-form select {
  width: auto;
}
.complete-box {
  margin-top: 22px;
  padding: 17px;
  border: 1px solid #cbdad1;
  background: #f2f7f3;
  border-radius: 12px;
}
.complete-box textarea {
  min-height: 70px;
}
@media (max-width: 520px) {
  .detail-facts,
  .choice-grid,
  .overview-members {
    grid-template-columns: 1fr;
  }
  .team-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .overview-task {
    grid-template-columns: 1fr auto;
  }
  .overview-task .due {
    grid-column: 1/-1;
  }
  .compact-form > div {
    flex-direction: column;
  }
  .compact-form select {
    width: 100%;
  }
}
.sidebar-foot {
  align-items: stretch;
  flex-direction: column;
  gap: 12px;
}
.sidebar-foot > .user-chip {
  width: 100%;
  padding-bottom: 2px;
}
.sidebar-foot > .lang-toggle {
  align-self: flex-start;
}
.logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 1px solid #eadfda;
  background: #fff8f5;
  color: #9b4c35;
  border-radius: 9px;
  padding: 9px 12px;
  font-weight: 700;
  font-size: 11px;
}
.logout-btn:hover {
  background: #f8e9e3;
  border-color: #e1c5b9;
}
.logout-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.logout-btn span {
  white-space: nowrap;
}
.user-chip {
  cursor: pointer;
  border-radius: 10px;
  padding: 4px;
}
.user-chip:hover {
  background: #eef2ed;
}
.activity-card {
  border-top: 4px solid var(--activity-team, var(--line));
}
.activity-card {
  position: relative;
}
.activity-title-link {
  color: inherit;
  text-decoration: none;
}
.activity-title-link:after {
  content: "";
  position: absolute;
  inset: 0;
}
.activity-document-link {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin-top: 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.activity-document-link:hover {
  text-decoration: underline;
}
.hero-document-link {
  display: inline-flex;
  position: relative;
  z-index: 1;
  margin: 2px 0 17px;
  padding: 9px 13px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.hero-document-link:hover {
  background: rgba(255, 255, 255, 0.22);
}
.person-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.btn.danger {
  color: var(--red);
  border-color: #efd4d4;
}
.btn.danger:hover {
  background: #fff4f4;
}
.activity-edit-btn {
  float: right;
  position: relative;
  z-index: 2;
  background: #fff;
  color: var(--green);
  border-color: #fff;
}
.activity-admin-actions {
  float: right;
  position: relative;
  z-index: 2;
  display: flex;
  gap: 8px;
}
.activity-admin-actions .activity-edit-btn {
  float: none;
}
.activity-admin-actions .danger {
  background: #fff;
  color: var(--red);
  border-color: #fff;
}
.sidebar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.notification-trigger {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f1f3ef;
  color: var(--green);
  display: grid;
  place-items: center;
}
.notification-trigger:hover {
  background: #e7ece8;
}
.notification-trigger svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.notification-count {
  position: absolute;
  right: -6px;
  top: -6px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid white;
  border-radius: 11px;
  background: var(--red);
  color: white;
  font:
    800 8px "Plus Jakarta Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
}
.mobile-notification {
  display: none;
}
.notification-panel {
  position: fixed;
  left: 205px;
  bottom: 145px;
  width: min(360px, calc(100vw - 28px));
  max-height: 480px;
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 22px 65px rgba(15, 35, 27, 0.22);
  z-index: 40;
  padding: 10px;
}
.notification-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 8px 8px 12px;
  border-bottom: 1px solid var(--line);
}
.notification-head strong {
  font:
    800 16px "Plus Jakarta Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
}
.notification-head small {
  font-size: 9px;
  color: var(--muted);
}
.notification-item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #eff1ed;
  background: white;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 9px;
  padding: 12px 8px;
  text-align: left;
  color: inherit;
}
.notification-item:hover {
  background: #f6f8f5;
}
.notification-item.unread {
  background: #edf4ef;
}
.notification-item > span:last-child {
  min-width: 0;
}
.notification-item strong {
  font-size: 12px;
}
.notification-item p {
  font-size: 11px;
  line-height: 1.4;
  margin: 3px 0;
  color: #4f5b56;
}
.notification-item small {
  font-size: 9px;
  color: var(--muted);
}
.notification-symbol {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f8e8df;
  color: var(--orange);
  font-weight: 900;
}
.notification-empty {
  padding: 30px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}
.delivery-statuses {
  display: flex;
  gap: 5px;
  margin: 5px 0;
}
.delivery-status {
  border-radius: 10px;
  padding: 2px 6px;
  background: #eef1ef;
  color: var(--muted);
  font:
    700 8px "Plus Jakarta Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
  text-transform: capitalize;
}
.delivery-status.success {
  background: #e1f2e7;
  color: #287044;
}
.delivery-status.failed {
  background: #f9e5e2;
  color: #a23c31;
}
.delivery-status.pending {
  background: #fff1d8;
  color: #8a6418;
}
.notification-popups {
  position: fixed;
  right: 22px;
  top: 78px;
  z-index: 90;
  display: grid;
  gap: 9px;
  width: min(360px, calc(100vw - 28px));
}
.notification-popup {
  border: 1px solid var(--line);
  background: white;
  box-shadow: var(--shadow);
  border-radius: 13px;
  padding: 13px;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  text-align: left;
  color: inherit;
  animation: notification-in 0.2s ease-out;
}
.notification-popup strong {
  font-size: 12px;
}
.notification-popup p {
  font-size: 11px;
  line-height: 1.4;
  margin: 3px 0;
  color: var(--muted);
}
@keyframes notification-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 760px) {
  .desktop-notification {
    display: none;
  }
  .mobile-notification {
    display: grid;
    position: relative;
    width: 34px;
    height: 34px;
    background: transparent;
    border-color: transparent;
  }
  .mobile-notification:hover {
    background: #eef0ec;
  }
  .notification-panel {
    left: auto;
    right: 10px;
    top: 61px;
    bottom: auto;
    max-height: calc(100vh - 75px);
  }
  .notification-popups {
    right: 10px;
    top: 65px;
  }
}
.report-panel {
  max-width: 720px;
}
.report-panel .muted {
  line-height: 1.6;
  margin: 2px 0;
}
.report-panel .btn {
  justify-self: start;
}
.document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.document-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--document-team);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  min-height: 205px;
}
.document-card h2 {
  font:
    700 17px "Plus Jakarta Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
  margin: 14px 0 7px;
}
.document-card > p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  margin: 0 0 18px;
}
.document-meta,
.document-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.document-meta {
  font-size: 10px;
  color: var(--muted);
}
.document-year {
  font-weight: 800;
  color: var(--green);
  background: #edf3ef;
  border-radius: 16px;
  padding: 4px 9px;
}
.document-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.document-foot small {
  color: var(--muted);
  font-size: 9px;
}
.document-foot .btn {
  flex: 0 0 auto;
}
@media (max-width: 760px) {
  .document-grid {
    grid-template-columns: 1fr;
  }
  .document-foot {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Task 12: accounts admin, proposal actions, Kanban board, task drawer additions */
.accounts-table {
  display: grid;
  gap: 8px;
}
.accounts-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.accounts-row h3 {
  margin: 0;
  font-size: 13px;
}
.accounts-row p {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--muted);
}
.auth-badge.sso {
  background: #eaf0f8;
  color: #45668f;
}
.auth-badge.local {
  background: #edf1ee;
  color: var(--green);
}
.auth-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.auth-toggle .btn.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
#account-admin-password-field.hidden {
  display: none;
}
.proposal-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 -6px;
  position: relative;
  z-index: 1;
}
.proposal-timeline {
  display: grid;
  gap: 10px;
}
.proposal-entry {
  padding: 10px 12px;
  background: #f7f8f5;
  border-radius: 9px;
}
.proposal-entry .meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.proposal-entry p {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.5;
}
.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.kanban-column {
  background: #f6f5f4;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
.kanban-column h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 4px 12px;
}
.kanban-column-body {
  display: grid;
  gap: 10px;
}
.kanban-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--card-team, var(--line));
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  display: grid;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.kanban-card:hover {
  box-shadow: var(--shadow);
}
.kanban-card-top {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.kanban-card h4 {
  margin: 0;
  font-size: 13px;
}
.kanban-card .meta {
  font-size: 10px;
}
.kanban-card-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.kanban-card-actions .btn {
  padding: 6px 9px;
  font-size: 10px;
}
@media (max-width: 1050px) {
  .kanban-board {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .kanban-board {
    grid-template-columns: 1fr;
  }
  .accounts-row {
    grid-template-columns: auto 1fr;
    grid-template-areas: "a b" "c c";
  }
}
.checklist-list {
  display: grid;
  gap: 8px;
  margin-bottom: 4px;
}
.checklist-item {
  display: flex !important;
  align-items: center;
  gap: 9px;
  font-weight: 400 !important;
  font-size: 12px;
}
.checklist-item input {
  width: auto !important;
}
.ack-confirmed {
  color: var(--green-2);
  font-weight: 700;
  font-size: 12px;
}
.review-actions {
  display: flex;
  gap: 10px;
}

/* Kanban Drag & Drop */
.kanban-column.drag-over {
  background: #e8effa;
  border: 2px dashed var(--green-2);
}
.kanban-card.dragging {
  opacity: 0.4;
  cursor: grabbing;
}

/* Account Actions & Table Enhancements */
.accounts-row {
  grid-template-columns: auto 1fr auto auto auto !important;
}
.account-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* Calendar Styles */
.calendar-view {
  display: grid;
  gap: 16px;
}
.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}
.calendar-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.calendar-nav h2 {
  margin: 0;
  font-size: 18px;
  min-width: 180px;
  text-align: center;
}
.calendar-view-toggle {
  display: flex;
  gap: 4px;
  background: var(--cream, #f1f5f9);
  padding: 3px;
  border-radius: 8px;
}
.calendar-view-toggle button {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
}
.calendar-view-toggle button.active {
  background: #fff;
  color: var(--green, #1e3a8a);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: var(--line, #e2e8f0);
  gap: 1px;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 12px;
  overflow: hidden;
}
.calendar-day-head {
  background: #f8fafc;
  padding: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted, #64748b);
  text-transform: uppercase;
}
.calendar-cell {
  background: #fff;
  min-height: 105px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background 0.15s;
}
.calendar-cell:hover {
  background: #fcfdfe;
}
.calendar-cell.other-month {
  background: #f8fafc;
  opacity: 0.5;
}
.calendar-cell.today {
  background: #f0f7ff;
}
.calendar-cell.today .calendar-day-number {
  background: var(--green-2, #2563eb);
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.calendar-day-number {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 2px;
  display: inline-block;
  padding: 2px;
}
.calendar-items {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  overflow-y: auto;
  max-height: 110px;
}
.calendar-pill {
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  cursor: pointer;
  border-left: 3px solid transparent;
}
.calendar-pill.activity-pill {
  background: #edf4fc;
  color: #1e3a8a;
  border-left-color: var(--pill-color, var(--green-2));
}
.calendar-pill.task-pill {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
  border-left-color: #e11d48;
}
.calendar-pill.task-pill.done {
  opacity: 0.6;
  text-decoration: line-through;
  border-left-color: #16a34a;
}
.calendar-agenda {
  display: grid;
  gap: 12px;
}
.calendar-agenda-day {
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 10px;
  padding: 12px;
  background: #fff;
}
.calendar-agenda-date {
  font-size: 14px;
  font-weight: 700;
  color: var(--green, #1e3a8a);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.calendar-agenda-list {
  display: grid;
  gap: 6px;
}

/* Today Work Card actions */
.today-task-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  margin-bottom: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.today-task-row:hover {
  border-color: #0075de;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.today-task-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.today-task-main h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.today-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Self-logged Task & Weight Presets */

.preset-table {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.preset-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.preset-points-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  border-radius: 8px;
  background: var(--green, #1e3a8a);
  color: #fff;
  font:
    800 14px "Plus Jakarta Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
}

/* Team Member Management Modal & Team Actions */
.team-member-mgmt-list {
  display: grid;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
  margin: 16px 0;
  padding-right: 4px;
}
.team-member-mgmt-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #f8faf8;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: background 0.15s;
}
.team-member-mgmt-row:hover {
  background: #f1f5f2;
}
.member-mgmt-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.member-mgmt-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.member-mgmt-name-row strong {
  font-size: 13px;
}
.member-mgmt-email {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.member-mgmt-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.member-role-select {
  padding: 5px 8px;
  font-size: 11px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.member-role-select:focus {
  border-color: var(--green);
  outline: none;
}
.member-role-static {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 8px;
}
.team-add-member-section {
  margin-top: 20px;
  padding: 16px;
  background: #f8faf9;
  border: 1px dashed #cad4ce;
  border-radius: 12px;
}
.team-add-member-section h3 {
  font-size: 13px;
  margin: 0 0 12px;
  font-weight: 700;
}
.team-add-member-section.empty {
  padding: 12px 16px;
  background: #f2f7f4;
  border-style: solid;
  border-color: #d0ded5;
}
.team-page-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.team-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}
.team-actions .btn {
  flex: 1 1 auto;
  min-width: 80px;
  text-align: center;
}

/* ==========================================================================
   PANZE STUDIO DASHBOARD (Icon Rail + Floating Pill + Bento Grid)
   ========================================================================== */

/* Icon-rail logout (compact) */
.icon-rail-logout {
  width: auto;
  border: 0;
  background: transparent;
  padding: 6px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--muted);
}
.icon-rail-logout:hover {
  background: #f8e9e3;
  color: #a84e32;
}
.icon-rail-logout svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-rail-logout span {
  display: none;
}

/* ==========================================================================
   MINIMALIST EDITORIAL & BENTO DASHBOARD (Protocol: minimalist-ui)
   ========================================================================== */

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

.notion-dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 32px 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: transparent;
  animation: minimalFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Minimalist Editorial Page Header */
.notion-doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid #dcd9d0;
}
.notion-doc-left {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.notion-doc-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #dcd9d0;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  margin-top: 4px;
}
.minimal-mono-eyebrow {
  display: block;
  font-family: "JetBrains Mono", "SF Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a4843;
  margin-bottom: 6px;
}
.notion-doc-title h1 {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #111111;
  margin: 0;
}
.notion-doc-subtitle {
  font-family:
    "Plus Jakarta Sans",
    -apple-system,
    sans-serif;
  font-size: 13.5px;
  color: #4a4843;
  margin: 6px 0 0;
  line-height: 1.5;
}
.notion-doc-subtitle strong {
  color: #111111;
  font-weight: 600;
}
.minimal-text-alert {
  color: #9f2f2d;
  font-weight: 600;
  background: #fdebec;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 12px;
  font-family: "JetBrains Mono", monospace;
}
.notion-doc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.notion-doc-actions .btn.primary {
  background: #111111 !important;
  color: #ffffff !important;
  border: 1px solid #111111 !important;
  border-radius: 6px !important;
  padding: 8px 16px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.15s ease;
}
.notion-doc-actions .btn.primary:hover {
  background: #2b2b2b !important;
  transform: scale(0.98);
}
.notion-doc-actions .btn {
  background: #ffffff;
  color: #111111;
  border: 1px solid #dcd9d0;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: all 0.15s ease;
}
.notion-doc-actions .btn:hover {
  background: #ebe8df;
  border-color: #beb9ac;
}

/* Minimalist Bento KPI Cards */
.notion-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.notion-kpi-card {
  background: #ffffff;
  border: 1px solid #dcd9d0;
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  animation: minimalFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}
.notion-kpi-card:hover {
  border-color: #8e8a7e;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}
.notion-kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.notion-kpi-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.notion-kpi-icon.sky {
  background: #e1f3fe;
  color: #0c517c;
  border-color: #b8e1fc;
}
.notion-kpi-icon.orange {
  background: #fef3d6;
  color: #784e00;
  border-color: #f8e0a4;
}
.notion-kpi-icon.pink {
  background: #fce6e7;
  color: #8c1f1d;
  border-color: #f5c2c4;
}
.notion-kpi-icon.green {
  background: #e2f2e1;
  color: #1f5223;
  border-color: #c4e4c2;
}

.notion-kpi-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.notion-kpi-value {
  font-family: "JetBrains Mono", "SF Mono", monospace;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #111111;
  line-height: 1.1;
}
.notion-kpi-value.alert {
  color: #8c1f1d;
}
.notion-kpi-label {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12px;
  color: #4a4843;
  font-weight: 500;
}

/* Progress bar inside KPI */
.notion-progress-bar {
  height: 4px;
  background: #e5e2d9;
  border-radius: 2px;
  overflow: hidden;
}
.notion-progress-fill {
  height: 100%;
  background: #111111 !important;
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Minimalist 2-Column Workspace Bento Grid */
.notion-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(320px, 1fr);
  gap: 20px;
  align-items: start;
}

/* Left Column: Interactive Task Hub */
.notion-db-card {
  background: #ffffff;
  border: 1px solid #dcd9d0;
  border-radius: 10px;
  padding: 22px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.notion-db-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.notion-db-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #111111;
}
.notion-db-title i {
  color: #111111;
  font-size: 18px;
}
.notion-db-tabs {
  display: inline-flex;
  gap: 2px;
  background: #ece9e1;
  padding: 3px;
  border-radius: 6px;
  border: 1px solid #dcd9d0;
}
.notion-tab-pill {
  border: 0;
  background: transparent;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #52504a;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.notion-tab-pill:hover:not(.active) {
  color: #111111;
  background: rgba(0, 0, 0, 0.04);
}
.notion-tab-pill.active {
  background: #111111;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
}

/* Minimalist Keyboard Shortcut Hint */
.minimal-kbd {
  display: inline-block;
  padding: 0.5px 5px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  line-height: 1.3;
  color: #32312d;
  background: #ece9e1;
  border: 1px solid #d8d5cd;
  border-radius: 3px;
  vertical-align: middle;
  font-weight: 600;
}

/* Minimalist Task Search Box */
.notion-db-search {
  position: relative;
}
.notion-db-search input {
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #dcd9d0;
  border-radius: 6px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12px;
  color: #111111;
  padding: 6px 10px 6px 28px;
  outline: none;
  transition: border-color 0.15s ease;
}
.notion-db-search input:focus {
  border-color: #111111;
}
.notion-db-search i {
  position: absolute;
  left: 9px;
  top: 8px;
  color: #6e6b64;
  font-size: 13px;
  pointer-events: none;
}

/* Card View Task Rows */
.notion-task-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: transparent;
}
.notion-task-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid #dcd9d0;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: none;
  transition: all 0.12s ease;
}
.notion-task-row:hover {
  background: #faf9f6;
  border-color: #8e8a7e;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}
.notion-task-check {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid #8e8a7e;
  background: #ffffff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.12s ease;
  font-size: 11px;
}
.notion-task-check:hover:not(:disabled) {
  border-color: #111111;
  background: #ece9e1;
}
.notion-task-check.is-done {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}
.notion-task-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.notion-task-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.notion-task-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #111111;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}
.notion-task-title:hover {
  color: #111111;
  text-decoration: underline;
}
.notion-task-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 11.5px;
  color: #4a4843;
  font-weight: 500;
}
.notion-task-due {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #4a4843;
  font-weight: 500;
}
.notion-task-due.late {
  color: #8c1f1d;
  font-weight: 700;
}
.notion-db-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 4px;
}
.notion-link-btn {
  color: #111111;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.12s ease;
}
.notion-link-btn:hover {
  text-decoration: underline;
}

/* Right Column: Operations Stack (Upcoming Events, Activities, Feed) */
.notion-right-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.notion-card-block {
  background: #ffffff;
  border: 1px solid #dcd9d0;
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.notion-block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.notion-block-head h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: #111111;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.notion-block-head h3 i {
  color: #111111 !important;
  font-size: 16px;
}
.notion-event-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #dcd9d0;
  border-radius: 6px;
  background: #ffffff;
  text-decoration: none;
  color: inherit;
  transition: all 0.12s ease;
}
.notion-event-row:hover {
  border-color: #8e8a7e;
  background: #faf9f6;
  transform: translateY(-1px);
}
.notion-event-date {
  text-align: center;
  background: #ece9e1;
  border: 1px solid #dcd9d0;
  border-radius: 4px;
  padding: 4px 2px;
}
.notion-event-date small {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  color: #4a4843;
  text-transform: uppercase;
  font-weight: 600;
}
.notion-event-date strong {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  color: #111111;
}
.notion-event-info h4 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #111111;
  margin: 0 0 2px;
}
.notion-event-info span {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 11px;
  color: #4a4843;
}

/* Activity Items with Minimalist Progress */
.notion-gallery-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.notion-activity-item {
  border: 1px solid #dcd9d0;
  border-radius: 6px;
  padding: 10px 12px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  transition: all 0.12s ease;
}
.notion-activity-item:hover {
  border-color: #8e8a7e;
  background: #faf9f6;
  transform: translateY(-1px);
}
.notion-activity-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.notion-activity-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #111111;
}
.notion-activity-lead {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 11px;
  color: #4a4843;
}
.notion-activity-links {
  display: flex;
  gap: 8px;
  font-size: 11px;
}
.notion-activity-links a {
  color: #111111;
  text-decoration: none;
  font-weight: 600;
}
.notion-activity-links a:hover {
  text-decoration: underline;
}

/* Feed Rows */
.notion-feed-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.notion-feed-row {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
  padding: 6px 0;
  border-bottom: 1px solid #dcd9d0;
}
.notion-feed-row:last-child {
  border-bottom: 0;
}
.notion-feed-row p {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12px;
  line-height: 1.45;
  color: #111111;
  font-weight: 500;
  margin: 0 0 2px;
}
.notion-feed-row time {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: #4a4843;
  font-weight: 500;
}
.notion-feed-row time a {
  color: #111111;
  text-decoration: none;
  font-weight: 600;
}
.notion-feed-row time a:hover {
  text-decoration: underline;
}

/* Responsive Rules for Notion Workspace */
@media (max-width: 1100px) {
  .notion-hero-band {
    padding: 26px 24px 22px;
    gap: 20px;
  }
  .notion-hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .notion-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .notion-workspace-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .notion-kpi-grid {
    grid-template-columns: 1fr;
  }
  .notion-hero-band {
    padding: 20px 16px;
    border-radius: 12px;
  }
  .notion-hero-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .notion-doc-actions {
    width: 100%;
  }
  .notion-doc-actions .btn {
    flex: 1;
  }
}

/* Minimalist Muted Pastel Status Badges (Protocol: minimalist-ui with enhanced contrast) */
.badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  border-radius: 9999px !important;
  padding: 2.5px 8.5px 2.5px 6.5px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  font-family: var(--font-sans) !important;
  letter-spacing: 0.02em !important;
  line-height: 1.25 !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  outline: none !important;
  box-shadow: none !important;
  text-transform: capitalize;
  white-space: nowrap !important;
  vertical-align: middle;
  background: #eceae4 !important;
  color: #32312d !important;
}

.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  background: #6e6b64;
}

/* Pale Blue: Review / Changes Requested / To-do */
.badge.review,
.badge.changes_requested,
.badge.todo,
.badge.to-do,
.badge.vice_leader {
  background: #e1f3fe !important;
  color: #0c517c !important;
  border: 1px solid #b8e1fc !important;
}
.badge.review .badge-dot,
.badge.changes_requested .badge-dot,
.badge.todo .badge-dot,
.badge.to-do .badge-dot,
.badge.vice_leader .badge-dot {
  background: #0c517c !important;
}

/* Pale Blue / Soft Teal: In Progress / Active / Self-logged */
.badge.active,
.badge.in_progress,
.badge.in-progress,
.badge.self-logged {
  background: #e1f3fe !important;
  color: #0c517c !important;
  border: 1px solid #b8e1fc !important;
}
.badge.active .badge-dot,
.badge.in_progress .badge-dot,
.badge.in-progress .badge-dot,
.badge.self-logged .badge-dot {
  background: #0c517c !important;
}

/* Pale Green: Completed / Done / Low / Approved */
.badge.completed,
.badge.done,
.badge.approved,
.badge.low {
  background: #e2f2e1 !important;
  color: #1f5223 !important;
  border: 1px solid #c4e4c2 !important;
}
.badge.completed .badge-dot,
.badge.done .badge-dot,
.badge.approved .badge-dot,
.badge.low .badge-dot {
  background: #1f5223 !important;
}

/* Pale Red: Urgent / High / Overdue / Cancelled */
.badge.high,
.badge.urgent,
.badge.overdue,
.badge.cancelled {
  background: #fce6e7 !important;
  color: #8c1f1d !important;
  border: 1px solid #f5c2c4 !important;
}
.badge.high .badge-dot,
.badge.urgent .badge-dot,
.badge.overdue .badge-dot,
.badge.cancelled .badge-dot {
  background: #8c1f1d !important;
}

/* Pale Yellow: Medium / Weight Preset / Leader */
.badge.medium,
.badge.weight,
.badge.leader {
  background: #fef3d6 !important;
  color: #784e00 !important;
  border: 1px solid #f8e0a4 !important;
}
.badge.medium .badge-dot,
.badge.weight .badge-dot,
.badge.leader .badge-dot {
  background: #784e00 !important;
}

/* Faint Neutral: Proposed / Open / Member */
.badge.proposed,
.badge.open,
.badge.member {
  background: #eceae4 !important;
  color: #32312d !important;
  border: 1px solid #d8d5cd !important;
}
.badge.proposed .badge-dot,
.badge.open .badge-dot,
.badge.member .badge-dot {
  background: #6e6b64 !important;
}

/* =========================================================
   NOTION-UI DESIGN SYSTEM (https://notion-ui.vercel.app/docs)
   Extracted from @notion-kit/ui & @notion-kit/table-view
   ========================================================= */

/* 1. COVER BLOCK (packages/ui/src/cover/cover.tsx) */
.notion-cover {
  position: relative;
  width: 100%;
  height: 200px;
  max-height: 230px;
  background: var(--bg-sidebar);
  overflow: hidden;
  user-select: none;
}
.notion-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
}
.notion-cover-actions {
  position: absolute;
  right: 24px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 5;
}
.notion-cover:hover .notion-cover-actions {
  opacity: 1;
}
.notion-cover-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(50, 48, 44, 0.14);
  backdrop-filter: blur(8px);
  color: #37352f;
  font:
    500 12px "Plus Jakarta Sans",
    sans-serif;
  cursor: pointer;
  box-shadow: rgba(15, 15, 15, 0.05) 0 1px 2px;
  transition: all 0.12s ease;
}
.notion-cover-btn:hover {
  background: #ffffff;
  border-color: rgba(50, 48, 44, 0.25);
}

/* 2. PAGE BODY & ICON BLOCK (packages/ui/src/icon-block/icon-block.tsx) */
.notion-page-body {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px 80px;
  box-sizing: border-box;
}
.notion-page-icon-wrapper {
  position: relative;
  z-index: 4;
  margin-top: -42px;
  margin-bottom: 10px;
}
.notion-icon-block.xl {
  width: 78px;
  height: 78px;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    rgba(15, 15, 15, 0.08) 0 0 0 1px,
    rgba(15, 15, 15, 0.12) 0 2px 4px;
  user-select: none;
}
.notion-icon-emoji {
  font-size: 52px;
  line-height: 1;
}

/* 3. PAGE HEADER & NOTION PROPERTIES */
.notion-page-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 22px;
}
.notion-page-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.notion-page-title {
  font:
    700 clamp(28px, 3.5vw, 36px) "Plus Jakarta Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif !important;
  letter-spacing: -0.03em !important;
  color: #2c2c2b !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}
.notion-page-desc {
  font:
    400 14px/1.55 "Plus Jakarta Sans",
    sans-serif;
  color: rgba(70, 68, 64, 0.65);
  margin: 0;
  max-width: 780px;
}
.notion-page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Notion Properties Grid */
.notion-properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid rgba(50, 48, 44, 0.09);
  border-radius: 8px;
  box-shadow: rgba(15, 15, 15, 0.03) 0 1px 2px;
  margin-bottom: 26px;
}
.notion-property-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: #2c2c2b;
}
.notion-prop-name {
  color: rgba(70, 68, 64, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  min-width: 90px;
}
.notion-prop-name i {
  font-size: 14px;
  color: #a8a49c;
}
.notion-prop-value {
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 4. NOTION DATABASE VIEWS BAR (Table / Board / List) */
.notion-db-views-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(50, 48, 44, 0.09);
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.notion-db-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
}
.notion-db-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px 6px 0 0;
  font:
    500 13px "Plus Jakarta Sans",
    sans-serif;
  color: rgba(70, 68, 64, 0.65);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.12s ease;
}
.notion-db-tab:hover {
  background: rgba(50, 48, 44, 0.04);
  color: #2c2c2b;
}
.notion-db-tab.active {
  color: #2c2c2b;
  font-weight: 600;
  border-bottom: 2px solid #2383e2;
  background: transparent;
}
.notion-db-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.notion-db-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(242, 241, 238, 0.6);
  border: 1px solid rgba(50, 48, 44, 0.1);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  width: 200px;
  transition: all 0.15s ease;
}
.notion-db-search:focus-within {
  background: #ffffff;
  border-color: #2383e2;
  box-shadow: rgba(35, 131, 226, 0.2) 0 0 0 2px;
}
.notion-db-search input {
  border: 0;
  background: transparent;
  outline: none;
  font-size: 12px;
  width: 100%;
  color: #2c2c2b;
}
.notion-db-search i {
  color: #8e8b86;
  font-size: 14px;
}

/* 5. NOTION TABLE VIEW (packages/table-view) */
.notion-table-container {
  border: 1px solid #dcd9d0;
  border-radius: 8px;
  overflow-x: auto;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.notion-table-view {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: #111111;
  text-align: left;
}
.notion-table-view th {
  background: #ece9e1;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 12px;
  color: #32312d;
  border-bottom: 1px solid #dcd9d0;
  border-right: 1px solid #dcd9d0;
  white-space: nowrap;
}
.notion-table-view th:last-child {
  border-right: none;
}
.notion-table-view td {
  padding: 8px 12px;
  border-bottom: 1px solid #e5e2d9;
  border-right: 1px solid #e5e2d9;
  vertical-align: middle;
  color: #111111;
}
.notion-table-view td:last-child {
  border-right: none;
}
.notion-table-view tr:hover td {
  background: #faf9f6;
}
.notion-task-table-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #111111;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  font-size: 13px;
}
.notion-task-table-title:hover {
  color: #111111;
  text-decoration: underline;
}
.notion-table-calc-row {
  background: #ece9e1;
  border-top: 1px solid #dcd9d0;
  font-size: 12px;
  color: #4a4843;
}
.notion-table-calc-row td {
  padding: 7px 12px;
  font-weight: 600;
}

/* 6. NOTION KANBAN BOARD (packages/ui/src/kanban/kanban.tsx) */
.notion-kanban-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 14px;
  align-items: start;
}
.notion-kanban-col {
  background: #fbfbfa;
  border: 1px solid rgba(50, 48, 44, 0.08);
  border-radius: 8px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 260px;
}
.notion-kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
  font-weight: 600;
  font-size: 12px;
}
.notion-kanban-count {
  font-size: 11px;
  color: rgba(70, 68, 64, 0.45);
  font-weight: 500;
}
.notion-kanban-card {
  background: #ffffff;
  border: 1px solid rgba(50, 48, 44, 0.1);
  border-radius: 6px;
  padding: 10px 12px;
  box-shadow: rgba(15, 15, 15, 0.03) 0 1px 2px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: all 0.12s ease;
}
.notion-kanban-card:hover {
  border-color: rgba(50, 48, 44, 0.22);
  box-shadow: rgba(15, 15, 15, 0.08) 0 3px 8px;
  transform: translateY(-1px);
}
.notion-kanban-card-title {
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4;
  color: #2c2c2b;
}
.notion-kanban-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 11px;
  color: rgba(70, 68, 64, 0.6);
}

/* Button variants per @notion-kit/ui */
.btn {
  border: 1px solid var(--border-strong) !important;
  background: var(--surface-raised) !important;
  border-radius: var(--radius-sm) !important;
  padding: 6px 12px !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  font-family: var(--font-sans) !important;
  color: var(--text-primary) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: background-color var(--duration-fast) ease, border-color var(--duration-fast) ease, color var(--duration-fast) ease, transform var(--duration-fast) ease;
}
.btn:hover {
  background: var(--surface-subtle) !important;
  border-color: var(--border-strong) !important;
}
.btn.blue,
.btn.primary {
  background: #2383e2 !important;
  border-color: #2383e2 !important;
  color: #ffffff !important;
  box-shadow: rgba(35, 131, 226, 0.25) 0 1px 3px;
}
.btn.blue:hover,
.btn.primary:hover {
  background: #0077d4 !important;
  border-color: #0077d4 !important;
}
.btn.small {
  padding: 4px 9px !important;
  font-size: 12px !important;
  border-radius: 5px !important;
}

@media (max-width: 768px) {
  .notion-page-body {
    padding: 0 16px 60px;
  }
  .notion-kanban-board {
    grid-template-columns: 1fr;
  }
  .notion-properties-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   GLOBAL PAGE CONSISTENCY — Minimalist Editorial System v2
   Overrides legacy styles for all non-dashboard pages
   ========================================================================== */

/* Activity Hero — replaces blue #213183 banner */
.activity-hero-editorial {
  background: #ffffff;
  border: 1px solid #dcd9d0;
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 20px;
  position: relative;
}
.activity-hero-editorial .hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.activity-hero-editorial h1 {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #111111;
  margin: 0 0 10px;
}
.activity-hero-editorial > p {
  font-size: 14px;
  line-height: 1.65;
  color: #4a4843;
  margin: 0 0 18px;
  max-width: 760px;
}
.activity-hero-editorial .hero-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-family: "JetBrains Mono", "SF Mono", monospace;
  font-size: 11.5px;
  color: #4a4843;
  font-weight: 500;
  padding-top: 16px;
  border-top: 1px solid #dcd9d0;
  margin-top: 4px;
}
.activity-hero-editorial .hero-document-link {
  display: inline-flex;
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  padding: 7px 12px;
  border-radius: 6px;
  background: #f5f4ef;
  border: 1px solid #dcd9d0;
  color: #111111;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.activity-hero-editorial .hero-document-link:hover {
  background: #eceae4;
  border-color: #8e8a7e;
}

/* Activity cards */
.activity-card {
  border-radius: 10px !important;
}
.activity-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06) !important;
}

/* Person Cards */
.person {
  border-radius: 10px !important;
  border: 1px solid #dcd9d0 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
  transition: all 0.15s ease;
}
.person:hover {
  border-color: #8e8a7e !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
  transform: translateY(-1px);
}
.person h3 {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  margin: 0 0 4px !important;
}
.person p {
  font-size: 12px !important;
}

/* Team Cards */
.team-card {
  border-radius: 10px !important;
  border: 1px solid #dcd9d0 !important;
  border-top: none !important;
  border-left: 4px solid var(--team, #dcd9d0) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
  transition: all 0.15s ease;
}
.team-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
  transform: translateY(-1px);
}
.team-card h3 {
  font-size: 14px !important;
  font-weight: 600 !important;
}
.team-card p {
  font-size: 12px !important;
  line-height: 1.5 !important;
}
.team-grid {
  grid-template-columns: repeat(2, 1fr) !important;
}
@media (max-width: 760px) {
  .team-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Stats (team page) */
.stat {
  background: #ffffff;
  border: 1px solid #dcd9d0;
  border-radius: 10px;
  padding: 18px 20px;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.stat span {
  font-size: 11px;
  font-weight: 600;
  color: #4a4843;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stat strong {
  display: block;
  font-family: "JetBrains Mono", "SF Mono", monospace;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #111111;
  margin-top: 8px;
}
.stat i {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: #f5f4ef;
  border: 1px solid #dcd9d0;
  color: #4a4843;
  border-radius: 6px;
  font-style: normal;
  font-size: 14px;
}
.stat.alert strong {
  color: #8c1f1d;
}
.stat.alert i {
  background: #fce6e7;
  border-color: #f5c2c4;
  color: #8c1f1d;
}

/* Warm palette overrides */
.complete-box {
  background: #f5f4ef !important;
  border: 1px solid #dcd9d0 !important;
}
.detail-facts div {
  background: #f5f4ef !important;
}
.proposal-entry {
  background: #f5f4ef !important;
  border: 1px solid #dcd9d0 !important;
}
.kanban-column {
  background: #f5f4ef !important;
  border-color: #dcd9d0 !important;
}
.kanban-column.drag-over {
  background: #eaf0f8 !important;
  border: 2px dashed #0075de !important;
}
.kanban-column h3 {
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-size: 11px !important;
  letter-spacing: 0.1em !important;
  color: #4a4843 !important;
  text-transform: uppercase !important;
}
.kanban-card {
  border-color: #dcd9d0 !important;
  border-radius: 8px !important;
}
.kanban-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
  transform: translateY(-1px);
}
.accounts-row {
  border-radius: 8px !important;
  border-color: #dcd9d0 !important;
  background: #ffffff !important;
  transition: all 0.12s ease;
}
.accounts-row:hover {
  background: #faf9f6 !important;
  border-color: #8e8a7e !important;
}
.preset-row {
  border-color: #dcd9d0 !important;
  background: #ffffff !important;
}
.preset-row:hover {
  background: #faf9f6 !important;
}
.team-member-mgmt-row {
  background: #f5f4ef !important;
  border-color: #dcd9d0 !important;
}
.team-member-mgmt-row:hover {
  background: #eceae4 !important;
}
.team-add-member-section {
  background: #f5f4ef !important;
  border-color: #dcd9d0 !important;
}
.team-add-member-section.empty {
  background: #eceae4 !important;
  border-color: #dcd9d0 !important;
}
.calendar-cell.today {
  background: #eaf0f8 !important;
}
.calendar-cell.today .calendar-day-number {
  background: #0075de !important;
}
.calendar-agenda-date {
  color: #111111 !important;
}
.calendar-agenda-day {
  border-color: #dcd9d0 !important;
}
.calendar-pill.activity-pill {
  background: #e1f3fe !important;
  color: #0c517c !important;
}
.document-year {
  color: #111111 !important;
  background: #f5f4ef !important;
  border: 1px solid #dcd9d0;
}
.document-card {
  border-color: #dcd9d0 !important;
  border-radius: 10px !important;
  transition: all 0.15s ease;
}
.document-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}
.today-task-row {
  border-color: #dcd9d0 !important;
  border-radius: 8px !important;
}
.today-task-row:hover {
  border-color: #111111 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

/* Editorial page header */
.page-head h1 {
  font-family: "Newsreader", Georgia, serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.15 !important;
}

/* Panel warm border */
.panel {
  background: var(--surface-raised) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-xs) !important;
}

/* Stage label */
.stage h3 {
  font-family: "JetBrains Mono", monospace !important;
  font-size: 10px !important;
  letter-spacing: 0.12em !important;
  color: #4a4843 !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
}

/* Staggered animations for grid items */
.activity-grid .activity-card,
.people-grid .person,
.team-grid .team-card,
.document-grid .document-card {
  animation: minimalFadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i, 0) * 50ms);
}

/* Auth toggle active state */
.auth-toggle .btn.active {
  background: #111111 !important;
  border-color: #111111 !important;
  color: #ffffff !important;
}

/* Report panel */
.report-panel {
  max-width: 640px;
}

/* Progress bar dark fill */
.overview-activity .progress span {
  background: #111111;
}

/* Shared application components. Route styles may compose these foundations. */
.btn:disabled,
.btn[aria-disabled="true"],
.btn.busy,
.btn[aria-busy="true"] {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}
.btn.busy,
.btn[aria-busy="true"] {
  cursor: wait;
}
.field,
.form input,
.form select,
.form textarea,
.login-form input {
  border-color: var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: var(--text-primary);
}
.card {
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
}
.table-wrap th {
  color: var(--text-secondary);
  font: 600 11px/1.4 var(--font-mono);
  text-align: left;
}
.table-wrap th,
.table-wrap td {
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-3);
}
.notice,
.empty-state,
.error-state {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  background: var(--surface-subtle);
  color: var(--text-secondary);
}
.notice[role="alert"],
.error-state {
  border-color: #e7c1bf;
  background: #fdebec;
  color: #8c1f1d;
}
.loading-state {
  display: grid;
  min-height: 220px;
  place-content: center;
  justify-items: center;
  gap: var(--space-3);
  color: var(--text-secondary);
  text-align: center;
}
.loading-state-icon,
.state-icon {
  flex: 0 0 auto;
  font-size: 24px;
}
.loading-state-icon {
  animation: loading-spin 900ms linear infinite;
}
.empty-state h2,
.error-state h2,
.empty-state p,
.error-state p,
.notice p {
  margin: 0;
}
.empty-state h2,
.error-state h2 {
  font: 600 18px/1.3 var(--font-display);
  color: var(--text-primary);
}
.empty-state p,
.error-state p,
.notice p {
  margin-top: var(--space-1);
}
.notice-success {
  border-color: #b9d8c0;
  background: #eef8f0;
  color: #1d5b2a;
}
.notice-warning {
  border-color: #ecd3a5;
  background: #fff8e8;
  color: #7a4a00;
}
.notice-danger {
  border-color: #e7c1bf;
  background: #fdebec;
  color: #8c1f1d;
}
@keyframes loading-spin {
  to {
    transform: rotate(1turn);
  }
}
.skeleton {
  background: linear-gradient(
    90deg,
    var(--surface-subtle),
    var(--surface-raised),
    var(--surface-subtle)
  );
  background-size: 200% 100%;
  border-radius: var(--radius-sm);
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}
@keyframes skeleton-shimmer {
  to {
    background-position: -200% 0;
  }
}
@media (max-width: 760px) {
  .btn:not(.small) {
    min-height: 44px;
  }
  .table-wrap {
    margin-inline: calc(var(--space-4) * -1);
    padding-inline: var(--space-4);
  }
  dialog {
    width: min(100%, calc(100% - 16px));
    max-height: calc(100dvh - 16px);
  }
}

/* Coming soon — màn hình "Đang phát triển" (SPEC-SOON-001) */
.nav-soon { margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--line); }
.nav-soon-label { display: block; padding: 0 var(--space-3) var(--space-1); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sidebar .nav-soon a { opacity: .78; }
.soon-pill { margin-left: auto; padding: 1px 8px; border-radius: var(--radius-pill); background: var(--surface-subtle); color: var(--muted); font-size: 10px; font-style: normal; font-weight: 700; }
.soon { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); max-width: 560px; margin: var(--space-8) auto; padding: var(--space-4); text-align: center; }
.soon-mascot { width: 148px; height: 148px; animation: soon-wobble 2.6s ease-in-out infinite; }
.soon-mascot .soon-ink { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.soon-mascot .soon-fill { fill: var(--surface-raised); }
.soon-mascot path.soon-ink:not(.soon-fill) { fill: none; }
.soon-mascot .soon-eye { fill: var(--surface-raised); }
.soon-mascot .soon-pupil { fill: var(--ink); }
.soon-mascot .soon-neck-out { fill: none; stroke: var(--ink); stroke-width: 18; stroke-linecap: round; }
.soon-mascot .soon-neck-in { fill: none; stroke: var(--surface-raised); stroke-width: 12; stroke-linecap: round; }
.soon-mascot .soon-beak { fill: var(--orange); }
.soon-mascot .soon-taser { fill: var(--ink); }
.soon-mascot .soon-spark { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; animation: soon-spark 1.1s steps(2, end) infinite; }
.soon-title { margin: 0; font-family: var(--font-display); font-size: clamp(22px, 4vw, 30px); line-height: 1.25; color: var(--text-primary); }
.soon-sub { margin: 0; color: var(--text-secondary); }
.soon-bolt { color: var(--orange); }
.soon-meter { width: 100%; max-width: 360px; display: grid; gap: var(--space-1); }
.soon-meter-label { font-size: 13px; color: var(--text-secondary); }
.soon-meter-track { height: 10px; border-radius: var(--radius-pill); background: var(--surface-subtle); overflow: hidden; }
.soon-meter-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--orange)); transition: width var(--duration-standard) ease-out; }
.soon-line { margin: 0; font-style: italic; color: var(--text-secondary); }
.soon-done { margin: 0; font-weight: 700; color: var(--status-danger); }
.soon-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); margin-top: var(--space-2); }
.soon.zapped .soon-mascot { animation: soon-jolt .35s linear 1; }
.checklist-remove { margin-left: auto; padding: 2px 6px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.checklist-remove:hover { color: var(--status-danger); }
@keyframes soon-wobble { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes soon-spark { 0% { opacity: 1; } 100% { opacity: .2; } }
@keyframes soon-jolt { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px) rotate(-3deg); } 75% { transform: translateX(4px) rotate(3deg); } }
@media (prefers-reduced-motion: reduce) {
  .soon-mascot, .soon-mascot .soon-spark, .soon.zapped .soon-mascot { animation: none; }
  .soon-meter-fill { transition: none; }
}
