:root {
  --navy-950: #0d1c37;
  --navy-800: #2b3a50;
  --navy-600: #647084;
  --coral-600: #db5c4c;
  --coral-500: #e66b59;
  --coral-100: #fff0ec;
  --blush-50: #fffaf8;
  --apricot-100: #fff4e8;
  --sage-700: #4c7048;
  --sage-600: #5f8357;
  --sage-100: #edf3ea;
  --sage-50: #f7faf5;
  --amber-600: #c27616;
  --amber-100: #fff6e8;
  --line: #e5dfda;
  --line-strong: #d5cec8;
  --white: #ffffff;
  --shadow: 0 14px 34px rgba(38, 27, 32, 0.07);
  --font-ui: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-heading: Georgia, "Times New Roman", serif;
}

/* Account, onboarding, privacy, and reliability surfaces — v1.0.0 */
.auth-page,
.onboarding-page,
.settings-page,
.legal-page,
.billing-page {
  background:
    radial-gradient(circle at 7% 7%, rgba(230, 107, 89, 0.08), transparent 26rem),
    radial-gradient(circle at 95% 94%, rgba(95, 131, 87, 0.1), transparent 28rem),
    var(--blush-50);
  min-height: 100vh;
}

/* Subscription and owner-access surfaces — v1.0.0-rc4 */
.billing-shell {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 80px;
}

.billing-heading {
  max-width: 720px;
  margin: 0 auto 30px;
  text-align: center;
}

.billing-heading h1 {
  margin: 7px 0 12px;
  color: var(--navy-950);
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.07;
  letter-spacing: -.035em;
}

.billing-heading > p:last-child {
  color: var(--navy-600);
  font-size: 17px;
  line-height: 1.65;
}

.billing-current {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  margin: 26px 0;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.billing-current > div {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 19px 21px;
  background: rgba(255, 255, 255, .98);
}

.billing-current span {
  color: var(--navy-600);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.billing-current strong {
  overflow-wrap: anywhere;
}

.billing-status.is-active {
  color: var(--sage-700);
}

.billing-status.is-warning {
  color: var(--amber-600);
}

.billing-owner-card,
.billing-manage-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 28px;
  background: rgba(255, 255, 255, .98);
  border: 1px solid #d5dfd0;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.billing-manage-card {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 25px;
}

.billing-owner-mark,
.billing-success-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  color: #fff;
  background: var(--sage-600);
  border-radius: 50%;
  font-size: 24px;
  box-shadow: 0 8px 18px rgba(76, 112, 72, .2);
}

.billing-owner-card h2,
.billing-manage-card h2 {
  margin: 0 0 5px;
  color: var(--navy-950);
  font-family: var(--font-heading);
  font-size: 26px;
}

.billing-owner-card p,
.billing-manage-card p {
  margin: 0;
  color: var(--navy-600);
  line-height: 1.6;
}

.billing-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 26px;
}

.billing-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 400px;
  padding: 30px;
  background: rgba(255, 255, 255, .98);
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: var(--shadow);
}

.billing-plan.is-preferred {
  border-color: var(--coral-500);
  box-shadow: 0 17px 38px rgba(219, 92, 76, .14);
}

.billing-plan-yearly {
  background: linear-gradient(180deg, var(--sage-50), #fff 60%);
}

.billing-plan-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 5px 9px;
  color: #fff;
  background: var(--sage-600);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.billing-plan-top > span {
  color: var(--sage-700);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.billing-plan-top h2 {
  margin: 10px 0 12px;
  font-family: var(--font-heading);
  font-size: 31px;
}

.billing-plan-top p {
  margin: 0;
}

.billing-plan-top strong {
  font-family: var(--font-heading);
  font-size: 46px;
  letter-spacing: -.04em;
}

.billing-plan-top small {
  margin-left: 5px;
  color: var(--navy-600);
  font-size: 14px;
}

.billing-plan ul {
  display: grid;
  gap: 11px;
  margin: 24px 0 26px;
  padding: 0;
  color: var(--navy-600);
  list-style: none;
}

.billing-plan li {
  position: relative;
  padding-left: 24px;
}

.billing-plan li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--sage-700);
  font-weight: 900;
}

.billing-plan form {
  margin-top: auto;
}

.billing-plan button {
  width: 100%;
}

.billing-renewal-copy {
  max-width: 780px;
  margin: 25px auto 0;
  color: var(--navy-600);
  font-size: 12px;
  line-height: 1.65;
  text-align: center;
}

.billing-success-card {
  display: grid;
  justify-items: start;
}

.billing-success-card .billing-success-mark {
  margin-top: 26px;
}

.billing-success-card .primary-button {
  width: 100%;
  text-align: center;
}

.auth-shell {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
}

.auth-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  max-width: 470px;
  padding: 34px;
  width: 100%;
}

.auth-shell-wide .auth-card {
  max-width: 590px;
}

.auth-brand {
  align-items: center;
  color: var(--navy-950);
  display: inline-flex;
  font-size: 20px;
  font-weight: 750;
  gap: 10px;
  text-decoration: none;
}

.auth-brand img {
  height: 42px;
  width: 42px;
}

.auth-card h1,
.onboarding-card h1,
.settings-heading h1,
.legal-hero h1 {
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
}

.auth-card h1 {
  font-size: clamp(31px, 6vw, 43px);
  margin: 25px 0 8px;
}

.auth-intro,
.auth-switch,
.auth-help {
  color: var(--navy-600);
  line-height: 1.55;
}

.auth-form,
.settings-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.signup-plan-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.signup-plan-options legend {
  grid-column: 1 / -1;
  margin-bottom: 1px;
  font-size: 13px;
  font-weight: 750;
}

.signup-plan-option {
  position: relative;
  display: block !important;
  cursor: pointer;
}

.signup-plan-option input {
  position: absolute;
  inset: 13px auto auto 13px;
  width: 18px !important;
  height: 18px;
  min-height: 18px !important;
  padding: 0 !important;
  accent-color: var(--sage-600);
  z-index: 1;
}

.signup-plan-option span {
  display: grid;
  gap: 4px;
  min-height: 94px;
  padding: 13px 13px 13px 42px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}

.signup-plan-option input:checked + span {
  background: var(--sage-50);
  border-color: var(--sage-600);
  box-shadow: 0 0 0 1px var(--sage-600);
}

.signup-plan-option strong {
  color: var(--navy-950);
  font-size: 14px;
}

.signup-plan-option small {
  color: var(--navy-600);
  font-size: 11px;
  line-height: 1.45;
}

.auth-form label,
.settings-form label,
.onboarding-panel > label {
  display: grid;
  gap: 7px;
}

.auth-form label > span,
.settings-form label > span,
.onboarding-panel label > span {
  font-size: 13px;
  font-weight: 750;
}

.auth-form input,
.auth-form select,
.settings-form input,
.settings-form select,
.onboarding-panel input,
.onboarding-panel select,
.onboarding-panel textarea {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  min-height: 48px;
  padding: 11px 13px;
  width: 100%;
}

.onboarding-panel textarea {
  min-height: 105px;
  resize: vertical;
}

.auth-form small,
.settings-form small {
  color: var(--navy-600);
  line-height: 1.45;
}

.auth-checkbox,
.settings-switch {
  align-items: flex-start;
  display: flex !important;
  gap: 10px !important;
}

.auth-checkbox input,
.settings-switch input {
  flex: 0 0 auto;
  height: 18px;
  margin-top: 2px;
  min-height: 0;
  width: 18px;
}

.auth-checkbox span,
.settings-switch span {
  display: grid;
  gap: 2px;
  line-height: 1.45;
}

.auth-checkbox a,
.auth-form-links a,
.auth-switch a,
.auth-help a,
.settings-text-link,
.danger-link {
  color: var(--coral-600);
  font-weight: 700;
}

.auth-form-links {
  font-size: 13px;
  margin-top: -7px;
  text-align: right;
}

.auth-submit {
  justify-content: center;
  min-height: 50px;
}

.auth-error,
.auth-success,
.settings-notice,
.onboarding-status,
.onboarding-inline-note {
  border-radius: 9px;
  line-height: 1.5;
  margin-top: 18px;
  padding: 12px 14px;
}

.auth-error {
  background: #fff0ef;
  border: 1px solid #efc0ba;
  color: #8d3129;
}

.auth-success,
.settings-notice {
  background: var(--sage-100);
  border: 1px solid #c8d9c4;
  color: var(--sage-700);
}

.auth-switch,
.auth-help {
  font-size: 13px;
  margin: 20px 0 0;
  text-align: center;
}

.onboarding-shell,
.settings-shell,
.legal-shell {
  margin: 0 auto;
  max-width: 1180px;
  padding: 32px 28px 60px;
}

.onboarding-topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
}

.onboarding-topbar > a:last-child {
  color: var(--coral-600);
  font-weight: 700;
}

.onboarding-layout {
  align-items: start;
  display: grid;
  gap: 26px;
  grid-template-columns: 270px minmax(0, 1fr);
}

.onboarding-steps,
.onboarding-card,
.settings-section,
.legal-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.onboarding-steps {
  padding: 18px;
  position: sticky;
  top: 24px;
}

.onboarding-steps ol {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.onboarding-steps li {
  align-items: center;
  border-radius: 10px;
  color: var(--navy-600);
  display: grid;
  font-size: 13px;
  gap: 10px;
  grid-template-columns: 30px 1fr;
  padding: 9px;
}

.onboarding-steps li span {
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.onboarding-steps li.is-active,
.onboarding-steps li.active {
  background: var(--coral-100);
  color: var(--navy-950);
}

.onboarding-steps li.is-complete span,
.onboarding-steps li.complete span,
.onboarding-steps li.is-active span,
.onboarding-steps li.active span {
  background: var(--coral-500);
  border-color: var(--coral-500);
  color: white;
}

.onboarding-card {
  min-height: 560px;
  padding: clamp(28px, 5vw, 56px);
}

.onboarding-panel {
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 650px;
}

.onboarding-panel.is-hidden,
.settings-pair-code.is-hidden,
.onboarding-code.is-hidden,
.onboarding-status.is-hidden {
  display: none;
}

.onboarding-kicker,
.settings-kicker {
  color: var(--coral-600);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.onboarding-panel h1 {
  font-size: clamp(34px, 5vw, 50px);
  margin: 0;
}

.onboarding-panel > p {
  color: var(--navy-600);
  font-size: 17px;
  line-height: 1.65;
  margin: -7px 0 3px;
}

.onboarding-promises {
  display: grid;
  gap: 10px;
}

.onboarding-promises span {
  background: var(--sage-50);
  border: 1px solid #d9e4d5;
  border-radius: 10px;
  color: var(--navy-600);
  display: grid;
  gap: 3px;
  padding: 13px 15px;
}

.onboarding-promises strong {
  color: var(--navy-950);
}

.onboarding-actions,
.settings-action-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.onboarding-inline-note {
  background: var(--apricot-100);
  border: 1px solid #f0d2a4;
  color: #705c4c;
  margin: 0;
}

.onboarding-code,
.settings-pair-code {
  align-items: center;
  background: var(--sage-50);
  border: 1px dashed var(--sage-600);
  border-radius: 12px;
  display: grid;
  gap: 5px;
  justify-items: center;
  padding: 20px;
  text-align: center;
}

.onboarding-code strong,
.settings-pair-code strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 32px;
  letter-spacing: 0.18em;
}

.onboarding-success-mark {
  align-items: center;
  background: var(--sage-600);
  border-radius: 50%;
  color: white;
  display: flex;
  font-size: 34px;
  height: 76px;
  justify-content: center;
  margin: 14px auto;
  width: 76px;
}

.settings-topbar {
  align-items: stretch;
}

.settings-nav {
  align-items: stretch;
  display: flex;
  justify-content: center;
}

.settings-nav a {
  align-items: center;
  border-bottom: 3px solid transparent;
  color: var(--navy-800);
  display: flex;
  padding: 0 18px;
  text-decoration: none;
}

.settings-nav a.active {
  border-color: var(--coral-500);
  font-weight: 750;
}

.settings-heading {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 26px 0 28px;
}

.settings-heading h1 {
  font-size: clamp(34px, 5vw, 52px);
  margin: 8px 0;
}

.settings-heading p,
.settings-section-heading p {
  color: var(--navy-600);
  line-height: 1.55;
  margin: 0;
}

.reliability-overall {
  background: var(--amber-100);
  border: 1px solid #efd4aa;
  border-radius: 999px;
  color: var(--amber-600);
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 15px;
}

.reliability-overall.is-good {
  background: var(--sage-100);
  border-color: #c8d9c4;
  color: var(--sage-700);
}

.settings-section {
  padding: 24px;
}

.settings-section-heading h2 {
  font-family: var(--font-heading);
  font-size: 25px;
  margin: 0 0 5px;
}

.reliability-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

.reliability-grid article {
  align-items: flex-start;
  background: var(--sage-50);
  border: 1px solid #dce6d8;
  border-radius: 11px;
  display: flex;
  gap: 11px;
  min-width: 0;
  padding: 15px;
}

.reliability-icon {
  color: var(--sage-700);
  font-size: 20px;
}

.reliability-grid article div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.reliability-grid b {
  font-size: 14px;
}

.reliability-grid b.good { color: var(--sage-700); }
.reliability-grid b.warn { color: var(--amber-600); }
.reliability-grid small { color: var(--navy-600); line-height: 1.45; }

.settings-columns {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.settings-time-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}

.settings-action-stack {
  align-items: flex-start;
  flex-direction: column;
  margin-top: 20px;
}

.secondary-button {
  align-items: center;
  background: white;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--navy-950);
  display: inline-flex;
  font-weight: 750;
  justify-content: center;
  min-height: 43px;
  padding: 9px 15px;
  text-decoration: none;
}

.danger-link {
  margin-top: 8px;
}

.settings-devices {
  grid-column: 1 / -1;
}

.settings-device {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
}

.settings-device div {
  display: grid;
  gap: 4px;
}

.settings-device small,
.settings-empty,
.update-status span {
  color: var(--navy-600);
}

.settings-device button {
  background: white;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 8px 11px;
}

.settings-pair-code {
  margin-top: 15px;
}

.update-status {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px 0;
}

.settings-footer,
.legal-footer {
  align-items: center;
  color: var(--navy-600);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 16px;
  justify-content: center;
  padding: 32px 0 0;
}

.settings-footer a,
.legal-footer a {
  color: var(--navy-800);
}

.legal-topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 34px;
}

