:root {
  --accent: #2854c5;
  --tint: #eef3ff;
  --ink: #1d2b41;
  --muted: #728096;
  --line: #e3e8f0;
  --bg: #f5f7fb;
  --paper: white;
  --sidebar: 224px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px/1.6 -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
}
a {
  color: var(--accent);
  text-decoration: none;
}
button {
  border: 0;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 28px;
  line-height: 1.4;
  margin-bottom: 8px;
  letter-spacing: -0.025em;
}
h2 {
  font-size: 17px;
  margin: 0;
}
h3 {
  font-size: 14px;
  margin: 0 0 8px;
}
em {
  font-style: normal;
  color: var(--accent);
}
small {
  font-size: 11px;
}
.review-strip {
  height: 40px;
  background: #202d42;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 20px;
  font-size: 11px;
  position: relative;
  z-index: 30;
}
.review-strip > a {
  color: #cbd5e5;
  white-space: nowrap;
}
.review-strip strong {
  white-space: nowrap;
}
.review-strip > span {
  color: #b9c5d8;
}
.review-strip nav {
  margin-left: auto;
  display: flex;
  gap: 5px;
}
.review-strip nav a {
  color: #d5dff0;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
}
.review-strip nav a.active {
  background: #ffffff20;
  color: #fff;
}
.sidebar {
  position: fixed;
  left: 0;
  top: 40px;
  bottom: 0;
  width: var(--sidebar);
  background: var(--paper);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 28px 16px 20px;
  z-index: 20;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  padding: 0 7px;
}
.brand b {
  background: var(--accent);
  color: white;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: 21px;
  border-radius: 8px;
  font-weight: 500;
}
.brand small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 10px;
  margin-top: 1px;
}
.sidebar nav {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.sidebar nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #67758a;
  background: transparent;
  padding: 12px 14px;
  border-radius: 5px;
  text-align: left;
  min-height: 46px;
  font-size: 13px;
}
.sidebar nav button > span {
  font-size: 19px;
  width: 19px;
  color: #8894a7;
}
.sidebar nav button.active {
  background: var(--tint);
  color: var(--accent);
  font-weight: 600;
}
.sidebar nav button.active > span {
  color: var(--accent);
}
.sidebar nav i {
  font-style: normal;
  font-size: 10px;
  line-height: 18px;
  min-width: 18px;
  border-radius: 20px;
  background: var(--tint);
  color: var(--accent);
  text-align: center;
  margin-left: auto;
}
.owner-block {
  margin-top: auto;
  padding: 20px 7px 0;
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.owner-block small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 2px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  background: #e9eef8;
  color: #50607a;
  border-radius: 50%;
  font-size: 13px;
}
.app-shell {
  margin-left: var(--sidebar);
}
.topbar {
  height: 62px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 0 36px;
  color: var(--muted);
  font-size: 12px;
}
.topbar-right {
  margin-left: auto;
  font-size: 11px;
}
.icon-button {
  min-width: 36px;
  min-height: 36px;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  display: grid;
  place-items: center;
  border-radius: 4px;
}
#menuButton {
  display: none;
}
main#main {
  max-width: 1480px;
  margin: 0 auto;
  padding: 30px 36px 40px;
  min-height: calc(100svh - 150px);
}
.page-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.page-title p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.eyebrow {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 7px;
}
.primary,
.secondary {
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 5px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
}
.primary {
  background: var(--accent);
  color: white;
  transition:
    background 0.15s,
    transform 0.15s;
}
.primary:hover {
  background: #2047af;
  transform: translateY(-1px);
}
.secondary {
  border: 1px solid var(--line);
  background: white;
  color: #52617a;
}
.text-button {
  color: var(--accent);
  background: transparent;
  padding: 8px 2px;
  font-size: 12px;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  padding: 0 0 24px;
  margin-bottom: 25px;
}
.metric {
  background: transparent;
  text-align: left;
  border-right: 1px solid var(--line);
  padding: 0 20px;
  color: var(--ink);
  transition: background 0.15s;
}
.metric:first-child {
  padding-left: 0;
}
.metric:last-child {
  border: 0;
}
.metric:hover {
  background: var(--tint);
}
.metric > span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.metric strong {
  font-size: 30px;
  font-weight: 550;
}
.metric small {
  color: var(--muted);
  margin-left: 8px;
}
.metric .arrow {
  float: right;
  font-size: 15px;
  color: #93a2b8;
}
.scope-select {
  width: 230px !important;
  min-height: 38px !important;
  font-size: 12px !important;
  background: var(--paper);
}
.work-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr);
  gap: 24px;
  align-items: start;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
  min-width: 0;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px 22px 14px;
}
.panel-heading small {
  color: var(--muted);
  display: block;
  font-weight: 400;
  margin-top: 3px;
  font-size: 10px;
}
.segmented {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: #f1f4f9;
  border-radius: 5px;
}
.segmented button {
  padding: 4px 10px;
  background: transparent;
  color: var(--muted);
  border-radius: 3px;
  font-size: 11px;
  min-height: 28px;
}
.segmented button.active {
  background: white;
  color: var(--accent);
  box-shadow: 0 1px 3px #1d2b410d;
}
.calendar-toolbar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 22px 16px;
}
.calendar-toolbar strong {
  font-size: 14px;
  margin-right: auto;
}
.calendar-toolbar button {
  font-size: 14px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 4px;
  min-height: 29px;
  min-width: 30px;
  color: var(--muted);
}
.calendar-toolbar button.today {
  font-size: 11px;
  padding: 2px 9px;
}
.week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 0 18px 16px;
  gap: 3px;
}
.week-strip button {
  padding: 6px 2px;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 10px;
}
.week-strip b {
  font-size: 15px;
  min-width: 28px;
  height: 28px;
  font-weight: 500;
  display: grid;
  place-items: center;
}
.week-strip .active {
  background: var(--tint);
  color: var(--accent);
}
.week-strip .is-today b {
  background: var(--accent);
  color: white;
  border-radius: 50%;
}
.time-grid {
  padding: 0 20px 14px;
}
.time-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  min-height: 56px;
}
.time-label {
  font-size: 10px;
  color: #929db0;
  padding-top: 7px;
}
.time-events {
  border-top: 1px solid #eef1f6;
  min-width: 0;
}
.time-event {
  display: block;
  width: 100%;
  text-align: left;
  background: #edf3ff;
  border-left: 3px solid var(--accent);
  color: #30549c;
  border-radius: 3px;
  padding: 7px 10px;
  margin: 5px 0;
  font-size: 11px;
  transition: filter 0.15s;
}
.time-event:hover {
  filter: brightness(0.97);
}
.time-event small {
  display: block;
  color: #7a8ca7;
  font-size: 10px;
}
.all-day {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 20px 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
.all-day button {
  background: #f3f5f9;
  color: #687993;
  padding: 5px 9px;
  border-radius: 4px;
  font-size: 10px;
  text-align: left;
}
.agenda-list {
  padding: 0 22px 10px;
}
.task-item {
  display: flex;
  gap: 10px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid #edf0f5;
}
.task-item:last-child {
  border-bottom: 0;
}
.task-check {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 3px;
  border: 1px solid #cbd5e3;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: white;
  color: white;
  font-size: 11px;
}
.task-item.done .task-check {
  background: var(--accent);
  border-color: var(--accent);
}
.task-main {
  min-width: 0;
  flex: 1;
}
.task-name {
  display: block;
  color: var(--ink);
  text-align: left;
  background: transparent;
  font-size: 12px;
  padding: 0;
}
.task-item.done .task-name {
  text-decoration: line-through;
  color: #94a0b1;
}
.task-meta {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.7;
}
.task-meta .source {
  color: #8595b0;
}
.task-tools {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.task-tools button {
  font-size: 10px;
  background: transparent;
  color: #6a83b5;
  padding: 2px 0;
}
.priority-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 4px;
}
.overdue {
  color: #ad5744 !important;
}
.subheading {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}
.empty {
  padding: 32px 15px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  padding: 0 18px 20px;
  gap: 4px;
}
.month-grid .weekday {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  padding: 6px;
}
.month-day {
  min-height: 57px;
  background: white;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 5px;
  text-align: center;
  color: #5d6d84;
  font-size: 12px;
}
.month-day span {
  display: block;
  font-size: 9px;
  margin-top: 5px;
  color: var(--accent);
}
.month-day.active {
  background: var(--tint);
  border-color: #d6e1fa;
  color: var(--accent);
}
.month-day.blank {
  visibility: hidden;
}
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  padding: 0 15px 20px;
  gap: 6px;
}
.week-col {
  min-height: 300px;
  border-left: 1px solid var(--line);
  padding-left: 6px;
  min-width: 0;
}
.week-col:first-child {
  border: 0;
  padding-left: 0;
}
.week-head {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  background: transparent;
  width: 100%;
  padding: 5px 0 10px;
}
.week-head b {
  font-size: 17px;
  display: block;
  font-weight: 500;
  color: var(--ink);
}
.week-col.active .week-head b {
  color: var(--accent);
}
.week-task {
  background: var(--tint);
  border-left: 2px solid var(--accent);
  padding: 8px 5px;
  text-align: left;
  width: 100%;
  border-radius: 3px;
  font-size: 10px;
  color: #41639d;
  margin: 5px 0;
  overflow-wrap: anywhere;
}
.week-task small {
  font-size: 9px;
  display: block;
  color: #8092b0;
  margin-bottom: 4px;
}
.bottom-section {
  margin-top: 27px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 13px;
}
.section-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.customer-table {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.table-head,
.customer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 100px 88px 100px;
  gap: 16px;
  align-items: center;
  padding: 13px 20px;
  text-align: left;
  width: 100%;
  font-size: 12px;
}
.table-head {
  font-size: 10px;
  color: var(--muted);
  background: #fbfcfe;
  border-bottom: 1px solid var(--line);
}
.customer-row {
  border-bottom: 1px solid var(--line);
  background: white;
  color: var(--ink);
  transition: background 0.15s;
}
.customer-row:last-child {
  border: 0;
}
.customer-row:hover {
  background: var(--tint);
}
.customer-row strong {
  font-size: 16px;
  font-weight: 650;
  display: block;
}
.customer-row small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.customer-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.table-head > span:last-child,
.customer-row > span:last-child {
  white-space: nowrap;
}
.tag {
  background: var(--tint);
  color: var(--accent);
  border-radius: 3px;
  font-size: 10px;
  padding: 4px 7px;
  display: inline-block;
  line-height: 1.5;
  white-space: nowrap;
}
.tag.neutral {
  background: #f0f3f7;
  color: #7a879a;
}
.tag.warm {
  background: #fff3e5;
  color: #a7793a;
}
.customer-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.customer-toolbar .scope-select {
  margin-right: auto;
}
.customer-toolbar input {
  max-width: 230px;
}
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}
.detail-main,
.detail-side {
  padding: 24px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.detail-item {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.detail-item.wide {
  grid-column: 1/-1;
}
.detail-item > span,
.detail-side h3 {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  margin: 0 0 7px;
}
.detail-item p {
  font-size: 13px;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.detail-side .field {
  margin-bottom: 18px;
}
.detail-side textarea {
  font-size: 13px;
}
.detail-side .primary {
  width: 100%;
  margin-top: 14px;
}
.timeline-entry {
  border-left: 2px solid var(--line);
  padding: 0 0 22px 18px;
  margin: 8px 0 0 3px;
  font-size: 12px;
}
.timeline-entry small {
  color: var(--muted);
  display: block;
  margin-bottom: 5px;
}
.timeline-entry p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.evidence {
  padding: 15px;
  background: #f5f8ff;
  border-left: 3px solid var(--accent);
  font-size: 12px;
  line-height: 1.9;
  margin: 16px 0;
}
.evidence ul {
  margin: 4px 0;
  padding-left: 17px;
}
.detail-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.detail-tabs button {
  padding: 8px 0 12px;
  background: transparent;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  font-size: 12px;
}
.detail-tabs button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.form-list {
  border-top: 1px solid var(--line);
}
.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px 100px 250px;
  gap: 20px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.form-row h3 {
  font-size: 16px;
  margin: 0 0 5px;
}
.form-row p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.form-row .actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
}
.form-row .actions button {
  font-size: 11px;
}
.count-link {
  background: transparent;
  color: var(--accent);
  font-size: 19px;
  padding: 8px 0;
  text-align: left;
}
.count-link small {
  color: var(--muted);
  font-size: 10px;
  margin-left: 5px;
}
.tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 12px;
}
.tabs button {
  padding: 8px 0;
  background: transparent;
  border-bottom: 2px solid transparent;
  font-size: 12px;
  color: var(--muted);
}
.tabs button.active {
  color: var(--accent);
  border-color: var(--accent);
}
.chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 24px;
}
.chat-panel {
  display: flex;
  flex-direction: column;
  min-height: 560px;
}
.chat-messages {
  padding: 22px;
  flex: 1;
  max-height: 470px;
  overflow: auto;
}
.chat-message {
  padding: 13px 15px;
  background: #f4f7fb;
  border-radius: 5px;
  font-size: 12px;
  margin-bottom: 14px;
  max-width: 94%;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.chat-message.user {
  margin-left: auto;
  background: var(--tint);
}
.chat-message > small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 6px;
}
.chat-input {
  border-top: 1px solid var(--line);
  padding: 16px 22px;
  display: flex;
  gap: 10px;
  align-items: end;
}
.chat-input textarea {
  min-height: 80px;
}
.chat-input .primary {
  min-height: 42px;
}
.preview-panel {
  padding: 24px;
  position: sticky;
  top: 16px;
}
.preview-panel label {
  font-size: 12px;
}
.preview-field {
  margin: 18px 0;
}
.preview-field > span {
  font-size: 12px;
  display: block;
  margin-bottom: 7px;
}
.preview-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}
.card-preview {
  background: #fff;
  border: 1px solid #dfe7f4;
  padding: 30px;
  border-radius: 10px;
  max-width: 400px;
  margin: 24px auto;
}
.card-preview .profile-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: white;
  border-radius: 12px;
  font-size: 22px;
  margin-bottom: 24px;
}
.card-preview h2 {
  font-size: 25px;
  margin-bottom: 6px;
}
.card-preview p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
}
.card-preview .services {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  margin-top: 22px;
}
.profile-columns {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}
.profile-form {
  padding: 26px;
}
.profile-form > p {
  color: var(--muted);
  font-size: 12px;
}
.profile-form .field {
  margin: 18px 0;
}
.actions-inline {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}
.analysis-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.analysis-item {
  border-top: 1px solid var(--line);
  padding: 23px 0;
}
.analysis-item h3 {
  font-size: 16px;
  margin-bottom: 10px;
}
.analysis-item p {
  font-size: 12px;
  color: #687991;
  line-height: 1.9;
}
.analysis-item .actions-inline {
  margin-top: 10px;
}
.analysis-item ul {
  font-size: 12px;
  color: var(--muted);
  padding-left: 17px;
  line-height: 1.9;
}
.reminder-group {
  margin: 20px 0 30px;
}
.reminder-group h2 {
  font-size: 16px;
  margin-bottom: 12px;
}
.reminder-group .panel {
  padding: 0 22px;
}
.prototype-note {
  background: #edf1f8;
  padding: 13px 17px;
  border-left: 3px solid #a8b8d0;
  color: #6b7c96;
  font-size: 11px;
  margin-top: 24px;
}
.app-footer {
  font-size: 10px;
  color: #929eb0;
  text-align: center;
  padding: 0 20px 24px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #d8e0ec;
  background: white;
  color: var(--ink);
  border-radius: 4px;
  padding: 10px 12px;
  min-height: 42px;
  font-size: 13px;
  outline: none;
  transition:
    border-color 0.16s,
    box-shadow 0.16s;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #edf2ff;
}
input::placeholder,
textarea::placeholder {
  color: #99a5b6;
  font-size: 12px;
}
textarea {
  resize: vertical;
  line-height: 1.8;
}
label {
  font-size: 12px;
  font-weight: 500;
  display: block;
  margin-bottom: 7px;
}
label small {
  font-weight: 400;
  color: var(--muted);
  margin-left: 6px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.field-row > div {
  min-width: 0;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 26px;
  width: min(520px, calc(100% - 32px));
  max-height: 90svh;
  color: var(--ink);
  box-shadow: 0 20px 80px #17233c20;
}
dialog::backdrop {
  background: #16243b66;
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.dialog-heading h2 {
  font-size: 21px;
}
.dialog-heading .eyebrow {
  margin: 0 0 4px;
}
dialog label {
  margin-top: 16px;
}
dialog .field-row {
  margin-top: 2px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.field-error {
  color: #b34b3c;
  font-size: 12px;
  margin: 6px 0;
}
.field-error:empty {
  display: none;
}
.copy-area {
  font-size: 12px;
  white-space: pre-wrap;
  line-height: 1.9;
  color: #62738c;
  padding: 16px;
  background: #f5f7fb;
  border-radius: 4px;
  overflow-wrap: anywhere;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  z-index: 100;
  background: #22334f;
  color: white;
  padding: 12px 20px;
  border-radius: 5px;
  box-shadow: 0 4px 16px #14233b20;
  font-size: 12px;
}
.review-home {
  max-width: 1160px;
  margin: auto;
  padding: 64px 26px;
}
.review-home > h1 {
  font-size: 36px;
  margin-top: 15px;
}
.review-home > p {
  color: var(--muted);
  max-width: 650px;
}
.review-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 36px 0;
}
.review-options > a {
  display: block;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 24px;
  transition: transform 0.18s;
}
.review-options > a:hover {
  transform: translateY(-4px);
}
.review-options h2 {
  margin: 22px 0 10px;
  font-size: 20px;
}
.review-options h2 small {
  font-size: 11px;
  background: var(--tint);
  color: var(--accent);
  padding: 4px 8px;
  border-radius: 20px;
  margin-left: 5px;
}
.review-options p {
  color: var(--muted);
  font-size: 13px;
  min-height: 68px;
}
.review-options strong {
  color: var(--accent);
  font-size: 12px;
}
.mini {
  height: 170px;
  background: #f1f5fc;
  border-radius: 5px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  grid-template-rows: 22px 1fr;
  gap: 10px;
}
.mini i {
  display: block;
  background: #dce6f8;
  border-radius: 3px;
}
.mini i:first-child {
  grid-column: 1/-1;
  background: #c4d4f2;
}
.mini i:last-child {
  background: #e4ebf8;
}
.layout-two {
  grid-template-columns: 0.8fr 1.4fr;
}
.layout-three i:nth-child(2) {
  grid-column: 1/-1;
}
.layout-three i:last-child {
  display: none;
}
.layout-2 .work-columns {
  grid-template-columns: minmax(0, 1fr) 310px;
  grid-template-areas: "agenda calendar";
}
.layout-2 .agenda-panel {
  grid-area: agenda;
}
.layout-2 .calendar-panel {
  grid-area: calendar;
}
.layout-2 .month-grid {
  padding: 0 12px 18px;
  gap: 1px;
}
.layout-2 .month-day {
  min-height: 42px;
  font-size: 11px;
}
.layout-2 .month-day span {
  font-size: 8px;
}
.layout-2 .task-item {
  padding: 19px 0;
}
.layout-2 .task-name {
  font-size: 14px;
}
.layout-2 .agenda-list {
  padding: 0 26px 15px;
}
.layout-3 .work-columns {
  display: block;
}
.layout-3 .week-grid {
  padding: 0 24px 24px;
  gap: 10px;
}
.layout-3 .week-col {
  min-height: 330px;
}
.layout-3 .week-task {
  padding: 12px 8px;
  font-size: 12px;
  min-height: 70px;
}
.layout-3 .agenda-panel {
  margin-top: 24px;
}
.layout-3 .agenda-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 24px;
}
.layout-3 .agenda-list > .subheading {
  grid-column: 1/-1;
}
.layout-3 .agenda-list .empty {
  grid-column: 1/-1;
}
@media (max-width: 1180px) {
  :root {
    --sidebar: 202px;
  }
  .topbar {
    padding: 0 25px;
  }
  main#main {
    padding: 26px 25px;
  }
  .work-columns {
    gap: 18px;
    grid-template-columns: minmax(0, 1.1fr) minmax(265px, 0.9fr);
  }
  .panel-heading {
    padding: 18px 17px 12px;
  }
  .agenda-list {
    padding: 0 17px 10px;
  }
  .table-head,
  .customer-row {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 90px 80px;
    gap: 10px;
    padding: 13px 15px;
  }
  .table-head > span:last-child,
  .customer-row > span:last-child {
    display: none;
  }
  .page-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
  }
  .form-row {
    grid-template-columns: minmax(0, 1fr) 70px 70px 210px;
    gap: 12px;
  }
  .layout-2 .work-columns {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}
