.demo{padding:42px 0 70px;max-width:1080px}.demo h1{font-size:clamp(28px,5vw,52px)}.demo h2{margin:0 0 14px;font-size:1.4rem}.demo section{padding:22px 0;border-top:1px solid var(--line);margin-top:24px}.demo form{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin:12px 0}.demo label{display:grid;gap:4px;font-size:.87rem}.demo input,.demo select{max-width:100%;min-width:0;padding:8px;border:1px solid var(--line);min-height:42px;background:var(--white)}.demo .button{gap:8px;min-height:42px}.demo article{padding:14px;margin:10px 0;border:1px solid var(--line);background:var(--white);overflow-wrap:anywhere}.demo details{margin:12px 0}.demo li{margin:.4em 0}.demo #message{min-height:1.7em;margin-top:10px;color:#643d22}.demo .grow{flex:1 1 230px}.demo .cart-item{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between}.demo .subtle{color:var(--soft);font-size:.85rem}.demo select{max-width:min(80vw,380px)}
@media(max-width:480px){
  .demo{padding-top:28px}
  .demo form > :is(label,.password-field){flex:1 1 100%;min-width:0}
  .demo form input,.demo form select{width:100%;max-width:100%;font-size:1rem}
}

.password-field{position:relative;max-width:100%}
.demo .password-field input{padding-inline-end:46px}
.password-toggle{position:absolute;inset:auto 1px 1px auto;display:grid;place-items:center;width:42px;height:40px;padding:0;border:0;background:transparent;color:#934367;cursor:pointer}
.password-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.password-eye-slash{display:none}
.password-toggle[aria-pressed="true"] .password-eye-slash{display:block}
.registration-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:start;margin-top:10px}
.member-registration > summary{font-size:1.4rem;font-weight:700;cursor:pointer}
.registration-layout form{margin:0}
.registration-layout form > :is(label,.password-field){flex-basis:min(100%,220px);min-width:0}
.registration-layout input{width:100%}
.registration-step-title{flex-basis:100%}
:is(.member-address,.member-birthday){display:flex;flex-wrap:wrap;gap:10px;min-width:0;flex-basis:100%;border:1px solid var(--line);padding:10px}
.member-birthday label{flex:1 1 70px;max-width:135px;min-width:0}
.member-birthday label:first-of-type{flex-basis:95px}
.member-address label{flex:1 1 145px;min-width:0}
.member-address label:last-child{flex-basis:100%}
.password-rules{padding:12px 14px;border:1px solid var(--line);background:var(--white);font-size:.85rem}
.password-rules ol{margin:6px 0 0;padding-inline-start:1.4em}
@media(max-width:520px){.registration-layout{grid-template-columns:1fr;gap:12px}}