.legal-topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
}

.legal-topbar nav a {
  color: var(--navy-800);
  font-size: 13px;
  font-weight: 700;
}

.legal-card {
  margin: 0 auto;
  max-width: 850px;
  padding: clamp(28px, 6vw, 64px);
}

.legal-hero {
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
  padding-bottom: 24px;
}

.legal-hero h1 {
  font-size: clamp(37px, 6vw, 56px);
  margin: 7px 0 10px;
}

.legal-hero p,
.legal-card p,
.legal-card li {
  color: var(--navy-800);
  line-height: 1.7;
}

.legal-card h2 {
  font-family: var(--font-heading);
  font-size: 25px;
  margin: 32px 0 9px;
}

.legal-card h3 {
  margin: 23px 0 8px;
}

.legal-callout {
  background: var(--sage-50);
  border: 1px solid #dce6d8;
  border-radius: 11px;
  margin: 22px 0;
  padding: 16px 18px;
}

.support-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 22px 0;
}

.support-grid article {
  background: var(--sage-50);
  border: 1px solid #dce6d8;
  border-radius: 11px;
  padding: 17px;
}

.support-grid h3 { margin-top: 0; }

.delete-warning {
  background: #fff0ef;
  border: 1px solid #efc0ba;
  border-radius: 11px;
  color: #7b302a;
  line-height: 1.55;
  margin: 18px 0;
  padding: 15px;
}

.danger-button {
  background: #a93f36;
  border: 0;
  border-radius: 9px;
  color: white;
  font-weight: 800;
  min-height: 46px;
  padding: 10px 16px;
}