@media (max-width: 900px) {
  .review-strip > span {
    display: none;
  }
  .work-columns,
  .layout-2 .work-columns {
    display: flex;
    flex-direction: column;
  }
  .calendar-panel,
  .agenda-panel {
    width: 100%;
  }
  .page-layout,
  .chat-layout,
  .profile-columns {
    grid-template-columns: 1fr;
  }
  .preview-panel {
    position: static;
  }
  .form-row {
    grid-template-columns: minmax(0, 1fr) 70px 70px;
  }
  .form-row .actions {
    grid-column: 1/-1;
    justify-content: flex-start;
  }
  .analysis-list {
    grid-template-columns: 1fr;
  }
  .layout-3 .agenda-list {
    display: block;
  }
}
@media (max-width: 720px) {
  :root {
    --sidebar: 230px;
  }
  .review-strip {
    height: 38px;
    padding: 0 14px;
    gap: 12px;
    font-size: 10px;
  }
  .review-strip nav {
    gap: 0;
  }
  .review-strip nav a {
    padding: 4px 6px;
  }
  .sidebar {
    top: 38px;
    transform: translateX(-100%);
    transition: transform 0.2s;
    padding-top: 25px;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar nav button {
    min-height: 48px;
    font-size: 14px;
  }
  .scrim {
    position: fixed;
    inset: 38px 0 0;
    background: #17264066;
    z-index: 19;
  }
  .app-shell {
    margin-left: 0;
  }
  .topbar {
    height: 56px;
    padding: 0 16px;
    gap: 10px;
  }
  .topbar-right {
    font-size: 10px;
  }
  #menuButton {
    display: grid;
    font-size: 18px;
    min-height: 40px;
    min-width: 32px;
  }
  .topbar > span:first-of-type {
    font-size: 11px;
  }
  main#main {
    padding: 23px 16px 30px;
  }
  .page-title {
    align-items: flex-start;
    margin-bottom: 23px;
    gap: 10px;
  }
  .page-title h1 {
    font-size: 25px;
  }
  .page-title p {
    font-size: 12px;
    line-height: 1.9;
  }
  .page-title .primary {
    font-size: 12px;
    min-height: 44px;
    padding: 10px 12px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 18px 0;
    padding-bottom: 22px;
  }
  .metric {
    padding: 0 16px;
  }
  .metric:nth-child(odd) {
    padding-left: 0;
  }
  .metric:nth-child(even) {
    border: 0;
  }
  .metric > span {
    font-size: 12px;
  }
  .metric strong {
    font-size: 29px;
  }
  .metric small {
    font-size: 11px;
  }
  .metric .arrow {
    font-size: 14px;
  }
  .scope-select {
    width: 100% !important;
    font-size: 16px !important;
    min-height: 44px !important;
  }
  .scope-line {
    margin: 0 0 20px;
  }
  .panel-heading {
    padding: 18px 17px 14px;
  }
  .panel-heading h2 {
    font-size: 16px;
  }
  .panel-heading small {
    font-size: 11px;
  }
  .segmented button {
    min-height: 35px;
    padding: 4px 10px;
    font-size: 12px;
  }
  .calendar-toolbar {
    padding: 0 17px 14px;
  }
  .calendar-toolbar button {
    min-height: 36px;
    min-width: 32px;
  }
  .calendar-toolbar button.today {
    font-size: 12px;
  }
  .calendar-toolbar strong {
    font-size: 14px;
  }
  .week-strip {
    padding: 0 12px 13px;
  }
  .week-strip button {
    min-height: 56px;
    font-size: 11px;
  }
  .week-strip b {
    font-size: 16px;
  }
  .time-grid {
    padding: 0 15px 10px;
  }
  .time-row {
    grid-template-columns: 34px 1fr;
    gap: 9px;
    min-height: 57px;
  }
  .time-label {
    font-size: 10px;
  }
  .time-event {
    font-size: 12px;
    padding: 9px 10px;
  }
  .time-event small {
    font-size: 10px;
  }
  .all-day {
    margin: 0 15px 12px;
    font-size: 11px;
    align-items: start;
  }
  .all-day button {
    font-size: 11px;
  }
  .agenda-list {
    padding: 0 17px 8px;
  }
  .task-item {
    padding: 16px 0;
    gap: 12px;
  }
  .task-check {
    width: 22px;
    height: 22px;
    min-width: 22px;
  }
  .task-name {
    font-size: 14px;
  }
  .task-meta {
    font-size: 11px;
  }
  .task-tools {
    gap: 16px;
  }
  .task-tools button {
    font-size: 12px;
    min-height: 32px;
  }
  .subheading {
    font-size: 12px;
  }
  .bottom-section {
    margin-top: 24px;
  }
  .section-heading h2 {
    font-size: 16px;
  }
  .section-heading p {
    font-size: 11px;
  }
  .text-button {
    font-size: 12px;
    min-height: 40px;
  }
  .table-head {
    display: none;
  }
  .customer-row {
    grid-template-columns: minmax(0, 1fr) 84px;
    gap: 9px;
    padding: 16px;
  }
  .customer-row > span:nth-child(2) {
    display: none;
  }
  .customer-row > span:nth-child(4) {
    grid-column: 1/-1;
    display: block;
  }
  .customer-row strong {
    font-size: 16px;
  }
  .customer-row small {
    font-size: 11px;
  }
  .tag {
    font-size: 11px;
  }
  .customer-toolbar input {
    max-width: none;
  }
  .customer-toolbar select {
    flex: 1;
    min-width: 0;
  }
  .customer-toolbar {
    gap: 10px;
  }
  .page-layout {
    gap: 18px;
  }
  .detail-main,
  .detail-side {
    padding: 20px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .detail-item.wide {
    grid-column: auto;
  }
  .detail-item > span {
    font-size: 12px;
  }
  .detail-item p {
    font-size: 14px;
  }
  .detail-side h3 {
    font-size: 12px;
  }
  .detail-tabs {
    gap: 18px;
  }
  .detail-tabs button {
    font-size: 13px;
    min-height: 44px;
  }
  .evidence {
    font-size: 13px;
  }
  .form-row {
    grid-template-columns: minmax(0, 1fr) 60px;
    gap: 12px;
    padding: 22px 0;
  }
  .form-row > span.tag {
    display: none;
  }
  .form-row h3 {
    font-size: 16px;
  }
  .form-row p {
    font-size: 12px;
  }
  .form-row .actions {
    gap: 16px;
    flex-wrap: wrap;
  }
  .form-row .actions button {
    font-size: 12px;
  }
  .count-link {
    font-size: 22px;
  }
  .count-link small {
    font-size: 11px;
  }
  .tabs {
    gap: 23px;
  }
  .tabs button {
    font-size: 13px;
    min-height: 44px;
  }
  .chat-panel {
    min-height: 480px;
  }
  .chat-messages {
    padding: 18px;
    max-height: 420px;
  }
  .chat-message {
    font-size: 14px;
  }
  .chat-input {
    padding: 15px;
    gap: 8px;
  }
  .chat-input textarea {
    font-size: 16px;
  }
  .chat-input .primary {
    font-size: 13px;
  }
  .preview-panel {
    padding: 20px;
  }
  .profile-form {
    padding: 20px;
  }
  .preview-field > span {
    font-size: 14px;
  }
  .preview-options {
    font-size: 14px;
  }
  .card-preview {
    padding: 26px;
  }
  .analysis-item p,
  .analysis-item ul {
    font-size: 14px;
  }
  .analysis-item h3 {
    font-size: 17px;
  }
  .reminder-group .panel {
    padding: 0 17px;
  }
  .prototype-note {
    font-size: 11px;
  }
  .page-title .secondary {
    font-size: 12px;
  }
  .primary,
  .secondary {
    min-height: 44px;
    font-size: 13px;
  }
  input,
  textarea,
  select,
  .detail-side textarea {
    font-size: 16px;
    min-height: 44px;
  }
  label {
    font-size: 14px;
  }
  input::placeholder,
  textarea::placeholder {
    font-size: 13px;
  }
  .field-row {
    gap: 12px;
  }
  .dialog-heading h2 {
    font-size: 22px;
  }
  dialog {
    padding: 22px;
  }
  .icon-button {
    min-width: 40px;
    min-height: 40px;
  }
  .week-grid,
  .layout-3 .week-grid {
    padding: 0 13px 18px;
    gap: 3px;
  }
  .week-col,
  .layout-3 .week-col {
    min-height: 230px;
    padding-left: 3px;
  }
  .week-task,
  .layout-3 .week-task {
    font-size: 10px;
    padding: 8px 4px;
    min-height: 55px;
  }
  .week-task small {
    font-size: 9px;
  }
  .week-head b {
    font-size: 16px;
  }
  .month-grid {
    padding: 0 12px 18px;
    gap: 2px;
  }
  .month-day {
    min-height: 48px;
  }
  .month-day span {
    font-size: 8px;
  }
  .review-home {
    padding: 35px 20px;
  }
  .review-home > h1 {
    font-size: 28px;
  }
  .review-options {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .review-options p {
    min-height: 0;
  }
  .mini {
    height: 130px;
  }
  .review-options h2 {
    font-size: 21px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 720px) {
  .task-check {
    width: 44px;
    height: 44px;
    min-width: 44px;
    margin-top: -7px;
    border: 0;
    background: transparent;
    color: transparent;
    position: relative;
  }
  .task-check::before {
    content: "";
    position: absolute;
    inset: 11px;
    border: 1px solid #cbd5e3;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: white;
  }
  .task-item.done .task-check {
    background: transparent;
    color: transparent;
  }
  .task-item.done .task-check::before {
    content: "✓";
    background: var(--accent);
    border-color: var(--accent);
    color: white;
  }
  .task-tools button {
    min-height: 44px;
  }
  .calendar-toolbar button {
    min-height: 44px;
  }
  .week-head {
    min-height: 44px;
  }
}

@media (max-width: 900px) {
  .layout-2 .agenda-panel {
    order: -1;
  }
}
/* Production tokens retain selected A / layout 1. */
.sidebar {
  top: 0;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
}
body {
  font-size: 15px;
}
.primary,
.secondary,
input,
select,
textarea {
  font-size: 16px;
  min-height: 44px;
}
.sidebar nav button,
.task-name,
.customer-row,
.detail-item p,
.chat-message {
  font-size: 14px;
}
.muted,
small,
.task-meta {
  font-size: 12px;
}
.login-shell {
  max-width: 420px;
  margin: 12vh auto;
  padding: 28px;
}
.login-shell label {
  display: block;
  margin: 20px 0 8px;
}
.login-shell button {
  width: 100%;
  margin-top: 20px;
}
.login-shell h1 {
  font-size: 24px;
}
.loading {
  padding: 40px;
  text-align: center;
}
.error-banner {
  padding: 14px 18px;
  background: #fff2ee;
  color: #9e422b;
  border: 1px solid #f1d0c5;
  border-radius: 6px;
  margin: 12px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.success-banner {
  background: var(--tint);
  padding: 14px;
  border-radius: 5px;
  color: var(--accent);
}
.stack {
  display: grid;
  gap: 18px;
}
.padded {
  padding: 24px;
}
.field {
  margin-bottom: 18px;
}
.field label,
form > label {
  display: block;
  margin-bottom: 6px;
}
label small {
  font-weight: 400;
  color: var(--muted);
}
.field-row > div {
  min-width: 0;
}
.field-error {
  color: #9e422b;
  font-size: 13px;
}
.inline-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.inline-options label {
  display: flex;
  gap: 8px;
  align-items: center;
}
.inline-options input {
  width: 20px;
  min-height: 20px;
}
.preview-field input[type="checkbox"],
.preview-field input[type="radio"] {
  width: 20px;
  min-height: 20px;
}
.option-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  margin-bottom: 8px;
  min-height: 44px;
}
.option-help {
  background: var(--tint);
  padding: 12px;
  border-radius: 5px;
  margin: -2px 0 10px;
  white-space: pre-wrap;
}
.question {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.question > label,
.question > legend {
  display: block;
  font-weight: 600;
  margin: 0 0 8px;
}
.question fieldset {
  border: 0;
  padding: 0;
}
.share-link {
  overflow-wrap: anywhere;
  white-space: normal;
}
.qr {
  width: 180px;
  height: 180px;
}
.list-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.form-row .actions {
  flex-wrap: wrap;
}
.task-tools button {
  min-height: 36px;
}
.job {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.job p {
  white-space: pre-wrap;
}
.full {
  width: 100%;
}
.json-editor {
  font: 13px/1.7 monospace;
  min-height: 360px;
}
.schema-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.field-editor {
  padding: 16px;
  background: #f8faff;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 12px 0;
}
.form-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.chat-input {
  flex-wrap: wrap;
}
.chat-input textarea {
  flex: 1;
  min-width: 100%;
}
.chat-messages {
  max-height: 380px;
}
.profile-columns {
  align-items: start;
}
dialog {
  max-height: 90svh;
  overflow: auto;
}
dialog::backdrop {
  background: #12233a66;
}
#toast {
  z-index: 100;
}
.card-preview img.avatar-image {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 14px;
}
.month-day {
  min-height: 65px;
}
.date-input {
  width: 160px;
}
.task-meta a {
  display: inline-block;
}
.profile-form > .field {
  margin: 15px 0;
}
.danger {
  color: #a34b38;
}
.cancelled {
  opacity: 0.6;
}
.public-shell {
  max-width: 740px;
  margin: 36px auto;
  padding: 26px;
}
.public-shell h1 {
  font-size: 28px;
}
.public-shell p {
  white-space: pre-wrap;
}
.public-shell .question label {
  font-size: 16px;
}
.calendar-toolbar {
  flex-wrap: wrap;
}
.customer-toolbar select,
.customer-toolbar input {
  max-width: 230px;
}
.tag {
  font-size: 12px;
}
.metric > span {
  font-size: 13px;
}
.detail-grid .detail-item span {
  font-size: 13px;
}
.topbar-right {
  display: flex;
  gap: 12px;
  align-items: center;
}
.topbar-right button {
  font-size: 13px;
  min-height: 44px;
  background: transparent;
  color: var(--muted);
}
.builder-preview {
  position: sticky;
  top: 80px;
  max-height: 85vh;
  overflow: auto;
}
.mobile-note {
  display: none;
}
@media (max-width: 760px) {
  .sidebar {
    top: 0;
  }
  .topbar {
    padding: 8px 16px;
    height: auto;
    min-height: 62px;
  }
  .topbar-right .timezone-label {
    display: none;
  }
  main#main {
    padding: 22px 16px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .metric {
    padding: 8px !important;
  }
  .metric:nth-child(2) {
    border: 0;
  }
  .work-columns,
  .page-layout,
  .profile-columns,
  .chat-layout {
    grid-template-columns: 1fr;
  }
  .customer-row,
  .table-head {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 12px;
  }
  .customer-row > span:nth-child(n + 3),
  .table-head > span:nth-child(n + 3) {
    display: none;
  }
  .form-row {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }
  .form-row .actions {
    grid-column: 1/-1;
    justify-content: flex-start;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-item.wide {
    grid-column: auto;
  }
  .calendar-toolbar {
    padding: 0 14px 14px;
  }
  .week-grid {
    gap: 3px;
    padding: 0 8px 16px;
  }
  .week-task {
    font-size: 11px;
  }
  .month-grid {
    padding: 0 8px 16px;
  }
  .public-shell {
    margin: 12px;
    padding: 22px 18px;
  }
  .builder-preview {
    position: static;
    max-height: none;
  }
  .login-shell {
    margin: 8vh 16px;
  }
  .page-title {
    align-items: start;
    flex-wrap: wrap;
  }
  .page-title .scope-select {
    width: 100% !important;
  }
  .mobile-note {
    display: block;
  }
  .profile-form,
  .detail-main,
  .detail-side,
  .padded {
    padding: 18px;
  }
  .sidebar nav button {
    font-size: 16px;
  }
  .chat-input {
    padding: 14px;
  }
  .field-row {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
  .task-tools {
    gap: 14px;
  }
  .task-tools button {
    min-height: 44px;
  }
  .all-day {
    flex-wrap: wrap;
  }
  .month-day {
    min-width: 0;
    padding: 4px 1px;
  }
  .month-day span {
    font-size: 10px;
  }
  .customer-toolbar select,
  .customer-toolbar input {
    max-width: 100%;
    flex: 1 1 140px;
  }
}

body.crm-busy #main,
body.crm-busy #modalContent {
  pointer-events: none;
}
#busyStatus {
  position: fixed;
  top: 70px;
  right: 18px;
  z-index: 80;
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 6px;
  box-shadow: 0 4px 18px #1d2b4118;
}
/* Inputs and native choices have separate dimensions. */
.option-label > input:is([type="checkbox"], [type="radio"]) {
  flex: 0 0 18px;
  width: 18px;
  min-width: 18px;
  max-width: 18px;
  height: 18px;
  min-height: 18px;
  max-height: 18px;
  padding: 0;
  margin: 0;
}
.option-label {
  justify-content: flex-start;
}
#workClock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 12px;
}
#breadcrumb {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar-right {
  flex: none;
}
#modal.modal-share {
  width: min(420px, calc(100vw - 32px));
  max-width: 420px;
  padding: 24px;
}
.modal-share .dialog-heading {
  position: relative;
  justify-content: center;
  min-height: 44px;
}
.modal-share .dialog-heading h2 {
  width: 100%;
  padding: 0 38px;
  text-align: center;
}
.modal-share .dialog-heading .icon-button {
  position: absolute;
  right: 0;
  top: 0;
}
.share-content {
  text-align: center;
}
.share-content .share-title {
  font-size: 17px;
  font-weight: 600;
}
.share-content .qr {
  display: block;
  margin: 20px auto 24px;
}
.share-actions {
  justify-content: center;
}
@media (max-width: 720px) {
  .topbar {
    gap: 8px;
  }
  #breadcrumb {
    flex: 1;
  }
  .topbar-right {
    gap: 6px;
  }
  .topbar-right button {
    font-size: 12px;
  }
  #workClock {
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    line-height: 1.45;
    font-size: 11px;
  }
}

