:root{--ink: #17231e;--muted: #5b6660;--placeholder: #8a938e;--line: #e3e7e2;--ground: #f6f7f2;--surface: #ffffff;--brand: #077a52;--brand-hover: #06583b;--brand-bright: #098d5f;--forest: #0b3b2a;--forest-2: #1c5c44;--mint-text: #cfe7dc;--mint-muted: #8fc7ae;--green-bg: #e3f3ec;--green-fg: #06583b;--amber-bg: #fbf0dc;--amber-fg: #9a5b00;--red-bg: #f7e6ec;--red-fg: #8d0937;--red-line: #e7c2cf;--blue-bg: #e1f3f8;--blue-fg: #155f77;--gray-bg: #ecefe9}*{box-sizing:border-box}body{margin:0;font-family:Poppins,system-ui,sans-serif;color:var(--ink);background:var(--ground);-webkit-font-smoothing:antialiased}a{color:var(--brand)}a:hover{color:var(--brand-hover)}input,button,select,textarea{font-family:inherit}input::placeholder,textarea::placeholder{color:var(--placeholder)}input:focus,textarea:focus,select:focus{outline:2px solid var(--brand-bright);outline-offset:1px}button:focus-visible,a:focus-visible{outline:2px solid var(--brand-bright);outline-offset:2px}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}.sr-only{position:absolute;left:-9999px}.shell{display:flex;min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;gap:24px;width:248px;flex-shrink:0;padding:24px 16px;background:var(--forest);overflow-y:auto}.brand{display:flex;align-items:center;gap:10px;padding:0 6px}.brand-mark{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:11px;background:var(--brand-bright)}.brand-name{display:flex;flex-direction:column}.brand-name strong{font-size:17px;font-weight:700;color:#fff}.brand-name span{font-size:11px;font-weight:500;letter-spacing:.8px;color:var(--mint-muted)}.nav{display:flex;flex-direction:column;gap:4px}.nav a{display:flex;align-items:center;gap:12px;height:44px;padding:0 14px;border-radius:12px;text-decoration:none;font-size:14px;font-weight:500;color:var(--mint-text)}.nav a:hover{background:#ffffff0f;color:#fff}.nav a.active{font-weight:600;color:#fff;background:#ffffff1f}.me{margin-top:auto;display:flex;align-items:center;gap:10px;padding:12px;border-radius:14px;background:#ffffff0f}.me .avatar{background:var(--forest-2);color:#fff}.me-text{display:flex;flex-direction:column;flex-grow:1;min-width:0}.me-text strong{font-size:13px;font-weight:600;color:#fff}.me-text span{font-size:12px;color:var(--mint-muted)}.me button{border:0;background:transparent;color:var(--mint-text);padding:6px;border-radius:8px;display:flex}.me button:hover{color:#fff;background:#ffffff14}.content{display:flex;flex-direction:column;flex-grow:1;min-width:0}.topbar{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:16px;height:72px;flex-shrink:0;padding:0 32px;background:var(--surface);border-bottom:1px solid var(--line)}.search{display:flex;align-items:center;gap:10px;width:420px;max-width:100%;height:42px;padding:0 14px;border-radius:12px;background:var(--ground);border:1px solid var(--line);color:var(--muted)}.search input{flex-grow:1;border:0;background:transparent;font-size:14px;outline-offset:6px;min-width:0}.bell{position:relative;display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:21px;border:1px solid var(--line);background:var(--surface);color:var(--ink)}.bell .dot{position:absolute;top:9px;right:10px;width:8px;height:8px;border-radius:4px;background:var(--red-fg)}.page{display:flex;flex-direction:column;gap:24px;padding:28px 32px 32px}.page-head{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap}.page-head-text{display:flex;flex-direction:column;gap:6px;flex-grow:1}.page-head h1{margin:0;font-size:28px;font-weight:700;letter-spacing:-.5px}.page-head p{margin:0;font-size:14px;color:var(--muted)}.page-actions{display:flex;gap:10px;align-items:center}.back-link{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;text-decoration:none}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:42px;padding:0 16px;border-radius:12px;font-size:14px;font-weight:600;text-decoration:none;white-space:nowrap;border:1px solid var(--line);background:var(--surface);color:var(--ink)}.btn:hover{background:var(--ground);color:var(--ink)}.btn-primary{background:var(--brand);border-color:var(--brand);color:#fff}.btn-primary:hover{background:var(--brand-hover);border-color:var(--brand-hover);color:#fff}.btn-danger{color:var(--red-fg);border-color:var(--red-line)}.btn-danger:hover{background:var(--red-bg);color:var(--red-fg)}.btn-dashed{height:44px;border:1.5px dashed #b9c2bc;background:transparent;color:var(--brand)}.btn-dashed:hover{background:var(--green-bg);color:var(--brand)}.btn-stack{display:flex;flex-direction:column;gap:10px}.btn-row{display:flex;flex-wrap:wrap;gap:10px}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:0;border-radius:10px;background:transparent;color:var(--muted)}.icon-btn:hover{background:var(--ground);color:var(--ink)}.text-link{font-size:13px;font-weight:600;background:none;border:0;padding:0;color:var(--brand)}.text-link:hover{color:var(--brand-hover);text-decoration:underline}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.chips{display:flex;gap:8px;flex-wrap:wrap}.chip{height:36px;padding:0 14px;border-radius:18px;font-size:13px;font-weight:500;background:var(--surface);color:var(--ink);border:1px solid var(--line)}.chip:hover{border-color:var(--brand)}.chip[aria-pressed=true]{background:var(--brand);color:#fff;border-color:var(--brand)}.chip.square{border-radius:10px;font-weight:600}.badge{display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:12px;font-size:12px;font-weight:600;white-space:nowrap;width:fit-content}.tone-green{background:var(--green-bg);color:var(--green-fg)}.tone-amber{background:var(--amber-bg);color:var(--amber-fg)}.tone-red{background:var(--red-bg);color:var(--red-fg)}.tone-blue{background:var(--blue-bg);color:var(--blue-fg)}.tone-gray{background:var(--gray-bg);color:var(--muted)}.avatar{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;flex-shrink:0;border-radius:18px;background:var(--green-bg);color:var(--green-fg);font-size:12px;font-weight:600}.avatar.lg{width:64px;height:64px;border-radius:32px;font-size:21px}.person{display:flex;align-items:center;gap:12px}.person-text{display:flex;flex-direction:column}.person-text strong{font-weight:600}.sub{font-size:12px;color:var(--muted)}.card{display:flex;flex-direction:column;gap:16px;padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:18px}.card.tight{gap:12px}.card h2,.section-title{margin:0;font-size:17px;font-weight:600}.card-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.card-note{margin:-8px 0 0;font-size:13px;color:var(--muted)}.fine{margin:0;font-size:12px;line-height:1.5;color:var(--muted)}.muted{color:var(--muted)}.stat{gap:8px}.stat-head{display:flex;justify-content:space-between;align-items:center}.stat-label{font-size:13px;font-weight:500;color:var(--muted)}.stat-icon{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:12px}.stat-value{font-size:30px;font-weight:700;letter-spacing:-.6px}.stat-foot{font-size:13px;font-weight:500;color:var(--muted)}.stat-foot.good{color:var(--brand)}.stat-foot.bad{color:var(--red-fg)}.mini-stat{display:flex;flex-direction:column;gap:4px;padding:16px;border-radius:14px;background:var(--ground)}.mini-stat .k{font-size:12px;color:var(--muted)}.mini-stat .v{font-size:22px;font-weight:700}.banner{display:flex;align-items:center;gap:14px;padding:14px 18px;border-radius:14px;font-size:14px;line-height:1.5;text-decoration:none}.banner strong{font-weight:600}a.banner:hover{filter:brightness(.97)}.kv{display:flex;justify-content:space-between;align-items:center;font-size:13px}.kv>:first-child{color:var(--muted)}.kv>:last-child{font-weight:600}dl.facts{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));row-gap:10px;font-size:13px}dl.facts dt{color:var(--muted)}dl.facts dd{margin:0;font-weight:600;text-align:right}.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:start}.grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.stats-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.span-2{grid-column:span 2;display:flex;flex-direction:column;gap:20px;min-width:0}.col{display:flex;flex-direction:column;gap:20px;min-width:0}.col.gap-14{gap:14px}.col.gap-12{gap:12px}.fields-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.fields-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.mini-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}@media(max-width:1180px){.grid-3{grid-template-columns:1fr}.span-2{grid-column:auto}.grid-4,.mini-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:860px){.sidebar{display:none}.grid-2,.stats-3,.fields-2,.fields-3{grid-template-columns:1fr}.page{padding:20px 16px}.topbar{padding:0 16px}}.field{display:flex;flex-direction:column;gap:6px}.field label,.field-label{font-size:13px;font-weight:500}.field .hint{font-size:12px;color:var(--muted)}.input,.select,.textarea{height:44px;padding:0 14px;border:1px solid var(--line);border-radius:10px;background:var(--surface);font-size:14px;color:var(--ink);width:100%}.select.compact{height:38px;padding:0 10px;font-size:13px;width:auto}.textarea{height:auto;padding:12px 14px;border-radius:12px;line-height:1.5;resize:vertical}.field-error{font-size:12px;color:var(--red-fg)}.input[aria-invalid=true]{border-color:var(--red-fg)}.check{display:flex;align-items:center;gap:8px;font-size:14px}.check input{width:18px;height:18px;accent-color:var(--brand);margin:0}.check-row{display:flex;align-items:flex-start;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);font-size:14px;font-weight:500}.check-row:last-child{border-bottom:0}.check-row input{width:20px;height:20px;margin:1px 0 0;flex-shrink:0;accent-color:var(--brand)}.check-row .detail{display:flex;flex-direction:column;gap:2px}.check-row .detail small{font-size:12px;font-weight:400;color:var(--muted)}.switch-row{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px}.switch-row input{width:20px;height:20px;accent-color:var(--brand)}.table-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;overflow-x:auto}table.data{width:100%;border-collapse:collapse}table.data th{padding:12px 16px;text-align:left;font-size:12px;font-weight:600;letter-spacing:.4px;color:var(--muted);background:var(--ground);border-bottom:1px solid var(--line);white-space:nowrap}table.data td{padding:14px 16px;text-align:left;font-size:14px;border-bottom:1px solid var(--line);vertical-align:middle}table.data tr:last-child td{border-bottom:0}table.data .num{text-align:right}table.data .row-link{font-weight:600;text-decoration:none;color:var(--ink)}table.data .row-link:hover{color:var(--brand);text-decoration:underline}.empty{padding:32px 16px;text-align:center;color:var(--muted);font-size:14px}.meter{display:flex;flex-direction:column;gap:6px}.meter-head{display:flex;justify-content:space-between;font-size:13px}.meter-head span:first-child{font-weight:500}.meter-head span:last-child{color:var(--muted)}.meter-track{height:8px;border-radius:4px;background:var(--line)}.meter-fill{height:8px;border-radius:4px;background:var(--brand-bright)}.meter-fill.full{background:var(--red-fg)}.menu-wrap{position:relative;display:inline-block}.menu{position:absolute;right:0;top:calc(100% + 4px);z-index:10;min-width:180px;display:flex;flex-direction:column;padding:6px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 24px #17231e1f}.menu button{text-align:left;border:0;background:transparent;padding:10px 12px;border-radius:8px;font-size:14px;color:var(--ink)}.menu button:hover,.menu button:focus-visible{background:var(--ground)}.menu button.danger{color:var(--red-fg)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:flex;align-items:center;justify-content:center;padding:16px;background:#0b3b2a59}.modal{display:flex;flex-direction:column;gap:16px;width:480px;max-width:100%;padding:24px;border-radius:18px;background:var(--surface);box-shadow:0 20px 48px #17231e33}.modal h2{margin:0;font-size:20px;font-weight:700}.modal-actions{display:flex;justify-content:flex-end;gap:10px}.toasts{position:fixed;bottom:24px;left:50%;transform:translate(-50%);z-index:60;display:flex;flex-direction:column;gap:8px}.toast{display:flex;align-items:center;gap:10px;padding:12px 16px;border-radius:12px;background:var(--forest);color:#fff;font-size:14px;box-shadow:0 8px 24px #0003}.docs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.doc{display:flex;flex-direction:column;gap:8px;margin:0}.doc-img{position:relative;display:flex;flex-direction:column;justify-content:center;gap:10px;height:170px;padding:24px;border-radius:12px;background:#e9ede8;border:1px solid var(--line)}.doc-img .bar{height:8px;border-radius:4px;background:#d3d9d5}.doc-img .bar.title{height:10px;width:45%;border-radius:5px;background:#c5ccc8}.doc-open{position:absolute;right:10px;top:10px;display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:0;border-radius:8px;background:#fff;color:var(--ink)}.doc figcaption{display:flex;justify-content:space-between;align-items:center;font-size:13px;font-weight:600}.info-box{display:flex;gap:12px;padding:14px;border-radius:12px}.info-box .t{font-size:14px;font-weight:600}.info-box .d{font-size:12px;line-height:1.45}.list-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.list-row:last-child{border-bottom:0}.footer-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding:18px 20px;background:var(--surface);border:1px solid var(--line);border-radius:18px}.footer-bar p{margin:0;font-size:13px;line-height:1.5;color:var(--muted);flex:1 1 400px}.login{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));min-height:100vh}.login-hero{display:flex;flex-direction:column;justify-content:space-between;gap:40px;padding:56px;background:var(--forest);color:#fff}.login-hero .logo{display:flex;align-items:center;gap:12px;font-size:22px;font-weight:700}.login-hero .logo .brand-mark{width:44px;height:44px;border-radius:14px}.login-hero h2{margin:0;font-size:40px;line-height:1.15;font-weight:700;letter-spacing:-1px}.login-hero p{margin:0;font-size:16px;line-height:1.6;color:var(--mint-text)}.login-hero small{font-size:13px;color:var(--mint-muted)}.login-form-wrap{display:flex;align-items:center;justify-content:center;padding:56px;background:var(--surface)}.login-form{display:flex;flex-direction:column;gap:18px;width:400px;max-width:100%}.login-form h1{margin:0;font-size:28px;font-weight:700;letter-spacing:-.5px}.login-form .lead{margin:-8px 0 6px;font-size:14px;line-height:1.5;color:var(--muted)}.login-form .btn{height:48px;font-size:15px}.login-note{display:flex;gap:10px;margin:0;padding:12px 14px;border-radius:12px;background:var(--ground);font-size:13px;line-height:1.5;color:var(--muted)}.login-note svg{flex-shrink:0}@media(max-width:860px){.login{grid-template-columns:1fr}.login-hero,.login-form-wrap{padding:32px 16px}}.food-results{display:flex;flex-direction:column;max-height:360px;overflow-y:auto;margin:0 -8px}.food-result{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 8px;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left;font-size:14px;color:var(--ink);border-radius:8px}.food-result:hover,.food-result:focus-visible{background:var(--ground)}.portion-chips{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.portion-chips .chip{padding:0}.slot{display:flex;flex-direction:column;gap:10px;padding:14px;border:1px solid var(--line);border-radius:14px}.slot-head{display:grid;grid-template-columns:130px minmax(0,1fr) 40px;gap:10px;align-items:center}.slot-head .input{padding:0 12px}.slot .remove{display:flex;align-items:center;justify-content:center;width:40px;height:44px;border:0;background:transparent;color:var(--muted);border-radius:10px}.slot .remove:hover{background:var(--ground);color:var(--red-fg)}.planned-foods{display:flex;flex-wrap:wrap;gap:8px}.planned-food{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:12px;background:var(--ground)}.planned-food .change{display:flex;flex-direction:column;align-items:flex-start;gap:1px;padding:8px 4px 8px 12px;border:0;background:transparent;text-align:left;color:var(--ink);border-radius:12px 0 0 12px}.planned-food .change strong{font-size:13px;font-weight:600}.planned-food .change span{font-size:12px;color:var(--muted)}.planned-food .change:hover strong{color:var(--brand)}.planned-food .x{display:flex;align-items:center;justify-content:center;width:32px;height:32px;margin-right:4px;border:0;background:transparent;color:var(--muted);border-radius:8px}.planned-food .x:hover{color:var(--red-fg);background:#fff}.add-food{height:44px;padding:0 14px;border:1.5px dashed #b9c2bc;border-radius:12px;background:transparent;color:var(--brand);font-size:13px;font-weight:600;display:inline-flex;align-items:center;gap:6px}.add-food:hover{background:var(--green-bg)}.day-total{font-size:13px;color:var(--muted)}.day-total strong{color:var(--ink)}.loading-screen{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;color:var(--muted);font-size:15px;padding:16px;text-align:center}.doc-img img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
