:root {
  --cm-ink: #16231f;
  --cm-muted: #66736e;
  --cm-line: #dce4df;
  --cm-soft: #f3f6f3;
  --cm-paper: #ffffff;
  --cm-green: #123d31;
  --cm-green-deep: #0c3027;
  --cm-lime: #c9e956;
  --cm-coral: #e97955;
  --cm-blue: #4977cc;
  --cm-shadow: 0 20px 55px rgba(15, 48, 39, 0.09);
}

* {
  box-sizing: border-box;
}

.command-body {
  min-width: 320px;
  margin: 0;
  color: var(--cm-ink);
  background:
    radial-gradient(circle at 85% -20%, rgba(201, 233, 86, 0.13), transparent 28rem),
    #eef2ef;
  font-family: Inter, "SF Pro Display", "Segoe UI", sans-serif;
}

.command-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  grid-template-rows: 72px minmax(0, 1fr);
}

.cm-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  grid-column: 1 / -1;
  min-width: 0;
  display: grid;
  grid-template-columns: 224px minmax(260px, 1fr) auto;
  align-items: center;
  min-height: 72px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(220, 228, 223, 0.88);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.cm-topbar .brand {
  padding: 0;
}

.cm-topbar .brand small {
  color: #7b8984;
}

.cm-topbar .brand-mark {
  border-color: #cfdad3;
}

.cm-topbar .brand-mark span {
  background: var(--cm-green);
}

.cm-workspace-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cm-muted);
  font-size: 12px;
  letter-spacing: 0.01em;
}

.cm-workspace-label strong {
  color: var(--cm-ink);
  font-size: 13px;
}

.cm-workspace-label > span:last-child::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 14px;
  margin: 0 12px -3px 2px;
  background: var(--cm-line);
}

.cm-top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.cm-top-link {
  color: #3f504a;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.cm-top-link:hover {
  color: var(--cm-green);
}

.cm-specialist-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0 6px 12px;
  border: 0;
  border-left: 1px solid var(--cm-line);
  color: inherit;
  background: transparent;
  text-align: left;
}

.cm-specialist-button > span:first-child {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--cm-green);
  font-size: 11px;
  font-weight: 800;
}

.cm-specialist-button > span:last-child {
  display: grid;
  gap: 2px;
}

.cm-specialist-button strong,
.cm-specialist-button small {
  font-size: 11px;
}

.cm-specialist-button small {
  color: var(--cm-muted);
}

.cm-sidebar {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 28px 18px 22px;
  border-right: 1px solid rgba(220, 228, 223, 0.92);
  background: rgba(248, 250, 248, 0.8);
}

.cm-sidebar-group {
  display: grid;
  gap: 5px;
}

.cm-sidebar-label {
  padding: 0 11px 8px;
  color: #93a09b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cm-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 0 11px;
  border: 0;
  border-radius: 10px;
  color: #4c5c56;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.cm-nav-item svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.cm-nav-item > span {
  min-width: 23px;
  margin-left: auto;
  padding: 3px 7px;
  border-radius: 999px;
  color: #66736e;
  background: #e6ebe7;
  font-size: 10px;
  text-align: center;
}

.cm-nav-item:hover,
.cm-nav-item.active {
  color: var(--cm-green);
  background: #e4eee8;
}

.cm-nav-item.active {
  box-shadow: inset 3px 0 var(--cm-green);
}

.cm-sidebar-foot {
  margin-top: auto;
  display: grid;
  gap: 4px;
  padding: 16px 14px;
  border: 1px solid #dbe5de;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.7);
}

.cm-sidebar-foot span,
.cm-sidebar-foot small {
  color: #7d8b86;
  font-size: 10px;
}

.cm-sidebar-foot strong {
  color: var(--cm-green);
  font-size: 12px;
  line-height: 1.35;
}

.cm-main {
  min-width: 0;
  padding: 42px clamp(22px, 3.2vw, 52px) 64px;
}

.cm-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.cm-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #7b8984;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.cm-hero h1 {
  margin: 0;
  color: #102d25;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.cm-hero p {
  max-width: 630px;
  margin: 13px 0 0;
  color: var(--cm-muted);
  font-size: 14px;
  line-height: 1.6;
}

