:root {
  color-scheme: light;
  --canvas: #f3f0e9;
  --canvas-deep: #e8e3d9;
  --surface: #fffdf8;
  --surface-muted: #f7f4ed;
  --ink: #18312b;
  --ink-soft: #52645f;
  --line: #d5d2c9;
  --line-strong: #aeb8b3;
  --forest: #173b34;
  --forest-bright: #245f51;
  --berry: #8b3453;
  --berry-dark: #68233d;
  --berry-light: #e49ab4;
  --berry-pale: #f8d9e2;
  --night: #091529;
  --night-deep: #050b18;
  --night-panel: #11233b;
  --sage-light: #89bd86;
  --gold: #b67828;
  --success: #2c6c50;
  --warning: #865a13;
  --danger: #9c2e36;
  --focus: #186eaf;
  --shadow: 0 14px 40px rgb(24 49 43 / 9%);
  --radius: 1rem;
  --radius-small: 0.65rem;
  --content: 88rem;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  background: var(--canvas);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgb(23 59 52 / 3%) 1px, transparent 1px) 0 0 / 4rem 4rem,
    var(--canvas);
  line-height: 1.55;
}

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

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

a {
  color: var(--forest-bright);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--berry-dark);
}

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

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

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.16;
  text-wrap: balance;
}

h1 {
  margin-block-end: 0.6rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.045em;
}

h2 {
  margin-block-end: 0.75rem;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  letter-spacing: -0.025em;
}

h3 {
  margin-block-end: 0.5rem;
  font-size: 1.06rem;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: white;
  background: var(--forest);
  border-radius: 0.4rem;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.loading-shell,
.noscript-notice {
  width: min(42rem, calc(100% - 2rem));
  margin: 12vh auto;
  padding: clamp(1.5rem, 5vw, 3rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.live-region {
  position: fixed;
  z-index: 90;
  right: 1rem;
  bottom: 1rem;
  width: min(28rem, calc(100% - 2rem));
  pointer-events: none;
}

.toast {
  padding: 0.9rem 1rem;
  color: white;
  background: var(--forest);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin-block-end: 0.55rem;
  color: var(--berry);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.muted {
  color: var(--ink-soft);
}

.small {
  font-size: 0.88rem;
}

.app-frame {
  display: grid;
  grid-template-columns: 17.25rem minmax(0, 1fr);
  min-height: 100vh;
}

.app-sidebar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  height: 100vh;
  min-height: 36rem;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 18% 1%, rgb(199 92 137 / 20%), transparent 25rem),
    radial-gradient(circle at 92% 43%, rgb(79 145 104 / 16%), transparent 22rem),
    linear-gradient(180deg, #0c1b31 0%, var(--night) 56%, #100f2c 100%);
  border-inline-end: 1px solid rgb(164 195 185 / 20%);
  box-shadow: 18px 0 48px rgb(4 11 24 / 16%);
}

.app-sidebar::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at 105% 82%,
      transparent 0 43%,
      rgb(126 181 126 / 10%) 44% 45%,
      transparent 46%
    ),
    linear-gradient(116deg, transparent 72%, rgb(126 181 126 / 8%) 72.2% 72.7%, transparent 73%);
  content: "";
}

.sidebar-brand {
  position: relative;
  z-index: 1;
  padding: 1.1rem;
  border-bottom: 1px solid rgb(177 202 196 / 18%);
}

.sidebar-brand > p {
  margin: 0.55rem 0 0 0.8rem;
  color: rgb(213 225 222 / 57%);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.75rem;
  font-style: italic;
  letter-spacing: 0.02em;
}

.brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  min-height: 4rem;
  padding: 0.7rem 0.8rem;
  color: #fff;
  background: linear-gradient(135deg, rgb(38 63 91 / 78%), rgb(50 32 72 / 56%));
  border: 1px solid rgb(185 211 202 / 18%);
  border-radius: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  color: #fff;
  border-color: rgb(228 154 180 / 52%);
}

.brand-mark {
  position: relative;
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 50% 50%, var(--berry-dark) 0 29%, transparent 31%),
    conic-gradient(
      from 30deg,
      var(--berry-light) 0 12%,
      var(--berry) 12% 17%,
      var(--berry-light) 17% 29%,
      var(--berry) 29% 34%,
      var(--berry-light) 34% 46%,
      var(--berry) 46% 51%,
      var(--berry-light) 51% 63%,
      var(--berry) 63% 68%,
      var(--berry-light) 68% 80%,
      var(--berry) 80% 85%,
      var(--berry-light) 85% 97%,
      var(--berry) 97%
    );
  border: 1px solid rgb(255 234 226 / 50%);
  border-radius: 50%;
  box-shadow: 0 10px 26px rgb(199 92 137 / 25%);
  font-family: Georgia, serif;
  font-size: 1.05rem;
  text-shadow: 0 1px 5px rgb(45 13 30 / 70%);
}

.brand-copy {
  display: grid;
}

.brand-copy > span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
}

.brand-copy small {
  color: #9fc7b4;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.app-nav {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 0.9rem 0.8rem 1.2rem;
  overflow-y: auto;
}

.app-nav-list {
  display: grid;
  gap: 0.28rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-nav a {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  min-height: 2.8rem;
  padding: 0.58rem 0.78rem;
  color: rgb(223 233 230 / 76%);
  border: 1px solid transparent;
  border-radius: 0.75rem;
  font-size: 0.91rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.app-nav a:hover {
  color: #fff;
  background: rgb(255 255 255 / 7%);
  border-color: rgb(164 195 185 / 15%);
  transform: translateX(0.12rem);
}

.app-nav a[aria-current="page"] {
  color: #fff;
  background: linear-gradient(135deg, rgb(46 75 96 / 94%), rgb(35 74 59 / 72%));
  border-color: rgb(137 189 134 / 24%);
  box-shadow:
    inset 3px 0 0 var(--berry-light),
    0 9px 24px rgb(3 9 22 / 20%);
}

.nav-symbol {
  display: grid;
  width: 1.72rem;
  height: 1.72rem;
  flex: 0 0 auto;
  place-items: center;
  color: #b3d3c2;
  background: rgb(6 15 31 / 30%);
  border: 1px solid currentColor;
  border-radius: 50% 46% 50% 42%;
  font-size: 0.66rem;
  letter-spacing: -0.04em;
}

.sidebar-footer {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.65rem;
  padding: 0.95rem 1rem 1.1rem;
  border-top: 1px solid rgb(177 202 196 / 18%);
}

.session-summary {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  min-width: 0;
  padding: 0.65rem;
  background: rgb(34 57 82 / 58%);
  border: 1px solid rgb(185 211 202 / 17%);
  border-radius: 0.9rem;
}

.session-avatar {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--berry-light), var(--berry));
  border-radius: 0.7rem;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
}

