@charset "UTF-8";
:root {
  --paper: #f6f5ef;
  --card: #fffef9;
  --ink: #172f39;
  --muted: #627174;
  --line: #dedfd4;
  --blue: #245c78;
  --mint: #e5efe7;
  --gold: #967c40;
  --red: #a33d34;
  color: var(--ink);
  background: var(--paper);
  font-family: 'Yu Gothic UI', Meiryo, system-ui, sans-serif;
  font-synthesis: none;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: radial-gradient(ellipse at 75% 0%, #eeeade75, transparent 55%), var(--paper);
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
}
button:disabled {
  cursor: default;
  opacity: 0.48;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #3e8ea8;
  outline-offset: 3px;
}
a {
  color: var(--blue);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h2 {
  font-size: 18px;
}
h3 {
  font-size: 16px;
  line-height: 1.6;
}
p {
  line-height: 1.8;
}
small {
  font-size: 12px;
}
button {
  transition: background 0.15s;
}
button:hover:not(:disabled) {
  filter: brightness(0.95);
}
[hidden] {
  display: none !important;
}
.app-shell {
  max-width: 1440px;
  margin: auto;
  padding: 0 40px;
}
.masthead {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.brand-sign {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}
.brand-sign small {
  display: block;
  font-size: 9px;
  letter-spacing: 1.6px;
  color: var(--muted);
  margin-top: 3px;
}
.masthead nav {
  display: flex;
  gap: 8px;
}
.masthead nav button,
.masthead nav .novel-link {
  white-space: nowrap;
}
.novel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
  text-align: center;
}
.novel-link:hover {
  background: var(--mint);
}
.quiet-button {
  padding: 10px 14px;
  border-radius: 8px;
  background: transparent;
}
.page-heading {
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.eyebrow,
.small-label {
  font-size: 11px;
  letter-spacing: 1.6px;
  color: var(--muted);
  font-weight: 700;
}
.eyebrow {
  margin-bottom: 5px;
}
h1 {
  font-size: 38px;
  letter-spacing: 2px;
  font-weight: 750;
}
.title-sun {
  color: var(--gold);
  margin-left: 14px;
}
.tagline {
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}
.chapter-stamp {
  display: grid;
  gap: 6px;
  text-align: right;
  border-right: 3px solid var(--gold);
  padding-right: 16px;
}
.chapter-stamp small {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
}
.chapter-stamp span {
  font-size: 13px;
  color: var(--blue);
  letter-spacing: 2px;
}
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 22px;
  overflow: hidden;
}
.stat {
  padding: 18px 22px;
  border-right: 1px solid var(--line);
  display: grid;
  gap: 4px;
}
.stat:last-child {
  border: 0;
}
.stat > span,
.stat > small {
  color: var(--muted);
  font-size: 11px;
}
.stat strong {
  font-size: 25px;
  font-variant-numeric: tabular-nums;
}
.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 24px;
}
.office-column {
  display: grid;
  gap: 16px;
}
.office-card,
.paper-card,
.desk-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  overflow: hidden;
}
.card-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 20px 22px;
}
.card-topline h2 {
  margin-top: 4px;
}
.status-chip,
.badge {
  font-size: 11px;
  padding: 5px 9px;
  background: var(--mint);
  border-radius: 20px;
  display: inline-block;
  white-space: nowrap;
}
.office-stage {
  height: 330px;
  position: relative;
  background: radial-gradient(ellipse at center, #eee7d5, transparent 68%);
}
#office-canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.scene-caption {
  position: absolute;
  bottom: 13px;
  text-align: center;
  width: 100%;
  font-size: 11px;
  color: var(--muted);
  pointer-events: none;
}
.guide-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: #e7eee7;
  border-radius: 14px;
}
.mascot-portrait {
  width: 67px;
  height: 67px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  background: #fbfaf2;
  position: relative;
}
.mascot-portrait img {
  position: absolute;
  width: 143px;
  max-width: none;
  left: -4px;
  top: -22px;
}
.guide-name {
  font-size: 13px;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}
