.hcd{width:100%;display:flex;flex-direction:column;gap:14px;margin-top:2px}.hcd .hcd-stage{display:flex;justify-content:center}.hcd .hcd-card{position:relative;width:min(100%,620px,70vh);aspect-ratio:1/1;border-radius:4px;overflow:hidden;background:var(--ink-850);box-shadow:0 0 0 1px var(--line-soft)}.hcd[data-size=tall] .hcd-card{aspect-ratio:4/5;width:calc(min(100%,620px,70vh)*.8)}.hcd .hcd-cv,.hcd .hcd-fx{position:absolute;inset:0;width:100%;height:100%;display:block}.hcd .hcd-fx{pointer-events:none}.hcd .hcd-acts,.hcd .hcd-pats,.hcd .hcd-size,.hcd .hcd-form{width:min(100%,620px,70vh);align-self:center;box-sizing:border-box}.hcd .hcd-acts{display:grid;grid-template-columns:repeat(4, minmax(0, 1fr));gap:8px}.hcd .hcd-btn{height:var(--ctl-h);min-width:0;padding:0 10px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--line);border-radius:4px;background:var(--ink-850);color:var(--fg);font:inherit;font-size:15px;font-weight:700;cursor:pointer;white-space:nowrap}.hcd .hcd-btn .ic{width:18px;height:18px;flex:none}.hcd .hcd-btn span{overflow:hidden;text-overflow:ellipsis}.hcd .hcd-btn:hover{border-color:var(--fg-mid)}.hcd .hcd-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.hcd .hcd-btn--main{background:var(--accent-fill);border-color:var(--accent-fill);color:#fff}.hcd .hcd-btn--main:hover{background:var(--accent-fill-hover);border-color:var(--accent-fill-hover)}.hcd .hcd-pats{display:grid;grid-template-columns:repeat(6, minmax(0, 1fr));gap:8px}.hcd .hcd-pat{min-width:0;padding:4px 4px 6px;box-sizing:border-box;display:flex;flex-direction:column;align-items:stretch;gap:5px;border:2px solid var(--line-soft);border-radius:4px;background:var(--ink-850);color:var(--fg-mid);font:inherit;font-size:13px;cursor:pointer}.hcd .hcd-pat span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center}.hcd .hcd-pat:hover{border-color:var(--fg-mid)}.hcd .hcd-pat.is-on{border-color:var(--accent);color:var(--fg);font-weight:700}.hcd .hcd-pat:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.hcd .hcd-pat-cv{width:100%;aspect-ratio:1/1;height:auto;display:block;border-radius:2px}.hcd .hcd-size{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:8px}.hcd .hcd-size button{height:44px;min-width:0;border:1px solid var(--line);border-radius:4px;background:var(--ink-850);color:var(--fg-mid);font:inherit;font-size:14px;cursor:pointer}.hcd .hcd-size button:hover{border-color:var(--fg-mid)}.hcd .hcd-size button.is-on{border-color:var(--accent);color:var(--fg);font-weight:700;background:var(--ink-800)}.hcd .hcd-size button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.hcd .hcd-form{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:12px 8px}.hcd .hcd-f{display:flex;flex-direction:column;gap:6px;min-width:0}.hcd .hcd-f>span,.hcd .hcd-f label{font-size:14px;color:var(--fg-mid);font-weight:500}.hcd .hcd-f input,.hcd .hcd-f textarea{width:100%;box-sizing:border-box;border:1px solid var(--line);border-radius:4px;background:var(--ink-800);color:var(--fg);font:inherit;font-size:16px}.hcd .hcd-f input:focus,.hcd .hcd-f textarea:focus{outline:none;border-color:var(--accent)}.hcd .hcd-f input{height:var(--ctl-h);padding:0 12px}.hcd .hcd-f textarea{padding:10px 12px;line-height:1.55;resize:vertical;min-height:116px}.hcd .hcd-f--msg{grid-column:1/-1}.hcd .hcd-f-h{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:40px}.hcd .hcd-next{height:40px;padding:0 12px;display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:4px;background:rgba(0,0,0,0);color:var(--fg);font:inherit;font-size:14px;font-weight:700;cursor:pointer}.hcd .hcd-next .ic{width:16px;height:16px}.hcd .hcd-next:hover{border-color:var(--fg-mid)}.hcd .hcd-next:focus-visible{outline:2px solid var(--accent);outline-offset:1px}@media(max-width: 899px){.hcd{gap:12px}.hcd .hcd-card{width:100%}.hcd .hcd-acts,.hcd .hcd-pats,.hcd .hcd-size,.hcd .hcd-form{width:100%}.hcd[data-size=tall] .hcd-card{width:80%}.hcd .hcd-acts{grid-template-columns:repeat(3, minmax(0, 1fr))}.hcd .hcd-btn--main{grid-column:1/-1}.hcd .hcd-btn{font-size:14px;padding:0 6px;gap:4px}.hcd .hcd-pats{grid-template-columns:repeat(3, minmax(0, 1fr))}}.hcd-print{display:none}@media print{body.hcd-printing>*:not(.hcd-print){display:none !important}body.hcd-printing{margin:0 !important;padding:0 !important;background:#fff !important}body.hcd-printing>.hcd-print{display:flex !important;align-items:center;justify-content:center;width:210mm;height:296mm;margin:0;padding:0;box-sizing:border-box;overflow:hidden}body.hcd-printing>.hcd-print img{display:block;width:160mm;height:auto}body.hcd-printing>.hcd-print--post{width:100mm;height:147mm}body.hcd-printing>.hcd-print--post img{width:92mm}}