html, body {
  margin: 0;
  padding: 0;
}

body {
  background-color: #F4F1EA;
  background-image:
    linear-gradient(rgba(26, 31, 28, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 31, 28, 0.045) 1px, transparent 1px);
  background-size: 24px 24px;
  color: #1A1F1C;
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

a {
  color: #1A1F1C;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #C8451B;
}

.sheet {
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 32px 96px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.chrome {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  border-bottom: 1px solid #1A1F1C;
  padding-bottom: 16px;
  flex-wrap: wrap;
}

.chrome-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
}

.chrome-domain {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #3A5A6B;
}

.chrome-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #3A5A6B;
  text-transform: uppercase;
}

.lock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lock-icon {
  width: 8px;
  height: 10px;
  border: 1px solid #3A5A6B;
  border-radius: 1px;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  display: inline-block;
}

.feed-status {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #3A5A6B;
  margin-top: -36px;
  min-height: 1em;
}

.region {
  display: flex;
  flex-direction: column;
}

.region-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px solid rgba(26, 31, 28, 0.25);
  padding-bottom: 8px;
}

.region-index {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: #C8451B;
  letter-spacing: 0.08em;
}

.region-title {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.region-count,
.region-chip {
  margin-left: auto;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: #3A5A6B;
}

.chip {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 1px 7px;
  line-height: 1.5;
  border: 1px solid;
  display: inline-block;
}

.chip-company {
  border-color: #3A5A6B;
  color: #3A5A6B;
}

.chip-personal {
  border-color: #1A1F1C;
  color: #1A1F1C;
}

.chip-personal-pad {
  padding: 2px 8px;
}

.label-mono {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3A5A6B;
}

.card {
  background: #F4F1EA;
  border: 1px solid rgba(26, 31, 28, 0.35);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.morning-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cal-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  font-size: 14px;
  padding: 8px 0;
  border-top: 1px solid rgba(26, 31, 28, 0.12);
}

.cal-time {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: #3A5A6B;
}

.cal-bar {
  display: inline-block;
  height: 12px;
  background: repeating-linear-gradient(
    90deg,
    rgba(26, 31, 28, 0.28) 0 6px,
    transparent 6px 8px
  );
}

.meta-12 {
  font-size: 12px;
  color: #3A5A6B;
}

.briefing-copy {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  max-width: 70ch;
  text-wrap: pretty;
}

.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 48px 40px;
  align-items: start;
}

.col {
  display: flex;
  flex-direction: column;
  gap: 48px;
  min-width: 0;
}

.empty {
  padding: 32px 0;
  font-size: 14px;
  color: #3A5A6B;
  border-bottom: 1px solid rgba(26, 31, 28, 0.12);
}

.row {
  display: grid;
  gap: 8px 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(26, 31, 28, 0.12);
  align-items: start;
}

.row-waiting,
.row-decision {
  grid-template-columns: minmax(0, 1fr) auto;
}

.row-hold {
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  padding: 14px 0;
}

.row-roster {
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  padding: 9px 0;
  font-size: 14px;
}

.row-lead {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.row-lead-decision {
  gap: 8px;
}

.row-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bot-name {
  font-size: 15px;
  font-weight: 500;
}

.time-mono {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: #3A5A6B;
}

.age-mono {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: #3A5A6B;
}

.line-body {
  font-size: 14px;
  line-height: 1.5;
  color: #1A1F1C;
  text-wrap: pretty;
}

.line-next {
  font-size: 14px;
  line-height: 1.5;
  color: #3A5A6B;
}

.line-next strong {
  font-weight: 600;
  color: #1A1F1C;
}

.open-link {
  font-size: 13px;
  white-space: nowrap;
  align-self: center;
}

.decision-line {
  font-size: 15px;
  font-weight: 500;
  text-wrap: pretty;
}

.pulse-grid {
  display: grid;
  grid-template-columns: 96px repeat(3, minmax(0, 1fr));
  gap: 8px 16px;
  font-size: 14px;
  align-items: baseline;
}

.pulse-count {
  font-size: 22px;
  font-weight: 500;
  border-top: 1px solid rgba(26, 31, 28, 0.25);
  padding-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot-active {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1A1F1C;
  display: inline-block;
}

.dot-idle {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid #1A1F1C;
  display: inline-block;
}

.dot-hold {
  width: 8px;
  height: 8px;
  background: #3A5A6B;
  display: inline-block;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.roster-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.roster-title {
  color: #3A5A6B;
}

.roster-name {
  font-weight: 500;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.note-card {
  border: 1px solid rgba(26, 31, 28, 0.35);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 132px;
  background: #F4F1EA;
}

.note-bot {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3A5A6B;
}

.note-title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-wrap: pretty;
}

.note-foot {
  margin-top: auto;
  font-size: 12px;
  color: #3A5A6B;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.table-grid {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px 16px;
  font-size: 14px;
  align-items: baseline;
}

.table-value {
  font-size: 16px;
  font-weight: 500;
}

.table-grocery {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gap-4 { gap: 4px; }
.gap-12 { gap: 12px; }
.gap-14 { gap: 14px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }

.mb-8 { margin-bottom: 8px; }
.mt-12 { margin-top: 12px; }
.pt-link { margin-top: 0; font-size: 13px; }

/* —— Plots (Personal · Field notes) —— */
.plots-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(26, 31, 28, 0.18);
}

.plots-subhead {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3A5A6B;
  font-weight: 500;
}

.plots-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.plot-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(26, 31, 28, 0.12);
  font-size: 14px;
}

.plot-row-title {
  font-weight: 500;
  color: #1A1F1C;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.plot-row-title:hover {
  color: #C8451B;
}

.plot-row-unit {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #3A5A6B;
  white-space: nowrap;
}

.plot-viewer {
  border: 1px solid rgba(26, 31, 28, 0.35);
  background: #F4F1EA;
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plot-viewer[hidden] {
  display: none;
}

.plot-viewer-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.plot-viewer-title {
  font-size: 15px;
  font-weight: 500;
}

.plot-viewer-meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #3A5A6B;
}

.plot-svg-wrap {
  overflow-x: auto;
}

.plot-svg {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
}

.plot-svg .axis {
  stroke: rgba(26, 31, 28, 0.35);
  stroke-width: 1;
  fill: none;
}

.plot-svg .grid {
  stroke: rgba(26, 31, 28, 0.12);
  stroke-width: 1;
  fill: none;
}

.plot-svg .series-line {
  stroke: #1A1F1C;
  stroke-width: 1.5;
  fill: none;
}

.plot-svg .series-bar {
  fill: rgba(58, 90, 107, 0.45);
  stroke: #3A5A6B;
  stroke-width: 1;
}

.plot-svg .point {
  fill: #F4F1EA;
  stroke: #1A1F1C;
  stroke-width: 1.5;
}

.plot-svg .tick-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  fill: #3A5A6B;
}

.plot-empty-series {
  font-size: 13px;
  color: #3A5A6B;
}

.note-foot-actions {
  margin-top: auto;
  font-size: 12px;
  color: #3A5A6B;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.note-foot-actions .sep {
  color: #3A5A6B;
}

.note-foot-actions a.plot-jump {
  color: #1A1F1C;
}

.note-foot-actions a.plot-jump:hover {
  color: #C8451B;
}

.empty-tight {
  padding: 16px 0 8px;
  font-size: 14px;
  color: #3A5A6B;
  border-bottom: 1px solid rgba(26, 31, 28, 0.12);
}
