:root {
  --page: #eef1f5;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --ink: #141820;
  --text: #303640;
  --muted: #7f8792;
  --line: #e4e8ee;
  --blue: #2f7ded;
  --blue-deep: #2367cb;
  --blue-soft: #eaf2ff;
  --cyan: #23b9b0;
  --green: #22a06b;
  --green-soft: #e9f8f0;
  --orange: #f27a3f;
  --orange-soft: #fff1e8;
  --red: #dc4c57;
  --red-soft: #fdecee;
  --purple: #7457e8;
  --purple-soft: #f0edff;
  --shadow: 0 22px 60px rgba(25, 39, 64, 0.14);
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--page); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(47, 125, 237, 0.10), transparent 28rem),
    radial-gradient(circle at 88% 12%, rgba(35, 185, 176, 0.10), transparent 28rem),
    var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button { cursor: pointer; }

button:disabled { cursor: not-allowed; opacity: 0.48; }

.demo-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 48px;
}

.demo-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 7px;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.demo-header h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(25px, 4vw, 38px);
  line-height: 1.18;
}

.lead {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.role-switch {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 8px 26px rgba(32, 54, 83, 0.07);
}

.role-switch button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.role-switch button[aria-pressed="true"] {
  color: #fff;
  background: var(--blue);
}

.demo-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 32px rgba(32, 54, 83, 0.06);
  backdrop-filter: blur(10px);
}

.current-role {
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}

.current-role span,
.route-trail {
  color: var(--muted);
  font-size: 12px;
}

.current-role strong { color: var(--ink); font-size: 13px; }

.route-trail {
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reset-button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  background: var(--surface);
  font-size: 12px;
  font-weight: 650;
}

.demo-stage {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) 390px minmax(190px, 1fr);
  align-items: start;
  gap: 36px;
  margin-top: 26px;
}

.journey-panel,
.context-panel {
  position: sticky;
  top: 24px;
  padding-top: 72px;
}

.journey-panel h2,
.context-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.journey-panel ol {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
  counter-reset: journey;
}

.journey-panel li {
  position: relative;
  min-height: 30px;
  padding-left: 39px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  counter-increment: journey;
}

.journey-panel li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: var(--blue-soft);
  content: counter(journey);
  font-size: 12px;
  font-weight: 800;
}

.scope-note,
.context-panel > p:not(.panel-kicker) {
  margin: 16px 0 0;
  padding: 13px 14px;
  border-left: 3px solid var(--blue);
  color: #5d6672;
  background: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  line-height: 1.65;
}

.legend {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
}

.legend span { display: flex; align-items: center; gap: 8px; }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.dot.done { background: var(--green); }
.dot.attention { background: var(--orange); }

.phone-shell {
  position: relative;
  width: 390px;
  height: 844px;
  overflow: hidden;
  border: 8px solid #17191e;
  border-radius: 48px;
  background: #17191e;
  box-shadow: var(--shadow);
}

.phone-island {
  position: absolute;
  z-index: 20;
  top: 10px;
  left: 50%;
  width: 112px;
  height: 30px;
  border-radius: 17px;
  background: #090a0d;
  transform: translateX(-50%);
  pointer-events: none;
}

.phone-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 39px;
  background: var(--surface-soft);
}

.app-screen {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  background: var(--surface-soft);
}

.statusbar {
  display: flex;
  flex: 0 0 42px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 22px 7px;
  color: var(--ink);
  background: var(--surface);
  font-size: 12px;
  font-weight: 750;
}

.status-icons { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; }

