:root{--bg:#f4f8f5;--panel:#fff;--ink:#17393a;--muted:#6e8081;--green:#14645e;--green2:#0b4845;--leaf:#a7c77c;--line:#e1eae6;--bad:#a72d38;--radius:15px;--shadow:0 12px 35px rgba(13,70,62,.035)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.5 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}a{text-decoration:none;color:inherit}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(1.65rem,2.8vw,2.15rem);letter-spacing:-.035em;line-height:1.18;margin-bottom:8px}h2{font-size:1.07rem;margin-bottom:16px}.muted{color:var(--muted)}.small,.fine{font-size:12px}.fine{color:var(--muted)}.eyebrow{font-size:10px;letter-spacing:.15em;font-weight:800;color:#438b66}.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:24px;margin-bottom:18px}.btn{appearance:none;border:1px solid transparent;border-radius:10px;display:inline-flex;justify-content:center;align-items:center;gap:8px;padding:12px 17px;font:700 13px system-ui;cursor:pointer;white-space:nowrap;transition:background .2s}.btn.primary{background:var(--green);color:#fff}.btn.primary:hover{background:var(--green2)}.btn.secondary{border-color:#d6e4df;color:var(--ink);background:#fff}.btn.secondary:hover{background:#f5faf7}.btn.sm{padding:8px 12px;font-size:12px}.btn.danger{background:#fff2f2;color:var(--bad);border-color:#ecc3c9}.btn.wide{width:100%}label{display:block;font-size:12px;font-weight:700;color:#466566;margin-bottom:16px}input,select,textarea{appearance:none;display:block;width:100%;font:500 14px/1.4 system-ui;color:var(--ink);background:#fff;border:1px solid #d6e4df;padding:11px 12px;border-radius:9px;margin-top:6px;outline-offset:2px}textarea{resize:vertical;min-height:74px}input:focus,select:focus,textarea:focus{outline:2px solid #84b5a9;border-color:#467d70}.two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.two-col.tight{gap:0 10px}.auth-bg{min-height:100vh;background:radial-gradient(ellipse at 80% 0%,#d8f0df 0%,transparent 40%),linear-gradient(145deg,#eaf3ef,#f7faf8);padding:45px 18px}.login-wrap{max-width:460px;margin:7vh auto}.setup-wrap{max-width:800px;margin:0 auto}.auth-brand{display:flex;align-items:center;gap:13px;margin:0 0 25px}.auth-brand img{width:48px;height:48px;object-fit:contain}.auth-brand span{font-size:23px;font-weight:800}.auth-brand small{font-size:11px;display:block;font-weight:500;color:var(--muted)}.auth-note{text-align:center;font-size:12px;color:var(--muted)}.setup-wrap h2{border-bottom:1px solid var(--line);padding-bottom:10px;margin-top:29px}.admin-body{display:flex;min-height:100vh}.sidebar{position:sticky;top:0;width:251px;min-width:251px;height:100vh;background:#0e3737;color:#e7f5ee;display:flex;flex-direction:column;padding:29px 17px}.sidebar-head{display:flex;align-items:center;gap:10px;margin:2px 10px 52px}.sidebar-head img{width:41px;height:41px;object-fit:contain}.sidebar-head strong{font-size:21px;display:block;line-height:1.1}.sidebar-head small{color:#a9c6be;font-size:10px}.sidebar-label{font-size:10px;letter-spacing:.14em;color:#90b9a4;padding:0 12px;margin-bottom:12px}.sidebar nav{display:flex;flex-direction:column;gap:5px}.nav-link{display:flex;align-items:center;gap:12px;padding:12px;border-radius:11px;font-size:13px;color:#bdd6cd}.nav-link span{font-size:18px;width:21px;text-align:center}.nav-link.active{background:#23605b;color:#fff;font-weight:750}.nav-link:hover{background:#20524e;color:white}.sidebar-bottom{margin-top:auto;background:#1b4846;padding:12px;border-radius:11px;font-size:12px}.sidebar-bottom .small{margin-top:7px;color:#bbd2c9}.online-pip{display:inline-block;width:8px;height:8px;border-radius:50%;background:#a7d37b;margin-right:6px}.layout{flex:1;min-width:0}.topbar{height:75px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 clamp(18px,4vw,52px);font-size:13px;color:var(--muted)}.topbar strong{color:var(--ink)}.topbar-end{display:flex;gap:24px;align-items:center}.inline{display:inline}.text-link{color:#1e746a;font-size:13px;font-weight:700}.text-link:hover{text-decoration:underline}.main-area{max-width:1360px;margin:auto;padding:37px clamp(18px,4vw,52px) 40px}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:29px}.page-heading p:last-child{margin-bottom:0}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.metric{min-height:124px}.metric span{font-size:12px;color:var(--muted);display:block}.metric strong{font-size:37px;letter-spacing:-.04em;display:block;margin-top:10px}.card-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.card-heading h2{margin:0}.recipe-line{display:flex;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid var(--line)}.recipe-line:last-child{border-bottom:0}.thumb{width:56px;height:53px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:#e9f2ed;flex:none;font-size:26px;overflow:hidden}.thumb img{width:100%;height:100%;object-fit:cover}.recipe-line-main{flex:1;min-width:0}.recipe-line-main strong{font-size:13px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recipe-line-main small{font-size:12px;color:var(--muted)}.status{border-radius:50px;padding:6px 11px;font-size:11px;white-space:nowrap;font-weight:800;background:#f0f1f1;color:#63716f}.status.published{background:#e3f5e9;color:#176e49}.notice{border-radius:12px;padding:16px 20px;background:#e5f0ea;color:#396a58;font-size:13px}.filter-bar{display:flex;gap:16px;align-items:flex-end;flex-wrap:wrap}.filter-bar label{min-width:180px;flex:1;margin:0}.pagination{display:flex;gap:10px;margin:20px 0}.form-grid{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:20px;align-items:start}.form-main,.form-side{min-width:0}.form-side .panel{padding:22px}.input-triple{display:grid;grid-template-columns:100px 100px minmax(0,1fr) 34px;gap:8px;align-items:center;margin-bottom:9px}.input-triple input{margin:0}.icon-remove{width:34px;height:37px;border:0;background:#fceeee;color:#a33;border-radius:8px;cursor:pointer;font-size:22px}.step-row{display:flex;gap:10px;align-items:center;margin:0 0 10px}.step-row span{background:#e8f2ef;border-radius:50%;height:28px;min-width:28px;display:grid;place-items:center;font-size:12px;font-weight:800}.step-row textarea{margin:0;flex:1}.check{display:flex;gap:9px;align-items:center;font-size:12px;line-height:1.3}.check input{width:16px;height:16px;margin:0;accent-color:var(--green)}.photo-placeholder{height:165px;background:#eff4f0;border:1px dashed #bbcfc4;border-radius:11px;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:42px;color:#78998c}.photo-placeholder span{font-size:12px}.photo-placeholder img{width:100%;height:100%;object-fit:cover}.editor-photo{width:100%;max-height:230px;object-fit:cover;border-radius:11px;margin-bottom:14px}.danger-panel{border-color:#edd2d4}.alert{padding:14px 17px;border-radius:10px;margin-bottom:18px;background:#e1f1e5;color:#2b6d46}.alert.error{background:#fff0f0;color:#9a2435}.text-panel{max-width:760px}.narrow{max-width:560px}.history-line{display:flex;gap:20px;border-bottom:1px solid var(--line);padding:12px 0;font-size:13px}.history-line:last-child{border:0}.history-line span:first-child{color:var(--muted);min-width:145px}.history-line strong{width:90px}.footer{font-size:12px;color:#92a29b;margin-top:20px}.hidden{display:none!important}
@media(max-width:1120px){.form-grid{grid-template-columns:minmax(0,1fr)}.form-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-side .panel{margin:0}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:780px){.admin-body{display:block}.sidebar{width:100%;height:auto;position:static;padding:15px}.sidebar-head{margin:0 0 12px}.sidebar-label,.sidebar-bottom{display:none}.sidebar nav{flex-direction:row;overflow:auto}.nav-link{font-size:12px;white-space:nowrap;padding:10px}.nav-link span{display:none}.topbar{height:60px;padding:0 17px}.topbar-end{gap:9px}.main-area{padding:22px 16px}.page-heading{flex-wrap:wrap}.form-side{display:block}.form-side .panel{margin-bottom:15px}.two-col{grid-template-columns:1fr}.metric-grid{gap:9px}.metric{min-height:90px;padding:15px}.metric strong{font-size:28px}.recipe-line{gap:8px}.thumb{width:43px;height:43px}.status{font-size:10px;padding:5px 7px}.input-triple{grid-template-columns:65px 64px minmax(0,1fr) 30px;gap:5px}.input-triple input{padding:9px 6px;font-size:12px}.icon-remove{width:30px}.history-line{gap:5px;flex-wrap:wrap}.history-line span:first-child{min-width:auto}.topbar-end .text-link{display:none}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Receptredaktion 1.3: urval och masspublicering */
.bulk-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 6px}
.bulk-toolbar .bulk-checkall{display:inline-flex;gap:10px;align-items:center;cursor:pointer;font-weight:650}
.bulk-toolbar input[type=checkbox],.bulk-recipe-select input[type=checkbox]{width:19px;height:19px;appearance:auto;accent-color:#007f88;flex-shrink:0}
.bulk-recipe-select{display:flex;align-items:center;justify-content:center;padding:8px;cursor:pointer}
.bulk-recipe-line{gap:10px}
.bulk-all{border-top:1px solid rgba(115,143,154,.28);margin-top:12px;padding:18px 6px 8px}
.bulk-all p{margin:8px 0 14px}
.bulk-help{padding:5px 6px 0}
.bulk-help h2{margin-bottom:6px}
.bulk-preview{max-width:870px;margin:40px auto;padding:0 18px}
.bulk-preview summary{cursor:pointer}
.bulk-preview .b-row{padding:8px 0;border-bottom:1px solid rgba(100,140,150,.35)}
.bulk-preview .danger-note{border-left:4px solid #d8a047;padding:12px 16px;margin:18px 0;background:rgba(200,158,66,.1)}
.bulk-preview .btn{margin-top:12px}
.bulk-preview .check{display:flex;align-items:center;gap:12px;margin-top:24px}
.bulk-preview .check input{appearance:auto}
.bulk-preview-list{max-height:360px;overflow:auto}
@media(max-width:660px){.bulk-recipe-line{flex-wrap:wrap}.bulk-buttons button{flex:1}.bulk-toolbar .btn{white-space:normal}}
