
:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#1b3430;background:#f3f6f3;font-synthesis:none;--ink:#1b3430;--green:#174b43;--accent:#298570;--light:#e9f3ed;--muted:#788981;--line:#e5ebe5;--shadow:0 10px 35px rgba(24,65,53,.07);--radius:22px}
*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #8ed1ad;outline-offset:3px}svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8;vertical-align:middle}.app-shell{max-width:1240px;margin:0 auto;padding:26px 30px 100px}.site-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:4px 0 23px}.brand{display:flex;align-items:center;gap:11px}.brand-logo{width:46px;height:46px;border-radius:17px;background:#174b43;color:white;display:grid;place-items:center;box-shadow:0 8px 20px rgba(23,75,67,.16)}.brand-logo svg{width:25px;height:25px}.brand-title{font-size:21px;font-weight:830;letter-spacing:-.8px}.brand-sub{font-size:12px;color:#77867d;margin-top:2px}.top-status{display:flex;align-items:center;gap:10px}.pill{display:inline-flex;align-items:center;gap:6px;background:white;border:1px solid #e3e9e3;border-radius:99px;padding:8px 12px;color:#62756b;font-size:12px;font-weight:650}.pill .dot{width:7px;height:7px;background:#e9a850;border-radius:50%}.avatar{height:39px;width:39px;border-radius:50%;background:#e8ecdb;display:grid;place-items:center;color:#4b6656;font-weight:800;font-size:13px}.intro{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:12px 0 22px}.eyebrow{font-size:11px;letter-spacing:2px;text-transform:uppercase;color:#779786;font-weight:800}.intro h1{font-weight:820;font-size:clamp(28px,4vw,39px);letter-spacing:-1.8px;line-height:1.18;margin:7px 0 9px}.intro p{margin:0;color:#819189;font-size:14px;line-height:1.55}.date-box{display:flex;align-items:center;gap:9px;color:#5b7869;font-size:13px;background:#e8f0e9;border-radius:13px;padding:12px 15px;font-weight:650;white-space:nowrap}.date-box svg{width:16px;height:16px}.tabbar{display:flex;gap:6px;margin-bottom:23px;padding:6px;background:#e9eee9;border-radius:18px;width:max-content;max-width:100%;overflow:auto}.tab{padding:11px 18px;border:0;background:transparent;color:#77887f;font-size:13px;border-radius:13px;font-weight:700;display:flex;gap:8px;align-items:center;white-space:nowrap}.tab svg{height:17px;width:17px}.tab.active{color:#23584c;background:white;box-shadow:0 3px 12px rgba(32,72,57,.06)}.view{display:none}.view.active{display:block}.columns{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(290px,.9fr);gap:22px;align-items:start}.panel{background:white;border:1px solid #e9eee9;box-shadow:var(--shadow);border-radius:var(--radius);overflow:hidden}.main-list-header{display:block;text-align:left;background:linear-gradient(120deg,#174b43,#27695a);color:white;border:0;width:100%;padding:26px 28px 24px;position:relative;overflow:hidden}.main-list-header:before{content:"";position:absolute;height:180px;width:180px;border-radius:50%;border:42px solid rgba(255,255,255,.035);right:-35px;top:-105px}.main-list-header:after{content:"";position:absolute;width:130px;height:130px;border-radius:100%;background:rgba(255,255,255,.04);right:95px;bottom:-95px}.list-label{font-size:11px;letter-spacing:1.3px;text-transform:uppercase;display:flex;gap:8px;align-items:center;color:#b4d8c8;font-weight:760;position:relative;z-index:1}.list-topline{display:flex;justify-content:space-between;align-items:center;gap:9px;position:relative;z-index:1}.list-topline h2{font-size:27px;letter-spacing:-.8px;margin:9px 0;font-weight:830}.complete-circle{width:44px;height:44px;border-radius:50%;border:1px solid rgba(255,255,255,.3);display:grid;place-items:center;background:rgba(255,255,255,.12);transition:transform .2s,background .2s}.main-list-header:not(:disabled):hover .complete-circle{transform:scale(1.08);background:rgba(255,255,255,.22)}.list-tip{font-size:12px;color:#d7e9df;margin:2px 0 18px;position:relative;z-index:1}.progress-track{height:7px;background:rgba(255,255,255,.18);border-radius:20px;overflow:hidden;position:relative}.progress-fill{height:100%;background:#bddfa5;border-radius:20px;width:0;transition:width .2s}.list-count{font-size:11px;color:#cce1d6;margin-top:9px;position:relative}.list-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:17px 25px;border-bottom:1px solid #edf0ec;flex-wrap:wrap}.store-select{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700;color:#557568}.store-select svg{width:17px;height:17px}.store-select select{max-width:170px;border:0;color:#225a4c;font-weight:760;background:transparent;padding:6px 22px 6px 2px;cursor:pointer}.text-button{background:none;border:0;color:#317a66;display:inline-flex;align-items:center;gap:6px;padding:7px 3px;font-size:12px;font-weight:740}.text-button:hover{text-decoration:underline}.text-button svg{height:15px;width:15px}.categories{padding:7px 22px 18px;min-height:190px}.category-block{margin:14px 0 0}.category-title{font-size:12px;color:#84948b;font-weight:800;display:flex;align-items:center;gap:9px;padding:10px 6px;text-transform:uppercase;letter-spacing:.7px}.category-title i{width:22px;height:22px;border-radius:7px;background:#eff5ef;display:grid;place-items:center;font-style:normal;font-size:13px}.category-title .category-n{font-weight:650;font-size:11px;color:#b2bcb3}.item-row{min-height:58px;display:flex;align-items:center;gap:12px;padding:8px 10px;margin:3px 0;border-radius:13px;transition:background .15s}.item-row:hover{background:#f5f8f5}.item-check{border:2px solid #d4e3d8;background:white;color:white;width:25px;height:25px;flex:none;border-radius:8px;display:grid;place-items:center}.item-check svg{width:17px;height:17px}.item-row.is-checked .item-check{background:#3f9a75;border-color:#3f9a75}.item-name{flex:1;min-width:0;font-size:14px;font-weight:730;word-break:break-word}.item-row.is-checked .item-name{text-decoration:line-through;color:#a4b1a7}.qty-area{display:flex;align-items:center;gap:2px;white-space:nowrap}.qty-pill{font-size:12px;font-weight:800;background:#edf5ed;color:#427a62;border-radius:8px;padding:7px 8px;min-width:47px;text-align:center}.mini-btn{background:transparent;border:0;padding:5px;color:#9caea4;border-radius:8px;display:grid;place-items:center}.mini-btn:hover{background:#e7f0e9;color:#296d57}.mini-btn svg{width:15px;height:15px}.danger-btn:hover{background:#fce8e4;color:#ac4e43}.empty-list{display:flex;align-items:center;flex-direction:column;text-align:center;padding:28px 14px 35px}.empty-illustration{height:76px;width:76px;background:#edf5e9;border-radius:25px;display:grid;place-items:center;color:#59967d;margin-bottom:12px}.empty-illustration svg{width:34px;height:34px}.empty-list h3{font-size:17px;margin:8px 0}.empty-list p{max-width:290px;font-size:13px;line-height:1.55;color:#899b90;margin:3px auto}.add-row{padding:18px 24px 23px;border-top:1px solid #eaf0e9}.add-form{display:flex;align-items:center;gap:8px;background:#f5f8f4;border:1px solid #e9f0e7;border-radius:14px;padding:7px}.add-form input{flex:1;min-width:0;border:0;background:transparent;padding:10px 8px;outline:none;font-size:13px;color:#174b43}.add-btn{border:0;background:#174b43;color:white;display:flex;gap:6px;align-items:center;font-size:12px;border-radius:10px;font-weight:760;padding:11px 15px;white-space:nowrap}.add-btn:hover{background:#286e5e}.add-btn svg{height:17px;width:17px}.help-small{font-size:11px;color:#a0aca1;margin:9px 0 0 2px}.side-stack{display:grid;gap:20px}.voice-card{padding:22px;background:#fcebdd;border:1px solid #f6dfcd;border-radius:var(--radius);position:relative;overflow:hidden}.voice-card:after{content:"";position:absolute;width:135px;height:135px;right:-50px;top:-58px;background:#fff3e8;border-radius:50%}.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.card-head h3{font-size:16px;margin:0;letter-spacing:-.4px}.micro-label{font-size:11px;color:#a97853;font-weight:700}.voice-card p{font-size:12px;line-height:1.65;color:#98775f;margin:9px 0 18px;max-width:320px}.mic-row{display:flex;align-items:center;gap:12px}.mic-button{width:60px;height:60px;flex:none;border:0;border-radius:20px;color:white;background:#e58c62;display:grid;place-items:center;box-shadow:0 8px 15px rgba(207,108,62,.20)}.mic-button svg{width:27px;height:27px}.mic-button.listening{background:#bb4e44;animation:pulse 1.1s infinite}@keyframes pulse{50%{box-shadow:0 0 0 10px rgba(187,78,68,.15)}}.mic-button:disabled{opacity:.46}.mic-row strong{font-size:13px;color:#714d3c}.mic-row span{display:block;font-size:11px;color:#a78368;line-height:1.4;margin-top:5px}.voice-transcript{font-size:12px;margin-top:15px;border-radius:11px;background:#fff8f0;padding:12px;color:#84634d;display:none}.voice-transcript.visible{display:block}.voice-diagnostic{display:none;margin:14px 0 0;padding:12px;border:1px solid #efc79e;border-radius:12px;background:#fff7eb;color:#745538;font-size:12px;line-height:1.5}.voice-diagnostic.visible{display:block}.voice-diagnostic strong{display:block;margin-bottom:4px;color:#764626}.voice-fallback{border:1px solid #e4b795;border-radius:10px;background:#fffaf4;color:#885234;font-size:12px;font-weight:750;margin-top:11px;padding:10px 12px;cursor:pointer;display:inline-flex;align-items:center;gap:7px}.voice-fallback svg{height:16px;width:16px}.voice-fallback:hover{background:#ffebd6}.recommend-card{padding:21px 22px}.recommend-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.recommend-icon{height:36px;width:36px;border-radius:12px;display:grid;place-items:center;background:#e8f4e8;color:#38846b}.recommend-card h3{margin:14px 0 5px;font-size:16px;letter-spacing:-.3px}.recommend-card p{font-size:12px;color:#8b9b91;line-height:1.5;margin:0 0 11px}.rec-row{border-top:1px solid #edf1e9;padding:12px 0;display:flex;align-items:center;justify-content:space-between;gap:9px}.rec-title{font-size:13px;font-weight:750}.rec-sub{margin-top:3px;color:#a0aa9e;font-size:11px}.rec-plus{flex:none;display:grid;place-items:center;border-radius:10px;border:1px solid #cfe6d7;width:32px;height:32px;background:#eff8f0;color:#2e8264}.rec-plus:hover{background:#d7ecdc}.rec-plus svg{width:17px;height:17px}.no-rec{padding:16px 0;color:#95a59a;font-size:13px}.subpage{padding:28px}.subpage-header{display:flex;align-items:start;justify-content:space-between;gap:20px;margin-bottom:26px}.subpage h2{font-size:23px;letter-spacing:-1px;margin:0 0 6px}.subpage p{color:#849389;font-size:13px;line-height:1.6;margin:0}.template-form{display:grid;grid-template-columns:minmax(155px,1fr) 82px 85px 105px 155px auto;gap:9px;background:#f5f8f4;padding:13px;border-radius:15px;margin:19px 0 22px}.field{display:flex;flex-direction:column;gap:6px}.field label{font-size:10px;text-transform:uppercase;color:#819688;letter-spacing:.5px;font-weight:750}.field input,.field select{background:white;border:1px solid #e1e9df;border-radius:9px;padding:10px;font-size:13px;min-width:0;width:100%;height:39px}.template-submit{align-self:end;height:39px}.table-like-head,.template-row{display:grid;grid-template-columns:minmax(140px,1.3fr) 95px 110px minmax(100px,1fr) 120px;align-items:center;gap:8px;padding:13px 12px}.table-like-head{color:#99aa9b;font-size:10px;text-transform:uppercase;font-weight:830;letter-spacing:.5px}.template-row{border-top:1px solid #edf0ed;font-size:12px;color:#63736b}.template-row .t-name{font-weight:780;color:#28483c;font-size:13px}.template-actions{display:flex;align-items:center;justify-content:flex-end;gap:4px}.weeks-control{display:flex;align-items:center;gap:5px}.weeks-control button{height:25px;width:25px;border-radius:7px;border:1px solid #e2e9e2;background:#f5f8f4;color:#547761;font-size:16px;line-height:1}.weeks-control strong{min-width:15px;text-align:center}.history-entry{border:1px solid #e8ede7;border-radius:14px;padding:17px;margin:13px 0}.history-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.history-top h3{margin:0 0 4px;font-size:15px}.history-top p{font-size:12px;margin:0}.history-date{font-size:12px;font-weight:750;color:#4f8d73;background:#eff7ef;border-radius:9px;padding:8px 11px}.history-items{display:flex;gap:6px;flex-wrap:wrap;margin-top:13px}.history-item{font-size:11px;background:#f2f5f2;border-radius:8px;padding:6px 8px;color:#66796b}.info-box{padding:16px 18px;border:1px solid #d9ebdc;background:#f2f9f2;border-radius:14px;display:flex;gap:13px;align-items:flex-start;margin:18px 0;font-size:12px;line-height:1.55;color:#4b6b58}.info-box svg{flex:none;color:#4c9271;width:18px;height:18px}.settings-section{border-top:1px solid #edf0ed;padding:23px 0}.settings-section:first-of-type{border:0}.settings-section h3{font-size:16px;margin:0 0 8px}.setting-note{font-size:12px;color:#86978b;line-height:1.6;margin:0 0 15px}.store-add-form{display:flex;gap:8px;flex-wrap:wrap}.store-add-form input{background:#f7f9f7;border:1px solid #e1ebe2;padding:11px;border-radius:10px;min-width:170px;flex:1}.small-primary{border:0;border-radius:10px;padding:11px 15px;background:#246c58;color:#fff;font-size:12px;font-weight:750}.small-secondary{border:1px solid #dce8dd;border-radius:10px;padding:10px 14px;background:white;color:#2c7059;font-size:12px;font-weight:750}.saved-store{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #edf0ec;padding:12px 0;font-size:13px}.saved-store small{display:block;color:#9aab9d;font-size:11px;margin-top:4px}.order-list{display:flex;gap:8px;flex-wrap:wrap}.order-chip{border:1px solid #e0e9df;background:#f6f9f5;border-radius:9px;padding:8px 10px;font-size:12px;display:flex;align-items:center;gap:6px}.order-chip button{border:0;background:none;color:#5f8a6c;padding:0 1px}.order-chip button svg{height:14px;width:14px}.empty-section{padding:35px 20px;text-align:center;color:#899c8d;font-size:13px;line-height:1.55}.bottom-meta{text-align:center;color:#a6b1a9;font-size:11px;margin:24px 0}.toast{position:fixed;z-index:55;bottom:26px;left:50%;transform:translate(-50%,130%);background:#1d4438;color:white;border-radius:13px;padding:13px 19px;box-shadow:0 12px 30px #173c3540;font-size:13px;font-weight:600;transition:transform .23s ease;max-width:min(520px,92vw);text-align:center}.toast.show{transform:translate(-50%,0)}.modal-backdrop{position:fixed;inset:0;background:rgba(14,31,27,.45);display:none;place-items:center;padding:20px;z-index:50}.modal-backdrop.show{display:grid}.modal{width:min(430px,100%);background:white;border-radius:22px;box-shadow:0 20px 65px rgba(0,0,0,.18);padding:28px}.modal-icon{width:53px;height:53px;border-radius:17px;color:#3d8466;background:#e5f4e7;display:grid;place-items:center}.modal h2{font-size:21px;letter-spacing:-.6px;margin:18px 0 10px}.modal p{font-size:13px;line-height:1.65;color:#75887b}.modal-actions{display:flex;gap:10px;margin-top:25px}.modal-actions button{flex:1;padding:13px 8px;border-radius:11px;border:1px solid #dce7db;background:white;color:#4f7561;font-weight:780;font-size:13px}.modal-actions .confirm{background:#236d59;color:white;border-color:#236d59}.mini-tag{font-size:11px;border:1px solid #d8e9da;background:#f1f8f2;padding:5px 9px;border-radius:99px;color:#448668;font-weight:730}.footer-disclaimer{max-width:770px;margin:28px auto;color:#98a69b;font-size:11px;text-align:center;line-height:1.5}.section-utility{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.outline-btn{border:1px solid #dbe8dd;padding:11px 14px;background:#fff;color:#316d56;border-radius:10px;font-size:12px;font-weight:750}.section-desc{font-size:12px;color:#99a89a}.soft-button{padding:8px 11px;background:#f0f6f0;border:0;border-radius:9px;color:#368161;font-size:12px;font-weight:780}
@media(max-width:920px){.columns{grid-template-columns:1fr}.side-stack{grid-template-columns:1fr 1fr;gap:14px}.template-form{grid-template-columns:repeat(2,minmax(0,1fr))}.template-submit{align-self:end}.table-like-head,.template-row{grid-template-columns:minmax(110px,1.5fr) 66px 87px minmax(85px,1fr) 77px}.app-shell{padding:20px 18px 90px}}
@media(max-width:600px){.app-shell{padding:14px 12px 70px}.site-header{padding-bottom:16px}.brand-title{font-size:18px}.brand-logo{height:40px;width:40px;border-radius:13px}.brand-sub{font-size:11px}.top-status .pill{display:none}.intro{margin:12px 4px 16px;align-items:start}.intro h1{font-size:27px;letter-spacing:-1.2px}.intro p{font-size:12px}.date-box{display:none}.tabbar{width:100%;gap:0;justify-content:space-between;padding:4px;margin-bottom:15px}.tab{padding:10px 8px;justify-content:center;gap:5px;flex:1;font-size:11px}.tab svg{width:15px;height:15px}.columns{gap:14px}.side-stack{grid-template-columns:1fr;gap:14px}.main-list-header{padding:23px 21px}.list-topline h2{font-size:25px}.categories{padding:5px 12px 12px}.item-row{gap:7px;padding:7px 5px}.item-name{font-size:13px}.qty-pill{padding:6px;min-width:41px}.mini-btn{padding:3px}.add-row{padding:13px}.list-tools{padding:12px 18px}.voice-card,.recommend-card{padding:18px}.subpage{padding:21px 14px}.subpage h2{font-size:20px}.subpage-header{flex-direction:column;gap:12px}.template-form{grid-template-columns:1fr 1fr;padding:10px}.template-form .field:first-child{grid-column:span 2}.template-submit{grid-column:span 2;justify-content:center}.table-like-head{display:none}.template-row{grid-template-columns:1fr auto;gap:8px;padding:13px 3px}.template-row .t-name{grid-column:1;grid-row:1}.template-row .t-qty{grid-column:1;grid-row:2}.template-row .t-cat{grid-column:1;grid-row:3;font-size:11px}.template-row .t-weeks{grid-column:2;grid-row:1}.template-actions{grid-column:2;grid-row:2/span 2}.footer-disclaimer{padding:0 10px}.mic-button{height:54px;width:54px;border-radius:17px}}