.demo textarea{display:block;width:100%;margin:12px 0;padding:10px;font:inherit;border:1px solid var(--line);background:var(--white)}
.inquiry-qr{width:144px;margin:12px 0}
.inquiry-status{margin:6px 0 12px;color:var(--soft);font-size:.9rem}
.auth-challenge{display:flex;align-items:end;flex-wrap:wrap;gap:8px;flex-basis:100%}
.auth-challenge img{width:148px;height:45px}
.auth-challenge input{width:9em}
.challenge-status,.form-error{flex-basis:100%;color:#8b3333;font-size:.85rem}
.challenge-status:empty,.form-error:empty{display:none}
.member-account-heading{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.demo .member-account-heading h2{margin:0}
#member-account button:disabled{opacity:.5;cursor:default}
.home-banners + .category-slider + .demo{padding-top:0}
.demo .cart-item{flex-wrap:nowrap;align-items:flex-start;justify-content:flex-start}
.inquiry-item-cover{position:relative;flex:none;width:clamp(56px,16vw,88px);padding:0;border:0;background:transparent;cursor:zoom-in}
.inquiry-item-cover img{aspect-ratio:3/4;object-fit:contain}
.inquiry-cover-icon{position:absolute;inset:3px 3px auto auto;display:grid;place-items:center;width:29px;height:29px;border:1px solid var(--line);border-radius:50%;color:#963c66}
.inquiry-cover-icon svg{width:20px;height:20px}
.inquiry-item-details{flex:1;min-width:0}
.inquiry-item-details p{margin-bottom:8px}
.inquiry-heading{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 18px;margin-bottom:14px}
.demo .inquiry-heading h2{margin:0}
.inquiry-heading p{flex:1 1 240px;margin:0;color:var(--soft);font-size:.9rem}
.demo #message:empty{min-height:0;margin:0}

.demo .staff-account{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:16px 0;padding:12px 16px;border:1px solid var(--line);background:var(--white)}
.demo .staff-account h2,.demo .staff-account p{margin:0}
.demo .staff-account h2{font-size:1rem}
.demo .staff-account p{flex:1 1 200px;overflow-wrap:anywhere;color:var(--soft);font-size:.88rem}
.demo .staff-account .button{min-height:36px;padding:6px 12px;font-size:.84rem}
.demo .staff-navigation{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0;padding:12px 0}
.demo .staff-navigation h2{flex-basis:100%;margin:0 0 2px;font-size:.85rem;color:var(--soft)}
.demo .staff-navigation .button{min-height:38px;padding:8px 14px}
.demo .staff-navigation [aria-current=page]{background:#26372e;border-color:#26372e;color:#fff}
.demo .staff-directory{margin-top:10px}
.demo .staff-directory h2{font-size:clamp(1.45rem,3vw,1.9rem)}
.staff-directory-grid{display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,2.25fr);gap:18px;align-items:start}
.staff-list-pane,.staff-detail-pane,.staff-create{min-width:0;border:1px solid var(--line);background:var(--white);border-radius:8px}
.staff-list-pane{padding:14px}
.staff-list-pane label{font-weight:600}
.staff-list-pane input{width:100%;border-radius:5px}
.staff-result-count{margin:8px 0;color:var(--soft);font-size:.82rem}
.staff-record-list{list-style:none;margin:0;padding:0;max-height:580px;overflow:auto}
.demo .staff-record-list li{margin:0}
.staff-record{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 8px;padding:10px 8px;border:0;border-bottom:1px solid var(--line);text-align:left;background:transparent;color:inherit;cursor:pointer;overflow-wrap:anywhere;font:inherit}
.staff-record strong{grid-column:1;font-size:.92rem}
.staff-record>span:not(.staff-status){grid-column:1;font-size:.8rem;color:var(--soft)}
.staff-record .staff-status{grid-column:2;grid-row:1;align-self:start}
.staff-record:hover,.staff-record[aria-pressed=true]{background:#edf2ec}
.staff-record[aria-pressed=true]{box-shadow:inset 3px 0 #4a6956}
.staff-record:focus-visible{outline:2px solid #4a6956;outline-offset:-2px}
.staff-status{display:inline-block;width:max-content;max-width:100%;padding:3px 8px;border-radius:20px;background:#eeece6;color:#474237;font-size:.73rem;line-height:1.35}
.staff-status:is([data-status=啟用],[data-status=公開],[data-status=已結案]){background:#e1eee4;color:#244d36}
.staff-status:is([data-status=待處理],[data-status=處理中],[data-status=草稿]){background:#fbefd5;color:#66480d}
.staff-status:is([data-status=黑名單],[data-status=停用],[data-status=下架]){background:#f4e5e5;color:#782f37}
.demo .staff-record-detail{margin:0;padding:18px;border:0;border-radius:8px}
.staff-record-heading{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:8px}
.staff-record-heading h3{margin:0;font-size:1.2rem;overflow-wrap:anywhere}
.staff-record-detail>p{margin:4px 0 10px;color:var(--soft);font-size:.87rem}
.staff-empty{margin:0;padding:24px;color:var(--soft)}
.demo .staff-create{padding:12px 16px;margin:0 0 14px}
.staff-create>summary{cursor:pointer;font-weight:650}
.demo .staff-edit-form{display:grid;align-items:start;gap:12px;margin:14px 0 0}
.staff-field-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;min-width:0;margin:0;padding:12px;border:1px solid var(--line);border-radius:6px}
.staff-field-group legend{padding:0 6px;font-size:.88rem;font-weight:650;max-width:100%;overflow-wrap:anywhere}
.staff-field-group label{min-width:0}
.staff-field-group .grow{grid-column:1/-1}
.demo .staff-field-group :is(input,select,textarea){width:100%;max-width:100%;border-radius:4px}
.demo .staff-field-group input[readonly]{background:#efeee9;color:#5e5c55}
.demo .staff-field-group input[type=checkbox]{width:20px;min-height:20px}
.demo .staff-field-group textarea{margin:0}
.staff-edit-form>.button{justify-self:start}
.staff-analytics-table{max-width:100%;overflow:auto}
.staff-analytics-table table{width:100%;min-width:44rem;border-collapse:collapse;text-align:left}
.staff-analytics-table :is(th,td){padding:.65rem .55rem;border-bottom:1px solid var(--line)}
.staff-analytics-table th{background:var(--paper)}
.staff-analytics-table :is(th,td):not(:nth-child(2)){text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.demo .staff-danger{margin-top:14px;color:#842e37;border-color:#be9a9d}
@media(max-width:720px){
  .staff-directory-grid{grid-template-columns:minmax(0,1fr);gap:12px}
  .staff-record-list{max-height:230px}
  .demo .staff-record-detail{padding:14px}
}
@media(max-width:480px){.staff-field-group{grid-template-columns:minmax(0,1fr)}}