.cm-primary-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-width: 235px;
  min-height: 48px;
  padding: 0 13px 0 19px;
  border-radius: 11px;
  color: white;
  background: var(--cm-green);
  box-shadow: 0 11px 25px rgba(18, 61, 49, 0.18);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.cm-primary-action > span:last-child {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 7px;
  color: var(--cm-green);
  background: var(--cm-lime);
  font-size: 18px;
}

.cm-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.cm-metric {
  min-width: 0;
  min-height: 115px;
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 10px 12px;
  padding: 18px;
  border: 1px solid rgba(220, 228, 223, 0.96);
  border-radius: 14px;
  color: inherit;
  background: rgba(255, 255, 255, 0.84);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.cm-metric:hover {
  transform: translateY(-2px);
  border-color: #c4d2c9;
  box-shadow: 0 13px 32px rgba(16, 45, 37, 0.07);
}

.cm-metric-icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 10px;
}

.cm-metric-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.cm-metric-icon.clients {
  color: #23644f;
  background: #dfeee7;
}

.cm-metric-icon.ready {
  color: #476b13;
  background: #edf5d6;
}

.cm-metric-icon.search {
  color: #4266ac;
  background: #e4ebfa;
}

.cm-metric-icon.followup {
  color: #9a492e;
  background: #fae8df;
}

.cm-metric > span:nth-child(2) {
  min-width: 0;
  display: grid;
  align-content: center;
}

.cm-metric strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.cm-metric small {
  margin-top: 5px;
  overflow: hidden;
  color: var(--cm-muted);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cm-metric em {
  grid-column: 1 / -1;
  color: #71817b;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.cm-metric.urgent em {
  color: #ad5336;
}

.cm-work-area {
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(560px, 1.6fr) minmax(335px, 0.8fr);
  overflow: hidden;
  border: 1px solid var(--cm-line);
  border-radius: 16px;
  background: var(--cm-paper);
  box-shadow: var(--cm-shadow);
}

.cm-queue-panel {
  min-width: 0;
  border-right: 1px solid var(--cm-line);
}

.cm-panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 25px 25px 17px;
}

.cm-panel-heading h2 {
  margin: 0;
  color: #17332b;
  font-size: 19px;
  letter-spacing: -0.025em;
}

.cm-panel-heading > span {
  color: var(--cm-muted);
  font-size: 11px;
  font-weight: 700;
}

.cm-queue-controls {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0 25px 18px;
}

.cm-search {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--cm-line);
  border-radius: 9px;
  background: #fbfcfb;
}

.cm-search:focus-within {
  border-color: #84a698;
  box-shadow: 0 0 0 3px rgba(18, 61, 49, 0.08);
}

.cm-search svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #7b8984;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.cm-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--cm-ink);
  background: transparent;
  font: inherit;
  font-size: 12px;
}

.cm-filter-pills {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cm-filter-pills button {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  color: #74817c;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.cm-filter-pills button:hover,
.cm-filter-pills button.active {
  color: var(--cm-green);
  background: #edf3ef;
}

.cm-table-head,
.cm-client-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.3fr) minmax(108px, 0.72fr) minmax(145px, 1fr) 80px;
  gap: 12px;
  align-items: center;
}

.cm-table-head {
  min-height: 37px;
  padding: 0 25px;
  border-top: 1px solid #edf0ee;
  border-bottom: 1px solid #e7ece8;
  color: #8a9792;
  background: #fafbfa;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cm-client-row {
  width: 100%;
  min-height: 78px;
  padding: 12px 25px;
  border: 0;
  border-bottom: 1px solid #edf0ee;
  color: inherit;
  background: white;
  text-align: left;
  cursor: pointer;
  transition: background 150ms ease;
}

.cm-client-row:hover,
.cm-client-row.active {
  background: #f4f8f5;
}

.cm-client-row.active {
  box-shadow: inset 3px 0 var(--cm-green);
}

