:root{
  --bg:#f7faf5;--panel:#ffffff;--panel-soft:#fbfdf9;--text:#17211a;--muted:#748078;--muted-2:#98a39c;
  --line:#e5ebe3;--line-strong:#d7e1d4;--green:#58c800;--green-dark:#3f9f00;--green-soft:#eef9e8;
  --blue:#1cb0f6;--blue-soft:#eaf7fe;--yellow:#ffc800;--yellow-soft:#fff8d8;--purple:#a94de8;--purple-soft:#f5eafe;
  --red:#ff5b5b;--red-soft:#fff0ef;--ink:#142019;--shadow:0 10px 28px rgba(45,72,53,.07);--shadow-hover:0 18px 42px rgba(45,72,53,.12);
  --radius-xl:24px;--radius-lg:19px;--radius-md:14px;--sidebar:224px;
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-rounded,"Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,sans-serif;background:linear-gradient(145deg,#f9fcf7 0,#f4f8f3 55%,#f7faf8 100%);color:var(--text);-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button{color:inherit}.hidden{display:none!important}svg{display:block}.app-shell{min-height:100vh;display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr)}

/* Sidebar */
.sidebar{position:sticky;top:0;height:100vh;padding:18px 14px 14px;background:rgba(255,255,255,.96);border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:12;backdrop-filter:blur(18px)}
.brand{display:flex;gap:11px;align-items:center;padding:2px 8px 22px}.brandmark{width:43px;height:43px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(145deg,#62d70b,#3cae00);box-shadow:0 7px 16px rgba(73,174,13,.23);color:#fff}.brandmark svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.brand strong,.brand span{display:block}.brand strong{font-size:15px;letter-spacing:-.01em}.brand span{font-size:11px;color:var(--muted);margin-top:2px}.sidebar nav{display:grid;gap:5px}.nav-item{border:1px solid transparent;background:transparent;color:#49564d;text-align:left;padding:11px 12px;border-radius:14px;cursor:pointer;display:flex;gap:11px;align-items:center;font-weight:720;transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease}.nav-item:hover{background:#f3f8f0;color:#257b0d;transform:translateX(2px)}.nav-item.active{background:var(--green-soft);border-color:#dff0d7;color:#25800b}.nav-icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.sidebar-team{display:grid;gap:7px;margin-top:auto;padding:18px 0 10px}.member-card{display:flex;align-items:center;gap:9px;padding:8px;border:1px solid var(--line);background:#fff;border-radius:15px;box-shadow:0 2px 8px rgba(49,70,56,.035);transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;cursor:pointer}.member-card:hover{transform:translateY(-1px);box-shadow:var(--shadow);border-color:#d5e7cf}.member-card.current{background:#f5fbf1;border-color:#d8edd0}.member-avatar{width:37px;height:37px;border-radius:50%;object-fit:cover;box-shadow:inset 0 0 0 1px rgba(0,0,0,.04)}.member-copy{min-width:0;flex:1}.member-copy strong,.member-copy span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.member-copy strong{font-size:12px}.member-copy span{font-size:10px;color:var(--muted);margin-top:2px}.member-status{width:7px;height:7px;border-radius:50%;background:#b8c1bb}.member-card.current .member-status{background:var(--green);box-shadow:0 0 0 4px #e9f7e3}.sidebar-settings{display:flex;align-items:center;gap:9px;border:1px solid var(--line);background:#fff;padding:10px 11px;border-radius:14px;cursor:pointer;font-weight:700;font-size:12px;transition:.16s ease}.sidebar-settings:hover{border-color:#cee7c4;background:#f7fcf4;transform:translateY(-1px)}.sidebar-settings svg{width:18px;height:18px;fill:none;stroke:#657168;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.sidebar-footer{display:flex;justify-content:space-between;color:#a0aaa3;font-size:9px;padding:10px 3px 0}

/* Main header */
main{padding:0 28px 54px;min-width:0;max-width:1700px;width:100%;margin:0 auto}.topbar{min-height:112px;display:flex;align-items:center;justify-content:space-between;gap:20px}.page-identity{display:flex;align-items:center;gap:14px;min-width:0}.project-thumb{width:78px;height:58px;object-fit:cover;border-radius:17px;border:1px solid #dce9d7;background:#edf8e7}.greeting{font-size:12px;font-weight:760;color:#3f9d27;margin-bottom:3px}.page-title-row{display:flex;align-items:center;gap:10px}.topbar h1,.modal h2{margin:0;font-size:29px;letter-spacing:-.035em;line-height:1.1}.project-badge{display:inline-flex;align-items:center;border-radius:999px;background:var(--green-soft);color:#3e8f25;padding:5px 9px;font-size:10px;font-weight:800}.top-actions{display:flex;gap:8px;align-items:center}.round-action{width:40px;height:40px;border:1px solid var(--line);border-radius:50%;background:#fff;display:grid;place-items:center;cursor:pointer;box-shadow:0 2px 8px rgba(42,66,49,.04);transition:.16s ease}.round-action:hover{transform:translateY(-2px);box-shadow:var(--shadow);border-color:#d0e3ca}.round-action svg{width:18px;height:18px;fill:none;stroke:#4b584f;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.account-chip{display:flex;align-items:center;gap:8px;border:1px solid var(--line);background:#fff;border-radius:999px;padding:5px 9px 5px 5px;font-size:12px;font-weight:760;color:#455149}.account-chip img{width:30px;height:30px;border-radius:50%;object-fit:cover}.account-dot{width:7px;height:7px;border-radius:50%;background:var(--green)}

/* Buttons */
.primary,.secondary,.ghost,.danger-button{border:0;border-radius:14px;padding:10px 14px;cursor:pointer;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:7px;transition:transform .14s ease,box-shadow .14s ease,background .14s ease,border-color .14s ease}.primary{background:linear-gradient(180deg,#62d50d,#48b801);color:#fff;box-shadow:0 4px 0 #319800,0 8px 16px rgba(71,176,6,.16)}.primary:hover{transform:translateY(-1px);box-shadow:0 5px 0 #319800,0 12px 22px rgba(71,176,6,.2)}.primary:active{transform:translateY(2px);box-shadow:0 2px 0 #319800}.primary svg,.secondary svg,.ghost svg,.danger-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.add-main{padding:11px 17px;border-radius:16px}.secondary{background:#fff;color:#3e7e2a;border:1px solid #cfe6c6;box-shadow:0 2px 0 #dbead5}.secondary:hover{background:#f4fbef;transform:translateY(-1px);border-color:#baddac}.ghost{background:#f2f5f2;color:#57625b}.ghost:hover{background:#e9efe8}.danger-button{background:var(--red);color:white;box-shadow:0 3px 0 #d53a3a}.link-btn,.danger-link{border:0;background:none;font-weight:800;cursor:pointer;padding:0}.link-btn{color:#449d26}.link-btn:hover{color:#2f7e16}.danger-link{color:#d44b4b}.icon-btn{width:40px;height:40px;border:0;border-radius:13px;background:#f1f4f1;display:grid;place-items:center;cursor:pointer;transition:.15s ease}.icon-btn:hover{background:#e7eee5;transform:rotate(2deg)}.icon-btn svg{width:18px;height:18px;fill:none;stroke:#4c5750;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.inline-actions,.section-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}

/* Shared layout */
.grid{display:grid;gap:14px}.panel,.metric,.area-card,.product-card,.task-card,.inspo-card,.product-import-hint,.empty{background:rgba(255,255,255,.96);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:0 2px 7px rgba(47,68,54,.035)}.panel{padding:19px}.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}.panel-head h3,.areas-block h3{margin:0;font-size:16px;letter-spacing:-.02em}.muted{color:var(--muted)}.small{font-size:11px}.row-title{font-weight:780}.row-meta{font-size:11px;color:var(--muted);margin-top:3px}.amount{font-weight:850;white-space:nowrap}.eyebrow{font-size:9px;letter-spacing:.13em;font-weight:850;color:#98a59d}.pill,.tag{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;background:#edf4eb;color:#4e7d3e;font-size:10px;font-weight:800}.tag{margin-top:7px}.clickable{cursor:pointer}.clickable,.metric{transition:transform .17s ease,box-shadow .17s ease,border-color .17s ease}.clickable:hover{transform:translateY(-3px);box-shadow:var(--shadow-hover);border-color:#d5e5cf}.cards{grid-template-columns:repeat(3,minmax(0,1fr))}

/* Dashboard */
.finance-metrics{grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:14px}.metric{position:relative;padding:17px 16px 16px;overflow:hidden}.metric:hover{transform:translateY(-2px);box-shadow:var(--shadow)}.metric-icon{width:43px;height:43px;border-radius:14px;display:grid;place-items:center;margin-bottom:12px}.metric-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.metric-icon.green{background:var(--green-soft);color:#4aaa25}.metric-icon.yellow{background:var(--yellow-soft);color:#e6a800}.metric-icon.purple{background:var(--purple-soft);color:var(--purple)}.metric-icon.blue{background:var(--blue-soft);color:var(--blue)}.metric-icon.red{background:var(--red-soft);color:var(--red)}.metric .label{color:#59655d;font-size:11px;font-weight:760}.metric .value{font-size:23px;font-weight:900;letter-spacing:-.035em;margin-top:4px}.metric .hint{font-size:10px;color:#9aa49e;margin-top:4px}.metric-emphasis .value{color:var(--purple)}.metric-over{border-color:#ffd5d2;background:#fffafa}.metric-over .value{color:var(--red)}
.budget-panel{margin-bottom:14px;padding:19px 22px}.budget-head{display:flex;justify-content:space-between;gap:18px;align-items:center}.budget-head h3{font-size:18px;margin:2px 0 0}.budget-head h3 span{font-weight:650;color:var(--muted);font-size:13px}.budget-sub{font-size:10px;color:var(--muted);margin-top:4px}.budget-scale{display:none}.budget-track{display:flex;width:100%;height:11px;background:#edf0ed;border-radius:999px;overflow:hidden;margin-top:17px;box-shadow:inset 0 1px 2px rgba(30,50,34,.08)}.budget-segment{height:100%;display:block;transition:width .4s ease}.budget-segment.spent{background:var(--green)}.budget-segment.planned{background:var(--yellow)}.budget-segment.products{background:var(--purple)}.budget-track.over-budget{box-shadow:0 0 0 2px #ffd0cc inset}.budget-legend{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:11px;font-size:10px;color:var(--muted)}.budget-legend span{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.budget-legend strong{color:#2b352e}.legend-dot{width:7px;height:7px;border-radius:50%}.legend-dot.spent{background:var(--green)}.legend-dot.planned{background:var(--yellow)}.legend-dot.products{background:var(--purple)}.budget-rest{justify-self:end;font-weight:800;color:#3a8b26}.budget-rest.negative{color:var(--red)}.budget-warning{margin-top:12px;padding:9px 11px;background:var(--red-soft);color:#b94343;border-radius:11px;font-size:11px;font-weight:700}
.dashboard-actions{display:flex;align-items:center;gap:7px;margin:12px 0 14px}.dashboard-actions>span{font-size:10px;color:var(--muted);font-weight:760;margin-right:2px}.dashboard-lower{grid-template-columns:1.15fr 1fr 1fr}.dashboard-stack{display:grid;gap:14px}.visual-panel{padding:0;overflow:hidden}.visual-panel-head{display:flex;align-items:center;justify-content:space-between;padding:17px 18px 9px}.visual-panel-body{padding:0 18px 17px}.room-overview{display:grid;grid-template-columns:128px 1fr;gap:15px;align-items:center}.house-visual{width:100%;height:135px;object-fit:cover;border-radius:16px;background:#eef8e9}.compact-list{display:grid;gap:7px}.compact-item{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px}.compact-label{display:flex;align-items:center;gap:7px;min-width:0}.compact-label i{width:8px;height:8px;border-radius:50%;background:var(--green);flex:none}.compact-label span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.compact-item strong{font-size:10px}.task-preview{display:grid;gap:0}.task-preview-row{display:grid;grid-template-columns:24px 1fr auto;align-items:center;gap:9px;padding:9px 0;border-bottom:1px solid #edf1ec}.task-preview-row:last-child{border:0}.task-preview-check{width:20px;height:20px;border-radius:50%;border:1.5px solid #d7dfd6;background:#fff}.task-preview-copy{min-width:0}.task-preview-copy strong{font-size:11px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.task-preview-copy span{font-size:9px;color:var(--muted)}.avatar-stack{display:flex}.avatar-stack img{width:27px;height:27px;border-radius:50%;object-fit:cover;border:2px solid #fff;margin-left:-7px}.avatar-stack img:first-child{margin-left:0}.product-preview-card{display:grid;grid-template-columns:88px 1fr;gap:12px;align-items:center}.product-preview-card img{width:88px;height:88px;object-fit:contain;border-radius:15px;background:#f6f8f5}.product-preview-copy .card-title{font-size:12px}.product-preview-copy strong{font-size:15px;display:block;margin-top:8px}.inspo-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.inspo-strip img,.inspo-strip-placeholder{width:100%;height:90px;object-fit:cover;border-radius:12px;background:linear-gradient(135deg,#eaf7e5,#e4f3fb)}
.progress-row{margin:12px 0}.progress-head{display:flex;justify-content:space-between;font-size:10px;margin-bottom:6px}.bar{height:7px;background:#edf1ec;border-radius:99px;overflow:hidden}.bar>i{display:block;height:100%;background:linear-gradient(90deg,#59c80b,#8bdc50);border-radius:99px}

/* Lists, areas */
.list{display:grid}.list-row{display:flex;justify-content:space-between;gap:18px;padding:11px 0;border-bottom:1px solid #edf1ec}.list-row:last-child{border-bottom:0}.row-button{width:100%;border:0;background:transparent;text-align:left;cursor:pointer;border-radius:10px;transition:background .13s ease,padding .13s ease}.row-button:hover{background:#f8fbf7;padding-left:8px;padding-right:8px}.areas-head{margin-bottom:14px}.areas-block{margin-bottom:24px}.areas-block-title{margin-bottom:10px}.areas-kicker{font-size:9px;color:#4ba331;font-weight:850;letter-spacing:.11em}.area-group{margin-bottom:17px}.area-group-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px}.area-group-head h3{font-size:14px;margin:0}.area-group-head span{font-size:10px;color:var(--muted)}.area-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.area-card{padding:15px;min-width:0}.area-card-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.area-open{width:28px;height:28px;border-radius:10px;background:var(--green-soft);color:#3d9324;display:grid;place-items:center}.area-open svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.area-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px;padding-top:12px;border-top:1px solid #edf1ec}.area-stats div:last-child{grid-column:1/-1}.area-stats span,.area-stats strong{display:block}.area-stats span{font-size:9px;color:var(--muted)}.area-stats strong{font-size:11px;margin-top:2px}.compact-empty{padding:25px}

/* Products */
.product-import-hint{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;padding:14px 16px;margin-bottom:14px;background:linear-gradient(135deg,#f5fbf1,#f2fbff);border-color:#dcebd7}.product-import-icon,.smart-import-icon{width:38px;height:38px;border-radius:13px;background:#e7f7df;color:#48a82c;display:grid;place-items:center}.product-import-icon svg,.smart-import-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.product-import-hint strong,.product-import-hint span{display:block}.product-import-hint strong{font-size:12px}.product-import-hint span{font-size:10px;color:var(--muted);margin-top:2px}.product-card{padding:0;overflow:hidden}.product-cover{width:100%;height:170px;object-fit:contain;background:linear-gradient(145deg,#fbfcfb,#f2f7ef);padding:12px}.product-card-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;padding:14px 15px 0}.product-card-head .card-title{font-size:14px}.product-summary{padding:0 15px 12px}.active-product-name{font-size:11px;margin:8px 0 2px;color:#4d5951}.product-summary strong{font-size:17px}.card-link{padding:10px 15px;border-top:1px solid #edf1ec;color:#4a9a30;font-size:10px;font-weight:800}.undecided{padding:14px 0;color:var(--muted);font-size:11px}.purchase-check{display:flex;align-items:center;gap:6px;cursor:pointer;font-size:10px;font-weight:760;color:#566259}.purchase-check input{display:none}.purchase-box{width:20px;height:20px;border:1.5px solid #cbd6ca;border-radius:7px;background:#fff;color:transparent;display:grid;place-items:center}.purchase-check input:checked+.purchase-box{background:var(--green);border-color:var(--green);color:#fff}.purchase-check.compact{flex-direction:column;gap:3px}.product-empty{grid-column:1/-1;display:grid;place-items:center;gap:8px}.product-empty span{color:var(--muted);font-size:11px}.alt-placeholder{height:130px;border-radius:14px;background:linear-gradient(135deg,#eef7e9,#edf7fb);display:grid;place-items:center;color:#78a26b}.alt-placeholder svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:1.5}.alternative-grid,.mini-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.alternative-detail,.mini-card{border:1px solid var(--line);border-radius:15px;padding:12px;background:#fff}.alternative-detail.active-choice{border-color:#a9d89a;background:#f8fdf5}.alternative-detail img,.mini-card img{width:100%;height:120px;object-fit:contain;background:#f7f9f6;border-radius:11px}.alt-title-row,.alt-actions{display:flex;justify-content:space-between;gap:8px;align-items:center}.big-price{font-size:24px;font-weight:900}.spec-line{font-size:10px;color:var(--muted);padding:5px 0;border-bottom:1px solid #eff2ef}.comparison-scroll{overflow:auto}.comparison{width:100%;border-collapse:collapse;font-size:11px}.comparison th,.comparison td{padding:9px;border-bottom:1px solid var(--line);text-align:left}.comparison th{color:#546159}

/* Tasks */
.task-card{padding:11px 13px;display:flex;align-items:center;gap:10px;box-shadow:none}.task-card:hover{border-color:#d7e7d2;background:#fcfefb}.task-card.done{opacity:.56}.task-check{width:23px;height:23px;border-radius:50%;border:1.5px solid #cad4c9;background:#fff;display:grid;place-items:center;cursor:pointer;flex:none}.task-check svg{width:14px;height:14px;fill:none;stroke:#fff;stroke-width:2.4}.task-card.done .task-check{background:var(--green);border-color:var(--green)}.task-body{flex:1;min-width:0;text-align:left;border:0;background:none;cursor:pointer;padding:0}.task-body .row-title{font-size:12px}

/* Inspiration */
.inspo-card{padding:7px;overflow:hidden}.inspo-card img{width:100%;height:200px;object-fit:cover;border-radius:14px;background:#eef3ec}.inspo-card .card-title{padding:9px 8px 0;font-size:13px}.inspo-card .row-meta,.inspo-card p{padding:0 8px}.inspo-card .card-link{margin:6px -7px -7px}.mini-empty{height:200px;display:grid;place-items:center}.inspiration-detail img{width:100%;max-height:450px;object-fit:cover;border-radius:18px}

/* Details */
.detail-top{margin-bottom:8px}.back-button svg{width:15px;height:15px}.detail-hero{display:flex;gap:14px;align-items:center;margin-bottom:16px}.detail-icon{width:48px;height:48px;border-radius:15px;background:var(--green-soft);color:#46a327;display:grid;place-items:center}.detail-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.detail-hero h2{margin:2px 0;font-size:25px}.detail-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.detail-columns{display:grid;grid-template-columns:1.2fr .8fr;gap:14px}.detail-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.detail-facts{display:grid;gap:8px}.detail-facts>div{display:flex;justify-content:space-between;gap:15px;padding:8px 0;border-bottom:1px solid #edf1ec;font-size:11px}.detail-note{font-size:11px;line-height:1.55;color:#56625a}.related-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.related-card{display:flex;align-items:center;border:1px solid var(--line);border-radius:14px;overflow:hidden}.related-open{flex:1;display:flex;align-items:center;gap:9px;border:0;background:#fff;padding:10px;text-align:left;cursor:pointer}.related-icon{width:31px;height:31px;border-radius:10px;background:#f0f7ed;color:#4da132;display:grid;place-items:center}.related-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8}.related-open strong,.related-open small{display:block}.related-open strong{font-size:11px}.related-open small{font-size:9px;color:var(--muted);margin-top:2px}.unlink{border:0;background:#fff;color:#a2aca5;cursor:pointer;padding:10px}.system-link{font-size:9px;color:#7e8a82;padding-right:10px}.chip-row{display:flex;gap:6px;flex-wrap:wrap}.entity-chip{font-size:10px;padding:6px 9px;border-radius:999px;background:#eff6ec;color:#4a7d3b}

/* Forms and modals */
.modal-backdrop{position:fixed;inset:0;background:rgba(28,42,32,.38);backdrop-filter:blur(8px);display:grid;place-items:center;padding:22px;z-index:30;animation:fadeIn .15s ease}.modal{width:min(720px,100%);max-height:90vh;overflow:auto;background:#fff;border:1px solid rgba(255,255,255,.75);border-radius:26px;box-shadow:0 30px 90px rgba(31,54,37,.2);padding:23px;animation:modalIn .2s ease}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:19px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field{display:grid;gap:6px;min-width:0}.field.full{grid-column:1/-1}.field label,.field-label-row label{font-size:10px;font-weight:850;color:#5d695f}.field input,.field select,.field textarea,.smart-import-row input,.inline-create input,.inline-create select{width:100%;border:1.5px solid #e2e8e1;background:#fbfdfb;border-radius:13px;padding:11px 12px;color:var(--text);outline:none;transition:border-color .14s ease,box-shadow .14s ease,background .14s ease}.field input:focus,.field select:focus,.field textarea:focus,.smart-import-row input:focus,.inline-create input:focus,.inline-create select:focus{border-color:#8bd371;background:#fff;box-shadow:0 0 0 4px #edf9e8}.field textarea{min-height:88px;resize:vertical}.field-label-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.field-add{border:0;background:none;color:#4c9c31;font-size:9px;font-weight:850;cursor:pointer}.inline-create{display:grid;grid-template-columns:1fr auto auto;gap:7px;padding:8px;background:#f4f9f1;border-radius:12px}.inline-create .inline-parent{grid-column:1/-1}.form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px;padding-top:14px;border-top:1px solid #edf1ec}.form-divider{grid-column:1/-1;height:1px;background:var(--line);margin:3px 0}.check-field{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;gap:8px!important}.check-field input{width:auto}.settings-help,.import-edit-note{padding:10px 12px;background:#f5f9f3;border-radius:12px;color:#68736b;font-size:10px}.choice-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.choice{border:1px solid var(--line);background:#fff;border-radius:15px;padding:14px;text-align:left;cursor:pointer;transition:.15s ease}.choice:hover{border-color:#b9ddac;background:#f8fdf6;transform:translateY(-2px);box-shadow:var(--shadow)}.choice-icon{width:34px;height:34px;border-radius:11px;background:var(--green-soft);color:#4ba42e;display:grid;place-items:center;margin-bottom:10px}.choice-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.choice strong{font-size:12px}.chooser-footer{text-align:center;margin-top:14px;color:var(--muted);font-size:10px}.upload-zone{border:1.5px dashed #cddbc8;background:#f9fcf7;border-radius:16px;padding:13px;cursor:pointer;transition:.15s ease}.upload-zone:hover,.upload-zone.dragging{border-color:#7bca5d;background:#f2fbed}.upload-empty{display:flex;align-items:center;gap:12px}.upload-icon{width:40px;height:40px;border-radius:13px;background:var(--green-soft);color:#4ca62d;display:grid;place-items:center}.upload-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2}.upload-empty strong,.upload-empty span{display:block}.upload-empty strong{font-size:11px}.upload-empty span,.upload-hint{font-size:9px;color:var(--muted);margin-top:2px}.upload-browse{margin-left:auto}.upload-preview{display:flex;align-items:center;gap:10px}.upload-thumb img{width:60px;height:60px;object-fit:cover;border-radius:10px}.pdf-thumb{width:60px;height:60px;border-radius:10px;background:#f1f4f1;display:grid;place-items:center;font-size:10px}.upload-file-copy{flex:1;min-width:0}.upload-file-copy strong,.upload-file-copy span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.upload-file-copy strong{font-size:10px}.upload-file-copy span{font-size:9px;color:var(--muted)}.smart-import{display:grid;gap:12px}.smart-import-copy{padding:12px;background:linear-gradient(135deg,#f2faee,#f0f9ff);border:1px solid #dcebd8;border-radius:15px;display:flex;gap:10px}.smart-import-copy strong,.smart-import-copy span{display:block}.smart-import-copy strong{font-size:12px}.smart-import-copy span{font-size:10px;color:var(--muted);margin-top:2px}.smart-import-row{display:flex;gap:8px}.smart-import-row input{flex:1}.smart-import-status{font-size:10px;color:var(--muted)}.smart-preview{border:1px solid var(--line);border-radius:17px;padding:12px}.smart-preview-top{display:grid;grid-template-columns:120px 1fr;gap:12px}.smart-preview-main img,.smart-preview-placeholder{width:120px;height:120px;object-fit:contain;border-radius:13px;background:#f6f8f5}.smart-preview-placeholder{display:grid;place-items:center;color:#8baa80}.smart-spec-chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}.smart-spec-chips span{font-size:9px;padding:5px 7px;background:#f0f5ee;border-radius:999px}.manual-import-row{display:flex;justify-content:center}.external-button{display:inline-flex;align-items:center;gap:6px}.external-button svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2}.confirm-card{text-align:center;padding:10px}.confirm-icon{width:50px;height:50px;border-radius:16px;background:var(--red-soft);color:var(--red);display:grid;place-items:center;margin:0 auto 12px}.confirm-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2}.purchase-info{display:flex;gap:10px;align-items:flex-start;padding:11px;background:#f5fbf2;border-radius:13px}.purchase-info-icon{width:35px;height:35px;border-radius:11px;background:var(--green-soft);display:grid;place-items:center;color:#4ca62f}.purchase-info-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2}.existing-file{font-size:10px;color:var(--muted)}

/* Tabs, empties, toast */
.cost-tabs{display:inline-flex;gap:4px;margin-bottom:14px;padding:4px;border:1px solid var(--line);background:#fff;border-radius:13px}.cost-tabs button{border:0;border-radius:9px;padding:8px 12px;background:transparent;cursor:pointer;color:#6c776f;font-weight:760}.cost-tabs button.active{background:var(--green-soft);color:#37891f}.empty{padding:36px 20px;text-align:center;color:var(--muted);border-style:dashed;background:rgba(255,255,255,.65)}.empty strong,.empty span{display:block}.toast{position:fixed;right:24px;bottom:24px;background:#19231c;color:#fff;padding:11px 15px;border-radius:13px;box-shadow:0 14px 35px rgba(20,35,24,.23);z-index:40;font-size:11px;font-weight:720;animation:toastIn .18s ease}

/* Login */
.login-body{min-height:100vh;background:radial-gradient(circle at 15% 10%,#eef9e8 0,transparent 34%),radial-gradient(circle at 85% 85%,#e7f6fd 0,transparent 35%),#f7faf5;display:grid;place-items:center;padding:24px}.login-shell{width:min(470px,100%)}.login-card{background:rgba(255,255,255,.96);border:1px solid var(--line);border-radius:28px;padding:30px;box-shadow:0 28px 80px rgba(44,69,51,.13)}.login-brand{display:flex;align-items:center;gap:11px;margin-bottom:34px}.login-brand .brandmark{flex:none}.login-brand strong,.login-brand span{display:block}.login-brand span{font-size:11px;color:var(--muted)}.login-copy h1{font-size:30px;letter-spacing:-.04em;margin:6px 0}.login-copy p{color:var(--muted);font-size:12px;line-height:1.5}.login-form{display:grid;gap:12px;margin-top:24px}.login-submit{width:100%;margin-top:4px}.login-note{font-size:9px;color:#9aa49d;text-align:center;margin-top:17px}.login-error{padding:9px 10px;border-radius:11px;background:var(--red-soft);color:#c34545;font-size:10px}.login-people{display:flex;justify-content:center;margin:-4px 0 16px}.login-people img{width:43px;height:43px;border-radius:50%;object-fit:cover;border:3px solid #fff;margin-left:-9px;box-shadow:0 3px 9px rgba(40,60,45,.1)}.login-people img:first-child{margin-left:0}

@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes modalIn{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:none}}@keyframes toastIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(max-width:1300px){.finance-metrics{grid-template-columns:repeat(3,1fr)}.dashboard-lower{grid-template-columns:1fr 1fr}.area-card-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:1000px){:root{--sidebar:196px}.cards{grid-template-columns:repeat(2,1fr)}.area-card-grid{grid-template-columns:repeat(2,1fr)}.dashboard-lower{grid-template-columns:1fr}.finance-metrics{grid-template-columns:repeat(2,1fr)}.sidebar-team{display:none}}
@media(max-width:760px){.app-shell{display:block}.sidebar{position:fixed;z-index:20;bottom:0;top:auto;left:0;width:100%;height:72px;padding:7px 8px;background:rgba(255,255,255,.97);border-right:0;border-top:1px solid var(--line)}.brand,.sidebar-team,.sidebar-settings,.sidebar-footer{display:none}.sidebar nav{height:100%;grid-template-columns:repeat(8,1fr);gap:2px}.nav-item{justify-content:center;flex-direction:column;gap:3px;padding:5px 2px;font-size:9px;border-radius:12px}.nav-item:hover{transform:none}.nav-icon{width:19px;height:19px}.nav-item span{display:block}main{padding:0 12px 88px}.topbar{min-height:88px}.project-thumb{width:50px;height:46px;border-radius:13px}.greeting{font-size:9px}.topbar h1{font-size:21px}.project-badge,.round-action,.account-chip{display:none}.add-main{width:40px;height:40px;padding:0;border-radius:14px}.add-main span{display:none}.finance-metrics{grid-template-columns:repeat(2,1fr);gap:8px}.metric{padding:13px}.metric-icon{width:35px;height:35px;margin-bottom:9px}.metric .value{font-size:18px}.metric .hint{display:none}.budget-head{align-items:flex-start}.budget-head .secondary{font-size:0;width:36px;height:36px;padding:0}.budget-head .secondary:after{content:'•••';font-size:14px}.budget-legend{grid-template-columns:1fr 1fr}.budget-rest{justify-self:start}.dashboard-actions{overflow:auto;padding-bottom:2px}.dashboard-actions>span{display:none}.dashboard-actions .secondary{white-space:nowrap}.cards,.area-card-grid,.form-grid,.detail-columns,.related-grid,.alternative-grid,.mini-cards{grid-template-columns:1fr}.area-group-head{align-items:flex-start;gap:8px}.area-group-head .link-btn{font-size:9px}.product-import-hint{grid-template-columns:auto 1fr}.product-import-hint>.link-btn{display:none}.product-page-head{align-items:flex-start}.product-page-head .inline-actions{width:100%}.product-page-head .inline-actions .primary{flex:1}.modal-backdrop{padding:10px}.modal{border-radius:22px;padding:18px;max-height:94vh}.choice-grid{grid-template-columns:1fr 1fr}.smart-import-row{display:grid}.smart-preview-top{grid-template-columns:90px 1fr}.smart-preview-main img,.smart-preview-placeholder{width:90px;height:90px}.upload-empty{align-items:flex-start;flex-wrap:wrap}.upload-browse{margin-left:52px}.detail-metrics{grid-template-columns:1fr 1fr}.room-overview{grid-template-columns:100px 1fr}.house-visual{height:115px}.inspo-strip img,.inspo-strip-placeholder{height:75px}}
@media(max-width:430px){.choice-grid{grid-template-columns:1fr}.finance-metrics{grid-template-columns:1fr 1fr}.finance-metrics .metric:nth-child(3){grid-column:1/-1}.top-actions{gap:5px}.dashboard-lower{gap:10px}.budget-panel{padding:16px}.panel{padding:15px}.form-actions{position:sticky;bottom:-18px;background:#fff;padding:12px 0 2px}.form-actions .primary{flex:1}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* v0.5 dashboard/detail supplements */
.dashboard-secondary{grid-template-columns:.9fr 1.4fr;margin-top:14px}.dashboard-inline-add{width:100%;margin-top:12px;padding:8px 10px;font-size:10px}.dashboard-inline-add svg{width:14px;height:14px}.trade-list{display:grid;gap:8px}.trade-preview{display:grid;grid-template-columns:34px 1fr auto;gap:10px;align-items:center;width:100%;border:0;background:transparent;text-align:left;padding:5px 0;cursor:pointer}.trade-preview:hover .trade-preview-main strong{color:#3b9421}.trade-preview-icon{width:32px;height:32px;border-radius:10px;background:color-mix(in srgb,var(--trade) 13%,white);color:var(--trade);display:grid;place-items:center}.trade-preview-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.trade-preview-main{display:grid;gap:5px}.trade-preview-main strong{font-size:10px;transition:color .14s}.trade-preview-main i{height:5px;background:#edf1ec;border-radius:99px;overflow:hidden}.trade-preview-main b{display:block;height:100%;border-radius:99px}.trade-preview>span:last-child{font-size:9px;color:var(--muted);font-weight:800}.product-preview-placeholder{width:88px;height:88px;border-radius:15px;background:linear-gradient(135deg,#eef9e9,#eaf6fb);color:#5caa44;display:grid;place-items:center}.product-preview-placeholder svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.6}.area-symbol{width:36px;height:36px;border-radius:12px;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center;margin-bottom:10px}.area-symbol.trade{background:var(--purple-soft);color:var(--purple)}.area-symbol svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.product-cover-placeholder{height:170px;background:linear-gradient(145deg,#f5fbf1,#edf7fb);display:grid;place-items:center;color:#5caf45}.product-cover-placeholder svg{width:45px;height:45px;fill:none;stroke:currentColor;stroke-width:1.5}.tag svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.2}.inspo-card .mini-empty svg{width:30px;height:30px;fill:none;stroke:#6da15e;stroke-width:1.7;margin:0 auto 5px}.smart-import-copy{align-items:center}.smart-import-copy h3{margin:1px 0 3px;font-size:14px}.smart-import-copy p{margin:0;color:var(--muted);font-size:10px;line-height:1.45}.smart-preview-top{align-items:center}.smart-preview-main{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.smart-preview-main h3{margin:6px 0 3px}.smart-preview-main>strong{font-size:18px}.smart-preview-placeholder svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:1.6}.manual-import-row{gap:6px;align-items:center;font-size:10px;color:var(--muted)}.field-add{display:inline-flex;align-items:center;gap:3px}.field-add svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:2.3}.external-button,.back-button{display:inline-flex!important}.dashboard-lower h3,.dashboard-secondary h3{font-size:14px}.task-preview-row .member-avatar,.task-card>.member-avatar{width:29px;height:29px}.inspiration-dashboard .clickable:hover{transform:scale(1.025)}
@media(max-width:1000px){.dashboard-secondary{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.dashboard-secondary{grid-template-columns:1fr}.trade-preview{grid-template-columns:32px 1fr auto}}
.unlink svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2}.purchase-info-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2}.purchase-box svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2.4}.confirm-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2}.trade-preview,.compact-item,.task-preview-row,.product-preview-card{font:inherit;color:inherit}
.detail-avatar{width:54px;height:54px;border-radius:50%;object-fit:cover;box-shadow:0 6px 16px rgba(42,66,49,.12);border:2px solid #fff}.external-button svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2}.inspo-strip button{border:0;background:transparent;padding:0;cursor:pointer;position:relative}.inspo-strip button span{position:absolute;left:6px;right:6px;bottom:6px;padding:4px 6px;border-radius:8px;background:rgba(17,28,20,.66);color:#fff;font-size:8px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.area-card-grid>.area-card:only-child{max-width:330px}.detail-toolbar .danger-link{padding:9px 10px;border-radius:11px;background:var(--red-soft)}
.avatar-placeholder{display:grid;place-items:center;background:#eef5eb;color:#75a567}.avatar-placeholder svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2}

/* v0.5.1 people, notes and budget chart */
.budget-overview-grid{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:14px;margin-bottom:14px}.budget-overview-grid .budget-panel{margin-bottom:0}.budget-donut-panel{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:180px;padding:17px}.budget-donut-panel .eyebrow{align-self:flex-start}.budget-donut{width:118px;height:118px;border-radius:50%;background:var(--donut);display:grid;place-items:center;margin:5px 0 10px;box-shadow:inset 0 0 0 1px rgba(30,50,34,.03);transition:transform .18s ease}.budget-donut:hover{transform:scale(1.025)}.budget-donut>div{width:72px;height:72px;border-radius:50%;background:#fff;display:grid;place-content:center;text-align:center;box-shadow:0 2px 9px rgba(40,60,45,.07)}.budget-donut strong{font-size:20px;letter-spacing:-.04em}.budget-donut span{font-size:8px;color:var(--muted);font-weight:760}.donut-mini-legend{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:6px 10px;font-size:9px;color:var(--muted)}.donut-mini-legend span{display:flex;align-items:center;gap:5px}.legend-dot.free{background:#dfe5df}
.list-avatar,.mini-avatar{width:34px;height:34px;border-radius:50%;object-fit:cover;flex:none;border:2px solid #fff;box-shadow:0 3px 9px rgba(39,62,45,.1)}.mini-avatar{width:29px;height:29px}.expense-row{align-items:center}.expense-row-main{display:flex;align-items:center;gap:11px;min-width:0}.row-person{font-size:9px;color:#849087;margin-top:4px}.row-person strong{color:#536159}.person-badge{display:inline-flex;align-items:center;gap:7px;font-size:10px;color:#657168}.person-badge strong{color:#26322a}.muted-person{opacity:.7}.person-detail-row{align-items:center}.product-author{display:flex;align-items:center;gap:8px;margin-top:11px;padding-top:10px;border-top:1px solid #eef2ed;color:#7a867e;font-size:9px}.product-author strong{color:#4c5a51}
.notes-page-head{margin-bottom:14px}.notes-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.note-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:17px;box-shadow:0 2px 7px rgba(47,68,54,.035);transition:transform .17s ease,box-shadow .17s ease,border-color .17s ease;min-width:0}.note-card:hover{transform:translateY(-2px);box-shadow:var(--shadow);border-color:#d8e8d2}.note-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:13px}.note-author{display:flex;align-items:center;gap:8px;min-width:0}.note-author>div{min-width:0}.note-author strong,.note-author span{display:block}.note-author strong{font-size:10px}.note-author span{font-size:8px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:190px}.note-actions{display:flex;gap:4px}.note-actions .icon-btn{width:30px;height:30px}.note-actions svg{width:14px;height:14px}.note-delete:hover{color:var(--red);background:var(--red-soft)}.note-card>h3{margin:0 0 7px;font-size:15px;letter-spacing:-.02em}.note-card>p{font-size:11px;color:#56635a;line-height:1.55;margin:0 0 12px}.note-images{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:11px}.note-images.single{grid-template-columns:1fr}.note-images a{display:block;overflow:hidden;border-radius:11px;background:#f0f4ef}.note-images img{display:block;width:100%;height:105px;object-fit:cover;transition:transform .2s ease}.note-images.single img{height:180px}.note-images a:hover img{transform:scale(1.035)}.note-image-more{position:absolute;right:7px;bottom:7px;background:rgba(25,35,28,.78);color:#fff;border-radius:9px;padding:5px 7px;font-size:9px;font-weight:800}.notes-empty{grid-column:1/-1}.empty-visual{width:46px;height:46px;border-radius:15px;background:var(--green-soft);color:#4ba82c;display:grid!important;place-items:center;margin:0 auto 10px}.empty-visual svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8}.notes-empty .primary{margin:14px auto 0}
.multi-upload-zone{border:1.5px dashed #d6dfd4;border-radius:16px;background:#fafcf9;padding:12px;transition:border-color .15s ease,background .15s ease}.multi-upload-zone:hover,.multi-upload-zone.dragging{border-color:#8ed66d;background:#f5fbf2}.multi-upload-empty{display:flex;align-items:center;gap:11px}.multi-upload-empty>div{flex:1}.multi-upload-empty strong,.multi-upload-empty span{display:block}.multi-upload-empty strong{font-size:10px}.multi-upload-empty span{font-size:9px;color:var(--muted);margin-top:2px}.multi-upload-preview{display:none;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:10px}.multi-upload-zone.has-files .multi-upload-preview{display:grid}.multi-thumb{height:84px;border-radius:12px;overflow:hidden;position:relative;background:#edf2eb}.multi-thumb img{width:100%;height:100%;object-fit:cover}.multi-thumb button{position:absolute;top:4px;right:4px;width:24px;height:24px;border:0;border-radius:8px;background:rgba(20,30,23,.72);color:#fff;display:grid;place-items:center;cursor:pointer}.multi-thumb button svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.2}
@media(max-width:1100px){.budget-overview-grid{grid-template-columns:1fr 205px}.notes-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.budget-overview-grid{grid-template-columns:1fr}.budget-donut-panel{min-height:auto;display:grid;grid-template-columns:1fr auto 1fr;gap:12px}.budget-donut-panel .eyebrow{align-self:center}.budget-donut{width:94px;height:94px;margin:0}.budget-donut>div{width:58px;height:58px}.donut-mini-legend{grid-template-columns:1fr}.notes-grid{grid-template-columns:1fr}.multi-upload-preview{grid-template-columns:repeat(3,1fr)}.sidebar nav{grid-template-columns:repeat(8,1fr)}.nav-item{font-size:8px}}

/* v0.5.2 planning page and interactive budget breakdown */
.budget-interactive{position:relative}.budget-track{position:relative}.budget-segment{border:0;padding:0;cursor:pointer;min-width:0;outline:none;transition:width .4s ease,filter .15s ease,box-shadow .15s ease}.budget-segment:hover,.budget-segment:focus-visible{filter:brightness(.94);box-shadow:inset 0 0 0 2px rgba(255,255,255,.55)}
.budget-legend button{border:0;background:transparent;padding:2px 0;display:flex;gap:6px;align-items:center;flex-wrap:wrap;color:var(--muted);font:inherit;cursor:pointer;text-align:left;border-radius:8px;transition:color .14s ease,background .14s ease}.budget-legend button:hover,.budget-legend button:focus-visible{color:#2f3c33;background:#f6faf4;outline:none}.budget-legend button strong{color:#2b352e}.budget-breakdown-popover{position:absolute;z-index:30;left:50%;top:34px;width:min(460px,94%);max-height:330px;overflow:hidden;opacity:0;pointer-events:none;transform:translate(-50%,-6px) scale(.985);transform-origin:top center;background:rgba(255,255,255,.985);border:1px solid #dbe6d8;border-radius:17px;box-shadow:0 22px 55px rgba(34,58,40,.18);transition:opacity .14s ease,transform .14s ease}.budget-breakdown-popover.visible{opacity:1;pointer-events:auto;transform:translate(-50%,0) scale(1)}.budget-popover-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px 10px;border-bottom:1px solid #edf1ec;background:linear-gradient(180deg,#fbfef9,#fff)}.budget-popover-head span,.budget-popover-head strong{display:block}.budget-popover-head span{font-size:9px;color:var(--muted);font-weight:780}.budget-popover-head strong{font-size:16px;margin-top:1px}.budget-popover-head small{font-size:9px;color:#8a958d}.budget-popover-list{max-height:260px;overflow:auto;padding:5px}.budget-popover-row{width:100%;border:0;background:transparent;display:flex;justify-content:space-between;align-items:center;gap:14px;text-align:left;padding:9px 10px;border-radius:11px;cursor:pointer;transition:background .12s ease}.budget-popover-row:hover{background:#f4f9f1}.budget-popover-row span{min-width:0}.budget-popover-row strong,.budget-popover-row small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.budget-popover-row strong{font-size:10px}.budget-popover-row small{font-size:8px;color:var(--muted);margin-top:2px}.budget-popover-row b{font-size:10px;white-space:nowrap}.budget-popover-empty{padding:22px;text-align:center;font-size:10px;color:var(--muted)}
.planning-metrics{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:14px}.planning-list{gap:0}.planning-row{align-items:center;padding:7px 0}.planning-row-main{flex:1;min-width:0;border:0;background:transparent;display:flex;justify-content:space-between;align-items:center;gap:18px;text-align:left;padding:7px 9px;border-radius:11px;cursor:pointer;color:inherit;transition:background .13s ease}.planning-row-main:hover{background:#f8fbf7}.planning-row-main>span{min-width:0}.planning-row-actions{display:flex;gap:4px;padding-left:5px}.planning-row-actions .icon-btn{width:34px;height:34px}.planning-row-actions .icon-btn svg{width:15px;height:15px}.plan-delete:hover{color:var(--red);background:var(--red-soft)}
@media(max-width:900px){.planning-metrics{grid-template-columns:1fr 1fr}.planning-metrics .metric:last-child{grid-column:1/-1}}
@media(max-width:760px){.sidebar nav{grid-template-columns:repeat(8,1fr)}.planning-metrics{grid-template-columns:1fr}.planning-metrics .metric:last-child{grid-column:auto}.planning-row-main{gap:8px}.budget-breakdown-popover{width:calc(100vw - 54px);max-width:none}}

/* v0.5.3 richer rooms & trades experience */
.areas-intro{position:relative;overflow:hidden;display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:18px;align-items:center;padding:20px 22px;margin-bottom:22px;border:1px solid #dce9d7;border-radius:24px;background:linear-gradient(118deg,#ffffff 0%,#f7fff3 58%,#eef9e8 100%);box-shadow:0 10px 30px rgba(50,83,55,.07)}
.areas-intro:after{content:"";position:absolute;width:180px;height:180px;border-radius:50%;right:90px;top:-105px;background:radial-gradient(circle,rgba(88,200,0,.14),rgba(88,200,0,0) 68%);pointer-events:none}.areas-intro-icon{width:58px;height:58px;border-radius:19px;display:grid;place-items:center;color:#42a51d;background:linear-gradient(145deg,#e9f9e1,#f8fff5);box-shadow:inset 0 0 0 1px #d9efd0,0 7px 18px rgba(66,155,30,.09)}.areas-intro-icon svg{width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.areas-intro-copy{min-width:0}.areas-intro-copy h2{margin:2px 0 4px;font-size:22px;letter-spacing:-.035em}.areas-intro-copy p{margin:0;color:#728078;font-size:10px;max-width:650px;line-height:1.45}.areas-intro-stats{display:flex;align-items:stretch;border:1px solid #e2eadf;border-radius:17px;background:rgba(255,255,255,.78);overflow:hidden;box-shadow:0 2px 9px rgba(44,69,50,.04)}.areas-intro-stats div{min-width:74px;padding:10px 12px;text-align:center;border-right:1px solid #edf1ec}.areas-intro-stats div:last-child{border-right:0}.areas-intro-stats strong,.areas-intro-stats span{display:block}.areas-intro-stats strong{font-size:17px;letter-spacing:-.03em}.areas-intro-stats span{font-size:8px;color:var(--muted);margin-top:2px;font-weight:720}
.areas-block-v2{margin-bottom:30px}.areas-section-heading{display:flex;align-items:center;gap:11px;margin:0 0 12px 2px}.areas-section-heading h3{margin:1px 0 1px;font-size:17px}.areas-section-heading p{margin:0;color:var(--muted);font-size:9px}.areas-section-icon{width:42px;height:42px;border-radius:14px;display:grid;place-items:center}.areas-section-icon.location{background:var(--blue-soft);color:var(--blue)}.areas-section-icon.trade{background:var(--purple-soft);color:var(--purple)}.areas-section-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.area-group-v2{--accent:#58c800;--accent-soft:#eef9e8;position:relative;margin-bottom:18px;padding:16px;border:1px solid #e1e8df;border-radius:24px;background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(250,252,249,.92));box-shadow:0 7px 24px rgba(46,70,53,.055)}.area-group-v2.accent-blue{--accent:#1cb0f6;--accent-soft:#eaf7fe}.area-group-v2.accent-purple{--accent:#a94de8;--accent-soft:#f5eafe}.area-group-v2.accent-orange{--accent:#f2a900;--accent-soft:#fff6db}.area-group-v2.accent-mint{--accent:#20b887;--accent-soft:#e8faf4}.area-group-v2:before{content:"";position:absolute;left:0;top:22px;bottom:22px;width:4px;border-radius:0 6px 6px 0;background:var(--accent);opacity:.9}.area-group-hero{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:2px 4px 13px 8px}.area-group-copy{min-width:0}.area-group-kicker{display:block;font-size:8px;font-weight:850;letter-spacing:.13em;color:var(--accent);margin-bottom:2px}.area-group-hero h3{margin:0;font-size:18px;letter-spacing:-.025em}.area-group-summary{display:flex;gap:12px;flex-wrap:wrap;margin-top:6px;color:#738078;font-size:9px}.area-group-summary span{display:inline-flex;align-items:center;gap:4px}.area-group-summary svg{width:12px;height:12px;fill:none;stroke:var(--accent);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.area-group-action{border:1px solid color-mix(in srgb,var(--accent) 24%,#e7ece6);background:var(--accent-soft);color:color-mix(in srgb,var(--accent) 74%,#23401f);border-radius:13px;padding:8px 10px;display:flex;align-items:center;gap:5px;font-size:9px;font-weight:820;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease}.area-group-action:hover{transform:translateX(2px);box-shadow:0 5px 13px color-mix(in srgb,var(--accent) 15%,transparent)}.area-group-action svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}.area-group-budget{padding:0 5px 14px 8px}.area-group-budget-track{height:5px;border-radius:999px;background:#edf1ec;overflow:hidden;display:flex}.area-group-budget-track i{height:100%;display:block}.area-group-budget-track .spent{background:#58c800}.area-group-budget-track .planned{background:#ffc800}.area-group-budget-track .products{background:#a94de8}.area-group-budget-meta{display:flex;justify-content:space-between;gap:10px;margin-top:4px;font-size:8px;color:#8a968e}.area-group-budget-meta strong{color:#5b685f;font-size:8px}
.area-card-grid-v2{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:11px}.area-card-v2{--accent:#58c800;--accent-soft:#eef9e8;padding:0;overflow:hidden;min-height:236px;border-radius:20px;border-color:#e3eae1;background:#fff;box-shadow:0 3px 11px rgba(47,68,54,.045);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.area-card-v2.accent-blue{--accent:#1cb0f6;--accent-soft:#eaf7fe}.area-card-v2.accent-purple{--accent:#a94de8;--accent-soft:#f5eafe}.area-card-v2.accent-orange{--accent:#f2a900;--accent-soft:#fff6db}.area-card-v2.accent-mint{--accent:#20b887;--accent-soft:#e8faf4}.area-card-v2:hover{transform:translateY(-4px);border-color:color-mix(in srgb,var(--accent) 28%,#dce6d9);box-shadow:0 16px 34px rgba(43,69,49,.105)}.area-card-visual{height:64px;position:relative;overflow:hidden;padding:12px 13px;background:linear-gradient(120deg,var(--accent-soft),#fff 76%);border-bottom:1px solid color-mix(in srgb,var(--accent) 12%,#edf1ec)}.trade-card-v2 .area-card-visual{background:linear-gradient(120deg,var(--accent-soft),#fcfaff 78%)}.area-card-orb{position:absolute;border-radius:50%;background:var(--accent);opacity:.08;pointer-events:none}.area-card-orb.orb-one{width:78px;height:78px;right:30px;top:-45px}.area-card-orb.orb-two{width:42px;height:42px;right:-10px;bottom:-20px;opacity:.12}.area-symbol-v2{position:relative;z-index:1;width:38px;height:38px;border-radius:13px;display:grid;place-items:center;background:#fff;color:var(--accent);box-shadow:0 5px 14px color-mix(in srgb,var(--accent) 11%,transparent),inset 0 0 0 1px color-mix(in srgb,var(--accent) 16%,#eef2ed)}.area-symbol-v2 svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.area-type-chip{position:absolute;left:61px;top:21px;z-index:1;padding:4px 7px;border-radius:999px;background:rgba(255,255,255,.82);color:color-mix(in srgb,var(--accent) 72%,#405047);font-size:8px;font-weight:820;backdrop-filter:blur(4px)}.area-open-v2{position:absolute;right:12px;top:13px;z-index:1;width:32px;height:32px;border-radius:11px;background:#fff;color:var(--accent);display:grid;place-items:center;box-shadow:0 3px 10px rgba(43,62,48,.06);transition:transform .16s ease,background .16s ease}.area-card-v2:hover .area-open-v2{transform:translateX(2px);background:var(--accent);color:#fff}.area-open-v2 svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.area-card-body{padding:13px 14px 14px}.area-card-title-row{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.area-card-title{font-size:14px;line-height:1.2}.area-people{display:flex;flex-direction:row-reverse;justify-content:flex-end;min-width:max-content;padding-left:6px}.area-mini-avatar{width:27px;height:27px;border-radius:50%;object-fit:cover;border:2px solid #fff;margin-left:-7px;box-shadow:0 3px 8px rgba(40,62,45,.09)}.area-finance-row{display:grid;grid-template-columns:1fr 1fr .65fr;gap:6px;margin-top:12px;padding:9px 0;border-top:1px solid #eef2ed;border-bottom:1px solid #eef2ed}.area-finance-row span,.area-finance-row strong{display:block}.area-finance-row span{font-size:8px;color:#8b978f}.area-finance-row strong{font-size:10px;margin-top:2px;white-space:nowrap}.area-progress-wrap{margin-top:9px}.area-progress-label{display:flex;justify-content:space-between;gap:10px;color:#87928a;font-size:8px}.area-progress-label strong{color:var(--accent)}.area-progress{height:5px;margin-top:4px;border-radius:999px;background:#eef2ed;overflow:hidden}.area-progress i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,var(--accent),color-mix(in srgb,var(--accent) 70%,#fff));transition:width .35s ease}.area-card-chips{display:flex;gap:5px;flex-wrap:wrap;margin-top:10px}.area-card-chips span{display:inline-flex;align-items:center;gap:4px;padding:4px 6px;border-radius:8px;background:#f6f8f5;color:#69756d;font-size:7.5px;font-weight:740}.area-card-chips svg{width:10px;height:10px;fill:none;stroke:var(--accent);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.trades-grid .area-card-v2{min-height:228px}.trades-section{padding-top:2px}
@media(max-width:1250px){.areas-intro{grid-template-columns:auto minmax(0,1fr) auto}.areas-intro-stats{grid-row:2;grid-column:2/4;justify-self:start}.areas-intro>.primary{grid-row:1;grid-column:3}.area-card-grid-v2{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.areas-intro{grid-template-columns:auto 1fr;padding:15px;gap:11px}.areas-intro-icon{width:46px;height:46px;border-radius:15px}.areas-intro-copy h2{font-size:19px}.areas-intro-copy p{font-size:9px}.areas-intro-stats{grid-column:1/-1;grid-row:auto;width:100%}.areas-intro-stats div{flex:1;min-width:0}.areas-intro>.primary{grid-column:1/-1;grid-row:auto;width:100%}.area-group-v2{padding:13px 10px;border-radius:20px}.area-group-hero{align-items:flex-start}.area-group-summary{gap:7px}.area-group-action span{display:none}.area-group-action{width:34px;height:34px;padding:0;justify-content:center}.area-card-grid-v2{grid-template-columns:1fr}.area-card-v2{min-height:0}.areas-section-heading p{display:none}}

/* v0.5.4 – product-first visual system */
.products-hero{display:grid;grid-template-columns:minmax(300px,1.4fr) minmax(360px,1fr) auto;gap:18px;align-items:center;margin-bottom:16px;padding:22px 24px;border:1px solid #dce8d9;border-radius:26px;background:linear-gradient(125deg,#f7fff1 0%,#ffffff 58%,#eef9ff 100%);box-shadow:0 10px 30px rgba(44,75,50,.07);position:relative;overflow:hidden}.products-hero:after{content:"";position:absolute;width:190px;height:190px;border-radius:50%;right:-65px;top:-90px;background:radial-gradient(circle,rgba(88,200,0,.13),transparent 68%);pointer-events:none}.products-hero-copy{position:relative;z-index:1}.products-hero-copy h2{margin:3px 0 6px;font-size:24px;letter-spacing:-.035em}.products-hero-copy p{margin:0;max-width:620px;font-size:10px;line-height:1.55;color:var(--muted)}.products-hero-stats{display:grid;grid-template-columns:repeat(2,minmax(100px,1fr));gap:8px;position:relative;z-index:1}.products-hero-stats>div{padding:11px 12px;border-radius:16px;background:rgba(255,255,255,.84);border:1px solid rgba(215,226,212,.9);box-shadow:0 3px 10px rgba(45,70,52,.04);display:grid;gap:2px}.products-hero-stats strong{font-size:17px;letter-spacing:-.02em}.products-hero-stats span{font-size:8px;color:var(--muted);font-weight:750}.products-hero-stats .price-stat{background:#eef9e9;border-color:#d3eacb}.products-hero-stats .price-stat strong{color:#3f9e24}.products-hero>.primary{position:relative;z-index:1;white-space:nowrap}
.product-toolbar-v2{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:7px 0 11px;padding:0 2px}.product-toolbar-v2>div:first-child{display:grid;gap:2px}.product-toolbar-v2>div:first-child strong{font-size:13px}.product-toolbar-v2>div:first-child span{font-size:9px;color:var(--muted)}
.product-showcase-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.product-showcase-card{--product-accent:#58c800;--product-soft:#eff9e9;border:1px solid #dfe7dd;border-radius:23px;background:#fff;overflow:hidden;box-shadow:0 5px 18px rgba(39,65,45,.055);transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;min-width:0}.product-showcase-card:hover{transform:translateY(-3px);border-color:color-mix(in srgb,var(--product-accent) 32%,#dfe7dd);box-shadow:0 13px 30px rgba(37,68,43,.11)}.product-showcase-card.tone-blue{--product-accent:#1cb0f6;--product-soft:#e9f7fe}.product-showcase-card.tone-cyan{--product-accent:#24b7c9;--product-soft:#e9fafa}.product-showcase-card.tone-orange{--product-accent:#f49b20;--product-soft:#fff3df}.product-showcase-card.tone-mint{--product-accent:#20b887;--product-soft:#e9faf4}.product-showcase-card.tone-purple{--product-accent:#a94de8;--product-soft:#f5eafa}.product-showcase-card.tone-amber{--product-accent:#e7a400;--product-soft:#fff7dc}.product-showcase-media{height:190px;background:linear-gradient(150deg,var(--product-soft),#fff);position:relative;display:grid;place-items:center;overflow:hidden}.product-showcase-media>img{width:100%;height:100%;object-fit:contain;padding:14px;transition:transform .18s ease}.product-showcase-card:hover .product-showcase-media>img{transform:scale(1.025)}.product-showcase-placeholder{width:82px;height:82px;border-radius:25px;background:#fff;color:var(--product-accent);display:grid;place-items:center;box-shadow:0 8px 24px color-mix(in srgb,var(--product-accent) 15%,transparent)}.product-showcase-placeholder svg{width:38px;height:38px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.product-type-badge{position:absolute;left:11px;top:11px;display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:999px;background:rgba(255,255,255,.92);box-shadow:0 4px 12px rgba(40,66,46,.08);color:var(--product-accent);font-size:9px}.product-type-badge svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.product-type-badge strong{color:#334039}.product-status-badge{position:absolute;right:11px;top:11px;padding:6px 9px;border-radius:999px;font-size:8px;font-weight:850;background:#fff;color:#6f7c73;box-shadow:0 4px 12px rgba(40,66,46,.07)}.product-status-badge.purchased{background:#eafaE5;color:#3e9b26}.product-status-badge.selected{background:#f4ebfd;color:#9443c9}.product-status-badge svg{width:11px;height:11px;vertical-align:-2px;margin-right:3px;fill:none;stroke:currentColor;stroke-width:2.4}.product-showcase-body{padding:15px;display:grid;gap:11px}.product-showcase-name h3{margin:0;font-size:15px;line-height:1.25;letter-spacing:-.015em}.product-showcase-name span{display:block;margin-top:3px;color:var(--muted);font-size:9px}.product-price-focus{padding:12px 13px;border-radius:16px;background:var(--product-soft);display:flex;align-items:end;justify-content:space-between;gap:10px;border:1px solid color-mix(in srgb,var(--product-accent) 14%,transparent)}.product-price-focus span{font-size:8px;text-transform:uppercase;letter-spacing:.08em;font-weight:850;color:color-mix(in srgb,var(--product-accent) 76%,#4f5b53)}.product-price-focus strong{font-size:24px;line-height:1;color:#243229;letter-spacing:-.04em}.product-price-focus.empty-price strong{color:#87928b}.product-active-choice{display:grid;gap:2px;min-height:31px}.product-active-choice span{font-size:8px;color:var(--muted);font-weight:700}.product-active-choice strong{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-active-choice.undecided{color:#8b958e}.product-card-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:8px;border-top:1px solid #eef2ed;font-size:8px;color:#7f8b83}.product-card-meta>span{display:inline-flex;align-items:center;gap:4px;min-width:0}.product-card-meta svg{width:12px;height:12px;fill:none;stroke:var(--product-accent);stroke-width:1.8}.product-card-meta>span:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-card-footer{display:flex;align-items:center;justify-content:space-between;gap:8px}.product-card-owner{display:flex;align-items:center;gap:6px;font-size:8px;color:#78847c}.product-card-owner strong{color:#465349}.product-card-open{display:inline-flex;align-items:center;gap:2px;color:var(--product-accent);font-size:8px;font-weight:850}.product-card-open svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2}.product-empty{grid-column:1/-1}

.product-detail-hero{--product-accent:#58c800;--product-soft:#eff9e9;display:grid;grid-template-columns:minmax(260px,.9fr) minmax(320px,1.25fr) minmax(230px,.72fr);gap:18px;padding:18px;border:1px solid #dfe8dd;border-radius:27px;background:linear-gradient(130deg,var(--product-soft),#fff 43%,#fff);box-shadow:0 9px 28px rgba(40,68,46,.065);margin-bottom:12px}.product-detail-hero.tone-blue{--product-accent:#1cb0f6;--product-soft:#eaf7fe}.product-detail-hero.tone-cyan{--product-accent:#24b7c9;--product-soft:#e9fafa}.product-detail-hero.tone-orange{--product-accent:#f49b20;--product-soft:#fff3df}.product-detail-hero.tone-mint{--product-accent:#20b887;--product-soft:#e9faf4}.product-detail-hero.tone-purple{--product-accent:#a94de8;--product-soft:#f5eafa}.product-detail-hero.tone-amber{--product-accent:#e7a400;--product-soft:#fff7dc}.product-detail-visual{min-height:265px;border-radius:21px;background:#fff;display:grid;place-items:center;position:relative;overflow:hidden;border:1px solid color-mix(in srgb,var(--product-accent) 14%,#e8ece7)}.product-detail-visual>img{width:100%;height:100%;max-height:310px;object-fit:contain;padding:17px}.product-detail-placeholder{width:100px;height:100px;border-radius:29px;background:var(--product-soft);color:var(--product-accent);display:grid;place-items:center}.product-detail-placeholder svg{width:48px;height:48px;fill:none;stroke:currentColor;stroke-width:1.5}.product-image-edit{position:absolute;right:11px;bottom:11px;border:1px solid #dfe6dc;background:rgba(255,255,255,.94);border-radius:11px;padding:7px 9px;display:flex;align-items:center;gap:5px;font-size:8px;font-weight:850;color:#415047;cursor:pointer;box-shadow:0 5px 14px rgba(40,66,46,.1);transition:transform .15s ease,box-shadow .15s ease}.product-image-edit:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(40,66,46,.14)}.product-image-edit svg{width:13px;height:13px;fill:none;stroke:var(--product-accent);stroke-width:2}.product-detail-main{align-self:center}.product-detail-type{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border-radius:999px;background:#fff;border:1px solid color-mix(in srgb,var(--product-accent) 20%,#e5ebe3);color:var(--product-accent);font-size:9px;font-weight:850}.product-detail-type svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8}.product-detail-main h2{font-size:28px;line-height:1.05;letter-spacing:-.04em;margin:12px 0 5px}.product-detail-choice{font-size:10px;color:#6d7a72;line-height:1.45}.product-detail-price{display:grid;gap:2px;margin:22px 0 14px}.product-detail-price span{font-size:8px;font-weight:850;color:var(--product-accent);text-transform:uppercase;letter-spacing:.1em}.product-detail-price strong{font-size:38px;line-height:1;letter-spacing:-.05em}.product-detail-chips{display:flex;gap:6px;flex-wrap:wrap}.product-detail-chips>span{display:inline-flex;align-items:center;gap:4px;border-radius:999px;background:#fff;border:1px solid #e4eae2;padding:6px 8px;font-size:8px;color:#66736a}.product-detail-chips>span.done{background:#eaf8e6;color:#469b31;border-color:#d3eccb}.product-detail-chips svg{width:12px;height:12px;fill:none;stroke:var(--product-accent);stroke-width:1.9}.product-detail-owner{display:flex;align-items:center;gap:8px;margin-top:14px}.product-detail-owner>div{display:grid;gap:1px}.product-detail-owner span{font-size:8px;color:var(--muted)}.product-detail-owner strong{font-size:9px}.product-detail-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:16px}.product-purchase-card{align-self:stretch;border-radius:20px;padding:16px;background:#fff;border:1px solid #e3e9e1;box-shadow:0 5px 15px rgba(39,64,45,.045);display:flex;flex-direction:column;justify-content:center}.product-purchase-card>strong{font-size:20px;margin:3px 0}.product-purchase-card>p{font-size:9px;line-height:1.45;color:var(--muted);margin:0 0 14px}.product-purchase-card .purchase-check{margin-bottom:8px}.purchase-expense-link{margin-top:8px;border:0;border-top:1px solid #edf1ec;background:transparent;padding:10px 0 0;display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:5px;text-align:left;font-size:8px;color:#6f7c73;cursor:pointer}.purchase-expense-link strong{font-size:10px;color:#344139}.purchase-expense-link svg{width:12px;height:12px;fill:none;stroke:var(--product-accent);stroke-width:2}.product-quick-actions{margin:0 0 12px}.product-alt-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.product-alt-card{padding:0;overflow:hidden;border-radius:19px}.product-alt-card.active-choice{border-color:color-mix(in srgb,#58c800 42%,#dfe7dd);box-shadow:0 7px 20px rgba(82,155,58,.09)}.product-alt-media{height:150px;background:#f8faf7;position:relative;display:grid;place-items:center}.product-alt-media img{width:100%;height:100%;object-fit:contain;padding:10px}.product-alt-placeholder{color:#82a278}.product-alt-placeholder svg{width:35px;height:35px;fill:none;stroke:currentColor;stroke-width:1.6}.active-ribbon{position:absolute;left:9px;top:9px;padding:5px 7px;border-radius:999px;background:#eaf8e5;color:#479d2d;font-size:8px;font-weight:850}.product-alt-body{padding:12px}.product-alt-body h4{margin:3px 0 7px;font-size:11px;line-height:1.3}.product-alt-price{font-size:22px;font-weight:900;letter-spacing:-.035em;margin-bottom:8px;color:#253129}.product-current-image>div{display:flex;align-items:center;gap:11px;padding:9px;border:1px solid #e2e8e0;border-radius:15px;background:#fafcf9}.product-current-image img,.product-current-placeholder{width:66px;height:66px;border-radius:12px;object-fit:contain;background:#fff}.product-current-placeholder{display:grid;place-items:center;color:#65ad50}.product-current-placeholder svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.7}.product-current-image>div>div{display:grid;gap:2px}.product-current-image strong{font-size:10px}.product-current-image span{font-size:8px;color:var(--muted)}

@media(max-width:1180px){.products-hero{grid-template-columns:1fr 1fr}.products-hero>.primary{grid-column:2;justify-self:end}.product-showcase-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-detail-hero{grid-template-columns:260px 1fr}.product-purchase-card{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;align-items:center}.product-purchase-card>p{grid-column:1;max-width:520px;margin-bottom:0}.product-purchase-card>.purchase-check{grid-column:2;grid-row:1/4}.purchase-expense-link{grid-column:1/-1}}
@media(max-width:760px){.products-hero{grid-template-columns:1fr;padding:16px}.products-hero>.primary{grid-column:auto;justify-self:stretch}.products-hero-stats{grid-template-columns:1fr 1fr}.product-toolbar-v2{align-items:flex-start;flex-direction:column}.product-toolbar-v2 .inline-actions{width:100%}.product-toolbar-v2 .inline-actions>*{flex:1}.product-showcase-grid,.product-alt-grid{grid-template-columns:1fr}.product-showcase-media{height:170px}.product-detail-hero{grid-template-columns:1fr;padding:12px}.product-detail-visual{min-height:210px}.product-detail-main h2{font-size:23px}.product-detail-price strong{font-size:32px}.product-purchase-card{display:flex}.product-purchase-card>.purchase-check{grid-column:auto;grid-row:auto}.product-detail-actions>*{flex:1;justify-content:center}.product-type-badge,.product-status-badge{top:8px}.product-type-badge{left:8px}.product-status-badge{right:8px}}

/* v0.5.5 – explicit product kind + removable alternatives */
.product-badge-row{display:flex;flex-wrap:wrap;gap:6px}.product-category-chip{display:inline-flex;align-items:center;width:max-content;padding:6px 9px;border-radius:999px;background:#f1f3f2;color:#667169;font-size:8px;font-weight:850}.alt-delete{margin-left:auto;display:inline-flex;align-items:center;gap:4px}.alt-delete svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2}

/* v0.5.6 – richer product-kind badge + fully manageable alternative cards */
.product-type-badge{
  left:12px;top:12px;gap:8px;padding:7px 12px 7px 7px;
  border:1px solid color-mix(in srgb,var(--product-accent) 30%,#fff);
  background:rgba(255,255,255,.96);color:#2f3c34;
  box-shadow:0 7px 18px rgba(39,65,45,.11);
  font-size:9px;font-weight:900;letter-spacing:.01em;
}
.product-type-badge-icon{
  width:25px;height:25px;border-radius:9px;display:grid;place-items:center;
  background:var(--product-soft);color:var(--product-accent);
}
.product-type-badge-icon svg{width:14px;height:14px}
.product-type-badge strong{font-size:9px;color:#2f3c34}
.product-detail-type{padding:7px 11px 7px 7px;gap:8px;box-shadow:0 5px 14px rgba(40,66,46,.055)}
.product-detail-type-icon{width:29px;height:29px;border-radius:10px;display:grid;place-items:center;background:var(--product-soft);color:var(--product-accent)}
.product-detail-type-icon svg{width:16px;height:16px}
.product-detail-type>span:last-child{display:grid;gap:0}
.product-detail-type small{font-size:6.5px;line-height:1.15;text-transform:uppercase;letter-spacing:.09em;color:#8a968e;font-weight:850}
.product-detail-type strong{font-size:10px;color:#344139;line-height:1.25}

.product-alternatives-panel{overflow:visible}
.product-alt-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch}
.product-alt-card{
  display:grid;grid-template-columns:minmax(180px,38%) minmax(0,1fr);min-height:260px;
  padding:0;overflow:hidden;border-radius:22px;background:#fff;border:1px solid #e1e8df;
  box-shadow:0 7px 22px rgba(39,64,45,.055);transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}
.product-alt-card:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(39,64,45,.09)}
.product-alt-card.active-choice{border:2px solid #8edc62;box-shadow:0 11px 28px rgba(88,200,0,.12)}
.product-alt-media{height:auto;min-height:260px;background:linear-gradient(145deg,#f7faf6,#fff);border-right:1px solid #edf1eb;position:relative;display:grid;place-items:center}
.product-alt-media img{width:100%;height:100%;max-height:300px;object-fit:contain;padding:18px}
.active-ribbon,.alternative-ribbon{position:absolute;left:12px;top:12px;display:inline-flex;align-items:center;gap:4px;padding:6px 9px;border-radius:999px;font-size:8px;font-weight:900;box-shadow:0 4px 12px rgba(39,64,45,.07)}
.active-ribbon{background:#eaf9e4;color:#459b2e;border:1px solid #caeebd}
.active-ribbon svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:2.4}
.alternative-ribbon{background:#f4f6f3;color:#77837b;border:1px solid #e4e9e2}
.product-alt-body{padding:18px;display:flex;flex-direction:column;min-width:0}
.product-alt-kicker{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px;color:#7d8981;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.055em}
.product-alt-kicker span:last-child{color:#57a43d;background:#eef8ea;border-radius:999px;padding:4px 7px;text-transform:none;letter-spacing:0}
.product-alt-body h4{margin:0 0 12px;font-size:14px;line-height:1.28;letter-spacing:-.015em;color:#2f3c34;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.product-alt-price-block{display:flex;align-items:end;justify-content:space-between;gap:10px;padding:11px 12px;margin-bottom:11px;border-radius:15px;background:#eff9e9;border:1px solid #dcefd3}
.product-alt-price-block span{font-size:7.5px;text-transform:uppercase;letter-spacing:.09em;color:#58a83b;font-weight:900}
.product-alt-price-block strong{font-size:25px;line-height:1;color:#26332a;letter-spacing:-.04em}
.product-alt-specs{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:14px}
.product-alt-spec{min-width:0;padding:7px 8px;border-radius:10px;background:#f8faf7;border:1px solid #edf1eb;display:grid;gap:1px}
.product-alt-spec span{font-size:7px;color:#8b968f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.product-alt-spec strong{font-size:8px;color:#4a574f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.product-alt-no-specs{grid-column:1/-1;color:#9aa49d;font-size:8px;padding:7px 0}
.alt-actions{margin-top:auto;padding-top:12px;border-top:1px solid #edf1eb;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.alt-actions button,.alt-actions a{min-height:33px}
.alt-select{padding-inline:11px}
.alt-edit{padding-inline:10px}
.alt-edit svg,.alt-select svg,.alt-shop svg{width:12px;height:12px}
.alt-selected-state{display:inline-flex;align-items:center;gap:5px;padding:7px 9px;border-radius:10px;background:#eafaE5;color:#449b2d;font-size:8px;font-weight:900}
.alt-selected-state svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.4}
.alt-delete{margin-left:auto;padding:7px 4px;font-weight:850}
.alt-delete:hover{background:#fff0f0;color:#dc3d3d;border-radius:9px;padding-inline:8px}

@media(max-width:1100px){.product-alt-grid{grid-template-columns:1fr}.product-alt-card{grid-template-columns:minmax(170px,32%) minmax(0,1fr)}}
@media(max-width:650px){.product-alt-card{grid-template-columns:1fr}.product-alt-media{min-height:190px;border-right:0;border-bottom:1px solid #edf1eb}.product-alt-media img{max-height:220px}.product-alt-specs{grid-template-columns:1fr}.alt-actions>*{flex:1;justify-content:center}.alt-delete{margin-left:0}}
