/* Shared responsive layouts. Component colors and interaction states live in buttons.css. */
.creator,.creator form,.form-panel,.item-editor,.managed-sale,.preview-actions{min-width:0}
.creator input,.creator select,.creator textarea{min-width:0;font-size:16px}
.creator h1,.creator h2,.creator h3,.creator p,#account-email{overflow-wrap:anywhere}
.draft-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;align-items:center;padding:0 0 20px}
.draft-bar #draft-status{min-width:0;margin:0;font-size:14px;line-height:1.5;color:var(--muted)}
.draft-bar #save-draft{grid-column:2;grid-row:1}
.draft-bar #draft-status:empty{display:none}
.draft-bar #draft-status[data-state=error]{grid-column:1/-1;grid-row:2;padding:12px 14px;background:#fff3ef;border-left:3px solid #a52b24;border-radius:6px;color:#822b22}
.photo-thumbnail .reorder-handle{position:absolute;right:6px;top:6px;z-index:1;border-radius:10px;background:#fff;width:44px;height:44px;min-height:44px}
.photo-tools{display:flex;align-items:center;gap:8px}
.photo-tools .btn{flex:0 0 48px;width:48px;min-width:48px;height:48px;padding:0;border-radius:10px}
.photo-tools .btn--icon{height:48px}
.photo-tile p{line-height:1.5}.photo-list{align-items:start}
.sale-settings summary>span:first-child{min-width:0}.sale-settings summary small{overflow-wrap:anywhere}
#login-panel form>.btn{margin-top:16px;width:100%}
#login-panel p{line-height:1.5}.managed-sale h2{margin-bottom:10px}
.manage-actions .btn{min-width:0}.published-link{display:block;line-height:1.5}
@media(max-width:600px){
 .creator{width:100%;padding:20px 16px 32px}
 .creator h1{font-size:28px;line-height:1.2;letter-spacing:-.7px}
 .creator .intro{font-size:16px;line-height:1.5;margin-bottom:24px}
 .form-panel{padding:20px 16px;border-radius:16px}
 .creator .section-note{font-size:14px;line-height:1.5;margin-bottom:20px}
 .draft-bar{gap:8px;padding-bottom:16px}.draft-bar #draft-status{font-size:14px}.draft-bar #save-draft{padding:10px 12px}
 .steps{display:grid;grid-template-columns:repeat(3,max-content);justify-content:space-between;gap:6px;align-items:start;margin-bottom:24px}
 .steps li{min-width:0;white-space:nowrap;align-items:center;font-size:12px;line-height:1.4;gap:5px}
 .steps li span{width:22px;height:22px;flex-shrink:0}
 .editor-heading{gap:8px}.editor-heading .remove-item{font-size:14px;padding:10px 8px}
 .item-order-controls{gap:8px}.item-order-controls .btn{min-width:0;font-size:14px;padding:10px 8px}
 .photo-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .creator .preview-toolbar{display:block;padding:12px 0;margin-bottom:20px}
 .preview-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:0}
 .preview-actions .btn{min-width:0;padding:10px 8px;width:100%;font-size:14px}
 .form-actions{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px}
 .form-actions .btn{min-width:0;padding:10px 12px;font-size:14px}.form-actions:not(:has(> .btn:not([hidden]) ~ .btn:not([hidden])))>.btn:not([hidden]){grid-column:1/-1}
 .manage-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .manage-actions .btn{width:100%;font-size:14px;padding:10px 8px}
 #sales-panel>.manage-actions{grid-template-columns:1fr}
 .managed-sale .manage-actions{margin-bottom:0}
 dialog{box-sizing:border-box;width:calc(100% - 32px);max-width:440px;max-height:calc(100dvh - 32px);padding:20px 16px;overflow:auto}
 .dialog-top{gap:8px}.dialog-top h2{min-width:0}.sale-layout .preview-profile{padding-bottom:20px}
 .creator .item-body{padding:20px 16px 0}.creator .title-row{gap:10px}.creator .title-row h2{font-size:21px;line-height:1.3}
}

