@charset "UTF-8";
:root {
  color-scheme: light;
  --ink: #2b2229;
  --muted: #665b64;
  --line: #ddd3ce;
  --paper: #fff;
  --canvas: #f7f3ed;
  --accent: #6d365f;
  --accent-light: #f5ebf2;
  --red: #a83232;
  --green: #267044;
  --rail: #f1ece5;
  --accent-deep: #522d4a;
  --display: ui-serif, Georgia, serif;
  --radius: 9px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #98628c;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-family: var(--display);
  font-size: 34px;
  line-height: 1.13;
  letter-spacing: -0.025em;
  font-weight: 600;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 14px;
}
p {
  line-height: 1.55;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -70px;
  left: 20px;
  z-index: 1000;
  padding: 14px;
  background: white;
}
.skip-link:focus {
  top: 12px;
}
.boot {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: center;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--ink);
  font-size: 0;
  background-image: url("./mark.svg");
  background-size: cover;
  flex-shrink: 0;
}
.shell {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  background: var(--rail);
  color: var(--ink);
  border-right: 1px solid var(--line);
  padding: 28px 18px 20px;
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--accent-deep);
  padding: 0 8px 27px;
}
.brand:hover {
  text-decoration: none;
}
.brand strong {
  font-family: var(--display);
  font-size: 23px;
  letter-spacing: -0.035em;
  display: block;
}
.brand small {
  font-size: 9px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
}
.sidebar .brand strong {
  line-height: 1.05;
  text-wrap: balance;
}
.sidebar .brand small {
  display: block;
  margin-top: 5px;
  letter-spacing: 0.65px;
  white-space: nowrap;
}
.brand .brand-mark {
  background-color: var(--accent-deep);
}
.team-picker {
  margin: 0 8px 26px;
}
.team-picker label {
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}
.team-picker select {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  width: 100%;
  margin-top: 7px;
  font-size: 13px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav a {
  color: #51434d;
  padding: 12px 13px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 550;
  line-height: 1.4;
}
.nav a:hover {
  background: #e8dfdd;
  text-decoration: none;
  color: var(--accent-deep);
}
.nav a.active {
  color: #fff;
  background: var(--accent-deep);
}
.icon {
  display: inline-block;
  width: 19px;
  height: 19px;
  vertical-align: -4px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 20px 8px 0;
}
.user-button {
  background: none;
  border: 0;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  width: 100%;
  padding: 0;
}
.avatar {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #e9dae4;
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 650;
}
.sidebar-bottom small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 66px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 38px;
  gap: 16px;
}
.workspace-name {
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.timezone {
  font-size: 11px;
  color: var(--muted);
}
.content {
  max-width: 1480px;
  margin: auto;
  padding: 34px 38px 60px;
}
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 9px;
}
.subtitle {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
  max-width: 640px;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #cec2c9;
  background: #fff;
  color: var(--ink);
  padding: 9px 13px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.3;
  min-height: 35px;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  background: #f4eeeb;
  text-decoration: none;
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn.primary:hover {
  background: #542748;
}
.btn.subtle {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.btn.danger {
  color: var(--red);
  border-color: #e0bcbc;
}
.btn.small {
  min-height: 29px;
  padding: 6px 9px;
  font-size: 11px;
}
.text-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: inherit;
  text-align: left;
}
.text-button:hover {
  text-decoration: underline;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
  margin-bottom: 26px;
}
.stat {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.stat.alert {
  background: #fcf2ef;
}
.stat strong {
  font-size: 27px;
  letter-spacing: -0.8px;
  font-weight: 650;
  display: block;
  line-height: 1.1;
  margin: 9px 0 4px;
}
.stat small {
  font-size: 11px;
}
.stat-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.stat.alert strong {
  color: var(--red);
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.toolbar-group {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.segmented {
  display: flex;
  gap: 2px;
  background: #ece4e6;
  padding: 3px;
  border-radius: 7px;
}
.segmented button {
  border: 0;
  background: transparent;
  padding: 7px 12px;
  border-radius: 5px;
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
}
.segmented button[aria-pressed="true"] {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 3px #2b222918;
}
.search {
  position: relative;
  max-width: 300px;
  min-width: 200px;
}
.search .icon {
  position: absolute;
  left: 10px;
  top: 10px;
  color: var(--muted);
}
.search input {
  padding-left: 36px;
  min-width: 0;
}
.toolbar select {
  font-size: 12px;
  min-height: 36px;
  padding: 7px 28px 7px 10px;
}
.section {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 22px;
}
.section-head {
  padding: 18px 21px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}
.section-head .muted {
  font-size: 12px;
}
.section-body {
  padding: 21px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 9px;
}
.count {
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  background: #efe8e6;
  border-radius: 5px;
  color: #685a64;
  font-weight: 600;
}
.section-head.due .count {
  color: var(--red);
  background: #f9eeee;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 315px;
  gap: 23px;
}
.columns.account-columns {
  grid-template-columns: minmax(0, 1fr) 320px;
}
.rows {
  list-style: none;
  padding: 0;
  margin: 0;
}
.queue-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.35fr) minmax(150px, 1.5fr) 110px 80px;
  gap: 18px;
  padding: 17px 21px;
  align-items: center;
  border-bottom: 1px solid #ece4df;
}
.queue-row:last-child {
  border-bottom: 0;
}
.queue-name {
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
  display: block;
  overflow-wrap: anywhere;
}
.queue-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.queue-action {
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.queue-date {
  font-size: 11px;
  color: var(--muted);
}
.queue-row .btn {
  justify-self: end;
}
.empty {
  padding: 38px 28px;
  text-align: center;
  max-width: 620px;
  margin: auto;
}
.empty > .icon {
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
  color: #85727c;
}
.empty h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 7px;
}
.empty p {
  color: var(--muted);
  font-size: 12px;
  max-width: 360px;
  margin: 0 auto 16px;
}
.empty .btn {
  margin-top: 2px;
}
.quiet-empty {
  padding: 20px;
  font-size: 12px;
  color: var(--muted);
}
.side-row {
  padding: 15px 20px;
  border-bottom: 1px solid #ece4df;
}
.side-row:last-child {
  border-bottom: 0;
}
.side-row p {
  font-size: 12px;
  margin-bottom: 5px;
}
.side-row small {
  font-size: 11px;
}
.side-row .actions {
  margin-top: 9px;
}
.info-note {
  padding: 14px 16px;
  background: var(--accent-light);
  border: 1px solid #e9dbe5;
  border-radius: 7px;
  color: #613d57;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 18px;
}
.warning-note {
  background: #fff7e8;
  color: #886020;
  border: 1px solid #ecdbb8;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
}
th {
  font-weight: 600;
  color: var(--muted);
  background: #fcfaf6;
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 15px 20px;
  border-bottom: 1px solid #ece4df;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
td strong {
  font-weight: 600;
}
td .muted {
  margin-top: 4px;
  font-size: 11px;
}
.nowrap {
  white-space: nowrap;
}
.money {
  font-variant-numeric: tabular-nums;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f0e8ed;
  color: #695362;
  padding: 4px 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.tag.won {
  background: #eaf4ee;
  color: #287448;
}
.tag.lost,
.tag.archived {
  background: #f3eaea;
  color: #934b4b;
}
.tag.high {
  color: #a47727;
  background: #faf1df;
}
.tag.business,
.tag.person {
  border: 1px solid #ddd3ce;
  background: #fff;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 18px;
}
.account-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.account-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  color: var(--muted);
  font-size: 12px;
  margin-top: 13px;
  line-height: 1.5;
}
.next-step {
  background: #f5ebf2;
  border: 1px solid #e9dbe5;
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 23px;
}
.next-step .eyebrow {
  color: #76516e;
  margin-bottom: 7px;
}
.next-step p {
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.next-step small {
  display: block;
  margin-top: 5px;
  color: #725968;
}
.opportunity {
  padding: 20px 21px;
  border-bottom: 1px solid var(--line);
}
.opportunity:last-child {
  border-bottom: 0;
}
.opportunity-top {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: flex-start;
}
.opportunity h3 {
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.opportunity .money {
  font-size: 16px;
  font-weight: 650;
  white-space: nowrap;
}
.opportunity-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
}
.opportunity p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 11px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.opportunity .actions {
  margin-top: 13px;
}
.timeline {
  padding: 20px 23px;
}
.activity {
  position: relative;
  padding-left: 24px;
  padding-bottom: 23px;
  border-left: 1px solid var(--line);
}
.activity:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}
.activity:before {
  content: "";
  position: absolute;
  left: -4px;
  top: 4px;
  border-radius: 50%;
  width: 7px;
  height: 7px;
  background: #ac96a5;
  box-shadow: 0 0 0 4px white;
}
.activity-head {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}
.activity p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  color: #5f4c58;
  line-height: 1.65;
}
.note-composer {
  padding: 16px 21px;
  border-bottom: 1px solid var(--line);
}
.note-composer textarea {
  min-height: 76px;
  resize: vertical;
}
.note-composer .actions {
  justify-content: flex-end;
  margin-top: 9px;
}
.details {
  margin: 0;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  font-size: 12px;
  gap: 14px 10px;
}
.details dt {
  color: var(--muted);
}
.details dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.contact {
  padding: 16px 20px;
  border-bottom: 1px solid #ece4df;
}
.contact:last-child {
  border-bottom: 0;
}
.contact strong {
  font-size: 12px;
}
.contact p {
  font-size: 11px;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.contact .contact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.link-row {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  border-bottom: 1px solid #ece4df;
}
.link-row:last-child {
  border-bottom: 0;
}
.link-row a {
  overflow-wrap: anywhere;
}
.error {
  padding: 12px 14px;
  color: #9a2929;
  background: #fff0f0;
  border: 1px solid #edcccc;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.loading {
  padding: 60px 20px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.spin {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: -3px;
  margin-right: 8px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
input,
select,
textarea {
  border: 1px solid #cec2c9;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 9px 11px;
  line-height: 1.4;
  min-height: 38px;
  width: 100%;
}
textarea {
  min-height: 95px;
  resize: vertical;
}
input[type="checkbox"] {
  width: 16px;
  min-height: 16px;
  accent-color: var(--accent);
}
input[type="color"] {
  padding: 2px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 550;
  margin-bottom: 6px;
}
label small {
  font-weight: 400;
}
.field {
  margin-bottom: 17px;
  min-width: 0;
}
.field-help {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.field-grid .full {
  grid-column: 1/-1;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 400;
}
.check-list {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 6px;
}
.form-actions .danger {
  margin-right: auto;
}
dialog {
  border: 0;
  border-radius: 13px;
  padding: 0;
  width: min(600px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  color: var(--ink);
  box-shadow: 0 24px 90px #37203255;
  overflow: auto;
}
dialog.wide {
  width: min(800px, calc(100% - 32px));
}
dialog::backdrop {
  background: #2b1d2775;
  backdrop-filter: blur(2px);
}
.dialog-header {
  padding: 24px 26px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
.dialog-header h2 {
  font-size: 20px;
  letter-spacing: -0.5px;
}
.dialog-close {
  background: none;
  border: 0;
  font-size: 24px;
  line-height: 1;
  color: var(--muted);
  padding: 4px 7px;
}
.dialog-body {
  padding: 23px 26px 26px;
}
.dialog-description {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.65;
}
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 20px;
}
.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: calc(50% + 109px);
  transform: translateX(-50%);
  padding: 12px 20px;
  background: #2b2229;
  color: white;
  border: 1px solid #6b4a61;
  border-radius: 8px;
  box-shadow: 0 5px 25px #38233422;
  z-index: 100;
  font-size: 12px;
  max-width: calc(100% - 36px);
  line-height: 1.5;
}
.auth-page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(260px, 43%) 1fr;
  background: #fff;
}
.auth-intro {
  background: var(--accent-deep);
  color: #fff;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-intro:after {
  content: "";
  width: 340px;
  height: 340px;
  border: 1px solid #805a74;
  border-radius: 50%;
  position: absolute;
  bottom: -180px;
  left: -110px;
  box-shadow:
    0 0 0 60px #ffffff04,
    0 0 0 120px #ffffff03;
}
.auth-intro .brand {
  color: #fff;
  padding: 0;
}
.auth-intro .brand small {
  color: #f2e1ec;
}
.auth-intro h1 {
  font-size: 44px;
  max-width: 350px;
  letter-spacing: -1.6px;
  line-height: 1.1;
  margin: 70px 0 20px;
}
.auth-intro p {
  font-size: 14px;
  max-width: 330px;
  color: #f2e1ec;
  line-height: 1.7;
}
.auth-intro .auth-foot {
  font-size: 10px;
  letter-spacing: 1px;
  margin-top: 80px;
  text-transform: uppercase;
  color: #dfc6d7;
}
.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 36px;
}
.auth-card {
  width: 100%;
  max-width: 405px;
}
.auth-card h2 {
  font-size: 25px;
  margin-bottom: 9px;
}
.auth-card > p {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 27px;
}
.auth-card .btn.primary {
  width: 100%;
  margin-top: 5px;
  min-height: 42px;
}
.calendar-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.calendar-nav strong {
  font-size: 15px;
  min-width: 150px;
  text-align: center;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: var(--line);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  margin-bottom: 22px;
}
.calendar-weekday {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--muted);
  padding: 12px;
  background: #fcfaf6;
  text-align: center;
}
.calendar-day {
  background: #fff;
  min-height: 117px;
  padding: 9px;
  min-width: 0;
}
.calendar-day.outside {
  background: #f3ede7;
  color: #776b71;
}
.day-num {
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.day-num button {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 15px;
  width: 23px;
  height: 23px;
  border-radius: 5px;
}
.day-num button:hover {
  background: var(--accent-light);
}
.day-num .current {
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  padding: 4px 6px;
  margin: -3px;
}
.calendar-event {
  display: block;
  background: #f5ebf2;
  color: #6a3e5d;
  border: 0;
  border-left: 2px solid #96748e;
  border-radius: 4px;
  padding: 5px 6px;
  text-align: left;
  width: 100%;
  font-size: 10px;
  line-height: 1.5;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calendar-event.away {
  background: #f3edf8;
  color: #775793;
  border-left-color: #aa8abc;
}
.calendar-event.focus {
  background: #eef3f0;
  color: #557661;
  border-left-color: #83a58e;
}
.travel {
  font-size: 9px;
  color: var(--muted);
  padding: 2px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}
.settings-grid .section {
  margin: 0 0 22px;
}
.settings-grid p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 15px;
}
.settings-form .btn {
  margin-top: 2px;
}
.preview {
  max-height: 300px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  margin: 16px 0;
}
.preview th,
.preview td {
  padding: 10px 12px;
  font-size: 11px;
}
.preview-errors {
  font-size: 11px;
  color: var(--red);
  line-height: 1.7;
  padding-left: 19px;
  max-height: 150px;
  overflow: auto;
}
.result-note {
  font-size: 12px;
  color: var(--green);
  background: #edf6f0;
  padding: 14px;
  border-radius: 7px;
  line-height: 1.7;
}
.forecast-summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 23px;
}
.forecast-summary strong {
  font-size: 30px;
  letter-spacing: -1px;
}
.forecast-summary span {
  font-size: 12px;
  color: var(--muted);
}
.mobile-brand {
  display: none;
}
.mobile-event-list {
  display: none;
}
.kbd {
  border: 1px solid var(--line);
  padding: 2px 5px;
  border-radius: 4px;
  background: #fcfaf6;
  font: 10px monospace;
  color: var(--muted);
}
@media (min-width: 1450px) {
  .content {
    padding-top: 42px;
  }
  .queue-row {
    padding-top: 19px;
    padding-bottom: 19px;
  }
  .columns {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}
@media (max-width: 1200px) {
  .shell {
    grid-template-columns: 188px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .content {
    padding: 29px 26px 50px;
  }
  .topbar {
    padding: 0 26px;
  }
  .columns,
  .columns.account-columns {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 18px;
  }
  .queue-row {
    grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) 70px;
    gap: 12px;
    padding: 16px;
  }
  .queue-row .queue-date {
    grid-column: 2;
    grid-row: 2;
    margin-top: -8px;
  }
  .queue-row .btn {
    grid-column: 3;
    grid-row: 1/3;
  }
  .section-head {
    padding: 17px;
  }
  #toast {
    left: calc(50% + 94px);
  }
}
@media (max-width: 980px) {
  .columns,
  .columns.account-columns {
    grid-template-columns: 1fr;
  }
  .aside-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .aside-grid .section {
    margin-bottom: 0;
  }
  .account-columns aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-content: start;
  }
  .account-columns aside .section {
    margin-bottom: 0;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .auth-intro {
    padding: 36px;
  }
  .auth-intro h1 {
    font-size: 37px;
  }
  .calendar-day {
    min-height: 100px;
    padding: 6px;
  }
  .calendar-event {
    padding: 4px;
    font-size: 9px;
  }
  .travel {
    display: none;
  }
  th,
  td {
    padding-left: 14px;
    padding-right: 14px;
  }
}
@media (max-width: 700px) {
  h1 {
    font-size: 26px;
  }
  .shell {
    display: block;
  }
  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    padding: 0;
    background: var(--rail);
    display: block;
  }
  .sidebar > .brand,
  .team-picker,
  .sidebar-bottom {
    display: none;
  }
  .nav {
    flex-direction: row;
    justify-content: space-around;
    gap: 0;
    padding: 4px 7px;
  }
  .nav a {
    font-size: 10px;
    flex-direction: column;
    padding: 9px 12px;
    gap: 5px;
    border-radius: 5px;
  }
  .nav a .icon {
    width: 18px;
    height: 18px;
  }
  .topbar {
    height: 53px;
    padding: 0 18px;
  }
  .mobile-brand {
    font-family: var(--display);
    color: var(--accent-deep);
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.5px;
  }
  .mobile-brand .brand-mark {
    height: 25px;
    width: 25px;
    border-radius: 6px;
  }
  .workspace-name,
  .timezone {
    display: none;
  }
  .topbar-right {
    gap: 8px;
  }
  .topbar .btn {
    font-size: 10px;
    padding: 8px 10px;
    min-height: 31px;
  }
  .content {
    padding: 25px 17px 45px;
  }
  .page-header {
    margin-bottom: 22px;
    gap: 13px;
  }
  .page-header > .actions {
    justify-content: flex-end;
  }
  .eyebrow {
    font-size: 9px;
  }
  .subtitle {
    font-size: 12px;
    line-height: 1.55;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 21px;
  }
  .stat {
    padding: 16px 19px;
  }
  .stat strong {
    font-size: 24px;
  }
  .toolbar {
    gap: 13px;
    margin-bottom: 17px;
  }
  .toolbar .search {
    width: 100%;
    max-width: none;
  }
  .toolbar-group {
    width: auto;
  }
  .toolbar select {
    max-width: 135px;
  }
  .segmented button {
    padding: 7px 10px;
  }
  .section {
    margin-bottom: 18px;
  }
  .section-head {
    padding: 16px;
  }
  .section-head h2 {
    font-size: 15px;
  }
  .queue-row {
    grid-template-columns: minmax(0, 1fr) 70px;
    gap: 5px 12px;
    padding: 17px;
  }
  .queue-row .queue-action {
    grid-column: 1;
    grid-row: 2;
    font-size: 11px;
    margin-top: 5px;
  }
  .queue-row .queue-date {
    grid-column: 1;
    grid-row: 3;
    margin-top: 0;
    font-size: 10px;
  }
  .queue-row .btn {
    grid-column: 2;
    grid-row: 1/4;
  }
  .queue-name {
    font-size: 13px;
  }
  .queue-sub {
    font-size: 10px;
  }
  .aside-grid,
  .account-columns aside {
    grid-template-columns: 1fr;
  }
  .next-step {
    padding: 17px;
    align-items: flex-start;
    gap: 13px;
  }
  .next-step p {
    font-size: 13px;
  }
  .next-step .btn {
    font-size: 10px;
    padding: 8px;
  }
  .account-meta {
    font-size: 11px;
    gap: 6px 12px;
  }
  .account-title {
    gap: 8px;
  }
  .account-title h1 {
    font-size: 25px;
    overflow-wrap: anywhere;
  }
  .account-head {
    flex-direction: column;
  }
  .account-head > .actions {
    justify-content: flex-start;
  }
  .opportunity {
    padding: 17px;
  }
  .opportunity .money {
    font-size: 14px;
  }
  .opportunity .actions {
    gap: 5px;
  }
  .opportunity .btn {
    font-size: 10px;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .field-grid .full {
    grid-column: auto;
  }
  dialog,
  dialog.wide {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 24px);
    border-radius: 10px;
  }
  .dialog-header {
    padding: 20px 20px 15px;
  }
  .dialog-header h2 {
    font-size: 18px;
  }
  .dialog-body {
    padding: 20px;
  }
  .dialog-description {
    font-size: 11px;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  .auth-page {
    display: block;
  }
  .auth-intro {
    padding: 25px 25px 28px;
  }
  .auth-intro h1 {
    font-size: 29px;
    margin: 30px 0 12px;
    max-width: none;
  }
  .auth-intro p {
    font-size: 12px;
    max-width: 340px;
  }
  .auth-intro .auth-foot {
    display: none;
  }
  .auth-main {
    padding: 30px 24px 50px;
  }
  .auth-card {
    max-width: 440px;
  }
  .auth-card h2 {
    font-size: 22px;
  }
  #toast {
    left: 50%;
    bottom: 16px;
  }
  .calendar-grid {
    display: none;
  }
  .mobile-event-list {
    display: block;
  }
  .calendar-nav {
    gap: 8px;
  }
  .calendar-nav strong {
    font-size: 13px;
    min-width: 120px;
  }
  .forecast-summary strong {
    font-size: 27px;
  }
  .hide-mobile {
    display: none;
  }
  .directory-table th:nth-child(3),
  .directory-table td:nth-child(3),
  .directory-table th:nth-child(5),
  .directory-table td:nth-child(5) {
    display: none;
  }
  .directory-table th,
  .directory-table td {
    padding: 14px 12px;
  }
  .directory-table td:nth-child(2) {
    font-size: 10px;
  }
  .directory-table td:nth-child(4) {
    max-width: 120px;
    font-size: 10px;
  }
  .directory-table .queue-sub {
    font-size: 9px;
  }
  .table-wrap {
    max-width: 100%;
  }
  .outlook-table {
    min-width: 680px;
  }
  .empty {
    padding: 30px 22px;
  }
  .settings-grid {
    gap: 0;
  }
  .section-body {
    padding: 18px;
  }
  .preview {
    max-height: 250px;
  }
  .details {
    grid-template-columns: 80px 1fr;
  }
  .auth-intro:after {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* Functional text remains readable at compact working densities. */
:root {
  font-size: 16px;
}
.subtitle,
.queue-name,
.queue-action,
.side-row p,
.opportunity p,
.activity p,
.contact strong,
.details,
table,
.settings-grid p {
  font-size: 0.875rem;
}
.btn,
.btn.small,
.text-button,
.nav a,
label,
input,
select,
textarea,
.toolbar select,
.segmented button {
  font-size: 0.875rem;
}
.btn.small {
  min-height: 33px;
}
.queue-sub,
.queue-date,
.side-row small,
.muted,
small,
.field-help,
.tag,
.count,
.timezone,
.workspace-name,
.stat-label,
.stat small,
.contact p,
.link-row,
.activity-head,
.section-head .muted,
.back-link,
.dialog-description,
.info-note,
.error,
.quiet-empty,
.preview-errors,
.result-note,
td .muted,
th,
.preview th,
.preview td {
  font-size: 0.75rem;
}
.section-head h2 {
  font-size: 1.0625rem;
}
.eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 1.3px;
}
.calendar-weekday,
.day-num,
.calendar-event,
.travel {
  font-size: 0.75rem;
}
.calendar-event {
  line-height: 1.45;
  padding: 6px;
}
.calendar-day {
  min-height: 132px;
}
.auth-card > p,
.auth-intro p,
.auth-card .field-help {
  font-size: 0.875rem;
}
.auth-intro .auth-foot {
  font-size: 0.6875rem;
}
.auth-card .btn.primary {
  font-size: 0.9375rem;
}
.sidebar-bottom small {
  font-size: 0.75rem;
}
.team-picker label {
  font-size: 0.6875rem;
}
.team-picker select {
  font-size: 0.875rem;
}
.queue-row {
  grid-template-columns: minmax(140px, 1.2fr) minmax(150px, 1.5fr) 92px 78px;
  gap: 14px;
}
.only-mobile,
.mobile-account-tools {
  display: none;
}
.activity-changes {
  margin: 10px 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  display: grid;
  gap: 6px;
}
.activity-changes > div {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.activity-changes dt {
  min-width: 84px;
  font-weight: 600;
}
.activity-changes dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.activity-changes dd span:last-child {
  color: var(--ink);
}
@media (max-width: 1200px) {
  .queue-row {
    grid-template-columns: minmax(130px, 1fr) minmax(130px, 1fr) 75px;
  }
  .queue-row .queue-date {
    grid-column: 2;
    grid-row: 2;
  }
  .queue-row .btn {
    grid-column: 3;
    grid-row: 1/3;
  }
}
@media (max-width: 980px) {
  .calendar-event,
  .calendar-weekday,
  .day-num,
  .travel {
    font-size: 0.75rem;
  }
  .calendar-day {
    min-height: 120px;
  }
}
@media (max-width: 700px) {
  .content {
    padding-left: 16px;
    padding-right: 16px;
  }
  .nav a {
    font-size: 0.75rem;
    padding: 9px 8px;
    gap: 5px;
  }
  .nav a .icon {
    width: 19px;
    height: 19px;
  }
  .topbar {
    height: 59px;
    padding: 0 16px;
    gap: 8px;
  }
  .mobile-brand {
    font-size: 0;
    gap: 0;
  }
  .mobile-brand .brand-mark {
    height: 29px;
    width: 29px;
  }
  .mobile-account-tools {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-right: auto;
  }
  .mobile-account-tools select {
    font-size: 0.8125rem;
    max-width: 130px;
    width: 32vw;
    min-height: 34px;
    padding: 6px 8px;
    background: #fff;
  }
  .mobile-account-tools .avatar {
    border: 0;
    width: 31px;
    height: 31px;
    font-size: 0.75rem;
  }
  .only-mobile {
    display: inline;
  }
  .topbar .btn {
    font-size: 0.8125rem;
    padding: 8px 10px;
    min-height: 34px;
  }
  .topbar-right {
    gap: 0;
  }
  .page-header {
    flex-wrap: wrap;
  }
  .page-header > .actions {
    justify-content: flex-start;
  }
  .btn,
  .btn.small,
  .next-step .btn,
  .opportunity .btn {
    font-size: 0.8125rem;
    min-height: 34px;
  }
  .subtitle,
  .queue-name,
  .queue-action,
  .account-meta,
  .opportunity p,
  .activity p,
  .side-row p,
  .section-body p,
  .dialog-description {
    font-size: 0.875rem;
  }
  .queue-sub,
  .queue-date,
  .directory-table .queue-sub,
  .directory-table td:nth-child(2),
  .directory-table td:nth-child(4),
  .contact p,
  .calendar-event,
  .preview th,
  .preview td,
  .eyebrow {
    font-size: 0.75rem;
  }
  .queue-row {
    grid-template-columns: minmax(0, 1fr) 75px;
    padding: 17px;
    gap: 5px 12px;
  }
  .queue-row .queue-action {
    grid-column: 1;
    grid-row: 2;
  }
  .queue-row .queue-date {
    grid-column: 1;
    grid-row: 3;
  }
  .queue-row .btn {
    grid-column: 2;
    grid-row: 1/4;
  }
  .calendar-nav {
    flex-wrap: wrap;
  }
  .calendar-nav strong {
    font-size: 0.9375rem;
  }
  .toolbar .search {
    min-width: 100%;
  }
  .segmented button {
    font-size: 0.8125rem;
    padding: 7px 9px;
  }
  .toolbar select {
    font-size: 0.8125rem;
    max-width: 125px;
  }
  .tag {
    font-size: 0.75rem;
  }
  .next-step {
    flex-wrap: wrap;
  }
  .next-step p {
    font-size: 0.9375rem;
  }
  .auth-intro h1 {
    font-size: 30px;
  }
  .auth-intro p {
    font-size: 0.875rem;
  }
  .form-actions .btn {
    min-height: 38px;
  }
  .activity-changes > div {
    display: block;
  }
  .activity-changes dt {
    margin-bottom: 3px;
  }
}

/* Working views keep the same visual language as the relationship book. */
a.stat { color: var(--ink); text-decoration: none; transition: border-color .15s, background .15s; }
a.stat:hover { background: var(--accent-light); border-color: #b88aa9; }
.scope-tools { display: flex; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.scope-person select { max-width: 190px; min-height: 35px; }
.block { display: block; }
.text-alert { color: var(--red); }
.revenue-module { margin-bottom: 26px; }
.revenue-heading { background: var(--accent-light); display: flex; justify-content: space-between; align-items: center; gap: 22px; padding: 23px 25px; }
.revenue-heading h2 { font-family: var(--display); font-size: 24px; font-weight: 600; margin-bottom: 5px; }
.revenue-heading p, .revenue-context { color: var(--muted); font-size: 12px; }
.revenue-total { display: grid; gap: 5px; text-align: right; flex-shrink: 0; }
.revenue-total strong { font-size: 27px; color: var(--ink); }
.revenue-total span { font-size: 11px; color: var(--muted); }
.revenue-doors, .revenue-indicators { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.revenue-indicators { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.revenue-door { display: grid; gap: 8px; color: var(--ink); padding: 18px 22px; border-right: 1px solid var(--line); min-width: 0; }
.revenue-door:last-child { border-right: 0; }
.revenue-door:hover, .revenue-door.selected { background: var(--accent-light); text-decoration: none; }
.revenue-door>span { font-size: 12px; color: var(--muted); }
.revenue-door strong { font-size: 22px; overflow-wrap: anywhere; }
.revenue-door.compact strong { font-size: 17px; }
.revenue-door.compact { padding: 15px 18px; }
.revenue-door.attention>span { color: var(--red); }
.revenue-context { padding: 13px 22px; border-top: 1px solid var(--line); }
.revenue-drill { border-top: 1px solid var(--line); }
.priority-split { display: grid; grid-template-columns: repeat(3, 1fr); padding: 16px 22px; gap: 20px; background: var(--canvas); }
.priority-split>div { display: grid; gap: 5px; font-size: 12px; }
.priority-split strong { font-size: 17px; }
.revenue-account { margin: 20px; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.revenue-account>header { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; background: var(--canvas); padding: 14px 17px; }
.revenue-opportunity { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 17px; border-top: 1px solid var(--line); color: var(--ink); }
.revenue-opportunity:hover { background: var(--accent-light); text-decoration: none; }
.revenue-opportunity p { font-size: 12px; color: var(--muted); margin: 5px 0; }
.revenue-opportunity>strong { flex-shrink: 0; }
.queue-workspace-toolbar { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; margin-bottom: 18px; }
.queue-position { display: grid; grid-template-columns: auto minmax(160px, 1fr) auto; align-items: center; gap: 18px; background: var(--paper); border: 1px solid var(--line); padding: 15px 18px; border-radius: 9px; margin-bottom: 23px; }
.queue-position label { display: flex; align-items: center; justify-content: center; gap: 14px; }
.queue-position select { max-width: 380px; width: 100%; }
.queue-position small { white-space: nowrap; }
.btn.disabled { opacity: .45; cursor: default; }
.queue-account-workspace { border-top: 1px solid var(--line); padding-top: 25px; }
.queue-account-workspace .account-head h1 { font-size: 25px; }
.opportunity { scroll-margin-top: 25px; }
.opportunity-focused { background: var(--accent-light); box-shadow: inset 3px 0 var(--accent); }
.waiting-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.waiting-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 19px; border-bottom: 1px solid var(--line); }
.waiting-row p { font-size: 12px; margin: 5px 0; }
.waiting-row .actions { flex-shrink: 0; }
.account-columns .waiting-row { align-items: flex-start; flex-direction: column; }
.waiting-edit { padding: 0 15px 12px; }
.completed-waiting summary { cursor: pointer; padding: 16px 19px; color: var(--muted); font-size: 12px; }
.follow-up-tools { display: grid; gap: 12px; margin: -5px 0 22px; }
.date-entry { display: flex; gap: 8px; }
.date-entry input { min-width: 0; flex: 1; }
.move-preview { max-height: 240px; overflow: auto; padding-left: 22px; line-height: 1.8; }
.outlook-history { border: 1px solid var(--line); padding: 13px; border-radius: 7px; margin-top: 13px; background: var(--canvas); }
.outlook-history>div { display: grid; grid-template-columns: 1fr auto 1fr; gap: 15px; margin-top: 12px; align-items: center; }
.outlook-history section { display: grid; gap: 5px; }
.calendar-view-controls { margin-bottom: 17px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.calendar-followup { display: block; padding: 6px 7px; margin-top: 4px; background: #eef5f0; border-left: 2px solid var(--green); font-size: 11px; border-radius: 3px; color: var(--ink); }
.calendar-followup.deadline { border-left-color: var(--red); background: #fff0ef; }
.calendar-agenda { display: grid; gap: 17px; }
.calendar-agenda-day { border: 1px solid var(--line); background: var(--paper); border-radius: 9px; overflow: hidden; }
.calendar-agenda-day>header { padding: 15px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.calendar-lanes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.calendar-lane { padding: 16px 20px; border-right: 1px solid var(--line); }
.calendar-lane>h3 { margin-bottom: 13px; }
.calendar-lane .calendar-event { width: 100%; text-align: left; white-space: normal; padding: 9px; }
@media (max-width: 850px) {
  .revenue-indicators { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .revenue-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .revenue-door { border-bottom: 1px solid var(--line); }
  .scope-tools { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .revenue-heading { flex-direction: column; align-items: stretch; padding: 20px; }
  .revenue-total { text-align: left; }
  .revenue-indicators { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .revenue-door, .revenue-door.compact { padding: 15px; }
  .revenue-door strong { font-size: 19px; }
  .priority-split { padding: 15px; gap: 10px; }
  .revenue-account { margin: 13px; }
  .revenue-opportunity { align-items: flex-start; flex-direction: column; }
  .queue-position { grid-template-columns: 1fr 1fr; gap: 10px; padding: 13px; }
  .queue-position label { grid-column: 1 / -1; grid-row: 1; }
  .queue-position .btn { width: 100%; }
  .waiting-row { align-items: flex-start; flex-direction: column; }
  .scope-person select { max-width: 100%; }
  .calendar-lanes { grid-template-columns: 1fr; }
  .outlook-history>div { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .nav { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 4px; }
  .nav a { min-width: 0; padding: 9px 2px; font-size: 10px; text-align: center; }
}