.week-empty {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
@media (max-width: 720px) {
  .week-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 0 14px 16px;
  }
  .week-grid .week-col {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
    min-height: 64px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px;
  }
  .week-grid .week-col.active {
    border-color: var(--accent);
  }
  .week-head {
    padding: 4px 0;
    font-size: 12px;
  }
  .week-head b {
    font-size: 18px;
  }
  .week-task {
    font-size: 14px;
    padding: 10px;
    margin: 0 0 6px;
  }
  .week-task small {
    font-size: 12px;
  }
  .week-empty {
    text-align: left;
    margin: 12px 0;
  }
}

/* Calendar selection stays separate from the current date. */
.month-day {
  position: relative;
}
.month-day .day-number {
  font-size: 14px;
  color: inherit;
  margin: 0;
}
.month-day.is-today {
  box-shadow: inset 0 0 0 2px var(--accent);
}
.today-marker {
  display: block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}
.month-day .month-count {
  font-size: 12px;
}
.month-day .month-count.has-tasks {
  font-size: 16px;
  font-weight: 800;
}
.month-day:has(.today-marker) {
  min-height: 76px;
}
.week-col.is-today .week-head {
  box-shadow: inset 0 0 0 1px var(--accent);
  border-radius: 5px;
}
.task-name {
  font-size: 15px;
  font-weight: 650;
}
.customer-id {
  overflow-wrap: anywhere;
}
.customer-picker {
  min-width: 0;
}
.customer-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.customer-search-bar input {
  min-width: 0;
  flex: 1;
}
.customer-search-bar button {
  flex: none;
}
.customer-selection {
  background: var(--tint);
  padding: 10px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}
