@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');:root{--bg:#f5f7fa;--ink:#243143;--muted:#667085;--line:#e1e6ee;--blue:#2563eb;--radius:6px}*{box-sizing:border-box}body{margin:0;font:14px/1.55 Inter,system-ui,sans-serif;background:var(--bg);color:var(--ink)}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}h1{font-size:20px;margin:0 0 10px}h2{font-size:17px;margin:0 0 12px}h3{font-size:15px}p{margin:0 0 12px;color:var(--muted)}.logo{width:86px;max-height:66px;object-fit:contain}.topbar{height:65px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 24px;position:sticky;top:0;z-index:10}.topbar .right{display:flex;gap:12px;align-items:center}.shell{max-width:1450px;margin:auto;display:grid;grid-template-columns:225px minmax(0,1fr);gap:20px;padding:20px}.sidebar{display:flex;flex-direction:column;gap:4px;align-self:start;position:sticky;top:85px;background:white;border:1px solid var(--line);border-radius:10px;padding:10px}.navitem{display:flex;gap:10px;align-items:center;padding:10px;border-radius:6px;color:#526174}.navitem.active{background:#eaf1ff;color:var(--blue);font-weight:600}.navitem svg,.btn svg,button svg{width:18px;height:18px;flex-shrink:0}.panel{background:white;border:1px solid var(--line);border-radius:10px;padding:20px;margin-bottom:16px;min-width:0}.heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.crumb{color:var(--muted);font-size:12px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.stat strong{display:block;font-size:28px}.stat svg{color:var(--blue);width:23px;height:23px}label{display:block;font-weight:500;margin:0 0 13px}input:not([type=checkbox]),select,textarea{display:block;width:100%;min-width:0;border:1px solid #cfd6e0;border-radius:var(--radius);padding:11px 12px;margin-top:5px;background:#fff;color:var(--ink);outline:none}input:focus,select:focus,textarea:focus,.rich:focus{border-color:var(--blue);outline:2px solid #dbeafe}.inline{display:flex;align-items:center;gap:8px}.primary,.btn,button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;border:1px solid var(--line);background:white;border-radius:var(--radius);padding:8px 13px;color:var(--ink);font-weight:600}.primary{background:var(--blue);color:white;border-color:var(--blue)}.danger{color:#b42318}.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.alert{padding:12px;border:1px solid #f0bcab;border-radius:6px;background:#fff5f2;color:#9c2916;margin-bottom:15px}.success{background:#edf9f0;color:#17633b;border-color:#bee7cc}.record{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.record:last-child{border-bottom:0}.record img{width:65px;height:52px;object-fit:cover;border-radius:6px}.grow{flex:1;min-width:0;overflow-wrap:anywhere}.record small{display:block;color:var(--muted)}.pill{font-size:12px;color:#17633b;background:#eaf7ef;border-radius:20px;padding:3px 9px}.pill.draft{background:#f0f2f5;color:#667085}.upload{border:1px dashed #b7c4d4;background:#f8fafc;border-radius:8px;padding:18px;text-align:center;cursor:pointer;font-weight:500}.upload input{position:absolute;width:1px!important;height:1px;opacity:0;overflow:hidden}.upload span{display:block;color:var(--muted);font-size:12px}.richshell{border:1px solid #cfd6e0;border-radius:6px;overflow:hidden;margin-bottom:15px}.toolbar{display:flex;gap:3px;flex-wrap:wrap;padding:7px;background:#f7f9fc;border-bottom:1px solid var(--line)}.toolbar button{min-height:32px;padding:4px 9px}.rich{min-height:230px;padding:14px;background:white;overflow-wrap:anywhere;outline:none}.rich img{max-width:100%}.rich p{color:inherit}.gallery-edit{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px;margin-bottom:16px}.gallery-edit img{width:100%;height:90px;object-fit:cover;border-radius:6px}.auth{display:grid;place-items:center;min-height:100vh;padding:20px}.authbox{width:min(100%,460px)}.authbox .logo{display:block;margin:0 auto 15px}.checkrow{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:7px 0}.bottomnav,.mobilemenu{display:none}.tabs{display:flex;flex-wrap:wrap;gap:4px;background:#eef1f6;border-radius:8px;padding:4px;margin-bottom:16px}.tabs a{padding:9px 12px;border-radius:6px}.tabs a.active{background:white;box-shadow:0 1px 3px #0001;color:var(--blue)}progress{width:100%;height:12px;accent-color:var(--blue)}.search{margin-bottom:12px}.icon-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:10px}.icon-grid div{display:grid;place-items:center;border:1px solid var(--line);padding:10px;border-radius:6px;gap:5px;font-size:11px}.icon-grid svg{width:24px;height:24px}@media(max-width:1000px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.shell{display:block;padding:14px 14px calc(90px + env(safe-area-inset-bottom))}.topbar{padding:0 14px;height:62px}.sidebar{display:none;position:fixed;inset:62px 0 72px 0;z-index:15;overflow-y:auto;border-radius:0;margin:0;padding:14px}.sidebar.open{display:flex}.bottomnav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:20;background:white;border-top:1px solid var(--line);padding:7px 4px calc(7px + env(safe-area-inset-bottom));justify-content:space-around}.bottomnav a,.bottomnav button{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:10px;padding:5px 1px;border:0;font-weight:500;min-width:0}.bottomnav svg{width:21px;height:21px}.bottomnav .active{color:var(--blue)}.panel{padding:14px}.grid{grid-template-columns:1fr}.record{flex-wrap:wrap}.record .actions{margin-left:auto}.topbar .right .name{display:none}input:not([type=checkbox]),select,textarea{font-size:16px;min-height:46px}.primary,.btn,button{min-height:44px}.toolbar button{min-height:40px}.heading{flex-wrap:wrap}.topbar .logo{max-height:48px}.stats .panel{padding:12px}.record .grow{min-width:120px}.gallery-edit{grid-template-columns:repeat(2,minmax(0,1fr))}}
