/*
 * FOF Systems · Tropical Studio
 * Load after styles.css. Existing application overrides are intentionally scoped
 * to the authenticated shell; new experience components are class-scoped.
 * No external fonts, images or assets. Motion is transform/opacity only, <220ms.
 */

body.has-app-shell {
  color-scheme: light;
  --canvas: #f6f7fb;
  --surface: #ffffff;
  --surface-subtle: #f8f9fc;
  --ink: #25334a;
  --ink-strong: #172640;
  --ink-soft: #657189;
  --muted: #657189;
  --line: #e5e9f1;
  --border: #e5e9f1;
  --line-strong: #cbd3e0;
  --teal: #087f77;
  --teal-dark: #06665f;
  --teal-soft: #e4f6f1;
  --navy: #172640;
  --blue: #5765a9;
  --blue-soft: #eef0fc;
  --amber: #85521b;
  --amber-soft: #fff2d9;
  --red: #ad4236;
  --red-soft: #fff0eb;
  --green: #436422;
  --green-soft: #f0f7db;
  --violet: #7550a7;
  --violet-soft: #f1ebfc;
  --lime: #d6ef8d;
  --coral: #ee8a72;
  --nav-text: #526178;
  --nav-muted: #7b8699;
  --nav-active: #087f77;
  --status-open: #087f77;
  --status-open-soft: #e4f6f1;
  --status-progress: #5d7d2b;
  --status-progress-soft: #f0f7db;
  --status-returned: #b14a38;
  --status-returned-soft: #fff0eb;
  --status-review: #7550a7;
  --status-review-soft: #f1ebfc;
  --status-closed: #087368;
  --status-closed-soft: #e4f5ed;
  --status-cancelled: #667085;
  --status-cancelled-soft: #f0f2f7;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 4px rgba(28, 42, 68, .025), 0 10px 28px rgba(28, 42, 68, .045);
  --shadow: 0 20px 60px rgba(28, 42, 68, .12);
  --ease-out: cubic-bezier(.2, .75, .3, 1);
  --motion-out: cubic-bezier(.2, .75, .3, 1);
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Accessible, restrained interactions override the original color transitions. */
body.has-app-shell :is(button, a, input, select, textarea, [role="button"]) {
  -webkit-tap-highlight-color: transparent;
}
body.has-app-shell button:not(:disabled),
body.has-app-shell :is(.nav-item, .work-view-button, .work-card-interactive, .kanban-card, .task-drawer-close, .work-card-affordance > span:last-child) {
  transition: transform 170ms var(--ease-out), opacity 170ms var(--ease-out);
}
body.has-app-shell :is(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid #087f77;
  outline-offset: 4px;
}
body.has-app-shell :is(button, [role="button"]):not(:disabled):active {
  transform: translateY(1px);
}
body.has-app-shell button:disabled {
  opacity: .5;
  cursor: not-allowed;
}
body.has-app-shell :is(h1, h2, h3, h4) {
  color: var(--ink-strong);
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
body.has-app-shell :is(p, strong, small, label, .work-meta, .nav-label) {
  overflow-wrap: anywhere;
}
body.has-app-shell :is(.eyebrow, .card-kicker) {
  color: var(--teal-dark);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
}
body.has-app-shell .prototype-banner { display: none; }
body.has-app-shell .skip-link { border-radius: 12px; }

/* White, compact sidebar; the 223px rail remains compatible with the shell. */
body.has-app-shell .app-shell {
  min-height: 100vh;
  min-height: 100dvh;
  grid-template-columns: 223px minmax(0, 1fr);
  background: var(--canvas);
}
body.has-app-shell .sidebar {
  position: sticky;
  top: 0;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  padding: 0;
  color: var(--ink);
  background: #fff;
  border-right: 1px solid var(--line);
  box-shadow: 4px 0 24px rgba(28, 42, 68, .018);
  scrollbar-width: thin;
  scrollbar-color: #d0ddd9 transparent;
}
body.has-app-shell .sidebar-brand {
  position: relative;
  isolation: isolate;
  min-height: 90px;
  flex-shrink: 0;
  gap: .85rem;
  margin: 0;
  padding: 1.35rem 1.3rem;
  background: linear-gradient(125deg, #e7f6ef 0%, #f5f8e8 56%, #fff5ee 100%);
  border-bottom: 1px solid #e7eee7;
  overflow: hidden;
}
body.has-app-shell .sidebar-brand::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -25px;
  top: -35px;
  width: 105px;
  aspect-ratio: 1;
  border: 18px solid rgba(8, 127, 119, .055);
  border-radius: 50%;
  pointer-events: none;
}
body.has-app-shell .sidebar-brand .brand-symbol.compact {
  width: 33px;
  height: 33px;
  background: linear-gradient(135deg, #39ac95, #08776f);
  border-radius: 10px;
  box-shadow: 0 5px 14px rgba(8, 127, 119, .16);
}
body.has-app-shell .brand-wordmark {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .27rem;
  min-width: 0;
  color: var(--ink-strong);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -.045em;
  white-space: normal;
}
body.has-app-shell .brand-wordmark strong {
  font-size: 1.23rem;
  font-weight: 850;
  letter-spacing: -.055em;
}
body.has-app-shell .navigation {
  gap: .3rem;
  padding: 1.25rem .8rem;
}
body.has-app-shell :is(.nav-overline, .navigation-section-title, .nav-section-heading) {
  margin: .6rem .65rem .5rem;
  color: #7b8597;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  line-height: 1.5;
}
body.has-app-shell .navigation-section + .navigation-section {
  margin-top: .65rem;
  padding-top: .65rem;
  border-top: 1px solid var(--line);
}
body.has-app-shell .nav-item {
  min-height: 43px;
  gap: .75rem;
  padding: .67rem .78rem;
  color: #536178;
  background: transparent;
  border-radius: 12px;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.4;
}
body.has-app-shell .nav-item:not(.active):hover {
  color: var(--teal-dark);
  background: #f4f8f6;
  transform: translateX(2px);
}
body.has-app-shell .nav-item.active {
  color: #065b53;
  background: linear-gradient(110deg, #dff3e9, #edf7e7);
  box-shadow: inset 0 0 0 1px #d4e9dc;
  font-weight: 750;
}
body.has-app-shell .nav-item.active::before { display: none; }
body.has-app-shell .nav-icon {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
  color: #778397;
}
body.has-app-shell .nav-item.active .nav-icon { color: var(--teal-dark); }
body.has-app-shell .sidebar-footer {
  display: grid;
  flex-shrink: 0;
  gap: .35rem .6rem;
  margin-top: auto;
  padding: 1.15rem 1.2rem;
  background: #fcfdfc;
  border-top: 1px solid var(--line);
}
body.has-app-shell .sidebar-footer strong {
  color: var(--ink-strong);
  font-size: .75rem;
  white-space: normal;
  overflow: visible;
}
body.has-app-shell .sidebar-footer small { color: var(--ink-soft); }
body.has-app-shell .sidebar-footer .link-button {
  min-height: 30px;
  padding-block: .3rem;
  color: #68748a;
  font-size: .75rem;
  text-decoration: none;
}
body.has-app-shell .sidebar-footer .link-button:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}
body.has-app-shell .status-dot {
  background: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-soft);
}
.sidebar-tip {
  display: grid;
  gap: .4rem;
  margin: .25rem 1rem 1.2rem;
  padding: 1rem;
  color: #536446;
  background: linear-gradient(135deg, #f0f7db, #f7faed);
  border: 1px solid #e0eac5;
  border-radius: 16px;
  font-size: .75rem;
  line-height: 1.6;
}
.sidebar-tip :is(p, strong) { margin: 0; }
.sidebar-tip strong { color: #3c5324; font-size: .77rem; }
.sidebar-tip button { color: #365921; }

/* Topbar is quiet so the dashboard can lead. */
body.has-app-shell .topbar {
  min-height: 78px;
  gap: 1rem;
  padding: .85rem clamp(1.1rem, 2.4vw, 2.5rem);
  background: #fff;
  border-bottom: 1px solid var(--line);
  backdrop-filter: none;
}
body.has-app-shell .tenant-control {
  flex: 0 1 215px;
  min-width: 0;
}
body.has-app-shell :is(.tenant-control small, .context-control label) {
  color: #788297;
  font-size: .75rem;
  letter-spacing: .035em;
}
body.has-app-shell .tenant-control strong {
  max-width: none;
  white-space: normal;
  overflow: visible;
  font-size: .77rem;
  line-height: 1.35;
}
body.has-app-shell .topbar-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  color: #087368;
  background: #ecf7f2;
  border-radius: 10px;
}
body.has-app-shell .topbar-separator { height: 30px; background: var(--line); }
body.has-app-shell .context-control {
  flex: 0 1 255px;
  max-width: 255px;
  min-width: 0;
}
body.has-app-shell .context-control select {
  max-width: 100%;
  padding-block: .15rem;
  color: var(--ink-strong);
  font-size: .77rem;
}
body.has-app-shell .identity-block {
  flex: 0 0 auto;
  margin-left: auto;
}
body.has-app-shell .identity-initials {
  width: 38px;
  height: 38px;
  color: #6c4294;
  background: #eee7f9;
  border: 3px solid #f8f5fe;
  border-radius: 50%;
  box-shadow: none;
  font-size: .75rem;
}
body.has-app-shell .icon-button {
  color: #56647b;
  background: #f3f5f9;
  border: 1px solid #e7ebf2;
  border-radius: 12px;
}
body.has-app-shell .global-search {
  min-width: 0;
  color: var(--ink-soft);
  background: #f6f7fb;
  border-color: var(--line);
  border-radius: 12px;
}
.topbar-command { margin-left: auto; }
:is(button.topbar-command, .topbar-command > button) {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  min-height: 40px;
  max-width: 100%;
  padding: .55rem .8rem;
  color: #657189;
  background: #f6f7fb;
  border: 1px solid #e5e9f1;
  border-radius: 12px;
  font-size: .75rem;
  line-height: 1.4;
  text-align: left;
}
:is(button.topbar-command, .topbar-command > button):hover {
  color: #087368;
  background: #eef8f3;
}
.topbar-command :is(kbd, .command-key) {
  padding: .12rem .32rem;
  color: #7d8698;
  background: #fff;
  border: 1px solid #e4e8f0;
  border-radius: 5px;
  font-family: inherit;
  font-size: .75rem;
  white-space: nowrap;
}

/* Shared content primitives retain all existing behavior. */
body.has-app-shell .content {
  width: 100%;
  max-width: 1760px;
  padding: clamp(1.35rem, 2.4vw, 2.5rem);
  padding-bottom: 3rem;
}
body.has-app-shell .page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.25rem;
  margin-bottom: 1.65rem;
}
body.has-app-shell .page-header > div { flex: 1 1 22rem; min-width: 0; }
body.has-app-shell :is(.page-header h1, .day-header h1) {
  font-size: clamp(1.85rem, 2.5vw, 2.7rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -.055em;
}
body.has-app-shell .page-header p:not(.eyebrow) {
  max-width: 72ch;
  margin-top: .6rem;
  font-size: .85rem;
  line-height: 1.65;
}
body.has-app-shell :is(.panel, .metric-card, .work-card, .next-action, .calendar-controls, .calendar-entry, .operations-card, .support-resource-card) {
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}
body.has-app-shell .panel { padding: clamp(1.15rem, 1.8vw, 1.55rem); }
body.has-app-shell .panel-header {
  flex-wrap: wrap;
  gap: .65rem 1rem;
  margin-bottom: 1.25rem;
}
body.has-app-shell :is(.panel h2, .panel-title-with-icon h2) {
  font-size: 1.02rem;
  font-weight: 750;
  letter-spacing: -.025em;
}
body.has-app-shell :is(.two-columns, .detail-grid, .day-layout) { gap: 1.3rem; }
body.has-app-shell :is(.day-main, .day-side) { gap: 1.3rem; }
body.has-app-shell .metric-grid { gap: 1rem; margin-bottom: 1.5rem; }
body.has-app-shell .metric-card { padding: 1.2rem 1.35rem; }
body.has-app-shell .metric-card::after { width: 0; }
body.has-app-shell .metric-card:nth-child(4n + 1) { background: #fff5f0; border-color: #f1dfd6; }
body.has-app-shell .metric-card:nth-child(4n + 2) { background: #f3effb; border-color: #e6def3; }
body.has-app-shell .metric-card:nth-child(4n + 3) { background: #f1f7e5; border-color: #e2ebcd; }
body.has-app-shell .metric-card:nth-child(4n) { background: #eaf7f2; border-color: #d6ece1; }
body.has-app-shell .metric-card strong { font-size: 2rem; font-weight: 750; }
body.has-app-shell .context-note {
  flex-wrap: wrap;
  padding: .85rem 1rem;
  color: #67758b;
  background: #eef1f8;
  border: 1px solid #e2e6f0;
  border-radius: 12px;
  font-size: .75rem;
}
body.has-app-shell .context-note strong { color: #4b5971; white-space: normal; }
body.has-app-shell .button {
  min-height: 41px;
  padding: .7rem 1rem;
  border-radius: 12px;
  font-size: .77rem;
  font-weight: 750;
  line-height: 1.4;
  white-space: normal;
}
body.has-app-shell .button.primary,
body.has-app-shell .next-action-content > .button {
  color: #fff;
  background: #087f77;
  border-color: #087f77;
  box-shadow: 0 5px 12px rgba(8, 127, 119, .14);
}
body.has-app-shell .button.primary:not(:disabled):hover,
body.has-app-shell .next-action-content > .button:hover {
  background: #06665f;
  border-color: #06665f;
  transform: translateY(-2px);
}
body.has-app-shell .button.secondary {
  color: #3b5261;
  background: #fff;
  border-color: #dce4e9;
  box-shadow: 0 2px 4px rgba(28, 42, 68, .025);
}
body.has-app-shell .button.secondary:not(:disabled):hover {
  color: #065f58;
  background: #edf8f3;
  border-color: #bddbd0;
}
body.has-app-shell .button.ghost { color: #56627b; background: #f1f3f8; }
body.has-app-shell .button.ghost:not(:disabled):hover { background: #e9edf5; }
body.has-app-shell .button.danger { color: #a33f32; border-color: #eac1b7; }
body.has-app-shell .button.danger:not(:disabled):hover { background: #fff0eb; }
body.has-app-shell .button.full { min-height: 46px; }
body.has-app-shell .view-switch .button.active { color: #fff; background: #087f77; border-color: #087f77; }
body.has-app-shell .progress-track { height: 7px; background: #edf1ee; }
body.has-app-shell .progress-track > span { background: linear-gradient(90deg, #139488, #83bf78); }
body.has-app-shell .section-icon {
  color: #087f77;
  background: #e8f6ee;
  border-radius: 11px;
}
body.has-app-shell .row-icon { color: #078074; background: #eef8f2; border-color: #dbece2; border-radius: 11px; }
body.has-app-shell :is(.later-row, .waiting-row, .risk-row) { padding: .8rem .25rem; border-color: var(--line); }
body.has-app-shell :is(.later-row, .waiting-row):hover { background: #f6faf7; }
body.has-app-shell :is(.later-row strong, .waiting-row strong, .risk-row strong, .priority-copy strong) {
  font-size: .8rem;
  white-space: normal;
  overflow: visible;
}
body.has-app-shell :is(.row-due, .work-next, .kanban-next) { color: var(--ink-soft); }
body.has-app-shell .next-action { min-height: 0; padding: 1.5rem; background: #fff; }
body.has-app-shell .next-action-grid { min-height: 0; }
body.has-app-shell :is(.next-action-alert, .correction-banner) { color: #a73c33; background: #fff0eb; border-color: #f1d2c7; border-radius: 12px; }
body.has-app-shell :is(.responsibility-tag, .risk-tag) { max-width: 100%; font-size: .75rem; white-space: normal; text-align: left; }
body.has-app-shell .responsibility-tag { color: #086f65; background: #e7f6ee; }
body.has-app-shell .responsibility-tag.approval { color: #70449a; background: #f1ebfc; }
body.has-app-shell .risk-tag { color: #ac4436; background: #fff0eb; }
body.has-app-shell :is(.empty-state, .loading-state, .error-state) {
  min-height: 180px;
  border-radius: 20px;
  font-size: .84rem;
}
body.has-app-shell .empty-state { background: #fafbfe; border-color: #d7deea; }
body.has-app-shell .error-state { color: #a13c32; background: #fff5f1; border-color: #edc6ba; }

/* Tropical hero: intentionally dominant, with CSS-only orbit artwork. */
.experience-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, .28fr);
  align-items: center;
  gap: 1.5rem;
  min-width: 0;
  margin-bottom: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.55rem);
  color: #fff;
  background: radial-gradient(ellipse at 83% 14%, rgba(113, 181, 128, .22), transparent 45%), linear-gradient(112deg, #103f43 0%, #075954 60%, #087269 100%);
  border: 1px solid #186963;
  border-radius: 26px;
  box-shadow: 0 16px 36px rgba(10, 72, 67, .13);
  overflow: hidden;
}
.experience-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto -3rem -9rem auto;
  width: 29rem;
  aspect-ratio: 1;
  border: 1px solid rgba(203, 238, 207, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(203, 238, 207, .035), 0 0 0 90px rgba(203, 238, 207, .025);
  pointer-events: none;
}
.experience-hero > :not(.hero-orbit) { position: relative; z-index: 1; min-width: 0; }
.experience-overline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .85rem;
  color: #a8d7cb;
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .14em;
  line-height: 1.5;
  text-transform: uppercase;
}
.experience-hero .experience-overline { color: #c9e6dc; }
.experience-hero .experience-overline::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  background: #d6ef8d;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(214, 239, 141, .12);
}
body.has-app-shell .experience-hero :is(h1, h2),
.experience-hero :is(h1, h2) {
  max-width: 22ch;
  margin: 0;
  color: #fff;
  font-size: clamp(1.8rem, 3.2vw, 3.15rem);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1.15;
}
.experience-hero p:not(.experience-overline) {
  max-width: 60ch;
  margin: .85rem 0 0;
  color: #d0e7e0;
  font-size: .85rem;
  line-height: 1.7;
}
.experience-shortcuts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  margin-top: 1.4rem;
}
.experience-shortcuts :is(button, a) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 39px;
  padding: .55rem .95rem;
  color: #f4fff9;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(232, 250, 239, .27);
  border-radius: 11px;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  transition: transform 170ms ease, opacity 170ms ease;
}
.experience-shortcuts :is(button, a):first-child {
  color: #254331;
  background: #d6ef8d;
  border-color: #d6ef8d;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
}
.experience-shortcuts :is(button, a):hover { transform: translateY(-2px); }
body.has-app-shell .experience-hero :is(button, a):focus-visible { outline-color: #d6ef8d; }
.hero-orbit {
  position: relative;
  justify-self: center;
  width: min(100%, 205px);
  aspect-ratio: 1;
  border: 24px solid #d6ef8d;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, rgba(183, 232, 184, .12), transparent 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 14px 18px 0 rgba(0, 34, 40, .1);
  transform: rotate(-20deg);
  pointer-events: none;
}
.hero-orbit::before {
  content: "";
  position: absolute;
  top: -37px;
  right: -26px;
  width: 75px;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #f9b39c, #ec8b73);
  border: 8px solid #0f625a;
  border-radius: 50%;
  box-shadow: 0 8px 16px rgba(0, 38, 33, .08);
}
.hero-orbit::after {
  content: "";
  position: absolute;
  bottom: -24px;
  left: -36px;
  width: 62px;
  height: 62px;
  background: linear-gradient(145deg, #c4abea, #a081d0);
  border: 7px solid #0a6159;
  border-radius: 19px;
  transform: rotate(42deg);
  box-shadow: 0 7px 14px rgba(0, 38, 33, .08);
}

/* Four actionable, readable metric tiles. */
.experience-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.experience-metric {
  --metric-ink: #096b61;
  --metric-soft: #eaf7f0;
  --metric-line: #d5eade;
  position: relative;
  display: grid;
  align-content: start;
  gap: .45rem;
  min-width: 0;
  padding: 1.2rem 1.3rem;
  color: var(--metric-ink);
  background: var(--metric-soft);
  border: 1px solid var(--metric-line);
  border-radius: 20px;
  box-shadow: 0 5px 16px rgba(28, 42, 68, .025);
  text-align: left;
  cursor: pointer;
  transition: transform 170ms ease, opacity 170ms ease;
}
.experience-metric.tone-red { --metric-ink: #a64236; --metric-soft: #fff0eb; --metric-line: #f1dcd3; }
.experience-metric.tone-amber { --metric-ink: #85521b; --metric-soft: #fff5df; --metric-line: #f0e3c3; }
.experience-metric.tone-green { --metric-ink: #486521; --metric-soft: #f0f7db; --metric-line: #e0e9c4; }
.experience-metric.tone-violet { --metric-ink: #70459f; --metric-soft: #f1ebfc; --metric-line: #e2d7f2; }
.experience-metric:not(:disabled):hover {
  transform: translateY(-3px);
  border-color: var(--metric-ink);
}
.experience-metric[aria-pressed="true"] { outline: 2px solid var(--metric-ink); outline-offset: 2px; }
.experience-metric > span:first-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.5;
}
.experience-metric > strong,
.experience-metric .metric-value {
  display: block;
  margin-top: .25rem;
  color: #172640;
  font-size: clamp(1.85rem, 2.7vw, 2.55rem);
  font-weight: 750;
  letter-spacing: -.06em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.experience-metric :is(small, .metric-caption) { color: var(--metric-ink); font-size: .75rem; line-height: 1.55; }
.experience-metric .metric-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  background: rgba(255, 255, 255, .65);
  border-radius: 9px;
}

/* Mi día / focus area, progress and next milestones. */
.experience-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, .85fr);
  align-items: start;
  gap: 1.3rem;
  margin-bottom: 1.5rem;
}
.experience-focus,
.experience-side { display: grid; gap: 1.3rem; min-width: 0; }
.focus-task {
  position: relative;
  display: grid;
  gap: 1rem;
  min-width: 0;
  padding: clamp(1.25rem, 2vw, 1.65rem);
  background: #fff;
  border: 1px solid #dfe8e3;
  border-radius: 22px;
  box-shadow: 0 8px 28px rgba(28, 42, 68, .045);
}
.focus-task-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: .8rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ecf0ed;
}
.focus-task-heading > div { min-width: 0; }
.focus-task :is(h2, h3) { margin: 0; letter-spacing: -.03em; line-height: 1.4; }
.focus-task h2 { font-size: 1.03rem; }
.focus-task h3 { font-size: clamp(1.1rem, 1.8vw, 1.45rem); }
.focus-task > p { margin: 0; color: #657189; font-size: .81rem; line-height: 1.65; }
.focus-task-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .9rem 1.25rem;
  margin-top: .4rem;
  padding-top: 1.1rem;
  border-top: 1px solid #ecf0ed;
}
.focus-task-footer > :not(button) { min-width: 0; }
.focus-task-footer small { color: #657189; font-size: .75rem; }
.focus-task-footer .button { flex: 0 0 auto; }
.experience-progress {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem;
  min-width: 0;
  padding: 1.35rem;
  color: #25334a;
  background: #fff;
  border: 1px solid #e5e9f1;
  border-radius: 20px;
  box-shadow: 0 8px 26px rgba(28, 42, 68, .035);
}
.experience-progress > div:not(.progress-ring) { flex: 1 1 8rem; min-width: 0; }
.experience-progress :is(h2, h3) { margin: 0 0 .4rem; font-size: .95rem; letter-spacing: -.025em; }
.experience-progress p { margin: .3rem 0 0; color: #657189; font-size: .75rem; line-height: 1.55; }
.progress-ring {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 86px;
  aspect-ratio: 1;
  flex: 0 0 86px;
  color: #172640;
  background: conic-gradient(from -90deg, #139488 var(--progress, 0%), #edf2ed 0);
  border-radius: 50%;
  font-size: 1.15rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.progress-ring::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 8px;
  background: #fff;
  border-radius: 50%;
}
.progress-ring > * { position: relative; }
.experience-week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .5rem;
  margin-block: .8rem .2rem;
}
.experience-week-day {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: .4rem;
  min-width: 0;
  min-height: 73px;
  padding: .6rem .25rem .8rem;
  color: #738098;
  background: #f7f8fb;
  border: 1px solid #eceff5;
  border-radius: 12px;
  font-size: .75rem;
  line-height: 1.35;
  transition: transform 170ms ease, opacity 170ms ease;
}
.experience-week-day strong { color: #34445b; font-size: .85rem; font-weight: 750; }
.experience-week-day:hover { background: #eef6ef; transform: translateY(-2px); }
.experience-week-day.has-work::after {
  content: "";
  position: absolute;
  bottom: 6px;
  width: 4px;
  height: 4px;
  background: #139488;
  border-radius: 50%;
}
.experience-week-day.is-today {
  color: #d3e8de;
  background: #08786e;
  border-color: #08786e;
  box-shadow: 0 5px 12px rgba(8, 127, 119, .12);
}
.experience-week-day.is-today strong { color: #fff; }
.experience-week-day.is-today.has-work::after { background: #d6ef8d; }
.experience-week-day[aria-pressed="true"] { outline: 2px solid #087f77; outline-offset: 2px; }
.traffic-light {
  --traffic-ink: #096b61;
  --traffic-soft: #e7f6ee;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  max-width: 100%;
  padding: .35rem .65rem;
  color: var(--traffic-ink);
  background: var(--traffic-soft);
  border: 1px solid color-mix(in srgb, var(--traffic-ink) 12%, transparent);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 750;
  line-height: 1.5;
  white-space: normal;
}
.traffic-light.tone-red { --traffic-ink: #a43f32; --traffic-soft: #fff0eb; }
.traffic-light.tone-amber { --traffic-ink: #85521b; --traffic-soft: #fff3dc; }
.traffic-light.tone-green { --traffic-ink: #486521; --traffic-soft: #f0f7db; }
.traffic-light.tone-violet { --traffic-ink: #70459f; --traffic-soft: #f1ebfc; }
.traffic-light.tone-teal { --traffic-ink: #086d64; --traffic-soft: #e5f6ee; }
.traffic-light > :is(.dot, .traffic-dot, i) {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  background: currentColor;
  border-radius: 50%;
}
.traffic-light:not(:has(> .dot, > .traffic-dot, > i))::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  background: currentColor;
  border-radius: 50%;
}
.experience-milestone {
  display: grid;
  gap: .7rem;
  min-width: 0;
  padding: 1.35rem;
  color: #503b6c;
  background: linear-gradient(130deg, #f0eafb, #f7f2fc);
  border: 1px solid #e5d9f4;
  border-radius: 20px;
}
.experience-milestone :is(h2, h3) { margin: 0; color: #503b6c; font-size: .96rem; }
.experience-milestone p { margin: 0; color: #705c85; font-size: .77rem; line-height: 1.65; }
.experience-milestone .experience-overline { margin: 0; color: #7550a7; }
.experience-milestone .button { justify-self: start; }

/* Work search, segmented controls, and state text (never color alone). */
.experience-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
  padding: .85rem 1rem;
  background: #fff;
  border: 1px solid #e5e9f1;
  border-radius: 16px;
  box-shadow: 0 3px 12px rgba(28, 42, 68, .025);
}
.experience-search {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex: 1 1 15rem;
  min-width: 0;
  max-width: 30rem;
  min-height: 42px;
  padding: .4rem .8rem;
  color: #7c889b;
  background: #f6f7fb;
  border: 1px solid #e7ebf3;
  border-radius: 11px;
}
.experience-search input {
  width: 100%;
  min-width: 0;
  min-height: 30px;
  padding: .1rem;
  color: #25334a;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: .8rem;
}
.experience-search input::placeholder { color: #748198; opacity: 1; }
.experience-search:focus-within { border-color: #087f77; box-shadow: 0 0 0 3px #e4f6f1; }
body.has-app-shell .experience-search input:focus-visible { outline-offset: 2px; }
body.has-app-shell .work-toolbar { align-items: center; flex-wrap: wrap; gap: .85rem; margin-bottom: 1.2rem; }
body.has-app-shell .summary-pills { gap: .55rem; }
body.has-app-shell .summary-pill { padding: .5rem .8rem; font-size: .75rem; border-color: var(--line); box-shadow: none; }
body.has-app-shell .summary-pill strong { font-variant-numeric: tabular-nums; }
body.has-app-shell .work-view-switch { padding: .25rem; background: #eef1f6; border-color: #e5e9f1; border-radius: 12px; }
body.has-app-shell .work-view-button { min-height: 36px; padding: .45rem .85rem; color: #6c778d; border-radius: 9px; font-size: .75rem; }
body.has-app-shell .work-view-button.active { color: #087368; background: #fff; box-shadow: 0 2px 5px rgba(28, 42, 68, .06); }
body.has-app-shell .filter-tabs { gap: .4rem; margin-bottom: 1.3rem; }
body.has-app-shell .filter-tab { padding: .55rem .9rem; border: 1px solid transparent; border-radius: 11px; font-size: .76rem; }
body.has-app-shell .filter-tab.active { color: #08685f; background: #e5f6ee; border-color: #d7eade; }
body.has-app-shell .filter-tab:hover { background: #edf2f2; }
.work-focus-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 39px;
  padding: .55rem .85rem;
  color: #667189;
  background: #fff;
  border: 1px solid #e0e6ef;
  border-radius: 11px;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.45;
}
.work-focus-toggle[aria-pressed="true"],
body.focus-mode .work-focus-toggle { color: #086b62; background: #e8f6ee; border-color: #cfe6d8; }
body.has-app-shell.focus-mode :is(.context-note, .sidebar-tip, [data-focus-optional]) { display: none; }
body.has-app-shell .badge {
  gap: .35rem;
  max-width: 100%;
  padding: .35rem .65rem;
  border: 1px solid transparent;
  font-size: .75rem;
  font-weight: 750;
  line-height: 1.45;
  white-space: normal;
}
body.has-app-shell .badge::before { width: 5px; height: 5px; flex: 0 0 5px; opacity: 1; }
body.has-app-shell :is(.badge.info, .badge.status-open) { color: #06685f; background: #e4f6f1; border-color: #d2ebe1; }
body.has-app-shell .badge.status-in_progress { color: #486521; background: #f0f7db; border-color: #e1eac6; }
body.has-app-shell :is(.badge.bad, .badge.status-returned, .badge.status-rejected) { color: #a03e30; background: #fff0eb; border-color: #f1d9cf; }
body.has-app-shell .badge.warn { color: #85521b; background: #fff3dc; border-color: #eee0bc; }
body.has-app-shell :is(.badge.status-submitted, .badge.status-pending) { color: #70459f; background: #f1ebfc; border-color: #e4d9f3; }
body.has-app-shell :is(.badge.good, .badge.status-completed, .badge.status-approved, .badge.status-delivered) { color: #076b5d; background: #e4f5ed; border-color: #d0e9da; }
body.has-app-shell :is(.badge.neutral, .badge.status-cancelled) { color: #58657b; background: #f0f2f7; border-color: #e3e7ef; }
body.has-app-shell .overdue { color: #a54235 !important; font-weight: 750; }
body.has-app-shell .work-list { gap: 1rem; }
body.has-app-shell .work-card {
  padding: 1.3rem 1.5rem;
  border-color: #e5e9f1;
  border-radius: 20px;
}
body.has-app-shell .work-card-interactive::before { width: 4px; opacity: .85; }
body.has-app-shell .work-card-interactive:hover,
body.has-app-shell .work-card-interactive:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--card-status, #087f77) 30%, #e5e9f1);
  box-shadow: 0 12px 30px rgba(28, 42, 68, .075);
}
body.has-app-shell .work-card h2 { margin: .5rem 0; font-size: 1.03rem; font-weight: 750; letter-spacing: -.025em; }
body.has-app-shell .work-meta { gap: .45rem .85rem; font-size: .75rem; line-height: 1.65; }
body.has-app-shell .work-next { margin-bottom: 0; font-size: .75rem; font-weight: 450; }
body.has-app-shell .work-card-affordance { color: #087368; font-size: .75rem; }

/* Kanban: a self-contained horizontal board, not a horizontally scrolling page. */
body.has-app-shell .content:has(.kanban-board) { overflow-x: visible; }
body.has-app-shell .kanban-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(245px, 1fr));
  align-items: stretch;
  gap: 1rem;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: .2rem .2rem 1.15rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-color: #bfcfc8 #edf2ef;
  scrollbar-width: thin;
}
body.has-app-shell .kanban-column {
  padding: .8rem;
  background: color-mix(in srgb, var(--column-soft) 62%, #f8fafb);
  border: 1px solid color-mix(in srgb, var(--column-status) 15%, #e5e9f1);
  border-radius: 21px;
  scroll-snap-align: start;
}
body.has-app-shell .kanban-column-header {
  margin: -.1rem -.1rem .95rem;
  padding: 1rem .85rem;
  color: var(--column-status);
  background: var(--column-soft);
  border: 1px solid color-mix(in srgb, var(--column-status) 13%, transparent);
  border-radius: 15px;
}
body.has-app-shell .kanban-column-header > div { align-items: center; gap: .65rem; }
body.has-app-shell .kanban-column-header h2 { color: var(--column-status); font-size: .88rem; font-weight: 800; line-height: 1.4; }
body.has-app-shell .kanban-column-header p { margin: .5rem 0 0; color: #62716e; font-size: .75rem; line-height: 1.5; }
body.has-app-shell .kanban-status-dot {
  width: 8px;
  height: 8px;
  flex-basis: 8px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--column-status) 10%, transparent);
}
body.has-app-shell .kanban-count { min-width: 26px; height: 26px; color: var(--column-status); background: rgba(255, 255, 255, .8); font-size: .75rem; }
body.has-app-shell .kanban-column-body { gap: .9rem; }
body.has-app-shell .kanban-card {
  padding: 1.15rem 1rem;
  background: #fff;
  border: 1px solid #e2e9e5;
  border-radius: 17px;
  box-shadow: 0 4px 12px rgba(28, 42, 68, .045);
  animation: none;
}
body.has-app-shell .kanban-card::before {
  inset: 1.15rem auto auto 0;
  width: 3px;
  height: 31px;
  border-radius: 0 3px 3px 0;
}
body.has-app-shell .kanban-card:hover,
body.has-app-shell .kanban-card:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--card-status, #087f77) 30%, #dfe7e4);
  box-shadow: 0 9px 22px rgba(28, 42, 68, .075);
}
body.has-app-shell .kanban-card-top { align-items: flex-start; flex-wrap: wrap; gap: .5rem; }
body.has-app-shell .kanban-area {
  max-width: 100%;
  color: var(--card-status);
  font-size: .75rem;
  line-height: 1.55;
  letter-spacing: .055em;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
}
body.has-app-shell .kanban-card h3 { margin: .85rem 0 .6rem; font-size: .9rem; font-weight: 750; line-height: 1.5; letter-spacing: -.025em; }
body.has-app-shell .kanban-next { min-height: 0; margin-bottom: 1rem; font-size: .75rem; line-height: 1.65; }
body.has-app-shell .kanban-card footer { gap: .4rem; padding-top: .85rem; border-color: #eaf0eb; }
body.has-app-shell :is(.kanban-context, .kanban-due) {
  color: #68768a;
  font-size: .75rem;
  line-height: 1.5;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
}
body.has-app-shell .kanban-empty {
  min-height: 140px;
  color: #708077;
  background: rgba(255, 255, 255, .42);
  border-radius: 16px;
}
body.has-app-shell .kanban-empty > span { width: 32px; height: 32px; }
body.has-app-shell .kanban-empty p { font-size: .75rem; line-height: 1.6; }

/* Drawer header is content-sized; its body flexes, so long titles never clip. */
body.has-app-shell .task-drawer-backdrop {
  background: rgba(17, 33, 45, .3);
  backdrop-filter: blur(3px);
  transition: opacity 190ms var(--ease-out);
}
body.has-app-shell .task-drawer {
  display: flex;
  flex-direction: column;
  width: min(520px, 94vw);
  height: 100vh;
  height: 100dvh;
  background: #fff;
  border-left: 1px solid #e4ece7;
  border-radius: 24px 0 0 24px;
  box-shadow: -16px 0 64px rgba(25, 46, 58, .15);
  transition: transform 200ms var(--ease-out);
}
body.has-app-shell .task-drawer-header {
  position: relative;
  flex: 0 0 auto;
  min-height: 0;
  gap: 1rem;
  padding: 1.8rem 1.6rem 1.45rem;
  background: radial-gradient(ellipse at 90% 0, #e8f4dd, transparent 65%), linear-gradient(120deg, #edf8f2, #f8fbf7);
  border-bottom: 1px solid #e0ece2;
}
body.has-app-shell .task-drawer-header > div { min-width: 0; }
body.has-app-shell .task-drawer-header .eyebrow { color: #087368; font-size: .75rem; margin-bottom: .6rem; }
body.has-app-shell .task-drawer-header h2 { color: #172640; font-size: 1.35rem; font-weight: 750; line-height: 1.4; letter-spacing: -.04em; }
body.has-app-shell .task-drawer-close {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  color: #567367;
  background: rgba(255, 255, 255, .85);
  border: 1px solid #dbe8dd;
  border-radius: 11px;
}
body.has-app-shell .task-drawer-close:hover { color: #087368; background: #fff; transform: translateY(-1px); }
body.has-app-shell .task-drawer-content {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  padding: 1.5rem 1.6rem;
  scrollbar-width: thin;
  scrollbar-color: #cad9d0 transparent;
}
body.has-app-shell .drawer-status-row { flex-wrap: wrap; margin-bottom: 1.25rem; }
body.has-app-shell .drawer-area { color: #6c778b; font-size: .75rem; white-space: normal; overflow: visible; }
body.has-app-shell .drawer-overview { gap: .8rem; margin-bottom: 1.15rem; }
body.has-app-shell .drawer-overview > div { gap: .45rem; padding: .95rem; background: #f6f7fb; border-color: #e8ecf3; border-radius: 14px; }
body.has-app-shell .drawer-overview span { color: #6c788f; font-size: .75rem; }
body.has-app-shell .drawer-overview strong { color: #293b50; font-size: .79rem; line-height: 1.5; white-space: normal; overflow: visible; }
body.has-app-shell .drawer-progress { padding: 1rem; margin-bottom: 1.15rem; border-color: #e3eae5; border-radius: 14px; }
body.has-app-shell .drawer-progress > div:first-child { gap: .8rem; align-items: center; font-size: .77rem; }
body.has-app-shell .drawer-progress .progress-track { height: 7px; margin: .8rem 0 .6rem; }
body.has-app-shell .drawer-next-step { padding: 1rem 1.1rem; border-radius: 14px; }
body.has-app-shell .drawer-next-step h3 { font-size: .93rem; line-height: 1.5; }
body.has-app-shell .drawer-next-step p:last-child { color: #657189; font-size: .77rem; line-height: 1.65; }
body.has-app-shell .drawer-section { margin-top: 1.5rem; }
body.has-app-shell .drawer-section-heading { gap: .75rem; padding-bottom: .8rem; border-color: #e7ece8; }
body.has-app-shell .drawer-section-heading h3 { font-size: .9rem; font-weight: 750; }
body.has-app-shell .drawer-section-heading span { padding-inline: .45rem; background: #ecf7e4; color: #507126; }
body.has-app-shell .drawer-section-heading span:empty { display: none; }
body.has-app-shell .drawer-checklist { padding-top: .5rem; }
body.has-app-shell .drawer-checklist li {
  position: relative;
  gap: .8rem;
  padding: .8rem 0 1rem;
  border: 0;
}
body.has-app-shell .drawer-checklist li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 2.45rem;
  bottom: -.6rem;
  width: 1px;
  background: #e0e8e1;
}
body.has-app-shell .drawer-checklist li > span { position: relative; z-index: 1; width: 25px; height: 25px; flex: 0 0 25px; font-size: .77rem; }
body.has-app-shell .drawer-checklist li.completed > span { color: #fff; background: #087f77; box-shadow: 0 0 0 3px #e9f6ed; }
body.has-app-shell .drawer-checklist li.pending > span { color: #748267; background: #f1f5e9; border: 1px solid #e1e8d5; }
body.has-app-shell :is(.drawer-checklist, .drawer-evidence) li > div { min-width: 0; }
body.has-app-shell :is(.drawer-checklist strong, .drawer-evidence strong) { font-size: .78rem; font-weight: 650; line-height: 1.55; }
body.has-app-shell :is(.drawer-checklist small, .drawer-evidence small) { margin-top: .3rem; font-size: .75rem; line-height: 1.55; }
body.has-app-shell .drawer-evidence li { padding: .9rem 0; border-color: #e8ede9; }
body.has-app-shell .drawer-file-icon { width: 35px; height: 35px; flex-basis: 35px; color: #7953a5; background: #f1ebfc; border-radius: 10px; }
body.has-app-shell .drawer-empty { color: #6c788f; font-size: .76rem; line-height: 1.65; }
body.has-app-shell .drawer-footer {
  bottom: -1.5rem;
  margin: 1.5rem -1.6rem -1.5rem;
  padding: 1rem 1.6rem max(1.2rem, env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97);
  border-color: #e4ece6;
  box-shadow: 0 -6px 20px rgba(25, 46, 58, .035);
}
body.has-app-shell :is(.drawer-inline-loading, .drawer-access-note) { padding: 1rem; color: #6a768b; background: #f6f7fb; border-color: #e5e9f1; border-radius: 14px; font-size: .76rem; }
body.has-app-shell .drawer-access-note > span { background: #8b7baf; }
body.has-app-shell .drawer-spinner { border-color: #e3eae4; border-top-color: #087f77; animation: none; }

/* Forms, tables, calendar and secondary modules inherit the same finish. */
body.has-app-shell :is(.admin-form, .analytics-filters, .calendar-controls, .operations-panel, .support-form, .support-filters, .automation-form) :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea),
body.has-app-shell .recurrence-select select,
body.has-app-shell .native-evidence-panel select,
body.has-app-shell textarea {
  min-height: 42px;
  max-width: 100%;
  color: #25334a;
  background: #fff;
  border: 1px solid #d9e1eb;
  border-radius: 11px;
  padding: .65rem .8rem;
  font-size: .81rem;
}
body.has-app-shell input:is([type="checkbox"], [type="radio"]) { accent-color: #087f77; }
body.has-app-shell .data-table th { color: #758198; background: #f8f9fc; font-size: .75rem; letter-spacing: .065em; }
body.has-app-shell .data-table :is(th, td) { padding: .9rem .7rem; border-color: #e8ecf3; }
body.has-app-shell .data-table td { font-size: .78rem; }
body.has-app-shell .data-table tbody tr:hover { background: #fafcfb; }
body.has-app-shell :is(.check-row, .notification-card, .outbox-list article, .pc21-stage, .pc21-task, .support-cases li, .support-history li) { border-radius: 14px; border-color: #e4e9f1; }
body.has-app-shell .check-row { padding: 1rem; }
body.has-app-shell .check-row:has(input:checked) { background: #f2f8ed; border-color: #d8e7ca; }
body.has-app-shell .notification-card.is-unread { background: #f1faf4; }
body.has-app-shell .calendar-controls { padding: 1.1rem; }
body.has-app-shell .calendar-entry { padding: 1.2rem; }
body.has-app-shell .calendar-entry h3 { margin-top: .4rem; font-size: 1rem; letter-spacing: -.025em; }
body.has-app-shell .calendar-chip { white-space: normal; overflow-wrap: anywhere; border-radius: 10px; }
body.has-app-shell .operations-grid { gap: .85rem; }
body.has-app-shell .operations-card { padding: 1.1rem; color: #087368; background: #f3faf5; border-color: #dcece0; }
body.has-app-shell .operations-card:hover { transform: translateY(-2px); }
body.has-app-shell .operations-card[aria-pressed="true"] { color: #07655c; background: #e6f6eb; border-color: #087f77; }
body.has-app-shell .operations-card strong { color: #172640; font-size: 2rem; font-weight: 750; }
body.has-app-shell .operations-card span:last-child { color: #5b7767; font-size: .75rem; }
body.has-app-shell .operations-row { border-color: #e7ece8; font-size: .8rem; }
body.has-app-shell .timeline li { padding-left: 1.5rem; font-size: .77rem; line-height: 1.65; }
body.has-app-shell .timeline li::before { width: 9px; height: 9px; background: #087f77; box-shadow: 0 0 0 3px #e5f5eb; }
body.has-app-shell .timeline li::after { left: 4px; background: #dde9df; }
body.has-app-shell :is(.decision-dialog, .command-dialog) { border: 1px solid #e4e9f1; border-radius: 24px; box-shadow: 0 30px 100px rgba(24, 41, 57, .2); }
body.has-app-shell :is(.decision-dialog, .command-dialog)::backdrop { background: rgba(20, 36, 49, .38); backdrop-filter: blur(5px); }
body.has-app-shell .decision-dialog form { padding: 1.65rem; }
body.has-app-shell .dialog-heading h2 { font-size: 1.35rem; letter-spacing: -.035em; }

/* Command palette: native dialog semantics and visible keyboard states. */
.command-dialog {
  width: min(580px, calc(100vw - 2rem));
  max-height: min(680px, calc(100dvh - 3rem));
  padding: 1.25rem;
  color: #25334a;
  background: #fff;
  border: 1px solid #e4e9f1;
  border-radius: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.command-dialog::backdrop { background: rgba(20, 36, 49, .38); backdrop-filter: blur(5px); }
.command-dialog header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.command-dialog :is(h2, h3) { margin: 0; color: #172640; font-size: 1.1rem; letter-spacing: -.025em; }
.command-dialog input[type="search"],
.command-dialog input:not([type]) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin-bottom: 1rem;
  padding: .75rem 1rem;
  color: #25334a;
  background: #f6f7fb;
  border: 1px solid #dce4ef;
  border-radius: 13px;
  font: inherit;
  font-size: .88rem;
}
.command-dialog input::placeholder { color: #748198; opacity: 1; }
.command-dialog [data-command-result] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  width: 100%;
  min-height: 47px;
  margin-block: .25rem;
  padding: .8rem .9rem;
  color: #3b4c63;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: .8rem;
  line-height: 1.5;
  text-align: left;
}
.command-dialog [data-command-result]:hover,
.command-dialog [data-command-result][aria-selected="true"] { color: #087368; background: #ecf8f0; border-color: #d8ece0; }
.command-dialog [data-command-result] small { color: #718197; font-size: .75rem; }
.command-dialog :is(.command-empty, .command-hint) { padding: .6rem .9rem; color: #718197; font-size: .75rem; line-height: 1.6; }
.command-dialog [hidden] { display: none !important; }

/* Loading remains calm and legible, with a static skeleton under reduced motion. */
.experience-skeleton,
body.has-app-shell .skeleton {
  position: relative;
  display: block;
  min-height: 14px;
  color: transparent;
  background: linear-gradient(110deg, #edf1f5, #f5f7f9 45%, #e9eff2);
  border-radius: 8px;
  overflow: hidden;
}
.experience-skeleton-card {
  display: grid;
  gap: .85rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #e5e9f1;
  border-radius: 20px;
}
.experience-skeleton-card .experience-skeleton:nth-child(2) { width: 72%; min-height: 22px; }
.experience-skeleton-card .experience-skeleton:last-child { width: 48%; }
body.has-app-shell .loading-state {
  position: relative;
  isolation: isolate;
  gap: 1rem;
  align-content: center;
  color: #657189;
  background: #fff;
  border: 1px solid #e5e9f1;
  box-shadow: var(--shadow-sm);
}
body.has-app-shell .loading-state::before {
  content: "";
  display: block;
  width: min(250px, 65%);
  height: 13px;
  background: linear-gradient(110deg, #e4f0e6, #eff5e6, #e7edf5);
  border-radius: 8px;
  box-shadow: 0 -23px 0 #f0f3f7;
}
body.has-app-shell .toast {
  z-index: 130;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  align-items: flex-start;
  gap: .85rem;
  max-width: min(450px, calc(100vw - 2.5rem));
  padding: 1.1rem 1.25rem;
  color: #234b3d;
  background: #fff;
  border: 1px solid #d7e8db;
  border-radius: 17px;
  box-shadow: 0 16px 50px rgba(26, 48, 42, .14);
  font-size: .8rem;
  line-height: 1.65;
  animation: tropical-toast-in 180ms ease-out both;
}
body.has-app-shell .toast-icon { width: 27px; height: 27px; background: #087f77; font-size: .78rem; }
body.has-app-shell .toast.error { color: #a13d31; border-color: #edccbf; }
body.has-app-shell .toast.error .toast-icon { background: #b84d3a; }
body.has-app-shell .toast-message { min-width: 0; overflow-wrap: anywhere; }
@keyframes tropical-toast-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
body.has-app-shell .completion-message { border-radius: 18px; animation-duration: 180ms; }
body.has-app-shell .completion-celebration.leaving .completion-message { transition: opacity 180ms ease, transform 180ms ease; }

/* Wide screens, laptops, tablets, then narrow touch screens. */
@media (min-width: 1600px) {
  body.has-app-shell .content { padding-inline: 2.7rem; }
  .experience-home-grid { grid-template-columns: minmax(0, 1.9fr) minmax(320px, .85fr); gap: 1.5rem; }
  body.has-app-shell .kanban-board { grid-template-columns: repeat(5, minmax(255px, 1fr)); }
}
@media (max-width: 1250px) {
  body.has-app-shell .topbar { gap: .7rem; padding-inline: 1.25rem; }
  body.has-app-shell .tenant-control { flex-basis: 165px; }
  body.has-app-shell .context-control { flex-basis: 210px; }
  body.has-app-shell .content { padding: 1.5rem; }
  .experience-hero { grid-template-columns: minmax(0, 1fr) 150px; }
  .hero-orbit { border-width: 19px; }
  .hero-orbit::before { width: 65px; top: -30px; right: -22px; }
  .hero-orbit::after { width: 52px; height: 52px; left: -29px; bottom: -19px; }
  .experience-home-grid { grid-template-columns: minmax(0, 1.4fr) minmax(260px, .9fr); gap: 1rem; }
  .experience-metrics { gap: .8rem; }
  .experience-metric { padding: 1rem; }
  body.has-app-shell .day-layout { grid-template-columns: minmax(0, 1.4fr) minmax(260px, .9fr); }
  body.has-app-shell .day-side { grid-template-columns: 1fr; }
}
@media (max-width: 1080px) {
  .experience-home-grid { grid-template-columns: 1fr; }
  .experience-side { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .experience-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .experience-metric { padding: 1.2rem; }
  body.has-app-shell .day-layout { grid-template-columns: 1fr; }
  body.has-app-shell .day-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.has-app-shell :is(.two-columns, .detail-grid) { grid-template-columns: 1fr; }
  body.has-app-shell .tenant-control { flex-basis: 135px; }
  body.has-app-shell .context-control { flex-basis: 175px; }
  .topbar-command kbd { display: none; }
  .topbar-command { max-width: 160px; }
}
@media (max-width: 900px) {
  body.has-app-shell .app-shell { grid-template-columns: minmax(0, 1fr); }
  body.has-app-shell .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(290px, 86vw);
    max-height: 100vh;
    max-height: 100dvh;
    transform: translateX(-105%);
    transition: transform 190ms var(--ease-out);
    box-shadow: 12px 0 45px rgba(28, 42, 68, .12);
  }
  body.has-app-shell .app-shell.nav-open .sidebar { transform: translateX(0); }
  body.has-app-shell .nav-backdrop {
    inset: 0;
    background: rgba(17, 33, 45, .3);
    transition: opacity 190ms var(--ease-out);
  }
  body.has-app-shell .topbar { min-height: 70px; padding: .75rem 1rem; gap: .8rem; }
  body.has-app-shell .menu-button { display: grid; width: 38px; height: 38px; }
  body.has-app-shell :is(.tenant-control, .topbar-separator) { display: none; }
  body.has-app-shell .context-control { flex: 1 1 auto; max-width: none; }
  body.has-app-shell .identity-block { margin-left: 0; }
  body.has-app-shell .content { padding: 1.35rem; }
  .topbar-command { margin-left: 0; max-width: 180px; }
  .experience-hero { padding: 1.8rem; }
  .experience-hero h1 { font-size: 2.25rem; }
  body.has-app-shell .work-toolbar { flex-direction: row; align-items: center; }
  body.has-app-shell .work-view-switch { align-self: auto; }
  body.has-app-shell .kanban-board { grid-template-columns: repeat(5, minmax(255px, 1fr)); }
  body.has-app-shell .work-card { grid-template-columns: minmax(0, 1fr) auto; }
  body.has-app-shell .data-table th { background: transparent; }
  body.has-app-shell .data-table td { padding: .4rem 0; }
}
@media (max-width: 700px) {
  body.has-app-shell .content { padding: 1rem; padding-bottom: 2rem; }
  body.has-app-shell .topbar { padding-inline: .8rem; gap: .6rem; }
  body.has-app-shell .context-control select { font-size: .75rem; }
  :is(button.topbar-command, .topbar-command > button) { padding: .55rem .65rem; font-size: .75rem; }
  .topbar-command :is(kbd, .command-key, .command-label) { display: none; }
  .experience-hero { grid-template-columns: minmax(0, 1fr); padding: 1.5rem; border-radius: 22px; }
  .experience-hero > :not(.hero-orbit) { max-width: 100%; }
  body.has-app-shell .experience-hero :is(h1, h2) { max-width: 100%; font-size: clamp(1.8rem, 6vw, 2.4rem); }
  .experience-hero .hero-orbit { display: none; }
  .experience-hero::before { opacity: .5; right: -15rem; }
  .experience-hero p:not(.experience-overline) { font-size: .8rem; }
  .experience-overline { font-size: .75rem; letter-spacing: .1em; }
  .experience-shortcuts { gap: .5rem; margin-top: 1.2rem; }
  .experience-shortcuts :is(button, a) { min-height: 42px; }
  .experience-metrics { gap: .75rem; margin-bottom: 1.2rem; }
  .experience-metric { padding: 1rem; border-radius: 17px; }
  .experience-metric > strong { font-size: 2rem; }
  .experience-home-grid { gap: 1rem; }
  .experience-side { grid-template-columns: 1fr; }
  .experience-focus { gap: 1rem; }
  .focus-task { padding: 1.2rem; border-radius: 20px; }
  .focus-task-footer { align-items: stretch; }
  .focus-task-footer .button { flex: 1 1 100%; }
  .experience-progress { padding: 1.2rem; }
  .experience-filter-bar { padding: .85rem; gap: .75rem; }
  .experience-search { flex-basis: 100%; max-width: none; }
  body.has-app-shell :is(.day-side, .notification-grid, .admin-config-grid) { grid-template-columns: 1fr; }
  body.has-app-shell .page-header { margin-bottom: 1.25rem; }
  body.has-app-shell .page-header > div { flex-basis: 100%; }
  body.has-app-shell .page-header > .button { margin-top: 0; width: auto; }
  body.has-app-shell .panel-header > .button { max-width: 100%; }
  body.has-app-shell .work-card { grid-template-columns: 1fr; gap: 1rem; padding: 1.2rem; }
  body.has-app-shell .work-card-affordance { justify-content: space-between; padding-top: .75rem; border-top: 1px solid #eaf0eb; }
  body.has-app-shell .work-toolbar { align-items: stretch; flex-direction: column; }
  body.has-app-shell .work-toolbar .summary-pills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.has-app-shell .work-toolbar .summary-pill { justify-content: flex-start; }
  body.has-app-shell .work-view-switch { align-self: flex-start; }
  body.has-app-shell .kanban-board { gap: .8rem; grid-template-columns: repeat(5, minmax(min(280px, 82vw), 1fr)); }
  body.has-app-shell .later-row { grid-template-columns: 34px minmax(0, 1fr) 18px; gap: .55rem; }
  body.has-app-shell .task-drawer { width: min(520px, 100vw); border-radius: 0; }
  body.has-app-shell .task-drawer-header { padding: 1.5rem 1.2rem 1.25rem; }
  body.has-app-shell .task-drawer-content { padding: 1.25rem 1.2rem; }
  body.has-app-shell .drawer-footer { bottom: -1.25rem; margin-inline: -1.2rem; margin-bottom: -1.25rem; padding-inline: 1.2rem; }
  body.has-app-shell .drawer-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.has-app-shell :is(.operations-filters, .calendar-filters) label { min-width: 0; max-width: 100%; }
  body.has-app-shell .task-preflight-facts,
  body.has-app-shell .task-preflight-roles { grid-template-columns: 1fr; }
  .command-dialog { padding: 1rem; border-radius: 20px; max-height: calc(100dvh - 2rem); }
}
@media (max-width: 480px) {
  body.has-app-shell { font-size: 14px; }
  body.has-app-shell .content { padding: .85rem; padding-bottom: 2rem; }
  body.has-app-shell .topbar { gap: .5rem; padding-inline: .75rem; }
  body.has-app-shell .identity-initials { width: 34px; height: 34px; }
  body.has-app-shell .context-control { flex-basis: 0; }
  .topbar-command { max-width: 95px; }
  :is(button.topbar-command, .topbar-command > button) { gap: .25rem; padding: .45rem .5rem; font-size: .75rem; }
  .experience-hero { padding: 1.35rem 1.15rem; margin-bottom: 1rem; }
  .experience-shortcuts :is(button, a) { flex: 1 1 100%; }
  .experience-metric { padding: .95rem .85rem; gap: .4rem; }
  .experience-metric > span:first-child { font-size: .75rem; }
  .experience-metric :is(small, .metric-caption) { font-size: .75rem; }
  .experience-metric > strong { font-size: 1.9rem; }
  .experience-week-strip { gap: .3rem; }
  .experience-week-day { min-height: 65px; padding-inline: .1rem; font-size: .75rem; border-radius: 10px; }
  .experience-week-day strong { font-size: .76rem; }
  .experience-progress { gap: .9rem; }
  .progress-ring { width: 76px; flex-basis: 76px; font-size: 1rem; }
  .progress-ring::before { inset: 7px; }
  body.has-app-shell .page-header h1 { font-size: 1.85rem; }
  body.has-app-shell .page-header > .button { width: 100%; }
  body.has-app-shell .work-view-switch { width: 100%; }
  body.has-app-shell .work-view-button { flex: 1; }
  body.has-app-shell .filter-tab { flex: 1 1 calc(50% - .4rem); text-align: center; }
  body.has-app-shell .task-drawer-header h2 { font-size: 1.2rem; }
  body.has-app-shell .drawer-overview { grid-template-columns: 1fr; }
  body.has-app-shell .drawer-progress > div:first-child { flex-wrap: wrap; }
  body.has-app-shell .toast { right: .85rem; bottom: max(.85rem, env(safe-area-inset-bottom)); max-width: calc(100vw - 1.7rem); padding: .95rem 1rem; }
  body.has-app-shell .operations-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.has-app-shell .operations-card { padding: .85rem; }
}

/* No decorative motion, forced scrolling, or hover displacement when reduced. */
@media (prefers-reduced-motion: reduce) {
  body.has-app-shell *,
  body.has-app-shell *::before,
  body.has-app-shell *::after,
  .experience-hero *,
  .experience-metric,
  .experience-week-day,
  .command-dialog * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  body.has-app-shell :is(.nav-item, .button, .work-card-interactive, .kanban-card, .task-drawer-close, .operations-card):hover,
  body.has-app-shell :is(.work-card-interactive, .kanban-card):focus-visible,
  .experience-metric:hover,
  .experience-week-day:hover,
  .experience-shortcuts :is(button, a):hover { transform: none; }
  body.has-app-shell .completion-message { opacity: 1; transform: translate(-50%, 0); }
}
@media (forced-colors: active) {
  .experience-hero,
  .experience-metric,
  .traffic-light,
  .experience-milestone,
  .progress-ring { border: 1px solid CanvasText; }
  .hero-orbit { display: none; }
  .progress-ring { background: Canvas; }
  .progress-ring::before { background: Canvas; }
  body.has-app-shell .nav-item.active,
  body.has-app-shell .work-view-button.active,
  .experience-week-day.is-today { outline: 2px solid Highlight; outline-offset: -2px; }
}

/* Integration details for the experience markup and existing inline icons. */
body.has-app-shell .topbar-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  margin-left: auto;
  min-width: 0;
}
body.has-app-shell .topbar-tools + .identity-block { margin-left: 0; }
body.has-app-shell .topbar-tools .topbar-command { margin-left: 0; }
body.has-app-shell .panel .link-button {
  color: #087368;
  font-size: .75rem;
  font-weight: 650;
  line-height: 1.5;
}
body.has-app-shell .experience-hero .experience-shortcuts .button {
  color: #f4fff9;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(232, 250, 239, .27);
  box-shadow: none;
}
body.has-app-shell .experience-hero .experience-shortcuts .button:first-child {
  color: #254331;
  background: #d6ef8d;
  border-color: #d6ef8d;
}
body.has-app-shell .experience-hero .experience-shortcuts .button:first-child:hover { background: #e1f5ac; }
body.has-app-shell .experience-hero .experience-shortcuts .button:not(:first-child):hover { background: rgba(255, 255, 255, .16); }
:is(.experience-shortcuts, .focus-task-footer, .experience-search, .topbar-command, .work-focus-toggle, .experience-milestone) svg {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.has-app-shell .focus-task-heading {
  justify-content: flex-start;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 1rem;
  padding: .3rem 0 .85rem;
  border-bottom: 0;
}
.focus-task-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  color: #087368;
  background: #edf7e7;
  border: 1px solid #dfebd4;
  border-radius: 14px;
}
.focus-task-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.focus-task-heading > div { flex: 1 1 auto; }
.focus-task-heading p:not(.card-kicker) { margin: .65rem 0 0; color: #657189; font-size: .81rem; line-height: 1.65; }
.focus-task-footer > span { color: #768196; font-size: .75rem; line-height: 1.6; }
.focus-task-footer > span > strong { display: block; margin-top: .15rem; color: #31465a; font-weight: 650; }
body.has-app-shell .experience-progress {
  display: grid;
  justify-items: center;
  gap: .7rem;
  text-align: center;
}
body.has-app-shell .experience-progress .card-kicker { justify-self: start; margin: 0; text-align: left; }
body.has-app-shell .experience-progress h2 { margin: 0; }
body.has-app-shell .experience-progress .progress-ring {
  width: 126px;
  margin-block: .5rem;
  font-size: 1.85rem;
}
body.has-app-shell .experience-progress .progress-ring::before { inset: 10px; }
.progress-ring > div { display: grid; justify-items: center; gap: .1rem; }
.progress-ring strong { line-height: 1.2; font-weight: 750; letter-spacing: -.05em; }
.progress-ring span { color: #768196; font-size: .75rem; font-weight: 500; letter-spacing: 0; }
body.has-app-shell .experience-progress > p { margin: 0; font-size: .77rem; }
body.has-app-shell .experience-progress > small { max-width: 30ch; color: #7b8698; font-size: .75rem; line-height: 1.65; }
.experience-signal-select {
  display: grid;
  gap: .3rem;
  min-width: 0;
  color: #6c788f;
  font-size: .75rem;
  font-weight: 650;
}
.experience-signal-select select {
  width: 100%;
  max-width: 100%;
  min-height: 36px;
  padding: .4rem .6rem;
  color: #3b4d63;
  background: #fff;
  border: 1px solid #dce4ee;
  border-radius: 9px;
  font: inherit;
  font-size: .75rem;
}
.experience-search-count { color: #748198; font-size: .75rem; line-height: 1.5; }
.command-dialog > label { display: block; margin-bottom: .5rem; color: #748198; font-size: .75rem; }
body.has-app-shell .command-dialog [data-command-close] { display: grid; width: 35px; height: 35px; }
.hero-orbit .orbit-label {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100px;
  color: #ebf8df;
  font-size: .8rem;
  font-weight: 650;
  line-height: 1.5;
  text-align: center;
  transform: translate(-50%, -50%) rotate(20deg);
}
.hero-orbit .orbit-check { display: none; }
.hero-orbit > i { display: none; }
body.has-app-shell [data-focus-optional][hidden] { display: none; }
@media (max-width: 1080px) {
  body.has-app-shell .topbar-tools { gap: .4rem; }
  body.has-app-shell .topbar-tools .work-focus-toggle { font-size: .75rem; padding-inline: .65rem; }
}
@media (max-width: 700px) {
  body.has-app-shell .topbar-tools { flex: 0 1 auto; gap: .35rem; }
  body.has-app-shell .topbar-tools .work-focus-toggle { min-height: 38px; max-width: 88px; padding: .45rem .5rem; font-size: .75rem; }
  body.has-app-shell .topbar-tools .topbar-command { max-width: 68px; }
  .experience-signal-select { flex: 1 1 12rem; }
  body.has-app-shell .experience-progress .progress-ring { width: 116px; }
  .focus-task-icon { width: 40px; height: 40px; flex-basis: 40px; border-radius: 12px; }
  .focus-task-icon svg { width: 21px; height: 21px; }
  body.has-app-shell .focus-task-heading { gap: .8rem; }
}
@media (max-width: 480px) {
  body.has-app-shell .topbar-tools { max-width: 132px; }
  body.has-app-shell .topbar-tools .topbar-command { font-size: .75rem; max-width: 49px; }
  body.has-app-shell .topbar-tools .work-focus-toggle { max-width: 68px; font-size: .75rem; }
  body.has-app-shell .topbar-tools kbd { display: none; }
  body.has-app-shell .context-control select { font-size: .75rem; }
  .experience-week-day > span { font-size: .75rem; line-height: 1.4; }
}

/* Supporting context is optional; focus mode never removes navigation. */
body.has-app-shell .experience-support {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.3rem;
  padding: 1.4rem 1.5rem;
  background: linear-gradient(115deg, #fff, #fff7ef);
  border-color: #ede4d9;
}
.experience-support > div { flex: 1 1 18rem; min-width: 0; }
.experience-support p:not(.card-kicker) { margin: .5rem 0 0; color: #768196; font-size: .8rem; line-height: 1.65; }
.experience-support .button { flex: 0 1 auto; }
.experience-operational-details {
  margin-block: 1.25rem;
  padding: 1rem 1.25rem;
  color: #506078;
  background: #f1f3f8;
  border: 1px solid #e1e6f0;
  border-radius: 17px;
}
.experience-operational-details > summary {
  position: relative;
  display: list-item;
  padding: .25rem .2rem;
  color: #465872;
  font-size: .81rem;
  font-weight: 700;
  line-height: 1.65;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.experience-operational-details > summary::marker { color: #087f77; }
.experience-operational-details > summary span {
  display: block;
  margin-top: .25rem;
  color: #7b869a;
  font-size: .75rem;
  font-weight: 450;
}
.experience-operational-details[open] > summary { padding-bottom: 1rem; border-bottom: 1px solid #dfe5ef; }
.experience-operational-details .panel { margin-top: 1rem; }
body.has-app-shell.focus-mode .experience-operational-details { display: none; }
body.has-app-shell .experience-loading { gap: .9rem; padding: 2.75rem 1.5rem; }
body.has-app-shell .experience-loading::before { display: none; }
.experience-loading > strong { color: #31584a; font-size: .95rem; letter-spacing: -.02em; }
.experience-loading > span:not(.loading-orbit) { color: #768196; font-size: .8rem; }
.loading-orbit {
  position: relative;
  display: block;
  width: 44px;
  aspect-ratio: 1;
  margin-bottom: .4rem;
  border: 7px solid #e2edda;
  border-top-color: #87b985;
  border-right-color: #087f77;
  border-radius: 50%;
}
.loading-orbit::after {
  content: "";
  position: absolute;
  right: -9px;
  top: -6px;
  width: 12px;
  height: 12px;
  background: #ee8a72;
  border: 2px solid #fff;
  border-radius: 50%;
}
body.has-app-shell summary:focus-visible { outline: 3px solid #087f77; outline-offset: 4px; border-radius: 6px; }
@media (max-width: 700px) {
  body.has-app-shell .experience-support { padding: 1.2rem; }
  .experience-support .button { flex: 1 1 100%; }
  .experience-operational-details { padding: 1rem; }
}

/* Final readability guardrails: hero body copy clears AA at the brightest stop. */
.experience-hero p:not(.experience-overline) { color: #d8eee5; }
body.has-app-shell :is(.footnote, .compact-empty, .panel-header p, .sidebar-footer small, .identity-block small) { font-size: .75rem; }
body.has-app-shell .topbar-tools :is(.topbar-command, .work-focus-toggle) { overflow-wrap: normal; word-break: normal; }
@media (max-width: 480px) {
  body.has-app-shell .topbar-tools { max-width: 132px; gap: .25rem; }
  body.has-app-shell .topbar-tools .topbar-command { max-width: 52px; padding-inline: .4rem; }
  body.has-app-shell .topbar-tools .work-focus-toggle { max-width: 73px; padding-inline: .35rem; }
  .experience-week-day { min-height: 90px; }
  .experience-week-day > span { overflow-wrap: anywhere; }
}

/* State is separate from deadline: labels keep the meaning explicit. */
.traffic-light.tone-neutral { --traffic-ink: #58657b; --traffic-soft: #f0f2f7; }
.experience-task-journey { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; padding: 1rem 1.25rem; margin-bottom: 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: 18px; color: var(--ink-soft); font-size: .8rem; }
.experience-task-journey .progress-track { flex: 1 1 130px; max-width: 240px; }
.experience-task-journey strong { color: var(--ink-strong); }
@media(max-width:700px) {
  .experience-week-strip { width: 100%; min-width: 0; max-width: 100%; grid-template-columns: repeat(7,minmax(68px,1fr)); overflow-x: auto; padding-block: .4rem; scrollbar-width: thin; scroll-snap-type: x proximity; }
  .experience-week-day { scroll-snap-align: start; min-height: 90px; }
  .experience-week-day > span { overflow-wrap: normal; }
  .experience-task-journey .progress-track { flex-basis: 100%; max-width: none; }
}

.command-dialog [data-command-result] > span { display:grid; place-items:center; flex:0 0 24px; width:24px; }
.command-dialog [data-command-result] > span svg { width:20px; height:20px; }
.command-dialog [data-command-result] > strong { flex:1 1 120px; text-align:left; }

@media(min-width:1200px) {
  body.has-app-shell .kanban-board { grid-template-columns:repeat(5,minmax(0,1fr)); }
  body.has-app-shell .kanban-column { min-width:0; padding:.65rem; }
  body.has-app-shell .kanban-column-header { padding:.85rem .6rem; }
  body.has-app-shell .kanban-column-header > div { flex-wrap:wrap; gap:.4rem; }
  body.has-app-shell .kanban-card { padding:1rem .85rem; min-width:0; }
}
