:root{--app-vh:100vh;color:#0f172a;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#f0f2f5;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:clamp(13px,.2vw + 13px,15px);font-weight:400;line-height:1.45}@supports (height:100dvh){:root{--app-vh:100dvh}}*{box-sizing:border-box}html,body,#root{width:100vw;max-width:100vw;height:var(--app-vh);min-height:var(--app-vh);max-height:var(--app-vh);margin:0;overflow:hidden}body{overscroll-behavior:none}#root{display:flex}.app{width:100vw;max-width:100vw;height:var(--app-vh,100dvh);min-height:var(--app-vh,100dvh);max-height:var(--app-vh,100dvh);background:#f5f6f8;flex-direction:column;font-family:system-ui,-apple-system,sans-serif;display:flex;overflow:hidden}.topbar{z-index:10;background:#fff;border-bottom:1px solid #e2e8f0;flex-shrink:0;align-items:center;gap:.5rem;height:clamp(46px,4.2vw,52px);padding:0 clamp(.6rem,1.8vw,1rem);display:flex}.topbar-brand{border-right:1px solid #e2e8f0;flex-shrink:0;margin-right:.25rem;padding-right:1rem}.topbar-title{letter-spacing:.01em;color:#1e293b;text-transform:uppercase;font-size:.82rem;font-weight:700}.topbar-tabs{flex:1;gap:0;min-width:0;display:flex;overflow:auto hidden}.topbar-actions{flex-shrink:0;align-items:center;gap:.5rem;margin-left:.35rem;display:flex}.topbar-menu-item{flex:none;display:flex;position:relative}.topbar-menu-dropdown{z-index:50;background:#fff;border:1px solid #e2e8f0;border-radius:8px;flex-direction:column;gap:.2rem;min-width:150px;padding:.35rem;display:flex;position:absolute;top:calc(100% - 2px);left:0;box-shadow:0 12px 28px #0f172a24}.topbar-menu-option{text-align:left;color:#334155;font:inherit;cursor:pointer;background:0 0;border:0;border-radius:6px;padding:.45rem .55rem;font-size:.82rem}.topbar-menu-option:hover{color:#0f172a;background:#f1f5f9}.topbar-action-tab{background:#f8fbff;border:1px solid #dbe7f3;border-radius:999px;margin-top:0}.topbar-action-tab.active{border-bottom-color:#dbe7f3}.topbar-steps-dropdown{min-width:240px;left:auto;right:0}.topbar-tab{color:#64748b;height:clamp(46px,4.2vw,52px);font:inherit;cursor:pointer;white-space:nowrap;background:0 0;border:none;border-bottom:2px solid #0000;flex:none;padding:0 clamp(.65rem,1.5vw,1rem);font-size:.84rem;transition:color .15s,border-color .15s}.topbar-tab:hover{color:#1e293b}.topbar-tab.active{color:#4f46e5;border-bottom-color:#4f46e5;font-weight:600}.topbar-progress{flex-shrink:0;align-items:center;gap:.5rem;margin-left:.25rem;display:flex}.topbar-progress-bar{background:#e2e8f0;border-radius:999px;width:clamp(90px,9vw,130px);height:6px;overflow:hidden}.topbar-progress-fill{background:#22c55e;border-radius:999px;width:0;height:100%;transition:width .35s}.topbar-progress-fill.progress-0{width:0}.topbar-progress-fill.progress-1{width:8.3333%}.topbar-progress-fill.progress-2{width:16.6667%}.topbar-progress-fill.progress-3{width:25%}.topbar-progress-fill.progress-4{width:33.3333%}.topbar-progress-fill.progress-5{width:41.6667%}.topbar-progress-fill.progress-6{width:50%}.topbar-progress-fill.progress-7{width:58.3333%}.topbar-progress-fill.progress-8{width:66.6667%}.topbar-progress-fill.progress-9{width:75%}.topbar-progress-fill.progress-10{width:83.3333%}.topbar-progress-fill.progress-11{width:91.6667%}.topbar-progress-fill.progress-12{width:100%}.topbar-progress-label{color:#64748b;white-space:nowrap;font-size:.76rem}.topbar-smart-action{white-space:nowrap;text-overflow:ellipsis;max-width:min(22rem,28vw);overflow:hidden}.btn-danger-sm{color:#b91c1c;font:inherit;cursor:pointer;background:#fff;border:1px solid #fca5a5;border-radius:6px;flex-shrink:0;margin-left:.5rem;padding:.25rem .6rem;font-size:.76rem;transition:background .15s}.btn-danger-sm:hover{background:#fef2f2}.workspace{flex:auto;grid-template-columns:minmax(0,1fr);gap:clamp(.55rem,1.2vw,1rem);min-width:0;min-height:0;padding:clamp(.5rem,1.1vw,.95rem);display:grid;overflow:hidden}.sidebar{background:#fff;border:1px solid #e2e8f0;border-radius:12px;flex-direction:column;min-width:0;min-height:0;display:flex;overflow:hidden}.sidebar-content{flex-direction:column;flex:1;gap:.6rem;min-height:0;padding:.85rem;display:flex;overflow-y:auto}.sidebar-section{border-bottom:1px solid #f1f5f9;padding-bottom:.6rem}.sidebar-section:last-child{border-bottom:none}.welcome-section{padding-top:0}.sidebar-title{text-transform:uppercase;color:#64748b;letter-spacing:.02em;margin:0 0 .35rem;font-size:.75rem;font-weight:700}.sidebar-welcome{color:#1e293b;margin:0;font-size:.9rem;font-weight:600}.sidebar-gratitude{color:#475569;margin:.3rem 0 0;font-size:.8rem;font-style:italic;line-height:1.4}.first-time-banner{color:#78350f;background:#fef3c7;border:1px solid #fcd34d;border-radius:6px;margin-top:.5rem;padding:.6rem;font-size:.78rem;font-weight:600;line-height:1.4}.first-time-banner p{margin:0}.momentum-display{background:linear-gradient(135deg,#f0fdf4 0%,#dcfce7 100%);border:2px solid #16a34a;border-radius:10px;flex-direction:column;align-items:center;padding:.75rem;display:flex;box-shadow:0 2px 8px #16a34a26}.momentum-score{color:#16a34a;font-size:2.4rem;font-weight:800;line-height:1}.momentum-label{color:#15803d;text-transform:uppercase;letter-spacing:.05em;margin-top:.3rem;font-size:.7rem;font-weight:600}.risk-display{text-align:center;border-radius:8px;padding:.6rem;font-size:.9rem;font-weight:600}.btn-smart-action{color:#fff;cursor:pointer;background:#4f46e5;border:none;border-radius:6px;width:100%;margin-bottom:.35rem;padding:.55rem;font-size:.8rem;font-weight:600;transition:background .15s}.main-stage{background:#fff;border:1px solid #e2e8f0;border-radius:12px;flex-direction:column;flex:auto;min-width:0;height:100%;min-height:0;display:flex;overflow:hidden}.toast-stack{z-index:60;flex-direction:column;gap:.45rem;width:min(22rem,100vw - 1.2rem);display:flex;position:fixed;bottom:.9rem;right:.9rem}.toast-stack.inline{z-index:auto;width:100%;position:static;bottom:auto;right:auto}.toast-launcher{color:#1e293b;font:inherit;cursor:pointer;background:#fff;border:1px solid #dbe3ef;border-radius:999px;justify-content:center;align-self:flex-end;align-items:center;gap:.45rem;padding:.45rem .7rem;font-size:.78rem;font-weight:700;display:inline-flex;box-shadow:0 8px 24px #0f172a29}.toast-stack.inline .toast-launcher{width:100%;box-shadow:none;border-radius:10px;justify-content:space-between;align-self:stretch}.toast-launcher:hover{background:#f8fafc}.toast-list{flex-direction:column;gap:.45rem;display:flex}.toast-card{background:#fff;border:1px solid #dbe3ef;border-radius:10px;padding:.55rem;box-shadow:0 8px 24px #0f172a24}.toast-card.warning{border-left:4px solid #d97706}.toast-card.error{border-left:4px solid #dc2626}.toast-card.info{border-left:4px solid #2563eb}.toast-card.next{border-left:4px solid #16a34a}.toast-head{align-items:center;gap:.45rem;display:flex}.toast-title{text-transform:uppercase;letter-spacing:.06em;color:#334155;flex:1;margin:0;font-size:.76rem;font-weight:800}.toast-dismiss{color:#64748b;font:inherit;cursor:pointer;background:0 0;border:none;padding:0 .15rem;font-size:1rem;line-height:1}.toast-dismiss:hover{color:#0f172a}.toast-body{gap:.24rem;margin-top:.35rem;display:grid}.toast-label{color:#0f172a;margin:0;font-size:.82rem;font-weight:600}.toast-detail{color:#64748b;margin:0;font-size:.76rem}.toast-action{color:#1d4ed8;font:inherit;cursor:pointer;background:#eff6ff;border:1px solid #bfdbfe;border-radius:7px;justify-self:start;padding:.2rem .55rem;font-size:.76rem;font-weight:700}.toast-action:hover{background:#dbeafe}.toast-empty{border-left:4px solid #94a3b8}.toast-link{color:#2563eb;font:inherit;cursor:pointer;background:0 0;border:none;margin-top:.25rem;padding:0;font-size:.76rem;font-weight:600}.toast-link:hover{color:#1d4ed8}.notification-bell-wrap{justify-content:center;align-items:center;width:1.8rem;height:1.8rem;display:inline-flex;position:relative}.notification-bell-icon{width:1.2rem;height:1.2rem}.notification-badge{color:#fff;background:#0f172a;border:1px solid #fff;border-radius:999px;justify-content:center;align-items:center;min-width:1rem;height:1rem;padding:0 .2rem;font-size:.65rem;font-weight:800;line-height:1;display:inline-flex;position:absolute;top:-.25rem;right:-.35rem}.notification-label{text-transform:uppercase;letter-spacing:.06em;text-align:center;font-size:.76rem;font-weight:700}.notification-empty{color:#64748b;margin:0;font-size:.8rem}.notification-action-list{flex-direction:column;gap:.35rem;display:flex}.notification-action{text-align:left;font:inherit;cursor:pointer;background:#fff;border:1px solid #dbe3ef;border-radius:7px;flex-direction:column;gap:.15rem;padding:.45rem .5rem;display:flex}.notification-action-label{color:#0f172a;font-size:.8rem;font-weight:600}.notification-action-detail{color:#64748b;font-size:.76rem}.body{flex-direction:column;flex:auto;min-width:0;height:100%;min-height:0;display:flex;overflow:hidden}.steps-switcher{z-index:12;padding:.55rem .7rem 0;position:relative}.steps-switcher-trigger{color:#1e293b;font:inherit;cursor:pointer;background:#fff;border:1px solid #dbe3ef;border-radius:8px;padding:.45rem .7rem;font-size:.82rem;font-weight:600}.steps-switcher-trigger:hover{background:#f8fafc}.steps-switcher-dropdown{background:#fff;border:1px solid #e2e8f0;border-radius:10px;width:260px;max-height:65vh;position:absolute;top:calc(100% + .25rem);left:.7rem;overflow:hidden;box-shadow:0 14px 32px #0f172a29}.steps-switcher-dropdown .steps-nav{border-right:none;width:100%;min-width:0;padding:.45rem}.steps-nav{background:#fff;border-right:1px solid #e2e8f0;flex-direction:column;gap:2px;width:clamp(165px,18vw,210px);min-width:clamp(165px,18vw,210px);padding:.55rem;display:flex;overflow-y:auto}.step-tab{cursor:pointer;text-align:left;font:inherit;color:#475569;background:0 0;border:1px solid #0000;border-radius:6px;justify-content:space-between;align-items:center;gap:.4rem;padding:.45rem .55rem;font-size:.8rem;transition:background .1s;display:flex}.step-tab:hover{background:#f8fafc}.step-tab.selected{color:#1d4ed8;background:#eff6ff;border-color:#bfdbfe}.step-tab.done{color:#166534}.step-tab.locked{color:#94a3b8;cursor:not-allowed;opacity:.8}.step-tab.locked:hover{background:0 0}.step-tab-number{flex-shrink:0;font-weight:600}.step-tab-badge{white-space:nowrap;border-radius:999px;flex-shrink:0;padding:.1rem .3rem;font-size:.66rem;font-weight:700}.step-tab-badge.done{color:#166534;background:#dcfce7}.step-tab-badge.active{color:#1d4ed8;background:#dbeafe}.step-tab-badge.locked{color:#64748b;background:#e2e8f0}.step-panel{overscroll-behavior:contain;flex-direction:column;flex:auto;gap:clamp(.9rem,1.5vw,1.2rem);min-width:0;min-height:0;max-height:100%;padding:clamp(.8rem,1.5vw,1.25rem) clamp(.85rem,2vw,1.5rem);display:flex;overflow-y:auto}.work-section{background:#fff;border:1px solid #e2e8f0;border-radius:10px;flex-direction:column;gap:clamp(.8rem,1.4vw,1.1rem);padding:clamp(.85rem,1.8vw,1.2rem);display:flex}.work-grid{flex-direction:column;gap:.65rem;display:flex}.inventory-workflow-note{color:#4c1d95;background:linear-gradient(135deg,#eef2ff 0%,#fff7ed 100%);border:1px solid #ddd6fe;border-radius:10px;margin:0 0 .65rem;padding:.55rem .7rem;font-size:.8rem;font-weight:600}.work-grid-table{flex-direction:column;gap:.75rem;display:flex}.work-divider{border-top:1px solid #e2e8f0;padding-top:.9rem}.step-footer-end{justify-content:flex-end}.step-position{align-items:center;gap:.75rem;display:flex}.step-position-track{gap:4px;display:flex}.step-position-dot{background:#e2e8f0;border-radius:50%;flex-shrink:0;width:8px;height:8px}.step-position-dot.past{background:#22c55e}.step-position-dot.current{background:#4f46e5;box-shadow:0 0 0 2px #c7d2fe}.step-position-label{color:#94a3b8;font-size:.74rem}.step-header{border-bottom:1px solid #e2e8f0;padding-bottom:.85rem}.step-header-copy{min-width:0}.step-number-row{align-items:center;gap:.55rem;margin-bottom:.2rem;display:inline-flex}.step-complete-toggle{color:#334155;white-space:nowrap;-webkit-user-select:none;user-select:none;align-items:center;gap:0;font-size:.74rem;font-weight:700;display:inline-flex}.step-complete-toggle input{accent-color:#22c55e;width:.95rem;height:.95rem;margin:0}.step-number{text-transform:uppercase;letter-spacing:.12em;color:#4f46e5;margin:0;font-size:.7rem;font-weight:800}.step-title{color:#0f172a;margin:0;font-size:1rem;font-style:italic;line-height:1.55}.step-header-meta{flex-wrap:wrap;gap:.45rem;margin-top:.65rem;display:flex}.step-status-pill,.step-meta-pill{border-radius:999px;align-items:center;padding:.2rem .55rem;font-size:.72rem;font-weight:800;display:inline-flex}.step-status-pill{color:#475569;background:#f1f5f9}.step-status-pill.active{color:#0369a1;background:#e0f2fe}.step-status-pill.complete{color:#166534;background:#dcfce7}.step-meta-pill{color:#4338ca;background:#eef2ff}.step-section{flex-direction:column;gap:.65rem;display:flex}.section-label{text-transform:uppercase;letter-spacing:.12em;color:#94a3b8;margin:0;font-size:.68rem;font-weight:800}.section-label-row{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:.6rem;margin-bottom:.6rem;display:flex}.section-supporting-copy{color:#64748b;max-width:44rem;margin:.28rem 0 0;font-size:.78rem;line-height:1.5}.step-response-sets{flex-direction:column;gap:.85rem;display:flex}.step-response-set{background:#fff;border:1px solid #dbe3ef;border-radius:12px;padding:.8rem;box-shadow:0 8px 18px #0f172a0a}.step-response-set.expanded{border-color:#c7d2fe}.step-response-set-header{text-align:left;cursor:pointer;background:0 0;border:0;border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;gap:.75rem;width:100%;margin:0 0 .75rem;padding:0 0 .7rem;display:flex}.step-response-set-heading{flex-direction:column;gap:.18rem;min-width:0;display:flex}.step-response-set-title{letter-spacing:.1em;text-transform:uppercase;color:#334155;font-size:.7rem;font-weight:800}.step-response-set-meta{color:#64748b;font-size:.8rem}.step-response-set-toggle{color:#4f46e5;font-size:.78rem;font-weight:700}.step-response-set-body{flex-direction:column;gap:.85rem;display:flex}.step-response-set-info{flex-wrap:wrap;gap:.55rem;display:flex}.step-response-set-chip{background:linear-gradient(135deg,#eef2ff 0%,#f5f3ff 100%);border:1px solid #d8dafe;border-radius:999px;align-items:center;gap:.35rem;padding:.32rem .55rem;display:inline-flex}.step-response-set-chip span{color:#6b7280;font-size:.7rem;font-weight:700}.step-response-set-chip strong{color:#4338ca;font-size:.76rem}.action-prompt{color:#475569;margin:0;font-size:.85rem;line-height:1.5}.step-section-dual{grid-template-columns:1fr 1fr;gap:1.2rem;display:grid}.action-plan-column,.closure-column{flex-direction:column;gap:.65rem;display:flex}.closure-card{flex-direction:column;flex:1;justify-content:center;display:flex}.step-footer{border-top:1px solid #e2e8f0;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.6rem;padding-top:.85rem;display:flex}.step-nav-buttons{gap:.4rem;display:flex}.btn-nav{color:#475569;font:inherit;cursor:pointer;background:#f8fafc;border:1px solid #e2e8f0;border-radius:7px;padding:.35rem .8rem;font-size:.82rem;transition:background .12s}.btn-nav:hover:not(:disabled){background:#f1f5f9}.btn-nav:disabled{opacity:.35;cursor:default}.btn-nav.primary{color:#fff;background:#4f46e5;border-color:#4f46e5}.btn-nav.primary:hover:not(:disabled){background:#4338ca}.ui-icon{vertical-align:text-bottom;flex-shrink:0;width:.92rem;height:.92rem;display:inline-block}.field{flex-direction:column;gap:.25rem;display:flex}.field>span,.field>label{color:#374151;font-size:.8rem;font-weight:600}input,select,textarea{width:100%;font:inherit;color:#111827;resize:vertical;box-sizing:border-box;background:#fff;border:1px solid #d1d5db;border-radius:6px;padding:.4rem .55rem;font-size:.84rem}input:focus,textarea:focus{outline-offset:1px;border-color:#0000;outline:2px solid #4f46e5}.complete-toggle{color:#166534;cursor:pointer;align-items:center;gap:.4rem;font-size:.82rem;font-weight:600;display:flex}.complete-toggle input[type=checkbox]{accent-color:#16a34a;cursor:pointer;width:auto}.inv-wrap{background:#fff;border:1px solid #e2e8f0;border-radius:8px;overflow:hidden}.inv-header{background:#f8fafc;border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;padding:.5rem .75rem;display:flex}.inv-title{color:#1e293b;margin:0;font-size:.8rem;font-weight:700}.btn-add-row{color:#1d4ed8;font:inherit;cursor:pointer;background:#eff6ff;border:1px solid #93c5fd;border-radius:6px;padding:.22rem .6rem;font-size:.76rem;font-weight:600;transition:background .12s}.btn-add-row:hover{background:#dbeafe}.inv-table-scroll{overflow-x:auto}.inv-table{border-collapse:collapse;table-layout:fixed;width:100%;min-width:980px;font-size:.82rem}.inv-col-num{width:42px}.inv-col-standard{width:18%}.inv-col-wide{width:24%}.inv-col-actions{width:240px}.inv-col-del{width:38px}.inv-th{text-align:left;color:#64748b;white-space:nowrap;background:#f1f5f9;border-bottom:2px solid #e2e8f0;border-right:1px solid #e2e8f0;padding:.35rem .6rem;font-size:.74rem;font-weight:700}.inv-th:last-child{border-right:none}.inv-th.wide{min-width:200px}.inv-th-num{text-align:center;color:#94a3b8;width:34px}.inv-th-actions{min-width:220px}.inv-th-del{width:32px}.inv-row:nth-child(2n) td{background:#fafbfc}.inv-td{vertical-align:top;border-bottom:1px solid #e2e8f0;border-right:1px solid #e2e8f0;padding:.15rem .25rem}.inv-td.wide,.inv-th.wide{min-width:0}.inv-td:last-child{border-right:none}.inv-td-num{text-align:center;color:#94a3b8;vertical-align:middle;padding:.35rem .3rem;font-size:.74rem}.inv-td-actions{background:#f8faffd9}.inv-td-del{vertical-align:middle;text-align:center;padding:.2rem}.inv-cell-input{width:100%;min-width:0;font:inherit;resize:vertical;box-sizing:border-box;background:0 0;border:none;border-radius:3px;padding:.3rem .4rem;font-size:.8rem;line-height:1.45;display:block}.inv-cell-input:focus{background:#fff;border-radius:3px;outline:2px solid #818cf8}.inv-empty{text-align:center;color:#94a3b8;padding:1.2rem;font-size:.82rem;font-style:italic}.btn-remove-row{color:#cbd5e1;cursor:pointer;background:0 0;border:none;border-radius:4px;padding:.2rem .35rem;font-size:.8rem;line-height:1;transition:color .1s,background .1s}.btn-remove-row:hover{color:#ef4444;background:#fee2e2}.inv-actions-stack{flex-direction:column;gap:.45rem;display:flex}.btn-expand-actions{cursor:pointer;color:#4338ca;background:linear-gradient(135deg,#e0e7ff 0%,#ede9fe 100%);border:1px solid #c7d2fe;border-radius:8px;align-items:center;gap:.3rem;padding:.35rem .55rem;font-size:.75rem;font-weight:700;display:inline-flex}.inv-actions-count{margin-left:.2rem}.inv-actions-panel{border-top:1px solid #e2e8f0;flex-direction:column;gap:.55rem;padding-top:.55rem;display:flex}.inv-action-card{background:linear-gradient(#fff 0%,#f9fbff 100%);border:1px solid #dbe3ef;border-radius:10px;flex-direction:column;gap:.45rem;padding:.55rem;display:flex}.inv-action-card-top{justify-content:space-between;align-items:center;gap:.4rem;display:flex}.inv-action-serial{letter-spacing:.08em;color:#5b5bd6;font-size:.7rem;font-weight:800}.inv-action-remove{color:#dc2626;cursor:pointer;background:#fff1f2;border:1px solid #fecdd3;border-radius:6px;padding:.25rem .4rem}.inv-action-meta-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem;display:grid}.inv-action-textarea{min-height:44px}.btn-add-action{cursor:pointer;color:#15803d;background:linear-gradient(135deg,#ecfdf5 0%,#dcfce7 100%);border:1px solid #bbf7d0;border-radius:8px;padding:.38rem .55rem;font-size:.75rem;font-weight:700}.inventory-summary-card{background:linear-gradient(#fffdfc 0%,#fef7ff 52%,#f0fdfb 100%);border:1px solid #edd5ff;width:100%;max-width:none}.inventory-summary-groups{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:1rem;display:grid}.inventory-step-card{background:linear-gradient(135deg,#fff 0%,#faf5ff 48%,#f0fdfa 100%);border:1px solid #d8b4fe;border-radius:16px;padding:.95rem;box-shadow:0 8px 24px #6d28d914}.inventory-step-heading{flex-direction:column;gap:.3rem;margin-bottom:.8rem;display:flex}.inventory-step-heading h4{color:#581c87;margin:0;font-size:.98rem}.inventory-step-badge{color:#7c3aed;background:linear-gradient(135deg,#ede9fe 0%,#fae8ff 100%);border-radius:999px;align-items:center;width:fit-content;padding:.18rem .5rem;font-size:.72rem;font-weight:800;display:inline-flex}.inventory-step-tables{flex-direction:column;gap:.8rem;display:flex}.inventory-table-summary{background:#fff;border:1px solid #e9d5ff;border-radius:14px;overflow:hidden}.inventory-table-summary-head{background:linear-gradient(135deg,#f5d0fe 0%,#ede9fe 45%,#ccfbf1 100%);border-bottom:1px solid #e9d5ff;justify-content:space-between;align-items:center;gap:.5rem;padding:.7rem .85rem;display:flex}.inventory-table-summary-head h5{color:#4a044e;margin:0;font-size:.84rem}.inventory-table-summary-head span{color:#6b21a8;font-size:.75rem;font-weight:700}.inventory-summary-empty{color:#6b7280;background:#fdf4ff;margin:0;padding:.85rem}.inventory-summary-lines{flex-direction:column;display:flex}.inventory-summary-line{background:linear-gradient(#fff 0%,#fdfaff 100%);border-top:1px solid #f3e8ff;flex-direction:column;gap:.6rem;padding:.8rem .85rem;display:flex}.inventory-summary-line:first-child{border-top:0}.inventory-summary-line-title-wrap{flex-wrap:wrap;align-items:center;gap:.4rem;display:flex}.inventory-summary-line-title-wrap strong{color:#1f2937}.inventory-summary-line-index{color:#7c3aed;font-size:.72rem;font-weight:800}.inventory-summary-link{color:#047857;background:linear-gradient(135deg,#dcfce7 0%,#ccfbf1 100%);border-radius:999px;align-items:center;padding:.16rem .45rem;font-size:.7rem;font-weight:700;display:inline-flex}.inventory-summary-line-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.5rem .65rem;display:grid}.inventory-summary-field{background:linear-gradient(135deg,#faf5ff 0%,#eff6ff 100%);border:1px solid #e9d5ff;border-radius:10px;padding:.45rem .55rem}.inventory-summary-field span{color:#7c3aed;margin-bottom:.12rem;font-size:.7rem;font-weight:700;display:block}.inventory-summary-field p{color:#17324d;margin:0}.inventory-summary-toolbar{flex-wrap:wrap;gap:.5rem;display:flex}.inventory-summary-stat{color:#4338ca;background:#eef2ff;border-radius:999px;align-items:center;padding:.2rem .55rem;font-size:.74rem;font-weight:800;display:inline-flex}.inventory-summary-stat.open{color:#c2410c;background:#fff7ed}.inventory-summary-stat.closed{color:#15803d;background:#ecfdf5}.inventory-summary-actions{flex-direction:column;gap:.55rem;display:flex}.inventory-summary-actions-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem;display:flex}.inventory-summary-actions-head strong{color:#4c1d95;font-size:.78rem}.inventory-summary-actions-tools{flex-wrap:wrap;gap:.4rem;display:inline-flex}.inventory-summary-no-actions{color:#6b21a8;background:#faf5ff;border:1px dashed #d8b4fe;border-radius:10px;margin:0;padding:.55rem .65rem;font-size:.78rem}.inventory-summary-action-card{background:linear-gradient(135deg,#eef2ff 0%,#fff7ed 52%,#ecfeff 100%);border:1px solid #dbeafe;border-radius:12px;flex-direction:column;gap:.55rem;padding:.65rem;display:flex}.inventory-summary-action-head{flex-wrap:wrap;align-items:center;gap:.45rem;display:flex}.inventory-summary-action-id{color:#6d28d9;font-weight:800}.inventory-summary-action-state{border-radius:999px;align-items:center;padding:.14rem .45rem;font-size:.72rem;font-weight:800;display:inline-flex}.inventory-summary-action-state.open{color:#c2410c;background:#fff7ed}.inventory-summary-action-state.closed{color:#166534;background:#dcfce7}.inventory-summary-remove-btn{margin-left:auto}.inventory-summary-action-grid{grid-template-columns:180px minmax(0,1fr);gap:.55rem .7rem;display:grid}.journal-page{overscroll-behavior:contain;flex:auto;justify-content:center;align-items:stretch;min-width:0;min-height:0;max-height:100%;padding:clamp(.7rem,2vw,1.35rem);display:flex;overflow-y:auto}.journal-card{background:#fff;border:1px solid #e2e8f0;border-radius:10px;flex-direction:column;align-self:stretch;gap:.9rem;width:min(100%,1280px);max-width:100%;margin:0 auto;padding:clamp(.9rem,2vw,1.4rem);display:flex}.journal-card h3{text-transform:uppercase;letter-spacing:.1em;color:#4f46e5;margin:0;font-size:.78rem;font-weight:800}.journal-meta{color:#64748b;margin:0;font-size:.78rem}.journal-actions{flex-wrap:wrap;gap:.5rem;display:flex}.btn-icon-action{color:#334155;cursor:pointer;background:#fff;border:1px solid #dbe3ef;border-radius:8px;justify-content:center;align-items:center;width:2rem;height:2rem;transition:transform .12s,box-shadow .12s,background .12s;display:inline-flex}.btn-icon-action:hover{background:#f8fafc;transform:translateY(-1px);box-shadow:0 4px 12px #0f172a1f}.btn-icon-action.danger{color:#b91c1c;background:#fff5f5;border-color:#fecaca}.btn-icon-action.danger:hover{background:#fee2e2}.profile-demo-btn{color:#0f5132;background:#f0fdf4;border-color:#86efac;gap:.38rem;width:auto;min-width:7.25rem;padding:0 .6rem;font-size:.72rem;font-weight:700}.profile-demo-btn:hover{background:#dcfce7}.visually-hidden{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.journal-subtitle{text-transform:uppercase;color:#334155;margin:0;font-size:.76rem;font-weight:700}.journal-empty{color:#94a3b8;margin:0;font-size:.8rem;font-style:italic}.entry-list{flex-direction:column;gap:.5rem;display:flex}.entry-row{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;justify-content:space-between;align-items:center;gap:.5rem;padding:.5rem .6rem;display:flex}.entry-grid,.field-full-width,.field-span-full,.entry-footer-actions{width:100%}.field-span-full{grid-column:1/-1}.entry-footer-actions{justify-content:space-between}.entry-title{color:#1e293b;margin:0;font-size:.8rem;font-weight:700}.entry-copy{color:#64748b;margin:.15rem 0 0;font-size:.76rem}.entry-actions{align-items:center;gap:.4rem;display:flex}.grid.two-col{grid-template-columns:1fr 1fr;gap:.75rem;display:grid}.profile-card,.profile-simple-page{gap:1rem}.profile-hero{background:linear-gradient(135deg,#eef2ff 0%,#f5f3ff 52%,#ecfeff 100%);border:1px solid #d8dafe;border-radius:14px;justify-content:space-between;align-items:center;gap:.85rem;padding:.85rem .95rem;display:flex}.profile-active-summary{flex-wrap:wrap;justify-content:flex-end;gap:.45rem;display:inline-flex}.profile-active-pill,.profile-sobriety-pill{border-radius:999px;align-items:center;padding:.24rem .55rem;font-size:.74rem;font-weight:800;display:inline-flex}.profile-active-pill{color:#4338ca;background:#fff;border:1px solid #c7d2fe}.profile-sobriety-pill{color:#15803d;background:#ecfdf5;border:1px solid #bbf7d0}.profile-process-note{color:#9a3412;background:linear-gradient(135deg,#fff7ed 0%,#fff1f2 100%);border:1px solid #fed7aa;border-radius:12px;margin:0;padding:.65rem .8rem;font-size:.8rem}.profile-access-card{background:linear-gradient(#fff 0%,#f8fbff 100%);border:1px solid #dbeafe;border-radius:14px;flex-direction:column;gap:.8rem;padding:.95rem;display:flex}.profile-access-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;display:grid}.profile-action-row{align-items:center;gap:.5rem;margin-top:.1rem;display:flex}.profile-action-row.wrap{flex-wrap:wrap}.profile-action-row .btn-danger-sm{margin-left:0}.profile-inline-note{color:#64748b;margin:0;font-size:.76rem}.profile-status-banner{color:#1d4ed8;background:#eff6ff;border:1px solid #bfdbfe;border-radius:10px;margin:0;padding:.65rem .75rem;font-size:.8rem;font-weight:600}.profile-span-all{grid-column:1/-1}.profile-details-layout{grid-template-columns:minmax(0,1.45fr) minmax(300px,.95fr);align-items:start;gap:.9rem;display:grid}.profile-side-panel{min-height:100%}@media (width<=980px){.profile-access-grid,.profile-details-layout{grid-template-columns:1fr}.profile-hero{flex-direction:column;align-items:flex-start}}.profile-manager{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:.8rem}.focus-block{border:1px solid #e2e8f0;border-radius:10px;padding:.85rem}.focus-block.required{background:#fffbeb;border-color:#fbbf24}.focus-block.optional{background:#f8fafc;border-color:#e2e8f0}.profile-section-title{text-transform:uppercase;letter-spacing:.08em;color:#334155;margin:0;font-size:.76rem}.profile-focus-copy{color:#475569;margin:.35rem 0 .7rem;font-size:.8rem}.profile-sobriety-note{color:#166534;margin:0;font-size:.8rem;font-weight:600}.history-checkins-list{margin-bottom:.75rem}.history-total-visits{color:#64748b;margin:0 0 .85rem;font-size:.82rem}.history-empty-state{color:#94a3b8;margin:0;font-size:.82rem;font-style:italic}.history-date-group{border-bottom:1px solid #e2e8f0;margin-bottom:1rem;padding-bottom:.8rem}.history-date-label{color:#475569;margin:0 0 .5rem;font-size:.76rem;font-weight:600}.history-visit-list{flex-direction:column;gap:.35rem;display:flex}.history-visit-row{background:#f8fafc;border-radius:4px;justify-content:space-between;align-items:center;padding:.3rem .4rem;font-size:.8rem;display:flex}.history-visit-action{align-items:center;gap:.25rem;display:inline-flex}.history-visit-action.action-select{color:#64748b}.history-visit-action.action-complete{color:#16a34a}.history-visit-action.action-uncomplete{color:#ca8a04}.history-visit-time{color:#94a3b8;font-size:.75rem}.action-controls{background:#f8fafc;border-radius:8px;flex-wrap:wrap;align-items:center;gap:.75rem;margin-bottom:1.2rem;padding:.85rem;display:flex}.action-filter-group{align-items:center;gap:.4rem;display:flex}.filter-label{color:#475569;white-space:nowrap;font-size:.78rem;font-weight:600}.filter-select,.filter-search{color:#334155;font-size:.8rem;font:inherit;background:#fff;border:1px solid #e2e8f0;border-radius:6px;padding:.35rem .6rem}.filter-select:focus,.filter-search:focus{border-color:#4f46e5;outline:none;box-shadow:0 0 0 2px #4f46e51a}.action-list{flex-direction:column;gap:1rem;display:flex}.action-row{background:#fff;border:1px solid #e2e8f0;border-left-width:4px;border-radius:8px;flex-direction:column;gap:.75rem;padding:1rem;display:flex}.action-row:hover{box-shadow:0 2px 8px #00000014}.action-row--pending{border-left-color:#ca8a04}.action-row--in-progress{border-left-color:#2563eb}.action-row--resolved{border-left-color:#16a34a}.action-header{flex-direction:column;gap:.5rem;display:flex}.action-serial-status{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.action-serial{color:#4f46e5;background:#f0f4ff;border-radius:4px;padding:.2rem .5rem;font-size:.82rem;font-weight:700}.action-status{text-transform:uppercase;letter-spacing:.05em;border-radius:4px;padding:.2rem .5rem;font-size:.72rem;font-weight:600}.action-status-pending{color:#78350f;background:#fef3c7}.action-status-in-progress{color:#1e40af;background:#dbeafe}.action-status-resolved{color:#166534;background:#dcfce7}.action-overdue{color:#dc2626;background:#fee2e2;border-radius:4px;padding:.2rem .5rem;font-size:.72rem;font-weight:700}.action-title{color:#1e293b;margin:0;font-size:.95rem;font-weight:700}.action-description{color:#475569;margin:0;font-size:.85rem;line-height:1.5}.action-dates{background:#f8fafc;border-radius:6px;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:.75rem;padding:.75rem;display:grid}.action-date-item{justify-content:space-between;gap:.5rem;display:flex}.action-date-label{color:#64748b;text-transform:uppercase;letter-spacing:.03em;font-size:.75rem;font-weight:600}.action-date-value{color:#1e293b;font-size:.8rem;font-weight:600}.action-date-value.overdue{color:#dc2626;font-weight:700}.action-date-value.resolved{color:#16a34a;font-weight:700}.action-comment{color:#78350f;background:#fffbeb;border-left:3px solid #fcd34d;border-radius:4px;margin:0;padding:.6rem;font-size:.8rem;line-height:1.5}.action-row-actions{align-items:center;gap:.4rem;display:flex}.action-form-container{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;margin-top:1.2rem;padding:1rem}.action-form-meta{margin-top:1rem}.action-input-disabled{opacity:.7}#action-required-fields{grid-template-columns:1fr 1fr;gap:.75rem;margin-bottom:1rem;display:grid}.an-page{background:#fff;border:1px solid #e2e8f0;border-radius:14px;flex-direction:column;align-self:stretch;gap:0;width:min(100%,1280px);max-width:100%;margin:0 auto;display:flex;overflow:hidden}.an-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 1.25rem 0;display:flex}.an-header-info{flex-direction:column;gap:.3rem;display:flex}.an-title{color:#0f172a;letter-spacing:-.01em;margin:0;font-size:1.05rem;font-weight:800}.an-subtitle{flex-wrap:wrap;gap:.35rem;margin:0;display:flex}.an-pill{border-radius:999px;padding:.15rem .55rem;font-size:.72rem;font-weight:700}.an-pill.sober{color:#3730a3;background:#eef2ff}.an-pill.steps{color:#15803d;background:#f0fdf4}.an-pill.entries{color:#475569;background:#f8fafc}.an-tabbar{border-bottom:none;gap:.15rem;display:flex}.an-tab{color:#64748b;font:inherit;cursor:pointer;background:0 0;border:none;border-bottom:2px solid #0000;border-radius:8px 8px 0 0;align-items:center;gap:.35rem;padding:.45rem .75rem;font-size:.8rem;font-weight:600;transition:color .15s,border-color .15s,background .15s;display:inline-flex}.an-tab svg{flex-shrink:0}.an-tab:hover{color:#334155;background:#f8fafc}.an-tab.active{color:#4f46e5;background:#f8faff;border-bottom-color:#4f46e5}.an-panel{flex-direction:column;gap:1rem;padding:1.1rem 1.25rem 1.25rem;display:flex}.an-section-label{text-transform:uppercase;letter-spacing:.06em;color:#94a3b8;margin:0;font-size:.75rem;font-weight:800}.an-kpi-row{grid-template-columns:repeat(4,minmax(0,1fr));gap:.65rem;display:grid}.an-kpi{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;align-items:center;gap:.65rem;padding:.75rem .85rem;display:flex}.an-kpi-icon{border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:2rem;height:2rem;display:flex}.an-kpi--sober .an-kpi-icon{color:#4f46e5;background:#eef2ff}.an-kpi--steps .an-kpi-icon{color:#16a34a;background:#f0fdf4}.an-kpi--checkins .an-kpi-icon{color:#ea580c;background:#fff7ed}.an-kpi--reviews .an-kpi-icon{color:#ca8a04;background:#fef9c3}.an-kpi-body{flex-direction:column;min-width:0;display:flex}.an-kpi-value{color:#0f172a;font-size:1.35rem;font-weight:800;line-height:1}.an-kpi-label{color:#475569;margin-top:.15rem;font-size:.74rem;font-weight:600}.an-kpi-sub{color:#94a3b8;margin-top:.1rem;font-size:.7rem}.an-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem;display:grid}.an-metric{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;flex-direction:column;gap:.5rem;padding:.75rem .85rem;display:flex}.an-metric-head{align-items:center;gap:.45rem;display:flex}.an-metric-icon{border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;width:1.6rem;height:1.6rem;display:flex}.an-metric-icon.mood{color:#4f46e5;background:#eef2ff}.an-metric-icon.craving{color:#ea580c;background:#fff7ed}.an-metric-icon.meeting{color:#16a34a;background:#f0fdf4}.an-metric-icon.stepwork{color:#ca8a04;background:#fef9c3}.an-metric-name{color:#334155;flex:1;font-size:.78rem;font-weight:700}.an-metric-badge{color:#1e293b;background:#e2e8f0;border-radius:999px;padding:.15rem .45rem;font-size:.73rem;font-weight:700}.an-bar-track{background:#e2e8f0;border-radius:999px;width:100%;height:7px;overflow:hidden}.an-bar{border-radius:999px;height:100%;transition:width .4s}.an-bar.mood{background:#4f46e5}.an-bar.craving{background:#f97316}.an-bar.craving.is-low{background:#16a34a}.an-bar.craving.is-medium{background:#f97316}.an-bar.craving.is-high{background:#dc2626}.an-w-0{width:0%}.an-w-10{width:10%}.an-w-20{width:20%}.an-w-30{width:30%}.an-w-40{width:40%}.an-w-50{width:50%}.an-w-60{width:60%}.an-w-70{width:70%}.an-w-80{width:80%}.an-w-90{width:90%}.an-w-100{width:100%}.an-metric-foot{color:#94a3b8;font-size:.72rem;font-weight:600}.an-metric-status{color:#ca8a04;align-items:center;gap:.3rem;font-size:.78rem;font-weight:700;display:inline-flex}.an-metric-status[data-good=true]{color:#16a34a}.an-toolbar{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;flex-wrap:wrap;align-items:center;gap:.65rem;padding:.6rem .85rem;display:flex}.an-toolbar-group{align-items:center;gap:.35rem;display:inline-flex}.an-toolbar-label{text-transform:uppercase;letter-spacing:.05em;color:#94a3b8;padding-right:.2rem;font-size:.71rem;font-weight:800}.an-chip{color:#475569;font:inherit;cursor:pointer;background:#fff;border:1px solid #dbe3ef;border-radius:999px;align-items:center;gap:.3rem;padding:.25rem .6rem;font-size:.75rem;font-weight:700;transition:background .12s,border-color .12s,color .12s;display:inline-flex}.an-chip svg{flex-shrink:0}.an-chip:hover{background:#f1f5f9;border-color:#cbd5e1}.an-graph-wrap{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:.75rem}.an-legend{align-items:center;gap:.9rem;margin-bottom:.5rem;display:flex}.an-legend-item{color:#475569;align-items:center;gap:.35rem;font-size:.74rem;font-weight:700;display:inline-flex}.an-legend-dot{border-radius:999px;width:10px;height:10px;display:inline-block}.an-legend-dot.mood{background:#4f46e5}.an-legend-dot.craving{background:#f97316}.an-graph{width:100%;height:auto;display:block}.an-grid-line{stroke:#dbeafe;stroke-width:1px;stroke-dasharray:4 3}.an-axis-label{fill:#94a3b8;font-size:10px;font-weight:600}.an-line{fill:none;stroke-width:2.5px;stroke-linecap:round;stroke-linejoin:round}.an-line.mood{stroke:#4f46e5}.an-line.craving{stroke:#f97316}.an-point{stroke-width:2px;cursor:pointer}.an-log{flex-direction:column;gap:.3rem;display:flex}.an-log-header{text-transform:uppercase;letter-spacing:.05em;color:#94a3b8;border-bottom:1px solid #e2e8f0;grid-template-columns:58px 1fr 30px 1fr 30px;gap:.5rem;padding:0 .25rem .35rem;font-size:.68rem;font-weight:800;display:grid}.an-log-row{border-radius:6px;grid-template-columns:58px 1fr 30px 1fr 30px;align-items:center;gap:.5rem;padding:.3rem .25rem;display:grid}.an-log-row:hover{background:#f8fafc}.an-log-date{color:#334155;font-size:.73rem;font-weight:700}.an-log-track{background:#e2e8f0;border-radius:999px;height:8px;overflow:hidden}.an-log-bar{border-radius:999px;height:100%}.an-log-bar.mood{background:#4f46e5}.an-log-bar.craving{background:#f97316}.an-log-bar.craving.is-low{background:#16a34a}.an-log-bar.craving.is-medium{background:#f97316}.an-log-bar.craving.is-high{background:#dc2626}.an-log-val{text-align:right;font-size:.73rem;font-weight:700}.an-log-val.mood{color:#3730a3}.an-log-val.craving{color:#c2410c}.an-status-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem;display:grid}.an-status-card{border:1px solid #e2e8f0;border-radius:10px;align-items:center;gap:.65rem;padding:.75rem .85rem;display:flex}.an-status-card.pass{background:#f0fdf4;border-color:#bbf7d0}.an-status-card.warn{background:#fffbeb;border-color:#fde68a}.an-status-icon{border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;width:1.8rem;height:1.8rem;display:flex}.an-status-card.pass .an-status-icon{color:#16a34a;background:#dcfce7}.an-status-card.warn .an-status-icon{color:#d97706;background:#fef3c7}.an-status-body{flex:1;min-width:0}.an-status-title{color:#1e293b;font-size:.8rem;font-weight:700}.an-status-sub{color:#64748b;margin-top:.1rem;font-size:.72rem}.an-status-score{color:#334155;font-size:1.05rem;font-weight:800}.an-status-card.pass .an-status-score{color:#15803d}.an-status-card.warn .an-status-score{color:#b45309}.an-empty{color:#94a3b8;text-align:center;flex-direction:column;align-items:center;gap:.65rem;padding:2.5rem 1rem;display:flex}.an-empty svg{opacity:.45;width:2.2rem;height:2.2rem}.an-empty p{margin:0;font-size:.85rem;font-weight:500}@media (width<=720px){.an-kpi-row{grid-template-columns:repeat(2,minmax(0,1fr))}.an-metric-grid,.an-status-grid{grid-template-columns:1fr}.an-tabbar{flex-wrap:wrap}.an-tab span{display:none}.an-log-header,.an-log-row{grid-template-columns:46px 1fr 26px 1fr 26px;gap:.35rem}}.optional-section{flex-direction:column;gap:.65rem;margin-top:.85rem;display:flex}.btn-toggle-optional{color:#475569;font:inherit;cursor:pointer;background:#f8fafc;border:1px solid #e2e8f0;border-radius:7px;align-self:flex-start;align-items:center;gap:.4rem;padding:.5rem .75rem;font-size:.82rem;font-weight:600;transition:background .15s,border-color .15s;display:flex}.btn-toggle-optional:hover{background:#f1f5f9;border-color:#cbd5e1}.optional-fields{background:#fffbeb;border:1px solid #fcd34d;border-radius:8px;flex-direction:column;gap:.75rem;padding:.85rem;display:flex}@media (width<=1200px){.workspace{grid-template-columns:210px minmax(0,1fr);gap:.65rem;padding:.65rem}}@media (width<=1000px){.workspace{grid-template-columns:1fr}}@media (width<=768px){.workspace{grid-template-columns:1fr;gap:.5rem;padding:.5rem}.body{flex-direction:column}}@media (width<=1250px){.workspace{grid-template-columns:minmax(0,1fr)}}@media (width<=980px){.workspace{grid-template-columns:1fr;overflow-y:auto}.quick-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.toast-stack.inline .toast-launcher{align-self:stretch}}@media (width<=720px){.topbar{gap:.35rem;padding:0 .45rem}.workspace{gap:.45rem;padding:.45rem}.rail-card{padding:.6rem}.steps-nav{min-width:unset;border-bottom:1px solid #e2e8f0;border-right:none;flex-flow:row;gap:3px;width:100%;padding:.35rem;overflow:auto visible}.body{flex-direction:column}.step-tab{flex:none}.grid.two-col{grid-template-columns:1fr}.step-section-dual{grid-template-columns:1fr;gap:1rem}.topbar-title,.topbar-progress-label,.topbar-progress-bar{display:none}.btn-danger-sm{margin-left:0;padding:.2rem .5rem}.step-title{font-size:.95rem}.step-header{align-items:flex-start}.step-footer{justify-content:stretch}.step-nav-buttons{width:100%}.btn-nav{flex:1;justify-content:center;align-items:center;gap:.3rem;display:inline-flex}.quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.notification-icons{grid-template-columns:1fr 1fr}.entry-row{flex-direction:column;align-items:flex-start}.entry-actions{justify-content:flex-end;width:100%}}@media (width>=1181px){.topbar{padding-inline:1.2rem}.steps-nav{width:230px;min-width:230px}.step-panel{padding:1.35rem 1.8rem}.journal-card{max-width:100%}}@media (width>=721px) and (width<=1024px){.topbar{height:50px}.topbar-tab{font-size:.8rem}.steps-nav{width:200px;min-width:200px}.step-tab{font-size:.78rem}.step-panel{padding:1rem 1.2rem}.journal-card{max-width:100%}}@media (width>=768px) and (width<=1024px) and (orientation:portrait){.body{flex-direction:column}.steps-nav{border-bottom:1px solid #e2e8f0;border-right:none;flex-flow:row;gap:.35rem;width:100%;min-width:100%;padding:.45rem;overflow:auto hidden}.step-tab{flex:none;min-height:42px;padding:.5rem .65rem}.step-panel{padding:1rem 1.05rem 1.2rem}}@media (width>=820px) and (width<=1180px) and (orientation:landscape){.steps-nav{width:216px;min-width:216px}.step-tab{min-height:40px}.topbar-tab{padding-inline:.8rem}}@media (width<=600px){.topbar-menu-dropdown{left:auto;right:0}.topbar{height:50px}.topbar-tab{height:50px;font-size:.8rem}.step-tab{min-height:40px;padding:.45rem .55rem}.step-panel{padding:.8rem .75rem 1rem}.journal-card{padding:.8rem}.quick-grid{grid-template-columns:1fr}.toast-stack.inline{width:100%}input,textarea{font-size:16px}}@media (width<=420px){.welcome-title{font-size:.84rem}.welcome-copy{font-size:.76rem}.step-tab-number{font-size:.74rem}.section-label{font-size:.65rem}}@media (width<=360px){.topbar{padding-inline:.3rem}.step-position-label{display:none}.btn-nav{padding-inline:.55rem;font-size:.78rem}.journal-actions{gap:.35rem}.notification-icons{grid-template-columns:1fr}}@media (hover:none) and (pointer:coarse){.step-tab,.topbar-tab,.btn-nav,.btn-add-row,.btn-danger-sm{min-height:40px}}:root{--ui-font:"Avenir Next", "Nunito Sans", "Segoe UI", sans-serif;--ui-bg-0:#f8f7ff;--ui-bg-1:#eef6ff;--ui-surface:#fff;--ui-surface-soft:#f8fbff;--ui-border:#d8e4f5;--ui-text:#10243d;--ui-muted:#5f7392;--ui-primary:#5b5bd6;--ui-primary-strong:#4338ca;--ui-accent:#f97316;--ui-secondary:#0ea5a4;--ui-highlight:#ec4899;--ui-shadow:0 14px 34px #24355c1a}.app{background:radial-gradient(circle at 12% -8%, #dbeafe 0%, transparent 34%), radial-gradient(circle at 86% 2%, #ffe7d6 0%, transparent 36%), radial-gradient(circle at 50% 100%, #f3e8ff 0%, transparent 34%), linear-gradient(180deg, var(--ui-bg-1) 0%, var(--ui-bg-0) 48%, #fff9f3 100%);font-family:var(--ui-font);color:var(--ui-text)}.topbar{-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#ffffffd1;border-bottom:1px solid #d8e4f5f2;height:56px;box-shadow:0 1px #ffffffa6}.topbar-brand{border-right:1px solid #d7e2f2}.topbar-title{color:#0d2f45;letter-spacing:.08em;align-items:center;gap:.45rem;font-size:.8rem;display:inline-flex}.topbar-title-icon{width:.95rem;height:.95rem;color:var(--ui-primary)}.topbar-tab{color:#5e7190;letter-spacing:.01em;border-radius:10px 10px 0 0;align-items:center;gap:.35rem;height:48px;margin-top:4px;font-weight:700;display:inline-flex}.topbar-tab .tab-icon{opacity:.85;width:.92rem;height:.92rem}.topbar-tab:hover{color:#284766;background:#f4f9ff}.topbar-tab.active{color:var(--ui-primary);border-bottom-color:var(--ui-primary);background:linear-gradient(#f5fcff 0%,#eff9ff 100%)}.topbar-tab.active .tab-icon{opacity:1}.topbar-menu-dropdown{border:1px solid var(--ui-border);box-shadow:var(--ui-shadow);border-radius:12px;padding:.4rem}.topbar-menu-option{border-radius:8px;font-weight:650}.topbar-menu-option:hover{background:#edf7ff}.topbar-progress-label{color:#4d6380;font-weight:700}.topbar-progress-bar{background:#d9e8f6;height:7px}.topbar-progress-fill{background:linear-gradient(90deg,#10b981 0%,#14b8a6 45%,#6366f1 100%)}.btn-danger-sm{background:#fff8f8;border-color:#f2b8b5;border-radius:999px;padding:.3rem .72rem}.workspace{gap:1rem;padding:1rem}.main-stage{box-shadow:var(--ui-shadow);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:linear-gradient(#fffffff2 0%,#f8fbffeb 58%,#fff9f2f0 100%);border:1px solid #cddafbfa;border-radius:16px}.custom-checkin-field{margin-top:.5rem}.sidebar-content{gap:.8rem;padding:1rem}.sidebar-section{border-bottom-color:#eaf0f8;padding-bottom:.8rem}.sidebar-title{color:#4a617f;letter-spacing:.05em;align-items:center;gap:.35rem;display:inline-flex}.sidebar-title-icon{width:.82rem;height:.82rem;color:var(--ui-primary)}.sidebar-welcome{color:#122f4a}.sidebar-gratitude{color:#4f6685;background:#f3f8ff;border:1px solid #dde9f8;border-radius:10px;padding:.45rem .55rem}.first-time-banner{background:#fff7df;border-color:#f3d081;border-radius:10px}.momentum-display{background:linear-gradient(135deg,#edfff6 0%,#dff7ee 100%);border-width:1px;border-color:#42b883}.momentum-score{color:#118355}.risk-display{letter-spacing:.01em;border:1px solid #e3ebf6;font-size:.86rem}.risk-display.risk-low{color:#0f7a4c;background:#e9fbf1}.risk-display.risk-moderate{color:#996512;background:#fff6df}.risk-display.risk-high{color:#b93e2f;background:#ffece9}.btn-smart-action{background:linear-gradient(135deg,#5b5bd6 0%,#7c3aed 58%,#0ea5a4 100%);border-radius:999px;justify-content:center;align-items:center;gap:.35rem;padding:.55rem .72rem;font-size:.78rem;display:inline-flex;box-shadow:0 10px 22px #5b5bd647}.btn-smart-action:hover{background:linear-gradient(135deg,#4f46e5 0%,#6d28d9 58%,#0891b2 100%)}.btn-smart-action-icon{width:.85rem;height:.85rem}.main-stage{overflow:hidden}.body{background:linear-gradient(#fcfbff 0%,#f7fbff 46%,#fff8f1 100%)}.step-panel,.journal-page{background:linear-gradient(#ffffffc2 0%,#f6faffe6 100%);padding-top:1rem}.work-section,.journal-card,.profile-manager,.focus-block,.inv-wrap,.entry-row,.action-row,.action-form-container,.an-page,.an-graph-wrap,.an-toolbar,.an-kpi,.an-metric,.an-status-card{border-color:#d8e4f5;border-radius:14px;box-shadow:0 4px 12px #10243d0a}.work-section,.journal-card,.an-page{background:linear-gradient(#fff 0%,#fbfcff 58%,#fff8f2 100%)}.step-number,.journal-card h3,.profile-section-title,.an-title{color:var(--ui-primary)}.step-title{color:#173a59;font-size:1.04rem;font-style:normal;font-weight:700}.section-label{color:#6a80a1}.action-prompt,.journal-meta,.entry-copy,.history-total-visits,.history-empty-state,.an-status-sub,.an-kpi-sub,.an-metric-foot,.an-axis-label,.an-log-date,.an-log-val,.an-log-header,.topbar-progress-label{color:var(--ui-muted)}input,select,textarea,.inv-cell-input,.filter-select,.filter-search{color:#18334f;background:#fbfdff;border:1px solid #d1e0f2;border-radius:10px}input:focus,textarea:focus,select:focus,.filter-select:focus,.filter-search:focus,.inv-cell-input:focus{outline-offset:0;border-color:#7cb4c0;outline:2px solid #0b728540}.btn-nav,.btn-add-row,.toast-action,.topbar-menu-option,.an-chip,.btn-toggle-optional{border-radius:999px;font-weight:700}.btn-nav{background:#f6fbff;border-color:#d2e3f3}.btn-nav.primary{background:linear-gradient(135deg,#5b5bd6 0%,#7c3aed 70%,#2563eb 100%);border-color:#5b5bd6}.btn-add-row,.toast-action{color:#1f5b86;background:#ebf7ff;border-color:#b7d8ee}.btn-add-row:hover,.toast-action:hover{background:#dbf0ff}.entry-row,.an-metric,.an-kpi,.an-status-card,.action-controls,.action-dates,.inv-header,.topbar-menu-dropdown{background:#f8fbff}.an-tab.active{color:var(--ui-primary);border-bottom-color:var(--ui-primary)}.an-chip.active{color:#184f62;background:#e8f6fa;border-color:#78aeb8}.an-chip--craving.active{color:#b35a1d;background:#fff3ea;border-color:#f09c63}.an-chip--mood.active{color:#2f4f89;background:#edf3ff;border-color:#7f9ed9}.an-line.mood,.an-bar.mood,.an-log-bar.mood,.an-legend-dot.mood{stroke:#2e6bb3;background:#2e6bb3}.an-line.craving,.an-bar.craving,.an-log-bar.craving,.an-legend-dot.craving{stroke:#df7d2f;background:#df7d2f}.an-point.mood{fill:#2e6bb3;stroke:#eaf1ff}.an-point.craving{fill:#df7d2f;stroke:#fff1e7}.toast-card,.notification-action{border-color:#d8e4f5;border-radius:12px}.notification-action:hover{background:#edf7ff;border-color:#b6d8ef}@media (width<=980px){.topbar-tab .tab-label{display:none}.topbar-tab{padding:0 .62rem}.topbar-smart-action{max-width:2.5rem;padding-inline:.55rem}.topbar-smart-action span{display:none}}.navshell{z-index:25;background:linear-gradient(135deg,#fffffff5 0%,#f1f6fff2 48%,#fff4eaf2 100%);border:1px solid #d7e0f7;border-radius:14px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.65rem;margin:.75rem .85rem 0;padding:.55rem .9rem;display:grid;position:relative;box-shadow:0 12px 28px #313c601f}.navshell-left{align-items:center;gap:.35rem;display:inline-flex;position:relative}.navshell-primary-tab,.navshell-jump-btn,.navshell-tab{color:#34506f;font:inherit;cursor:pointer;background:linear-gradient(#fff 0%,#f6f8ff 100%);border:1px solid #d4e3f4;border-radius:10px;justify-content:center;align-items:center;gap:.34rem;height:2.2rem;font-size:.8rem;font-weight:700;line-height:1;transition:background .12s,transform .12s,border-color .12s;display:inline-flex}.navshell-primary-tab,.navshell-tab{padding:0 .7rem}.navshell-jump-btn{min-width:2.2rem;padding:0 .46rem}.navshell-primary-tab:hover,.navshell-jump-btn:hover,.navshell-tab:hover{background:#edf5ff;border-color:#bcd4ef;transform:translateY(-1px)}.navshell-primary-tab.active,.navshell-tab.active,.navshell-jump-btn.active{color:#4338ca;background:linear-gradient(135deg,#eef2ff 0%,#e0f2fe 52%,#fff1e8 100%);border-color:#9aa4ff;box-shadow:inset 0 0 0 1px #9aa4ff2e}.navshell-center{align-items:center;gap:.35rem;min-width:0;padding-inline:.25rem;display:flex;position:relative;overflow-x:auto}.navshell-right{align-items:center;gap:.45rem;display:inline-flex}.navshell-popover{z-index:55;background:#fff;border:1px solid #d7e4f3;border-radius:12px;padding:.35rem;position:absolute;top:calc(100% + .4rem);box-shadow:0 18px 30px #10243d29}.navshell-popover-steps{min-width:245px;left:0}.navshell-popover-checkins{gap:.2rem;min-width:160px;display:grid;left:.3rem}.navshell-menu-option{color:#34506f;text-align:left;font:inherit;cursor:pointer;background:0 0;border:0;border-radius:8px;padding:.45rem .55rem;font-size:.8rem;font-weight:650}.navshell-menu-option:hover{background:#edf5ff}.navshell-smart-action{max-width:min(20rem,25vw)}.navshell-progress{align-items:center;gap:.4rem;display:inline-flex}.navshell-progress-bar{background:linear-gradient(90deg,#e5ebff 0%,#ffe6d6 100%);border-radius:999px;width:100px;height:7px;overflow:hidden}.navshell-progress-label{color:#4f6786;font-size:.76rem;font-weight:700}.navshell-reset{align-items:center;gap:.3rem;margin-left:0;display:inline-flex}@media (width<=1100px){.navshell{grid-template-columns:1fr;gap:.45rem}.navshell-left,.navshell-right{justify-content:space-between}.navshell-smart-action{max-width:min(24rem,58vw)}}@media (width<=780px){.navshell{border-radius:12px;margin:.5rem .5rem 0;padding:.5rem}.navshell-center{padding-inline:0}.navshell-tab,.navshell-primary-tab{min-width:2.2rem;padding:0 .58rem}.navshell-tab span,.navshell-primary-tab span,.navshell-smart-action span,.navshell-progress-label,.navshell-reset span{display:none}.navshell-progress-bar{width:72px}}@media (width<=720px){.workspace{padding:.6rem}.main-stage{border-radius:14px}.topbar-actions{gap:.35rem}}
