/* CompactGreens dashboard - clean eco-tech design system */

:root {
  color-scheme: light;
  --forest-950: #071f13;
  --forest-900: #0b2b1b;
  --forest-800: #123d27;
  --forest-700: #1b5134;
  --forest-600: #2b6746;
  --offwhite: #f4f6f2;
  --surface: #fbfcfa;
  --surface-strong: #ffffff;
  --mint-100: #e7f3e9;
  --mint-200: #d7eadc;
  --mint-300: #c5dfcc;
  --lime-300: #c8eb87;
  --lime-400: #b6df69;
  --lime-500: #93c94b;
  --coral-100: #ffe5df;
  --coral-400: #ee826c;
  --coral-500: #dc674f;
  --amber-100: #fff1d4;
  --amber-500: #c9821c;
  --ink: #10251a;
  --ink-soft: #53645a;
  --ink-faint: #78877d;
  --line: rgba(11, 43, 27, 0.11);
  --line-strong: rgba(11, 43, 27, 0.18);
  --white-line: rgba(255, 255, 255, 0.15);
  --shadow-sm: 0 1px 2px rgba(7, 31, 19, 0.04), 0 6px 18px rgba(7, 31, 19, 0.045);
  --shadow-md: 0 2px 4px rgba(7, 31, 19, 0.045), 0 16px 38px rgba(7, 31, 19, 0.075);
  --shadow-lg: 0 24px 70px rgba(7, 31, 19, 0.16);
  --radius-sm: 10px;
  --radius-md: 15px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --page-pad: clamp(10px, 1.4vw, 24px);
  --grid-gap: clamp(12px, 1.2vw, 18px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--offwhite);
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background-color: var(--offwhite);
  background-image:
    radial-gradient(circle at 8% -8%, rgba(182, 223, 105, 0.13), transparent 27rem),
    radial-gradient(circle at 96% 12%, rgba(197, 223, 204, 0.22), transparent 31rem);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.edit-mode {
  background-image:
    linear-gradient(rgba(11, 43, 27, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 43, 27, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 8% -8%, rgba(182, 223, 105, 0.14), transparent 27rem),
    radial-gradient(circle at 96% 12%, rgba(197, 223, 204, 0.24), transparent 31rem);
  background-size: 28px 28px, 28px 28px, auto, auto;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--lime-500);
  outline-offset: 3px;
}

::selection {
  color: #fff;
  background: var(--forest-700);
}

.app-shell {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
}

.access-gate {
  position: relative;
  z-index: 110;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: clamp(20px, 5vw, 64px);
  background:
    radial-gradient(circle at 12% 4%, rgba(182, 223, 105, 0.2), transparent 30rem),
    radial-gradient(circle at 100% 95%, rgba(197, 223, 204, 0.4), transparent 34rem),
    var(--offwhite);
}

.access-card {
  width: min(100%, 460px);
  padding: clamp(30px, 5vw, 48px);
  border: 1px solid rgba(11, 43, 27, 0.09);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 28px 80px rgba(7, 31, 19, 0.12);
  backdrop-filter: blur(18px) saturate(115%);
}

.access-brand {
  display: flex;
  margin-bottom: 34px;
}

.access-brand .brand-mark {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
  border-radius: 17px;
  box-shadow: 0 14px 30px rgba(11, 43, 27, 0.18);
}

.access-eyebrow {
  margin: 0 0 10px;
  color: var(--forest-600);
  font-size: 0.69rem;
  font-weight: 760;
  letter-spacing: 0.16em;
}

.access-card h1 {
  margin: 0;
  color: var(--forest-950);
  font-size: clamp(2.15rem, 8vw, 3.1rem);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.access-intro {
  max-width: 34ch;
  margin: 20px 0 28px;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.access-form {
  display: grid;
  gap: 12px;
}

.access-field {
  display: grid;
  gap: 7px;
}

.access-field > span {
  color: var(--forest-800);
  font-size: 0.74rem;
  font-weight: 680;
}

.access-field input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  outline: 0;
  color: var(--forest-950);
  background: rgba(255, 255, 255, 0.9);
  transition: border-color 150ms var(--ease-standard), box-shadow 150ms var(--ease-standard);
}

.access-field input:focus {
  border-color: var(--forest-600);
  box-shadow: 0 0 0 4px rgba(147, 201, 75, 0.2);
}

.access-submit {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 17px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: var(--forest-900);
  box-shadow: 0 12px 24px rgba(11, 43, 27, 0.16);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 690;
  transition: background 150ms var(--ease-standard), transform 150ms var(--ease-out), opacity 150ms var(--ease-standard);
}

.access-submit:hover {
  background: var(--forest-800);
  transform: translateY(-1px);
}

.access-submit:disabled {
  opacity: 0.68;
  cursor: wait;
  transform: none;
}

.access-submit .icon {
  width: 18px;
  height: 18px;
}

.access-error {
  margin: -1px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  color: #8d3526;
  background: var(--coral-100);
  font-size: 0.78rem;
  font-weight: 580;
}

.access-network {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 22px 0 0;
  color: var(--ink-faint);
  font-size: 0.71rem;
  line-height: 1.45;
}

.access-network i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin-top: 0.28rem;
  border-radius: 50%;
  background: var(--lime-500);
  box-shadow: 0 0 0 4px rgba(147, 201, 75, 0.13);
}

.ambient {
  position: fixed;
  z-index: -1;
  width: min(38vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(18px);
  opacity: 0.4;
}

.ambient--one {
  inset: -17vw auto auto -14vw;
  background: radial-gradient(circle, rgba(182, 223, 105, 0.32), transparent 67%);
}

.ambient--two {
  inset: 31vh -20vw auto auto;
  background: radial-gradient(circle, rgba(197, 223, 204, 0.42), transparent 68%);
}

.topbar {
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px var(--page-pad);
  border-bottom: 1px solid rgba(11, 43, 27, 0.075);
  background: rgba(244, 246, 242, 0.92);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  backdrop-filter: blur(14px) saturate(115%);
}

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

.brand-mark {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  color: var(--lime-300);
  background: var(--forest-900);
  box-shadow: 0 8px 20px rgba(11, 43, 27, 0.16);
}

.brand-mark::before {
  width: 13px;
  height: 21px;
  border-radius: 100% 0 100% 100%;
  background: currentColor;
  content: "";
  transform: translate(2px, -1px) rotate(39deg);
}

.brand-mark::after {
  position: absolute;
  width: 1.5px;
  height: 18px;
  border-radius: 2px;
  background: var(--forest-900);
  content: "";
  transform: translate(2px, 1px) rotate(39deg);
  transform-origin: center;
}

.brand-mark > img,
.brand-mark > svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-mark:has(> img)::before,
.brand-mark:has(> img)::after,
.brand-mark:has(> svg)::before,
.brand-mark:has(> svg)::after {
  display: none;
}

.brand-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
  color: var(--forest-900);
  font-size: 1.04rem;
  font-weight: 720;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.eyebrow {
  color: var(--ink-faint);
  font-size: 0.68rem;
  font-weight: 730;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.brand-copy .eyebrow {
  color: var(--forest-600);
  font-size: 0.61rem;
}

.brand-copy > strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy > span:not(.eyebrow) {
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.sync-pill {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--forest-700);
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 680;
  white-space: nowrap;
}

.sync-pill::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime-500);
  box-shadow: 0 0 0 4px rgba(147, 201, 75, 0.16);
  content: "";
}

.sync-pill:has(.sync-dot)::before {
  display: none;
}

.sync-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--lime-500);
  box-shadow: 0 0 0 4px rgba(147, 201, 75, 0.16);
}

.sync-pill[data-state="loading"] .sync-dot {
  animation: sync-pulse 1.3s ease-in-out infinite;
}

.sync-pill[data-state="stale"] .sync-dot,
.sync-pill[data-state="error"] .sync-dot {
  background: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(201, 130, 28, 0.14);
}

@keyframes sync-pulse {
  50% {
    opacity: 0.52;
    transform: scale(0.8);
  }
}

.sync-pill.is-stale::before,
.is-stale .sync-pill::before {
  background: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(201, 130, 28, 0.14);
}

.icon-button,
.tile-edit,
.tile-drag,
.tile-resize {
  display: inline-grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--forest-700);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: border-color 160ms var(--ease-standard), background 160ms var(--ease-standard), color 160ms var(--ease-standard), transform 160ms var(--ease-out), box-shadow 160ms var(--ease-standard);
}

.icon-button:hover,
.tile-edit:hover {
  border-color: rgba(11, 43, 27, 0.22);
  color: var(--forest-900);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.icon-button:active,
.tile-edit:active {
  transform: translateY(0) scale(0.97);
}

.icon-button svg,
.tile-edit svg,
.tile-drag svg,
.tile-resize svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.8;
}

.page {
  width: min(100%, 1920px);
  margin-inline: auto;
  padding: clamp(10px, 1.4vw, 22px) var(--page-pad) clamp(92px, 7vw, 112px);
}

.welcome-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-block-end: clamp(24px, 3vw, 38px);
}

.welcome-copy {
  display: grid;
  max-width: 760px;
  gap: 8px;
}

.welcome-title {
  margin: 0;
  color: var(--forest-900);
  font-size: clamp(2rem, 4vw, 4.2rem);
  font-weight: 710;
  letter-spacing: -0.058em;
  line-height: 0.98;
  text-wrap: balance;
}

.welcome-meta {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(0.9rem, 1vw, 1rem);
  line-height: 1.6;
}

.welcome-status {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink-faint);
  background: rgba(255, 255, 255, 0.54);
  font-size: 0.71rem;
  font-variant-numeric: tabular-nums;
  font-weight: 630;
  white-space: nowrap;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: row dense;
  grid-auto-rows: clamp(76px, 6.6vw, 106px);
  gap: var(--grid-gap);
  align-items: stretch;
}

.tile {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  grid-column: span min(var(--w, 3), 12);
  grid-row: span var(--h, 2);
  order: var(--order, 0);
  flex-direction: column;
  overflow: hidden;
  padding: clamp(17px, 1.65vw, 25px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  color: var(--ink);
  background: rgba(251, 252, 250, 0.96);
  box-shadow: var(--shadow-sm);
  container-type: inline-size;
  isolation: isolate;
  transition: border-color 180ms var(--ease-standard), box-shadow 180ms var(--ease-standard), transform 180ms var(--ease-out), opacity 180ms var(--ease-standard);
}

.tile::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  content: "";
}

.tile:hover {
  border-color: rgba(11, 43, 27, 0.16);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.tile--hero {
  border-color: transparent;
  color: #fff;
  background:
    radial-gradient(circle at 91% 2%, rgba(200, 235, 135, 0.26), transparent 38%),
    linear-gradient(145deg, var(--forest-800), var(--forest-950));
  box-shadow: 0 18px 42px rgba(7, 31, 19, 0.17);
}

.tile--hero::after {
  position: absolute;
  z-index: -1;
  right: -6%;
  bottom: -45%;
  width: 42%;
  aspect-ratio: 1;
  border: 1px solid rgba(200, 235, 135, 0.17);
  border-radius: 50%;
  content: "";
}

.tile--dark {
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  background: linear-gradient(150deg, #123d27, #092719 72%);
  box-shadow: 0 15px 35px rgba(7, 31, 19, 0.15);
}

.tile--mint {
  border-color: rgba(18, 61, 39, 0.09);
  background: linear-gradient(150deg, var(--mint-100), var(--mint-200));
}

.tile--lime {
  border-color: rgba(82, 123, 32, 0.13);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.46), transparent 39%),
    linear-gradient(145deg, #d8f2a3, var(--lime-300));
}

.tile--lime .tile-icon {
  border-color: rgba(11, 43, 27, 0.1);
  color: var(--forest-800);
  background: rgba(255, 255, 255, 0.44);
}

.tile--light {
  background: rgba(255, 255, 255, 0.92);
}

.tile--coral {
  border-color: rgba(220, 103, 79, 0.15);
  background: linear-gradient(150deg, #fff8f5, var(--coral-100));
}

.tile--tool {
  justify-content: space-between;
  padding: clamp(14px, 1.4vw, 20px);
  cursor: pointer;
}

.tile--tool:hover {
  border-color: rgba(11, 43, 27, 0.2);
}

.tile--hero .eyebrow,
.tile--dark .eyebrow,
.tile--hero .tile-kicker,
.tile--dark .tile-kicker,
.tile--hero .tile-footer,
.tile--dark .tile-footer,
.tile--hero .agenda-meta,
.tile--dark .agenda-meta,
.tile--hero .task-meta,
.tile--dark .task-meta {
  color: rgba(255, 255, 255, 0.62);
}

.tile.is-stale {
  border-color: rgba(201, 130, 28, 0.27);
}

.tile.is-stale::before {
  box-shadow: inset 0 3px 0 rgba(201, 130, 28, 0.62);
}

.tile.is-editing {
  border-color: rgba(147, 201, 75, 0.72);
  box-shadow: 0 0 0 3px rgba(147, 201, 75, 0.14), var(--shadow-md);
  cursor: grab;
  user-select: none;
}

.tile.is-editing:hover {
  transform: translateY(-1px);
}

.edit-mode [data-drag-surface],
.edit-mode .tile-drag,
.edit-mode .tile-resize {
  touch-action: none;
}

.edit-mode [data-drag-surface] {
  cursor: grab;
}

body.is-sorting {
  cursor: grabbing;
  user-select: none;
}

.tile.is-dragging {
  z-index: 25;
  border-color: var(--lime-500);
  box-shadow: 0 24px 58px rgba(7, 31, 19, 0.2);
  cursor: grabbing;
  opacity: 0.92;
  transform: scale(1.018) rotate(0.2deg);
}

.edit-mode .tile .tool-link,
.edit-mode .tile > a {
  pointer-events: none;
}

.tile-head {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-block-end: clamp(13px, 1.4vw, 20px);
}

.tile-kicker {
  margin: 0 0 3px;
  color: var(--ink-faint);
  font-size: 0.66rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.tile-title {
  margin: 0;
  color: inherit;
  font-size: clamp(1rem, 1.45cqi, 1.26rem);
  font-weight: 690;
  letter-spacing: -0.026em;
  line-height: 1.2;
}

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

.tile-heading > div {
  min-width: 0;
}

.tile-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--forest-700);
  background: rgba(255, 255, 255, 0.62);
}

.tile-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}

