:root {
  --bg: #f7f7f4;
  --panel: #ffffff;
  --ink: #24272d;
  --muted: #6e7480;
  --line: #dedfd8;
  --primary: #2f6f73;
  --primary-dark: #20555a;
  --accent: #d9893d;
  --violet: #7b61ff;
  --danger: #b94a48;
  --shadow: 0 18px 55px rgba(36, 39, 45, 0.09);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

.auth-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(47, 111, 115, 0.14), transparent 36%),
    linear-gradient(315deg, rgba(217, 137, 61, 0.16), transparent 40%),
    var(--bg);
}

.auth-shell {
  width: min(440px, calc(100% - 32px));
}

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

.access-decision-shell {
  width: min(480px, calc(100% - 32px));
}

.auth-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.access-decision-panel {
  display: grid;
  gap: 16px;
}

.access-decision-user {
  background: linear-gradient(180deg, #fff8f1 0%, #fffaf5 100%);
  border: 1px solid #ead7c4;
  border-radius: var(--radius);
  display: grid;
  gap: 4px;
  padding: 14px;
}

.access-decision-user span {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.brand-logo {
  display: block;
  height: auto;
  width: min(236px, 100%);
}

.auth-logo {
  margin-bottom: 22px;
}

.brand-mark {
  display: block;
  flex: 0 0 auto;
  height: 44px;
  margin-bottom: 18px;
  object-fit: contain;
  width: 44px;
}

.brand-mark.small {
  height: 34px;
  margin: 0;
  width: 34px;
}

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

h1 {
  font-size: 32px;
  line-height: 1.1;
  margin-bottom: 10px;
}

h2 {
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 0;
}

h3 {
  font-size: 15px;
  line-height: 1.25;
  margin-bottom: 8px;
}

p {
  color: var(--muted);
  line-height: 1.5;
}

.form-stack {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  gap: 7px;
}

input,
select,
textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  min-height: 42px;
  padding: 10px 12px;
  width: 100%;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 111, 115, 0.14);
  outline: none;
}

.btn,
.icon-button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
}

.btn.primary:hover {
  background: var(--primary-dark);
}

.btn.ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.btn.subtle {
  background: #eef1ec;
  color: var(--ink);
}

.btn.danger {
  background: rgba(185, 74, 72, 0.11);
  color: var(--danger);
}

.btn.full {
  width: 100%;
}

.google-login {
  gap: 10px;
}

