:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#142a42;background:#f4f6fa;font-size:16px;--navy:#12283e;--green:#196c53;--line:#e3e9f0;--muted:#617185}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.6;cursor:wait}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #d9a232;outline-offset:3px}[hidden]{display:none!important}.skip{position:absolute;top:-60px;background:#fff;padding:16px;z-index:10}.skip:focus{top:0}.eyebrow{font-size:.75rem;letter-spacing:.12em;font-weight:750;color:var(--green);line-height:1.6}.brand{font-size:1.35rem;font-weight:750;text-decoration:none;display:flex;align-items:center;gap:6px;letter-spacing:-.06em}.brand>span:last-child{font-weight:400;margin-left:-3px}.brand-icon{font-size:1.25rem;background:#c7edba;color:#183f2c;width:38px;height:38px;display:inline-grid;place-items:center;border-radius:12px;margin-right:6px}.login{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr}.login-story{background:var(--navy);color:#fff;padding:64px;display:flex;flex-direction:column;justify-content:space-between;min-height:100dvh}.login-story h1{font-size:clamp(2.5rem,4.5vw,4.5rem);line-height:1.13;letter-spacing:-.055em;font-weight:650}.login-story .eyebrow{color:#b9e6ac}.login-story p:not(.eyebrow){color:#bccbd9;font-size:1.1rem;max-width:350px;line-height:1.8}.login-story small{font-size:.75rem;letter-spacing:.12em;color:#bccbd9}.login-panel{display:grid;place-items:center;padding:40px;background:#fff}.login-panel form{width:min(100%,380px)}h1,h2,h3,p{margin-top:0}h1{font-size:2.3rem;letter-spacing:-.045em;margin-bottom:12px}h2{font-size:1.6rem;letter-spacing:-.03em}h3{font-size:1.05rem}.muted{color:var(--muted);line-height:1.65}.login-panel h2{font-size:2.2rem;margin:14px 0}.note{font-size:.875rem;color:var(--muted);line-height:1.7;margin-top:22px}label{display:block;font-size:.9rem;font-weight:600;margin:20px 0}input,select{display:block;margin-top:8px;border:1px solid #ccd5df;padding:12px 14px;border-radius:9px;min-width:0;width:100%;background:#fff;color:var(--navy)}input[type=checkbox]{display:inline-block;width:18px;height:18px;margin:0 10px 0 0;vertical-align:middle;accent-color:var(--green)}button{border:0;border-radius:9px;padding:11px 18px;min-height:44px;background:#eaf0f5;color:var(--navy);font-weight:650}.primary{background:var(--green);color:#fff}.login-panel .primary{width:100%;margin-top:8px}.quiet{background:transparent;padding:8px 12px}.error{color:#a33130;font-size:.9rem;line-height:1.6}.error:empty{display:none}.shell{display:grid;grid-template-columns:252px minmax(0,1fr);min-height:100dvh}aside{background:var(--navy);color:#fff;padding:34px 22px;display:flex;flex-direction:column;position:sticky;top:0;height:100dvh}.sidebar-label{font-size:.75rem;letter-spacing:.12em;color:#9db1c4;margin:48px 14px 18px}nav{display:grid;gap:8px}nav a{padding:14px 18px;text-decoration:none;color:#bfd0df;border-radius:9px;font-weight:550}nav a[aria-current=page]{background:#c7edba;color:#163c2b}.sidebar-bottom{margin-top:auto;padding:24px 8px 0;font-size:.875rem;color:#c6d4df;overflow-wrap:anywhere}.sidebar-bottom button{display:block;color:#fff;margin-top:12px}main{padding:48px clamp(24px,4vw,64px);max-width:1700px;width:100%;margin:0 auto}header{display:flex;justify-content:space-between;gap:20px;align-items:start;margin-bottom:36px}.workspace-tag{font-size:.8rem;background:#fff;border:1px solid var(--line);border-radius:30px;white-space:nowrap;padding:9px 14px;color:var(--muted)}header .muted{margin:0}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:28px}.stat{background:#fff;border:1px solid var(--line);border-radius:14px;padding:24px}.stat span{font-size:.875rem;color:var(--muted)}.stat strong{display:block;font-size:2.5rem;font-weight:600;letter-spacing:-.04em;margin-top:20px}.welcome{background:#dcecd9;border:1px solid #c5dcc0;border-radius:16px;padding:32px;margin-bottom:28px}.welcome h2{font-size:1.65rem;max-width:600px}.welcome p{color:#406451;line-height:1.7;max-width:650px;margin-bottom:0}.card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:26px;margin-bottom:20px}.toolbar{display:flex;gap:16px;align-items:center;justify-content:space-between;margin-bottom:22px}.search{display:flex;gap:8px;max-width:440px;flex:1}.search input{margin:0}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:.9rem;text-align:left}th{font-size:.8rem;font-weight:600;color:var(--muted);padding:15px 12px;background:#f7f9fb}td{padding:20px 12px;border-bottom:1px solid var(--line)}td:first-child{font-weight:650}tr:last-child td{border-bottom:0}td button{margin:3px;white-space:nowrap}.badge{display:inline-block;padding:5px 10px;border-radius:30px;background:#edf1f5;color:#607082;font-size:.8rem;white-space:nowrap}.badge.active{background:#e8f4e7;color:#2e6536}.pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:18px;font-size:.85rem;color:var(--muted)}.empty{text-align:center;padding:44px 20px}.empty p{color:var(--muted);line-height:1.65}.empty h2{font-size:1.3rem}#notice:not(:empty){background:#e7f4e4;color:#255f32;border-radius:9px;padding:14px 18px;margin-bottom:20px}.startup{padding:48px;color:var(--muted)}dialog{border:1px solid var(--line);border-radius:16px;width:min(520px,calc(100% - 32px));padding:28px;max-height:90dvh;overflow:auto;color:var(--navy)}dialog::backdrop{background:#10253c80;backdrop-filter:blur(3px)}.dialog-header{display:flex;justify-content:space-between;align-items:center;gap:16px}.dialog-header h2{margin:0}.scope-list{display:grid;gap:12px;margin:20px 0}.scope-row{border:1px solid var(--line);padding:16px;border-radius:9px;line-height:1.7}.scope-row small{color:var(--muted)}@media(max-width:1000px){.stats{grid-template-columns:repeat(2,1fr)}.shell{grid-template-columns:210px minmax(0,1fr)}.brand{font-size:1.15rem}.login-story{padding:40px}}@media(max-width:720px){.login{grid-template-columns:1fr}.login-story{min-height:auto;padding:28px}.login-story>div:nth-child(2),.login-story small{display:none}.login-panel{padding:42px 24px;place-items:start center}.shell{display:block}aside{position:static;height:auto;padding:20px}.sidebar-label,.sidebar-bottom>span{display:none}nav{display:flex;overflow-x:auto;margin-top:20px;gap:4px}nav a{padding:12px;font-size:.9rem;white-space:nowrap}.sidebar-bottom{position:absolute;right:16px;top:17px;padding:0}.sidebar-bottom button{margin:0}main{padding:30px 20px}header{margin-bottom:24px}.workspace-tag{display:none}h1{font-size:2rem}.stats{gap:12px}.stat{padding:18px}.stat strong{font-size:2rem}.card{padding:18px}.toolbar{flex-wrap:wrap}.search{flex-basis:100%;max-width:none}.welcome{padding:24px}.toolbar>.primary{width:100%}td,th{padding:12px 8px}}

