:root{
 --bg:#fffaf4;--surface:#fff;--surface-2:#fff6ed;--ink:#211d1b;--muted:#81756f;--line:#eee2d8;
 --red:#e61f28;--red2:#f24a2d;--orange:#ff7a18;--green:#42a85f;--shadow:0 14px 40px rgba(76,48,30,.08);
 --radius:24px;--safe-bottom:max(14px,env(safe-area-inset-bottom));
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(circle at 50% -15%,#fff 0,#fffaf4 42%,#fff8ef 100%);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}a{text-decoration:none;color:inherit}button,input,textarea,select{font:inherit}button{cursor:pointer}.app-main{width:min(1180px,calc(100% - 32px));margin:0 auto;padding:28px 0 110px}.public-main{max-width:520px;min-height:100vh;display:grid;align-items:center}.app-header{position:sticky;top:0;z-index:50;height:78px;display:flex;align-items:center;gap:28px;padding:0 max(18px,calc((100vw - 1180px)/2));background:rgba(255,250,244,.9);backdrop-filter:blur(18px);border-bottom:1px solid rgba(238,226,216,.8)}.brand-lockup{display:flex;align-items:center;gap:10px;min-width:max-content}.brand-heart{position:relative;width:42px;height:42px;display:grid;place-items:center}.brand-heart span{font-size:46px;line-height:1;color:var(--red)}.brand-heart:after{content:'🍴';position:absolute;font-size:16px;filter:grayscale(1) brightness(0) invert(1);left:12px;top:12px}.brand-heart i{display:none}.brand-copy{display:flex;line-height:.82;flex-direction:column;font-family:Georgia,"Times New Roman",serif}.brand-copy b{font-size:21px;color:#c61f25}.brand-copy strong{font-size:21px;color:#ee7414;font-weight:600}.desktop-nav{display:flex;align-items:center;gap:4px;margin-left:auto}.desktop-nav a{padding:10px 12px;border-radius:12px;font-size:13px;font-weight:700;color:#6f625c}.desktop-nav a:hover,.desktop-nav a.active{background:#fff0e8;color:var(--red)}.desktop-nav .pro-link{color:#eb7313}.header-actions{display:flex;gap:8px}.round-icon,.avatar{width:38px;height:38px;border-radius:14px;display:grid;place-items:center;background:#fff;border:1px solid var(--line);box-shadow:0 4px 14px rgba(40,25,17,.05)}.avatar{background:linear-gradient(135deg,var(--red),var(--orange));color:#fff;font-weight:800}.toast{padding:13px 16px;border-radius:16px;margin-bottom:18px;font-weight:700}.toast.success{background:#eaf8ef;color:#23743f}.toast.error{background:#fff0ed;color:#a33028}.mobile-titlebar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:22px}.back-link{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:#fff;border:1px solid var(--line)}.back-link svg,.nav-ico svg,.icon-svg svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.page-heading{font-size:25px;margin:0;letter-spacing:-.03em}.page-sub{color:var(--muted);font-size:13px;margin:5px 0 0}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.soft-panel{background:#fff7ef;border:1px solid #f2e4d8;border-radius:22px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:15px;padding:14px 18px;background:linear-gradient(135deg,var(--red),var(--orange));color:#fff;font-weight:800;box-shadow:0 7px 18px rgba(230,31,40,.16)}.btn:hover{filter:saturate(1.08)}.btn.alt{background:#fff;color:var(--ink);border:1px solid var(--line);box-shadow:none}.btn.danger{background:#8d3029}.btn.block{width:100%}.input,textarea,select{width:100%;border:1px solid #eadfd7;background:#fff;border-radius:14px;padding:14px 15px;color:var(--ink);outline:none}.input:focus,textarea:focus,select:focus{border-color:#ffad82;box-shadow:0 0 0 4px rgba(255,122,24,.09)}textarea{min-height:145px;resize:vertical}.muted{color:var(--muted)}.badge{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border-radius:999px;background:#fff1e8;color:#b74b27;font-size:11px;font-weight:800}.section-head{display:flex;justify-content:space-between;align-items:end;margin:28px 0 14px}.section-head h2{font-size:20px;margin:0}.section-head a{font-size:12px;color:var(--red);font-weight:800}.empty-state{padding:28px;text-align:center}.empty-state h3{margin:8px 0}.empty-state p{color:var(--muted);font-size:14px}.bottom-nav{display:none}
/* home */
.home-top{display:flex;align-items:center;justify-content:space-between;margin:4px 0 18px}.greeting h1{font-size:28px;margin:0 0 5px;letter-spacing:-.035em}.greeting p{margin:0;color:var(--muted);font-size:13px}.notif{width:43px;height:43px;border:1px solid var(--line);background:#fff;border-radius:15px;display:grid;place-items:center;position:relative}.notif:after{content:'';position:absolute;width:7px;height:7px;background:var(--red);border-radius:99px;top:8px;right:9px;border:2px solid #fff}.searchbar{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:0 14px;height:50px;box-shadow:0 6px 20px rgba(61,43,31,.04)}.searchbar svg{width:18px;height:18px;fill:none;stroke:#8e817a;stroke-width:2}.searchbar input{border:0;outline:0;width:100%;background:transparent}.categories{display:flex;gap:14px;overflow:auto;padding:18px 2px 5px;scrollbar-width:none}.cat{min-width:62px;text-align:center;color:#625750;font-size:11px}.cat span{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;margin:0 auto 6px;background:#fff3e7;border:1px solid #f3e3d5;font-size:20px}.import-hero{margin:18px 0;background:linear-gradient(120deg,#dd202a 0%,#f04b2c 55%,#ff8620 100%);color:#fff;border-radius:22px;padding:22px 24px;display:flex;align-items:center;justify-content:space-between;box-shadow:0 16px 30px rgba(224,42,39,.2);overflow:hidden;position:relative}.import-hero:after{content:'';position:absolute;width:160px;height:160px;border-radius:50%;background:rgba(255,255,255,.09);right:-55px;top:-70px}.import-hero h2{font-size:21px;margin:0 0 5px}.import-hero p{font-size:12px;margin:0;opacity:.9}.social-mini{display:flex;gap:8px;position:relative;z-index:2}.social-mini span{width:37px;height:37px;border-radius:12px;background:rgba(255,255,255,.95);display:grid;place-items:center;color:#222;font-size:18px}.recipe-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.recipe-card{overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:19px;box-shadow:0 8px 24px rgba(62,43,31,.05);transition:.18s transform}.recipe-card:hover{transform:translateY(-2px)}.recipe-card img{width:100%;aspect-ratio:1.35;object-fit:cover;display:block}.recipe-card-body{padding:12px}.recipe-card h3{font-size:14px;line-height:1.25;margin:0 0 6px}.recipe-meta{font-size:11px;color:var(--muted)}.home-grid{display:grid;grid-template-columns:1.3fr .7fr;gap:22px}.collection-preview,.pro-preview{padding:20px}.collection-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.collection-tile{position:relative;overflow:hidden;border-radius:16px;min-height:122px;background:#eee}.collection-tile img{width:100%;height:100%;object-fit:cover;position:absolute}.collection-tile:after{content:'';position:absolute;inset:30% 0 0;background:linear-gradient(transparent,rgba(20,12,8,.78))}.collection-tile div{position:absolute;z-index:2;left:11px;bottom:10px;color:white}.collection-tile b{font-size:12px;display:block}.collection-tile small{font-size:10px}.pro-preview{display:grid;grid-template-columns:1fr auto;align-items:center;gap:18px}.pro-title{display:flex;gap:12px;align-items:center}.crown{width:48px;height:48px;border-radius:16px;background:linear-gradient(135deg,#ff9b1e,#ff6d0d);display:grid;place-items:center;color:white;font-size:24px}.pro-preview h3{margin:0;color:#ef7013;font-size:21px}.checklist{display:grid;gap:7px;margin-top:14px;font-size:12px;color:#5d5550}.checklist span:before{content:'✓';color:var(--green);font-weight:900;margin-right:8px}.price-box{min-width:165px;border:1px solid var(--line);border-radius:18px;padding:16px;background:#fffaf3;text-align:center}.price-box .price{font-size:28px;color:#e85f18;font-weight:900}.price-box small{color:var(--muted)}
/* import */
.import-wrap{max-width:690px;margin:0 auto}.import-card{padding:30px}.import-art{height:145px;display:grid;place-items:center;position:relative}.mini-phone{width:58px;height:104px;border:5px solid #29231f;border-radius:14px;background:#fff;box-shadow:0 12px 25px rgba(40,25,18,.15);position:relative}.mini-phone:after{content:'';position:absolute;width:18px;height:3px;background:#222;top:3px;left:15px;border-radius:9px}.float-social{position:absolute;font-size:23px}.float-social.ig{left:30%;top:55px}.float-social.tk{right:30%;top:35px}.float-social.yt{right:25%;bottom:20px}.import-card h1{text-align:center;font-size:26px;margin:5px 0 7px}.import-card .lead{text-align:center;color:var(--muted);font-size:13px;margin:0 0 24px}.field-label{font-size:12px;font-weight:800;margin:12px 0 7px;display:block}.network-row{display:flex;justify-content:center;gap:24px;margin:14px 0 20px}.network-row span{font-size:22px}.ai-box{display:flex;align-items:center;gap:16px;background:#f2f8ee;border:1px solid #dfedd9;border-radius:18px;padding:18px;margin-top:18px}.robot{font-size:38px}.ai-box b{font-size:13px}.ai-box p{font-size:11px;color:#67805f;margin:5px 0 0}
/* recipe detail */
.recipe-shell{max-width:830px;margin:0 auto;overflow:hidden}.recipe-hero-img{width:100%;max-height:430px;object-fit:cover;display:block}.recipe-content{padding:24px 26px 30px}.recipe-title-row{display:flex;justify-content:space-between;gap:18px}.recipe-title-row h1{font-size:30px;margin:0}.rating{color:#e84e28;font-weight:800;font-size:13px;margin-top:7px}.save-pill{width:43px;height:43px;border-radius:50%;background:#fff1ed;color:var(--red);border:0;display:grid;place-items:center}.metric-row{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.metric{background:#fff8f1;border:1px solid #eee1d6;border-radius:999px;padding:9px 13px;font-size:12px}.recipe-columns{display:grid;grid-template-columns:.9fr 1.25fr;gap:24px}.recipe-section h2{font-size:18px;margin:10px 0 12px}.ingredient-list,.steps{display:grid;gap:9px}.ingredient{font-size:13px;padding-bottom:9px;border-bottom:1px dashed #eee2da}.step{display:grid;grid-template-columns:30px 1fr;gap:10px;font-size:13px;line-height:1.55}.step-num{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#fff1dd;color:#8c6128;font-weight:900}.recipe-actions{display:flex;gap:10px;margin-top:24px;flex-wrap:wrap}
/* lists */
.list-shell{max-width:760px;margin:0 auto}.tabs{display:grid;grid-template-columns:1fr 1fr;background:#f5eee8;padding:4px;border-radius:14px;margin:12px 0 18px}.tab{padding:10px;border-radius:11px;text-align:center;font-weight:800;font-size:12px}.tab.active{background:#fff;color:var(--red);box-shadow:0 3px 12px rgba(50,30,20,.07)}.shopping-panel{padding:20px}.shop-item{display:flex;align-items:center;gap:12px;padding:13px 3px;border-bottom:1px solid #eee5de;background:transparent;border-left:0;border-right:0;border-top:0;width:100%;text-align:left}.check-circle{width:24px;height:24px;border-radius:50%;border:1.5px solid #cfc4bb;display:grid;place-items:center;flex:none}.shop-item.checked .check-circle{background:var(--green);border-color:var(--green);color:white}.shop-item.checked .check-circle:after{content:'✓';font-size:13px;font-weight:900}.shop-item.checked .shop-copy{text-decoration:line-through;opacity:.52}.shop-copy{font-size:13px}.shop-copy small{display:block;color:var(--muted);margin-top:3px}.add-inline{display:flex;gap:10px;margin-top:16px}.planner-shell{max-width:850px;margin:0 auto}.weekbar{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin:15px 0}.daychip{text-align:center;padding:9px 4px;border-radius:13px;font-size:10px;color:var(--muted)}.daychip b{font-size:14px;display:block;color:var(--ink);margin-top:4px}.daychip.today{background:var(--red);color:white}.daychip.today b{color:white}.planner-list{display:grid;gap:10px}.plan-item{display:grid;grid-template-columns:65px 72px 1fr auto;align-items:center;gap:12px;padding:10px;background:#fff;border:1px solid var(--line);border-radius:16px}.plan-item .date{font-size:10px;color:var(--muted)}.plan-item .date b{display:block;color:var(--ink);font-size:12px}.plan-item img{width:72px;height:54px;object-fit:cover;border-radius:12px}.plan-item h3{font-size:13px;margin:0}.plan-item p{font-size:11px;color:var(--muted);margin:4px 0 0}.planner-add{padding:20px;margin-top:18px}
/* recipes / collections */
.recipe-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.collection-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.collection-card{overflow:hidden}.collection-cover{display:grid;grid-template-columns:1fr 1fr;height:170px}.collection-cover img{width:100%;height:100%;object-fit:cover}.collection-cover img:first-child{grid-row:span 2}.collection-copy{padding:15px}.collection-copy h3{margin:0 0 5px}.collection-form{padding:18px;margin-bottom:18px;display:flex;gap:10px}
/* billing */
.billing-hero{text-align:center;margin:8px auto 25px;max-width:680px}.billing-hero .crown{margin:0 auto 12px}.billing-hero h1{font-size:34px;margin:0}.billing-hero p{color:var(--muted)}.billing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.plan-card{padding:23px;position:relative}.plan-card.featured{border:2px solid #ff8230;transform:translateY(-5px)}.plan-card h3{font-size:20px}.plan-card ul{padding-left:19px;color:var(--muted);font-size:13px;line-height:1.8}.price{font-size:35px;font-weight:900;color:#e9591e}.price small{font-size:13px;color:var(--muted)}.plan-current{padding:12px;border-radius:13px;text-align:center;background:#eaf8ef;color:#207c42;font-weight:800}.account-card{margin-top:22px;padding:20px}.account-lines{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.account-lines div{border:1px solid var(--line);border-radius:14px;padding:12px}.account-lines span{display:block;font-size:10px;color:var(--muted);margin-bottom:5px}.account-lines b{font-size:13px}
/* auth */
.auth-shell{padding:28px}.auth-brand{text-align:center;margin-bottom:22px}.auth-logo{font-size:46px;color:var(--red)}.auth-brand h1{font-family:Georgia,serif;font-size:31px;margin:5px 0;color:#c82626}.auth-brand p{color:var(--muted);font-size:13px}.form-stack{display:grid;gap:12px}.auth-foot{text-align:center;font-size:12px;color:var(--muted);margin-top:16px}.auth-foot a{color:var(--red);font-weight:800}
/* compatibility admin */
.card{background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);padding:20px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.row{display:flex;gap:10px}.list{display:grid;gap:12px}.item{background:#fff;border:1px solid var(--line);border-radius:14px;padding:13px}.section-title{display:flex;justify-content:space-between;align-items:end;margin:8px 0 18px}.section-title h2{margin:0}.notice{padding:13px 15px;border-radius:14px;background:#ecf7f1;color:#236b4e;margin-bottom:16px}.notice.error{background:#fff0ed;color:#a53024}.stat{font-size:29px;font-weight:900}.recipe-img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:17px}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.admin-grid{grid-template-columns:repeat(3,1fr)}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}th,td{text-align:left;padding:12px;border-bottom:1px solid var(--line);font-size:12px}.status-pill{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:11px;font-weight:800;background:#f1e7e2}.status-pill.ok{background:#e8f6ee;color:#1f704d}.status-pill.off{background:#fff0ed;color:#9e3d31}.codebox{background:#2a201c;color:white;padding:12px;border-radius:12px;word-break:break-all;font:11px ui-monospace,monospace}
@media(max-width:980px){.desktop-nav{display:none}.home-grid{grid-template-columns:1fr}.recipe-grid{grid-template-columns:repeat(3,1fr)}.billing-grid{grid-template-columns:1fr}.plan-card.featured{transform:none}.account-lines{grid-template-columns:1fr 1fr}.recipe-columns{grid-template-columns:1fr}.collection-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){body{background:#fffaf4}.app-header{height:58px;justify-content:center;padding:0 18px}.brand-lockup{transform:scale(.88)}.desktop-nav,.header-actions{display:none}.app-main{width:min(100% - 24px,620px);padding-top:18px;padding-bottom:100px}.bottom-nav{display:grid;position:fixed;z-index:60;left:0;right:0;bottom:0;grid-template-columns:repeat(5,1fr);height:74px;padding:7px 10px var(--safe-bottom);background:rgba(255,255,255,.97);backdrop-filter:blur(16px);border-top:1px solid var(--line);box-shadow:0 -8px 25px rgba(50,35,25,.06)}.bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#877a72;font-size:10px}.bottom-nav a.active{color:var(--red)}.bottom-nav small{font-size:9px}.nav-ico svg{width:20px;height:20px}.bottom-nav .nav-plus{align-self:start;width:52px;height:52px;margin:-20px auto 0;border-radius:50%;background:linear-gradient(135deg,var(--red),var(--orange));color:white;border:5px solid #fff;box-shadow:0 8px 20px rgba(228,42,39,.25)}.bottom-nav .nav-plus span svg{width:24px;height:24px;fill:none;stroke:white;stroke-width:2}.home-top{margin-top:4px}.greeting h1{font-size:22px}.recipe-strip{grid-template-columns:repeat(2,minmax(0,1fr));overflow:auto}.recipe-strip .recipe-card:nth-child(n+3){display:none}.home-grid{gap:14px}.collection-preview,.pro-preview{padding:16px}.collection-tiles{grid-template-columns:repeat(3,150px);overflow:auto}.pro-preview{grid-template-columns:1fr}.price-box{text-align:left}.recipe-grid{grid-template-columns:repeat(2,1fr);gap:12px}.collection-grid{grid-template-columns:1fr}.collection-form{flex-direction:column}.import-card{padding:20px}.recipe-content{padding:18px}.recipe-title-row h1{font-size:25px}.recipe-shell{border-radius:22px}.plan-item{grid-template-columns:50px 58px 1fr}.plan-item img{width:58px;height:48px}.plan-item>span:last-child{display:none}.planner-add{padding:16px}.billing-hero h1{font-size:28px}.account-lines{grid-template-columns:1fr}.row{flex-direction:column}.grid,.metrics,.admin-grid{grid-template-columns:1fr}.public-main{width:min(100% - 24px,460px)}.auth-shell{padding:22px}.app-header+.app-main.public-main{padding-top:0}}
@media(max-width:410px){.categories{gap:10px}.cat{min-width:55px}.import-hero{padding:18px}.social-mini span{width:32px;height:32px}.recipe-grid{grid-template-columns:1fr 1fr}.recipe-card h3{font-size:12px}.weekbar{gap:2px}.daychip{padding:7px 2px}.daychip b{font-size:12px}}
.btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* production completion */
.brand-icon-img{width:42px;height:42px;border-radius:13px;object-fit:cover}.toast.warning{background:#fff7db;color:#79580b}.notif-link{position:relative}.notif-badge{position:absolute;right:-5px;top:-5px;min-width:18px;height:18px;padding:0 4px;border-radius:20px;background:var(--red);color:#fff;font-size:9px;font-weight:900;display:grid;place-items:center;border:2px solid #fff}.btn.tiny{padding:8px 10px;border-radius:10px;font-size:11px}.auth-card{padding:28px}.auth-brand img{width:76px;height:76px;border-radius:22px;object-fit:cover;box-shadow:0 12px 30px rgba(205,50,34,.16)}.auth-brand h1 span{color:var(--orange)}.auth-links{display:flex;justify-content:center;gap:8px;margin-top:16px;font-size:12px;color:var(--muted)}.auth-links a{color:var(--red);font-weight:800}.requirements{display:grid;gap:7px;margin:15px 0 20px;font-size:12px}.requirements div{padding:8px 10px;border-radius:10px;background:#fff8f2}.profile-shell{max-width:900px;margin:0 auto}.profile-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:18px}.profile-stats .panel{padding:18px;text-align:center}.profile-stats b{display:block;font-size:25px;color:#d94b28}.profile-stats span{font-size:11px;color:var(--muted)}.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.profile-grid .panel{padding:22px}.profile-grid h2{font-size:17px;margin-top:0}.install-panel{grid-column:1/-1}.notifications-list{padding:8px 18px}.notification-item{display:grid;grid-template-columns:10px 1fr auto;gap:12px;align-items:start;padding:16px 0;border-bottom:1px solid var(--line)}.notification-item:last-child{border-bottom:0}.notification-item h3{font-size:14px;margin:0 0 5px}.notification-item p{font-size:12px;color:#655c56;margin:0 0 5px}.notification-item small{font-size:10px;color:var(--muted);margin-right:10px}.notification-item a{font-size:11px;color:var(--red);font-weight:800}.notification-dot{width:8px;height:8px;border-radius:50%;background:#d7ccc4;margin-top:6px}.notification-item.unread .notification-dot{background:var(--red)}.notification-item.unread h3{color:#ba302b}.upload-box{border:1.5px dashed #e4cbbd;border-radius:16px;padding:18px;text-align:center;background:#fff9f3;display:grid;gap:5px;cursor:pointer}.upload-box input{display:none}.upload-box span{font-size:13px;font-weight:800;color:#d44d2c}.upload-box small{font-size:10px;color:var(--muted)}.check-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.check-grid label{font-size:12px;background:#fff9f4;border:1px solid var(--line);padding:10px;border-radius:12px}.filter-chips{display:flex;gap:8px;overflow:auto;padding:6px 1px 16px;scrollbar-width:none}.filter-chips a{white-space:nowrap;border:1px solid var(--line);background:#fff;padding:9px 12px;border-radius:999px;font-size:11px;font-weight:800;color:#71645d}.filter-chips a.active{background:#fff0e8;border-color:#ffc4a8;color:var(--red)}.shop-group-title{font-size:12px;font-weight:900;color:#a64b31;padding:14px 3px 5px}.week-nav{display:flex;justify-content:space-between;gap:8px}.plan-copy{min-width:0}.plan-copy h3{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:4px 0 22px}.admin-kpis{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:18px}.admin-kpis .panel{padding:18px}.admin-kpis span{font-size:10px;color:var(--muted);display:block}.admin-kpis b{font-size:23px;display:block;margin-top:5px}.admin-links{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:18px}.admin-links a{padding:18px;display:grid;gap:7px}.admin-links span{font-size:11px;color:var(--muted)}.settings-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.settings-grid .panel{padding:22px}.settings-grid h2{font-size:18px;margin-top:0}.admin-table th{font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}.admin-list{display:grid}.admin-list-row{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.admin-list-row small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.cat-admin-icon{width:38px;height:38px;border-radius:12px;background:#fff2e8;display:grid;place-items:center}.mini-admin-form{display:grid;gap:6px;padding-top:8px;min-width:200px}.mini-admin-form .input{padding:8px 10px;font-size:11px}details summary{list-style:none;cursor:pointer}details summary::-webkit-details-marker{display:none}.system-checks{padding:10px 18px}.check-row{display:grid;grid-template-columns:14px 1fr 1.5fr;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line);font-size:12px}.check-row:last-child{border-bottom:0}.status-dot{width:10px;height:10px;border-radius:50%;background:#bbb}.status-dot.ok{background:#39a95b}.status-dot.warn{background:#f1a22c}.status-dot.fail{background:#d84343}code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;word-break:break-all}
@media(max-width:980px){.admin-kpis{grid-template-columns:repeat(3,1fr)}.admin-links{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.brand-icon-img{width:36px;height:36px}.profile-grid{grid-template-columns:1fr}.install-panel{grid-column:auto}.profile-stats{grid-template-columns:repeat(3,1fr)}.notification-item{grid-template-columns:8px 1fr}.notification-item form{grid-column:2}.check-grid{grid-template-columns:1fr}.week-nav{overflow:auto}.week-nav .btn{white-space:nowrap}.admin-head{align-items:flex-start;flex-direction:column}.admin-head .row{width:100%}.admin-kpis{grid-template-columns:repeat(2,1fr)}.settings-grid{grid-template-columns:1fr}.admin-links{grid-template-columns:1fr}.admin-list-row{grid-template-columns:42px 1fr}.admin-list-row>.row{grid-column:2}.check-row{grid-template-columns:14px 1fr}.check-row span:last-child{grid-column:2}.auth-card{padding:22px}}


/* PWA install visibility v4 */
.pwa-home-card{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:13px;margin:16px 0 6px;padding:13px 14px;background:linear-gradient(135deg,#fff 0%,#fff5e9 100%);border:1px solid #f1d7c5;border-radius:18px;box-shadow:0 10px 26px rgba(92,55,30,.07)}
.pwa-home-card[hidden],.auth-install[hidden],.install-panel[hidden]{display:none!important}.pwa-home-icon{width:46px;height:46px;border-radius:14px;background:#fff;display:grid;place-items:center;box-shadow:0 5px 15px rgba(80,40,20,.08)}.pwa-home-icon img{width:40px;height:40px;border-radius:11px}.pwa-home-copy{display:grid;gap:2px}.pwa-home-copy b{font-size:13px}.pwa-home-copy span{font-size:10.5px;color:var(--muted);line-height:1.3}.pwa-home-btn,.auth-install button,.pwa-install-bar>button:not(.pwa-dismiss){border:0;border-radius:12px;padding:10px 13px;background:linear-gradient(135deg,var(--red),var(--orange));color:#fff;font-size:11px;font-weight:900;white-space:nowrap}
.auth-install{margin-top:18px;padding:12px;border:1px solid #f0ded2;border-radius:16px;background:#fff8f1;display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:10px}.auth-install img{width:42px;height:42px;border-radius:12px}.auth-install div{display:grid;gap:2px}.auth-install b{font-size:12px}.auth-install small{font-size:9.5px;color:var(--muted)}
.pwa-install-bar{position:fixed;z-index:95;left:50%;bottom:max(88px,calc(82px + env(safe-area-inset-bottom)));transform:translateX(-50%);width:min(94vw,520px);display:grid;grid-template-columns:42px 1fr auto 28px;align-items:center;gap:10px;padding:11px 12px;background:rgba(255,255,255,.98);border:1px solid #efd9cc;border-radius:18px;box-shadow:0 18px 50px rgba(44,28,20,.22);backdrop-filter:blur(15px)}.pwa-install-bar[hidden]{display:none}.pwa-install-bar img{width:42px;height:42px;border-radius:12px}.pwa-install-bar div{display:grid;gap:2px}.pwa-install-bar b{font-size:12px}.pwa-install-bar span{font-size:9.5px;color:var(--muted)}.pwa-dismiss{width:28px;height:28px;border:0;background:transparent;color:#9b8d84;font-size:22px;line-height:1}
.pwa-help{position:fixed;inset:0;z-index:120;background:rgba(26,19,15,.46);display:grid;place-items:end center;padding:20px}.pwa-help[hidden]{display:none}.pwa-help-card{position:relative;width:min(100%,430px);padding:26px 22px 22px;background:#fff;border-radius:24px;box-shadow:0 25px 70px rgba(20,14,10,.3);text-align:center}.pwa-help-card img{width:72px;height:72px;border-radius:20px}.pwa-help-card h3{margin:12px 0 7px}.pwa-help-card p{font-size:13px;line-height:1.5;color:#655b55;margin:0 0 18px}.pwa-help-close{position:absolute;right:13px;top:12px;border:0;background:#fff4ed;border-radius:50%;width:32px;height:32px;font-size:20px;color:#8d7669}
@media(max-width:700px){.pwa-home-card{grid-template-columns:46px 1fr;gap:10px}.pwa-home-btn{grid-column:1/-1;width:100%;padding:11px}.pwa-install-bar{bottom:max(84px,calc(78px + env(safe-area-inset-bottom)));grid-template-columns:38px 1fr auto 24px}.pwa-install-bar img{width:38px;height:38px}.pwa-install-bar span{display:none}.auth-install{grid-template-columns:38px 1fr auto}.auth-install img{width:38px;height:38px}}
@media(min-width:701px){.pwa-install-bar{bottom:22px}}