.google-g {
  align-items: center;
  background: #fff;
  border-radius: 50%;
  color: var(--primary-dark);
  display: inline-flex;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.auth-note {
  font-size: 13px;
  margin: -4px 0 0;
  text-align: center;
}

.public-body {
  display: block;
  place-items: initial;
}

.public-onboarding {
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 1180px;
  padding: 28px 16px 42px;
  width: 100%;
}

.public-hero {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  min-height: calc(100vh - 56px);
}

.public-hero-copy {
  display: grid;
  justify-items: start;
  max-width: 680px;
}

.public-logo {
  margin-bottom: 26px;
  width: min(210px, 100%);
}

.public-hero h1 {
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1;
  max-width: 760px;
}

.public-hero-copy > p:not(.eyebrow):not(.auth-note) {
  font-size: 17px;
  max-width: 620px;
}

.public-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.public-actions .btn {
  min-height: 44px;
}

.public-note {
  margin-top: 12px;
  text-align: left;
}

.public-access-notice {
  margin-top: 14px;
  max-width: 560px;
}

.public-preview,
.onboarding-section,
.feature-grid article {
  background: linear-gradient(180deg, #fff8f1 0%, #fffaf5 100%);
  border: 1px solid #ead7c4;
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(98, 66, 42, 0.1);
}

.public-preview {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.preview-top,
.preview-metric-row,
.preview-task {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.preview-top span {
  color: var(--primary-dark);
  font-weight: 900;
}

.preview-metric-row {
  gap: 10px;
}

.preview-metric-row div {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(217, 165, 120, 0.32);
  border-radius: var(--radius);
  display: grid;
  flex: 1;
  gap: 6px;
  padding: 12px;
}

.preview-metric-row span,
.preview-task small {
  color: #725f51;
  font-size: 12px;
}

.preview-metric-row strong {
  font-size: 22px;
}

.preview-task {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(217, 165, 120, 0.32);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr;
  justify-content: initial;
  padding: 12px;
}

.preview-task .dot {
  background: #20c6d3;
  margin-top: 4px;
}

.preview-timeline {
  background: #eadfd4;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.preview-timeline span {
  background: var(--primary);
  display: block;
  height: 100%;
}

.public-preview p {
  margin-bottom: 0;
}

.onboarding-section {
  display: grid;
  gap: 20px;
  padding: 24px;
}

.onboarding-head {
  display: grid;
  gap: 4px;
}

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

.onboarding-steps article {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(217, 165, 120, 0.32);
  border-radius: var(--radius);
  display: grid;
  gap: 8px;
  padding: 16px;
}

.onboarding-steps span,
.feature-mark {
  align-items: center;
  background: var(--primary);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.onboarding-steps p,
.feature-grid p {
  font-size: 13px;
  margin-bottom: 0;
}

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

.feature-grid article {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.feature-mark {
  background: var(--accent);
}

.icon-button {
  background: #fff;
  border-color: var(--line);
  height: 38px;
  min-height: 38px;
  padding: 0;
  width: 38px;
}

.notice {
  border-radius: var(--radius);
  font-size: 14px;
  padding: 12px 14px;
}

.notice.error {
  background: rgba(185, 74, 72, 0.12);
  color: var(--danger);
}

.notice.success {
  background: rgba(47, 111, 115, 0.12);
  color: var(--primary-dark);
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: #24272d;
  color: #fff;
  display: grid;
  gap: 18px;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 100vh;
  padding: 22px;
  position: sticky;
  top: 0;
}

.sidebar-top {
  align-self: start;
  display: grid;
  gap: 18px;
}

.sidebar-brand {
  align-items: center;
  display: flex;
  gap: 10px;
}

.sidebar-profile {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 12px;
}

.sidebar-avatar {
  align-items: center;
  background: var(--primary);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 18px;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  overflow: hidden;
  width: 42px;
}

.sidebar-avatar img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.sidebar-avatar span {
  line-height: 1;
}

.sidebar-profile-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.sidebar-profile-text strong,
.sidebar-profile-text span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-profile-text strong {
  color: #fff;
  font-size: 14px;
}

.sidebar-profile-text span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
}

.sidebar-logout {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  grid-column: 1 / -1;
  min-height: 34px;
  padding: 7px 10px;
}

.sidebar-logout:hover {
  background: rgba(255, 255, 255, 0.16);
}

.sidebar-summary {
  align-self: stretch;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  min-height: 0;
  overflow: auto;
  padding: 16px;
}

.sidebar-kicker {
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  font-weight: 800;
  margin: 0 0 9px;
  text-transform: uppercase;
}

.sidebar-stats {
  display: grid;
  gap: 6px;
}

.sidebar-stat-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  min-height: 34px;
  padding: 7px 9px;
}

.sidebar-stat-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-stats span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.sidebar-stats strong {
  color: #fff;
  font-size: 15px;
  line-height: 1;
}

.sidebar-filter-group {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.sidebar-filter-list {
  display: grid;
  gap: 6px;
  max-height: 210px;
  overflow: auto;
  padding-right: 2px;
}

.sidebar-section-head {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.sidebar-section-head .sidebar-kicker {
  margin: 0;
}

.sidebar-client-form {
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) 32px 32px;
}

.sidebar-client-form input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
  min-height: 32px;
  padding: 7px 9px;
}

.sidebar-client-form input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.sidebar-client-form input[type="color"] {
  padding: 3px;
}

.sidebar-action-button,
.sidebar-delete-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 800;
  height: 32px;
  justify-content: center;
  padding: 0;
  width: 32px;
}

.sidebar-action-button:hover,
.sidebar-delete-button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.sidebar-client-row {
  align-items: stretch;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) 32px;
}

.sidebar-delete-button {
  color: rgba(255, 255, 255, 0.7);
}

.sidebar-filter-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.82);
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 38px;
  padding: 8px 10px;
  text-align: left;
  width: 100%;
}

