:root {
  color-scheme: light;
  --ink: #173d35;
  --ink-soft: #47645d;
  --muted: #788a82;
  --paper: #f3f5ef;
  --card: #fffefa;
  --mint: #d9f0dc;
  --mint-deep: #b9dfc1;
  --line: #e4e9df;
  --gold: #f4b85d;
  --danger: #a64c42;
  --shadow: 0 24px 70px rgba(31, 61, 51, .09);
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--paper); }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 2%, rgba(217, 240, 220, .8), transparent 28rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

button { cursor: pointer; }

button:focus-visible, input:focus-visible {
  outline: 3px solid rgba(45, 125, 99, .34);
  outline-offset: 2px;
}

#app-root { min-height: 100vh; }

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  color: var(--ink);
  font-weight: 780;
  letter-spacing: -.04em;
  font-size: 1.16rem;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  background: var(--ink);
  color: var(--mint);
}

.brand-mark svg { width: 23px; height: 23px; }

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  letter-spacing: 0;
  font-size: .68rem;
  font-weight: 550;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  align-items: center;
  gap: clamp(38px, 8vw, 104px);
  width: min(1120px, calc(100% - 48px));
  min-height: 100vh;
  margin: auto;
  padding: 56px 0;
}

.auth-story { max-width: 530px; }

.auth-story .brand { margin-bottom: 68px; }

.eyebrow {
  margin: 0 0 14px;
  color: #5c8371;
  font-size: .74rem;
  font-weight: 780;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.auth-story h1 {
  max-width: 540px;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 680;
  letter-spacing: -.075em;
  line-height: .98;
}

.auth-story h1 em {
  color: #5c8371;
  font-style: normal;
}

.auth-story-copy {
  max-width: 420px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.65;
}

.story-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
  color: var(--ink-soft);
  font-size: .9rem;
}

.story-note-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
}

.auth-card {
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid rgba(228, 233, 223, .9);
  border-radius: 28px;
  background: rgba(255, 254, 250, .93);
  box-shadow: var(--shadow);
}

.auth-card h2 {
  margin: 0 0 8px;
  font-size: 1.65rem;
  letter-spacing: -.045em;
}

.auth-card .subheading {
  margin: 0 0 28px;
  color: var(--muted);
  line-height: 1.55;
}

.field {
  display: grid;
  gap: 8px;
  margin: 17px 0;
  color: var(--ink-soft);
  font-size: .86rem;
  font-weight: 650;
}

.field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 720;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.button:hover { transform: translateY(-1px); }

.button-primary {
  background: var(--ink);
  color: white;
}

.button-primary:hover { background: #245347; }

.button-secondary {
  border-color: var(--line);
  background: #fffefa;
  color: var(--ink);
}

.button-quiet {
  min-height: 38px;
  padding: 0 11px;
  background: transparent;
  color: var(--ink-soft);
}

.button-danger { color: var(--danger); }

.auth-submit { width: 100%; margin-top: 7px; }

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #3e7864;
  font-weight: 720;
}

.auth-switch {
  margin: 20px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: .9rem;
}

.notice {
  padding: 14px 15px;
  border: 1px solid #e8d8b4;
  border-radius: 14px;
  background: #fff7e5;
  color: #735b2c;
  font-size: .87rem;
  line-height: 1.5;
}

.notice.error {
  border-color: #ecd4d1;
  background: #fff1ee;
  color: var(--danger);
}

.notice.success {
  border-color: #c7e5cf;
  background: #eff9f0;
  color: #356548;
}

.demo-button { width: 100%; margin-top: 16px; }

.app-shell {
  width: min(1080px, calc(100% - 48px));
  margin: auto;
  padding: 30px 0 64px;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 28px;
}

.account-area {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: .88rem;
}

.account-email {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, .7fr);
  align-items: start;
  gap: 20px;
}

.panel {
  border: 1px solid rgba(228, 233, 223, .9);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 8px 30px rgba(31, 61, 51, .035);
}

.checklist-panel { overflow: hidden; }

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 30px 22px;
}

.panel-heading h1 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 670;
  letter-spacing: -.06em;
  line-height: 1.1;
}

