:root{--bg:#f5ecde;--paper:#fffbf4;--ink:#203955;--muted:#736d66;--line:#ddcfbc;--blue:#214c78;--light:#eee1cd;--red:#b63730;--danger:#ae2b29;--shadow:0 12px 35px #20395514;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:var(--bg);font-size:15px}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;color:inherit}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid var(--red);outline-offset:3px}input,select,textarea{border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:12px;padding:13px;width:100%;outline-color:var(--red)}textarea{resize:vertical;min-height:100px}label{display:block;font-size:13px;line-height:1.6}small,.muted{color:var(--muted)}h1,h2,h3,p{margin:0}h1,h2{font-family:Georgia,serif;font-weight:normal;letter-spacing:-1px}h1{font-size:46px;line-height:1.07}h2{font-size:30px}h3{font-size:17px}p{line-height:1.6}a{color:inherit}header{max-width:1100px;margin:auto;padding:25px 30px 16px;display:flex;align-items:center;justify-content:space-between;gap:15px}.logo{border:0;background:none;text-align:left;display:flex;gap:11px;align-items:center;font-weight:bold;letter-spacing:1.3px;font-size:12px;padding:0;line-height:1.45}.mark{background:var(--blue);color:#fff;border-radius:50%;height:43px;width:43px;display:grid;place-items:center;font-size:24px;letter-spacing:-6px;padding-right:5px}.headright{display:flex;gap:8px;align-items:center}.iconbtn,.pill{border:1px solid var(--line);background:transparent;border-radius:30px;padding:9px 14px;font-size:12px}.testbar{background:var(--light);padding:8px 20px;text-align:center;font-size:11px;letter-spacing:.5px;color:var(--blue)}main{max-width:1100px;margin:auto;padding:20px 30px 130px;min-height:80vh}.eyebrow{font-size:11px;letter-spacing:2px;text-transform:uppercase;margin-bottom:15px;color:var(--muted)}.hero{display:grid;grid-template-columns:1fr 1fr;min-height:340px;background:#ecdbc0;border-radius:24px;overflow:hidden;margin-bottom:34px}.herotext{padding:34px 38px;display:flex;align-items:flex-start;flex-direction:column;justify-content:center;gap:18px;color:#203955}.herotext p{max-width:290px;font-size:14px;color:#685f54}.heroart{position:relative;overflow:hidden;background:#e9bf8f}.heroart img{width:100%;height:100%;object-fit:cover;object-position:center 48%;position:absolute}.herostamp{position:absolute;right:20px;bottom:20px;border-radius:50%;background:#f8f4e5;color:#214c78;width:84px;height:84px;display:grid;place-items:center;text-align:center;transform:rotate(9deg);font-size:12px;line-height:1.4}.primary{background:var(--blue);border:1px solid var(--blue);color:white;border-radius:12px;padding:13px 20px;font-weight:600}.secondary{background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:12px 16px}.danger{color:var(--danger)}.sectionhead{display:flex;justify-content:space-between;align-items:center;margin:28px 0 20px;gap:12px}.sectionhead small{text-align:right}.tabs{display:flex;gap:8px;overflow:auto;margin:18px 0 24px;padding-bottom:2px}.tabs button{white-space:nowrap;padding:10px 17px;border:1px solid var(--line);border-radius:24px;background:transparent;font-size:13px}.tabs .active{background:var(--blue);border-color:var(--blue);color:white}.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.collection{border:0;background:none;padding:0;text-align:left;min-width:0}.cover{position:relative;aspect-ratio:1/1.1;border-radius:17px;overflow:hidden;background:var(--light);display:grid;place-items:center}.cover img{height:100%;width:100%;object-fit:cover;transition:transform .25s}.collection:hover img{transform:scale(1.025)}.collection .category{font-size:10px;letter-spacing:1.2px;color:var(--muted);margin:14px 0 5px;text-transform:uppercase}.collection h3{font-size:14px;line-height:1.4;letter-spacing:.2px}.collection small{display:block;margin-top:6px;font-size:12px}.tag{position:absolute;left:10px;bottom:10px;background:#fffef5ee;padding:7px 10px;border-radius:30px;font-size:11px;color:#214c78}.empty{padding:45px 20px;text-align:center;background:var(--paper);border:1px dashed var(--line);border-radius:18px}.empty h2{margin-bottom:15px}.empty p{margin-bottom:22px}.footerhint{margin-top:32px;border-top:1px solid var(--line);padding:22px 0;font-size:12px;color:var(--muted);display:flex;justify-content:space-between;gap:20px}.navbar{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:center;gap:20px;background:var(--paper);border-top:1px solid var(--line);padding:12px 15px calc(12px + env(safe-area-inset-bottom));z-index:20}.navbar button{background:none;border:0;min-width:65px;color:var(--muted);font-size:11px;display:flex;gap:5px;align-items:center;flex-direction:column;position:relative}.navbar button.on{color:var(--blue);font-weight:700}.navicon{font-size:23px;height:25px;line-height:25px}.count{position:absolute;top:-5px;right:10px;border-radius:20px;background:var(--red);color:white;font-size:9px;padding:2px 5px}.back{border:0;background:none;padding:0;color:var(--muted);font-size:13px;margin-bottom:22px}.serieshero{display:grid;grid-template-columns:150px 1fr;gap:25px;align-items:center;margin-bottom:22px}.serieshero img{width:150px;height:155px;object-fit:cover;border-radius:16px}.serieshero h1{font-size:36px}.serieshero p{font-size:13px;margin-top:10px}.tools{display:flex;gap:10px;margin:20px 0}.tools input{flex:2}.tools select{flex:1;min-width:0}.products{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.product{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:19px;display:flex;flex-direction:column;gap:9px}.product .code{font-size:24px;letter-spacing:.4px;font-weight:bold}.product small{font-size:11px}.product .row{margin-top:7px}.row{display:flex;align-items:center;justify-content:space-between;gap:10px}.row.wrap{flex-wrap:wrap}.add{background:var(--light);border:0;border-radius:10px;font-size:23px;width:39px;height:37px;color:var(--blue)}.textbtn{border:0;background:none;text-align:left;padding:0;font-size:12px;color:var(--muted);text-decoration:underline}.box{border:1px solid var(--line);background:var(--paper);padding:22px;border-radius:18px;margin:16px 0}.cartlayout{display:grid;grid-template-columns:1.4fr 1fr;gap:25px}.cartitem{border-bottom:1px solid var(--line);padding:20px 0;display:flex;gap:16px;align-items:center}.cartitem:first-child{padding-top:0}.cartitem .thumb{width:56px;height:63px;border-radius:8px;object-fit:cover;background:var(--light)}.cartitem .desc{flex:1;min-width:0}.cartitem h3{font-size:14px;margin-bottom:5px}.stepper{display:flex;align-items:center;gap:11px;margin-top:12px}.stepper button{width:28px;height:28px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}.stepper .remove{width:auto;border:0;background:none;color:var(--muted);font-size:11px}.totals .row{padding:9px 0;font-size:14px}.totals .sum{border-top:1px solid var(--line);font-size:23px;margin-top:10px;padding:17px 0}.totals .primary{width:100%;margin:12px 0}.notice{background:var(--light);border-radius:10px;padding:12px 15px;font-size:12px;line-height:1.55}.fields{display:grid;gap:14px}.segmented{display:flex;gap:10px;margin:16px 0}.segmented button{flex:1}.badge{background:var(--light);color:var(--blue);font-size:11px;padding:6px 9px;border-radius:15px;display:inline-block}.order{margin-bottom:14px}.order p{font-size:13px;margin:10px 0}.order .primary{font-size:12px}.workspace{max-width:750px;margin:auto}.bubble{border:1px solid var(--line);border-radius:15px;padding:18px;background:var(--paper);margin:12px 0;white-space:pre-wrap;font-size:14px;line-height:1.5;overflow-wrap:anywhere}.bubble img{max-height:240px;max-width:100%;border-radius:10px;display:block;margin-bottom:12px}.inlinebuttons{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.inlinebuttons button,.inlinebuttons a{font-size:12px;padding:10px 13px;border:1px solid var(--line);border-radius:9px;background:var(--light);text-decoration:none}.composer{position:sticky;bottom:85px;background:var(--bg);padding:12px 0;display:flex;gap:8px}.composer textarea{min-height:50px;height:50px}.composer button{padding:10px 15px}.admincards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:20px}.admincards button{text-align:left;min-height:95px;border:1px solid var(--line);border-radius:15px;background:var(--paper);padding:19px}.admincards strong{display:block;margin-bottom:9px}.admincards small{font-size:12px;line-height:1.5}.searchform{display:flex;gap:10px;margin:25px 0}.loading{text-align:center;padding:100px 20px;line-height:2;letter-spacing:2px}.login{max-width:480px;margin:70px auto;padding:35px;text-align:center;background:var(--paper);border:1px solid var(--line);border-radius:24px}.login h1{font-size:38px;margin:24px 0}.login p{margin-bottom:25px}.login button{width:100%;margin-top:12px}dialog{border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:22px;max-width:500px;width:calc(100% - 28px);padding:25px;max-height:85vh;overflow:auto}dialog::backdrop{background:#182b4777}dialog h2{margin:14px 0}dialog p{font-size:14px}dialog .primary{width:100%;margin-top:20px}.dialogclose{float:right;border:0;background:none;font-size:25px}#toast{position:fixed;bottom:95px;left:50%;transform:translateX(-50%);max-width:90%;background:var(--ink);color:var(--paper);padding:14px 20px;border-radius:12px;z-index:100;box-shadow:var(--shadow);display:none;font-size:13px}.error{color:var(--danger)}.info{max-width:700px}.info p{margin:20px 0}.filelabel{display:inline-block;border:1px solid var(--line);border-radius:10px;padding:10px;cursor:pointer}.filelabel input{display:none}
@media(max-width:700px){header{padding:18px 18px 12px}.headright .muted{display:none}main{padding:14px 18px 120px}h1{font-size:35px}.hero{grid-template-columns:1.05fr 1fr;min-height:260px;border-radius:18px;margin-bottom:26px}.herotext{padding:23px 20px;gap:14px}.herotext h1{font-size:29px}.herotext p{font-size:11px;line-height:1.5}.herotext .primary{font-size:11px;padding:10px 13px}.eyebrow{font-size:9px;letter-spacing:1.5px;margin-bottom:4px}.herostamp{width:64px;height:64px;font-size:10px;right:12px;bottom:12px}.grid{grid-template-columns:repeat(2,1fr);gap:20px 13px}.cover{aspect-ratio:1/1.08}.sectionhead h2{font-size:26px}.sectionhead small{font-size:10px}.products{grid-template-columns:repeat(2,1fr);gap:9px}.product{padding:14px}.product .code{font-size:22px}.serieshero{grid-template-columns:94px 1fr;gap:18px}.serieshero img{width:94px;height:110px}.serieshero h1{font-size:26px}.tools{flex-direction:column}.cartlayout{grid-template-columns:1fr;gap:0}.cartitem .thumb{width:44px;height:53px}.admincards{grid-template-columns:repeat(2,1fr)}.navbar{gap:0;justify-content:space-around}.navbar button{min-width:50px}.footerhint{flex-direction:column;gap:8px}.composer{bottom:80px}.box{padding:17px}.headright .iconbtn{font-size:10px;padding:8px 11px}.login{margin:30px 16px}.notice{font-size:11px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

[hidden]{display:none!important}input[type=checkbox]{width:auto}.headright{flex-wrap:wrap;justify-content:flex-end}.cover:empty:before{content:'✒';font-size:65px;color:var(--blue)}

:root[data-theme=dark]{--bg:#151f30;--paper:#202e44;--ink:#f5ecde;--muted:#c3bbaf;--line:#455064;--blue:#9cc4ed;--light:#303f57;--danger:#ffaaa0;--shadow:0 12px 35px #0003}
:root[data-theme=dark] .primary{color:#16283e}:root[data-theme=dark] .hero{background:#ecdbc0}
body{padding-top:env(safe-area-inset-top)}.testbar{padding-top:max(8px,var(--tg-content-safe-area-inset-top,0px))}

/* Beige canvas, red calls to action, blue navigation. */
.primary{background:var(--red);border-color:var(--red);color:#fff}.mark{background:var(--red)}.herotext h1{color:#214c78}.herostamp{background:#b63730;color:#fff}.navbar button.on{color:var(--red)}:root[data-theme=dark]{--red:#b63730}:root[data-theme=dark] .primary{color:#fff}
