.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  background: var(--bg);
}
.login-visual {
  position: relative;
  overflow: hidden;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--surface);
  background: var(--navy);
}

.brand-lockup,
.login-copy {
  position: relative;
  z-index: 1;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 650;
  letter-spacing: -0.035em;
}
.login-copy {
  max-width: 610px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brand);
}
.login-copy h1 {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.08;
  margin: 16px 0 22px;
  letter-spacing: -0.035em;
  font-weight: 600;
}
.login-copy p {
  font-size: 16px;
  line-height: 1.65;
  max-width: 560px;
  color: var(--surface);
}

.login-panel {
  background: var(--surface);
  display: grid;
  place-items: center;
  padding: 40px;
}
.login-box {
  width: min(430px, 100%);
}
.login-box h2 {
  font-size: var(--text-title);
  letter-spacing: -0.04em;
  margin: 0 0 8px;
  font-weight: 600;
}
.login-box > p {
  color: var(--muted);
  margin: 0 0 32px;
  line-height: 1.6;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  z-index: 30;
  background: var(--surface);
  color: var(--muted);
  border-right: 1px solid var(--line);
}
.sidebar .brand-lockup {
  padding: 0 10px 24px;
  color: var(--ink);
}
.nav {
  display: grid;
  gap: 3px;
  margin-top: 8px;
}
.nav button {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  display: flex;
  gap: 11px;
  align-items: center;
  font-weight: 500;
}
.nav button:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.nav button.active {
  background: var(--brand-soft);
  color: var(--brand);
  box-shadow: inset 2px 0 0 var(--brand);
  font-weight: 650;
}
.nav .ico {
  width: 20px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sidebar-foot {
  margin-top: auto;
  padding: 14px 8px 0;
  border-top: 1px solid var(--line);
}
.profile-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 600;
  flex: none;
}
.profile-mini strong {
  display: block;
  font-size: 13px;
  color: var(--ink);
}
.profile-mini span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: var(--topbar);
  position: sticky;
  top: 0;
  background: var(--surface);
  backdrop-filter: none;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.topbar-title {
  font-weight: 600;
  letter-spacing: -0.02em;
}
.top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.badge-dot {
  position: absolute;
  color: var(--surface);
  display: grid;
  place-items: center;
}
.content {
  padding: 28px;
  max-width: 1580px;
  margin: 0 auto;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.page-head h1 {
  margin: 0;
  font-size: var(--text-title);
  letter-spacing: -0.035em;
  font-weight: 600;
}
.page-head p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: var(--text-body);
}
.page-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 17px 18px;
  box-shadow: none;
}
.stat .label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.stat .value {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin-top: 7px;
  font-variant-numeric: tabular-nums;
}
.stat .hint {
  font-size: 11px;
  color: var(--brand);
  margin-top: 3px;
}
.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: none;
}
.card-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-head h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.015em;
  font-weight: 600;
}
.card-body {
  padding: 20px;
}
.card-flush {
  padding: 0;
}
.mission-list {
  display: grid;
  gap: 0;
}
.mission-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}
.mission-card:hover {
  border-color: var(--line);
  box-shadow: none;
  transform: none;
  background: var(--surface-2);
}
.mission-card-status {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.mission-card h4 {
  overflow-wrap: anywhere;
}
.mission-time {
  width: 104px;
  text-align: center;
  border-right: 1px solid var(--line);
  padding-right: 14px;
}
.mission-time strong {
  font-size: 16px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.mission-time small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
  font-size: 11px;
}
.mission-card h4 {
  margin: 0 0 5px;
  font-size: 15px;
  font-weight: 600;
}
.mission-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}
.mission-assignees {
  display: flex;
  margin-top: 9px;
}
.mini-avatar {
  width: 26px;
  height: 26px;
  border-radius: var(--r-round);
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 2px solid var(--surface);
  font-size: 9px;
  font-weight: 600;
  margin-left: -5px;
}
.mini-avatar:first-child {
  margin-left: 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--r-sm);
  padding: 3px 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.chip-normal {
  background: var(--surface-2);
  color: var(--muted);
}
.chip-important {
  background: var(--warning-soft);
  color: var(--warning);
}
.chip-urgent {
  background: var(--danger-soft);
  color: var(--danger);
}
.chip-to_accept {
  background: var(--info-soft);
  color: var(--info);
}
.chip-accepted {
  background: var(--surface-2);
  color: var(--brand);
}
.chip-in_progress {
  background: var(--warning-soft);
  color: var(--warning);
}
.chip-completed {
  background: var(--success-soft);
  color: var(--success);
}
.chip-refused,
.chip-cancelled {
  background: var(--danger-soft);
  color: var(--danger);
}
.watch-list {
  display: grid;
  gap: 10px;
}
.watch-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--r);
  background: var(--surface-2);
}
.watch-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--r);
  display: grid;
  place-items: center;
  background: var(--surface);
}
.watch-item strong {
  font-size: 13px;
}
.watch-item span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.4;
}
.table-wrap {
  overflow: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}
