.card:not([data-reel="design-system"]) .art {
  container-type: size;
}
.result-sheet {
  --sheet-line: #554e43;
  --sheet-gold: var(--command-gold);
  width: 100%;
  max-width: 470px;
  height: 100%;
  margin-inline: auto;
  padding: 6px clamp(14px, 5.5cqw, 25px) 14px;
  display: grid;
  align-content: center;
  color: var(--ink);
  font: 450 15px/1.3 var(--sans);
}
.reel-icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}
.sheet-line {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--sheet-line);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}
.sheet-line > span { margin-left: auto; color: var(--quiet); font-variant-numeric: tabular-nums; }
.sheet-line .reel-icon { color: var(--sheet-gold); }
.result-sheet .message-copy {
  margin: 10px 0 0;
  font: 400 clamp(21px, 7cqw, 30px)/1.1 var(--serif);
  text-wrap: pretty;
}
.sheet-advice {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--sheet-line);
  color: var(--sand);
  font: 400 clamp(18px, 6cqw, 23px)/1.14 var(--serif);
  text-wrap: pretty;
}

/* Work log: one source per row, in the order AION reads them. */
.work-log {
  display: none;
  align-content: center;
  gap: 11px;
  width: 100%;
  max-width: 470px;
  height: 100%;
  margin: 0 auto;
  padding: 8px clamp(14px, 5.5cqw, 25px) 14px;
  list-style: none;
}
.work-log li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  opacity: 0;
  transform: translateY(6px);
}
.work-log li.is-on { opacity: 1; transform: none; }
.work-log li.is-done { opacity: .62; }
.log-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #574d41;
  border-radius: 6px;
  color: var(--sand);
  background: #211f1c;
}
.work-log li.is-on:not(.is-done) .log-icon { border-color: #a48b69; }
.log-text strong { display: block; color: var(--ink); font: 560 13.5px/1.28 var(--sans); }
.log-text span { display: block; color: var(--quiet); font: 400 12.5px/1.28 var(--sans); }
.log-source {
  display: inline-block;
  margin-bottom: 3px;
  padding: 2px 7px;
  border: 1px solid #4e4539;
  border-radius: 999px;
  background: #201e1a;
  color: var(--sand);
  font: 620 10px/1.2 var(--sans);
  font-style: normal;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.work-log [data-kind="method"] .log-source {
  border-color: #9e8159;
  background: #2b2318;
  color: var(--command-gold);
}
.work-log [data-kind="method"] .log-icon {
  border-color: #8f7552;
  color: var(--command-gold);
}
.work-log [data-kind="repo"] .log-source {
  border-color: #6b5e4e;
  background: #23201c;
  color: #e4d4bc;
}
.work-log [data-kind="tool"] .log-source {
  border-color: #4f5852;
  background: #1b201d;
  color: #c7d9ce;
}
.work-log [data-kind="alert"] .log-icon { color: var(--command-gold); border-color: var(--command-gold); }
.work-log [data-kind="alert"] .log-source {
  border-color: var(--command-gold);
  background: #332617;
  color: var(--command-gold);
}
.work-log [data-kind="alert"] .log-text span { color: var(--command-gold); }
@media (prefers-reduced-motion: no-preference) {
  .work-log li { transition: opacity .5s cubic-bezier(.16, 1, .3, 1), transform .5s cubic-bezier(.16, 1, .3, 1); }
}

/* Morning: plan, draft, one tip. */
.day-plan { display: grid; margin: 0; padding: 0; list-style: none; }
.day-plan li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  padding: 4px 8px 4px 10px;
  border-left: 1px solid var(--sheet-line);
  font-size: 14px;
  line-height: 1.25;
}
.day-plan time { color: var(--sand); font: 400 17px/1 var(--serif); font-variant-numeric: tabular-nums; }
.day-plan .is-priority { margin-block: 2px; padding-block: 6px; border-left: 2px solid var(--sheet-gold); border-radius: 0 4px 4px 0; background: #29231c; }
.day-plan small { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; color: var(--sheet-gold); font-size: 12px; white-space: nowrap; }
.day-plan small .reel-icon { width: 12px; height: 12px; }
.mail-draft { margin-top: 11px; padding: 9px 11px 10px; border: 1px solid #4d453a; border-radius: 6px; background: #1f1d1a; }
.mail-draft .sheet-line { padding-bottom: 6px; }
.mail-draft .sheet-line > span { color: var(--sheet-gold); }
.draft-copy { margin: 7px 0 9px; font: 400 clamp(18px, 6cqw, 22px)/1.12 var(--serif); text-wrap: pretty; }
.draft-actions { display: flex; gap: 6px; }
.draft-actions span { padding: 5px 12px; border: 1px solid #6a5c4b; border-radius: 4px; color: var(--ink); font: 600 13px/1.2 var(--sans); }
.draft-actions .is-send { border-color: #dac3a4; background: #dac3a4; color: #181510; }
.day-result .sheet-advice { margin-top: 11px; padding-top: 0; border-top: 0; font-size: clamp(17px, 5.6cqw, 22px); }

/* Negotiation: the overdue invoice decides the next step. */
.deal-alert {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  padding: 9px 11px;
  border: 1px solid #7a6347;
  border-radius: 5px;
  background: #27211a;
  color: var(--sheet-gold);
  font-size: 13px;
  line-height: 1.3;
}
.deal-alert .reel-icon { width: 22px; height: 22px; }
.deal-alert strong { display: block; color: var(--ink); font-size: 14px; font-weight: 600; }
@container (max-height: 335px) {
  .day-plan li { padding-block: 3px; }
  .day-plan .is-priority { padding-block: 4px; }
  .mail-draft { margin-top: 8px; padding: 7px 10px 8px; }
  .draft-copy { margin: 5px 0 7px; }
  .day-result .sheet-advice { margin-top: 8px; }
  .work-log { gap: 8px; }
}
