* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Pretendard", "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #073b32;
  background:
    radial-gradient(circle at top left, rgba(255, 221, 130, 0.28), transparent 32rem),
    linear-gradient(135deg, #fff8df 0%, #eefaf2 52%, #fffaf0 100%);
}

.office-page {
  width: min(100%, 1040px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 10px;
}

.office-header,
.office-shell {
  border: 1px solid rgba(191, 153, 71, 0.28);
  background: rgba(255, 255, 250, 0.82);
  box-shadow: 0 20px 54px rgba(28, 73, 58, 0.12);
}

.office-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  border-radius: 28px 28px 0 0;
}

.logo-link img {
  width: 132px;
  display: block;
}

.home-button,
.primary-button,
.reset-button {
  border: 1px solid rgba(180, 139, 48, 0.32);
  border-radius: 18px;
  padding: 9px 15px;
  color: #073b32;
  background: #fffdf4;
  font-weight: 800;
  text-decoration: none;
}

.office-shell {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border-top: 0;
  border-radius: 0 0 28px 28px;
}

.office-title,
.office-included,
.office-request,
.office-actions,
.estimate-help {
  grid-column: 1 / -1;
}

.office-title {
  text-align: center;
}

.office-title span,
.office-step h2,
.office-included strong,
.office-estimate span,
.office-deposit strong {
  color: #a97716;
}

.office-title span {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff0b9;
  font-size: 12px;
  font-weight: 900;
}

.office-title h1 {
  margin: 6px 0 3px;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.08;
  letter-spacing: 0;
}

.office-title p,
.range-help,
.office-deposit p,
.office-estimate p {
  margin: 0;
  color: #4b655d;
  font-size: 14px;
  line-height: 1.55;
}

.office-step,
.office-included,
.office-estimate,
.office-deposit,
.office-request {
  border: 1px solid rgba(216, 178, 86, 0.34);
  border-radius: 16px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.office-step h2 {
  margin: 0 0 7px;
  font-size: 13px;
}

.square-grid,
.counter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.square-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.square-card {
  min-height: 64px;
  border: 1px solid #f0d99c;
  border-radius: 18px;
  background: linear-gradient(145deg, #fffdf5, #f5fff8);
  color: #084036;
  font: inherit;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.square-card strong,
.square-card small {
  display: block;
}

.square-card small {
  margin-top: 3px;
  color: #5a7068;
  font-size: 12px;
  font-weight: 700;
}

.square-card.is-selected {
  border-color: #1da47b;
  background: linear-gradient(145deg, #1c936f, #34bf90);
  color: #fff;
  box-shadow: 0 14px 32px rgba(23, 134, 100, 0.24);
}

.square-card.is-selected small {
  color: rgba(255, 255, 255, 0.84);
}

.range-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.range-head output {
  min-width: 82px;
  border-radius: 16px;
  padding: 5px 10px;
  background: #fff6d8;
  text-align: center;
  font-size: 20px;
  font-weight: 900;
}

.range-control {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 7px;
}

.range-control button,
.counter-card button {
  border: 1px solid #e6c77a;
  border-radius: 14px;
  background: #fff8df;
  color: #b37a10;
  font-size: 24px;
  font-weight: 900;
}

.range-control input {
  width: 100%;
  accent-color: #20aa7c;
}

.counter-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.counter-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  min-height: 48px;
  padding: 6px 8px;
  border-radius: 13px;
  background: #f7fff9;
}

.counter-card span {
  font-size: 12px;
  font-weight: 900;
}

.counter-card div {
  display: grid;
  grid-template-columns: 30px 34px 30px;
  align-items: center;
  gap: 6px;
}

.counter-card button {
  height: 30px;
  font-size: 16px;
}

.counter-card strong {
  text-align: center;
  font-size: 17px;
}

.office-included {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.office-included span {
  border-radius: 999px;
  padding: 5px 9px;
  background: #eefaf2;
  color: #0d5a49;
  font-size: 12px;
  font-weight: 800;
}

.office-estimate {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #fff5cf, #effff4);
}

.office-estimate strong {
  display: block;
  margin: 4px 0;
  font-size: clamp(32px, 7vw, 48px);
  color: #13805f;
  line-height: 1;
}

.office-deposit {
  background: rgba(232, 255, 239, 0.75);
}

.office-request {
  background: rgba(247, 255, 249, 0.8);
}

.request-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  color: #a97716;
  font-size: 13px;
}

.request-title-row span {
  color: #60786f;
  font-size: 11px;
}

.office-request textarea {
  display: block;
  width: 100%;
  min-height: 68px;
  resize: vertical;
  border: 1px solid rgba(29, 164, 123, 0.28);
  border-radius: 12px;
  padding: 9px 11px;
  color: #073b32;
  background: #fff;
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
}

.estimate-help {
  margin: -2px 0 0;
  color: #60786f;
  text-align: center;
  font-size: 11px;
}

.office-actions {
  display: grid;
  grid-template-columns: 0.8fr 1.8fr;
  gap: 10px;
}

.primary-button {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #168363, #2fc08f);
}

@media (max-width: 640px) {
  .office-page {
    padding: 8px;
  }

  .office-header {
    border-radius: 22px 22px 0 0;
  }

  .office-shell {
    grid-template-columns: 1fr;
    padding: 8px;
    border-radius: 0 0 22px 22px;
  }

  .office-title,
  .office-included,
  .office-request,
  .office-actions,
  .estimate-help {
    grid-column: auto;
  }

  .logo-link img {
    width: 112px;
  }

  .square-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .square-grid.two,
  .counter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .square-card {
    min-height: 58px;
    padding: 5px;
    font-size: 13px;
  }

  .square-card small {
    font-size: 10px;
    line-height: 1.25;
  }

  .counter-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .counter-card div {
    align-self: stretch;
    grid-template-columns: 30px 1fr 30px;
  }

  .office-title p,
  .range-help {
    font-size: 12px;
  }
}