.table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  padding: 11px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.table tr:last-child td {
  border-bottom: 0;
}
.table tr:hover td {
  background: var(--surface-2);
}
.person {
  display: flex;
  align-items: center;
  gap: 10px;
}
.person .avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--r);
  font-size: 11px;
}
.empty {
  padding: 28px 20px;
  text-align: center;
  color: var(--muted);
}
.empty-icon {
  width: 32px;
  height: 32px;
  border-radius: 0;
  background: transparent;
  color: var(--brand);
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  font-size: 24px;
}
.empty h3 {
  color: var(--ink);
  margin: 0 0 7px;
}
.empty p {
  margin: 0 auto;
  max-width: 390px;
  line-height: 1.6;
}
.filter-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.filter-bar .input,
.filter-bar .select {
  width: auto;
  min-width: 150px;
}
.search {
  flex: 1;
  min-width: 240px !important;
}
.drawer-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  backdrop-filter: none;
  z-index: 60;
  animation: fade 0.16s ease;
  background: var(--scrim);
}
.drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(590px, 96vw);
  background: white;
  z-index: 61;
  box-shadow: var(--shadow);
  animation: slide 0.2s ease;
  overflow: auto;
}
.drawer-head {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--surface);
  backdrop-filter: none;
  border-bottom: 1px solid var(--line);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-body {
  padding: 22px;
}
.detail-title {
  font-size: 25px;
  margin: 4px 0 8px;
  letter-spacing: -0.04em;
}
.detail-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.detail-section {
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}
.detail-section:last-child {
  border-bottom: 0;
}
.detail-section h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 12px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.info-box {
  background: var(--surface-2);
  padding: 13px;
  border-radius: var(--r);
}
.info-box small {
  display: block;
  color: var(--muted);
  margin-bottom: 5px;
}
.info-box strong {
  font-size: 13px;
}
.timeline {
  position: relative;
  display: grid;
  gap: 16px;
}
.timeline:before {
  content: "";
  position: absolute;
  left: 9px;
  top: 9px;
  bottom: 9px;
  width: 1px;
  background: var(--surface-2);
}
.timeline-item {
  position: relative;
  padding-left: 31px;
}
.timeline-dot {
  position: absolute;
  left: 3px;
  top: 4px;
  width: 13px;
  height: 13px;
  border: 3px solid white;
  background: var(--brand-soft);
  border-radius: var(--r-round);
  box-shadow: none;
}
.timeline-item strong {
  font-size: 12px;
}
.timeline-item p {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0;
}
.comment {
  border-radius: var(--r);
  margin-bottom: 8px;
}
.comment-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}
.comment strong {
  color: var(--ink);
}
.comment p {
  margin: 0;
}
.action-panel {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 15px;
  border-radius: var(--r);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.modal {
  position: fixed;
  z-index: 71;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(680px, 94vw);
  max-height: 90vh;
  overflow: auto;
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  animation: pop 0.18s ease;
}
.modal-head {
  padding: 19px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-head h3 {
  margin: 0;
}
.modal-body {
  padding: 22px;
}
.modal-foot {
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}
.mission-action-dialog {
  display: flex;
  flex-direction: column;
}
.mission-action-dialog .modal-head,
.mission-action-dialog .modal-foot {
  flex-shrink: 0;
}
.mission-action-dialog .modal-body {
  min-height: 0;
  overflow: auto;
  overflow-wrap: anywhere;
}
.mission-action-dialog .modal-foot {
  flex-wrap: wrap;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.form-grid .span-2 {
  grid-column: span 2;
}
.check-list {
  display: grid;
  gap: 8px;
  max-height: 230px;
  overflow: auto;
  padding: 3px;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.check-row input {
  accent-color: var(--brand);
}
.week-grid {
  display: grid;
  grid-template-columns: 180px repeat(5, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: auto;
}
.week-cell {
  background: white;
  min-height: 84px;
  padding: 10px;
}
.week-head {
  min-height: auto;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}
.week-person {
  background: var(--surface);
  position: sticky;
  left: 0;
  z-index: 2;
}
.calendar-item {
  background: var(--surface-2);
  padding: 7px;
  margin-bottom: 6px;
  font-size: 11px;
}
.calendar-item strong {
  display: block;
  margin-bottom: 3px;
}
.calendar-item.urgent {
  border-color: var(--danger);
  background: var(--danger-soft);
}
.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  display: grid;
  gap: 10px;
}
.toast {
  min-width: 280px;
  max-width: 420px;
  background: var(--ink);
  color: var(--surface);
  padding: 13px 15px;
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  animation: slideUp 0.2s ease;
  font-size: 13px;
}
.toast.error {
  background: var(--danger);
}
.toast.success {
  background: var(--success);
}
.loading {
  padding: 60px;
  text-align: center;
  color: var(--muted);
}
.spinner {
  width: 28px;
  height: 28px;
  border-radius: var(--r-round);
  border: 3px solid var(--line);
  border-top-color: var(--brand);
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}
.mobile-nav {
  display: none;
  background: var(--surface);
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.menu-btn {
  display: none;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slide {
  from {
    transform: translateX(30px);
    opacity: 0.5;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes pop {
  from {
    transform: translate(-50%, -48%) scale(0.98);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@media (max-width: 1100px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .week-grid {
    grid-template-columns: 160px repeat(5, 180px);
  }
}
@media (max-width: 820px) {
  :root {
    --topbar: 64px;
  }
  .login-page {
    grid-template-columns: 1fr;
  }
  .login-visual {
    display: none;
  }
  .login-panel {
    min-height: 100vh;
    padding: 24px;
  }
  .shell {
    display: block;
  }
  .sidebar {
    display: none;
    background: var(--surface);
    color: var(--muted);
    border-right: 1px solid var(--line);
  }
  .main {
    grid-column: auto;
  }
  .topbar {
    padding: 0 16px;
  }
  .content {
    padding: 18px 14px 92px;
  }
  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .page-head h1 {
    font-size: 26px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat {
    padding: 14px;
    box-shadow: none;
  }
  .stat .value {
    font-size: 24px;
  }
  .menu-btn {
    display: inline-flex;
  }
  .topbar-title {
    font-size: 14px;
  }
  .mobile-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    height: 66px;
    backdrop-filter: none;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 6px;
    background: var(--surface);
    color: var(--muted);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    border-radius: var(--r);
  }
  .mobile-nav button {
    min-width: var(--touch-height);
    border: 0;
    background: transparent;
    display: grid;
    gap: 4px;
    place-items: center;
    font-size: 11px;
    padding: 6px 10px;
    border-radius: var(--r);
    color: var(--muted);
  }
  .mobile-nav button.active {
    background: var(--brand-soft);
    color: var(--brand);
  }
  .mission-card {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
  }
  .mission-card-status {
    grid-column: 2;
    justify-content: flex-start;
  }
  .mission-time {
    width: 92px;
    padding-right: 10px;
  }
  .mission-time strong {
    font-size: 14px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .span-2 {
    grid-column: span 1;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .drawer {
    width: 100vw;
  }
  .filter-bar {
    align-items: stretch;
  }
  .filter-bar .input,
  .filter-bar .select {
    width: 100%;
  }
  .search {
    min-width: 0 !important;
  }
  .table {
    min-width: 620px;
  }
}
@media (max-width: 470px) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat:nth-child(5) {
    grid-column: span 2;
  }
  .login-box h2 {
    font-size: 30px;
  }
  .action-panel .btn {
    width: 100%;
  }
  .mission-card h4 {
    font-size: 14px;
  }
  .top-actions .user-name {
    display: none;
  }
}
/* ===== Surgical V1.1 product refinement ===== */
.eyebrow,
.section-kicker {
  display: block;
  color: var(--brand);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.user-name {
  font-size: 13px;
  font-weight: 600;
}
.actions-col {
  text-align: right !important;
  white-space: nowrap;
}
.user-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: -4px 0 16px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
}
.user-summary div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.user-summary strong {
  font-size: 26px;
}
.user-summary span {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.user-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.delete-warning {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 15px;
  background: var(--danger-soft);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.delete-warning > span {
  width: 34px;
  height: 34px;
  border-radius: var(--r);
  background: var(--danger);
  color: var(--surface);
  display: grid;
  place-items: center;
  font-weight: 600;
  flex: none;
}
.delete-warning p {
  margin: 5px 0 0;
  color: var(--danger);
  line-height: 1.55;
  font-size: 12px;
}
.dashboard-hero {
  padding: 4px 0 24px;
  margin-bottom: 20px;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: none;
  border-bottom: 1px solid var(--line);
}
.dashboard-hero .eyebrow {
  color: var(--brand);
}
.dashboard-hero h1 {
  font-size: var(--text-title);
  letter-spacing: -0.04em;
  margin: 0 0 6px;
  font-weight: 600;
}
.dashboard-hero p {
  margin: 0;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.kpi-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 8px 16px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: none;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.kpi-card.alert {
  border-color: var(--line);
  background: transparent;
}
.kpi-icon {
  width: 24px;
  height: 24px;
  border-radius: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--brand);
  font-weight: 600;
  flex: none;
}
.kpi-card.alert .kpi-icon {
  background: transparent;
  color: var(--danger);
}
.kpi-card > div {
  display: grid;
}
.kpi-card span:not(.kpi-icon) {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.kpi-card strong {
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.kpi-card small {
  font-size: 11px;
  color: var(--quiet);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.75fr);
  gap: 16px;
}
.dashboard-side {
  display: grid;
  gap: 16px;
  align-content: start;
}
.dashboard-primary .card-head,
.next-card .card-head,
.attention-card .card-head {
  padding: 18px 20px;
}
.day-progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0 0 16px;
  margin-bottom: 15px;
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid var(--line);
}
.day-progress div:first-child {
  display: grid;
}
.day-progress strong {
  font-size: 17px;
}
.day-progress span {
  font-size: 11px;
  color: var(--muted);
}
.progress-track {
  height: 4px;
  background: var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.progress-track span {
  display: block;
  height: 100%;
  background: var(--brand);
  border-radius: var(--r-sm);
}
.day-progress b {
  font-size: 12px;
}
.next-mission {
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  text-align: left;
  width: 100%;
  cursor: pointer;
}
.next-time {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}
.next-time strong {
  color: var(--brand);
  font-size: 16px;
}
.next-mission h3 {
  margin: 13px 0 5px;
  font-size: 16px;
}
.next-mission p {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 12px;
}
.attention-count {
  width: 30px;
  height: 30px;
  border-radius: var(--r);
  background: var(--danger-soft);
  color: var(--danger);
  display: grid;
  place-items: center;
  font-weight: 600;
}
.watch-item {
  border: 0;
  text-align: left;
  width: 100%;
  cursor: pointer;
}
.clean-state {
  padding: 15px;
  border-radius: var(--r);
  background: var(--success-soft);
  color: var(--success);
  font-size: 12px;
  font-weight: 600;
}
.employee-hero {
  background: transparent;
}
.employee-summary {
  display: grid;
  text-align: center;
  min-width: 130px;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}
.employee-summary strong {
  font-size: 30px;
}
.employee-summary span {
  font-size: 11px;
  color: var(--muted);
}
.employee-next {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: none;
  border-color: var(--line);
  border-left: 3px solid var(--brand);
}
.employee-next h2 {
  margin: 3px 0 5px;
  font-size: 21px;
}
.employee-next p {
  margin: 0 0 10px;
  color: var(--muted);
}
.employee-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.planning-toolbar {
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: var(--r);
  box-shadow: none;
}
.segmented {
  display: inline-flex;
  padding: 4px;
  background: var(--surface-2);
  border-radius: var(--r-sm);
}
.segmented button {
  border: 0;
  background: transparent;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
}
.segmented button.active {
  background: var(--surface);
  color: var(--brand);
  box-shadow: none;
}
.planning-period {
  display: flex;
  align-items: center;
  gap: 8px;
}
.planning-period strong {
  min-width: 180px;
  text-align: center;
  text-transform: capitalize;
}
.month-calendar {
  overflow: hidden;
}
.month-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.month-weekdays div {
  padding: 10px 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2);
}
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.month-cell {
  min-height: 124px;
  padding: 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  background: var(--surface);
  transition: 0.15s ease;
}
.month-cell:hover {
  background: var(--surface);
}
.month-cell.outside {
  background: var(--surface-2);
  color: var(--muted);
}
.month-cell.today {
  box-shadow: inset 0 0 0 2px var(--brand);
  background: var(--brand-soft);
}
.month-day {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 600;
}
.month-day > span:first-child {
  width: 26px;
  height: 26px;
  border-radius: var(--r);
  display: grid;
  place-items: center;
}
.month-cell.today .month-day > span:first-child {
  background: var(--brand);
  color: var(--surface);
}
.month-add {
  opacity: 0;
  color: var(--brand);
  font-size: 17px;
  transition: 0.15s;
}
.month-cell:hover .month-add {
  opacity: 1;
}
.month-items {
  display: grid;
  gap: 4px;
}
.month-mission {
  border: 0;
  border-left: 3px solid var(--brand);
  background: var(--surface-2);
  padding: 5px 7px;
  text-align: left;
  display: flex;
  gap: 5px;
  align-items: center;
  min-width: 0;
  cursor: pointer;
}
.month-mission.urgent {
  border-color: var(--danger);
  background: var(--danger-soft);
}
.month-mission span {
  font-size: 11px;
  color: var(--muted);
  flex: none;
}
.month-mission strong {
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.month-items small {
  font-size: 11px;
  color: var(--muted);
  padding-left: 6px;
}
.week-grid-7 {
  grid-template-columns: 190px repeat(7, minmax(145px, 1fr));
}
.week-head {
  display: grid;
  gap: 2px;
  background: var(--surface-2);
  color: var(--muted);
}
.week-head strong {
  color: var(--ink);
  font-size: 15px;
}
.week-person {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.week-person .avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--r);
  font-size: 11px;
}
.week-person div {
  display: grid;
  min-width: 0;
  overflow-wrap: anywhere;
}
.week-grid-7 > .week-head:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
}
.week-person small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}
.week-slot {
  position: relative;
  cursor: pointer;
  min-height: 104px;
}
.week-slot:hover {
  background: var(--surface);
}
.slot-add {
  position: absolute;
  right: 7px;
  top: 7px;
  color: var(--brand);
  opacity: 0;
  font-weight: 600;
}
.week-slot:hover .slot-add {
  opacity: 1;
}
.calendar-item {
  position: relative;
  z-index: 1;
  border: 0;
  border-left: 3px solid var(--brand);
  text-align: left;
  width: 100%;
  cursor: pointer;
  border-radius: var(--r-sm);
}
.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.section-title-row h4 {
  margin-bottom: 0 !important;
}
.acceptance-summary,
.comment-count {
  font-size: 11px;
  font-weight: 600;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: var(--r-sm);
  padding: 5px 8px;
}
.assignee-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.assignee-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.assignee-copy {
  display: grid;
  flex: 1;
}
.assignee-copy strong {
  font-size: 13px;
}
.assignee-copy span {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.communication-section {
  padding-top: 22px;
}
.communication-panel {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: var(--r);
}
.comments-list {
  display: grid;
  gap: 9px;
  max-height: 260px;
  overflow: auto;
  padding-right: 2px;
}
.comment {
  padding: 14px 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: none;
}
.comment p {
  font-size: 14px;
  line-height: 1.6;
}
.comment-form {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}
.comment-form .textarea {
  min-height: 78px;
  background: var(--surface);
}
.comment-form .btn {
  justify-self: end;
}
.no-comment {
  padding: 16px;
  border-radius: var(--r);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.notification-summary {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: baseline;
  gap: 8px;
  padding: 18px 20px;
  margin-bottom: 14px;
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--surface);
}
.notification-summary strong {
  font-size: 29px;
}
.notification-summary span {
  font-size: 12px;
  font-weight: 600;
}
.notification-summary p {
  margin: 0 0 0 15px;
  color: var(--brand);
  font-size: 12px;
}
.team-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 12px;
}
.team-person-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r);
}
.team-person-card > div {
  display: grid;
  flex: 1;
}
.team-person-card > div span {
  font-size: 11px;
  color: var(--muted);
}
.team-person-card > div small {
  font-size: 11px;
  color: var(--brand);
  margin-top: 3px;
}
@media (max-width: 1250px) {
  .kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .week-grid-7 {
    grid-template-columns: 170px repeat(7, 160px);
  }
}
@media (max-width: 820px) {
  .dashboard-hero,
  .employee-next {
    align-items: flex-start;
    flex-direction: column;
  }
  .hero-actions {
    width: 100%;
  }
  .hero-actions .btn,
  .employee-next .btn {
    width: 100%;
  }
  .kpi-grid,
  .employee-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .planning-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .planning-period {
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .planning-period strong {
    order: -1;
    width: 100%;
    text-align: left;
  }
  .month-calendar {
    overflow: auto;
  }
  .month-weekdays,
  .month-grid {
    min-width: 720px;
  }
  .notification-summary {
    grid-template-columns: auto 1fr;
  }
  .notification-summary p {
    grid-column: 1/-1;
    margin: 0;
  }
  .user-summary {
    align-items: flex-start;
    flex-direction: column;
  }
}
/* V1.2 — coordination interne, hiérarchie et disponibilité */
.page-actions,
.row-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.table-sub {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.planning-legend {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.planning-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-sm);
  display: inline-block;
}
.legend-dot.mission {
  background: var(--brand);
}
.legend-dot.off {
  background: var(--warning);
}
.month-off {
  width: 100%;
  border: 0;
  border-left: 3px solid var(--warning);
  background: var(--surface-2);
  border-radius: var(--r);
  padding: 5px 7px;
  text-align: left;
  display: flex;
  gap: 5px;
  align-items: center;
  cursor: pointer;
}
.month-off span {
  font-size: 11px;
  color: var(--warning);
  font-weight: 600;
}
.month-off strong {
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.week-slot.unavailable {
  background: var(--surface-2);
}
.week-off {
  display: block;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 1px 0 5px;
  cursor: pointer;
}
.availability-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 7px;
  border-radius: var(--r);
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 11px;
  font-weight: 600;
}
.availability-chip.type-sick {
  background: var(--surface-2);
  color: var(--danger);
}
.availability-chip.type-rtt {
  background: var(--surface-2);
  color: var(--brand);
}
.availability-chip.type-training {
  background: var(--surface-2);
  color: var(--success);
}
.availability-detail {
  display: grid;
  gap: 8px;
}
.availability-detail > span {
  justify-self: start;
  padding: 5px 8px;
  border-radius: var(--r);
  background: var(--warning-soft);
  color: var(--warning);
  font-weight: 600;
}
.availability-detail p {
  margin: 0;
  color: var(--muted);
}
.availability-detail blockquote {
  margin: 5px 0 0;
  padding: 12px;
  border-left: 3px solid var(--brand);
  background: var(--surface-2);
  border-radius: var(--r);
}
.availability-banner {
  margin-bottom: 16px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--warning);
  font-size: 12px;
  font-weight: 600;
}
.reassign-note {
  padding: 13px 14px;
  margin-bottom: 12px;
  border-radius: var(--r);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.reassign-note p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}
/* V1.3 — surgical commercial polish: notifications + employee coordination */
.notification-button {
  position: relative;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--muted);
  display: grid;
  place-items: center;
  box-shadow: none;
  transition: 0.16s ease;
}
.notification-button:hover {
  transform: none;
  border-color: var(--line);
  color: var(--brand);
  box-shadow: none;
}
.top-bell {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
}
.top-bell svg {
  width: 19px;
  height: 19px;
}
.badge-dot {
  right: -8px;
  top: -8px;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: var(--r);
  background: var(--danger);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
  border: 3px solid var(--bg);
  box-shadow: none;
  z-index: 2;
}
.nav button .nav-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-counter {
  margin-left: auto;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: var(--r-sm);
  background: var(--danger);
  color: var(--surface);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  box-shadow: none;
}
.employee-coordination-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 18px;
}
.coordination-card {
  border: 1px solid var(--line);
  padding: 17px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  text-align: left;
  transition: 0.16s ease;
  background: var(--surface);
  box-shadow: none;
  border-radius: var(--r);
}
.coordination-card:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: none;
}
.coordination-card.accent {
  background: var(--surface);
  border-color: var(--line);
}
.coordination-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--r);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 600;
  background: transparent;
  color: var(--brand);
}
.coordination-card > span:nth-child(2) {
  display: grid;
  gap: 4px;
}
.coordination-card strong {
  font-size: 14px;
  color: var(--ink);
}
.coordination-card small {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}
.coordination-card b {
  font-size: 20px;
  color: var(--muted);
}
.availability-banner.premium {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  box-shadow: none;
}
.availability-banner.premium > div {
  display: grid;
  gap: 3px;
}
.availability-banner.premium strong {
  font-size: 13px;
}
.availability-banner.premium span {
  font-size: 11px;
  color: var(--warning);
}
.employee-planning-callout {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 15px;
  align-items: center;
  margin-bottom: 16px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
  box-shadow: none;
}
.employee-planning-callout > span {
  width: 48px;
  height: 48px;
  border-radius: var(--r);
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--brand);
}
.employee-planning-callout strong {
  font-size: 14px;
}
.employee-planning-callout p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.availability-cta {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--brand);
}
@media (max-width: 820px) {
  .employee-coordination-grid {
    grid-template-columns: 1fr;
  }
  .employee-planning-callout {
    grid-template-columns: auto 1fr;
  }
  .employee-planning-callout .btn {
    grid-column: 1/-1;
    width: 100%;
  }
  .notification-button {
    width: 44px;
    height: 44px;
  }
  .badge-dot {
    right: -6px;
    top: -7px;
  }
}
.nav-counter.message {
  background: var(--surface-2);
  box-shadow: none;
}
/* V1.4 — lecture opérationnelle et filtres, isolés des composants historiques */
.mission-filter-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 15px 16px;
  margin-bottom: 14px;
  box-shadow: none;
}
.mission-filter-primary {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 180px 180px;
  gap: 12px;
  align-items: end;
}
.mission-filter-period {
  display: grid;
  grid-template-columns: 160px 160px 140px 140px 1fr;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.mission-filter-panel .field {
  margin: 0;
}
.mission-filter-panel .field label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 600;
}
.filter-presets {
  display: flex;
  gap: 7px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}
.btn-compact {
  padding: 9px 11px;
  font-size: 11px;
}
.mission-insights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}
.mission-insights > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mission-insights span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.mission-insights strong {
  font-size: 22px;
  letter-spacing: -0.04em;
}
.mission-insights .attention {
  border-color: var(--line);
  background: var(--surface);
}
.mission-insights .attention strong {
  color: var(--danger);
}
@media (max-width: 1050px) {
  .mission-filter-primary {
    grid-template-columns: 1fr 1fr;
  }
  .filter-search {
    grid-column: 1/-1;
  }
  .mission-filter-period {
    grid-template-columns: 1fr 1fr;
  }
  .filter-presets {
    grid-column: 1/-1;
    justify-content: flex-start;
  }
}
@media (max-width: 620px) {
  .mission-filter-primary,
  .mission-filter-period {
    grid-template-columns: 1fr;
  }
  .filter-search,
  .filter-presets {
    grid-column: auto;
  }
  .mission-insights {
    grid-template-columns: 1fr 1fr;
  }
}
/* V1.5 — Operational Intelligence, compact commercial layer */
.task-center {
  margin: 0 0 18px;
  border-color: var(--line);
  box-shadow: none;
}
.task-center-head {
  background: var(--surface-2);
}
.task-center-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.task-score {
  min-width: 92px;
  padding: 10px 13px;
  border-radius: var(--r);
  display: grid;
  text-align: center;
  background: var(--success-soft);
  color: var(--success);
}
.task-score.danger {
  background: var(--danger-soft);
  color: var(--danger);
}
.task-score strong {
  font-size: 23px;
  line-height: 1;
}
.task-score span {
  font-size: 11px;
  margin-top: 3px;
  font-weight: 600;
}
.task-list {
  display: grid;
  gap: 9px;
}
.task-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  transition: 0.15s ease;
}
.task-item[data-task-mission] {
  cursor: pointer;
}
.task-item:hover {
  border-color: var(--line);
  box-shadow: none;
}
.task-critical {
  border-left: 4px solid var(--danger);
}
.task-warning {
  border-left: 4px solid var(--warning);
}
.task-symbol {
  width: 36px;
  height: 36px;
  border-radius: var(--r);
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}
.task-critical .task-symbol {
  background: var(--danger-soft);
  color: var(--danger);
}
.task-copy {
  min-width: 0;
}
.task-copy > div {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 3px;
}
.task-type {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  color: var(--muted);
}
.task-severity {
  font-size: 11px;
  padding: 3px 6px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--muted);
}
.task-copy strong {
  display: block;
  font-size: 13px;
}
.task-copy p {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.task-copy small {
  display: block;
  margin-top: 4px;
  color: var(--brand);
  font-size: 11px;
}
.task-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.task-arrow {
  color: var(--muted);
  font-size: 18px;
}
.replacement-hero,
.duplicate-hero {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
}
.replacement-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--r);
  background: var(--brand);
  color: var(--surface);
  font-size: 20px;
}
.replacement-hero > div,
.duplicate-hero {
  display: grid;
}
.replacement-hero p,
.duplicate-hero p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.replacement-list {
  display: grid;
  gap: 14px;
}
.replacement-mission {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px;
}
.replacement-mission-head > div {
  display: grid;
  gap: 2px;
  margin-bottom: 10px;
}
.replacement-mission-head small {
  color: var(--brand);
  font-weight: 600;
}
.replacement-mission-head span {
  font-size: 11px;
  color: var(--muted);
}
.candidate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.candidate {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: 9px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 9px;
  align-items: center;
  text-align: left;
}
.candidate.available:hover {
  border-color: var(--line);
  background: var(--surface);
}
.candidate.unavailable {
  opacity: 0.55;
  cursor: not-allowed;
}
.candidate .avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--r);
  font-size: 11px;
}
.candidate > span:nth-child(2) {
  display: grid;
}
.candidate strong {
  font-size: 11px;
}
.candidate small {
  font-size: 11px;
  color: var(--muted);
}
.candidate b {
  font-size: 11px;
  color: var(--brand);
}
@media (max-width: 720px) {
  .task-item {
    grid-template-columns: auto 1fr;
  }
  .task-actions {
    grid-column: 1/-1;
    justify-content: flex-end;
  }
  .candidate-grid {
    grid-template-columns: 1fr;
  }
  .task-center-head {
    align-items: flex-start;
  }
  .task-score {
    min-width: 76px;
  }
}
/* V1.9 UX exposure — modular, frontend-only */
.template-summary,
.client-summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 15px 17px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
}
.template-summary > div,
.client-summary > div {
  display: grid;
  min-width: 86px;
}
.template-summary strong,
.client-summary strong {
  font-size: 25px;
  line-height: 1;
}
.template-summary span,
.client-summary span {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.template-summary p,
.client-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 14px;
}
.template-card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: 17px;
  box-shadow: none;
}
.template-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.template-card-head h3 {
  margin: 7px 0 2px;
  font-size: 16px;
}
.template-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.template-priority {
  display: inline-block;
  padding: 4px 7px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.template-priority.priority-urgent {
  background: var(--danger-soft);
  color: var(--danger);
}
.template-priority.priority-important {
  background: var(--warning-soft);
  color: var(--warning);
}
.template-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 15px 0;
}
.template-facts span {
  display: grid;
  padding: 10px;
  border-radius: var(--r);
  background: var(--surface-2);
}
.template-facts b {
  font-size: 13px;
}
.template-facts small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.template-context {
  display: grid;
  gap: 8px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.template-context div {
  display: grid;
}
.template-context small {
  color: var(--muted);
  font-size: 11px;
}
.template-context strong {
  font-size: 11px;
  margin-top: 2px;
}
.template-assignees {
  display: flex;
  align-items: center;
  margin-top: 13px;
}
.template-assignees .avatar {
  width: 31px;
  height: 31px;
  border-radius: var(--r);
  font-size: 11px;
  margin-right: -5px;
  border: 2px solid var(--surface);
}
.template-assignees small {
  margin-left: 10px;
  color: var(--muted);
}
.client-grid {
  display: grid;
  gap: 14px;
}
.client-card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: 18px;
  box-shadow: none;
}
.client-card > header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.client-card h3 {
  margin: 5px 0 3px;
  font-size: 18px;
}
.client-card header p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.client-status {
  font-size: 11px;
  font-weight: 600;
  color: var(--success);
  background: var(--success-soft);
  padding: 4px 7px;
  border-radius: var(--r-sm);
}
.client-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.client-note {
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: var(--r);
  background: var(--surface-2);
}
.client-note small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 3px;
}
.client-note strong,
.client-note p {
  font-size: 11px;
  margin: 0;
  line-height: 1.5;
}
.site-list {
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.site-list-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}
.site-list-title strong {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.site-list-title span {
  font-size: 11px;
  color: var(--muted);
}
.site-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  margin-top: 8px;
}
.site-marker {
  width: 34px;
  height: 34px;
  border-radius: var(--r);
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 600;
}
.site-copy {
  display: grid;
}
.site-copy > strong {
  font-size: 12px;
}
.site-copy > span,
.site-copy > small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.site-access {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: var(--r);
  background: var(--surface-2);
}
.site-access b {
  font-size: 11px;
  color: var(--brand);
}
.site-access p {
  margin: 3px 0 0;
  font-size: 11px;
  line-height: 1.45;
}
.site-empty {
  padding: 12px;
  border-radius: var(--r);
  background: var(--surface-2);
  font-size: 11px;
  color: var(--muted);
}
.client-history {
  display: grid;
  gap: 8px;
}
.history-mission {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.history-mission > div {
  display: grid;
}
.history-mission strong {
  font-size: 11px;
}
.history-mission span {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.history-mission > b {
  font-size: 11px;
  color: var(--muted);
}
.pilotage-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.pilotage-metric {
  display: grid;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: none;
}
.pilotage-metric span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.pilotage-metric strong {
  font-size: 27px;
  letter-spacing: -0.04em;
  margin: 4px 0;
}
.pilotage-metric small {
  font-size: 11px;
  color: var(--brand);
}
.pilotage-metric.danger {
  border-color: var(--line);
  background: var(--surface);
}
.pilotage-metric.warning {
  border-color: var(--line);
  background: var(--surface-2);
}
.workload-table {
  display: grid;
  gap: 0;
}
.workload-head,
.workload-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.8fr;
  gap: 14px;
  align-items: center;
}
.workload-head {
  padding: 0 12px 10px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.workload-row {
  padding: 13px 12px;
  border-top: 1px solid var(--line);
}
.workload-row > div {
  display: grid;
}
.workload-row strong,
.workload-row b {
  font-size: 11px;
}
.workload-row small,
.workload-delta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.workload-track {
  height: 6px;
  background: var(--surface-2);
  border-radius: var(--r-sm);
  overflow: hidden;
  margin-top: 6px;
}
.workload-track i {
  display: block;
  height: 100%;
  background: var(--brand);
  border-radius: var(--r-sm);
}
.workload-track.actual i {
  background: var(--success);
}
.field-cycle-subtitle {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.field-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 13px 0;
}
.field-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.field-step > span {
  width: 27px;
  height: 27px;
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
}
.field-step.done > span {
  background: var(--success-soft);
  color: var(--success);
}
.field-step div {
  display: grid;
}
.field-step strong {
  font-size: 11px;
}
.field-step small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.field-action-bar,
.field-report-head,
.field-proof-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.field-action-bar {
  padding: 12px 13px;
  border-radius: var(--r);
  background: var(--surface-2);
  border: 1px solid var(--line);
  margin-bottom: 10px;
}
.field-action-bar > div,
.field-report-head > div {
  display: grid;
}
.field-action-bar strong,
.field-report-head strong,
.field-proof-head strong {
  font-size: 11px;
}
.field-action-bar span,
.field-report-head small,
.field-proof-head span {
  font-size: 11px;
  color: var(--muted);
}
.field-report-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
  margin-bottom: 11px;
}
.field-report-card > p {
  font-size: 11px;
  line-height: 1.55;
}
.field-alert {
  margin-top: 9px;
  padding: 9px;
  border-radius: var(--r);
  background: var(--danger-soft);
  color: var(--danger);
}
.field-alert p {
  margin: 3px 0 0;
  font-size: 11px;
}
.field-proof-head {
  margin: 12px 0 8px;
}
.field-proof-list {
  display: grid;
  gap: 7px;
}
.field-proof {
  display: grid;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: inherit;
  text-decoration: none;
}
.field-proof > span {
  width: 30px;
  height: 30px;
  border-radius: var(--r);
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
}
.field-proof > div {
  display: grid;
}
.field-proof strong {
  font-size: 11px;
}
.field-proof small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.field-proof-empty {
  padding: 11px;
  border-radius: var(--r);
  background: var(--surface-2);
  font-size: 11px;
  color: var(--muted);
}
.field-report-download {
  margin-top: 12px;
  width: 100%;
  justify-content: center;
}
@media (max-width: 900px) {
  .pilotage-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .workload-head {
    display: none;
  }
  .workload-row {
    grid-template-columns: 1fr 1fr;
  }
  .workload-delta {
    grid-column: 1/-1;
  }
  .field-steps {
    grid-template-columns: 1fr 1fr;
  }
  .template-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .template-summary,
  .client-summary,
  .client-card > header {
    align-items: flex-start;
    flex-direction: column;
  }
  .client-card-actions {
    width: 100%;
  }
  .client-card-actions .btn {
    flex: 1;
  }
  .pilotage-kpis,
  .field-steps,
  .workload-row {
    grid-template-columns: 1fr;
  }
  .workload-delta {
    grid-column: auto;
  }
  .template-facts {
    grid-template-columns: 1fr 1fr;
  }
}
/* V1.9.2.1 — Planning Clarity: vue uniquement, aucune règle métier. */
.planning-clarity {
  padding: 10px 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-radius: var(--r);
  box-shadow: none;
}
.planning-quick-filters,
.planning-clarity-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.planning-focus {
  display: flex;
  align-items: center;
  gap: 7px;
}
.planning-focus > span,
.planning-visible-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.planning-focus .select {
  min-width: 180px;
  height: 34px;
  padding-top: 4px;
  padding-bottom: 4px;
}
.planning-density button {
  padding: 6px 10px;
}
.planning-overflow {
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 5px;
  text-align: left;
}
.planning-overflow:hover {
  text-decoration: underline;
}
.planning-compact .month-cell {
  min-height: 104px;
}
.planning-compact .week-slot {
  min-height: 88px;
}
.planning-compact .calendar-item {
  padding: 5px 6px;
  margin-bottom: 4px;
}
.planning-compact .calendar-item span {
  display: none;
}
.planning-compact .month-mission {
  padding: 4px 6px;
}
.planning-compact .week-off {
  margin-bottom: 4px;
}
@media (max-width: 820px) {
  .planning-clarity {
    align-items: stretch;
    flex-direction: column;
  }
  .planning-quick-filters,
  .planning-clarity-controls {
    width: 100%;
  }
  .planning-focus {
    width: 100%;
  }
  .planning-focus .select {
    flex: 1;
    min-width: 0;
  }
  .planning-visible-count {
    margin-left: auto;
  }
}
.person-button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
}
.user-profile-row {
  cursor: pointer;
}
.user-profile-row:hover {
  background: var(--surface);
}
.profile-sheet {
  display: grid;
  gap: 18px;
}
.profile-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}
.profile-avatar {
  width: 54px;
  height: 54px;
  font-size: 16px;
}
.profile-identity h3 {
  margin: 0;
  font-size: 20px;
}
.profile-identity p {
  margin: 4px 0 0;
  color: var(--muted);
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.profile-grid > div,
.profile-team {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
}
.profile-grid span,
.profile-teams > span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.profile-grid strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.profile-teams {
  display: grid;
  gap: 8px;
}
.profile-team {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.profile-team small {
  color: var(--muted);
}
@media (max-width: 620px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}
.team-person-card[data-team-profile] {
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.team-person-card[data-team-profile]:hover {
  border-color: var(--line);
  box-shadow: none;
}
/* Browser validation — mission state clarity, no business-rule change. */
.mission-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 16px 12px;
  box-shadow: none;
  background: var(--surface);
  transition: background-color 0.12s ease;
}
.mission-card:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: transparent;
}
.mission-card.mission-state-completed {
  border-color: var(--line);
  background: var(--surface-2);
}
.mission-card.mission-state-completed:before {
  background: var(--success);
}
.mission-card.mission-state-refused,
.mission-card.mission-state-cancelled {
  border-color: var(--line);
  background: var(--surface-2);
}
.mission-card.mission-state-refused:before,
.mission-card.mission-state-cancelled:before {
  background: var(--danger);
}
.mission-card.mission-state-blocked {
  border-color: var(--line);
  background: var(--surface-2);
}
.mission-card.mission-state-blocked:before {
  background: var(--warning);
}
.mission-state-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
  padding: 12px 14px;
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
}
.mission-state-banner > span {
  grid-row: 1/4;
  width: 34px;
  height: 34px;
  border-radius: var(--r);
  display: grid;
  place-items: center;
  font-size: 0;
  background: var(--surface-2);
}
.mission-state-banner > span:after {
  content: "•";
  font-size: 20px;
  font-weight: 600;
}
.mission-state-banner strong {
  font-size: 14px;
}
.mission-state-banner p,
.mission-state-banner small {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.mission-state-banner.mission-state-completed {
  border-color: var(--line);
  background: var(--success-soft);
}
.mission-state-banner.mission-state-completed > span {
  background: var(--success-soft);
  color: var(--success);
}
.mission-state-banner.mission-state-completed > span:after {
  content: "✓";
}
.mission-state-banner.mission-state-refused,
.mission-state-banner.mission-state-cancelled {
  border-color: var(--line);
  background: var(--danger-soft);
}
.mission-state-banner.mission-state-refused > span,
.mission-state-banner.mission-state-cancelled > span {
  background: var(--danger-soft);
  color: var(--danger);
}
.mission-state-banner.mission-state-refused > span:after {
  content: "×";
}
.mission-state-banner.mission-state-cancelled > span:after {
  content: "—";
}
.mission-state-banner.mission-state-blocked {
  border-color: var(--line);
  background: var(--warning-soft);
}
.mission-state-banner.mission-state-blocked > span {
  background: var(--warning-soft);
  color: var(--warning);
}
.mission-state-banner.mission-state-blocked > span:after {
  content: "!";
}
.mission-state-banner.mission-state-in_progress {
  border-color: var(--line);
  background: var(--surface-2);
}
.mission-state-banner.mission-state-in_progress > span {
  background: var(--warning-soft);
  color: var(--warning);
}
.mission-state-banner.mission-state-in_progress > span:after {
  content: "▶";
}
/* V1.9.3.2 — Mission Detail UX Stability: presentation only, no business-rule change. */
.mission-drawer {
  width: min(1180px, 74vw);
  background: var(--surface);
  overflow-y: auto;
  overflow-x: hidden;
}
.mission-drawer .mission-drawer-head {
  padding: 16px 24px;
  background: var(--surface);
}
.mission-drawer-heading {
  display: block;
  margin-top: 3px;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.mission-drawer .mission-drawer-body {
  padding: 24px;
}
.mission-detail-hero {
  padding: 0 0 24px;
  margin-bottom: 16px;
  border: 0;
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
  border-bottom: 1px solid var(--line);
}
.mission-detail-hero .mission-state-banner {
  margin-bottom: 16px;
  padding: 15px 16px;
}
.mission-detail-hero .mission-state-banner strong {
  font-size: 16px;
}
.mission-detail-hero .mission-state-banner p,
.mission-detail-hero .mission-state-banner small {
  font-size: 11px;
}
.mission-drawer .detail-title {
  font-size: var(--text-title);
  line-height: 1.15;
  margin: 12px 0 8px;
  letter-spacing: -0.045em;
  font-weight: 600;
}
.mission-detail-description {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 880px;
}
.mission-drawer .detail-meta {
  gap: 9px;
}
.mission-drawer .detail-meta .chip {
  padding: 6px 10px;
  font-size: 11px;
}
.mission-drawer .action-panel {
  display: grid;
  gap: 18px;
  padding: 16px;
  margin-bottom: 24px;
  border-radius: var(--r);
  background: var(--surface-2);
  border: 0;
  box-shadow: none;
}
.action-panel-label {
  display: block;
  margin-bottom: 11px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.action-panel-buttons {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.mission-drawer .action-panel .btn {
  min-height: 44px;
}
.mission-drawer .detail-section {
  padding: 0 0 24px;
  margin: 0 0 24px;
  border: 0;
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
  border-bottom: 1px solid var(--line);
}
.mission-drawer .mission-drawer-body > .detail-section:last-child {
  margin-bottom: 0;
  border-bottom: 1px solid var(--line);
}
.mission-drawer .detail-section h4 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 17px;
  letter-spacing: -0.02em;
  text-transform: none;
  font-weight: 600;
}
.mission-drawer .section-title-row {
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.mission-drawer .section-title-row h4 {
  margin-bottom: 0;
}
.mission-drawer .detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.mission-drawer .info-box {
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.mission-drawer .info-box small {
  font-size: 12px;
  font-weight: 650;
  text-transform: none;
  letter-spacing: 0;
}
.mission-drawer .info-box strong {
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.mission-drawer .assignee-list {
  gap: 10px;
  margin-top: 14px;
}
.mission-drawer .assignee-card {
  padding: 14px;
  border-radius: var(--r);
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}
.mission-drawer .assignee-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}
.mission-drawer .assignee-copy strong {
  font-size: 14px;
}
.mission-drawer .assignee-copy span {
  font-size: 12px;
  line-height: 1.5;
}
.mission-drawer .communication-section {
  padding-top: 20px;
}
.mission-drawer .communication-panel {
  margin-top: 14px;
  padding: 16px;
  border-radius: var(--r);
}
.mission-drawer .comments-list {
  max-height: min(50vh, 420px);
}
.mission-drawer .comment-form .textarea {
  min-height: 96px;
}
.mission-drawer .field-cycle-subtitle {
  font-size: 13px;
  line-height: 1.5;
}
.mission-drawer .field-step {
  padding: 14px;
}
.mission-drawer .field-step strong {
  font-size: 13px;
}
.mission-drawer .field-step small {
  font-size: 12px;
  line-height: 1.5;
}
.mission-drawer .field-report-card {
  padding: 18px;
  margin: 20px 0;
  border-radius: var(--r);
  background: var(--surface-2);
}
.mission-drawer .field-report-card p {
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.mission-drawer .timeline-item strong {
  font-size: 13px;
}
.mission-drawer .timeline-item p {
  font-size: 13px;
  line-height: 1.6;
}
.mission-drawer-updating {
  cursor: progress;
}
@media (max-width: 1200px) {
  .mission-drawer {
    width: min(1040px, 86vw);
  }
}
@media (max-width: 820px) {
  .mission-drawer {
    width: 100vw;
  }
  .mission-drawer .mission-drawer-head {
    padding: 16px 18px;
  }
  .mission-drawer .mission-drawer-body {
    padding: 18px 14px 26px;
  }
  .mission-detail-hero {
    padding: 18px;
  }
  .mission-drawer .detail-title {
    font-size: 26px;
  }
  .mission-drawer .detail-section {
    padding: 16px;
  }
  .mission-drawer .detail-grid {
    grid-template-columns: 1fr;
  }
  .action-panel-buttons .btn {
    flex: 1 1 auto;
  }
}
@media (max-width: 470px) {
  .action-panel-buttons .btn {
    width: 100%;
  }
}
/* V1.9.3.3 — Filtering & Status Consistency */
.list-filter-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 13px 15px;
  margin-bottom: 14px;
  box-shadow: none;
}
.list-filter-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(150px, 190px)) auto;
  gap: 10px;
  align-items: end;
}
.list-filter-panel .field {
  margin: 0;
}
.list-filter-panel .field label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 600;
}
.list-filter-reset {
  display: flex;
  align-items: flex-end;
  padding-bottom: 1px;
}
.list-filter-reset .btn {
  white-space: nowrap;
}
.planning-status {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 2px 6px;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--line);
}
.month-mission {
  flex-wrap: wrap;
  border-radius: var(--r-sm);
}
.month-mission .planning-status {
  margin-left: auto;
}
.calendar-item .planning-status {
  margin-top: 4px;
  width: max-content;
}
.month-mission.mission-state-completed,
.calendar-item.mission-state-completed {
  border-left-color: var(--success);
  background: var(--success-soft);
}
.planning-status.mission-state-completed {
  background: var(--success-soft);
  color: var(--success);
  border-color: var(--line);
}
.month-mission.mission-state-blocked,
.calendar-item.mission-state-blocked {
  border-left-color: var(--warning);
  background: var(--warning-soft);
}
.planning-status.mission-state-blocked {
  background: var(--warning-soft);
  color: var(--warning);
  border-color: var(--line);
}
.month-mission.mission-state-refused,
.calendar-item.mission-state-refused,
.month-mission.mission-state-cancelled,
.calendar-item.mission-state-cancelled {
  border-left-color: var(--danger);
  background: var(--danger-soft);
}
.planning-status.mission-state-refused,
.planning-status.mission-state-cancelled {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: var(--line);
}
.month-mission.mission-state-in_progress,
.calendar-item.mission-state-in_progress {
  border-left-color: var(--warning);
  background: var(--surface-2);
}
.planning-status.mission-state-in_progress {
  background: var(--warning-soft);
  color: var(--warning);
  border-color: var(--line);
}
.month-mission.mission-state-accepted,
.calendar-item.mission-state-accepted {
  border-left-color: var(--brand);
  background: var(--surface-2);
}
.planning-status.mission-state-accepted {
  background: var(--brand-soft);
  color: var(--brand);
  border-color: var(--line);
}
.month-mission.mission-state-to_accept,
.calendar-item.mission-state-to_accept {
  border-left-color: var(--brand);
  background: var(--surface-2);
}
.planning-status.mission-state-to_accept {
  background: var(--surface-2);
  color: var(--info);
  border-color: var(--line);
}
@media (max-width: 1050px) {
  .list-filter-row {
    grid-template-columns: 1fr 1fr;
  }
  .list-filter-search {
    grid-column: 1/-1;
  }
  .list-filter-reset {
    align-items: center;
  }
}
@media (max-width: 620px) {
  .list-filter-row {
    grid-template-columns: 1fr;
  }
  .list-filter-search {
    grid-column: auto;
  }
}
.month-mission.urgent,
.calendar-item.urgent {
  box-shadow: inset -3px 0 0 var(--danger);
}
/* V1.9.3.4 — Export UI delivery hardening: shared professional export action. */
.btn-export {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-weight: 600;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease,
    background 0.16s ease;
  background: var(--button-secondary-bg);
  color: var(--button-secondary-ink);
  box-shadow: none;
  border-color: var(--control-line);
}
.btn-export:hover:not(:disabled),
.btn-export:active:not(:disabled) {
  border-color: var(--line);
  background: var(--button-secondary-hover);
  box-shadow: none;
  transform: none;
}
.btn-export:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.btn-export:active {
  transform: translateY(0);
}
.export-action-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: var(--r);
  background: transparent;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}