.customer-selection small {
  display: block;
  color: var(--muted);
  line-height: 1.5;
}
.customer-search-results {
  max-height: 300px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.customer-search-results ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.customer-search-result {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 6px;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}
.customer-search-result small {
  display: block;
  color: var(--muted);
  line-height: 1.5;
}
.customer-search-result:hover,
.customer-search-result:focus-visible {
  background: var(--tint);
  border-color: var(--accent);
}
.picker-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
@media (max-width: 720px) {
  .month-day .month-count.has-tasks {
    font-size: 14px;
  }
  .month-day .day-number {
    font-size: 14px;
  }
  .month-day .today-marker {
    font-size: 10px;
  }
  .month-day {
    min-height: 70px;
  }
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding: 16px 8px;
  color: var(--muted);
  font-size: 12px;
}
.pagination > div {
  display: flex;
  gap: 8px;
}
.pagination button {
  min-height: 40px;
}
.pagination.compact {
  justify-content: center;
  gap: 4px;
  padding: 10px 0;
}
.pagination.compact button {
  min-width: 32px;
  padding: 2px 6px;
  background: var(--tint);
  color: var(--accent);
  border-radius: 5px;
}
.pagination button:disabled {
  opacity: 0.45;
  cursor: default;
}
.analysis-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}
.analysis-tabs button {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  font-size: 14px;
}
.analysis-tabs button.active {
  color: var(--accent);
  background: var(--tint);
  border-color: var(--accent);
  font-weight: 650;
}
.analysis-tabs span {
  margin-left: 6px;
  font-variant-numeric: tabular-nums;
}
.analysis-customer {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.analysis-customer:last-child {
  border-bottom: 0;
}
.analysis-customer h3 {
  font-size: 16px;
}
.analysis-customer p {
  overflow-wrap: anywhere;
}
.paged-list {
  min-width: 0;
  scroll-margin-top: 80px;
}
@media (max-width: 720px) {
  .analysis-customer {
    padding: 18px 16px;
  }
  .pagination {
    padding: 12px 0;
  }
  .analysis-tabs button {
    padding: 9px 10px;
    font-size: 13px;
  }
}
