#phar-v4{--ink:#292b28;--muted:#72776f;--brand:#846b46;--line:#dfded5;--paper:#fff;--soft:#f4f3ed;font:15px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:#f8f7f2;min-height:100vh}#phar-v4 *{box-sizing:border-box}#phar-v4 button,#phar-v4 input,#phar-v4 select,#phar-v4 textarea{font:inherit}#phar-v4 button{cursor:pointer;min-height:44px;border:1px solid var(--line);border-radius:8px;padding:9px 15px;background:white;color:var(--ink);font-weight:600;line-height:1.4}#phar-v4 button:hover{border-color:var(--brand);background:#f4f0e8}#phar-v4 button:disabled{cursor:default;opacity:.5}#phar-v4 button.primary{background:var(--brand);color:white;border-color:var(--brand)}#phar-v4 button.primary:hover{background:#6b5536}#phar-v4 a{color:var(--brand)}#phar-v4 input,#phar-v4 select,#phar-v4 textarea{width:100%;padding:10px 11px;border:1px solid #cbcfc6;border-radius:6px;background:white;color:var(--ink);min-height:44px;box-shadow:none}#phar-v4 input:focus,#phar-v4 select:focus,#phar-v4 textarea:focus{outline:2px solid #b9a17b;outline-offset:1px}#phar-v4 input[type=checkbox],#phar-v4 input[type=radio]{width:20px;min-height:20px;height:20px;accent-color:var(--brand);vertical-align:middle;margin:0 8px 0 0}#phar-v4 label{display:block;font-weight:550;margin-bottom:4px}#phar-v4 fieldset{border:0;padding:0;margin:0;min-width:0}#phar-v4 h1{font-size:30px;font-weight:600;line-height:1.25;margin:8px 0 12px}#phar-v4 h2{font-size:21px;font-weight:600;margin:0 0 16px}#phar-v4 h3{font-size:17px;font-weight:650;margin:0 0 12px}#phar-v4 p{margin:0 0 14px}#phar-v4 small,.ph4-muted{color:var(--muted);font-size:13px}#phar-v4 .ph4-header{display:flex;align-items:center;gap:30px;padding:19px 32px;border-bottom:1px solid var(--line);background:white}#phar-v4 .ph4-brand{font-size:22px;letter-spacing:3px;font-weight:750;text-decoration:none;color:var(--ink);white-space:nowrap}#phar-v4 .ph4-brand span{display:block;font-size:9px;letter-spacing:3.4px;color:var(--brand)}#phar-v4 .ph4-header p{margin:0;color:var(--muted);flex:1}#phar-v4 .ph4-legacy{font-size:12px}#phar-v4 .ph4-layout{display:grid;grid-template-columns:250px minmax(0,1fr);max-width:1680px;margin:auto}#phar-v4 aside{padding:24px 18px;border-right:1px solid var(--line);background:#f1f0e9}#phar-v4 aside label{font-size:12px;text-transform:uppercase;letter-spacing:.8px;color:#686b62;margin-top:18px}#phar-v4 aside button{width:100%;text-align:left;margin:5px 0}#phar-v4 aside .selected{background:#e7dfd0;border-color:#b8a484}#phar-v4 .ph4-side-top{display:flex;gap:5px;align-items:center}#phar-v4 .ph4-side-top button{width:auto;text-align:center;padding:8px 12px}#phar-v4 main{min-width:0;padding:26px 32px 36px}#phar-v4 #ph4-steps{display:flex;gap:8px;margin-bottom:28px;overflow-x:auto;padding-bottom:6px}#phar-v4 #ph4-steps button{display:flex;gap:8px;align-items:center;flex:1;white-space:nowrap;font-size:12px;background:transparent;border-color:transparent;padding:8px}#phar-v4 #ph4-steps button span{display:inline-flex;border:1px solid #bbbfb4;width:25px;height:25px;align-items:center;justify-content:center;border-radius:50%;flex:none}#phar-v4 #ph4-steps button.active{background:#ece6da;border-color:#cec1aa}#phar-v4 #ph4-steps button.active span{background:var(--brand);color:white;border-color:var(--brand)}#phar-v4 .ph4-kicker{font-size:11px;color:var(--brand);text-transform:uppercase;letter-spacing:2px;margin-bottom:8px}#phar-v4 .ph4-lead{max-width:780px;color:#62675d;margin-bottom:24px}#phar-v4 .ph4-card{background:white;border:1px solid var(--line);border-radius:12px;padding:22px;margin:18px 0}#phar-v4 .ph4-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}#phar-v4 .ph4-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}#phar-v4 .ph4-field{margin:12px 0}#phar-v4 .ph4-field small{display:block;margin-top:5px}#phar-v4 .ph4-tip{padding:14px 16px;border-left:3px solid #a58c63;background:#f5f0e6;font-size:13px;margin:16px 0}#phar-v4 .ph4-alert{padding:14px 16px;border:1px solid #ddc7a7;border-radius:8px;background:#fff5e3;margin:14px 0}#phar-v4 .ph4-error{background:#fff0ed;border-color:#dcb5ac;color:#853d30}#phar-v4 .ph4-success{background:#edf4ea;border-color:#b8cdb0;color:#3f6140}#phar-v4 #ph4-status:not(:empty){margin-bottom:16px;padding:11px 15px;background:#eee9dd;border-radius:7px;font-size:13px}#phar-v4 #ph4-status.error{background:#fff0ed;color:#853d30}#phar-v4 .ph4-images{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}#phar-v4 .ph4-images.two{grid-template-columns:repeat(2,minmax(0,1fr))}#phar-v4 figure{margin:0;background:white;border:1px solid var(--line);border-radius:9px;overflow:hidden}#phar-v4 figure img{display:block;width:100%;height:220px;object-fit:contain;background:#e9e9e3;cursor:zoom-in}#phar-v4 figure figcaption{padding:10px 12px;font-size:12px;color:#656b60}#phar-v4 .ph4-images.two img{height:auto;max-height:600px;min-height:180px}#phar-v4 .ph4-view-diagram{background:#faf9f4;border-radius:8px;padding:14px}#phar-v4 .ph4-view-diagram svg{display:block;width:100%;max-width:400px;margin:auto;height:220px}#phar-v4 details{margin:12px 0}#phar-v4 summary{cursor:pointer;font-weight:600;min-height:35px;line-height:1.8}#phar-v4 .ph4-surface{border-top:4px solid var(--surface);padding:19px;background:white;border-radius:8px;border:1px solid var(--line);border-top:4px solid var(--surface);margin:16px 0}#phar-v4 .ph4-surface h3{display:flex;align-items:center;justify-content:space-between;gap:10px}#phar-v4 .ph4-badge{display:inline-block;font-size:11px;padding:3px 7px;background:#f0f1eb;color:#647058;border-radius:4px;font-weight:500}#phar-v4 .ph4-badge.assumption{background:#fff1d5;color:#8b6b2d}#phar-v4 .ph4-badge.unknown{background:#eee;color:#777}#phar-v4 .ph4-quantity{display:grid;grid-template-columns:1fr 170px 145px;gap:12px;align-items:center;padding:9px 0;border-bottom:1px solid #eee}#phar-v4 .ph4-details-list{margin:0;padding-left:22px}#phar-v4 .ph4-architecture{border-top:1px solid #ecebe3;padding-top:12px;margin-top:16px}#phar-v4 .ph4-furniture{border:1px solid #dddfd5;padding:16px;border-radius:8px;margin:12px 0}#phar-v4 .ph4-furniture header{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:10px}#phar-v4 .ph4-furniture header button{font-size:12px;padding:5px 12px;min-height:35px}#phar-v4 .ph4-furniture .sizes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}#phar-v4 .ph4-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}#phar-v4 .ph4-progress{margin:15px 0;padding:15px;border:1px solid #cfbe9f;background:#f8f2e6;border-radius:9px}#phar-v4 .ph4-progress.running:before{content:"";display:inline-block;width:14px;height:14px;margin-right:10px;border:2px solid #b7a588;border-top-color:#665033;border-radius:50%;animation:ph4-spin 1s linear infinite}@keyframes ph4-spin{to{transform:rotate(360deg)}}#phar-v4 #ph4-actions{display:flex;justify-content:space-between;gap:14px;padding:22px 0;border-top:1px solid var(--line);margin-top:25px}#phar-v4 .ph4-disclaimer{font-size:12px;color:#85877f;max-width:900px}#phar-v4 .ph4-versions{display:flex;flex-wrap:wrap;gap:9px;margin:15px 0}#phar-v4 .ph4-versions button.selected{border-color:var(--brand);background:#eee6d7}#phar-v4 .ph4-table-wrap{overflow:auto;margin:15px 0}#phar-v4 table{border-collapse:collapse;width:100%;background:white;font-size:13px}#phar-v4 th,#phar-v4 td{text-align:left;padding:12px;border:1px solid #e1e3db;vertical-align:top;min-width:110px}#phar-v4 th{background:#eeeee6}#phar-v4 .ph4-empty{padding:50px 25px;text-align:center;background:white;border:1px dashed #c6c8ba;border-radius:12px}#phar-v4 dialog{border:0;border-radius:14px;padding:28px;max-width:min(1100px,94vw);max-height:94vh;box-shadow:0 12px 70px #0004;color:var(--ink)}#phar-v4 dialog::backdrop{background:#1d211bb3}#phar-v4 dialog img{max-width:100%;max-height:82vh;object-fit:contain}#phar-v4 dialog .ph4-close{float:right;font-size:25px;border:0;min-height:32px;padding:0 8px;background:transparent}#phar-v4 dialog form:not([method=dialog]){min-width:min(400px,76vw)}#phar-v4 .ph4-auth{max-width:580px;margin:70px auto;padding:35px}#phar-v4 .ph4-admin-testing{font-size:12px;color:#777;background:#f2f1ec;padding:10px;border-radius:6px}#phar-v4 .ph4-admin-testing select{max-width:350px;font-size:13px}
@media(max-width:1080px){#phar-v4 .ph4-layout{grid-template-columns:210px minmax(0,1fr)}#phar-v4 main{padding:22px}#phar-v4 #ph4-steps button{display:block;text-align:center;white-space:normal;min-width:88px}#phar-v4 #ph4-steps button span{margin:0 auto 5px}#phar-v4 .ph4-grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}#phar-v4 .ph4-quantity{grid-template-columns:1fr 120px 125px}}
@media(max-width:760px){#phar-v4 .ph4-header{padding:16px 18px;gap:12px;flex-wrap:wrap}#phar-v4 .ph4-header p{display:none}#phar-v4 .ph4-legacy{margin-left:auto;max-width:130px;text-align:right}#phar-v4 .ph4-layout{display:block}#phar-v4 aside{padding:13px 16px;border:0;border-bottom:1px solid var(--line)}#phar-v4 aside .ph4-room-buttons{display:flex;gap:6px;overflow:auto}#phar-v4 aside .ph4-room-buttons button{min-width:150px;width:auto}#phar-v4 aside label{margin-top:10px}#phar-v4 aside .ph4-room-heading{display:flex;justify-content:space-between;align-items:center}#phar-v4 aside .ph4-room-heading button{width:auto;font-size:12px;min-height:34px;padding:5px 10px}#phar-v4 main{padding:18px 14px}#phar-v4 h1{font-size:25px}#phar-v4 .ph4-card{padding:16px}#phar-v4 .ph4-grid,#phar-v4 .ph4-grid.three{grid-template-columns:1fr}#phar-v4 .ph4-images{grid-template-columns:1fr}#phar-v4 .ph4-images.two{grid-template-columns:1fr}#phar-v4 .ph4-images img{height:240px}#phar-v4 .ph4-quantity{grid-template-columns:1fr 115px;gap:8px}#phar-v4 .ph4-quantity .ph4-badge{grid-column:1/-1;width:max-content}#phar-v4 .ph4-furniture .sizes{grid-template-columns:1fr}#phar-v4 #ph4-actions button{flex:1}#phar-v4 .ph4-surface{padding:15px}#phar-v4 .ph4-admin-testing{display:none}}
@media(prefers-reduced-motion:reduce){#phar-v4 .ph4-progress.running:before{animation:none}}
#phar-v4 #ph4-steps button span{display:inline;width:auto;height:auto;border:0;border-radius:0}#phar-v4 #ph4-steps button b{border:1px solid #bbbfb4;border-radius:50%;padding:2px 8px}#phar-v4 aside button.active{background:#e7dfd0}#phar-v4 .ph4-surface{--surface:var(--surface-color)}#phar-v4 .ph4-image-button{display:block;width:100%;padding:0;border:0}#phar-v4 .ph4-orientation svg{max-width:450px;display:block;margin:auto}#phar-v4 .ph4-alert.error{background:#fff0ed;color:#853d30}#phar-v4 .ph4-buttons{display:flex;flex-wrap:wrap;gap:10px}#phar-v4 .ph4-table small,#phar-v4 .ph4-room-list small{display:block}#phar-v4 .ph4-eyebrow{letter-spacing:2px;color:var(--brand);font-size:11px}#phar-v4 .ph4-spinner{display:inline-block;width:14px;height:14px;border:2px solid #b7a588;border-top-color:#665033;border-radius:50%;animation:ph4-spin 1s linear infinite}
#phar-v4 button{text-transform:none;letter-spacing:normal}#phar-v4 .ph4-images:has(figure:nth-child(2)):not(:has(figure:nth-child(3))){grid-template-columns:repeat(2,minmax(0,1fr))}#phar-v4 .ph4-images:has(figure:nth-child(2)):not(:has(figure:nth-child(3))) img{height:320px}@media(max-width:760px){#phar-v4 aside{max-height:300px;overflow-y:auto}#phar-v4 .ph4-images:has(figure:nth-child(2)):not(:has(figure:nth-child(3))){grid-template-columns:1fr}#phar-v4 .ph4-images img{height:auto;max-height:330px}}

#phar-v4 h1,#phar-v4 h2,#phar-v4 h3,#phar-v4 h4{color:var(--ink)}#phar-v4 a.ph4-button{display:inline-block;background:var(--brand);border:1px solid var(--brand);color:white;border-radius:8px;padding:11px 24px;text-decoration:none;font-weight:600;min-height:44px}#phar-v4.ph4-anonymous .ph4-layout{display:block;max-width:1100px}#phar-v4.ph4-anonymous aside{display:none}#phar-v4.ph4-anonymous main{padding:40px 24px}#phar-v4.ph4-anonymous #ph4-content{max-width:780px;margin:40px auto}#phar-v4.ph4-anonymous .ph4-card{padding:34px}#phar-v4.ph4-anonymous .ph4-disclaimer{margin:auto;max-width:780px}@media(max-width:760px){#phar-v4.ph4-anonymous main{padding:24px 16px}#phar-v4.ph4-anonymous .ph4-card{padding:24px}}

/* V4.1 compact, uncropped image viewer */
.ph41-stage{background:#f0eee9;border-radius:10px;display:grid;place-items:center;min-height:200px}.ph41-stage img{display:block;max-height:65vh;max-width:100%;width:auto;height:auto;object-fit:contain}.ph41-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0}.ph41-tools span{flex:1}.ph41-thumbs{display:flex;gap:8px;overflow-x:auto;padding:4px}.ph41-thumbs button{padding:3px;flex:0 0 96px;border:2px solid transparent}.ph41-thumbs button[aria-pressed=true]{border-color:#876c43}.ph41-thumbs img{width:88px;height:64px;object-fit:contain}.ph41-accordion{border:1px solid #e0dacd;border-radius:8px;padding:12px;margin:8px 0}.ph41-accordion summary{cursor:pointer;font-weight:650}.ph41-accordion summary small{display:block;font-weight:400;color:#6c6a61;margin:4px 0}.ph41-accordion[open] summary{margin-bottom:12px}.ph41-accordion .ph4-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.ph41-zoom-stage{overflow:auto;max-height:80vh}.ph41-zoom-stage img{max-width:none;width:100%;height:auto}.ph4-card{padding:22px}.ph4-surface-grid{gap:10px}.ph4-field{margin-bottom:8px}.ph4-table small{display:block}.ph41-full{width:min(1100px,85vw)}@media(max-width:700px){.ph41-accordion .ph4-grid{grid-template-columns:1fr}.ph4-card{padding:14px}.ph41-stage img{max-height:55vh}.ph41-tools{font-size:13px}}
