.office { padding: 2.5rem 0 4rem; }
.office-title { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.2rem; }
.office-title h1 { font-size: clamp(3.5rem, 8vw, 6rem); line-height: .9; text-transform: uppercase; margin-top: .35rem; }
.office [hidden] { display: none; }
.office-toolbar { display: flex; flex-wrap: wrap; justify-content: end; gap: .5rem; }
.office-signin { max-width: 32rem; margin-top: 1.2rem; }
.recipe-method { white-space: pre-wrap; line-height: 1.5; }
.recipe-button { min-height: 37px; padding: .25rem 0; border: 0; background: none; color: var(--dark-red); cursor: pointer; text-align: left; text-decoration: underline; font: inherit; font-weight: 700; }
.office-tabs a { text-decoration: none; border: 1px solid var(--edge); padding: .6rem .8rem; font-weight: 700; border-radius: 4px; font-size: .9rem; }
.office-tabs a[aria-current] { background: var(--red); color: var(--cream); border-color: var(--red); }
.section-title { padding-block: 1.2rem; }
.section-title h2 { font-size: clamp(2rem, 4.9vw, 3.1rem); text-transform: uppercase; line-height: 1; margin-bottom: .3rem; }
.section-title p { color: var(--muted); line-height: 1.5; }
.office-card { background: var(--cream); border: 1px solid var(--edge); border-top: 3px solid var(--red); border-radius: 5px; padding: 1rem; margin-bottom: 1rem; }
.office-card h3 { font-size: 1.22rem; margin-bottom: .65rem; }
.office-card > p { margin-block: .5rem; }
.office-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.plain { background: #f7ebd5; border-color: var(--edge); }
.plain:hover { background: var(--yellow); }
.office form { display: grid; gap: .8rem; margin: .7rem 0 .25rem; }
.office form > button { justify-self: start; }
.office label { display: grid; gap: .28rem; font-size: .9rem; font-weight: 700; }
.office input, .office select, .office textarea { display: block; width: 100%; min-width: 0; background: #fffbf3; color: var(--ink); border: 1px solid #b9a287; border-radius: 4px; padding: .62rem .7rem; min-height: 42px; font: inherit; font-weight: 500; }
.office fieldset { min-width: 0; margin: 0; border: 1px solid var(--edge); border-radius: 4px; padding: .75rem; }
.office legend { padding: 0 .35rem; font-weight: 800; }
.office-line { display: grid; grid-template-columns: minmax(0, 2fr) minmax(85px, 1fr) auto; align-items: end; gap: .5rem; margin-bottom: .65rem; }
.office-line.with-cost { grid-template-columns: minmax(0, 2fr) minmax(75px, 1fr) minmax(85px, 1fr) auto; }
.remove-line { font-size: 1.2rem; padding-inline: .65rem; }
.notice { color: #4c3518; background: #ffeab3; padding: .7rem 1rem; border-radius: 4px; margin: .65rem 0 0; }
.notice.error { color: #80170e; background: #ffe0d6; }
.table-scroll { overflow-x: auto; margin: .5rem 0; }
.office table { text-align: left; width: 100%; border-collapse: collapse; font-size: .94rem; }
.office th, .office td { border-bottom: 1px solid var(--edge); padding: .48rem .52rem; }
.office th { font-size: .85rem; color: var(--muted); }
.office details { margin: .75rem 0; }
.office summary { cursor: pointer; font-weight: 800; color: var(--dark-red); }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.metrics span { font-size: .93rem; }
.metrics strong { display: block; font-size: clamp(1.16rem, 2.4vw, 1.7rem); margin-top: .35rem; }
.stock-assistant-link, .stock-history { margin: .4rem 0 1rem; }
.stock-assistant-link a { text-decoration: none; }
.stock-history { color: var(--muted); max-width: 75ch; }
.stock-plan-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stock-flag { display: inline-block; margin-top: .25rem; padding: .18rem .38rem; border-radius: .25rem; font-size: .8rem; font-weight: 750; background: #e7ebdf; }
.stock-flag-out { background: #ffded1; color: #7e2018; }
.stock-flag-low, .stock-flag-running { background: #ffedac; color: #654506; }
.stock-metric-running { border-top-color: #b2832d; }
.stock-questions { display: flex; flex-wrap: wrap; gap: .35rem; }
.stock-questions .button { font-size: .85rem; }
.office .stock-ask { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
#stock-ask-status:not(:empty), #stock-answer:not(:empty) { margin-top: .65rem; }
#stock-answer { line-height: 1.45; }
@media (max-width: 670px) {
  .office-columns { grid-template-columns: 1fr; gap: 0; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
}
@media (max-width: 460px) {
  .office { padding-top: 1.5rem; }
  .office-line, .office-line.with-cost { grid-template-columns: minmax(0, 1fr) minmax(65px, 1fr) auto; }
  .office-line > label:first-child { grid-column: 1 / -1; }
  .office-line:not(.with-cost) .remove-line { grid-column: 3; }
}