.guide-name small {
  font-weight: 400;
  color: var(--muted);
  margin-left: 7px;
}
.guide-card p {
  font-size: 13px;
}
.paper-card {
  padding: 20px 22px;
}
.goal-card {
  border-left: 4px solid #ac955a;
}
.goal-card h2 {
  margin: 6px 0 12px;
}
.goal-card p {
  font-size: 13px;
}
.goal-detail {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.goal-detail span {
  padding: 5px 8px;
  background: #f2efe4;
  font-size: 12px;
  border-radius: 5px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}
.section-caption {
  font-size: 12px;
  color: var(--muted);
  margin: 20px 0 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.text-button {
  color: var(--blue);
  background: none;
  font-size: 12px;
  padding: 6px;
}
.desk-header {
  padding: 23px 24px 17px;
}
.desk-header h2 {
  margin-top: 5px;
  font-size: 21px;
}
.desk-header > span:last-child {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-top: 8px;
}
.desk-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid var(--line);
  padding: 0 14px;
  gap: 3px;
}
.desk-tabs button {
  background: none;
  border-bottom: 3px solid transparent;
  padding: 14px 3px;
  font-size: 13px;
  color: var(--muted);
}
.desk-tabs button[aria-selected='true'] {
  color: var(--blue);
  border-bottom-color: var(--blue);
  font-weight: 700;
}
.desk-body {
  padding: 18px 22px;
  min-height: 390px;
  max-height: 800px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #c4cdc5 transparent;
}
.job-card,
.shop-card,
.worker-card,
.scenario-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 11px;
  margin-bottom: 12px;
  background: #fffefa;
}
.job-card.growth {
  border-color: #b9a375;
  background: #fbf7eb;
}
.job-card.active {
  background: #f4f7f2;
}
.job-card .card-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 8px;
}
.job-card h3 {
  margin: 7px 0;
}
.job-meta {
  display: flex;
  gap: 8px 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0;
}
.job-meta strong {
  color: var(--ink);
}
.job-card p,
.shop-card p,
.worker-card p,
.scenario-card p {
  font-size: 12px;
}
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
}
.reward {
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.reward small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}
.primary-button,
.secondary-button {
  padding: 11px 17px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}
