:root{--ink:#143047;--navy:#073c4d;--teal:#087f8c;--deep:#006b72;--green:#338955;--light:#eff8f4;--surface:#fff;--bg:#f5f8fa;--line:#dce7e7;--muted:#506575;--shadow:0 10px 35px rgba(12,54,70,.07);--radius:18px;--safe:env(safe-area-inset-bottom, 0px)}
*{box-sizing:border-box}html{font-family:system-ui,-apple-system,'Segoe UI',Arial,sans-serif;scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-size:15px;line-height:1.5}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.48;cursor:not-allowed}a{color:var(--deep)}:focus-visible{outline:3px solid #259cbd;outline-offset:3px}[hidden]{display:none!important}img{max-width:100%;height:auto}h1,h2,h3,h4,p{margin-top:0}h1{font-size:clamp(1.7rem,3.5vw,2.4rem);line-height:1.15;letter-spacing:-.04em;margin-bottom:10px}h2{font-size:1.28rem;letter-spacing:-.02em}h3{font-size:1.07rem}p{line-height:1.55}.muted{color:var(--muted)}.fine{font-size:.82rem;color:var(--muted)}.eyebrow{font-size:.72rem;letter-spacing:.13em;color:var(--deep);font-weight:800}.skip{position:absolute;left:-999px;top:0;background:white;padding:10px;z-index:999}.skip:focus{left:10px}
.btn{display:inline-flex;align-items:center;gap:8px;justify-content:center;border:1px solid transparent;background:var(--deep);color:#fff;border-radius:12px;padding:11px 16px;min-height:44px;font-weight:700;text-decoration:none}.btn:hover{background:#00515b}.btn.secondary{background:#fff;color:var(--navy);border-color:#b9cece}.btn.secondary:hover{background:#f1f8f8}.btn.danger{background:#943e3e}.btn.tiny{padding:6px 10px;min-height:33px;font-size:.79rem;border-radius:9px}.btn.wide{width:100%}.ghost{border:0;background:transparent;color:var(--navy);border-radius:9px;padding:7px 9px;font-weight:700}.ghost:hover{background:#e7f1f0}.small{font-size:.8rem}.text-link{font-weight:700;text-decoration:none}.text-link:hover{text-decoration:underline}.icon-btn{border:1px solid var(--line);border-radius:12px;background:#fff;width:40px;height:40px;display:grid;place-items:center;color:var(--navy)}.icon{width:21px;height:21px;flex:0 0 auto;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.icon.mini{width:17px;height:17px}.icon.big{width:25px;height:25px}
.gate{min-height:100svh;display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.85fr);background:#fff}.gate-panel{margin:auto;max-width:570px;padding:44px clamp(25px,6vw,76px);width:100%}.gate-brand{display:flex;align-items:center;gap:9px;font-size:1.65rem;font-weight:850;letter-spacing:-.04em;margin-bottom:58px}.gate-brand img{width:52px;height:52px}.gate-intro{color:var(--muted);font-size:1.04rem;margin:12px 0 27px}.gate-visual{display:grid;place-items:center;background:linear-gradient(155deg,#dcf4f0 0%,#87c9ca 42%,#0e6776 100%);overflow:hidden;position:relative}.gate-visual:before,.gate-visual:after{content:"";position:absolute;border:1px solid #ffffff77;border-radius:50%;width:670px;height:670px;transform:translate(27%,-12%)}.gate-visual:after{width:450px;height:450px;transform:translate(-18%,37%)}.gate-visual-inner{z-index:1;color:#08394a;text-align:center;padding:40px}.gate-icon{font-size:5rem;color:#eaffd9}.gate-quote{font-size:clamp(2rem,4.3vw,4.4rem);line-height:1.08;font-weight:850;letter-spacing:-.05em}.gate-tag{margin-top:24px;color:#073645;font-weight:650}.field{display:grid;gap:6px;margin:12px 0}.field label{font-size:.87rem;font-weight:700}.field input,.field select,.field textarea{width:100%;min-height:43px;border:1px solid #b9cacd;border-radius:10px;padding:10px 12px;background:#fff;color:var(--ink)}.field textarea{min-height:110px;resize:vertical}.field input[type="checkbox"]{width:auto;min-height:0}.field-note{font-size:.8rem;color:var(--muted)}.form-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:17px}.alert{border-left:4px solid #ca8b29;background:#fff9e8;padding:12px 14px;border-radius:10px;font-size:.86rem;margin:14px 0}.alert.green{background:#eaf7ef;border-color:#23844a}.alert.blue{background:#e8f4f7;border-color:var(--teal)}
.shell{min-height:100svh;display:grid;grid-template-columns:250px minmax(0,1fr)}.sidebar{background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:100svh;position:sticky;top:0;height:100svh}.brand{padding:25px 16px 19px;display:flex;align-items:center;gap:9px}.brand strong{font-size:1.48rem;letter-spacing:-.05em}.brand small{display:block;font-size:.68rem;color:var(--muted)}.side-nav{padding:0 11px;display:grid;gap:5px}.nav-link{border:0;display:flex;align-items:center;gap:12px;padding:13px 14px;text-decoration:none;color:#304a5a;background:transparent;border-radius:12px;text-align:left;font-weight:680}.nav-link:hover,.nav-link.active{background:#e9f6f4;color:#005c65}.nav-link.active{box-shadow:inset 3px 0 var(--teal)}.side-footer{margin-top:auto;border-top:1px solid var(--line);padding:18px 14px;display:flex;gap:7px;align-items:center;font-size:.76rem;color:var(--muted);flex-wrap:wrap}.online-dot{width:8px;height:8px;border-radius:100%;background:#d69a32}.online-dot.online{background:#32a35e}.workspace{min-width:0;max-width:1600px;width:100%;margin:auto}.topbar{background:rgba(255,255,255,.96);min-height:72px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:flex-end;padding:10px clamp(18px,4vw,54px);gap:20px}.top-date{color:var(--muted);font-size:.9rem}.top-actions{display:flex;align-items:center;gap:10px}.avatar{border:0;border-radius:50%;width:38px;height:38px;background:#d8eee8;color:#00515b;font-weight:900}.mini-brand{display:none;align-items:center;gap:8px;margin-right:auto;font-size:1.25rem}main{padding:clamp(18px,3vw,45px) clamp(16px,4vw,56px) 95px;max-width:1300px;margin:auto}.bottom-nav{display:none}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:24px}.page-heading h1{margin-bottom:5px}.hero{background:linear-gradient(112deg,#d7f2ed 0%,#e7f6f2 58%,#e3effa 100%);border:1px solid #d2e9e4;border-radius:24px;padding:clamp(22px,3vw,34px);display:flex;align-items:center;justify-content:space-between;gap:18px;overflow:hidden;margin-bottom:26px;min-height:230px}.hero h1{max-width:470px}.hero p{margin:0 0 15px;max-width:480px;color:#355869}.hero-art{font-size:7rem;line-height:1;opacity:.93;filter:drop-shadow(0 12px 16px #53909b23)}.hero .eyebrow{margin-bottom:11px}.section-header{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:12px}.section-header h2{margin-bottom:0}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:20px}.card.flat{box-shadow:none}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.module-card{border:1px solid #dce8e9;background:#fff;text-align:left;min-height:137px;border-radius:17px;padding:18px;display:flex;flex-direction:column;align-items:flex-start;gap:8px;color:var(--ink);transition:border-color .2s,transform .2s}.module-card:hover{border-color:#75acb7;transform:translateY(-2px)}.module-card .ico-box{width:39px;height:39px;background:#e3f4eb;color:#087b69;border-radius:11px;display:grid;place-items:center}.module-card strong{font-size:1rem}.module-card small{color:var(--muted);font-size:.82rem}.chip{display:inline-flex;align-items:center;gap:6px;border-radius:30px;background:#e7f5ef;color:#17603d;padding:5px 10px;font-size:.75rem;font-weight:750}.chip.grey{background:#f0f4f6;color:#486172}.chip.amber{background:#fff2d4;color:#835913}.metric{font-size:1.9rem;font-weight:850;letter-spacing:-.04em;color:var(--navy)}.metric-card p{color:var(--muted);font-size:.87rem;margin:4px 0 0}.row{display:flex;align-items:center;justify-content:space-between;gap:13px}.stack{display:grid;gap:12px}.list-card{padding:0;overflow:hidden}.item{padding:14px 18px;border-bottom:1px solid #e9eff1;display:flex;gap:10px;align-items:center;justify-content:space-between}.item:last-child{border:0}.item-title{font-weight:700;word-break:break-word}.item-meta{font-size:.81rem;color:var(--muted);margin-top:2px}.item-main{min-width:0;flex:1}.item-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}.time-pill{display:inline-flex;align-items:center;justify-content:center;background:#e8f4f7;border-radius:8px;min-width:58px;padding:7px;color:#0a526a;font-weight:800;font-size:.82rem}.muted-button{background:#f2f6f6;color:#345566;border:0;border-radius:8px;padding:7px 10px;font-size:.8rem;font-weight:700}.muted-button:hover{background:#e4eeee}.status-empty{text-align:center;padding:34px 15px;color:var(--muted)}.status-empty strong{display:block;color:var(--ink);margin-bottom:6px}.status-empty .icon{color:var(--teal);width:37px;height:37px;margin-bottom:10px}.date-label{font-size:.88rem;font-weight:700;color:var(--muted)}.form-help{font-size:.85rem;color:var(--muted);margin:0 0 8px}.tagline{font-size:1.1rem;color:#315365}.banner{display:flex;gap:10px;align-items:flex-start;background:#eef6f8;border:1px solid #d2e7ed;border-radius:12px;padding:13px;font-size:.85rem;margin-bottom:18px}.banner svg{flex-shrink:0;color:#1b7080}.bar{height:9px;background:#e8edef;border-radius:12px;overflow:hidden}.bar span{display:block;height:100%;background:linear-gradient(90deg,#078d87,#54af6d);border-radius:12px}.pill-row{display:flex;gap:8px;flex-wrap:wrap}.filter{border:1px solid #c6d9db;border-radius:20px;padding:7px 12px;background:#fff;color:var(--navy);font-size:.87rem;font-weight:700}.filter.selected{background:#086e7d;border-color:#086e7d;color:#fff}.recipe-img{width:100%;height:120px;display:flex;justify-content:center;align-items:center;font-size:3.3rem;background:linear-gradient(130deg,#f3f8f3,#f7efde);border-radius:12px;margin-bottom:12px}.recipe-card{display:flex;flex-direction:column}.recipe-card h3{margin-bottom:4px}.recipe-card .meta-line{margin:4px 0 15px;font-size:.81rem;color:var(--muted)}.recipe-card .btn{margin-top:auto}.recipe-hero{background:linear-gradient(120deg,#f6f7ef,#e7f5ee);padding:20px;border-radius:18px;margin-bottom:18px}.recipe-hero .big-emoji{font-size:4rem}.ingredient{border-bottom:1px solid var(--line);padding:11px 0;display:flex;align-items:center;justify-content:space-between;gap:10px}.ingredient:last-child{border:0}.steps{counter-reset:st;display:grid;gap:10px;padding:0;list-style:none}.steps li{display:flex;gap:10px}.steps li:before{counter-increment:st;content:counter(st);display:grid;place-items:center;flex-shrink:0;width:28px;height:28px;border-radius:50%;background:#e0f4ed;color:#096847;font-weight:850}.check-row{display:flex;align-items:center;gap:10px}.check-row input[type=checkbox]{accent-color:var(--teal);height:20px;width:20px;flex-shrink:0}.checked{text-decoration:line-through;color:var(--muted)}.progress{height:8px;border-radius:8px;background:#e3edec;margin:10px 0;overflow:hidden}.progress span{display:block;background:var(--green);height:100%;border-radius:8px}.warn{color:#884032}.notice{border-radius:12px;padding:12px 15px;background:#edf8f6;color:#1b5660;font-size:.86rem}.note-pre{white-space:pre-wrap;word-break:break-word}.tool-row{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.mood{font-size:1.25rem}.photo-thumb{width:75px;height:75px;object-fit:cover;border-radius:9px}.photo-wide{max-width:100%;max-height:350px;border-radius:13px;object-fit:contain}.layout-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,.75fr);gap:18px}.settings-row{padding:12px 0;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:15px}.settings-row:last-child{border-bottom:0}.toggle{appearance:none;width:43px;height:26px;background:#adc3c6;border-radius:30px;position:relative;flex-shrink:0;transition:.2s;cursor:pointer}.toggle:before{content:"";position:absolute;left:3px;top:3px;width:20px;height:20px;background:white;border-radius:50%;transition:.2s}.toggle:checked{background:#087f78}.toggle:checked:before{transform:translateX(17px)}
.dialog{width:min(94vw,530px);max-height:90svh;border:1px solid #d3e1e2;box-shadow:0 25px 80px #042c3d44;border-radius:19px;padding:0;color:var(--ink)}.dialog::backdrop{background:#082b3b90}.dialog-header{padding:20px 22px 9px;border-bottom:1px solid #e7eeee;display:flex;justify-content:space-between;align-items:center}.dialog-header h2{margin:0}.dialog-body{padding:12px 22px 22px;overflow:auto;max-height:72svh}.dialog-body .field{margin:11px 0}.dialog-close{background:transparent;border:0;font-size:1.4rem;color:var(--ink);width:35px;height:35px}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,150px);z-index:1000;background:#083f4c;color:white;border-radius:12px;padding:12px 20px;max-width:min(90vw,460px);box-shadow:0 9px 30px #0003;transition:transform .25s;pointer-events:none}.toast.show{transform:translate(-50%,0)}.offline-badge{font-size:.74rem;font-weight:750;display:inline-block;padding:4px 10px;border-radius:20px;background:#e0f5e9;color:#086648}.mini-stack{display:grid;gap:4px}.soft-sep{border:0;border-top:1px solid var(--line);margin:17px 0}.plain-list{margin:8px 0;padding-left:21px}.plain-list li{margin-bottom:7px}.lock-fine{font-size:.78rem;color:var(--muted)}
@media(max-width:1150px){.grid.four{grid-template-columns:repeat(3,minmax(0,1fr))}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){.shell{grid-template-columns:1fr}.sidebar{display:none}.topbar{min-height:60px;padding:8px 17px}.mini-brand{display:flex}.top-date{display:none}.workspace{max-width:100%}main{padding:20px 15px calc(100px + var(--safe))}.bottom-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--line);z-index:10;padding:7px 5px calc(7px + var(--safe));box-shadow:0 -8px 22px #0b37420d}.bottom-link{display:flex;flex-direction:column;gap:2px;align-items:center;justify-content:center;padding:4px 0;background:none;border:0;color:#526a77;font-size:.66rem;font-weight:700;min-height:48px}.bottom-link.active{color:var(--deep)}.bottom-link .icon{width:23px;height:23px}.gate{grid-template-columns:1fr}.gate-visual{display:none}.gate-brand{margin-bottom:32px}.gate-panel{padding:30px 24px}.hero{min-height:185px}.hero-art{font-size:4rem}.grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}.layout-split{grid-template-columns:1fr}}
@media(max-width:540px){.grid{grid-template-columns:1fr}.grid.two{grid-template-columns:1fr}.grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{padding:19px;min-height:0}.hero-art{display:none}.card{padding:16px}.page-heading{margin-bottom:17px}.page-heading h1{font-size:1.8rem}.module-card{padding:13px;min-height:126px}.module-card strong{font-size:.9rem}.module-card small{font-size:.76rem}.grid.four{gap:9px}.item{padding:12px 14px}.time-pill{min-width:49px}.top-actions{gap:6px}.dialog-body{padding:12px 16px 20px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* 1.3: bokningar, kalendermånad, kostnad, steg och dokument */
.metric-link{display:block;width:100%;text-align:left;color:inherit;font:inherit;cursor:pointer}.metric-link:hover,.metric-link:focus-visible{outline:2px solid #006c72;outline-offset:2px}
.event-open{background:transparent;border:0;min-width:0;text-align:left;font:inherit;display:flex;flex-direction:column;gap:4px;cursor:pointer;padding:7px 0;color:inherit}.event-open:hover .item-title,.event-open:focus-visible .item-title{text-decoration:underline}.event-item{flex-wrap:wrap}.event-highlight{border-inline-start:4px solid #00707d}.event-item .item-actions{display:flex;gap:7px;flex-wrap:wrap}
.tag-care{background:#d4f3e2!important;color:#104c32!important}.tag-meeting{background:#dbe5ff!important;color:#233e87!important}.tag-personal{background:#ffedd1!important;color:#7c4300!important}.tag-other{background:#e5e8ed!important;color:#26394f!important}.tag-imported{background:#ecdeff!important;color:#4d2878!important}
.conflict-text{font-size:.85rem;font-weight:700;color:#8a3513}.conflicts{background:#fff0d9!important;border-color:#b66220!important;color:#78350f!important;margin:14px 0}
.calendar-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:space-between}.cal-toggle{display:flex;gap:7px}.cal-legend{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0 16px;font-size:.85rem}.legend-item{display:inline-flex;align-items:center;gap:5px}.legend-mark{display:inline-block;width:13px;height:13px;border-radius:4px;border:1px solid #999}
.calendar-board{border:1px solid #d8e6ea;border-radius:18px;background:white;padding:16px}.calendar-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}.month-switch{display:flex;align-items:center;gap:12px}.month-switch h2{font-size:1.18rem;margin:0;min-width:155px;text-align:center}.cal-weekdays,.cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.cal-weekdays{margin-bottom:7px}.cal-weekdays span{text-align:center;font-size:.8rem;font-weight:700;color:#234352}.cal-cell,.cal-blank{min-width:0;min-height:105px;padding:7px;border-radius:9px}.cal-cell{text-align:left;background:#fbfdfd;border:1px solid #dbe7e8;cursor:pointer;color:#14384a;font:inherit}.cal-cell:hover,.cal-cell:focus-visible{border-color:#00747b;outline:1px solid #00747b}.cal-cell.chosen{border:2px solid #006e79;background:#effaf8}.cal-cell.is-today .cal-number{color:#006a70}.cal-number{display:block;font-weight:800}.cal-events{display:flex;flex-direction:column;gap:3px;margin-top:5px}.cal-event{font-size:.68rem;line-height:1.3;border-radius:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:3px 4px}.cal-event small{font-size:.7rem}.conflict-dot{background:#9b3d16;color:white;border-radius:50%;padding:0 5px;font-size:.7rem}.calendar-day-list{margin-top:22px}
.recipe-price{display:flex;flex-wrap:wrap;gap:18px;padding:18px 22px;margin:0 0 20px;border:2px solid #8cbda4;border-radius:16px;background:#e9f9f0;align-items:center}.recipe-price>span{flex:1;min-width:180px;display:flex;flex-direction:column;gap:2px}.recipe-price small{font-size:.84rem;color:#204936}.recipe-price strong{font-size:1.55rem;color:#064f40}.recipe-price .price-note{flex-basis:100%}
.steps-checkable{list-style:none!important;padding:0!important;counter-reset:none!important}.steps-checkable li{padding:0!important;margin:7px 0!important}.steps-checkable li::before{display:none!important}.step-check{display:flex;gap:12px;align-items:flex-start;cursor:pointer;padding:12px;border-radius:10px;border:1px solid #d7e6e3}.step-check:hover{background:#f0faf7}.step-check input{width:22px;height:22px;flex-shrink:0;accent-color:#00767a}.step-text.checked{text-decoration:line-through;color:#486369}
.document-item{align-items:flex-start}.document-previews{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.doc-thumb{border:1px solid #d7e5e6;border-radius:10px;background:white;cursor:pointer;overflow:hidden;padding:0}.doc-thumb img{display:block;width:104px;height:104px;object-fit:cover}
@media(max-width:720px){.cal-cell,.cal-blank{min-height:77px;padding:3px}.cal-weekdays,.cal-grid{gap:3px}.cal-event{font-size:.59rem;padding:2px}.cal-events .cal-event:nth-child(n+2){display:none}.calendar-board{padding:9px}.month-switch{gap:4px}.month-switch h2{min-width:125px;font-size:1rem}.calendar-toolbar{gap:4px}.calendar-actions{justify-content:flex-start}.recipe-price strong{font-size:1.3rem}.event-item .item-actions{width:100%;justify-content:flex-end}.document-item .item-actions{width:100%}}

/* Levidag 1.4: läkemedelstid i tydliga valbara 24h-fält */
.med-times{display:grid;gap:9px}.med-time-row{display:flex;align-items:end;gap:9px;padding:11px;border:1px solid #d0e1e2;background:#f6faf9;border-radius:12px}.med-select{flex:1;min-width:0}.med-select label{display:block;font-size:.78rem;font-weight:750;color:#234659}.med-select select{width:100%;margin-top:5px;min-height:46px;border:1px solid #aac8cb;border-radius:9px;padding:8px;background:#fff;color:#0a3043;font-size:1.05rem;font-variant-numeric:tabular-nums}.med-time-sep{padding-bottom:10px;font-size:1.4rem;font-weight:800}.med-remove{display:grid;place-items:center;min-height:43px;min-width:40px}.med-remove svg{width:18px;height:18px}.med-add{margin-top:10px}.field-title{display:block;font-weight:750;font-size:.9rem}.med-page-info{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 12px;color:#315365;font-size:.84rem;flex-wrap:wrap}.med-item{flex-wrap:wrap}.med-item .item-actions{display:flex;gap:8px;flex-wrap:wrap}
@media (max-width:480px){.med-time-row{gap:6px;padding:8px}.med-item .item-actions{width:100%;justify-content:flex-end}}

/* 1.5: tydliga Ändra-knappar, användarval för mörkt/ljust/system */
.item .btn.tiny.secondary{white-space:nowrap}.item .muted-button{white-space:nowrap}.item-actions{flex-wrap:wrap}.recipe-card-buttons{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-top:auto}.recipe-detail-actions{display:flex;gap:8px;flex-wrap:wrap}.gate-theme{margin:18px 0}.gate-theme h2{font-size:.93rem;margin-bottom:9px}.theme-picker{display:flex;gap:7px;flex-wrap:wrap}.theme-choice{border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);padding:9px 12px;font-size:.87rem;font-weight:750;min-height:43px}.theme-choice[aria-pressed="true"]{background:var(--deep);border-color:var(--deep);color:#fff}.theme-choice:hover{box-shadow:0 0 0 2px #0b919b55}.theme-shortcut{font-size:1.3rem;line-height:1}
@media(max-width:600px){.item:not(.event-item){flex-wrap:wrap}.item-actions{gap:7px}.recipe-card-buttons .btn{flex:1}}
/* Dark colors: override old hard-coded light surfaces, preserve category semantics and readable focus. */
html[data-theme="dark"]{--ink:#e7f2f5;--navy:#eaf8fc;--teal:#55b9c4;--deep:#087989;--green:#63c98a;--light:#193b3c;--surface:#132f3b;--bg:#0c202b;--line:#36535e;--muted:#b5cbd4;--shadow:0 10px 30px rgba(0,0,0,.20)}
html[data-theme="dark"] body{background:var(--bg);color:var(--ink)}
html[data-theme="dark"] .gate,html[data-theme="dark"] .sidebar,html[data-theme="dark"] .topbar,html[data-theme="dark"] .bottom-nav,html[data-theme="dark"] .card,html[data-theme="dark"] .module-card,html[data-theme="dark"] .dialog,html[data-theme="dark"] .calendar-board{background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .gate-visual{background:linear-gradient(145deg,#154e58,#1a6672,#0b293e)}
html[data-theme="dark"] .gate-visual-inner,html[data-theme="dark"] .gate-tag{color:#eaf6f2}
html[data-theme="dark"] .gate-icon{color:#d6ffbf}
html[data-theme="dark"] .brand small,html[data-theme="dark"] .muted,html[data-theme="dark"] .fine,html[data-theme="dark"] .item-meta,html[data-theme="dark"] .module-card small,html[data-theme="dark"] .date-label{color:var(--muted)}
html[data-theme="dark"] .nav-link,html[data-theme="dark"] .bottom-link{color:#cbdee6}
html[data-theme="dark"] .nav-link.active,html[data-theme="dark"] .nav-link:hover,html[data-theme="dark"] .bottom-link.active{background:#25525a;color:#f0fff9}
html[data-theme="dark"] .hero{background:linear-gradient(105deg,#183a43,#1b3d43,#243d59);border-color:#406268}
html[data-theme="dark"] .hero p,html[data-theme="dark"] .hero .eyebrow{color:#d1e8ea}
html[data-theme="dark"] .field input,html[data-theme="dark"] .field select,html[data-theme="dark"] .field textarea,html[data-theme="dark"] .med-select select,html[data-theme="dark"] .theme-choice,html[data-theme="dark"] .filter,html[data-theme="dark"] .icon-btn{background:#193944;border-color:#5a7780;color:#f2fbff}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#a5bec6}
html[data-theme="dark"] .btn.secondary,html[data-theme="dark"] .muted-button,html[data-theme="dark"] .ghost,html[data-theme="dark"] .cal-cell,html[data-theme="dark"] .doc-thumb{background:#23424d;color:#f0faff;border-color:#56717a}
html[data-theme="dark"] .btn.secondary:hover,html[data-theme="dark"] .muted-button:hover,html[data-theme="dark"] .ghost:hover,html[data-theme="dark"] .cal-cell:hover{background:#305662}
html[data-theme="dark"] .banner,html[data-theme="dark"] .notice,html[data-theme="dark"] .med-time-row{background:#193c47;border-color:#42636d;color:#eff7fa}
html[data-theme="dark"] .banner svg{color:#8ce5ee}
html[data-theme="dark"] .alert{background:#483b22;color:#fff0ce;border-color:#dba34a}
html[data-theme="dark"] .alert.green{background:#1e4835;color:#e1ffe9;border-color:#68c791}
html[data-theme="dark"] .alert.blue{background:#194753;color:#d9faff;border-color:#68bacb}
html[data-theme="dark"] .chip{background:#224d40;color:#adf5cd}
html[data-theme="dark"] .chip.grey{background:#2a4855;color:#d0e6ed}
html[data-theme="dark"] .chip.amber{background:#554223;color:#ffeab6}
html[data-theme="dark"] .time-pill{background:#2d5460;color:#e8faff}
html[data-theme="dark"] .metric,html[data-theme="dark"] .field-title,html[data-theme="dark"] .med-page-info{color:var(--ink)}
html[data-theme="dark"] .cal-cell{background:#193641;color:#eef8fb}
html[data-theme="dark"] .cal-cell.chosen{background:#215059;border-color:#70ccd6}
html[data-theme="dark"] .cal-weekdays span,html[data-theme="dark"] .med-select label{color:#c9e1e9}
html[data-theme="dark"] .recipe-price{background:#1f493d;border-color:#4d9477;color:#eafff2}
html[data-theme="dark"] .recipe-price strong,html[data-theme="dark"] .recipe-price small{color:#d8ffef}
html[data-theme="dark"] .step-check{border-color:#41616c;color:#e5f8f9}
html[data-theme="dark"] .step-check:hover{background:#25515b}
html[data-theme="dark"] .step-text.checked{color:#b8cfd1}
html[data-theme="dark"] .recipe-img{background:linear-gradient(130deg,#254d4a,#403f2b)}
html[data-theme="dark"] .item{border-color:#36545e}
html[data-theme="dark"] .filter.selected,html[data-theme="dark"] .theme-choice[aria-pressed="true"]{background:#087989;border-color:#6cc0c9;color:#fff}
html[data-theme="dark"] .tag-care{background:#245642!important;color:#b0f2c9!important}
html[data-theme="dark"] .tag-meeting{background:#2e447a!important;color:#d8e5ff!important}
html[data-theme="dark"] .tag-personal{background:#634728!important;color:#fff2dc!important}
html[data-theme="dark"] .tag-other{background:#455469!important;color:#e6eaf0!important}
html[data-theme="dark"] .tag-imported{background:#5c4274!important;color:#f0dcff!important}
html[data-theme="dark"] .conflicts{background:#5c361e!important;border-color:#eeaa71!important;color:#fff5e6!important}
html[data-theme="dark"] .dialog-header{border-color:var(--line)}
html[data-theme="dark"] .toggle{background:#60727a}
html[data-theme="dark"] .toggle:checked{background:#13a0a7}
html[data-theme="dark"] .filter:hover{border-color:#8dd5dd}
html[data-theme="dark"] .theme-choice:hover{background:#315965}

/* 1.6 Repetition, goal numbers, direct deletion controls */
.entry-controls{display:inline-flex;flex-wrap:wrap;gap:6px;align-items:center}
.btn.danger{background:#9a3641;color:#fff;border-color:#9a3641}.btn.danger:hover{background:#7f2430}.btn.danger:focus-visible{outline:3px solid #e3a1a8}
.task-schedule{display:block;font-size:.77rem;color:var(--muted);margin-top:3px;font-weight:500}
.task-frequency-opts[hidden],.goal-value-fields[hidden]{display:none!important}
.weekday-selector{display:flex;flex-wrap:wrap;gap:8px;margin-top:9px}
.weekday-selector label{display:inline-flex;gap:6px;align-items:center;background:var(--surface);border:1px solid var(--line);padding:7px 11px;border-radius:10px;color:var(--ink);font-size:.89rem}
.weekday-selector input{width:17px;height:17px;accent-color:#087989}
.goal-value-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px;border-radius:13px;border:1px solid var(--line);background:var(--surface)}
.goal-value-fields .field-note{grid-column:1/-1}.goal-progress-label{font-size:.88rem;font-weight:650;color:var(--ink);margin:8px 0}
html[data-theme="dark"] .weekday-selector label{background:#23424d;color:#f1fafb;border-color:#5d7c87}
@media(max-width:560px){.goal-value-fields{grid-template-columns:1fr}.entry-controls{margin-left:auto}.item .entry-controls .btn{padding:6px 9px}}

/* Version 1.7: optional time picker for repeating tasks, recipe discovery, contrast, print */
.task-time-field{min-inline-size:0;border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin:12px 0;background:var(--surface)}
.task-time-field legend{font-size:.9rem;font-weight:800;padding:0 6px;color:var(--ink)}
.task-time-selectors{display:flex;gap:10px;align-items:center;max-width:440px}
.task-time-selectors .field{flex:1;min-width:0}
.task-time-selectors select{min-height:46px;width:100%;cursor:pointer}
.time-colon{font-size:1.5rem;font-weight:800;margin-top:22px;color:var(--ink)}
.recipe-browser-controls{display:grid;gap:15px;margin-bottom:18px}
.recipe-filter-row{display:grid;grid-template-columns:1fr 1fr minmax(200px,1.5fr);gap:13px;align-items:end}
.recipe-filter{min-width:0}
.recipe-filter-row .field{margin:0}
.recipe-filter-row label span{display:block;font-weight:750;font-size:.84rem;margin-bottom:6px}
.recipe-filter-row select,.recipe-filter-row input{width:100%;min-height:44px;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:8px 11px;color:var(--ink)}
.recipe-search{display:flex;align-items:end;gap:9px}
.recipe-search .field{flex:1;min-width:0}
.recipe-count{color:var(--muted);font-size:.85rem;margin:0 0 14px}
.recipe-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.recipe-tags{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0}
.recipe-tags .chip{font-size:.73rem}
.recipe-img{height:164px;overflow:hidden;display:grid;place-items:center}
.recipe-img img{display:block;width:100%;height:100%;object-fit:cover}
.recipe-card .meta-line{margin-top:auto;padding-top:10px}
.recipe-image-fallback{display:grid;place-items:center;gap:4px;text-align:center;min-height:100%;width:100%;font-size:3rem}
.recipe-image-fallback small{font-size:.7rem;color:#506c73}
.recipe-hero{display:grid;grid-template-columns:minmax(240px,1fr) 1.15fr;gap:25px;align-items:center;background:#eef7f2;color:#0b2e3c;border:1px solid #c7e4db}
.recipe-detail-photo{min-height:180px;aspect-ratio:16/9;display:grid;place-items:center;overflow:hidden;border-radius:13px;background:#e5f2e9}
.recipe-detail-photo img{display:block;width:100%;height:100%;object-fit:cover;max-height:275px}
.recipe-hero-content h2{margin:0 0 12px;font-size:1.35rem;color:inherit}
.recipe-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.recipe-facts>div{background:rgba(255,255,255,.48);border-radius:10px;padding:10px}
.recipe-facts strong{display:block;font-size:.77rem;color:#34545e}
.recipe-facts span{display:block;font-weight:800;color:#0b2e3c;margin-top:4px}
.recipe-empty{grid-column:1/-1}
.recipe-columns{margin-bottom:18px}
html[data-theme="dark"] .recipe-hero{background:#203c47;color:#f2fafb;border-color:#66848d}
html[data-theme="dark"] .recipe-facts>div{background:#17333e}
html[data-theme="dark"] .recipe-facts strong{color:#bed7df}
html[data-theme="dark"] .recipe-facts span{color:#f0fcff}
html[data-theme="dark"] .recipe-image-fallback small{color:#d0e8ed}
html[data-theme="dark"] .recipe-detail-photo{background:#234b51}
html[data-theme="dark"] .recipe-filter-row select,html[data-theme="dark"] .recipe-filter-row input{background:#193944;border-color:#62838e;color:#effaff}
html[data-theme="dark"] .task-time-field{background:#173440;border-color:#557582}
.sidebar .brand img,.mini-brand img{background:#f6fffc;border-radius:10px;padding:2px;box-sizing:border-box}
.event-open .event-meta{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px}
.event-meta>span{font-size:.76rem;border:1px solid var(--line);padding:4px 7px;border-radius:7px;color:var(--ink);white-space:normal}
.event-description{display:block;margin-top:9px;font-size:.88rem;color:var(--muted);line-height:1.5}
.event-item{align-items:flex-start;gap:14px}
.event-item .item-actions{margin-left:auto}
.event-open{padding:0;text-align:left}
#print-recipe{display:none}
@media(max-width:900px){.recipe-hero{grid-template-columns:1fr}.recipe-filter-row{grid-template-columns:1fr 1fr}.recipe-search{grid-column:1/-1}.recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:570px){.recipe-filter-row{grid-template-columns:1fr}.recipe-search{grid-column:auto}.recipe-grid{grid-template-columns:1fr}.recipe-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.event-item{flex-wrap:wrap}.event-item .item-actions{width:100%;justify-content:flex-end}.task-time-selectors{gap:5px}}
@media print {
 @page{size:auto;margin:16mm}
 html,body{background:white!important;color:black!important;font:11pt/1.5 Georgia,serif!important}
 body > :not(#print-recipe){display:none!important}
 #print-recipe{display:block!important;margin:0 auto;max-width:180mm;color:black!important;background:#fff!important}
 #print-recipe h1{font-size:24pt;margin-bottom:6mm}
 #print-recipe h2{font-size:14pt;margin-top:7mm}
 #print-recipe p{margin:2mm 0}
 #print-recipe li{margin:2mm 0;break-inside:avoid}
 #print-recipe footer{border-top:1px solid #aaa;margin-top:12mm;padding-top:3mm;font-size:9pt;color:#555}
}

/* 1.8 – presentation, nutrition, photos and accessible wrench button */
.theme-shortcut .icon{width:20px;height:20px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
.recipe-preview-intro{font-size:.95rem;line-height:1.55;color:inherit;max-width:48ch;margin:0 0 13px}
.recipe-introduction{padding:22px 24px;margin:18px 0 20px;border:1px solid var(--line);background:var(--surface);border-radius:16px}
.recipe-introduction h2{margin:0 0 12px;font-size:1.25rem}
.recipe-introduction p{line-height:1.67;margin:0 0 10px;max-width:78ch}
.recipe-introduction p:last-child{margin-bottom:0}
.nutrition-card{margin-top:18px}
.nutrition-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:15px 0}
.nutrition-grid>div{border:1px solid var(--line);border-radius:10px;padding:12px;background:var(--surface-secondary,var(--bg))}
.nutrition-grid small{display:block;color:var(--muted);font-weight:650;margin-bottom:5px}
.nutrition-grid strong{font-size:1.05rem;color:var(--ink)}
.nutrition-100{margin-top:12px}
.photo-choices{display:flex;gap:10px;flex-wrap:wrap}
.photo-option{position:relative;cursor:pointer;min-height:45px;display:inline-flex;gap:8px;align-items:center}
.photo-option input{position:absolute;opacity:0;width:1px;height:1px;inset:auto;pointer-events:none}
.photo-option:focus-within{outline:3px solid #33b6bc;outline-offset:2px}
.diary-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;margin:14px 0}
.diary-photos .photo-wide{width:100%;max-height:270px;object-fit:cover;border-radius:12px;margin:0}
@media(max-width:570px){.nutrition-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.recipe-introduction{padding:16px}.photo-choices .photo-option{flex:1}}
@media print{#print-recipe .print-food-photo{display:block;object-fit:cover;max-height:70mm;width:100%;margin:4mm 0 7mm}#print-recipe .print-intro{font-style:italic}#print-recipe .print-food-photo{break-inside:avoid}}

/* Receptredaktionen 1.10 */
.recipe-pagination{display:flex;justify-content:center;margin:24px 0 14px}
.recipe-pagination .btn{min-width:190px}
.banner[role="status"]{flex-wrap:wrap;align-items:center}
.banner[role="status"] .btn{margin-left:auto;flex-shrink:0}
@media(max-width:600px){.banner[role="status"] .btn{margin-left:0}}

/* 1.10.1 – Receptens historik i egen sektion, aldrig dubblerad i hero och body. */
.recipe-hero{align-items:start}
.recipe-hero-content{min-width:0}
.recipe-hero-content .recipe-preview-intro{max-width:68ch;white-space:normal;overflow-wrap:anywhere;line-height:1.65}
.recipe-detail-photo{align-self:start}
.recipe-introduction{max-width:100%;}
.recipe-introduction p{max-width:95ch;line-height:1.8;white-space:pre-line}
.recipe-tips{padding-top:14px;margin-top:15px;border-top:1px solid var(--line)}
.recipe-tips h3{font-size:1rem;margin:0 0 8px}
@media(max-width:900px){.recipe-detail-photo{width:100%;max-height:350px}}

/* Namnsdagar – Levidag 1.11 */
.nameday-home{display:flex;align-items:center;gap:18px;margin:0 0 24px;padding:18px 22px;border:1px solid var(--line,rgba(64,148,115,.22));}
.nameday-flower{flex:0 0 52px;height:52px;display:grid;place-items:center;font-size:34px;color:#65a34e;background:rgba(112,173,91,.13);border-radius:16px;}
.nameday-home-content{flex:1;min-width:0;}.nameday-home-content strong{display:block;font-size:1.2rem;line-height:1.35;margin-top:4px}.nameday-home-content p{margin:5px 0 0;font-size:.86rem;opacity:.82}
.nameday-mini-label{font-size:.71rem;letter-spacing:.1em;font-weight:750;opacity:.7}.nameday-due{margin-top:9px;display:grid;gap:5px;font-size:.86rem;color:var(--text,#123)}
.cal-namnsdag{display:block;line-height:1.15;font-size:.66rem;font-weight:600;color:var(--muted,#5d7b73);padding:3px 2px 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;}
.nameday-selected{display:flex;align-items:center;gap:13px;padding:14px 18px;margin:0 0 14px;border:1px solid rgba(100,154,108,.26);background:rgba(96,164,103,.075);border-radius:14px;flex-wrap:wrap;}
.nameday-selected>span{font-size:27px;color:#5f9c55}.nameday-selected>div:nth-child(2){flex:1;min-width:160px}.nameday-selected strong{font-size:.9rem}.nameday-selected p{font-size:.91rem;margin:3px 0 0}.nameday-actions{display:flex;gap:6px;flex-wrap:wrap}
.nameday-settings{scroll-margin-top:20px}.nameday-settings .settings-row{gap:12px}.nameday-options{display:flex;flex-wrap:wrap;gap:13px;margin:16px 0}.nameday-options label{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:.87rem}.nameday-options select{max-width:180px;min-height:36px;border-radius:8px;}
.nameday-watch-form{padding:16px 0;display:grid;gap:10px}.nameday-watch-form label{font-weight:600;display:grid;gap:5px;font-size:.86rem}.nameday-watch-form input{width:100%;box-sizing:border-box;padding:10px;border-radius:9px;border:1px solid var(--line,#ccd)}.nameday-watch-form button{justify-self:start}
.nameday-watch-list{display:grid;gap:8px;border-top:1px solid var(--line,#ccd);padding-top:15px}.nameday-watch-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line,#ccd);}.nameday-watch-row small{display:block;margin-top:3px;opacity:.8}.nameday-browser-notify{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:16px 0 8px}
@media(max-width:650px){.nameday-home{gap:10px;padding:14px;flex-wrap:wrap}.nameday-home-content{flex-basis:calc(100% - 70px)}.nameday-home>button{margin-left:58px}.nameday-flower{flex-basis:46px;height:46px}.cal-namnsdag{font-size:0;max-height:1.3rem;text-align:center;padding:4px 0}.cal-namnsdag::before{content:'✿';font-size:.86rem;color:#80bc74}.nameday-selected{padding:12px;gap:9px}}


/* Levidag 1.11.1 – namnsdagssökning och en-knappsbevakning */
.nameday-search-panel{border:1px solid var(--line,#ccd);border-radius:14px;padding:16px;margin:18px 0 0;background:var(--surface,#ffffff);}
.nameday-search-panel>label{display:block;font-size:1rem;margin-bottom:4px;}
.nameday-search-panel>.fine{margin:2px 0 12px;}
#nameday-name-search{display:block;width:100%;box-sizing:border-box;border:1px solid var(--line,#ccd);background:var(--field,#ffffff);color:var(--text,#123);border-radius:10px;padding:12px 14px;font:inherit;min-height:45px;}
#nameday-name-search:focus-visible{outline:2px solid var(--accent,#00859a);outline-offset:2px;}
.nameday-search-help{padding:10px 0 0;margin:4px 0;color:var(--muted,#637878);font-size:.88rem;line-height:1.5;}
.nameday-search-count{padding:12px 0 4px;color:var(--muted,#637878);font-size:.8rem;}
.nameday-search-list{display:grid;gap:6px;margin-top:8px;}
.nameday-search-result{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 11px;border-radius:10px;background:var(--bg,#f5faf9);border:1px solid var(--line,#ccd);}
.nameday-search-result-copy{display:grid;gap:3px;min-width:0;}
.nameday-search-result-copy strong{font-size:.96rem;overflow-wrap:anywhere;}
.nameday-search-result-copy small{color:var(--muted,#637878);font-size:.81rem;}
.nameday-search-result button{white-space:nowrap;flex-shrink:0;}
.nameday-search-result button:disabled{opacity:.62;cursor:default;}
.nameday-alternate-form{margin-top:19px;}
.nameday-alternate-form h3{font-size:.95rem;margin:0 0 5px;}
.nameday-alternate-form p{margin:0;}
@media(max-width:470px){.nameday-search-panel{padding:12px}.nameday-search-result{gap:7px;padding:9px}.nameday-search-result button{font-size:.76rem;padding:8px 9px}}

/* Levidag 1.12 – födelsedagar */
.birthday-home{display:flex;align-items:center;gap:18px;padding:18px 22px;margin:0 0 24px;border:1px solid var(--line,rgba(64,148,115,.24));}
.birthday-symbol{flex:0 0 52px;height:52px;display:grid;place-items:center;font-size:30px;background:rgba(210,143,77,.15);border-radius:16px;}
.birthday-home-content{flex:1;min-width:0}.birthday-home-content>strong{display:block;font-size:1.15rem;margin:4px 0 8px}.birthday-home-content p{font-size:.87rem;opacity:.85;margin:5px 0}.birthday-upcoming{display:grid;gap:6px;font-size:.87rem}.birthday-upcoming>div{display:flex;gap:8px;flex-wrap:wrap}.birthday-upcoming span{color:var(--muted)}.birthday-due{font-weight:650}
.cal-birthday{display:block;margin:5px 0 1px;border-radius:6px;padding:3px 5px;background:rgba(214,147,67,.17);font-size:.72rem;text-align:left;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cal-birthday>span{vertical-align:middle}
.birthday-selected{display:flex;align-items:center;gap:13px;padding:14px 18px;margin:0 0 14px;border:1px solid rgba(205,155,79,.28);background:rgba(218,154,83,.09);border-radius:14px;flex-wrap:wrap}.birthday-selected>span{font-size:24px}.birthday-selected>div{flex:1;min-width:140px}.birthday-selected p{margin:5px 0 0;font-size:.91rem}
.birthday-settings{scroll-margin-top:25px}.birthday-heading h2{margin-bottom:7px}.birthday-form{border:1px solid var(--line);padding:17px;border-radius:14px;margin:20px 0;background:var(--surface)}.birthday-form h3{margin:0 0 15px;font-size:1.05rem}.birthday-form label{display:grid;gap:6px;font-size:.87rem;font-weight:620;margin:0 0 13px}.birthday-form input:not([type=checkbox]),.birthday-form select{width:100%;box-sizing:border-box;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:9px;padding:10px 12px;min-height:42px;font:inherit}.birthday-form .birthday-checkbox{display:flex;align-items:center;gap:9px}.birthday-date-fields{display:grid;grid-template-columns:90px 1fr 1fr;gap:10px}.birthday-form-actions{display:flex;gap:10px;flex-wrap:wrap}.birthday-list{display:grid;gap:6px;margin:20px 0}.birthday-list h3{margin-bottom:5px}.birthday-list-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid var(--line)}.birthday-list-row strong,.birthday-list-row small{display:block}.birthday-list-row small{font-size:.81rem;margin-top:3px;color:var(--muted)}.birthday-row-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
@media(max-width:720px){.birthday-home{gap:10px;padding:13px;flex-wrap:wrap}.birthday-symbol{flex-basis:42px;height:42px}.birthday-home-content{flex-basis:calc(100% - 60px)}.birthday-home>button{margin-left:52px}.cal-birthday{font-size:0;text-align:center;max-height:20px;padding:3px}.cal-birthday>span{display:none}.cal-birthday::first-letter{font-size:.78rem}.birthday-date-fields{grid-template-columns:75px 1fr}.birthday-date-fields label:last-child{grid-column:1/-1}.birthday-list-row{align-items:flex-start;flex-direction:column}.birthday-row-actions{justify-content:flex-start}}
html[data-theme="dark"] .birthday-home,html[data-theme="dark"] .birthday-settings,html[data-theme="dark"] .birthday-form{color:#e9f5f8}html[data-theme="dark"] .cal-birthday{background:rgba(207,149,73,.25)}html[data-theme="dark"] .birthday-form input:not([type=checkbox]),html[data-theme="dark"] .birthday-form select{background:#1c3e4a;color:#f0f8fb;border-color:#55727c}

/* Levidag 1.13 – egen sida för födelsedagar och viktiga dagar */
.date-shortcuts{display:flex;gap:12px;flex-wrap:wrap;margin:0 0 20px}.date-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}.date-sections>.card{min-width:0}.important-days-card{scroll-margin-top:22px}.important-home{display:flex;align-items:center;gap:17px;padding:17px 22px;margin:0 0 22px;border:1px solid var(--line,rgba(64,148,115,.22))}.important-symbol{display:grid;place-items:center;flex:0 0 52px;width:52px;height:52px;font-size:27px;background:rgba(220,116,128,.12);border-radius:16px}.important-home-copy{flex:1;min-width:0}.important-home-copy>strong{display:block;font-size:1.08rem;margin:5px 0}.important-home-copy p,.important-next{font-size:.87rem;color:var(--muted);margin:5px 0}.important-next{display:grid;gap:5px}.important-next b{color:var(--ink)}.cal-important{display:block;margin:4px 0 1px;border-radius:6px;padding:3px 5px;background:rgba(220,110,150,.15);font-size:.72rem;text-align:left;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.important-days-card .birthday-form{margin-top:16px}
@media (max-width:1100px){.date-sections{grid-template-columns:1fr}}
@media (max-width:720px){.important-home{flex-wrap:wrap;padding:13px;gap:10px}.important-symbol{flex-basis:42px;width:42px;height:42px}.important-home-copy{flex-basis:calc(100% - 60px)}.important-home>button{margin-left:52px}.cal-important{font-size:0;text-align:center;padding:3px;max-height:20px}.cal-important>span{display:none}.cal-important::first-letter{font-size:.8rem}.date-shortcuts .btn{flex:1;min-width:160px}}
html[data-theme="dark"] .important-home,html[data-theme="dark"] .important-days-card{color:#e9f5f8}html[data-theme="dark"] .cal-important{background:rgba(215,108,150,.22)}


/* Levidag 1.13.1 – gemensamma formulärfärger i mörkt tema.
   Påverkar enbart dark; ljus- och enhetsläge fortsätter som tidigare. */
html[data-theme="dark"] {
  --field: #193944;
  --field-border: #5a7780;
  --field-text: #f2fbff;
  --field-placeholder: #b6cbd4;
  --text: #e7f2f5;
  color-scheme: dark;
}
html[data-theme="light"] { color-scheme: light; }

/* Samma bakgrund och kontrast i alla skrivbara fält, även dem utan .field. */
html[data-theme="dark"] :is(
  input[type="text"], input[type="search"], input[type="email"],
  input[type="password"], input[type="tel"], input[type="url"],
  input[type="number"], input[type="date"], input[type="time"],
  input[type="datetime-local"], input[type="month"], input[type="week"],
  input:not([type]), textarea, select
) {
  background-color: var(--field);
  color: var(--field-text);
  border-color: var(--field-border);
  color-scheme: dark;
}

/* Namnsdagssökningen har en ID-regel och behöver uttrycklig temastyrning. */
html[data-theme="dark"] #nameday-name-search {
  background-color: var(--field);
  color: var(--field-text);
  border-color: var(--field-border);
}
html[data-theme="dark"] :is(input,textarea)::placeholder {
  color: var(--field-placeholder);
  opacity: 1;
}
html[data-theme="dark"] :is(input,textarea,select):focus-visible {
  outline-color: #4ed0da;
}
html[data-theme="dark"] select option,
html[data-theme="dark"] select optgroup {
  background-color: #193944;
  color: #f2fbff;
}
html[data-theme="dark"] :is(input,textarea,select):disabled {
  opacity: .65;
}
html[data-theme="dark"] input[type="file"] {
  color: var(--field-text);
}
html[data-theme="dark"] input[type="file"]::file-selector-button {
  background: #244d58;
  color: #f2fbff;
  border: 1px solid var(--field-border);
  border-radius: 8px;
  padding: 8px 12px;
  margin-right: 10px;
}
/* Chrome autofyller ibland med egen ljus färg; behåll läsbar text. */
html[data-theme="dark"] input:-webkit-autofill {
  -webkit-text-fill-color: #f2fbff;
  -webkit-box-shadow: 0 0 0 1000px #193944 inset;
  caret-color: #f2fbff;
}

/* Levidag 1.13.2 – dedicated, high-specificity dark input fix.
   Search controls and Chrome/WebKit formerly sometimes used a white fallback. */
html[data-theme="dark"] #nameday-name-search,
html[data-theme="dark"] .nameday-watch-form input:not([type="checkbox"]),
html[data-theme="dark"] :is(input[type="text"], input[type="search"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="date"], input[type="time"], input[type="password"], textarea, select) {
  background-color: #193944 !important;
  color: #f2fbff !important;
  border-color: #5a7780 !important;
  color-scheme: dark;
}
html[data-theme="dark"] :is(input,textarea)::placeholder {
  color: #b6cbd4 !important;
  opacity: 1;
}
html[data-theme="dark"] #nameday-name-search:focus-visible {
  outline: 2px solid #4ed0da;
  outline-offset: 2px;
}
html[data-theme="dark"] :is(input,textarea,select):-webkit-autofill {
  -webkit-text-fill-color: #f2fbff !important;
  -webkit-box-shadow: 0 0 0 1000px #193944 inset !important;
}


/* 1.14 – Humörspårning på startsidan */

.hero-copy{display:grid;gap:10px;min-width:0;flex:1}
.hero-copy>.btn{justify-self:start}
.mood-panel{margin-top:8px;background:rgba(255,255,255,.42);border:1px solid rgba(94,146,156,.24);border-radius:18px;padding:16px 17px;backdrop-filter:blur(3px)}
.mood-panel-top{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin-bottom:14px}
.mood-panel-top strong,.mood-trend-head strong{display:block;font-size:1.03rem;line-height:1.3}
.mood-panel-top p,.mood-trend-head p{margin:4px 0 0;color:#355869;font-size:.9rem;max-width:64ch}
.mood-kicker{font-size:.72rem;font-weight:850;letter-spacing:.14em;color:#486a77;text-transform:uppercase;margin-bottom:4px}
.mood-actions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.mood-btn{border:1px solid #b8d4da;background:#f9ffff;border-radius:14px;padding:10px 6px;display:grid;gap:4px;justify-items:center;color:#143847;font-weight:700;min-height:74px}
.mood-btn:hover{border-color:#6faebb;transform:translateY(-1px)}
.mood-btn.selected{background:#dff2ef;border-color:#097d77;box-shadow:0 0 0 2px rgba(8,127,120,.12)}
.mood-emoji{font-size:1.5rem;line-height:1}.mood-btn-label{font-size:.78rem}
.mood-trend{border-top:1px solid rgba(89,125,136,.18);padding-top:14px}
.mood-trend-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.mood-range{display:flex;gap:6px;flex-wrap:wrap}
.mood-range-btn{border:1px solid #b5cdd1;background:#f6fbfc;border-radius:999px;padding:7px 10px;color:#20414b;font-size:.77rem;font-weight:750}
.mood-range-btn.selected{background:#0b6d7d;color:#fff;border-color:#0b6d7d}
.mood-chart-svg{width:100%;height:auto;display:block;background:linear-gradient(180deg,rgba(255,255,255,.55),rgba(240,248,249,.35));border-radius:14px;border:1px solid rgba(102,138,147,.22);padding:8px}
.mood-grid line{stroke:#c6dadd;stroke-width:1}.mood-grid text,.mood-x-labels text{fill:#58707a;font-size:9px}.mood-line{fill:none;stroke:#0b7f78;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.mood-dot{fill:#0a6f7f;stroke:#f6ffff;stroke-width:2}
.mood-chart-empty{padding:18px 14px;border:1px dashed #a8c7cf;border-radius:14px;background:rgba(255,255,255,.35);color:#41606a;font-size:.9rem}
html[data-theme="dark"] .mood-panel{background:rgba(9,29,36,.28);border-color:rgba(103,138,145,.28)}
html[data-theme="dark"] .mood-panel-top p,html[data-theme="dark"] .mood-trend-head p,html[data-theme="dark"] .mood-kicker{color:#bfd8df}
html[data-theme="dark"] .mood-btn{background:#173844;border-color:#496973;color:#edf8fb}
html[data-theme="dark"] .mood-btn.selected{background:#0f4b52;border-color:#2fb2a7;box-shadow:0 0 0 2px rgba(47,178,167,.15)}
html[data-theme="dark"] .mood-range-btn{background:#173844;border-color:#47666f;color:#e9f7fa}
html[data-theme="dark"] .mood-range-btn.selected{background:#1f98a0;border-color:#1f98a0;color:#05282d}
html[data-theme="dark"] .mood-chart-svg{background:linear-gradient(180deg,rgba(10,29,37,.35),rgba(16,36,45,.2));border-color:rgba(97,136,146,.28)}
html[data-theme="dark"] .mood-grid line{stroke:#31515c}html[data-theme="dark"] .mood-grid text,html[data-theme="dark"] .mood-x-labels text{fill:#aac6cd}.mood-dot{fill:#0a6f7f;stroke:#f6ffff;stroke-width:2}
html[data-theme="dark"] .mood-dot{fill:#61d0c7;stroke:#10353d}html[data-theme="dark"] .mood-line{stroke:#4fc5b8}html[data-theme="dark"] .mood-chart-empty{background:rgba(19,56,68,.35);border-color:#557581;color:#d6ebef}
@media (max-width:980px){.hero{align-items:flex-start}.hero-art{align-self:center}.mood-actions{grid-template-columns:repeat(5,minmax(56px,1fr))}}
@media (max-width:640px){.mood-actions{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.mood-btn{padding:8px 4px;min-height:68px}.mood-btn-label{font-size:.72rem}.mood-trend-head{flex-direction:column}.mood-chart-svg{padding:6px}}

/* 1.14 – håll humördelen kompakt tills användaren själv öppnar grafen */
.mood-panel{max-width:100%;margin-top:8px}
.mood-compact-footer{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding-top:12px;border-top:1px solid rgba(89,125,136,.18)}
.mood-total{color:#426677;font-size:.79rem;flex:1;min-width:145px}
.mood-delete{border:none;background:none;text-decoration:underline;text-underline-offset:3px;color:#72545f;font-size:.76rem;cursor:pointer;padding:6px}
.mood-chart-toggle{white-space:nowrap}
.mood-trend{margin-top:12px}
.mood-btn{min-height:78px}
.mood-btn-label{line-height:1.25;text-align:center}
html[data-theme="dark"] .mood-total{color:#b3cbd3}
html[data-theme="dark"] .mood-delete{color:#f1b7bb}
@media(max-width:640px){.mood-btn-label{font-size:.65rem}.mood-btn{min-height:81px}.mood-compact-footer{gap:7px}.mood-total{min-width:120px}}

/* Levidag 1.15 – Träning & rörelse */
.training-home{display:flex;align-items:center;gap:17px;margin:0 0 22px;padding:17px 22px}
.training-home-icon{width:52px;height:52px;border-radius:15px;display:grid;place-items:center;background:#e6f3ed;color:#126c62;flex-shrink:0}.training-home-icon .icon{width:26px;height:26px}
.training-home-content{flex:1;min-width:0}.training-home-content strong{display:block;font-size:1.1rem;margin:4px 0 2px}.training-home-content p{margin:0;font-size:.86rem;color:var(--muted)}
.training-intro{display:flex;gap:20px;align-items:center;justify-content:space-between;border-radius:20px;background:linear-gradient(120deg,#d9f3ed,#edf8f6);padding:22px 25px;margin-bottom:12px}
.training-intro h2{font-size:1.36rem;margin-bottom:7px;color:#124957}.training-intro p{margin:0;max-width:70ch;color:#345c64}
.training-intro>div:last-child{display:grid;text-align:center;min-width:150px}.training-intro>div:last-child strong{font-size:2.4rem;color:#08776e}.training-intro>div:last-child span{font-size:.8rem;color:#345c64}
.training-safety{background:#f4f9fb;border:1px solid #d8e6eb;border-radius:12px;padding:12px 15px;font-size:.83rem;line-height:1.55;margin:0 0 20px;color:#395d67}
.training-row{display:flex;gap:14px;justify-content:space-between;align-items:flex-start;flex-wrap:wrap}.training-row h2{margin:0 0 6px}
.training-week-section,.training-stat-section,.training-library{margin-bottom:20px;min-width:0}
.training-week-actions,.training-toolbar,.training-saved-actions,.training-workout-actions,.training-period{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.training-week-label{font-weight:700;font-size:.88rem;color:var(--muted);margin:10px 0 12px}
.training-week-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;overflow:auto}
.training-week-day{min-width:0;min-height:138px;border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:9px}
.training-week-day.is-today{border-color:#17a099;background:rgba(18,156,147,.06)}
.training-week-date{display:flex;justify-content:space-between;align-items:center;gap:3px;border-bottom:1px solid var(--line);padding-bottom:7px;margin-bottom:8px}
.training-week-date b{font-size:.79rem;text-transform:capitalize}.training-week-date small{color:var(--muted)}
.training-week-sessions{display:grid;gap:5px}.training-week-session{background:var(--bg);border-radius:9px;padding:7px;display:grid;gap:4px;border:1px solid var(--line)}
.training-week-session strong{font-size:.76rem;line-height:1.28;overflow-wrap:anywhere}.training-week-session small{font-size:.68rem;color:var(--muted)}
.training-mini-action{font-size:.68rem;line-height:1.3;padding:5px 3px;border:1px solid #9ecbcc;background:#e4f6f1;color:#12605a;border-radius:7px;cursor:pointer;font-weight:750}
.training-mini-action.done{background:#d4f1df}.training-mini-action:disabled{opacity:.6;cursor:not-allowed}
.training-empty-day{color:var(--muted);font-size:.7rem}.training-toolbar{margin-top:14px}
.training-saved-plans{margin-top:17px;border-top:1px solid var(--line);padding-top:14px}.training-saved-plans h3,.training-log-list h3{margin:0 0 10px}
.training-saved-row,.training-log-row{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid var(--line);padding:12px 0}
.training-saved-row>div:first-child,.training-log-row>div:first-child{display:grid;gap:3px;min-width:0}.training-saved-row small,.training-log-row small{color:var(--muted);font-size:.8rem;overflow-wrap:anywhere}
.training-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:15px 0}
.training-stats>div{background:var(--bg);border:1px solid var(--line);border-radius:13px;padding:12px;display:grid;gap:2px}.training-stats strong{font-size:1.7rem;color:var(--ink)}.training-stats span{font-size:.76rem;color:var(--muted)}
.training-bars{display:flex;align-items:end;gap:9px;min-height:150px;border:1px solid var(--line);border-radius:13px;padding:17px 12px 10px;margin:10px 0 24px;background:var(--bg)}
.training-bar-col{min-width:0;flex:1;display:grid;justify-items:center;gap:4px;height:130px;align-content:end}.training-bar-track{width:min(32px,100%);height:90px;background:rgba(96,145,152,.12);border-radius:6px;display:flex;align-items:flex-end;overflow:hidden}.training-bar-fill{width:100%;display:block;background:#19a38d;border-radius:6px 6px 0 0;min-height:0}.training-bar-col small{font-size:.68rem;color:var(--muted)}.training-bar-col b{font-size:.7rem}
.training-category-filter{display:flex;gap:7px;flex-wrap:wrap;margin:14px 0}.training-filter{border:1px solid #c3d9dc;background:var(--bg);color:var(--ink);border-radius:999px;padding:7px 11px;font-size:.79rem;font-weight:750}.training-filter.active{border-color:#076d73;background:#08717b;color:#fff}
.training-library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.training-workout{border:1px solid var(--line);background:var(--bg);border-radius:15px;padding:14px;display:flex;flex-direction:column;min-width:0;gap:8px}.training-type{font-size:.7rem;font-weight:850;letter-spacing:.07em;color:#08756c;text-transform:uppercase}.training-workout h3{margin:0;font-size:1rem}.training-workout p{font-size:.83rem;color:var(--muted);margin:0;flex:1}.training-workout>small{font-size:.76rem;color:var(--muted)}
.training-detail{margin-top:18px;background:var(--bg);border:1px solid var(--line);border-radius:16px;padding:19px;scroll-margin-top:25px}
.training-detail h3{margin:6px 0}.training-detail ol{display:grid;gap:12px;padding-left:23px}.training-detail li{line-height:1.6}.training-detail h4{margin-top:15px}
.training-tip{background:#e3f3ee;color:#1e594e;border-radius:12px;padding:13px;margin:12px 0}
.training-day-picker{border:1px solid var(--line);border-radius:12px;margin:12px 0;padding:11px}.training-day-picker legend{padding:0 6px;font-weight:700;font-size:.9rem}.training-day-picker>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.training-day-picker label{display:flex;gap:6px;align-items:center;font-size:.79rem}
.training-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.cal-training{display:block;border-radius:6px;background:#e4f4e9;color:#236c4d;font-size:.66rem;padding:3px 5px;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.training-cal-selected{border:1px solid var(--line);border-radius:13px;padding:13px;margin:12px 0;background:var(--surface)}.training-cal-list{display:grid;gap:5px;font-size:.83rem;margin:9px 0}
html[data-theme="dark"] .training-intro{background:linear-gradient(120deg,#1c4048,#143b43)}
html[data-theme="dark"] .training-intro h2,html[data-theme="dark"] .training-intro p,html[data-theme="dark"] .training-intro>div:last-child strong,html[data-theme="dark"] .training-intro>div:last-child span{color:#e9f7f8}
html[data-theme="dark"] .training-safety{background:#1a3945;border-color:#52717b;color:#d8edf1}
html[data-theme="dark"] .training-home-icon{background:#204d4a;color:#a1ead9}
html[data-theme="dark"] .training-type{color:#82dac7}
html[data-theme="dark"] .training-filter{border-color:#52747b}
html[data-theme="dark"] .training-filter.active{background:#20a49a;color:#032f35;border-color:#20a49a}
html[data-theme="dark"] .training-mini-action{background:#1b5854;color:#e2fffa;border-color:#288e81}
html[data-theme="dark"] .training-mini-action.done{background:#19644a}
html[data-theme="dark"] .training-tip{background:#204c46;color:#def8ee}
html[data-theme="dark"] .cal-training{background:#1d5442;color:#d2ffea}
@media(max-width:1040px){.training-week-grid{grid-template-columns:repeat(7,minmax(113px,1fr))}.training-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.training-home{flex-wrap:wrap;padding:14px;gap:10px}.training-home-icon{width:43px;height:43px}.training-home-content{flex:1 1 calc(100% - 60px)}.training-home>button{margin-left:52px}.training-intro{flex-direction:column;align-items:stretch}.training-intro>div:last-child{text-align:left}.training-week-section,.training-stat-section,.training-library{padding:14px}.training-library-grid{grid-template-columns:1fr}.training-form-grid{grid-template-columns:1fr}.training-day-picker>div{grid-template-columns:repeat(2,1fr)}.training-saved-row,.training-log-row{flex-direction:column;align-items:flex-start}.training-week-grid{grid-template-columns:repeat(7,minmax(118px,1fr))}.training-week-actions{width:100%}.training-workout-actions{gap:7px}}

/* 1.16 Påminnelser och kalenderexport */
.reminder-home{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px;background:var(--surface)}.reminder-home h2{font-size:1.15rem;margin:5px 0}.reminder-home p{margin:0;font-size:.86rem;color:var(--muted)}
.reminder-settings,.reminder-upcoming,.reminder-bills{margin-bottom:18px}.reminder-settings .field{display:grid;gap:6px;margin:12px 0}.reminder-tools{display:flex;flex-wrap:wrap;gap:10px;margin:15px 0}.reminder-tools .btn{display:inline-flex;gap:7px;align-items:center}
.reminder-entry{padding:12px 0;display:flex;align-items:center;gap:13px;border-bottom:1px solid var(--line)}.reminder-entry:last-child{border-bottom:0}.reminder-entry>div{display:grid;gap:3px;min-width:0}.reminder-entry strong{overflow-wrap:anywhere}.reminder-entry small{color:var(--muted)}.reminder-category{display:inline-flex;min-width:77px;justify-content:center;border-radius:9px;background:var(--surface-alt,#e7f2f3);color:var(--ink);padding:6px;font-size:.76rem;font-weight:800}
.reminder-bill-form{display:grid;grid-template-columns:1fr 1fr;gap:13px}.reminder-bill-form label{display:grid;gap:7px;font-size:.88rem;font-weight:700}.reminder-bill-form input,.reminder-bill-form select{width:100%;min-width:0}.reminder-bill-list{margin-top:14px}.reminder-bill-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid var(--line)}.reminder-bill-row>div:first-child{display:grid;gap:3px}.reminder-bill-row small{color:var(--muted)}.reminder-bill-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
html[data-theme="dark"] .reminder-category{background:#203f4d;color:#e9f7f9}
@media(max-width:720px){.reminder-home{align-items:flex-start;flex-direction:column}.reminder-bill-form{grid-template-columns:1fr}.reminder-bill-row{align-items:flex-start;flex-direction:column}.reminder-bill-actions{justify-content:flex-start}.reminder-tools .btn{flex:1}}

.reminder-push{margin:16px 0 2px;padding:17px;border:1px solid var(--line);border-radius:14px;background:rgba(65,156,147,.06)}.reminder-push h3{margin:0 0 8px}.reminder-push p{margin:7px 0 11px}.reminder-push .reminder-tools{margin:14px 0}

/* v1.17 – frivillig säker synk */
.sync-join-box{margin-top:20px;border:1px solid var(--border,#9cb9bc);border-radius:16px;padding:18px;background:rgba(7,95,104,.045)}
.sync-join-box form{display:grid;gap:10px}
.sync-code-panel{margin-top:16px;padding:14px;background:rgba(7,95,104,.08);border:1px solid #92b3b6;border-radius:12px}
.sync-code-panel textarea{width:100%;min-height:92px;resize:vertical;overflow-wrap:anywhere;font-family:monospace;font-size:.86rem}