.session-copy {
  display: grid;
  min-width: 0;
}

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

.session-copy strong {
  color: #fff;
  font-size: 0.84rem;
}

.session-copy span {
  color: #a9c5b8;
  font-size: 0.68rem;
  text-transform: capitalize;
}

.app-workspace {
  min-width: 0;
  background:
    linear-gradient(90deg, rgb(23 59 52 / 3%) 1px, transparent 1px) 0 0 / 4rem 4rem,
    var(--canvas);
}

.app-main {
  width: min(100%, 96rem);
  min-width: 0;
  min-height: 100vh;
  margin-inline: auto;
  padding: clamp(1.25rem, 3vw, 2.6rem);
}

.page-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-block-end: 1.5rem;
}

.page-header p {
  max-width: 48rem;
  margin-block-end: 0;
  color: var(--ink-soft);
}

.actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.button,
button {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.62rem 1rem;
  color: #fff;
  background: var(--forest);
  border: 1px solid var(--forest);
  border-radius: 0.6rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
button:hover {
  color: #fff;
  background: var(--forest-bright);
  border-color: var(--forest-bright);
}

.button.secondary,
button.secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line-strong);
}

.button.secondary:hover,
button.secondary:hover {
  color: var(--forest);
  background: var(--surface-muted);
  border-color: var(--forest);
}

.button.danger,
button.danger {
  background: var(--danger);
  border-color: var(--danger);
}

.button.berry,
button.berry {
  background: var(--berry);
  border-color: var(--berry);
}

button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
}

.button.compact,
button.compact {
  min-height: 2.25rem;
  padding: 0.45rem 0.7rem;
  font-size: 0.84rem;
}

.icon-button {
  width: 2.75rem;
  padding: 0;
  color: #fff;
  background: transparent;
  border-color: rgb(255 255 255 / 45%);
}

.sidebar-footer .icon-button {
  width: 100%;
  min-height: 2.4rem;
  color: rgb(223 233 230 / 70%);
  background: transparent;
  border-color: rgb(185 211 202 / 22%);
  font-size: 0.78rem;
}

.sidebar-footer .icon-button:hover {
  color: #fff;
  background: rgb(255 255 255 / 7%);
  border-color: rgb(228 154 180 / 46%);
}

.card {
  min-width: 0;
  padding: 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 5px 20px rgb(24 49 43 / 5%);
}

.card + .card {
  margin-block-start: 1rem;
}

.card-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-block-end: 1rem;
}

.card-header > :first-child {
  min-width: 0;
}

.card-header h2,
.card-header h3,
.card-header p {
  margin-block-end: 0.2rem;
}

.botanical-overview {
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding: clamp(1rem, 2.2vw, 1.8rem);
  overflow: hidden;
  color: #f8f4ef;
  background:
    radial-gradient(ellipse at 50% 38%, rgb(92 144 108 / 16%), transparent 34%),
    radial-gradient(ellipse at 83% 12%, rgb(194 88 133 / 15%), transparent 29%),
    radial-gradient(ellipse at 6% 94%, rgb(71 118 88 / 14%), transparent 31%),
    linear-gradient(145deg, #071225 0%, #0b1a2f 48%, #100d2a 100%);
  border: 1px solid rgb(175 202 194 / 22%);
  border-radius: 1.35rem;
  box-shadow: 0 24px 70px rgb(5 11 24 / 24%);
}

.botanical-overview::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      115deg,
      transparent 0 26%,
      rgb(255 255 255 / 2.5%) 26.2% 26.4%,
      transparent 26.6%
    ),
    repeating-linear-gradient(
      96deg,
      transparent 0 7rem,
      rgb(142 193 126 / 2.5%) 7.05rem 7.1rem,
      transparent 7.15rem 14rem
    );
  content: "";
}

.botanical-header {
  position: relative;
  z-index: 4;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.25rem 0.35rem 1rem;
}

.botanical-header h1 {
  margin-block-end: 0.45rem;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.25rem);
  text-shadow: 0 3px 24px rgb(0 0 0 / 42%);
}

.botanical-header p:not(.eyebrow) {
  max-width: 48rem;
  margin: 0;
  color: rgb(226 236 232 / 71%);
}

.botanical-overview .eyebrow,
.panel-kicker {
  color: #d9a5b9;
}