.sidebar-filter-button span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-filter-button strong {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 800;
  justify-self: end;
  min-width: 22px;
  padding: 3px 7px;
  text-align: center;
}

.sidebar-filter-button:hover,
.sidebar-filter-button.selected {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.sidebar-filter-button.selected {
  box-shadow: inset 3px 0 0 var(--accent);
}

.sidebar-empty {
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  margin: 0;
}

.sidebar {
  background: #20242b;
  gap: 16px;
  padding: 18px;
}

.sidebar-top {
  gap: 16px;
}

.sidebar-brand {
  min-height: 36px;
}

.sidebar-brand strong {
  font-size: 15px;
  letter-spacing: 0;
}

.sidebar .sidebar-profile {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.055));
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 10px 12px;
  grid-template-columns: 56px minmax(0, 1fr);
  padding: 12px;
}

.sidebar .sidebar-avatar {
  background: var(--primary);
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  height: 56px;
  width: 56px;
}

.sidebar .sidebar-avatar img {
  border-radius: inherit;
}

.sidebar .sidebar-profile-text {
  align-content: center;
  gap: 4px;
}

.sidebar .sidebar-profile-text strong {
  color: #fff;
  font-size: 15px;
  line-height: 1.1;
}

.sidebar .sidebar-profile-text span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
}

.sidebar .sidebar-logout.btn.subtle {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  grid-column: 1 / -1;
  justify-self: stretch;
  min-height: 34px;
  padding: 7px 10px;
}

.sidebar .sidebar-logout.btn.subtle:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.sidebar .sidebar-summary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.045));
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 14px;
}

.sidebar .sidebar-summary > .sidebar-kicker {
  margin-bottom: 10px;
}

.sidebar .sidebar-kicker {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  letter-spacing: 0;
  margin: 0;
}

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

.sidebar .sidebar-stat-row {
  align-content: center;
  align-items: start;
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  display: grid;
  gap: 4px;
  justify-content: stretch;
  min-height: 56px;
  padding: 9px;
}

.sidebar .sidebar-stat-row:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sidebar .sidebar-stats span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  line-height: 1.15;
}

