:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #eef1f6;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-solid: #ffffff;
  --line: rgba(20, 31, 52, 0.1);
  --line-strong: rgba(20, 31, 52, 0.18);
  --ink: #111318;
  --muted: #687180;
  --muted-2: #98a1ad;
  --blue: #007aff;
  --green: #34c759;
  --orange: #ff9f0a;
  --pink: #ff2d55;
  --purple: #af52de;
  --teal: #30b0c7;
  --yellow: #ffcc00;
  --shadow: 0 18px 55px rgba(40, 55, 84, 0.12);
  --blur: blur(22px) saturate(1.35);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

html {
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0) 34%),
    var(--bg);
  color: var(--ink);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "SF Pro Text",
    "Segoe UI",
    system-ui,
    sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0;
}

html,
body,
.app-shell,
.workspace,
.task-list,
.insights,
.clients-board,
.calendar-board,
.calendar-list-body,
.account-dialog {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.app-shell::-webkit-scrollbar,
.workspace::-webkit-scrollbar,
.task-list::-webkit-scrollbar,
.insights::-webkit-scrollbar,
.clients-board::-webkit-scrollbar,
.calendar-board::-webkit-scrollbar,
.calendar-list-body::-webkit-scrollbar,
.account-dialog::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button,
a,
label,
summary,
[role="button"],
input,
select,
textarea {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

button,
[role="button"] {
  touch-action: manipulation;
  -webkit-touch-callout: none;
  user-select: none;
}

:where(button, a, label, summary, [role="button"], input, select, textarea):focus:not(:focus-visible) {
  outline: none;
}

input,
select,
textarea {
  max-width: 100%;
}

input[type="date"],
input[type="time"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  line-height: 1;
  text-align: left;
}

input[type="date"]::-webkit-date-and-time-value,
input[type="time"]::-webkit-date-and-time-value {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  line-height: 1;
  text-align: left;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  flex-shrink: 0;
  margin-left: 4px;
}

button {
  color: inherit;
}

body:not(.authenticated) .app-shell {
  display: none;
}

body.authenticated .auth-screen {
  display: none;
}

body.calendar-view .top-actions {
  display: none;
}

body.clients-view .top-actions {
  grid-template-columns: minmax(0, 1fr);
}

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
  padding: 24px;
  opacity: 1;
  transition:
    opacity 420ms ease,
    visibility 420ms ease;
}

.boot-screen.is-done {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.boot-window {
  position: relative;
  overflow: visible;
  display: inline-flex;
  align-items: center;
  column-gap: 13px;
  width: fit-content;
  max-width: calc(100% - 24px);
  margin-inline: auto;
  opacity: 0;
  transform: none;
  animation: bootBrandIn 680ms ease forwards;
}

.boot-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(0, 122, 255, 0.98) 0%, rgba(48, 176, 199, 0.94) 58%, rgba(52, 199, 89, 0.9) 100%),
    var(--blue);
  box-shadow: 0 14px 30px rgba(0, 122, 255, 0.18);
}

.boot-logo {
  width: 31px;
  height: 31px;
  color: #fff;
  overflow: visible;
  filter: drop-shadow(0 2px 4px rgba(0, 58, 120, 0.18));
}

.boot-copy {
  display: grid;
  min-width: 0;
  max-width: calc(100vw - 92px);
  gap: 3px;
  text-align: left;
}

.boot-title {
  color: var(--ink);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.boot-subtitle {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.18;
  text-align: left;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .boot-window {
    column-gap: 12px;
    width: fit-content;
    max-width: calc(100% - 20px);
  }

  .boot-mark {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .boot-logo {
    width: 29px;
    height: 29px;
  }

  .boot-title {
    font-size: 28px;
  }

  .boot-subtitle {
    font-size: 12px;
  }
}

@keyframes bootBrandIn {
  to {
    opacity: 1;
    transform: none;
  }
}

.landing-screen {
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
  background: #ffffff;
  color: var(--ink);
  padding:
    calc(18px + var(--safe-top))
    calc(18px + var(--safe-right))
    calc(28px + var(--safe-bottom))
    calc(18px + var(--safe-left));
}

body.landing-active:not(.authenticated) .landing-screen {
  display: block;
}

body.landing-active:not(.authenticated) .auth-screen,
body.landing-active .app-shell {
  display: none !important;
}

.landing-header,
.landing-main {
  width: min(1040px, 100%);
  margin-inline: auto;
}

.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  box-sizing: border-box;
  padding-inline: 0;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.landing-brand-mark {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #007aff 0%, #30b0c7 58%, #34c759 100%);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 122, 255, 0.14);
}

.taymiqa-logo {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.taymiqa-logo .logo-hand {
  stroke-width: 2.8;
}

.taymiqa-logo .logo-spark {
  fill: #d7fff6;
  stroke: 0;
}

.landing-brand strong,
.landing-brand span {
  display: block;
  white-space: nowrap;
}

.landing-brand strong {
  font-size: 18px;
  line-height: 1.05;
  font-weight: 800;
}

.landing-brand span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
}

.landing-link-button,
.landing-primary,
.landing-secondary,
.landing-plan-button {
  min-height: 36px;
  border-radius: 13px;
  font: inherit;
  font-size: 13px;
  font-weight: 720;
  cursor: pointer;
}

.landing-link-button,
.landing-primary,
.landing-secondary,
.landing-plan-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 122, 255, 0.18);
  background: rgba(0, 122, 255, 0.06);
  color: var(--blue);
  padding: 0 14px;
  text-decoration: none;
}

.landing-main {
  display: grid;
  gap: 16px;
  padding-top: 34px;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 30px;
}

.landing-hero > * {
  min-width: 0;
}

.landing-hero-copy {
  display: grid;
  gap: 13px;
  min-width: 0;
  max-width: 560px;
}

.landing-kicker {
  width: fit-content;
  margin: 0;
  border: 1px solid rgba(0, 122, 255, 0.14);
  border-radius: 999px;
  background: rgba(0, 122, 255, 0.06);
  color: var(--blue);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 760;
}

.landing-hero h1 {
  margin: 0;
  max-width: 620px;
  font-size: clamp(32px, 4.3vw, 56px);
  line-height: 1.02;
  font-weight: 840;
  letter-spacing: 0;
  overflow-wrap: break-word;
  hyphens: auto;
}

.landing-hero-copy > p:not(.landing-kicker) {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.44;
  font-weight: 540;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 2px;
}

.landing-store-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: -2px;
}

.landing-subscription-link {
  width: fit-content;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  text-decoration: none;
}

.landing-store-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  padding: 0 11px;
  font-size: 11px;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.landing-store-tab.is-active {
  border-color: rgba(0, 122, 255, 0.22);
  background: rgba(0, 122, 255, 0.06);
  color: var(--blue);
}

.landing-store-tab.is-soon {
  cursor: default;
}

.landing-store-tab small {
  display: inline-flex;
  align-items: center;
  min-height: 17px;
  border-radius: 999px;
  background: rgba(255, 45, 85, 0.1);
  color: var(--pink);
  padding: 0 6px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.landing-primary {
  border: 0;
  background: linear-gradient(135deg, #007aff, #30b0c7);
  color: #ffffff;
  padding: 0 18px;
  box-shadow: 0 14px 30px rgba(0, 122, 255, 0.16);
}

.landing-product {
  display: flex;
  justify-content: flex-end;
}

.landing-phone {
  display: grid;
  gap: 8px;
  width: min(276px, 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  padding: 10px;
  box-shadow: 0 18px 46px rgba(20, 31, 52, 0.08);
}

.landing-phone-top,
.landing-input-row,
.landing-task-card,
.landing-mini-grid {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.landing-phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
}

.landing-phone-top span,
.landing-task-card small {
  color: var(--muted);
  font-weight: 680;
}

.landing-phone-top strong {
  display: block;
  margin-top: 3px;
  font-size: 17px;
  line-height: 1;
}

.landing-phone-top b {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  box-sizing: border-box;
  padding: 0;
  border-radius: 13px;
  background: rgba(0, 122, 255, 0.1);
  color: var(--blue);
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: normal;
  line-height: 1;
  text-align: center;
}

.landing-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 7px;
  padding: 8px;
}

.landing-input-row span {
  overflow: hidden;
  border-radius: 14px;
  background: rgba(127, 127, 127, 0.05);
  color: color-mix(in srgb, var(--muted) 74%, transparent);
  padding: 9px 11px;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-input-row i {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  box-sizing: border-box;
  padding: 0;
  border-radius: 13px;
  background: rgba(0, 122, 255, 0.1);
  color: var(--blue);
  font-size: 0;
  font-style: normal;
  line-height: 1;
  text-align: center;
}

.landing-input-row i::before,
.landing-input-row i::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
}

.landing-input-row i::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.landing-task-card {
  display: grid;
  gap: 6px;
  border-left: 4px solid var(--blue);
  padding: 10px 11px;
}

.landing-task-card.is-reminder {
  border-left-color: var(--green);
  background: linear-gradient(180deg, #ffffff, rgba(52, 199, 89, 0.045));
}

.landing-task-card strong {
  font-size: 15px;
}

.landing-task-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.landing-task-card div span,
.landing-strip span {
  border-radius: 999px;
  background: rgba(0, 122, 255, 0.08);
  color: var(--blue);
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 760;
}

.landing-task-card div span:nth-child(2) {
  background: rgba(255, 45, 85, 0.1);
  color: var(--pink);
}

.landing-task-card div span:nth-child(3) {
  background: rgba(127, 127, 127, 0.08);
  color: var(--muted);
}

.landing-task-card.is-reminder div span:first-child {
  background: rgba(52, 199, 89, 0.12);
  color: #1f8f49;
}

.landing-mini-grid {
  display: grid;
  grid-template-columns: 0.95fr 0.8fr 1.25fr;
  align-items: center;
  gap: 0;
  min-height: 36px;
  border-radius: 15px;
  background: linear-gradient(180deg, #ffffff, rgba(247, 249, 253, 0.78));
  padding: 6px 5px;
}

.landing-mini-grid span {
  display: flex;
  min-width: 0;
  min-height: 0;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
  color: color-mix(in srgb, var(--muted) 82%, var(--ink));
  padding: 0 7px;
  font-size: 9.5px;
  font-weight: 720;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-mini-grid span + span {
  border-left: 1px solid rgba(20, 31, 52, 0.08);
}

.landing-mini-grid b {
  display: inline;
  flex: 0 0 auto;
  margin-top: 0;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 820;
  line-height: 1;
  white-space: nowrap;
}

.landing-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.landing-flow article {
  display: grid;
  gap: 8px;
  min-height: 128px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  padding: 14px;
}

.landing-flow article span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 820;
}

.landing-flow article strong {
  font-size: 16px;
  line-height: 1.12;
}

.landing-flow article p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.32;
  font-weight: 520;
}

.landing-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 18px;
}

.landing-strip span:nth-child(2) {
  background: rgba(52, 199, 89, 0.1);
  color: #1f9d55;
}

.landing-strip span:nth-child(3) {
  background: rgba(175, 82, 222, 0.1);
  color: #a044d5;
}

.landing-strip span:nth-child(4) {
  background: rgba(255, 149, 0, 0.12);
  color: #b96b00;
}

.landing-subscription {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: stretch;
  gap: 14px;
  padding-bottom: 28px;
}

.landing-subscription-copy,
.landing-plan {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.landing-subscription-copy {
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 260px;
  padding: 22px;
}

.landing-subscription h2 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(28px, 3.3vw, 44px);
  font-weight: 840;
  line-height: 1.02;
}

.landing-subscription-copy > p:not(.landing-kicker) {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 540;
  line-height: 1.42;
}

.landing-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.landing-payments span,
.landing-plan-head span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  border-radius: 999px;
  background: rgba(52, 199, 89, 0.1);
  color: #1f8f49;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 780;
}

.landing-plan {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.landing-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.landing-plan-head strong {
  font-size: 22px;
  line-height: 1;
}

.landing-plan-price {
  display: grid;
  gap: 4px;
}

.landing-plan-price b {
  color: var(--blue);
  font-size: 28px;
  line-height: 1;
}

.landing-plan-price strong {
  font-size: 24px;
  line-height: 1.06;
}

.landing-plan-price span {
  width: fit-content;
  border-radius: 999px;
  background: rgba(0, 122, 255, 0.08);
  color: var(--blue);
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 800;
}

.landing-plan ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-plan li {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.24;
}

.landing-plan li::before {
  color: var(--green);
  content: "✓ ";
  font-weight: 900;
}

.landing-plan-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.landing-plan-button {
  width: 100%;
  min-height: 42px;
  border: 0;
  text-decoration: none;
}

.landing-plan-button.secondary {
  border: 1px solid rgba(0, 122, 255, 0.18);
  background: rgba(0, 122, 255, 0.06);
  color: var(--blue);
  box-shadow: none;
}

.landing-plan > p {
  margin: 0;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 620;
  line-height: 1.35;
}

.landing-subscription,
.landing-referral {
  scroll-margin-top: 24px;
}

.landing-referral {
  display: grid;
  gap: 14px;
  padding-bottom: 40px;
}

.landing-referral-copy {
  display: grid;
  max-width: 790px;
  gap: 12px;
}

.landing-referral h2 {
  margin: 0;
  font-size: clamp(27px, 3vw, 42px);
  font-weight: 840;
  line-height: 1.04;
}

.landing-referral-copy > p:not(.landing-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 540;
  line-height: 1.42;
}

.landing-referral-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.landing-referral-steps article {
  display: grid;
  align-content: start;
  min-height: 154px;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  padding: 18px;
}

.landing-referral-steps span {
  color: var(--blue);
  font-size: 15px;
  font-weight: 860;
}

.landing-referral-steps strong {
  font-size: 20px;
  font-weight: 820;
  line-height: 1.12;
}

.landing-referral-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
  line-height: 1.32;
}

.landing-referral-note {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  border-radius: 999px;
  background: rgba(255, 149, 0, 0.12);
  color: #b96b00;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.28;
}

@media (max-width: 860px) {
  .landing-header {
    padding-inline: 0;
  }

  .landing-main {
    padding-top: 34px;
  }

  .landing-hero {
    grid-template-columns: 1fr;
  }

  .landing-product {
    justify-content: flex-start;
  }

  .landing-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-subscription {
    grid-template-columns: 1fr;
  }

  .landing-referral-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .landing-screen {
    padding-inline: 16px;
  }

  .landing-header {
    min-height: 44px;
  }

  .landing-brand-mark {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  .taymiqa-logo {
    width: 23px;
    height: 23px;
  }

  .landing-brand strong {
    font-size: 17px;
  }

  .landing-brand span {
    font-size: 11px;
  }

  .landing-hero h1 {
    max-width: calc(100vw - 32px);
    font-size: clamp(28px, 7.6vw, 30px);
    line-height: 1.06;
    overflow-wrap: anywhere;
  }

  .landing-hero-copy > p:not(.landing-kicker) {
    max-width: calc(100vw - 32px);
  }

  .landing-store-tabs {
    gap: 6px;
  }

  .landing-store-tab {
    min-height: 28px;
    padding: 0 9px;
    font-size: 10px;
  }

  .landing-flow {
    grid-template-columns: 1fr;
  }

  .landing-phone {
    border-radius: 22px;
    padding: 12px;
  }

  .landing-subscription,
  .landing-referral {
    scroll-margin-top: 14px;
  }
}

.auth-screen {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  align-items: center;
  justify-items: center;
  padding:
    calc(24px + var(--safe-top))
    calc(22px + var(--safe-right))
    calc(24px + var(--safe-bottom))
    calc(22px + var(--safe-left));
  background: var(--bg);
}

.auth-card {
  display: grid;
  width: min(292px, 100%);
  gap: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 0 2px;
}

.auth-mark {
  flex-basis: 42px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.auth-brand strong {
  display: block;
  font-size: 21px;
  line-height: 1.1;
}

.auth-brand span,
.auth-copy p,
.auth-message {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.auth-copy {
  display: none;
}

.auth-tabs {
  display: flex;
  align-items: center;
  gap: 7px;
  width: auto;
  max-width: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.auth-tabs button {
  flex: 0 0 auto;
  min-width: 0;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-solid);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 720;
}

.auth-tabs button.selected {
  border-color: rgba(0, 122, 255, 0.2);
  background: rgba(0, 122, 255, 0.08);
  color: var(--blue);
  box-shadow: none;
}

.auth-form {
  display: grid;
  width: min(252px, 100%);
  gap: 9px;
}

.auth-form label {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-solid);
  padding: 6px 10px 7px;
}

.auth-form label:focus-within {
  border-color: rgba(0, 122, 255, 0.34);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.08);
}

.auth-form label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.auth-form input {
  width: 100%;
  min-height: 20px;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  font-size: 15px;
  font-weight: 650;
}

.auth-form input:focus {
  box-shadow: none;
}

.auth-submit {
  min-height: 40px;
  border: 0;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(0, 122, 255, 0.98), rgba(48, 176, 199, 0.92)),
    var(--blue);
  color: #fff;
  cursor: pointer;
  font-weight: 760;
  box-shadow: 0 10px 20px rgba(0, 122, 255, 0.12);
}

.auth-submit:disabled {
  cursor: progress;
  opacity: 0.7;
}

.auth-tabs {
  display: flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.auth-tabs button {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-solid);
  padding: 0 14px;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 720;
}

.auth-tabs button.selected {
  border-color: rgba(0, 122, 255, 0.2);
  background: rgba(0, 122, 255, 0.08);
  color: var(--blue);
  box-shadow: none;
}

.auth-message {
  min-height: 18px;
}

.auth-message.error {
  color: var(--pink);
}

.auth-message.success {
  color: var(--green);
}

.app-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding:
    calc(16px + var(--safe-top))
    calc(16px + var(--safe-right))
    calc(16px + var(--safe-bottom))
    calc(16px + var(--safe-left));
}