.primary-button {
  background: var(--blue);
  color: #fff;
}
.secondary-button {
  background: #eaf0ec;
  color: var(--blue);
  border: 1px solid #d6e0d9;
}
.full-width {
  width: 100%;
}
.warning {
  color: var(--red) !important;
}
.warning-box {
  background: #fcf0e8;
  border: 1px solid #ead5c4;
  padding: 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.8;
  margin: 12px 0;
}
.positive {
  color: #34664e;
}
.fine-print {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 10px;
}
.muted {
  color: var(--muted);
}
.empty {
  padding: 25px 14px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.progress-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 9px;
  align-items: center;
  font-size: 11px;
  margin: 8px 0;
}
progress {
  width: 100%;
  height: 7px;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  accent-color: #4d8776;
}
progress::-webkit-progress-bar {
  background: #e3e5d9;
}
progress::-webkit-progress-value {
  background: #4d8776;
}
.reason {
  font-size: 11px !important;
  color: #7e6540;
  background: #f4efdf;
  padding: 7px 9px;
  border-radius: 6px;
  margin-top: 9px;
  line-height: 1.65;
}
.select-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 13px;
}
.select-row label {
  font-size: 11px;
  color: var(--muted);
}
select {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 9px 6px;
  border: 1px solid #cbd3c9;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font-size: 12px;
  margin-top: 5px;
}
.allocation {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin: 12px 0;
}
.allocation span {
  font-size: 10px;
  padding: 7px 2px;
  text-align: center;
  background: #f0f1e8;
  border-radius: 5px;
}
.allocation b {
  display: block;
  font-size: 14px;
  margin-top: 2px;
}
.allocation span:nth-child(2) {
  background: #e5efe7;
}
.allocation span:nth-child(4) {
  background: #e2edf1;
}
.day-bar {
  background: #edf2ed;
  border-top: 1px solid var(--line);
  padding: 17px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.day-bar strong {
  display: block;
  font-size: 13px;
}
.day-bar small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.day-bar button {
  white-space: nowrap;
}
.desk-footer {
  font-size: 10px;
  color: var(--muted);
  padding: 11px 22px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
  margin-top: 14px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}
.page-footer a {
  margin-left: 10px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
th,
td {
  padding: 10px 7px;
  text-align: right;
  border-bottom: 1px solid #e5e7dd;
  white-space: nowrap;
}
th:first-child,
td:first-child {
  text-align: left;
}
th {
  color: var(--muted);
  font-weight: 500;
  font-size: 11px;
}
.mini-ledger {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  font-size: 13px;
  margin: 14px 0;
}
.mini-ledger dt {
  color: var(--muted);
}
.mini-ledger dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}
details {
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}
summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
details p {
  font-size: 12px;
  margin-top: 10px;
}
.welcome-heading {
  font-size: 24px;
  margin: 8px 0 12px;
}
.scenario-card {
  border-left: 3px solid #a4bca7;
}
.scenario-card h3 {
  margin-bottom: 6px;
}
.scenario-card button {
  margin-top: 12px;
  width: 100%;
}
.paper-dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  color: var(--ink);
  max-width: 620px;
  width: calc(100% - 28px);
  max-height: 90dvh;
  padding: 30px;
  box-shadow: 0 25px 100px #183d3930;
  overflow: auto;
}
.paper-dialog::backdrop {
  background: #142f395c;
  backdrop-filter: blur(3px);
}
.paper-dialog h2 {
  font-size: 24px;
  margin: 12px 28px 15px 0;
  line-height: 1.5;
}
.paper-dialog h3 {
  margin: 18px 0 8px;
}
.paper-dialog p {
  font-size: 13px;
  margin: 10px 0;
}
.dialog-close {
  position: absolute;
  right: 16px;
  top: 12px;
  font-size: 24px;
  background: none;
  padding: 6px;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
  flex-wrap: wrap;
}
.dialog-actions button {
  flex: 1;
}
.result-mark {
  font-size: 43px;
  color: var(--gold);
  margin-top: 15px;
}
.result-card {
  border: 1px solid #b9a375;
  background: #f6f1df;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 15px;
}
.setting-row {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.setting-row input {
  width: 22px;
  height: 22px;
  accent-color: var(--blue);
}
.setting-row:has(#motion-setting) { flex-wrap: wrap; }
#motion-setting { width: min(100%, 220px); }
.toast {
  position: fixed;
  left: 50%;
  bottom: 25px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  box-shadow: 0 5px 25px #152b3333;
  padding: 13px 20px;
  border-radius: 10px;
  font-size: 13px;
  max-width: calc(100% - 32px);
  width: max-content;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  transition: opacity 0.2s;
}
.toast.visible {
  opacity: 1;
}
.skip-link {
  position: fixed;
  left: 10px;
  top: -100px;
  background: white;
  padding: 12px;
  z-index: 30;
}
.skip-link:focus {
  top: 10px;
}
.certificate-pair {
  width: 110px;
  display: block;
  margin: 10px auto;
}
.danger {
  color: var(--red);
}
.status-list {
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.9;
}
.income-note {
  font-size: 12px;
  color: var(--blue);
  padding: 8px 0;
}
.snapshot {
  font-size: 12px;
  margin-top: 10px;
  line-height: 1.8;
}
@media (min-width: 1100px) {
  .office-column {
    position: sticky;
    top: 16px;
  }
}
@media (max-width: 1050px) {
  .app-shell {
    padding: 0 22px;
  }
  .game-layout {
    gap: 17px;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
  .stat {
    padding: 15px;
  }
  .stat strong {
    font-size: 22px;
  }
  .office-stage {
    height: 280px;
  }
  .desk-body {
    padding: 15px;
  }
  .day-bar {
    padding: 14px;
    flex-wrap: wrap;
  }
  .day-bar button {
    flex: 1;
  }
  .guide-card {
    padding: 13px;
    gap: 10px;
  }
}
@media (max-width: 760px) {
  .app-shell {
    padding: 0 16px;
  }
  .masthead {
    min-height: 70px;
  }
  .brand-sign {
    font-size: 13px;
    gap: 7px;
  }
  .brand-sign img {
    width: 30px;
    height: 30px;
  }
  .brand-sign small {
    font-size: 7px;
    letter-spacing: 0.5px;
  }
  .quiet-button {
    font-size: 11px;
    padding: 9px 6px;
  }
  .masthead nav {
    gap: 0;
  }
  .page-heading {
    padding: 23px 0;
    align-items: flex-start;
  }
  h1 {
    font-size: 29px;
    letter-spacing: 1px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 0.5px;
  }
  .title-sun {
    margin-left: 7px;
  }
  .tagline {
    font-size: 11px;
  }
  .chapter-stamp {
    padding-right: 8px;
    gap: 5px;
    max-width: 105px;
  }
  .chapter-stamp small {
    font-size: 8px;
    letter-spacing: 0;
  }
  .chapter-stamp strong {
    font-size: 11px;
  }
  .chapter-stamp span {
    font-size: 10px;
    letter-spacing: 0;
  }
  .stats-bar {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 16px;
  }
  .stat {
    padding: 12px 15px;
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .stat strong {
    font-size: 22px;
  }
  .stat > small {
    font-size: 9px;
  }
  .game-layout {
    grid-template-columns: 1fr;
  }
  .office-column {
    gap: 12px;
  }
  .office-stage {
    height: 250px;
  }
  .card-topline {
    padding: 15px 18px;
  }
  .card-topline h2 {
    font-size: 16px;
  }
  .small-label {
    font-size: 9px;
  }
  .office-column > .paper-card {
    padding: 17px;
  }
  .office-column > .paper-card:last-child {
    display: none;
  }
  .guide-card p {
    font-size: 12px;
  }
  .mascot-portrait {
    width: 56px;
    height: 56px;
  }
  .mascot-portrait img {
    width: 126px;
    top: -18px;
  }
  .guide-name small {
    font-size: 10px;
  }
  .goal-card h2 {
    font-size: 16px;
  }
  .desk-body {
    max-height: none;
    min-height: 300px;
  }
  .desk-header {
    padding: 20px;
  }
  .day-bar {
    position: sticky;
    bottom: 0;
    z-index: 5;
    box-shadow: 0 -4px 14px #1735330b;
    flex-wrap: nowrap;
    border-radius: 0 0 12px 12px;
  }
  .day-bar strong {
    font-size: 11px;
  }
  .day-bar small {
    max-width: 130px;
    line-height: 1.6;
  }
  .day-bar button {
    flex: 0;
    font-size: 12px;
    padding: 12px;
  }
  .desk-panel {
    overflow: visible;
  }
  .desk-footer {
    padding: 12px;
    font-size: 10px;
  }
  .page-footer {
    display: block;
    font-size: 9px;
  }
  .page-footer > span {
    display: block;
    margin-bottom: 8px;
  }
  .paper-dialog {
    padding: 24px 19px;
  }
  .paper-dialog h2 {
    font-size: 21px;
  }
  .job-card {
    padding: 14px;
  }
  .job-meta {
    font-size: 11px;
    gap: 6px 10px;
  }
  .card-bottom {
    align-items: center;
  }
  .secondary-button {
    font-size: 12px;
    padding: 10px;
  }
  .allocation {
    gap: 3px;
  }
  .allocation span {
    font-size: 9px;
  }
  .allocation b {
    font-size: 13px;
  }
  .toast {
    bottom: 85px;
  }
  .select-row {
    gap: 8px;
  }
  .goal-detail span {
    font-size: 10px;
  }
  .section-heading h2 {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion='full']),
  html:not([data-motion='full']) *,
  html:not([data-motion='full']) *::before,
  html:not([data-motion='full']) *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.reduced-motion * {
  transition: none !important;
}
.credits-shell {
  max-width: 850px;
  margin: 0 auto;
  padding: 44px 24px;
  line-height: 1.9;
}
.credits-shell h1 {
  font-size: 30px;
  margin: 25px 0;
}
.credits-shell h2 {
  margin: 28px 0 12px;
}
.credits-shell p {
  margin: 12px 0;
  font-size: 14px;
}
.credits-shell code {
  overflow-wrap: anywhere;
}
.license-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #eaece2;
  padding: 20px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.6;
}
/* v0.3: decisions, provenance and compact office controls. */
.compact-header {
  min-height: 74px;
  margin-bottom: 18px;
  gap: 14px;
}
.compact-header .brand-sign small {
  font-size: 14px;
  letter-spacing: 0;
  color: var(--ink);
  margin-top: 3px;
}
.header-calendar {
  text-align: center;
  font-variant-numeric: tabular-nums;
  display: grid;
  gap: 5px;
}
.header-calendar small {
  color: var(--muted);
}
.desk-tabs {
  grid-template-columns: repeat(3, 1fr);
}
.task-trace {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: grid;
  gap: 8px;
}
.task-trace li {
  border-left: 3px solid #9cb8ad;
  padding: 6px 10px;
  background: #edf2ed;
  font-size: 11px;
  display: grid;
  gap: 3px;
}
.task-trace li strong {
  font-size: 12px;
}
.task-trace small {
  color: var(--muted);
  font-size: 10px;
}
.pipeline {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  margin: 12px 0;
  font-size: 10px;
  color: var(--muted);
}
.pipeline span {
  padding: 5px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.pipeline .current {
  color: #245c78;
  border-color: #72998c;
  background: #e3ede4;
  font-weight: 700;
}
.estimate {
  display: block;
  margin: 10px 0;
  font-size: 13px;
  color: #245c78;
}
.skill-row {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 12px 0;
  font-size: 13px;
}
.skill-row small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.skill-row button {
  font-size: 11px;
  padding: 8px;
}
.office-people {
  display: grid;
  gap: 7px;
}
.actor-button {
  width: 100%;
  background: #edf2ec;
  border: 1px solid #d9e3d8;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: left;
  display: grid;
  gap: 5px;
}
.actor-button strong {
  font-size: 12px;
}
.actor-button span,
.actor-button small {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}
.ai-readout {
  background: #edf1f4;
  margin-top: 8px;
}
.office-queue {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 11px;
  padding: 12px 0;
}
.issue-card {
  border: 1px solid #d9a791;
  border-radius: 8px;
  background: #fff0df;
  padding: 12px;
  margin-top: 12px;
  font-size: 12px;
}
.issue-card p {
  font-size: 11px;
  margin: 8px 0;
}
.issue-card button {
  font-size: 11px;
}
.impact-row {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 8px 0;
  display: grid;
  gap: 6px;
  font-size: 12px;
}
.impact-row b {
  color: var(--muted);
}
.day-feedback {
  padding: 13px 20px;
  background: #e5eee1;
  font-size: 12px;
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--line);
}
.day-feedback span {
  font-size: 11px;
}
.chart {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 15px;
  overflow: visible;
}
.chart text {
  fill: #627174;
  font-size: 11px;
  font-family: inherit;
}
.chart-zero {
  stroke: #aebcb5;
  stroke-width: 1;
}
.line-actual {
  stroke: #245c78;
  stroke-width: 3;
  fill: none;
}
.line-certain {
  stroke: #438675;
  stroke-width: 2;
  stroke-dasharray: 2 5;
  fill: none;
}
.line-expected {
  stroke: #bc8137;
  stroke-width: 2.5;
  stroke-dasharray: 8 5;
  fill: none;
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 10px;
  color: var(--muted);
  margin: 6px 0 16px;
}
.bar-receipt {
  fill: #76a68a;
}
.bar-financing {
  fill: #599eae;
}
.bar-fixed {
  fill: #315b70;
}
.bar-direct {
  fill: #d3945b;
}
.bar-investment {
  fill: #c7b566;
}
.bar-repair {
  fill: #b76d60;
}
.bar-backlog {
  fill: #d3dcd4;
}
#panel-finance > h3,
#panel-invest > h3 {
  margin: 23px 0 12px;
}
#office-canvas {
  cursor: pointer;
}
.office-column {
  position: static;
}
.desk-body {
  max-height: 950px;
}
.compact-header .brand-sign {
  white-space: normal;
}
@media (max-width: 760px) {
  .compact-header {
    min-height: 76px;
    gap: 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding-bottom: 8px;
  }
  .compact-header .brand-sign {
    font-size: 10px;
  }
  .compact-header .brand-sign small {
    font-size: 10px;
  }
  .compact-header .brand-sign img {
    width: 24px;
    height: 24px;
  }
  .header-calendar {
    font-size: 11px;
    min-width: 70px;
  }
  .header-calendar small {
    display: none;
  }
  .compact-header .quiet-button {
    font-size: 11px;
    padding: 8px 6px;
    min-height: 40px;
  }
  .compact-header nav {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 4px;
  }
  .desk-body {
    max-height: none;
  }
  .office-stage {
    height: 210px;
  }
  .office-people {
    grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  }
  .actor-button {
    padding: 9px;
  }
  .task-trace li {
    font-size: 10px;
  }
  .pipeline {
    font-size: 9px;
  }
  .day-feedback {
    padding: 12px;
  }
  .skill-row {
    font-size: 12px;
  }
  .chart text {
    font-size: 12px;
  }
}
.office-alerts {
  position: absolute;
  top: 5px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 2;
}
.office-alerts button {
  background: #ffefc7;
  border: 1px solid #bc9760;
  border-radius: 7px;
  font-size: 11px;
  padding: 8px 10px;
  box-shadow: 0 2px 8px #997d3620;
}
.compact-header .brand-sign small {
  display: inline;
  margin: 0 0 0 10px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}
@media (max-width: 760px) {
  .compact-header .brand-sign small {
    margin-left: 5px;
    padding-left: 5px;
    font-size: 10px;
  }
}
