:root {
  --bg: #f6f7f3;
  --paper: #fff;
  --ink: #25362e;
  --muted: #788079;
  --line: #e5e8df;
  --green: #346f55;
  --soft: #eaf1e9;
  --amber: #aa702a;
  --rose: #a34a49;
  --shadow: 0 12px 55px #172b2420;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.skip {
  position: fixed;
  top: -50px;
  background: white;
  padding: 10px;
  z-index: 10;
}
.skip:focus {
  top: 10px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 244px;
  background: #fcfcf9;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 32px 19px 24px;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 0 8px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.5px;
}
.brand small {
  display: block;
  font-size: 7.6px;
  letter-spacing: 1.2px;
  font-weight: 600;
  color: #788477;
  margin-top: 3px;
}
.brand-mark {
  font-family: Georgia, serif;
  font-size: 39px;
  line-height: 41px;
  background: var(--ink);
  color: #fff;
  display: block;
  width: 42px;
  height: 44px;
  text-align: center;
  border-radius: 13px;
}
.brand-mark span {
  color: #c4d4a6;
  font-size: 35px;
}
.workspace {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 35px 0 25px;
  padding: 14px 7px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
}
.workspace small {
  display: block;
  font-weight: 400;
  font-size: 10px;
  color: var(--muted);
}
.avatar {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #efe7dd;
  display: grid;
  place-items: center;
  color: #806c54;
  font-size: 10px;
}
.private-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  margin-left: auto;
}
nav {
  display: grid;
  gap: 5px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 7px;
  font-size: 12px;
  color: #70796f;
}
nav a:hover {
  background: #f0f2ea;
}
nav a.active {
  background: #e9eee4;
  color: #264b38;
  font-weight: 650;
}
.nav-icon {
  font-size: 19px;
  line-height: 16px;
  width: 20px;
  text-align: center;
  font-weight: 400;
}
.count {
  margin-left: auto;
  background: white;
  border: 1px solid #dae2d2;
  min-width: 20px;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 10px;
  text-align: center;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #939b91;
  padding: 28px 13px 8px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 20px 10px 0;
}
.sidebar-bottom p {
  font-size: 11px;
  line-height: 1.7;
  color: #959b90;
}
.mode-pill {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 10px;
  font-weight: 550;
}
.dot {
  width: 6px;
  height: 6px;
  background: #d6a55d;
  border-radius: 50%;
  display: inline-block;
}
.dot.live {
  background: #4b956e;
}
.text-button {
  background: none;
  border: 0;
  color: var(--green);
  padding: 0;
  font-size: 11px;
  text-align: left;
}
.text-button span {
  margin-left: 24px;
}
main {
  margin-left: 244px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 77px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.topbar > span {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #92998d;
  font-weight: 650;
}
.topbar > div {
  display: flex;
  align-items: center;
  gap: 17px;
}
.subtle {
  color: var(--muted);
  font-size: 11px;
}
.button {
  border: 1px solid var(--green);
  background: var(--green);
  color: white;
  border-radius: 6px;
  padding: 10px 17px;
  font-weight: 550;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  transition: background 0.12s;
}
.button:hover {
  background: #285940;
}
.button.secondary {
  background: var(--paper);
  border-color: #dce1d6;
  color: #5b665a;
}
.button.secondary:hover {
  background: #f0f3eb;
}
.button.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.button.danger {
  color: var(--rose);
  border-color: #ecd8d4;
  background: #fff;
}
.button.small {
  padding: 7px 11px;
  font-size: 10px;
}
.view {
  padding: 36px 40px 45px;
  flex: 1;
  max-width: 1500px;
  width: 100%;
  margin: auto;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.9px;
  color: #8b9585;
  font-weight: 600;
  margin: 0 0 9px;
}
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 35px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -1.25px;
  margin: 0 0 12px;
}
h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}
h3 {
  font-size: 13px;
  margin: 0;
}
p {
  margin-top: 0;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 27px;
  gap: 20px;
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.page-heading .step {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid #d9e0d0;
  border-radius: 5px;
  padding: 8px 10px;
  white-space: nowrap;
  color: #7c8c70;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 0 0 27px;
  overflow: hidden;
}
.stat {
  padding: 20px 24px;
  border-right: 1px solid var(--line);
  text-align: left;
  background: none;
  border-left: 0;
  border-top: 0;
  border-bottom: 0;
  color: inherit;
}
.stat:last-child {
  border: 0;
}
.stat-label {
  color: #808879;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.stat strong {
  display: block;
  font-size: 29px;
  font-weight: 450;
  letter-spacing: -1px;
  margin: 6px 0 2px;
  font-variant-numeric: tabular-nums;
}
.stat small {
  font-size: 10px;
  color: #92998d;
}
.stat.warn strong {
  color: #a46d32;
}
.notice {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 17px;
  background: #eeefe6;
  border: 1px solid #e1e5d4;
  border-radius: 7px;
  margin-bottom: 25px;
  font-size: 11px;
  color: #6b755c;
}
.notice .notice-icon {
  border: 1px solid #a1ae90;
  border-radius: 50%;
  font-size: 11px;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.notice a {
  margin-left: auto;
  color: #416345;
  white-space: nowrap;
  font-weight: 550;
}
.notice.warn {
  background: #f8f0e6;
  border-color: #eedec8;
  color: #997340;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  gap: 15px;
}
.tabs {
  display: flex;
  gap: 5px;
}
.tab {
  background: none;
  border: 0;
  border-radius: 5px;
  padding: 8px 11px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.tab.active {
  background: #e6eadd;
  color: #3e5840;
  font-weight: 600;
}
.tab span {
  font-size: 9px;
  margin-left: 7px;
  color: #98a090;
}
.filters {
  display: flex;
  gap: 8px;
}
.filters input,
.filters select {
  background: #fff;
  font-size: 10px;
  border: 1px solid var(--line);
  padding: 8px 10px;
  border-radius: 5px;
  max-width: 175px;
  color: #717b6a;
}
.table-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.list-header {
  display: grid;
  grid-template-columns: 1fr 135px 112px 104px;
  gap: 20px;
  padding: 13px 23px;
  background: #fafbf7;
  border-bottom: 1px solid var(--line);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 1.25px;
  color: #98a08e;
}
.commitment-row {
  display: grid;
  grid-template-columns: 1fr 135px 112px 104px;
  gap: 20px;
  padding: 20px 23px;
  border-bottom: 1px solid #edf0e7;
  cursor: pointer;
  align-items: center;
  transition: background 0.12s;
}
.commitment-row:last-child {
  border: 0;
}
.commitment-row:hover,
.commitment-row:focus {
  background: #f7f9f3;
}
.row-main {
  display: flex;
  gap: 13px;
  min-width: 0;
  align-items: flex-start;
}
.row-check {
  border: 1px solid #d8ddcf;
  width: 17px;
  height: 17px;
  border-radius: 5px;
  margin-top: 2px;
  flex-shrink: 0;
}
.row-check.done {
  background: #dfecd9;
  color: #5e7c4c;
  text-align: center;
  font-size: 11px;
}
.row-title {
  font-weight: 550;
  font-size: 12px;
  line-height: 1.55;
  margin-bottom: 6px;
}
.row-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 9px;
  color: #99a08f;
  flex-wrap: wrap;
}
.source-badge {
  font-size: 9px;
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.source-badge i {
  font-style: normal;
  font-weight: 700;
  color: #797d72;
}
.client-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #727d69;
}
.client-color {
  width: 19px;
  height: 19px;
  border-radius: 5px;
  background: #ecebe2;
  font-size: 8px;
  display: grid;
  place-items: center;
  color: #817d66;
}
.due {
  font-size: 10px;
  color: #6e7c60;
}
.due small {
  display: block;
  font-size: 8px;
  color: #a3a995;
  margin-top: 4px;
}
.due.overdue {
  color: #ab634e;
}
.badge {
  font-size: 9px;
  border: 1px solid #e5e7dd;
  padding: 4px 7px;
  border-radius: 4px;
  color: #8b917d;
  background: #f7f8f2;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.badge.review {
  color: #9b772f;
  background: #faf5e8;
  border-color: #ede3c8;
}
.badge.scheduled {
  color: #50816a;
  background: #edf6ed;
  border-color: #d7e9d9;
}
.badge.error {
  color: #a66354;
  background: #fcf1eb;
  border-color: #efdbd2;
}
.badge.done {
  color: #868d7c;
}
.list-footer {
  font-size: 9px;
  color: #929b86;
  display: flex;
  justify-content: space-between;
  margin-top: 13px;
}
.empty {
  text-align: center;
  padding: 56px 25px;
  color: var(--muted);
}
.empty .empty-symbol {
  font-family: Georgia, serif;
  font-size: 42px;
  color: #b6c3a8;
  display: block;
  margin-bottom: 10px;
}
.empty h2 {
  color: #52614b;
  font-size: 17px;
  font-weight: 450;
  margin-bottom: 8px;
}
.empty p {
  font-size: 12px;
  max-width: 410px;
  margin: 0 auto 20px;
}
.section-label {
  font-size: 9px;
  color: #8b967f;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin: 28px 0 13px;
}
.client-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.client-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 23px;
  border-radius: 8px;
}
.client-card h2 {
  font-size: 16px;
  margin: 14px 0 6px;
}
.client-card p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 18px;
}
.client-card .client-color {
  width: 34px;
  height: 34px;
  font-size: 12px;
}
.client-card .counts {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
}
.cards-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.panel {
  padding: 24px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
}
.panel p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.panel-head h2 {
  font-size: 14px;
}
.connection-symbol {
  height: 32px;
  width: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--soft);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 16px;
}
.connection-symbol.gmail {
  color: #b06554;
  background: #faefeb;
}
.connection-symbol.linear {
  color: #646daf;
  background: #f0f0fa;
}
.connection-symbol.eagr {
  color: #b36f92;
  background: #f9eef4;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
label {
  display: block;
  font-size: 10px;
  font-weight: 550;
  color: #798370;
  margin-bottom: 14px;
}
label input,
label select,
label textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 11px;
  border: 1px solid #dfe4d7;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
}
label textarea {
  resize: vertical;
  min-height: 82px;
  line-height: 1.6;
}
label small {
  display: block;
  margin-top: 6px;
  font-weight: 400;
  font-size: 9px;
  color: #99a28d;
}
label.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
label.check-label input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--green);
}
.help {
  font-size: 10px !important;
  line-height: 1.65;
  color: #8b957e !important;
}
.help a {
  text-decoration: underline;
}
.wide {
  grid-column: 1 / -1;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.error-message {
  font-size: 11px;
  color: #a55848;
  background: #fff1e9;
  border-radius: 5px;
  padding: 10px 12px;
  margin: 10px 0;
}
.success-message {
  font-size: 11px;
  color: var(--green);
}
footer {
  padding: 15px 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #a5ac9c;
  letter-spacing: 0.2px;
}
.footer-dot {
  margin: 0 8px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 0;
  color: var(--ink);
  width: 520px;
  max-width: calc(100vw - 28px);
  max-height: 90vh;
}
dialog::backdrop {
  background: #23342445;
  backdrop-filter: blur(2px);
}
dialog.drawer {
  margin: 0 0 0 auto;
  height: 100dvh;
  max-height: 100dvh;
  width: 510px;
  max-width: 100vw;
  border-radius: 0;
  border: 0;
  border-left: 1px solid var(--line);
  overflow: auto;
}
.drawer-head {
  position: sticky;
  top: 0;
  background: #fcfdf9;
  border-bottom: 1px solid var(--line);
  z-index: 1;
  padding: 17px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  color: #87937b;
  letter-spacing: 1.2px;
}
.close {
  border: 0;
  background: #edf0e6;
  color: #7c8870;
  border-radius: 50%;
  width: 27px;
  height: 27px;
  font-size: 17px;
  line-height: 20px;
}
.drawer-body {
  padding: 29px 27px;
}
.drawer-body h2 {
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 1.3;
  margin: 12px 0 24px;
}
.drawer-body .badge {
  margin-right: 5px;
}
.source-card {
  padding: 16px;
  border: 1px solid #e5e8dd;
  border-radius: 6px;
  margin: 12px 0;
  background: #fafbf6;
}
.source-card blockquote {
  font-family: Georgia, serif;
  font-size: 15px;
  line-height: 1.6;
  margin: 12px 0;
  color: #6c755f;
}
.source-card .source-heading {
  font-size: 10px;
  display: flex;
  justify-content: space-between;
}
.source-card p {
  font-size: 9px;
  color: #99a18e;
  margin: 4px 0;
}
.source-card a {
  font-size: 10px;
  color: var(--green);
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 25px 0;
}
.modal-body {
  padding: 28px;
}
.modal-body h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 25px;
  margin: 0 0 10px;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}