.cm-client-identity {
  min-width: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.cm-client-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  color: #1f4d3e;
  background: #e1eee7;
  font-size: 10px;
  font-weight: 850;
}

.cm-client-identity > span:last-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.cm-client-identity strong,
.cm-client-identity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cm-client-identity strong {
  font-size: 12px;
}

.cm-client-identity small {
  color: #7a8883;
  font-size: 10px;
}

.cm-stage-pill {
  width: max-content;
  max-width: 100%;
  padding: 5px 8px;
  overflow: hidden;
  border-radius: 999px;
  color: #416054;
  background: #eaf1ed;
  font-size: 9px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cm-stage-pill[data-stage="resume_ready"] {
  color: #5b701b;
  background: #eef5d8;
}

.cm-stage-pill[data-stage="referred"],
.cm-stage-pill[data-stage="applied"],
.cm-stage-pill[data-stage="interview"] {
  color: #3b5f9e;
  background: #e8eef9;
}

.cm-stage-pill[data-stage="placed"] {
  color: #276044;
  background: #ddefe4;
}

.cm-next-action {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.cm-next-action strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cm-next-action small,
.cm-client-row > time {
  color: #7e8b87;
  font-size: 9px;
}

.cm-next-action.due strong,
.cm-next-action.due small {
  color: #b04f31;
}

.cm-client-row > time {
  text-align: right;
}

.cm-empty-list {
  min-height: 280px;
  display: grid;
  place-content: center;
  padding: 32px;
  color: var(--cm-muted);
  font-size: 12px;
  text-align: center;
}

.cm-loading-row {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 25px;
  border-bottom: 1px solid #edf0ee;
}

.cm-loading-row span {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #edf1ee, #f8faf8, #edf1ee);
  background-size: 240% 100%;
  animation: cm-shimmer 1.4s linear infinite;
}

.cm-loading-row span:nth-child(2) {
  width: 70%;
}

@keyframes cm-shimmer {
  to { background-position: -240% 0; }
}

.cm-detail-panel {
  min-width: 0;
  background: #fcfdfc;
}

.cm-detail-empty {
  min-height: 640px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 44px;
  text-align: center;
}

.cm-detail-empty h2 {
  margin: 0;
  color: #1d382f;
  font-size: 20px;
}

.cm-detail-empty p {
  max-width: 280px;
  margin: 10px 0 0;
  color: var(--cm-muted);
  font-size: 12px;
  line-height: 1.6;
}

.cm-detail-mark {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 14px;
  color: var(--cm-green);
  background: #e6efe9;
}

.cm-detail-mark svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.cm-detail-loading {
  min-height: 640px;
  display: grid;
  place-items: center;
  color: var(--cm-muted);
  font-size: 12px;
}

.cm-client-detail {
  min-height: 100%;
}

.cm-detail-header {
  padding: 26px 25px 22px;
  border-bottom: 1px solid var(--cm-line);
  background:
    radial-gradient(circle at 100% 0, rgba(201, 233, 86, 0.17), transparent 12rem),
    white;
}

.cm-detail-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.cm-detail-person {
  min-width: 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.cm-detail-person .cm-client-avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 12px;
}

.cm-detail-person h2 {
  margin: 0;
  overflow: hidden;
  color: #12382e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cm-detail-person p {
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--cm-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cm-priority-button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cm-line);
  border-radius: 9px;
  color: #8a9792;
  background: white;
  cursor: pointer;
}

.cm-priority-button.active {
  border-color: #e5a58f;
  color: #a44629;
  background: #fff2ed;
}

.cm-priority-button svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.cm-contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: 17px;
  color: #6f7d78;
  font-size: 9px;
}

.cm-contact-strip span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.cm-contact-strip svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.cm-detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}