.sidebar .sidebar-stats strong {
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.sidebar .sidebar-filter-group {
  gap: 8px;
  margin-top: 17px;
}

.sidebar .sidebar-section-head {
  min-height: 32px;
}

.sidebar .sidebar-filter-list {
  gap: 7px;
  max-height: 230px;
}

.sidebar button.sidebar-filter-button {
  appearance: none;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: none;
  color: rgba(255, 255, 255, 0.86);
  min-height: 40px;
  padding: 9px 10px;
}

.sidebar button.sidebar-filter-button:hover,
.sidebar button.sidebar-filter-button.selected {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.sidebar button.sidebar-filter-button.selected {
  box-shadow: inset 3px 0 0 var(--accent);
}

.sidebar button.sidebar-filter-button strong {
  background: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.78);
}

.sidebar .dot {
  flex: 0 0 auto;
  height: 10px;
  margin-top: 0;
  width: 10px;
}

.sidebar button.sidebar-action-button,
.sidebar button.sidebar-delete-button {
  appearance: none;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: none;
  color: rgba(255, 255, 255, 0.86);
  height: 32px;
  min-height: 32px;
  width: 32px;
}

.sidebar button.sidebar-action-button:hover {
  background: rgba(47, 111, 115, 0.55);
  border-color: rgba(97, 166, 170, 0.55);
  color: #fff;
}

.sidebar button.sidebar-delete-button {
  color: rgba(255, 255, 255, 0.62);
  height: 100%;
  min-height: 40px;
}

.sidebar button.sidebar-delete-button:hover {
  background: rgba(185, 74, 72, 0.24);
  border-color: rgba(185, 74, 72, 0.5);
  color: #fff;
}

.sidebar .sidebar-client-form {
  gap: 7px;
}

.sidebar .sidebar-client-form input {
  appearance: none;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: none;
  color: #fff;
  min-height: 34px;
}

.sidebar .sidebar-client-form input[type="color"] {
  height: 34px;
  padding: 4px;
}

.main {
  display: grid;
  gap: 24px;
  padding: 28px;
}

.topbar,
.section-head,
.board-column-head,
.day-head,
.task-card-top,
.task-footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.task-card-badges {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.topbar-actions,
.filters,
.toggle-row,
.dialog-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.top-icon-button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 42px;
}

.top-icon-button:hover {
  border-color: rgba(47, 111, 115, 0.45);
  box-shadow: 0 10px 24px rgba(36, 39, 45, 0.08);
}

.notification-toggle {
  color: var(--primary-dark);
}

.notification-toggle:hover {
  color: var(--primary);
}

.notification-icon {
  display: block;
  fill: none;
  height: 21px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  width: 21px;
}

.notification-badge {
  align-items: center;
  background: var(--danger);
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  height: 20px;
  justify-content: center;
  min-width: 20px;
  padding: 0 5px;
  position: absolute;
  right: -6px;
  top: -6px;
}

.eyebrow {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 6px;
  text-transform: uppercase;
}

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

.active-filter-bar {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: inline-flex;
  gap: 9px;
  justify-self: start;
  margin-top: 12px;
  padding: 8px 10px;
}

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

.active-filter-bar strong {
  font-size: 13px;
}

.active-filter-clear {
  align-items: center;
  background: rgba(185, 74, 72, 0.1);
  border: 0;
  border-radius: 50%;
  color: var(--danger);
  display: inline-flex;
  font-size: 17px;
  font-weight: 800;
  height: 24px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 24px;
}

.metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.metric span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
}

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

.workspace-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}

.workspace-main,
.board-section,
.google-panel,
.admin-panel {
  min-width: 0;
}