.sidebar,
.workspace,
.composer,
.insight-panel,
.task-column {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.sidebar {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: calc(100vh - 32px);
  min-height: 620px;
  padding: 16px;
  border-radius: 20px;
}

.user-card {
  display: grid;
  gap: 9px;
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(127, 127, 127, 0.06);
  padding: 12px;
}

.user-identity {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
}

.user-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.user-card span,
.user-card small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-identity span {
  flex: 0 0 auto;
}

.user-card strong {
  display: block;
  overflow: hidden;
  margin: 3px 0 2px;
  color: var(--ink);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-identity strong {
  flex: 0 0 auto;
  margin: 0;
}

.user-identity small {
  flex: 1 1 auto;
  min-width: 0;
}

.user-card button {
  min-height: 34px;
  border-radius: 11px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.profile-button {
  border: 1px solid rgba(0, 122, 255, 0.2);
  background: rgba(0, 122, 255, 0.08);
  color: var(--blue);
}

.logout-button {
  border: 1px solid rgba(255, 45, 85, 0.18);
  background: rgba(255, 45, 85, 0.08);
  color: var(--pink);
}

.account-overlay[hidden] {
  display: none;
}

.account-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  align-items: center;
  justify-items: center;
  overflow-y: auto;
  background: rgba(18, 25, 38, 0.18);
  padding:
    calc(18px + var(--safe-top))
    calc(18px + var(--safe-right))
    calc(18px + var(--safe-bottom))
    calc(18px + var(--safe-left));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.account-dialog {
  display: grid;
  width: min(500px, 100%);
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 14px;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.account-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.account-head h1 {
  font-size: 22px;
  line-height: 1.05;
}

.account-head .eyebrow {
  font-size: 11px;
  line-height: 1.1;
}

.account-close {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 0;
  line-height: 1;
}

.account-close::before,
.account-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.account-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.account-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.task-title-overlay[hidden] {
  display: none;
}

.task-title-overlay {
  position: fixed;
  inset: 0;
  z-index: 36;
  display: grid;
  align-items: center;
  justify-items: center;
  overflow-y: auto;
  background: rgba(18, 25, 38, 0.16);
  padding:
    calc(18px + var(--safe-top))
    calc(18px + var(--safe-right))
    calc(18px + var(--safe-bottom))
    calc(18px + var(--safe-left));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.task-title-dialog {
  display: grid;
  width: min(430px, 100%);
  gap: 14px;
  border: 1px solid rgba(120, 130, 150, 0.16);
  border-radius: 17px;
  background: var(--surface-solid);
  box-shadow: 0 18px 46px rgba(16, 24, 40, 0.16);
  padding: 15px;
}

.task-title-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.task-title-head h2 {
  margin-top: 2px;
  font-size: 19px;
  line-height: 1.12;
}

.task-title-close {
  position: relative;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(120, 130, 150, 0.12);
  border-radius: 10px;
  background: rgba(127, 127, 127, 0.05);
  color: var(--muted);
  font-size: 0;
  line-height: 1;
}

.task-title-close::before,
.task-title-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
}

.task-title-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.task-title-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.task-title-field {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(120, 130, 150, 0.16);
  border-radius: 14px;
  background: rgba(127, 127, 127, 0.045);
  padding: 8px 11px 9px;
}

.task-title-field:focus-within {
  border-color: rgba(0, 122, 255, 0.26);
  background: rgba(0, 122, 255, 0.045);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.065);
}

.task-title-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.task-title-field input {
  width: 100%;
  min-height: 26px;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  font-size: 16px;
  font-weight: 650;
}

.task-title-field input:focus {
  outline: 0;
  box-shadow: none;
}

.task-title-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.task-title-actions button {
  min-height: 36px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 760;
}

.task-title-cancel {
  border: 1px solid rgba(120, 130, 150, 0.14);
  background: rgba(127, 127, 127, 0.055);
  color: var(--muted);
}

.task-title-save {
  border: 1px solid rgba(0, 122, 255, 0.12);
  background: linear-gradient(180deg, var(--blue), #0a74f7);
  color: #ffffff;
}

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

.account-field,
.account-section {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(127, 127, 127, 0.06);
}

.account-field {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
}

.account-field span,
.account-form label span {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 750;
}

.account-field strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-section {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.account-settings-head h2,
.account-accordion-head h2 {
  font-size: 14.5px;
}

.account-settings-head p,
.account-accordion-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 650;
}

.account-settings-section {
  gap: 8px;
  padding: 10px;
}

.account-settings-head {
  min-width: 0;
}

.account-settings-list {
  display: grid;
  gap: 7px;
}

.account-settings-list .setting-row,
.account-settings-list .range-field,
.account-settings-list .settings-language-row {
  min-height: 30px;
}

.account-settings-list .range-field input {
  width: min(190px, 42vw);
}

.notification-settings {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(127, 127, 127, 0.06);
  padding: 10px;
}

.notification-settings .settings-subhead {
  align-items: center;
}

.notification-status-button {
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(127, 127, 127, 0.07);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  padding: 0 10px;
}

.notification-status-button.enabled {
  background: rgba(52, 199, 89, 0.12);
  color: #2fbd61;
}

.notification-lead-row,
.notification-privacy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.notification-lead-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.notification-lead-controls select,
.notification-custom {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(127, 127, 127, 0.06);
}

.notification-lead-controls select {
  max-width: 112px;
  padding: 0 24px 0 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.notification-custom {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0 8px;
  color: var(--muted);
}

.notification-custom[hidden] {
  display: none;
}

.notification-custom input {
  width: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.notification-custom input:focus {
  outline: none;
}

.notification-custom span {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 750;
}

.notification-privacy-row .switch {
  justify-self: end;
}

.backup-settings {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(127, 127, 127, 0.06);
  padding: 10px;
}

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

.backup-action {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(127, 127, 127, 0.06);
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.backup-action.primary {
  border-color: rgba(0, 122, 255, 0.24);
  background: rgba(0, 122, 255, 0.1);
  color: var(--blue);
}

.backup-settings small {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 750;
  line-height: 1.25;
}

.settings-subhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.settings-subhead strong {
  color: var(--ink);
  font-size: 14px;
}

.settings-subhead span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.account-finance-section {
  gap: 11px;
  padding: 11px;
}

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

.finance-range label,
.finance-category-filter {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.finance-range span,
.finance-category-filter span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.finance-range input,
.finance-category-filter select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  background: rgba(127, 127, 127, 0.07);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  padding: 0 10px;
}

.finance-range input:focus,
.finance-category-filter select:focus {
  border-color: rgba(0, 122, 255, 0.48);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

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

.account-finance-body {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.finance-card {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(127, 127, 127, 0.045);
  padding: 10px;
}

.finance-card span,
.finance-card small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-card strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-card.income strong {
  color: var(--green);
}

.finance-card.paid strong,
.finance-card.receivable strong {
  color: var(--blue);
}

.finance-card.expense strong {
  color: var(--pink);
}

.finance-card.fees strong {
  color: var(--orange);
}

.finance-card.balance strong {
  color: var(--blue);
}

.compact-head {
  padding: 0;
}

.account-form {
  display: grid;
  gap: 8px;
}

.account-form label {
  display: grid;
  gap: 5px;
}

.account-form input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: 0;
  background: rgba(127, 127, 127, 0.07);
  color: var(--ink);
  padding: 0 12px;
}

.account-form input:focus {
  border-color: rgba(0, 122, 255, 0.48);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.account-accordion {
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.account-accordion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  padding: 10px;
}

.account-accordion-body {
  padding: 0 10px 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  position: relative;
  isolation: isolate;
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  background:
    linear-gradient(145deg, rgba(0, 122, 255, 0.98) 0%, rgba(48, 176, 199, 0.94) 58%, rgba(52, 199, 89, 0.9) 100%),
    var(--blue);
  box-shadow:
    0 10px 24px rgba(0, 122, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
  overflow: hidden;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
  opacity: 0.72;
}

.taymiqa-logo {
  width: 29px;
  height: 29px;
  color: #fff;
  overflow: visible;
  filter: drop-shadow(0 2px 4px rgba(0, 58, 120, 0.18));
}

.logo-orbit,
.logo-tail,
.logo-hand {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-orbit {
  stroke-width: 4;
}

.logo-tail {
  stroke-width: 4.2;
}

.logo-hand {
  stroke-width: 2.8;
  opacity: 0.9;
}

.logo-spark {
  fill: #d7fff6;
  filter: drop-shadow(0 0 5px rgba(215, 255, 246, 0.74));
}

.brand strong {
  display: block;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-more-toggle {
  display: none;
}

.nav-primary,
.nav-more-panel {
  display: grid;
  gap: 6px;
}

.nav-more-panel {
  border-top: 1px solid var(--line);
  margin-top: 2px;
  padding-top: 8px;
}

.nav-more-panel[hidden],
.nav-more-toggle:not(:checked) ~ .nav-more-panel {
  display: none;
}

.nav-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0 11px;
  text-align: left;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.nav-item:hover {
  border-color: var(--line);
  background: rgba(127, 127, 127, 0.08);
}

.nav-item.active {
  border-color: rgba(0, 122, 255, 0.24);
  background: rgba(0, 122, 255, 0.12);
  color: var(--ink);
}

.nav-more[aria-expanded="true"],
.nav-more-toggle:checked ~ .nav-primary .nav-more {
  border-color: var(--line);
  background: rgba(127, 127, 127, 0.08);
}

.nav-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-item b {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: rgba(127, 127, 127, 0.12);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.nav-item.active b {
  background: rgba(0, 122, 255, 0.16);
  color: var(--blue);
}

.nav-item.has-alert b {
  background: var(--pink);
  box-shadow: 0 7px 18px rgba(255, 45, 85, 0.26);
  color: #fff;
}

.nav-more.has-alert b {
  background: rgba(255, 45, 85, 0.14);
  color: var(--pink);
}

.sidebar-block {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.block-title {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  min-height: 36px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(127, 127, 127, 0.08);
}

.segmented button {
  min-width: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}

.segmented button.selected {
  background: var(--surface-solid);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  color: var(--ink);
}

.setting-row,
.range-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  color: var(--muted);
  font-size: 13px;
}

.setting-row span,
.range-field span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.switch {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 26px;
}

.switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(127, 127, 127, 0.24);
  cursor: pointer;
  transition: background 160ms ease;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.22);
  transition: transform 160ms ease;
}

.switch input:checked + span {
  background: var(--green);
}

.switch input:checked + span::after {
  transform: translateX(18px);
}

.range-field input {
  width: 100px;
  accent-color: var(--blue);
}

.tempo-field {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
}

.tempo-field output {
  display: inline-grid;
  min-width: 58px;
  min-height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 122, 255, 0.1);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.tempo-field input {
  grid-column: 1 / -1;
  width: 100%;
}

.tempo-field small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
}

.workspace {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  min-height: calc(100vh - 32px);
  padding: 16px;
  border-radius: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  padding: 4px 2px 2px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  overflow-wrap: anywhere;
  font-size: 31px;
  line-height: 1.05;
  font-weight: 760;
}

h2 {
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 750;
}

.top-actions {
  display: flex;
  flex: 0 1 540px;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 240px;
}

.search-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  width: min(320px, 100%);
  min-height: 38px;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(127, 127, 127, 0.08);
  color: var(--muted);
  padding: 0 12px;
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.smart-feed-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(127, 127, 127, 0.08);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 780;
  line-height: 1;
  padding: 0 12px;
  white-space: nowrap;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.smart-feed-button:hover {
  border-color: rgba(0, 122, 255, 0.28);
  color: var(--blue);
}

.smart-feed-button.active {
  border-color: rgba(0, 122, 255, 0.34);
  background: rgba(0, 122, 255, 0.12);
  color: var(--blue);
}

.icon-button,
.primary-button {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  cursor: pointer;
  transition:
    transform 160ms ease,
    filter 160ms ease,
    background 160ms ease;
}

.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(127, 127, 127, 0.08);
  color: var(--muted);
}

.icon-button.enabled {
  border-color: rgba(52, 199, 89, 0.36);
  background: rgba(52, 199, 89, 0.16);
  color: var(--green);
}

.notify-button {
  position: relative;
}

.notify-icon {
  position: relative;
  display: block;
  width: 14px;
  height: 15px;
  border: 1.7px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 5px 5px;
}

.notify-icon::before,
.notify-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.notify-icon::before {
  top: -4px;
  width: 5px;
  height: 4px;
  border: 1.7px solid currentColor;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
}

.notify-icon::after {
  bottom: -5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.icon-button:hover,
.voice-button:hover,
.primary-button:hover,
.task-action:hover,
.quick-row button:hover {
  transform: translateY(-1px);
}

.composer {
  display: grid;
  gap: 10px;
  padding: 11px;
  border-radius: 19px;
}

.composer-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px 44px;
  gap: 8px;
}

.composer-input-shell {
  position: relative;
  min-width: 0;
}

.composer-form input {
  width: 100%;
  min-height: 44px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  background: rgba(127, 127, 127, 0.08);
  color: var(--ink);
  font-size: 14px;
  padding: 0 42px 0 14px;
}

.composer-form input:focus,
.composer-input-shell:focus-within input,
.search-field:focus-within {
  border-color: rgba(0, 122, 255, 0.48);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.composer-clear-button {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(120, 120, 128, 0.055);
  color: rgba(107, 114, 128, 0.64);
  transform: translateY(-50%);
  transition: background 0.16s ease, color 0.16s ease, opacity 0.16s ease, transform 0.16s ease;
}

.composer-clear-button[hidden] {
  display: none;
}

.composer-clear-button::before,
.composer-clear-button::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 1.6px;
  border-radius: 999px;
  background: currentColor;
}

.composer-clear-button::before {
  transform: rotate(45deg);
}

.composer-clear-button::after {
  transform: rotate(-45deg);
}

.composer-clear-button:hover {
  background: rgba(120, 120, 128, 0.1);
  color: rgba(75, 85, 99, 0.82);
}

.composer-clear-button:active {
  transform: translateY(-50%) scale(0.94);
}

.primary-button {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0, 122, 255, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(0, 122, 255, 0.16), rgba(48, 176, 199, 0.1)),
    var(--surface-solid);
  color: var(--blue);
  font-size: 0;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(0, 122, 255, 0.08);
}

.voice-button {
  position: relative;
  width: 42px;
  height: 44px;
  border: 1px solid rgba(0, 122, 255, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(0, 122, 255, 0.09), rgba(48, 176, 199, 0.08)),
    var(--surface-solid);
  color: var(--blue);
  box-shadow: 0 10px 22px rgba(0, 122, 255, 0.08);
}

.voice-button::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 11px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 999px;
  transform: translateX(-50%);
}

.voice-button::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 17px;
  height: 11px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  border-radius: 0 0 999px 999px;
  transform: translateX(-50%);
}

.voice-button.listening {
  border-color: rgba(52, 199, 89, 0.34);
  background:
    radial-gradient(circle at 50% 50%, rgba(52, 199, 89, 0.22), rgba(52, 199, 89, 0) 62%),
    var(--surface-solid);
  color: var(--green);
  animation: voicePulse 1.2s ease-in-out infinite;
}

.voice-button.starting {
  opacity: 0.72;
}

@keyframes voicePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.18);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(52, 199, 89, 0);
  }
}

.primary-button::before,
.primary-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2.5px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.primary-button::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.quick-row,
.ai-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.quick-row::-webkit-scrollbar,
.ai-strip::-webkit-scrollbar {
  display: none;
}

.today-focus[hidden] {
  display: none;
}

.today-focus {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(30, 41, 59, 0.06);
  padding: 12px;
}

.today-focus-head span,
.today-focus-card span,
.today-focus-card small {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 760;
}

.today-focus-head strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 14px;
}

.today-focus-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
  color: inherit;
}

.today-focus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.today-focus-card {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(127, 127, 127, 0.045);
  color: inherit;
  cursor: pointer;
  padding: 9px;
  text-align: left;
}

.today-focus-card.active {
  border-color: rgba(0, 122, 255, 0.38);
  background: rgba(0, 122, 255, 0.1);
}

.today-focus-card strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.today-focus-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-row button,
.preview-pill,
.sort-chip,
.tag {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  max-width: 220px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(127, 127, 127, 0.08);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  padding: 0 9px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.quick-row button {
  cursor: pointer;
}

.color-picker {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.color-picker > span {
  color: color-mix(in srgb, var(--muted) 58%, transparent);
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.color-picker button {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--swatch, var(--blue)) 34%, var(--line));
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.74), transparent 32%),
    var(--swatch, rgba(127, 127, 127, 0.1));
  color: var(--muted);
  cursor: pointer;
}