.botanical-primary-action {
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(135deg, #a34368, var(--berry));
  border-color: rgb(255 220 229 / 32%);
  box-shadow: 0 12px 30px rgb(111 31 63 / 34%);
}

.botanical-primary-action:hover {
  background: linear-gradient(135deg, #b94f77, #7b2948);
  border-color: rgb(255 220 229 / 55%);
}

.botanical-body {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-areas: "attention vine pipeline";
  grid-template-columns: minmax(11.5rem, 0.65fr) minmax(31rem, 2.15fr) minmax(11.5rem, 0.65fr);
  gap: clamp(0.75rem, 1.4vw, 1.2rem);
  align-items: center;
}

.botanical-panel {
  position: relative;
  z-index: 3;
  min-width: 0;
  padding: 1rem;
  background: linear-gradient(145deg, rgb(22 41 65 / 82%), rgb(12 28 48 / 70%));
  border: 1px solid rgb(181 207 199 / 17%);
  border-radius: 1rem;
  box-shadow: 0 14px 35px rgb(2 8 20 / 22%);
  backdrop-filter: blur(9px);
}

.attention-panel {
  grid-area: attention;
}

.pipeline-panel {
  grid-area: pipeline;
}

.botanical-panel h2 {
  margin-block-end: 0.8rem;
  color: #fff;
  font-size: 1.15rem;
}

.panel-kicker {
  margin-block-end: 0.25rem;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.botanical-queue-list {
  display: grid;
  gap: 0.48rem;
}

.botanical-queue-link {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  min-height: 3.45rem;
  padding: 0.52rem;
  color: #f3f7f5;
  background: rgb(255 255 255 / 4%);
  border: 1px solid transparent;
  border-radius: 0.7rem;
  text-decoration: none;
}

.botanical-queue-link:hover {
  color: #fff;
  background: rgb(255 255 255 / 8%);
  border-color: rgb(181 207 199 / 20%);
}

.botanical-queue-link > strong {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: #fff;
  background: rgb(91 146 113 / 30%);
  border: 1px solid rgb(137 189 134 / 35%);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.botanical-queue-link[data-tone="warning"] > strong {
  color: #ffe7a9;
  background: rgb(182 120 40 / 26%);
  border-color: rgb(226 176 101 / 42%);
}

.botanical-queue-link[data-tone="berry"] > strong {
  color: #ffe7ef;
  background: rgb(166 63 103 / 26%);
  border-color: rgb(228 154 180 / 42%);
}

.botanical-queue-link[data-tone="quiet"] > strong {
  color: #bdd0c8;
  background: rgb(130 155 145 / 12%);
  border-color: rgb(178 201 192 / 20%);
}

.botanical-queue-link > span,
.botanical-queue-link small {
  display: block;
  min-width: 0;
}

.queue-label {
  color: #fff;
  font-size: 0.77rem;
  font-weight: 800;
}

.botanical-queue-link small {
  margin-block-start: 0.08rem;
  color: rgb(213 226 221 / 55%);
  font-size: 0.64rem;
  line-height: 1.35;
}

.pipeline-pulse-list {
  display: grid;
  gap: 0.1rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}

.pipeline-pulse-list li {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.44rem 0;
  color: rgb(229 238 234 / 72%);
  border-bottom: 1px solid rgb(182 206 199 / 11%);
  font-size: 0.72rem;
}

.pipeline-pulse-list strong {
  color: #f1c6d5;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
}

.panel-empty {
  color: rgb(217 229 224 / 60%);
  font-size: 0.8rem;
}

.panel-link {
  display: inline-flex;
  color: #a8cfb6;
  font-size: 0.75rem;
  font-weight: 800;
  text-underline-offset: 0.22em;
}

.panel-link:hover {
  color: #f1c6d5;
}

.panel-link.light {
  color: var(--forest-bright);
}

.panel-link.light:hover {
  color: var(--berry-dark);
}

.botanical-stage {
  position: relative;
  grid-area: vine;
  min-width: 0;
  min-height: 35rem;
}

.botanical-vine,
.flower-map {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
}

.botanical-vine {
  overflow: visible;
  pointer-events: none;
}

.botanical-stem-shadow,
.botanical-stem,
.botanical-stem-highlight {
  fill: none;
  stroke-linecap: round;
}

.botanical-stem-shadow {
  stroke: rgb(0 0 0 / 28%);
  stroke-width: 11;
}

.botanical-stem {
  stroke: url("#dashboard-stem-gradient");
  stroke-dasharray: 950;
  stroke-dashoffset: 950;
  stroke-width: 6.5;
  animation: botanical-grow 820ms cubic-bezier(0.25, 0.8, 0.22, 1) var(--stem-delay) forwards;
}

.botanical-stem-highlight {
  stroke: rgb(220 246 211 / 20%);
  stroke-dasharray: 950;
  stroke-dashoffset: 950;
  stroke-width: 1.5;
  animation: botanical-grow 820ms cubic-bezier(0.25, 0.8, 0.22, 1) var(--stem-delay) forwards;
}

.botanical-leaf {
  fill: url("#dashboard-leaf-gradient");
  stroke: rgb(231 255 227 / 18%);
  stroke-width: 0.8;
  opacity: 0;
  animation: botanical-leaf-in 360ms ease var(--leaf-delay) forwards;
}

.flower-map {
  z-index: 2;
}

.flower-module {
  position: absolute;
  top: var(--flower-y);
  left: var(--flower-x);
  display: grid;
  width: 7.25rem;
  height: 8.2rem;
  place-items: start center;
  color: #fff;
  border-radius: 1rem;
  text-decoration: none;
  transform: translate(-50%, -50%);
}

.flower-module:hover {
  color: #fff;
}

.flower-corolla {
  position: relative;
  display: block;
  width: 5.2rem;
  height: 5.2rem;
  filter: drop-shadow(0 11px 15px rgb(2 6 18 / 34%));
  transition:
    transform 180ms ease,
    filter 180ms ease;
  animation: botanical-bloom 540ms cubic-bezier(0.34, 1.35, 0.64, 1) var(--flower-delay) backwards;
}

.flower-module:hover .flower-corolla,
.flower-module:focus-visible .flower-corolla {
  filter: drop-shadow(0 13px 20px rgb(186 75 119 / 34%));
  transform: scale(1.055);
}

.flower-module:focus-visible {
  outline: 3px solid #8bc7ee;
  outline-offset: 0.18rem;
}

.flower-petal {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.5rem;
  height: 2.55rem;
  background: radial-gradient(ellipse at 50% 28%, #f8d7df 0%, #d87d9c 53%, #823550 100%);
  border: 1px solid rgb(255 239 231 / 25%);
  border-radius: 58% 58% 52% 52%;
  box-shadow: inset 0 0.25rem 0.45rem rgb(255 255 255 / 13%);
  transform-origin: 50% 100%;
}

.flower-petal:nth-child(1) {
  transform: translate(-50%, -100%) rotate(0deg);
}

.flower-petal:nth-child(2) {
  transform: translate(-50%, -100%) rotate(60deg);
}

.flower-petal:nth-child(3) {
  transform: translate(-50%, -100%) rotate(120deg);
}

.flower-petal:nth-child(4) {
  transform: translate(-50%, -100%) rotate(180deg);
}

.flower-petal:nth-child(5) {
  transform: translate(-50%, -100%) rotate(240deg);
}

.flower-petal:nth-child(6) {
  transform: translate(-50%, -100%) rotate(300deg);
}

.flower-heart {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 42% 38%, rgb(255 222 181 / 34%) 0 7%, transparent 8%),
    radial-gradient(circle at 50% 50%, #7b2c4b, #391526);
  border: 1px solid rgb(255 230 214 / 30%);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.83rem;
  font-weight: 900;
  text-shadow: 0 1px 4px rgb(0 0 0 / 65%);
  transform: translate(-50%, -50%);
}

.flower-label {
  position: absolute;
  right: 0;
  bottom: 0.1rem;
  left: 0;
  color: #fff7f1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.89rem;
  font-weight: 800;
  text-align: center;
  text-shadow: 0 2px 9px rgb(0 0 0 / 82%);
  animation: botanical-copy-in 320ms ease calc(var(--flower-delay) + 180ms) backwards;
}

.flower-count {
  position: absolute;
  z-index: 4;
  top: -0.15rem;
  right: 0.25rem;
  display: grid;
  min-width: 1.8rem;
  height: 1.55rem;
  padding-inline: 0.35rem;
  place-items: center;
  color: #ffe5ae;
  background: rgb(5 13 30 / 90%);
  border: 1px solid rgb(255 220 170 / 38%);
  border-radius: 999px;
  box-shadow: 0 7px 14px rgb(0 0 0 / 24%);
  font-size: 0.7rem;
  font-weight: 850;
  animation: botanical-copy-in 320ms ease calc(var(--flower-delay) + 210ms) backwards;
}

.vine-root-mark {
  position: absolute;
  z-index: 3;
  bottom: 0;
  left: 50%;
  display: grid;
  min-width: 8.5rem;
  padding: 0.52rem 0.8rem;
  color: #fff;
  background: rgb(6 15 31 / 83%);
  border: 1px solid rgb(164 196 184 / 27%);
  border-radius: 0.8rem;
  box-shadow: 0 12px 30px rgb(0 0 0 / 27%);
  text-align: center;
  transform: translateX(-50%);
}

.vine-root-mark strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.86rem;
}

.vine-root-mark span {
  color: #9dc8b2;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-kpi-strip {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-block-start: 0.75rem;
  overflow: hidden;
  background: linear-gradient(90deg, rgb(8 20 38 / 82%), rgb(14 30 50 / 72%));
  border: 1px solid rgb(181 207 199 / 17%);
  border-radius: 0.95rem;
  box-shadow: 0 14px 35px rgb(2 8 20 / 20%);
}

.hero-metric {
  min-width: 0;
  min-height: 6.8rem;
  padding: 0.85rem 1rem;
  border-inline-end: 1px solid rgb(181 207 199 / 14%);
}

.hero-metric:last-child {
  border-inline-end: 0;
}

.hero-metric-label {
  display: block;
  color: rgb(218 230 225 / 64%);
  font-size: 0.83rem;
  font-weight: 700;
}

.hero-metric-value {
  display: block;
  margin-block-start: 0.35rem;
  color: #f6cedc;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.hero-metric p {
  margin: 0.35rem 0 0;
  color: rgb(215 228 223 / 48%);
  font-size: 0.68rem;
  line-height: 1.35;
}

.dashboard-support {
  margin-block-start: 1.2rem;
}

@keyframes botanical-grow {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes botanical-leaf-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes botanical-bloom {
  from {
    opacity: 0;
    transform: scale(0.52);
  }

  72% {
    opacity: 1;
    transform: scale(1.06);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes botanical-copy-in {
  from {
    opacity: 0;
    transform: translateY(0.25rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-block-end: 1.2rem;
}

.metric {
  position: relative;
  overflow: hidden;
  min-height: 8.6rem;
}

.metric::after {
  position: absolute;
  right: -1.4rem;
  bottom: -2.1rem;
  width: 6rem;
  height: 6rem;
  background: var(--canvas-deep);
  border: 1rem solid rgb(139 52 83 / 12%);
  border-radius: 50%;
  content: "";
}

.metric > * {
  position: relative;
  z-index: 1;
}

.metric-label {
  display: block;
  max-width: 11rem;
  color: var(--ink-soft);
  font-size: 0.83rem;
  font-weight: 700;
}

.metric-value {
  display: block;
  margin-block-start: 0.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}

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

.stack {
  display: grid;
  gap: 1rem;
}

.compact-stack {
  gap: 0.75rem;
}

.settings-nav {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  gap: 0.45rem;
  margin-block-end: 1rem;
  padding: 0.55rem;
  overflow-x: auto;
  background: rgb(243 240 233 / 94%);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  backdrop-filter: blur(10px);
}

.settings-nav a {
  flex: 0 0 auto;
  min-height: 2.5rem;
  padding: 0.55rem 0.75rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  font-size: 0.83rem;
  font-weight: 750;
  text-decoration: none;
}

.settings-nav a:hover {
  color: var(--forest);
  border-color: var(--forest);
}

.settings-section {
  scroll-margin-top: 1rem;
}

.settings-section + .settings-section {
  margin-block-start: 1rem;
}

.danger-zone,
.quick-actions,
.role-editor,
.access-summary {
  margin-block-start: 0.85rem;
  padding: 0.8rem;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}

.danger-zone {
  border-color: rgb(156 46 54 / 40%);
}

.danger-zone > summary,
.quick-actions > summary,
.role-editor > summary,
.access-summary > summary {
  min-height: 2.25rem;
  font-weight: 800;
  cursor: pointer;
}

.person-access-grid,
.role-grid,
.responsibility-grid,
.mobile-app-grid,
.enrollment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-block: 1rem;
}

.person-access-card,
.role-card,
.responsibility-card,
.mobile-app-card,
.enrollment-card {
  min-width: 0;
  padding: 1rem;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}

.person-access-card > header,
.role-card > header,
.mobile-app-card > header {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  justify-content: space-between;
}

.person-access-card h3,
.role-card h3,
.responsibility-card h3,
.mobile-app-card h3,
.enrollment-card h3 {
  overflow-wrap: anywhere;
}

.badge-row,
.role-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.role-chip {
  padding: 0.3rem 0.55rem;
  color: var(--forest);
  background: #e6f0e8;
  border: 1px solid #bdd0c2;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 750;
}

.provenance-grid {
  display: grid;
  gap: 0.65rem;
  margin-block-start: 0.8rem;
}

.provenance-grid section {
  padding: 0.7rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.provenance-grid h4,
.mobile-app-card h4 {
  margin: 0 0 0.35rem;
}

.permission-list {
  margin-block-end: 0.65rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.access-list,
.assignment-list,
.compact-list {
  display: grid;
  gap: 0.5rem;
  margin: 0.75rem 0;
  padding: 0;
  list-style: none;
}

.access-list li,
.assignment-list li {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.access-list span,
.assignment-list span,
.access-list small,
.assignment-list small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.capability-choices {
  display: grid;
  max-height: 20rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.75rem;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}

.capability-choices legend {
  padding-inline: 0.35rem;
  font-weight: 800;
}

.capability-choices label {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  padding: 0.45rem;
  overflow-wrap: anywhere;
  background: var(--surface);
  border-radius: 0.4rem;
  font-size: 0.78rem;
}

.inline-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: end;
}

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

.demo-lab {
  border-color: rgb(139 52 83 / 35%);
  box-shadow: 0 10px 30px rgb(139 52 83 / 8%);
}

.demo-warning {
  margin-block-end: 1rem;
  padding: 0.9rem;
  color: #f8f4ef;
  background: linear-gradient(135deg, var(--night), #251229);
  border-radius: var(--radius-small);
}

.demo-warning p {
  margin: 0.35rem 0 0;
  color: #d8e5df;
}

.success-note,
.warning-note {
  margin-block: 0.9rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
}

.success-note {
  color: var(--success);
  background: #e7f3e9;
  border: 1px solid #b7d4be;
}

.warning-note {
  color: var(--warning);
  background: #fff3d8;
  border: 1px solid #e4c982;
}

.readiness-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-block: 1rem;
}

.readiness-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: center;
  min-width: 0;
  padding: 0.6rem;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  font-size: 0.8rem;
}

.demo-request {
  margin-block: 1rem;
  padding: 1rem;
  background: #f8e9ef;
  border-inline-start: 4px solid var(--berry);
  border-radius: 0.35rem;
}

.demo-request blockquote {
  margin: 0.5rem 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.enrollment-card img {
  display: block;
  width: min(100%, 15rem);
  height: auto;
  margin: 0.75rem auto;
  background: #fff;
  border: 1px solid var(--line);
}

.enrollment-card input {
  width: 100%;
}

.review-section {
  margin-block-start: 2rem;
}

.report-metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
  margin-block: 1rem 1.5rem;
}

.report-metric {
  min-width: 0;
  padding: 1rem;
  background:
    radial-gradient(circle at 100% 0%, rgb(196 85 132 / 12%), transparent 8rem),
    linear-gradient(145deg, #0c1b31, #11152d);
  border: 1px solid rgb(181 207 199 / 18%);
  border-radius: var(--radius-small);
  box-shadow: 0 12px 26px rgb(5 13 30 / 12%);
  color: #f7fbf8;
}

.report-metric-label {
  display: block;
  min-height: 2.2rem;
  color: #a9c7bc;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.report-metric strong {
  display: block;
  margin-block-start: 0.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.report-metric p {
  margin: 0.35rem 0 0;
  color: #d8e5df;
  font-size: 0.76rem;
}

.report-breakdown-grid {
  margin-block-end: 1.5rem;
}

.report-breakdown {
  box-shadow: var(--shadow-soft);
}

.report-breakdown-list {
  display: grid;
  grid-template-columns: minmax(9rem, 1fr) auto;
  gap: 0;
  margin: 0;
}

.report-breakdown-list dt,
.report-breakdown-list dd {
  margin: 0;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}

.report-breakdown-list dt {
  font-weight: 750;
}

.report-breakdown-list dd {
  color: var(--ink-soft);
  text-align: end;
}

.report-record,
.export-record {
  display: grid;
  gap: 1rem;
}

.report-duration {
  color: var(--forest-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.export-create-form {
  display: grid;
  max-width: 24rem;
  gap: 0.35rem;
  justify-items: end;
}

.export-errors {
  width: 100%;
  text-align: start;
}

.checksum {
  max-width: 24rem;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.75rem;
}

.section-heading {
  gap: 1rem;
  align-items: end;
}

.inset-card {
  background: var(--surface-muted);
  box-shadow: none;
}

.evidence-record,
.review-record {
  display: grid;
  gap: 1rem;
}

.evidence-detail {
  min-width: 0;
}

.evidence-json {
  display: block;
  max-width: 24rem;
  overflow-wrap: anywhere;
  white-space: normal;
}

.clock-state-summary,
.evidence-capture-result {
  min-width: 0;
}

.evidence-capture-result:empty {
  display: none;
}

.pipeline-list,
.timeline-list,
.notification-list,
.record-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.portal-client-picker {
  display: grid;
  gap: 0.4rem;
  padding: 0 1rem 1rem;
}

.portal-client-picker label {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-client-picker select {
  max-width: 100%;
}

.portal-visit-time {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 700;
}

.portal-request-form {
  margin-bottom: 1.5rem;
}

.portal-request-queue {
  display: grid;
  gap: 1rem;
}

.warning-panel,
.success-panel {
  border-radius: var(--radius);
  padding: 1rem;
}

.warning-panel {
  background: #fff7df;
  border: 1px solid #d8aa3b;
  color: #5c4105;
}

.success-panel {
  background: #edf8f0;
  border: 1px solid #77ad82;
  color: #214d2a;
}

.warning-panel p,
.success-panel p {
  margin-bottom: 0;
}

.breakable {
  overflow-wrap: anywhere;
}

.pipeline-row {
  display: grid;
  grid-template-columns: minmax(8rem, 0.9fr) minmax(7rem, 2fr) auto;
  gap: 0.75rem;
  align-items: center;
}

.pipeline-track {
  overflow: hidden;
  height: 0.65rem;
  background: var(--canvas-deep);
  border-radius: 999px;
}

.pipeline-fill {
  height: 100%;
  background: var(--berry);
  border-radius: inherit;
}

.pipeline-fill[data-level="0"] {
  width: 0;
}

.pipeline-fill[data-level="1"] {
  width: 10%;
}

.pipeline-fill[data-level="2"] {
  width: 20%;
}

.pipeline-fill[data-level="3"] {
  width: 30%;
}

.pipeline-fill[data-level="4"] {
  width: 40%;
}

.pipeline-fill[data-level="5"] {
  width: 50%;
}

.pipeline-fill[data-level="6"] {
  width: 60%;
}

.pipeline-fill[data-level="7"] {
  width: 70%;
}

.pipeline-fill[data-level="8"] {
  width: 80%;
}

.pipeline-fill[data-level="9"] {
  width: 90%;
}

.pipeline-fill[data-level="10"] {
  width: 100%;
}

.daily-chart {
  display: grid;
  grid-template-columns: repeat(14, minmax(1rem, 1fr));
  gap: 0.35rem;
  align-items: end;
  height: 10rem;
  margin-block-start: 1rem;
  padding-block-start: 1rem;
  border-bottom: 1px solid var(--line-strong);
}

.daily-bar {
  position: relative;
  min-height: 0.2rem;
  background: var(--forest-bright);
  border-radius: 0.3rem 0.3rem 0 0;
}

.daily-bar[data-level="0"] {
  height: 2%;
}

.daily-bar[data-level="1"] {
  height: 10%;
}

.daily-bar[data-level="2"] {
  height: 20%;
}

.daily-bar[data-level="3"] {
  height: 30%;
}

.daily-bar[data-level="4"] {
  height: 40%;
}

.daily-bar[data-level="5"] {
  height: 50%;
}

.daily-bar[data-level="6"] {
  height: 60%;
}

.daily-bar[data-level="7"] {
  height: 70%;
}

.daily-bar[data-level="8"] {
  height: 80%;
}

.daily-bar[data-level="9"] {
  height: 90%;
}

.daily-bar[data-level="10"] {
  height: 100%;
}

.daily-bar[data-zero="true"] {
  background: var(--line);
}

.daily-bar span {
  position: absolute;
  right: 50%;
  bottom: calc(100% + 0.25rem);
  color: var(--ink-soft);
  font-size: 0.65rem;
  transform: translateX(50%);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) minmax(11rem, 0.45fr) auto;
  gap: 0.75rem;
  align-items: end;
  margin-block-end: 1rem;
  padding: 1rem;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}

.filter-bar-wide {
  grid-template-columns: minmax(13rem, 1fr) repeat(2, minmax(10rem, 0.45fr)) auto;
}

.filter-bar-schedule {
  grid-template-columns: repeat(3, minmax(10rem, 1fr));
}

.filter-bar-schedule button {
  align-self: end;
}

.field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.field > label,
.field > legend {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 750;
}

.field-hint {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.77rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.62rem 0.7rem;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 0.5rem;
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--forest-bright);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 1px var(--danger);
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.checkbox-row,
.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
}

.checkbox-row label,
.choice-grid label {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  min-height: 2.4rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.checkbox-row input,
.choice-grid input {
  width: 1.15rem;
  min-height: 1.15rem;
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: flex-start;
  justify-content: space-between;
}

.section-heading > h2 {
  margin-block-end: 0;
}

.location-create-panel {
  min-width: min(100%, 17rem);
}

.location-source-fieldset {
  min-width: 0;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}

.location-source-fieldset > legend {
  padding-inline: 0.35rem;
  color: var(--forest);
  font-weight: 800;
}

.location-candidate-status {
  margin-block-end: 0;
}

.synthetic-action {
  border-style: dashed;
}

.synthetic-warning {
  margin: 0.75rem 0 0;
  color: var(--danger);
  font-size: 0.86rem;
  font-weight: 750;
}

.advanced-location-details {
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}

.advanced-location-details > summary {
  padding: 0.75rem 0.9rem;
  font-weight: 750;
  cursor: pointer;
}

.advanced-location-body {
  padding: 0 0.9rem 0.9rem;
}

.duplicate-review h2 {
  margin-block-end: 0.5rem;
}

.form-section {
  margin-block: 1.25rem;
  padding-block-start: 1.1rem;
  border-top: 1px solid var(--line);
}

.form-section > legend {
  padding-inline-end: 1rem;
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.privacy-note {
  padding: 0.8rem 1rem;
  color: #593c0e;
  background: #fff5dc;
  border-inline-start: 4px solid var(--gold);
  border-radius: 0.3rem;
  font-size: 0.86rem;
}

.error-summary,
.notice {
  margin-block-end: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid;
  border-radius: var(--radius-small);
}

.error-summary {
  color: #681c25;
  background: #fff1f2;
  border-color: #d9969d;
}

.notice {
  color: #174a38;
  background: #edf8f2;
  border-color: #8bb9a5;
}

.notice.warning {
  color: #63420f;
  background: #fff7e5;
  border-color: #d4af6c;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

th,
td {
  padding: 0.78rem 0.8rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--ink-soft);
  background: var(--surface-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #faf8f2;
}

.primary-cell {
  display: grid;
  gap: 0.15rem;
}

.primary-cell a {
  font-weight: 800;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.2rem 0.55rem;
  color: var(--forest);
  background: #e4f0eb;
  border: 1px solid #a8c6ba;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: capitalize;
  white-space: nowrap;
}

.status-badge[data-tone="warning"] {
  color: #6b470d;
  background: #fff2d6;
  border-color: #dbbb76;
}

.status-badge[data-tone="danger"] {
  color: #7a1f29;
  background: #ffecef;
  border-color: #dfa2a9;
}

.status-badge[data-tone="muted"] {
  color: #4e5c58;
  background: #efefec;
  border-color: #c8cbc7;
}

.pagination {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-block-start: 1rem;
}

.pagination p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.empty-state {
  padding: clamp(2rem, 7vw, 4.5rem) 1rem;
  text-align: center;
  background: var(--surface-muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

.empty-state p {
  max-width: 35rem;
  margin-inline: auto;
  color: var(--ink-soft);
}

.record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  padding: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}

.record p {
  margin-block-end: 0.25rem;
}

.record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 0.7fr);
  gap: 1rem;
  align-items: start;
}

.definition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1.2rem;
  margin: 0;
}

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

.definition-grid > div {
  min-width: 0;
  padding-block-end: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.definition-grid dt {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.definition-grid dd {
  margin: 0.15rem 0 0;
  overflow-wrap: anywhere;
}

details.action-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}

details.action-panel + details.action-panel {
  margin-block-start: 0.65rem;
}

details.action-panel summary {
  padding: 0.8rem 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

details.action-panel[open] summary {
  border-bottom: 1px solid var(--line);
}

.action-panel-body {
  padding: 1rem;
}

.action-panel-body form {
  display: grid;
  gap: 0.8rem;
}

.team-record,
.shift-record {
  margin-block-start: 0;
}

.team-record > .definition-grid,
.shift-record > .definition-grid {
  margin-block-end: 1rem;
}

.invitation-receipt input[readonly] {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
}

dialog {
  width: min(34rem, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  overflow: auto;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgb(10 29 25 / 60%);
}

.dialog-content {
  padding: 1.25rem;
}

.dialog-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  padding: 1rem 1.25rem;
  background: var(--surface-muted);
  border-top: 1px solid var(--line);
}

.login-page {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(17rem, 0.85fr) minmax(20rem, 1.15fr);
}

.login-story {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 24rem;
  padding: clamp(2rem, 6vw, 5.5rem);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 76% 17%, rgb(196 85 132 / 19%), transparent 19rem),
    radial-gradient(circle at 16% 92%, rgb(74 139 99 / 18%), transparent 23rem),
    linear-gradient(145deg, #071225 0%, #0b1a2f 56%, #110d2b 100%);
}

.login-story::before,
.login-story::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.login-story::before {
  top: -7rem;
  right: -10rem;
  width: 30rem;
  height: 30rem;
  border: 2px solid rgb(137 189 134 / 20%);
  border-left-color: transparent;
  border-radius: 46% 54% 48% 52%;
  transform: rotate(22deg);
}

.login-story::after {
  top: 1rem;
  right: 8%;
  width: 0.34rem;
  height: 82%;
  background: linear-gradient(180deg, transparent, rgb(137 189 134 / 34%), transparent);
  border-radius: 999px;
  box-shadow:
    5rem 2rem 0 -0.08rem rgb(137 189 134 / 12%),
    -4rem 8rem 0 -0.11rem rgb(137 189 134 / 16%);
  transform: rotate(25deg);
  transform-origin: bottom;
}

.login-story > * {
  position: relative;
  z-index: 1;
}

.login-story h1 {
  max-width: 11ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 6vw, 5rem);
  letter-spacing: -0.04em;
}

.login-story p {
  max-width: 34rem;
  color: #dfe9e5;
}

.login-form-wrap {
  display: grid;
  align-content: center;
  padding: clamp(1.25rem, 7vw, 7rem);
}

.login-form {
  width: min(100%, 31rem);
}

.login-form .field {
  margin-block: 1rem;
}

.login-form button[type="submit"] {
  width: 100%;
  margin-block-start: 0.5rem;
}

.my-day-sequence {
  display: grid;
  gap: 1rem;
}

.my-day-visit {
  position: relative;
  overflow: hidden;
}

.my-day-current {
  border-color: var(--berry);
  box-shadow: 0 0 0 0.18rem rgb(126 35 72 / 10%);
}

.my-day-next::before,
.my-day-current::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0.28rem;
  background: var(--berry);
  content: "";
}

.my-day-next::before {
  background: var(--sage-light);
}

.my-day-address {
  color: var(--ink);
  font-style: normal;
  line-height: 1.65;
}

.my-day-global-actions,
.my-day-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: start;
}

.my-day-actions > .stack {
  width: 100%;
}

.my-day-timer {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.readiness-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0.45rem;
  list-style: none;
}

.readiness-list li {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--surface-muted);
}

.readiness-ready strong {
  color: var(--success);
}

.readiness-missing strong {
  color: var(--berry);
}

.compact-list .record {
  padding-block: 0.7rem;
}

.mobile-device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: 1rem;
}

.mobile-device-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--surface-muted);
}

.mobile-device-card > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
}

.mobile-device-card h3,
.mobile-device-card p {
  margin-block-start: 0;
}

.one-time-enrollment {
  padding: 0.85rem;
  border: 2px solid var(--warning);
  border-radius: 0.75rem;
  background: var(--surface);
}

.one-time-enrollment input {
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

@media (max-width: 82rem) {
  .botanical-body {
    grid-template-areas:
      "vine vine"
      "attention pipeline";
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .botanical-stage {
    min-height: 34rem;
  }
}

@media (max-width: 70rem) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .hero-metric:nth-child(2) {
    border-inline-end: 0;
  }

  .hero-metric:nth-child(-n + 2) {
    border-bottom: 1px solid rgb(181 207 199 / 14%);
  }

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

  .person-access-grid,
  .role-grid,
  .responsibility-grid,
  .mobile-app-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar-wide,
  .filter-bar-schedule {
    grid-template-columns: repeat(2, minmax(11rem, 1fr));
  }
}

@media (max-width: 54rem) {
  .app-frame {
    display: block;
  }

  .app-sidebar {
    position: sticky;
    top: 0;
    display: grid;
    height: auto;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    background:
      radial-gradient(circle at 15% 0%, rgb(199 92 137 / 18%), transparent 17rem),
      linear-gradient(100deg, #0c1b31, #0a162a 65%, #12102d);
    border-inline-end: 0;
    border-bottom: 1px solid rgb(164 195 185 / 22%);
    box-shadow: 0 12px 34px rgb(4 11 24 / 18%);
  }

  .sidebar-brand {
    grid-row: 1;
    grid-column: 1;
    padding: 0.55rem 0.75rem;
    border-bottom: 0;
  }

  .sidebar-brand > p {
    display: none;
  }

  .sidebar-brand .brand {
    width: fit-content;
    min-height: 3rem;
    padding: 0.38rem 0.55rem;
    background: transparent;
    border-color: transparent;
  }

  .sidebar-brand .brand-mark {
    width: 2.15rem;
    height: 2.15rem;
    font-size: 0.85rem;
  }

  .app-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    overflow-x: auto;
    padding: 0.45rem 0.75rem 0.6rem;
    border-inline: 0;
    border-top: 1px solid rgb(177 202 196 / 14%);
  }

  .app-nav-list {
    display: flex;
    width: max-content;
  }

  .app-nav a {
    min-height: 2.45rem;
    padding: 0.45rem 0.68rem;
    white-space: nowrap;
  }

  .app-nav a:hover {
    transform: none;
  }

  .nav-symbol {
    display: none;
  }

  .sidebar-footer {
    display: flex;
    grid-row: 1;
    grid-column: 2;
    align-items: center;
    padding: 0.55rem 0.75rem 0.55rem 0;
    border-top: 0;
  }

  .sidebar-footer .session-summary {
    display: none;
  }

  .sidebar-footer .icon-button {
    width: auto;
    min-height: 2.35rem;
    padding-inline: 0.65rem;
  }

  .app-main {
    min-height: calc(100vh - 7rem);
  }

  .settings-nav {
    top: 6.4rem;
  }

  .login-page {
    grid-template-columns: 1fr;
  }

  .login-story {
    min-height: 19rem;
  }

  .login-form-wrap {
    min-height: 28rem;
  }
}

@media (max-width: 48rem) {
  .botanical-header {
    display: grid;
  }

  .botanical-header .button {
    justify-self: start;
  }

  .botanical-body {
    grid-template-areas:
      "vine"
      "attention"
      "pipeline";
    grid-template-columns: 1fr;
  }

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

  .review-section > .section-heading {
    align-items: start;
  }

  .export-create-form {
    max-width: none;
    justify-items: start;
  }
}

@media (max-width: 40rem) {
  .brand-copy small {
    display: none;
  }

  .app-main {
    padding: 1rem;
  }

  .settings-section {
    padding: 0.9rem;
  }

  .settings-section .card-header,
  .person-access-card > header,
  .role-card > header,
  .mobile-app-card > header,
  .mobile-device-card > header,
  .inline-control {
    display: grid;
    grid-template-columns: 1fr;
  }

  .settings-nav {
    top: 6.15rem;
    margin-inline: -0.25rem;
  }

  .capability-choices,
  .readiness-grid,
  .enrollment-grid {
    grid-template-columns: 1fr;
  }

  .access-list li,
  .assignment-list li {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-section button,
  .settings-section .button {
    width: 100%;
  }

  .botanical-overview {
    padding: 0.85rem;
    border-radius: 1rem;
  }

  .botanical-header {
    padding-inline: 0.1rem;
  }

  .botanical-header h1 {
    font-size: 2rem;
  }

  .report-metric-grid {
    grid-template-columns: 1fr;
  }

  .botanical-stage {
    min-height: 0;
    padding: 1.4rem 0.2rem 4.2rem;
  }

  .botanical-vine {
    display: none;
  }

  .flower-map {
    position: relative;
    display: grid;
    width: auto;
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem 0.2rem;
    inset: auto;
  }

  .flower-map::before {
    position: absolute;
    z-index: -1;
    top: 1.5rem;
    bottom: 0.8rem;
    left: 50%;
    width: 0.38rem;
    background: linear-gradient(180deg, #7eb174, #2e6a4d 74%, #183e31);
    border-radius: 999px;
    box-shadow: 0 0 0 1px rgb(224 247 218 / 10%);
    content: "";
    transform: translateX(-50%);
  }

  .flower-module {
    position: relative;
    top: auto;
    left: auto;
    justify-self: center;
    transform: none;
  }

  .flower-module:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .vine-root-mark {
    bottom: 0;
  }

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

  .hero-metric,
  .hero-metric:nth-child(2),
  .hero-metric:last-child {
    border-right: 0;
    border-bottom: 1px solid rgb(181 207 199 / 14%);
  }

  .hero-metric:last-child {
    border-bottom: 0;
  }

  .page-header {
    display: grid;
  }

  .metric-grid,
  .split-grid,
  .form-grid,
  .definition-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar,
  .filter-bar-wide,
  .filter-bar-schedule {
    grid-template-columns: 1fr;
  }

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

  .pagination {
    flex-wrap: wrap;
  }

  .pipeline-row {
    grid-template-columns: minmax(7rem, 1fr) minmax(5rem, 1.2fr) auto;
    font-size: 0.82rem;
  }
}

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

  .botanical-stem,
  .botanical-stem-highlight,
  .botanical-leaf,
  .flower-corolla,
  .flower-label,
  .flower-count {
    opacity: 1;
    animation: none;
  }

  .botanical-stem,
  .botanical-stem-highlight {
    stroke-dashoffset: 0;
  }
}