@media (max-width: 620px) {
  .btn-export {
    width: 100%;
  }
}
/* V1.9.3.5 — Evidence lifecycle */
.field-proof {
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.field-proof-main {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.field-proof-main > span {
  width: 30px;
  height: 30px;
  border-radius: var(--r);
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
}
.field-proof-main > div {
  display: grid;
  min-width: 0;
}
.field-proof-main strong {
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.field-proof-main small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.field-proof-remove {
  color: var(--danger);
  font-weight: 600;
}
.field-proof-remove:hover {
  background: var(--danger-soft);
}
.evidence-lock {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
}
/* V1.10 Workforce Roster */
.workforce-card {
  cursor: pointer;
}
.workforce-statuses {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.workforce-roster-list {
  display: grid;
  gap: 8px;
}
.workforce-person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
@media (max-width: 720px) {
  .workforce-statuses {
    justify-content: flex-start;
  }
  .workforce-card {
    align-items: flex-start;
  }
}
/* V1.10.1 — Assignment Modes */
.assignment-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.assignment-mode-card {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
.assignment-mode-card:hover {
  border-color: var(--brand);
  box-shadow: none;
  transform: none;
}
.assignment-mode-card:has(input:checked) {
  border-color: var(--brand);
  box-shadow: none;
}
.assignment-mode-card input {
  margin-top: 3px;
  accent-color: var(--brand);
}
.assignment-mode-card span {
  display: grid;
  gap: 4px;
}
.assignment-mode-card strong {
  font-size: 13px;
}
.assignment-mode-card small {
  color: var(--muted);
  line-height: 1.45;
}
@media (max-width: 760px) {
  .assignment-mode-grid {
    grid-template-columns: 1fr;
  }
}
.assignment-withdrawn {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.mission-drawer .timeline-rich {
  align-items: flex-start;
}
.mission-drawer .timeline-content {
  min-width: 0;
  flex: 1;
}
.mission-drawer .timeline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 12px;
  flex-wrap: wrap;
}
.mission-drawer .timeline-head strong {
  font-size: 13px;
}
.mission-drawer .timeline-head time {
  font-size: 12px;
  color: var(--muted);
  white-space: normal;
}
.mission-drawer .timeline-actor {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.mission-drawer .timeline-details {
  margin-top: 7px;
  padding: 12px;
  border-radius: var(--r);
  background: var(--surface);
  display: grid;
  gap: 3px;
}
.mission-drawer .timeline-details p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text);
}
@media (max-width: 820px) {
  .sidebar.mobile-open {
    display: flex;
    inset: var(--topbar) auto 0 0;
    width: min(320px, 90vw);
    overflow-y: auto;
    z-index: 35;
  }
  .sidebar.mobile-open .sidebar-foot {
    padding-bottom: 90px;
  }
  .sidebar.mobile-open .nav {
    flex-shrink: 0;
  }
}
.performance-period {
  margin-bottom: 18px;
}
.performance-period-fields {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}
.performance-period-fields label {
  display: grid;
  gap: 6px;
  flex: 1;
  min-width: 155px;
}
.performance-period-fields > .btn {
  min-height: 42px;
}
.performance-period > p {
  font-size: 12px;
  margin-bottom: 0;
}
.pilotage-workload details {
  margin-top: 20px;
  font-size: 13px;
}
.pilotage-workload details summary {
  cursor: pointer;
  font-weight: 600;
}
@media (max-width: 620px) {
  .performance-period-fields > .btn {
    flex: 1;
    min-width: 120px;
  }
}
.dashboard-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}
/* Shared, bounded lists; controls stay outside the data surface. */
.list-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  margin: 12px 0 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--muted);
  font-size: 12px;
}
.pagination-summary {
  font-weight: 650;
  color: var(--ink);
}
.pagination-size,
.pagination-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pagination-size select {
  min-height: 36px;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 7px;
  background: var(--surface);
  color: var(--ink);
}
.pagination-actions button {
  min-height: 36px;
}
.pagination-actions > span {
  white-space: nowrap;
}
.mission-list,
.task-list {
  scroll-margin-top: 90px;
}
.planning-quick-filters {
  flex-wrap: wrap;
}
mf-date.input {
  width: 100%;
}
@media (max-width: 600px) {
  .list-pagination {
    padding: 12px;
    gap: 12px;
  }
  .pagination-actions {
    width: 100%;
    justify-content: space-between;
  }
  .pagination-actions button {
    min-height: 44px;
  }
  .planning-clarity {
    align-items: stretch;
  }
}
@media (max-width: 600px) {
  .mission-filter-primary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mission-filter-primary .filter-search {
    grid-column: 1/-1;
  }
  .mission-filter-period {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mission-filter-period .filter-presets {
    grid-column: 1/-1;
  }
  .mission-filter-period .field {
    min-width: 0;
  }
  .page-head {
    gap: 14px;
  }
}
.form-feedback {
  color: var(--danger);
  background: var(--danger-soft, var(--surface-2));
  border-radius: var(--r);
  padding: 12px;
  overflow-wrap: anywhere;
}
.list-pagination [role="alert"] {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
/* Checklist authoring reuses the same point fields before and after creation. */
.checklist-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.65fr);
  gap: 12px;
  align-items: end;
  padding: 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin-top: 18px;
}
.checklist-composer .field {
  min-width: 0;
  margin: 0;
}
.checklist-composer .input,
.checklist-composer .select {
  width: 100%;
  min-width: 0;
}
.checklist-add {
  grid-column: 1/-1;
  justify-self: start;
  border-color: var(--brand);
  color: var(--brand);
  font-weight: 600;
  min-height: 44px;
}
.checklist-draft {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  min-width: 0;
}
.checklist-draft h4 {
  margin: 0;
  font-size: 17px;
}
.checklist-draft .help {
  line-height: 1.6;
}
.checklist-draft-items {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.checklist-draft-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.65fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.checklist-draft-row strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.checklist-draft-row .select {
  min-width: 0;
}
.checklist-template {
  padding: 14px;
  margin: 14px 0;
  background: var(--surface-2);
  border-radius: var(--r);
}
.checklist-template ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}
.checklist-template li {
  display: flex;
  align-items: start;
  gap: 10px;
  justify-content: space-between;
}
.checklist-template li > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.checklist-template small {
  color: var(--muted);
  line-height: 1.5;
}
.checklist-badge {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  flex: none;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  padding: 4px 8px;
  border-radius: var(--r);
  white-space: nowrap;
}
.checklist-badge.is-required {
  background: var(--warning-soft);
  color: var(--warning);
}
.checklist-badge.is-optional {
  background: var(--surface-2);
  color: var(--brand);
}
.mission-checklist {
  scroll-margin-top: 105px;
}
.mission-checklist:focus {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
.mission-checklist .check-list {
  max-height: none;
  overflow: visible;
}
.mission-checklist .checklist-summary {
  padding: 14px 16px;
  border-radius: var(--r);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}
.mission-checklist progress {
  display: block;
  width: 100%;
  height: 10px;
  accent-color: var(--brand);
  margin: 0 0 18px;
}
.mission-checklist .checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  min-width: 0;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.mission-checklist .checklist-item > label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}
.mission-checklist .checklist-item input {
  flex: none;
  margin-top: 4px;
  width: 19px;
  height: 19px;
}
.checklist-item-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.checklist-item-copy strong {
  font-size: 14px;
  line-height: 1.6;
}
.checklist-item-copy small {
  font-size: 12px;
  line-height: 1.5;
}
/* Existing mission sheet: readable groups, content and commands remain in place. */
.mission-drawer .mission-execution-actions {
  padding: 16px;
  background: var(--brand-soft);
  border-radius: var(--r);
}
.mission-action-group + .mission-action-group {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.mission-drawer .mission-instructions-section {
  background: var(--surface-2);
}
.mission-instructions-section .info-box {
  background: var(--surface-2);
  border: 0;
}
.mission-instructions-section strong,
.mission-detail-description {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.mission-drawer .detail-section h5 {
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 8px;
  color: var(--ink);
}
.mission-drawer .detail-section h6 {
  font-size: 13px;
  margin: 0 0 8px;
  color: var(--ink);
}
.mission-drawer .field-report-head,
.mission-drawer .field-proof-head,
.mission-drawer .field-action-bar {
  gap: 14px;
  flex-wrap: wrap;
}
.mission-drawer .field-report-head > div {
  min-width: 0;
}
.mission-drawer .field-report-head strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.mission-drawer .field-action-bar {
  padding: 16px;
  margin: 18px 0;
}
.mission-drawer .field-action-bar span {
  font-size: 12px;
}
.mission-drawer .report-text {
  margin-top: 18px;
}
.report-materials {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}
.report-materials li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  background: var(--surface);
  border-radius: var(--r);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.report-materials li > span {
  min-width: 0;
}
.report-materials li > strong {
  flex: none;
  font-weight: 650;
}
.mission-drawer .field-validation {
  background: var(--surface-2);
}
.field-validation .validation-confirmed {
  color: var(--success);
  font-weight: 600;
}
.mission-drawer .field-evidence-panel {
  padding: 18px;
  background: var(--surface-2);
  border-radius: var(--r);
  margin-top: 20px;
}
.mission-drawer .field-proof-head {
  margin: 0 0 14px;
}
.mission-drawer .field-proof-head span {
  font-size: 12px;
}
.mission-drawer .field-proof-main strong {
  font-size: 13px;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}
.mission-drawer .field-proof-main small {
  font-size: 11px;
  line-height: 1.5;
}
.mission-drawer .field-proof-empty {
  font-size: 13px;
  padding: 18px;
}
.field-report-export {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}
.mission-drawer .field-report-download {
  margin: 0;
  font-size: 13px;
}
.mission-drawer .comment {
  padding: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.mission-drawer .comment-head {
  font-size: 12px;
  line-height: 1.5;
  flex-wrap: wrap;
}
.mission-drawer .comment p {
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.mission-drawer .comment-form {
  padding-top: 16px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
}
.mission-drawer .mission-history-section {
  background: var(--surface);
}
.mission-drawer .timeline-content {
  overflow-wrap: anywhere;
}
.mission-drawer .btn {
  min-height: 44px;
}
.mission-drawer .help {
  font-size: 12px;
  line-height: 1.6;
}
.mission-drawer .form-grid,
.mission-drawer .field {
  min-width: 0;
}
@media (max-width: 620px) {
  .checklist-composer,
  .checklist-draft-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .checklist-composer {
    padding: 13px;
  }
  .checklist-add {
    justify-self: stretch;
  }
  .checklist-draft-row > [data-draft-remove] {
    justify-self: end;
  }
  .mission-checklist .checklist-item {
    flex-wrap: wrap;
  }
  .mission-checklist .checklist-item > label {
    flex-basis: 100%;
  }
  .mission-drawer .field-report-card,
  .mission-drawer .field-evidence-panel {
    padding: 14px;
  }
  .mission-drawer .field-report-export {
    align-items: stretch;
    flex-direction: column;
  }
  .mission-drawer .field-report-download {
    width: 100%;
  }
  .mission-drawer .field-report-head .btn,
  .mission-drawer .field-proof-head .btn {
    max-width: 100%;
  }
  .mission-drawer .mission-execution-actions {
    padding: 12px;
  }
}
.mission-schedule {
  white-space: pre-line;
}
.month-mission .mission-day-note,
.calendar-item .mission-day-note {
  font-size: 11px;
  line-height: 1.4;
  white-space: normal;
}
.calendar-item .mission-day-note,
.planning-compact .calendar-item .mission-day-note {
  display: block;
}
.month-mission .mission-day-note {
  flex-basis: 100%;
}
/* Week cards constrain unbroken titles without changing stored content or month layout. */
.week-grid-7 .week-slot {
  min-width: 0;
}
.week-grid-7 .calendar-item {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.week-grid-7 .calendar-item strong,
.week-grid-7 .calendar-item > span {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.navigation-feedback {
  padding: 8px 24px;
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
/* Remote selectors keep selected values visible while searching one SQL page. */
.choice-tools {
  display: grid;
  gap: 6px;
  margin: 8px 0;
  min-width: 0;
}
.choice-navigation {
  align-items: center;
  justify-content: space-between;
}
.choice-navigation [role="status"] {
  font-size: 12px;
  text-align: center;
}
.choice-navigation .btn {
  min-height: 36px;
}
.check-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}
/* Audit F16: compact controls with visible active filters and native keyboard access. */
.planning-mobile-controls {
  display: none;
}
.planning-person-name {
  border: 0;
  background: transparent;
  padding: 4px 0;
  text-align: left;
  font: inherit;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
  overflow-wrap: anywhere;
}
.planning-person-name:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}
.planning-active-focus {
  font-size: 12px;
  color: var(--success);
  overflow-wrap: anywhere;
}
.toast-stack {
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.toast-dismiss {
  border: 0;
  background: transparent;
  color: inherit;
  min-width: 32px;
  min-height: 32px;
  padding: 4px;
  cursor: pointer;
}
.toast-message {
  flex: 1;
}
@media (max-width: 600px) {
  .planning-mobile-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .planning-clarity:not(.filters-expanded) .planning-clarity-controls {
    display: none;
  }
  .planning-clarity:not(.filters-expanded)
    [data-plan-filter]:not([data-plan-filter="all"]):not(
      [data-plan-filter="mine"]
    ):not([data-plan-filter="attention"]):not(.btn-primary) {
    display: none;
  }
  .planning-mobile-controls .btn,
  .planning-quick-filters .btn {
    min-height: 40px;
  }
  .planning-focus {
    display: grid;
    grid-template-columns: 1fr;
  }
  .toast-stack {
    position: static;
    max-height: 25vh;
    overflow: auto;
    margin: 8px 0;
    flex: none;
  }
  .toast-stack:empty {
    display: none;
  }
  .toast {
    min-width: 0;
    max-width: none;
  }
  .modal-foot,
  .drawer-footer {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  .planning-person-name {
    min-height: 44px;
  }
}
/* Shared chooser: the search, navigation and value own one layout column. */
.choice-group {
  display: grid;
  gap: 6px;
  min-width: 0;
  flex: 1 1 260px;
  max-width: 100%;
}
.choice-group > .select {
  width: 100%;
  min-width: 0;
}
.choice-group .choice-tools {
  margin: 0;
}
.choice-navigation {
  display: grid;
  gap: 8px;
}
.choice-navigation [role="status"] {
  white-space: nowrap;
}
.choice-navigation .btn {
  min-width: 0;
  padding-inline: 10px;
}
.check-row > span:not(.avatar) {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.check-row small {
  display: block;
  color: var(--muted);
}
.planning-focus {
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}
.planning-clarity-controls {
  min-width: 0;
  max-width: 100%;
}
.filter-bar > .choice-group {
  flex: 1 1 280px;
}
.pagination-summary {
  white-space: nowrap;
  flex-shrink: 0;
}
.pagination-actions {
  flex-wrap: wrap;
}
.projected-mission {
  border-style: dashed !important;
}
.projection-note {
  margin: 8px 0;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 380px) {
  .choice-navigation {
    grid-template-columns: 1fr 1fr;
  }
  .choice-navigation [role="status"] {
    grid-column: 1/-1;
    grid-row: 1;
  }
  .choice-navigation .btn {
    width: 100%;
  }
}
.choice-navigation {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.choice-navigation [role="status"] {
  grid-column: 1/-1;
  grid-row: 1;
}
.choice-navigation button {
  justify-content: center;
}
.choice-tools input {
  min-width: 0;
  width: 100%;
}
.profile-mini > div {
  min-width: 0;
}
#logout {
  color: var(--muted);
  justify-content: flex-start;
}
.kpi-card:last-child {
  border-right: 0;
}
.profile-mini .avatar {
  display: grid;
  place-items: center;
  color: var(--brand);
}
.login-box .brand-lockup {
  color: var(--ink);
  margin-bottom: 24px;
}
/* Existing template presentation moved from static inline attributes. */
.choice-count {
  width: 92px;
  margin-left: auto;
  flex: none;
}
.form-alert {
  color: var(--danger);
}
.team-entry {
  text-align: left;
  border-style: solid;
}
.team-entry-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.team-entry-title {
  margin: 0 0 6px;
}
.team-entry-meta {
  margin: 0;
}
.team-entry-status {
  display: grid;
  gap: 6px;
  text-align: right;
}
.login-panel-wide {
  grid-column: 1/-1;
}
.login-feedback {
  color: var(--danger);
  min-height: 18px;
}
.mfa-code-list {
  white-space: pre-wrap;
}
.field-feedback {
  margin-top: 12px;
}
.form-alert-spaced {
  color: var(--danger);
  margin-top: 12px;
}
.document-name {
  overflow-wrap: anywhere;
}
.signature-canvas {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  border: 1px solid var(--control-line);
  touch-action: none;
  background: var(--surface);
}
.mission-range {
  font-weight: 600;
  line-height: 1.6;
}
.mission-person-avatar {
  width: 30px;
  height: 30px;
  border-radius: var(--r-sm);
  font-size: 10px;
}
.mission-person-name {
  font-size: 13px;
}
.mission-block {
  display: block;
}
.mission-actions-inline {
  align-items: center;
}
.subscription-section {
  padding: 24px;
}
.subscription-section-spaced {
  padding: 24px;
  margin-top: 20px;
}
.login-copy .eyebrow {
  color: var(--surface);
}
.chip-blocked {
  background: var(--warning-soft);
  color: var(--warning);
}

/* Keep creation primary on small screens; all secondary actions remain keyboard accessible. */
.planning-actions-toggle { display: none; }
.planning-secondary-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 600px) {
  .planning-actions-toggle { display: inline-flex; }
  .planning-secondary-actions:not(.is-open) { display: none; }
  .planning-secondary-actions { width: 100%; }
  .planning-head .page-actions .btn { min-height: 44px; }
}
