/* LUCIR Studio shell. Keep the invitation canvas, sample photos and typography unchanged. */
body.reference-ui {
  --ref-paper: #fffefb; --ref-bg: #f7f6f2; --ref-ink: #2d3832;
  --ref-muted: #57655b; --ref-line: #d8dcd3; --ref-pink: #dbe2d7;
  --studio-deep: #33483b; --studio-paper: #fffefb; --studio-soft: #edf0e9;
  --studio-line: #d8dcd3; --studio-ink: #28362f; --studio-muted: #58645a; --studio-focus: #496d55;
  background: var(--ref-bg); color: var(--ref-ink);
}
body.reference-ui>.staging-banner{background:#e9d8ca;color:#604637;font-size:12px;font-weight:650;line-height:1.5;padding:8px 12px;word-break:keep-all}
.reference-ui .studio-header{background:#fffaf6;border-color:var(--studio-line)}
.reference-ui .studio-header .brand{color:var(--studio-deep);font-family:Georgia,'AppleMyungjo',serif;font-weight:600;letter-spacing:.15em}
.reference-ui .studio-header .brand span,.reference-ui .studio-header #save-state{color:var(--studio-muted)}
.reference-ui .studio-header :is(nav button,nav a),.reference-ui :is(.ref-wizard,.ref-status-page,.ref-template-page,.ref-dashboard,.ref-design-shell,:where(#ref-modal)) [data-flow]{background:var(--studio-paper);border:1px solid var(--studio-line);color:var(--studio-deep);border-radius:999px;font-weight:650}
.reference-ui .studio-header :is(nav button,nav a):hover,.reference-ui :is(.ref-wizard,.ref-status-page,.ref-template-page,.ref-dashboard,:where(#ref-modal)) [data-flow]:hover{background:#f1e1d5;border-color:#d5baa6}
.reference-ui :is(.ref-wizard,.ref-status-page,.ref-template-page,.ref-dashboard,.ref-design-shell,:where(#ref-modal)) [data-flow].ref-primary,.reference-ui .studio-header [data-action=save]{background:var(--studio-deep);border-color:var(--studio-deep);color:#fff8f2}
.reference-ui :is(.ref-wizard,.ref-status-page,.ref-template-page,.ref-dashboard,.ref-design-shell,:where(#ref-modal)) [data-flow].ref-primary:hover,.reference-ui .studio-header [data-action=save]:hover{background:#49362b}
.reference-ui :is(.ref-wizard,.ref-status-page,.ref-template-page,.ref-dashboard,.ref-design-shell,:where(#ref-modal)) [data-flow]:disabled{background:#eee4dc;color:#77685f;border-color:#e1d5cd}
.reference-ui :is(.ref-wizard,.ref-status-page,.ref-template-page,.ref-dashboard,.ref-menu-list,.editor-panel,.ref-sample-browser,.ref-sample-preview-cta,.studio-header) :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid var(--studio-focus);outline-offset:3px}
/* Let the sample artwork carry the catalog; the service header holds the brand. */
.reference-ui .ref-sample-browser {max-width: 986px}
.reference-ui .ref-sample-browser > header {padding: 0; margin: 8px 0 clamp(20px,4vw,36px)}
.reference-ui .ref-sample-browser > header h1 {margin: 0; color: var(--studio-ink); font: 500 clamp(27px,5vw,38px)/1.35 'LUCIR Myeongjo',serif; letter-spacing: -.04em}
.reference-ui .ref-sample-browser > header p {margin: 9px 0 0; color: var(--studio-muted); font-size: 15px; line-height: 1.6}
.reference-ui .ref-sample-picture{border-radius:12px}
.reference-ui .ref-sample-picture span{color:var(--studio-deep);background:#fffaf4;box-shadow:0 2px 8px #4d302036}
.reference-ui .ref-sample-use,.reference-ui .ref-sample-preview-cta button{background:#f0dfd0;border:1px solid #e0c8b5;color:#573b2b;border-radius:999px;font-weight:700;min-height:44px}
.reference-ui :is(.ref-sample-use,.ref-sample-preview-cta button):hover{background:#e7d0bc}
.reference-ui .ref-sample-preview-cta button:last-child{color:#fff9f5;background:var(--studio-deep);border-color:var(--studio-deep)}
.reference-ui :is(.ref-invitation-card,.ref-add-card,.ref-status-page>section){background:var(--studio-paper);border-color:var(--studio-line);border-radius:22px}
.reference-ui .ref-wizard{margin:15px auto;background:var(--studio-paper);border:1px solid var(--studio-line);border-radius:24px;min-height:0;box-shadow:0 16px 36px #57372212}
.reference-ui .ref-wizard h1{color:var(--studio-ink);font-weight:650}
.reference-ui .ref-wizard-title{margin:clamp(24px,6vw,52px) 0 clamp(22px,5vw,38px)}
.reference-ui :is(.ref-wizard-title p,.ref-card-meta,.ref-template-page>p,.ref-status-page>p){color:var(--studio-muted)}
.reference-ui :is(.ref-wizard,.ref-design-shell>.editor-panel) :is(input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]),select,textarea){border-color:#d9c2af;background:#fffaf6;color:var(--studio-ink)}
.reference-ui .ref-design-shell>.editor-panel{background:var(--studio-paper);border-color:var(--studio-line)}
.reference-ui .ref-design-shell>.preview-pane{background:#eee1d6}
.reference-ui .ref-menu-heading>button[data-flow=expand]{border-radius:12px}
.reference-ui .ref-filter button[aria-pressed=true]{background:var(--studio-deep);color:#fff8f2;border-color:var(--studio-deep)}
.reference-ui .ref-menu-heading>button.ref-toggle-status{background:#e5d5c9}
.reference-ui .ref-menu-heading>button.ref-toggle-status.on{background:#98705a}
.reference-ui .ref-tabs{background:#fff9f3f5;border-top-color:var(--studio-line)}
.reference-ui .ref-tabs button{color:#604637}
.reference-ui .ref-tabs button[aria-current=page],.reference-ui .ref-tabs button[aria-selected=true]{color:#744724;font-weight:750}
.lucir-auth-dialog{--auth-ink:#3c2c24;background:#fffdfb!important;border-color:#dfcbbd!important;color:var(--auth-ink)!important;border-radius:24px!important}
.lucir-auth-dialog .auth-actions button[type=submit]{background:#5b4437!important;border-color:#5b4437!important;color:#fff8f2!important}
@media(max-width:520px){.reference-ui .ref-sample-browser>header{border-radius:20px}.reference-ui .ref-sample-browser>header::after{right:-136px;top:-148px}.reference-ui .ref-sample-tile{padding:7px;border-radius:15px}.reference-ui .ref-sample-use{font-size:12px}.reference-ui .ref-wizard{width:calc(100% - 24px);padding-inline:17px}.reference-ui .studio-header :is(nav button,nav a){min-height:40px}}

/* Sample browsing and the wizard don't need the editing or export toolbar. */
.reference-ui:is([data-screen=browse],[data-screen=wizard],[data-screen=choice]) .studio-header nav>:not(.studio-entry-link):not(.service-manage):not([data-action=library]){display:none}
.reference-ui:is([data-screen=browse],[data-screen=wizard],[data-screen=choice]) .studio-header{padding-block:12px}
.reference-ui:is([data-screen=browse],[data-screen=wizard],[data-screen=choice]) .studio-header #save-state{display:none}
@media(max-width:520px){
 .reference-ui:is([data-screen=browse],[data-screen=wizard],[data-screen=choice]) .studio-header{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center}
 .reference-ui:is([data-screen=browse],[data-screen=wizard],[data-screen=choice]) .studio-header nav{display:flex;grid-column:auto;width:auto}
}

.studio-official-logo{display:block;object-fit:contain;width:min(112px,30vw);height:auto;flex:none}
.reference-ui .studio-header .brand:not(.lucir-site-lockup){display:inline-flex;align-items:center;gap:8px}
.reference-ui .guest-bar{background:#fff9f4;color:#5b4437;border-color:#e5d5c8;flex-wrap:wrap}
.reference-ui .guest-bar [data-flow]{padding:0 12px;font-size:14px;min-height:44px;border-radius:999px}
.reference-ui .guest-bar [data-flow=browse-use]{background:#5b4437;color:#fff8f2;border-color:#5b4437;font-weight:650}
.ref-sample-browser>header{display:block}

/* A complete cover and its name open the guest sample. */
.reference-ui .ref-sample-browser {margin: auto; padding: clamp(16px,4vw,34px)}
.ref-sample-grid {display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px 18px}
.reference-ui .ref-sample-tile {display: flex; flex-direction: column; min-width: 0; padding: 0; background: transparent}
.reference-ui .ref-sample-tile button.ref-card-preview {display: block; width: 100%; padding: 0; border: 0; border-radius: 3px; background: transparent; color: var(--studio-ink); text-align: left}
.ref-cover-thumb {display: grid; place-items: center; aspect-ratio: 2 / 3; overflow: hidden; background: #eeece6; border: 1px solid var(--studio-line); border-radius: 3px}
html[data-service=birthday] .ref-cover-thumb {aspect-ratio: 3 / 4}
.ref-cover-thumb img {display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain}
.ref-card-name {display: block; padding: 11px 1px 0; font: 600 16px/1.5 var(--sans),sans-serif; word-break: keep-all}
.reference-ui .ref-card-preview:hover .ref-card-name {text-decoration: underline; text-underline-offset: 4px}
.reference-ui .ref-sample-tile button.ref-sample-use {align-self: start; min-height: 44px; margin-top: 0; padding: 5px 2px; border: 0; border-radius: 2px; color: #4e6253; background: transparent; font: 400 14px/1.45 var(--sans),sans-serif; text-decoration: underline; text-underline-offset: 3px; word-break: keep-all}
/* The cover and its visible preview action share one keyboard stop. */
.ref-wedding-tile .ref-card-name {
  padding: 12px 0 8px;
  color: var(--studio-ink);
  text-decoration: none;
}
.reference-ui .ref-wedding-tile .ref-card-preview:hover .ref-card-name {
  text-decoration: none;
}
.ref-wedding-tile .ref-preview-label,
.reference-ui .ref-wedding-tile button.ref-sample-use {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  border: 1px solid;
  border-radius: 6px;
  font: 600 14px/1.45 var(--sans),sans-serif;
  text-align: center;
  text-decoration: none;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.ref-wedding-tile .ref-preview-label {
  background: var(--studio-paper);
  color: var(--studio-deep);
  border-color: #78867a;
}
.reference-ui .ref-wedding-tile button.ref-sample-use {
  align-self: stretch;
  margin-top: 6px;
  background: var(--studio-deep);
  color: white;
  border-color: var(--studio-deep);
}
.ref-wedding-tile .ref-card-preview:is(:hover,:focus-visible) .ref-preview-label {
  background: var(--studio-soft);
  border-color: var(--studio-deep);
}
.reference-ui .ref-wedding-tile button.ref-sample-use:hover {
  background: #263a2d;
}
.reference-ui .ref-wedding-tile button:focus-visible {
  outline: 3px solid var(--studio-focus);
  outline-offset: 3px;
}
@media(max-width:650px) {.ref-sample-grid {grid-template-columns: repeat(2,minmax(0,1fr)); gap: 19px 12px}}
.ref-paper-cover>.studio-official-logo,.sidebar-eyebrow>.studio-official-logo,.home-intro .studio-official-logo{width:min(96px,30vw)}

/* Share the main portal's logo lockup without carrying its page-wide styles into the editor. */
body .studio-header{background:#f7f6f2;border-color:#dedfd7}

/* Keep the active filter obvious and reduce visual noise in the menu list. */
.reference-ui .ref-filter button[aria-pressed=true]{background:#493930;border-color:#493930;color:#fffaf4}
.reference-ui .ref-filter button[aria-pressed=true]:hover{background:#3b2e27;border-color:#3b2e27;color:#fffaf4}
.ref-menu-heading>button[data-flow=expand]>.ref-menu-label{flex:1;min-width:0;overflow-wrap:anywhere}
.reference-ui .ref-menu-heading .ref-chevron{display:block;flex:0 0 12px;width:12px;height:12px;margin:0 0 0 auto;border:0;transform:none;color:#67564d}
.reference-ui .ref-menu-card.expanded .ref-chevron{transform:rotate(180deg)}
.reference-ui .ref-menu-heading>button.ref-toggle-status{width:40px;height:24px;min-height:24px;background:#dcd3ca}
.reference-ui .ref-menu-heading>button.ref-toggle-status.on{background:#427151;border-color:#427151}
.reference-ui .ref-menu-heading>button.ref-toggle-status::after{width:18px;height:18px;left:3px;top:3px}
.reference-ui .ref-menu-heading>button.ref-toggle-status.on::after{left:19px}


/* Keep dense desktop navigation separate from the larger touch targets. */
.reference-ui .ref-design-shell .ref-menu-list .ref-filter [data-filter][aria-pressed=true]{background:#493930;color:#fffaf4;border-color:#493930}
.reference-ui .ref-design-shell .ref-menu-list .ref-menu-heading>.ref-toggle-status[aria-checked=false]{background:#dfd6ce;border-color:#dfd6ce}
.reference-ui .ref-design-shell .ref-menu-list .ref-menu-heading>.ref-toggle-status[aria-checked=true]{background:#417251;border-color:#417251}
.reference-ui .ref-design-shell .ref-menu-card.expanded>.ref-menu-heading{box-shadow:none}
.reference-ui .ref-design-shell .ref-menu-card.expanded [data-flow=expand]{background:#e6d8cc;color:#402c21}
.reference-ui .ref-design-shell .preview-toolbar[data-effects-bar]{justify-content:space-between;gap:8px;padding:2px 4px 6px}
.reference-ui .ref-design-shell .preview-toolbar[data-effects-bar] button{min-height:30px;padding:4px 9px;font-size:11px}
@media(min-width:761px){
 .reference-ui .ref-design-shell .ref-menu-card{margin-bottom:4px;border-radius:9px}
 .reference-ui .ref-design-shell .ref-menu-heading{padding-inline:7px;gap:4px}
 .reference-ui .ref-design-shell .ref-menu-heading>[data-flow=expand]{min-height:34px;padding:5px 9px;border:0;border-radius:7px;line-height:1.3;background:transparent}
 .reference-ui .ref-design-shell .ref-menu-card.expanded .ref-menu-heading>[data-flow=expand]{background:#e6d8cc}
}
@media(max-width:760px){.reference-ui .ref-design-shell .ref-menu-heading>[data-flow=expand]{min-height:44px;padding-block:8px}}

.reference-ui .ref-demo-note {color: var(--studio-muted)!important; font-size: 14px!important}
.reference-ui .ref-wizard {padding: 22px clamp(18px,5vw,36px) 30px; box-shadow: none; border-radius: 12px}
.ref-wizard-nav {display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--studio-muted); font-size: 14px}
.reference-ui .ref-wizard .ref-wizard-back {background: transparent; min-height: 44px; border: 0; border-radius: 2px; padding: 4px; text-decoration: underline; text-underline-offset: 3px}
.ref-wizard .ref-progress {margin: 15px 0 0; padding: 0}
.ref-wizard .ref-progress li {font-size: 13px; color: #536159}
.ref-wizard .ref-progress li.active span,.ref-wizard .ref-progress li.done span {background: var(--studio-deep); color: white}
.reference-ui .ref-wizard-title {margin: 24px 0; text-align: left}
.reference-ui .ref-wizard h1 {margin: 0; font: 500 clamp(24px,4vw,30px)/1.4 'LUCIR Myeongjo',serif}
.reference-ui .ref-wizard-title .ref-demo-note {text-align: left; margin: 9px 0 0!important}
.reference-ui .ref-wizard-title > p {font-size: 14px; margin: 7px 0}
.ref-name-group {border: 0; padding: 0; margin: 20px 0; min-width: 0}
.ref-name-group legend {padding: 0; margin-bottom: 6px; font-size: 16px; font-weight: 600}
.ref-name-row {grid-template-columns: minmax(60px,1fr) minmax(100px,2.5fr)}
.ref-name-row label {font-size: 14px; line-height: 1.5; color: var(--studio-muted)}
.ref-name-row label input {text-align: left}
.reference-ui .ref-wizard input:focus-visible {outline: 2px solid var(--studio-focus); outline-offset: 2px}
.ref-wizard-error {font-size: 14px; color: #943826; margin: 12px 0 0}
.ref-wizard-error:empty {display: none}
.reference-ui .ref-wizard input[aria-invalid=true] {border-color: #943826}
.reference-ui .ref-wizard .ref-text-button {display: block; margin-inline: auto; font-size: 14px}
.reference-ui .ref-dashboard h1,.ref-design-title {color: var(--studio-ink); font: 500 24px/1.45 'LUCIR Myeongjo',serif; margin: 0 0 14px}
.ref-dashboard>.ref-invitation-card {max-width: 420px; margin: auto}
.ref-dashboard>.ref-invitation-card h2 {font-size: 18px; margin-block: 20px 6px}
.ref-dashboard>.ref-invitation-card .ref-text-button {display: block; margin: 10px auto 0}
.reference-ui .ref-tabs {grid-template-columns: repeat(4,minmax(0,1fr)); background: #fffefbf7; border-color: var(--studio-line)}
.reference-ui .ref-tabs button {font-size: 14px; color: var(--studio-muted); min-height: 44px}
.reference-ui .ref-tabs button[aria-current=page] {color: var(--studio-deep); background: #edf1ea; border-radius: 8px; font-weight: 700}
.reference-ui .ref-filter button {min-height: 44px; font-size: 13px; padding-inline: 5px}
.reference-ui .ref-design-shell .ref-menu-list .ref-filter [data-filter][aria-pressed=true] {background: var(--studio-deep); border-color: var(--studio-deep)}
.reference-ui .ref-menu-heading>[data-flow=expand] {font-size: 14px}
.reference-ui .ref-wizard input::placeholder {color: #737970}
.reference-ui .ref-wizard label {font-size: 14px}
.reference-ui .ref-menu-list {padding-inline: 12px}
@media (max-width:760px) {
  .reference-ui .ref-menu-list {padding: 20px 16px}
  .reference-ui .ref-design-shell {margin-inline: auto}
  .reference-ui .ref-menu-heading>.ref-toggle-status::before {content: ''; position: absolute; inset: -10px -2px}
}
body.reference-ui[data-screen=guest] .studio-header #save-state {display:none}

.reference-ui .cover-detail {margin: 12px 0; padding: 4px 12px; border: 1px solid var(--studio-line); border-radius: 8px}
.reference-ui .cover-detail > summary {display: list-item; min-height: 44px; padding: 11px 0; font-size: 14px; line-height: 22px; cursor: pointer}
.reference-ui .ref-empty {font-size: 14px; color: var(--studio-muted)}

body[data-screen=guest] .studio-header [data-action=save]:disabled {display:none}
.studio-header [data-action=save]:disabled {opacity:.5}
@media(max-width:760px) {
  .reference-ui .studio-header {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between}
  .reference-ui .studio-header nav {display:flex;flex-wrap:wrap;gap:6px;width:auto}
  .reference-ui .studio-header #save-state:not(:empty) {flex:1 0 100%}
}