.color-picker button[data-color-value=""] {
  --swatch: rgba(127, 127, 127, 0.12);
  background: var(--surface-solid);
}

.color-picker button[data-color-value=""]::before {
  content: "A";
  font-size: 10px;
  font-weight: 850;
}

.color-picker button.selected {
  box-shadow:
    0 0 0 2px var(--surface-solid),
    0 0 0 4px color-mix(in srgb, var(--swatch, var(--blue)) 42%, transparent);
}

.preview-pill {
  color: var(--ink);
}

.preview-pill[data-tone="time"] {
  border-color: rgba(0, 122, 255, 0.26);
  background: rgba(0, 122, 255, 0.12);
}

.preview-pill[data-tone="risk"] {
  border-color: rgba(255, 45, 85, 0.26);
  background: rgba(255, 45, 85, 0.12);
}

.preview-pill[data-tone="focus"] {
  border-color: rgba(52, 199, 89, 0.28);
  background: rgba(52, 199, 89, 0.13);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 12px;
  min-height: 0;
}

.calendar-page,
.clients-page {
  display: grid;
  gap: 12px;
  min-height: 0;
}

.calendar-toolbar,
.calendar-surface,
.clients-surface {
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
}

.event-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 12px;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.event-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.event-card-head h2 {
  font-size: 20px;
}

.event-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  min-width: 0;
}

.event-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.event-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.event-field input,
.event-field select,
.event-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  background: rgba(127, 127, 127, 0.07);
  color: var(--ink);
  font-size: 13px;
  padding: 0 11px;
}

.client-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.client-suggestions button {
  min-height: 27px;
  max-width: 100%;
  padding: 0 10px;
  border: 1px solid rgba(0, 122, 255, 0.18);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(0, 122, 255, 0.09);
  font: inherit;
  font-size: 12px;
  font-weight: 760;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-suggestions button:hover,
.client-suggestions button:focus-visible {
  border-color: rgba(0, 122, 255, 0.34);
  background: rgba(0, 122, 255, 0.14);
}

.event-field textarea {
  min-height: 66px;
  padding-top: 10px;
  resize: vertical;
}

.event-note-field textarea {
  min-height: 58px;
}

.event-title-field,
.event-note-field {
  grid-column: 1 / -1;
}

.event-color-field {
  grid-column: span 2;
  align-self: end;
  min-height: 40px;
  padding: 0 2px;
}

.event-business-panel,
.event-location-panel,
.event-attachments-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  border: 0;
  border-top: 1px solid rgba(20, 31, 52, 0.07);
  border-radius: 0;
  background: transparent;
  padding: 10px 0 0;
}

.event-business-panel {
  --event-section-accent: var(--purple);
  --event-section-tint: rgba(175, 82, 222, 0.1);
}

.event-location-panel {
  --event-section-accent: var(--blue);
  --event-section-tint: rgba(0, 122, 255, 0.08);
}

.event-attachments-panel {
  --event-section-accent: #248a3d;
  --event-section-tint: rgba(52, 199, 89, 0.1);
}

.event-business-head,
.event-location-head,
.event-attachments-head,
.event-location-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.event-business-head,
.event-location-head,
.event-attachments-head {
  min-height: 38px;
  border: 1px solid rgba(20, 31, 52, 0.075);
  border-radius: 14px;
  background: var(--surface-solid);
  padding: 6px 8px;
}

.event-business-head div:first-child,
.event-location-head div:first-child,
.event-attachments-head div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.event-business-head div:first-child > span,
.event-location-head div:first-child > span,
.event-attachments-head div:first-child > span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border-radius: 999px;
  background: var(--event-section-tint);
  color: var(--event-section-accent);
  font-size: 11px;
  font-weight: 820;
  padding: 0 10px;
}

.event-business-head strong,
.event-location-head strong,
.event-attachments-head strong {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-business-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.event-business-panel .event-field,
.event-location-panel .event-field,
.event-money-panel .event-field {
  gap: 4px;
}

.event-business-panel .event-field span,
.event-location-panel .event-field span,
.event-money-panel .event-field span {
  font-size: 10px;
  font-weight: 650;
}

.event-business-panel .event-field input,
.event-business-panel .event-field select,
.event-location-panel .event-field input,
.event-money-panel .event-field input,
.event-money-panel .event-field select {
  min-height: 32px;
  border-color: rgba(20, 31, 52, 0.075);
  border-radius: 11px;
  background: var(--surface-solid);
  font-size: 12px;
  padding-inline: 10px;
}

.event-next-action-field {
  grid-column: 1 / -1;
}

.event-promise-toggle {
  display: inline-flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-self: start;
  gap: 8px;
  min-height: 32px;
  border: 1px solid rgba(175, 82, 222, 0.18);
  border-radius: 999px;
  background: rgba(175, 82, 222, 0.08);
  color: var(--purple);
  cursor: pointer;
  font-size: 12px;
  font-weight: 780;
  padding: 0 11px;
}

.event-promise-toggle input {
  width: 15px;
  height: 15px;
  accent-color: var(--purple);
}

.event-attachment-actions {
  display: flex;
  gap: 7px;
  align-items: center;
}

.event-attachment-pick,
.event-attachment-item button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-solid);
  cursor: pointer;
  font-size: 11px;
  font-weight: 780;
  padding: 0 11px;
}

.event-attachment-pick.pdf {
  border-color: rgba(255, 45, 85, 0.2);
  background: rgba(255, 45, 85, 0.08);
  color: var(--pink);
}

.event-attachment-pick.photo {
  border-color: rgba(52, 199, 89, 0.22);
  background: rgba(52, 199, 89, 0.08);
  color: var(--green);
}

.event-attachments-list {
  display: grid;
  gap: 6px;
}

.event-attachment-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 13px;
  background: var(--surface-solid);
  padding: 7px;
}

.event-attachment-icon {
  display: inline-grid;
  width: 38px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 850;
}

.event-attachment-item.pdf .event-attachment-icon {
  background: rgba(255, 45, 85, 0.1);
  color: var(--pink);
}

.event-attachment-item.photo .event-attachment-icon {
  background: rgba(52, 199, 89, 0.1);
  color: var(--green);
}

.event-attachment-item div {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.event-attachment-item strong,
.event-attachment-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-attachment-item strong {
  color: var(--ink);
  font-size: 12px;
}

.event-attachment-item small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.event-attachment-item button {
  min-height: 30px;
  padding: 0 9px;
  color: var(--blue);
}

.event-attachment-remove {
  width: 30px;
  padding: 0 !important;
  color: var(--muted) !important;
}

.event-map-tabs.segmented {
  width: 138px;
  min-height: 30px;
  border-color: rgba(20, 31, 52, 0.075);
  background: rgba(127, 127, 127, 0.045);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.event-map-tabs.segmented button {
  font-size: 10.5px;
}

.event-map-open,
.clear-done-button {
  border: 1px solid rgba(0, 122, 255, 0.22);
  background: rgba(0, 122, 255, 0.08);
  color: var(--blue);
  cursor: pointer;
  font-weight: 780;
}

.event-map-open {
  min-height: 32px;
  border-radius: 11px;
  padding: 0 11px;
  font-size: 11px;
  white-space: nowrap;
}

.event-location-row {
  min-height: 38px;
  border: 1px solid rgba(20, 31, 52, 0.075);
  border-radius: 14px;
  background: var(--surface-solid);
  padding: 6px 8px;
}

.event-location-row .event-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.event-location-row .event-field span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border-radius: 999px;
  background: var(--event-section-tint);
  color: var(--event-section-accent);
  font-size: 11px;
  font-weight: 820;
  padding: 0 10px;
  white-space: nowrap;
}

.event-location-row .event-field input {
  min-height: 30px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 12.5px;
  font-weight: 760;
  padding: 0;
}

.event-location-row .event-field input:focus {
  box-shadow: none;
}

.event-duration {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 6px;
}

.event-quick-row {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
  min-width: 0;
}

.event-quick-row button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(127, 127, 127, 0.08);
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
  padding: 0 11px;
}

.event-money-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  border: 0;
  border-top: 1px solid rgba(20, 31, 52, 0.07);
  border-radius: 0;
  background: transparent;
  padding: 10px 0 0;
  --event-section-accent: #248a3d;
  --event-section-tint: rgba(52, 199, 89, 0.1);
}

.event-money-head {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid rgba(20, 31, 52, 0.075);
  border-radius: 14px;
  background: var(--surface-solid);
  padding: 6px 8px;
}

.event-money-head div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.event-money-head div > span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border-radius: 999px;
  background: var(--event-section-tint);
  color: var(--event-section-accent);
  font-size: 11px;
  font-weight: 820;
  padding: 0 10px;
}

