:root{font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#35342e;background:#f7f3ea;--amber:#e7aa44;--green:#46614c;--line:#e4ddce;--card:#fffef9}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button,a{ -webkit-tap-highlight-color:transparent}a{color:inherit}button{cursor:pointer;border:1px solid #d5c7ac;border-radius:11px;background:var(--card);color:inherit;padding:11px 17px;font-weight:600}button:hover{background:#fff2d4;border-color:#bd8b36}button:disabled{opacity:.5;cursor:wait}.primary{background:#edba58;border-color:#d5a04b}.quiet{background:transparent}.danger{color:#953a30}.skip{position:absolute;top:-60px;background:white;padding:12px;z-index:20}.skip:focus{top:0}:focus-visible{outline:3px solid #9b6816;outline-offset:4px}header{padding:20px max(calc((100vw - 1240px)/2),28px);display:flex;gap:24px;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:#fbf8f0}.brand{text-decoration:none;display:flex;gap:15px;align-items:center}.brand img{width:76px;height:76px;object-fit:contain}.brand strong{font-size:28px;font-weight:650;letter-spacing:-1px}.brand small{display:block;font-size:12px;letter-spacing:.3px;color:#726b5b}.connection{font-size:12px;color:#686b5a;text-align:right;max-width:280px}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#c9953f;margin-right:7px}nav{display:flex;gap:7px;max-width:1240px;margin:18px auto 0;padding:0 28px;overflow:auto}nav a{text-decoration:none;white-space:nowrap;padding:8px 12px;border-radius:8px;color:#736b5c;font-size:13px}nav a[aria-current=page]{background:#ece5d5;color:#39372e}main{max-width:1240px;padding:26px 28px 70px;margin:auto}h1{font-size:36px;line-height:1.2;font-weight:650;letter-spacing:-1.2px;margin:8px 0 12px}h2{font-size:21px;font-weight:620;letter-spacing:-.4px;margin:0 0 14px}h3{font-size:16px;margin:0 0 8px}p{margin:8px 0 16px}.muted,small{color:#797568}.eyebrow{text-transform:uppercase;letter-spacing:1.9px;color:#7b755f;font-size:11px;font-weight:650}.hero{position:relative;display:grid;grid-template-columns:1fr auto;gap:24px;align-items:center;padding:27px 0 29px}.hero p{max-width:650px;color:#797568}.pill{font-size:11px;border-radius:30px;padding:5px 10px;background:#f0e7d5;display:inline-block;white-space:nowrap}.pill.green{background:#e3ebdf;color:#3f5a3e}.tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px}.tile{border:1px solid var(--line);background:var(--card);border-radius:18px;padding:24px;text-decoration:none;min-height:216px;display:flex;flex-direction:column;transition:transform .15s,box-shadow .15s}.tile:hover{transform:translateY(-3px);box-shadow:0 10px 28px #6a52210c;border-color:#c5ac7a}.tile-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:23px}.tile-icon{width:43px;height:43px;background:#f5e7c7;border-radius:13px;display:grid;place-items:center;color:#9d7129;font-size:21px}.tile:nth-child(3n+2) .tile-icon{background:#e8eee2;color:#51684d}.tile:nth-child(3n) .tile-icon{background:#f0e3d7;color:#8c6648}.tile h2{margin-bottom:6px}.tile p{font-size:13px;color:#858071;max-width:280px;flex:1}.tile-foot{border-top:1px solid #f0ebdf;padding-top:14px;margin-top:9px;font-size:12px;display:flex;justify-content:space-between;color:#746c5d}.tile.create{background:#faf0d5;border-color:#e6d3a4}.notice{padding:14px 18px;background:#f3ead2;border:1px solid #e7d9b7;border-radius:12px;font-size:13px;margin:18px 0;color:#756037}.notice.green{background:#e9efe3;border-color:#d5e0cb;color:#4a6046}.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.between{justify-content:space-between}.card{border:1px solid var(--line);background:var(--card);border-radius:16px;padding:24px;margin:18px 0}.card.compact{padding:16px;margin:12px 0}.empty{padding:48px 24px;text-align:center;border:1px dashed #d8ceb9;border-radius:16px;color:#77715f}.empty h2{color:#4a493d}.actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:20px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 22px}label{display:block;font-size:13px;font-weight:600;margin:12px 0}label small{display:block;font-weight:400;margin-top:4px}input:not([type=checkbox]),select,textarea{display:block;margin-top:7px;width:100%;border:1px solid #d4ccbb;border-radius:9px;padding:11px 12px;color:#35342e;background:#fffefa;min-height:45px}textarea{min-height:110px;resize:vertical}input[type=checkbox]{margin-right:9px;width:16px;height:16px;vertical-align:middle}.type-picker{display:flex;flex-wrap:wrap;gap:10px;margin:23px 0}.type-picker button{flex:1;min-width:120px;padding:17px 10px}.type-picker button[aria-pressed=true]{background:#eeddb5;border-color:#bb8b35}.editor-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(290px,1fr);gap:24px}.editor-layout aside{align-self:start;position:sticky;top:20px}.phone-preview{white-space:pre-wrap;background:#e9eee3;border:1px solid #d5ddcc;border-radius:13px;padding:20px;font-size:13px;line-height:1.8;max-height:620px;overflow:auto}.option{border:1px solid var(--line);border-radius:12px;padding:16px;margin:14px 0}.product-row{display:flex;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.product-row img{width:46px;height:46px;object-fit:cover;border-radius:8px}.product-row .info{flex:1}.product-row small{display:block}.product-row input{width:75px;margin:0}.product-row button{padding:7px 10px}.catalog-results{max-height:370px;overflow:auto}.list-card{display:flex;align-items:center;gap:20px}.list-card .info{flex:1}.list-card h2{font-size:18px;margin:0 0 5px}.list-card .actions{margin:0}.schedule-layout{display:grid;grid-template-columns:240px 1fr;gap:22px;margin-top:22px}.backlog-shelf{background:#eee9dc;border-radius:14px;padding:17px;align-self:start;min-height:180px}.backlog-shelf h2{font-size:17px}.draft-chip{background:#fffdf7;border:1px solid #ddd3bd;border-radius:10px;padding:13px;margin:12px 0;cursor:grab}.draft-chip strong,.draft-chip small{display:block}.draft-chip small{margin-top:5px;font-size:11px}.draft-chip button{font-size:11px;margin-top:10px;padding:5px 9px}.calendar-wrap{overflow:auto;border:1px solid var(--line);border-radius:14px;background:var(--card)}.calendar{min-width:680px}.calendar-head,.calendar-hour{display:grid;grid-template-columns:62px repeat(7,minmax(80px,1fr))}.calendar-head{position:sticky;top:0;z-index:2;background:#f3efe4;border-bottom:1px solid var(--line)}.calendar-head span{text-align:center;padding:12px 2px;font-size:11px}.calendar-hour{min-height:70px}.hour-label{font-size:10px;color:#8b8370;padding:8px}.slot{position:relative;border-top:1px solid #eee9de;border-left:1px solid #eee9de;min-height:70px}.slot:hover,.slot.dragover{background:#fcf0ce}.slot-btn{position:absolute;inset:0;width:100%;border:0;background:transparent;border-radius:0;padding:0;opacity:0;cursor:crosshair}.slot-btn:focus-visible{opacity:1}.calendar-event{position:relative;z-index:1;display:block;width:calc(100% - 4px);margin:2px;border:1px solid #c5b076;border-radius:6px;background:#f0dfad;font-size:10px;text-align:left;padding:5px;line-height:1.4;overflow:hidden}.calendar-event strong{display:block}.calendar-event small{font-size:9px}.schedule-footer{font-size:12px;margin:14px 0;color:#7b7569}.tabs{display:flex;gap:9px;margin:22px 0}.tabs button.active{background:#ede2c8}.metric-row{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:20px 0}.metric{border:1px solid var(--line);border-radius:12px;background:var(--card);padding:18px}.metric strong{font-size:27px;display:block}.settings-section{max-width:850px}dialog{max-width:650px;width:calc(100% - 36px);border:1px solid #d5c6a6;border-radius:18px;padding:26px;background:#fffdf7;box-shadow:0 30px 100px #0003}dialog::backdrop{background:#29271970}#close-modal{margin-top:20px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#393e32;color:white;padding:13px 22px;border-radius:12px;box-shadow:0 8px 30px #0002;z-index:50;display:none;max-width:90vw}#toast.visible{display:block}.error{color:#a0372d}.login{max-width:420px;margin:60px auto}.right{margin-left:auto}.hint{font-size:12px;color:#7f7764}.loading{opacity:.6;pointer-events:none}@media(max-width:1000px){.tiles{grid-template-columns:repeat(2,1fr)}.editor-layout{grid-template-columns:1fr}.editor-layout aside{position:static}.schedule-layout{grid-template-columns:190px 1fr}}@media(max-width:650px){header{padding:16px}.brand img{width:58px;height:58px}.brand strong{font-size:23px}.connection{max-width:130px;font-size:10px}main{padding:20px 16px 50px}nav{padding:0 16px}.hero{grid-template-columns:1fr;gap:0}h1{font-size:29px}.tiles{grid-template-columns:1fr;gap:13px}.tile{min-height:185px}.form-grid{grid-template-columns:1fr}.schedule-layout{grid-template-columns:1fr}.backlog-shelf{min-height:0}.list-card{align-items:flex-start;flex-direction:column}.metric-row{grid-template-columns:1fr}.card{padding:18px}.type-picker button{min-width:95px}.calendar-wrap{max-width:calc(100vw - 32px)}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.template-setting{border-top:1px solid var(--line);padding:14px 0}.template-setting summary{cursor:pointer;font-weight:600}.calendar-jump{margin:0;font-size:11px}.calendar-jump input{padding:5px 8px;min-height:34px;margin:3px 0 0}.calendar-hour,.slot{height:70px;min-height:70px}.calendar-event{position:absolute;margin:0 2px;overflow:hidden;z-index:2;min-height:26px}.event-resize{position:absolute;left:5px;right:5px;z-index:3;height:12px;line-height:10px;text-align:center;cursor:ns-resize;color:#8b6e32;font-size:10px;touch-action:none}.event-resize:hover,.event-resize:focus{background:#d5bd7c}.calendar-wrap{max-height:760px}.product-row .info{min-width:0;overflow-wrap:anywhere}.phone-preview{overflow-wrap:anywhere}
.product-row .remove-item{width:40px;height:40px;min-width:40px;padding:0;border-radius:50%;display:grid;place-items:center;font-size:23px;font-weight:400;align-self:center;margin-top:21px;line-height:1}
.option>.product-row{padding:18px 0;margin-bottom:18px;gap:16px}.option>.product-row label{margin:0}.option>.product-row input{margin-top:5px}.phone-preview{font-size:15px;line-height:1.7}.intro-actions{margin-top:10px}
dialog.product-picker{width:min(1050px,calc(100vw - 48px));max-width:1050px;max-height:90vh;padding:32px;font-size:16px}
.product-picker .catalog-results{max-height:50vh;min-height:230px;overflow-y:auto;scrollbar-gutter:stable;padding-right:24px;margin-top:18px}
.product-picker .product-row{gap:20px;padding:20px 8px}.product-picker .product-row img{width:66px;height:66px}.product-picker .product-row strong{font-size:17px}.product-picker .product-row small{font-size:15px;margin-top:5px}.product-picker .product-row button{padding:12px 18px;min-height:46px;flex-shrink:0}.product-picker #picker-step{margin-top:20px}.product-picker #picker-step h3{font-size:20px;margin-top:20px}
@media(max-width:650px){dialog.product-picker{width:calc(100vw - 24px);padding:20px}.product-picker .catalog-results{padding-right:14px}.product-picker .product-row{gap:12px;flex-wrap:wrap}.product-picker .product-row .info{flex-basis:50%}.product-picker .product-row button{margin-left:auto}}

.auction-media{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}.auction-images{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.auction-images figure{margin:0}.auction-images img{width:100%;height:145px;object-fit:contain;border:1px solid var(--line);border-radius:10px;background:white}.auction-images figcaption{font-size:11px;margin-top:5px;color:#797568}

.auction-images figure{position:relative}.remove-auction-image{position:absolute;right:6px;top:6px;width:32px;height:32px;min-width:32px;padding:0;border-radius:50%;background:#fffef9;box-shadow:0 2px 8px #0002;font-size:21px;line-height:1;display:grid;place-items:center}#restore-auction-images{margin-top:14px}

.wheel-artwork{display:block;width:100%;height:auto;border-radius:14px;border:1px solid var(--line)}.wheel-download{display:inline-block;margin-top:12px;font-size:13px}.timing-summary{padding:16px;border-radius:12px;background:#e9eee3;line-height:1.8;margin:18px 0}.timing-preview{margin-top:16px}.timing-preview .phone-preview{max-height:450px}.timing-preview summary{cursor:pointer;font-weight:600;padding:10px 0}

.template-example{white-space:pre-wrap;padding:1rem;background:#edf1e7;border-radius:12px;line-height:1.65}

.slot{background:linear-gradient(to bottom,#e6e4df 0 var(--elapsed,0%),transparent var(--elapsed,0%) 100%)}.slot.past-slot,.slot.past-slot:hover{background:#e6e4df}.past-slot .slot-btn{cursor:not-allowed}.past-slot .calendar-event{filter:saturate(.35);opacity:.7}.draft-chip:focus-visible{outline:3px solid #9b6816}
dialog.timing-dialog{width:min(1180px,calc(100vw - 40px));max-width:1180px;max-height:94vh;padding:22px}.timing-dialog>div>p{font-size:14px;margin-bottom:12px}.timing-dialog h2{margin-bottom:6px}.timing-dialog #timing-form{display:grid;grid-template-columns:270px minmax(260px,1fr) 160px;gap:22px;align-items:start}.timing-controls .form-grid{grid-template-columns:1fr;gap:0}.timing-controls label{margin:5px 0}.timing-controls .timing-summary{padding:10px;font-size:13px;margin:12px 0;line-height:1.6}.timing-controls .actions{margin-top:12px;gap:6px}.timing-controls button{font-size:14px;padding:8px 10px}.timing-preview{margin:0}.timing-preview .phone-preview{max-height:min(65vh,620px);font-size:16px;padding:16px;line-height:1.5}.timing-media .wheel-artwork{max-height:230px;object-fit:contain}.timing-media .auction-images{display:grid;grid-template-columns:1fr;gap:8px;max-height:60vh;overflow:auto}.timing-media .auction-images img{height:100px;object-fit:cover}.timing-media figure{margin:0}dialog.timing-dialog #close-modal{margin-top:12px}
@media(max-width:850px){.timing-dialog #timing-form{grid-template-columns:240px minmax(220px,1fr)}.timing-media{grid-column:1/-1}.timing-media .wheel-artwork{width:120px}.timing-media .auction-images{display:flex;max-height:100px}.timing-media figure{width:90px;flex-shrink:0}}@media(max-width:600px){.timing-dialog #timing-form{grid-template-columns:1fr}.timing-preview .phone-preview{max-height:40vh}}

.timing-controls{font-size:14px}.timing-controls label{font-size:14px}.timing-controls input:not([type=checkbox]){min-height:36px;padding:7px 9px;margin-top:4px}.timing-controls .notice{padding:9px;margin:10px 0;font-size:13px}.timing-controls .hint{font-size:13px;margin:8px 0}.timing-controls .timing-summary{margin:10px 0;padding:8px}.timing-dialog .phone-preview{max-height:calc(94vh - 180px)}
.calendar-jump{display:flex;align-items:center;gap:8px;font-size:12px;margin:0}.calendar-jump input{width:145px;height:43px;min-height:43px;padding:10px 12px;margin:0;font-size:13px}

[data-drag]{touch-action:none;user-select:none}.calendar-drag-ghost{position:fixed;z-index:100;pointer-events:none;max-width:230px;padding:12px;border:1px solid #bb8b35;border-radius:10px;background:#f0dfad;box-shadow:0 6px 20px #0003;font-size:12px}

/* Six visible ten-minute bands per hour, matching the drag/resize snap. */
.calendar-hour,.slot{height:120px;min-height:120px}.slot::after{content:'';position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(to bottom,transparent 0,transparent calc(100% / 6 - 1px),#ded9cc calc(100% / 6 - 1px),#ded9cc calc(100% / 6));opacity:.7}.slot:hover,.slot.dragover{background:linear-gradient(to bottom,#e6e4df 0 var(--elapsed,0%),transparent var(--elapsed,0%) 100%)}.slot.past-slot:hover{background:#e6e4df}.calendar-head{z-index:30}.calendar-head span{font-size:13px}.hour-label{font-size:12px;color:#655e50}.calendar-event{font-size:13px;padding:7px;display:flex;flex-direction:column;justify-content:flex-start;gap:3px}.calendar-event small{font-size:11px;color:#625737}.calendar-event strong{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.calendar-event.resizing{border:2px solid #8f651e;background:#f7e8bd}.event-resize{background:#c5ad6d;font-size:12px;color:#5f491e}.backlog-shelf small,.draft-chip small,.schedule-footer{font-size:13px}.draft-chip button{font-size:13px}.calendar-drag-ghost{white-space:pre-line}.calendar-drop-preview{position:absolute;z-index:20;left:2px;width:calc(100% - 4px);max-width:none;min-height:26px;padding:7px;border:2px dashed #9b6816;background:#f7e7b9e8;border-radius:6px;font-size:12px;line-height:1.4;overflow:hidden;box-shadow:0 3px 12px #0002}
.calendar-event small{order:-1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex-shrink:0}.calendar-event strong{flex:1;text-align:left}

.hour-label{position:relative;padding:0 8px}.minute-tick{position:absolute;left:22px;font-size:10px;color:#827b6d;line-height:16px}.calendar-event,.calendar-drop-preview{min-height:20px}.slot::after{inset:-1px 0 0;background:repeating-linear-gradient(to bottom,transparent 0,transparent 19px,#ded9cc 19px,#ded9cc 20px)}

.minute-tick:nth-child(1){top:20px}.minute-tick:nth-child(2){top:40px}.minute-tick:nth-child(3){top:60px}.minute-tick:nth-child(4){top:80px}.minute-tick:nth-child(5){top:100px}

.timing-controls small{font-size:13px;color:#625d51}.timing-controls input:not([type=checkbox]){font-size:15px}.timing-dialog .hint{color:#625d51}.timing-dialog #close-modal{font-size:15px}

dialog.timing-dialog #close-modal{position:absolute;top:16px;right:22px;margin:0;padding:8px 14px}.timing-dialog h2{padding-right:95px}.timing-controls .actions{align-items:start}.timing-controls .actions button{padding:8px}

.library-toolbar{display:flex;align-items:end;justify-content:space-between;gap:20px;flex-wrap:wrap}.library-toolbar .tabs{margin:0}.library-search{width:min(100%,370px);margin:0}.library-count{font-size:12px;margin-left:5px;opacity:.75}.library-toolbar .tabs button[aria-pressed=true]{border-color:#bb8b35}.list-card .actions{flex-shrink:0}@media(max-width:850px){.list-card{flex-wrap:wrap}.library-toolbar{align-items:start}.library-search{width:100%}}

.instruction-preview{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;font-size:14px;line-height:1.6;background:#eee9dc;border-radius:12px;padding:16px}.instruction-preview:empty{display:none}

.review-card>small{display:block;margin:12px 0;color:#706957}.bid-review-evidence{margin:20px 0;padding:18px;background:#f7f4eb;border:1px solid var(--line);border-radius:12px}.bid-review-evidence dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:0 0 18px}.bid-review-evidence dt{font-size:13px;color:#706957}.bid-review-evidence dd{margin:5px 0 0;overflow-wrap:anywhere}.bid-review-messages{display:grid;grid-template-columns:1fr 1fr;gap:18px}.bid-review-messages h3{font-size:15px;margin:0 0 8px}.bid-review-messages blockquote{margin:0;padding:12px;background:#fffdf7;border-left:3px solid #c5ad6d;white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px}.bid-review-evidence details{margin-top:18px}.bid-review-evidence summary{cursor:pointer}.bid-review-screenshot{display:block;max-width:100%;max-height:420px;object-fit:contain;margin-top:14px}.bid-review-controls{margin-top:22px;display:flex;flex-wrap:wrap;align-items:flex-end;gap:16px 24px}.bid-review-decisions,.bid-review-correction{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px}.bid-review-controls button{min-height:45px;padding:10px 16px}.bid-review-correction label{margin:0;width:180px}.bid-review-controls>.hint{flex-basis:100%;margin:0}@media(max-width:650px){.bid-review-evidence dl,.bid-review-messages{grid-template-columns:1fr}.bid-review-correction{width:100%}.bid-review-correction label{flex:1;min-width:130px}}

.calendar-tooltip{position:fixed;z-index:1000;width:360px;max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);overflow:hidden;box-sizing:border-box;padding:16px 18px;border:1px solid #d3c4a5;border-radius:12px;background:#fffdf7;color:#35342e;box-shadow:0 8px 28px #0003;font-size:16px;line-height:1.6;white-space:pre-line;overflow-wrap:anywhere;pointer-events:none}.calendar-tooltip[hidden]{display:none}

.schedule-layout>div{min-width:0}.timeline{--hour-width:240px;--day-height:150px;width:max-content;min-width:100%}.day-view .timeline{--hour-width:360px;--day-height:280px}.timeline-header,.timeline-day{display:grid;grid-template-columns:150px repeat(24,var(--hour-width))}.timeline-header{position:sticky;top:0;z-index:50;background:#f3efe4}.timeline-header>span{padding:12px;border-bottom:1px solid var(--line);font-size:14px}.timeline-label{position:sticky;left:0;z-index:40;display:block;background:#f3efe4;padding:16px;border-right:1px solid var(--line);font-size:15px}.timeline-label.is-today{background:#f4e4ba}.timeline .slot{height:var(--day-height);min-height:var(--day-height);width:var(--hour-width);border-top:1px solid var(--line);background:linear-gradient(to right,#e6e4df 0 var(--elapsed,0%),transparent var(--elapsed,0%) 100%)}.timeline .slot::after{inset:0;background:repeating-linear-gradient(to right,transparent 0,transparent calc(100% / 6 - 1px),#ded9cc calc(100% / 6 - 1px),#ded9cc calc(100% / 6));opacity:.7}.timeline .slot.past-slot{background:#e6e4df}.timeline .calendar-event{top:8px;height:calc(100% - 16px);margin:0;min-width:20px;padding:10px;gap:8px;font-size:14px}.timeline .calendar-event strong{-webkit-line-clamp:5}.day-view .calendar-event strong{-webkit-line-clamp:10}.timeline .calendar-event small{font-size:12px}.timeline .event-resize{top:8px;bottom:8px;right:auto;width:10px;height:auto;line-height:normal;cursor:ew-resize;display:flex;align-items:center;justify-content:center;writing-mode:vertical-rl}.timeline-wrap{max-height:850px}.month-mode{min-width:0}.month-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;background:var(--line)}.month-weekday{background:#f3efe4;padding:12px;text-align:center;font-size:14px}.month-day{display:flex;min-height:110px;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:12px;border:0;border-radius:0;padding:12px;font-size:16px;background:#fffdf7}.month-day.outside-month{color:#8b8370;background:#f1eee6}.month-day.is-today{box-shadow:inset 0 0 0 2px #bd8a2c}.month-day .pill{font-size:12px;padding:4px 7px;white-space:normal}.month-wrap{max-height:none}@media(max-width:650px){.month-calendar{min-width:560px}.timeline-header,.timeline-day{grid-template-columns:110px repeat(24,var(--hour-width))}.timeline-label{font-size:13px;padding:12px}}

.timeline-wrap:not(.day-view) .timeline{--day-height:75px}.timeline-wrap:not(.day-view) .calendar-event{padding:5px 10px 5px 6px;gap:2px;font-size:13px}.timeline-wrap:not(.day-view) .calendar-event strong{-webkit-line-clamp:2;flex:0 1 auto}.timeline-wrap:not(.day-view) .timeline-label{display:flex;align-items:center;padding:10px 14px}

.month-day.past-day,.month-day.past-day:hover{background:#e6e4df;color:#79756d}.month-count.count-past{background:#d9d6cf;color:#625e56}.month-count.count-empty{background:#f8dcd6;color:#8b2d20;border:1px solid #d89b91}.month-count.count-one{background:#f6e5b7;color:#795311;border:1px solid #d6b66c}.month-count.count-ready{background:#dcebdc;color:#305f38;border:1px solid #97bc9d}

.calendar-tooltip.month-tooltip{width:420px}.month-tooltip-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.8}

/* Compact planning blocks; full detail lives in hover and the date-range table. */
.timeline{--day-height:68px}.day-view .timeline{--day-height:130px}.timeline-wrap:not(.day-view) .timeline{--day-height:68px}
.timeline .calendar-event{border-radius:14px;padding:6px 11px 6px 6px;display:flex;justify-content:center;gap:0}.timeline .calendar-event strong{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex:none;font-size:13px}.timeline-day>.timeline-label{border-radius:0;text-align:left;font-weight:600;cursor:pointer}.timeline-day>.timeline-label:hover{text-decoration:underline}
.calendar-legend{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.auction-type{padding:5px 10px;border:1px solid #b5b5a9;border-radius:20px;font-size:13px;display:inline-block}
.type-single{background:#dcebd9!important;border-color:#70976b!important;color:#254b2a}.type-bundle{background:#dce7f4!important;border-color:#7795b6!important;color:#294762}.type-choice{background:#eee0f4!important;border-color:#aa85b8!important;color:#653e76}.type-builder{background:#fae5cb!important;border-color:#c39968!important;color:#704a21}.type-wheel{background:#f5e5ad!important;border-color:#b6a051!important;color:#655218}
.schedule-details{margin-top:24px}.table-scroll{overflow-x:auto}.schedule-details table{border-collapse:collapse;width:100%;font-size:14px}.schedule-details th,.schedule-details td{text-align:left;padding:12px;border-bottom:1px solid var(--line);vertical-align:top}.schedule-details td:nth-child(3){min-width:220px;max-width:420px;overflow-wrap:anywhere}.schedule-details .actions{margin:0;gap:5px}.schedule-details button{padding:6px 9px;font-size:13px}#editor-errors:focus,#timing-error:focus{outline:2px solid #a0372d}#calculated-start{font-weight:600;font-size:14px}.option .hint{line-height:1.6}

.history-analysis table{width:100%;border-collapse:collapse;font-size:14px}.history-analysis th,.history-analysis td{padding:12px;text-align:left;border-bottom:1px solid var(--line)}.history-analysis td small{display:block;font-size:11px}.history-analysis .tabs{flex-wrap:wrap}

[hidden]{display:none!important}

.draft-chip.type-single,.draft-chip.type-bundle,.draft-chip.type-choice,.draft-chip.type-builder,.draft-chip.type-wheel{border-width:1px 1px 1px 5px}.draft-chip small{color:inherit}.timeline .calendar-event strong{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

.schedule-layout .schedule-details{padding:16px;margin-top:18px;min-width:0}.schedule-layout .schedule-details table{font-size:13px;table-layout:auto}.schedule-layout .schedule-details th,.schedule-layout .schedule-details td{padding:8px 6px}.schedule-layout .schedule-details td:nth-child(3){min-width:130px;max-width:280px}.schedule-layout .schedule-details .actions{flex-wrap:wrap;gap:4px}.schedule-layout .schedule-details .actions button{padding:5px 7px;font-size:12px}
.schedule-layout .schedule-details td:first-child{white-space:nowrap}
.double-up-settings{border:1px solid var(--line,#ded4bd);border-radius:10px;padding:14px;margin:16px 0 0;min-width:0}.double-up-settings legend{font-weight:600;padding:0 6px}.double-up-settings label:has(input[type=radio]),.double-up-settings label:has(input[type=checkbox]){display:flex;align-items:center;gap:8px}.double-up-settings input[type=radio]{width:16px;height:16px;min-height:0;padding:0;margin:0;flex:none;accent-color:#b88b35}
.recovery-panel{margin-top:1rem;border-top:1px solid var(--line,#ded5bf);padding-top:1rem}.recovery-panel blockquote{white-space:pre-wrap;overflow-wrap:anywhere;margin:.6rem 0;padding:.8rem;background:#f7f4eb;border-left:3px solid #b89a53}.recovery-win{padding:1rem;margin:.8rem 0;border:1px solid #ded5bf;border-radius:12px}.recovery-win pre{white-space:pre-wrap;font:inherit;line-height:1.5}.recovery-panel label{display:block;margin:.8rem 0}.recovery-panel input:not([type=checkbox]),.recovery-panel select,.recovery-panel textarea{width:100%;max-width:36rem}.recovery-facts{display:flex;flex-wrap:wrap;gap:1rem}.recovery-facts dt{font-weight:600}.recovery-facts dd{margin:.3rem 0}.recovery-panel .actions{display:flex;flex-wrap:wrap;gap:.5rem}.recovery-panel h4{font-size:1rem}

dialog.timing-dialog{width:min(1450px,calc(100vw - 40px));max-width:1450px}.timing-dialog #timing-form{grid-template-columns:240px minmax(250px,.9fr) minmax(300px,1.2fr) 130px;gap:18px}.timing-agenda{margin:0;max-height:72vh;overflow:auto;padding-right:8px}.timing-agenda h4{margin:16px 0 8px}.timing-agenda .hint{font-size:13px}.day-auctions{list-style:none;padding:0;margin:0}.day-auctions li{padding:10px 8px;border-bottom:1px solid #d9d9cc;font-size:13px;overflow-wrap:anywhere}.day-auctions small{color:#625d51}.proposed-slot{background:#e8efe1;border:1px solid #b7c8ab;border-radius:10px;padding:10px;font-size:14px}.proposed-slot p{margin:6px 0 0}.slot-conflict{background:#fff0df;border-left:4px solid #a14316!important}.gap-option{display:block;width:100%;text-align:left;margin:6px 0;padding:8px;font-size:13px}
@media(max-width:1150px){.timing-dialog #timing-form{grid-template-columns:230px minmax(250px,1fr) minmax(280px,1fr)}.timing-dialog .timing-media{grid-column:1/-1}.timing-dialog .timing-media .auction-images{display:flex;max-height:100px}.timing-dialog .timing-media figure{width:100px;flex-shrink:0}}
@media(max-width:850px){.timing-dialog #timing-form{grid-template-columns:minmax(200px,1fr) minmax(230px,1fr)}.timing-dialog .timing-preview{grid-column:1/-1}.timing-agenda{max-height:60vh}}
@media(max-width:600px){.timing-dialog #timing-form{grid-template-columns:1fr}.timing-agenda{max-height:50vh}.timing-dialog .timing-preview{grid-column:auto}}

.shelf-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0}.shelf-actions button{font-size:13px;padding:7px;text-align:left}.reuse-results{max-height:60vh;overflow:auto;margin-top:12px}.reuse-results .list-card{padding:14px;gap:14px}.reuse-results p{margin:6px 0}.reuse-results strong{overflow-wrap:anywhere}

.settings-category-nav{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 20px}.settings-group{margin:16px 0;padding:18px;background:#f2eee1;border:1px solid #d7cfb8;border-radius:14px;scroll-margin-top:12px}.settings-group>summary{font-size:21px;font-weight:700;cursor:pointer}.settings-group>.card{margin-top:14px}.settings-save-bar{position:sticky;bottom:0;padding:12px;background:#f8f5ec;border-top:1px solid #d7cfb8;z-index:2}

/* Mobile planning is a tap-first agenda; desktop calendar remains unchanged. */
@media(max-width:650px){
 html,body{max-width:100%;overflow-x:hidden}main,.editor-layout,.editor-layout>*,.schedule-layout,.schedule-layout>*{min-width:0}
 input,select,textarea{font-size:16px!important;max-width:100%;box-sizing:border-box}button{min-height:44px}nav{overflow-x:auto;flex-wrap:nowrap}nav a{white-space:nowrap;flex-shrink:0;padding:14px 10px}
 .row{flex-wrap:wrap}.type-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.type-picker button{min-width:0;width:100%}
 .editor-layout aside{position:static}.editor-layout form>.actions{position:sticky;bottom:0;background:#fffdf7;padding:12px 0;z-index:5;display:flex;flex-wrap:wrap}.editor-layout form>.actions button{flex:1;min-width:130px}
 .product-row{flex-wrap:wrap}.product-row .info{flex-basis:calc(100% - 75px)}.product-row label{flex:1}.option>.row{align-items:flex-start}.draft-chip{cursor:default}.draft-chip button{font-size:15px;padding:10px 14px}
 .timeline-wrap,.schedule-footer,.calendar-legend{display:none}.schedule-details{margin-top:12px!important;padding:0!important;background:transparent;border:0}.schedule-details .table-scroll{overflow:visible}.schedule-details table,.schedule-details tbody,.schedule-details tr,.schedule-details td{display:block;width:auto}.schedule-details thead{display:none}.schedule-details tbody tr{padding:14px;margin:12px 0;border:1px solid var(--line);border-radius:12px;background:#fffdf7}.schedule-details td{border:0!important;padding:5px 0!important;min-width:0!important;max-width:none!important;white-space:normal!important}.schedule-details td:before{content:attr(data-label);display:block;font-size:11px;color:#716b5d}.schedule-details td[data-label="Auction"]{font-size:17px;font-weight:600}.schedule-details .actions button{font-size:14px!important;padding:10px 12px!important}.schedule-details td[colspan]:before{content:none}
 dialog.timing-dialog,dialog.product-picker{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:16px;box-sizing:border-box;overflow-y:auto}.timing-dialog #timing-form{display:flex;flex-direction:column;gap:14px}.timing-controls{order:0}.timing-agenda{order:1;max-height:none;overflow:visible}.timing-preview{order:2}.timing-media{order:3}.timing-controls .actions{position:sticky;bottom:0;background:#fffdf7;padding:10px 0;z-index:4}.timing-controls .actions button{flex:1}.timing-dialog .phone-preview{max-height:260px}.timing-media .auction-images{display:flex;overflow-x:auto}.timing-media figure{width:90px;flex-shrink:0}
}

.settings-index-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.settings-index-entry{display:block;padding:16px;border:1px solid var(--line);border-radius:12px;text-decoration:none;color:inherit}.settings-index-entry:hover{background:#f0eadb}.settings-index-entry p{font-size:14px;line-height:1.5}.settings-index-entry span{font-size:13px;text-decoration:underline}.settings-search-results{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.settings-group>.card{scroll-margin-top:20px}@media(max-width:650px){.settings-index-results{grid-template-columns:1fr}.settings-search-results button{width:100%;text-align:left}}

.auction-creator summary{cursor:pointer;line-height:1.8}.auction-creator summary .pill{margin-left:.5rem}.auction-creator .actions{margin-top:1rem}.auction-creator .option{margin-top:1rem}.auction-creator .row>div{flex:1;min-width:12rem}
.creator-modes{border:0;padding:0;margin:0 0 1rem;min-width:0}
.creator-mode-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;max-width:28rem}
.creator-mode-options label{display:flex;align-items:center;gap:.4rem;padding:.55rem .65rem;border:1px solid var(--line);border-radius:.55rem;cursor:pointer}
.creator-mode-options label:has(input:checked){border-color:var(--green);background:#e9efe6;color:var(--green);font-weight:700}
.creator-mode-options input{width:auto;margin:0;accent-color:var(--green)}

.insight-schedule-tile{display:block;margin:0 0 1.5rem;min-height:0}.insight-schedule-tile h2{margin-top:0}.insight-schedule-tile span{font-weight:600}

/* Put the touch controls and editable auctions ahead of the backlog on narrow screens. */
.timing-dialog summary{font-weight:600;cursor:pointer;padding:10px 0}
@media(max-width:650px){
 .schedule-layout{display:flex;flex-direction:column;gap:20px}
 .schedule-layout+.insight-schedule-tile{margin:20px 0 0}
 .schedule-navigation>.row{gap:6px}
 .schedule-navigation>.row>strong{font-size:13px}
 .schedule-navigation .calendar-jump{flex-basis:100%;margin-top:4px}
 .calendar-drag-help{display:none}
 .backlog-shelf [data-drag]{touch-action:pan-y}
 .schedule-details td:is([data-label="Type"],[data-label="Starting bid"],[data-label="Duration"]){display:none}
 .schedule-details td:is([data-label="Date / UK time"],[data-label="Auction"],[data-label="Status"],[data-label="Actions"])::before{content:none}
 .schedule-details td[data-label="Date / UK time"]{font-size:13px;color:#5c584d}
 .schedule-details .actions{flex-wrap:wrap;gap:8px}
 .schedule-details .change-time{flex:1 0 100%}
 dialog.timing-dialog{overscroll-behavior:contain}
 .timing-dialog #timing-form{align-items:stretch}
 .timing-controls .actions{position:static}
 .timing-controls .actions button{flex:1 0 auto}
 .timing-controls #save-timing{flex-basis:100%}
 .timing-dialog details{border-top:1px solid var(--line);min-width:0}
 .timing-dialog summary{min-height:44px;box-sizing:border-box}
}

dialog.low-start-dialog{width:min(430px,calc(100vw - 32px));padding:22px;box-sizing:border-box}
.low-start-dialog h2{font-size:21px;margin:0 0 12px}
.low-start-dialog p{line-height:1.5}
.low-start-dialog .actions{justify-content:flex-end;flex-wrap:wrap}
.low-start-dialog button{min-height:44px}

.auction-heatmap{min-width:560px}
.auction-heatmap caption{text-align:left;font-weight:600;padding:.7rem 0}
.auction-heatmap td{border:2px solid var(--surface,#fff);color:#233525}
.auction-heatmap td small{display:block;white-space:nowrap}
.auction-heatmap .heat-0{background:#f1f0eb}
.auction-heatmap .heat-1{background:#e4f0df}
.auction-heatmap .heat-2{background:#cde5c6}
.auction-heatmap .heat-3{background:#afd5a4}
.auction-heatmap .heat-4{background:#8abd80}

/* Keep the reply and next decision together on small screens. */
.linked-review-heading{margin:0 0 12px}
.linked-review-heading a{display:inline-flex;align-items:center;min-height:44px}
.linked-review-heading h1{font-size:clamp(24px,4vw,36px);margin:4px 0}
.linked-review-card h2{margin:.65rem 0 .3rem}
.review-auction,.review-win-name{margin:.3rem 0 .75rem;overflow-wrap:anywhere}
.review-status.blocking{background:#f8e4d1;color:#73350e;border:1px solid #dba775}
.review-status.staff{background:#e9efdd;color:#304521}
.review-status.waiting{background:#e8edf2;color:#334a60}
.review-reply{margin:.8rem 0;padding:.8rem 1rem;border-radius:10px;background:#f7f4eb}
.review-reply h3{font-size:1rem;margin:0}
.review-reply blockquote,.recovery-panel .review-reply blockquote{background:none;border:0;margin:.35rem 0;padding:0;white-space:pre-wrap;overflow-wrap:anywhere}
.linked-review-card .recovery-panel{border:0;padding:0;margin:0}
.review-prices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;margin:.65rem 0}
.review-prices>div{background:#f2f3e8;border-radius:8px;padding:.55rem .7rem}
.review-prices dt{font-size:.85rem}
.review-prices dd{margin:.15rem 0 0;font-size:1.2rem;font-weight:700}
.review-more{margin-top:.65rem;border-top:1px solid var(--line);padding-top:.5rem}
.review-more summary{cursor:pointer}
@media(max-width:650px){
 .review-card{padding:14px}
 .review-card .recovery-win{padding:12px}
 .review-card .review-decision button,.review-card .review-decision select{min-height:44px}
 .review-card .review-decision .primary{width:100%}
 .review-card .recovery-panel input[type=checkbox]{width:auto}
}
.planner-images{display:flex;gap:12px;overflow-x:auto;margin:16px 0}.planner-images img{width:120px;height:120px;object-fit:contain;border-radius:12px;background:#faf8f0}.planner-content-card{margin:20px 0}.planner-content-card h3{margin:10px 0}.planner-content-card details{margin:16px 0}.planner-content-card .phone-preview{white-space:pre-wrap}.planner-content-card .actions{flex-wrap:wrap}#planner-edit-form textarea{min-height:140px}#planner-edit-form .product-row{flex-wrap:wrap;gap:12px}
@media(max-width:650px){.planner-content-card .actions button{width:100%;min-height:44px}.planner-images img{width:96px;height:96px}#planner-edit-form .form-grid{grid-template-columns:1fr}}
.accuracy-history table{width:100%;min-width:680px;border-collapse:collapse}.accuracy-history th,.accuracy-history td{padding:12px 16px;text-align:left;vertical-align:top;border-bottom:1px solid #e4e2d8}.accuracy-history th{font-size:13px}.accuracy-history caption{text-align:left;font-size:13px;padding:12px 0}.accuracy-history td:first-child{white-space:nowrap}

.stock-lozenge,.attribution-pill{display:inline-block;padding:.3rem .65rem;border-radius:999px;background:#edf3e9;color:#244b36;font-size:.85rem;line-height:1.4;white-space:normal;overflow-wrap:anywhere}.stock-lozenge{margin-top:.4rem}.stock-unknown{background:#f8eed5;color:#6b521b}.stock-empty{background:#f4eeee;color:#704141}.stock-warning{border-left:4px solid #c58c22;line-height:1.5}.field-label{display:block;font-weight:600}.attribution-pill{margin:.35rem 0}

.planner-stock-item{margin:.55rem 0}.planner-stock-item .stock-lozenge{display:table;max-width:100%}
