:root{--bg:#F6F7FB;--surface:#fff;--ink:#192339;--muted:#727D91;--line:#E7EAF1;--violet:#6D5BEF;--violetDark:#5443D0;--pale:#F2F0FF;--green:#13826C;--amber:#AD7219;--red:#C3484F;--nav:#192439;--shadow:0 12px 35px rgba(24,36,59,.05);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,select{font:inherit}button{cursor:pointer}a{color:var(--violetDark);text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3,p{margin-top:0}h1{font-size:1.8rem;letter-spacing:-.05em}h2{font-size:1.25rem;letter-spacing:-.035em}h3{font-size:1rem}p{line-height:1.55}.small{font-size:.81rem}.subtle{color:var(--muted)}.caps{letter-spacing:.105em;font-size:.72rem;text-transform:uppercase;font-weight:800}.hide{display:none!important}
.btn{border:1px solid transparent;display:inline-flex;justify-content:center;align-items:center;gap:.55rem;border-radius:11px;padding:.75rem 1rem;background:var(--violet);color:white;font-weight:720;transition:.18s transform,.18s background;min-height:42px}.btn:hover{background:var(--violetDark);transform:translateY(-1px)}.btn:focus-visible,.field:focus-visible,.nav-link:focus-visible{outline:3px solid #B6AFFF;outline-offset:2px}.btn.light{background:white;color:var(--ink);border-color:var(--line)}.btn.light:hover{background:#F6F7FC}.btn.soft{background:var(--pale);color:var(--violetDark)}.btn.soft:hover{background:#E7E3FF}.btn.danger{background:#FFF0EF;color:var(--red)}.btn.small{padding:.52rem .7rem;min-height:34px;font-size:.81rem}.btn.wide{width:100%}.btn:disabled{opacity:.55;cursor:not-allowed;transform:none}.text-button{background:none;border:none;color:var(--violetDark);font-weight:730;padding:.2rem}
.field-group{display:flex;flex-direction:column;gap:.35rem}.field-group label{font-size:.81rem;color:#41506A;font-weight:710}.field{background:white;width:100%;color:var(--ink);border:1px solid #DDE2EC;border-radius:10px;padding:.77rem .88rem;min-height:42px;outline:none}.field:focus{border-color:#8C7CFC;box-shadow:0 0 0 3px #E8E3FF}.field:disabled{background:#F7F8FC}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-stack{display:grid;gap:14px}.form-foot{display:flex;justify-content:flex-end;gap:9px;margin-top:10px}.message{padding:11px 13px;border:1px solid #ECD9A8;border-radius:10px;background:#FFFAEA;color:#825714;font-size:.85rem;line-height:1.5}.notice{padding:13px;border-radius:11px;background:var(--pale);color:#4C42A3;font-size:.88rem}
.auth-layout{min-height:100vh;display:grid;grid-template-columns:1.06fr 1fr}.auth-hero{padding:9vh 7vw;background:radial-gradient(circle at 65% 26%,#384A7C 0,transparent 39%),linear-gradient(135deg,#172136,#273855);color:#fff;display:flex;flex-direction:column;justify-content:space-between}.brand{display:flex;align-items:center;gap:12px;font-weight:820;letter-spacing:-.03em;font-size:1.15rem}.brand-mark{width:38px;height:38px;background:linear-gradient(135deg,#9984FF,#6D5BEF);border-radius:12px;display:grid;place-items:center;font-size:22px;color:white;box-shadow:0 6px 20px #2719A94A}.auth-hero h1{font-size:clamp(2rem,3.3vw,3.9rem);line-height:1.12;margin-bottom:20px}.auth-hero h1 em{color:#BAB1FF;font-style:normal}.auth-hero p{color:#BAC5D7;max-width:500px}.hero-visual{border:1px solid #55657A;border-radius:19px;background:#FFFFFF13;max-width:370px;padding:22px;display:grid;gap:18px;margin-top:38px;backdrop-filter:blur(3px)}.hero-chip{display:inline-flex;border-radius:7px;padding:5px 10px;background:#FFFFFF25;font-size:.73rem;color:#D9D9F4;width:max-content}.hero-stamps{display:flex;gap:8px}.hero-stamps span{width:30px;height:30px;border-radius:50%;background:#9084FB;display:grid;place-items:center;font-size:.9rem}.hero-stamps span.empty{background:#FFFFFF20;border:1px solid #8794AC}.auth-main{display:grid;place-items:center;padding:45px 6vw}.auth-card{width:min(440px,100%)}.auth-title{margin:20px 0 7px}.auth-note{font-size:.86rem;color:var(--muted);margin-bottom:24px}.auth-footer{text-align:center;margin-top:22px;font-size:.87rem;color:var(--muted)}.auth-error{padding:12px;border-radius:9px;background:#FFF0F0;color:#9A2831;font-size:.83rem;margin-bottom:16px}
.app-layout{min-height:100vh;display:grid;grid-template-columns:248px 1fr}.sidebar{background:var(--nav);color:#DFE5F0;padding:24px 14px;display:flex;flex-direction:column;gap:27px;min-height:100vh}.sidebar .brand{padding:0 10px;color:white}.sidebar .brand-mark{width:35px;height:35px}.sidebar-label{padding:0 12px;color:#8290AA;font-size:.67rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;margin-bottom:12px}.nav{display:grid;gap:5px}.nav-link{border:0;background:transparent;color:#B4C0D4;border-radius:10px;padding:11px 12px;width:100%;display:flex;align-items:center;gap:12px;text-align:left;font-size:.89rem;font-weight:600}.nav-link:hover{background:#2B3850;color:white}.nav-link.active{background:#373967;color:white}.nav-ico{width:22px;font-size:1.05rem}.sidebar-bottom{margin-top:auto;padding:15px 10px;border-top:1px solid #334258}.sidebar-bottom button{color:#C5D0DF;border:0;background:none;padding:9px 0;text-align:left;cursor:pointer;font-size:.84rem}.main{min-width:0}.topbar{height:82px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 38px;gap:15px}.topbar-left{display:flex;align-items:center;gap:16px}.topbar-title{font-size:.78rem;color:var(--muted)}.business-switch{background:#F5F6FB;border:1px solid var(--line);border-radius:11px;padding:9px 11px;font-weight:680;max-width:230px}.user-pill{display:flex;align-items:center;gap:9px;color:#46516A;font-size:.82rem}.avatar{width:35px;height:35px;border-radius:50%;display:grid;place-items:center;background:#EDE9FF;color:#5949BB;font-weight:800}.content{padding:30px 38px 60px;max-width:1360px;margin:auto}.heading-row{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:24px}.eyebrow{color:var(--violetDark);font-size:.75rem;font-weight:810;text-transform:uppercase;letter-spacing:.08em;margin-bottom:8px}.heading-row p{color:var(--muted);font-size:.91rem}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:20px}.metric{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);padding:19px}.metric .num{font-size:1.8rem;letter-spacing:-.06em;font-weight:810;margin:14px 0 3px}.metric .hint{color:var(--muted);font-size:.78rem}.metric-icon{display:grid;place-items:center;width:37px;height:37px;background:var(--pale);color:var(--violetDark);font-size:1.1rem;border-radius:11px}.panel{background:white;border:1px solid var(--line);border-radius:17px;padding:24px;box-shadow:var(--shadow);margin-bottom:18px}.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:20px}.panel h2{margin-bottom:6px}.panel-desc{color:var(--muted);font-size:.86rem;line-height:1.5}.two-col{display:grid;grid-template-columns:1.25fr .75fr;gap:17px}.setup-list{display:grid;gap:16px}.setup-item{display:flex;gap:12px;align-items:flex-start}.setup-number{background:var(--pale);color:var(--violetDark);border-radius:50%;height:30px;min-width:30px;display:grid;place-items:center;font-size:.85rem;font-weight:800}.setup-item h3{margin:0 0 4px}.setup-item p{color:var(--muted);font-size:.82rem;margin:0}.tag{font-size:.71rem;font-weight:770;padding:5px 8px;background:#EAF7F1;color:var(--green);border-radius:50px;white-space:nowrap}.tag.pending{color:#786313;background:#FFF5D6}.tag.dark{background:#EBEAFE;color:#5C4AC0}.table-wrap{overflow-x:auto}.data-table{border-collapse:collapse;width:100%;font-size:.85rem;white-space:nowrap}.data-table th{text-align:left;padding:14px 10px;background:#FAFBFE;color:#69758D;font-size:.75rem;letter-spacing:.04em}.data-table td{padding:15px 10px;border-bottom:1px solid #EEF0F5}.data-table tr:last-child td{border-bottom:0}.data-table .actions{text-align:right}.empty-state{padding:30px 15px;text-align:center;color:var(--muted);font-size:.85rem}.empty-icon{font-size:2.1rem;margin-bottom:10px}.accent-panel{background:linear-gradient(120deg,#282D5A,#6150B3);color:white}.accent-panel h2{color:white}.accent-panel p{color:#D9D5FC}.accent-panel .btn{background:white;color:#4D40B6}.section-sep{margin:22px 0;border:0;border-top:1px solid var(--line)}
#toast{position:fixed;bottom:20px;right:20px;z-index:200;background:var(--ink);color:white;padding:14px 18px;box-shadow:0 15px 40px #1116;border-radius:11px;max-width:390px;opacity:0;transform:translateY(15px);transition:.2s;pointer-events:none;font-size:.85rem}#toast.show{opacity:1;transform:translateY(0)}#toast.error{background:#9A2636}.modal-backdrop{position:fixed;inset:0;background:#17243D9B;z-index:99;display:grid;place-items:center;padding:20px}.modal{background:white;width:min(530px,100%);border-radius:18px;padding:24px;max-height:90vh;overflow:auto;box-shadow:0 26px 80px #141B3B50}.modal h2{margin-bottom:5px}.modal-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:18px}.close{background:#F1F2F6;border:0;border-radius:50%;width:32px;height:32px;font-size:1.15rem}.url-output{white-space:normal;overflow-wrap:anywhere;background:#F5F6FC;border:1px dashed #A2A9BE;padding:14px;border-radius:9px;font-size:.85rem}
.boot{min-height:100vh;display:flex;align-items:center;justify-content:center;gap:13px;color:var(--muted)}.spinner{width:20px;height:20px;border:3px solid #E4E1F8;border-top-color:var(--violet);border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:1120px){.cards{grid-template-columns:repeat(2,1fr)}.content{padding:28px 24px}.topbar{padding:0 24px}}@media(max-width:780px){.auth-layout{grid-template-columns:1fr}.auth-hero{padding:20px;min-height:0}.auth-hero .hero-content,.hero-visual,.auth-hero .small{display:none}.auth-main{padding:45px 22px}.app-layout{grid-template-columns:1fr}.sidebar{min-height:0;padding:14px;gap:12px}.sidebar .brand{font-size:.98rem}.sidebar-label,.sidebar-bottom{display:none}.nav{display:flex;overflow-x:auto;gap:4px}.nav-link{width:auto;white-space:nowrap;padding:9px 12px;font-size:.78rem}.nav-ico{width:auto}.topbar{height:auto;padding:14px 18px}.content{padding:24px 16px 60px}.user-pill span{display:none}.two-col{grid-template-columns:1fr}.heading-row{flex-direction:column}.panel{padding:18px}}@media(max-width:460px){.form-grid{grid-template-columns:1fr}.cards{gap:9px}.metric{padding:12px}.metric .num{font-size:1.4rem}.metric .hint{font-size:.72rem}.topbar-left{gap:7px}.business-switch{max-width:155px;font-size:.75rem}.panel-head{flex-wrap:wrap}.heading-row h1{font-size:1.55rem}}
