/* Exact card order and manually chosen evidence: no animation is needed. */
.history-arrange,.history-roof-sequence{min-width:0}
.history-arrange{padding:22px;border:1px solid #c3d0bf;border-radius:15px;background:#edf0e4}
.arrange-heading{display:grid;gap:6px;margin-bottom:17px;color:#365c4e}
.arrange-heading>span:first-child{font-size:25px;font-weight:700;line-height:1.4}
.arrange-heading>span:last-child{font-size:19px;line-height:1.5;color:var(--muted)}
.arrange-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;list-style:none;padding:0;margin:0}
.arrange-card{position:relative;min-width:0;min-height:144px;padding:18px 18px 29px;background:#fffdf4;border:1px solid #b5c5b0;border-radius:9px;box-shadow:0 4px 0 #cfdbc8}
.arrange-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.arrange-season{font-size:24px;line-height:1.3;color:#59705f}
.arrange-kind{font-size:22px;line-height:1.3;padding:3px 10px;border-radius:5px;background:#e3ebdf;color:#315848}
.arrange-card[data-kind="文"] .arrange-kind{background:#eee3c9;color:#785f34}
.arrange-card strong{font-size:31px;line-height:1.45;font-weight:700;word-break:keep-all}
.arrange-card-id{position:absolute;right:12px;bottom:7px;font-size:14px;color:#748271}
.history-arrange figcaption{font-size:15px;line-height:1.6;color:#60756c;margin-top:20px}
.history-expansion-controls{border-top:1px solid var(--line);padding-top:16px;display:grid;gap:12px}
.history-expansion-controls .actions{gap:10px}
.history-layout .copy .expansion-status{font-size:24px;line-height:1.55;color:#275f56;min-height:3.1em}
.history-layout .copy .expansion-step{font-size:19px;line-height:1.5;color:var(--muted)}
.history-layout .copy .expansion-detail{font-size:clamp(24px,2vw,31px);line-height:1.6;min-height:3.2em}
.history-roof-sequence [hidden]{display:none!important}
.history-layout .history-roof-sequence .media img{height:44vh;max-height:520px;min-height:0;object-fit:contain}
.history-roof-sequence .media figcaption{font-size:13px;line-height:1.6;min-height:7em}
.history-roof-sequence figcaption strong{font-size:22px;line-height:1.6;color:var(--ink)}
@media(max-height:760px) and (min-width:901px){
  .history-arrange{padding:17px}
  .arrange-heading{margin-bottom:12px;gap:4px}
  .arrange-heading>span:first-child{font-size:23px}
  .arrange-heading>span:last-child{font-size:18px}
  .arrange-cards{gap:13px}
  .arrange-card{min-height:120px;padding:13px 13px 24px}
  .arrange-meta{margin-bottom:8px}
  .arrange-season{font-size:22px}
  .arrange-kind{font-size:20px}
  .arrange-card strong{font-size:28px}
  .history-arrange figcaption{font-size:14px;margin-top:15px}
  .history-expansion-controls{padding-top:12px;gap:9px}
  .history-layout .copy .expansion-status,.history-layout .copy .expansion-detail{font-size:24px}
  .history-layout .copy .expansion-step{font-size:18px}
  .roof-sequence-controls button{font-size:18px;padding:9px 12px}
  .history-layout .history-roof-sequence .media img{height:42vh}
  .history-roof-sequence .media figcaption{font-size:12px}
  .history-roof-sequence figcaption strong{font-size:20px}
}
@media(max-width:900px){
  .history-arrange{padding:17px}
  .arrange-card{min-height:130px;padding:13px 13px 27px}
  .arrange-card strong{font-size:28px}
  .history-layout .history-roof-sequence .media img{height:40vh}
}