.tile--hero .tile-icon,
.tile--dark .tile-icon {
  border-color: var(--white-line);
  color: var(--lime-300);
  background: rgba(255, 255, 255, 0.08);
}

.tile-body {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.tile-footer {
  display: flex;
  min-height: 24px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-block-start: auto;
  padding-block-start: 13px;
  color: var(--ink-faint);
  font-size: 0.72rem;
  line-height: 1.4;
}

.tile-badge,
.task-badge {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 3px 9px;
  border: 1px solid rgba(18, 61, 39, 0.09);
  border-radius: var(--radius-pill);
  color: var(--forest-700);
  background: rgba(215, 234, 220, 0.72);
  font-size: 0.68rem;
  font-weight: 720;
  letter-spacing: 0.015em;
  line-height: 1;
  white-space: nowrap;
}

.tile--hero .tile-badge,
.tile--dark .tile-badge {
  border-color: var(--white-line);
  color: var(--lime-300);
  background: rgba(255, 255, 255, 0.08);
}

.tile-badge > span {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.72;
}

.tile-badge--live {
  color: var(--forest-700);
  background: rgba(200, 235, 135, 0.55);
}

.tile-badge--demo {
  color: #7c5a1d;
  background: var(--amber-100);
}

.tile-badge--error {
  color: #9f3e2c;
  background: var(--coral-100);
}

.tile-drag,
.tile-resize,
.tile-edit {
  position: absolute;
  z-index: 8;
  visibility: hidden;
  border-color: rgba(11, 43, 27, 0.13);
  color: var(--forest-700);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 7px 18px rgba(7, 31, 19, 0.12);
  opacity: 0;
  pointer-events: none;
}

.tile-drag {
  top: 8px;
  left: 50%;
  cursor: grab;
  transform: translateX(-50%);
}

.tile-edit {
  top: 8px;
  right: 8px;
}

.tile-resize {
  right: 5px;
  bottom: 5px;
  cursor: nwse-resize;
}

.tile.is-editing .tile-drag,
.tile.is-editing .tile-resize,
.tile.is-editing .tile-edit,
.edit-mode .tile .tile-drag,
.edit-mode .tile .tile-resize,
.edit-mode .tile .tile-edit {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.tile.is-editing .tile-drag,
.edit-mode .tile .tile-drag {
  transform: translateX(-50%);
}

.hero-layout {
  display: grid;
  min-width: 0;
  min-height: 100%;
  grid-template-columns: minmax(0, 1.35fr) minmax(170px, 0.65fr);
  align-items: end;
  gap: clamp(20px, 3cqi, 44px);
}

.hero-copy {
  display: grid;
  align-content: end;
  gap: 11px;
}

.hero-title {
  max-width: 15ch;
  margin: 0;
  color: inherit;
  font-size: clamp(2.2rem, 6.5cqi, 5.6rem);
  font-weight: 680;
  letter-spacing: -0.066em;
  line-height: 0.93;
  text-wrap: balance;
}

.hero-summary {
  max-width: 52ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(0.84rem, 1.4cqi, 1rem);
  line-height: 1.55;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
}

.metric {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.5);
}

.tile--hero .metric,
.tile--dark .metric {
  border-color: var(--white-line);
  background: rgba(255, 255, 255, 0.075);
}

.metric > strong,
.metric > output {
  overflow: hidden;
  font-size: clamp(1rem, 2cqi, 1.35rem);
  font-weight: 710;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric > span,
.metric > small {
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 0.66rem;
  font-weight: 640;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tile--hero .metric > span,
.tile--hero .metric > small,
.tile--dark .metric > span,
.tile--dark .metric > small {
  color: rgba(255, 255, 255, 0.58);
}

.clock-time {
  margin: auto 0 0;
  font-size: clamp(3rem, 10cqi, 6.9rem);
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  letter-spacing: -0.075em;
  line-height: 0.88;
  white-space: nowrap;
}

.clock-wrap {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.clock-date {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: clamp(0.84rem, 2.3cqi, 1.08rem);
  font-weight: 620;
  line-height: 1.35;
}

.tile--hero .clock-date,
.tile--dark .clock-date {
  color: rgba(255, 255, 255, 0.68);
}

.clock-week {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  align-self: flex-start;
  margin-block-start: 12px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  color: var(--forest-800);
  background: var(--lime-300);
  font-size: 0.7rem;
  font-weight: 780;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.clock-week {
  gap: 7px;
}

.clock-week > span {
  padding-inline-end: 7px;
  border-inline-end: 1px solid rgba(11, 43, 27, 0.18);
  font-size: 0.58rem;
  letter-spacing: 0.09em;
}

.clock-week > strong {
  font-size: inherit;
  letter-spacing: inherit;
}

.task-badge.is-overdue {
  border-color: rgba(220, 103, 79, 0.18);
  color: #9f3e2c;
  background: var(--coral-100);
}

.next-events {
  display: grid;
  min-width: 0;
  min-height: 100%;
  flex: 1;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 10px;
}

.next-event-card {
  display: grid;
  min-width: 0;
  min-height: 78px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 2.2cqi, 20px);
  padding: 9px;
  border: 1px solid rgba(11, 43, 27, 0.08);
  border-radius: 17px;
  color: inherit;
  background: rgba(255, 255, 255, 0.22);
  transition: border-color 160ms var(--ease-standard), background 160ms var(--ease-standard), transform 160ms var(--ease-out);
}

a.next-event-card:hover {
  border-color: rgba(11, 43, 27, 0.18);
  background: rgba(255, 255, 255, 0.46);
  transform: translateY(-1px);
}

.next-event-time {
  display: grid;
  min-width: 78px;
  align-content: center;
  justify-items: center;
  gap: 1px;
  padding: 11px 10px;
  border: 1px solid rgba(11, 43, 27, 0.1);
  border-radius: 16px;
  color: var(--forest-900);
  background: rgba(255, 255, 255, 0.48);
}

.next-event-time strong {
  font-size: clamp(1.3rem, 3.5cqi, 2rem);
  font-variant-numeric: tabular-nums;
  font-weight: 710;
  letter-spacing: -0.045em;
  line-height: 1;
}

.next-event-time span {
  color: var(--forest-600);
  font-size: 0.65rem;
  font-weight: 690;
  text-transform: uppercase;
}

.next-event-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.next-event-countdown {
  margin: 0 0 2px;
  color: var(--forest-700);
  font-size: 0.65rem;
  font-weight: 760;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.next-event-title {
  overflow: hidden;
  color: var(--forest-900);
  font-size: clamp(0.98rem, 2.3cqi, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.038em;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-event-meta {
  overflow: hidden;
  color: var(--forest-600);
  font-size: 0.73rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.button--ink {
  flex: 0 0 auto;
  color: #fff;
  background: var(--forest-900);
}

.button--ink:hover:not(:disabled) {
  background: var(--forest-700);
}

.agenda-list,
.task-list {
  display: grid;
  min-height: 0;
  flex: 1 1 0;
  align-content: start;
  gap: 6px;
  margin: 0;
  padding: 0 3px 0 0;
  overflow: auto;
  list-style: none;
  scrollbar-color: rgba(11, 43, 27, 0.2) transparent;
  scrollbar-width: thin;
}

.agenda-list::-webkit-scrollbar,
.task-list::-webkit-scrollbar,
.drawer-body::-webkit-scrollbar {
  width: 7px;
}

.agenda-list::-webkit-scrollbar-thumb,
.task-list::-webkit-scrollbar-thumb,
.drawer-body::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  background: rgba(11, 43, 27, 0.18);
  background-clip: padding-box;
}

.agenda-item {
  display: grid;
  min-width: 0;
  grid-template-columns: 62px 7px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  border-radius: 11px;
  transition: background 150ms var(--ease-standard);
}

.agenda-marker {
  width: 5px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: var(--lime-500);
}

.agenda-item:last-child {
  border-bottom-color: transparent;
}

.agenda-item:hover {
  background: rgba(255, 255, 255, 0.48);
}

.agenda-time {
  display: grid;
  min-height: 42px;
  place-items: center;
  padding: 5px 7px;
  border-radius: 11px;
  color: var(--forest-700);
  background: var(--mint-100);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  font-weight: 760;
  text-align: center;
}

.tile--dark .agenda-time,
.tile--hero .agenda-time {
  color: var(--lime-300);
  background: rgba(255, 255, 255, 0.09);
}

.agenda-copy,
.task-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.agenda-title,
.task-title {
  margin: 0;
  overflow: hidden;
  color: inherit;
  font-size: 0.84rem;
  font-weight: 670;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agenda-meta,
.task-meta {
  margin: 0;
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 0.7rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-tabs {
  display: flex;
  min-height: 46px;
  flex: 0 0 auto;
  gap: 5px;
  margin-block-end: 10px;
  padding: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(231, 243, 233, 0.52);
  scrollbar-width: none;
}

.tile--tasks .tile-footer {
  flex: 0 0 auto;
}

.task-tabs::-webkit-scrollbar {
  display: none;
}

.task-tabs > button,
.task-tabs > [role="tab"] {
  display: inline-flex;
  min-width: max-content;
  min-height: 36px;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 0;
  border-radius: 9px;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 680;
  transition: color 150ms var(--ease-standard), background 150ms var(--ease-standard), box-shadow 150ms var(--ease-standard);
}

.task-tabs > button:hover,
.task-tabs > [role="tab"]:hover {
  color: var(--forest-900);
}

.task-tabs > button.is-active,
.task-tabs > button[aria-selected="true"],
.task-tabs > [role="tab"][aria-selected="true"] {
  color: var(--forest-900);
  background: #fff;
  box-shadow: 0 3px 10px rgba(7, 31, 19, 0.07);
}

.task-item {
  display: grid;
  min-width: 0;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  border-radius: 11px;
  transition: background 150ms var(--ease-standard);
}

.task-item:last-child {
  border-bottom-color: transparent;
}

.task-item:hover {
  background: rgba(231, 243, 233, 0.5);
}

.task-check {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1.5px solid rgba(11, 43, 27, 0.24);
  border-radius: 8px;
  color: transparent;
  background: rgba(255, 255, 255, 0.6);
}

.task-check.is-overdue {
  border-color: rgba(220, 103, 79, 0.42);
  color: #a23f2d;
  background: var(--coral-100);
  font-size: 0.7rem;
  font-weight: 800;
}

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

.task-item.is-complete .task-check {
  border-color: var(--forest-700);
  color: #fff;
  background: var(--forest-700);
}

.task-item.is-complete .task-title {
  color: var(--ink-faint);
  text-decoration: line-through;
}

.task-badge {
  justify-self: end;
}

.task-meta {
  display: flex;
  align-items: center;
  gap: 7px;
}

.task-meta > span + span::before {
  margin-inline-end: 7px;
  content: "·";
}

.pulse-layout {
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
}

.pulse-score {
  display: grid;
  min-width: 0;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
}

.pulse-score > span {
  position: relative;
  display: grid;
  width: 82px;
  aspect-ratio: 1;
  place-content: center;
  border-radius: 50%;
  background: conic-gradient(var(--lime-500) calc(var(--pulse-score, 0) * 1%), rgba(11, 43, 27, 0.1) 0);
  text-align: center;
}

.pulse-score > span::before {
  position: absolute;
  inset: 7px;
  border-radius: inherit;
  background: rgba(251, 252, 250, 0.96);
  content: "";
}

.tile--mint .pulse-score > span::before,
.tile--lime .pulse-score > span::before,
.tile--coral .pulse-score > span::before {
  background: rgba(255, 255, 255, 0.73);
}

.tile--dark .pulse-score > span,
.tile--hero .pulse-score > span {
  background: conic-gradient(var(--lime-300) calc(var(--pulse-score, 0) * 1%), rgba(255, 255, 255, 0.12) 0);
}

.tile--dark .pulse-score > span::before,
.tile--hero .pulse-score > span::before {
  background: #103721;
}

.pulse-score strong,
.pulse-score small {
  position: relative;
  z-index: 1;
  display: block;
}

.pulse-score strong {
  font-size: 1.12rem;
  font-weight: 760;
  letter-spacing: -0.045em;
}

.pulse-score small {
  margin-block-start: 1px;
  color: var(--ink-faint);
  font-size: 0.55rem;
  font-weight: 690;
}

.tile--dark .pulse-score small,
.tile--hero .pulse-score small,
.tile--dark .pulse-score p,
.tile--hero .pulse-score p,
.tile--dark .pulse-metric span,
.tile--hero .pulse-metric span {
  color: rgba(255, 255, 255, 0.6);
}

.pulse-score p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: clamp(0.74rem, 2.4cqi, 0.9rem);
  font-weight: 620;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.pulse-metrics {
  display: grid;
  min-height: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.pulse-metric {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 1px;
  padding: 9px 10px;
  border: 1px solid rgba(11, 43, 27, 0.08);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.5);
}

.tile--dark .pulse-metric,
.tile--hero .pulse-metric {
  border-color: var(--white-line);
  background: rgba(255, 255, 255, 0.07);
}

.pulse-metric strong {
  font-size: clamp(1rem, 4.4cqi, 1.35rem);
  font-variant-numeric: tabular-nums;
  font-weight: 740;
  letter-spacing: -0.04em;
}

.pulse-metric span {
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 0.61rem;
  font-weight: 640;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deadline-list,
.area-list {
  display: grid;
  min-height: 0;
  flex: 1 1 auto;
  align-content: start;
  gap: 6px;
  padding-inline-end: 3px;
  overflow: auto;
  scrollbar-color: rgba(11, 43, 27, 0.2) transparent;
  scrollbar-width: thin;
}

.deadline-row {
  display: grid;
  min-width: 0;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: inherit;
  transition: border-color 150ms var(--ease-standard), background 150ms var(--ease-standard);
}

.deadline-row:hover {
  border-color: rgba(11, 43, 27, 0.08);
  background: rgba(255, 255, 255, 0.5);
}

.deadline-date {
  display: grid;
  min-height: 43px;
  place-content: center;
  gap: 1px;
  padding: 5px 7px;
  border-radius: 11px;
  color: var(--forest-700);
  background: var(--mint-100);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.deadline-date strong {
  font-size: 0.68rem;
  font-weight: 760;
}

.deadline-date small {
  color: var(--ink-faint);
  font-size: 0.56rem;
}

.deadline-date.is-overdue,
.deadline-state.is-overdue {
  color: #9f3e2c;
  background: rgba(255, 230, 223, 0.88);
}

.deadline-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.deadline-copy strong,
.deadline-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deadline-copy strong {
  font-size: 0.78rem;
  font-weight: 680;
}

.deadline-copy small {
  color: var(--ink-faint);
  font-size: 0.63rem;
}

.deadline-state {
  padding: 5px 7px;
  border-radius: var(--radius-pill);
  color: var(--forest-700);
  background: rgba(215, 234, 220, 0.76);
  font-size: 0.58rem;
  font-weight: 720;
  white-space: nowrap;
}

.area-summary {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-block-end: 10px;
}

.area-summary strong {
  font-size: clamp(1.55rem, 6cqi, 2.25rem);
  font-variant-numeric: tabular-nums;
  font-weight: 740;
  letter-spacing: -0.055em;
}

.area-summary span {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 630;
}

.area-row {
  display: grid;
  gap: 7px;
  padding: 8px 3px;
}

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

.area-row-head strong {
  overflow: hidden;
  font-size: 0.73rem;
  font-weight: 690;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.area-row-head span {
  flex: 0 0 auto;
  color: var(--ink-faint);
  font-size: 0.61rem;
  font-variant-numeric: tabular-nums;
}

.area-row-head b {
  color: #9f3e2c;
  font-weight: 700;
}

.area-track {
  height: 7px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: rgba(11, 43, 27, 0.08);
}

.area-track i {
  display: block;
  width: var(--area-share, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--forest-700), var(--lime-500));
}

.tile--dark .deadline-row:hover,
.tile--hero .deadline-row:hover,
.tile--dark .week-day,
.tile--hero .week-day {
  border-color: var(--white-line);
  background: rgba(255, 255, 255, 0.07);
}

.tile--dark .deadline-date,
.tile--hero .deadline-date {
  color: var(--lime-300);
  background: rgba(255, 255, 255, 0.09);
}

.tile--dark .deadline-date small,
.tile--hero .deadline-date small,
.tile--dark .deadline-copy small,
.tile--hero .deadline-copy small,
.tile--dark .area-summary span,
.tile--hero .area-summary span,
.tile--dark .area-row-head span,
.tile--hero .area-row-head span {
  color: rgba(255, 255, 255, 0.58);
}

.tile--dark .area-track,
.tile--hero .area-track {
  background: rgba(255, 255, 255, 0.11);
}

.tile--dark .area-track i,
.tile--hero .area-track i {
  background: linear-gradient(90deg, var(--lime-300), var(--lime-500));
}

.week-strip {
  display: grid;
  min-height: 0;
  flex: 1 1 auto;
  grid-template-columns: repeat(var(--week-days, 7), minmax(92px, 1fr));
  gap: 8px;
  padding: 1px 1px 6px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-color: rgba(11, 43, 27, 0.18) transparent;
  scrollbar-width: thin;
}

.week-day {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.52);
  scroll-snap-align: start;
}

.week-day.is-today {
  border-color: rgba(82, 123, 32, 0.22);
  box-shadow: inset 0 3px 0 var(--lime-500);
}

.week-date {
  display: grid;
  gap: 1px;
}

.week-date small {
  color: var(--ink-faint);
  font-size: 0.59rem;
  font-weight: 740;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.week-date strong {
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  font-weight: 720;
}

.week-count {
  display: grid;
  min-width: 0;
  grid-template-columns: 6px auto minmax(0, 1fr);
  align-items: center;
  gap: 5px;
}

.week-count i,
.week-legend i {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
}

.week-count--events i,
.week-legend i.is-event {
  background: var(--lime-500);
}

.week-count--tasks i,
.week-legend i.is-task {
  background: var(--coral-500);
}

.week-count strong {
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
}

.week-count small {
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 0.59rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.week-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block-start: 9px;
  color: var(--ink-faint);
  font-size: 0.62rem;
}

.week-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tile--dark .week-date small,
.tile--hero .week-date small,
.tile--dark .week-count small,
.tile--hero .week-count small,
.tile--dark .week-legend,
.tile--hero .week-legend {
  color: rgba(255, 255, 255, 0.58);
}

.brief-stats {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(3, minmax(112px, 1fr)) auto;
  gap: 8px;
  margin-block-end: 10px;
}

.brief-stats > div {
  display: flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border: 1px solid rgba(11, 43, 27, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.42);
}

.brief-stats > div > span:last-child {
  display: grid;
  min-width: 0;
}

.brief-stats strong {
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  font-weight: 760;
  letter-spacing: -0.035em;
}

.brief-stats small {
  overflow: hidden;
  color: rgba(11, 43, 27, 0.62);
  font-size: 0.59rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brief-stat-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 10px;
  color: var(--forest-800);
  background: rgba(255, 255, 255, 0.58);
}

.brief-stat-icon.is-coral {
  color: #963d2d;
  background: rgba(255, 230, 223, 0.82);
}

.brief-stat-icon svg {
  width: 14px;
  height: 14px;
}

.brief-copy {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid rgba(11, 43, 27, 0.13);
  border-radius: 14px;
  color: #fff;
  background: var(--forest-900);
  cursor: pointer;
  font-size: 0.66rem;
  font-weight: 710;
  white-space: nowrap;
  transition: box-shadow 150ms var(--ease-standard), transform 150ms var(--ease-out);
}

.brief-copy:hover {
  box-shadow: 0 8px 20px rgba(7, 31, 19, 0.16);
  transform: translateY(-1px);
}

.brief-copy svg {
  width: 15px;
  height: 15px;
}

.brief-columns {
  display: grid;
  min-height: 0;
  flex: 1 1 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.brief-section {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(11, 43, 27, 0.09);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.36);
}

.brief-section > header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(11, 43, 27, 0.08);
}

.brief-section > header strong {
  font-size: 0.65rem;
  font-weight: 740;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.brief-section > header span {
  color: rgba(11, 43, 27, 0.56);
  font-size: 0.58rem;
  font-weight: 650;
}

.brief-list,
.gap-list,
.team-list {
  min-height: 0;
  flex: 1 1 0;
  overflow-y: auto;
  scrollbar-color: rgba(11, 43, 27, 0.2) transparent;
  scrollbar-width: thin;
}

.brief-row {
  display: grid;
  min-width: 0;
  min-height: 44px;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border-bottom: 1px solid rgba(11, 43, 27, 0.07);
  color: inherit;
}

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

.brief-row:hover {
  background: rgba(255, 255, 255, 0.38);
}

.brief-row > svg:last-child {
  width: 13px;
  height: 13px;
  color: rgba(11, 43, 27, 0.48);
}

.brief-row-time {
  display: grid;
  gap: 1px;
  font-variant-numeric: tabular-nums;
}

.brief-row-time strong {
  font-size: 0.67rem;
  font-weight: 760;
}

.brief-row-time small,
.brief-row-copy small {
  overflow: hidden;
  color: rgba(11, 43, 27, 0.55);
  font-size: 0.56rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brief-row-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.brief-row-copy strong {
  overflow: hidden;
  font-size: 0.68rem;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brief-task-state {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 9px;
  color: var(--forest-700);
  background: rgba(255, 255, 255, 0.56);
}

.brief-task-state.is-overdue {
  color: #973b2a;
  background: rgba(255, 230, 223, 0.82);
  font-size: 0.68rem;
  font-weight: 800;
}

.brief-task-state svg {
  width: 13px;
  height: 13px;
}

.brief-empty {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px;
  color: rgba(11, 43, 27, 0.58);
  font-size: 0.63rem;
  text-align: center;
}

.brief-empty svg {
  width: 15px;
  height: 15px;
}

.quality-overview {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-block-end: 11px;
}

.quality-score {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--coral-500) calc(var(--quality, 0) * 1%), rgba(220, 103, 79, 0.13) 0);
}

.quality-score::before {
  width: 64px;
  height: 64px;
  grid-area: 1 / 1;
  border-radius: 50%;
  background: rgba(255, 250, 248, 0.98);
  content: "";
}

.quality-score > span {
  z-index: 1;
  display: grid;
  grid-area: 1 / 1;
  justify-items: center;
}

.quality-score strong {
  font-size: 1.08rem;
  font-variant-numeric: tabular-nums;
  font-weight: 770;
  letter-spacing: -0.05em;
}

.quality-score small {
  color: var(--ink-faint);
  font-size: 0.52rem;
}

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

.gap-metrics > div {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 9px 7px;
  border: 1px solid rgba(220, 103, 79, 0.12);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.52);
  text-align: center;
}

.gap-metrics > div.is-muted {
  opacity: 0.42;
}

.gap-metrics strong {
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.gap-metrics span {
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 0.51rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gap-list {
  display: grid;
  align-content: start;
  gap: 5px;
}

.gap-row {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  border-bottom: 1px solid rgba(11, 43, 27, 0.07);
  color: inherit;
}

.gap-row-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.gap-row-copy strong,
.gap-row-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gap-row-copy strong {
  font-size: 0.67rem;
  font-weight: 680;
}

.gap-row-copy small {
  color: var(--ink-faint);
  font-size: 0.55rem;
}

.gap-chips {
  display: flex;
  justify-content: flex-end;
  gap: 3px;
}

.gap-chips i {
  padding: 4px 6px;
  border-radius: var(--radius-pill);
  color: #963d2d;
  background: rgba(255, 230, 223, 0.86);
  font-size: 0.49rem;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.team-summary {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-block-end: 10px;
}

.team-summary > div {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid rgba(11, 43, 27, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.42);
}

.team-summary strong {
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  font-weight: 760;
  letter-spacing: -0.04em;
}

.team-summary span {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.58rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-list {
  display: grid;
  align-content: start;
  gap: 5px;
  padding-inline-end: 3px;
}

.team-row {
  display: grid;
  min-width: 0;
  grid-template-columns: 32px minmax(105px, 0.8fr) minmax(70px, 1.2fr) 28px;
  align-items: center;
  gap: 9px;
  padding: 6px 4px;
}

.team-avatar {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 10px;
  color: var(--forest-800);
  background: rgba(255, 255, 255, 0.64);
  font-size: 0.65rem;
  font-weight: 760;
}

.team-avatar[data-tone="1"] { background: rgba(200, 235, 135, 0.62); }
.team-avatar[data-tone="2"] { background: rgba(255, 230, 223, 0.82); }
.team-avatar[data-tone="3"] { background: rgba(203, 232, 214, 0.86); }
.team-avatar[data-tone="4"] { background: rgba(255, 255, 255, 0.9); }

.team-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.team-copy strong,
.team-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-copy strong {
  font-size: 0.69rem;
  font-weight: 690;
}

.team-copy small {
  color: var(--ink-faint);
  font-size: 0.55rem;
}

.team-track {
  height: 7px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: rgba(11, 43, 27, 0.08);
}

.team-track i {
  display: block;
  width: var(--team-share, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--forest-700), var(--lime-500));
}

.team-count {
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.tile--dark .brief-stats > div,
.tile--dark .brief-section,
.tile--dark .team-summary > div,
.tile--hero .brief-stats > div,
.tile--hero .brief-section,
.tile--hero .team-summary > div {
  border-color: var(--white-line);
  background: rgba(255, 255, 255, 0.07);
}

.tile--dark .brief-stats small,
.tile--dark .brief-section > header span,
.tile--dark .brief-row-time small,
.tile--dark .brief-row-copy small,
.tile--dark .brief-empty,
.tile--dark .team-summary span,
.tile--dark .team-copy small,
.tile--hero .brief-stats small,
.tile--hero .brief-section > header span,
.tile--hero .brief-row-time small,
.tile--hero .brief-row-copy small,
.tile--hero .brief-empty,
.tile--hero .team-summary span,
.tile--hero .team-copy small {
  color: rgba(255, 255, 255, 0.58);
}

.tile--dark .brief-section > header,
.tile--dark .brief-row,
.tile--hero .brief-section > header,
.tile--hero .brief-row {
  border-color: var(--white-line);
}

.tile--dark .brief-copy,
.tile--hero .brief-copy {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--forest-900);
  background: var(--lime-300);
}

.tile--clockifyDay::before {
  background: radial-gradient(circle at 96% 4%, rgba(200, 235, 135, 0.13), transparent 42%);
}

.clockify-day-overview {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: minmax(0, 1.15fr) minmax(130px, 0.85fr);
  gap: 9px;
  margin-block-end: 10px;
}

.clockify-total-block,
.clockify-day-metrics > div,
.clockify-team-summary > div {
  border: 1px solid rgba(11, 43, 27, 0.09);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.44);
}

.clockify-total-block {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 2px;
  padding: 11px 13px;
}

.clockify-total-block > span,
.clockify-day-metrics span,
.clockify-team-summary span {
  color: var(--ink-soft);
  font-size: 0.57rem;
  font-weight: 680;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.clockify-total-block > strong {
  overflow: hidden;
  font-size: clamp(1.75rem, 7cqi, 3.25rem);
  font-variant-numeric: tabular-nums;
  font-weight: 690;
  letter-spacing: -0.065em;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clockify-total-block > small,
.clockify-day-metrics small,
.clockify-team-summary small {
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 0.55rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clockify-day-metrics {
  display: grid;
  min-width: 0;
  grid-auto-rows: minmax(0, 1fr);
  gap: 7px;
}

.clockify-day-metrics > div {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 2px;
  padding: 8px 10px;
}

.clockify-day-metrics > div.is-running {
  border-color: rgba(200, 235, 135, 0.35);
  background: rgba(200, 235, 135, 0.13);
}

.clockify-day-metrics strong {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clockify-day-metrics strong svg {
  width: 13px;
  height: 13px;
  color: var(--lime-500);
}

.clockify-entry-list,
.clockify-team-list {
  min-height: 0;
  flex: 1 1 0;
  overflow-y: auto;
  scrollbar-color: rgba(11, 43, 27, 0.2) transparent;
  scrollbar-width: thin;
}

.clockify-entry {
  display: grid;
  min-width: 0;
  min-height: 46px;
  grid-template-columns: 8px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  padding: 6px 4px;
  border-bottom: 1px solid rgba(11, 43, 27, 0.07);
  color: inherit;
  transition: background 140ms var(--ease-standard);
}

.clockify-entry:last-child {
  border-bottom: 0;
}

.clockify-entry:hover {
  background: rgba(255, 255, 255, 0.06);
}

.clockify-project-dot {
  width: 7px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: var(--project-color, var(--lime-500));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--project-color, var(--lime-500)) 18%, transparent);
}

.clockify-entry-copy,
.clockify-member-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.clockify-entry-copy strong,
.clockify-entry-copy small,
.clockify-member-copy strong,
.clockify-member-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clockify-entry-copy strong,
.clockify-member-copy strong {
  font-size: 0.68rem;
  font-weight: 690;
}

.clockify-entry-copy small,
.clockify-member-copy small {
  color: var(--ink-faint);
  font-size: 0.55rem;
}

.clockify-billable {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 8px;
  color: var(--forest-800);
  background: rgba(200, 235, 135, 0.58);
  font-size: 0.57rem;
  font-weight: 780;
}

.clockify-duration,
.clockify-member-time {
  grid-column: 4;
  font-size: 0.69rem;
  font-variant-numeric: tabular-nums;
  font-weight: 720;
  text-align: right;
  white-space: nowrap;
}

.clockify-duration.is-running {
  color: var(--lime-300);
}

.clockify-team-summary {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-block-end: 10px;
}

.clockify-team-summary > div {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 9px 11px;
}

.clockify-team-summary > div.is-active {
  border-color: rgba(100, 149, 52, 0.18);
  background: rgba(200, 235, 135, 0.42);
}

.clockify-team-summary strong {
  overflow: hidden;
  font-size: clamp(0.95rem, 2.7cqi, 1.35rem);
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clockify-team-list {
  display: grid;
  align-content: start;
  gap: 4px;
}

.clockify-member {
  display: grid;
  min-width: 0;
  min-height: 43px;
  grid-template-columns: 32px minmax(96px, 0.85fr) minmax(72px, 1.3fr) auto 8px;
  align-items: center;
  gap: 9px;
  padding: 5px 4px;
  border-radius: 11px;
}

.clockify-member.is-active {
  background: rgba(255, 255, 255, 0.46);
}

.clockify-member.is-unavailable {
  opacity: 0.58;
}

.clockify-member.is-unavailable .clockify-member-track {
  background: repeating-linear-gradient(135deg, rgba(11, 43, 27, 0.04) 0 4px, rgba(11, 43, 27, 0.09) 4px 8px);
}

.clockify-member-avatar {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 10px;
  color: var(--forest-800);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.61rem;
  font-weight: 780;
}

.clockify-member-avatar[data-tone="1"] { background: rgba(200, 235, 135, 0.7); }
.clockify-member-avatar[data-tone="2"] { background: rgba(255, 230, 223, 0.86); }
.clockify-member-avatar[data-tone="3"] { background: rgba(203, 232, 214, 0.92); }
.clockify-member-avatar[data-tone="4"] { background: rgba(239, 238, 255, 0.9); }

.clockify-member-track {
  height: 7px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: rgba(11, 43, 27, 0.08);
}

.clockify-member-track i {
  display: block;
  width: var(--clockify-share, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--forest-700), var(--lime-500));
}

.clockify-member-time {
  min-width: 48px;
}

.clockify-active-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime-500);
  box-shadow: 0 0 0 4px rgba(147, 201, 75, 0.15);
  animation: clockify-pulse 1.8s ease-in-out infinite;
}

.clockify-empty-row {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  color: var(--ink-faint);
  font-size: 0.65rem;
  text-align: center;
}

.clockify-empty-row svg {
  width: 17px;
  height: 17px;
}

.clockify-connect {
  display: grid;
  min-height: 100%;
  place-content: center;
  justify-items: center;
  gap: 13px;
  text-align: center;
}

.clockify-connect > span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(11, 43, 27, 0.1);
  border-radius: 17px;
  color: var(--forest-800);
  background: rgba(255, 255, 255, 0.48);
}

.clockify-connect > span svg {
  width: 23px;
  height: 23px;
}

.clockify-connect > div {
  display: grid;
  max-width: 34ch;
  gap: 4px;
}

.clockify-connect strong {
  font-size: 0.9rem;
}

.clockify-connect p {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.68rem;
  line-height: 1.45;
}

.clockify-connect button,
.clockify-data-notice a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 0;
  border-radius: 11px;
  color: var(--forest-950);
  background: var(--lime-300);
  cursor: pointer;
  font-size: 0.66rem;
  font-weight: 720;
}

.clockify-connect button svg,
.clockify-data-notice a svg {
  width: 15px;
  height: 15px;
}

.tile--dark .clockify-total-block,
.tile--dark .clockify-day-metrics > div,
.tile--dark .clockify-team-summary > div {
  border-color: var(--white-line);
  background: rgba(255, 255, 255, 0.07);
}

.tile--dark .clockify-total-block > span,
.tile--dark .clockify-day-metrics span,
.tile--dark .clockify-team-summary span,
.tile--dark .clockify-total-block > small,
.tile--dark .clockify-day-metrics small,
.tile--dark .clockify-team-summary small,
.tile--dark .clockify-entry-copy small,
.tile--dark .clockify-member-copy small,
.tile--dark .clockify-empty-row,
.tile--dark .clockify-connect p {
  color: rgba(255, 255, 255, 0.58);
}

.tile--dark .clockify-entry {
  border-color: var(--white-line);
}

.tile--dark .clockify-member-track {
  background: rgba(255, 255, 255, 0.11);
}

.tile--dark .clockify-member.is-active,
.tile--dark .clockify-day-metrics > div.is-running {
  background: rgba(200, 235, 135, 0.09);
}

.tile--dark .clockify-connect > span {
  border-color: var(--white-line);
  color: var(--lime-300);
  background: rgba(255, 255, 255, 0.07);
}

@keyframes clockify-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.58; transform: scale(0.82); }
}

.tile--clockifyAreas::before,
.tile--periodPerformance::before {
  background: radial-gradient(circle at 98% 1%, rgba(200, 235, 135, 0.17), transparent 40%);
}

.analytics-overview,
.performance-head {
  display: flex;
  min-width: 0;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-block-end: 10px;
}

.analytics-total {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.analytics-total > span,
.performance-metric > span,
.performance-area-head {
  color: var(--ink-faint);
  font-size: 0.56rem;
  font-weight: 720;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.analytics-total > strong {
  overflow: hidden;
  font-size: clamp(1.65rem, 7.5cqi, 3.2rem);
  font-variant-numeric: tabular-nums;
  font-weight: 710;
  letter-spacing: -0.065em;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-total > small {
  color: var(--ink-faint);
  font-size: 0.58rem;
}

.analytics-periods {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(11, 43, 27, 0.08);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.42);
}

.analytics-periods button {
  min-width: 38px;
  min-height: 29px;
  padding: 5px 7px;
  border: 0;
  border-radius: 8px;
  color: var(--ink-faint);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.58rem;
  font-variant-numeric: tabular-nums;
  font-weight: 730;
  transition: color 140ms var(--ease-standard), background 140ms var(--ease-standard), box-shadow 140ms var(--ease-standard);
}

.analytics-periods button:hover,
.analytics-periods button:focus-visible {
  color: var(--forest-900);
  background: rgba(255, 255, 255, 0.58);
}

.analytics-periods button.is-active {
  color: var(--forest-950);
  background: var(--lime-300);
  box-shadow: 0 3px 9px rgba(44, 78, 25, 0.12);
}

.analytics-periods.is-loading button,
.analytics-periods button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.analytics-loading-toolbar {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
}

.analytics-loading {
  display: grid;
  min-height: 0;
  flex: 1 1 auto;
  place-content: center;
  justify-items: center;
  gap: 7px;
  color: var(--ink-faint);
  text-align: center;
}

.analytics-loading .button-spinner {
  width: 22px;
  height: 22px;
  margin-block-end: 3px;
  border-width: 2px;
  color: var(--forest-700);
}

.analytics-loading strong {
  color: inherit;
  font-size: 0.74rem;
}

.analytics-loading small {
  max-width: 36ch;
  font-size: 0.58rem;
  line-height: 1.45;
}

.analytics-unavailable > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  color: #9f5c27;
  background: rgba(255, 241, 211, 0.72);
}

.analytics-unavailable > span svg {
  width: 17px;
  height: 17px;
}

.analytics-unavailable button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  margin-block-start: 3px;
  padding: 6px 10px;
  border: 0;
  border-radius: 9px;
  color: var(--forest-950);
  background: var(--lime-300);
  cursor: pointer;
  font: inherit;
  font-size: 0.58rem;
  font-weight: 720;
}

.analytics-unavailable button svg {
  width: 14px;
  height: 14px;
}

.analytics-billable {
  display: grid;
  min-height: 32px;
  flex: 0 0 auto;
  grid-template-columns: auto auto minmax(54px, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-block-end: 7px;
  padding: 6px 9px;
  border: 1px solid rgba(11, 43, 27, 0.08);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.32);
  font-size: 0.58rem;
}

.analytics-billable > span,
.analytics-billable > small {
  color: var(--ink-faint);
}

.analytics-billable > strong {
  font-variant-numeric: tabular-nums;
  font-weight: 740;
}

.analytics-billable > i,
.analytics-area-track,
.performance-area-measure > i {
  height: 6px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: rgba(11, 43, 27, 0.08);
}

.analytics-billable > i b,
.analytics-area-track i,
.performance-area-measure > i b {
  display: block;
  width: var(--analytics-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--forest-700), var(--lime-500));
}

.analytics-area-list,
.performance-area-list {
  display: grid;
  min-height: 0;
  flex: 1 1 0;
  align-content: start;
  gap: 3px;
  overflow-y: auto;
  scrollbar-color: rgba(11, 43, 27, 0.2) transparent;
  scrollbar-width: thin;
}

.analytics-area-row {
  display: grid;
  min-width: 0;
  min-height: 42px;
  grid-template-columns: 7px minmax(84px, 0.9fr) minmax(62px, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 5px 3px;
  border-bottom: 1px solid rgba(11, 43, 27, 0.07);
}

.analytics-area-row:last-child,
.performance-area-row:last-child {
  border-bottom-color: transparent;
}

.analytics-area-color {
  width: 6px;
  height: 27px;
  border-radius: var(--radius-pill);
  background: var(--area-color, var(--lime-500));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--area-color, var(--lime-500)) 17%, transparent);
}

.analytics-area-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.analytics-area-copy strong,
.analytics-area-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-area-copy strong {
  font-size: 0.67rem;
  font-weight: 710;
}

.analytics-area-copy small {
  color: var(--ink-faint);
  font-size: 0.53rem;
}

.analytics-area-track i,
.performance-area-measure--time > i b {
  background: linear-gradient(90deg, var(--area-color, var(--forest-700)), color-mix(in srgb, var(--area-color, var(--lime-500)) 58%, var(--lime-300)));
}

.analytics-area-value {
  min-width: 48px;
  font-size: 0.66rem;
  font-variant-numeric: tabular-nums;
  font-weight: 740;
  text-align: right;
  white-space: nowrap;
}

.performance-head {
  align-items: stretch;
}

.performance-metrics {
  display: grid;
  min-width: 0;
  flex: 1 1 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.performance-metric {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 9px 11px;
  border: 1px solid rgba(11, 43, 27, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.4);
}

.performance-metric > strong {
  overflow: hidden;
  font-size: clamp(1.1rem, 3.2cqi, 1.65rem);
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-delta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  color: var(--ink-faint);
  font-size: 0.51rem;
  white-space: nowrap;
}

.analytics-delta b {
  padding: 2px 5px;
  border-radius: 6px;
  color: var(--forest-700);
  background: rgba(200, 235, 135, 0.45);
  font-weight: 760;
}

.analytics-delta.is-down b {
  color: #8d493b;
  background: rgba(255, 230, 223, 0.82);
}

.analytics-delta.is-flat b,
.analytics-delta.is-new b {
  color: var(--ink-soft);
  background: rgba(11, 43, 27, 0.07);
}

.analytics-delta span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.performance-area-head,
.performance-area-row {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) minmax(80px, 0.65fr) minmax(90px, 0.8fr);
  align-items: center;
  gap: 11px;
}

.performance-area-head {
  flex: 0 0 auto;
  padding: 0 4px 5px;
}

.performance-area-head span:not(:first-child) {
  text-align: right;
}

.performance-area-row {
  min-width: 0;
  min-height: 43px;
  padding: 5px 4px;
  border-bottom: 1px solid rgba(11, 43, 27, 0.07);
}

.performance-area-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.performance-area-name > i {
  width: 7px;
  height: 27px;
  flex: 0 0 7px;
  border-radius: var(--radius-pill);
  background: var(--area-color, var(--lime-500));
}

.performance-area-name strong {
  overflow: hidden;
  font-size: 0.66rem;
  font-weight: 710;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performance-area-measure {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(32px, 1fr);
  align-items: center;
  gap: 7px;
}

.performance-area-measure strong {
  min-width: 20px;
  font-size: 0.62rem;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  text-align: right;
  white-space: nowrap;
}

.performance-people-head,
.performance-person-row {
  display: grid;
  min-width: 0;
  grid-template-columns: 32px minmax(100px, 0.9fr) 58px minmax(110px, 1.2fr);
  align-items: center;
  gap: 9px;
}

.performance-people-head {
  flex: 0 0 auto;
  padding: 0 5px 5px;
  color: var(--ink-faint);
  font-size: 0.55rem;
  font-weight: 720;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.performance-people-head > span:first-child {
  grid-column: 1 / 3;
}

.performance-people-head > span:not(:first-child) {
  text-align: right;
}

.performance-people-list {
  display: grid;
  min-height: 0;
  flex: 1 1 0;
  align-content: start;
  gap: 3px;
  overflow-y: auto;
  scrollbar-color: rgba(11, 43, 27, 0.2) transparent;
  scrollbar-width: thin;
}

.performance-person-row {
  min-height: 47px;
  padding: 5px;
  border-bottom: 1px solid rgba(11, 43, 27, 0.07);
}

.performance-person-row:last-child {
  border-bottom-color: transparent;
}

.performance-person-avatar {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 10px;
  color: var(--forest-800);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.59rem;
  font-weight: 780;
}

.performance-person-avatar[data-tone="1"] { background: rgba(200, 235, 135, 0.7); }
.performance-person-avatar[data-tone="2"] { background: rgba(255, 230, 223, 0.86); }
.performance-person-avatar[data-tone="3"] { background: rgba(203, 232, 214, 0.92); }
.performance-person-avatar[data-tone="4"] { background: rgba(239, 238, 255, 0.9); }

.performance-person-copy,
.performance-person-tasks,
.performance-person-time {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.performance-person-copy strong,
.performance-person-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performance-person-copy strong {
  font-size: 0.67rem;
  font-weight: 710;
}

.performance-person-copy small,
.performance-person-tasks small {
  color: var(--ink-faint);
  font-size: 0.51rem;
}

.performance-person-tasks {
  justify-items: end;
}

.performance-person-tasks strong,
.performance-person-time > strong {
  font-size: 0.65rem;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  white-space: nowrap;
}

.performance-person-time {
  justify-items: stretch;
}

.performance-person-time > strong {
  text-align: right;
}

.performance-person-stack {
  display: flex;
  width: 100%;
  height: 7px;
  gap: 2px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: rgba(11, 43, 27, 0.08);
}

.performance-person-stack > i {
  width: var(--segment-share, 0%);
  min-width: 2px;
  height: 100%;
  border-radius: 2px;
  background: var(--area-color, var(--lime-500));
}

.performance-person-stack > i.is-unassigned {
  background: rgba(122, 143, 130, 0.55);
}

.tile--dark .analytics-total > span,
.tile--dark .analytics-total > small,
.tile--dark .performance-metric > span,
.tile--dark .performance-area-head,
.tile--dark .analytics-area-copy small,
.tile--dark .analytics-delta,
.tile--dark .analytics-billable > span,
.tile--dark .analytics-billable > small {
  color: rgba(255, 255, 255, 0.58);
}

.tile--dark .analytics-periods,
.tile--dark .analytics-billable,
.tile--dark .performance-metric {
  border-color: var(--white-line);
  background: rgba(255, 255, 255, 0.07);
}

.tile--dark .analytics-periods button {
  color: rgba(255, 255, 255, 0.62);
}

.tile--dark .analytics-periods button:hover,
.tile--dark .analytics-periods button:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
}

.tile--dark .analytics-periods button.is-active {
  color: var(--forest-950);
  background: var(--lime-300);
}

.tile--dark .analytics-billable > i,
.tile--dark .analytics-area-track,
.tile--dark .performance-area-measure > i,
.tile--dark .performance-person-stack {
  background: rgba(255, 255, 255, 0.11);
}

.tile--dark .analytics-area-row,
.tile--dark .performance-area-row,
.tile--dark .performance-person-row {
  border-color: var(--white-line);
}

.tile--dark .analytics-delta b {
  color: var(--forest-950);
}

.tile--dark .performance-people-head,
.tile--dark .performance-person-copy small,
.tile--dark .performance-person-tasks small {
  color: rgba(255, 255, 255, 0.58);
}

.tool-grid {
  display: grid;
  width: 100%;
  min-height: 0;
  flex: 1;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  grid-auto-rows: 72px;
  align-content: start;
  gap: 9px;
}

.tile--quicklinks .tool-link {
  height: 100%;
  min-height: 68px;
  padding: 10px 12px;
}

.tool-link--add {
  border-style: dashed;
  color: var(--forest-700);
  background: rgba(231, 243, 233, 0.52);
}

.tool-link--add .tool-icon {
  border: 1px dashed rgba(43, 103, 70, 0.3);
  background: rgba(255, 255, 255, 0.72);
}

.edit-mode .tile .tool-link--add {
  pointer-events: auto;
}

.tile--quicklinks .tile-body {
  overflow: auto;
  scrollbar-width: thin;
}

.tool-link {
  --tool-accent: var(--forest-600);
  --tool-accent-soft: rgba(231, 243, 233, 0.74);
  --tool-accent-border: var(--line);
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 88px;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border: 1px solid var(--tool-accent-border);
  border-radius: var(--radius-md);
  color: var(--forest-900);
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 670;
  line-height: 1.25;
  transition: border-color 160ms var(--ease-standard), background 160ms var(--ease-standard), box-shadow 160ms var(--ease-standard), transform 160ms var(--ease-out);
}

.tool-link--accent-green {
  --tool-accent: #246443;
  --tool-accent-soft: rgba(215, 234, 220, 0.78);
  --tool-accent-border: rgba(36, 100, 67, 0.24);
}

.tool-link--accent-lime {
  --tool-accent: #659a28;
  --tool-accent-soft: rgba(200, 235, 135, 0.3);
  --tool-accent-border: rgba(101, 154, 40, 0.28);
}

.tool-link--accent-blue {
  --tool-accent: #39749c;
  --tool-accent-soft: rgba(218, 236, 247, 0.62);
  --tool-accent-border: rgba(57, 116, 156, 0.24);
}

.tool-link--accent-coral {
  --tool-accent: #c85642;
  --tool-accent-soft: rgba(255, 229, 223, 0.7);
  --tool-accent-border: rgba(200, 86, 66, 0.25);
}

.tool-link--accent-violet {
  --tool-accent: #7456a5;
  --tool-accent-soft: rgba(235, 226, 248, 0.66);
  --tool-accent-border: rgba(116, 86, 165, 0.24);
}

.tool-link:not(.tool-link--accent-neutral):not(.tool-link--add) {
  background: linear-gradient(135deg, var(--tool-accent-soft), rgba(255, 255, 255, 0.82));
  box-shadow: inset 3px 0 0 var(--tool-accent);
}

.tool-link:not(.tool-link--accent-neutral):not(.tool-link--add) .tool-icon {
  color: var(--tool-accent);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 5px 14px rgba(7, 31, 19, 0.06);
}

.tool-link:not(.tool-link--accent-neutral):not(.tool-link--add) .tool-arrow {
  color: var(--tool-accent);
}

.tool-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.tool-copy strong,
.tool-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-copy strong {
  color: var(--forest-900);
  font-size: 0.78rem;
}

.tool-copy small {
  color: var(--ink-faint);
  font-size: 0.64rem;
  font-weight: 570;
}

.tool-arrow {
  color: var(--ink-faint);
}

.tool-arrow svg {
  width: 16px;
  height: 16px;
}

.tool-link::after {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tool-accent);
  content: "";
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 160ms var(--ease-standard), transform 160ms var(--ease-out);
}

.tool-link:not(.tool-link--accent-neutral):not(.tool-link--add)::after {
  opacity: 0.84;
  transform: scale(1);
}

.tool-link:hover {
  border-color: rgba(11, 43, 27, 0.18);
  background: #fff;
  box-shadow: 0 9px 22px rgba(7, 31, 19, 0.07);
  transform: translateY(-2px);
}

.tool-link:not(.tool-link--accent-neutral):not(.tool-link--add):hover {
  border-color: var(--tool-accent-border);
  background: linear-gradient(135deg, var(--tool-accent-soft), #fff);
}

.tool-link:hover::after {
  opacity: 1;
  transform: scale(1);
}

.tool-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  color: var(--forest-700);
  background: var(--mint-100);
}

.tool-icon svg,
.tool-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.tile--tool .tool-icon {
  width: 46px;
  height: 46px;
  border-radius: 15px;
}

.empty-state {
  display: grid;
  min-height: 100%;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 20px;
  color: var(--ink-faint);
  text-align: center;
}

.empty-state svg {
  width: 28px;
  height: 28px;
  margin-block-end: 4px;
  color: var(--forest-600);
  stroke-width: 1.55;
}

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

.empty-state p {
  max-width: 34ch;
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.5;
}

.skeleton {
  position: relative;
  display: block;
  min-height: 14px;
  overflow: hidden;
  border-radius: 7px;
  color: transparent !important;
  background: rgba(11, 43, 27, 0.08);
  pointer-events: none;
}

.skeleton::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  content: "";
  transform: translateX(-100%);
  animation: skeleton-wave 1.45s ease-in-out infinite;
}

.tile--hero .skeleton,
.tile--dark .skeleton {
  background: rgba(255, 255, 255, 0.1);
}

.tile--hero .skeleton::after,
.tile--dark .skeleton::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.13), transparent);
}

@keyframes skeleton-wave {
  to {
    transform: translateX(100%);
  }
}

.hero-copy > p:last-child:not(.hero-summary) {
  max-width: 64ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(0.76rem, 1.3cqi, 0.9rem);
  line-height: 1.5;
}

.tile--hero .hero-summary,
.tile--dark .hero-summary,
.tile--hero .hero-copy > p:last-child,
.tile--dark .hero-copy > p:last-child {
  color: rgba(255, 255, 255, 0.65);
}

.tile--mint .hero-summary,
.tile--light .hero-summary,
.tile--coral .hero-summary,
.tile--lime .hero-summary {
  color: var(--forest-600);
  font-weight: 740;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.focus-progress {
  display: grid;
  min-width: 150px;
  align-self: end;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(11, 43, 27, 0.1);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.43);
}

.focus-progress > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.focus-progress strong {
  color: var(--forest-900);
  font-size: 1.45rem;
  font-weight: 710;
  letter-spacing: -0.045em;
}

.focus-progress small {
  color: var(--ink-faint);
  font-size: 0.63rem;
  font-weight: 660;
}

.focus-progress > div {
  height: 7px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: rgba(11, 43, 27, 0.1);
}

.focus-progress i {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--forest-700);
}

.status-list {
  display: grid;
  min-height: 0;
  align-content: start;
  gap: 5px;
}

.status-row {
  display: grid;
  min-width: 0;
  min-height: 48px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background 150ms var(--ease-standard);
}

.status-row:hover {
  background: rgba(231, 243, 233, 0.66);
}

.status-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  color: var(--forest-700);
  background: var(--mint-100);
}

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

.status-row > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.status-row strong,
.status-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-row strong {
  font-size: 0.76rem;
}

.status-row small {
  color: var(--ink-faint);
  font-size: 0.64rem;
}

.status-light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #aab4ae;
  box-shadow: 0 0 0 4px rgba(120, 135, 125, 0.1);
}

