/* Magnet campaign language, scoped to the application shell and brand surfaces. */
:root {
  --magnet-black: #070807;
  --magnet-soft: #111210;
  --magnet-paper: #f4f4ef;
  --magnet-lime: #d0ff00;
  --accent: var(--magnet-lime);
  --border: #e2e3db;
  --muted: #73766d;
  --motion: 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
  background: var(--magnet-paper);
}
.sidebar {
  background: var(--magnet-black);
  border-right: 1px solid #22251d;
}
.sidebar .nav-item {
  position: relative;
  border-radius: 3px;
  transition:
    background var(--motion),
    color var(--motion);
}
.sidebar .nav-item.active {
  background: #242b15;
  color: #fff;
  box-shadow: none;
}
.sidebar .nav-item.active:before {
  content: '';
  position: absolute;
  inset: 11px auto 11px 0;
  width: 2px;
  background: var(--magnet-lime);
}
.sidebar .nav-item.active svg {
  color: var(--magnet-lime);
}
.topbar {
  background: var(--magnet-paper);
}
.workspace {
  background: var(--magnet-paper);
}
.workspace[data-screen='today'] > .page-intro,
.review-heading {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--magnet-black);
  color: var(--magnet-paper);
  padding: 28px 30px;
  border-radius: 4px;
  min-height: 132px;
  margin-bottom: 25px;
}
.workspace[data-screen='today'] > .page-intro:after,
.review-heading:after,
.profile-cover:not(:has(img)):after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 48%;
  height: 130%;
  right: -8%;
  top: -45%;
  transform: rotate(-23deg);
  background: linear-gradient(
    0deg,
    transparent 42%,
    #d0ff0024 47%,
    #d0ff0070 49%,
    #d0ff001c 51%,
    transparent 57%
  );
  filter: blur(5px);
  pointer-events: none;
}
.workspace[data-screen='today'] > .page-intro p,
.review-heading p,
.review-heading .quiet {
  color: #b6b9ae;
}
.workspace[data-screen='today'] > .page-intro h1 {
  font-size: 32px;
  letter-spacing: -1.2px;
}
.workspace[data-screen='today'] > .page-intro h1:before {
  content: 'TODAY’S CLIENT PULSE';
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.3px;
  color: var(--magnet-lime);
  margin-bottom: 12px;
}
.review-heading {
  border-bottom: 2px solid var(--magnet-lime);
}
.review-heading h1 {
  letter-spacing: -1px;
}
.review-heading .avatar {
  background: white;
  color: #151811;
}
.review-heading .health {
  position: relative;
  z-index: 1;
}
.primary,
.review-button {
  border-radius: 3px;
}
.option.chosen,
.option.chosen:hover {
  background: #20231b;
  color: white;
  border-color: #20231b;
}
.option.neutral-selected {
  background: #e5e6df;
  border-color: #979c8b;
  color: #363b2e;
}
.option.negative,
.option.negative:hover {
  background: #f5eadc;
  color: #775126;
  border-color: #c7a16f;
}
.option {
  transition:
    background var(--motion),
    border-color var(--motion),
    color var(--motion);
}
.client-row,
.queue-row {
  position: relative;
  transition:
    background var(--motion),
    box-shadow var(--motion);
}
.client-row:hover,
.queue-row:hover {
  background: #f0f2e8;
  box-shadow: inset 2px 0 var(--magnet-lime);
}
.client-avatar img,
.client-logo img {
  object-fit: contain;
}
.profile-cover:not(:has(img)) {
  isolation: isolate;
  position: relative;
  background: #111210;
  overflow: hidden;
}
.profile-cover:not(:has(img)):after {
  width: 75%;
  right: -5%;
  top: -20%;
  height: 170%;
}
.workspace .empty {
  border-left: 2px solid var(--magnet-lime);
  border-radius: 0;
  background: #eeefe7;
}
.workspace .empty h3 {
  letter-spacing: -0.6px;
}
.loading-screen {
  background: var(--magnet-black);
  color: var(--magnet-paper);
  font-size: 24px;
  letter-spacing: -0.7px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}
