:root{font-family:'Yu Gothic','Meiryo',sans-serif;color:#21372f;background:#eef3ef}*{box-sizing:border-box}body{margin:0}header{padding:36px max(5vw,24px);background:#163e32;color:#fff;position:relative}h1{font-size:36px;margin:10px 0}header p{color:#c9dfd4}.eyebrow{font-size:11px;letter-spacing:2px;color:#c9dc93}.badge{display:inline-block;padding:7px 12px;background:#295343;border-radius:20px;font-size:12px}main{max-width:1400px;margin:24px auto;padding:0 24px}nav,.actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.columns{display:grid;grid-template-columns:1fr 1.2fr;gap:20px}section{padding:24px;background:white;border:1px solid #d7e1da;border-radius:12px;margin:20px 0}h2{font-size:18px;margin:0 0 18px}h2:not(:first-child){margin-top:30px}label{display:block;font-size:13px;font-weight:bold;margin:12px 0}input,textarea{display:block;width:100%;padding:10px;border:1px solid #aebfb5;border-radius:6px;margin-top:6px;font:inherit}input[type=file]{font-size:12px;background:#f4f7f5}.pair{display:flex;align-items:center;gap:12px}.pair>*{flex:1}button,.file{border:1px solid #a2b5a8;background:white;color:#214635;padding:11px 15px;border-radius:7px;font:inherit;font-size:13px;cursor:pointer}.file input{width:230px}.primary{background:#1f6248;color:white;border-color:#1f6248}button:disabled{opacity:.45;cursor:default}.hint{font-size:12px;line-height:1.8;color:#62736a}canvas{width:100%;height:auto;display:block;background:#f1f5f2;border:1px solid #c4d1c8;cursor:crosshair}pre{white-space:pre-wrap;word-break:break-word;background:#f3f6f3;padding:16px;font:13px/1.8 'Yu Gothic',sans-serif;max-height:380px;overflow:auto}#vendors{max-height:min(80vh,840px);max-height:min(80svh,840px);overflow:auto;font-size:12px}table{border-collapse:collapse;width:100%}td,th{padding:7px;text-align:left;border-bottom:1px solid #ddd}footer{text-align:center;padding:24px;font-size:12px;color:#62736a}@media(max-width:800px){.columns{grid-template-columns:1fr}.pair{flex-wrap:wrap}}

#map{touch-action:none;}

[hidden]{display:none!important}select{padding:10px;width:100%;font:inherit}details{margin:15px 0;padding:12px;border:1px solid #c4d1c8;border-radius:6px}summary{cursor:pointer;font-weight:bold}.presets{display:flex;gap:8px}.presets button{flex:1}.presets svg{display:block;width:100%;max-height:80px;margin-bottom:8px}.floor{fill:#ebf1e8}.aisle{fill:#d2dcd2}.lane{stroke:#d2dcd2;stroke-width:6;fill:none}#gridPreview{max-width:400px;margin:12px 0}dialog{max-width:580px;border:1px solid #aebfb5;border-radius:12px;padding:24px}dialog::backdrop{background:#0006}

#mapLabelList{display:flex;flex-direction:column;gap:6px;max-height:min(32vh,320px);max-height:min(32svh,320px);overflow-y:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable;min-width:0}#mapLabelList button{flex:none;width:100%;min-width:0;text-align:left;overflow-wrap:anywhere;white-space:normal}#mapLabelList button[aria-pressed="true"]{border-color:#b52a25;background:#fff1ee}#mapLabelList button:focus-visible{outline:3px solid #215f49;outline-offset:-3px}

@media(max-width:800px),(max-height:600px){#vendors{max-height:min(40vh,320px);max-height:min(40svh,320px)}}

#vendorViewControls input[type=checkbox]{display:inline-block;width:auto;margin:0 6px 0 0}#vendors .vendor-confirmed td,#vendors .vendor-confirmed button,#vendors .vendor-confirmed a{color:#0b2347}

#vendors{contain:inline-size;min-width:0;max-width:100%}#vendors table{table-layout:fixed;width:1104px;min-width:1104px}#vendors td{overflow-wrap:anywhere;vertical-align:top;color:#454b52}#vendors button,#vendors a{color:#454b52}#vendors .vendor-confirmed td,#vendors .vendor-confirmed button,#vendors .vendor-confirmed a{color:#0b2347}#vendors .vendor-placement{white-space:nowrap;width:96px;min-width:96px}#vendors .vendor-id{width:64px}#vendors .vendor-id button{max-width:100%;padding:6px 8px;overflow-wrap:anywhere}#vendors button[aria-pressed="true"]{outline:2px solid #9b5e00;outline-offset:-2px;background:#fff7e6}#vendors button:focus-visible{outline:3px double #111;outline-offset:2px}

#vendors .vendor-name{width:156px}#vendors .vendor-venue{width:108px}#vendors .vendor-booth{width:80px}#vendors .vendor-email{width:280px}#vendors .vendor-contact{width:160px}

#vendors .vendor-placement:focus-visible{outline:2px solid #111;outline-offset:-2px}

#vendors tr:not(.vendor-confirmed) td.vendor-placement{color:#b00020;font-weight:700}

#sampleLoadedName{display:block;margin-top:6px;font-size:12px;}

/* Enabled/disabled controls: appearance follows native disabled state. */
button:not(:disabled),.file:not(:has(input:disabled)){
  color:#111!important;border-color:#303b45;background:#fff;opacity:1;
}
button.primary:not(:disabled){background:#d5ecdf;border-color:#244b38;}
button:not(:disabled):not([aria-pressed="true"]):hover,
.file:not(:has(input:disabled)):hover{background:#e8eef3;border-color:#111;}
button:not(:disabled):not([aria-pressed="true"]):active,
.file:not(:has(input:disabled)):active{background:#d8e2ea;border-color:#111;}
button:not(:disabled):focus-visible,.file:focus-within,
input:not(:disabled):focus-visible,select:not(:disabled):focus-visible,textarea:not(:disabled):focus-visible,
summary:focus-visible{outline:3px solid #145da0;outline-offset:2px;}
button:disabled,.file:has(input:disabled){
  color:#62676c!important;border-color:#b3b8bd!important;background:#eceeef!important;
  opacity:1;cursor:not-allowed;
}
input:not(:disabled),select:not(:disabled),textarea:not(:disabled){color:#111;border:1px solid #303b45;background:#fff;}
input:disabled,select:disabled,textarea:disabled{color:#62676c;border-color:#b3b8bd;background:#eceeef;opacity:1;cursor:not-allowed;}
input[type="checkbox"],input[type="radio"]{accent-color:#244b38;}
input[type="file"]::file-selector-button{color:#111;border:1px solid #303b45;border-radius:4px;background:#fff;padding:6px 10px;cursor:pointer;}
input[type="file"]:not(:disabled)::file-selector-button:hover{background:#e8eef3;border-color:#111;}
input[type="file"]:not(:disabled)::file-selector-button:active{background:#d8e2ea;border-color:#111;}
input[type="file"]:disabled::file-selector-button{color:#62676c;border-color:#b3b8bd;background:#eceeef;cursor:not-allowed;}
summary{color:#111;}

/* Native file selection remains keyboard accessible; its transient filename is not the active background name. */
#imagePicker{position:relative;display:block;max-width:100%;}
#image{position:absolute;width:1px;height:1px;padding:0;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
#imagePicker:focus-within{outline:3px solid #145da0;outline-offset:2px;}
#backgroundImageName{color:#111;background:#fff;border:1px solid #303b45;border-radius:6px;padding:10px;margin:8px 0;font-size:14px;font-weight:700;overflow-wrap:anywhere;}

.input-error{color:#8b1020;background:#fff4f4;font-weight:700;white-space:pre-wrap;overflow-wrap:anywhere;}
.input-error:not(:empty){padding:10px;border:2px solid #8b1020;border-radius:6px;}
.input-error::selection{color:#fff;background:#8b1020;}

/* Final control legibility: semantic placement text outside controls is unchanged. */
button:not(:disabled),.file:not(:has(input:disabled)){
  color:#000!important;border-width:2px;font-weight:600;
}
button:not(:disabled) :is(span,strong,em){color:inherit;}
button:disabled :is(span,strong,em){color:inherit;}
input[type="file"]::file-selector-button{
  font:inherit;font-weight:600;color:#000;border:2px solid #303b45;
}
input[type="file"]:disabled::file-selector-button{
  color:#62676c;border-color:#b3b8bd;background:#eceeef;
}
summary{color:#000;border:2px solid #303b45;border-radius:6px;padding:9px 12px;background:#fff;font-weight:600;}
summary:hover{background:#e8eef3;border-color:#111;}
summary:active{background:#d8e2ea;border-color:#111;}
summary::marker{color:#000;}

.locale-controls{display:flex;flex-wrap:wrap;gap:1rem;align-items:center}.locale-controls p{flex-basis:100%}html[lang=en] .vendor-placement{min-width:128px;width:128px}html[lang=en] button{white-space:normal;overflow-wrap:anywhere}html[lang=en] .presets button{min-width:0}

/* Localized file controls: native input remains the picker, never the visible label. */
input[type=file][hidden]{display:none!important}.file>button{display:block;margin-top:8px}.file-selection{font-size:13px;font-weight:normal;color:#172b27;overflow-wrap:anywhere;max-width:100%;margin:8px 0 0}.file>button:focus-visible{outline:3px solid #145da0;outline-offset:3px}#dateHelp,#dateError{display:block}#date{min-width:0}