.status-light.is-online {
  background: var(--lime-500);
  box-shadow: 0 0 0 4px rgba(147, 201, 75, 0.14);
}

.status-light.is-error {
  background: var(--coral-500);
  box-shadow: 0 0 0 4px rgba(220, 103, 79, 0.13);
}

.note-content {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.note-content p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(0.95rem, 2.7cqi, 1.35rem);
  font-weight: 620;
  letter-spacing: -0.025em;
  line-height: 1.38;
}

.note-content > span {
  color: var(--ink-faint);
  font-size: 0.7rem;
  font-weight: 640;
}

.single-tool,
.single-tool .tool-link {
  min-height: 100%;
}

.tile-edit-controls {
  position: static;
}

.tile-resize > span {
  width: 13px;
  height: 13px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  border-radius: 0 0 3px;
}

.tile.is-resizing {
  z-index: 24;
  border-color: var(--lime-500);
  box-shadow: 0 0 0 3px rgba(147, 201, 75, 0.16), var(--shadow-md);
  transition: none;
}

.floating-actions {
  position: fixed;
  z-index: 45;
  left: max(18px, env(safe-area-inset-left));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: flex;
  gap: 9px;
  transition: opacity 170ms var(--ease-standard), transform 170ms var(--ease-out), visibility 170ms;
}