.creator #result{scroll-margin-top:calc(var(--site-nav-height,64px) + 16px)}
/* Item titles get their own line; prices stay distinct even with long names. */
.item .title-row{display:grid;grid-template-columns:minmax(0,1fr);justify-items:start;align-items:start;gap:8px;padding-bottom:12px}
.item .title-row h2{min-width:0;max-width:100%;margin:0;font-size:20px;font-weight:400;line-height:1.4;letter-spacing:0;overflow-wrap:anywhere}
.item .title-row .price{margin:0;max-width:100%;justify-self:start;font-size:20px;font-weight:650;line-height:1.4;text-align:left;white-space:normal}

.sale-gallery{position:relative;background:#ecf0ee}.sale-gallery .sale-gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:44px;height:44px;min-height:44px;min-width:44px;border-radius:50%;background:#fff;border:0;box-shadow:0 2px 8px #183c3220}.sale-gallery-previous{left:12px}.sale-gallery-next{right:12px}.sale-gallery .photo-count{top:12px;bottom:auto;right:12px;z-index:2}.sale-gallery-dots{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;padding:0 8px;background:#fff}.sale-gallery-dots .btn--dot{width:32px;min-width:32px;height:44px;min-height:44px;padding:0}.sale-gallery .preview-gallery{overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}

/* Editing actions stay together, with comfortable full-width mobile targets. */
.creator .form-actions.editing-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.creator .editing-actions .btn{width:100%;min-height:48px;white-space:normal;margin:0}
.discard-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}.discard-actions .btn{flex:1}
.save-notice{position:fixed;z-index:1000;bottom:max(20px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 32px);box-sizing:border-box;padding:14px 20px;border:1px solid #a9c3b6;border-radius:14px;background:#e8f2ec;color:#08634e;box-shadow:0 4px 20px #183c3220}
@media(max-width:600px){.creator .form-actions.editing-actions{grid-template-columns:1fr}.creator .editing-actions .btn{grid-column:1;margin:0}.discard-actions{flex-direction:column}}

/* Publication confirmation: one primary destination and a compact sharing field. */
#publish-dialog{box-sizing:border-box;width:calc(100% - 32px);max-width:420px;padding:28px 24px 16px;border:1px solid var(--line);border-radius:24px;box-shadow:0 24px 80px #123c3230;color:#142127}
#publish-dialog .publish-close{position:absolute;top:8px;right:8px;color:#52665a}
#publish-dialog svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.publish-success{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;color:#087b5f;background:#e8f2ec;margin-bottom:18px}
#publish-dialog h2{margin:0 0 8px;font-size:26px;line-height:1.2;letter-spacing:-.6px;padding-right:12px}
#publish-description{font-size:15px;line-height:1.5;color:#52665a;margin:0 0 24px;max-width:31ch}
#publish-dialog #view-live-page{min-height:50px;justify-content:center}
.publish-share{margin-top:24px}.publish-share label{display:block;font-size:13px;font-weight:600;color:#52665a;margin-bottom:8px}
.publish-link-field{display:flex;align-items:center;min-width:0;border:1px solid #cddad3;border-radius:12px;background:#f7f9f7;overflow:hidden}
.publish-link-field input[readonly]{min-width:0;width:100%;flex:1;border:0;border-radius:0;background:transparent;padding:12px;font:inherit;font-size:16px;color:#385849;text-overflow:ellipsis;margin:0;box-shadow:none}
.publish-link-field input[readonly]:focus-visible{outline:2px solid var(--btn-focus);outline-offset:-3px}
.publish-link-field .publish-link-copy{flex:0 0 auto;border-radius:0;border-left:1px solid #cddad3}
#publish-dialog #copy-state{min-height:20px;margin:6px 0 0;font-size:13px;line-height:20px;color:#087b5f}
#publish-dialog .publish-manage{margin-top:4px;font-size:14px}
@media(max-width:360px){#publish-dialog{padding:24px 20px 12px}}

@media(max-width:350px){.steps li{font-size:11px;gap:4px}.steps li span{width:20px;height:20px}}

.sales-page-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.creator .sales-page-heading h1{margin:0;min-width:0}.sales-page-heading #signout{flex-shrink:0;white-space:nowrap}