.event-money-head strong {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-money-head p {
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 760;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.event-money-content {
  display: grid;
  gap: 7px;
}

.event-money-payment {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 6px;
  border: 1px solid rgba(20, 31, 52, 0.075);
  border-radius: 14px;
  background: var(--surface-solid);
  padding: 7px;
}

.event-money-box {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid rgba(20, 31, 52, 0.075);
  border-radius: 14px;
  background: var(--surface-solid);
  padding: 8px;
}

.event-money-box h3 {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 24px;
  border-radius: 999px;
  background: rgba(127, 127, 127, 0.06);
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  margin: 0;
  padding: 0 10px;
}

.event-submit {
  grid-column: 1 / -1;
  min-height: 42px;
  border: 0;
  border-radius: 13px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-weight: 780;
  box-shadow: 0 12px 24px rgba(0, 122, 255, 0.18);
}

.event-delete {
  grid-column: 1 / -1;
  min-height: 40px;
  border: 1px solid rgba(255, 45, 85, 0.24);
  border-radius: 13px;
  background: rgba(255, 45, 85, 0.08);
  color: var(--pink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.event-delete:hover {
  background: rgba(255, 45, 85, 0.12);
}

.calendar-modes.segmented {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(390px, 100%);
}

.calendar-add-button {
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(0, 122, 255, 0.22);
}

.calendar-add-button::before,
.calendar-add-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2.5px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.calendar-add-button::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.calendar-surface {
  display: grid;
  gap: 10px;
  min-height: 520px;
  padding: 12px;
}

.clients-surface {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
  min-height: 520px;
  padding: 12px;
}

.clients-board {
  display: grid;
  grid-row: 3;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.client-composer[hidden] + .clients-board {
  grid-row: 2 / 4;
}

.clients-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.clients-head-actions > span {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  padding: 7px 10px;
  white-space: nowrap;
}

.client-add-button {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0, 122, 255, 0.22);
  border-radius: 12px;
  background: var(--soft-blue);
  color: var(--blue);
  cursor: pointer;
}

.client-add-button::before,
.client-add-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.client-add-button::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.client-add-button.is-active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 122, 255, 0.16);
}

.client-composer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 10px;
}

.client-composer[hidden] {
  display: none;
}

.client-composer-save,
.client-composer-cancel {
  min-height: 36px;
  border-radius: 11px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 820;
}

.client-composer-save {
  border: 1px solid rgba(0, 122, 255, 0.22);
  background: rgba(0, 122, 255, 0.1);
  color: var(--blue);
}

.client-composer-cancel {
  border: 1px solid var(--line);
  background: rgba(127, 127, 127, 0.045);
  color: var(--muted);
}

.client-contact-panel {
  display: flex;
  grid-column: 1 / -1;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.client-contact-head {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.client-links {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
}

.client-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(127, 127, 127, 0.055);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
}

.client-link.is-empty {
  opacity: 0.38;
  pointer-events: none;
  filter: saturate(0.7);
}

.client-link.web,
.client-link.blog {
  min-width: 50px;
  color: var(--blue);
  background: rgba(0, 122, 255, 0.08);
}

.client-link.telegram {
  color: #007aff;
  background: rgba(0, 122, 255, 0.08);
}

.client-link.whatsapp {
  color: #26b85f;
  background: rgba(52, 199, 89, 0.1);
}

.client-link.max {
  color: #7a4ee8;
  background: rgba(122, 78, 232, 0.1);
}

.client-contact-settings {
  position: relative;
  flex: 0 0 32px;
  width: 32px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(127, 127, 127, 0.055);
  color: var(--muted);
  cursor: pointer;
}

.client-contact-settings::before {
  content: "⚙";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
  line-height: 1;
}

.client-contact-settings[aria-expanded="true"] {
  border-color: rgba(0, 122, 255, 0.2);
  background: rgba(0, 122, 255, 0.08);
  color: var(--blue);
}

.client-link-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(127, 127, 127, 0.035);
  padding: 8px;
}

.client-link-settings[hidden] {
  display: none;
}

.calendar-page[data-calendar-mode="list"] .calendar-surface {
  align-content: start;
  min-height: 0;
}

.calendar-page[data-calendar-mode="list"] .calendar-headline {
  padding-bottom: 0;
}

.calendar-headline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 4px;
}

.calendar-headline h2 {
  font-size: 22px;
}

.calendar-period-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(127, 127, 127, 0.06);
}

.calendar-period-nav button {
  min-width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 850;
}

.calendar-period-nav button[data-calendar-shift="today"] {
  min-width: 70px;
  color: var(--blue);
  background: var(--soft-blue);
}

.calendar-period-nav button:hover,
.calendar-period-nav button:focus-visible {
  color: var(--ink);
  background: var(--card);
}

.calendar-headline > span {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  padding: 7px 10px;
}

.calendar-ai-summary {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 2px 2px;
}

.calendar-ai-summary[hidden] {
  display: none;
}

.calendar-ai-summary-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.calendar-ai-summary-head > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.calendar-ai-range {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  padding: 2px;
}

.calendar-ai-range button {
  min-height: 24px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 10.5px;
  font-weight: 850;
  line-height: 1;
  padding: 5px 9px;
}

.calendar-ai-range button.active {
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.calendar-ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.calendar-ai-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  border: 1px solid color-mix(in srgb, var(--chip-color) 24%, transparent);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.34)),
    color-mix(in srgb, var(--chip-color) 12%, transparent);
  color: color-mix(in srgb, var(--chip-color) 82%, var(--ink));
  font-size: 11.5px;
  font-weight: 820;
  line-height: 1;
  padding: 7px 10px;
}

.calendar-ai-chip strong {
  min-width: 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--chip-color) 16%, transparent);
  color: color-mix(in srgb, var(--chip-color) 88%, var(--ink));
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  padding: 3px 6px;
}

.calendar-ai-empty {
  border: 1px dashed var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 800;
  padding: 7px 10px;
}

.calendar-board {
  display: grid;
  gap: 8px;
  min-height: 0;
}

.calendar-board.week {
  grid-template-columns: repeat(7, minmax(92px, 1fr));
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 2px;
}

.calendar-board.day {
  grid-template-columns: minmax(0, 1fr);
}

.calendar-day,
.calendar-month-cell,
.calendar-list {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(127, 127, 127, 0.05);
}

.calendar-day {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 420px;
  padding: 9px;
  cursor: pointer;
}

.calendar-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.calendar-day-head span,
.calendar-slot {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.calendar-day-head strong {
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 122, 255, 0.12);
  color: var(--blue);
  font-size: 13px;
}

.calendar-slot {
  display: grid;
  width: 44px;
  min-height: 32px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: rgba(127, 127, 127, 0.025);
  cursor: pointer;
  justify-self: start;
  padding: 0;
}

.calendar-slot-plus {
  position: relative;
  display: block;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  opacity: 0.6;
}

.calendar-slot-plus::before,
.calendar-slot-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.6px;
  border-radius: 999px;
  background: var(--muted);
  transform: translate(-50%, -50%);
}

.calendar-slot-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.calendar-slot:hover,
.calendar-month-cell:hover {
  border-color: rgba(0, 122, 255, 0.28);
  background: rgba(0, 122, 255, 0.07);
}

.calendar-slot:hover .calendar-slot-plus,
.calendar-slot:focus-visible .calendar-slot-plus {
  opacity: 1;
}

.calendar-slot:hover .calendar-slot-plus::before,
.calendar-slot:hover .calendar-slot-plus::after,
.calendar-slot:focus-visible .calendar-slot-plus::before,
.calendar-slot:focus-visible .calendar-slot-plus::after {
  background: var(--blue);
}

.calendar-event {
  display: grid;
  gap: 4px;
  position: relative;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent, var(--blue));
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-solid) 82%, transparent);
  cursor: pointer;
  padding: 8px;
  touch-action: pan-y;
  transition: transform 0.18s ease, opacity 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  user-select: none;
  will-change: transform;
}

.calendar-event.is-swiping {
  transition: none;
  z-index: 2;
}

.calendar-event.is-swipe-returning {
  transition: transform 0.12s ease-out, opacity 0.12s ease-out, border-color 0.12s ease-out, background 0.12s ease-out;
}

.calendar-board.week .calendar-event {
  touch-action: none;
}

.calendar-event.is-swipe-armed {
  border-color: rgba(255, 45, 85, 0.42);
  background: color-mix(in srgb, var(--surface-solid) 88%, rgba(255, 45, 85, 0.12));
  box-shadow: 0 12px 24px rgba(255, 45, 85, 0.12);
}

.calendar-event:focus-visible {
  outline: 2px solid rgba(0, 122, 255, 0.32);
  outline-offset: 2px;
}

.calendar-event strong {
  overflow-wrap: anywhere;
  font-size: 12px;
}

.calendar-event span {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.35;
}

.calendar-event .calendar-location {
  color: var(--teal);
  font-weight: 730;
}

.calendar-event .calendar-business {
  color: var(--purple);
  font-weight: 730;
}

.calendar-event .calendar-promise {
  color: var(--purple);
  font-weight: 760;
}

.calendar-event .calendar-money {
  color: var(--ink);
  font-weight: 720;
}

.calendar-event .calendar-attachments {
  color: var(--green);
  font-weight: 760;
}

.calendar-board.month {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.calendar-month-cell {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  min-height: 76px;
  overflow: hidden;
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  padding: 8px;
  text-align: left;
}

.calendar-month-cell.muted {
  opacity: 0.45;
}

.calendar-month-cell.today {
  border-color: rgba(0, 122, 255, 0.32);
  background: rgba(0, 122, 255, 0.08);
}

.calendar-month-cell.selected {
  box-shadow: inset 0 0 0 2px rgba(0, 122, 255, 0.22);
}

.calendar-month-day {
  display: inline-grid;
  width: max-content;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
}

.calendar-month-cell.today .calendar-month-day {
  background: rgba(0, 122, 255, 0.14);
  color: var(--blue);
}

.calendar-month-events {
  display: grid;
  gap: 3px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.calendar-month-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 19px;
  overflow: hidden;
  border: 0;
  border-left: 2px solid var(--accent, var(--blue));
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent, var(--blue)) 10%, transparent);
  color: var(--ink);
  cursor: pointer;
  font-size: 9.5px;
  font-weight: 760;
  line-height: 1;
  padding: 3px 5px 3px 4px;
  text-align: left;
}

.calendar-month-entry > * {
  min-width: 0;
}

.calendar-month-entry:hover,
.calendar-month-entry:focus-visible {
  background: color-mix(in srgb, var(--accent, var(--blue)) 16%, transparent);
  outline: none;
}

.calendar-month-entry-time {
  color: color-mix(in srgb, var(--accent, var(--blue)) 78%, var(--ink));
  font-variant-numeric: tabular-nums;
}

.calendar-month-entry-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-month-more {
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(20, 31, 52, 0.055);
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 820;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 4px 6px;
}

.calendar-list {
  display: grid;
  gap: 9px;
  padding: 10px;
}

.calendar-list-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-solid) 86%, transparent);
}

.calendar-list-group[open] {
  background: color-mix(in srgb, var(--surface-solid) 94%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.calendar-list-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 58px;
  cursor: pointer;
  list-style: none;
  padding: 10px 11px;
}

.calendar-list-summary::-webkit-details-marker {
  display: none;
}

.calendar-list-summary-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.calendar-list-summary-text span {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
}

.calendar-list-summary-text strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-list-summary-side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.calendar-list-count {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(127, 127, 127, 0.05);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
  padding: 5px 8px;
}

.calendar-list-chevron {
  position: relative;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(127, 127, 127, 0.045);
}

.calendar-list-chevron::before,
.calendar-list-chevron::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: var(--muted);
  transition: transform 0.18s ease;
}

.calendar-list-chevron::before {
  transform: translate(-72%, -50%) rotate(45deg);
}

.calendar-list-chevron::after {
  transform: translate(-28%, -50%) rotate(-45deg);
}

.calendar-list-group[open] .calendar-list-chevron::before {
  transform: translate(-72%, -50%) rotate(-45deg);
}

.calendar-list-group[open] .calendar-list-chevron::after {
  transform: translate(-28%, -50%) rotate(45deg);
}

.calendar-list-body {
  display: grid;
  gap: 7px;
  padding: 0 9px 9px;
}

.calendar-list-body .calendar-event {
  border-radius: 11px;
  padding: 9px 10px;
}

.calendar-list-more {
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(0, 122, 255, 0.2);
  border-radius: 10px;
  background: rgba(0, 122, 255, 0.08);
  color: var(--blue);
  cursor: pointer;
  font-size: 12px;
  font-weight: 820;
}

.task-column,
.insights {
  min-height: 0;
}

.task-column {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border-radius: 19px;
}

.section-head,
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.accordion-head {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.accordion-head .live-dot {
  margin: 0;
  justify-self: center;
}

.accordion-head:focus-visible {
  outline: 0;
}

.accordion-head:focus-visible .accordion-icon {
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.14);
}

.accordion-icon {
  position: relative;
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(127, 127, 127, 0.08);
  color: var(--muted);
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.accordion-icon::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  transition: transform 160ms ease;
}

.accordion-head[aria-expanded="true"] .accordion-icon {
  background: rgba(0, 122, 255, 0.1);
  color: var(--blue);
}

.accordion-head[aria-expanded="true"] .accordion-icon::before {
  transform: translateY(2px) rotate(225deg);
}

.section-head {
  padding: 14px 14px 8px;
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.clear-done-button {
  min-height: 28px;
  border-radius: 999px;
  font-size: 11px;
  padding: 0 10px;
}

.section-head p,
.panel-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.sort-chip {
  min-width: 48px;
  color: var(--ink);
}

.task-list {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 0;
  overflow-y: auto;
  padding: 0 9px 11px;
}

.time-group {
  display: grid;
  gap: 7px;
}

.created-journal-empty,
.created-archive {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-solid);
}

.created-journal-empty {
  display: grid;
  gap: 5px;
  padding: 14px;
}

.created-journal-empty strong {
  color: var(--ink);
  font-size: 16px;
}

.created-journal-empty span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.created-archive {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.created-archive-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.created-archive-title span {
  border-radius: 999px;
  background: rgba(0, 122, 255, 0.08);
  color: var(--blue);
  font-size: 12px;
  font-weight: 780;
  padding: 6px 12px;
}

.created-archive-title small {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  text-align: right;
}

.created-archive-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  padding: 4px 2px 2px;
}