.edit-fab {
  position: fixed;
  z-index: 45;
  left: max(18px, env(safe-area-inset-left));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(11, 43, 27, 0.14);
  border-radius: 16px;
  color: var(--forest-900);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(7, 31, 19, 0.13);
  cursor: pointer;
  transition: color 170ms var(--ease-standard), background 170ms var(--ease-standard), transform 170ms var(--ease-out), box-shadow 170ms var(--ease-standard);
}

.floating-actions .edit-fab {
  position: static;
  inset: auto;
}

.refresh-fab:hover {
  transform: translateY(-2px) rotate(5deg);
}

.edit-mode .floating-actions {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.96);
  visibility: hidden;
}

.edit-fab svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.7;
}

.edit-fab:hover {
  color: var(--lime-300);
  background: var(--forest-900);
  box-shadow: 0 15px 38px rgba(7, 31, 19, 0.21);
  transform: translateY(-2px) rotate(-2deg);
}

.edit-fab:active {
  transform: translateY(0) scale(0.96);
}

.edit-mode .edit-fab {
  color: var(--lime-300);
  background: var(--forest-900);
}

.edit-toolbar {
  position: fixed;
  z-index: 44;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  left: max(18px, env(safe-area-inset-left));
  display: flex;
  width: max-content;
  max-width: calc(100vw - 100px);
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-inline: auto;
  padding: 7px 8px 7px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 19px;
  color: #fff;
  background: var(--forest-950);
  box-shadow: var(--shadow-lg);
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
  transition: opacity 180ms var(--ease-standard), transform 180ms var(--ease-out), visibility 180ms;
}