.muted {
  color: var(--muted);
}
.activity-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 20px;
  padding: 17px 21px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  background: #fff;
}
.activity-row:last-child {
  border: 0;
}
.activity-row small {
  font-size: 9px;
  color: var(--muted);
}
.agenda-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(135px, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  overflow: auto;
}
.day {
  border-right: 1px solid var(--line);
  min-height: 330px;
}
.day:last-child {
  border: 0;
}
.day-head {
  padding: 17px 12px;
  background: #fafbf6;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.day-head span {
  display: block;
  font-size: 9px;
  color: #9aa48a;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.day-head strong {
  font-size: 23px;
  font-weight: 400;
  line-height: 1.5;
}
.calendar-block {
  margin: 12px 9px;
  padding: 12px;
  background: #edf2e6;
  border: 1px solid #dce5ce;
  border-left: 3px solid #8aa373;
  border-radius: 5px;
  font-size: 10px;
  cursor: pointer;
}
.calendar-block .time {
  color: #7e906d;
  font-size: 8px;
  font-weight: 600;
  margin-bottom: 5px;
}
.calendar-block strong {
  font-size: 10px;
  font-weight: 550;
  line-height: 1.5;
  display: block;
}
.calendar-block small {
  display: block;
  margin-top: 7px;
  color: #a0ad8d;
  font-size: 8px;
}
.day-empty {
  text-align: center;
  margin: 35px 8px;
  color: #b5bba8;
  font-size: 10px;
}
.coverage-bar {
  height: 5px;
  border-radius: 5px;
  background: #edf0e5;
  overflow: hidden;
  margin: 15px 0;
}
.coverage-bar span {
  display: block;
  height: 100%;
  background: #91a977;
}
.rule-row {
  padding: 17px 21px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.rule-row:last-child {
  border: 0;
}
.rule-row small {
  font-size: 9px;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 22px;
  left: calc(50% + 120px);
  transform: translateX(-50%) translateY(90px);
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  padding: 12px 22px;
  border-radius: 7px;
  box-shadow: var(--shadow);
  z-index: 50;
  transition: transform 0.2s;
  max-width: 75vw;
}
#toast.visible {
  transform: translateX(-50%) translateY(0);
}
.loading {
  padding: 80px;
  text-align: center;
  color: var(--muted);
}
.inline-code {
  font-family: ui-monospace, monospace;
  font-size: 9px;
  overflow-wrap: anywhere;
  padding: 6px 9px;
  background: #f0f3ea;
  border-radius: 4px;
  display: block;
  margin: 10px 0;
}
.switch-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.switch-row label {
  margin: 0;
  font-size: 12px;
}
.switch-row small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.switch-row input {
  width: 17px;
  accent-color: var(--green);
}
.margin-top {
  margin-top: 20px;
}
.disabled-rule {
  opacity: 0.45;
}
.break {
  overflow-wrap: anywhere;
}
.table-shell.scroll {
  overflow: auto;
}
.scroll table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}
.scroll th,
.scroll td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.scroll th {
  font-weight: 500;
  color: var(--muted);
  background: #fafbf7;
  white-space: nowrap;
}
.scroll td:first-child {
  max-width: 350px;
}
.mobile-hidden {
  display: inline;
}
@media (min-width: 1500px) {
  .view {
    padding-top: 48px;
  }
  .commitment-row {
    padding-top: 23px;
    padding-bottom: 23px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 205px;
    padding-left: 12px;
    padding-right: 12px;
  }
  main {
    margin-left: 205px;
  }
  .view {
    padding: 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .list-header,
  .commitment-row {
    grid-template-columns: 1fr 100px 88px 92px;
    gap: 12px;
    padding-left: 18px;
    padding-right: 18px;
  }
  .stat {
    padding: 18px;
  }
  .filters input {
    width: 130px;
  }
  .client-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .brand {
    font-size: 16px;
  }
  .brand small {
    font-size: 6px;
  }
}
@media (max-width: 900px) {
  .list-header {
    display: none;
  }
  .commitment-row {
    grid-template-columns: 1fr 95px;
    gap: 10px;
  }
  .commitment-row > .client-tag {
    grid-column: 1;
    grid-row: 2;
    margin-left: 30px;
  }
  .commitment-row > .due {
    grid-column: 2;
    grid-row: 1;
  }
  .commitment-row > div:last-child {
    grid-column: 2;
    grid-row: 2;
  }
  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .cards-two {
    grid-template-columns: 1fr;
  }
  .topbar .subtle {
    display: none;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading .step {
    display: none;
  }
  footer span:last-child {
    display: none;
  }
  .notice {
    flex-wrap: wrap;
  }
  .notice a {
    margin-left: 32px;
  }
}
@media (max-width: 650px) {
  .sidebar {
    position: sticky;
    inset: 0;
    top: 0;
    width: 100%;
    height: auto;
    padding: 10px 14px;
    z-index: 4;
    border-bottom: 1px solid var(--line);
    border-right: 0;
    display: block;
  }
  .brand {
    font-size: 14px;
    padding: 0;
  }
  .brand small,
  .workspace,
  .sidebar-bottom,
  .nav-label,
  .brand-mark span {
    display: none;
  }
  .brand-mark {
    height: 28px;
    width: 28px;
    font-size: 27px;
    line-height: 28px;
    border-radius: 8px;
  }
  .sidebar nav {
    display: flex;
    overflow-x: auto;
    gap: 4px;
    margin-top: 10px;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .sidebar nav a {
    font-size: 10px;
    padding: 7px 9px;
    gap: 5px;
  }
  .nav-icon {
    font-size: 13px;
    width: 13px;
  }
  main {
    margin: 0;
  }
  .topbar {
    height: 50px;
    padding: 0 17px;
  }
  .topbar > span {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .view {
    padding: 26px 17px;
  }
  .page-heading {
    margin-bottom: 22px;
  }
  h1 {
    font-size: 30px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .stats {
    margin-bottom: 20px;
  }
  .stat {
    padding: 14px 17px;
  }
  .stat strong {
    font-size: 26px;
  }
  .stat-label,
  .stat small {
    font-size: 9px;
  }
  .notice {
    font-size: 10px;
    padding: 12px;
  }
  .tabs {
    gap: 0;
  }
  .tab {
    font-size: 10px;
    padding: 7px 9px;
  }
  .filters {
    width: 100%;
  }
  .filters input {
    flex: 1;
    max-width: none;
    width: 50%;
  }
  .filters select {
    max-width: 50%;
  }
  .commitment-row {
    padding: 15px 13px;
    grid-template-columns: 1fr 83px;
  }
  .row-title {
    font-size: 11px;
  }
  .client-grid {
    grid-template-columns: 1fr;
  }
  .cards-two {
    gap: 12px;
  }
  .panel {
    padding: 20px;
  }
  .activity-row {
    grid-template-columns: 70px 1fr;
    gap: 10px;
    padding: 15px;
  }
  .activity-row > span:last-child {
    grid-column: 2;
  }
  .drawer-body {
    padding: 23px 20px;
  }
  .drawer-head {
    padding: 14px 20px;
  }
  .form-grid {
    gap: 12px;
  }
  .agenda-grid {
    grid-template-columns: repeat(5, 145px);
  }
  footer {
    padding: 15px 17px;
    font-size: 8px;
  }
  #toast {
    left: 50%;
    max-width: 92vw;
    width: max-content;
    font-size: 11px;
  }
  .mobile-hidden {
    display: none;
  }
  .list-footer {
    font-size: 8px;
    gap: 10px;
  }
  .modal-body {
    padding: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Shared review and context surfaces. */
.review-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); }
.review-card { min-width: 0; }
.review-card h2 { margin: 18px 0 12px; }
.review-item { display: flex; width: 100%; justify-content: space-between; gap: 20px; padding: 18px 0; border: 0; border-bottom: 1px solid #e2e6de; color: inherit; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.review-item:hover { color: #365a45; }
.review-item small { display: block; color: #6f796f; font-size: 12px; margin-top: 6px; }
.review-item > span:last-child { flex-shrink: 0; text-align: right; }
.context-panel { background: #f2f5ee; border: 1px solid #dce3d6; border-radius: 12px; padding: 20px; margin-bottom: 24px; }
.context-panel details { margin: 16px 0; }
.context-document { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 13px; line-height: 1.7; }
.check-label { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0; }
.check-label input { width: 17px; height: 17px; flex-shrink: 0; margin: 2px 0 0; }
.review-card details { margin-top: 16px; }