.week-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.day-column,
.board-column,
.notification,
.google-connected {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.day-column {
  background: linear-gradient(180deg, #fff8f1 0%, #fffaf5 100%);
  border-color: #ead7c4;
  box-shadow: 0 8px 22px rgba(98, 66, 42, 0.06);
  min-height: 260px;
  padding: 14px;
}

.day-column.over {
  border-color: rgba(185, 74, 72, 0.55);
}

.day-column.backlog {
  background: linear-gradient(180deg, #fffaf5 0%, #fffdf9 100%);
  border-style: dashed;
}

.day-head span,
.board-column-head span,
.task-meta,
.task-footer,
.notification small,
.google-connected small,
.google-connected span {
  color: var(--muted);
  font-size: 12px;
}

.capacity-bar {
  background: #eadfd4;
  border-radius: 999px;
  height: 7px;
  margin: 12px 0;
  overflow: hidden;
}

.capacity-bar span {
  background: var(--primary);
  display: block;
  height: 100%;
}

.day-tasks,
.task-list,
.notification-list,
.client-list {
  display: grid;
  gap: 10px;
}

.mini-task {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(217, 165, 120, 0.35);
  border-radius: var(--radius);
  color: var(--ink);
  display: grid;
  gap: 9px;
  grid-template-columns: auto 1fr;
  overflow: hidden;
  padding: 10px;
  position: relative;
  text-align: left;
  width: 100%;
}

.mini-task::before {
  background: var(--task-accent, #d9a578);
  content: "";
  inset: 0 auto 0 0;
  opacity: 0.68;
  position: absolute;
  width: 3px;
}

.mini-task strong {
  display: block;
  font-size: 13px;
}

.mini-task small {
  color: #725f51;
}

.dot {
  border-radius: 999px;
  display: inline-block;
  height: 10px;
  margin-top: 4px;
  width: 10px;
}

.board {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.board-column {
  min-height: 360px;
  padding: 12px;
}

.board-column-head {
  margin-bottom: 12px;
}

.task-card {
  background: linear-gradient(180deg, #fff8f1 0%, #fffaf5 100%);
  border: 1px solid #ead7c4;
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(98, 66, 42, 0.06);
  cursor: pointer;
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.task-card::before {
  background: var(--task-accent, #d9a578);
  content: "";
  inset: 0 auto 0 0;
  opacity: 0.72;
  position: absolute;
  width: 4px;
}

.task-delete-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.52);
  border: 0;
  border-radius: 50%;
  color: #7b6657;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 28px;
}

.task-delete-button:hover {
  background: rgba(185, 74, 72, 0.11);
  color: var(--danger);
}

.task-card:hover,
.mini-task:hover {
  border-color: #d9a578;
  box-shadow: 0 14px 32px rgba(98, 66, 42, 0.12);
}

.task-card p {
  color: #725f51;
  display: -webkit-box;
  font-size: 13px;
  margin-bottom: 12px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.client-pill,
.priority {
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 8px;
}

.client-pill {
  background: color-mix(in srgb, var(--client) 18%, #fff4e8);
  color: var(--ink);
}

.priority {
  background: #f0e5d8;
  color: #755c49;
}

.priority.high,
.priority.urgent {
  background: rgba(217, 137, 61, 0.16);
  color: #8a4b0a;
}

.priority.urgent {
  background: rgba(185, 74, 72, 0.14);
  color: var(--danger);
}

.task-meta,
.task-footer {
  color: #7b6657;
  margin-top: 10px;
}

.task-timer {
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(217, 165, 120, 0.35);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
}

.task-timer.running {
  background: rgba(47, 111, 115, 0.08);
  border-color: rgba(47, 111, 115, 0.22);
}

.task-timer > div:first-child {
  align-items: baseline;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.task-timer span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.task-timer strong {
  color: var(--ink);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.task-timer.running strong {
  color: var(--primary-dark);
}

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

.timer-button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: center;
  min-height: 34px;
  padding: 7px 9px;
  text-align: center;
}

.timer-button:only-child {
  grid-column: 1 / -1;
}

.timer-button.start {
  background: var(--primary);
  color: #fff;
}

.timer-button.start:hover {
  background: var(--primary-dark);
}

.timer-button.pause {
  background: #fff;
  border-color: rgba(47, 111, 115, 0.28);
  color: var(--primary-dark);
}

.timer-button.complete {
  background: rgba(185, 74, 72, 0.1);
  color: var(--danger);
}

.timer-button.complete:hover {
  background: rgba(185, 74, 72, 0.16);
}

.timer-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.task-footer select {
  min-height: 32px;
  padding: 5px 8px;
  width: auto;
}

.drawer-backdrop {
  background: rgba(36, 39, 45, 0.42);
  inset: 0;
  position: fixed;
  z-index: 80;
}

.notification-drawer {
  background: var(--panel);
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 70px rgba(36, 39, 45, 0.2);
  display: grid;
  gap: 16px;
  grid-template-rows: auto auto 1fr;
  height: 100dvh;
  max-width: min(390px, 100vw);
  overflow: hidden;
  padding: 24px;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(105%);
  transition: transform 180ms ease;
  width: 390px;
  z-index: 90;
}

.notification-drawer:not(.open) {
  pointer-events: none;
}

.notification-drawer.open {
  transform: translateX(0);
}

body.notifications-open {
  overflow: hidden;
}

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

.drawer-actions {
  display: flex;
  justify-content: flex-end;
}

.drawer-list {
  align-content: start;
  overflow: auto;
  padding-right: 4px;
}

.notification-group {
  display: grid;
  gap: 10px;
}

.notification-group + .notification-group {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 16px;
}

.notification-group-head {
  align-items: center;
  color: var(--primary);
  display: flex;
  font-size: 12px;
  font-weight: 900;
  justify-content: space-between;
  letter-spacing: 0;
  text-transform: uppercase;
}

.notification-group-head strong {
  background: rgba(47, 111, 115, 0.1);
  border-radius: 999px;
  color: var(--primary-dark);
  min-width: 24px;
  padding: 3px 8px;
  text-align: center;
}

.notification {
  align-items: flex-start;
  box-shadow: none;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px;
}

.notification.unread {
  border-color: rgba(217, 137, 61, 0.55);
  box-shadow: inset 4px 0 0 var(--accent);
}

.notification.read {
  background: rgba(255, 255, 255, 0.62);
  opacity: 0.74;
}

.notification-title-line {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.notification-title-line span {
  background: rgba(47, 111, 115, 0.1);
  border-radius: 999px;
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 7px;
}

.notification.read .notification-title-line span {
  background: rgba(110, 116, 128, 0.12);
  color: var(--muted);
}

.notification p {
  font-size: 13px;
  margin: 6px 0;
}

.notification-check {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--primary);
  display: inline-flex;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  line-height: 1;
  min-width: 30px;
  padding: 0;
}

.notification-check:not(:disabled):hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 111, 115, 0.12);
}

.notification-check:disabled {
  background: rgba(47, 111, 115, 0.1);
  border-color: rgba(47, 111, 115, 0.18);
  cursor: default;
}

.lower-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}

.admin-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.admin-access-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.admin-access-block {
  background: #fffdf9;
  border: 1px solid #eadfd3;
  border-radius: var(--radius);
  padding: 14px;
}

.admin-subhead {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.admin-subhead h3 {
  color: var(--ink);
  font-size: 15px;
  margin: 0;
}

.admin-subhead span {
  align-items: center;
  background: #f1e9df;
  border-radius: 999px;
  color: var(--primary);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 26px;
  justify-content: center;
  min-width: 26px;
  padding: 0 8px;
}

.access-request-list,
.approved-user-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.access-request-card,
.approved-user-card {
  align-items: center;
  background: linear-gradient(180deg, #fff8f1 0%, #fffaf5 100%);
  border: 1px solid #ead7c4;
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 12px;
}

.access-request-avatar,
.approved-user-avatar {
  align-items: center;
  background: var(--primary);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-weight: 900;
  height: 44px;
  justify-content: center;
  overflow: hidden;
  width: 44px;
}

.access-request-avatar img,
.approved-user-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.access-request-info,
.approved-user-info {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.access-request-info strong,
.access-request-info span,
.access-request-info small,
.approved-user-info strong,
.approved-user-info span,
.approved-user-info small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-request-info span,
.access-request-info small,
.approved-user-info span,
.approved-user-info small {
  color: var(--muted);
  font-size: 12px;
}

.access-request-actions {
  display: flex;
  gap: 8px;
}

.access-request-actions .btn {
  min-height: 36px;
  padding: 8px 12px;
}

.approved-user-remove {
  align-items: center;
  background: #fff;
  border: 1px solid #ead7c4;
  border-radius: 10px;
  color: #b04b4b;
  cursor: pointer;
  display: inline-flex;
  font-size: 20px;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  width: 38px;
}

.approved-user-remove:hover {
  background: #fff1f1;
  border-color: #e4b5b5;
  color: #8d2525;
  transform: translateY(-1px);
}

.approved-user-remove:disabled {
  cursor: wait;
  opacity: 0.6;
  transform: none;
}

.admin-empty {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.admin-empty p {
  font-size: 13px;
  margin: 6px 0 0;
}

.google-status {
  margin: 14px 0;
}

.google-connected {
  display: grid;
  gap: 4px;
  padding: 14px;
}

.task-dialog {
  border: 0;
  border-radius: var(--radius);
  max-width: min(720px, calc(100vw - 28px));
  padding: 0;
  width: 720px;
}

.task-dialog::backdrop {
  background: rgba(36, 39, 45, 0.48);
}

.workday-dialog {
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(36, 39, 45, 0.24);
  max-width: min(430px, calc(100vw - 28px));
  padding: 0;
  width: 430px;
}

.workday-dialog::backdrop {
  background: rgba(36, 39, 45, 0.52);
}

.workday-modal {
  background: linear-gradient(180deg, #fff8f1 0%, #fffaf5 100%);
  border: 1px solid #ead7c4;
  display: grid;
  gap: 12px;
  padding: 24px;
  text-align: left;
}

.workday-icon {
  align-items: center;
  background: var(--primary);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 15px;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.break-modal {
  background: linear-gradient(180deg, #fff8f1 0%, #fffdf8 100%);
}

.break-icon {
  background: var(--accent);
}

.workday-modal h2 {
  font-size: 24px;
}

.workday-modal p {
  margin-bottom: 0;
}

.dialog-actions.compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 8px;
}

.dialog-actions.compact.single {
  grid-template-columns: 1fr;
}

.preference-dialog {
  max-width: min(460px, calc(100vw - 28px));
  width: 460px;
}

.preference-modal {
  gap: 14px;
}

.preference-icon {
  background: var(--primary-dark);
}

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

.preference-presets button {
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(217, 165, 120, 0.42);
  border-radius: var(--radius);
  color: #725f51;
  font-weight: 900;
  min-height: 42px;
}

.preference-presets button:hover,
.preference-presets button.selected {
  background: rgba(47, 111, 115, 0.1);
  border-color: rgba(47, 111, 115, 0.35);
  color: var(--primary-dark);
}

.preference-input {
  color: #725f51;
}

.task-form {
  background: var(--panel);
  display: grid;
  gap: 16px;
  padding: 22px;
}

.dialog-head {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
}

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

fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0;
  padding: 12px;
}

legend {
  color: var(--muted);
  font-size: 13px;
  padding: 0 6px;
}

.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.check-row label,
.toggle-row label {
  align-items: center;
  display: flex;
  gap: 7px;
}

.check-row input,
.toggle-row input {
  min-height: auto;
  width: auto;
}

.dialog-actions {
  grid-template-columns: auto 1fr auto auto;
  justify-content: initial;
}

.dialog-actions span {
  flex: 1;
}

.toast {
  background: var(--ink);
  border-radius: var(--radius);
  bottom: 22px;
  box-shadow: var(--shadow);
  color: #fff;
  left: 50%;
  max-width: min(520px, calc(100vw - 24px));
  padding: 13px 16px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 20;
}

.toast[data-tone="success"] {
  background: var(--primary-dark);
}

.toast[data-tone="error"] {
  background: var(--danger);
}

.toast[data-tone="warning"] {
  background: #8a4b0a;
}

.empty {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

@media (max-width: 1100px) {
  .public-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .public-preview {
    max-width: 620px;
  }

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

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    align-items: start;
    grid-template-columns: minmax(220px, auto) minmax(0, 1fr);
    grid-template-rows: auto;
    min-height: auto;
    position: static;
  }

  .sidebar-top {
    gap: 14px;
  }

  .sidebar-summary {
    margin-top: 0;
    min-width: 220px;
  }

  .workspace-grid,
  .lower-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .public-onboarding {
    padding: 20px 14px 28px;
  }

  .public-hero h1 {
    font-size: 36px;
  }

  .public-actions,
  .public-actions .btn {
    align-items: stretch;
    width: 100%;
  }

  .public-actions {
    flex-direction: column;
  }

  .preview-metric-row,
  .onboarding-steps,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .main {
    padding: 18px;
  }

  .topbar,
  .section-head,
  .topbar-actions,
  .filters {
    align-items: stretch;
    flex-direction: column;
  }

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

  .sidebar {
    gap: 14px;
    grid-template-columns: 1fr;
  }

  .sidebar-summary {
    width: 100%;
  }

  .notification-drawer {
    max-width: calc(100vw - 18px);
    padding: 20px;
    width: calc(100vw - 18px);
  }

  .access-request-card,
  .approved-user-card {
    align-items: stretch;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .access-request-actions {
    grid-column: 1 / -1;
  }

  .access-request-actions .btn {
    flex: 1;
  }

  .approved-user-remove {
    grid-column: 1 / -1;
    justify-self: end;
  }

  .dialog-actions.compact {
    grid-template-columns: 1fr;
  }

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

}