#market{width:auto;max-width:100%;margin:0}.market-row{display:flex;gap:12px;align-items:center;margin-top:8px}.market-row button{margin-left:auto}.toolbar h2{margin:0}

/* Global Perks masteradmin: 2026 visual refresh. No data/API/auth changes. */
:root{--navy:#152244;--green:#cfa64d;--gold:#f2cb71;--line:#e5eaf2;--muted:#6c7b90;color:#1c2d4c;background:#f5f7fb}
body{background:#f5f7fb;color:#1c2d4c;-webkit-font-smoothing:antialiased}
.brand{font-size:1.35rem;letter-spacing:-.055em;gap:6px}
.brand>span:last-child{font-weight:750;color:var(--gold)}
.brand-icon{width:42px;height:42px;border-radius:13px;background:linear-gradient(135deg,#f9dc91,#ca9e36);color:#152244;font-weight:850;box-shadow:0 8px 20px #050f3328}
.login-story{background:radial-gradient(circle at 98% 12%,#405380 0,transparent 37%),linear-gradient(145deg,#101b38,#1c325b 75%,#152244);padding:58px clamp(36px,5vw,90px);overflow:hidden}
.login-story-content{margin:auto 0;position:relative;z-index:1}
.login-story-content:after{content:"";position:absolute;width:340px;height:340px;border:1px solid #ffffff26;border-radius:50%;right:-36%;bottom:-38%;box-shadow:0 0 0 55px #ffffff08,0 0 0 110px #ffffff05;pointer-events:none}
.login-story .eyebrow{color:var(--gold);font-size:.8rem;letter-spacing:.2em}
.login-story h1{max-width:750px;margin:20px 0;font-size:clamp(2.8rem,5.2vw,5.3rem);font-weight:700;line-height:1.06;letter-spacing:-.065em}
.login-story-content>p:last-child{max-width:500px;color:#bfcee3;font-size:1.13rem;line-height:1.7}
.login-story small{color:#9caecb;letter-spacing:.06em}
.login-panel{background:#fff}
.login-panel-inner{width:min(100%,390px)}
.login-panel form{width:100%}
.login-panel .eyebrow{color:#a47d2c;font-size:.78rem;letter-spacing:.14em}
.login-panel h2{color:#152244;margin:12px 0;font-size:2rem}
.login-helper{color:var(--muted);line-height:1.5;margin:0 0 28px}
.login-security{font-size:.8rem;color:#8794a6;margin:28px 0 0}
.login-panel label{margin:18px 0;color:#394762}
.login-panel input{background:#f9fafc}
.login-panel input:focus{background:white}
.login-panel .primary{background:#152244;color:white;box-shadow:0 10px 22px #16274d26}
.shell{grid-template-columns:264px minmax(0,1fr)}
aside{background:linear-gradient(175deg,#172749,#111d3c);padding:30px 18px 24px;border-right:1px solid #2e3c5a}
.sidebar-brand{padding:8px 12px 30px;border-bottom:1px solid #ffffff1c}
.sidebar-brand>small{display:block;color:#8fa1c1;font-size:.74rem;padding:7px 0 0 50px;letter-spacing:.03em}
.sidebar-label{margin:30px 16px 13px;color:#7d95b6;font-weight:750;font-size:.67rem;letter-spacing:.17em}
nav{gap:5px}
nav a{display:flex;align-items:center;gap:12px;border-radius:11px;padding:13px 15px;font-weight:600;font-size:.91rem;color:#b8c6dd;transition:background .15s,color .15s}
nav a::before{content:"";display:inline-grid;place-items:center;width:22px;height:22px;flex:0 0 22px;border:1.5px solid currentColor;border-radius:6px;opacity:.8;font-size:.95rem;line-height:1}
nav a[data-page=overview]::before{content:"▦"}
nav a[data-page=countries]::before{content:"◎"}
nav a[data-page=cities]::before{content:"⌖"}
nav a[data-page=cases]::before{content:"!"}
nav a[data-page=partners]::before{content:"◇"}
nav a[data-page=agents]::before{content:"♙"}
nav a:hover{background:#ffffff12;color:#fff}
nav a[aria-current=page]{background:#f2cb71;color:#172646;font-weight:750;box-shadow:0 4px 16px #00000019}
.sidebar-bottom{border-top:1px solid #ffffff1c;padding:22px 12px 0}
.sidebar-account{color:#7d95b6;font-size:.65rem;font-weight:750;letter-spacing:.13em;margin:0 0 7px}
.sidebar-bottom>span{display:block;color:#f4f6ff;font-weight:500;font-size:.8rem}
.sidebar-bottom button{color:#d5dff1;border:1px solid #ffffff2b;margin-top:18px;width:100%;text-align:left}
.sidebar-bottom button:hover{background:#ffffff15}
main{padding:40px clamp(22px,3.5vw,56px) 22px;max-width:1650px;display:flex;flex-direction:column;min-height:100dvh}
.page-header{align-items:center;margin-bottom:32px;padding-bottom:26px;border-bottom:1px solid var(--line)}
.breadcrumb{display:flex;align-items:center;gap:12px;color:#8795a9;font-size:.79rem;font-weight:650;margin-bottom:12px}
.breadcrumb span:last-child{color:#64748b}
.page-intro h1{color:#182849;font-size:clamp(1.8rem,2.8vw,2.5rem);margin:0 0 7px;line-height:1.2;letter-spacing:-.045em}
.page-intro p{margin:0;font-size:.91rem}
.market-control{min-width:230px;max-width:320px;width:100%}
.market-control label{font-size:.67rem;color:#8592a3;font-weight:800;letter-spacing:.13em;margin:0 0 8px}
#market{width:100%;max-width:none;height:45px;border:1px solid #dce3ee;box-shadow:0 4px 12px #12224207;background:#fff;font-weight:650;padding-right:28px}
#page-content{flex:1}
.stats{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin:0 0 24px}
.stat{border:1px solid #e5eaf2;background:#fff;padding:23px 24px;border-radius:16px;box-shadow:0 6px 24px #17274e08;min-height:139px}
.stat span{display:block;font-size:.84rem;color:#65748c;font-weight:600}
.stat strong{color:#152244;font-size:2.15rem;margin-top:22px;line-height:1}
.stat small{display:block;color:#a0a9b7;font-size:.73rem;margin-top:9px}
.stat-action{text-decoration:none;border-color:#ecd7a7;background:#fffaf0}
.stat-action strong{color:#9d7428}
.stat-action:hover{border-color:#cfab54}
.overview-hero{display:flex;gap:20px;justify-content:space-between;align-items:center;min-height:216px;background:radial-gradient(circle at 92% 5%,#384e7c 0,transparent 38%),linear-gradient(125deg,#162544,#1b315c);color:white;border-radius:20px;padding:34px 40px;margin-bottom:22px;overflow:hidden;box-shadow:0 14px 34px #14214520}
.overview-hero .eyebrow{color:#f2cb71;font-size:.7rem;letter-spacing:.16em;margin:0 0 11px}
.overview-hero h2{font-size:clamp(1.5rem,2.4vw,2.2rem);line-height:1.25;margin:0 0 10px;color:white;letter-spacing:-.04em}
.overview-hero p.hero-detail{font-size:.91rem;color:#c3d0e4;line-height:1.6;max-width:560px;margin:0 0 19px}
.hero-actions{display:flex;flex-wrap:wrap;gap:10px}
.hero-actions a{display:inline-flex;align-items:center;min-height:38px;border-radius:8px;padding:8px 15px;font-size:.83rem;font-weight:750;text-decoration:none;background:#f2cb71;color:#172747}
.hero-actions a.secondary{background:#ffffff13;border:1px solid #ffffff4a;color:white}
.hero-actions a:hover{filter:brightness(1.07)}
.hero-mark{width:138px;height:138px;border:1px solid #f2cb714d;border-radius:24px;display:grid;place-content:center;text-align:center;flex:0 0 138px;transform:rotate(-8deg);background:#ffffff0b}
.hero-mark strong{font-size:3.5rem;letter-spacing:-.1em;color:#f2cb71;line-height:1}
.hero-mark small{font-size:.57rem;letter-spacing:.16em;color:#c4d1e3;margin-top:7px}
.card{border-radius:16px;padding:26px;box-shadow:0 6px 24px #17274e08}
.card h2{color:#1b2d4b;font-size:1.17rem;font-weight:750;margin:0}
.card .toolbar a{color:#344e80;font-size:.84rem;font-weight:650;text-decoration:none}
.card .toolbar a:hover{text-decoration:underline}
.market-list{display:grid;gap:10px}
.market-list .scope-row{margin:0}
.market-info{display:flex;align-items:center;gap:14px;min-width:0}
.market-code{display:grid;place-items:center;border:1px solid #dfe7f1;color:#41557b;background:#f4f7fb;font-size:.76rem;font-weight:850;min-width:44px;height:44px;border-radius:12px}
.market-name{display:block;color:#1b2d4b;font-size:.95rem}
.market-meta{display:block;color:#8a96a9;font-size:.76rem;margin-top:3px}
.scope-row{border-color:#e8edf3;background:#fff}
.market-row{margin-top:0;flex-wrap:wrap}
.market-row button{background:#eff3f8;font-size:.81rem;padding:8px 14px}
.market-row .badge{margin-left:auto}
.market-row .badge+button{margin-left:2px}
.primary{background:#1b3059;color:white}
button:hover:not(:disabled){filter:brightness(.96)}
th{background:#f6f8fc;color:#708099;text-transform:uppercase;letter-spacing:.06em;font-size:.69rem}
tbody tr:hover{background:#fafcff}
tbody td{border-color:#edf1f6}
.search input{background:#fafbfd}
#notice:not(:empty){background:#eef7ef;border:1px solid #cee8d1}
.main-footer{display:flex;gap:12px;justify-content:space-between;color:#9aa6b6;font-size:.75rem;padding-top:28px;flex-wrap:wrap}
dialog{box-shadow:0 30px 90px #091c4250;border:none;border-radius:18px}
dialog .primary{width:100%;margin-top:5px}
@media(max-width:1000px){.shell{grid-template-columns:220px minmax(0,1fr)}.overview-hero{padding:30px}.hero-mark{width:100px;height:100px;flex-basis:100px}.hero-mark strong{font-size:2.6rem}}
@media(max-width:720px){.login-story{padding:30px;min-height:210px;gap:16px}.login-story-content{margin:0}.login-story h1{font-size:2.2rem;margin:12px 0}.login-story-content>p:last-child{font-size:.86rem;line-height:1.45;margin:0}.login-story small{display:none}.login-panel{padding:32px 24px}.shell{display:block}.sidebar-brand{padding:0 0 8px;border:0}.sidebar-brand>small{display:none}aside{position:relative;padding:16px 18px 12px;height:auto}.sidebar-label,.sidebar-account,.sidebar-bottom>span{display:none}.sidebar-bottom{position:absolute;top:12px;right:16px;border:0;margin:0;padding:0}.sidebar-bottom button{margin:0;width:auto;padding:8px 10px;font-size:.76rem}.brand{font-size:1.15rem}.brand-icon{width:34px;height:34px;font-size:1rem}nav{display:flex;overflow-x:auto;gap:6px;margin-top:12px;padding:0 0 5px;scrollbar-width:thin}nav a{flex:0 0 auto;padding:9px 12px;font-size:.81rem;gap:7px}nav a::before{width:16px;height:16px;flex-basis:16px;font-size:.76rem;border-radius:4px}main{min-height:calc(100dvh - 117px);padding:25px 18px 18px}.page-header{display:block;margin-bottom:20px;padding-bottom:20px}.breadcrumb{margin-bottom:8px}.page-intro h1{font-size:1.8rem}.page-intro p{font-size:.84rem}.market-control{max-width:none;margin-top:19px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stat{padding:17px;min-height:115px}.stat strong{font-size:1.85rem;margin-top:13px}.stat small{font-size:.69rem}.overview-hero{padding:24px;min-height:0}.overview-hero h2{font-size:1.6rem}.hero-mark{display:none}.card{padding:18px}.market-info{gap:9px}.market-code{min-width:38px;height:38px}.market-row .badge{margin-left:0}.market-row button{margin-left:auto}.main-footer span{display:none}}
@media(max-width:380px){.stats{grid-template-columns:1fr}.market-row .badge{margin-left:auto}}
@media(prefers-reduced-motion:reduce){nav a{transition:none}}

/* Keep the new introductory message visible on mobile; override legacy login rule. */
@media(max-width:720px){.login-story > .login-story-content{display:block}}

.overdue{color:#b42318;font-weight:750}

.market-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.market-detail-grid>.card{min-width:0}
.market-check-row{display:flex;align-items:center;justify-content:space-between;gap:14px}
.market-check-row>div{min-width:0}
.market-check-row button{flex:0 0 auto}
.market-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.market-actions button:disabled{opacity:.42;cursor:not-allowed}
.market-detail-grid .scope-list{margin-bottom:0}
@media(max-width:850px){.market-detail-grid{grid-template-columns:1fr}}
@media(max-width:520px){.market-check-row{align-items:flex-start;flex-direction:column}.market-check-row button{width:100%}.market-actions button{flex:1 1 100%}}


/* Partner Management sub-navigation: readable on the light content surface. */
nav.partner-tabs{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  padding:8px;
  margin:0 0 22px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#edf1f7;
}
nav.partner-tabs .partner-tab{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:10px 16px;
  border-radius:9px;
  color:#263956;
  background:transparent;
  font-size:.87rem;
  font-weight:700;
  white-space:nowrap;
}
nav.partner-tabs .partner-tab::before{display:none;content:none}
nav.partner-tabs .partner-tab:hover{
  background:#fff;
  color:#152244;
}
nav.partner-tabs .partner-tab[aria-current=page]{
  background:#f2cb71;
  color:#172646;
  font-weight:800;
  box-shadow:0 3px 10px #1726461a;
}
@media(max-width:720px){
  nav.partner-tabs{
    flex-wrap:nowrap;
    overflow-x:auto;
    gap:6px;
    padding:7px;
    margin-bottom:18px;
    scrollbar-width:thin;
  }
  nav.partner-tabs .partner-tab{
    flex:0 0 auto;
    padding:9px 12px;
    font-size:.82rem;
  }
}


/* Master country campaign catalogue and delegated local agent selectors */
.campaign-row{align-items:flex-start;gap:18px;padding:18px 4px}
.campaign-row>div:first-child{min-width:0;flex:1}
.campaign-row strong{color:#152244;font-size:.96rem}
.campaign-info{color:#566a87;margin:7px 0;font-size:.85rem;font-weight:650}
.campaign-row p:not(.campaign-info){margin:7px 0;font-size:.84rem;color:#415570;line-height:1.45}
.campaign-row small{color:#62728b;line-height:1.5}
.campaign-actions{display:flex;flex-wrap:wrap;align-items:center;gap:7px}
.campaign-actions button,.campaign-row>button{background:#edf2f8;color:#1c3359;border:1px solid #dce4ed;border-radius:9px;min-height:38px;font-weight:700}
.campaign-actions button:hover,.campaign-row>button:hover{background:#dfeafa}
.campaign-partner-choices{display:grid;gap:8px;margin:15px 0}
.campaign-partner-choice{display:flex;gap:12px;align-items:center;background:#f5f7fb;border:1px solid #e0e7f0;border-radius:10px;padding:12px 14px;cursor:pointer;color:#182849;font-weight:650}
.campaign-partner-choice input{width:18px;height:18px;flex:0 0 18px}
@media(max-width:650px){.campaign-row{flex-direction:column}.campaign-actions{width:100%}.campaign-actions button,.campaign-row>button{width:100%}}

/* Keep the two campaign admin views compact and legible on mobile */
.campaign-intro{padding:18px 24px;margin-bottom:16px}
.campaign-intro strong{display:block;font-size:1rem;color:#1b2d4b;margin-bottom:4px}
.campaign-intro p{font-size:.85rem;margin:0}
#editor-fields textarea{display:block;width:100%;min-height:86px;margin-top:8px;border:1px solid #ccd5df;
  padding:12px 14px;border-radius:9px;color:var(--navy);background:#fff;font:inherit;resize:vertical}
#editor-fields textarea:focus-visible{outline:3px solid #d9a232;outline-offset:3px}
.campaign-row button:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:720px){.campaign-intro{padding:16px 18px}}


/* Master Admin country campaign studio: compact list plus guided editor. */
.campaign-studio-intro{display:flex;align-items:center;justify-content:space-between;gap:28px;background:linear-gradient(125deg,#192a50,#152244);border:1px solid #203b62;color:#fff;padding:26px 28px}
.campaign-studio-intro h2{font-size:1.45rem;margin:4px 0 8px;color:#fff}
.campaign-studio-intro p:not(.campaign-kicker){color:#c1cbe0;max-width:690px;font-size:.91rem;line-height:1.6;margin:0}
.campaign-studio-intro .primary{background:#f2cb71;color:#1c2d4c;font-weight:800;white-space:nowrap}
.campaign-kicker{font-size:.68rem;letter-spacing:.14em;font-weight:800;color:#f2cb71;margin:0}
.campaign-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:19px}
.campaign-metric{padding:17px 20px;background:#fff;border:1px solid #e2e8f1;border-radius:12px;min-width:0}
.campaign-metric span{display:block;font-size:.81rem;color:#697b93;font-weight:650}
.campaign-metric strong{display:block;font-size:1.65rem;color:#152244;margin-top:5px}
.campaign-library{padding:25px}
.campaign-library-header h2{font-size:1.16rem;margin:0 0 4px;color:#192b4d}
.campaign-library-header p{font-size:.84rem;margin:0}
.campaign-filter-toolbar{display:grid;grid-template-columns:minmax(200px,1fr) minmax(150px,210px) minmax(150px,190px);gap:14px;align-items:end;margin:20px 0 9px}
.campaign-filter-toolbar label{font-size:.78rem;font-weight:700;color:#51617b;margin:0}
.campaign-filter-toolbar input,.campaign-filter-toolbar select{margin-top:7px;background:#f9fafc;min-height:44px}
.campaign-results{font-size:.77rem;color:#738098;margin:10px 0}
.campaign-library-item{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:20px 0;border-bottom:1px solid #e9edf4}
.campaign-library-item:last-child{border-bottom:0}
.campaign-library-detail{min-width:0;flex:1}
.campaign-library-title{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.campaign-library-title strong{font-size:1rem;color:#192b4d}
.campaign-library-item .campaign-info{margin:6px 0;font-size:.83rem}
.campaign-library-value{font-size:.93rem;font-weight:700;color:#273d65;margin:7px 0 6px}
.campaign-library-detail>small{display:block;color:#687a93;max-width:700px;line-height:1.5}
.campaign-library .campaign-actions{align-self:center;justify-content:flex-end}
.campaign-library .campaign-actions button{min-height:38px}
.campaign-no-results{padding:22px;text-align:center;color:#667794}
dialog.campaign-editor-dialog{width:min(820px,calc(100% - 28px));padding:28px}
dialog.campaign-editor-dialog #editor-title{font-size:1.42rem}
.campaign-wizard-steps{display:flex;align-items:stretch;gap:6px;margin:22px 0 25px;background:#edf2f8;border-radius:11px;padding:6px}
.campaign-wizard-steps span{flex:1;text-align:center;padding:11px 8px;border-radius:8px;color:#62738e;font-size:.78rem;font-weight:750;line-height:1.3}
.campaign-wizard-steps span.is-current{background:#f2cb71;color:#192a4a;box-shadow:0 2px 8px #1a294320}
.campaign-wizard-pane h3{font-size:1.13rem;color:#17294a;margin-bottom:4px}
.campaign-wizard-pane>p.muted{font-size:.86rem;margin:0}
.campaign-wizard-pane>label{margin:16px 0}
.campaign-wizard-pane label{color:#243653;font-weight:650;font-size:.85rem}
.campaign-rule-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}
.campaign-rule-grid label{min-width:0;margin:15px 0}
.campaign-rule-grid label:has(textarea){grid-column:1/-1}
.campaign-wizard-pane input,.campaign-wizard-pane select,.campaign-wizard-pane textarea{background:#fbfcfe}
.campaign-field-hint{font-size:.79rem;color:#64758c;margin:3px 0 12px}
.campaign-selected-country{margin-top:18px;color:#5e718f}
.campaign-wizard-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:24px;padding-top:20px;border-top:1px solid #e4eaf2}
.campaign-wizard-actions button{min-width:125px}
.campaign-wizard-actions #campaign-approve{background:#f2cb71;color:#182847}
.campaign-editor-dialog #editor-form>button[type=submit]{width:auto;min-width:150px;display:block;margin-left:auto;background:#152244;color:#fff}
.campaign-editor-dialog #editor-form>button[type=submit][hidden]{display:none!important}
.campaign-preview-card{border-radius:15px;background:linear-gradient(135deg,#17274a,#243f68);color:white;padding:24px;border:1px solid #263f68}
.campaign-preview-eyebrow{font-size:.68rem;font-weight:800;letter-spacing:.12em;color:#f2cb71}
.campaign-preview-card h3{color:#fff;font-size:1.25rem;margin:8px 0}
.campaign-preview-value{color:#f2cb71;font-size:1.16rem;display:block;margin:9px 0 15px}
.campaign-preview-card p:not(.campaign-preview-eyebrow){color:#dae4f4;font-size:.9rem;line-height:1.6}
.campaign-preview-terms{padding-top:12px;margin-top:15px;border-top:1px solid #ffffff30}
.campaign-preview-terms strong{font-size:.81rem}
.campaign-preview-terms p{margin:8px 0 12px}
.campaign-preview-card small{color:#b8cbe4}
.campaign-approval-note{font-size:.81rem;line-height:1.5;color:#718096;margin:16px 0}
@media(max-width:850px){.campaign-filter-toolbar{grid-template-columns:1fr 1fr}.campaign-search-label{grid-column:1/-1}}
@media(max-width:650px){
 .campaign-studio-intro{align-items:stretch;flex-direction:column;padding:22px}
 .campaign-studio-intro .primary{width:100%}
 .campaign-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .campaign-metric{padding:13px 15px}
 .campaign-library{padding:18px}
 .campaign-library-item{flex-direction:column;gap:12px}
 .campaign-library .campaign-actions{align-self:stretch;justify-content:flex-start}
 .campaign-library .campaign-actions button{flex:1 1 auto}
 dialog.campaign-editor-dialog{padding:20px 16px}
 .campaign-wizard-steps{gap:3px;margin:18px 0}
 .campaign-wizard-steps span{font-size:.66rem;padding:10px 4px}
 .campaign-rule-grid{grid-template-columns:1fr;gap:0}
 .campaign-wizard-actions{flex-wrap:wrap}
 .campaign-wizard-actions button{flex:1}
 .campaign-preview-card{padding:18px}
}

.campaign-preview-redemption{padding:12px 14px;margin:15px 0 0;border:1px solid #f2cb71;border-radius:10px;background:#f2cb7112}
.campaign-preview-redemption strong{color:#f2cb71}
.campaign-preview-redemption p{font-weight:700;color:#fff!important;margin:7px 0 0}

/* Multi-country campaign scope and localized pricing. */
.campaign-scope-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}
.campaign-scope-option,.campaign-country-option{display:flex!important;align-items:flex-start;gap:11px;padding:15px;border:1px solid #dfe6ef;border-radius:11px;background:#fff;cursor:pointer}
.campaign-scope-option:has(input:checked){border-color:#d7b65f;background:#fffaf0;box-shadow:0 0 0 1px #d7b65f inset}
.campaign-scope-option input,.campaign-country-option input{width:auto;margin:4px 0 0;accent-color:#1b3157;flex:0 0 auto}
.campaign-scope-option span,.campaign-country-option span{display:flex;flex-direction:column;gap:4px}
.campaign-scope-option strong,.campaign-country-option strong{color:#1b2d4d;font-size:.9rem}
.campaign-scope-option small,.campaign-country-option small{color:#738198;font-size:.76rem;line-height:1.4}
#campaign-country-picker{margin:15px 0}
.campaign-country-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.campaign-country-option{align-items:center;padding:11px 13px}
.campaign-country-price-card{border:1px solid #e1e7ef;border-radius:12px;background:#fbfcfe;padding:15px;margin:12px 0}
.campaign-country-price-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.campaign-country-price-heading strong{color:#1a2d4e}
.campaign-country-price-heading small{color:#6e7e95;font-weight:750}
.campaign-country-prices .campaign-rule-grid{margin-top:0}
.campaign-preview-scope{border:1px solid #dfe6ef;border-radius:12px;padding:16px;margin-top:15px;background:#f8fafc}
.campaign-preview-scope>strong{color:#203657}
.campaign-preview-scope p{margin:8px 0;color:#52647d}
.campaign-preview-scope ul{padding-left:20px;margin:10px 0;color:#52647d;font-size:.83rem;line-height:1.7}
.campaign-library .campaign-actions{flex-wrap:wrap;max-width:380px}
.campaign-library .campaign-actions button{white-space:normal}
@media(max-width:650px){
 .campaign-scope-options,.campaign-country-grid{grid-template-columns:1fr}
 .campaign-country-price-card{padding:12px}
 .campaign-library .campaign-actions{max-width:none;width:100%}
}

/* Campaign validity: ongoing by default, optional date range. */
.campaign-validity-mode{margin:16px 0 12px}
.campaign-validity-toggle{display:flex!important;align-items:flex-start;gap:11px;padding:15px;border:1px solid #dfe6ef;border-radius:11px;background:#fff;cursor:pointer}
.campaign-validity-toggle:has(input:checked){border-color:#d7b65f;background:#fffaf0;box-shadow:0 0 0 1px #d7b65f inset}
.campaign-validity-toggle input{width:auto;margin:4px 0 0;accent-color:#1b3157;flex:0 0 auto}
.campaign-validity-toggle span{display:flex;flex-direction:column;gap:4px}
.campaign-validity-toggle strong{color:#1b2d4d;font-size:.9rem}
.campaign-validity-toggle small{color:#738198;font-size:.76rem;line-height:1.4}
#campaign-date-fields[hidden]{display:none}


.partner-image-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px;margin:12px 0}.partner-image-grid img{width:100%;height:120px;object-fit:cover;border-radius:10px;background:#f1f4f8}.opening-hours{border:1px solid #e1e7ef;border-radius:10px;padding:12px 16px}.opening-hours legend{font-weight:700}.opening-day-group{border-top:1px solid #e1e7ef;padding:10px 0}.opening-day-group>label{margin:4px 0}.opening-day{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:center}.opening-day label{margin:5px 0}.opening-day input[type=time]{margin-top:4px}
/* Global offer-template library (Master Admin only). */
.offer-template-editor-dialog{width:min(920px,calc(100vw - 32px));max-width:920px}
.offer-template-editor-dialog #editor-fields{display:grid;gap:16px}
.offer-template-editor-dialog .offer-template-editor-note,
.offer-template-version-note{padding:13px 15px;border:1px solid #dce5f0;border-radius:10px;background:#f7f9fc;color:#43516a;font-size:.88rem;line-height:1.55}
.offer-template-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.offer-template-defaults,.offer-template-fields-section{padding:16px;border:1px solid #e3e8ef;border-radius:12px;background:#fff}
.offer-template-defaults h3,.offer-template-fields-section h3{margin:0 0 5px;color:#1d2e4b}
.offer-template-defaults>p,.offer-template-fields-section>p{margin:0 0 12px}
.offer-template-fields-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.offer-template-fields-heading h3{margin:0}
.offer-template-fields-heading p{margin:4px 0 0}
.offer-template-field-card{padding:13px;margin-top:10px;border:1px solid #e3e8ef;border-radius:10px;background:#fbfcfe}
.offer-template-field-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.offer-template-field-heading>div{display:flex;align-items:center;gap:10px}
.offer-template-field-heading small{font-family:ui-monospace,monospace;color:#7b8799;font-size:.75rem}
.offer-template-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.offer-template-field-grid label{min-width:0}
.offer-template-required{display:flex;align-items:center;gap:8px}
.offer-template-required input{width:auto}
.offer-template-library-item{align-items:flex-start}
.offer-template-library-item .campaign-actions{flex-wrap:wrap;justify-content:flex-end}
.offer-template-preview{display:grid;gap:10px}
.offer-template-preview h3{margin:0;font-size:1.3rem}
.offer-template-preview h4{margin:12px 0 0}
.offer-template-preview-meta{display:flex;flex-wrap:wrap;gap:7px}
.offer-template-preview-meta span{padding:5px 9px;border:1px solid #dfe5ee;border-radius:999px;background:#f7f9fc;color:#53627a;font-size:.75rem}
.offer-template-preview-field{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #edf0f4}
.offer-template-preview-field small{color:#77849a;text-align:right}
.offer-template-agent-note{margin-top:8px;padding:14px;border-left:3px solid #d7b65f;background:#fffaf0}
.offer-template-agent-note p{margin:5px 0 0;color:#53627a;font-size:.86rem;line-height:1.5}
@media(max-width:700px){
 .offer-template-form-grid,.offer-template-field-grid{grid-template-columns:1fr}
 .offer-template-fields-heading{align-items:flex-start;flex-direction:column}
 .offer-template-library-item{display:block}
 .offer-template-library-item .campaign-actions{justify-content:flex-start;margin-top:12px}
 .offer-template-preview-field{align-items:flex-start;flex-direction:column;gap:3px}
 .offer-template-preview-field small{text-align:left}
}

.login-link{display:block;width:100%;margin-top:12px;background:transparent;color:#152244;text-align:center;text-decoration:underline}
.login-status{font-size:.9rem;line-height:1.6;color:#196c53;margin:14px 0}

.header-actions{display:flex;align-items:end;gap:12px}
.workspace-switch{background:#fff;border:1px solid var(--line);color:var(--navy);white-space:nowrap}
.workspace-switch:hover{border-color:#9db1c4;background:#f8fafc}
@media(max-width:720px){.header-actions{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px}.workspace-switch{white-space:normal;flex:1}.market-control{min-width:132px}}

/* Agent-owned partner offer editor */
.offer-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0}
.offer-agent-fields{border-top:1px solid var(--line);padding-top:16px;margin-top:16px}
.offer-agent-fields h3{margin:0 0 10px;font-size:1rem;color:var(--navy)}
.offer-dynamic-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.offer-field,.offer-form-grid>label{display:flex;flex-direction:column;gap:6px;font-weight:600}
.offer-field input,.offer-field textarea,.offer-form-grid select,.offer-form-grid input{width:100%}
.offer-field-help{display:block;color:var(--muted);font-weight:400;line-height:1.4}
.offer-field-toggle{display:flex;align-items:center;gap:9px;margin:10px 0;font-weight:600}
.offer-field-toggle input{width:auto;min-width:18px;min-height:18px}
.offer-weekdays{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0}
.offer-weekdays label{display:flex;align-items:center;gap:7px;font-weight:500}
.offer-weekdays input{width:auto}
.offer-time-window{display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:10px;padding:10px;margin:8px 0;border:1px solid var(--line);border-radius:10px}
.offer-time-window label{display:flex;flex-direction:column;gap:5px;font-weight:600}
.offer-time-window input{width:100%}
.agent-offer-template-card{display:flex;align-items:center;gap:16px}
.agent-offer-template-card .campaign-library-detail{flex:1;min-width:0}
.agent-offer-template-card .campaign-actions{flex:0 0 auto}
.offer-template-preview-meta{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
@media(max-width:720px){
 .offer-form-grid,.offer-dynamic-fields{grid-template-columns:1fr}
 .offer-weekdays{grid-template-columns:repeat(2,minmax(0,1fr))}
 .offer-time-window{grid-template-columns:1fr 1fr}
 .offer-time-window button{grid-column:1/-1;justify-self:start}
 .agent-offer-template-card{display:block}
 .agent-offer-template-card .campaign-actions{margin-top:12px}
}

/* Industry-aware offer template library */
.offer-template-audience{margin:18px 0;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft,var(--surface))}
.offer-template-audience h3{margin:0 0 8px}
.offer-template-category-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;margin-top:12px}
.offer-template-category-checks label{display:flex;align-items:center;gap:8px;font-weight:500}
.offer-template-category-checks input{width:auto;min-width:17px;min-height:17px}
.offer-template-audience-badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.offer-template-partner-picker{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0 18px;font-weight:600}
.offer-template-partner-picker select{min-width:min(360px,100%);max-width:100%}
.offer-template-audience-preview{margin-top:14px;padding:10px;border-radius:8px;background:var(--surface-soft,var(--surface))}
@media(max-width:720px){.offer-template-category-checks{grid-template-columns:1fr}.offer-template-partner-picker{display:block}.offer-template-partner-picker select{width:100%;margin-top:6px}}
/* Agent onboarding and partner workspace */
.agent-start{display:grid;grid-template-columns:minmax(210px,.85fr) 2fr;gap:24px;align-items:start}
.agent-start h2{font-size:1.3rem;margin-bottom:8px}.agent-start ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.agent-start li{background:#f6f8fb;border-radius:12px;padding:15px}.agent-start li strong,.agent-start li span{display:block}.agent-start li span{font-size:.83rem;line-height:1.5;color:#617185;margin-top:7px}
.profile-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:16px 0 24px}.profile-heading h2{font-size:2rem;margin:4px 0 8px}.profile-heading-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.profile-back{padding-left:0}.profile-tabs{display:flex;gap:8px;flex-wrap:wrap;padding:8px;background:#eaf0f6;border-radius:14px;margin:0 0 20px}.profile-tabs button{background:transparent}.profile-tabs button[aria-pressed=true]{background:#f4cb67;color:#17294b}.partner-profile .card{max-width:1100px}.partner-profile .card h3:not(:first-child){margin-top:28px}.profile-checklist{list-style:none;margin:20px 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.profile-checklist li{display:flex;gap:12px;padding:14px;border:1px solid #e2e8ef;border-radius:10px}.profile-check{font-weight:700;font-size:1.1rem;color:#8a6920}.profile-check.is-done{color:#267249}.profile-checklist strong,.profile-checklist small{display:block}.profile-checklist small{color:#617185;line-height:1.5;margin-top:4px}.partner-profile label{max-width:540px}
@media(max-width:1050px){.agent-start{grid-template-columns:1fr}.agent-start ol{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.agent-start ol,.profile-checklist{grid-template-columns:1fr}.profile-heading{display:block}.profile-heading-actions{justify-content:flex-start}.profile-tabs{overflow-x:auto;flex-wrap:nowrap}.profile-tabs button{white-space:nowrap}}
.profile-next{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:20px;border:1px solid #e6d49a;border-radius:12px;background:#fff8e5;margin-bottom:26px}.profile-next span,.profile-next strong{display:block}.profile-next span{font-size:.72rem;letter-spacing:.12em;font-weight:750;color:#80621c}.profile-next strong{font-size:1.12rem;margin-top:5px}.profile-next p{margin:6px 0 0;color:#5d6674}.profile-next .primary{width:auto;white-space:nowrap;background:#172b4a;color:#fff}.profile-checklist li{padding:0}.profile-checklist li button{width:100%;height:100%;display:flex;align-items:flex-start;gap:12px;text-align:left;background:#fff;border-radius:10px;padding:14px;font-weight:400}.profile-checklist li button>span:nth-child(2){flex:1}.profile-checklist li button:hover{background:#f5f8fc}@media(max-width:720px){.profile-next{align-items:stretch;flex-direction:column}.profile-next .primary{width:100%}}
.partner-filter-bar .partner-city-filter{margin:0;min-width:170px;font-size:.8rem;color:#617185}.partner-filter-bar .partner-city-filter select{margin-top:4px}.partner-filter-bar{align-items:end}@media(max-width:720px){.partner-filter-bar .partner-city-filter{width:100%}}