@media (max-width: 800px) {
  .onboarding-shell,
  .settings-shell,
  .legal-shell {
    padding: 20px 15px 42px;
  }

  .onboarding-layout,
  .settings-columns,
  .reliability-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .onboarding-steps {
    overflow-x: auto;
    position: static;
  }

  .onboarding-steps ol {
    display: flex;
    min-width: 620px;
  }

  .onboarding-steps li {
    min-width: 112px;
  }

  .settings-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .settings-nav a {
    padding: 0 9px;
  }

  .settings-topbar {
    gap: 8px;
    padding: 0 14px;
  }

  .settings-topbar .brand span,
  .account-signout {
    display: none;
  }

  .settings-devices {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .auth-card,
  .onboarding-card,
  .settings-section,
  .legal-card {
    border-radius: 13px;
    padding: 22px 18px;
  }

  .auth-shell { padding: 14px; }
  .legal-topbar { align-items: flex-start; gap: 16px; }
  .legal-topbar nav { justify-content: flex-end; }
  .settings-time-grid { grid-template-columns: 1fr; }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--blush-50);
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  background: var(--blush-50);
  color: var(--navy-950);
  font-family: var(--font-ui);
  margin: 0;
  min-width: 320px;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
select,
input[type="date"],
input[type="time"] {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible,
label.upload-control:focus-within {
  outline: 3px solid rgba(232, 87, 73, 0.25);
  outline-offset: 2px;
}

.visually-hidden {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.icon {
  display: block;
  fill: none;
  flex: 0 0 auto;
  height: 21px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 21px;
}

.app-shell {
  align-content: start;
  display: grid;
  grid-template-areas:
    "topbar"
    "main";
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 88px auto;
  min-height: 100vh;
}

.app-shell.composer-is-open {
  grid-template-areas:
    "topbar topbar"
    "main composer";
  grid-template-columns: minmax(0, 1fr) 420px;
}

.topbar {
  align-items: stretch;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-area: topbar;
  grid-template-columns: auto 1fr auto;
  height: 88px;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 30;
}

.brand {
  align-items: center;
  color: var(--navy-950);
  display: flex;
  font-size: 24px;
  font-weight: 750;
  gap: 12px;
  letter-spacing: -0.025em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  height: 48px;
  width: 48px;
}

.desktop-navigation {
  align-items: stretch;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.nav-item {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--navy-800);
  display: flex;
  font-size: 15px;
  font-weight: 560;
  gap: 8px;
  justify-content: center;
  min-width: 110px;
  padding: 3px 14px 0;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.nav-item:hover {
  background: var(--blush-50);
  color: var(--coral-600);
}

.nav-item.active {
  border-bottom-color: var(--coral-500);
  color: var(--navy-950);
}

.nav-item .icon {
  height: 22px;
  width: 22px;
}

.account-button {
  align-items: center;
  align-self: center;
  background: transparent;
  border: 0;
  display: flex;
  gap: 7px;
  padding: 6px;
}

.account-button .icon {
  height: 16px;
  width: 16px;
}

.account-avatar {
  align-items: center;
  background: linear-gradient(145deg, #f4ad9e, #e97967);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
  color: #fff;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.mobile-menu-button {
  align-self: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: none;
  padding: 10px;
}

.dashboard {
  grid-area: main;
  min-width: 0;
  padding: 38px 38px 58px;
}

.dashboard-heading {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto 28px;
  max-width: 1180px;
}

.section-context {
  color: var(--coral-600);
  display: none;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.1em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

.dashboard-heading h1 {
  font-size: clamp(32px, 3vw, 44px);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.08;
  margin: 0;
}

.primary-button,
.secondary-button {
  align-items: center;
  border-radius: 10px;
  display: inline-flex;
  font-weight: 700;
  gap: 9px;
  justify-content: center;
  min-height: 48px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--coral-500), var(--coral-600));
  border: 1px solid var(--coral-600);
  box-shadow: 0 8px 20px rgba(232, 87, 73, 0.18);
  color: #fff;
  font-size: 16px;
  padding: 0 24px;
}

.primary-button:hover {
  box-shadow: 0 12px 25px rgba(232, 87, 73, 0.25);
  transform: translateY(-1px);
}

.secondary-button {
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--navy-950);
  font-size: 14px;
  min-height: 40px;
  padding: 0 14px;
}

.surface {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 1px rgba(30, 20, 25, 0.02);
}

.surface h2 {
  font-size: 17px;
  font-weight: 720;
  letter-spacing: -0.018em;
  margin: 0;
}

.overview-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1.15fr 0.85fr;
  margin: 0 auto 22px;
  max-width: 1180px;
}

.weekly-overview,
.phone-overview {
  min-height: 194px;
  padding: 22px 24px;
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 20px;
}

.metric {
  align-items: center;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 112px;
  padding: 0 14px;
  text-align: center;
}

.metric:last-child {
  border-right: 0;
}

.metric-icon {
  align-items: center;
  display: flex;
  height: 30px;
  justify-content: center;
  margin-bottom: 8px;
  width: 30px;
}

.metric-icon .icon {
  height: 28px;
  width: 28px;
}

.metric-coral {
  color: var(--coral-500);
}

.metric-green {
  color: var(--sage-600);
}

.metric-amber {
  color: var(--amber-600);
}

.metric-label {
  color: var(--navy-600);
  font-size: 13px;
  line-height: 1.2;
}

.metric strong {
  font-size: 29px;
  font-weight: 690;
  line-height: 1.1;
  margin-top: 6px;
}

.surface-title-row {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.text-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--coral-600);
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 6px;
  padding: 5px 0;
}

.text-button .icon {
  height: 16px;
  width: 16px;
}

.phone-detail {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: center;
  min-height: 130px;
  padding-top: 10px;
}

.phone-illustration {
  align-items: center;
  display: flex;
  height: 92px;
  justify-content: center;
  position: relative;
  width: 58px;
}

.phone-illustration .icon {
  height: 88px;
  stroke-width: 1.2;
  width: 52px;
}

.phone-illustration span {
  color: var(--coral-500);
  font-size: 18px;
  left: 21px;
  position: absolute;
  top: 35px;
}

.phone-detail > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.phone-detail strong {
  font-size: 16px;
}

.phone-detail small {
  color: var(--navy-600);
  font-size: 12px;
}

.connected-line {
  align-items: center;
  color: var(--sage-600);
  display: flex;
  font-size: 13px;
  gap: 7px;
}

.connected-line i {
  background: var(--sage-600);
  border-radius: 50%;
  display: inline-block;
  height: 8px;
  width: 8px;
}

.disconnected-line {
  color: var(--amber-600);
}

.disconnected-line i {
  background: var(--amber-600);
}

.upcoming-section {
  margin: 0 auto;
  max-width: 1180px;
  overflow: hidden;
}

.upcoming-heading {
  padding: 20px 22px 14px;
}

.upcoming-heading p {
  color: var(--navy-600);
  font-size: 13px;
  margin: 5px 0 0;
}

.notes-table {
  overflow-x: auto;
}

.note-table-header,
.note-row {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns:
    minmax(150px, 1.1fr)
    minmax(220px, 1.7fr)
    minmax(150px, 1.15fr)
    minmax(72px, 0.65fr)
    minmax(132px, 0.95fr)
    112px;
  min-width: 960px;
  padding: 0 22px;
}

.note-table-header {
  border-bottom: 1px solid var(--line);
  color: var(--navy-600);
  font-size: 12px;
  font-weight: 650;
  min-height: 42px;
}

.note-row {
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  min-height: 88px;
}

.recipient-cell,
.message-cell,
.row-actions {
  align-items: center;
  display: flex;
}

.recipient-cell {
  gap: 10px;
  min-width: 0;
}

.recipient-cell > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.recipient-cell strong {
  font-size: 14px;
}

.recipient-cell small {
  color: var(--navy-600);
  font-size: 10px;
  margin-top: 3px;
}

.recipient-avatar {
  align-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
  color: #fff;
  display: flex;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.avatar-small {
  box-shadow: none;
  height: 25px;
  width: 25px;
}

.avatar-coral {
  background: linear-gradient(145deg, #f7a897, #e96d5c);
}

.avatar-sage {
  background: linear-gradient(145deg, #93bba0, #548165);
}

.avatar-navy {
  background: linear-gradient(145deg, #6f7890, #26334f);
}

.avatar-apricot {
  background: linear-gradient(145deg, #f4c786, #d88a57);
}

.avatar-rose {
  background: linear-gradient(145deg, #d9a3b3, #a85e78);
}

.message-cell {
  gap: 10px;
  min-width: 0;
}

.message-cell p {
  display: -webkit-box;
  font-size: 13px;
  line-height: 1.38;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.message-cell img {
  border-radius: 8px;
  flex: 0 0 auto;
  height: 52px;
  object-fit: cover;
  width: 52px;
}

.date-cell {
  white-space: nowrap;
}

.status-pill {
  align-items: center;
  border: 1px solid;
  border-radius: 6px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 650;
  gap: 5px;
  min-height: 28px;
  padding: 3px 8px;
  white-space: nowrap;
}

.status-pill .icon {
  height: 15px;
  width: 15px;
}

.status-cell {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.confirm-sent-link {
  background: transparent;
  border: 0;
  color: var(--navy-600);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  padding: 0 2px;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.confirm-sent-link:hover,
.confirm-sent-link:focus-visible {
  color: var(--sage-600);
}

.status-scheduled {
  background: #f3f7ff;
  border-color: #bfcde4;
  color: #254979;
}

.status-sent {
  background: var(--sage-100);
  border-color: #bed7c5;
  color: #327149;
}

.status-needs-attention {
  background: var(--amber-100);
  border-color: #edc98c;
  color: var(--amber-600);
}

.status-paused {
  background: #f4f2f2;
  border-color: #d6cdcb;
  color: #685f61;
}

.row-actions {
  gap: 7px;
  justify-content: flex-end;
}

.row-actions button,
.close-button,
.image-preview button,
.selected-contact button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  display: flex;
  justify-content: center;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.row-actions button {
  height: 36px;
  width: 36px;
}

.row-actions .manage-note-button {
  gap: 6px;
  font-size: 12px;
  font-weight: 750;
  padding: 0 10px;
  width: auto;
}

.row-actions .manage-note-button .icon {
  height: 16px;
  width: 16px;
}

.row-actions button:hover,
.close-button:hover {
  background: var(--coral-100);
  border-color: #f2aaa2;
  color: var(--coral-600);
}

.row-actions .icon {
  height: 18px;
  width: 18px;
}

.view-all-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--coral-600);
  display: flex;
  font-size: 14px;
  font-weight: 700;
  gap: 7px;
  justify-content: center;
  min-height: 58px;
  width: 100%;
}

.view-all-button:hover,
.view-all-button:focus-visible {
  background: #fff8f5;
}

.view-all-button[hidden] {
  display: none;
}

.view-all-button .icon {
  height: 17px;
  transform: rotate(90deg);
  transition: transform 140ms ease;
  width: 17px;
}

.view-all-button[aria-expanded="true"] .icon {
  transform: rotate(-90deg);
}

.history-view {
  grid-area: main;
  min-width: 0;
  padding: 38px 38px 58px;
}

.history-heading {
  align-items: flex-end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto 28px;
  max-width: 1180px;
}

.history-heading h1 {
  font-size: clamp(32px, 3vw, 44px);
  letter-spacing: -0.045em;
  line-height: 1.08;
  margin: 10px 0 8px;
}

.history-heading p {
  color: var(--navy-600);
  font-size: 14px;
  margin: 0;
}

.history-back-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--coral-600);
  display: inline-flex;
  font-size: 13px;
  font-weight: 750;
  gap: 5px;
  padding: 0;
}

.history-back-button .icon {
  height: 17px;
  transform: rotate(180deg);
  width: 17px;
}

.history-panel {
  margin: 0 auto;
  max-width: 1180px;
  overflow: hidden;
}

.history-toolbar {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 20px 22px;
}

.history-toolbar p {
  color: var(--navy-600);
  font-size: 12px;
  margin: 5px 0 0;
}

.history-filters {
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  display: flex;
  overflow: hidden;
}

.history-filters button {
  background: #fff;
  border: 0;
  border-right: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  min-height: 38px;
  padding: 0 14px;
  white-space: nowrap;
}

.history-filters button:last-child {
  border-right: 0;
}

.history-filters button.selected {
  background: var(--coral-100);
  color: var(--coral-600);
}

.history-list {
  overflow-x: auto;
}

.history-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns:
    minmax(170px, 1.1fr)
    minmax(250px, 1.7fr)
    minmax(160px, 1fr)
    minmax(112px, auto)
    minmax(0, 155px);
  min-height: 98px;
  min-width: 940px;
  padding: 16px 22px;
}

.history-row:last-child {
  border-bottom: 0;
}

.history-recipient,
.history-message {
  align-items: center;
  display: flex;
  gap: 11px;
  min-width: 0;
}

.history-recipient > span:last-child,
.history-message > div,
.history-date {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.history-recipient strong,
.history-message strong,
.history-date strong {
  font-size: 13px;
}

.history-recipient small,
.history-message small,
.history-date small {
  color: var(--navy-600);
  font-size: 10px;
  line-height: 1.4;
  margin-top: 4px;
}

.history-message strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.history-message img {
  border-radius: 8px;
  flex: 0 0 auto;
  height: 52px;
  object-fit: cover;
  width: 52px;
}

.history-confirm-button {
  background: var(--sage-100);
  border: 1px solid #bed7c5;
  border-radius: 7px;
  color: var(--sage-700);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.25;
  min-height: 36px;
  padding: 6px 9px;
}

.history-confirm-button:hover {
  background: #e1ecdd;
}

.history-empty {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: center;
  min-height: 230px;
  padding: 34px;
  text-align: left;
}

.history-empty-icon {
  align-items: center;
  background: var(--sage-100);
  border-radius: 50%;
  color: var(--sage-700);
  display: flex;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.history-empty h3 {
  font-size: 17px;
  margin: 0 0 5px;
}

.history-empty p {
  color: var(--navy-600);
  font-size: 12px;
  margin: 0;
}

.calendar-view {
  grid-area: main;
  min-width: 0;
  padding: 30px 38px 30px;
}

.calendar-heading {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  margin: 0 auto 18px;
  max-width: 1440px;
}

.calendar-heading h1 {
  font-family: var(--font-heading);
  font-size: clamp(34px, 3vw, 46px);
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin: 0 0 8px;
}

.calendar-heading p {
  color: var(--navy-600);
  font-size: 14px;
  margin: 0;
}

.calendar-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
}

.calendar-new-button {
  font-size: 13px;
  min-height: 42px;
  padding: 0 16px;
}

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

.calendar-week-controls {
  align-items: center;
  display: flex;
  gap: 12px;
}

.calendar-week-controls > button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  display: flex;
  height: 42px;
  justify-content: center;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
  width: 42px;
}

.calendar-week-controls > button:hover {
  background: var(--coral-100);
  border-color: #efb0a8;
  color: var(--coral-600);
}

.calendar-week-controls .icon {
  height: 19px;
  width: 19px;
}

.calendar-week-controls .calendar-next-button .icon {
  transform: rotate(180deg);
}

.calendar-week-controls strong {
  font-family: var(--font-heading);
  font-size: 20px;
  min-width: 230px;
  text-align: center;
}

.calendar-week-controls > .calendar-today-button {
  font-size: 12px;
  font-weight: 750;
  padding: 0 15px;
  width: auto;
}

.calendar-panel {
  box-shadow: 0 10px 28px rgba(38, 27, 32, 0.06);
  margin: 0 auto;
  max-width: 1440px;
  overflow: hidden;
}

.calendar-rotation-agenda {
  background: #fffdfb;
  border-bottom: 1px solid var(--line);
}

.calendar-rotation-agenda-heading {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 16px 18px 12px;
}

.calendar-rotation-agenda-heading > div {
  display: grid;
  gap: 3px;
}

.calendar-rotation-agenda-heading strong {
  font-family: var(--font-heading);
  font-size: 18px;
}

.calendar-rotation-agenda-heading small,
.calendar-rotation-agenda-empty small {
  color: var(--navy-600);
  font-size: 11px;
  line-height: 1.4;
}

.calendar-rotation-agenda-heading > span {
  background: var(--sage-100);
  border: 1px solid #cbdcc6;
  border-radius: 999px;
  color: var(--sage-700);
  font-size: 11px;
  font-weight: 800;
  padding: 6px 10px;
  white-space: nowrap;
}

.calendar-rotation-agenda-list {
  display: grid;
  gap: 7px;
  max-height: 264px;
  overflow-y: auto;
  padding: 0 18px 16px;
}

.calendar-rotation-agenda-row {
  align-items: center;
  background: var(--sage-50);
  border: 1px solid #cfddca;
  border-radius: 10px;
  cursor: grab;
  display: grid;
  gap: 10px;
  grid-template-columns: 18px minmax(220px, 1fr) auto auto;
  min-height: 72px;
  padding: 10px 12px;
}

.calendar-rotation-agenda-row.is-paused {
  background: #fff8ec;
  border-color: #e8c487;
}

.calendar-rotation-agenda-row:active {
  cursor: grabbing;
}

.calendar-rotation-agenda-drag {
  color: var(--sage-700);
}

.calendar-rotation-agenda-drag .icon {
  height: 17px;
  width: 17px;
}

.calendar-rotation-agenda-copy {
  min-width: 0;
}

.calendar-rotation-agenda-copy strong,
.calendar-rotation-agenda-copy small,
.calendar-rotation-agenda-copy p {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-rotation-agenda-copy strong {
  font-size: 13px;
}

.calendar-rotation-agenda-copy small {
  color: var(--sage-700);
  font-size: 10px;
  font-weight: 700;
  margin-top: 2px;
}

.calendar-rotation-agenda-copy p {
  color: var(--navy-600);
  font-size: 11px;
  margin: 4px 0 0;
}

.calendar-rotation-agenda-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  justify-content: flex-end;
  max-width: 220px;
}

.calendar-rotation-agenda-actions button,
.calendar-rotation-agenda-empty button {
  background: transparent;
  border: 0;
  color: var(--navy-950);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 0;
}

.calendar-rotation-agenda-actions button:hover,
.calendar-rotation-agenda-empty button:hover {
  color: var(--coral-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.calendar-rotation-agenda-actions .calendar-delete-button {
  color: #b54236;
}

.calendar-rotation-agenda-empty {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 76px;
  padding: 14px 18px;
}

.calendar-rotation-agenda-empty > span {
  align-items: center;
  background: var(--sage-100);
  border-radius: 50%;
  color: var(--sage-700);
  display: flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.calendar-rotation-agenda-empty > span .icon {
  height: 18px;
  width: 18px;
}

.calendar-rotation-agenda-empty > div {
  display: grid;
  gap: 3px;
}

.calendar-rotation-agenda-empty > div strong {
  font-size: 13px;
}

.calendar-rotation-agenda-empty button {
  background: var(--coral-100);
  border: 1px solid #efb0a8;
  border-radius: 7px;
  color: var(--coral-600);
  padding: 8px 10px;
  white-space: nowrap;
}

.calendar-scroll {
  height: clamp(540px, calc(100vh - 250px), 760px);
  overflow: auto;
  scrollbar-color: #cfc5bf transparent;
  scrollbar-gutter: stable;
}

.calendar-grid {
  display: grid;
  grid-template-columns: 80px repeat(7, minmax(178px, 1fr));
  grid-template-rows: 70px auto;
  min-width: 1326px;
}

.calendar-corner,
.calendar-day-header {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 8;
}

.calendar-corner {
  border-right: 1px solid var(--line);
  left: 0;
  z-index: 10;
}

.calendar-day-header {
  align-items: center;
  border-right: 1px dashed #e6dfda;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.calendar-day-header:last-of-type {
  border-right: 0;
}

.calendar-day-header strong {
  font-size: 14px;
}

.calendar-day-header span {
  color: var(--navy-600);
  font-size: 12px;
  margin-top: 4px;
}

.calendar-day-header.calendar-today strong,
.calendar-day-header.calendar-today span {
  color: var(--coral-600);
}

.calendar-time-rail {
  background: #fff;
  border-right: 1px solid var(--line);
  left: 0;
  position: sticky;
  z-index: 6;
}

.calendar-time-rail span {
  color: var(--navy-600);
  font-size: 11px;
  font-weight: 650;
  position: absolute;
  right: 12px;
  transform: translateY(-50%);
  white-space: nowrap;
}

.calendar-day-body {
  background-color: rgba(255, 255, 255, 0.74);
  background-image: linear-gradient(to bottom, transparent calc(100% - 1px), var(--line) 0);
  background-size: 100% 76px;
  border-right: 1px dashed #e6dfda;
  cursor: crosshair;
  position: relative;
  transition: background-color 140ms ease, box-shadow 140ms ease;
}

.calendar-day-body:hover {
  background-color: rgba(237, 243, 234, 0.64);
}

.calendar-duration-16 { height: 1216px; }
.calendar-duration-17 { height: 1292px; }
.calendar-duration-18 { height: 1368px; }
.calendar-duration-19 { height: 1444px; }
.calendar-duration-20 { height: 1520px; }
.calendar-duration-21 { height: 1596px; }
.calendar-duration-22 { height: 1672px; }
.calendar-duration-23 { height: 1748px; }
.calendar-duration-24 { height: 1824px; }

.calendar-label-offset-0 { top: 0; }
.calendar-label-offset-1 { top: 76px; }
.calendar-label-offset-2 { top: 152px; }
.calendar-label-offset-3 { top: 228px; }
.calendar-label-offset-4 { top: 304px; }
.calendar-label-offset-5 { top: 380px; }
.calendar-label-offset-6 { top: 456px; }
.calendar-label-offset-7 { top: 532px; }
.calendar-label-offset-8 { top: 608px; }
.calendar-label-offset-9 { top: 684px; }
.calendar-label-offset-10 { top: 760px; }
.calendar-label-offset-11 { top: 836px; }
.calendar-label-offset-12 { top: 912px; }
.calendar-label-offset-13 { top: 988px; }
.calendar-label-offset-14 { top: 1064px; }
.calendar-label-offset-15 { top: 1140px; }
.calendar-label-offset-16 { top: 1216px; }
.calendar-label-offset-17 { top: 1292px; }
.calendar-label-offset-18 { top: 1368px; }
.calendar-label-offset-19 { top: 1444px; }
.calendar-label-offset-20 { top: 1520px; }
.calendar-label-offset-21 { top: 1596px; }
.calendar-label-offset-22 { top: 1672px; }
.calendar-label-offset-23 { top: 1748px; }
.calendar-label-offset-24 { top: 1824px; }

.calendar-day-body:last-child {
  border-right: 0;
}

.calendar-day-body.calendar-today {
  background-color: rgba(255, 248, 245, 0.7);
}

.calendar-day-body.calendar-drop-target {
  background-color: #edf5ea;
  box-shadow: inset 0 0 0 2px #82a47c;
}

.calendar-event {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(34, 28, 36, 0.045);
  cursor: default;
  left: 6px;
  min-height: 132px;
  overflow: hidden;
  padding: 9px 9px 8px;
  position: absolute;
  right: 6px;
  z-index: 3;
}

.calendar-hour-0 { top: 6px; }
.calendar-hour-1 { top: 82px; }
.calendar-hour-2 { top: 158px; }
.calendar-hour-3 { top: 234px; }
.calendar-hour-4 { top: 310px; }
.calendar-hour-5 { top: 386px; }
.calendar-hour-6 { top: 462px; }
.calendar-hour-7 { top: 538px; }
.calendar-hour-8 { top: 614px; }
.calendar-hour-9 { top: 690px; }
.calendar-hour-10 { top: 766px; }
.calendar-hour-11 { top: 842px; }
.calendar-hour-12 { top: 918px; }
.calendar-hour-13 { top: 994px; }
.calendar-hour-14 { top: 1070px; }
.calendar-hour-15 { top: 1146px; }
.calendar-hour-16 { top: 1222px; }
.calendar-hour-17 { top: 1298px; }
.calendar-hour-18 { top: 1374px; }
.calendar-hour-19 { top: 1450px; }
.calendar-hour-20 { top: 1526px; }
.calendar-hour-21 { top: 1602px; }
.calendar-hour-22 { top: 1678px; }
.calendar-hour-23 { top: 1754px; }

.calendar-quarter-0 { margin-top: 0; }
.calendar-quarter-1 { margin-top: 19px; }
.calendar-quarter-2 { margin-top: 38px; }
.calendar-quarter-3 { margin-top: 57px; }

.calendar-event-coral {
  background: #fff0ec;
  border-color: #f2b6ab;
}

.calendar-event-sage {
  background: #f1f6ee;
  border-color: #c6d8c0;
}

.calendar-event-apricot {
  background: #fff7e9;
  border-color: #efd19d;
}

.calendar-event-past {
  background: #f5f7f4;
  border-color: #d3ddd1;
  color: #526077;
}

.calendar-event-paused {
  background: #fff8ec;
  border-color: #e8c487;
}

.calendar-event-attention {
  background: #fff6e8;
  border-color: #edc98c;
}

.calendar-event-draggable {
  cursor: grab;
}

.calendar-event-draggable:active {
  cursor: grabbing;
}

.calendar-event-dragging {
  opacity: 0.42;
}

.calendar-event-heading {
  align-items: center;
  display: grid;
  gap: 4px;
  grid-template-columns: 12px minmax(0, 1fr) auto;
}

.calendar-event-heading > strong {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-drag-handle {
  color: var(--navy-600);
}

.calendar-drag-handle .icon {
  height: 13px;
  width: 13px;
}

.calendar-event-status {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid currentColor;
  border-radius: 5px;
  color: var(--sage-700);
  display: inline-flex;
  font-size: 9px;
  font-weight: 750;
  gap: 2px;
  line-height: 1;
  min-height: 20px;
  padding: 2px 5px;
  white-space: nowrap;
}

.calendar-event-status .icon {
  height: 10px;
  width: 10px;
}

.calendar-event-status.status-paused,
.calendar-event-status.status-needs-attention {
  color: var(--amber-600);
}

.calendar-event-status.status-scheduled {
  color: #466487;
}

.calendar-event time {
  color: var(--navy-600);
  display: block;
  font-size: 11px;
  margin: 5px 0 0 16px;
}

.calendar-event p {
  display: -webkit-box;
  font-size: 11px;
  line-height: 1.35;
  margin: 4px 0 0 16px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.calendar-event > small {
  color: var(--sage-700);
  display: block;
  font-size: 10px;
  margin: 4px 0 0 16px;
}

.calendar-event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 5px 0 0 16px;
}

.calendar-event-actions button {
  background: transparent;
  border: 0;
  color: var(--navy-950);
  font-size: 10px;
  font-weight: 800;
  padding: 0;
}

.calendar-event-actions button:hover {
  color: var(--coral-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.calendar-event-actions .calendar-delete-button {
  color: #b54236;
}

.calendar-event-actions .calendar-delete-button:hover {
  color: #982f26;
}

.calendar-help {
  align-items: center;
  color: var(--navy-600);
  display: flex;
  font-size: 11px;
  gap: 7px;
  margin: 14px auto 0;
  max-width: 1440px;
}

.calendar-help .icon {
  color: var(--sage-700);
  height: 16px;
  width: 16px;
}

.empty-notes {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: auto 1fr auto;
  padding: 28px 24px 30px;
}

.empty-icon {
  align-items: center;
  background: var(--coral-100);
  border-radius: 50%;
  display: flex;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.empty-icon .brand-mark {
  height: 38px;
  width: 38px;
}

.empty-notes h3 {
  font-size: 16px;
  margin: 0 0 4px;
}

.empty-notes p {
  color: var(--navy-600);
  font-size: 13px;
  margin: 0;
}

.composer {
  align-self: stretch;
  background: #fff;
  border-left: 1px solid var(--line);
  box-shadow: -14px 0 30px rgba(50, 35, 40, 0.035);
  grid-area: composer;
  min-width: 0;
  position: relative;
  z-index: 20;
}

.composer form {
  height: calc(100vh - 88px);
  overflow-y: auto;
  padding: 27px 25px 30px;
  position: sticky;
  top: 88px;
}

.composer-header {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.composer-header h2 {
  font-size: 20px;
  letter-spacing: -0.025em;
  margin: 0;
}

.close-button {
  border: 0;
  height: 36px;
  width: 36px;
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 720;
  margin: 16px 0 7px;
}

.select-wrap,
.input-with-icon {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  display: flex;
  min-height: 48px;
}

.select-wrap:focus-within,
.input-with-icon:focus-within,
.textarea-wrap:focus-within {
  border-color: #efa59d;
  box-shadow: 0 0 0 3px var(--coral-100);
}

.select-wrap > .icon:first-child,
.input-with-icon > .icon {
  color: var(--navy-600);
  height: 18px;
  margin-left: 12px;
  width: 18px;
}

.select-wrap > .icon:last-child {
  height: 16px;
  margin-right: 12px;
  width: 16px;
}

.select-wrap select {
  appearance: none;
  background: transparent;
  border: 0;
  flex: 1;
  font-size: 13px;
  min-width: 0;
  outline: 0;
  padding: 0 9px;
}

.selected-contact {
  align-items: center;
  background: #f8f4f3;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: inline-flex;
  font-size: 12px;
  gap: 7px;
  margin-top: 10px;
  min-height: 33px;
  padding: 3px 6px;
}

.selected-contact button {
  background: transparent;
  border: 0;
  height: 22px;
  width: 22px;
}

.selected-contact .icon {
  height: 14px;
  width: 14px;
}

.add-recipient-inline {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--coral-600);
  display: inline-flex;
  font-size: 12px;
  font-weight: 720;
  gap: 6px;
  margin-top: 10px;
  padding: 4px 0;
}

.add-recipient-inline .icon {
  height: 16px;
  width: 16px;
}

.textarea-wrap {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  position: relative;
}

.textarea-wrap textarea {
  background: transparent;
  border: 0;
  display: block;
  font-size: 13px;
  line-height: 1.5;
  min-height: 110px;
  outline: 0;
  padding: 13px 13px 28px;
  resize: vertical;
  width: 100%;
}

.textarea-wrap > span {
  bottom: 8px;
  color: var(--navy-600);
  font-size: 10px;
  position: absolute;
  right: 11px;
}

.image-upload-row {
  display: flex;
  gap: 12px;
}

.image-preview {
  border-radius: 10px;
  height: 92px;
  overflow: hidden;
  position: relative;
  width: 112px;
}

.image-preview img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.image-preview button {
  height: 24px;
  position: absolute;
  right: 6px;
  top: 6px;
  width: 24px;
}

.image-preview .icon {
  height: 14px;
  width: 14px;
}

.upload-control {
  align-items: center;
  border: 1px dashed #cfc4c1;
  border-radius: 10px;
  color: var(--navy-800);
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  min-height: 92px;
  padding: 9px;
  text-align: center;
}

.upload-control:hover {
  background: var(--blush-50);
  border-color: var(--coral-500);
}

.upload-control .icon {
  height: 22px;
  margin-bottom: 5px;
  width: 22px;
}

.upload-control strong {
  font-size: 12px;
}

.upload-control small {
  color: var(--navy-600);
  font-size: 9px;
  margin-top: 3px;
}

.schedule-fields {
  border: 0;
  margin: 25px 0 0;
  padding: 0;
}

.schedule-fields legend {
  font-size: 19px;
  font-weight: 730;
  letter-spacing: -0.02em;
  padding: 0;
}

.repeat-control {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.repeat-control button {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-right: 0;
  font-size: 10px;
  min-height: 39px;
  padding: 0 4px;
}

.repeat-control button:first-child {
  border-radius: 8px 0 0 8px;
}

.repeat-control button:last-child {
  border-radius: 0 8px 8px 0;
  border-right: 1px solid var(--line-strong);
}

.repeat-control button.selected {
  background: var(--coral-500);
  border-color: var(--coral-500);
  color: #fff;
}

.date-time-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.input-with-icon input {
  background: transparent;
  border: 0;
  font-size: 11px;
  min-width: 0;
  outline: 0;
  padding: 0 7px;
  width: 100%;
}

.composer-note {
  align-items: flex-start;
  background: var(--apricot-100);
  border: 1px solid #f2d5aa;
  border-radius: 9px;
  color: #5d4d43;
  display: flex;
  font-size: 10px;
  gap: 8px;
  line-height: 1.45;
  margin-top: 20px;
  padding: 10px;
}

.composer-note .icon {
  color: var(--coral-600);
  height: 17px;
  width: 17px;
}

.composer-note p {
  margin: 0;
}

.schedule-button {
  margin-top: 18px;
  width: 100%;
}

.primary-button:disabled {
  box-shadow: none;
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.modal-backdrop {
  align-items: center;
  background: rgba(11, 23, 51, 0.32);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 22px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 90;
}

.modal-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 28px 70px rgba(11, 23, 51, 0.2);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  padding: 25px;
  width: min(100%, 570px);
}

.modal-header {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.modal-header h2 {
  font-size: 23px;
  letter-spacing: -0.035em;
  margin: 0;
}

.modal-intro {
  color: var(--navy-600);
  font-size: 13px;
  line-height: 1.55;
}

.schedule-actions-modal {
  width: min(100%, 520px);
}

.schedule-action-list {
  display: grid;
  gap: 9px;
}

.schedule-action-list > button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  display: grid;
  gap: 13px;
  grid-template-columns: 40px 1fr;
  min-height: 68px;
  padding: 10px 13px;
  text-align: left;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
  width: 100%;
}

.schedule-action-list > button:hover {
  background: var(--sage-50);
  border-color: #adc4aa;
  transform: translateY(-1px);
}

.schedule-action-list > button > .icon {
  background: var(--sage-100);
  border-radius: 50%;
  color: var(--sage-700);
  height: 38px;
  padding: 9px;
  width: 38px;
}

.schedule-action-list > button > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.schedule-action-list strong {
  font-size: 14px;
}

.schedule-action-list small {
  color: var(--navy-600);
  font-size: 11px;
  line-height: 1.4;
  margin-top: 2px;
}

.schedule-action-list > .schedule-delete-action:hover {
  background: #fff5f3;
  border-color: #efb0a8;
}

.schedule-action-list > .schedule-delete-action > .icon {
  background: var(--coral-100);
  color: var(--coral-600);
}

.contact-list {
  border: 1px solid var(--line);
  border-radius: 11px;
  max-height: 230px;
  overflow-y: auto;
}

.contact-choice {
  align-items: center;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: auto 1fr auto;
  padding: 11px 13px;
  text-align: left;
  width: 100%;
}

.contact-choice:last-child {
  border-bottom: 0;
}

.contact-choice:hover,
.contact-choice.selected {
  background: var(--blush-50);
}

.contact-choice.selected {
  box-shadow: inset 3px 0 0 var(--coral-500);
}

.contact-choice > span:not(.recipient-avatar) {
  display: flex;
  flex-direction: column;
}

.contact-choice strong {
  font-size: 14px;
}

.contact-choice small {
  color: var(--navy-600);
  font-size: 11px;
  margin-top: 3px;
}

.contact-choice > .icon {
  color: var(--navy-600);
  height: 17px;
  width: 17px;
}

.contact-form {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0 12px;
  grid-template-columns: 1fr 1fr;
  margin-top: 20px;
  padding-top: 18px;
}

.contact-form h3 {
  font-size: 15px;
  grid-column: 1 / -1;
  margin: 0 0 2px;
}

.contact-form input {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 13px;
  height: 46px;
  padding: 0 12px;
  width: 100%;
}

.contact-form .primary-button {
  grid-column: 1 / -1;
  margin-top: 16px;
}

.import-phone-button {
  align-items: center;
  background: var(--apricot-100);
  border: 1px solid #f0d4a9;
  border-radius: 10px;
  display: grid;
  gap: 12px;
  grid-template-columns: auto 1fr auto;
  margin-top: 16px;
  padding: 13px;
  text-align: left;
  width: 100%;
}

.import-phone-button > span {
  display: flex;
  flex-direction: column;
}

.import-phone-button strong {
  font-size: 13px;
}

.import-phone-button small {
  color: #705c4c;
  font-size: 10px;
  margin-top: 3px;
}

.pair-steps {
  background: var(--blush-50);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--navy-800);
  font-size: 13px;
  line-height: 1.55;
  padding: 17px 18px;
}

.pair-steps ol {
  margin: 0;
  padding-left: 20px;
}

.pair-steps li + li {
  margin-top: 6px;
}

.pair-steps p {
  border-top: 1px solid var(--line);
  margin: 15px 0 0;
  padding-top: 14px;
}

.pair-code-panel {
  align-items: center;
  background: var(--apricot-100);
  border: 1px solid #f0d4a9;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  text-align: center;
}

.pair-code-panel p {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 14px;
}

.pair-code {
  color: var(--navy-950);
  font-size: clamp(30px, 7vw, 42px);
  letter-spacing: 0.13em;
  line-height: 1;
}

.pair-code-panel small {
  color: #705c4c;
  margin-top: 12px;
}

.pair-button {
  margin-top: 18px;
  width: 100%;
}

.paired-device-card {
  align-items: center;
  background: var(--sage-100);
  border: 1px solid #bed7c5;
  border-radius: 12px;
  display: flex;
  gap: 18px;
  padding: 16px 20px;
}

.paired-device-card > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.paired-device-card small {
  color: var(--navy-600);
}

.toast {
  background: var(--navy-950);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  bottom: 24px;
  box-shadow: var(--shadow);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  left: 50%;
  max-width: min(90vw, 440px);
  padding: 13px 18px;
  position: fixed;
  text-align: center;
  transform: translateX(-50%);
  z-index: 80;
}

@media (max-width: 1320px) {
  .app-shell.composer-is-open {
    grid-template-columns: minmax(0, 1fr) 390px;
  }

  .topbar {
    gap: 12px;
    padding: 0 20px;
  }

  .nav-item {
    min-width: 92px;
    padding-inline: 10px;
  }

  .dashboard {
    padding-inline: 26px;
  }

  .history-view {
    padding-inline: 26px;
  }

  .calendar-view {
    padding-inline: 26px;
  }
}

@media (max-width: 1120px) {
  .app-shell.composer-is-open {
    grid-template-areas:
      "topbar"
      "main";
    grid-template-columns: minmax(0, 1fr);
  }

  .composer {
    bottom: 0;
    box-shadow: -18px 0 50px rgba(30, 20, 25, 0.16);
    max-width: 430px;
    position: fixed;
    right: 0;
    top: 88px;
    width: min(92vw, 430px);
    z-index: 50;
  }

  .empty-notes {
    align-items: flex-start;
    grid-template-columns: auto 1fr;
  }

  .empty-notes .primary-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .composer form {
    height: 100%;
    position: static;
  }

  .brand span {
    font-size: 21px;
  }

  .nav-item {
    min-width: 82px;
  }

  .nav-item .icon {
    display: none;
  }
}

@media (max-width: 820px) {
  .app-shell {
    grid-template-rows: 76px auto;
  }

  .topbar {
    grid-template-columns: 1fr auto auto;
    height: 76px;
    padding: 0 16px;
  }

  .brand-mark {
    height: 42px;
    width: 42px;
  }

  .desktop-navigation {
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    left: 0;
    padding: 8px 16px 14px;
    position: absolute;
    right: 0;
    top: 76px;
  }

  .desktop-navigation.mobile-open {
    display: flex;
  }

  .nav-item {
    border-bottom: 0;
    border-left: 3px solid transparent;
    justify-content: flex-start;
    min-height: 48px;
    padding: 0 14px;
    width: 100%;
  }

  .nav-item.active {
    background: var(--coral-100);
    border-bottom: 0;
    border-left-color: var(--coral-500);
  }

  .nav-item .icon {
    display: block;
  }

  .account-button .icon {
    display: none;
  }

  .account-avatar {
    height: 38px;
    width: 38px;
  }

  .mobile-menu-button {
    display: flex;
  }

  .dashboard {
    padding: 28px 18px 48px;
  }

  .history-view {
    padding: 28px 18px 48px;
  }

  .calendar-view {
    padding: 28px 18px 36px;
  }

  .calendar-heading {
    align-items: flex-start;
  }

  .calendar-heading h1 {
    font-size: 34px;
  }

  .history-heading {
    align-items: flex-start;
  }

  .history-heading h1 {
    font-size: 32px;
  }

  .dashboard-heading {
    align-items: flex-start;
  }

  .dashboard-heading h1 {
    font-size: 32px;
  }

  .dashboard-heading .primary-button {
    min-height: 44px;
    padding: 0 15px;
  }

  .dashboard-heading .primary-button .icon {
    display: none;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .weekly-overview,
  .phone-overview {
    min-height: 170px;
  }

  .composer {
    top: 76px;
  }
}

@media (max-width: 620px) {
  .signup-plan-options {
    grid-template-columns: 1fr;
  }

  .billing-shell {
    width: min(100% - 24px, 560px);
    padding-top: 32px;
  }

  .billing-plans {
    grid-template-columns: 1fr;
  }

  .billing-owner-card,
  .billing-manage-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .billing-owner-card .primary-button,
  .billing-manage-card .primary-button {
    width: 100%;
    text-align: center;
  }

  .brand span {
    font-size: 19px;
  }

  .brand-mark {
    height: 38px;
    width: 38px;
  }

  .dashboard-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .history-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .calendar-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .calendar-toolbar {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .calendar-new-button {
    width: 100%;
  }

  .calendar-week-controls {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px auto;
    width: 100%;
  }

  .calendar-week-controls strong {
    font-size: 17px;
    min-width: 0;
  }

  .calendar-panel {
    border-radius: 12px;
  }

  .calendar-rotation-agenda-heading,
  .calendar-rotation-agenda-empty {
    align-items: flex-start;
  }

  .calendar-rotation-agenda-heading {
    padding-inline: 14px;
  }

  .calendar-rotation-agenda-list {
    max-height: 310px;
    padding-inline: 14px;
  }

  .calendar-rotation-agenda-row {
    align-items: start;
    grid-template-columns: 18px minmax(0, 1fr) auto;
  }

  .calendar-rotation-agenda-actions {
    grid-column: 2 / -1;
    justify-content: flex-start;
    max-width: none;
  }

  .calendar-rotation-agenda-empty {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .calendar-rotation-agenda-empty button {
    grid-column: 2;
    justify-self: start;
  }

  .calendar-scroll {
    height: clamp(440px, 66vh, 620px);
  }

  .calendar-grid {
    grid-template-columns: 70px repeat(7, 168px);
    min-width: 1246px;
  }

  .calendar-help {
    align-items: flex-start;
    line-height: 1.45;
  }

  .history-heading .secondary-button {
    align-self: stretch;
  }

  .history-toolbar {
    align-items: stretch;
    flex-direction: column;
    padding: 17px;
  }

  .history-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .history-filters button {
    padding-inline: 6px;
    white-space: normal;
  }

  .history-list {
    overflow: visible;
  }

  .history-row {
    align-items: start;
    gap: 11px;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 0;
    min-width: 0;
    padding: 17px;
  }

  .history-recipient {
    grid-column: 1;
    grid-row: 1;
  }

  .history-recipient small {
    display: none;
  }

  .history-message {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .history-date {
    grid-column: 1;
    grid-row: 3;
  }

  .history-row > .status-pill {
    grid-column: 2;
    grid-row: 1;
  }

  .history-confirm-button {
    grid-column: 2;
    grid-row: 3;
  }

  .section-context {
    display: block;
  }

  .dashboard-heading .primary-button {
    align-self: stretch;
  }

  .metrics-row {
    gap: 0;
  }

  .metric {
    min-height: 100px;
    padding-inline: 7px;
  }

  .metric-label {
    font-size: 11px;
  }

  .metric strong {
    font-size: 25px;
  }

  .upcoming-heading p,
  .upcoming-heading .secondary-button {
    display: none;
  }

  .notes-table {
    overflow: visible;
  }

  .note-table-header {
    display: none;
  }

  .note-row {
    align-items: start;
    gap: 10px;
    grid-template-columns: 1fr auto;
    min-height: auto;
    min-width: 0;
    padding: 17px;
  }

  .recipient-cell {
    grid-column: 1;
  }

  .recipient-cell small {
    display: none;
  }

  .message-cell {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .date-cell {
    color: var(--navy-600);
    grid-column: 1;
    grid-row: 3;
  }

  .note-row > span:nth-of-type(2) {
    color: var(--navy-600);
    grid-column: 1;
    grid-row: 4;
  }

  .note-row > span:nth-of-type(3) {
    grid-column: 2;
    grid-row: 1;
  }

  .row-actions {
    grid-column: 2;
    grid-row: 3 / span 2;
  }

  .composer {
    max-width: none;
    width: 100vw;
  }

  .composer form {
    padding: 22px 18px 30px;
  }

  .date-time-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-form h3,
  .contact-form .primary-button {
    grid-column: 1;
  }

  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .modal-card {
    border-radius: 18px 18px 0 0;
    max-height: 92vh;
    padding: 22px 18px 28px;
    width: 100%;
  }

  .phone-detail {
    justify-content: flex-start;
  }
}

/* Approved Warm Letter + Garden hybrid */
.brand,
.dashboard-heading h1,
.surface h2,
.composer-header h2,
.schedule-fields legend,
.modal-header h2 {
  font-family: var(--font-heading);
}

.brand {
  font-weight: 700;
}

.dashboard-heading h1 {
  font-weight: 600;
}

.dashboard-subtitle {
  align-items: center;
  color: var(--navy-600);
  display: flex;
  font-size: 14px;
  gap: 8px;
  margin: 9px 0 0;
}

.dashboard-subtitle .icon {
  color: var(--sage-600);
  height: 18px;
  width: 18px;
}

.surface {
  border-color: #e0ddd6;
}

.surface h2,
.schedule-fields legend {
  font-weight: 600;
}

.metric-icon {
  border-radius: 50%;
  height: 42px;
  width: 42px;
}

.metric-coral {
  background: var(--coral-100);
}

.metric-green {
  background: var(--sage-100);
}

.metric-amber {
  background: var(--amber-100);
}

.phone-overview {
  background: var(--sage-50);
}

.composer-header h2 {
  font-size: 24px;
  font-weight: 600;
}

.recipient-picker {
  color: var(--navy-800);
  cursor: pointer;
  padding: 0;
  text-align: left;
  width: 100%;
}

.recipient-picker > span {
  flex: 1;
  font-size: 13px;
  min-width: 0;
  padding: 0 9px;
}

.recipient-search-area {
  position: relative;
  z-index: 12;
}

.recipient-combobox {
  width: 100%;
}

.recipient-combobox input {
  background: transparent;
  border: 0;
  color: var(--navy-950);
  flex: 1;
  font: inherit;
  font-size: 13px;
  height: 46px;
  min-width: 0;
  outline: 0;
  padding: 0 9px;
}

.recipient-combobox input::placeholder {
  color: var(--navy-600);
  opacity: 1;
}

.recipient-combobox > button {
  align-items: center;
  align-self: stretch;
  background: transparent;
  border: 0;
  color: var(--navy-700);
  display: flex;
  justify-content: center;
  width: 42px;
}

.recipient-combobox > button .icon {
  height: 16px;
  transform: rotate(90deg);
  width: 16px;
}

.recipient-suggestions {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: 0 16px 35px rgba(13, 28, 55, 0.16);
  left: 0;
  max-height: 270px;
  overflow-y: auto;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
}

.recipient-suggestion {
  align-items: center;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr auto;
  padding: 10px 12px;
  text-align: left;
  width: 100%;
}

.recipient-suggestion:last-child {
  border-bottom: 0;
}

.recipient-suggestion:hover,
.recipient-suggestion:focus-visible,
.recipient-suggestion.selected {
  background: var(--sage-50);
}

.recipient-suggestion:focus-visible {
  outline: 2px solid var(--coral-500);
  outline-offset: -2px;
}

.recipient-suggestion > span:not(.recipient-avatar):not(.contact-check) {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.recipient-suggestion strong {
  color: var(--navy-950);
  font-size: 13px;
}

.recipient-suggestion small {
  color: var(--navy-600);
  font-size: 11px;
  margin-top: 2px;
}

.recipient-suggestion-empty {
  color: var(--navy-600);
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
  padding: 14px;
}

.selected-contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.selected-contact-list:not(:empty) {
  margin-top: 9px;
}

.selected-contact-list .selected-contact {
  margin-top: 0;
}

.modal-header .modal-intro {
  margin: 5px 0 0;
}

.modal-contact-search {
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  display: flex;
  min-height: 46px;
}

.modal-contact-search:focus-within {
  border-color: #efa59d;
  box-shadow: 0 0 0 3px var(--coral-100);
}

.modal-contact-search .icon {
  color: var(--navy-600);
  height: 18px;
  margin-left: 12px;
  width: 18px;
}

.modal-contact-search input {
  background: transparent;
  border: 0;
  flex: 1;
  font: inherit;
  font-size: 13px;
  height: 44px;
  min-width: 0;
  outline: 0;
  padding: 0 12px 0 9px;
}

.contact-selection-tools {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 42px;
}

.contact-selection-tools strong {
  color: var(--sage-700);
  font-size: 12px;
}

.contact-selection-tools span {
  display: flex;
  gap: 3px;
}

.contact-selection-tools button {
  background: transparent;
  border: 0;
  color: var(--coral-600);
  font-size: 11px;
  font-weight: 750;
  padding: 8px;
}

.contact-selection-tools button:hover,
.contact-selection-tools button:focus-visible {
  color: var(--coral-700);
  text-decoration: underline;
}

.contact-form-help {
  color: var(--navy-600);
  font-size: 11px;
  grid-column: 1 / -1;
  line-height: 1.45;
  margin: 2px 0 10px;
}

.custom-repeat-field {
  display: block;
  margin-top: 12px;
}

.custom-repeat-field .field-label {
  margin-top: 0;
}

.custom-repeat-input {
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  display: flex;
  max-width: 150px;
  min-height: 44px;
  overflow: hidden;
}

.custom-repeat-input input {
  border: 0;
  font-size: 13px;
  min-width: 0;
  outline: 0;
  padding: 0 10px;
  width: 74px;
}

.custom-repeat-input > span {
  background: var(--sage-50);
  border-left: 1px solid var(--line);
  color: var(--sage-700);
  font-size: 12px;
  min-height: 44px;
  padding: 13px 11px;
}

.contact-choice.selected {
  background: var(--sage-50);
  box-shadow: inset 3px 0 0 var(--sage-600);
}

.contact-check {
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: #fff;
  display: flex !important;
  font-size: 12px;
  font-weight: 800;
  height: 23px;
  justify-content: center;
  width: 23px;
}

.contact-choice.selected .contact-check {
  background: var(--sage-600);
  border-color: var(--sage-600);
}

.import-phone-button {
  background: var(--sage-50);
  border-color: #cfdcc9;
}

.import-phone-button small {
  color: var(--sage-700);
}

.contacts-done-button {
  margin-top: 12px;
  width: 100%;
}

@media (max-width: 620px) {
  .dashboard-subtitle {
    font-size: 13px;
    line-height: 1.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Standalone cpwcreations.com package */
.svg-sprite,
.is-hidden {
  display: none !important;
}

#notes-list {
  display: contents;
}

.recipient-picker > .icon:last-child {
  transform: rotate(90deg);
}

.account-button {
  color: var(--navy-950);
  text-decoration: none;
}

.account-signout {
  color: var(--navy-600);
  font-size: 12px;
  font-weight: 700;
}

.contact-empty {
  padding: 12px 14px;
}

.toast-error {
  background: #fff0ed;
  border-color: #e9ada6;
  color: #9c372e;
}

.auth-page {
  align-items: center;
  background: var(--blush-50);
  display: flex;
  min-height: 100vh;
  padding: 28px;
}

.auth-shell,
.setup-shell {
  margin: auto;
  width: min(100%, 520px);
}

.setup-shell {
  width: min(100%, 820px);
}

.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 34px;
}

.auth-brand {
  align-items: center;
  display: flex;
  font-family: var(--font-heading);
  font-size: 25px;
  font-weight: 700;
  gap: 11px;
  margin-bottom: 28px;
}

.auth-brand img {
  height: 48px;
  width: 48px;
}

.auth-card h1 {
  font-family: var(--font-heading);
  font-size: 31px;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-bottom: 9px;
}

.auth-intro {
  color: var(--navy-600);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 24px;
}

.auth-form,
.setup-form,
.setup-form fieldset,
.auth-form label,
.setup-form label {
  display: grid;
  gap: 8px;
}

.auth-form {
  gap: 17px;
}

.auth-form label > span,
.setup-form label > span {
  font-size: 12px;
  font-weight: 720;
}

.auth-form input,
.setup-form input,
.setup-form select {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  font-size: 14px;
  min-height: 48px;
  padding: 0 13px;
  width: 100%;
}

.auth-submit {
  margin-top: 6px;
  text-decoration: none;
  width: 100%;
}

.auth-help,
.setup-security-note {
  color: var(--navy-600);
  font-size: 11px;
  margin: 20px 0 0;
  text-align: center;
}

.auth-error {
  background: #fff0ed;
  border: 1px solid #e9ada6;
  border-radius: 9px;
  color: #8f332b;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 18px;
  padding: 12px 13px;
}

.setup-form {
  gap: 22px;
}

.setup-form fieldset {
  border: 1px solid var(--line);
  border-radius: 13px;
  gap: 12px;
  margin: 0;
  padding: 18px;
}

.setup-form legend {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
  padding: 0 7px;
}

.setup-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.setup-success {
  text-align: center;
}

.setup-success-icon {
  align-items: center;
  background: var(--sage-100);
  border-radius: 50%;
  color: var(--sage-700);
  display: inline-flex;
  font-size: 28px;
  font-weight: 800;
  height: 64px;
  justify-content: center;
  margin-bottom: 12px;
  width: 64px;
}

.setup-success p {
  color: var(--navy-600);
  line-height: 1.55;
}

.pair-code-panel {
  background: var(--sage-50);
  border: 1px solid #cfdcc9;
  border-radius: 12px;
  display: grid;
  gap: 10px;
  padding: 18px;
  text-align: center;
}

.pair-code-panel p {
  line-height: 1.55;
  margin: 0;
}

.pair-code {
  color: var(--navy-950);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 31px;
  letter-spacing: 0.12em;
}

@media (max-width: 620px) {
  .auth-page {
    align-items: flex-start;
    padding: 15px;
  }

  .auth-card {
    padding: 24px 19px;
  }

  .setup-grid {
    grid-template-columns: 1fr;
  }

  .account-signout {
    display: none;
  }
}

/* Message Rotation, Composer Starter Texts, Rotation Calendar, and Upcoming List — v0.4.6 */
.rotation-view {
  grid-area: main;
  min-width: 0;
  padding: 34px 38px 58px;
}

.rotation-heading {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto 24px;
  max-width: 1320px;
}

.rotation-heading h1 {
  font-family: var(--font-heading);
  font-size: clamp(34px, 3vw, 46px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin: 0 0 8px;
}

.rotation-heading p {
  color: var(--navy-600);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.rotation-template-library {
  margin: 0 auto 20px;
  max-width: 1320px;
  overflow: hidden;
  padding: 22px;
}

.rotation-template-heading {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.rotation-template-heading h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.025em;
  margin: 0;
}

.rotation-template-heading p {
  color: var(--navy-600);
  font-size: 12px;
  margin: 5px 0 0;
}

.rotation-template-search {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  display: flex;
  flex: 0 1 360px;
  gap: 8px;
  min-width: 250px;
  padding: 0 12px;
}

.rotation-template-search:focus-within {
  border-color: var(--sage-600);
  box-shadow: 0 0 0 3px rgba(95, 131, 87, 0.12);
}

.rotation-template-search .icon {
  color: var(--navy-600);
  height: 18px;
  width: 18px;
}

.rotation-template-search input {
  background: transparent;
  border: 0;
  font-size: 13px;
  min-height: 44px;
  outline: 0;
  width: 100%;
}

.rotation-template-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 17px;
}

.rotation-template-filters button {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--navy-600);
  font-size: 11px;
  font-weight: 750;
  min-height: 34px;
  padding: 0 12px;
}

.rotation-template-filters button:hover {
  border-color: #aac3a4;
  color: var(--sage-700);
}

.rotation-template-filters button.selected {
  background: var(--sage-100);
  border-color: #aac3a4;
  color: var(--sage-700);
}

.rotation-template-grid {
  display: grid;
  gap: 11px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 15px;
}

.rotation-template-card {
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  display: grid;
  gap: 11px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 156px;
  padding: 15px;
  text-align: left;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
  width: 100%;
}

.rotation-template-card:hover {
  border-color: #d7b2ab;
  box-shadow: 0 8px 20px rgba(38, 27, 32, 0.07);
  transform: translateY(-1px);
}

.rotation-template-icon {
  align-items: center;
  background: var(--coral-100);
  border-radius: 9px;
  color: var(--coral-600);
  display: flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.rotation-template-encourage .rotation-template-icon,
.rotation-template-everyday .rotation-template-icon {
  background: var(--amber-100);
  color: var(--amber-600);
}

.rotation-template-appreciate .rotation-template-icon,
.rotation-template-optional .rotation-template-icon {
  background: var(--sage-100);
  color: var(--sage-700);
}

.rotation-template-celebrate .rotation-template-icon {
  background: var(--apricot-100);
  color: var(--coral-600);
}

.rotation-template-icon .icon {
  height: 21px;
  width: 21px;
}

.rotation-template-card-copy {
  display: flex;
  flex-direction: column;
  min-height: 124px;
  min-width: 0;
}

.rotation-template-category {
  color: var(--sage-700);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.rotation-template-card-copy > strong {
  font-family: var(--font-heading);
  font-size: 17px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.rotation-template-card-copy > small {
  color: var(--navy-600);
  font-size: 10px;
  line-height: 1.45;
  margin-top: 6px;
}

.rotation-template-count {
  align-items: center;
  color: var(--coral-600);
  display: flex;
  font-size: 10px;
  font-weight: 800;
  gap: 3px;
  margin-top: auto;
  padding-top: 10px;
}

.rotation-template-count .icon {
  height: 13px;
  width: 13px;
}

.rotation-template-empty {
  align-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  color: var(--navy-600);
  display: flex;
  flex-direction: column;
  font-size: 11px;
  gap: 5px;
  grid-column: 1 / -1;
  justify-content: center;
  min-height: 120px;
  padding: 22px;
  text-align: center;
}

.rotation-template-empty strong {
  color: var(--navy-950);
  font-size: 13px;
}

.rotation-workspace {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: 300px minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1320px;
}

.rotation-library {
  overflow: hidden;
}

.rotation-library-heading {
  border-bottom: 1px solid var(--line);
  padding: 20px;
}

.rotation-library-heading h2,
.rotation-editor-heading h2,
.rotation-empty h2,
.rotation-section-heading h2,
.rotation-section-heading h3 {
  font-family: var(--font-heading);
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0;
}

.rotation-library-heading h2,
.rotation-editor-heading h2,
.rotation-empty h2,
.rotation-section-heading h2 {
  font-size: 22px;
}

.rotation-section-heading h3 {
  font-size: 18px;
}

.rotation-library-heading p,
.rotation-editor-heading p,
.rotation-section-heading p,
.rotation-empty p {
  color: var(--navy-600);
  font-size: 12px;
  line-height: 1.5;
  margin: 5px 0 0;
}

.rotation-library-list {
  display: grid;
}

.rotation-library-item {
  align-items: center;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 82px;
  padding: 14px 16px 14px 20px;
  text-align: left;
  width: 100%;
}

.rotation-library-item:hover {
  background: var(--blush-50);
}

.rotation-library-item.selected {
  background: var(--sage-50);
  box-shadow: inset 4px 0 0 var(--sage-600);
}

.rotation-library-item > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rotation-library-item > span:first-child {
  gap: 5px;
}

.rotation-library-item > span:last-child {
  align-items: center;
  color: var(--navy-600);
  flex-direction: row;
  font-size: 10px;
  gap: 4px;
  white-space: nowrap;
}

.rotation-library-item strong {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rotation-library-item small {
  color: var(--navy-600);
  font-size: 10px;
}

.rotation-library-item .icon {
  height: 15px;
  width: 15px;
}

.rotation-library-empty {
  color: var(--navy-600);
  font-size: 12px;
  line-height: 1.55;
  padding: 28px 20px;
}

.rotation-editor-shell {
  overflow: hidden;
}

.rotation-empty {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 230px;
  padding: 36px;
}

.rotation-empty > span {
  align-items: center;
  background: var(--sage-100);
  border-radius: 50%;
  color: var(--sage-700);
  display: flex;
  height: 62px;
  justify-content: center;
  width: 62px;
}

.rotation-empty > span .icon {
  height: 30px;
  width: 30px;
}

.rotation-editor {
  padding: 26px;
}

.rotation-editor-heading,
.rotation-section-heading,
.rotation-save-row,
.rotation-selection-tools {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.rotation-delete-button {
  align-items: center;
  background: #fff;
  border: 1px solid #e4b0ab;
  border-radius: 8px;
  color: #a63d34;
  display: inline-flex;
  font-size: 12px;
  font-weight: 750;
  gap: 6px;
  min-height: 38px;
  padding: 0 11px;
}

.rotation-delete-button .icon {
  height: 16px;
  width: 16px;
}

.rotation-name-field {
  display: grid;
  gap: 7px;
  margin-top: 24px;
}

.rotation-name-field input,
.rotation-contact-search,
.rotation-message-content textarea {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
}

.rotation-name-field input {
  font-size: 15px;
  min-height: 48px;
  padding: 0 13px;
  width: 100%;
}

.rotation-order-field,
.rotation-timing {
  border: 0;
  margin: 24px 0 0;
  padding: 0;
}

.rotation-order-field legend,
.rotation-timing legend {
  font-size: 12px;
  font-weight: 750;
  margin-bottom: 9px;
}

.rotation-mode-control {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rotation-mode-control button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  display: flex;
  gap: 11px;
  min-height: 72px;
  padding: 12px 14px;
  text-align: left;
}

.rotation-mode-control button.selected {
  background: var(--sage-50);
  border-color: #aac3a4;
  box-shadow: inset 0 0 0 1px #aac3a4;
  color: var(--sage-700);
}

.rotation-mode-control button > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rotation-mode-control strong {
  font-size: 13px;
}

.rotation-mode-control small {
  color: var(--navy-600);
  font-size: 10px;
}

.rotation-message-builder {
  border-top: 1px solid var(--line);
  margin-top: 26px;
  padding-top: 24px;
}

#rotation-message-total {
  background: var(--coral-100);
  border-radius: 999px;
  color: var(--coral-600);
  font-size: 11px;
  padding: 6px 9px;
}

.rotation-message-list {
  display: grid;
  gap: 11px;
  margin-top: 17px;
}

.rotation-message-item {
  align-items: start;
  background: var(--blush-50);
  border: 1px solid var(--line);
  border-radius: 11px;
  display: grid;
  gap: 11px;
  grid-template-columns: 34px minmax(0, 1fr) 36px;
  padding: 13px;
}

.rotation-message-number {
  align-items: center;
  background: var(--coral-100);
  border-radius: 50%;
  color: var(--coral-600);
  display: flex;
  font-size: 12px;
  font-weight: 800;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.rotation-message-content {
  display: grid;
  gap: 6px;
  min-width: 0;
  position: relative;
}

.rotation-message-content label {
  font-size: 11px;
  font-weight: 750;
}

.rotation-message-content textarea {
  line-height: 1.5;
  min-height: 94px;
  padding: 11px 12px 25px;
  resize: vertical;
  width: 100%;
}

.rotation-message-content > small {
  bottom: 8px;
  color: var(--navy-600);
  font-size: 9px;
  position: absolute;
  right: 10px;
}

.rotation-message-actions {
  display: grid;
  gap: 6px;
}

.rotation-message-actions button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  display: flex;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.rotation-message-actions button:disabled {
  cursor: default;
  opacity: 0.35;
}

.rotation-message-actions button:nth-child(2) .icon {
  transform: rotate(180deg);
}

.rotation-message-actions .rotation-message-remove {
  color: #a63d34;
}

.rotation-message-actions .icon {
  height: 15px;
  width: 15px;
}

.rotation-add-message {
  align-items: center;
  background: transparent;
  border: 1px dashed #d7b2ab;
  border-radius: 9px;
  color: var(--coral-600);
  display: flex;
  font-size: 12px;
  font-weight: 750;
  gap: 7px;
  justify-content: center;
  margin-top: 11px;
  min-height: 44px;
  width: 100%;
}

.rotation-add-message:hover {
  background: var(--coral-100);
}

.rotation-add-message .icon {
  height: 16px;
  width: 16px;
}

.rotation-save-row {
  border-top: 1px solid var(--line);
  justify-content: flex-end;
  margin-top: 25px;
  padding-top: 20px;
}

.rotation-scheduler {
  background: var(--sage-50);
  border-top: 1px solid #d5dfd0;
  padding: 26px;
}

.rotation-pool-picker {
  background: #fff;
  border: 1px solid #d5dfd0;
  border-radius: 11px;
  margin: 18px 0;
  padding: 16px;
}

.rotation-pool-picker legend {
  color: var(--navy-950);
  font-size: 13px;
  font-weight: 800;
  padding: 0 6px;
}

.rotation-pool-picker > p {
  color: var(--navy-600);
  font-size: 10px;
  line-height: 1.5;
  margin: 0 0 12px;
}

.rotation-pool-list,
.rotation-assignment-set-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rotation-pool-choice,
.rotation-assignment-set-choice {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 58px;
  padding: 10px 12px;
  text-align: left;
}

.rotation-pool-choice.selected,
.rotation-assignment-set-choice.selected {
  background: var(--coral-100);
  border-color: #d9a39a;
}

.rotation-pool-choice:disabled {
  color: inherit;
  cursor: default;
  opacity: 1;
}

.rotation-pool-choice > span:last-child,
.rotation-assignment-set-choice > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rotation-pool-choice strong,
.rotation-assignment-set-choice strong {
  font-size: 11px;
}

.rotation-pool-choice small,
.rotation-assignment-set-choice small {
  color: var(--navy-600);
  font-size: 9px;
  line-height: 1.35;
  margin-top: 2px;
}

.rotation-pool-check {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: transparent;
  display: flex;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.selected > .rotation-pool-check {
  background: var(--sage-600);
  border-color: var(--sage-600);
  color: #fff;
}

.rotation-pool-check .icon {
  height: 14px;
  width: 14px;
}

#rotation-pool-summary {
  color: var(--sage-700);
  display: block;
  font-size: 10px;
  margin-top: 10px;
}

.rotation-contact-search {
  align-items: center;
  display: flex;
  gap: 9px;
  margin-top: 18px;
  padding: 0 12px;
}

.rotation-contact-search:focus-within {
  border-color: var(--sage-600);
  box-shadow: 0 0 0 3px rgba(95, 131, 87, 0.12);
}

.rotation-contact-search .icon {
  color: var(--navy-600);
  height: 18px;
  width: 18px;
}

.rotation-contact-search input {
  background: transparent;
  border: 0;
  min-height: 46px;
  outline: 0;
  width: 100%;
}

.rotation-selection-tools {
  margin: 8px 0;
}

.rotation-selection-tools strong {
  color: var(--sage-700);
  font-size: 11px;
}

.rotation-selection-tools span {
  display: flex;
  gap: 8px;
}

.rotation-selection-tools button {
  background: transparent;
  border: 0;
  color: var(--coral-600);
  font-size: 10px;
  font-weight: 750;
  padding: 5px 0;
}

.rotation-recipient-list {
  background: #fff;
  border: 1px solid #d5dfd0;
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 260px;
  overflow: auto;
}

.rotation-recipient-choice {
  align-items: center;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 9px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 62px;
  padding: 9px 12px;
  text-align: left;
}

.rotation-recipient-choice:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.rotation-recipient-choice.selected {
  background: var(--coral-100);
}

.rotation-recipient-choice.assigned {
  background: #f5f5f3;
  cursor: default;
  opacity: 0.72;
}

.rotation-recipient-choice > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rotation-recipient-choice strong {
  font-size: 12px;
}

.rotation-recipient-choice small,
.rotation-contact-status {
  color: var(--navy-600);
  font-size: 9px;
}

.rotation-contact-status {
  color: var(--sage-700);
  font-weight: 750;
  max-width: 145px;
  text-align: right;
  white-space: normal;
}

.rotation-contact-empty {
  color: var(--navy-600);
  font-size: 11px;
  grid-column: 1 / -1;
  line-height: 1.5;
  margin: 0;
  padding: 22px;
}

.rotation-repeat-control {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rotation-repeat-control button {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-right: 0;
  font-size: 12px;
  font-weight: 750;
  min-height: 42px;
}

.rotation-repeat-control button:first-child {
  border-radius: 8px 0 0 8px;
}

.rotation-repeat-control button:last-child {
  border-radius: 0 8px 8px 0;
  border-right: 1px solid var(--line-strong);
}

.rotation-repeat-control button.selected {
  background: var(--coral-100);
  color: var(--coral-600);
}

.rotation-timing .date-time-grid {
  margin-top: 14px;
}

.rotation-spread-option {
  align-items: flex-start;
  background: #fff;
  border: 1px solid #d5dfd0;
  border-radius: 9px;
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
}

.rotation-spread-option input {
  accent-color: var(--sage-600);
  height: 18px;
  margin: 1px 0 0;
  width: 18px;
}

.rotation-spread-option span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rotation-spread-option strong {
  font-size: 12px;
}

.rotation-spread-option small {
  color: var(--navy-600);
  font-size: 10px;
}

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

.rotation-assignments {
  border-top: 1px solid #d5dfd0;
  margin-top: 26px;
  padding-top: 24px;
}

#rotation-assignment-list {
  background: #fff;
  border: 1px solid #d5dfd0;
  border-radius: 10px;
  margin-top: 14px;
  overflow: hidden;
}

.rotation-assignment-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(130px, 1fr) minmax(180px, 1fr) auto auto;
  min-height: 78px;
  padding: 12px 14px;
}

.rotation-assignment-row:last-child {
  border-bottom: 0;
}

.rotation-assignment-person,
.rotation-assignment-row > div:nth-child(3) {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rotation-assignment-row strong {
  font-size: 12px;
}

.rotation-assignment-row small {
  color: var(--navy-600);
  font-size: 9px;
  margin-top: 3px;
}

.rotation-assignment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rotation-assignment-pool-summary {
  color: var(--sage-700) !important;
  line-height: 1.35;
}

.rotation-assignment-sets-modal {
  max-width: 650px;
}

.rotation-assignment-set-list {
  max-height: min(55vh, 480px);
  overflow: auto;
}

.rotation-assignment-cycle-note {
  background: var(--sage-50);
  border: 1px solid #d5dfd0;
  border-radius: 8px;
  color: var(--navy-700);
  font-size: 11px;
  line-height: 1.5;
  margin: 14px 0;
  padding: 11px 12px;
}

.rotation-assignment-sets-modal > .primary-button {
  width: 100%;
}

.composer-starter-field > .field-label {
  align-items: baseline;
  display: flex;
  gap: 6px;
}

.composer-starter-field > .field-label small {
  color: var(--navy-600);
  font-size: 9px;
  font-weight: 650;
}

.composer-starter-button {
  align-items: center;
  background: linear-gradient(135deg, var(--sage-50), var(--blush-50));
  border: 1px solid #d7ded1;
  border-radius: 10px;
  display: grid;
  gap: 10px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  min-height: 62px;
  padding: 10px 12px;
  text-align: left;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
  width: 100%;
}

.composer-starter-button:hover {
  border-color: #aebfa6;
  box-shadow: 0 7px 18px rgba(76, 112, 72, 0.1);
  transform: translateY(-1px);
}

.composer-starter-icon {
  align-items: center;
  background: var(--sage-100);
  border-radius: 50%;
  color: var(--sage-700);
  display: flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.composer-starter-icon .icon {
  height: 19px;
  width: 19px;
}

.composer-starter-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.composer-starter-copy strong {
  font-size: 12px;
}

.composer-starter-copy small {
  color: var(--navy-600);
  font-size: 9px;
  margin-top: 3px;
}

.composer-starter-chevron {
  color: var(--sage-700);
  height: 17px;
  width: 17px;
}

.composer-starter-modal {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: min(100%, 940px);
}

.composer-starter-search {
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  display: flex;
  flex: 0 0 auto;
  margin-bottom: 16px;
  min-height: 46px;
}

.composer-starter-search:focus-within {
  border-color: #efa59d;
  box-shadow: 0 0 0 3px var(--coral-100);
}

.composer-starter-search .icon {
  color: var(--navy-600);
  height: 18px;
  margin-left: 13px;
  width: 18px;
}

.composer-starter-search input {
  background: transparent;
  border: 0;
  flex: 1;
  font-size: 12px;
  min-width: 0;
  outline: 0;
  padding: 0 12px;
}

.composer-starter-browser {
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.composer-starter-types {
  background: var(--sage-50);
  border-right: 1px solid var(--line);
  max-height: min(62vh, 570px);
  overflow-y: auto;
  padding: 8px;
}

.composer-starter-type {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  display: grid;
  gap: 9px;
  grid-template-columns: 30px minmax(0, 1fr);
  padding: 8px;
  text-align: left;
  width: 100%;
}

.composer-starter-type:hover {
  background: #fff;
}

.composer-starter-type.selected {
  background: #fff;
  border-color: #cbd9c5;
  box-shadow: 0 3px 9px rgba(76, 112, 72, 0.08);
}

.composer-starter-type > span:first-child {
  align-items: center;
  background: var(--sage-100);
  border-radius: 50%;
  color: var(--sage-700);
  display: flex;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.composer-starter-type > span:first-child .icon {
  height: 15px;
  width: 15px;
}

.composer-starter-type > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.composer-starter-type strong {
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer-starter-type small {
  color: var(--navy-600);
  font-size: 8px;
  margin-top: 2px;
}

.composer-starter-results {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 16px;
}

.composer-starter-results-heading {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  margin-bottom: 12px;
}

.composer-starter-results-heading h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  letter-spacing: -0.025em;
  margin: 0;
}

.composer-starter-results-heading p {
  color: var(--navy-600);
  font-size: 9px;
  margin: 3px 0 0;
}

.composer-starter-results-heading > span {
  align-items: center;
  background: var(--coral-100);
  border-radius: 50%;
  color: var(--coral-600);
  display: flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.composer-starter-results-heading .icon {
  height: 17px;
  width: 17px;
}

.composer-starter-message-list {
  display: grid;
  gap: 8px;
  max-height: min(52vh, 480px);
  min-height: 0;
  overflow-y: auto;
  padding: 1px 4px 1px 1px;
}

.composer-starter-message {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 58px;
  padding: 10px 12px;
  text-align: left;
  transition: background 140ms ease, border-color 140ms ease;
  width: 100%;
}

.composer-starter-message:hover {
  background: var(--blush-50);
  border-color: #efa59d;
}

.composer-starter-message-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.composer-starter-message-copy small {
  color: var(--coral-600);
  font-size: 8px;
  font-weight: 800;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.composer-starter-message-copy strong {
  font-size: 11px;
  font-weight: 650;
  line-height: 1.45;
}

.composer-starter-use {
  align-items: center;
  color: var(--sage-700);
  display: flex;
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 800;
  gap: 3px;
  white-space: nowrap;
}

.composer-starter-use .icon {
  height: 14px;
  width: 14px;
}

.composer-starter-empty {
  align-items: center;
  color: var(--navy-600);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 180px;
  padding: 24px;
  text-align: center;
}

.composer-starter-empty strong {
  color: var(--navy-950);
  font-size: 12px;
}

.composer-starter-empty span {
  font-size: 10px;
  margin-top: 4px;
}

.rotation-template-modal {
  max-width: 820px;
}

.rotation-template-preview-meta {
  color: var(--sage-700);
  font-size: 11px;
  font-weight: 800;
  margin: 2px 0 14px;
}

.rotation-template-preview-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  max-height: min(54vh, 520px);
  overflow: auto;
  padding: 1px 4px 1px 1px;
}

.rotation-template-preview-list li {
  align-items: start;
  background: var(--blush-50);
  border: 1px solid var(--line);
  border-radius: 9px;
  display: grid;
  gap: 9px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 11px;
}

.rotation-template-preview-list li > span {
  align-items: center;
  background: var(--coral-100);
  border-radius: 50%;
  color: var(--coral-600);
  display: flex;
  font-size: 9px;
  font-weight: 850;
  height: 23px;
  justify-content: center;
  width: 23px;
}

.rotation-template-preview-list p {
  font-size: 11px;
  line-height: 1.5;
  margin: 2px 0 0;
}

.rotation-template-preview-note {
  background: var(--sage-50);
  border: 1px solid #d5dfd0;
  border-radius: 8px;
  color: var(--navy-600);
  font-size: 10px;
  line-height: 1.5;
  margin: 14px 0 0;
  padding: 10px 12px;
}

.rotation-template-preview-actions {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  margin-top: 15px;
}

.rotation-template-preview-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.rotation-assignment-actions button {
  background: transparent;
  border: 0;
  color: var(--navy-950);
  font-size: 10px;
  font-weight: 800;
  padding: 4px 0;
}

.rotation-assignment-actions button:hover {
  color: var(--coral-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rotation-assignment-actions .danger {
  color: #a63d34;
}

.rotation-assignment-empty {
  color: var(--navy-600);
  font-size: 11px;
  line-height: 1.5;
  padding: 20px;
}

.installed-version {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 7px;
  bottom: 12px;
  box-shadow: 0 3px 12px rgba(38, 27, 32, 0.06);
  color: var(--navy-600);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.015em;
  padding: 6px 8px;
  pointer-events: none;
  position: fixed;
  right: 12px;
  z-index: 35;
}

.rotation-reschedule-lock textarea:disabled,
.rotation-reschedule-lock input:disabled,
.rotation-reschedule-lock button:disabled,
.rotation-reschedule-lock .upload-control {
  cursor: not-allowed;
  opacity: 0.58;
}

@media (max-width: 1080px) {
  .nav-item {
    font-size: 13px;
    min-width: 68px;
    padding-inline: 7px;
  }

  .account-signout {
    display: none;
  }

  .rotation-workspace {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .rotation-template-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rotation-assignment-row {
    grid-template-columns: auto minmax(130px, 1fr) minmax(150px, 1fr) auto;
  }

  .rotation-assignment-actions {
    grid-column: 2 / -1;
  }
}

@media (max-width: 820px) {
  .rotation-view {
    padding: 28px 18px 48px;
  }

  .rotation-workspace {
    grid-template-columns: 1fr;
  }

  .rotation-template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rotation-library-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rotation-library-item:nth-child(odd) {
    border-right: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  .rotation-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .rotation-heading h1 {
    font-size: 34px;
  }

  .rotation-template-library {
    padding: 18px 15px;
  }

  .rotation-template-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 13px;
  }

  .rotation-template-search {
    flex-basis: auto;
    min-width: 0;
  }

  .rotation-template-filters {
    flex-wrap: nowrap;
    margin-inline: -15px;
    overflow-x: auto;
    padding: 0 15px 4px;
  }

  .rotation-template-filters button {
    flex: 0 0 auto;
  }

  .rotation-template-grid,
  .rotation-template-preview-list {
    grid-template-columns: 1fr;
  }

  .rotation-template-card {
    min-height: 140px;
  }

  .rotation-template-card-copy {
    min-height: 108px;
  }

  .rotation-template-preview-actions {
    flex-direction: column-reverse;
  }

  .rotation-template-preview-actions button {
    width: 100%;
  }

  .composer-starter-modal {
    max-height: 92vh;
    overflow-y: auto;
  }

  .composer-starter-browser {
    border: 0;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .composer-starter-types {
    border: 1px solid var(--line);
    border-radius: 9px;
    display: flex;
    gap: 6px;
    max-height: none;
    overflow-x: auto;
    padding: 7px;
  }

  .composer-starter-type {
    flex: 0 0 auto;
    min-width: 145px;
  }

  .composer-starter-results {
    padding: 16px 0 0;
  }

  .composer-starter-message-list {
    max-height: none;
    overflow: visible;
  }

  .composer-starter-message {
    align-items: flex-start;
  }

  .composer-starter-use {
    margin-top: 3px;
  }

  .rotation-library-list,
  .rotation-mode-control,
  .rotation-pool-list,
  .rotation-assignment-set-list,
  .rotation-recipient-list {
    grid-template-columns: 1fr;
  }

  .rotation-library-item:nth-child(odd),
  .rotation-recipient-choice:nth-child(odd) {
    border-right: 0;
  }

  .rotation-empty {
    grid-template-columns: 1fr;
    padding: 26px 20px;
    text-align: center;
  }

  .rotation-empty > span {
    margin: 0 auto;
  }

  .rotation-editor,
  .rotation-scheduler {
    padding: 20px 16px;
  }

  .rotation-editor-heading,
  .rotation-section-heading {
    align-items: flex-start;
  }

  .rotation-editor-heading {
    flex-direction: column;
  }

  .rotation-message-item {
    gap: 8px;
    grid-template-columns: 28px minmax(0, 1fr) 30px;
    padding: 10px;
  }

  .rotation-message-number,
  .rotation-message-actions button {
    height: 26px;
    width: 26px;
  }

  .rotation-repeat-control {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rotation-repeat-control button,
  .rotation-repeat-control button:first-child,
  .rotation-repeat-control button:last-child {
    border: 1px solid var(--line-strong);
    border-radius: 7px;
  }

  .rotation-assignment-row {
    align-items: start;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .rotation-assignment-row > div:nth-child(3) {
    grid-column: 2 / -1;
  }

  .rotation-assignment-row > .status-pill {
    grid-column: 3;
    grid-row: 1;
  }

  .rotation-assignment-actions {
    flex-wrap: wrap;
    grid-column: 2 / -1;
  }

  .installed-version {
    bottom: 7px;
    font-size: 9px;
    right: 7px;
  }
}

/* Keep the registration agreement checkbox compact beside readable text. */
.auth-form .auth-checkbox {
  align-items: flex-start;
  display: flex !important;
  gap: 10px !important;
}

.auth-form .auth-checkbox input[type="checkbox"] {
  flex: 0 0 18px;
  height: 18px;
  margin: 2px 0 0;
  min-height: 18px;
  padding: 0;
  width: 18px;
}

.auth-form .auth-checkbox > span {
  flex: 1 1 auto;
  line-height: 1.5;
  min-width: 0;
}