.appbar {
  display: grid;
  flex: 0 0 50px;
  grid-template-columns: 48px minmax(0, 1fr) 58px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.appbar.gradient {
  color: #fff;
  border-bottom: 0;
  background: linear-gradient(120deg, #178af2, #20b7b3);
}

.back-button,
.appbar-action {
  height: 50px;
  border: 0;
  color: inherit;
  background: transparent;
}

.back-button { font-size: 29px; font-weight: 300; }
.appbar-action { font-size: 12px; font-weight: 750; }
.appbar-title { overflow: hidden; font-size: 16px; font-weight: 760; text-align: center; text-overflow: ellipsis; white-space: nowrap; }

.screen-content {
  position: relative;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.screen-content::-webkit-scrollbar { display: none; }
.screen-content.has-sticky { padding-bottom: 74px; }

.bottom-nav {
  display: grid;
  flex: 0 0 56px;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.nav-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  color: #a6acb5;
  background: transparent;
  font-size: 11px;
}

.nav-button.active { color: var(--green); font-weight: 750; }
.nav-icon { font-size: 16px; }

.home-hero {
  position: relative;
  display: grid;
  min-height: 168px;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, #2787f4, #2fa4f4 52%, #2a9eea);
}

.home-hero::before,
.home-hero::after {
  position: absolute;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  content: "";
}

.home-hero::before { top: -130px; left: -80px; }
.home-hero::after { right: -90px; bottom: -135px; }

.home-hero strong { position: relative; font-size: 31px; letter-spacing: 0.08em; }
.home-hero span { position: absolute; right: 16px; bottom: 13px; padding: 5px 9px; border-radius: 14px; background: rgba(0, 35, 92, 0.16); font-size: 11px; }
.home-task-pad { margin-top: -14px; padding-bottom: 4px; }
.today-entry {
  display: grid;
  width: 100%;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 0;
  border-radius: 14px;
  color: inherit;
  background: #fff;
  box-shadow: 0 9px 22px rgba(30, 78, 126, 0.13);
  text-align: left;
}
.today-entry .today-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, var(--blue), #55b7e6);
  font-size: 16px;
  font-weight: 800;
}
.today-entry b { display: block; color: var(--ink); font-size: 12px; }
.today-entry small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.today-entry em { color: var(--blue); font-size: 9px; font-style: normal; font-weight: 700; white-space: nowrap; }

.home-section { margin-bottom: 7px; background: var(--surface); }
.home-section-title { display: flex; align-items: center; gap: 8px; padding: 13px 15px 10px; color: #5f6670; font-size: 14px; }
.home-section-title::before { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); content: ""; }
.home-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }

.home-tile {
  display: flex;
  min-height: 92px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 4px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
  font-size: 12px;
}

.home-tile:nth-child(4n) { border-right: 0; }
.home-tile.primary-tile { background: linear-gradient(180deg, #f4f8ff, #fff); }
.home-tile[disabled] { cursor: default; opacity: 0.64; }

.tile-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--cyan);
  font-size: 17px;
  font-weight: 800;
}

.primary-tile .tile-icon { background: var(--blue); box-shadow: 0 8px 18px rgba(47, 125, 237, 0.22); }
.tile-icon.dark { background: #727985; }
.tile-icon.purple { background: var(--purple); }

.page-pad { padding: 13px 12px 20px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 15px 2px 8px; }
.section-heading:first-child { margin-top: 2px; }
.section-heading h2 { margin: 0; color: var(--ink); font-size: 14px; }
.section-heading span { color: var(--muted); font-size: 11px; }

.role-scope {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.role-scope b { color: var(--ink); font-size: 12px; }
.role-scope span { color: var(--blue); font-size: 11px; font-weight: 700; }

.hero-card {
  padding: 16px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 10px 22px rgba(47, 125, 237, 0.18);
}

.hero-card.green { background: linear-gradient(135deg, #249b72, #1e7a61); }
.hero-card.purple { background: linear-gradient(135deg, #7659e6, #5540b7); }
.hero-card small { display: block; opacity: 0.78; }
.hero-card > strong { display: block; margin-top: 5px; font-size: 27px; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 13px; }
.hero-stats div { padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, 0.14); }
.hero-stats span { display: block; font-size: 10px; opacity: 0.78; }
.hero-stats b { display: block; margin-top: 3px; font-size: 13px; }

.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.metric-card { padding: 11px 6px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); text-align: center; }
.metric-card strong { display: block; color: var(--ink); font-size: 17px; }
.metric-card span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }

.card {
  margin-bottom: 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(27, 40, 58, 0.035);
}

button.card { width: 100%; padding: 0; color: inherit; text-align: left; }

.customer-card { padding: 13px; }
.customer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.customer-name { color: var(--ink); font-size: 14px; font-weight: 760; }
.customer-meta { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.customer-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 11px; }
.chevron { color: #a4aab3; font-size: 20px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid #dce2eb;
  border-radius: 12px;
  color: #68717d;
  background: #fff;
  font-size: 10px;
  font-weight: 680;
}

button.chip { cursor: pointer; }
.chip.planned { color: var(--blue); border-color: #c9dbf8; background: var(--blue-soft); }
.chip.done { color: var(--green); border-color: #c7e7d6; background: var(--green-soft); }
.chip.selected { color: #fff; border-color: var(--blue); background: var(--blue); }
.chip.warn { color: var(--orange); border-color: #f0d3c4; background: var(--orange-soft); }

.status-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 8px;
  border-radius: 12px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.status-pill.done { color: var(--green); background: var(--green-soft); }
.status-pill.warn { color: var(--orange); background: var(--orange-soft); }
.status-pill.red { color: var(--red); background: var(--red-soft); }

.progress-block { margin-bottom: 12px; }
.progress-block:last-child { margin-bottom: 0; }
.progress-label { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; color: var(--muted); font-size: 10px; }
.progress-label b { color: var(--ink); }
.progress-track { height: 7px; overflow: hidden; border-radius: 5px; background: #edf0f4; }
.progress-fill { height: 100%; border-radius: inherit; background: var(--blue); }
.progress-fill.green { background: var(--green); }
.progress-fill.orange { background: var(--orange); }

.list-row {
  display: grid;
  min-height: 55px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  background: var(--surface);
  text-align: left;
}

.list-row:first-child { border-radius: 13px 13px 0 0; }
.list-row:last-child { border-bottom: 0; border-radius: 0 0 13px 13px; }
.list-row:only-child { border-radius: 13px; }
.list-copy b { display: block; color: var(--ink); font-size: 12px; }
.list-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.45; }

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 760;
}

.primary-button { border: 0; color: #fff; background: var(--blue); box-shadow: 0 8px 16px rgba(47, 125, 237, 0.17); }
.secondary-button { border: 1px solid #ced5df; color: var(--text); background: #fff; }
.ghost-button { border: 0; color: var(--blue); background: var(--blue-soft); }
.block-button { width: 100%; }

.sticky-action {
  position: absolute;
  z-index: 8;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 7px;
  padding: 9px 12px 12px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.sticky-action.two { grid-template-columns: 1fr 1.5fr; }

.form-section { padding: 13px; }
.form-section h3 { margin: 0 0 9px; color: var(--ink); font-size: 12px; }
.form-section p { margin: -3px 0 10px; color: var(--muted); font-size: 10px; line-height: 1.5; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.segment {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #626b76;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
}

.segment.selected { color: var(--blue); border-color: #9fbff0; background: var(--blue-soft); }

.field-label { display: block; margin-bottom: 7px; color: var(--ink); font-size: 11px; font-weight: 700; }
.required { color: var(--red); }
.form-control,
.form-select,
.form-textarea {
  width: 100%;
  border: 1px solid #d8dee7;
  border-radius: 9px;
  color: var(--text);
  background: #fff;
  font-size: 12px;
}

.form-control,
.form-select { min-height: 39px; padding: 0 10px; }
.form-textarea { min-height: 82px; padding: 10px; resize: vertical; }
.form-field + .form-field { margin-top: 11px; }

.form-note,
.success-note,
.warning-note {
  margin: 9px 0;
  padding: 10px 11px;
  border-radius: 10px;
  font-size: 10px;
  line-height: 1.55;
}

.form-note { color: #5f6670; background: #f1f3f6; }
.success-note { color: #14764d; background: var(--green-soft); }
.warning-note { color: #9a532d; background: var(--orange-soft); }

.stepper {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.step-line { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; }
.step-line span { position: relative; display: grid; place-items: center; }
.step-line span::before { position: absolute; top: 12px; right: 50%; left: -50%; height: 2px; background: #e2e6ec; content: ""; }
.step-line span:first-child::before { display: none; }
.step-line i { position: relative; z-index: 1; display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; color: #9aa1aa; background: #edf0f4; font-size: 10px; font-style: normal; font-weight: 800; }
.step-line span.active i { color: #fff; background: var(--blue); }
.step-line span.done i { color: #fff; background: var(--green); }
.step-labels { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 6px; color: #9aa1aa; font-size: 9px; text-align: center; }
.step-labels span.active { color: var(--blue); font-weight: 700; }

.element-row {
  display: grid;
  min-height: 58px;
  grid-template-columns: minmax(0, 1fr) 128px;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
}

.element-row:last-child { border-bottom: 0; }
.element-copy b { display: block; color: var(--ink); font-size: 11px; }
.element-copy span { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.element-row select { min-height: 34px; }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo-slot { display: grid; min-height: 78px; place-items: center; border: 1px dashed #cbd3de; border-radius: 10px; color: var(--muted); background: #fafbfc; font-size: 10px; text-align: center; }

.success-screen { display: flex; min-height: 100%; flex-direction: column; align-items: center; padding: 76px 20px 22px; background: var(--surface); text-align: center; }
.success-mark { display: grid; width: 70px; height: 70px; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-size: 34px; box-shadow: 0 14px 28px rgba(34, 160, 107, 0.23); }
.success-screen h2 { margin: 18px 0 7px; color: var(--ink); font-size: 20px; }
.success-screen > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.result-card { width: 100%; margin-top: 20px; padding: 4px 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); text-align: left; }
.result-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.result-row:last-child { border-bottom: 0; }
.result-row span { color: var(--muted); }
.result-row b { max-width: 64%; color: var(--ink); text-align: right; }
.success-actions { display: grid; width: 100%; gap: 8px; margin-top: auto; }

.customer-hero {
  padding: 18px 15px;
  color: #fff;
  background: linear-gradient(145deg, #158af1, #16a9c8 62%, #25b7ae);
}

.customer-hero h2 { margin: 0; font-size: 20px; }
.customer-hero p { margin: 7px 0 0; font-size: 10px; line-height: 1.65; opacity: 0.84; }
.customer-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; }
.customer-stats div { padding: 9px; border-radius: 10px; background: rgba(255, 255, 255, 0.14); }
.customer-stats span { display: block; font-size: 9px; opacity: 0.8; }
.customer-stats b { display: block; margin-top: 3px; font-size: 13px; }

.timeline-item { position: relative; padding: 0 0 14px 18px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { position: absolute; top: 3px; left: 0; width: 7px; height: 7px; border: 2px solid var(--blue); border-radius: 50%; background: #fff; content: ""; }
.timeline-item::after { position: absolute; top: 12px; bottom: -1px; left: 4px; width: 1px; background: #dce1e8; content: ""; }
.timeline-item:last-child::after { display: none; }
.timeline-item b { display: block; color: var(--ink); font-size: 11px; }

.method-grid { display: grid; gap: 10px; }
.method-button { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; color: inherit; background: var(--surface); text-align: left; }
.method-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: var(--blue); background: var(--blue-soft); font-size: 20px; }
.method-button.field .method-icon { color: var(--green); background: var(--green-soft); }
.method-copy b { display: block; color: var(--ink); font-size: 13px; }
.method-copy span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.5; }

.location-card { overflow: hidden; }
.map-strip { display: grid; min-height: 122px; place-items: center; color: #427190; background: linear-gradient(135deg, #d9f0ea, #dce9fa); font-size: 35px; }
.location-copy { padding: 13px; }
.location-copy b { display: block; color: var(--ink); font-size: 13px; }
.location-copy span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.punch-state { padding: 18px 13px; text-align: center; }
.punch-circle { display: grid; width: 92px; height: 92px; margin: 14px auto; place-items: center; border: 0; border-radius: 50%; color: #fff; background: linear-gradient(145deg, var(--blue), #79c8e5); box-shadow: 0 12px 28px rgba(47, 125, 237, 0.22); font-size: 13px; font-weight: 760; }
.punch-circle.checked { background: linear-gradient(145deg, var(--green), #8fc993); }

.plan-customer { padding: 13px; }
.plan-customer-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.plan-customer-head b { color: var(--ink); font-size: 12px; }
.plan-customer-head label { color: var(--muted); font-size: 10px; }
.plan-customer-head input { margin-right: 5px; }
.prospect-stepper { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 13px; }
.stepper-control { display: inline-flex; align-items: center; gap: 13px; }
.stepper-control button { display: grid; width: 32px; height: 32px; place-items: center; border: 0; border-radius: 9px; color: var(--ink); background: #eef1f5; font-size: 18px; }
.stepper-control strong { min-width: 18px; color: var(--ink); text-align: center; }

.company-card { padding: 13px; }
.company-card .metric-grid { margin-top: 12px; }
.person-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 12px; border: 0; border-bottom: 1px solid var(--line); color: inherit; background: var(--surface); text-align: left; }
.person-row:first-child { border-radius: 13px 13px 0 0; }
.person-row:last-child { border-bottom: 0; border-radius: 0 0 13px 13px; }
.avatar { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; color: #fff; background: var(--blue); font-size: 13px; font-weight: 750; }
.person-copy b { display: block; color: var(--ink); font-size: 12px; }
.person-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }

.toast {
  position: absolute;
  z-index: 30;
  right: 18px;
  bottom: 70px;
  left: 18px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #fff;
  background: rgba(25, 29, 36, 0.92);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

@media (max-width: 940px) {
  .demo-stage { grid-template-columns: 1fr 390px; }
  .context-panel { display: none; }
}

@media (max-width: 700px) {
  .demo-page { width: 100%; padding: 0; }
  .demo-header { display: block; padding: 18px 16px 12px; }
  .demo-header .lead { display: none; }
  .demo-header h1 { font-size: 21px; }
  .role-switch { width: 100%; margin-top: 14px; }
  .role-switch button { flex: 1; }
  .demo-toolbar { margin: 0 10px 10px; grid-template-columns: 1fr auto; }
  .route-trail { display: none; }
  .demo-stage { display: block; margin: 0; }
  .journey-panel { display: none; }
  .phone-shell { width: min(390px, 100vw); height: min(844px, calc(100vh - 143px)); min-height: 610px; margin: auto; border-width: 0; border-radius: 0; box-shadow: none; }
  .phone-screen { border-radius: 0; }
  .phone-island { display: none; }
}

/* CRM mobile prototype · visual refresh */
:root {
  --page: #eef1f6;
  --surface: #ffffff;
  --surface-soft: #f5f7fa;
  --ink: #111827;
  --text: #344054;
  --muted: #7c8798;
  --line: #e7eaf0;
  --blue: #2f7ded;
  --blue-deep: #1e64ce;
  --blue-soft: #edf4ff;
  --cyan: #20afa7;
  --green: #22a06b;
  --green-soft: #eaf8f1;
  --orange: #f28b45;
  --orange-soft: #fff3e8;
  --red: #e5484d;
  --red-soft: #fdefef;
  --purple: #7357e8;
  --purple-soft: #f1efff;
  --shadow: 0 34px 80px rgba(20, 32, 52, 0.18);
}

html { background: #e9edf3; }

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 8%, rgba(47, 125, 237, 0.10), transparent 24rem),
    radial-gradient(circle at 12% 88%, rgba(32, 175, 167, 0.08), transparent 26rem),
    #e9edf3;
}

button { -webkit-tap-highlight-color: transparent; }
button:not(:disabled):active { transform: scale(.985); }
.ui-icon { width: 22px; height: 22px; }

.demo-page {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 54px;
}

.studio-layout {
  display: grid;
  grid-template-columns: 360px 420px;
  justify-content: center;
  align-items: start;
  gap: 72px;
}

.studio-panel {
  position: sticky;
  top: 28px;
  display: flex;
  min-height: 844px;
  flex-direction: column;
  padding: 34px;
  overflow: hidden;
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 4%, rgba(70, 147, 255, .26), transparent 15rem),
    radial-gradient(circle at -5% 93%, rgba(32, 175, 167, .22), transparent 17rem),
    #0e1a2b;
  box-shadow: 0 32px 80px rgba(20, 32, 52, .16);
}

.studio-panel::after {
  position: absolute;
  right: -82px;
  bottom: 128px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  content: "";
}

.demo-header { display: block; }

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 68px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  color: #0e1a2b;
  background: linear-gradient(145deg, #fff, #d8f9f4);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .06em;
}

.brand-lockup > span:last-child { display: grid; gap: 3px; }
.brand-lockup b { font-size: 15px; letter-spacing: .03em; }
.brand-lockup small { color: rgba(255,255,255,.52); font-size: 11px; }

.studio-panel .eyebrow {
  margin-bottom: 13px;
  color: #74d9d2;
  font-size: 10px;
  letter-spacing: .14em;
}

.studio-panel h1 {
  margin: 0;
  color: #fff;
  font-size: 36px;
  line-height: 1.23;
  letter-spacing: -.035em;
}

.studio-panel h1 span { color: #74aaf7; }
.studio-panel .lead { margin-top: 18px; color: rgba(255,255,255,.56); font-size: 13px; line-height: 1.8; }

.role-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 32px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 15px;
  background: rgba(255,255,255,.06);
  box-shadow: none;
}

.role-switch button {
  display: grid;
  min-height: 54px;
  place-items: center;
  gap: 2px;
  padding: 7px 4px;
  color: rgba(255,255,255,.55);
  border-radius: 11px;
  font-size: 11px;
}

.role-switch button span { font-size: 9px; opacity: .5; }
.role-switch button[aria-pressed="true"] { color: #17325b; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.role-switch button[data-role="manager"][aria-pressed="true"] { color: #116b4b; }
.role-switch button[data-role="executive"][aria-pressed="true"] { color: #4e3cac; }

.demo-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 12px 14px;
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.05);
  box-shadow: none;
}

.current-role { display: grid; gap: 2px; }
.current-role span, .route-trail { color: rgba(255,255,255,.42); font-size: 10px; }
.current-role strong { color: #fff; font-size: 13px; }
.route-trail { max-width: 170px; align-self: center; text-align: right; }

.journey-panel {
  position: relative;
  top: auto;
  margin-top: 32px;
  padding: 0;
}

.journey-panel .panel-kicker { color: #74d9d2; font-size: 10px; }
.journey-panel h2 { color: #fff; font-size: 16px; }
.journey-panel ol { gap: 0; margin: 20px 0 0; }
.journey-panel li { min-height: 46px; padding: 2px 0 14px 40px; color: rgba(255,255,255,.58); font-size: 12px; }
.journey-panel li::before { width: 25px; height: 25px; color: #fff; background: rgba(47,125,237,.42); font-size: 10px; }
.journey-panel li:not(:last-child)::after { position: absolute; top: 26px; bottom: 0; left: 12px; width: 1px; background: rgba(255,255,255,.12); content: ""; }

.scope-note {
  margin-top: 8px;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  color: rgba(255,255,255,.52);
  background: rgba(255,255,255,.05);
  font-size: 11px;
}

.studio-panel > .reset-button {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  border-color: rgba(255,255,255,.14);
  color: #fff;
  background: rgba(255,255,255,.07);
  font-size: 12px;
}

.device-stage { display: grid; justify-items: center; gap: 14px; }
.device-caption { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 0 4px; }
.device-caption span { display: flex; align-items: center; gap: 7px; color: #7a8494; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.device-caption span i { width: 7px; height: 7px; border-radius: 50%; background: #2bbb7f; box-shadow: 0 0 0 5px rgba(43,187,127,.10); }
.device-caption strong { color: #293140; font-size: 12px; }

.context-panel {
  position: relative;
  top: auto;
  width: 100%;
  padding: 0 4px;
}
.context-panel > p:not(.panel-kicker) { margin: 0; padding: 10px 13px; border: 0; border-radius: 11px; color: #667085; background: rgba(255,255,255,.66); font-size: 10px; }
.context-panel .legend { display: none; }

.phone-shell {
  width: 410px;
  height: 888px;
  border: 6px solid #101318;
  border-radius: 52px;
  background: #101318;
  box-shadow: var(--shadow);
}
.phone-island { top: 10px; width: 106px; height: 29px; }
.phone-screen { border-radius: 45px; }

.app-screen {
  --role-accent: var(--blue);
  --role-soft: var(--blue-soft);
  color: var(--text);
  background: #f4f6f9;
}
.app-screen[data-role-view="manager"] { --role-accent: var(--green); --role-soft: var(--green-soft); }
.app-screen[data-role-view="executive"] { --role-accent: var(--purple); --role-soft: var(--purple-soft); }

.statusbar {
  flex-basis: 44px;
  padding: 0 24px 8px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
}
.status-icons { font-size: 10px; letter-spacing: .02em; }
.app-screen:has(.home-hero) > .statusbar { color: #fff; background: #2379e6; }

.appbar { flex-basis: 54px; grid-template-columns: 54px minmax(0, 1fr) 74px; }
.appbar.gradient { background: linear-gradient(115deg, #237be8, #22b5b0); }
.back-button, .appbar-action { height: 54px; }
.back-button { font-size: 31px; }
.appbar-action { padding-right: 13px; font-size: 13px; }
.appbar-title { font-size: 17px; }
.screen-content.has-sticky { padding-bottom: 82px; }

.bottom-nav { flex-basis: 66px; box-shadow: 0 -8px 24px rgba(20,32,52,.04); }
.nav-button { flex-direction: column; gap: 3px; color: #a3aab5; font-size: 10px; }
.nav-button.active { color: var(--role-accent); }
.nav-icon { display: grid; place-items: center; }
.nav-icon .ui-icon { width: 21px; height: 21px; }

.home-hero {
  display: block;
  min-height: 174px;
  padding: 31px 22px 26px;
  background: linear-gradient(135deg, #247ce9 0%, #2d91ef 58%, #22aba9 120%);
}
.home-hero::before { top: -144px; left: -120px; width: 270px; height: 270px; }
.home-hero::after { right: -122px; bottom: -170px; width: 290px; height: 290px; }
.home-brand { position: relative; z-index: 2; }
.home-brand small { color: rgba(255,255,255,.58); font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.home-brand strong { display: block; margin-top: 10px; font-size: 27px; letter-spacing: .03em; }
.home-brand p { margin: 11px 0 0; color: rgba(255,255,255,.72); font-size: 12px; }
.home-orbit { position: absolute; z-index: 2; right: 30px; top: 32px; display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 20px; color: #fff; background: rgba(255,255,255,.10); transform: rotate(8deg); }
.home-orbit .ui-icon { width: 28px; height: 28px; transform: rotate(-8deg); }
.home-network i { position: absolute; z-index: 1; width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.34); }
.home-network i:nth-child(1) { left: 34px; bottom: 23px; }
.home-network i:nth-child(2) { left: 85px; bottom: 43px; }
.home-network i:nth-child(3) { right: 108px; top: 28px; }
.home-network i:nth-child(4) { right: 83px; top: 73px; }

.home-task-pad { position: relative; z-index: 5; margin-top: -24px; padding: 0 15px 8px; }
.today-entry {
  grid-template-columns: 46px minmax(0,1fr) 24px;
  gap: 12px;
  min-height: 108px;
  padding: 16px;
  border: 1px solid rgba(47,125,237,.08);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(29,75,127,.14);
}
.today-entry .today-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--role-accent); box-shadow: none; }
.today-entry .today-icon .ui-icon { width: 23px; height: 23px; }
.today-copy { min-width: 0; }
.today-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.today-entry b { font-size: 15px; }
.today-top i { padding: 3px 7px; border-radius: 10px; color: var(--role-accent); background: var(--role-soft); font-size: 9px; font-style: normal; font-weight: 750; white-space: nowrap; }
.today-entry small { margin-top: 6px; font-size: 11px; }
.today-progress { display: block; height: 5px; margin-top: 10px; overflow: hidden; border-radius: 5px; background: #edf0f4; }
.today-progress span { display: block; height: 100%; border-radius: inherit; background: var(--role-accent); }
.today-entry > em { display: grid; place-items: center; color: #9ba4b2; }
.today-entry > em .ui-icon { width: 18px; height: 18px; }

.home-section { margin: 0 0 9px; padding: 0 14px 12px; background: #fff; }
.home-section-title { padding: 15px 1px 11px; color: #344054; font-size: 14px; font-weight: 750; }
.home-section-title::before { width: 5px; height: 16px; border-radius: 3px; background: var(--role-accent); }
.home-grid { gap: 7px; border: 0; }
.home-tile {
  min-height: 90px;
  gap: 9px;
  padding: 10px 3px;
  border: 0;
  border-radius: 12px;
  background: #f8fafc;
  font-size: 12px;
}
.home-tile.primary-tile { background: var(--blue-soft); }
.home-tile[disabled] { opacity: 1; color: #667085; }
.tile-icon { width: 40px; height: 40px; border-radius: 13px; color: var(--blue); background: #eaf2ff; }
.tile-icon .ui-icon { width: 21px; height: 21px; }
.primary-tile .tile-icon { color: #fff; background: var(--blue); box-shadow: 0 8px 18px rgba(47,125,237,.20); }
.tile-icon.dark { color: #667085; background: #eef0f3; }
.tile-icon.purple { color: var(--purple); background: var(--purple-soft); }

.page-pad { padding: 15px 14px 24px; }
.section-heading { margin: 18px 2px 10px; }
.section-heading h2 { font-size: 16px; }
.section-heading span { font-size: 11px; }

.role-scope {
  min-height: 58px;
  justify-content: flex-start;
  margin-bottom: 12px;
  padding: 9px 12px;
  border: 0;
  border-radius: 15px;
  background: #fff;
}
.scope-avatar { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border-radius: 12px; color: #fff; background: var(--role-accent); font-size: 13px; font-weight: 800; }
.scope-copy { display: grid; flex: 1; gap: 2px; min-width: 0; }
.scope-copy b { color: var(--ink); font-size: 13px; }
.scope-copy small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.scope-live { display: flex; align-items: center; gap: 5px; color: var(--role-accent) !important; font-size: 10px !important; }
.scope-live i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.hero-card { padding: 20px; border-radius: 18px; background: linear-gradient(135deg, var(--role-accent), var(--blue-deep)); box-shadow: 0 14px 30px rgba(47,125,237,.17); }
.hero-card.green { background: linear-gradient(135deg, #24a474, #18805f); box-shadow: 0 14px 30px rgba(34,160,107,.16); }
.hero-card.purple { background: linear-gradient(135deg, #8067ed, #5b43c9); box-shadow: 0 14px 30px rgba(115,87,232,.17); }
.hero-card small { font-size: 12px; }
.hero-card > strong { margin-top: 7px; font-size: 34px; letter-spacing: -.025em; }
.hero-stats { gap: 9px; margin-top: 17px; }
.hero-stats div { padding: 10px 11px; border-radius: 12px; }
.hero-stats span { font-size: 11px; }
.hero-stats b { font-size: 15px; }

.card { margin-bottom: 11px; border-color: var(--line); border-radius: 16px; box-shadow: 0 3px 12px rgba(25,40,64,.025); }
.customer-card { position: relative; overflow: hidden; padding: 16px 15px 15px 18px; }
.customer-card::before { position: absolute; top: 0; bottom: 0; left: 0; width: 4px; background: var(--blue); content: ""; }
.customer-card:has(.status-pill.done)::before { background: var(--green); }
.customer-card:has(.status-pill.warn)::before { background: var(--orange); }
.customer-name { font-size: 16px; }
.customer-meta { margin-top: 5px; font-size: 12px; }
.customer-card-footer { margin-top: 14px; }
.chevron .ui-icon, .method-button .chevron .ui-icon { width: 19px; height: 19px; }

.chips { gap: 7px; }
.chip { min-height: 30px; padding: 5px 10px; border-radius: 15px; font-size: 12px; }
.status-pill { min-height: 27px; padding: 4px 9px; border-radius: 14px; font-size: 11px; }

.metric-grid { gap: 9px; }
.metric-card { padding: 13px 7px; border-radius: 13px; }
.metric-card strong { font-size: 20px; }
.metric-card span { font-size: 11px; }
.progress-label { font-size: 12px; }
.progress-track { height: 8px; }

.list-row { min-height: 66px; padding: 13px 14px; }
.list-copy b { font-size: 14px; }
.list-copy span { margin-top: 4px; font-size: 11px; }

.primary-button, .secondary-button, .ghost-button { min-height: 44px; border-radius: 12px; font-size: 13px; }
.primary-button { background: var(--role-accent); }
.sticky-action { gap: 8px; padding: 10px 14px 14px; }
.sticky-action .primary-button, .sticky-action .secondary-button { min-height: 52px; font-size: 14px; }

.form-section { padding: 16px; }
.form-section h3 { margin-bottom: 12px; font-size: 14px; }
.form-section p { font-size: 12px; }
.segmented { gap: 8px; }
.segment { min-height: 44px; border-radius: 12px; font-size: 13px; }
.field-label { margin-bottom: 8px; font-size: 13px; }
.form-control, .form-select, .form-textarea { border-radius: 11px; font-size: 13px; }
.form-control, .form-select { min-height: 45px; }
.form-textarea { min-height: 104px; padding: 12px; line-height: 1.6; }
.form-note, .success-note, .warning-note { margin: 11px 0; padding: 12px 13px; border-radius: 12px; font-size: 12px; }

.customer-hero { min-height: 184px; padding: 26px 20px 22px; background: linear-gradient(135deg, #237be8, #239edc 62%, #20aaa5); }
.customer-hero h2 { font-size: 25px; }
.customer-hero p { margin-top: 10px; font-size: 12px; line-height: 1.7; }
.customer-stats { margin-top: 18px; }
.customer-stats div { padding: 11px 12px; border-radius: 12px; }
.customer-stats span { font-size: 10px; }
.customer-stats b { font-size: 14px; }
.timeline-item { padding: 0 0 17px 22px; font-size: 12px; }
.timeline-item b { font-size: 13px; }

.method-overlay {
  position: absolute;
  z-index: 25;
  inset: 44px 0 0;
  display: flex;
  align-items: flex-end;
  padding: 0 14px 18px;
  background: rgba(10,20,35,.62);
  backdrop-filter: blur(3px);
  animation: fade-in .2s ease-out;
}
.method-underlay { min-height: 100%; filter: saturate(.72); }
.method-sheet {
  width: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(0,0,0,.28);
  animation: sheet-in .22s ease-out;
}
.method-sheet-head { display: flex; min-height: 72px; align-items: center; justify-content: space-between; padding: 15px 16px 12px 20px; border-bottom: 1px solid var(--line); }
.method-sheet-head small { color: var(--blue); font-size: 10px; font-weight: 750; }
.method-sheet-head h2 { margin: 4px 0 0; color: var(--ink); font-size: 19px; }
.method-close { display: grid; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 50%; color: #77808e; background: #f2f4f7; font-size: 24px; }
.method-sheet .method-button { width: 100%; min-height: 92px; grid-template-columns: 50px minmax(0,1fr) 22px; gap: 13px; padding: 16px 18px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.method-sheet .method-button:last-child { border-bottom: 0; }
.method-sheet .method-icon { width: 48px; height: 48px; border-radius: 15px; }
.method-sheet .method-icon .ui-icon { width: 23px; height: 23px; }
.method-sheet .method-copy b { font-size: 16px; }
.method-sheet .method-copy span { margin-top: 5px; font-size: 11px; }

.field-map { position: relative; height: 244px; overflow: hidden; background: #dbe9e4; }
.map-grid { position: absolute; inset: 0; background: linear-gradient(25deg, transparent 47%, rgba(255,255,255,.85) 48% 52%, transparent 53%), linear-gradient(145deg, transparent 42%, rgba(255,255,255,.72) 43% 47%, transparent 48%), linear-gradient(90deg, rgba(42,128,91,.08) 1px, transparent 1px), linear-gradient(rgba(42,128,91,.08) 1px, transparent 1px), #dcebe5; background-size: auto, auto, 32px 32px, 32px 32px, auto; }
.road { position: absolute; display: block; height: 10px; border: 2px solid rgba(255,255,255,.92); border-right: 0; border-left: 0; background: #bdcad0; transform-origin: center; }
.road.one { top: 63px; left: -20px; width: 250px; transform: rotate(18deg); }
.road.two { top: 135px; right: -35px; width: 290px; transform: rotate(-24deg); }
.road.three { top: 100px; left: 118px; width: 180px; transform: rotate(74deg); }
.map-target, .map-current { position: absolute; display: grid; place-items: center; border-radius: 50%; font-style: normal; box-shadow: 0 8px 22px rgba(20,32,52,.18); }
.map-target { top: 49px; right: 72px; width: 42px; height: 42px; color: #fff; background: var(--orange); }
.map-current { top: 124px; left: 90px; width: 46px; height: 46px; color: #fff; background: var(--blue); border: 4px solid rgba(255,255,255,.92); }
.map-target .ui-icon, .map-current .ui-icon { width: 20px; height: 20px; }
.map-address { position: absolute; right: 14px; bottom: 13px; left: 14px; display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px; background: rgba(255,255,255,.94); box-shadow: 0 8px 24px rgba(20,32,52,.12); }
.map-pin { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border-radius: 11px; color: var(--blue); background: var(--blue-soft); }
.map-pin .ui-icon { width: 18px; height: 18px; }
.map-address b { display: block; color: var(--ink); font-size: 13px; }
.map-address small { display: block; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.field-page { margin-top: -1px; }
.location-status { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; padding: 12px 13px; border: 1px solid #bfe8d4; border-radius: 14px; color: var(--green); background: var(--green-soft); }
.location-status > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; color: #fff; background: var(--green); }
.location-status .ui-icon { width: 18px; height: 18px; }
.location-status b { display: block; color: #126643; font-size: 13px; }
.location-status small { display: block; margin-top: 3px; color: #4e8a70; font-size: 10px; }
.punch-state { padding: 19px 16px 22px; }
.punch-kicker { color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .06em; }
.punch-circle { width: 112px; height: 112px; margin: 16px auto 14px; border: 7px solid #e7f0ff; box-shadow: 0 14px 30px rgba(47,125,237,.22); white-space: normal; }
.punch-circle b, .punch-circle span { display: block; }
.punch-circle b { font-size: 16px; }
.punch-circle span { margin-top: 4px; font-size: 13px; }
.punch-circle.checked { border-color: #e1f4e9; }
.punch-help { color: var(--muted); font-size: 11px; }

.stepper { padding: 13px 18px 11px; }
.step-line span::before { top: 14px; height: 3px; }
.step-line i { width: 29px; height: 29px; font-size: 11px; }
.step-labels { margin-top: 7px; font-size: 10px; }

.form-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.form-title > div { display: flex; align-items: center; gap: 9px; }
.form-title h3 { margin: 0; font-size: 15px; }
.form-title small { color: var(--muted); font-size: 10px; }
.form-index { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; color: var(--blue); background: var(--blue-soft); font-size: 9px; font-weight: 800; }
.action-group + .action-group { margin-top: 15px; }
.action-group-label { margin-bottom: 7px; color: #8b94a2; font-size: 10px; font-weight: 750; letter-spacing: .06em; }
.visit-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.visit-action-option { position: relative; display: flex; min-height: 46px; align-items: center; justify-content: space-between; gap: 5px; padding: 8px 9px 8px 11px; border: 1px solid #e0e4eb; border-radius: 12px; color: #566071; background: #fff; text-align: left; font-size: 11px; line-height: 1.35; }
.visit-action-option i { display: none; color: var(--blue); font-style: normal; }
.visit-action-option i .ui-icon { width: 15px; height: 15px; stroke-width: 2.5; }
.visit-action-option.selected { color: #175ebc; border-color: #86b0ed; background: var(--blue-soft); font-weight: 750; box-shadow: inset 0 0 0 1px rgba(47,125,237,.08); }
.visit-action-option.selected i { display: grid; }

.people-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; }
.people-option { display: grid; min-height: 74px; place-items: center; gap: 5px; padding: 8px 3px; border: 1px solid #e0e4eb; border-radius: 13px; color: #667085; background: #fff; }
.people-option span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: #657083; background: #f0f2f5; font-size: 11px; font-weight: 800; }
.people-option b { font-size: 10px; font-weight: 650; }
.people-option.selected { color: #175ebc; border-color: #8db4eb; background: var(--blue-soft); }
.people-option.selected span { color: #fff; background: var(--blue); }
.people-option.neutral.selected { color: #4b5565; border-color: #aeb5c0; background: #f1f3f5; }
.people-option.neutral.selected span { background: #747d8b; }

.upload-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 14px; }
.upload-card { position: relative; display: flex; min-height: 112px; flex-direction: column; align-items: center; justify-content: center; padding: 12px 5px; border: 1px dashed #cdd4df; border-radius: 13px; color: #657083; background: #fafbfc; text-align: center; }
.upload-icon { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 11px; color: #748092; background: #eef1f5; }
.upload-icon .ui-icon { width: 18px; height: 18px; }
.upload-card b { margin-top: 7px; font-size: 11px; }
.upload-card small { margin-top: 3px; color: #9aa1ac; font-size: 8px; line-height: 1.35; }
.upload-card em { position: absolute; top: 6px; right: 6px; padding: 2px 5px; border-radius: 7px; color: var(--red); background: var(--red-soft); font-size: 8px; font-style: normal; }
.upload-card.uploaded { border-style: solid; border-color: #b8e2cc; color: #16754e; background: var(--green-soft); }
.upload-card.uploaded .upload-icon { color: #fff; background: var(--green); }
.upload-card.uploaded em { color: var(--green); background: #fff; }

.field-error, .profile-alert, .confirm-hero, .sync-card { display: flex; align-items: center; gap: 11px; padding: 13px; border-radius: 14px; }
.field-error { color: var(--red); background: var(--red-soft); }
.field-error > span, .profile-alert > span, .confirm-hero > span, .sync-card > span { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border-radius: 11px; font-weight: 850; }
.field-error > span { color: #fff; background: var(--red); }
.field-error b, .profile-alert b, .confirm-hero b, .sync-card b { display: block; font-size: 13px; }
.field-error small, .profile-alert small, .confirm-hero small, .sync-card small { display: block; margin-top: 3px; font-size: 10px; line-height: 1.4; }
.profile-alert { position: relative; color: #a05d24; background: var(--orange-soft); }
.profile-alert > span { color: #fff; background: var(--orange); }
.profile-alert.success { color: #156b49; background: var(--green-soft); }
.profile-alert.success > span { background: var(--green); }
.profile-alert .ui-icon { width: 18px; height: 18px; }
.profile-alert em { margin-left: auto; color: currentColor; font-size: 14px; font-style: normal; font-weight: 800; }

.element-card { overflow: hidden; }
.element-row { min-height: 66px; grid-template-columns: 28px minmax(0,1fr) 132px; gap: 9px; padding: 10px 12px; }
.element-state { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 8px; font-size: 10px; font-weight: 850; }
.element-state.done { color: var(--green); background: var(--green-soft); }
.element-state.missing { color: var(--orange); background: var(--orange-soft); }
.element-state .ui-icon { width: 14px; height: 14px; }
.element-copy b { font-size: 13px; }
.element-copy span { margin-top: 3px; font-size: 10px; }
.element-row select { min-height: 38px; font-size: 11px; }
.demo-helper { display: flex; width: 100%; min-height: 50px; align-items: center; gap: 10px; margin-top: 11px; padding: 9px 12px; border: 1px dashed #aac5ec; border-radius: 13px; color: var(--blue); background: rgba(237,244,255,.65); text-align: left; }
.demo-helper > .ui-icon { width: 20px; height: 20px; }
.demo-helper b, .demo-helper small { display: block; }
.demo-helper b { font-size: 12px; }
.demo-helper small { margin-top: 2px; color: #7b94b7; font-size: 9px; }

.confirm-hero { color: #176f4c; background: var(--green-soft); }
.confirm-hero > span { color: #fff; background: var(--green); }
.confirm-hero .ui-icon { width: 19px; height: 19px; }
.confirm-card { margin-top: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.confirm-card header { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; align-items: center; gap: 10px; }
.confirm-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; }
.confirm-icon .ui-icon { width: 20px; height: 20px; }
.confirm-icon.blue { color: var(--blue); background: var(--blue-soft); }
.confirm-icon.green { color: var(--green); background: var(--green-soft); }
.confirm-icon.orange { color: var(--orange); background: var(--orange-soft); }
.confirm-card header b { display: block; color: var(--ink); font-size: 13px; }
.confirm-card header small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.confirm-card header em { color: var(--green); font-size: 10px; font-style: normal; font-weight: 750; }
.confirm-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.confirm-tags span { padding: 5px 8px; border-radius: 10px; color: var(--blue); background: var(--blue-soft); font-size: 10px; font-weight: 700; }
.confirm-line { display: flex; justify-content: space-between; gap: 12px; margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--line); font-size: 11px; }
.confirm-line span { color: var(--muted); }
.confirm-line b { max-width: 65%; color: var(--ink); text-align: right; }
.six-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 14px; }
.six-summary span { display: flex; align-items: center; gap: 4px; color: #566171; font-size: 9px; }
.six-summary i { color: var(--green); }
.six-summary .ui-icon { width: 12px; height: 12px; stroke-width: 2.5; }
.confirm-note { margin-top: 13px; color: var(--muted); font-size: 10px; text-align: center; }

.success-bg { background: linear-gradient(180deg, #edf9f3 0, #fff 56%); }
.success-screen { padding: 62px 22px 22px; background: transparent; }
.success-rings { display: grid; width: 112px; height: 112px; place-items: center; border: 1px solid rgba(34,160,107,.13); border-radius: 50%; box-shadow: 0 0 0 16px rgba(34,160,107,.05); }
.success-mark { width: 78px; height: 78px; }
.success-mark .ui-icon { width: 34px; height: 34px; stroke-width: 2.5; }
.success-kicker { margin-top: 26px; color: var(--green); font-size: 9px; font-weight: 850; letter-spacing: .18em; }
.success-screen h2 { margin-top: 8px; font-size: 23px; }
.success-screen > p { font-size: 12px; }
.sync-card { width: 100%; margin-top: 19px; color: #176f4c; background: var(--green-soft); text-align: left; }
.sync-card > span { color: #fff; background: var(--green); }
.sync-card .ui-icon { width: 19px; height: 19px; }
.result-card { margin-top: 14px; border-radius: 15px; background: #fff; }
.result-row { padding: 13px 0; font-size: 12px; }

.company-card { padding: 16px; }
.company-progress { height: 7px; margin-top: 15px; overflow: hidden; border-radius: 6px; background: #edf0f4; }
.company-progress span { display: block; height: 100%; border-radius: inherit; background: var(--role-accent); }
.company-stats { display: grid; grid-template-columns: repeat(3,1fr) 22px; align-items: end; gap: 8px; margin-top: 13px; }
.company-stats > span { color: var(--muted); font-size: 9px; }
.company-stats b { display: block; margin-bottom: 2px; color: var(--ink); font-size: 13px; }
.company-stats em { display: grid; place-items: center; color: #9da5b1; }
.company-stats em .ui-icon { width: 18px; height: 18px; }
.manager-people { overflow: hidden; }
.rank-label { display: flex; align-items: center; gap: 7px; margin: 12px 3px 7px; }
.rank-label span { padding: 3px 7px; border-radius: 8px; color: var(--purple); background: var(--purple-soft); font-size: 9px; font-weight: 750; }
.rank-label b { color: #667085; font-size: 11px; }
.person-row { min-height: 70px; grid-template-columns: 42px minmax(0,1fr) auto; padding: 12px 14px; }
.avatar { width: 40px; height: 40px; border-radius: 13px; background: var(--role-accent); }
.person-copy b { font-size: 13px; }
.person-copy span { font-size: 10px; }
.plan-customer { padding: 16px; }
.plan-customer-head b { font-size: 14px; }
.prospect-stepper { min-height: 66px; padding: 15px; }
.stepper-control button { width: 36px; height: 36px; }

.toast { right: 16px; bottom: 78px; left: 16px; padding: 12px 13px; border-radius: 12px; font-size: 12px; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 920px) {
  .demo-page { width: min(440px, 100%); padding: 18px 0 40px; }
  .studio-layout { display: block; }
  .studio-panel { position: relative; top: auto; min-height: 0; margin: 0 14px 16px; padding: 12px; border-radius: 19px; }
  .studio-panel .demo-header, .studio-panel .demo-toolbar, .studio-panel .journey-panel, .studio-panel > .reset-button { display: none; }
  .role-switch { margin: 0; }
  .role-switch button { min-height: 44px; }
  .device-caption, .context-panel { display: none; }
  .phone-shell { width: min(410px, calc(100vw - 20px)); height: min(888px, calc(100dvh - 94px)); min-height: 650px; margin: auto; border-width: 0; border-radius: 28px; }
  .phone-screen { border-radius: 28px; }
  .phone-island { display: none; }
}

@media (max-width: 430px) {
  body { background: #0e1a2b; }
  .demo-page { width: 100%; padding: 0; }
  .studio-panel { margin: 0; border-radius: 0; }
  .phone-shell { width: 100vw; height: calc(100dvh - 68px); min-height: 590px; border-radius: 0; }
  .phone-screen { border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Today task and tomorrow plan refinements */
.tomorrow-plan-entry {
  display: grid;
  width: 100%;
  min-height: 82px;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 13px 14px;
  border: 1px solid #dbe8fb;
  border-radius: 17px;
  color: inherit;
  background: linear-gradient(135deg, #ffffff, #f3f7ff);
  box-shadow: 0 8px 22px rgba(47, 125, 237, .08);
  text-align: left;
}

.plan-date-tile {
  display: grid;
  width: 46px;
  height: 52px;
  place-items: center;
  align-content: center;
  gap: 1px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, #2f7ded, #5b9aef);
  box-shadow: 0 8px 16px rgba(47,125,237,.20);
}

.plan-date-tile b { font-size: 20px; line-height: 1; }
.plan-date-tile small { font-size: 9px; opacity: .76; }
.plan-entry-copy { display: grid; min-width: 0; gap: 3px; }
.plan-entry-copy > small { color: var(--blue); font-size: 10px; font-weight: 750; }
.plan-entry-copy > b { overflow: hidden; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.plan-entry-copy > span { color: var(--muted); font-size: 10px; }
.plan-entry-action { display: flex; align-items: center; gap: 2px; color: var(--blue); font-size: 11px; font-weight: 750; white-space: nowrap; }
.plan-entry-action .ui-icon { width: 16px; height: 16px; }

.task-customer-card {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  margin-bottom: 11px;
  padding: 15px 15px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: inherit;
  background: #fff;
  box-shadow: 0 5px 16px rgba(27, 40, 58, .045);
  text-align: left;
}

.task-customer-card::before {
  position: absolute;
  top: 0;
  left: 16px;
  width: 30px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--blue);
  content: "";
}

.task-customer-card.warn::before { background: var(--orange); }
.task-customer-card.done::before { background: var(--green); }
.task-customer-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 15px;
  font-weight: 800;
}
.task-customer-card.warn .task-customer-avatar { color: var(--orange); background: var(--orange-soft); }
.task-customer-card.done .task-customer-avatar { color: var(--green); background: var(--green-soft); }
.task-customer-main { display: block; min-width: 0; }
.task-customer-head { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 10px; }
.task-customer-head > span:first-child { min-width: 0; }
.task-customer-head b { display: block; overflow: hidden; color: var(--ink); font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.task-customer-head small { display: flex; align-items: center; gap: 3px; margin-top: 5px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.task-customer-head small .ui-icon { flex: 0 0 auto; width: 13px; height: 13px; color: #9aa4b2; }
.task-customer-head em { display: flex; align-items: baseline; gap: 2px; padding: 5px 8px; border-radius: 11px; color: var(--blue); background: var(--blue-soft); font-size: 14px; font-style: normal; font-weight: 800; white-space: nowrap; }
.task-customer-head em i { font-size: 9px; font-style: normal; font-weight: 650; }
.task-customer-card.warn .task-customer-head em { color: var(--orange); background: var(--orange-soft); }
.task-customer-card.done .task-customer-head em { color: var(--green); background: var(--green-soft); }
.task-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 7px; margin-top: 13px; }
.task-action { display: flex; min-height: 42px; align-items: center; gap: 7px; padding: 7px 8px; border-radius: 11px; color: #5e6878; background: #f6f8fb; }
.task-action > i { display: grid; flex: 0 0 25px; width: 25px; height: 25px; place-items: center; border-radius: 8px; color: var(--blue); background: #e8f1ff; }
.task-action > i .ui-icon { width: 13px; height: 13px; }
.task-action > span { display: grid; gap: 1px; }
.task-action b { font-size: 11px; }
.task-action small { color: #8993a2; font-size: 8px; }
.task-action.done { color: #176d4b; background: #f0f9f4; }
.task-action.done > i { color: #fff; background: var(--green); }
.task-owner { display: block; margin-top: 9px; color: var(--muted); font-size: 9px; }
.task-enter { display: flex; min-height: 41px; align-items: center; justify-content: space-between; margin-top: 12px; border-top: 1px solid #edf0f4; color: var(--blue); font-size: 11px; font-weight: 750; }
.task-enter .ui-icon { width: 17px; height: 17px; }

.plan-page { padding-bottom: 28px; }
.plan-date-banner {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(135deg, #1d2940, #243b61);
  box-shadow: 0 12px 28px rgba(29, 41, 64, .16);
}
.plan-date-banner > span:first-child { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; color: #fff; background: rgba(255,255,255,.12); }
.plan-date-banner .ui-icon { width: 20px; height: 20px; }
.plan-date-banner > span:nth-child(2) { display: grid; gap: 4px; }
.plan-date-banner small { color: rgba(255,255,255,.58); font-size: 9px; }
.plan-date-banner b { font-size: 13px; }
.plan-date-banner em { padding: 4px 7px; border-radius: 9px; color: #bcd5fa; background: rgba(73,138,231,.18); font-size: 9px; font-style: normal; font-weight: 700; white-space: nowrap; }
.plan-section-title { margin-top: 2px; }

.plan-customer-card {
  margin-bottom: 11px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(27,40,58,.035);
}
.plan-customer-card header { display: grid; grid-template-columns: 32px minmax(0,1fr) auto; align-items: center; gap: 10px; }
.plan-sequence { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; color: var(--blue); background: var(--blue-soft); font-size: 10px; font-weight: 800; }
.plan-customer-copy { display: grid; min-width: 0; gap: 3px; }
.plan-customer-copy b { overflow: hidden; color: var(--ink); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.plan-customer-copy small { display: flex; align-items: center; gap: 3px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.plan-customer-copy small .ui-icon { flex: 0 0 auto; width: 12px; height: 12px; }
.plan-remove { min-height: 32px; padding: 0 9px; border: 0; border-radius: 9px; color: #8d96a4; background: #f3f5f7; font-size: 10px; }
.plan-action-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-top: 14px; }
.plan-action-choice { position: relative; display: flex; min-height: 74px; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 8px 4px; border: 1px solid #e2e6ed; border-radius: 13px; color: #697384; background: #fff; }
.plan-action-choice > span { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 9px; color: #7b8595; background: #f0f2f5; }
.plan-action-choice > span .ui-icon { width: 15px; height: 15px; }
.plan-action-choice > b { font-size: 11px; }
.plan-action-choice > small { color: #a0a7b1; font-size: 8px; }
.plan-action-choice > i { position: absolute; top: 6px; right: 6px; display: none; color: var(--blue); }
.plan-action-choice > i .ui-icon { width: 13px; height: 13px; stroke-width: 2.5; }
.plan-action-choice.selected { color: #175fbf; border-color: #9cbaea; background: var(--blue-soft); box-shadow: inset 0 0 0 1px rgba(47,125,237,.07); }
.plan-action-choice.selected > span { color: #fff; background: var(--blue); }
.plan-action-choice.selected > small { color: #6f91bf; }
.plan-action-choice.selected > i { display: block; }

.add-plan-customer {
  display: grid;
  width: 100%;
  min-height: 66px;
  grid-template-columns: 36px minmax(0,1fr) 20px;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px dashed #a9c3ea;
  border-radius: 15px;
  color: var(--blue);
  background: rgba(237,244,255,.62);
  text-align: left;
}
.add-plan-customer > span:first-child { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; color: #fff; background: var(--blue); font-size: 20px; }
.add-plan-customer > span:nth-child(2) { display: grid; gap: 3px; }
.add-plan-customer b { font-size: 12px; }
.add-plan-customer small { color: #7d94b7; font-size: 9px; }
.add-plan-customer > .ui-icon { width: 18px; height: 18px; }

.prospect-input-card {
  display: grid;
  min-height: 78px;
  grid-template-columns: 40px minmax(0,1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
}
.prospect-input-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; color: var(--orange); background: var(--orange-soft); }
.prospect-input-icon .ui-icon { width: 19px; height: 19px; }
.prospect-input-copy { display: grid; min-width: 0; gap: 4px; }
.prospect-input-copy b { color: var(--ink); font-size: 13px; }
.prospect-input-copy small { color: var(--muted); font-size: 9px; line-height: 1.35; }
.prospect-input-card label { display: flex; height: 44px; align-items: center; overflow: hidden; border: 1px solid #cbd7e8; border-radius: 12px; background: #f8fbff; }
.prospect-input-card input { width: 54px; height: 100%; padding: 0 3px 0 8px; border: 0; outline: 0; color: var(--blue); background: transparent; font-size: 20px; font-weight: 800; text-align: center; -moz-appearance: textfield; }
.prospect-input-card input::-webkit-outer-spin-button, .prospect-input-card input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.prospect-input-card label span { padding: 0 9px 0 3px; color: #7b8797; font-size: 11px; }

.archive-customer-row {
  display: grid;
  width: 100%;
  min-height: 68px;
  grid-template-columns: 40px minmax(0,1fr) auto 18px;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: inherit;
  background: #fff;
  text-align: left;
}
.archive-avatar { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 13px; color: var(--blue); background: var(--blue-soft); font-size: 13px; font-weight: 800; }
.archive-customer-row > span:nth-child(2) { min-width: 0; }
.archive-customer-row b { display: block; overflow: hidden; color: var(--ink); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.archive-customer-row small { display: block; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.archive-customer-row em { padding: 4px 7px; border-radius: 9px; color: #68758a; background: #f0f2f5; font-size: 9px; font-style: normal; white-space: nowrap; }
.archive-customer-row > .ui-icon { width: 16px; height: 16px; color: #a4acb8; }

@media (max-width: 360px) {
  .task-actions { grid-template-columns: 1fr; }
  .plan-entry-copy > span, .prospect-input-copy small { display: none; }
  .plan-date-banner { grid-template-columns: 38px minmax(0,1fr); }
  .plan-date-banner em { display: none; }
}

/* 2026-08 visual reset: quiet enterprise mobile UI */
.app-screen { background: #f4f6f8; }
.appbar.gradient {
  color: var(--ink);
  border-bottom: 1px solid #e7eaee;
  background: #fff;
}

.home-hero {
  min-height: 154px;
  place-items: initial;
  padding: 34px 24px 24px;
  background: #1684e8;
}
.home-hero::before,
.home-hero::after,
.home-network,
.home-orbit { display: none; }
.home-brand { align-self: end; }
.home-brand small { color: rgba(255,255,255,.68); font-size: 9px; letter-spacing: .12em; }
.home-brand strong { margin-top: 7px; font-size: 25px; font-weight: 700; letter-spacing: .02em; }
.home-brand p { margin-top: 8px; color: rgba(255,255,255,.78); font-size: 11px; }
.home-task-pad { margin-top: -12px; padding: 0 12px 8px; }
.today-entry {
  min-height: 78px;
  grid-template-columns: 38px minmax(0,1fr) 18px;
  gap: 11px;
  padding: 14px;
  border: 1px solid #e4e8ee;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(24,54,88,.08);
}
.today-entry .today-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #1684e8;
  box-shadow: none;
}
.today-top i {
  padding: 0;
  border-radius: 0;
  color: #1684e8;
  background: transparent;
  font-size: 9px;
}
.today-entry b { font-size: 14px; }
.today-entry small { font-size: 10px; }
.today-progress { height: 3px; margin-top: 8px; }
.today-entry > em { display: grid; place-items: center; color: #a1a8b2; }
.today-entry > em .ui-icon { width: 17px; height: 17px; }

.home-section { margin-bottom: 6px; }
.home-section-title { padding: 12px 15px 9px; font-size: 13px; }
.home-section-title::before { width: 4px; height: 14px; border-radius: 1px; }
.home-tile { min-height: 88px; }
.tile-icon { border-radius: 7px; }

.sales-today-page { padding: 12px 12px 22px; }
.role-scope {
  min-height: 42px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: #fff;
}
.scope-avatar { width: 28px; height: 28px; flex-basis: 28px; border-radius: 50%; font-size: 11px; }
.scope-copy b { font-size: 12px; }
.scope-copy small { font-size: 9px; }
.scope-live { padding-right: 2px; }

.today-summary {
  overflow: hidden;
  border: 1px solid #e1e6ec;
  border-radius: 10px;
  background: #fff;
}
.today-summary-main {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
}
.today-summary-main > span { display: grid; gap: 3px; }
.today-summary-main small { color: #7d8692; font-size: 10px; }
.today-summary-main strong { color: #151a22; font-size: 24px; font-weight: 720; line-height: 1; }
.today-summary-main strong i { color: #a0a7b0; font-size: 14px; font-style: normal; font-weight: 560; }
.today-summary-main > em { color: #1684e8; font-size: 14px; font-style: normal; font-weight: 700; }
.today-summary-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #edf0f3;
  background: #fafbfc;
}
.today-summary-stats > span { padding: 10px 14px; color: #727b87; font-size: 10px; }
.today-summary-stats > span + span { border-left: 1px solid #edf0f3; }
.today-summary-stats b { margin-left: 4px; color: #303742; font-size: 11px; }

.tomorrow-plan-entry {
  min-height: 66px;
  grid-template-columns: 40px minmax(0,1fr) auto;
  gap: 11px;
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid #d9e4f1;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}
.plan-date-tile {
  width: 38px;
  height: 42px;
  gap: 0;
  border: 1px solid #b9d2ee;
  border-radius: 7px;
  color: #176fc1;
  background: #eef6fd;
  box-shadow: none;
}
.plan-date-tile small { font-size: 8px; opacity: 1; }
.plan-date-tile b { font-size: 17px; }
.plan-entry-copy { gap: 4px; }
.plan-entry-copy > b { font-size: 13px; }
.plan-entry-copy > small { color: #77818e; font-size: 9px; font-weight: 500; line-height: 1.35; }
.plan-entry-action { color: #1684e8; font-size: 10px; }
.plan-entry-action .ui-icon { width: 14px; height: 14px; }

.section-heading { margin: 16px 1px 8px; }
.section-heading h2 { font-size: 13px; }
.section-heading span { font-size: 9px; }

.task-customer-card {
  display: block;
  margin-bottom: 9px;
  padding: 14px 14px 0;
  overflow: hidden;
  border: 1px solid #e1e5ea;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}
.task-customer-card::before,
.task-customer-avatar { display: none; }
.task-customer-head { align-items: center; }
.task-customer-head > span:first-child { min-width: 0; padding-right: 8px; }
.task-customer-head b { font-size: 15px; font-weight: 700; }
.task-customer-head small { margin-top: 4px; color: #7f8894; font-size: 10px; }
.task-customer-head em {
  min-width: 48px;
  justify-content: flex-end;
  padding: 0;
  border-radius: 0;
  color: #7d8692;
  background: transparent;
  font-size: 10px;
  font-weight: 500;
}
.task-customer-head em strong { color: #1684e8; font-size: 17px; }
.task-customer-card.warn .task-customer-head em,
.task-customer-card.done .task-customer-head em { color: #7d8692; background: transparent; }
.task-customer-card.warn .task-customer-head em strong { color: #dc7a2a; }
.task-customer-card.done .task-customer-head em strong { color: #1f9b68; }
.task-actions {
  display: flex;
  grid-template-columns: none;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.task-action {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid #dfe4ea;
  border-radius: 5px;
  color: #5f6874;
  background: #fff;
}
.task-action > i { display: block; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #1684e8; }
.task-action b { font-size: 10px; font-weight: 650; }
.task-action small { color: #8b939e; font-size: 8px; }
.task-action.done { color: #287756; border-color: #cfe8dc; background: #f7fcf9; }
.task-action.done > i { width: 6px; height: 6px; flex-basis: 6px; border-radius: 50%; background: #28a572; }
.task-enter {
  min-height: 39px;
  margin-top: 11px;
  border-top: 1px solid #edf0f3;
  color: #1684e8;
  font-size: 10px;
}
.task-enter > small { color: #929aa5; font-size: 9px; font-weight: 400; }
.task-enter > span { display: inline-flex; align-items: center; gap: 1px; }
.task-enter .ui-icon { width: 14px; height: 14px; }

.plan-page { padding: 12px 12px 30px; }
.plan-date-banner {
  display: grid;
  min-height: 54px;
  grid-template-columns: auto minmax(0,1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 13px;
  border: 1px solid #e1e5ea;
  border-radius: 9px;
  color: inherit;
  background: #fff;
  box-shadow: none;
}
.plan-date-banner > span { color: #7e8792; font-size: 10px; }
.plan-date-banner b { color: #202630; font-size: 12px; font-weight: 650; }

.plan-customer-card {
  margin-bottom: 9px;
  padding: 13px;
  border: 1px solid #e1e5ea;
  border-radius: 10px;
  box-shadow: none;
}
.plan-customer-card header { grid-template-columns: 24px minmax(0,1fr) auto; gap: 8px; }
.plan-sequence {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  color: #75808d;
  background: #f0f2f5;
  font-size: 9px;
}
.plan-customer-copy b { font-size: 14px; font-weight: 700; }
.plan-customer-copy small { font-size: 9px; }
.plan-remove {
  min-height: 28px;
  padding: 0 4px;
  border-radius: 0;
  color: #9aa1aa;
  background: transparent;
  font-size: 9px;
}
.plan-action-grid { gap: 6px; margin-top: 12px; }
.plan-action-choice {
  min-height: 36px;
  flex-direction: row;
  gap: 5px;
  padding: 6px 8px;
  border: 1px solid #dfe4ea;
  border-radius: 6px;
  color: #626c78;
  background: #fff;
}
.plan-action-choice > span,
.plan-action-choice > small { display: none; }
.plan-action-choice > b { font-size: 10px; font-weight: 650; }
.plan-action-choice > i {
  position: static;
  display: inline;
  color: inherit;
  font-size: 10px;
  font-style: normal;
}
.plan-action-choice.selected {
  color: #fff;
  border-color: #1684e8;
  background: #1684e8;
  box-shadow: none;
}
.plan-action-choice.selected > span { display: none; }

.add-plan-customer {
  min-height: 54px;
  grid-template-columns: 26px minmax(0,1fr) 18px;
  gap: 9px;
  padding: 10px 12px;
  border: 1px dashed #b8c5d3;
  border-radius: 9px;
  color: #3c6f9f;
  background: #f9fbfd;
}
.add-plan-customer > span:first-child { width: 24px; height: 24px; border-radius: 4px; background: #1684e8; font-size: 15px; }
.add-plan-customer b { font-size: 11px; }
.add-plan-customer small { color: #8c96a2; font-size: 8px; }

.prospect-input-card {
  min-height: 66px;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid #e1e5ea;
  border-radius: 10px;
  background: #fff;
}
.prospect-input-icon { display: none; }
.prospect-input-copy b { font-size: 12px; }
.prospect-input-copy small { font-size: 9px; }
.prospect-input-card label { height: 38px; border-color: #cdd5df; border-radius: 6px; background: #fff; }
.prospect-input-card input { width: 48px; padding-left: 6px; color: #202630; font-size: 17px; }
.prospect-input-card label span { padding-right: 8px; font-size: 10px; }

.form-note { border-radius: 8px; }
.sticky-action { border-top: 1px solid #e5e8ec; background: rgba(255,255,255,.96); }
.block-button { border-radius: 8px; background: #1684e8; box-shadow: none; }

@media (max-width: 360px) {
  .task-actions { display: flex; }
  .plan-date-banner { grid-template-columns: auto minmax(0,1fr); }
  .plan-entry-copy > small,
  .prospect-input-copy small { display: block; }
}

/* Desktop presentation fit and sales task polish */
.phone-fit {
  width: 410px;
  height: 888px;
  flex: 0 0 auto;
}

.cold-visit-card {
  display: grid;
  width: 100%;
  min-height: 78px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 12px;
  overflow: hidden;
  border: 1px solid #e1e5ea;
  border-radius: 10px;
  color: inherit;
  background: #fff;
  text-align: left;
}
.cold-visit-copy { display: grid; gap: 4px; }
.cold-visit-copy b { color: #202630; font-size: 14px; }
.cold-visit-copy small { color: #818a96; font-size: 9px; }
.cold-visit-count { display: inline-flex; align-items: baseline; color: #68727f; }
.cold-visit-count strong { color: #1684e8; font-size: 20px; line-height: 1; }
.cold-visit-count i { margin-left: 2px; font-size: 10px; font-style: normal; }
.cold-visit-count .ui-icon { width: 15px; height: 15px; margin-left: 3px; align-self: center; color: #9ba3ad; }
.cold-visit-track { grid-column: 1 / -1; height: 3px; overflow: hidden; border-radius: 2px; background: #edf0f3; }
.cold-visit-track i { display: block; height: 100%; border-radius: inherit; background: #1684e8; }
.result-section-heading { margin-top: 17px; }
.yesterday-results { overflow: hidden; padding: 3px 13px; box-shadow: none; }
.yesterday-results .result-row { padding: 13px 1px; }
.result-row-link {
  display: grid;
  width: 100%;
  min-height: 64px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-bottom: 1px solid #edf0f3;
  border-radius: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}
.result-row-link:last-child { border-bottom: 0; }
.result-row-link:hover { background: linear-gradient(90deg, transparent, #f8fbfe 50%, transparent); }
.result-row-leading { display: flex; min-width: 0; align-items: center; gap: 10px; }
.result-type-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: #1684e8; background: #edf6ff; }
.addition-result-link .result-type-icon { color: #7355d8; background: #f3efff; }
.result-type-icon .ui-icon { width: 17px; height: 17px; }
.result-row-copy { display: grid; min-width: 0; gap: 4px; }
.result-row-copy strong { color: #202630; font-size: 11px; line-height: 1.2; }
.result-row-copy small { overflow: hidden; color: #929ba7; font-size: 8px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.result-row-value { display: flex; max-width: none; align-items: center; gap: 6px; color: #202630; text-align: right; }
.result-row-value > span { display: grid; gap: 3px; color: inherit; }
.result-row-value strong { color: #202630; font-size: 12px; line-height: 1.1; }
.result-row-value small { color: #77818e; font-size: 9px; font-weight: 500; }
.result-row-value > .ui-icon { width: 14px; height: 14px; color: #9ea7b2; }
.yesterday-detail-page { padding-bottom: 24px; }
.yesterday-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 14px;
  padding: 17px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #167fe8, #32a7e7);
  box-shadow: 0 9px 22px rgba(22, 127, 232, .18);
}
.yesterday-detail-hero span { display: grid; gap: 4px; }
.yesterday-detail-hero small { font-size: 9px; opacity: .72; }
.yesterday-detail-hero span b { font-size: 16px; }
.yesterday-detail-hero > strong { grid-row: 1 / 3; align-self: center; font-size: 30px; line-height: 1; }
.yesterday-detail-hero > strong i { font-size: 10px; font-style: normal; font-weight: 500; opacity: .75; }
.yesterday-detail-hero > em { font-size: 10px; font-style: normal; opacity: .88; }
.yesterday-detail-card {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid #e2e7ed;
  border-radius: 12px;
  background: #fff;
}
.yesterday-detail-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.yesterday-detail-card header span { display: grid; gap: 4px; }
.yesterday-detail-card header b { color: #202630; font-size: 13px; }
.yesterday-detail-card header small { color: #929ba7; font-size: 8px; }
.yesterday-detail-card header > strong { color: #1684e8; font-size: 13px; white-space: nowrap; }
.detail-products { margin-top: 12px; padding-top: 11px; border-top: 1px solid #edf0f3; }
.detail-products > small { display: block; margin-bottom: 7px; color: #8a939f; font-size: 8px; }
.detail-products > div { display: flex; flex-wrap: wrap; gap: 6px; }
.detail-products span { padding: 5px 8px; border-radius: 6px; color: #29699f; background: #eef6fd; font-size: 9px; }
.addition-products span { color: #6349b8; background: #f3efff; }
.detail-empty { margin-top: 10px; padding: 36px 16px; border: 1px dashed #d9e0e7; border-radius: 12px; color: #919aa5; background: #fff; font-size: 10px; text-align: center; }
.customer-list-heading { margin-top: 2px; }

@media (min-width: 921px) {
  html,
  body { height: 100%; overflow: hidden; }
  .demo-page {
    width: min(1040px, calc(100% - 32px));
    height: 100dvh;
    padding: 16px 0;
  }
  .studio-layout {
    height: 100%;
    grid-template-columns: 340px auto;
    align-items: center;
    gap: clamp(34px, 6vw, 72px);
  }
  .studio-panel {
    position: relative;
    top: auto;
    width: 340px;
    height: min(844px, calc(100dvh - 32px));
    min-height: 0;
    padding: clamp(22px, 3.2vh, 32px);
    border-radius: 26px;
  }
  .brand-lockup { margin-bottom: clamp(20px, 5vh, 54px); }
  .studio-panel .lead { margin-top: 14px; line-height: 1.65; }
  .role-switch { margin-top: clamp(16px, 3.5vh, 28px); }
  .demo-toolbar { margin-top: 12px; }
  .journey-panel { margin-top: clamp(16px, 3.5vh, 28px); }
  .device-stage { --phone-scale: 1; gap: 8px; }
  .phone-shell { transform: scale(var(--phone-scale)); transform-origin: top left; }
  .context-panel { display: none; }
}

@media (min-width: 921px) and (max-height: 960px) {
  .device-stage { --phone-scale: .95; }
  .phone-fit { width: 390px; height: 844px; }
}

@media (min-width: 921px) and (max-height: 880px) {
  .studio-layout { grid-template-columns: 318px auto; gap: clamp(28px, 5vw, 58px); }
  .studio-panel { width: 318px; padding: 22px 24px; }
  .brand-lockup { margin-bottom: 18px; }
  .brand-mark { width: 42px; height: 42px; border-radius: 12px; }
  .studio-panel .eyebrow { margin-bottom: 8px; }
  .studio-panel h1 { font-size: 29px; }
  .studio-panel .lead { margin-top: 9px; font-size: 11px; line-height: 1.55; }
  .role-switch { margin-top: 14px; }
  .role-switch button { min-height: 46px; }
  .demo-toolbar { margin-top: 9px; padding: 9px 11px; }
  .journey-panel { margin-top: 14px; }
  .journey-panel ol { margin-top: 10px; }
  .journey-panel li { min-height: 36px; padding-bottom: 8px; }
  .scope-note { padding: 9px 11px; font-size: 10px; }
  .studio-panel > .reset-button { min-height: 38px; }
  .device-stage { --phone-scale: .89; }
  .phone-fit { width: 365px; height: 790px; }
}

@media (min-width: 921px) and (max-height: 780px) {
  .studio-layout { grid-template-columns: 292px auto; }
  .studio-panel { width: 292px; padding: 18px 21px; }
  .brand-lockup { margin-bottom: 12px; }
  .studio-panel h1 { font-size: 25px; }
  .studio-panel .lead { display: none; }
  .role-switch { margin-top: 12px; }
  .role-switch button { min-height: 42px; }
  .journey-panel { margin-top: 12px; }
  .journey-panel .panel-kicker { margin-bottom: 5px; }
  .journey-panel h2 { font-size: 14px; }
  .journey-panel li { min-height: 31px; padding-left: 34px; padding-bottom: 5px; font-size: 10px; }
  .journey-panel li::before { width: 22px; height: 22px; }
  .journey-panel li:not(:last-child)::after { top: 22px; left: 10px; }
  .scope-note { display: none; }
  .device-stage { --phone-scale: .81; }
  .phone-fit { width: 332px; height: 719px; }
}

@media (min-width: 921px) and (max-height: 680px) {
  .studio-panel .journey-panel { display: none; }
  .device-caption { display: none; }
  .device-stage { --phone-scale: .72; }
  .phone-fit { width: 295px; height: 639px; }
}

@media (max-width: 920px) {
  html,
  body { min-height: 100%; overflow: auto; }
  .phone-fit {
    width: min(410px, calc(100vw - 20px));
    height: min(888px, calc(100dvh - 94px));
    min-height: 650px;
    margin: auto;
  }
  .phone-shell { width: 100%; height: 100%; transform: none; }
}

@media (max-width: 430px) {
  .phone-fit {
    width: 100vw;
    height: calc(100dvh - 68px);
    min-height: 590px;
  }
}

/* Management dashboards */
.management-page { padding-bottom: 24px; }
.management-page .role-scope { margin-bottom: 11px; }
.management-section-heading { margin-top: 18px; }

.manager-overview-card {
  display: grid;
  width: 100%;
  gap: 13px;
  padding: 17px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #dcebe5;
  border-radius: 16px;
  color: inherit;
  background: linear-gradient(145deg, #ffffff 0%, #f2faf6 100%);
  box-shadow: 0 10px 25px rgba(33, 112, 82, .09);
  text-align: left;
}
.manager-overview-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.manager-overview-head > span { display: grid; gap: 5px; }
.manager-overview-head small { color: #76857f; font-size: 9px; }
.manager-overview-head b { color: #17251f; font-size: 17px; }
.manager-overview-head > strong { color: #16845d; font-size: 29px; line-height: 1; letter-spacing: -.04em; }
.manager-overview-progress { display: block; height: 6px; overflow: hidden; border-radius: 5px; background: #dfeae5; }
.manager-overview-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1fa978, #48c293); }
.manager-overview-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.manager-overview-stats > span { display: grid; gap: 4px; padding: 9px; border: 1px solid rgba(28, 139, 98, .09); border-radius: 10px; background: rgba(255, 255, 255, .72); }
.manager-overview-stats small { color: #819088; font-size: 8px; }
.manager-overview-stats b { color: #22312a; font-size: 13px; }
.manager-overview-stats b i { color: #8b9992; font-size: 9px; font-style: normal; font-weight: 500; }
.manager-overview-enter { display: flex; align-items: center; justify-content: flex-end; gap: 3px; color: #16845d; font-size: 9px; font-weight: 700; }
.manager-overview-enter .ui-icon { width: 14px; height: 14px; }
.manager-person-list { display: grid; gap: 8px; }
.manager-person-card {
  display: grid;
  width: 100%;
  min-height: 69px;
  grid-template-columns: 37px minmax(0, 1fr) auto 14px;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #e4e9e6;
  border-radius: 12px;
  color: inherit;
  background: #fff;
  box-shadow: 0 5px 14px rgba(28, 49, 39, .045);
  text-align: left;
}
.manager-person-avatar { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(145deg, #23a979, #58c69b); font-size: 13px; font-weight: 750; }
.manager-person-main { display: grid; min-width: 0; gap: 5px; }
.manager-person-main > span:first-child { display: flex; align-items: baseline; gap: 7px; }
.manager-person-main b { color: #202b26; font-size: 11px; }
.manager-person-main small { color: #87918c; font-size: 8px; }
.manager-person-progress { display: block; height: 3px; overflow: hidden; border-radius: 3px; background: #e8eeeb; }
.manager-person-progress i { display: block; height: 100%; border-radius: inherit; background: #28ad7d; }
.manager-person-meta { overflow: hidden; color: #86918b; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.manager-person-card > strong { color: #187d5a; font-size: 11px; }
.manager-person-card > em { display: grid; place-items: center; color: #adb6b1; }
.manager-person-card > em .ui-icon { width: 14px; height: 14px; }

.executive-overview-card {
  display: grid;
  gap: 14px;
  padding: 17px;
  overflow: hidden;
  border-radius: 17px;
  color: #fff;
  background: radial-gradient(circle at 88% 12%, rgba(255,255,255,.22), transparent 28%), linear-gradient(145deg, #7157df, #4935ad);
  box-shadow: 0 13px 28px rgba(82, 59, 177, .22);
}
.executive-overview-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.executive-overview-top > span { display: grid; gap: 4px; }
.executive-overview-top small { font-size: 7px; letter-spacing: .12em; opacity: .66; }
.executive-overview-top b { font-size: 14px; }
.executive-overview-top em { padding: 4px 7px; border-radius: 7px; background: rgba(255,255,255,.12); font-size: 8px; font-style: normal; opacity: .88; }
.executive-overview-main { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.executive-overview-main > span:first-child { display: grid; gap: 5px; }
.executive-overview-main small { font-size: 9px; opacity: .72; }
.executive-overview-main strong { font-size: 27px; letter-spacing: -.035em; }
.executive-overview-main strong i { font-size: 13px; font-style: normal; font-weight: 500; opacity: .68; }
.executive-rate-ring { position: relative; display: grid; width: 58px; height: 58px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: conic-gradient(#fff calc(var(--rate) * 1%), rgba(255,255,255,.18) 0); }
.executive-rate-ring::before { position: absolute; width: 44px; height: 44px; border-radius: 50%; background: #6048cb; content: ""; }
.executive-rate-ring b { position: relative; z-index: 1; font-size: 12px; }
.executive-overview-stats { display: grid; grid-template-columns: .9fr .9fr 1.2fr; gap: 7px; }
.executive-overview-stats > span { display: grid; gap: 4px; padding: 8px; border-radius: 9px; background: rgba(255,255,255,.11); }
.executive-overview-stats small { font-size: 7px; opacity: .66; }
.executive-overview-stats b { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.executive-metric-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.executive-metric-strip > span { display: grid; gap: 3px; padding: 11px 8px; border: 1px solid #e7e4f3; border-radius: 11px; background: #fff; text-align: center; }
.executive-metric-strip b { color: #513db8; font-size: 15px; }
.executive-metric-strip small { color: #8d8a9a; font-size: 8px; }
.management-text-button { padding: 0; border: 0; color: #6650cc; background: transparent; font-size: 9px; font-weight: 700; }
.executive-company-list { display: grid; gap: 9px; }
.executive-company-card {
  display: grid;
  width: 100%;
  grid-template-columns: 28px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 10px;
  padding: 13px 12px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #e6e4ee;
  border-radius: 13px;
  color: inherit;
  background: #fff;
  box-shadow: 0 6px 16px rgba(70, 57, 126, .055);
  text-align: left;
}
.executive-company-rank { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; color: #6751cc; background: #f1eefc; font-size: 9px; font-weight: 800; }
.executive-company-main { display: grid; min-width: 0; gap: 8px; }
.executive-company-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.executive-company-head > span { display: grid; gap: 3px; }
.executive-company-head b { color: #282439; font-size: 12px; }
.executive-company-head small { color: #9691a4; font-size: 8px; }
.executive-company-head > strong { color: #5c46c2; font-size: 13px; }
.executive-company-progress { display: block; height: 4px; overflow: hidden; border-radius: 4px; background: #eceaf3; }
.executive-company-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7157df, #9a84ed); }
.executive-company-stats { display: flex; flex-wrap: wrap; gap: 8px 12px; color: #9792a2; font-size: 8px; }
.executive-company-stats b { color: #403951; font-size: 9px; }
.executive-company-card > em { display: grid; place-items: center; color: #ada8b8; }
.executive-company-card > em .ui-icon { width: 14px; height: 14px; }

.company-summary-card {
  display: grid;
  width: 100%;
  gap: 12px;
  margin-bottom: 10px;
  padding: 15px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #e2e7ec;
  border-radius: 14px;
  color: inherit;
  background: #fff;
  box-shadow: 0 7px 18px rgba(38, 50, 64, .055);
  text-align: left;
}
.company-summary-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.company-summary-head > span { display: grid; gap: 4px; }
.company-summary-head b { color: #202630; font-size: 14px; }
.company-summary-head small { color: #929aa5; font-size: 8px; }
.company-summary-head > strong { color: var(--role-accent); font-size: 15px; }
.company-summary-progress { display: block; height: 5px; overflow: hidden; border-radius: 5px; background: #e9edf1; }
.company-summary-progress i { display: block; height: 100%; border-radius: inherit; background: var(--role-accent); }
.company-summary-metrics { display: grid; grid-template-columns: repeat(3, 1fr) 14px; align-items: center; gap: 8px; }
.company-summary-metrics > span { display: grid; gap: 3px; }
.company-summary-metrics small { color: #929aa4; font-size: 8px; }
.company-summary-metrics b { color: #27303a; font-size: 12px; }
.company-summary-metrics b i { color: #8c959f; font-size: 8px; font-style: normal; font-weight: 500; }
.company-summary-metrics em { display: grid; place-items: center; color: #a7afb8; }
.company-summary-metrics em .ui-icon { width: 14px; height: 14px; }
