@font-face {
  font-family: Manrope;
  src: url('/assets/manrope.ttf') format('truetype');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: url('/assets/fraunces.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  font-family: Manrope, Arial, sans-serif;
  color: #143c2b;
  background: #fff4e4;
  font-synthesis: none;
  line-height: 1.55;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  min-height: 44px;
  border: 1px solid #d8c8b6;
  border-radius: 14px;
  padding: 0.65rem 1rem;
  background: #fffcf5;
  color: #143c2b;
  cursor: pointer;
  font-weight: 750;
}
button:not(:disabled):hover {
  background: #d1e9d7;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
:focus-visible {
  outline: 3px solid #c44a70;
  outline-offset: 4px;
}
.primary {
  background: #194d37;
  color: #fff;
  border-color: #194d37;
}
.primary:not(:disabled):hover {
  background: #103c28;
}
.quiet {
  background: transparent;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1rem, 5vw, 4rem);
  border-bottom: 1px solid #dac9b5;
}
.brand img {
  display: block;
  width: 180px;
  max-width: 35vw;
  height: auto;
}
.header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.private {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.025em;
}
main {
  max-width: 1380px;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 3rem);
}
h1,
h2 {
  font-family: Fraunces, Georgia, serif;
  line-height: 1.05;
  margin: 0;
}
h1 {
  font-size: clamp(2.5rem, 4.5vw, 4.5rem);
  letter-spacing: -0.04em;
}
h2 {
  font-size: 1.65rem;
}
p {
  margin: 0.65rem 0 1rem;
}
.eyebrow {
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.13em;
}
.heading,
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.heading {
  margin-bottom: 2rem;
}
.week-controls {
  display: flex;
  gap: 0.45rem;
  white-space: nowrap;
}
.calendar-section {
  padding: 1.25rem;
  background: #d4ead7;
  border-radius: 24px;
  margin-bottom: 1.25rem;
}
.calendar-section h2 {
  font-size: 1.5rem;
}
.week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 1rem;
}
.day {
  padding: 0.8rem 0.4rem;
  background: #ffffff8c;
  border-radius: 16px;
  display: grid;
  text-align: center;
  gap: 0.2rem;
}
.day.today {
  background: #174a34;
  color: #fff;
}
.day strong {
  font-size: 1.4rem;
}
.day small {
  font-size: 0.72rem;
}
.day .weekday {
  font-size: 0.75rem;
  font-weight: 750;
}
.tabs {
  display: flex;
  gap: 0.5rem;
  overflow: auto;
  padding: 0.25rem 0 1rem;
}
.tabs button {
  white-space: nowrap;
}
.tabs [aria-pressed='true'] {
  background: #ffdba0;
  border-color: #d9ac65;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.3fr);
  gap: 1rem;
  align-items: start;
}
.surface {
  background: #fffcf5;
  border: 1px solid #d9c9b6;
  border-radius: 25px;
  padding: clamp(1rem, 2vw, 1.7rem);
  min-width: 0;
}
.section-heading {
  margin-bottom: 1rem;
}
.section-heading span {
  font-size: 0.8rem;
  white-space: nowrap;
}
.order-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 1rem;
  width: 100%;
  text-align: left;
  margin-bottom: 0.65rem;
  padding: 0.65rem;
}
.order-row[aria-pressed='true'] {
  border-color: #174a34;
  background: #edf5e9;
}
.order-row img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
}
.order-row strong,
.order-row small {
  display: block;
}
.order-row small {
  font-size: 0.75rem;
}
.badge {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  background: #d8eadb;
  font-weight: 800;
}
.badge.pending {
  background: #ffe0a6;
}
.badge.rejected,
.badge.cancelled {
  background: #f7d0d5;
}
.badge.preparing {
  background: #ead8fa;
}
.badge.ready,
.badge.on_the_way {
  background: #cfe5f7;
}
.detail-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.detail-heading h2 {
  font-size: 2rem;
}
.detail-products {
  margin-block: 1rem;
}
.product {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid #e4d7c8;
}
.product img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
}
.product p {
  margin: 0;
  font-size: 0.8rem;
}
.facts {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 0.6rem;
  font-size: 0.85rem;
}
.facts dt {
  font-weight: 850;
}
.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.facts a {
  color: #174a34;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.payment {
  padding: 1rem;
  border-radius: 17px;
  background: #fff0c9;
  margin-top: 1.2rem;
}
.payment p {
  margin: 0.2rem 0;
}
.note {
  padding: 1rem;
  background: #d9eadc;
  border-radius: 15px;
  font-size: 0.85rem;
}
.muted {
  color: #566d5e;
}
.small {
  font-size: 0.78rem;
}
.pagination {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}
#announcement {
  min-height: 1.5rem;
  white-space: pre-wrap;
}
dialog {
  width: min(540px, calc(100% - 2rem));
  padding: 1.7rem;
  border: 1px solid #d4bfa7;
  border-radius: 25px;
  background: #fff9ee;
  color: #143c2b;
}
dialog::backdrop {
  background: #13291dbb;
}
dialog h2 {
  margin-bottom: 1rem;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-top: 1.25rem;
}
label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 800;
  margin-block: 0.8rem;
}
input,
select {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem;
  border: 1px solid #cfbda7;
  border-radius: 12px;
  color: inherit;
  background: #fffcf7;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 1rem 0;
}
legend {
  font-weight: 850;
}
.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 1200px;
}
.simulation-banner {
  grid-column: 1 / -1;
}
.welcome {
  padding: 2.5rem;
  background: #ffd995;
  border-radius: 30px;
  overflow: hidden;
}
.welcome h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
}
.welcome img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  margin-top: 1rem;
}
.login-card h2 {
  font-size: 2.4rem;
}
.login-card .primary {
  width: 100%;
  margin-top: 1rem;
}
.login-card input {
  font-size: 1.6rem;
  letter-spacing: 0.2em;
}
.login-card #human-check {
  min-height: 70px;
}
.login-card [role='status'] {
  font-size: 0.86rem;
  min-height: 1.4rem;
  margin-top: 1rem;
}
.document-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.document-choices label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem;
  border: 1px solid #d8c8b6;
  border-radius: 14px;
  cursor: pointer;
}
.document-choices label:has(input:checked) {
  background: #d4ead7;
  border-color: #194d37;
}
.document-choices input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 0;
}
[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  .workspace,
  .login-layout {
    grid-template-columns: 1fr;
  }
  .heading {
    display: block;
  }
  .week-controls {
    margin-top: 1rem;
  }
  .week {
    gap: 0.25rem;
  }
  .day {
    border-radius: 10px;
    padding: 0.7rem 0.1rem;
  }
  .day small {
    font-size: 0.62rem;
  }
  .calendar-section {
    padding: 0.8rem;
  }
  .calendar-section .section-heading {
    display: block;
  }
  header {
    padding: 1rem;
  }
  .private {
    font-size: 0.66rem;
  }
  .header-actions {
    gap: 0.5rem;
  }
  .welcome {
    display: none;
  }
  .login-card {
    margin-top: 1rem;
  }
  .surface {
    border-radius: 22px;
  }
  .product {
    grid-template-columns: 52px minmax(0, 1fr) auto;
  }
  .product img {
    width: 52px;
    height: 52px;
  }
  .facts {
    grid-template-columns: 80px minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.actual-time-options[hidden] {
  display: none;
}
.actual-time-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  max-height: 210px;
  overflow: auto;
  margin-top: 0.75rem;
  padding: 0.25rem;
}
.actual-time-grid button {
  padding: 0.6rem 0.25rem;
  min-width: 0;
}
#completion-dialog {
  max-height: 88dvh;
  overflow-y: auto;
}
#completion-fields {
  display: grid;
  gap: 0.85rem;
}
#completion-fields label {
  display: grid;
  gap: 0.4rem;
}
#completion-fields input {
  width: 100%;
  box-sizing: border-box;
}
#completion-fields fieldset {
  min-width: 0;
  border: 1px solid var(--line, #d7c9b6);
  border-radius: 18px;
  padding: 0.85rem;
}
#completion-fields [aria-pressed='true'] {
  background: #1b4b36;
  color: #fff9ef;
}
.money-facts .muted {
  overflow-wrap: anywhere;
}
#work-items {
  margin-top: 1.2rem;
}