.cm-detail-actions a,
.cm-detail-actions button {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #cfdad3;
  border-radius: 9px;
  color: var(--cm-green);
  background: white;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.cm-detail-actions a:first-child {
  border-color: var(--cm-green);
  color: white;
  background: var(--cm-green);
}

.cm-detail-body {
  display: grid;
  gap: 12px;
  padding: 15px;
}

.cm-detail-card {
  padding: 17px;
  border: 1px solid #e1e7e3;
  border-radius: 12px;
  background: white;
}

.cm-detail-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.cm-detail-card h3 {
  margin: 0;
  color: #263e36;
  font-size: 11px;
}

.cm-detail-card-heading > span {
  color: #899590;
  font-size: 9px;
}

.cm-workflow-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cm-workflow-fields label {
  display: grid;
  gap: 6px;
  color: #77847f;
  font-size: 9px;
  font-weight: 800;
}

.cm-workflow-fields select,
.cm-workflow-fields input,
.cm-note-form textarea {
  width: 100%;
  border: 1px solid #d8e0db;
  border-radius: 8px;
  color: var(--cm-ink);
  background: #fbfcfb;
  font: inherit;
  font-size: 10px;
  outline: none;
}

.cm-workflow-fields select,
.cm-workflow-fields input {
  height: 36px;
  padding: 0 9px;
}

.cm-workflow-fields select:focus,
.cm-workflow-fields input:focus,
.cm-note-form textarea:focus {
  border-color: #7fa292;
  box-shadow: 0 0 0 3px rgba(18, 61, 49, 0.07);
}

.cm-workflow-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 11px;
}

.cm-inline-button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #d4ded8;
  border-radius: 8px;
  color: #52645d;
  background: white;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.cm-inline-button.primary {
  margin-left: auto;
  border-color: var(--cm-green);
  color: white;
  background: var(--cm-green);
}

.cm-resume-snapshot {
  display: grid;
  gap: 8px;
}

.cm-resume-snapshot strong {
  color: #27443a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 500;
}

.cm-resume-snapshot p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #6d7b76;
  font-size: 10px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.cm-snapshot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.cm-snapshot-meta span {
  padding: 5px 7px;
  border-radius: 7px;
  color: #52655e;
  background: #edf3ef;
  font-size: 8px;
  font-weight: 800;
}

.cm-job-stack,
.cm-training-stack,
.cm-note-stack {
  display: grid;
  gap: 8px;
}

.cm-job-item {
  padding: 11px;
  border: 1px solid #e3e8e5;
  border-radius: 9px;
  background: #fcfdfc;
}

.cm-job-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cm-job-item strong {
  display: block;
  font-size: 10px;
  line-height: 1.35;
}

.cm-job-item small {
  display: block;
  margin-top: 3px;
  color: #78857f;
  font-size: 8px;
}

.cm-job-item select {
  max-width: 92px;
  height: 27px;
  border: 1px solid #d6dfd9;
  border-radius: 7px;
  color: #4c5f58;
  background: white;
  font-size: 8px;
  font-weight: 800;
}

.cm-job-item a {
  display: inline-block;
  margin-top: 8px;
  color: #315f50;
  font-size: 8px;
  font-weight: 800;
}

.cm-training-item {
  padding: 12px;
  border: 1px solid #dce7e0;
  border-radius: 10px;
  background:
    radial-gradient(circle at 100% 0, rgba(201, 233, 86, 0.13), transparent 45%),
    #fbfdfb;
}

.cm-training-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cm-training-level {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 5px;
  border-radius: 999px;
  color: #4b651f;
  background: #edf5d6;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cm-training-item strong {
  display: block;
  color: #1c3d33;
  font-size: 10px;
  line-height: 1.35;
}

.cm-training-item small {
  display: block;
  margin-top: 3px;
  color: #6f7e78;
  font-size: 8px;
  font-weight: 700;
}

.cm-training-item select {
  max-width: 92px;
  height: 27px;
  border: 1px solid #cedbd3;
  border-radius: 7px;
  color: #405b51;
  background: white;
  font-size: 8px;
  font-weight: 800;
}

.cm-training-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.cm-training-meta span {
  padding: 4px 6px;
  border-radius: 6px;
  color: #5d6c66;
  background: #edf2ef;
  font-size: 7.5px;
  font-weight: 750;
}

.cm-training-item p {
  margin: 8px 0 0;
  color: #78857f;
  font-size: 8px;
  line-height: 1.4;
}