.edit-toolbar[aria-hidden="true"] {
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.98);
  visibility: hidden;
}

.edit-fab[aria-hidden="true"] {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.9);
  visibility: hidden;
}

.tile-footer svg,
.agenda-item > svg,
.status-row > svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}

.edit-toolbar > span,
.edit-toolbar > strong {
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 670;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edit-toolbar-copy {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.edit-toolbar-copy > span:last-child {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.edit-toolbar-copy strong,
.edit-toolbar-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edit-toolbar-copy strong {
  font-size: 0.76rem;
}

.edit-toolbar-copy small {
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.62rem;
}

.edit-toolbar-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--lime-400);
  box-shadow: 0 0 0 5px rgba(182, 223, 105, 0.11);
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.edit-toolbar .button {
  min-height: 44px;
}

.edit-toolbar .button--ghost {
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.06);
}

.edit-toolbar .button--ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
}

.icon-button.is-spinning svg {
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.drawer-backdrop,
.modal {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  padding: 12px;
  background: rgba(7, 31, 19, 0.35);
  opacity: 1;
  backdrop-filter: blur(5px);
  transition: opacity 190ms var(--ease-standard), visibility 190ms var(--ease-standard);
}

.drawer-backdrop {
  padding: 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.drawer-backdrop.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.drawer-backdrop[aria-hidden="true"],
.modal[aria-hidden="true"] {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.drawer {
  position: fixed;
  z-index: 90;
  top: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  width: min(440px, 100%);
  height: auto;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateX(0);
  opacity: 1;
  transition: opacity 190ms var(--ease-standard), transform 240ms var(--ease-out), visibility 190ms var(--ease-standard);
}

.drawer[aria-hidden="true"],
.drawer-backdrop[aria-hidden="true"] .drawer {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(100% + 24px));
}

.drawer.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.drawer-backdrop .drawer {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  height: 100%;
}

.drawer > form {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

body.drawer-open {
  overflow: hidden;
}

.drawer-header,
.drawer-footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.drawer-header h2,
.drawer-header h3 {
  margin: 0;
  color: var(--forest-900);
  font-size: 1.08rem;
  font-weight: 710;
  letter-spacing: -0.025em;
}

.drawer-body {
  min-height: 0;
  flex: 1 1 auto;
  padding: 20px;
  overflow-y: auto;
}

.drawer-footer {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  background: rgba(244, 246, 242, 0.86);
}

.modal {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 40px);
  border: 0;
}

.modal:not([open]) {
  display: none;
}

.modal::backdrop {
  background: transparent;
}

.modal-card {
  display: flex;
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateY(0) scale(1);
  transition: transform 220ms var(--ease-out);
}

.modal[aria-hidden="true"] .modal-card {
  transform: translateY(18px) scale(0.985);
}

.modal-card > .drawer-header,
.modal-card > .drawer-footer {
  padding-inline: clamp(19px, 3vw, 28px);
}

.modal-card > .drawer-body {
  padding: clamp(19px, 3vw, 28px);
}

.modal-card > form {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.modal-card--wide {
  width: min(900px, 100%);
}

.modal-card--compact {
  width: min(430px, 100%);
}

.modal-body {
  min-height: 0;
  padding: clamp(20px, 3vw, 30px);
  overflow-y: auto;
}

.modal-body--center {
  display: grid;
  justify-items: center;
  gap: 11px;
  text-align: center;
}

.modal-body--center form {
  width: 100%;
  margin-block-start: 10px;
  text-align: left;
}

.modal-body--center h2 {
  margin: 0;
  color: var(--forest-900);
  font-size: 1.45rem;
  letter-spacing: -0.035em;
}

.modal-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin-block-end: 5px;
  border-radius: 17px;
  color: var(--lime-300);
  background: var(--forest-900);
}

.modal-icon svg {
  width: 22px;
  height: 22px;
}

.modal-intro {
  max-width: 62ch;
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.55;
}

.modal-body--center .modal-intro {
  margin: 0;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px clamp(20px, 3vw, 30px);
  border-top: 1px solid var(--line);
  background: rgba(244, 246, 242, 0.86);
}

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

.command-modal {
  position: fixed;
  inset: 0;
  display: grid;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: clamp(16px, 8vh, 76px) clamp(12px, 4vw, 42px);
  place-items: start center;
  border: 0;
  background: rgba(7, 31, 19, 0.36);
  backdrop-filter: blur(7px);
}

.command-modal:not([open]) {
  display: none;
}

.command-modal::backdrop {
  background: transparent;
}

.command-card {
  display: flex;
  width: min(780px, 100%);
  max-height: min(720px, calc(100vh - 110px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: rgba(251, 252, 250, 0.98);
  box-shadow: 0 34px 90px rgba(7, 31, 19, 0.28);
}

.command-searchbar {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.command-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: var(--lime-300);
  background: var(--forest-900);
}

.command-mark svg {
  width: 19px;
  height: 19px;
}

.command-searchbar input {
  min-height: 48px;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: clamp(1rem, 2.3vw, 1.25rem);
  font-weight: 620;
  letter-spacing: -0.025em;
}

.command-searchbar input:focus {
  border: 0;
  box-shadow: none;
}

.command-searchbar kbd,
.command-footer kbd {
  display: inline-grid;
  min-width: 25px;
  min-height: 24px;
  place-items: center;
  padding: 2px 6px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 7px;
  color: var(--ink-faint);
  background: #fff;
  font-family: inherit;
  font-size: 0.62rem;
  font-weight: 700;
}

.command-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}

.command-head > span {
  color: var(--ink-faint);
  font-size: 0.65rem;
  font-weight: 650;
  white-space: nowrap;
}

.command-filters {
  display: flex;
  min-width: 0;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.command-filters::-webkit-scrollbar {
  display: none;
}

.command-filters button {
  min-height: 32px;
  padding: 5px 10px;
  border: 0;
  border-radius: 9px;
  color: var(--ink-faint);
  background: transparent;
  cursor: pointer;
  font-size: 0.66rem;
  font-weight: 690;
  white-space: nowrap;
}

.command-filters button.is-active {
  color: var(--forest-900);
  background: var(--mint-100);
}

.command-results {
  min-height: 180px;
  padding: 8px;
  overflow-y: auto;
  scrollbar-color: rgba(11, 43, 27, 0.18) transparent;
  scrollbar-width: thin;
}

.command-result {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 58px;
  grid-template-columns: 40px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.command-result:hover,
.command-result.is-active {
  border-color: rgba(11, 43, 27, 0.08);
  background: var(--mint-100);
}

.command-result-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--forest-700);
  background: rgba(255, 255, 255, 0.76);
}

.command-result-icon svg {
  width: 18px;
  height: 18px;
}

.command-result-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.command-result-copy strong,
.command-result-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-result-copy strong {
  font-size: 0.78rem;
  font-weight: 690;
}

.command-result-copy small {
  color: var(--ink-faint);
  font-size: 0.64rem;
}

.command-result-kind {
  padding: 4px 7px;
  border-radius: var(--radius-pill);
  color: var(--forest-700);
  background: rgba(215, 234, 220, 0.72);
  font-size: 0.57rem;
  font-weight: 710;
  white-space: nowrap;
}

.command-result > svg:last-child {
  width: 16px;
  height: 16px;
  color: var(--ink-faint);
}

.command-empty {
  display: grid;
  min-height: 240px;
  place-content: center;
  justify-items: center;
  gap: 7px;
  color: var(--ink-faint);
  text-align: center;
}

.command-empty > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-block-end: 3px;
  border-radius: 14px;
  color: var(--forest-700);
  background: var(--mint-100);
}

.command-empty strong {
  color: var(--forest-900);
  font-size: 0.84rem;
}

.command-empty p {
  max-width: 38ch;
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.45;
}

.command-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  background: rgba(244, 246, 242, 0.82);
  font-size: 0.61rem;
}

.command-footer span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.command-fab {
  color: var(--forest-700);
  background: rgba(231, 243, 233, 0.96);
}

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

.transfer-card {
  display: grid;
  min-width: 0;
  grid-template-columns: 46px minmax(0, 1fr);
  align-content: start;
  gap: 12px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.transfer-icon {
  display: grid;
  width: 46px;
  height: 46px;
  grid-row: span 2;
  place-items: center;
  border-radius: 15px;
  color: var(--forest-700);
  background: var(--mint-100);
}

.transfer-icon svg {
  width: 20px;
  height: 20px;
}

.transfer-card h3 {
  margin: 1px 0 4px;
  color: var(--forest-900);
  font-size: 0.86rem;
  letter-spacing: -0.02em;
}

.transfer-card p {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.7rem;
  line-height: 1.5;
}

.transfer-actions {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 7px;
  margin-block-start: 8px;
}

.transfer-actions .button {
  flex: 1 1 145px;
}

.transfer-note {
  margin-inline-end: auto;
  color: var(--ink-faint);
  font-size: 0.65rem;
}

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

.catalog-item {
  display: grid;
  min-height: 132px;
  align-content: start;
  justify-items: start;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms var(--ease-standard), box-shadow 160ms var(--ease-standard), transform 160ms var(--ease-out);
}

.catalog-item {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-content: center;
  align-items: center;
  text-align: left;
}

.catalog-item > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.catalog-item > svg:last-child {
  width: 18px;
  height: 18px;
  color: var(--ink-faint);
}

.catalog-icon,
.integration-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  color: var(--forest-700);
  background: var(--mint-100);
}

.catalog-icon svg,
.integration-icon svg {
  width: 20px;
  height: 20px;
}

.catalog-item:hover {
  border-color: rgba(11, 43, 27, 0.24);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.catalog-item.is-selected,
.catalog-item[aria-pressed="true"] {
  border-color: var(--lime-500);
  box-shadow: 0 0 0 3px rgba(147, 201, 75, 0.15);
}

.catalog-item strong {
  color: var(--forest-900);
  font-size: 0.84rem;
  line-height: 1.25;
}

.catalog-item small {
  color: var(--ink-faint);
  font-size: 0.69rem;
  line-height: 1.4;
}

.field {
  display: grid;
  min-width: 0;
  gap: 7px;
  margin-block-end: 17px;
}

.field:last-child {
  margin-block-end: 0;
}

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

.field-label,
.field > label {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 690;
  letter-spacing: 0.01em;
}

.field small,
.field .field-help {
  color: var(--ink-faint);
  font-size: 0.68rem;
  line-height: 1.45;
}

.toggle-field {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-block-end: 17px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
}

.toggle-field > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.toggle-field strong {
  color: var(--ink);
  font-size: 0.76rem;
}

.toggle-field small {
  color: var(--ink-faint);
  font-size: 0.66rem;
  line-height: 1.4;
}

.toggle-field input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  opacity: 0;
}

.toggle-field i {
  position: relative;
  width: 44px;
  height: 26px;
  flex: 0 0 44px;
  border-radius: var(--radius-pill);
  background: #ccd5cf;
  transition: background 160ms var(--ease-standard);
}

.toggle-field i::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(7, 31, 19, 0.18);
  content: "";
  transition: transform 180ms var(--ease-out);
}

