:root{--navy:#1d4778;--navy2:#173d6b;--blue:#2876e9;--ink:#193b66;--muted:#6f84a0;--line:#d9e3ef;--bg:#f3f7fc;--green:#2e8050;--amber:#b97614;--red:#b74646;--white:#fff;--shadow:0 9px 28px rgba(20,54,96,.08)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:'DM Sans','Segoe UI',Arial,sans-serif;color:var(--ink);background:#fff;font-size:14px}button,input,select{font:inherit}button{cursor:pointer}img{display:block;max-width:100%}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.eyebrow{font-size:10px;letter-spacing:.12em;font-weight:800;color:#99c3f1;margin:0 0 12px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Shared public and authentication header */
.site-header{height:82px;background:#fff;border-bottom:1px solid var(--line);position:relative;z-index:20}.header-inner{max-width:1500px;height:100%;margin:auto;padding:0 34px;display:flex;align-items:center;gap:32px}.brand img{width:180px;height:64px;object-fit:contain;object-position:left center}.site-nav{display:flex;align-items:center;gap:clamp(14px,2.25vw,36px);margin-left:auto}.site-nav a,.header-signin{font-size:13px;font-weight:700;color:#294b78;white-space:nowrap}.site-nav a:hover,.header-signin:hover{color:var(--blue)}.header-actions{display:flex;align-items:center;gap:20px}.header-signin.active{color:var(--blue)}.button{height:48px;padding:0 23px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;gap:12px;font-weight:700;border:1.5px solid var(--blue);background:#fff;color:var(--blue);transition:background .15s,box-shadow .15s,transform .15s;white-space:nowrap}.button:hover{transform:translateY(-1px);box-shadow:0 7px 18px rgba(40,118,233,.16)}.button-primary{background:var(--blue);color:#fff}.button-primary:hover{background:#1e67d2}.button-small{height:41px;padding:0 18px;font-size:12px}.nav-toggle{display:none;border:0;background:transparent;font-size:24px;color:var(--navy)}
/* Login / registration */
.auth-page{min-height:100vh;background:#fff}.auth-header{position:sticky;top:0}.auth-main{width:min(1450px,100%);min-height:calc(100vh - 82px);margin:auto;display:grid;grid-template-columns:1fr 1fr;padding:22px 28px;gap:0}.auth-visual{position:relative;min-height:650px;overflow:hidden;border-radius:15px 0 0 15px;background:#d7e5f0}.auth-photo-grid{position:absolute;inset:0;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}.auth-photo-grid img{width:100%;height:100%;object-fit:cover;min-width:0;min-height:0;filter:saturate(.91)}.auth-photo-grid img:nth-child(2),.auth-photo-grid img:nth-child(4){object-position:center}.auth-photo-tint{position:absolute;inset:0;background:linear-gradient(90deg,rgba(15,49,91,.75),rgba(18,54,94,.26) 80%),linear-gradient(0deg,rgba(13,43,78,.37),transparent 70%)}.auth-promise{position:absolute;left:clamp(24px,4vw,64px);bottom:42px;max-width:490px;color:white;background:rgba(12,36,68,.82);backdrop-filter:blur(8px);padding:22px 24px;border-radius:14px;box-shadow:0 12px 40px rgba(8,24,48,.35)}.auth-promise>img{width:170px;height:60px;object-fit:contain;object-position:left;background:#fff;border-radius:9px;padding:6px 10px;margin-bottom:22px}.auth-promise .eyebrow{color:#d5e8ff}.auth-promise h1{font-size:clamp(36px,4.3vw,60px);line-height:1.04;letter-spacing:-.045em;margin:0;font-weight:800}.auth-promise h1 em{color:#d4f0c6;font-style:normal}.auth-promise>p:not(.eyebrow){font-size:15px;line-height:1.6;color:#e4edf6;max-width:420px}.auth-photo-links{display:flex;gap:10px;align-items:center;margin-top:20px;font-size:12px;font-weight:700;color:#fff}.auth-photo-links a:hover{text-decoration:underline}.auth-panel{display:flex;align-items:center;justify-content:center;padding:30px clamp(24px,5.5vw,84px);border:1px solid #e7edf4;border-left:0;border-radius:0 15px 15px 0}.auth-form{width:min(100%,460px)}.auth-form-brand{margin-bottom:24px}.auth-form-brand img{width:205px;height:72px;object-fit:contain;object-position:left}.auth-form .eyebrow{color:#3677cf;margin-bottom:7px}.auth-form h2{font-size:42px;line-height:1.05;letter-spacing:-.04em;margin:0;color:#173b70}.auth-sub{color:#7286a0;margin:10px 0 25px;line-height:1.5}.auth-field{display:flex;flex-direction:column;gap:8px;margin:0 0 17px}.auth-field>span:first-child{font-size:13px;font-weight:700;color:#24476d}.auth-field input,.auth-field select,.field input,.field select,.search-field input{width:100%;min-height:49px;border:1px solid #ccd9e8;border-radius:8px;padding:0 14px;color:#29486b;background:#fff;outline:0}.auth-field input::placeholder,.field input::placeholder{color:#9aa9ba}.auth-field input:focus,.auth-field select:focus,.field input:focus,.field select:focus{border-color:#5792e5;box-shadow:0 0 0 3px rgba(40,118,233,.12)}.password-wrap{position:relative;display:block}.password-wrap input{padding-right:50px}.password-wrap button{position:absolute;right:7px;top:6px;width:37px;height:37px;border:0;border-radius:7px;background:transparent;color:#476a90;font-size:18px}.auth-message{min-height:20px;color:#b54444;font-size:12px;line-height:1.45;margin:-3px 0 9px}.auth-message.success{color:#267449}.auth-message.info{color:#526d8c}.auth-submit,.auth-create{width:100%;height:52px;font-size:14px}.auth-submit:disabled{opacity:.65;cursor:wait}.auth-divider{display:flex;align-items:center;gap:15px;color:#7489a1;font-size:12px;margin:17px 0}.auth-divider:before,.auth-divider:after{content:"";height:1px;background:#dce5ef;flex:1}.forgot-link{display:block;text-align:center;color:#2876e9;font-weight:700;font-size:13px;margin:19px auto 0}.auth-terms{text-align:center;color:#8495a8;font-size:10px;line-height:1.5;margin:22px auto 0;max-width:350px}
/* Workspace frame */
.workspace{background:var(--bg);min-height:100vh}.app-shell{min-height:100vh;display:grid;grid-template-columns:264px minmax(0,1fr)}.side{height:100vh;position:sticky;top:0;display:flex;flex-direction:column;background:var(--navy);color:#fff;padding:18px 15px 20px;z-index:10}.side-brand{padding:0 11px 18px;border-bottom:1px solid rgba(255,255,255,.19)}.side-brand a{display:block}.side-brand img{width:176px;height:62px;object-fit:contain;object-position:left center;background:white;border-radius:9px;padding:3px 8px}.side-brand span{display:block;margin-top:11px;color:#c2d6ec;font-size:9px;letter-spacing:.1em;font-weight:700}.side-role{padding:20px 11px 10px;font-size:11px;font-weight:800;letter-spacing:.07em;color:#bed2e9;text-transform:uppercase}.side-nav{display:flex;flex-direction:column;gap:6px;margin-top:8px}.nav-link{border:0;background:transparent;color:#edf5fc;text-align:left;min-height:48px;padding:0 13px;border-radius:10px;display:flex;align-items:center;gap:14px;font-size:13px;font-weight:700;transition:background .15s,color .15s}.nav-link span{width:22px;text-align:center;font-size:20px}.nav-link:hover{background:rgba(255,255,255,.11)}.nav-link.on{background:#e4eefb;color:#183f70}.nav-link.signout{margin-top:auto;color:#e2edfa}.side-footer{margin-top:auto;border-top:1px solid rgba(255,255,255,.2);padding:15px 10px 0;display:flex;align-items:center;gap:9px;color:#d4e4f3;font-size:10px}.secure-mark{width:22px;height:22px;border-radius:50%;background:#d8f1df;color:#277448;display:grid;place-items:center;font-weight:900}.main-area{min-width:0;display:flex;flex-direction:column;min-height:100vh}.topbar{min-height:82px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:10px clamp(20px,3vw,48px);gap:15px}.topbar-left{display:flex;align-items:center;gap:13px;min-width:180px}.crumb{font-size:9px;font-weight:800;letter-spacing:.13em;color:#8ca0b7}.topbar h1{font-size:25px;letter-spacing:-.03em;margin:3px 0 0;color:#183c6c}.topbar-actions{display:flex;align-items:center;gap:16px}.search-decoration{width:min(31vw,430px);height:42px;border-radius:9px;background:#f2f6fb;display:flex;align-items:center;gap:12px;padding:0 14px;color:#8295aa;font-size:12px}.search-decoration span:first-child{font-size:19px;color:#4b85c6}.secure-badge{font-size:10px;color:#637e9b;white-space:nowrap}.secure-badge i{display:inline-block;width:7px;height:7px;border-radius:100%;background:#43a66a;margin-right:6px}.profile-ident{display:flex;align-items:center;gap:8px;max-width:190px}.avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#e6effb;color:#2c5e9c;font-weight:800}.profile-copy{display:flex;flex-direction:column;gap:2px;min-width:0}.profile-copy b{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-copy small{font-size:9px;color:#748aa3;text-transform:capitalize}.signout-top{border:1px solid #d3deeb;color:#436488;background:white;border-radius:8px;padding:9px 11px;font-size:10px;font-weight:700}.signout-top:hover{border-color:#8cacd0}.mobile-menu{display:none}.page-content{width:100%;max-width:1550px;padding:25px clamp(20px,3vw,48px) 40px;margin:0 auto;flex:1;min-width:0}.dashboard-footer{min-height:67px;padding:12px clamp(20px,3vw,48px);border-top:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;gap:20px;color:#7388a1;font-size:10px;font-weight:700}.dashboard-footer div{display:flex;align-items:center;gap:18px}.dashboard-footer img{width:100px;height:27px;object-fit:contain}.dashboard-footer img:last-child{width:98px}
/* Dashboard content */
.dash-hero{min-height:224px;border-radius:15px;overflow:hidden;position:relative;background-image:linear-gradient(90deg,rgba(18,53,94,.94),rgba(20,57,99,.8) 43%,rgba(20,57,99,.08) 80%),var(--dash-photo);background-size:cover;background-position:center 44%;display:flex;align-items:center;margin-bottom:21px;box-shadow:var(--shadow)}.dash-hero-copy{padding:30px 34px;max-width:670px;color:white}.dash-hero-copy h2{font-size:clamp(25px,2.6vw,36px);line-height:1.12;letter-spacing:-.03em;margin:0 0 10px}.dash-hero-copy p{color:#e0eaf4;margin:0;line-height:1.6;max-width:570px;font-size:13px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:0 0 20px}.stat{min-height:86px;background:#fff;border:1px solid var(--line);border-radius:13px;padding:15px;display:flex;align-items:center;gap:13px;box-shadow:0 2px 7px rgba(28,61,98,.02);min-width:0}.stat-icon{flex:none;width:39px;height:39px;border-radius:11px;background:#eaf2fc;color:#3678cf;display:grid;place-items:center;font-size:18px;font-weight:800}.stat.green .stat-icon{color:#348253;background:#eaf6ed}.stat.amber .stat-icon{color:#a76c18;background:#fff3df}.stat.red .stat-icon{color:#b24343;background:#fff0f0}.stat b{font-size:21px;display:block;line-height:1.2;overflow-wrap:anywhere}.stat small{color:#71869f;display:block;font-size:10px;margin-top:5px;line-height:1.3}.panel{background:#fff;border:1px solid var(--line);border-radius:13px;padding:18px 20px;margin:0 0 18px;box-shadow:0 3px 10px rgba(25,59,102,.025);min-width:0}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.panel h2,.item-heading h2,.form-panel h2{font-size:16px;line-height:1.3;margin:0;color:#1c406d}.text-action{border:0;background:transparent;color:#3277d0;font-weight:700;font-size:11px;padding:7px}.text-action:hover{text-decoration:underline}.table-wrap{width:100%;overflow:auto;overscroll-behavior-x:contain}table{width:100%;border-collapse:collapse;min-width:760px;text-align:left}th{font-size:9px;letter-spacing:.055em;text-transform:uppercase;color:#7890aa;background:#f7f9fc;padding:12px 10px;white-space:nowrap}td{font-size:11px;color:#3d5a7a;padding:13px 10px;border-top:1px solid #e8eef5;vertical-align:middle}td b{color:#203f66;font-size:11px}.pill{display:inline-flex;max-width:100%;padding:5px 8px;border-radius:999px;background:#eef2f6;color:#536a82;font-size:9px;font-weight:700;white-space:nowrap}.pill.ok{background:#e8f5ec;color:#277649}.pill.wait{background:#fff3df;color:#9c6518}.pill.bad{background:#fdeaea;color:#a83838}.row-note{display:block;color:#8798aa;margin-top:4px;max-width:190px;line-height:1.35}.row-actions{display:flex;flex-wrap:wrap;gap:5px;min-width:135px}.btn{min-height:38px;padding:0 15px;border:1px solid #2876e9;border-radius:8px;background:#2876e9;color:#fff;font-size:11px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:6px}.btn:hover{background:#1e66d0}.btn:disabled{opacity:.6;cursor:wait}.btn.sm{min-height:30px;padding:0 9px;font-size:9px}.btn.outline{background:#fff;color:#376ea9;border-color:#c9d8e9}.btn.outline:hover{background:#f3f7fb}.btn.danger{background:#fff;color:#b44646;border-color:#ecc9c9}.btn.danger:hover{background:#fff5f5}.empty{padding:26px 12px;text-align:center;display:flex;flex-direction:column;gap:5px;color:#7d90a6;font-size:11px}.empty b{font-size:13px;color:#3d5b7b}.loading{text-align:center;padding:60px 10px;color:#7388a1}.quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:0 0 18px}.quick{min-width:0;min-height:107px;text-align:left;border:1px solid var(--line);border-radius:12px;background:#fff;color:#274a71;padding:14px;display:grid;grid-template-columns:32px 1fr;grid-template-rows:auto auto;gap:2px 10px;align-content:center}.quick:hover{border-color:#a8c5e7;background:#fbfdff}.quick>span{grid-row:1/3;width:32px;height:32px;border-radius:9px;background:#edf4fc;color:#3478cc;display:grid;place-items:center;font-size:18px}.quick b{font-size:11px;align-self:end}.quick small{font-size:9px;color:#8294a8;align-self:start;margin-top:4px}.merchant-quick{grid-template-columns:repeat(3,minmax(0,1fr))}.admin-snapshot{display:grid;grid-template-columns:1fr 1fr;gap:17px}.admin-snapshot .panel{margin-bottom:0}.admin-quick{display:grid;grid-template-columns:1fr 1fr;gap:10px}.admin-quick .quick{min-height:65px;padding:10px}.metric-line{min-height:43px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #edf1f5;color:#687f98;font-size:11px}.metric-line:last-child{border-bottom:0}.metric-line b{color:#234771;font-size:12px}.filter-row{display:grid;grid-template-columns:1fr minmax(190px,.45fr);gap:13px;margin-bottom:17px}.field{display:flex;flex-direction:column;gap:6px;min-width:0}.field>span{font-size:11px;font-weight:700;color:#3d5d7e}.field input,.field select{min-height:42px;font-size:12px}.merchant-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.merchant-card{border:1px solid var(--line);border-radius:11px;overflow:hidden;min-width:0;background:#fff}.merchant-card>img{width:100%;height:150px;object-fit:cover}.merchant-card-body{padding:13px}.merchant-card h3{font-size:14px;margin:0 0 5px}.merchant-card-body>small{font-size:10px;color:#778ba2}.offer-pair{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.offer-pair>div{background:#eff7ee;border-radius:8px;padding:9px;display:flex;flex-direction:column;gap:4px;min-width:0}.offer-pair>div+div{background:#eef5fc}.offer-pair b{font-size:10px;color:#398052}.offer-pair>div+div b{color:#3272bf}.offer-pair span{font-size:9px;line-height:1.35;color:#70859a}.offer-valid{display:block!important;color:#8799ac!important;font-size:9px!important}.search-field{margin-bottom:12px;max-width:350px}.search-field input{min-height:39px}.form-panel{padding:22px}.form-panel>h2{margin-bottom:17px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0 0 19px}.field.full{grid-column:1/-1}.field input{min-height:43px}.item-heading{display:flex;justify-content:space-between;align-items:center;margin:3px 0 13px}.item-heading h2{font-size:14px}.item-row{display:grid;grid-template-columns:minmax(200px,1fr) 110px 160px 37px;align-items:end;gap:10px;margin-bottom:10px}.item-row .field input{min-height:40px}.remove-item{border:1px solid #e2caca;background:#fff;color:#a84b4b;border-radius:8px;height:39px;font-size:21px}.invoice-total{margin:15px 0 18px;border-top:1px solid #e8eef4;padding-top:14px;display:flex;justify-content:space-between;color:#607994;font-size:12px}.invoice-total b{font-size:15px;color:#244a73}.form-actions{display:flex;align-items:center;gap:13px;flex-wrap:wrap}.inline-result{font-size:11px;color:#637a91}.inline-result.success{color:#26784a}.inline-result.error,.inline-error{color:#b54444}.chat-heading{display:flex;justify-content:space-between;align-items:center;padding:2px 0 13px;border-bottom:1px solid #e9eff5}.chat-heading>div{display:flex;flex-direction:column;gap:4px}.chat-heading b{font-size:13px}.chat-heading small{font-size:10px;color:#7a8ea5}.online-state{color:#438a5e;font-size:10px;font-weight:700}.chat-list{height:min(48vh,480px);min-height:260px;overflow:auto;padding:14px 3px;display:flex;flex-direction:column;gap:10px}.chat-message{background:#f1f5fa;border-radius:10px 10px 10px 3px;padding:10px 12px;max-width:min(85%,620px);align-self:flex-start}.chat-message.mine{background:#e8f1fc;align-self:flex-end;border-radius:10px 10px 3px 10px}.chat-meta{display:flex;gap:12px;align-items:center;font-size:10px;color:#345b84}.chat-meta time{font-size:9px;color:#8496a9}.chat-message p{margin:6px 0 0;color:#3f5974;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.chat-tools{display:flex;gap:12px;margin-top:7px}.chat-tools button{border:0;padding:0;background:none;color:#457bb5;font-size:9px;font-weight:700}.chat-tools button:hover{text-decoration:underline}.chat-compose{border-top:1px solid #e9eff5;padding-top:13px;display:flex;gap:9px}.chat-compose input{flex:1;min-width:0;min-height:41px;padding:0 12px;border:1px solid #d2deeb;border-radius:8px}.chat-compose input:focus{outline:0;border-color:#5792e5}.moderation-note{display:flex;gap:10px;align-items:flex-start;background:#fff7e9;border:1px solid #f0dfbf;border-radius:10px;padding:12px 15px;margin:0 0 15px;color:#825d21}.moderation-note span{width:19px;height:19px;flex:none;border-radius:50%;background:#f1dfbd;display:grid;place-items:center;font-size:11px;font-weight:800}.moderation-note p{font-size:10px;line-height:1.5;margin:1px 0 0}.notice{position:fixed;z-index:30;top:96px;right:25px;max-width:min(420px,calc(100vw - 30px));padding:12px 16px;border-radius:9px;background:#e8f5ec;border:1px solid #c6e5d0;color:#287347;font-size:11px;box-shadow:var(--shadow)}.notice.bad{background:#fff0f0;border-color:#f0cbcb;color:#ad3b3b}
@media(max-width:1150px){.app-shell{grid-template-columns:235px minmax(0,1fr)}.side{padding-left:12px;padding-right:12px}.topbar-actions{gap:10px}.search-decoration{width:245px}.secure-badge{display:none}.stats{gap:10px}.stat{padding:12px;gap:9px}.stat b{font-size:18px}.merchant-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.site-nav{gap:13px}.site-nav a{font-size:11px}.header-inner{gap:20px}}
@media(max-width:780px){.site-header{height:68px}.header-inner{padding:0 15px;gap:10px}.brand img{width:150px;height:55px}.nav-toggle{display:block;margin-left:auto}.site-nav{display:none;position:absolute;top:67px;left:0;right:0;background:#fff;padding:12px 18px 18px;box-shadow:0 12px 18px rgba(23,54,94,.11);flex-direction:column;align-items:stretch;gap:0}.site-nav.open{display:flex}.site-nav a{padding:12px 5px;border-bottom:1px solid #edf1f5;font-size:13px}.header-actions{gap:11px}.header-signin{font-size:12px}.button-small{height:37px;padding:0 11px;font-size:10px}.auth-main{display:flex;flex-direction:column;min-height:auto;padding:12px;max-width:560px}.auth-visual{min-height:340px;border-radius:12px}.auth-photo-grid{grid-template-columns:repeat(4,1fr);grid-template-rows:1fr}.auth-promise{left:18px;bottom:20px;max-width:350px}.auth-promise>img{width:130px;height:48px;margin-bottom:12px}.auth-promise h1{font-size:34px}.auth-promise>p:not(.eyebrow){font-size:12px;margin:8px 0}.auth-photo-links{margin-top:10px;font-size:10px}.auth-panel{border:0;border-radius:0;padding:28px 12px 36px}.auth-form{max-width:440px}.auth-form-brand{margin-bottom:16px}.auth-form-brand img{width:165px;height:58px}.auth-form h2{font-size:35px}.auth-sub{margin-bottom:18px}.auth-field{margin-bottom:13px}.app-shell{display:block}.side{position:fixed;left:0;top:0;bottom:0;width:270px;height:100vh;transform:translateX(-105%);transition:transform .2s;box-shadow:10px 0 30px rgba(15,42,76,.19)}.side.mobile-open{transform:translateX(0)}.side-nav{gap:5px}.side-footer{margin-top:auto}.topbar{min-height:70px;padding:8px 14px}.topbar-left{min-width:0;gap:9px}.mobile-menu{display:block;border:0;background:#edf3fa;color:#315c89;width:36px;height:36px;border-radius:9px;font-size:19px}.crumb{font-size:8px}.topbar h1{font-size:20px}.topbar-actions{gap:8px}.search-decoration,.secure-badge{display:none}.profile-copy{display:none}.profile-ident{max-width:35px}.avatar{width:32px;height:32px}.signout-top{padding:8px 9px;font-size:9px}.page-content{padding:15px 13px 25px}.dashboard-footer{padding:12px 14px;align-items:flex-start;flex-direction:column;gap:8px}.dashboard-footer div{gap:12px}.dashboard-footer img{width:85px;height:23px}.dashboard-footer img:last-child{width:82px}.dash-hero{min-height:205px;margin-bottom:13px;background-position:58% center}.dash-hero-copy{padding:22px 19px;max-width:82%}.dash-hero-copy h2{font-size:25px}.dash-hero-copy p{font-size:11px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:13px}.stat{min-height:72px;padding:10px}.stat-icon{width:33px;height:33px;border-radius:9px;font-size:16px}.stat b{font-size:16px}.stat small{font-size:9px}.quick-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.quick{min-height:82px;padding:10px;grid-template-columns:28px 1fr;gap:2px 8px}.quick>span{width:28px;height:28px;font-size:16px}.quick b{font-size:10px}.quick small{font-size:8px}.merchant-quick{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-snapshot{grid-template-columns:1fr;gap:0}.admin-snapshot .panel{margin-bottom:12px}.admin-quick{gap:7px}.admin-quick .quick{min-height:58px}.panel{padding:14px 13px;margin-bottom:13px}.panel-head{align-items:flex-start}.panel h2{font-size:14px}.table-wrap{overflow:visible}table{min-width:0;border-collapse:separate;border-spacing:0 8px}thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}tbody,tr{display:block;width:100%}tr{border:1px solid var(--line);border-radius:9px;background:#fff;padding:5px 10px;margin-bottom:9px}td{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;border:0;border-bottom:1px solid #edf1f5;padding:8px 0;font-size:10px;text-align:right;overflow-wrap:anywhere}td:last-child{border-bottom:0}td:before{content:attr(data-label);flex:none;text-align:left;color:#8395a9;font-size:9px;font-weight:700;text-transform:uppercase;max-width:38%}td>.pill{white-space:normal}td .row-actions{justify-content:flex-end;min-width:0}.row-note{text-align:right}.filter-row,.form-grid{grid-template-columns:1fr;gap:11px}.field.full{grid-column:auto}.search-field{max-width:none}.merchant-grid{grid-template-columns:1fr}.merchant-card{display:grid;grid-template-columns:112px 1fr}.merchant-card>img{height:100%;min-height:160px}.merchant-card-body{padding:11px}.merchant-card h3{font-size:12px}.offer-pair{gap:5px}.offer-pair>div{padding:7px}.offer-pair b{font-size:9px}.offer-pair span{font-size:8px}.item-row{grid-template-columns:1fr 72px;gap:9px}.item-name{grid-column:1/-1}.item-price{grid-column:1}.remove-item{grid-column:2;grid-row:2}.form-panel{padding:16px 13px}.item-heading{align-items:flex-start;gap:8px}.form-actions{align-items:flex-start}.btn{min-height:39px}.chat-list{height:45vh;min-height:250px}.chat-message{max-width:94%}.moderation-note{padding:10px}.notice{top:77px;right:12px}.empty{padding:22px 7px}}
@media(max-width:380px){.header-inner{padding:0 10px}.brand img{width:132px}.header-actions{gap:7px}.header-signin{font-size:10px}.button-small{padding:0 8px;font-size:9px}.topbar{padding-left:9px;padding-right:9px}.topbar h1{font-size:17px}.profile-ident{display:none}.dash-hero-copy{max-width:95%}.merchant-card{grid-template-columns:95px 1fr}.offer-pair{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}
.brand{display:inline-flex;align-items:center;flex:none}.brand-shop-label{margin-left:-5px;color:#1875ed;font-size:13px;font-weight:800;letter-spacing:-.045em;white-space:nowrap}@media(max-width:780px){.auth-header .header-actions .button{display:none}}
.auth-promise-brand{display:flex;align-items:center;width:max-content;background:white;border-radius:9px;padding:5px 9px;margin-bottom:18px}.auth-promise-brand img{width:130px;height:47px;object-fit:contain}.auth-promise-brand .brand-shop-label{font-size:11px}.auth-form-brand .brand-shop-label{font-size:14px}.side-brand .brand{background:#fff;border-radius:9px;padding:3px 8px;width:max-content}.side-brand .brand img{background:transparent;padding:0;width:150px;height:54px}.side-brand .brand-shop-label{margin-left:-5px;font-size:12px}@media(max-width:780px){.auth-promise-brand img{width:105px;height:39px}}

/* Workspace layout compatibility and supplied Swayam assets */
.side-brand img{object-fit:cover!important;object-position:center 52%!important;padding:0!important}
.dash-hero{min-height:224px}
.dash-hero .hero-mark{position:absolute;right:26px;top:50%;transform:translateY(-50%);width:68px;height:68px;border-radius:19px;display:grid;place-items:center;background:#ffffff20;border:1px solid #ffffff35;color:#fff;font-size:28px;z-index:2}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:0 0 20px}
.stat .stat-icon{flex:none;width:39px;height:39px;border-radius:11px;background:#eaf2fc;color:#3678cf;display:grid;place-items:center;font-size:18px;font-weight:800}
.stat.green .stat-icon{background:#e5f5e7;color:#287b46}.stat.amber .stat-icon{background:#fff3d8;color:#a86e09}.stat.red .stat-icon{background:#ffe8e8;color:#ad323c}
.split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.tw{width:100%;overflow:auto;overscroll-behavior-x:contain}
.tw table{min-width:760px}
.tw td,.tw th{vertical-align:middle}
.quick-grid.user-quick{margin-bottom:18px}
.quick-grid.user-quick .quick{min-height:88px}
.field.wide{grid-column:1/-1}
.item-head{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding-top:16px;margin-top:5px}
.item-head h3{margin:0;font-size:15px}.item-list{display:flex;flex-direction:column;gap:9px;margin:10px 0 18px}
.item-row{display:grid;grid-template-columns:minmax(190px,1fr) 92px 150px 36px;gap:10px;align-items:end;background:#f8fafd;border:1px solid #edf1f7;border-radius:12px;padding:11px}
.icon-btn{width:36px;height:41px;border:1px solid #f0c9cb;border-radius:9px;background:#fff4f4;color:#ad3037;font-size:23px;cursor:pointer}
.invoice-summary{max-width:420px;margin-left:auto;border-top:1px solid var(--line);padding-top:12px}.invoice-summary>div{display:flex;justify-content:space-between;gap:15px;padding:5px 0;color:#647892;font-size:13px}
.form-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:16px}.inline-result{font-size:12px;color:#7c8ca2}.inline-result.error{color:#b42332}.success-text{color:#28804b}
.action-group{display:flex;gap:5px;flex-wrap:wrap;min-width:140px}.action-group .btn{padding:6px 9px;min-height:32px}.btn.success{background:#2f8b56;border-color:#2f8b56}.btn.red{background:#b93843;border-color:#b93843}.btn.o{background:#fff;color:#315da4;border:1px solid #c7d7ea}
.table-note{display:block;color:#8492a8;font-size:11px;margin-top:4px;white-space:normal}.search-field{max-width:360px;margin-bottom:12px}.readonly{padding:8px 0}
.dialog-backdrop{position:fixed;inset:0;z-index:50;background:#0b1b35a8;display:grid;place-items:center;padding:20px}.dialog{width:min(740px,100%);max-height:88vh;overflow:auto;background:#fff;border-radius:18px;padding:22px;box-shadow:0 20px 70px #06132970}.dialog h2{margin:0 0 4px;font-size:20px}.dialog>p{color:#6f8097;font-size:13px}.dialog-total{display:flex;justify-content:space-between;gap:15px;padding:13px 0;font-weight:700;color:#1e3659}
.reported-message{max-width:300px;white-space:normal;background:#f4f7fc;padding:8px 10px;border-radius:8px;color:#2d4262}
@media(max-width:900px){.split{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.stats{gap:9px}.stat{padding:13px 12px}.stat b{font-size:18px}.dash-hero .hero-mark{width:46px;height:46px;right:13px;font-size:20px}.dash-hero-copy{max-width:calc(100% - 45px)}.item-row{grid-template-columns:minmax(0,1fr) 72px 36px;gap:8px}.item-price{grid-column:1/3}.item-row .icon-btn{grid-column:3;grid-row:1}.tw table{min-width:680px}.action-group{min-width:0}.quick-grid{grid-template-columns:1fr 1fr}}



/* ===== Refined workspace UI overrides ===== */
:root{--navy:#1a3a6e;--navy2:#132f5c;--royal:#1e3a6e;--blue:#2563eb;--ink:#1e293b;--muted:#64748b;--line:#e2e8f0;--bg:#f8fafc;--green:#15803d;--amber:#b45309;--red:#b91c1c;--white:#fff;--shadow:0 4px 16px rgba(15,40,80,.07)}
body.workspace{font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:13.5px;background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased}
img{image-rendering:auto;-webkit-backface-visibility:hidden}

/* Desktop sidebar always visible */
.app-shell{min-height:100vh;display:grid;grid-template-columns:248px minmax(0,1fr)}
.side{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;background:linear-gradient(180deg,var(--navy) 0%,var(--navy2) 100%);color:#fff;padding:14px 12px 12px;z-index:20;overflow:hidden}
.side-brand{padding:0 8px 14px;border-bottom:1px solid rgba(255,255,255,.15)}
.side-brand .brand{display:block;background:#fff;border-radius:8px;padding:4px 8px;width:fit-content}
.side-brand .brand img{width:148px;height:48px;object-fit:contain;object-position:left center;display:block}
.side-brand .brand-caption,.side-brand span{display:block;margin-top:8px;color:#a8c4e0;font-size:9px;letter-spacing:.1em;font-weight:700}
.side-role{padding:14px 10px 6px;font-size:10px;font-weight:800;letter-spacing:.08em;color:#b8d0ea;text-transform:uppercase}
.side-nav{display:flex;flex-direction:column;gap:3px;margin-top:4px;flex:1;overflow-y:auto;padding-bottom:8px}
.nav-link{border:0;background:transparent;color:#e8f1fa;text-align:left;min-height:40px;padding:0 11px;border-radius:8px;display:flex;align-items:center;gap:11px;font-size:12.5px;font-weight:600;transition:background .12s,color .12s}
.nav-link span{width:20px;text-align:center;font-size:16px;opacity:.95}
.nav-link:hover{background:rgba(255,255,255,.1)}
.nav-link.on{background:#e8f0fb;color:#183f70}
.side-bottom{margin-top:auto;padding-top:10px;border-top:1px solid rgba(255,255,255,.14)}
.logout-btn{width:100%;display:flex;align-items:center;justify-content:center;gap:10px;min-height:42px;border:0;border-radius:9px;background:#b91c1c;color:#fff;font-weight:700;font-size:13px;cursor:pointer;transition:background .15s,transform .1s;margin-bottom:10px}
.logout-btn:hover{background:#991b1b;transform:translateY(-1px)}
.logout-btn .logout-icon{font-size:18px;line-height:1}
.side-footer{display:flex;align-items:center;gap:8px;color:#c5d8ec;font-size:10px;padding:0 4px}
.secure-mark{width:20px;height:20px;border-radius:50%;background:#d1fae5;color:#047857;display:grid;place-items:center;font-weight:900;font-size:11px}

/* Topbar + profile dropdown */
.topbar{min-height:68px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:8px clamp(16px,2.5vw,36px);gap:12px}
.topbar h1{font-size:20px;letter-spacing:-.02em;margin:2px 0 0;color:#183c6c;font-weight:700}
.crumb{font-size:9px;font-weight:800;letter-spacing:.12em;color:#8ca0b7}
.topbar-actions{display:flex;align-items:center;gap:14px}
.search-decoration{display:flex;align-items:center;gap:8px;height:36px;padding:0 14px;border-radius:8px;background:#f1f5f9;color:#64748b;font-size:12px;min-width:200px}
.secure-badge{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:600;color:#15803d;background:#ecfdf5;padding:5px 10px;border-radius:20px}
.secure-badge i{width:7px;height:7px;border-radius:50%;background:#22c55e;display:block}
.profile-wrap{position:relative}
.profile-trigger{display:flex;align-items:center;gap:6px;border:1px solid var(--line);background:#fff;border-radius:10px;padding:4px 10px 4px 4px;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.profile-trigger:hover,.profile-trigger[aria-expanded="true"]{border-color:#93c5fd;box-shadow:0 0 0 3px rgba(37,99,235,.12)}
.profile-ident{display:flex;align-items:center;gap:8px;max-width:170px}
.avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#dbeafe;color:#1e40af;font-weight:800;font-size:13px}
.profile-copy{display:flex;flex-direction:column;gap:1px;min-width:0;text-align:left}
.profile-copy b{font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink)}
.profile-copy small{font-size:9.5px;color:var(--muted);text-transform:capitalize}
.caret{font-size:10px;color:#64748b}
.profile-menu{position:absolute;right:0;top:calc(100% + 6px);min-width:180px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 10px 30px rgba(15,40,80,.12);padding:6px;z-index:40}
.profile-menu button{width:100%;display:flex;align-items:center;gap:10px;border:0;background:transparent;text-align:left;padding:10px 12px;border-radius:7px;font-size:12.5px;font-weight:600;color:var(--ink);cursor:pointer}
.profile-menu button:hover{background:#f1f5f9}
.profile-menu button span{width:18px;text-align:center;opacity:.85}
.profile-menu .menu-logout{color:#b91c1c;margin-top:2px;border-top:1px solid var(--line);border-radius:0 0 7px 7px}

/* Center KPI notice cards */
.notice-center{position:fixed;z-index:50;left:50%;top:88px;transform:translateX(-50%);max-width:min(440px,calc(100vw - 28px));pointer-events:none}
.notice-center[hidden]{display:none!important}
.kpi-card{display:flex;align-items:flex-start;gap:12px;padding:14px 18px;border-radius:12px;box-shadow:0 12px 32px rgba(15,40,80,.14);font-size:13px;font-weight:600;line-height:1.4;pointer-events:auto}
.kpi-card b{font-size:16px;line-height:1;flex:none}
.kpi-success{background:var(--royal);color:#fff;border:1px solid #243f6e}
.kpi-success span{color:#bbf7d0}
.kpi-success b{color:#86efac}
.kpi-error{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}
.kpi-error span{color:#b91c1c}
.kpi-error b{color:#dc2626}

/* Compact stats / KPI cards in pages */
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin:0 0 16px}
.stat{min-height:78px;background:#fff;border:1px solid var(--line);border-radius:11px;padding:12px 14px;display:flex;align-items:center;gap:11px;box-shadow:0 1px 4px rgba(28,61,98,.03)}
.stat-icon{flex:none;width:36px;height:36px;border-radius:9px;background:#e0edff;color:#2563eb;display:grid;place-items:center;font-size:15px}
.stat b{display:block;font-size:18px;font-weight:800;color:var(--ink);line-height:1.15}
.stat small{font-size:10.5px;color:var(--muted);font-weight:600}
.stat.green .stat-icon{background:#dcfce7;color:#15803d}
.stat.amber .stat-icon{background:#fef3c7;color:#b45309}
.stat.red .stat-icon{background:#fee2e2;color:#b91c1c}

/* Page content compact */
.page-content{padding:16px clamp(16px,2.5vw,36px) 28px;flex:1}
.dash-hero{position:relative;border-radius:12px;overflow:hidden;min-height:118px;margin-bottom:16px;background:linear-gradient(135deg,#133765 0%,#1a4a8a 55%,#2876e9 100%);display:flex;align-items:center;padding:20px 24px;border:1px solid #0f2f5a}
.dash-hero::before{display:none}
.dash-hero-copy{position:relative;z-index:1;max-width:560px}
.dash-hero-copy .eyebrow{color:#93c5fd;margin-bottom:6px}
.dash-hero-copy h2{margin:0 0 6px;font-size:22px;color:#fff;font-weight:700;letter-spacing:-.02em}
.dash-hero-copy p{margin:0;color:#dbeafe;font-size:13px;line-height:1.45}
.hero-mark{position:absolute;right:24px;top:50%;transform:translateY(-50%);font-size:42px;opacity:.18;color:#fff;z-index:0;pointer-events:none}
.panel{background:#fff;border:1px solid var(--line);border-radius:11px;padding:14px 16px;margin-bottom:14px}
.panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;gap:10px}
.panel-head h3{margin:0;font-size:14px;font-weight:700;color:#183c6c}
.split{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.quick{min-height:88px;text-align:left;border:1px solid var(--line);border-radius:10px;background:#fff;padding:12px;font-size:12px;font-weight:600;color:var(--ink);cursor:pointer;transition:border-color .12s,box-shadow .12s}
.quick:hover{border-color:#93c5fd;box-shadow:0 4px 12px rgba(37,99,235,.08)}
.quick span{display:block;font-size:18px;margin-bottom:6px}
.tw{overflow:auto;border:1px solid var(--line);border-radius:10px}
.tw table{width:100%;border-collapse:collapse;font-size:12.5px}
.tw th{text-align:left;padding:9px 12px;background:#f1f5f9;color:#475569;font-weight:700;font-size:11px;white-space:nowrap}
.tw td{padding:9px 12px;border-top:1px solid var(--line);vertical-align:middle}
.pill{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;font-size:10.5px;font-weight:700}
.pill.ok{background:#dcfce7;color:#15803d}.pill.wait{background:#fef3c7;color:#b45309}.pill.bad{background:#fee2e2;color:#b91c1c}.pill.muted{background:#f1f5f9;color:#64748b}
.btn,.button{height:38px;padding:0 16px;border-radius:8px;font-weight:700;font-size:12.5px;border:1.5px solid var(--blue);background:var(--blue);color:#fff;cursor:pointer}
.btn:hover{background:#1d4ed8}
.text-action{border:0;background:none;color:var(--blue);font-weight:700;font-size:12px;cursor:pointer}
.inline-result{margin-top:8px;font-size:12px;font-weight:600}
.inline-result.success-text{color:var(--green)}
.inline-result.error{color:var(--red)}
.empty{padding:28px 12px;text-align:center;color:var(--muted);font-size:12px}
.empty b{display:block;font-size:13.5px;color:#334155;margin-bottom:4px}
.loading{text-align:center;padding:48px 10px;color:var(--muted)}
.dashboard-footer{padding:12px clamp(16px,2.5vw,36px);border-top:1px solid var(--line);display:flex;align-items:center;gap:14px;font-size:11px;color:var(--muted);background:#fff}
.dashboard-footer img{height:20px;width:auto;object-fit:contain}

/* Mobile sidebar drawer */
@media(max-width:780px){
  .app-shell{display:block}
  .side{position:fixed;left:0;top:0;bottom:0;width:260px;height:100vh;transform:translateX(-105%);transition:transform .2s ease;box-shadow:8px 0 28px rgba(15,40,80,.18)}
  .side.mobile-open{transform:translateX(0)}
  .stats{grid-template-columns:1fr 1fr}
  .split,.quick-grid{grid-template-columns:1fr 1fr}
  .search-decoration{display:none}
}
@media(max-width:520px){
  .stats,.quick-grid{grid-template-columns:1fr}
  .split{grid-template-columns:1fr}
}
