/* Existing Box Box Share visual system; new controls stay within the sandbox. */
.market-demo .demo-strip{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px 14px;padding:8px 16px}.demo-identity{color:#96202e;font-weight:650}.demo-strip button{border:0;background:transparent;color:#96202e;font:inherit;min-height:30px;padding:3px 7px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.market-page{max-width:760px!important}.market-heading{margin:14px 0 22px}.market-heading h1{font-size:30px;line-height:1.35;margin:8px 0;color:#96202e}.market-heading p{font-size:14px;color:#705d65}.market-form{padding:28px!important}.market-form label{display:flex;flex-direction:column;gap:7px;font-size:14px;color:#55404b}.market-form input:not([type=radio]),.market-form textarea,.market-form select,.profile-contacts input{width:100%;min-width:0;min-height:46px;border:1px solid #e8d7de;border-radius:9px;background:#fffdfb;padding:11px 12px;font:inherit;color:#35202a}.market-form textarea{resize:vertical;min-height:116px}.market-form input:focus,.market-form textarea:focus,.market-form select:focus,.profile-contacts input:focus{outline:2px solid #c9879b;outline-offset:2px}.market-required{display:grid;grid-template-columns:1fr;gap:20px}.market-required>label:first-child{max-width:270px}.intent-picker{display:flex;flex-wrap:wrap;gap:10px;border:0;padding:0;margin:0}.intent-picker legend{font-size:13px;margin-bottom:10px;color:#705d65}.intent-picker label{display:flex;flex-direction:row;align-items:center;gap:8px;padding:12px 18px;border:1px solid #e8d7de;border-radius:10px;cursor:pointer;min-height:46px}.intent-picker label:has(input:checked){background:#f9e6ed;border-color:#c87d93;color:#96202e;font-weight:650}.intent-picker input{width:16px;height:16px;margin:0;accent-color:#b72755}.market-mode-note{font-size:13px;line-height:1.7;color:#705d65;margin:14px 0 24px}
.publish-options{margin-top:24px;border-top:1px solid #efdee4;padding-top:12px}.publish-options>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;font-size:14px;color:#96202e;cursor:pointer}.publish-options[open]>summary>.ui-icon{transform:rotate(180deg)}.publish-options-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:16px 0 6px}.publish-options-grid>.photo-field{grid-column:1/-1}.publish-options input[type=file]{font-size:13px}.photo-field img{display:block;max-width:200px;max-height:150px;border-radius:9px;object-fit:contain}.market-form-footer{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-top:22px}.market-form-footer .hint{max-width:60%;font-size:12px;overflow-wrap:anywhere}.market-form-footer .button{flex-shrink:0}.market-form-status{color:#a43837;font-size:13px;line-height:1.7}.market-form>.hint{font-size:12px;margin:18px 0 0;line-height:1.8}.market-filter-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 16px}.market-filter-tabs button{font:inherit;font-size:13px;color:#705d65;border:1px solid #ead7df;border-radius:22px;background:#fffdfb;min-height:36px;padding:7px 16px;cursor:pointer}.market-filter-tabs button[aria-pressed=true]{background:#96202e;border-color:#96202e;color:#fff}.market-price-help{margin:10px 2px 0;font-size:12px!important}
.shareable-item{position:relative}.market-demo .shareable-item .tile-category{padding-right:30px}.item-share,.detail-share{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:1px solid #eedce3;border-radius:50%;background:#fffdfbed;color:#96202e;cursor:pointer;z-index:2;padding:8px;box-shadow:0 2px 6px #5b253b08}.shareable-item>.item-share{position:absolute;right:9px;top:9px}.item-share:hover,.detail-share:hover{background:#f8e5ed;border-color:#d89aaa}.item-share .ui-icon,.detail-share .ui-icon{width:17px;height:17px}.detail-preview .page{position:relative}.detail-share{float:right;margin:0 0 12px 12px}.market-demo .item-tile.has-photo .item-share{background:#ffffffed}
.market-dialog{box-sizing:border-box;width:min(460px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow-y:auto;padding:26px;border:1px solid #eedce3;border-radius:18px;background:#fffdfb;color:#35202a;box-shadow:0 24px 80px #35202a33;font:14px/1.7 system-ui,sans-serif}.market-dialog::backdrop{background:#35202a66;backdrop-filter:blur(3px)}.market-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:10px}.market-dialog h2{font-size:23px;margin:0;color:#96202e;line-height:1.4}.market-dialog h3{font-size:18px;overflow-wrap:anywhere}.dialog-close{border:0;border-radius:6px;background:#f8edf1;color:#96202e;font:inherit;font-size:12px;padding:7px 10px;min-height:36px;cursor:pointer}.market-dialog .button{border:1px solid transparent;border-radius:9px;background:#d2234a;color:white;min-height:44px;padding:10px 16px;font:600 14px/1.4 system-ui,sans-serif;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.market-dialog .button.secondary{border-color:#dfc9d0;background:#fff;color:#96202e}.dialog-actions,.share-options{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-top:24px}.share-options{justify-content:flex-start}.share-url{width:100%;box-sizing:border-box;border:1px solid #ead7df;background:#f9f4f6;padding:12px;border-radius:8px;color:#705d65;font:13px system-ui,sans-serif}.market-dialog .hint{font-size:12px;line-height:1.8;color:#705d65}.market-toast{position:fixed;left:50%;bottom:95px;transform:translateX(-50%);max-width:calc(100vw - 32px);width:max-content;z-index:200;background:#35202a;color:#fff;padding:12px 18px;border-radius:10px;font-size:13px;line-height:1.6;box-shadow:0 4px 20px #35202a22}.market-toast[hidden]{display:none}
.market-detail{max-width:900px;margin:0 auto}.market-detail-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.market-detail-panel{padding:30px!important}.market-detail h1,.demo-order h1{font-size:30px;line-height:1.4;overflow-wrap:anywhere;margin:14px 0}.market-detail-price,.order-price{font-size:28px;font-weight:700;color:#b72755;margin:16px 0 4px}.market-description{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;margin:22px 0}.market-detail-actions{display:flex;gap:12px;flex-wrap:wrap;margin:24px 0 0}.market-detail-actions>.hint{flex-basis:100%}.market-rental{max-width:420px;margin-top:20px}.market-rental label{display:block;font-size:14px}.market-rental input{width:100%;box-sizing:border-box;font:inherit;padding:10px;border:1px solid #e6d6de;border-radius:8px;margin:6px 0 14px}.rental-quote{background:#f8edf2;border:1px solid #efdee4;border-radius:8px;padding:12px;font-size:13px;line-height:1.8;margin:12px 0}.demo-order{max-width:700px;margin:auto;padding:30px}.demo-order>.pill{display:table;margin-top:16px}.demo-order .notice{margin-top:24px}.market-detail-photo{max-width:100%;max-height:360px;border-radius:12px;object-fit:contain;margin-top:18px}
.profile-contacts{border:0;border-top:1px solid #ead7df;padding:20px 0 0;margin-top:24px;min-width:0}.profile-contacts legend{color:#96202e;font-weight:650;padding:0 10px 0 0;font-size:18px}.profile-contacts label{display:block;font-size:14px;margin:16px 0}.profile-contacts input{display:block;box-sizing:border-box;margin-top:7px}.contact-rule{font-size:13px;color:#705d65;background:#f8edf2;padding:14px;border-radius:8px}.profile-login{margin:18px 0}.market-profile-status{font-size:13px;color:#496a54}.contact-gate{margin-top:12px;border-top:1px solid #f1e2e9;padding-top:10px}.contact-details summary{font-size:13px;min-height:34px;cursor:pointer;color:#96202e}.contact-details .hint{font-size:12px}.contact-values{display:grid;grid-template-columns:auto 1fr;gap:8px 16px;margin:12px 0;font-size:13px}.contact-values dt{color:#705d65}.contact-values dd{margin:0;overflow-wrap:anywhere}.demo-reply-tools{font-size:11px;line-height:1.7;color:#705d65;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 20px;border-top:1px solid #f1e2e9}.demo-reply-tools>span{max-width:70%}.demo-reply-tools button{border:0;background:transparent;color:#96202e;font:inherit;min-height:36px;cursor:pointer;padding:5px 0}.demo-conversation{max-width:900px;margin:auto;padding:0!important;overflow:hidden}.demo-conversation .chat-header{border-bottom:1px solid #ead7df}.demo-conversation .chat-header h1{font-size:24px;margin:8px 0}.demo-conversation .chat-body{min-height:220px;max-height:450px;overflow-y:auto}.demo-conversation .chat-composer{margin-top:20px}.demo-conversation .demo-reply-tools{margin-top:14px}.local-demo-orders{margin-bottom:20px}.market-demo .demo-strip{font-family:inherit}.market-demo .profile-contacts .hint{white-space:normal}.market-demo [hidden]{display:none!important}
@media(max-width:700px){.market-heading h1{font-size:25px}.market-form,.market-detail-panel,.demo-order{padding:20px!important}.publish-options-grid{grid-template-columns:1fr;gap:16px}.market-form-footer{align-items:stretch;flex-direction:column}.market-form-footer .hint{max-width:100%}.market-detail h1,.demo-order h1{font-size:23px}.market-detail-price,.order-price{font-size:23px}.market-detail-actions>.button{flex:1 1 auto}.market-dialog{padding:21px}.market-dialog h2{font-size:21px}.market-dialog .button{font-size:13px}.market-demo .demo-strip{gap:2px 10px;padding:6px 12px;font-size:10px}.market-demo .demo-strip>span:first-child{flex-basis:100%;line-height:1.5}.market-demo .demo-strip button{min-height:26px;font-size:11px}.market-demo .market-required>label:first-child{max-width:none}.market-form input:not([type=radio]),.market-form textarea,.market-form select,.profile-contacts input{font-size:16px}.market-form label,.market-mode-note,.publish-options>summary{font-size:13px}.market-form label{gap:6px}.market-dialog .dialog-actions>.button{flex:1}.market-demo .market-filter-tabs{margin:6px 0 12px;gap:7px}.market-filter-tabs button{font-size:12px;min-height:34px;padding:6px 14px}.shareable-item>.item-share{width:34px;height:34px;right:8px;top:8px}.market-demo .shareable-item .tile-category{padding-right:28px}.demo-reply-tools{padding:10px 14px;align-items:flex-start;flex-direction:column;gap:3px}.demo-reply-tools>span{max-width:none}.contact-values{grid-template-columns:1fr;gap:2px}.contact-values dd{margin-bottom:8px}.market-detail .market-description{font-size:14px}.demo-conversation .chat-composer .button{font-size:13px}.demo-conversation .chat-body{max-height:none}.market-demo .message-shell{height:auto}.market-demo .view-chat .chat-body{min-height:160px}}
@media(min-width:900px){.market-demo .message-shell{height:min(840px,calc(100dvh - 190px))}.market-demo .message-pane{min-height:0}.market-demo .contact-gate{max-height:180px;overflow-y:auto}.market-demo .demo-reply-tools{flex-shrink:0}}
.message-pane>.demo-conversation{border:0;border-radius:0;display:flex;flex-direction:column;min-width:0;min-height:0;height:100%;width:100%;max-width:none}.demo-conversation .chat-header{flex-shrink:0;position:relative}.demo-conversation .chat-body{flex:1;min-height:140px}.demo-safety-menu{margin-top:10px;align-self:flex-end;width:max-content;margin-left:auto}.demo-safety-menu>.menu-content{right:0}.demo-reply-tools button:disabled{opacity:.5;cursor:not-allowed}.demo-conversation .chat-composer{flex-shrink:0}.market-demo .demo-conversation .bubble{max-width:86%;overflow-wrap:anywhere}
.demo-conversation .chat-header{padding:14px 22px}.demo-conversation .chat-header>.breadcrumb{margin-bottom:0;min-height:26px}.demo-conversation .chat-header h1{font-size:22px;padding-right:90px}.demo-conversation .demo-safety-menu{position:absolute;top:14px;right:18px;margin:0}.demo-conversation .contact-gate{margin-top:10px;padding-top:8px}
@media(max-width:700px){.login-dialog .dialog-actions{flex-direction:column-reverse}.login-dialog .dialog-actions>.button{width:100%}.message-pane>.demo-conversation{height:auto;min-height:calc(100dvh - 230px)}.demo-conversation .chat-body{min-height:180px}.demo-conversation .chat-composer{margin-top:16px}}