.created-archive-day {
  display: grid;
  gap: 6px;
  border-top: 1px solid rgba(120, 120, 128, 0.14);
  padding-top: 8px;
}

.created-archive-toggle {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.created-archive-toggle > span:first-child {
  display: grid;
  gap: 1px;
}

.created-archive-toggle strong {
  font-size: 13px;
  font-weight: 790;
}

.created-archive-toggle small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.created-archive-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: transparent;
}

.created-archive-day.is-unread .created-archive-dot {
  background: #ff2d55;
  box-shadow: 0 0 0 5px rgba(255, 45, 85, 0.1);
}

.created-archive-toggle[aria-expanded="true"] .accordion-icon {
  transform: rotate(180deg);
}

.created-archive-toggle[aria-expanded="true"] .accordion-icon::before {
  transform: rotate(-45deg);
}

.created-archive-body {
  display: grid;
  gap: 6px;
}

.created-archive-item {
  display: grid;
  gap: 2px;
  border: 1px solid rgba(120, 120, 128, 0.14);
  border-radius: 11px;
  background: rgba(127, 127, 127, 0.04);
  padding: 8px 10px;
}

.created-archive-item strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 780;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.created-archive-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.created-archive-item.is-done {
  opacity: 0.62;
}

.task-group-toggle {
  justify-self: start;
  min-height: 30px;
  margin: 0 4px 2px;
  border: 1px solid rgba(0, 122, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 122, 255, 0.08);
  color: var(--blue);
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
  padding: 5px 12px;
}

#loadChip {
  display: none;
}

.client-list {
  display: grid;
  gap: 8px;
  padding-top: 7px;
}

.client-card {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--purple);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-solid) 84%, transparent);
  padding: 10px;
}

.client-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.client-card-head strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-card-head span,
.client-next {
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.client-next {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-accordion {
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 3px solid var(--purple);
  border-radius: 13px;
  background: color-mix(in srgb, var(--surface-solid) 88%, transparent);
}

.client-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 28px;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  list-style: none;
  cursor: pointer;
  padding: 9px 10px;
}

.client-summary::-webkit-details-marker {
  display: none;
}

.client-summary-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.client-summary-main strong,
.client-detail-row strong {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-summary-main strong {
  font-size: 14px;
  font-weight: 850;
}

.client-summary-main span,
.client-detail-row span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-summary-side {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  min-width: 0;
}

.client-accordion-icon {
  position: relative;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(127, 127, 127, 0.08);
  color: var(--muted);
}

.client-accordion-icon::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
}

.client-accordion[open] .client-accordion-icon {
  background: rgba(0, 122, 255, 0.1);
  color: var(--blue);
}

.client-accordion[open] .client-accordion-icon::before {
  transform: translateY(2px) rotate(225deg);
}

.client-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  border-top: 1px solid var(--line);
  padding: 9px 10px 10px;
}

.client-detail-row {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(127, 127, 127, 0.045);
  padding: 8px 9px;
}

.client-detail-row strong {
  font-size: 12px;
  font-weight: 820;
}

.client-edit-form {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
}

.client-edit-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.client-edit-field span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-edit-field input,
.client-edit-field select,
.client-edit-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: rgba(127, 127, 127, 0.055);
  color: var(--ink);
  font-size: 12px;
  font-weight: 720;
  padding: 0 9px;
}

.client-edit-field textarea {
  min-height: 58px;
  padding: 8px 9px;
  resize: vertical;
}

.client-note-field {
  grid-column: 1 / -1;
}

.client-save-button {
  grid-column: 1 / -1;
  min-height: 36px;
  border: 1px solid rgba(0, 122, 255, 0.22);
  border-radius: 11px;
  background: rgba(0, 122, 255, 0.1);
  color: var(--blue);
  cursor: pointer;
  font-size: 12px;
  font-weight: 820;
}

.clients-more {
  min-height: 38px;
  border: 1px solid rgba(0, 122, 255, 0.2);
  border-radius: 12px;
  background: rgba(0, 122, 255, 0.08);
  color: var(--blue);
  cursor: pointer;
  font-size: 12px;
  font-weight: 820;
}

.time-group-title {
  position: sticky;
  top: 0;
  z-index: 1;
  width: max-content;
  max-width: 100%;
  margin: 7px 4px 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-solid) 76%, transparent);
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  padding: 5px 9px;
  backdrop-filter: blur(12px);
}

.task-card {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-height: 64px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent, var(--blue));
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-solid) 82%, transparent);
  padding: 10px 8px 8px 7px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    opacity 160ms ease;
}

.task-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.task-card.done {
  opacity: 0.55;
}

.task-card.overdue {
  background: color-mix(in srgb, var(--surface-solid) 76%, rgba(255, 45, 85, 0.12));
}

.check-button {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: transparent;
  cursor: pointer;
}

.task-card.done .check-button {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.task-main {
  min-width: 0;
}

.task-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin-top: 7px;
}

.task-title-row {
  display: flex;
  align-items: center;
  min-width: 0;
}

.task-title {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 730;
  line-height: 1.22;
}

button.task-title {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0;
  padding: 0;
  text-align: left;
}

button.task-title:focus-visible {
  outline: 2px solid rgba(0, 122, 255, 0.28);
  outline-offset: 2px;
}

button.task-title:active {
  color: var(--blue);
}

.task-card.done .task-title {
  text-decoration: line-through;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin-top: 0;
}

.tag {
  flex: 0 1 auto;
  min-width: 0;
  min-height: 22px;
  max-width: min(100%, 168px);
  overflow: hidden;
  border-color: transparent;
  text-overflow: ellipsis;
}

.tag.time {
  flex-shrink: 0;
}

.tag.reminder-schedule {
  max-width: none;
  padding-inline: 7px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tag.time {
  background: rgba(0, 122, 255, 0.12);
  color: var(--blue);
}

.tag.priority-high {
  background: rgba(255, 45, 85, 0.12);
  color: var(--pink);
}

.tag.priority-medium {
  background: rgba(255, 159, 10, 0.14);
  color: var(--orange);
}

.tag.priority-low {
  background: rgba(52, 199, 89, 0.13);
  color: var(--green);
}

.tag.calendar-source {
  background: color-mix(in srgb, var(--accent, var(--blue)) 14%, transparent);
  color: var(--accent, var(--blue));
}

.tag.business-client,
.tag.business-project,
.tag.business-status,
.tag.promise {
  background: rgba(175, 82, 222, 0.12);
  color: var(--purple);
}

.tag.location {
  background: rgba(48, 176, 199, 0.12);
  color: var(--teal);
}

.tag.payment-expected,
.tag.payment-partial {
  background: rgba(0, 122, 255, 0.1);
  color: var(--blue);
}

.tag.payment-paid {
  background: rgba(52, 199, 89, 0.13);
  color: var(--green);
}

.tag.payment-expense {
  background: rgba(255, 45, 85, 0.1);
  color: var(--pink);
}

.tag.smart-reason {
  background: rgba(127, 127, 127, 0.08);
  color: var(--muted);
}

.tag.smart-risk {
  background: rgba(255, 45, 85, 0.12);
  color: var(--pink);
}

.tag.smart-time {
  background: rgba(0, 122, 255, 0.12);
  color: var(--blue);
}

.tag.smart-client {
  background: rgba(175, 82, 222, 0.12);
  color: var(--purple);
}

.tag.smart-money {
  background: rgba(52, 199, 89, 0.12);
  color: var(--green);
}

.task-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin-top: 0;
  white-space: nowrap;
}

.task-action {
  display: grid;
  width: 28px;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(127, 127, 127, 0.08);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  padding: 0;
}

.task-action[data-action="smart"],
.task-action[data-action="edit-title"] {
  width: auto;
  min-width: 54px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 760;
}

.task-action[data-action="edit-event"] {
  width: auto;
  min-width: 48px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 760;
}

.task-action[data-action="map"] {
  width: auto;
  min-width: 50px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 760;
}

.insights {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow-y: auto;
}

.insight-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 19px;
}

.accordion-panel {
  gap: 0;
}

.accordion-panel > .advisor:not([hidden]),
.accordion-panel > .queue-list:not([hidden]),
.accordion-panel > canvas:not([hidden]) {
  margin-top: 10px;
}

.panel-head.accordion-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  padding: 0;
}

.insights .accordion-panel {
  overflow: hidden;
}

.day-pulse {
  min-height: 230px;
}

.day-pulse.is-collapsed {
  min-height: 0;
}

#pulseCanvas {
  display: block;
  width: 100%;
  height: 170px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(127, 127, 127, 0.06), rgba(127, 127, 127, 0.02)),
    rgba(127, 127, 127, 0.05);
}

.live-dot {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(52, 199, 89, 0.16);
}

.advisor {
  display: grid;
  gap: 8px;
}

.advisor-card,
.queue-item {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(127, 127, 127, 0.06);
  padding: 9px;
}

.advisor-card strong,
.queue-item strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.advisor-card span,
.queue-item span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.queue-list {
  display: grid;
  gap: 8px;
}

.queue-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.queue-item > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.queue-item strong,
.queue-item span {
  display: block;
}

.queue-item button {
  min-height: 32px;
  border: 1px solid rgba(0, 122, 255, 0.22);
  border-radius: 10px;
  background: rgba(0, 122, 255, 0.1);
  color: var(--blue);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  padding: 0 10px;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 280px;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}

.empty-mark {
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(0, 122, 255, 0.2), rgba(52, 199, 89, 0.16)),
    rgba(127, 127, 127, 0.08);
}

.empty-state strong {
  color: var(--ink);
  font-size: 18px;
}

.empty-state span {
  font-size: 13px;
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: grid;
  gap: 8px;
  width: min(340px, calc(100vw - 36px));
}

.toast {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
  color: var(--ink);
  padding: 12px 14px;
  animation: toast-in 220ms ease both;
}

.toast strong {
  overflow-wrap: anywhere;
  font-size: 14px;
}

.toast span {
  color: var(--muted);
  font-size: 12px;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .sidebar {
    align-items: stretch;
    padding: 12px;
  }

  .brand {
    justify-content: center;
  }

  .brand div:last-child,
  .sidebar .block-title,
  .sidebar .setting-row span,
  .sidebar .range-field span {
    display: none;
  }

  .nav-item {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0 6px;
    text-align: center;
  }

  .nav-item span {
    max-width: 62px;
    font-size: 11px;
  }

  .nav-item b {
    display: none;
  }

  .nav-primary .nav-item.has-alert b {
    position: absolute;
    top: -5px;
    right: -3px;
    display: grid;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    border: 2px solid var(--surface-solid);
    font-size: 9px;
    line-height: 1;
  }

  .nav-more-panel .nav-item {
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: stretch;
    padding: 0 10px;
    text-align: left;
  }

  .nav-more-panel .nav-item span {
    max-width: none;
  }

  .nav-more-panel .nav-item b {
    display: grid;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
  }

  .nav-more-panel #countOverdue {
    background: rgba(255, 45, 85, 0.14);
    color: var(--pink);
  }

  .nav-more.has-alert b {
    display: grid;
    position: static;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 9px;
  }

  .nav-more.has-alert {
    grid-template-columns: minmax(0, auto) auto;
    justify-content: center;
    gap: 4px;
  }

  .sidebar .segmented {
    grid-template-columns: 1fr;
    min-height: 104px;
  }

  .sidebar .range-field {
    display: none;
  }

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

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

