.upload-photo{--up-line:#dfdfd5;max-width:1320px;margin:auto;padding:24px max(3vw,18px) 48px}.upload-photo [hidden]{display:none!important}.up-heading{display:flex;align-items:center;gap:20px;margin-bottom:20px}.up-heading h1{font:normal 34px Georgia,serif;letter-spacing:-1px;margin:0}.up-heading a{font-size:12px}.up-local{margin-left:auto;font-size:11px;color:var(--muted)}.up-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:26px;align-items:start}.up-photo-column{min-width:0;position:sticky;top:12px}.up-stage{height:min(53dvh,510px);min-height:240px;position:relative;background:#e8e9e2;border:1px solid var(--up-line);border-radius:14px;overflow:hidden}.up-stage canvas,.up-stage svg{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.up-stage svg{touch-action:auto}.up-stage[data-editing=true] svg{touch-action:none;cursor:crosshair}.up-stage svg [role=button]{cursor:grab;outline:none}.up-stage svg [role=button]:focus{fill:#ab1735;stroke:#fff;stroke-width:4px}.up-placeholder{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:20px;text-align:center}.up-placeholder h2{font:normal 25px Georgia,serif;margin:0 0 12px}.up-placeholder p{font-size:12px;color:var(--muted);line-height:1.7;max-width:270px}.up-choose{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}.up-file{position:relative;cursor:pointer;overflow:hidden}.up-file input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.up-file:focus-within{outline:3px solid #bf9554;outline-offset:3px}.up-file.button{font-size:12px;padding:12px 16px;min-height:44px;gap:7px}.up-example{margin-top:12px;font-size:12px}.up-toolbar{display:flex;flex-wrap:wrap;gap:7px;align-items:center;padding:12px 0}.upload-photo .button.small{font-size:12px;min-height:40px;padding:9px 12px}.up-hint{font-size:12px;line-height:1.65;min-height:20px;margin:0;color:#5f6e57}.up-preview-actions{display:flex;gap:8px;flex-wrap:wrap;padding:14px 0;border-top:1px solid var(--up-line);margin-top:12px}.up-preview-actions button[aria-pressed=true]{background:#354c39;color:white;border-color:#354c39}.up-fine{font-size:11px;line-height:1.7;color:var(--muted);margin:10px 0}.up-empty-panel{padding:26px 22px;background:#eeeee6;border-radius:12px;font-size:13px;line-height:1.7;color:var(--muted)}.up-side{min-width:0}.up-section{padding-bottom:22px;margin-bottom:22px;border-bottom:1px solid var(--up-line)}.up-section h2{font-size:14px;margin:0 0 13px}.up-wall-list{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px}.up-wall{display:flex;align-items:center;gap:8px;border:1px solid #d2d7ca;background:transparent;border-radius:7px;min-height:42px;padding:8px 12px;font-size:12px}.up-wall[aria-pressed=true]{border:2px solid #354c39;padding:7px 11px}.up-wall span{width:17px;height:17px;border-radius:4px;border:1px solid #0002}.up-surface-actions{display:flex;gap:8px;flex-wrap:wrap}.up-surface-actions button{font-size:11px;min-height:36px}.up-mask-options{margin-top:12px;font-size:12px;color:var(--muted)}.up-mask-options summary{cursor:pointer}.up-holes{padding:10px 0;display:grid;gap:6px}.up-hole-row{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px}.up-category{display:flex;gap:8px;align-items:center;justify-content:space-between;margin:0 0 12px}.upload-photo select{min-height:40px;padding:8px;border:1px solid var(--up-line);border-radius:6px;background:#fffdf8;color:var(--ink);max-width:100%;font-size:12px}.up-picker-tabs{display:flex;padding:4px;gap:4px;background:#eeeee6;border-radius:8px;margin-bottom:14px}.up-picker-tabs button{flex:1;border:0;border-radius:5px;background:transparent;min-height:40px;font-size:12px;color:var(--muted)}.up-picker-tabs button[aria-selected=true]{background:#fffdf8;color:var(--ink);box-shadow:0 1px 4px #0001}.up-products{display:flex;gap:8px;overflow-x:auto;padding:4px 1px 10px;scroll-snap-type:x proximity}.up-product{flex:0 0 99px;scroll-snap-align:start;display:flex;align-items:center;flex-direction:column;gap:6px;min-height:135px;border:1px solid var(--up-line);background:transparent;border-radius:8px;padding:10px 6px;font-size:10px;text-align:center;color:var(--ink)}.up-product[aria-pressed=true]{border:2px solid #354c39;padding:9px 5px;background:#eef0e7}.up-product img{width:63px;height:77px;object-fit:contain;mix-blend-mode:multiply}.up-product strong{font-weight:500;line-height:1.4}.up-mode-row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:12px 0}.up-mode-row label{font-size:11px;color:var(--muted)}.up-search{display:block;width:100%;margin:12px 0;padding:12px;border:1px solid var(--up-line);border-radius:7px;background:#fffdf8;font-size:14px;color:var(--ink)}.up-color-grid,.upload-photo .color-family-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.up-color-tile,.upload-photo .tile{padding:0;border:1px solid transparent;background:transparent;text-align:left;font-size:10px;color:var(--ink);border-radius:6px;overflow:hidden;min-width:0}.up-color-tile span,.upload-photo .tile span:last-child{display:block;padding:6px 3px;line-height:1.4;overflow-wrap:anywhere}.up-color-tile .up-swatch,.upload-photo .tile .swatch{height:53px;display:block;background:var(--swatch);padding:0;border:1px solid #0001;border-radius:5px}.up-color-tile[aria-pressed=true],.upload-photo .tile[aria-pressed=true]{border:2px solid #354c39}.up-color-tile[aria-pressed=true] span,.upload-photo .tile[aria-pressed=true] span:last-child{padding:5px 2px}.up-pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:16px;font-size:11px}.up-pagination button{min-height:38px;border:1px solid var(--up-line);border-radius:6px;background:transparent;padding:8px;color:var(--ink)}.up-color-selection{display:flex;gap:9px;align-items:center;padding:12px 0;font-size:12px;line-height:1.5}.up-color-selection>span{width:35px;height:35px;border-radius:6px;border:1px solid #0002;flex-shrink:0}.up-color-selection small{display:block;color:var(--muted);font-size:10px}.upload-photo .color-family{padding:12px 0;border-bottom:1px solid var(--up-line)}.upload-photo .color-family h3{font-size:12px;margin:0 0 10px}.upload-photo .color-sort-note{font-size:10px;color:var(--muted)}.upload-photo #color-browser-pane{max-height:560px;overflow:auto;scrollbar-width:thin}.up-confirm{padding:25px;max-width:380px;width:calc(100vw - 28px);border-radius:12px}.up-confirm h2{font:normal 26px Georgia,serif}.up-confirm p{font-size:13px;line-height:1.7;color:var(--muted)}
@media(max-width:760px){.upload-photo{padding:16px 12px 32px}.up-heading{gap:14px;margin-bottom:15px}.up-heading h1{font-size:27px}.up-local{font-size:9px;max-width:70px;text-align:right}.up-layout{display:block}.up-photo-column{position:static}.up-stage{height:42dvh;min-height:250px;max-height:400px;border-radius:10px}.up-side{margin-top:24px;padding-top:22px;border-top:1px solid var(--up-line)}.up-placeholder h2{font-size:24px}.up-color-grid,.upload-photo .color-family-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.upload-photo #color-browser-pane{max-height:550px}.up-product{flex-basis:105px}.up-search{font-size:16px}.up-hint{font-size:11px}.up-toolbar{gap:6px}.upload-photo .button.small{font-size:11px;padding:8px 10px}.up-preview-actions{gap:6px}.up-category select{font-size:16px;max-width:195px}.up-mode-row select{font-size:16px;max-width:200px}}
@media(max-width:380px){.up-color-grid,.upload-photo .color-family-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.up-heading{gap:10px}.up-heading h1{font-size:25px}}
@media(max-width:760px){.up-photo-column{display:contents}.up-stage{position:sticky;top:env(safe-area-inset-top,0px);z-index:10;height:32dvh;min-height:210px;max-height:300px;box-shadow:0 8px 12px -12px #26362970}.up-stage[data-editing=true]{height:44dvh;max-height:400px}.up-side{margin-top:22px}.upload-photo input{scroll-margin-top:calc(32dvh + 20px)}body[data-route=upload] .site-header{position:relative;z-index:20}}
.up-paint-tools{padding:12px 0;border-bottom:1px solid var(--up-line)}.up-tool-row{display:flex;gap:6px;flex-wrap:wrap}.up-tool-row button{min-height:42px;padding:8px 13px;border:1px solid var(--up-line);border-radius:7px;background:transparent;color:var(--ink);font-size:12px}.up-tool-row button[aria-pressed=true]{border-color:#354c39;background:#354c39;color:#fff}.up-tolerance{display:flex;align-items:center;gap:10px;max-width:430px;margin-top:12px;font-size:11px;color:var(--muted)}.up-tolerance output{min-width:20px;color:var(--ink)}.up-tolerance input{flex:1;min-width:70px;accent-color:#354c39;height:28px}.up-stage[data-paint-tool=fill] svg{touch-action:pan-y;cursor:crosshair}.up-stage[data-paint-tool=brush] svg,.up-stage[data-paint-tool=erase] svg{touch-action:none;cursor:crosshair}.up-stage svg:focus-visible{outline:3px solid #bf9554;outline-offset:-3px}.up-stage[data-paint-tool=manual] svg{touch-action:none}@media(max-width:760px){.up-paint-tools{padding:10px 0}.up-tool-row{gap:5px}.up-tool-row button{flex:1;min-height:42px;padding:8px 6px;font-size:11px;white-space:nowrap}}
.up-wand-note{align-self:center;color:var(--muted);font-size:11px}.up-advanced-tools{margin-top:10px;font-size:11px;color:var(--muted)}.up-advanced-tools summary{cursor:pointer;min-height:32px;display:list-item;padding:8px 0}.up-advanced-tools .up-tool-row{margin-top:6px}
/* Diadaptasi dari pilihcat (13 Nov 2026): HP setelah foto dipilih = tampilan ringkas: foto besar (ikut rasio foto), warna di bawahnya, tombol Lihat rincian. Rincian = tampilan lengkap lama. */
.up-detail-toggle{display:none}
@media(min-width:761px){.upload-photo.up-portrait .up-stage{height:min(80dvh,780px)}}
@media(max-width:760px){
  .upload-photo.up-has-photo .up-layout{display:flex;flex-direction:column;align-items:stretch}
  .upload-photo.up-has-photo .up-detail-toggle{display:block;order:3;width:100%;min-height:46px;margin-top:12px;border:1px solid var(--up-line);border-radius:12px;background:#fff;color:var(--ink);font-size:13px;font-weight:600}
  .upload-photo.up-has-photo .up-detail-toggle[hidden]{display:none}
  .upload-photo.up-has-photo:not(.up-detail) .up-photo-column{display:contents}
  .upload-photo.up-has-photo:not(.up-detail) .up-stage{order:1;position:relative;top:auto;height:auto;min-height:0;max-height:62dvh;aspect-ratio:var(--up-ratio,4/3);box-shadow:none;margin-top:-6px}
  .upload-photo.up-has-photo.up-portrait:not(.up-detail) .up-stage{max-height:58dvh}
  .upload-photo.up-has-photo:not(.up-detail) #up-status{order:2;padding-top:8px}
  .upload-photo.up-has-photo:not(.up-detail) .up-side{order:2;margin-top:4px;padding-top:0;border-top:0}
  .upload-photo.up-has-photo:not(.up-detail) .up-detail-toggle{order:4}
  .upload-photo.up-has-photo:not(.up-detail) #up-drawing{order:5}
  .upload-photo.up-has-photo:not(.up-detail) :is(#up-preview-actions,#up-disclosure,.up-local,#up-paint-tools>.up-tool-row,#up-advanced-tools){display:none!important}
  .upload-photo.up-has-photo:not(.up-detail) #up-paint-tools{order:3;padding:4px 0 0;border:0}
  .upload-photo.up-has-photo:not(.up-detail) #up-paint-tools .up-tolerance{margin-top:0;max-width:none}
  .upload-photo.up-has-photo:not(.up-detail) #up-controls>.up-section:first-child{display:none}
  .upload-photo.up-has-photo:not(.up-detail) #up-picker{padding:0;margin:0;border:0}
  .upload-photo.up-has-photo:not(.up-detail) #up-picker :is(.up-picker-tabs,.pc-current,.pc-recent,#color-browser-pane){display:none!important}
  .upload-photo.up-has-photo:not(.up-detail) #product-pane{display:block!important}
  .upload-photo.up-has-photo:not(.up-detail) #up-colors{display:flex;gap:8px;overflow-x:auto;padding:2px 1px 6px;scroll-snap-type:x proximity;scrollbar-width:none}
  .upload-photo.up-has-photo:not(.up-detail) #up-colors .up-color-tile{flex:0 0 62px;scroll-snap-align:start}
  .upload-photo.up-has-photo:not(.up-detail) #up-colors .up-swatch{height:46px}
  .upload-photo.up-has-photo:not(.up-detail) #up-colors .up-color-tile span:not(.up-swatch){white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:9px}
  .upload-photo.up-has-photo:not(.up-detail) #up-selected{padding:8px 0 0}
  .upload-photo.up-has-photo.up-detail .up-detail-toggle{order:9;position:sticky;bottom:calc(10px + env(safe-area-inset-bottom));z-index:12;box-shadow:0 6px 18px #24332a1f}
}

/* v2.1 (20261113): zoom foto + pemilih warna ringkas di HP */
.up-stage canvas,.up-stage svg{transform-origin:0 0;will-change:transform}
.up-stage:has(#up-canvas:not([hidden])) svg{touch-action:none!important}
.up-zoom{position:absolute;right:10px;bottom:10px;z-index:4;display:flex;align-items:center;gap:2px;padding:4px;background:#ffffffe8;border:1px solid #0000001a;border-radius:999px;box-shadow:0 4px 14px #0000001f;backdrop-filter:blur(6px)}
.up-zoom button{width:34px;height:34px;border:0;border-radius:50%;background:transparent;color:#354c39;font-size:19px;line-height:1;cursor:pointer}
.up-zoom button:disabled{opacity:.35;cursor:default}
.up-zoom button:not(:disabled):hover{background:#eef0e7}
.up-zoom span{min-width:42px;text-align:center;font-size:11px;font-weight:600;color:#56606a}
.up-stage[data-zoomed=true][data-paint-tool=fill] svg{cursor:grab}
@media(max-width:760px){
  .upload-photo.up-has-photo:not(.up-detail) #up-picker{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
  .upload-photo.up-has-photo:not(.up-detail) #up-picker>*{flex:0 0 100%;min-width:0}
  .upload-photo.up-has-photo:not(.up-detail) #product-pane{display:contents!important}
  .upload-photo.up-has-photo:not(.up-detail) #up-picker .up-products{display:flex!important;order:1;gap:6px;padding:2px 1px 4px;scrollbar-width:none}
  .upload-photo.up-has-photo:not(.up-detail) .up-product{flex:0 0 auto;min-height:0;flex-direction:row;padding:7px 12px;border-radius:999px;background:#fff}
  .upload-photo.up-has-photo:not(.up-detail) .up-product[aria-pressed=true]{padding:6px 11px;background:#354c39;color:#fff;border-color:#354c39}
  .upload-photo.up-has-photo:not(.up-detail) .up-product img{display:none}
  .upload-photo.up-has-photo:not(.up-detail) .up-product strong{font-size:12px;white-space:nowrap}
  .upload-photo.up-has-photo:not(.up-detail) #up-picker .up-category{display:block!important;order:2;flex:1 1 0;margin:0}
  .upload-photo.up-has-photo:not(.up-detail) .up-category h2{display:none}
  .upload-photo.up-has-photo:not(.up-detail) #up-picker .up-mode-row{display:block!important;order:2;flex:1 1 0;margin:0}
  .upload-photo.up-has-photo:not(.up-detail) .up-mode-row label{display:none}
  .upload-photo.up-has-photo:not(.up-detail) :is(.up-category select,.up-mode-row select){width:100%;max-width:none;font-size:14px;min-height:38px}
  .upload-photo.up-has-photo:not(.up-detail) #up-picker .up-search{display:block!important;order:3;margin:0;padding:9px 12px;font-size:16px}
  .upload-photo.up-has-photo:not(.up-detail) #up-colors{order:4}
  .upload-photo.up-has-photo:not(.up-detail) #up-picker .up-pagination{display:flex!important;order:5;margin:0}
  .upload-photo.up-has-photo:not(.up-detail) .up-pagination button{min-height:34px;padding:4px 14px}
  .upload-photo.up-has-photo:not(.up-detail) #up-selected{order:6}
  .up-zoom{right:8px;bottom:8px}
  .up-zoom button{width:36px;height:36px}
}
@media(max-width:760px){.upload-photo.up-has-photo:not(.up-detail) #product-pane>*{flex:0 0 100%;min-width:0}}
@media(max-width:760px){.upload-photo.up-has-photo:not(.up-detail) #up-paint-tools{order:2}}

/* Kebutuhan cat per dinding + simpan proyek foto (diadaptasi dari pilihcat, 13 Nov 2026) */
.up-need-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:6px}
.up-need-head h2{margin:0}
.up-need-head label{display:flex;gap:6px;align-items:center;font-size:12px;color:var(--muted)}
.upload-photo .up-need-head select{min-height:34px;padding:4px 8px;font-size:14px}
.up-need-note,.up-need-empty{font-size:11px;line-height:1.5;color:var(--muted);margin:0 0 10px}
.up-need-rows{display:grid;gap:8px;margin-bottom:12px}
.up-need-row{display:grid;grid-template-columns:28px minmax(0,1fr);gap:6px 10px;align-items:center;padding:9px;border:1px solid var(--up-line);border-radius:10px;background:#fff}
.up-need-sw{display:block;width:28px;height:28px;border-radius:7px;border:1px solid #0002}
.up-need-name{min-width:0}.up-need-name b{display:block;font-size:12px}.up-need-name small{display:block;font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.up-need-dim{grid-column:1/-1;display:flex;align-items:center;gap:6px}
.up-need-dim input{flex:1;min-width:0;width:60px;min-height:38px;padding:6px 8px;border:1px solid var(--up-line);border-radius:7px;background:#fffdf8;color:var(--ink);font-size:16px}
.up-need-dim i{font-style:normal;color:var(--muted)}
.up-need-dim output{min-width:62px;text-align:right;font-size:12px;font-weight:600}
.up-need-total{display:flex;justify-content:space-between;align-items:baseline;gap:10px;padding:10px 12px;margin-bottom:6px;border-radius:10px;background:#eef2ea;font-size:12px}
.up-need-total strong{font-size:18px;white-space:nowrap}
.up-need-group{padding:10px 0;border-top:1px solid var(--up-line)}
.up-need-ghead{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:10px;align-items:center;margin-bottom:6px}
.up-need-ghead b{display:block;font-size:12px}.up-need-ghead small{display:block;font-size:10px;color:var(--muted)}
.up-need-ghead strong{text-align:right;font-size:14px}.up-need-ghead strong small{font-weight:400}
.upload-photo .up-save{width:100%;min-height:46px;margin:2px 0 4px}
.up-remote{display:grid;gap:10px;margin-bottom:16px;padding:12px;border:1px solid var(--up-line);border-radius:12px;background:#fff;font-size:12px;line-height:1.6;color:var(--muted)}
.up-remote img{width:100%;max-height:340px;object-fit:contain;border-radius:8px;background:#f1f1ec}
.up-remote p{margin:0}.up-remote b{display:block;color:var(--ink);font-size:14px}
.up-save-name{display:block;font-size:13px}
.up-save-name input{display:block;width:100%;margin-top:6px;padding:10px;border:1px solid var(--up-line);border-radius:8px;font-size:16px}
.up-check{display:flex;gap:8px;align-items:flex-start;margin:12px 0 0;font-size:12px}
.up-remote:not([hidden])~#up-empty-panel{display:none}
