/* Creation records: compact cards, with existing account features kept intact. */
.history .list{grid-template-columns:1fr;gap:18px}
.history .item.record-card{display:block;position:relative;overflow:visible;padding:24px;background:#f5f3e8;border:1px solid #e4e4e4;border-radius:16px;box-shadow:0 6px 24px #00000005;color:#000;font-family:Pretendard,'Malgun Gothic',sans-serif}
.history .item.record-card:is(:hover,:focus-within){z-index:1}
.history .item.record-card::before{display:none}
.record-kind{display:inline-flex;padding:4px 12px;border:1px solid #e9e9e9;border-radius:30px;background:#fafafa;font-size:11px;color:#555}
.record-main{display:grid;grid-template-columns:144px minmax(0,1fr) auto;gap:24px;margin-top:18px;align-items:start}
.record-photo{width:144px;aspect-ratio:3/4;overflow:hidden;border-radius:10px;background:#f5f4f0}
.record-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 30%}
.record-photo.is-empty{display:grid;place-items:center;color:#777;font-family:Georgia,serif;font-style:italic}
.record-title{margin:0;font-size:18px;line-height:1.5;font-weight:400;overflow-wrap:anywhere}
.record-created{margin:4px 0 20px;color:#777;font-size:12px}
.record-wedding{margin:0 0 10px;font-size:13px;overflow-wrap:anywhere}
.record-status{display:flex;align-items:center;gap:18px;font-size:12px}
.record-status>span:first-child{color:#444}
.history .record-card .tag{position:static;display:inline-flex;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;font:500 11px Pretendard,sans-serif;color:#444}


.record-retention{white-space:pre-line;word-break:keep-all;max-width:none;margin:10px 0 0;font-size:11px;line-height:1.8;color:#777}
.record-actions,.record-links{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.history .record-card .b{display:inline-flex;align-items:center;justify-content:center;gap:7px;width:auto;height:34px;min-height:34px;padding:0 14px;margin:0;border:1px solid #e4e4e4;border-radius:8px;background:#fff;box-shadow:none;font:500 12px Pretendard,'Malgun Gothic',sans-serif;color:#333;text-decoration:none;white-space:nowrap}
.history .record-card .b:hover{background:#f7f7f7}


.record-bottom{display:flex;align-items:center;flex-wrap:wrap;gap:16px;margin-top:20px;padding-top:16px;border-top:1px solid #eee}
.record-stats{display:flex;align-items:center;gap:16px;margin-left:auto;font-size:11px;color:#777}
.record-stat b{margin-left:4px;color:#000;font-weight:600}
.history .record-card .record-manage{background:#fafafa}
@media(max-width:640px){
 .history .item.record-card{padding:18px;border-radius:12px}
 .record-main{grid-template-columns:96px minmax(0,1fr);gap:16px}
 .record-photo{width:96px}
 .record-title{font-size:15px}
 .record-created{font-size:10px;margin-bottom:12px}
 .record-wedding{font-size:11px}
 .record-actions{grid-column:1/-1;justify-content:flex-end}
 .record-retention{font-size:10px}
 .record-bottom{gap:12px;margin-top:16px}
 .record-links{width:100%}
 .record-stats{margin-left:0;gap:12px}
 .history .record-card .record-manage{margin-left:auto}
}

@media(min-width:641px){.record-retention{white-space:pre}}

/* Keep the two policy sentences together without letting action buttons narrow them. */
@media(min-width:641px){.record-main{position:relative;grid-template-columns:144px minmax(0,1fr)}.record-actions{position:absolute;right:0;top:0}.record-title{padding-right:174px}}

/* Align retention notes with the bottom of the adjacent thumbnail. */
.record-info{display:flex;flex-direction:column;min-height:192px}
.record-info .record-retention{margin-top:4px;padding-top:0}
@media(max-width:640px){.record-info{min-height:128px}}

/* ===== 카드 새 디자인: 아이콘 버튼, 각진 사진, 흰빛 아이보리 카드 ===== */
.history .item.record-card{background:#fcfbf8;padding:16px 24px 20px}
.record-top{display:flex;align-items:center;justify-content:space-between;height:32px;margin-bottom:14px}
.record-top .record-status{margin:0}
.record-photo{border-radius:0;background:#e6e3d9}
@media(min-width:641px){.record-main{position:static;grid-template-columns:144px minmax(0,1fr)}.record-actions{position:static}.record-title{padding-right:0}}
.record-actions{gap:6px;grid-column:auto;justify-content:flex-end}
.history .record-card .b.ib{position:relative;width:32px;height:32px;min-height:32px;padding:0;border-radius:50%;border:1px solid #dedbd0;background:#fff}
.history .record-card .record-actions .b.ib{background:transparent}
.history .record-card .b.ib:hover{background:#f5f4ef}
.history .record-card .b.ib::after{content:attr(data-tip);position:absolute;left:50%;bottom:38px;transform:translateX(-50%);padding:4px 8px;border-radius:4px;background:#1d2714;color:#fff;font:500 10.5px Pretendard,sans-serif;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .12s;z-index:5}
.history .record-card .b.ib:is(:hover,:focus-visible,.tip-on)::after{opacity:1}
.history .record-card .record-links .b.ib:first-child::after{left:0;transform:none}
.history .record-card .record-actions .b.ib:last-child::after{left:auto;right:0;transform:none}
.record-bottom{min-height:51px;box-sizing:border-box;margin-top:16px;padding-top:10px;border-top:1px solid #ecebe4}
.record-bottom-end{justify-content:flex-end}
.history .record-card .record-manage{background:#f6f5f1}
.record-order{height:26px;padding:0 12px;border:0;border-radius:0;background:#000;color:#fff;font:500 11px Pretendard,'Malgun Gothic',sans-serif;cursor:pointer;white-space:nowrap}
.record-retention{margin-top:auto}
@media(max-width:640px){.record-actions{grid-column:auto}.history .item.record-card{padding:14px 16px 16px}}

/* ===== 팝업 공통 ===== */
dialog.acct-pop{position:fixed;inset:0;margin:auto;max-height:calc(100dvh - 32px);overflow:auto;padding:30px 24px 24px;border:0;color:#1d2714;font-family:Pretendard,'Malgun Gothic',sans-serif}
dialog.acct-pop::backdrop{background:#2a2e2566}
.acct-x{position:absolute;top:8px;right:12px;width:32px;height:32px;padding:0;border:0;background:transparent;color:inherit;font:24px/1 Arial;cursor:pointer}
dialog.acct-pop h2{margin:0 0 6px;font-size:18px;font-weight:500;text-align:center}
.acct-sub{margin:0 0 14px;font-size:12px;color:#7b7a6c;text-align:center}
/* QR 팝업 */
dialog.acct-qr{width:min(420px,calc(100vw - 28px));background:#fff;border-radius:4px}
.acct-qr .qr-tabs{display:flex;border-bottom:1px solid #e2e2dc;margin:10px 0 18px}
.acct-qr .qr-tabs button{flex:1;padding:10px 0;border:0;border-bottom:2px solid transparent;background:transparent;color:#999;font:13px Pretendard,sans-serif;cursor:pointer}
.acct-qr .qr-tabs button.on{color:#111;border-bottom-color:#111;margin-bottom:-1px}
.acct-qr .qr-pane{display:none;flex-direction:column;align-items:center;gap:12px}
.acct-qr .qr-pane.on{display:flex}
.acct-qr .qr-pane img{width:180px;height:180px;object-fit:contain;background:#fff}
.acct-qr .qr-size{margin:0;font-size:12px;color:#8a867a;text-align:center}
.acct-qr .qr-pane input[type=color]{appearance:none;-webkit-appearance:none;width:30px;height:30px;padding:0;border:1px solid #cfcbbe;border-radius:50%;background:none;cursor:pointer;overflow:hidden}
.acct-qr .qr-pane input[type=color]::-webkit-color-swatch-wrapper{padding:0}
.acct-qr .qr-pane input[type=color]::-webkit-color-swatch{border:0;border-radius:50%}
.acct-qr .qr-down{width:100%;padding:11px 0;border:1px solid #262522;border-radius:0;background:transparent;color:#262522;font:13px Pretendard,sans-serif;cursor:pointer}
.acct-qr .qr-err{margin:0;font-size:11px;color:#b3473c}.acct-qr .qr-err:empty{display:none}
/* 주문번호 확인 팝업: 배경과 같은 연두색 + 얇은 선 테두리 */
dialog.acct-order{width:min(380px,calc(100vw - 28px));background:#bfca9f;border:1px solid #1d2714;border-radius:0}
.order-title{margin:0;text-align:center;font:italic 30px Georgia,serif;line-height:1.1}
.order-star{margin:22px 0;text-align:center;font-size:15px;line-height:1}
.order-lead{margin:0 0 20px;padding-bottom:20px;border-bottom:1px solid #1d27143d;text-align:center;font-size:13px;line-height:1.8;color:#2f3b22}
.order-step{display:grid;grid-template-columns:28px 1fr;gap:2px 10px;align-items:center;margin:0 0 13px;font-size:12.5px;line-height:1.6}
.order-no{grid-row:1/3;align-self:center;width:22px;height:22px;border:1px solid #1d2714;border-radius:50%;text-align:center;font-size:11px;line-height:20px}
.order-sm{grid-column:2;font-size:11px;color:#44502f}
.acct-order input{display:block;width:100%;margin-top:18px;padding:9px 0;border:0;border-bottom:1px solid #1d2714;border-radius:0;background:transparent;color:#1d2714;font:15px Pretendard,sans-serif;letter-spacing:2px;outline:none}
.acct-order input::placeholder{color:#5f6b4a}
.order-go{display:block;width:100%;margin-top:22px;padding:11px 0;border:0;border-radius:0;background:#000;color:#fff;font:500 13px Pretendard,sans-serif;cursor:pointer}
.order-go:disabled{opacity:.5;cursor:default}
.order-msg{margin:14px 0 0;min-height:1.4em;font-size:12px;line-height:1.7;text-align:center;color:#2f3b22}

/* ===== 카드와 버튼을 검은 직각 테두리로 ===== */
.history .item.record-card{border:1px solid #000;border-radius:0;box-shadow:none}
.history .record-card .b.ib{border:1px solid #000;border-radius:0;background:#fff}
.history .record-card .record-actions .b.ib{background:#fff}
.history .record-card .b.ib:hover{background:#f1f0eb}
.history .record-card .record-manage{border:1px solid #000;border-radius:0;background:#fff}
.history .record-card .record-manage:hover{background:#f1f0eb}
.record-bottom{border-top:1px solid #000}
@media(max-width:640px){.history .item.record-card{border-radius:0}}

/* ===== 카드 안을 팝업과 같은 연두색으로 ===== */
.history .item.record-card{background:#bfca9f;color:#1d2714}
.history .record-card .record-title{color:#000}
.record-created,.record-retention,.record-stats,.record-status>span:first-child,.history .record-card .tag{color:#44502f}
.record-stat b{color:#000}
.record-photo{background:#d3dab8}
.record-photo.is-empty{color:#5f6b4a}
.history .record-card .b.ib,.history .record-card .record-actions .b.ib,.history .record-card .record-manage{background:transparent}
.history .record-card .b.ib:hover,.history .record-card .record-manage:hover{background:#b3be92}

/* ===== 카드 안: 약간 크림색 ===== */
.history .item.record-card{background:#f7f4e8;color:#1d1d1a}
.record-created,.record-retention,.record-stats,.record-status>span:first-child,.history .record-card .tag{color:#6f6d5f}
.record-photo{background:#e8e4d3}
.record-photo.is-empty{color:#7b7968}
.history .record-card .b.ib:hover,.history .record-card .record-manage:hover{background:#ece8d6}

/* 리뷰 신청: 카드 아래 한 줄(버튼 또는 상태)과 팝업 입력 칸 */
.record-review-row{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin-top:12px;padding-top:10px;border-top:1px solid #ecebe4}
.record-review{height:26px;padding:0 12px;border:1px solid #000;border-radius:0;background:#fff;color:#000;font:500 11px Pretendard,'Malgun Gothic',sans-serif;cursor:pointer;white-space:nowrap}
.record-review:hover{background:#ece8d6}
.record-review-note{font:11px/1.6 Pretendard,'Malgun Gothic',sans-serif;color:#5f6b4a}
.record-review-row.record-review-approved{display:grid;justify-items:end;gap:4px;text-align:right}
.record-review-heart{margin-right:.4em;color:#406c43}
.record-review-details{max-width:64ch;margin:0;color:#5f6655;font:11px/1.7 var(--kr);overflow-wrap:anywhere}
.record-review-period{white-space:nowrap}
.acct-review input{letter-spacing:0;font-size:13px;font-family:Pretendard,'Malgun Gothic',sans-serif!important;text-transform:none}

/* Card name is the main heading; preserve existing names when no name is set. */
.history .record-card .record-couple{margin:6px 0 0;font-size:13px;font-weight:400;line-height:1.5;color:#6f6d5f;overflow-wrap:anywhere}

/* QR dialog follows the Review stationery design; QR artwork keeps its white quiet zone. */
html body dialog:is(.acct-qr,.qr-dialog){background:#bfca9f!important;color:#1d2714!important;border:1px solid #1d2714!important;border-radius:0!important;padding:30px 24px 28px!important;width:min(420px,calc(100vw - 28px));max-height:calc(100dvh - 32px);overflow:auto}
html body dialog:is(.acct-qr,.qr-dialog) h2{margin:0 0 20px;text-align:center;font-family:'Cinzel','Noto Serif KR',Georgia,serif!important;font-size:28px!important;font-weight:400!important;font-style:italic;color:#1d2714!important;line-height:1.4}
html body dialog:is(.acct-qr,.qr-dialog) h2::after{content:'✶';display:block;margin-top:17px;font:18px/1 Georgia,serif}
html body dialog:is(.acct-qr,.qr-dialog) :is(.acct-sub,.qr-sub){margin:0 0 22px!important;text-align:center;color:#1d2714!important;font-family:'Noto Serif KR',Georgia,serif!important;font-size:12px;line-height:1.8}
html body dialog:is(.acct-qr,.qr-dialog) .qr-tabs{border-bottom-color:#1d271440}
html body dialog:is(.acct-qr,.qr-dialog) .qr-tabs button{font-family:'Noto Serif KR',Georgia,serif!important;color:#5f6b4a!important}
html body dialog:is(.acct-qr,.qr-dialog) .qr-tabs button.on{color:#1d2714!important;border-bottom-color:#1d2714}
html body dialog:is(.acct-qr,.qr-dialog) :is(.qr-size,.qr-info){color:#465238!important}
html body dialog:is(.acct-qr,.qr-dialog) .qr-down{display:block;width:100%!important;max-width:100%;margin-top:10px;padding:13px 0!important;border:1px solid #000!important;border-radius:0!important;background:#000!important;color:#fff!important;-webkit-text-fill-color:#fff!important;font-family:'Noto Serif KR',Georgia,serif!important;text-decoration:none}
html body dialog.qr-dialog .qr-picker[data-tabbed] .qr-row{width:100%}
html body dialog.qr-dialog .qr-close{color:#1d2714!important}

/* One order entry point for drafts and published invitations. */
.record-order-row{display:flex;justify-content:flex-end;flex-basis:100%}
.order-choices{display:grid;gap:10px;margin:0 0 20px}
.acct-order .order-choice{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:5px;width:100%;padding:13px 12px;border:1px solid #1d2714;background:transparent;color:#1d2714;text-align:left;font:13px/1.6 Pretendard,sans-serif;cursor:pointer}
.acct-order .order-choice small{font-size:10px;color:#5f6b4a}
.acct-order .order-choice:disabled{cursor:default;border-color:#1d271445;color:#59634b}
.acct-order .order-choice[aria-pressed=true]{background:#1d2714;color:#fff}
.acct-order .order-entry[hidden]{display:none}

/* Mobile order confirmation fills the viewport horizontally. */
@media(max-width:760px){
 html body dialog.acct-order:not(.acct-review):not(#a):not(#b){inset:auto 0 0;width:100vw;max-width:100vw;box-sizing:border-box;margin-left:0;margin-right:0;border-left:0!important;border-right:0!important}
}

html.service-closed #topBanner,html.service-closed .history-tabs{display:none!important}
html.service-closed{--banner-h:0px!important}

.acct-order .order-choices[hidden],.acct-order .order-selected-note[hidden]{display:none}

.acct-order .order-consent-list{margin:8px 0;padding-left:18px;list-style:disc}
.acct-order .order-consent-list li{margin:6px 0;font-size:11px;line-height:1.7}
.acct-order .order-consent-list li::marker{color:#000}

/* Matching actions for guest management, order checks and reviews. */
.record-service-actions{display:flex;justify-content:flex-end;gap:8px;flex-basis:100%;width:100%}
.history .record-card .record-service-actions>button{display:inline-flex;align-items:center;justify-content:center;flex:0 1 128px;width:128px;min-width:0;max-width:128px;height:44px;min-height:44px;margin:0;padding:0 8px;border:1px solid #1d2714;border-radius:0;background:transparent;color:#1d2714;box-sizing:border-box;font:500 12px/1.2 Pretendard,'Malgun Gothic',sans-serif;letter-spacing:0;white-space:nowrap;cursor:pointer}
.history .record-card .record-service-actions>button:hover{background:#ece8d6}

.history .list{grid-template-columns:minmax(0,1fr)}
.history .item.record-card,.record-bottom,.record-service-actions{min-width:0}

/* Wedding date and retention appear together beneath the couple names. */
.record-info .record-created{margin-bottom:0;color:#000;font-size:14px}
@media(max-width:640px){.record-info .record-created{font-size:12px}}
.history .record-card .record-status .tag{color:#808080}
.history .record-card .record-status .tag.paid-draft{color:#000}
.history .record-card .record-status .tag.live{color:#800020}
.history .record-card .record-status .tag.stop{color:#6f6d5f}

.acct-review>label{display:block;margin-top:18px;font-size:12px;text-align:left}.acct-review>label>select{box-sizing:border-box;display:block;width:100%;margin-top:8px;padding:10px 8px;border:1px solid #72796388;border-radius:0;background:transparent;color:inherit;font:14px/1.5 Pretendard,sans-serif}

.acct-review .review-retention-note{margin:14px 0 0;font-size:11px;line-height:1.8;color:#44502f;text-align:left;word-break:keep-all}
/* Keep card services together as one compact action group. */
html body .history .record-card .record-service-actions{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:0;width:100%;max-width:660px;margin-left:auto;border:1px solid #8b908066;background:#ffffff24;box-sizing:border-box}
html body .history .record-card .record-service-actions>button{display:flex;align-items:center;justify-content:center;min-width:0;max-width:none;width:100%;height:auto;min-height:42px;margin:0;padding:10px 12px;border:0;border-radius:0;box-shadow:none;background:transparent;font-size:12px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
html body .history .record-card .record-service-actions>button+button{border-left:1px solid #8b908044}
@media(max-width:640px){html body .history .record-card .record-service-actions{grid-auto-flow:row;grid-auto-columns:auto;grid-template-columns:1fr;max-width:none;margin-top:12px}html body .history .record-card .record-service-actions>button+button{border-left:0;border-top:1px solid #8b908044}}
/* Size desktop service buttons to their localized labels. */
@media(min-width:641px){html body .history .record-card .record-service-actions{display:flex;justify-content:flex-end;border:0;background:transparent}html body .history .record-card .record-service-actions>button{flex:0 1 auto;width:auto;padding:10px 16px;border:1px solid #8b908066}html body .history .record-card .record-service-actions>button+button{border-left:0}}