.toggle-field input:checked + i {
  background: var(--forest-700);
}

.toggle-field input:checked + i::after {
  transform: translateX(18px);
}

.toggle-field:has(input:focus-visible) {
  outline: 3px solid var(--lime-500);
  outline-offset: 3px;
}

.editor-callout {
  display: grid;
  width: 100%;
  min-height: 74px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin-block-start: 4px;
  padding: 12px;
  border: 1px solid rgba(43, 103, 70, 0.12);
  border-radius: 14px;
  color: var(--ink);
  background: var(--mint-100);
  text-align: left;
}

.editor-callout > span:first-child {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: var(--forest-700);
  background: rgba(255, 255, 255, 0.64);
}

.editor-callout > span:first-child svg {
  width: 18px;
  height: 18px;
}

.editor-callout strong,
.editor-callout p {
  margin: 0;
}

.editor-callout strong {
  font-size: 0.76rem;
}

.editor-callout p {
  margin-block-start: 2px;
  color: var(--ink-faint);
  font-size: 0.66rem;
  line-height: 1.4;
}

.editor-callout--button {
  cursor: pointer;
  transition: border-color 160ms var(--ease-standard), background 160ms var(--ease-standard), transform 160ms var(--ease-out);
}

.editor-callout--button:hover {
  border-color: rgba(43, 103, 70, 0.26);
  background: var(--mint-200);
  transform: translateY(-1px);
}