.loading-screen:before {
  content: 'MAGNET / CLIENT PULSE';
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--magnet-lime);
}
.notification-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}
.settings-panel {
  background: white;
  border: 1px solid var(--border);
  padding: 26px;
  border-radius: 4px;
  margin-bottom: 24px;
  min-width: 0;
}
.settings-panel h2 {
  font-size: 21px;
  letter-spacing: -0.6px;
  margin-top: 0;
}
.settings-panel label {
  display: grid;
  gap: 8px;
  margin: 19px 0;
  font-weight: 500;
}
.settings-panel input:not([type='checkbox']),
.settings-panel select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d6d9cf;
  border-radius: 3px;
  background: #fff;
  color: #151811;
  min-width: 0;
}
.settings-panel small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}
.settings-panel label.setting-check {
  display: flex;
  align-items: center;
  gap: 10px;
}
.setting-check input {
  accent-color: #252c12;
}
.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}
.report-actions button {
  min-height: 38px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: #68714d;
}
.summary-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-block: 1px solid var(--border);
  padding: 10px 0;
  margin-bottom: 22px;
}
.summary-toolbar p {
  margin: 5px 0;
}
.settings-panel hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}
.delivery-history table {
  width: 100%;
  border-collapse: collapse;
}
.delivery-history th,
.delivery-history td {
  text-align: start;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.settings-panel .table-scroll {
  overflow: auto;
}
@media (prefers-reduced-motion: no-preference) {
  .workspace[data-screen='review'] .review-layout {
    animation: magnet-enter var(--motion);
  }
  .drawer {
    animation: magnet-enter var(--motion);
  }
  .review-heading img {
    animation: magnet-identity var(--motion);
  }
  progress::-webkit-progress-value {
    transition: width var(--motion);
  }
  @keyframes magnet-enter {
    from {
      opacity: 0.3;
      transform: translateX(8px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  @keyframes magnet-identity {
    from {
      opacity: 0.3;
      transform: scale(0.98);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
}
@media (max-width: 800px) {
  .notification-grid {
    grid-template-columns: 1fr;
  }
  .settings-panel {
    padding: 20px;
  }
  .summary-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .workspace[data-screen='today'] > .page-intro,
  .review-heading {
    padding: 22px;
    min-height: 125px;
  }
  .workspace[data-screen='today'] > .page-intro h1 {
    font-size: 27px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.workspace[data-screen='today'] > .page-intro .eyebrow {
  color: var(--magnet-lime);
}
.workspace[data-screen='today'] > .page-intro h1:before {
  display: none;
}
.report-actions button.save-exit,
.settings-panel button.save-exit {
  border: 1px solid #d9dccf;
  padding: 10px 14px;
  background: #fff;
  color: #20241a;
}
.settings-panel .report-actions button.primary {
  color: #111;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.page-heading h1 {
  margin: 8px 0;
  letter-spacing: -1px;
}

.review-heading .header-progress {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: 3px;
  border: 0;
  appearance: none;
  border-radius: 0;
  background: #272c21;
}
.review-heading {
  border-bottom: 0;
}
.header-progress::-webkit-progress-bar {
  background: #272c21;
}
.header-progress::-webkit-progress-value {
  background: var(--magnet-lime);
}
.header-progress::-moz-progress-bar {
  background: var(--magnet-lime);
}
.sidebar {
  background-image: radial-gradient(#ffffff06 0.5px, transparent 0.7px);
  background-size: 3px 3px;
}
.review-heading .quiet {
  display: block;
  font-size: 11px;
  margin-top: 10px;
}

.review-heading .health.critical {
  color: #f2b890;
}
.review-heading .health.attention {
  color: #e7d28f;
}
.review-heading .health.good {
  color: #d1dcbb;
}

.settings-panel .setting-check input {
  width: 16px;
  height: 16px;
  min-width: 16px;
  flex: 0 0 16px;
  padding: 0;
  margin: 0;
}
.settings-panel label.setting-check {
  justify-content: flex-start;
  line-height: 1.5;
  font-weight: 400;
}
@media (max-width: 600px) {
  .review-heading {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px 14px;
  }
  .review-heading > .client-avatar,
  .review-heading > .avatar {
    grid-row: 1/3;
  }
  .review-heading > div:last-of-type {
    grid-column: 2;
  }
  .review-heading h1 {
    font-size: 23px;
  }
  .review-heading p {
    margin-top: 6px;
  }
  .review-heading .quiet {
    margin-top: 5px;
  }
}
.budget-module,
.reminder-module {
  margin: 26px 0 32px;
}
.budget-module td small,
.reminder-module td small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
  max-width: 300px;
  line-height: 1.5;
}
.budget-module .data-table {
  min-width: 1000px;
}
.budget-attention {
  background: #faf6e9;
}
.budget-module small.budget-warning {
  color: #7a5721;
}
.notification-digest {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
}
.notification-digest button {
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: start;
  border: 1px solid #d8ddcb;
  border-left: 3px solid var(--accent);
  background: #fff;
  padding: 14px 18px;
  color: #171b12;
  border-radius: 3px;
}
.notification-digest span {
  color: #69705c;
  font-size: 12px;
}
.reminder-module .data-table {
  min-width: 850px;
}
.reminder-module .data-table td {
  max-width: 350px;
}
.reminder-module .text-button {
  display: block;
  margin: 5px 0;
}
.budget-module .quiet {
  font-size: 11px;
  line-height: 1.7;
}
.review-heading + .budget-module {
  margin-top: 20px;
}
.sidebar nav {
  overflow: auto;
  min-height: 0;
}
.sidebar-bottom {
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .reminder-module .data-table {
    min-width: 0;
    display: block;
  }
  .reminder-module .data-table thead {
    display: none;
  }
  .reminder-module .data-table tbody {
    display: block;
  }
  .reminder-module .data-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--border);
    padding: 12px;
  }
  .reminder-module .data-table td {
    display: block;
    border: 0;
    max-width: none;
    padding: 6px 8px;
    white-space: normal;
  }
  .reminder-module .data-table td:first-child,
  .reminder-module .data-table td:last-child {
    grid-column: 1/-1;
  }
  .reminder-module .data-table td:last-child {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
  }
  .reminder-module .queue-heading {
    align-items: start;
    gap: 12px;
  }
  .notification-digest button {
    flex: 1;
  }
  .budget-module .queue-heading {
    gap: 12px;
  }
  .budget-module .primary {
    flex-shrink: 0;
  }
}

.preview-notice {
  font-size: 11px;
  line-height: 1.6;
  border-bottom: 1px solid var(--border);
  padding: 0 0 12px;
  margin-bottom: 22px;
  color: #68705e;
}
.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #080a08;
  color: #fff;
}
.auth-card {
  width: min(460px, 100%);
  padding: 38px;
  border: 1px solid #363b30;
  border-radius: 18px;
  background: #151812;
}
.auth-card h1 {
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -1.3px;
}
.auth-card p {
  line-height: 1.6;
  color: #c4c9bf;
}
.auth-card label {
  display: grid;
  gap: 8px;
  margin: 25px 0;
}
.auth-card input {
  width: 100%;
  padding: 13px;
  background: #fff;
  color: #141812;
  border: 1px solid #555;
  border-radius: 8px;
}
.auth-card .primary {
  width: 100%;
  margin: 8px 0;
}
.auth-card small {
  display: block;
  margin-top: 20px;
  color: #bcc7b2;
}
.auth-card .eyebrow,
.admin-monitor .eyebrow {
  color: #c4ff00;
  letter-spacing: 2px;
  font-size: 11px;
}
.admin-monitor {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 24px;
}
.admin-monitor header {
  background: #12170e;
  color: white;
  padding: 34px;
  border-radius: 18px;
  margin-bottom: 25px;
}
.admin-monitor h1 {
  font-size: 42px;
  letter-spacing: -1.6px;
}
.admin-monitor .report-metrics article {
  padding: 22px;
  border: 1px solid #e3e6dc;
  border-radius: 10px;
}
.admin-monitor footer {
  padding: 35px 0;
  color: #666;
}
.admin-monitor table {
  min-width: 650px;
}
.admin-monitor .table-scroll {
  overflow: auto;
}
@media (max-width: 600px) {
  .auth-card {
    padding: 24px;
  }
  .admin-monitor {
    padding: 15px;
  }
  .admin-monitor h1 {
    font-size: 32px;
  }
}

/* Authentication is outside the workspace sidebar layout. */
.auth-screen { margin: 0; width: 100%; max-width: none; }

.auth-card .auth-mode{background:transparent;color:#d7dfc9;border:1px solid #626d54;padding:12px;width:100%;border-radius:8px;cursor:pointer;margin-top:10px;font:inherit}.auth-card input[type=password]{color:#18200c;background:#f8ffd8}.auth-card label+label{margin-top:16px}

.auth-simple h1{font-size:32px;line-height:1.4;letter-spacing:0}.auth-simple p{font-size:16px}.auth-simple label{margin-top:20px}.auth-simple .auth-mode{border:0;font-size:15px;text-decoration:underline;min-height:44px}.auth-simple .primary{font-size:18px;font-weight:650}.auth-simple #auth-message:empty{display:none}.auth-simple #auth-message:not(:empty){color:#ffe9b5;font-size:15px}.auth-password-wrap{display:flex;gap:8px;align-items:center}.auth-password-wrap input{min-width:0;flex:1}.auth-password-wrap button{width:auto;min-height:44px;background:transparent;border:1px solid #626d54;border-radius:8px;color:#e8efdc;padding:8px 12px;cursor:pointer;font:inherit}.auth-simple input{font-size:16px}

.auth-simple label{font-size:15px;color:#dfe4d5}.auth-simple .primary{text-align:center}
