.ghq2 {
  --ghq-ink: #12324f;
  --ghq-blue: #13499b;
  --ghq-muted: #465d72;
  --ghq-line: #c9dceb;
  --ghq-sky: #eaf5ff;
  max-width: 1120px;
  margin: 0 auto 32px;
  color: var(--ghq-ink);
  line-height: 1.45;
}
.ghq2 *, .ghq2 *::before, .ghq2 *::after { box-sizing: border-box; }
.ghq2 input, .ghq2 button, .ghq2 select { font: inherit; }
.ghq2 :is(input, button, select, a):focus-visible { outline: 3px solid #246fd3; outline-offset: 3px; }
.ghq2 [hidden] { display: none !important; }
.ghq2 h2, .ghq2 h3 { color: var(--ghq-ink); font-weight: 750; }
.ghq2-header {
  display: flex;
  align-items: center;
  min-height: 130px;
  padding: 24px 30px;
  border: 1px solid var(--ghq-line);
  border-radius: 18px;
  background: linear-gradient(115deg, #f1f9ff, #dceeff);
}
.ghq2-header h2 { font-size: clamp(25px, 4vw, 40px); line-height: 1.12; margin: 6px 0 8px; }
.ghq2-header p { margin: 0; color: var(--ghq-muted); font-size: 16px; }
.ghq2-eyebrow { color: var(--ghq-blue); font-weight: 750; font-size: 12px; letter-spacing: .06em; }
.ghq2-content { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; align-items: start; }
.ghq2-left, .ghq2-right { min-width: 0; }
.ghq2-left, .ghq2-detail, .ghq2-lock-card {
  border: 1px solid var(--ghq-line);
  border-radius: 14px;
  padding: 18px;
  background: #fff;
}
.ghq2-field { display: grid; gap: 6px; font-size: 15px; font-weight: 700; margin: 0; }
.ghq2-field small { font-size: .85em; font-weight: 400; color: var(--ghq-muted); }
.ghq2 input[type="text"], .ghq2 input[type="number"], .ghq2 select {
  min-height: 44px;
  margin: 0;
  padding: 6px 9px;
  border: 1px solid #a9c5dd;
  border-radius: 8px;
  background: #fff;
  color: var(--ghq-ink);
  font-size: 16px;
}
.ghq2 input[type="text"], .ghq2 select { width: 100%; }
.ghq2 input[type="number"] { appearance: textfield; }
.ghq2 input::-webkit-inner-spin-button, .ghq2 input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.ghq2-title { margin: 20px 0 4px; font-size: 21px; }
.ghq2-hint { color: var(--ghq-muted); font-size: 14px; margin: 0 0 12px; }
.ghq2-rows { display: grid; gap: 9px; }
.ghq2-work { border: 1px solid var(--ghq-line); border-radius: 11px; padding: 10px; }
.ghq2-work-top, .ghq2-work-bottom, .ghq2-material-quantity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ghq2-work-top strong { font-size: 15px; line-height: 1.25; }
.ghq2-work-bottom { margin-top: 7px; }
.ghq2-work-bottom label { display: flex; gap: 6px; align-items: center; margin: 0; color: var(--ghq-muted); font-size: 13px; }
.ghq2-work-bottom input { width: 78px; }
.ghq2-work-bottom strong, .ghq2-material-quantity b { color: var(--ghq-blue); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ghq2-stepper { display: flex; align-items: center; flex: none; }
.ghq2-stepper button {
  min-width: 44px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  border: 1px solid #a9c5dd;
  border-radius: 8px 0 0 8px;
  padding: 0;
  background: var(--ghq-sky);
  color: var(--ghq-blue);
  font-size: 22px;
  font-weight: 750;
}
.ghq2-stepper button:last-child { border-radius: 0 8px 8px 0; }
.ghq2-stepper input[type="number"] { width: 55px; border-inline: 0; border-radius: 0; padding: 0 2px; text-align: center; }
.ghq2-result { background: #143f73; color: #fff; border-radius: 14px; padding: 14px 16px; }
.ghq2-result dl { margin: 0; }
.ghq2-result dl div { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; padding: 4px 0; }
.ghq2-result dt, .ghq2-result dd { margin: 0; color: #fff; }
.ghq2-result dd { font-weight: 750; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ghq2-result .ghq2-grand { border-top: 1px solid #7397bc; margin-top: 6px; padding-top: 8px; font-size: 18px; }
.ghq2-summary-link { display: none; }
.ghq2-detail { margin-top: 12px; }
.ghq2-detail h3 { font-size: 22px; margin: 0 0 8px; scroll-margin-top: 100px; }
.ghq2-matrix { display: flex; min-height: 48px; align-items: center; gap: 9px; padding: 8px; background: var(--ghq-sky); border-radius: 8px; margin: 0 0 8px; font-weight: 700; }
.ghq2-matrix input { margin: 0; width: 20px; height: 20px; flex: none; accent-color: var(--ghq-blue); }
.ghq2-material { display: grid; gap: 4px; padding: 10px 0; border-top: 1px solid var(--ghq-line); }
.ghq2-material > strong { font-size: 15px; }
.ghq2-material small { display: block; color: var(--ghq-muted); font-size: 13px; }
.ghq2-material-quantity { margin-top: 4px; }
.ghq2-material-quantity > div:last-child { text-align: right; }
.ghq2-product-choice { display: grid; gap: 4px; margin: 3px 0 0; color: var(--ghq-muted); font-size: 13px; }
.ghq2-material .ghq2-warning, .ghq2-material-status { color: #744713; }
.ghq2-material-status { font-size: 14px; margin: 6px 0 10px; }
.ghq2-material-status:empty, .ghq2-message:empty { display: none; }
.ghq2-actions { display: grid; gap: 8px; margin-top: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ghq2-action, .ghq2-lock-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-weight: 750;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  line-height: 1.3;
}
.ghq2-action-blue, .ghq2-lock-register { background: var(--ghq-blue); color: #fff; }
.ghq2-action-blue:hover, .ghq2-lock-register:hover { background: #0e3675; color: #fff; }
.ghq2-action-outline, .ghq2-lock-login { background: #fff; border-color: #a9c5dd; color: var(--ghq-blue); }
.ghq2-action-link { background: transparent; color: var(--ghq-blue); }
.ghq2-action:disabled, .ghq2-action[aria-disabled="true"] { opacity: .6; cursor: default; }
.ghq2-message { margin: 8px 0; font-size: 14px; color: #20533c; }
.ghq2-message.is-error { color: #9c2622; }
.ghq2-dialog {
  position: fixed;
  margin: auto;
  width: min(92vw, 520px);
  max-height: 85vh;
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--ghq-line);
  border-radius: 14px;
  color: var(--ghq-ink);
}
.ghq2-dialog::backdrop { background: #0b254482; }
.ghq2-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.ghq2-modal-head h3, .ghq2-modal-head form { margin: 0; }
.ghq2-modal-head button { min-height: 44px; width: 44px; padding: 0; background: var(--ghq-sky); color: var(--ghq-ink); border-radius: 8px; border: 0; font-size: 23px; }
.ghq2-saved-item { display: block; width: 100%; padding: 10px; min-height: 44px; text-align: left; border: 1px solid var(--ghq-line); border-radius: 8px; margin-top: 6px; background: #fff; color: var(--ghq-ink); }
.ghq2-locked { max-width: 760px; }
.ghq2-lock-card { margin: 14px auto; text-align: center; }
.ghq2-lock-card h3 { margin: 0 0 6px; font-size: 22px; }
.ghq2-lock-card p { color: var(--ghq-muted); margin: 0 0 12px; }
.ghq2-lock-actions { display: grid; gap: 8px; max-width: 390px; margin: 0 auto 10px; }
.ghq2-lock-symbol { display: none; }
.ghq2-print-area { display: none; }
@media (max-width: 760px) {
  .ghq2-header { min-height: auto; padding: 16px; }
  .ghq2-header p { font-size: 14px; }
  .ghq2-content { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 12px; }
  .ghq2-right { display: contents; }
  .ghq2-result { grid-row: 1; }
  .ghq2-summary-link { display: inline-flex; color: #fff; text-decoration: underline; align-items: center; min-height: 44px; font-size: 14px; }
  .ghq2-left, .ghq2-detail { padding: 12px; margin: 0; }
  .ghq2-work-top strong { font-size: 14px; }
  .ghq2-actions { margin-top: 0; }
}
@media print {
  body * { visibility: hidden; }
  .ghq2-print-area { display: block; visibility: visible; position: absolute; inset: 0; white-space: pre-wrap; padding: 12mm; color: #000; }
}
