:root {
  color-scheme: light;
  scrollbar-gutter: stable;
  --canvas: #f3f4f5;
  --paper: #fff;
  --ink: #202a2e;
  --muted: #505f65;
  --line: #dce2e4;
  --control: #8c989c;
  --action: #00766a;
  --action-hover: #005f56;
  --surface: #f5f7f7;
  --warning: #833b27;
  --panel-width: 860px;
  --page-gutter: 20px;
  --panel-padding: 26px;
  font-family: "Noto Sans JP Variable", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.shell { width: min(100% - var(--page-gutter) * 2, var(--panel-width)); margin: 0 auto; padding: 28px 0 54px; }
.shell[data-screen="entry"] { padding-top: clamp(60px, 24svh, 220px); }
h1, h2, h3, p, blockquote, ul { margin: 0; }
h2 { font-size: 1.35rem; font-weight: 720; line-height: 1.45; letter-spacing: -.025em; overflow-wrap: anywhere; }
h3 { font-size: 1rem; font-weight: 680; line-height: 1.55; }
.entry, .paper { background: var(--paper); border: 1px solid var(--line); border-radius: 17px; padding: var(--panel-padding); }
.entry { box-shadow: 0 10px 28px #202a2e08; }
.paper + .paper, .review-details { margin-top: 14px; }
.entry-controls { display: grid; gap: 10px; }
.entry-controls .primary { width: 100%; margin-top: 0; }
.login-title { margin-bottom: 16px; }
.workspace-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.remaining { color: var(--muted); font-size: .79rem; font-variant-numeric: tabular-nums; }
.section-head { display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; align-items: baseline; }
form, input, textarea, button { min-width: 0; }
label { display: block; font-size: .93rem; font-weight: 670; margin-bottom: 6px; }
input:not([type=radio], [type=checkbox]), textarea {
  display: block;
  width: 100%;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--control);
  border-radius: 8px;
  font: inherit;
  padding: 11px 13px;
}
input:not([type=radio], [type=checkbox]) { min-height: 49px; }
textarea { min-height: 105px; resize: vertical; }
::placeholder { color: #6e777c; opacity: 1; }
:focus-visible { outline: 3px solid #697b81; outline-offset: 3px; }
.support, .privacy { color: var(--muted); font-size: .85rem; line-height: 1.7; overflow-wrap: anywhere; }
.privacy { margin-top: 10px; font-size: .78rem; }
button { min-height: 47px; border: 1px solid transparent; border-radius: 8px; padding: 9px 17px; font: inherit; font-weight: 680; cursor: pointer; }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: 9px; color: white; background: var(--action); margin-top: 16px; }
.primary:hover { background: var(--action-hover); }
.primary:disabled { background: #e7ebec; color: #4c5b60; cursor: not-allowed; }
form[aria-busy="true"] .primary:disabled { background: var(--action-hover); color: white; cursor: wait; }
form[aria-busy="true"] .primary:disabled::before {
  content: "";
  inline-size: .85em;
  block-size: .85em;
  border: 2px solid #ffffff70;
  border-right-color: #fff;
  border-radius: 50%;
  animation: spin .85s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { form[aria-busy="true"] .primary:disabled::before { animation: none; } }
.secondary { background: var(--paper); border-color: var(--line); color: var(--ink); }
.back-button { padding: 5px 0; min-height: 38px; color: var(--ink); background: transparent; font-size: .86rem; }
.back-button:hover, .text-link:hover { text-decoration: underline; }
.text-link { color: var(--muted); font-size: .83rem; text-underline-offset: .22em; }
#listing-status { margin-top: 5px; }
.manual { margin-top: 15px; }
.manual textarea { margin: 8px 0; }
input[type=radio], input[type=checkbox] { flex: none; width: 18px; height: 18px; accent-color: var(--action); }
fieldset > input:not([type=checkbox]) { margin-top: 9px; }
.unknown-answer { display: flex; align-items: center; gap: 7px; margin: 4px 0 0; padding-block: 5px; min-height: 38px; color: var(--muted); font-size: .85rem; font-weight: 500; }
.unknown-answer input { margin: 0; }
#conditions-intro { margin-top: 3px; }
#generation-readiness { margin-top: 11px; min-height: 1.7em; }
.task-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; padding: 16px; margin-top: 17px; background: var(--surface); border-radius: 10px; }
.task-grid:has(.task[hidden]) { grid-template-columns: 1fr; }
.task-grid:not(:has(.task:not([hidden]))) { display: none; }
.task ul, .send-check ul { margin-top: 5px; padding-inline-start: 1.2em; font-size: .9rem; overflow-wrap: anywhere; }
.task li + li, .send-check li + li { margin-top: 4px; }
.notice, .feedback { margin-top: 12px; padding: 10px 13px; border-radius: 7px; background: #fcf1eb; color: var(--warning); overflow-wrap: anywhere; white-space: pre-line; }
.notice p { margin-top: 3px; }
blockquote { margin-top: 5px; color: var(--muted); font-size: .85rem; border-inline-start: 2px solid var(--line); padding-inline-start: 9px; overflow-wrap: anywhere; }
#conditions { margin-top: 20px; }
fieldset { min-width: 0; margin: 15px 0 0; border: 0; border-bottom: 1px solid var(--line); padding: 0 0 8px; }
legend { display: block; max-width: 100%; padding: 0; font-weight: 680; overflow-wrap: anywhere; }
.kind { display: inline-block; margin-right: 7px; font-size: .72rem; color: var(--ink); background: var(--canvas); border-radius: 4px; padding: 0 5px; }
.choices { display: flex; flex-wrap: wrap; gap: 0 14px; margin-top: 5px; }
.choice { min-height: 42px; display: flex; align-items: baseline; gap: 6px; font-weight: 500; margin: 0; padding: 7px 0; }
.choice input { align-self: flex-start; margin: .36em 0 0; }
.answer-detail { margin-top: 8px; }
#draft h2 { margin-bottom: 10px; }
#proposal { background: #fcfdfd; min-height: 230px; line-height: 1.85; padding: 14px 15px; margin-top: 7px; }
.draft-actions { display: flex; align-items: baseline; gap: 5px 12px; flex-wrap: wrap; }
.send-check { margin-top: 15px; border-left: 2px solid var(--line); padding-left: 11px; }
.review-details { border: 1px solid var(--line); border-radius: 11px; background: var(--paper); }
.review-details summary { padding: 12px var(--panel-padding); font-size: .88rem; cursor: pointer; }
.review-details .paper { border: 0; padding-top: 7px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 701px) {
  .entry-controls:not(:has(.manual:not([hidden]), .feedback:not([hidden]))) {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}
@media (max-width: 540px) {
  :root { --page-gutter: 16px; --panel-padding: 17px; }
  .shell { padding-top: 15px; }
  .shell[data-screen="entry"] { padding-top: clamp(52px, 20svh, 150px); }
  .paper, .entry { border-radius: 13px; }
  .primary { width: 100%; }
  .task-grid { grid-template-columns: 1fr; gap: 12px; }
  .section-head { display: block; }
  .section-head .text-link { display: inline-block; margin-top: 5px; }
}

