:root{--page:#f5f2ec;--surface:#fcfaf6;--ink:#363b3f;--ink-strong:#16191c;--muted:#70777e;--line:#ded8cf;--green:#2d6a4f;--green-soft:#e5f1ea;--blue:#415a77;--blue-soft:#e8eef5;--amber:#b9770e;--danger:#b5453c;--warm-soft:#f8f0e6;--neutral-soft:#f0eee9;--shadow:0 12px 30px #302a2212;color:var(--ink);background:var(--page);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{background:var(--page);touch-action:manipulation;min-width:320px;margin:0}button,input,textarea,select{letter-spacing:0}img,svg{display:block}textarea{field-sizing:content}.app-shell{background:var(--page);min-height:100vh;color:var(--ink)}.topbar{z-index:20;border-bottom:1px solid var(--line);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#fcfaf6f0;justify-content:space-between;align-items:center;gap:12px;padding:12px 20px;display:flex;position:sticky;top:0}.brand-block{flex:auto;min-width:0}h1,h2,h3,h4,p{margin:0}h1{color:var(--ink-strong);font-size:18px;font-weight:720;line-height:1.15}h2{color:var(--ink-strong);font-size:20px;font-weight:720;line-height:1.25}h3{color:var(--ink-strong);font-size:15px;font-weight:680;line-height:1.3}h4{color:var(--ink-strong);font-size:14px;font-weight:680}.top-actions,.toolbar,.inline-actions,.todo-edit-row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.top-actions{flex:none;justify-content:flex-end}.sync-status,.account-chip{border:1px solid var(--line);min-height:34px;color:var(--muted);white-space:nowrap;background:#fff;border-radius:8px;align-items:center;gap:7px;padding:0 10px;font-size:13px;font-weight:680;display:inline-flex}.sync-status.saved,.sync-status.local{color:var(--green);background:var(--green-soft);border-color:#2d6a4f38}.sync-status.error{color:var(--danger);background:#fff7f5;border-color:#be412e3d}.account-chip{max-width:min(340px,42vw);color:var(--ink)}.account-chip span{text-overflow:ellipsis;min-width:0;overflow:hidden}.account-chip button{min-height:26px;color:var(--muted);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:6px;align-items:center;gap:6px;padding:0 8px;font-size:12px;font-weight:680;display:inline-flex}.account-chip button:hover{background:var(--green-soft);color:var(--ink-strong)}.auth-gate{place-items:center;min-height:100vh;padding:28px;display:grid}.auth-panel{border:1px solid var(--line);background:var(--surface);width:min(440px,100%);box-shadow:var(--shadow);border-radius:8px;justify-items:start;gap:14px;padding:28px;display:grid}.auth-icon{width:44px;height:44px;color:var(--green);background:var(--green-soft);border-radius:8px;place-items:center;display:inline-grid}.auth-panel h1{font-size:24px}.auth-panel p{color:var(--muted);line-height:1.6}.auth-form{gap:12px;width:100%;display:grid}.auth-form .field{margin:0}.auth-form small{color:var(--muted);font-size:12px}.auth-actions{flex-wrap:wrap;gap:8px;display:flex}.auth-error{color:var(--danger)!important}@media (width<=720px){.topbar{flex-wrap:wrap;align-items:flex-start;padding:10px 12px}.brand-block{flex:100%}.page-tabs{flex:auto}.top-actions{flex:100%;justify-content:flex-start}.account-chip,.sync-status,.select-control{max-width:100%}.workspace,.todo-page{padding:12px}.section-heading{flex-wrap:wrap;align-items:flex-start}}.page-tabs{border:1px solid var(--line);background:#fff;border-radius:8px;flex:none;height:34px;padding:3px;display:inline-flex}.segmented{border:1px solid var(--line);background:#fff;border-radius:8px;height:34px;padding:3px;display:inline-flex}.segmented button,.page-tabs button,.tool-button,.icon-button,.mini-button{appearance:none;font:inherit;cursor:pointer;border:0}.segmented button,.page-tabs button{min-width:74px;height:26px;color:var(--muted);background:0 0;border-radius:6px;justify-content:center;align-items:center;gap:6px;padding:0 10px;font-size:13px;font-weight:680;display:inline-flex}.segmented button.active,.page-tabs button.active{color:var(--ink-strong);background:var(--green-soft)}.select-control{border:1px solid var(--line);height:34px;color:var(--muted);background:#fff;border-radius:8px;align-items:center;gap:7px;padding:0 10px;display:inline-flex}.select-control select,.todo-edit-row select,.todo-edit-row input,.field input,.field textarea,.editable-chip input,.entity-card textarea,.note-item input,.note-item textarea,.manual-item input,.manual-item textarea,.title-input{border:1px solid var(--line);width:100%;min-width:0;color:var(--ink);font:inherit;background:#fff;border-radius:7px;outline:none;font-size:14px;line-height:1.35}.select-control select{width:auto;height:30px;color:var(--ink);background:0 0;border:0}.tool-button,.icon-button,.mini-button{border:1px solid var(--line);min-height:34px;color:var(--ink);white-space:nowrap;background:#fff;border-radius:8px;justify-content:center;align-items:center;gap:7px;padding:0 10px;font-size:13px;font-weight:680;display:inline-flex}.tool-button.active{background:var(--green-soft);color:var(--green);border-color:#2d6a4f52}.icon-button{min-width:38px}.mini-button{min-width:34px;min-height:32px;padding:0 9px}.mini-button.danger,.remove-button{color:var(--danger)}.workspace{grid-template-columns:minmax(0,1fr);gap:18px;padding:18px 28px;display:grid}.todo-page{padding:18px 28px}.todo-page .todo-section{margin:0}.floor-section,.detail-panel,.todo-section{border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow);border-radius:8px}.floor-section,.detail-panel{min-height:0}.floor-section{flex-direction:column;display:flex;overflow:hidden}.detail-panel{width:min(720px,100vw - 28px);max-height:min(820px,100vh - 34px);padding:18px;overflow:auto}.section-heading{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:14px;padding:12px 14px;display:flex}.section-heading.compact{border-bottom:0;padding:0 0 16px}.eyebrow{color:var(--muted);margin-bottom:5px;font-size:12px;font-weight:680;line-height:1;display:block}.floor-map{border:1px solid var(--line);-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;background:#f4f0e8;border-radius:8px;justify-content:center;align-items:center;margin:10px 12px 12px;padding:6px;display:flex;position:relative;overflow:hidden}.floor-map.placing{cursor:crosshair;outline:3px solid #2d6a4f2e}.position-edit-hint{z-index:6;color:#7a4c05;pointer-events:none;white-space:nowrap;background:#fff8e8f0;border:1px solid #b9770e47;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:760;line-height:1;position:absolute;top:10px;right:10px;box-shadow:0 8px 22px #302a221f}.floor-canvas{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;background:#fff;width:min(100%,760px);position:relative}.floor-image{pointer-events:none;-webkit-user-drag:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;background:#fff;width:100%;height:auto;display:block}.sample-plan{grid-template-rows:1fr .66fr .54fr;grid-template-columns:1.08fr .72fr .58fr;gap:8px;padding:18px;display:grid;position:absolute;inset:0}.room{color:#6b6258;background:#ffffffc2;border:2px solid #b7ad9f;justify-content:flex-start;align-items:flex-start;padding:14px;font-size:13px;font-weight:720;display:flex}.living{background:#f8f5ed;grid-area:1/1/3/3}.kitchen{background:#eaf4ed;grid-area:3/1}.bath{background:#e9f1f7;grid-area:1/3}.entry{background:#fff5e5;grid-area:3/2/auto/4}.storage{background:#f1e7df;grid-area:2/3}.pin{background:var(--blue);color:#fff;cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;border:2px solid #fff;border-radius:999px;place-items:center;width:34px;height:34px;margin:-17px 0 0 -17px;transition:box-shadow .16s;display:grid;position:absolute;box-shadow:0 8px 20px #324b6438}.pin-content{pointer-events:none;place-items:center;width:100%;height:100%;transition:transform .16s;display:grid}.pin span{font-size:13px;font-weight:800}.pin.active{background:var(--green);width:42px;height:42px;margin:-21px 0 0 -21px}.pin.object-pin{z-index:2;width:30px;height:30px;margin:-15px 0 0 -15px}.pin.shelf-pin{background:var(--amber)}.pin.appliance-pin{background:var(--danger)}.pin.location-pin svg{width:16px;height:16px}.pin.object-pin svg{width:15px;height:15px}.pin.draggable{cursor:grab;touch-action:none}.pin.dragging{z-index:8;cursor:grabbing;border-color:#16191c;box-shadow:0 18px 42px #16191c5c}.pin.dragging .pin-content{transform:scale(1.14)}body.pin-dragging{overscroll-behavior:contain}.field{gap:7px;margin-bottom:14px;display:grid}.field span{color:var(--muted);font-size:12px;font-weight:680}.field input,.field textarea,.entity-card textarea,.note-item input,.note-item textarea,.manual-item input,.manual-item textarea,.title-input,.todo-edit-row select,.todo-edit-row input{padding:9px 10px}.field textarea,.entity-card textarea,.note-item textarea,.manual-item textarea{resize:vertical;min-height:86px}.field p{color:var(--ink);font-size:15px;line-height:1.6}.panel-group{border-top:1px solid var(--line);padding:16px 0}.group-header{justify-content:space-between;align-items:center;gap:10px;margin-bottom:11px;display:flex}.group-header h3{align-items:center;gap:7px;display:inline-flex}.chip-list{flex-wrap:wrap;gap:8px;display:flex}.entity-list{gap:12px;display:grid}.entity-card{border:1px solid var(--line);background:#fff;border-radius:8px;gap:10px;padding:12px;display:grid}.entity-card-header,.entity-subheader{justify-content:space-between;align-items:center;gap:10px;display:flex}.entity-card-header{min-height:34px}.entity-card h4{text-overflow:ellipsis;min-width:0;overflow:hidden}.entity-card p{color:var(--ink);font-size:13px;line-height:1.55}.entity-subheader strong{color:var(--muted);align-items:center;gap:6px;font-size:12px;font-weight:760;display:inline-flex}.chip,.editable-chip{border-radius:999px;align-items:center;min-height:32px;display:inline-flex}.chip{background:var(--blue-soft);color:var(--blue);padding:0 10px;font-size:13px;font-weight:680}.editable-chip{border:1px solid var(--line);background:#fff;gap:4px;padding:3px 4px 3px 9px}.editable-chip input{border:0;width:130px;padding:3px 0}.editable-chip button,.remove-button{cursor:pointer;background:0 0;border:0;border-radius:6px;place-items:center;width:28px;height:28px;display:inline-grid}.photo-list,.manual-list{gap:12px;display:grid}.photo-card{border:1px solid var(--line);background:#fff;border-radius:8px;grid-template-columns:116px minmax(0,1fr);gap:12px;padding:10px;display:grid}.photo-preview{cursor:pointer;background:#eee;border:0;border-radius:7px;width:116px;height:116px;padding:0;display:block;overflow:hidden}.photo-card img{object-fit:contain;background:#eee;border-radius:0;width:116px;height:116px}.photo-content{min-width:0}.note-list{gap:8px;margin-top:8px;display:grid}.note-item{background:var(--warm-soft);border-radius:8px;gap:7px;padding:10px;display:grid;position:relative}.note-item strong,.note-item small{display:block}.note-item small{color:var(--green);margin-top:2px;font-size:12px;font-weight:700}.note-item p{color:var(--ink);margin-top:6px;font-size:13px;line-height:1.55}.manual-item{border:1px solid var(--line);background:#fff;border-radius:8px;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;padding:12px;display:grid;position:relative}.manual-item>svg{color:var(--blue);margin-top:2px}.manual-item div{gap:7px;display:grid}.manual-item p{color:var(--ink);font-size:13px;line-height:1.55}.manual-item small{color:var(--muted);font-size:12px}.manual-link{color:var(--green);align-items:center;gap:5px;font-size:13px;font-weight:700;display:inline-flex}.modal-backdrop{z-index:50;background:#16191c6b;justify-content:center;align-items:center;padding:17px;display:flex;position:fixed;inset:0}.modal-backdrop .detail-panel{border:1px solid var(--line);background:var(--surface);border-radius:8px;box-shadow:0 24px 70px #16191c42}.image-editor-backdrop{z-index:70}.image-editor-panel{border:1px solid var(--line);background:var(--surface);border-radius:8px;grid-template-rows:auto auto minmax(0,1fr);gap:12px;width:min(1100px,100vw - 28px);max-height:min(900px,100vh - 28px);padding:16px;display:grid;box-shadow:0 24px 70px #16191c47}.image-editor-header{justify-content:space-between;align-items:center;gap:12px;display:flex}.image-editor-header h2{font-size:18px}.image-editor-toolbar{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.editor-tools button{min-width:78px}.editor-text-input{border:1px solid var(--line);min-width:min(260px,100%);min-height:34px;color:var(--muted);background:#fff;border-radius:8px;align-items:center;gap:7px;padding:0 10px;display:inline-flex}.editor-text-input input{width:190px;min-width:0;color:var(--ink);font:inherit;background:0 0;border:0;outline:0;font-size:14px}.editor-canvas-frame{border:1px solid var(--line);background:#2b2d30;border-radius:8px;min-height:0;overflow:auto}.image-editor-canvas{touch-action:none;cursor:crosshair;background:#fff;width:auto;max-width:100%;max-height:calc(100vh - 230px);margin:0 auto;display:block}.modal-close{border:1px solid var(--line);width:38px;height:38px;color:var(--ink);cursor:pointer;background:#fff;border-radius:8px;place-items:center;display:inline-grid}.todo-section{margin:0 28px 28px;overflow:hidden}.toast{z-index:80;background:var(--ink-strong);color:#fff;white-space:nowrap;border-radius:999px;max-width:calc(100vw - 32px);padding:10px 14px;font-size:13px;font-weight:760;position:fixed;bottom:22px;left:50%;transform:translate(-50%);box-shadow:0 16px 44px #16191c47}.todo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:18px;display:grid}.todo-item{border:1px solid var(--line);background:#fff;border-radius:8px;grid-template-columns:auto minmax(0,1fr);gap:12px;padding:14px;display:grid}.todo-item.related{box-shadow:inset 4px 0 0 var(--green);border-color:#2d6a4f57}.check-button{width:36px;height:36px;color:var(--green);cursor:pointer;background:0 0;border:0;border-radius:8px;place-items:center;display:grid}.todo-body{gap:8px;min-width:0;display:grid}.todo-body h3{font-size:16px}.todo-body p{color:var(--muted);font-size:13px;line-height:1.55}.todo-meta{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.todo-meta span{background:var(--neutral-soft);min-height:26px;color:var(--muted);border-radius:999px;align-items:center;gap:4px;padding:0 8px;font-size:12px;font-weight:680;display:inline-flex}.todo-meta .priority{color:#fff}.priority.high{background:var(--danger)}.priority.medium{background:var(--amber)}.priority.low{background:var(--blue)}.todo-edit-row{grid-template-columns:.65fr .85fr 1fr .86fr auto;align-items:center;display:grid}.empty-panel{min-height:300px;color:var(--muted);place-items:center;display:grid}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}button:hover,label.tool-button:hover,label.mini-button:hover{border-color:#415a774d}button:focus-visible,label.tool-button:focus-visible,label.mini-button:focus-visible,input:focus,textarea:focus,select:focus{outline-offset:1px;outline:3px solid #2d6a4f2e}@media (width<=1180px){.workspace,.todo-grid{grid-template-columns:1fr}}@media (width<=760px){.section-heading{flex-direction:column;align-items:stretch}.section-heading.compact{flex-direction:row;align-items:flex-start}.topbar{flex-direction:row;align-items:center;gap:8px;padding:10px 14px}h1{font-size:15px;line-height:1.1}.top-actions{flex-wrap:nowrap;gap:6px}.page-tabs,.segmented{height:30px;padding:2px}.segmented button,.page-tabs button{gap:0;min-width:34px;height:24px;padding:0 7px;font-size:0}.segmented button svg,.page-tabs button svg{width:15px;height:15px}.select-control{gap:4px;height:30px;padding:0 7px}.select-control svg{width:14px;height:14px}.select-control select{max-width:78px;height:26px;font-size:12px}.workspace,.todo-page{padding:8px 10px}.todo-section{margin:0 14px 14px}.floor-map{margin:8px;padding:4px}.position-edit-hint{padding:6px 8px;font-size:11px;top:8px;right:8px}.photo-card{grid-template-columns:1fr}.photo-preview,.photo-card img{width:100%;height:210px}.image-editor-panel{width:calc(100vw - 18px);max-height:calc(100vh - 18px);padding:10px}.image-editor-toolbar{align-items:stretch}.editor-tools{width:100%}.editor-tools button{flex:1 1 0;min-width:0;padding:0 6px}.editor-text-input,.editor-text-input input{width:100%}.image-editor-canvas{max-height:calc(100vh - 290px)}.todo-edit-row{grid-template-columns:1fr}}