.cm-training-item a {
  display: inline-block;
  margin-top: 8px;
  color: #315f50;
  font-size: 8px;
  font-weight: 800;
}

.cm-empty-card {
  padding: 6px 0 2px;
  color: #77847f;
  font-size: 9px;
  line-height: 1.5;
}

.cm-empty-card a {
  color: var(--cm-green);
  font-weight: 800;
}

.cm-note-form {
  display: grid;
  gap: 8px;
}

.cm-note-form textarea {
  min-height: 70px;
  resize: vertical;
  padding: 9px 10px;
  line-height: 1.5;
}

.cm-note-form button {
  justify-self: end;
}

.cm-note-item {
  padding: 10px 0;
  border-top: 1px solid #edf0ee;
}

.cm-note-item:first-child {
  border-top: 0;
}

.cm-note-item p {
  margin: 0;
  color: #52625c;
  font-size: 9px;
  line-height: 1.55;
}

.cm-note-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 5px;
  color: #8a9691;
  font-size: 8px;
}

@media (max-width: 1180px) {
  .command-shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .cm-topbar {
    grid-template-columns: 190px minmax(210px, 1fr) auto;
  }

  .cm-work-area {
    grid-template-columns: minmax(480px, 1.45fr) minmax(310px, 0.9fr);
  }

  .cm-queue-controls {
    grid-template-columns: 1fr;
  }

  .cm-filter-pills {
    overflow-x: auto;
  }
}

@media (max-width: 960px) {
  .command-shell {
    display: block;
  }

  .cm-topbar {
    grid-template-columns: 1fr auto;
  }

  .cm-workspace-label,
  .cm-specialist-button > span:last-child,
  .cm-top-link {
    display: none;
  }

  .cm-sidebar {
    position: sticky;
    top: 72px;
    z-index: 15;
    height: auto;
    flex-direction: row;
    overflow-x: auto;
    gap: 5px;
    padding: 8px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--cm-line);
    background: rgba(248, 250, 248, 0.96);
    scrollbar-width: none;
  }

  .cm-sidebar::-webkit-scrollbar {
    display: none;
  }

  .cm-sidebar-group {
    display: flex;
    gap: 5px;
  }

  .cm-sidebar-group:nth-child(2),
  .cm-sidebar-label,
  .cm-sidebar-foot {
    display: none;
  }

  .cm-nav-item {
    width: auto;
    flex: 0 0 auto;
    min-height: 36px;
  }

  .cm-work-area {
    grid-template-columns: 1fr;
  }

  .cm-queue-panel {
    border-right: 0;
  }

  .cm-detail-panel {
    border-top: 1px solid var(--cm-line);
  }

  .cm-detail-empty {
    min-height: 300px;
  }
}

@media (max-width: 720px) {
  .cm-topbar {
    min-height: 64px;
    padding: 0 16px;
  }

  .cm-sidebar {
    top: 64px;
  }

  .cm-main {
    padding: 26px 14px 48px;
  }

  .cm-hero {
    display: grid;
  }

  .cm-primary-action {
    width: 100%;
  }

  .cm-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .cm-metric {
    min-height: 106px;
    padding: 14px;
  }

  .cm-panel-heading,
  .cm-queue-controls {
    padding-left: 16px;
    padding-right: 16px;
  }

  .cm-table-head {
    display: none;
  }

  .cm-client-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    padding: 14px 16px;
  }

  .cm-client-row .cm-stage-pill {
    grid-column: 2;
    grid-row: 1;
  }

  .cm-next-action {
    grid-column: 1;
    padding-left: 46px;
  }

  .cm-client-row > time {
    grid-column: 2;
    text-align: left;
  }

  .cm-filter-pills {
    margin-right: -16px;
    padding-right: 16px;
  }
}

@media (max-width: 420px) {
  .cm-metrics {
    grid-template-columns: 1fr;
  }

  .cm-metric {
    min-height: 94px;
  }

  .cm-workflow-fields,
  .cm-detail-actions {
    grid-template-columns: 1fr;
  }
}