/* PHP / PostgreSQL edition */
.top-status{flex-wrap:wrap;justify-content:flex-end}.share-link{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.share-link input{min-width:200px;flex:1;border:1px solid #dce7df;border-radius:10px;padding:10px;color:#285d50}.login-shell{max-width:460px;margin:7vh auto 0;padding:24px}.login-card{background:#fff;border-radius:25px;padding:32px;box-shadow:var(--shadow)}.login-card h1{font-size:26px;margin:15px 0 5px}.login-card p{color:#76897f;line-height:1.6}.login-card label{display:block;font-weight:730;margin:20px 0 8px}.login-card input{width:100%;padding:13px;border:1px solid #dce7df;border-radius:11px}.login-card button{background:#174b43;color:#fff;border:0;border-radius:11px;padding:13px 18px;margin-top:16px;width:100%;font-weight:730}.login-error{margin-top:16px;color:#b04a36}.sync-msg{font-size:11px;color:#657c71}.warn-note{color:#916d46;font-size:12px;line-height:1.5}

/* V2: permanentni upozorneni na nedostupnost serveru */
.connection-banner{padding:14px 18px;margin:0 0 18px;border:1px solid #e8ba86;border-radius:14px;background:#fff2df;color:#7a4125;font-weight:500;line-height:1.55}
.connection-banner[hidden]{display:none}