@media (max-width: 760px) {
  body {
    background: var(--bg);
  }

  .auth-screen {
    padding:
      calc(18px + var(--safe-top))
      calc(18px + var(--safe-right))
      calc(18px + var(--safe-bottom))
      calc(18px + var(--safe-left));
  }

  .auth-card {
    gap: 12px;
    padding: 0;
  }

  .app-shell {
    grid-template-columns: 1fr;
    gap: 8px;
    padding:
      calc(8px + var(--safe-top))
      calc(8px + var(--safe-right))
      calc(8px + var(--safe-bottom))
      calc(8px + var(--safe-left));
  }

  .sidebar {
    position: static;
    gap: 12px;
    height: auto;
    min-height: 0;
    padding: 12px;
    border-radius: 16px;
  }

  .brand {
    justify-content: flex-start;
  }

  .brand-mark {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    font-size: 11px;
  }

  .brand div:last-child,
  .block-title,
  .setting-row span,
  .range-field span {
    display: block;
  }

  .nav-list {
    display: grid;
    gap: 5px;
    overflow: visible;
    padding-bottom: 0;
    scrollbar-width: none;
  }

  .nav-primary {
    grid-template-columns: 0.98fr 1.12fr 1fr 1.24fr 0.68fr;
    gap: 5px;
  }

  .nav-more-panel {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    margin-top: 0;
    padding-top: 6px;
  }

  .nav-more-panel .nav-support-item {
    grid-column: 1 / -1;
  }

  .nav-list::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    min-width: 0;
    min-height: 38px;
    padding: 0 4px;
  }

  .nav-item span {
    max-width: 100%;
    font-size: 10.4px;
  }

  .sidebar-block {
    display: none;
  }

  .user-card {
    align-items: stretch;
    margin-top: 0;
    padding: 10px;
  }

  .user-actions {
    width: auto;
  }

  .user-card strong {
    font-size: 12px;
  }

  .account-overlay {
    align-items: start;
    padding:
      calc(10px + var(--safe-top))
      calc(10px + var(--safe-right))
      calc(10px + var(--safe-bottom))
      calc(10px + var(--safe-left));
  }

  .account-dialog {
    gap: 9px;
    border-radius: 18px;
    padding: 12px;
  }

  .account-head h1 {
    font-size: 22px;
  }

  .account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace {
    min-height: auto;
    padding: 10px;
    border-radius: 18px;
  }

  .topbar {
    display: grid;
  }

  .top-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    width: 100%;
    min-width: 0;
  }

  .search-field {
    width: 100%;
  }

  .smart-feed-button {
    min-width: 74px;
    padding: 0 9px;
  }

  h1 {
    font-size: 25px;
  }

  .eyebrow {
    font-size: 12px;
  }

  .composer {
    padding: 10px;
  }

  .composer-form {
    grid-template-columns: minmax(0, 1fr) 40px 42px;
  }

  .composer-form input {
    min-height: 42px;
    font-size: 13.5px;
    padding: 0 40px 0 12px;
  }

  .composer-clear-button {
    right: 9px;
    width: 21px;
    height: 21px;
  }

  .primary-button {
    width: 42px;
    height: 42px;
    font-size: 0;
  }

  .voice-button {
    width: 40px;
    height: 42px;
  }

  .content-grid,
  .insights {
    grid-template-columns: 1fr;
  }

  .insights {
    gap: 9px;
    padding-bottom: 6px;
    overflow: visible;
  }

  .insights .insight-panel {
    border-radius: 18px;
    background: var(--surface-solid);
    box-shadow: 0 8px 24px rgba(30, 41, 59, 0.055);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .insights .accordion-panel.is-collapsed {
    padding: 10px 12px;
  }

  .insights .accordion-panel:last-child {
    margin-bottom: 4px;
  }

  .calendar-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
    align-items: stretch;
  }

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

  .calendar-modes.segmented {
    flex: 1 1 auto;
    min-height: 36px;
  }

  .calendar-surface,
  .clients-surface {
    min-height: 460px;
  }

  .client-summary {
    grid-template-columns: minmax(0, 1fr) 28px;
  }

  .client-summary-side {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .client-details {
    grid-template-columns: 1fr;
  }

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

  .calendar-board.week {
    grid-template-columns: repeat(7, minmax(120px, 1fr));
  }

  .calendar-board.month {
    grid-template-columns: repeat(7, minmax(42px, 1fr));
    gap: 3px;
  }

  .calendar-month-cell {
    min-height: 78px;
    padding: 4px 3px;
  }

  .calendar-month-cell {
    gap: 3px;
  }

  .calendar-month-day {
    min-width: 20px;
    height: 20px;
    font-size: 12px;
  }

  .calendar-month-entry {
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    min-height: 16px;
    border-left-width: 1px;
    border-radius: 5px;
    font-size: 8px;
    padding: 2px 1px 2px 2px;
  }

  .calendar-month-entry-title {
    display: block;
    text-overflow: clip;
  }

  .calendar-month-entry-time {
    display: none;
  }

  .calendar-month-more {
    font-size: 9px;
    padding: 3px 5px;
  }

  .calendar-headline {
    display: grid;
  }

  .calendar-headline h2 {
    font-size: 19px;
  }

  .section-head {
    padding: 12px 12px 7px;
  }

  .task-list {
    padding: 0 7px 9px;
  }

  .task-card {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 7px;
    min-height: 0;
    padding: 9px 7px 8px 6px;
  }

  .check-button {
    width: 23px;
    height: 23px;
  }

  .task-title {
    font-size: 13.5px;
  }

  .task-actions {
    justify-self: start;
    margin-top: 0;
  }

  .task-action {
    width: 27px;
    min-width: 27px;
    height: 27px;
    font-size: 12px;
  }

  .task-action[data-action="smart"],
  .task-action[data-action="edit-title"] {
    width: auto;
    min-width: 50px;
    padding: 0 7px;
    font-size: 10.5px;
  }

  .insight-panel {
    padding: 11px;
  }

  #pulseCanvas {
    height: 158px;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }
}

@media (max-width: 430px) {
  .app-shell {
    padding:
      calc(6px + var(--safe-top))
      calc(6px + var(--safe-right))
      calc(8px + var(--safe-bottom))
      calc(6px + var(--safe-left));
  }

  .workspace {
    padding: 8px;
  }

  .user-card {
    grid-template-columns: 1fr;
  }

  .user-actions {
    width: 100%;
  }

  h1 {
    font-size: 24px;
  }

  .composer-form {
    grid-template-columns: minmax(0, 1fr) 38px 40px;
    gap: 7px;
  }

  .primary-button {
    width: 40px;
    height: 40px;
  }

  .voice-button {
    width: 38px;
    height: 40px;
  }

  .quick-row button,
  .preview-pill,
  .sort-chip,
  .tag {
    min-height: 24px;
    font-size: 10.5px;
    padding: 0 7px;
  }

  .task-meta {
    gap: 4px;
  }

  .tag.reminder-schedule {
    font-size: 10px;
    padding-inline: 6px;
  }

  .today-focus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .event-color-field {
    grid-column: 1 / -1;
  }

  .event-card {
    overflow: hidden;
  }

  .event-field input,
  .event-field select,
  .event-field textarea,
  .finance-range input,
  .finance-category-filter select {
    min-width: 0;
    max-width: 100%;
    font-size: 14px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .event-field input,
  .event-field select,
  .finance-range input,
  .finance-category-filter select {
    height: 38px;
    min-height: 38px;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 38px;
  }

  .event-field input[type="date"],
  .event-field input[type="time"],
  .finance-range input[type="date"] {
    text-align: left;
  }

  .event-field input[type="date"]::-webkit-date-and-time-value,
  .event-field input[type="time"]::-webkit-date-and-time-value,
  .finance-range input[type="date"]::-webkit-date-and-time-value {
    height: 38px;
    line-height: 38px;
  }

  .event-money-grid {
    grid-template-columns: 1fr;
  }

  .event-money-payment {
    grid-template-columns: 1.1fr 0.95fr 0.85fr;
  }

  .event-business-grid {
    grid-template-columns: 1fr;
  }

  .finance-range {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .finance-range input {
    font-size: 12.5px;
    font-weight: 780;
  }

  .event-money-head {
    display: grid;
  }

  .event-money-head p {
    max-width: 100%;
    text-align: right;
  }

  .event-location-head,
  .event-location-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .event-map-tabs.segmented {
    width: 132px;
  }

  .event-map-open {
    width: auto;
  }

  .tag {
    max-width: min(100%, 142px);
  }

  .task-actions {
    gap: 4px;
  }

  .task-action {
    width: 26px;
    min-width: 26px;
    height: 26px;
    font-size: 11.5px;
  }

  .task-action[data-action="smart"],
  .task-action[data-action="edit-title"] {
    width: auto;
    min-width: 48px;
    padding: 0 6px;
    font-size: 10px;
  }

  .queue-item {
    grid-template-columns: 1fr;
  }
}

/* Quiet UI preview: cleaner white surface with less visual stacking. */
:root {
  --bg: #ffffff;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --line: rgba(20, 31, 52, 0.11);
  --line-strong: rgba(20, 31, 52, 0.18);
  --shadow: 0 1px 2px rgba(20, 31, 52, 0.035);
  --blur: none;
}

body {
  background: var(--bg);
}

.app-shell {
  background: var(--bg);
}

.sidebar,
.workspace,
.composer,
.task-column,
.insight-panel,
.calendar-toolbar,
.calendar-surface,
.clients-surface,
.event-card,
.account-dialog,
.account-field,
.account-section,
.auth-card {
  background: var(--surface-solid);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.sidebar,
.workspace {
  border-color: transparent;
}

.composer,
.task-column,
.insight-panel,
.calendar-toolbar,
.calendar-surface,
.clients-surface,
.event-card,
.today-focus,
.account-field,
.account-section,
.auth-card {
  border-color: var(--line);
}

.workspace {
  gap: 14px;
}

.sidebar {
  gap: 16px;
}

.nav-list {
  gap: 4px;
}

.nav-primary,
.nav-more-panel {
  gap: 4px;
}

.nav-item {
  min-height: 38px;
  border-radius: 13px;
}

.nav-item:hover,
.nav-more[aria-expanded="true"],
.nav-more-toggle:checked ~ .nav-primary .nav-more {
  background: rgba(20, 31, 52, 0.035);
}

.nav-item.active {
  border-color: rgba(0, 122, 255, 0.24);
  background: rgba(0, 122, 255, 0.09);
}

.user-card {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  padding: 0 2px;
}

.user-card button {
  box-shadow: none;
}

.user-card .profile-button {
  border: 1px solid rgba(0, 122, 255, 0.2);
  background: rgba(0, 122, 255, 0.08);
  color: var(--blue);
}

.user-card .logout-button {
  border: 1px solid rgba(255, 45, 85, 0.18);
  background: rgba(255, 45, 85, 0.08);
  color: var(--pink);
}

.user-card .profile-button:hover {
  background: rgba(0, 122, 255, 0.12);
}

.user-card .logout-button:hover {
  background: rgba(255, 45, 85, 0.12);
}

.search-field,
.smart-feed-button,
.icon-button,
.voice-button,
.composer-form input,
.event-field input,
.event-field select,
.event-field textarea,
.client-edit-field input,
.client-edit-field select,
.account-form input {
  background: var(--surface-solid);
  border-color: var(--line);
}

.composer-form input {
  border-color: rgba(0, 122, 255, 0.13);
  background:
    linear-gradient(135deg, rgba(0, 122, 255, 0.045), rgba(52, 199, 89, 0.035)),
    var(--surface-solid);
}

.composer-clear-button {
  background: rgba(120, 120, 128, 0.055);
}

.voice-button {
  border-color: rgba(0, 122, 255, 0.18);
  background:
    linear-gradient(145deg, rgba(0, 122, 255, 0.09), rgba(48, 176, 199, 0.08)),
    var(--surface-solid);
}

.composer {
  padding: 10px;
}

.quick-row button,
.preview-pill,
.sort-chip,
.tag,
.time-group-title {
  background: rgba(20, 31, 52, 0.045);
  border-color: rgba(20, 31, 52, 0.06);
}

.quick-row button {
  color: var(--muted);
  border-color: rgba(20, 31, 52, 0.06);
  background: rgba(20, 31, 52, 0.045);
}

.quick-row button:hover {
  filter: saturate(1.08);
}

.today-focus {
  background: var(--surface-solid);
  box-shadow: none;
}

.today-focus-card,
.advisor-card,
.queue-item,
.client-detail-row {
  background: var(--surface-solid);
}

.today-focus-card.active {
  background: rgba(0, 122, 255, 0.075);
}

.task-list {
  gap: 8px;
  padding: 0 10px 12px;
}

.task-card,
.client-card,
.client-accordion,
.calendar-event,
.calendar-list-group {
  background: var(--surface-solid);
  box-shadow: none;
}

.task-card {
  border-color: var(--line);
  border-left-width: 3px;
}

.task-card.overdue {
  background: rgba(255, 45, 85, 0.035);
}

.task-action {
  background: var(--surface-solid);
  border-color: var(--line);
}

.calendar-day,
.calendar-month-cell,
.calendar-list {
  background: var(--surface-solid);
}

.calendar-slot {
  background: var(--surface-solid);
  border-color: var(--line);
}

.calendar-month-cell.today,
.calendar-slot:hover,
.calendar-month-cell:hover {
  background: rgba(0, 122, 255, 0.055);
}

#pulseCanvas {
  background: var(--surface-solid);
}

.account-overlay {
  background: rgba(255, 255, 255, 0.72);
}

/* Account refresh preview: cleaner profile surface, closer to the main screen. */
.account-dialog {
  width: min(470px, calc(100vw - var(--safe-left) - var(--safe-right) - 20px));
  gap: 11px;
  border-color: rgba(20, 31, 52, 0.09);
  border-radius: 26px;
  background: var(--surface-solid);
  padding: 16px;
  box-shadow: 0 18px 50px rgba(20, 31, 52, 0.08);
}

.account-head {
  align-items: center;
  padding: 0 2px 2px;
}

.account-head h1 {
  font-size: 24px;
  letter-spacing: 0;
}

.account-close {
  width: 34px;
  height: 34px;
  border-color: rgba(20, 31, 52, 0.08);
  border-radius: 13px;
  background: rgba(20, 31, 52, 0.035);
}

.account-grid {
  display: inline-flex;
  flex-wrap: wrap;
  max-width: 100%;
  width: fit-content;
  align-self: flex-start;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(0, 122, 255, 0.12);
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(0, 122, 255, 0.055), rgba(52, 199, 89, 0.035)),
    var(--surface-solid);
  padding: 2px;
}

.account-field {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  min-height: 22px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 2px 8px;
  overflow: hidden;
  white-space: nowrap;
}

.account-field + .account-field {
  border-left: 1px solid rgba(20, 31, 52, 0.08);
  border-radius: 0 12px 12px 0;
}

.account-field span,
.account-form label span {
  flex: 0 0 auto;
  font-size: 9.5px;
  line-height: 1;
  letter-spacing: 0;
}

.account-field strong {
  display: inline-block;
  overflow: hidden;
  max-width: 116px;
  font-size: 12px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-section {
  border-color: rgba(20, 31, 52, 0.09);
  border-radius: 18px;
  background: var(--surface-solid);
  box-shadow: none;
}

.account-subscription-section {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.account-subscription-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.account-subscription-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 780;
  line-height: 1.1;
  letter-spacing: 0;
}

.account-subscription-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.25;
}

.account-plan-badge {
  flex: 0 0 auto;
  min-width: 48px;
  border-radius: 999px;
  background: rgba(0, 122, 255, 0.09);
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  text-align: center;
  padding: 7px 10px;
}

.account-plan-badge.pro {
  background: rgba(52, 199, 89, 0.12);
  color: #228c3e;
}

.account-subscription-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 6px;
}

.account-plan-button,
.account-plan-refresh {
  min-height: 34px;
  border: 1px solid rgba(0, 122, 255, 0.16);
  border-radius: 13px;
  background: rgba(0, 122, 255, 0.05);
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  padding: 0 9px;
}

.account-plan-button.primary {
  border-color: transparent;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 7px 18px rgba(0, 122, 255, 0.16);
}

.account-plan-refresh {
  width: 34px;
  overflow: hidden;
  color: transparent;
  position: relative;
}

.account-plan-refresh::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 2px solid currentColor;
  border-left-color: transparent;
  border-radius: 999px;
  color: var(--blue);
}

.account-subscription-section small {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.3;
}

.account-settings-head h2,
.account-accordion-head h2 {
  font-size: 15px;
}

.account-settings-head p,
.account-accordion-head p {
  font-size: 10.5px;
}

.account-accordion-head {
  min-height: 56px;
  padding: 11px 12px;
}

.account-accordion-body {
  padding: 0 12px 12px;
}

.account-settings-list {
  gap: 0;
}

.account-settings-list .setting-row,
.account-settings-list .range-field,
.account-settings-list .settings-language-row {
  min-height: 40px;
  border-bottom: 1px solid rgba(20, 31, 52, 0.07);
  font-size: 12.5px;
}

.settings-language-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  padding: 6px 0;
}

