:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #607086;
  --line: #d9e2ee;
  --paper: #f8fafc;
  --panel: #ffffff;
  --accent: #0f7f75;
  --accent-dark: #0c5f58;
  --warm: #c95e2b;
  --soft: #eef6f4;
  --shadow: 0 16px 40px rgba(23, 32, 51, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #eef4f8 0%, #f7f9fb 42%, #edf3f1 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  color: #fff;
  background: var(--accent);
  cursor: pointer;
  font-weight: 700;
}

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

textarea,
input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 12px 14px;
  outline: none;
}

textarea:focus,
input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 127, 117, 0.14);
}

.workbench-shell {
  width: min(1360px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 36px;
}

.workbench-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 10px 0;
  backdrop-filter: blur(16px);
}

.workbench-topbar h1,
.panel h2,
.module-card h2 {
  margin: 0;
  letter-spacing: 0;
}

.workbench-topbar h1 {
  font-size: 24px;
  line-height: 1.2;
}

.top-kicker,
.section-label {
  margin: 0 0 4px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.hidden-top-nav {
  position: relative;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid rgba(16, 135, 123, 0.26);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(231, 247, 243, 0.95);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.topbar-link:hover {
  border-color: rgba(16, 135, 123, 0.42);
  background: #dff4ef;
}

.hidden-top-nav > summary {
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.hidden-top-nav > summary::-webkit-details-marker {
  display: none;
}

.hidden-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  display: grid;
  min-width: 180px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hidden-menu a {
  color: var(--ink);
  padding: 11px 14px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.hidden-menu a:hover {
  background: var(--soft);
}

.workbench-grid,
.cashflow-dashboard {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(520px, 1.45fr) minmax(300px, 0.82fr);
  align-items: start;
  gap: 14px;
}

.panel,
.module-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.panel {
  padding: 18px;
}

.repayment-panel {
  grid-column: 2;
}

.command-panel {
  grid-column: 1;
}

.data-flow-panel {
  grid-column: 1 / 3;
}

.side-rail {
  grid-column: 3;
  grid-row: 1 / span 3;
  display: grid;
  gap: 14px;
  align-content: start;
}

.project-library-panel {
  grid-column: 1 / 3;
}

.super-tools-panel {
  grid-column: 1 / -1;
}

.daily-notes-panel {
  grid-column: 1 / -1;
}

.daily-note-form {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(180px, 0.8fr);
  gap: 12px;
  margin-top: 12px;
}

.daily-note-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.daily-note-form .span-2,
.daily-note-actions.span-2 {
  grid-column: 1 / -1;
}

.daily-note-actions {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(120px, 160px);
  gap: 10px;
}

.daily-notes-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 10px;
}

.daily-notes-toolbar .active {
  border-color: rgba(15, 127, 117, 0.38);
  background: #dff4ef;
  color: var(--accent-dark);
}

.daily-notes-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.daily-note-card {
  display: grid;
  gap: 8px;
  min-height: 154px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.daily-note-card.is-due {
  border-color: rgba(201, 94, 43, 0.6);
  box-shadow: inset 4px 0 0 var(--warm);
}

.daily-note-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.note-type,
.note-date {
  border-radius: 999px;
  padding: 3px 8px;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.daily-note-raw,
.daily-note-meta,
.daily-note-action,
.daily-note-feedback {
  margin: 0;
  line-height: 1.55;
}

.daily-note-raw {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-weight: 700;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.daily-note-meta,
.daily-note-action,
.daily-note-feedback {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.daily-note-card-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-self: end;
}

.super-tools-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.super-tool-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.super-tool-card.is-verified {
  border-color: rgba(15, 127, 117, 0.45);
  box-shadow: inset 4px 0 0 var(--accent), var(--shadow);
}

.super-tool-card.is-runnable {
  box-shadow: inset 4px 0 0 rgba(32, 97, 197, 0.32), var(--shadow);
}

.super-tool-card.is-unverified {
  background: #fbfcfd;
}

.super-tool-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.super-tool-head strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-status-badge {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 9px;
  background: #eef6f4;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.super-tool-desc,
.super-tool-path {
  margin: 0;
  line-height: 1.55;
}

.super-tool-desc {
  display: -webkit-box;
  overflow: hidden;
  font-weight: 700;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.super-tool-path {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.super-tool-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  align-self: end;
}

.super-tool-actions .soft-btn {
  min-height: 34px;
  padding: 8px 12px;
  font-size: 13px;
}

.soft-link {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.soft-link:hover {
  text-decoration: underline;
}

.project-workspace-panel {
  grid-column: 1 / 3;
}

.create-project-panel {
  grid-column: 3;
}

.people-panel {
  grid-column: 1 / -1;
}

.module-strip {
  grid-column: 1 / -1;
}

.panel-heading,
.compact-heading,
.workspace-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel h2 {
  font-size: 22px;
  line-height: 1.25;
}

.shot-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.command-shot-list li {
  border-color: #d5e7ea;
  background: #f7fbfd;
  min-height: 92px;
}

.sync-pill,
.writeback-state {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: #e9f6f3;
  color: var(--accent-dark);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.shot-list li {
  min-height: 88px;
  border: 1px solid #cfe5e1;
  border-radius: 8px;
  background: var(--soft);
  padding: 14px;
  color: #21324a;
  line-height: 1.55;
}

.login-form {
  display: grid;
  gap: 10px;
}

.muted {
  color: var(--muted);
  line-height: 1.55;
}

.project-list {
  display: grid;
  gap: 10px;
  padding-right: 4px;
}

.compact-search {
  min-height: 36px;
  padding: 8px 10px;
  font-size: 13px;
  margin-bottom: 12px;
}

.repayment-summary {
  margin: -2px 0 14px;
  border: 1px solid #d5e7ea;
  border-radius: 8px;
  background: #f7fbfd;
  padding: 12px 14px;
  color: #31455f;
  font-weight: 700;
}

.repayment-list {
  display: grid;
  gap: 12px;
}

.section-toggle {
  width: 100%;
  margin-top: 12px;
}

.repayment-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  border: 1px solid #d7e2ec;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  min-height: 132px;
  cursor: pointer;
}

.repayment-card.active {
  border-color: var(--accent);
  background: #f2fbf8;
  box-shadow: inset 4px 0 0 var(--accent);
}

.repayment-rank {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #123f3b;
  color: #fff;
  font-weight: 900;
}

.repayment-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.repayment-title-row h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.repayment-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.repayment-fields span {
  min-width: 0;
  color: #29415c;
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.repayment-fields b {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 2px;
}

.repayment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  align-items: center;
}

.repayment-actions button {
  padding: 9px 12px;
  font-size: 13px;
  min-height: 36px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-day {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 34px;
  border: 1px solid #dbe5ee;
  border-radius: 8px;
  padding: 0;
  background: #fbfdff;
  color: #30455f;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.calendar-day.is-today {
  border-color: var(--accent);
  background: #eaf8f5;
  color: var(--accent-dark);
}

.calendar-day.is-selected {
  border-color: var(--warm);
  box-shadow: 0 0 0 3px rgba(201, 94, 43, 0.14);
}

.calendar-day span {
  position: static;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
}

.calendar-agenda {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.calendar-agenda p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.calendar-agenda [data-calendar-repayment] {
  cursor: pointer;
}

.writeback-log {
  display: grid;
  gap: 8px;
}

.writeback-log-item {
  border: 1px solid #d5e7e1;
  border-radius: 8px;
  background: #f5fbf8;
  padding: 10px;
}

.writeback-log-item.is-bad {
  border-color: #efcbbd;
  background: #fff7f3;
}

.writeback-log-item strong,
.writeback-log-item span {
  display: block;
  font-size: 13px;
}

.writeback-log-item span {
  color: var(--muted);
  margin-top: 3px;
}

.writeback-log-item p {
  margin: 6px 0 0;
  color: #30455f;
  line-height: 1.45;
}

.data-flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.data-flow span {
  position: relative;
  border: 1px solid #d4e3ed;
  border-radius: 8px;
  background: #fbfdff;
  padding: 10px 8px;
  text-align: center;
  color: #30455f;
  font-size: 13px;
  font-weight: 800;
}

.project-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  padding: 14px;
  cursor: pointer;
}

.project-card.active {
  border-color: var(--accent);
  background: #eefaf7;
  box-shadow: inset 4px 0 0 var(--accent);
}

.project-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
}

.project-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.project-meta span,
.record-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  background: #e8f0fb;
  color: #294362;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
}

.people-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.people-card {
  border: 1px solid #d7e2ec;
  border-radius: 8px;
  background: #fbfdff;
  padding: 14px;
  min-height: 132px;
  cursor: pointer;
}

.people-card.active {
  border-color: var(--accent);
  background: #eefaf7;
  box-shadow: inset 4px 0 0 var(--accent);
}

.people-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
}

.people-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.record-pill {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-box,
.analysis-result {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 14px;
  color: #26384f;
  line-height: 1.65;
  white-space: pre-wrap;
}

.history-box {
  margin-bottom: 14px;
  max-height: 260px;
  overflow: auto;
}

.followup-timeline-box {
  background: #fff;
}

.followup-event-list {
  display: grid;
  gap: 8px;
}

.followup-section-title {
  color: #0c6c63;
  font-size: 13px;
  font-weight: 900;
}

.followup-event {
  border-left: 4px solid var(--accent);
  background: #f7fbfd;
  border-radius: 8px;
  padding: 10px 12px;
}

.followup-event.is-latest {
  border-left-color: var(--warm);
  background: #fff8f2;
}

.followup-event strong {
  display: block;
  color: var(--ink);
}

.followup-event p {
  margin: 6px 0 0;
  color: #30455f;
  line-height: 1.55;
}

.followup-history {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.followup-history summary {
  cursor: pointer;
  color: #37516e;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.followup-history-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.field-grid-panel {
  border: 1px solid #d5e7ea;
  border-radius: 8px;
  background: #f7fbfd;
  padding: 14px;
  margin-bottom: 14px;
}

.repayment-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.repayment-field-grid label {
  display: grid;
  gap: 6px;
  color: #31455f;
  font-size: 13px;
  font-weight: 800;
}

.repayment-field-grid .span-2 {
  grid-column: span 2;
}

.input-label {
  display: block;
  margin: 10px 0 8px;
  color: var(--ink);
  font-weight: 800;
}

.action-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.soft-btn {
  border: 1px solid #cfe0dc;
  color: var(--accent-dark);
  background: #eef7f5;
}

.voice-status {
  min-height: 24px;
  margin: 8px 0 0;
  font-size: 14px;
}

.voice-active {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.danger-btn {
  background: var(--warm);
}

.create-project-form {
  display: grid;
  gap: 10px;
}

.module-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.module-card {
  display: block;
  padding: 16px;
  min-height: 132px;
  color: inherit;
  text-decoration: none;
}

.module-card h2 {
  font-size: 18px;
}

.module-card p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.module-card-primary {
  border-color: #b7d8cf;
  background: linear-gradient(180deg, #f7fffc 0%, #eef8f4 100%);
  box-shadow: inset 4px 0 0 var(--accent), var(--shadow);
}

.status-good {
  color: var(--accent-dark);
}

.status-bad {
  color: #9f3d1b;
}

[v-cloak] {
  display: none;
}

.vue-dashboard {
  grid-template-columns: minmax(260px, 0.78fr) minmax(520px, 1.54fr) minmax(280px, 0.86fr);
  grid-auto-flow: row;
  grid-auto-rows: auto;
}

.vue-primary-column,
.vue-center-column {
  min-width: 0;
  display: grid;
  gap: 14px;
  align-content: start;
}

.vue-primary-column {
  grid-column: 1;
  grid-row: 1;
}

.vue-center-column {
  grid-column: 2;
  grid-row: 1;
}

.vue-side-rail {
  min-width: 0;
  grid-column: 3;
  grid-row: 1;
}

.vue-dashboard .daily-notes-panel,
.vue-dashboard .command-panel,
.vue-dashboard .repayment-panel {
  min-width: 0;
  grid-column: auto;
}

.vue-dashboard > .data-flow-panel {
  grid-column: 1 / -1;
  grid-row: 2;
}

.vue-dashboard > .project-library-panel {
  grid-column: 1 / 3;
  grid-row: 3;
}

.vue-dashboard > .create-project-panel {
  grid-column: 3;
  grid-row: 3;
}

.vue-dashboard > .people-panel {
  grid-column: 1 / -1;
  grid-row: 4;
}

.vue-dashboard > .super-tools-panel {
  grid-column: 1 / -1;
  grid-row: 5;
}

.vue-dashboard > .module-strip {
  grid-column: 1 / -1;
  grid-row: 6;
}

.vue-topbar {
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(320px, 1fr) auto;
}

.top-anchor-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.top-anchor-nav a {
  min-height: 34px;
  border: 1px solid rgba(15, 127, 117, 0.18);
  border-radius: 8px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.top-anchor-nav a:hover {
  border-color: rgba(15, 127, 117, 0.42);
  background: var(--soft);
  color: var(--accent-dark);
}

.card-title-row,
.mini-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-title-row h3 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vue-workbench-shell .panel,
.vue-workbench-shell .module-card,
.vue-workbench-shell .repayment-card,
.vue-workbench-shell .project-card,
.vue-workbench-shell .daily-note-card,
.vue-workbench-shell .people-card,
.vue-workbench-shell .super-tool-card {
  min-width: 0;
  overflow: hidden;
}

.vue-workbench-shell p,
.vue-workbench-shell li,
.vue-workbench-shell strong,
.vue-workbench-shell h2,
.vue-workbench-shell h3,
.vue-workbench-shell textarea,
.vue-workbench-shell input,
.vue-workbench-shell button {
  overflow-wrap: anywhere;
}

.vue-workbench-shell .shot-list {
  min-width: 0;
}

.vue-workbench-shell .shot-list li {
  min-width: 0;
  max-width: 100%;
  word-break: break-word;
}

.status-chip {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 8px;
  background: #e8f4f1;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.mini-action-row {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 10px;
}

.soft-link-btn {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.repayment-card.active,
.project-card.active {
  border-color: rgba(15, 127, 117, 0.58);
  box-shadow: inset 4px 0 0 var(--accent), var(--shadow);
}

.vue-dashboard .repayment-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
}

.repayment-card-grid {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) minmax(96px, 0.72fr) minmax(128px, 1fr) minmax(150px, 1.12fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.repayment-card-grid div {
  min-width: 0;
}

.repayment-card-grid strong,
.repayment-card-grid span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.repayment-card-grid strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.repayment-card-grid span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.calendar-day {
  position: relative;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 6px;
  background: transparent;
  color: var(--ink);
}

.calendar-day.active {
  background: var(--accent);
  color: #fff;
}

.calendar-day.hasItem:not(.active) {
  border-color: rgba(201, 94, 43, 0.35);
  background: #fff7ed;
}

.calendar-day small {
  position: absolute;
  right: 4px;
  bottom: 2px;
  color: inherit;
  font-size: 10px;
}

@media (max-width: 1180px) {
  .vue-dashboard {
    grid-template-columns: minmax(260px, 0.9fr) minmax(520px, 1.35fr);
  }

  .vue-primary-column {
    grid-column: 1;
    grid-row: 1;
  }

  .vue-center-column {
    grid-column: 2;
    grid-row: 1;
  }

  .vue-side-rail {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vue-dashboard > .data-flow-panel {
    grid-row: 3;
  }

  .vue-dashboard > .project-library-panel {
    grid-column: 1 / -1;
    grid-row: 4;
  }

  .vue-dashboard > .create-project-panel {
    grid-column: 1 / -1;
    grid-row: 5;
  }

  .vue-dashboard > .people-panel {
    grid-row: 6;
  }

  .vue-dashboard > .super-tools-panel {
    grid-row: 7;
  }

  .vue-dashboard > .module-strip {
    grid-row: 8;
  }

  .repayment-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .workbench-shell {
    width: min(100% - 20px, 680px);
  }

  .workbench-grid,
  .cashflow-dashboard,
  .shot-list,
  .action-row,
  .daily-note-form,
  .daily-note-actions,
  .daily-notes-list,
  .super-tools-list,
  .repayment-fields,
  .repayment-field-grid,
  .data-flow,
  .module-strip {
    grid-template-columns: 1fr;
  }

  .command-panel,
  .daily-notes-panel,
  .super-tools-panel,
  .repayment-panel,
  .data-flow-panel,
  .project-library-panel,
  .project-workspace-panel,
  .create-project-panel,
  .people-panel,
  .module-strip,
  .side-rail {
    grid-column: 1;
    grid-row: auto;
  }

  .people-list {
    grid-template-columns: 1fr;
  }

  .repayment-field-grid .span-2 {
    grid-column: span 1;
  }

  .daily-note-form .span-2,
  .daily-note-actions.span-2 {
    grid-column: span 1;
  }

  .workbench-topbar {
    align-items: flex-start;
  }

  .topbar-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .workbench-topbar h1 {
    font-size: 21px;
  }

  .vue-topbar,
  .vue-dashboard,
  .repayment-card-grid {
    grid-template-columns: 1fr;
  }

  .top-anchor-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .vue-primary-column,
  .vue-center-column,
  .vue-side-rail {
    grid-column: 1;
    grid-row: auto;
  }
}
