/* ── Notifications ────────────────────────────────────────────────────── */
/* A flat announcement surface: tone separation for the form, one lime signal
   on submit, no shadow.  The bell rides the same 18px icon slot as the other
   sidebar glyphs so the nav rhythm does not shift. */
.nav-icon svg {
  display: block;
  width: 16px;
  height: 16px;
  margin: 0 auto;
}

.notification-hint {
  max-width: 760px;
  margin: -8px 0 18px;
  color: var(--muted);
}

.notification-form {
  margin: 0 0 26px;
  padding: 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
}

.notification-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 0 14px;
}

.notification-form-grid .field {
  margin-bottom: 14px;
}

.notification-form .field > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.notification-form .field > span small {
  flex: 0 0 auto;
  margin: 0;
}

.notification-counter {
  color: var(--muted-2);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.notification-body-field,
.notification-link-field,
.notification-user-field {
  grid-column: 1 / -1;
}

.notification-audience-field .select {
  width: 100%;
}

.notification-form .field textarea {
  min-height: 120px;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
}

.notification-form .field-hint {
  margin: 6px 0 0;
}

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

#notification-submit {
  min-height: 44px;
  padding: 0 20px;
}

.notification-form .form-error {
  margin: 12px 0 0;
}

.notification-form .form-error:empty {
  min-height: 0;
  margin: 0;
}

.notification-history-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}

.notification-history-head h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.notification-title-cell {
  min-width: 150px;
  font-weight: 650;
}

.notification-body-cell {
  max-width: 320px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.notification-target {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.notification-target-user,
.notification-mono {
  font-family: var(--mono);
  font-size: 11.5px;
  overflow-wrap: anywhere;
}

.notification-target-user {
  color: var(--muted-2);
}

.notification-reads {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.notification-actions {
  white-space: nowrap;
}

.notification-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 4px;
}

.notification-detail-grid dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.notification-detail-grid dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.notification-detail-section {
  margin-top: 20px;
}

.notification-detail-section h4 {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.notification-detail-section .link-button {
  font-size: 13px;
}

.notification-detail-body {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 620px) {
  .notification-form {
    padding: 14px;
  }

  .notification-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .notification-body-cell {
    max-width: none;
  }

  .notification-form-actions .btn {
    width: 100%;
    min-height: 48px;
  }

  .notification-history-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .notification-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .login-screen {
    padding: 20px 16px;
    place-items: start center;
  }

  .login-card {
    margin-top: 4vh;
    padding: 28px 20px;
  }

  .login-card h1 {
    font-size: 26px;
  }

  .menu-toggle {
    min-width: 44px;
    padding: 0;
  }

  .menu-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }

  .topbar-current {
    max-width: 116px;
  }

  .data-table td {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
  }

  .section-tools {
    grid-template-columns: 1fr;
  }
}