.settings-language-row > span {
  flex: 1 1 auto;
  overflow: hidden;
  min-width: 0;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-language-control {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 3px;
  min-height: 30px;
  border: 1px solid rgba(20, 31, 52, 0.075);
  border-radius: 999px;
  background: rgba(20, 31, 52, 0.035);
  padding: 3px;
}

.settings-language-control button {
  min-width: 34px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: color-mix(in srgb, var(--muted) 82%, var(--ink));
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: 0;
  padding: 0 8px;
}

.settings-language-control button.selected {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 5px 14px rgba(0, 122, 255, 0.18);
}

.tempo-field {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 8px 0 10px;
}

.tempo-field input,
.tempo-field small {
  grid-column: 1 / -1;
}

.tempo-field small {
  margin-top: -2px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.25;
}

.notification-settings,
.backup-settings,
.apple-calendar-import-settings {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 12px 0 0;
}

.notification-settings {
  border-bottom: 1px solid rgba(20, 31, 52, 0.07);
  padding-bottom: 12px;
}

.apple-calendar-import-settings {
  display: grid;
  gap: 7px;
}

.settings-subhead {
  align-items: center;
  min-height: 30px;
}

.settings-subhead strong {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border-radius: 999px;
  background: rgba(0, 122, 255, 0.08);
  color: var(--blue);
  font-size: 12px;
  padding: 0 10px;
}

.notification-settings .settings-subhead strong {
  background: rgba(255, 159, 10, 0.12);
  color: #b86f00;
}

.backup-settings .settings-subhead strong,
.apple-calendar-import-settings .settings-subhead strong {
  background: rgba(52, 199, 89, 0.11);
  color: #248a3d;
}

.settings-subhead span,
.backup-settings small,
.apple-calendar-import-settings small {
  font-size: 10.5px;
}

.notification-status-button {
  border-color: rgba(255, 159, 10, 0.18);
  background: rgba(255, 159, 10, 0.08);
  color: #b86f00;
}

.notification-status-button.enabled {
  border-color: rgba(52, 199, 89, 0.18);
}

.notification-lead-row {
  min-height: 42px;
  border: 1px solid rgba(20, 31, 52, 0.075);
  border-radius: 14px;
  background: var(--surface-solid);
  padding: 7px 9px;
}

.notification-lead-controls select,
.notification-custom {
  border-color: rgba(20, 31, 52, 0.08);
  background: rgba(20, 31, 52, 0.035);
}

.backup-actions {
  gap: 7px;
}

.backup-auto-row,
.backup-auto-footer,
.apple-import-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
}

.backup-auto-row,
.apple-import-row {
  border: 1px solid rgba(20, 31, 52, 0.075);
  border-radius: 14px;
  background: var(--surface-solid);
  padding: 6px 9px;
}

.backup-auto-row span,
.apple-import-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.backup-auto-row select {
  min-width: 118px;
  height: 30px;
  border: 1px solid rgba(20, 31, 52, 0.08);
  border-radius: 11px;
  outline: 0;
  background: rgba(52, 199, 89, 0.08);
  color: #248a3d;
  font-size: 11px;
  font-weight: 850;
  padding: 0 8px;
}

.backup-auto-footer {
  min-height: 28px;
}

.backup-auto-restore {
  height: 28px;
  border: 1px solid rgba(20, 31, 52, 0.08);
  border-radius: 10px;
  background: var(--surface-solid);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 850;
  padding: 0 10px;
}

.backup-auto-restore:disabled {
  opacity: 0.45;
}

.backup-action {
  min-height: 36px;
  border-color: rgba(20, 31, 52, 0.08);
  background: var(--surface-solid);
}

.backup-action.primary {
  border-color: rgba(52, 199, 89, 0.22);
  background: rgba(52, 199, 89, 0.09);
  color: #248a3d;
}

.apple-import-button {
  min-width: 118px;
  height: 30px;
  border: 1px solid rgba(52, 199, 89, 0.22);
  border-radius: 11px;
  background: rgba(52, 199, 89, 0.09);
  color: #248a3d;
  font-size: 11px;
  font-weight: 850;
  padding: 0 10px;
}

.apple-import-button:disabled {
  opacity: 0.55;
}

.apple-import-clear {
  border-color: rgba(255, 59, 48, 0.18);
  background: rgba(255, 59, 48, 0.08);
  color: #c7322b;
}

.finance-range input,
.finance-category-filter select,
.account-form input {
  border-color: rgba(20, 31, 52, 0.08);
  background: var(--surface-solid);
}

.finance-card {
  border-color: rgba(20, 31, 52, 0.075);
  background: var(--surface-solid);
}

  .account-dialog,
  .account-section,
  .account-accordion-body,
  .account-settings-list,
  .notification-settings,
  .backup-settings,
  .apple-calendar-import-settings {
    min-width: 0;
    max-width: 100%;
  }

@media (max-width: 520px) {
  .account-overlay {
    align-items: flex-start;
    padding:
      calc(10px + var(--safe-top))
      calc(10px + var(--safe-right))
      calc(18px + var(--safe-bottom))
      calc(10px + var(--safe-left));
  }

  .account-dialog {
    width: 100%;
    padding: 12px;
    border-radius: 22px;
  }

  .account-head h1 {
    font-size: 22px;
  }

  .settings-subhead {
    align-items: center;
  }

  .settings-subhead span {
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .notification-lead-row,
  .notification-privacy-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .settings-language-control {
    margin-left: auto;
  }

  .notification-lead-controls {
    justify-content: stretch;
    width: 100%;
  }

  .notification-lead-controls select {
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
  }

  .notification-custom {
    flex: 0 0 82px;
    min-width: 0;
  }

  .backup-actions {
    grid-template-columns: 1fr;
  }

  .backup-action {
    min-height: 34px;
  }
}

@media (max-width: 760px) {
  .app-shell {
    align-content: start;
    row-gap: 18px;
  }

  .sidebar,
  .workspace {
    padding-inline: 12px;
  }

  .sidebar {
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .workspace {
    margin-top: 0;
    padding-top: 0;
  }

  .topbar {
    padding-top: 0;
  }

  .sidebar,
  .workspace,
  .composer,
  .task-column,
  .insight-panel,
  .calendar-toolbar,
  .calendar-surface,
  .clients-surface {
    border-radius: 18px;
  }

  .insights .insight-panel {
    box-shadow: none;
  }
}

/* Final auth-screen override: isolated from the app segmented/button/card styles. */
#authScreen {
  background: #ffffff !important;
}

#authScreen .auth-card {
  width: min(292px, calc(100vw - 36px)) !important;
  gap: 12px !important;
  justify-items: center !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

#authScreen .auth-tabs {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 7px !important;
  width: max-content !important;
  max-width: 100% !important;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

#authScreen .auth-language {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  min-height: 0 !important;
  margin-top: -3px !important;
}

#authScreen .auth-brand {
  justify-self: center !important;
  width: min(292px, 100%) !important;
}

#authScreen .auth-tabs button {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 34px !important;
  border: 1px solid rgba(20, 31, 52, 0.11) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  color: var(--muted) !important;
  padding: 0 14px !important;
  font-size: 13px !important;
  font-weight: 720 !important;
}

#authScreen .auth-language button {
  flex: 0 0 auto !important;
  min-width: 29px !important;
  min-height: 22px !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: color-mix(in srgb, var(--muted) 76%, var(--ink)) !important;
  padding: 0 7px !important;
  font-size: 10.5px !important;
  font-weight: 760 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
}

#authScreen .auth-tabs button.selected,
#authScreen .auth-language button.selected {
  border-color: rgba(0, 122, 255, 0.2) !important;
  background: rgba(0, 122, 255, 0.08) !important;
  color: var(--blue) !important;
}

#authScreen .auth-form {
  width: min(226px, 100%) !important;
  gap: 7px !important;
}

#authScreen .auth-form label {
  display: grid !important;
  grid-template-columns: 72px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 36px !important;
  border-radius: 12px !important;
  padding: 0 10px !important;
}

#authScreen .auth-form label[hidden] {
  display: none !important;
}

#authScreen .auth-form label span {
  font-size: 11px !important;
  line-height: 1 !important;
}

#authScreen .auth-form input {
  min-height: 34px !important;
  text-align: right !important;
  font-size: 14px !important;
  padding: 0 !important;
}

#authScreen .auth-submit {
  min-height: 38px !important;
  border-radius: 14px !important;
}

#authScreen .auth-secondary {
  border: 0 !important;
  background: transparent !important;
  color: color-mix(in srgb, var(--blue) 82%, var(--muted)) !important;
  box-shadow: none !important;
  min-height: 24px !important;
  padding: 0 6px !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  line-height: 1.1 !important;
  justify-self: center !important;
}

@media (max-width: 520px) {
  #authScreen .auth-card {
    width: min(310px, calc(100vw - 36px)) !important;
    gap: 13px !important;
  }

  #authScreen .auth-tabs {
    gap: 8px !important;
  }

  #authScreen .auth-tabs button {
    min-height: 38px !important;
    border-radius: 13px !important;
    padding: 0 16px !important;
    font-size: 14px !important;
  }

  #authScreen .auth-language button {
    min-width: 31px !important;
    min-height: 23px !important;
    padding: 0 8px !important;
    font-size: 10.5px !important;
  }

  #authScreen .auth-form {
    width: min(252px, 100%) !important;
    gap: 8px !important;
  }

  #authScreen .auth-form label {
    grid-template-columns: 76px minmax(0, 1fr) !important;
    min-height: 42px !important;
    border-radius: 14px !important;
    padding: 0 12px !important;
  }

  #authScreen .auth-form label span {
    font-size: 12.5px !important;
  }

  #authScreen .auth-form input {
    min-height: 38px !important;
    font-size: 15.5px !important;
  }

  #authScreen .auth-submit {
    min-height: 42px !important;
    border-radius: 15px !important;
    font-size: 15px !important;
  }

  #authScreen .auth-secondary {
    min-height: 26px !important;
    font-size: 13px !important;
  }
}

input::placeholder,
textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 46%, transparent);
  font-weight: 420;
  opacity: 1;
}

.auth-form label > span,
.account-field > span,
.account-form label > span,
.event-field > span,
.client-edit-field > span,
.finance-range label > span,
.finance-category-filter > span,
.notification-lead-row > span,
.backup-auto-row > span {
  color: color-mix(in srgb, var(--muted) 58%, transparent);
  font-weight: 500;
}

body:not(.authenticated) .support-chat-button {
  display: none;
}

.support-chat-button {
  position: fixed;
  top: calc(32px + var(--safe-top));
  right: calc(18px + var(--safe-right));
  z-index: 24;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(0, 122, 255, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(0, 122, 255, 0.08), rgba(48, 176, 199, 0.06)),
    var(--surface-solid);
  color: var(--blue);
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 122, 255, 0.1);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.support-chat-button:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 122, 255, 0.28);
  box-shadow: 0 14px 32px rgba(0, 122, 255, 0.14);
}

.support-chat-button svg {
  display: block;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transform: translate(1px, -0.5px);
}

.support-overlay {
  position: fixed;
  inset: 0;
  z-index: 34;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  overflow-y: auto;
  background: rgba(248, 250, 253, 0.66);
  padding:
    calc(18px + var(--safe-top))
    calc(18px + var(--safe-right))
    calc(18px + var(--safe-bottom))
    calc(18px + var(--safe-left));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.support-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(410px, 100%);
  min-height: min(720px, calc(100dvh - var(--safe-top) - var(--safe-bottom) - 36px));
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-solid);
  box-shadow: 0 18px 48px rgba(20, 31, 52, 0.11);
  padding: 12px;
}

.support-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  min-height: 36px;
}

.support-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.support-head h2,
.support-dev-button {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  margin: 0;
  border: 1px solid rgba(0, 122, 255, 0.18);
  border-radius: 13px;
  background: rgba(0, 122, 255, 0.08);
  color: var(--blue);
  font-size: 13px;
  line-height: 1.08;
  font-weight: 560;
  padding: 0 12px;
}

.support-dev-button {
  appearance: none;
  border-color: rgba(52, 199, 89, 0.24);
  background: rgba(52, 199, 89, 0.12);
  color: #1f9d55;
  white-space: nowrap;
  font-size: 12px;
  cursor: default;
}

.support-close {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(127, 127, 127, 0.06);
  color: var(--muted);
  cursor: pointer;
}

.support-close::before,
.support-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.support-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.support-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.support-thread {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  gap: 8px;
  overflow-y: auto;
  background: var(--surface-solid);
  padding: 6px 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.support-thread::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.support-bubble {
  max-width: 88%;
  border: 1px solid rgba(0, 122, 255, 0.12);
  border-radius: 16px 16px 6px 16px;
  background: var(--surface-solid);
  color: var(--ink);
  align-self: flex-end;
  overflow-wrap: anywhere;
  padding: 9px 11px;
  font-size: 12.5px;
  font-weight: 540;
  line-height: 1.35;
}

.support-bubble-system {
  align-self: flex-start;
  border-color: var(--line);
  border-radius: 16px 16px 16px 6px;
  background: rgba(127, 127, 127, 0.045);
  color: var(--muted);
}

.support-bubble-welcome {
  max-width: 92%;
  border-color: rgba(0, 122, 255, 0.1);
  background: rgba(0, 122, 255, 0.035);
  color: #667085;
  color: color-mix(in srgb, var(--muted) 88%, var(--ink));
  font-size: 12px;
  font-weight: 440;
  letter-spacing: 0;
}

.support-bubble-welcome.is-typing::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 1em;
  margin-left: 3px;
  border-radius: 999px;
  background: rgba(0, 122, 255, 0.42);
  vertical-align: -2px;
  animation: supportCaret 0.85s ease-in-out infinite;
}

@keyframes supportCaret {
  0%, 100% {
    opacity: 0.2;
  }

  50% {
    opacity: 1;
  }
}

.support-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 8px;
}

.support-composer input {
  min-width: 0;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  background: var(--surface-solid);
  color: var(--ink);
  font-size: 12.5px;
  padding: 0 12px;
  opacity: 1;
}

.support-composer input:focus {
  border-color: rgba(0, 122, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.08);
}

.support-composer button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 40px;
  border: 1px solid rgba(0, 122, 255, 0.16);
  border-radius: 14px;
  background: rgba(0, 122, 255, 0.08);
  color: var(--blue);
  cursor: pointer;
}

.support-composer button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