.editor-callout--button > svg:last-child {
  width: 17px;
  height: 17px;
  color: var(--forest-600);
}

.quicklink-editor {
  display: grid;
  gap: 11px;
  margin-block-start: 18px;
}

.quicklink-editor-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.quicklink-editor-heading p {
  margin: 0;
}

.quicklink-editor-heading small {
  display: block;
  max-width: 34rem;
  margin-block-start: 3px;
  color: var(--ink-faint);
  font-size: 0.65rem;
  line-height: 1.4;
}

.quicklink-editor-heading > span {
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  color: var(--forest-700);
  background: var(--mint-100);
  font-size: 0.62rem;
  font-weight: 760;
}

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

.quicklink-edit-row {
  --quicklink-editor-accent: var(--forest-600);
  --quicklink-editor-soft: var(--mint-100);
  display: grid;
  grid-template-columns: 30px 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 2px 0 0 transparent;
  transition: border-color 150ms var(--ease-standard), box-shadow 150ms var(--ease-standard), opacity 150ms var(--ease-standard), transform 180ms var(--ease-out);
}

.quicklink-edit-row[data-link-accent="green"] {
  --quicklink-editor-accent: #246443;
  --quicklink-editor-soft: rgba(215, 234, 220, 0.85);
}

.quicklink-edit-row[data-link-accent="lime"] {
  --quicklink-editor-accent: #659a28;
  --quicklink-editor-soft: rgba(200, 235, 135, 0.42);
}

.quicklink-edit-row[data-link-accent="blue"] {
  --quicklink-editor-accent: #39749c;
  --quicklink-editor-soft: rgba(218, 236, 247, 0.8);
}

.quicklink-edit-row[data-link-accent="coral"] {
  --quicklink-editor-accent: #c85642;
  --quicklink-editor-soft: rgba(255, 229, 223, 0.9);
}

.quicklink-edit-row[data-link-accent="violet"] {
  --quicklink-editor-accent: #7456a5;
  --quicklink-editor-soft: rgba(235, 226, 248, 0.86);
}

.quicklink-edit-row:not([data-link-accent="neutral"]) {
  border-color: color-mix(in srgb, var(--quicklink-editor-accent) 24%, transparent);
  box-shadow: inset 3px 0 0 var(--quicklink-editor-accent);
}

.quicklink-edit-row.is-dragging {
  z-index: 2;
  opacity: 0.7;
  box-shadow: 0 16px 34px rgba(7, 31, 19, 0.16), inset 3px 0 0 var(--quicklink-editor-accent);
  transform: scale(1.015);
}

.quicklink-edit-row.is-reordered {
  border-color: rgba(101, 154, 40, 0.5);
  box-shadow: 0 0 0 3px rgba(147, 201, 75, 0.12);
}

.quicklink-order-control {
  display: grid;
  justify-items: center;
  gap: 2px;
}

.quicklink-order-control > span {
  color: var(--ink-faint);
  font-size: 0.56rem;
  font-weight: 760;
  line-height: 1;
}

.quicklink-drag-handle,
.quicklink-order-button,
.quicklink-icon-option,
.quicklink-accent-option {
  appearance: none;
  border: 0;
  cursor: pointer;
}

.quicklink-drag-handle {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border-radius: 9px;
  color: var(--ink-faint);
  background: transparent;
  cursor: grab;
  touch-action: none;
}

.quicklink-drag-handle:hover {
  color: var(--forest-700);
  background: var(--mint-100);
}

.quicklink-drag-handle:active {
  cursor: grabbing;
}

.quicklink-drag-handle svg {
  width: 18px;
  height: 18px;
}

.quicklink-icon-preview {
  color: var(--quicklink-editor-accent) !important;
  background: var(--quicklink-editor-soft) !important;
}

.quicklink-edit-fields {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(110px, 0.8fr) minmax(150px, 1.3fr);
  gap: 7px;
}

.quicklink-row-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.quicklink-order-button {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--forest-700);
  background: rgba(255, 255, 255, 0.82);
}

.quicklink-order-button:hover:not(:disabled) {
  border-color: rgba(43, 103, 70, 0.25);
  background: var(--mint-100);
}

.quicklink-order-button:disabled {
  opacity: 0.28;
  cursor: default;
}

.quicklink-order-button svg {
  width: 15px;
  height: 15px;
}

.quicklink-chevron-up {
  transform: rotate(-90deg);
}

.quicklink-chevron-down {
  transform: rotate(90deg);
}

.quicklink-remove-button {
  width: 32px;
  min-width: 32px;
  height: 32px;
  color: #a53d2a;
  background: var(--coral-100);
}

.quicklink-add-button {
  margin-block-start: 2px;
}

.quicklink-edit-row .tool-icon {
  width: 38px;
  height: 38px;
}

.quicklink-edit-row .field {
  margin: 0;
}

.quicklink-edit-row input {
  min-height: 40px;
  padding: 8px 10px;
  font-size: 0.72rem;
}

.quicklink-style-picker {
  grid-column: 2 / -1;
  border-block-start: 1px solid rgba(11, 43, 27, 0.075);
}

.quicklink-style-picker summary {
  display: flex;
  min-height: 32px;
  align-items: center;
  gap: 8px;
  padding-block-start: 7px;
  color: var(--ink-faint);
  cursor: pointer;
  list-style: none;
  font-size: 0.63rem;
  font-weight: 670;
}

.quicklink-style-picker summary::-webkit-details-marker {
  display: none;
}

.quicklink-style-picker summary strong {
  overflow: hidden;
  margin-inline-start: auto;
  color: var(--quicklink-editor-accent);
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quicklink-style-picker summary > svg {
  width: 14px;
  height: 14px;
  transition: transform 160ms var(--ease-out);
}

.quicklink-style-picker[open] summary > svg {
  transform: rotate(90deg);
}

.quicklink-style-options {
  display: grid;
  gap: 12px;
  padding: 8px 0 4px;
}

.quicklink-option-label {
  display: block;
  margin-block-end: 6px;
  color: var(--forest-800);
  font-size: 0.62rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quicklink-icon-palette {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 5px;
}

.quicklink-icon-option {
  display: grid;
  min-width: 0;
  min-height: 54px;
  place-items: center;
  gap: 3px;
  padding: 6px 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--forest-700);
  background: rgba(255, 255, 255, 0.76);
}

.quicklink-icon-option:hover,
.quicklink-icon-option.is-selected {
  border-color: var(--quicklink-editor-accent);
  color: var(--quicklink-editor-accent);
  background: var(--quicklink-editor-soft);
}

.quicklink-icon-option.is-selected {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--quicklink-editor-accent) 14%, transparent);
}

.quicklink-icon-option svg {
  width: 18px;
  height: 18px;
}

.quicklink-icon-option span {
  overflow: hidden;
  max-width: 100%;
  font-size: 0.55rem;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quicklink-accent-palette {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
  gap: 5px;
}

.quicklink-accent-option {
  display: flex;
  min-width: 0;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.76);
  font-size: 0.58rem;
  font-weight: 680;
}

.quicklink-accent-option i {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: #d9dfda;
  box-shadow: 0 0 0 1px rgba(11, 43, 27, 0.12);
}

.quicklink-accent-option--green i { background: #2b6746; }
.quicklink-accent-option--lime i { background: #93c94b; }
.quicklink-accent-option--blue i { background: #39749c; }
.quicklink-accent-option--coral i { background: #dc674f; }
.quicklink-accent-option--violet i { background: #7456a5; }

.quicklink-accent-option:hover,
.quicklink-accent-option.is-selected {
  border-color: var(--quicklink-editor-accent);
  color: var(--forest-900);
  background: var(--quicklink-editor-soft);
}

.quicklink-accent-option.is-selected {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--quicklink-editor-accent) 14%, transparent);
}

.integration-list {
  display: grid;
  gap: 12px;
}

.integration-setup {
  display: grid;
  gap: 14px;
  padding: 15px;
  border: 1px solid rgba(43, 103, 70, 0.16);
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(226, 240, 229, 0.88), rgba(244, 248, 241, 0.96));
  box-shadow: 0 10px 28px rgba(7, 31, 19, 0.04);
}

.integration-setup__intro {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
}

.integration-setup__intro > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  color: var(--lime-300);
  background: var(--forest-900);
  box-shadow: 0 7px 18px rgba(7, 31, 19, 0.13);
}

.integration-setup__intro svg {
  width: 18px;
  height: 18px;
}

.integration-setup__intro strong,
.integration-setup__intro p,
.integration-setup__help {
  margin: 0;
}

.integration-setup__intro strong {
  color: var(--forest-900);
  font-size: 0.8rem;
}

.integration-setup__intro p {
  margin-block-start: 2px;
  color: var(--ink-soft);
  font-size: 0.67rem;
  line-height: 1.4;
}

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

.integration-setup__fields .field {
  gap: 6px;
  margin: 0;
}

.integration-setup__fields input {
  min-height: 42px;
  background: rgba(255, 255, 255, 0.88);
}

.integration-setup__token {
  gap: 6px;
  margin: 0;
}

.integration-setup__token input {
  min-height: 42px;
  background: rgba(255, 255, 255, 0.88);
}

.integration-setup__token small {
  color: var(--ink-faint);
  font-size: 0.64rem;
  line-height: 1.4;
}

.integration-setup__help {
  color: var(--ink-faint);
  font-size: 0.64rem;
  line-height: 1.4;
}

.integration-setup--blocked {
  border-color: rgba(176, 77, 54, 0.18);
  background: linear-gradient(135deg, rgba(252, 234, 228, 0.86), rgba(250, 247, 241, 0.96));
  box-shadow: none;
}

.integration-setup--blocked .integration-setup__intro > span {
  color: #9f3e2c;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: none;
}

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

.integration-card > header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 246, 242, 0.54);
}

.integration-card > header > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.integration-card > header strong,
.integration-card > header small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.integration-card > header strong {
  color: var(--forest-900);
  font-size: 0.8rem;
}

.integration-card > header small {
  color: var(--ink-faint);
  font-size: 0.66rem;
}

.integration-fields {
  padding: 16px;
}

.connection-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  color: var(--ink-faint);
  background: #edf0ec;
  font-size: 0.63rem;
  font-weight: 700;
  white-space: nowrap;
}

.connection-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9eaaa2;
}

.connection-badge.is-connected {
  color: var(--forest-700);
  background: var(--mint-100);
}

.connection-badge.is-connected i {
  background: var(--lime-500);
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
  outline: 0;
  background: #fff;
  box-shadow: 0 1px 0 rgba(7, 31, 19, 0.02) inset;
  transition: border-color 150ms var(--ease-standard), box-shadow 150ms var(--ease-standard), background 150ms var(--ease-standard);
}

textarea {
  min-height: 102px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #8c9991;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(11, 43, 27, 0.27);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--forest-600);
  box-shadow: 0 0 0 3px rgba(43, 103, 70, 0.12);
}

input:disabled,
select:disabled,
textarea:disabled {
  color: var(--ink-faint);
  background: #eef1ed;
  cursor: not-allowed;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--forest-900);
  background: var(--mint-100);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  transition: border-color 160ms var(--ease-standard), color 160ms var(--ease-standard), background 160ms var(--ease-standard), box-shadow 160ms var(--ease-standard), transform 160ms var(--ease-out);
}

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

.button:hover:not(:disabled) {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.button:active:not(:disabled) {
  box-shadow: none;
  transform: translateY(0) scale(0.985);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.button--primary {
  color: #fff;
  background: var(--forest-800);
}

.button--primary:hover:not(:disabled) {
  background: var(--forest-900);
}

.button--ghost {
  border-color: var(--line);
  color: var(--ink-soft);
  background: transparent;
}

.button--ghost:hover:not(:disabled) {
  border-color: var(--line-strong);
  color: var(--forest-900);
  background: #fff;
}

.button--danger {
  border-color: rgba(220, 103, 79, 0.18);
  color: #a53d2a;
  background: var(--coral-100);
}

.button--danger:hover:not(:disabled) {
  color: #fff;
  background: var(--coral-500);
}

.button--full {
  width: 100%;
}

.button--quiet {
  color: var(--ink-faint);
  background: transparent;
}

.button-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 650ms linear infinite;
}

.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--mint-100);
}

.segmented > button,
.segmented > label {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 0;
  border-radius: 9px;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 680;
  white-space: nowrap;
}

.segmented > button.is-active,
.segmented > button[aria-pressed="true"],
.segmented > label:has(input:checked) {
  color: var(--forest-900);
  background: #fff;
  box-shadow: 0 3px 10px rgba(7, 31, 19, 0.07);
}

.segmented input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  opacity: 0;
}

