:root{font-family:system-ui,sans-serif;color:#153e46;background:#f6f3eb}*{box-sizing:border-box}body{margin:0}header{padding:38px max(22px,calc((100% - 960px)/2));background:#123f48;color:#fff;border-bottom:6px solid #d6ac70}header span{font-size:10px;letter-spacing:2px;line-height:1.8}h1{font:52px Georgia,serif;margin:18px 0 8px}header p{color:#c4d6d4}main{max-width:1000px;margin:auto;padding:24px 20px 110px}h2{font:34px Georgia,serif;margin:10px 0}p{line-height:1.6}.intro{display:flex;align-items:center;justify-content:space-between;gap:16px}small{font-size:10px;letter-spacing:2px}button{font:inherit;cursor:pointer;border:1px solid #b9cac6;background:#fff;color:#123f48;border-radius:12px;padding:12px 16px;min-height:44px}button:hover{background:#e2ede8}#add,button[type=submit]{background:#123f48;color:white}input,textarea,select{font:inherit;padding:12px;border:1px solid #bdcbc5;border-radius:10px;background:#fff;color:#173e46;max-width:100%}#search{width:100%;margin:20px 0}#filters{display:flex;gap:16px;align-items:center;margin-bottom:22px;flex-wrap:wrap}#cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:16px}article{background:#fff;border:1px solid #dbe0d7;border-radius:18px;padding:24px;overflow-wrap:anywhere}article h3{font:25px Georgia,serif;margin:10px 0}article small{color:#58736b}article p{white-space:pre-wrap}article a{display:block;color:#14626b;margin:10px 0}article .actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:22px}.backup{margin-top:32px;border-top:1px solid #c7d2c9;padding-top:16px;color:#516c66;font-size:14px}.backup button{margin:4px}nav{position:fixed;bottom:0;width:100%;display:flex;justify-content:center;background:#fff;border-top:1px solid #cedbd5;padding:10px 8px max(10px,env(safe-area-inset-bottom));gap:5px}nav button{border:0;padding:12px;flex:1;max-width:180px}nav button[aria-current=true]{background:#123f48;color:#fff}dialog{width:min(600px,95vw);border:0;border-radius:18px;padding:25px;max-height:90dvh}dialog::backdrop{background:#102f39a0}form label{display:block;margin:14px 0;font-size:14px}form label input:not([type=checkbox]),form textarea,form select{display:block;width:100%;margin-top:7px}footer{display:flex;justify-content:flex-end;gap:12px;position:sticky;bottom:-25px;background:white;padding:15px 0}.empty{padding:30px;border:1px dashed #a1b8ad;border-radius:18px}a:focus-visible,button:focus-visible{outline:3px solid #d49b40;outline-offset:3px}@media(max-width:480px){h1{font-size:43px}.intro p{font-size:14px}main{padding:20px 16px 120px}.intro{align-items:flex-start}#cards{grid-template-columns:1fr}}

header{padding-top:18px;padding-bottom:16px}header h1{font-size:36px;margin:8px 0}header p{margin:6px 0}header span{font-size:9px}.intro p{display:none}main{padding-top:14px}.intro h2{font-size:28px}#search{margin:12px 0}article{padding:16px}article h3{font-size:22px}summary{cursor:pointer;padding:10px 0;min-height:44px}article .actions{margin-top:10px}.pager{grid-column:1/-1;display:flex;justify-content:center;gap:16px;align-items:center}.backup{margin-top:18px;padding-top:4px}button:disabled{opacity:.4;cursor:default}@media(max-width:600px){#cards{grid-template-columns:1fr 1fr;gap:10px}article{padding:12px}article h3{font-size:20px}article .actions{gap:5px}article .actions button{padding:8px;font-size:14px}article:has(details[open]){grid-column:1/-1}}@media(max-width:350px){#cards{grid-template-columns:1fr}}@media print{body{background:white;color:black}header,nav,.intro,#search,#filters,.backup,.pager,dialog,.actions,summary{display:none!important}main{padding:0;max-width:none}#cards{display:block}article{display:none;border:0}article.print-selected{display:block}article a::after{content:' (' attr(href) ')';font-size:11px}article p{break-inside:avoid}}

.web-search{display:flex;gap:8px;margin:0 0 14px;flex-wrap:wrap}@media print{.web-search{display:none!important}}

/* Kocina Koster@ · V2 */
header h1{display:flex;align-items:center;gap:12px;font-size:30px}header h1 img{width:54px;height:54px;border-radius:14px}header{border-bottom:3px solid #f08d79}header span{letter-spacing:1px}body{height:100dvh;display:flex;flex-direction:column;overflow:hidden}header{flex:none}main{width:100%;flex:1;min-height:0;overflow:auto;padding-bottom:18px}nav{position:relative;flex:none}#cards{grid-template-columns:1fr 1fr}article h3{font-size:21px}.intro small{color:#987047}.backup{margin-top:10px}.web-search button{flex:1;font-size:14px}button{touch-action:manipulation}#status:empty{display:none}#status{padding:10px;border-radius:8px;background:#e5eee9}dialog p{white-space:pre-wrap}dialog a{display:block;overflow-wrap:anywhere;margin:12px 0;color:#14626b}#reader footer{bottom:0}#reader h2{font-size:28px}@media(max-width:600px){header{padding:10px 16px}header span{font-size:8px}header p{font-size:12px}header h1{font-size:27px;margin:5px 0}header h1 img{width:44px;height:44px}main{padding:10px 14px 16px}.intro h2{margin:5px 0}.intro small{font-size:9px}#search{margin:8px 0}.web-search{margin-bottom:8px}#filters{gap:8px;margin-bottom:10px;font-size:12px}#filters select{padding:8px}article{padding:12px}.empty{grid-column:1/-1;padding:22px}nav button{font-size:13px}article .actions button{flex:1}article .actions button:nth-child(n+3){display:none}}

.header-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.header-tools p{flex:1;min-width:160px}#night-mode{flex:none;padding:8px 12px;font-size:13px;min-height:44px;background:#214e57;color:#fff;border-color:#6f9298}
html[data-theme=dark]{color-scheme:dark;background:#000;color:#f2f2f2}
html[data-theme=dark] body,html[data-theme=dark] main,html[data-theme=dark] header,html[data-theme=dark] nav{background:#000;color:#f2f2f2}
html[data-theme=dark] article,html[data-theme=dark] dialog,html[data-theme=dark] footer{background:#111;color:#f2f2f2;border-color:#414141}
html[data-theme=dark] button,html[data-theme=dark] input,html[data-theme=dark] select,html[data-theme=dark] textarea{background:#1c1c1c;color:#f2f2f2;border-color:#666}
html[data-theme=dark] button:hover{background:#333}
html[data-theme=dark] #add,html[data-theme=dark] button[type=submit],html[data-theme=dark] nav button[aria-current=true]{background:#f08d79;color:#17100e;border-color:#f08d79}
html[data-theme=dark] header p,html[data-theme=dark] article small,html[data-theme=dark] .backup,html[data-theme=dark] .intro small{color:#c8d8d6}
html[data-theme=dark] article a,html[data-theme=dark] dialog a{color:#a5dfda}
html[data-theme=dark] .empty,html[data-theme=dark] .backup,html[data-theme=dark] nav{border-color:#444}
html[data-theme=dark] #status{background:#202c29;color:#e5f5ef}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#aaa}
html[data-theme=dark] #night-mode{background:#222;color:#fff;border-color:#777}