@media (max-width: 760px) {
  .support-chat-button {
    top: calc(20px + var(--safe-top));
    right: calc(12px + var(--safe-right));
    width: 36px;
    height: 36px;
    border-radius: 13px;
  }

  .support-chat-button svg {
    width: 18px;
    height: 18px;
  }

  .support-overlay {
    justify-content: center;
    padding:
      calc(10px + var(--safe-top))
      calc(10px + var(--safe-right))
      calc(14px + var(--safe-bottom))
      calc(10px + var(--safe-left));
  }

  .support-dialog {
    min-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 24px);
    border-radius: 22px;
    padding: 12px;
  }
}

/* Final account profile strip alignment: keep the ID/login chip compact and centered. */
.account-dialog .account-grid {
  flex-wrap: nowrap;
  align-self: flex-start;
  justify-self: start;
  width: max-content;
  max-width: calc(100% - 2px);
  min-height: 0;
  margin-inline: 0;
  padding: 1px 2px;
  border-radius: 12px;
}

.account-dialog .account-field {
  align-items: center;
  min-height: 20px;
  gap: 4px;
  padding: 0 7px;
}

.account-dialog .account-field span {
  font-size: 8.5px;
  line-height: 1;
  font-weight: 500;
}

.account-dialog .account-field strong {
  max-width: 108px;
  font-size: 10.5px;
  line-height: 1;
  font-weight: 650;
}

/* Match notifications controls to the compact autobackup row style. */
.account-dialog .notification-settings {
  gap: 7px;
}

.account-dialog .notification-settings .settings-subhead,
.account-dialog .notification-lead-row,
.account-dialog .notification-privacy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid rgba(20, 31, 52, 0.075);
  border-radius: 14px;
  background: var(--surface-solid);
  padding: 6px 9px;
}

.account-dialog .notification-settings .settings-subhead strong,
.account-dialog .notification-lead-row > span,
.account-dialog .notification-privacy-row > span {
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  padding: 0;
}

.account-dialog .notification-status-button,
.account-dialog .notification-lead-controls select {
  min-width: 118px;
  height: 30px;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 850;
}

.account-dialog .notification-status-button {
  border-color: rgba(255, 159, 10, 0.18);
  background: rgba(255, 159, 10, 0.08);
  color: #b86f00;
}

.account-dialog .notification-status-button.enabled {
  border-color: rgba(52, 199, 89, 0.22);
  background: rgba(52, 199, 89, 0.09);
  color: #248a3d;
}

.account-dialog .notification-lead-controls {
  width: auto;
  justify-content: flex-end;
}

.account-dialog .notification-lead-controls select,
.account-dialog .notification-custom {
  border-color: rgba(255, 159, 10, 0.16);
  background: rgba(255, 159, 10, 0.06);
  color: #b86f00;
}

/* iPhone viewport guardrails: keep the polished phone layout stable from SE/mini to Pro Max. */
@media (max-width: 430px) {
  .app-shell {
    padding:
      calc(6px + var(--safe-top))
      calc(6px + var(--safe-right))
      calc(10px + var(--safe-bottom))
      calc(6px + var(--safe-left));
  }

  .sidebar,
  .workspace {
    padding-inline: 8px;
  }

  .sidebar {
    padding-top: 10px;
  }

  .workspace {
    gap: 12px;
    padding-top: 0;
    padding-bottom: 8px;
  }

  .nav-primary {
    grid-template-columns:
      minmax(0, 0.94fr)
      minmax(0, 1.13fr)
      minmax(0, 0.98fr)
      minmax(0, 1.2fr)
      minmax(0, 0.66fr);
  }

  .nav-more-panel {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nav-item {
    min-height: 36px;
    border-radius: 12px;
    padding-inline: 3px;
  }

  .nav-item span {
    font-size: clamp(9.4px, 2.65vw, 10.4px);
    line-height: 1;
  }

  .nav-item b {
    min-width: 18px;
    height: 18px;
    font-size: 9.5px;
  }

  .topbar {
    gap: 10px;
  }

  .top-actions {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
  }

  .search-field {
    min-height: 36px;
    padding-inline: 10px;
  }

  .smart-feed-button {
    min-width: 66px;
    min-height: 36px;
    padding-inline: 8px;
    font-size: 11.5px;
  }

  .composer {
    gap: 8px;
    padding: 8px;
  }

  .quick-row button {
    flex: 0 0 auto;
  }

  .calendar-board.week {
    grid-template-columns: repeat(7, minmax(104px, 1fr));
  }

  .task-title-overlay {
    padding:
      calc(12px + var(--safe-top))
      calc(12px + var(--safe-right))
      calc(12px + var(--safe-bottom))
      calc(12px + var(--safe-left));
  }

  .task-title-dialog {
    width: min(390px, 100%);
  }

  .support-dialog {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .sidebar,
  .workspace {
    padding-inline: 7px;
  }

  .nav-primary {
    gap: 4px;
    grid-template-columns:
      minmax(0, 0.9fr)
      minmax(0, 1.08fr)
      minmax(0, 0.96fr)
      minmax(0, 1.16fr)
      minmax(0, 0.62fr);
  }

  .nav-more-panel {
    gap: 4px;
  }

  .nav-item {
    min-height: 35px;
  }

  .nav-item span {
    font-size: 9.4px;
  }

  .calendar-board.month {
    gap: 2px;
  }

  .calendar-month-cell {
    min-height: 70px;
    padding: 3px 2px;
  }

  .calendar-month-entry {
    font-size: 7.8px;
  }

  .task-card {
    padding: 8px 6px 7px 5px;
  }
}

@media (max-width: 430px) and (max-height: 740px) {
  .app-shell {
    gap: 6px;
  }

  .sidebar {
    gap: 8px;
    padding-top: 8px;
    padding-bottom: 2px;
  }

  .brand-mark {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
  }

  .brand small {
    font-size: 10px;
  }

  .nav-item {
    min-height: 34px;
  }

  .workspace {
    gap: 9px;
  }

  .composer {
    gap: 7px;
  }

  .quick-row button,
  .preview-pill,
  .sort-chip,
  .tag {
    min-height: 22px;
  }

  .account-dialog,
  .support-dialog,
  .task-title-dialog {
    max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 18px);
    overflow-y: auto;
  }
}

@media (max-width: 760px) and (orientation: landscape) {
  .app-shell {
    padding:
      calc(6px + var(--safe-top))
      calc(8px + var(--safe-right))
      calc(8px + var(--safe-bottom))
      calc(8px + var(--safe-left));
  }

  .sidebar {
    gap: 8px;
  }

  .workspace {
    min-height: auto;
  }

  .account-dialog,
  .support-dialog,
  .task-title-dialog {
    max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 18px);
    overflow-y: auto;
  }
}

/* iPad baseline: universal app shell for mini, 11-inch and 13-inch tablets. */
@media (min-width: 761px) and (max-width: 1400px) {
  .app-shell {
    grid-template-columns: clamp(132px, 11vw, 148px) minmax(0, 1fr);
    gap: 14px;
    max-width: 1280px;
    margin-inline: auto;
    padding:
      calc(14px + var(--safe-top))
      calc(14px + var(--safe-right))
      calc(14px + var(--safe-bottom))
      calc(14px + var(--safe-left));
  }

  .sidebar {
    top: calc(14px + var(--safe-top));
    height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 28px);
    min-height: 0;
    overflow: auto;
    border-radius: 18px;
  }

  .workspace {
    min-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 28px);
    border-radius: 20px;
    padding: 14px;
  }

  .composer,
  .task-column,
  .insight-panel,
  .calendar-toolbar,
  .calendar-surface,
  .clients-surface {
    border-radius: 18px;
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(132px, max-content) minmax(0, 1fr);
    align-items: start;
    gap: 12px;
  }

  .topbar > div:first-child {
    min-width: 132px;
  }

  .topbar h1 {
    overflow-wrap: normal;
    white-space: nowrap;
    word-break: normal;
  }

  .top-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    flex: none;
    min-width: 0;
  }

  .search-field {
    width: 100%;
  }

  .composer-form {
    grid-template-columns: minmax(0, 1fr) 44px 48px;
  }

  .composer-form input {
    min-height: 46px;
  }

  .voice-button,
  .primary-button {
    height: 46px;
  }

  .voice-button {
    width: 44px;
  }

  .primary-button {
    width: 48px;
  }

  .calendar-surface,
  .clients-surface {
    min-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 164px);
  }

  .account-dialog {
    width: min(620px, calc(100vw - var(--safe-left) - var(--safe-right) - 48px));
  }

  .support-dialog {
    width: min(1180px, calc(100vw - var(--safe-left) - var(--safe-right) - 36px));
    min-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 36px);
  }

  .support-overlay {
    justify-content: center;
    padding:
      calc(18px + var(--safe-top))
      calc(18px + var(--safe-right))
      calc(18px + var(--safe-bottom))
      calc(18px + var(--safe-left));
  }

  .support-bubble {
    max-width: min(72%, 720px);
    font-size: 13px;
  }

  .support-bubble-welcome {
    max-width: min(82%, 860px);
  }

  .nav-more-panel .nav-item {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 40px;
    padding: 0 7px;
    text-align: center;
  }

  .nav-more-panel .nav-item span {
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    word-break: normal;
    overflow-wrap: normal;
    font-size: 10.4px;
    line-height: 1.12;
  }

  .nav-more-panel .nav-support-item span {
    white-space: nowrap !important;
    font-size: 10px;
  }

  .nav-more-panel .nav-item b {
    position: absolute;
    top: -5px;
    right: -4px;
    display: grid;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    border: 2px solid var(--surface-solid);
    font-size: 9px;
    line-height: 1;
  }

  .sidebar .user-card {
    padding: 9px;
  }

  .sidebar .user-actions {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1000px) and (max-width: 1400px) {
  .content-grid {
    grid-template-columns: minmax(0, 1fr) minmax(292px, 330px);
    align-items: start;
  }

  .task-column {
    min-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 196px);
  }

  .insights {
    position: sticky;
    top: calc(14px + var(--safe-top));
    align-self: start;
    grid-template-columns: 1fr;
    max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 28px);
    overflow: auto;
    padding-bottom: 2px;
  }

  .calendar-board.week {
    grid-template-columns: repeat(7, minmax(124px, 1fr));
  }

  .calendar-month-cell {
    min-height: 118px;
  }

  .client-details,
  .client-edit-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 761px) and (max-width: 999px) {
  .content-grid,
  .insights {
    grid-template-columns: 1fr;
  }

  .insights {
    gap: 10px;
  }

  .task-column {
    min-height: 420px;
  }

  .calendar-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
  }

  .calendar-modes.segmented {
    width: 100%;
  }

  .calendar-board.week {
    grid-template-columns: repeat(7, minmax(108px, 1fr));
  }

  .calendar-month-cell {
    min-height: 96px;
  }
}

@media (min-width: 761px) and (max-width: 999px) and (orientation: portrait) {
  .app-shell {
    grid-template-columns: 132px minmax(0, 1fr);
  }

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

  .top-actions {
    width: 100%;
    flex-basis: auto;
  }
}

@media (min-width: 700px) and (max-width: 760px) and (min-height: 900px) {
  .app-shell {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 12px;
    max-width: 980px;
    margin-inline: auto;
    padding:
      calc(12px + var(--safe-top))
      calc(12px + var(--safe-right))
      calc(12px + var(--safe-bottom))
      calc(12px + var(--safe-left));
  }

  .sidebar {
    position: sticky;
    top: calc(12px + var(--safe-top));
    align-items: stretch;
    height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 24px);
    min-height: 0;
    overflow: auto;
    gap: 12px;
    border-radius: 18px;
    padding: 12px 10px;
  }

  .brand {
    justify-content: center;
  }

  .brand div:last-child,
  .sidebar .block-title,
  .sidebar .setting-row span,
  .sidebar .range-field span {
    display: none;
  }

  .nav-list {
    display: grid;
    gap: 8px;
    overflow: visible;
  }

  .nav-primary,
  .nav-more-panel {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .nav-more-panel {
    padding-top: 0;
  }

  .nav-more-panel .nav-support-item {
    grid-column: auto;
  }

  .nav-item {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 40px;
    padding: 0 7px;
    text-align: center;
  }

  .nav-item span {
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    word-break: normal;
    overflow-wrap: normal;
    font-size: 10.4px;
    line-height: 1.12;
  }

  .nav-more-panel .nav-support-item span {
    white-space: nowrap !important;
    font-size: 10px;
  }

  .nav-item b {
    display: none;
  }

  .nav-more-panel .nav-item b {
    position: absolute;
    top: -5px;
    right: -4px;
    display: grid;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    border: 2px solid var(--surface-solid);
    font-size: 9px;
    line-height: 1;
  }

  .nav-primary .nav-item.has-alert b,
  .nav-more.has-alert b {
    position: absolute;
    top: -5px;
    right: -4px;
    display: grid;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    border: 2px solid var(--surface-solid);
    font-size: 9px;
    line-height: 1;
  }

  .user-card {
    margin-top: auto;
    padding: 8px;
  }

  .user-identity {
    white-space: normal;
  }

  .user-actions {
    grid-template-columns: 1fr;
  }

  .workspace {
    min-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 24px);
    border-radius: 20px;
    padding: 12px;
  }

  .support-overlay {
    justify-content: center;
    padding:
      calc(14px + var(--safe-top))
      calc(14px + var(--safe-right))
      calc(14px + var(--safe-bottom))
      calc(14px + var(--safe-left));
  }

  .support-dialog {
    width: calc(100vw - var(--safe-left) - var(--safe-right) - 28px);
    min-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 28px);
    border-radius: 22px;
  }

  .support-bubble {
    max-width: min(78%, 560px);
    font-size: 13px;
  }

  .support-bubble-welcome {
    max-width: min(86%, 620px);
  }

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

  .topbar h1 {
    overflow-wrap: normal;
    white-space: nowrap;
    word-break: normal;
  }

  .top-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    min-width: 0;
  }

  .composer-form {
    grid-template-columns: minmax(0, 1fr) 44px 48px;
  }

  .composer-form input,
  .voice-button,
  .primary-button {
    height: 46px;
    min-height: 46px;
  }

  .voice-button {
    width: 44px;
  }

  .primary-button {
    width: 48px;
  }

  .content-grid,
  .insights {
    grid-template-columns: 1fr;
  }

  .task-column {
    min-height: 420px;
  }
}