.toast-region {
  position: fixed;
  z-index: 100;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  display: grid;
  width: min(300px, calc(100vw - 28px));
  gap: 6px;
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 7px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--forest-900);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(7, 31, 19, 0.1);
  backdrop-filter: blur(14px);
  font-size: 0.7rem;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-5px) scale(0.99);
  transition: opacity 150ms var(--ease-standard), transform 170ms var(--ease-out);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast > span:first-child {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 8px;
  color: var(--forest-700);
  background: var(--mint-100);
}

.toast > span:first-child svg {
  width: 13px;
  height: 13px;
}

.toast p {
  margin: 0;
  line-height: 1.35;
}

.toast button {
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: var(--ink-faint);
  background: transparent;
  cursor: pointer;
}

.toast button:hover {
  color: var(--forest-900);
  background: var(--mint-100);
}

.toast button svg {
  width: 14px;
  height: 14px;
}

.toast--error > span:first-child {
  color: #9f3e2c;
  background: var(--coral-100);
}

.toast::before {
  display: none;
}

.toast.is-error::before {
  background: var(--coral-400);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
}

.loading-screen {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  color: var(--forest-900);
  background: var(--offwhite);
  transition: visibility 260ms var(--ease-standard), opacity 260ms var(--ease-standard);
}

.loading-screen[aria-hidden="true"] {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.loading-mark {
  position: relative;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 21px;
  color: var(--lime-300);
  background: var(--forest-900);
  box-shadow: 0 16px 38px rgba(7, 31, 19, 0.18);
  animation: loading-breathe 1.6s ease-in-out infinite;
}

.loading-mark::before {
  width: 18px;
  height: 29px;
  border-radius: 100% 0 100% 100%;
  background: currentColor;
  content: "";
  transform: translate(3px, -1px) rotate(39deg);
}

@keyframes loading-breathe {
  50% {
    box-shadow: 0 18px 44px rgba(7, 31, 19, 0.24), 0 0 0 8px rgba(147, 201, 75, 0.1);
    transform: translateY(-3px);
  }
}

[data-tooltip] {
  --tooltip-offset: 9px;
}

[data-tooltip]::before,
[data-tooltip]::after {
  position: absolute;
  z-index: 130;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 130ms var(--ease-standard), transform 130ms var(--ease-out), visibility 130ms var(--ease-standard);
}

[data-tooltip]::after {
  left: 50%;
  bottom: calc(100% + 10px);
  max-width: min(230px, 70vw);
  padding: 7px 9px;
  border-radius: 8px;
  color: #fff;
  background: var(--forest-950);
  box-shadow: 0 8px 22px rgba(7, 31, 19, 0.17);
  content: attr(data-tooltip);
  font-size: 0.67rem;
  font-weight: 620;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  transform: translate(-50%, 4px);
}

[data-tooltip]::before {
  left: 50%;
  bottom: calc(100% + 4px);
  border: 5px solid transparent;
  border-top-color: var(--forest-950);
  content: "";
  transform: translate(-50%, 4px);
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::before,
[data-tooltip]:focus-visible::after {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@container (max-width: 420px) {
  .task-tabs {
    min-height: 42px;
    margin-block-end: 8px;
    padding: 3px;
  }

  .task-tabs > button,
  .task-tabs > [role="tab"] {
    min-height: 34px;
    padding: 6px 10px;
  }

  .pulse-score {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px;
  }

  .pulse-score > span {
    width: 68px;
  }

  .pulse-score p {
    -webkit-line-clamp: 2;
  }

  .deadline-row {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 8px;
    padding-inline: 4px;
  }

  .deadline-state {
    display: none;
  }

  .area-summary {
    align-items: center;
  }

  .week-strip {
    grid-template-columns: repeat(var(--week-days, 7), minmax(96px, 1fr));
  }

  .next-events.has-two {
    grid-template-columns: minmax(0, 1fr);
  }

  .next-events.has-two:not(.is-tall) > .next-event-card:nth-child(2) {
    display: none;
  }

  .next-event-time {
    min-width: 62px;
    padding-inline: 8px;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .hero-title {
    font-size: clamp(2rem, 13cqi, 4rem);
  }

  .hero-summary {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

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

  .agenda-item {
    grid-template-columns: 54px 6px minmax(0, 1fr);
    gap: 9px;
    padding-inline: 4px;
  }

  .task-item {
    grid-template-columns: 26px minmax(0, 1fr);
  }

  .task-item .task-badge {
    display: none;
  }

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

  .brief-stats > div,
  .brief-copy {
    min-height: 42px;
  }

  .brief-copy {
    width: 100%;
  }

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

  .brief-row {
    grid-template-columns: 52px minmax(0, 1fr) auto;
  }

  .quality-overview {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 8px;
  }

  .quality-score {
    width: 68px;
    height: 68px;
  }

  .quality-score::before {
    width: 53px;
    height: 53px;
  }

  .gap-metrics > div {
    padding-inline: 4px;
  }

  .gap-chips i:not(:first-child) {
    display: none;
  }

  .team-row {
    grid-template-columns: 30px minmax(0, 1fr) 72px 24px;
    gap: 7px;
  }

  .team-summary > div {
    display: grid;
    gap: 1px;
  }

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

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

  .clockify-total-block > strong {
    font-size: clamp(1.75rem, 12cqi, 2.65rem);
  }

  .clockify-entry {
    grid-template-columns: 7px minmax(0, 1fr) auto;
    gap: 7px;
  }

  .clockify-billable {
    display: none;
  }

  .clockify-duration {
    grid-column: 3;
  }

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

  .clockify-team-summary > div:last-child {
    display: none;
  }

  .clockify-member {
    grid-template-columns: 30px minmax(0, 1fr) auto 7px;
    gap: 7px;
  }

  .clockify-member-track {
    display: none;
  }

  .clockify-member-time {
    grid-column: 3;
  }

  .analytics-overview,
  .performance-head {
    flex-direction: column;
    align-items: stretch;
  }

  .analytics-periods {
    align-self: flex-start;
  }

  .analytics-billable {
    grid-template-columns: auto auto minmax(42px, 1fr);
  }

  .analytics-billable > small {
    display: none;
  }

  .analytics-area-row {
    grid-template-columns: 7px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .analytics-area-track {
    display: none;
  }

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

  .performance-area-head,
  .performance-area-row {
    grid-template-columns: minmax(84px, 1fr) 48px 64px;
    gap: 7px;
  }

  .performance-area-measure {
    display: block;
  }

  .performance-area-measure > i {
    display: none;
  }

  .performance-area-measure strong {
    display: block;
  }

  .performance-people-head,
  .performance-person-row {
    grid-template-columns: 30px minmax(0, 1fr) 42px 72px;
    gap: 7px;
  }

  .performance-person-copy small {
    display: none;
  }

  .performance-person-stack {
    height: 6px;
  }
}

@media (max-width: 1179px) {
  :root {
    --page-pad: clamp(18px, 3vw, 34px);
  }

  .dashboard-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-auto-rows: clamp(78px, 9.3vw, 104px);
  }

  .tile {
    grid-column: span min(var(--w, 3), 8);
  }

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

@media (max-width: 719px) {
  :root {
    --page-pad: 15px;
    --grid-gap: 11px;
  }

  .topbar {
    min-height: 68px;
    gap: 12px;
    padding-block: 10px;
  }

  .brand {
    gap: 9px;
  }

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

  .brand-copy {
    max-width: 132px;
    font-size: 0.91rem;
  }

  .brand-copy .eyebrow {
    display: none;
  }

  .sync-pill {
    min-height: 38px;
    padding-inline: 11px;
    font-size: 0.7rem;
  }

  .topbar-actions {
    gap: 6px;
  }

  .topbar .icon-button {
    width: 40px;
    min-width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .page {
    padding-block-start: 10px;
    padding-block-end: 96px;
  }

  .welcome-row {
    display: grid;
    gap: 13px;
    margin-block-end: 22px;
  }

  .welcome-title {
    font-size: clamp(2rem, 11vw, 3.25rem);
  }

  .welcome-meta {
    font-size: 0.83rem;
  }

  .dashboard-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 78px;
  }

  .tile {
    grid-column: span min(var(--w, 4), 4);
    padding: 16px;
    border-radius: 20px;
  }

  .tile-head {
    margin-block-end: 12px;
  }

  .tile-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 13px;
  }

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

  .tile--quicklinks .tile-body {
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .tile--quicklinks .tool-link {
    min-height: 58px;
  }

  .tile--focus .hero-layout {
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 12px;
  }

  .tile--focus .hero-title {
    font-size: clamp(1.15rem, 6cqi, 1.55rem);
    line-height: 1.02;
  }

  .tile--focus .hero-copy > p:last-child {
    display: none;
  }

  .tile--focus .focus-progress {
    min-width: 0;
    padding: 10px;
  }

  .tile--focus .focus-progress > span {
    display: grid;
    gap: 0;
  }

  .tile--focus .focus-progress strong {
    font-size: 1.1rem;
  }

  .status-row {
    min-height: 35px;
    padding-block: 3px;
  }

  .edit-fab {
    left: max(13px, env(safe-area-inset-left));
    bottom: max(13px, env(safe-area-inset-bottom));
  }

  .floating-actions {
    left: max(13px, env(safe-area-inset-left));
    bottom: max(13px, env(safe-area-inset-bottom));
  }

  .edit-toolbar {
    right: max(13px, env(safe-area-inset-right));
    bottom: max(13px, env(safe-area-inset-bottom));
    left: max(13px, env(safe-area-inset-left));
    min-height: 52px;
    gap: 8px;
    padding: 5px;
    border-radius: 17px;
  }

  .edit-toolbar > span,
  .edit-toolbar > strong {
    display: none;
  }

  .drawer-backdrop {
    align-items: flex-end;
    padding: 7px;
  }

  .drawer {
    top: auto;
    right: 7px;
    bottom: 7px;
    left: 7px;
    width: auto;
    height: min(84vh, 720px);
    border-radius: 23px 23px 17px 17px;
    transform: translateY(0);
  }

.drawer[aria-hidden="true"],
  .drawer-backdrop[aria-hidden="true"] .drawer {
    transform: translateY(calc(100% + 16px));
  }

  .drawer-header,
  .drawer-footer {
    padding: 15px 16px;
  }

  .drawer-body {
    padding: 18px 16px;
  }

  .modal {
    align-items: flex-end;
    padding: 7px;
  }

  .modal-card {
    max-height: 91vh;
    border-radius: 23px 23px 17px 17px;
  }

  .modal-grid,
  .field-row,
  .integration-setup__fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .quicklink-edit-row {
    grid-template-columns: 30px 38px minmax(0, 1fr);
    align-items: start;
  }

  .quicklink-order-control,
  .quicklink-icon-preview {
    margin-block-start: 2px;
  }

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

  .quicklink-row-actions,
  .quicklink-style-picker {
    grid-column: 2 / -1;
  }

  .quicklink-row-actions {
    justify-content: flex-end;
  }

  .command-modal {
    padding: 7px;
    place-items: end center;
  }

  .command-card {
    width: 100%;
    max-height: 91dvh;
    border-radius: 23px 23px 17px 17px;
  }

  .command-searchbar {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 10px 12px;
  }

  .command-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .command-head {
    padding-inline: 12px;
  }

  .command-result {
    grid-template-columns: 38px minmax(0, 1fr) 16px;
  }

  .command-result-kind {
    display: none;
  }

  .command-footer span:last-child {
    display: none;
  }

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

  .transfer-note {
    display: none;
  }

  .toast-region {
    top: max(12px, env(safe-area-inset-top));
    right: 12px;
    width: min(300px, calc(100vw - 24px));
  }

  [data-tooltip]::before,
  [data-tooltip]::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .sync-pill {
    width: 40px;
    min-width: 40px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }

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

  .tool-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 68px;
  }

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

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

  .catalog-item {
    min-height: 104px;
  }

  .tool-link {
    min-height: 78px;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px;
    font-size: 0.72rem;
  }

  .tool-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .edit-toolbar .button {
    min-width: 44px;
    padding-inline: 11px;
  }

  .edit-toolbar .button > span:last-child {
    display: none;
  }
}

@media (hover: none) {
  .tile:hover,
  .tool-link:hover,
  .catalog-item:hover,
  .button:hover,
  .edit-fab:hover,
  .icon-button:hover,
  .tile-edit:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .tile,
  .button,
  .icon-button,
  .edit-fab,
  input,
  select,
  textarea {
    border: 1px solid CanvasText;
  }

  .sync-pill::before,
  .tool-link::after,
  .toast::before {
    background: CanvasText;
  }
}

@media print {
  @page {
    margin: 12mm;
  }

  body {
    color: #111;
    background: #fff;
  }

  .ambient,
  .topbar-actions,
  .floating-actions,
  .edit-fab,
  .edit-toolbar,
  .tile-drag,
  .tile-resize,
  .tile-edit,
  .drawer-backdrop,
  .modal,
  .command-modal,
  .toast-region,
  .loading-screen {
    display: none !important;
  }

  .topbar {
    position: static;
    padding: 0 0 8mm;
    border-bottom: 1px solid #ccc;
    background: #fff;
    box-shadow: none;
    backdrop-filter: none;
  }

  .page {
    width: 100%;
    padding: 8mm 0 0;
  }

  .dashboard-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 17mm;
    gap: 4mm;
  }

  .tile {
    grid-column: span min(var(--w, 3), 12);
    break-inside: avoid;
    border: 1px solid #d7d7d7;
    box-shadow: none;
    print-color-adjust: exact;
  }

  .tile:hover {
    transform: none;
  }
}