.panel-heading p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: .93rem;
}

.heading-actions {
  display: grid;
  flex: 0 0 166px;
  gap: 9px;
}

.heading-actions .text-button { justify-self: start; }

.date-control {
  display: grid;
  gap: 6px;
  min-width: 146px;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 650;
}

.date-control input {
  width: 100%;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
}

.date-control input[type="date"] {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

@supports (-webkit-touch-callout: none) {
  .date-control input[type="date"] { padding: 0; }
}

.progress-area { padding: 0 30px 24px; }

.progress-copy {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  color: var(--ink-soft);
  font-size: .8rem;
  font-weight: 680;
}

.progress-copy strong { color: var(--ink); }

.progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 20px;
  background: #e9eee6;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #78b88f, #45816d);
  transition: width .25s ease;
}

.task-list {
  display: grid;
  gap: 10px;
  padding: 0 18px 22px;
}

.activity-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
}

.activity-card.all-done {
  border-color: #d3e9d7;
  background: #fbfef9;
}

.activity-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 13px 13px 12px 17px;
}

.drag-handle {
  display: grid;
  flex: 0 0 24px;
  width: 24px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9aa99e;
  cursor: grab;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.drag-handle:hover { background: #f0f4ed; color: var(--ink-soft); }
.drag-handle:active { cursor: grabbing; }
.drag-handle svg { width: 13px; height: 18px; fill: currentColor; }
.is-reordering { user-select: none; -webkit-user-select: none; }
.is-dragging { position: relative; z-index: 2; opacity: .56; }
.activity-card.is-dragging,
.job-row.is-dragging { outline: 2px dashed #75a989; outline-offset: 2px; }

.activity-copy { min-width: 0; flex: 1; }

.activity-copy h2 {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: .98rem;
  font-weight: 730;
}

.activity-progress {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 20px;
  background: #f0f4ed;
  color: var(--ink-soft);
  font-size: .72rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.all-done .activity-progress { background: #e7f4e7; color: #356c4d; }

.job-list {
  display: grid;
  padding: 0 15px 12px;
}

.job-row {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 11px;
  padding: 7px 2px;
  border-top: 1px solid #edf0e9;
}

.job-row .drag-handle { flex-basis: 20px; width: 20px; height: 28px; }

.job-check {
  display: grid;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1.5px solid #d4dfd4;
  border-radius: 8px;
  background: #fff;
  color: white;
  transition: all .18s ease;
}

.job-check:hover { border-color: #71a584; }
.job-row.is-done .job-check { border-color: #4c8a67; background: #4c8a67; }
.job-check.is-checked { border-color: #4c8a67; background: #4c8a67; }
.job-check svg { width: 16px; height: 16px; }
.standalone-check { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 10px; }

.job-title {
  min-width: 0;
  color: var(--ink-soft);
  font-size: .87rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.job-row.is-done .job-title {
  color: #819589;
  text-decoration: line-through;
  text-decoration-color: #9ab6a4;
}

.no-jobdesk {
  margin: 0;
  padding: 12px 2px 5px;
  border-top: 1px solid #edf0e9;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.5;
}

.task-row {
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: 14px;
  padding: 13px 13px 13px 15px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
}

.task-row.is-done {
  border-color: #d3e9d7;
  background: #f5fbf4;
}

.task-check {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1.5px solid #d8e2d8;
  border-radius: 13px;
  background: #fff;
  color: white;
  transition: all .18s ease;
}

.task-check:hover { border-color: #71a584; }

.is-done .task-check {
  border-color: #4c8a67;
  background: #4c8a67;
}

.task-check svg { width: 20px; height: 20px; }

.task-copy { min-width: 0; flex: 1; }

.task-title {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: .98rem;
  font-weight: 700;
}

.is-done .task-title {
  color: #658071;
  text-decoration: line-through;
  text-decoration-color: #9ab6a4;
}

.task-schedule {
  margin-top: 5px;
  color: var(--muted);
  font-size: .78rem;
}

.task-actions {
  display: flex;
  align-items: center;
  gap: 3px;
}

.icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #71847a;
}

.icon-button:hover { background: #eef4ed; color: var(--ink); }

.icon-button svg { width: 17px; height: 17px; }

.empty-state {
  padding: 18px 20px 26px;
  color: var(--muted);
  text-align: center;
}

.empty-art {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  place-items: center;
  border-radius: 19px;
  background: var(--mint);
  color: var(--ink);
  font-size: 1.5rem;
}

.empty-state h3 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 1.02rem;
}

.empty-state p {
  max-width: 340px;
  margin: 0 auto 17px;
  font-size: .88rem;
  line-height: 1.5;
}

.add-first { margin: 0 auto; }

.side-column { display: grid; gap: 18px; }

.side-card { padding: 24px; }

.side-card h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -.025em;
}

.side-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.55;
}

.report-card {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.report-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.report-card h2 {
  margin: 0;
  font-size: .98rem;
  letter-spacing: -.025em;
}

.report-card .report-period {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .77rem;
}

.report-percent {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 20px;
  background: #f0f4ed;
  color: var(--ink);
  font-size: .84rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.report-card .report-details {
  margin: 0;
  color: var(--ink-soft);
  font-size: .82rem;
  line-height: 1.45;
}

.report-track {
  height: 8px;
  overflow: hidden;
  border-radius: 20px;
  background: #e9eee6;
}

.report-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #78b88f, #45816d);
  transition: width .25s ease;
}

.app-message { margin: 0 0 18px; }

dialog {
  width: min(490px, calc(100vw - 28px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(12, 35, 29, .23);
}

dialog::backdrop {
  background: rgba(18, 42, 35, .42);
  backdrop-filter: blur(3px);
}

.dialog-content { padding: 26px; }

.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.dialog-heading h2 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: -.045em;
}

.dialog-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .86rem;
}

.dialog-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #eff3ed;
  color: var(--ink-soft);
  font-size: 1.2rem;
}

.weekday-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 11px 0 21px;
}

.jobdesk-editor { margin: 20px 0 18px; }

.jobdesk-editor-heading { margin-bottom: 10px; }

.jobdesk-editor-heading strong,
.jobdesk-editor-heading span { display: block; }

.jobdesk-editor-heading strong {
  color: var(--ink-soft);
  font-size: .86rem;
}

.jobdesk-editor-heading span {
  margin-top: 4px;
  color: var(--muted);
  font-size: .78rem;
}

#jobdesk-fields { display: grid; gap: 8px; }

.jobdesk-input-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.jobdesk-input {
  width: 100%;
  min-width: 0;
  height: 43px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: .86rem;
}

.remove-jobdesk {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: #f3f5ef;
  color: var(--muted);
  font-size: 1.2rem;
}

.remove-jobdesk:hover { background: #fff0ed; color: var(--danger); }

.add-jobdesk {
  margin-top: 9px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: #3e7864;
  font-size: .82rem;
  font-weight: 720;
}

.weekday-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.weekday-option span {
  display: grid;
  min-height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink-soft);
  font-size: .81rem;
  font-weight: 690;
  cursor: pointer;
}

.weekday-option input:checked + span {
  border-color: #9ac5a4;
  background: #eaf6eb;
  color: #2f694c;
}

.weekday-option input:focus-visible + span {
  outline: 3px solid rgba(45, 125, 99, .34);
  outline-offset: 2px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 3px;
}

.form-error {
  min-height: 1.1em;
  margin: 0 0 12px;
  color: var(--danger);
  font-size: .84rem;
}

.small-print {
  margin-top: 16px;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .field input, .jobdesk-input, .date-control input { font-size: 16px; }

  .auth-shell {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 30px;
    width: min(560px, calc(100% - 32px));
    padding: 38px 0;
  }

  .auth-story { text-align: center; }
  .auth-story .brand { margin: 0 auto 28px; }
  .auth-story h1 { margin: auto; font-size: clamp(2.75rem, 11vw, 4.2rem); }
  .auth-story-copy { margin: 17px auto 0; font-size: .98rem; }
  .story-note { justify-content: center; margin-top: 22px; }
  .auth-card { width: 100%; }

  .app-shell { width: min(680px, calc(100% - 28px)); padding-top: 16px; }
  .dashboard { grid-template-columns: 1fr; }
  .side-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .auth-shell { width: calc(100% - 28px); padding: 28px 0; }
  .auth-story .brand { margin-bottom: 24px; }
  .auth-story h1 { font-size: 2.75rem; }
  .auth-card { padding: 24px 20px; border-radius: 22px; }
  .app-shell { width: calc(100% - 20px); padding-top: 10px; }
  .app-header { flex-direction: column; align-items: stretch; gap: 10px; padding: 8px 3px 19px; }
  .brand { font-size: 1rem; }
  .brand-mark { width: 34px; height: 34px; border-radius: 11px; }
  .account-area { align-self: flex-end; gap: 5px; }
  .account-email { max-width: 120px; font-size: .76rem; }
  .account-area .button { min-height: 34px; padding: 0 8px; font-size: .77rem; }
  .panel-heading { display: grid; grid-template-columns: minmax(0, 1fr); padding: 23px 20px 17px; }
  .heading-actions { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; min-width: 0; }
  .date-control, .date-control input { width: 100%; min-width: 0; max-width: 100%; }
  .progress-area { padding: 0 20px 19px; }
  .task-list { padding: 0 10px 14px; }
  .activity-heading { gap: 7px; padding: 11px 9px 10px 12px; }
  .activity-heading .drag-handle { flex-basis: 19px; width: 19px; }
  .job-row .drag-handle { flex-basis: 17px; width: 17px; }
  .activity-copy h2 { font-size: .9rem; }
  .activity-progress { padding: 4px 7px; }
  .job-list { padding: 0 12px 9px; }
  .job-row { gap: 9px; min-height: 43px; }
  .job-title { font-size: .82rem; }
  .task-row { gap: 10px; padding: 11px 9px; }
  .task-check { flex-basis: 34px; width: 34px; height: 34px; border-radius: 11px; }
  .task-title { font-size: .9rem; }
  .task-schedule { font-size: .72rem; }
  .task-actions { gap: 0; }
  .icon-button { width: 31px; height: 34px; }
  .side-column { grid-template-columns: 1fr; }
  .side-card { padding: 20px; }
  .weekday-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dialog-content { padding: 22px 19px; }
}

/* J.A.R.V.I.S.-inspired HUD theme */
:root {
  color-scheme: dark;
  --ink: #e6f7ff;
  --ink-soft: #a8c5d1;
  --muted: #708e9d;
  --paper: #050a10;
  --card: rgba(9, 20, 30, .92);
  --mint: rgba(22, 195, 232, .12);
  --mint-deep: rgba(22, 195, 232, .24);
  --line: rgba(91, 192, 222, .2);
  --gold: #ffb24a;
  --danger: #ff776e;
  --shadow: 0 24px 70px rgba(0, 0, 0, .42), 0 0 45px rgba(18, 190, 230, .055);
}

html { background: #050a10; }

body {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 14% 0%, rgba(0, 159, 205, .17), transparent 34rem),
    radial-gradient(ellipse at 88% 78%, rgba(242, 110, 27, .075), transparent 28rem),
    linear-gradient(145deg, #050a10, #08121c 58%, #060b11);
  color: var(--ink);
}

body::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(74, 190, 220, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 190, 220, .028) 1px, transparent 1px),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(138, 221, 243, .018) 4px);
  background-size: 44px 44px, 44px 44px, auto;
  content: "";
}

#app-root { position: relative; z-index: 1; }

button:focus-visible, input:focus-visible {
  outline-color: rgba(67, 218, 255, .68);
}

.brand {
  color: #f0fbff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .035em;
}

.brand-mark {
  border: 1px solid rgba(69, 218, 255, .62);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(32, 195, 230, .24), rgba(5, 17, 27, .98) 68%);
  color: #80edff;
  box-shadow: inset 0 0 14px rgba(43, 210, 245, .22), 0 0 18px rgba(20, 196, 231, .16);
}

.brand small {
  color: #6bcde1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .56rem;
  letter-spacing: .12em;
}

.auth-story .brand { margin-bottom: 68px; }
.eyebrow { color: #62d8f0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.auth-story h1 { color: #eefaff; }
.auth-story h1 em { color: #63dff7; text-shadow: 0 0 28px rgba(36, 207, 242, .24); }
.auth-story-copy { color: #9bb7c4; }
.story-note { color: #a9c4cd; }
.story-note-mark {
  border: 1px solid rgba(255, 178, 74, .52);
  background: rgba(255, 166, 54, .12);
  color: #ffc36e;
  box-shadow: 0 0 17px rgba(255, 160, 54, .1);
}

.auth-card, .panel, .activity-card, dialog {
  border-color: rgba(76, 190, 221, .21);
  background: linear-gradient(145deg, rgba(11, 25, 37, .96), rgba(6, 15, 24, .96));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.auth-card { border-radius: 18px; }
.auth-card h2, .side-card h2, .dialog-heading h2 { color: #e9f8ff; }
.auth-card .subheading, .small-print { color: #829eaa; }

.field { color: #a9c6d2; }
.field input, .jobdesk-input, .date-control input {
  border-color: rgba(77, 181, 212, .28);
  background: rgba(3, 11, 18, .78);
  color: #e8f8ff;
  color-scheme: dark;
}
.field input::placeholder, .jobdesk-input::placeholder { color: #607987; }
.field input:focus, .jobdesk-input:focus, .date-control input:focus {
  border-color: rgba(78, 219, 247, .7);
  box-shadow: 0 0 0 3px rgba(48, 190, 221, .09);
}

.button-primary {
  border-color: rgba(105, 237, 255, .64);
  background: linear-gradient(115deg, #32c9e7, #83e9f5);
  color: #04131a;
  box-shadow: 0 0 20px rgba(30, 191, 224, .16);
}
.button-primary:hover { background: linear-gradient(115deg, #60ddf2, #a5f2fa); }
.button-secondary {
  border-color: rgba(93, 190, 220, .32);
  background: rgba(16, 36, 49, .66);
  color: #c2e3ed;
}
.button-secondary:hover, .button-quiet:hover { border-color: rgba(83, 220, 245, .48); background: rgba(22, 66, 82, .48); }
.button-quiet { color: #9fbdc8; }
.text-button, .add-jobdesk { color: #5cd9f1; }
.text-button:hover, .add-jobdesk:hover { color: #b3f4ff; }

.notice {
  border-color: rgba(255, 182, 79, .32);
  background: rgba(75, 51, 24, .32);
  color: #f3ca8d;
}
.notice.error { border-color: rgba(255, 112, 103, .36); background: rgba(78, 28, 32, .38); color: #ffaaa3; }
.notice.success { border-color: rgba(92, 224, 193, .32); background: rgba(15, 65, 59, .38); color: #97ead4; }

.app-header {
  border-bottom: 1px solid rgba(81, 185, 215, .19);
  margin-bottom: 22px;
}
.account-area { color: #91aab5; }
.account-email { color: #94d9e7; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .78rem; }
.panel { border-radius: 18px; }
.panel-heading h1 { color: #eefaff; }
.panel-heading p { color: #819daa; }
.panel-heading .eyebrow { color: #55d8f1; }
.date-control { color: #7e9aa7; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-transform: uppercase; letter-spacing: .08em; }
.progress-copy { color: #91afbb; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.progress-copy strong { color: #bfefff; }
.progress-track { background: rgba(103, 148, 165, .15); }
.progress-fill { background: linear-gradient(90deg, #1ab6d9, #70edff 76%, #ffb24a); box-shadow: 0 0 12px rgba(71, 220, 246, .45); }

.activity-card {
  border-radius: 12px;
  background: linear-gradient(125deg, rgba(11, 25, 37, .94), rgba(8, 18, 28, .96));
}
.activity-card.all-done {
  border-color: rgba(73, 219, 242, .48);
  background: linear-gradient(125deg, rgba(12, 44, 55, .76), rgba(8, 23, 33, .97));
  box-shadow: inset 3px 0 #37d3ec, 0 0 22px rgba(23, 168, 200, .09);
}
.activity-copy h2 { color: #e3f6fc; }
.task-schedule { color: #73909d; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .7rem; letter-spacing: .035em; }
.activity-progress { border: 1px solid rgba(85, 187, 216, .2); background: rgba(29, 57, 71, .62); color: #9ed9e7; }
.all-done .activity-progress { border-color: rgba(72, 220, 241, .45); background: rgba(23, 130, 149, .2); color: #8defff; }
.job-row { border-color: rgba(77, 145, 166, .14); }
.job-title { color: #a9c3cf; }
.job-row.is-done .job-title { color: #708d99; text-decoration-color: #46c7dc; }
.job-check, .standalone-check {
  border-color: rgba(102, 177, 197, .43);
  background: rgba(4, 14, 22, .9);
  color: #04131a;
}
.job-check:hover { border-color: #5be6fa; box-shadow: 0 0 12px rgba(52, 208, 233, .2); }
.job-row.is-done .job-check, .job-check.is-checked {
  border-color: #5ce2f5;
  background: linear-gradient(145deg, #30c6e2, #85eff8);
  box-shadow: 0 0 13px rgba(51, 208, 235, .22);
}
.icon-button { color: #7393a0; }
.icon-button:hover { background: rgba(42, 125, 145, .18); color: #84e8f7; }
.drag-handle { color: #5a8998; }
.drag-handle:hover { background: rgba(41, 134, 156, .17); color: #7deafa; }
.activity-card.is-dragging, .job-row.is-dragging { outline-color: #4dd9ef; }

.empty-state { color: #829eaa; }
.empty-state h3 { color: #d9f2f8; }
.empty-art { border: 1px solid rgba(68, 194, 221, .24); background: rgba(28, 126, 150, .16); color: #68dff2; }
.side-card { border-radius: 15px; }
.side-card p { color: #88a4af; }
.report-percent { border: 1px solid rgba(85, 187, 216, .2); background: rgba(29, 57, 71, .62); color: #9ed9e7; }
.report-card .report-period, .report-card .report-details { color: #88a4af; }
.report-track { background: rgba(103, 148, 165, .15); }
.report-fill { background: linear-gradient(90deg, #1ab6d9, #70edff 76%, #ffb24a); box-shadow: 0 0 12px rgba(71, 220, 246, .45); }

dialog {
  border-radius: 18px;
  background: linear-gradient(145deg, #0b1a27, #07121c);
}
dialog::backdrop { background: rgba(1, 5, 9, .76); backdrop-filter: blur(6px); }
.dialog-heading p { color: #809ba7; }
.dialog-close { border: 1px solid rgba(83, 177, 202, .18); background: rgba(21, 49, 61, .66); color: #a6c9d4; }
.dialog-close:hover { border-color: rgba(76, 216, 239, .45); color: #8eefff; }
.jobdesk-editor-heading strong { color: #aad3de; }
.jobdesk-editor-heading span { color: #76929e; }
.remove-jobdesk { border: 1px solid rgba(82, 151, 173, .17); background: rgba(23, 49, 60, .58); color: #8aa6b1; }
.remove-jobdesk:hover { border-color: rgba(255, 117, 104, .4); background: rgba(87, 33, 36, .38); color: #ffaaa3; }
.weekday-option span { border-color: rgba(82, 168, 191, .25); background: rgba(4, 14, 22, .82); color: #8eabb6; }
.weekday-option input:checked + span { border-color: rgba(74, 214, 237, .63); background: rgba(30, 144, 165, .2); color: #91ecf7; box-shadow: inset 0 0 14px rgba(39, 189, 215, .08); }
.form-error { color: #ff918a; }

@media (prefers-reduced-motion: no-preference) {
  .brand-mark { animation: jarvis-pulse 4.5s ease-in-out infinite; }
  @keyframes jarvis-pulse {
    0%, 100% { box-shadow: inset 0 0 14px rgba(43, 210, 245, .18), 0 0 15px rgba(20, 196, 231, .11); }
    50% { box-shadow: inset 0 0 19px rgba(43, 210, 245, .3), 0 0 22px rgba(20, 196, 231, .2); }
  }
}
