/* KEIMARO v1.1 — VISUAL REBRAND / BLACK CHAMPAGNE & SMOKED SAPPHIRE. */
/* KEIMARO 1.0 — TOFFEE & ONYX. Base styles recolored from 0.9. */
/* KEIMARO v0.9 FOREST / ESPRESSO / PARCHMENT — recolored from v0.8. */
/* KEIMARO v0.8 — INK / BUTTER / IVORY. Base components, recolored from v0.7. */
/* KEIMARO dark forest palette conversion for all legacy components; tokens/finishes in brand-theme.css. */
:root{
  color-scheme: dark;
  --bg:#080A0C;--bg2:#080A0C;--panel:#14171A;--panel-alt:#14171A;
  --panel-high:#202226;--line:#202226;--line-soft:#202226;
  --txt:#F5EEE3;--muted:#F5EEE3;--faint:#C6BDB0;
  --brand:#DFCEB1;--brand2:#B9A383;--brand-light:#DFCEB1;
  --green:#C5DEBA;--red:#DFCEB1;--orange:#DFCEB1;
  --shadow:0 16px 48px rgba(81,53,38,.25);--radius:14px;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-synthesis:none
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--txt);font-size:14px;min-height:100vh}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}input,textarea,select{min-width:0;outline:0}button:disabled{cursor:not-allowed;opacity:.5}::selection{background:#DFCEB166}::-webkit-scrollbar{width:8px;height:7px}::-webkit-scrollbar-thumb{background:#202226;border-radius:8px}svg{flex-shrink:0}.icon{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.icon-sm{width:14px;height:14px}.icon-lg{width:22px;height:22px}h1,h2,h3,p{margin:0}h1,h2,h3{letter-spacing:-.035em}p{line-height:1.6}.num{font-variant-numeric:tabular-nums}.muted{color:var(--muted)}.faint{color:var(--faint)}.mono{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.boot{min-height:100vh;display:grid;place-content:center;font-weight:850;letter-spacing:.2em;font-size:24px}.boot-dot{color:var(--brand)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:9px;background:var(--brand);color:#0D1013;font-weight:700;padding:11px 16px;min-height:40px;white-space:nowrap;transition:background .15s,transform .15s,border-color .15s}.btn:hover{background:#DFCEB1}.btn:active{transform:translateY(1px)}.btn-secondary{background:#14171A;color:var(--txt);border-color:#202226}.btn-secondary:hover{background:#14171A}.btn-ghost{background:transparent;color:var(--muted);border-color:var(--line)}.btn-ghost:hover{background:var(--panel-high);color:var(--txt)}.btn-danger{background:#252A2F;color:#DFCEB1;border-color:#252A2F}.btn-danger:hover{background:#252A2F}.btn-sm{min-height:32px;padding:6px 11px;font-size:12px;border-radius:7px}.btn-icon{width:36px;padding:0;min-height:36px}.link{color:var(--brand-light);font-weight:650;cursor:pointer}.link:hover{text-decoration:underline}.flex{display:flex;align-items:center;gap:10px}.between{display:flex;align-items:center;justify-content:space-between;gap:14px}.stack{display:flex;flex-direction:column;gap:12px}.hide{display:none!important}.right{text-align:right}.center{text-align:center}.nowrap{white-space:nowrap}.strong{font-weight:750}.small{font-size:12px}.tiny{font-size:11px}.spacer{flex:1}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field>label{font-size:12px;font-weight:650;color:#C6BDB0}.control{display:block;width:100%;height:41px;border:1px solid #202226;border-radius:8px;background:#080A0C;color:var(--txt);padding:0 12px}.control::placeholder{color:#C6BDB0}.control:focus{border-color:var(--brand);box-shadow:0 0 0 3px #DFCEB117}.control-textarea{height:auto;min-height:94px;padding:12px;resize:vertical}.control option{background:#080A0C}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.form-note{color:var(--faint);font-size:12px;line-height:1.5}.divider{height:1px;background:var(--line-soft);margin:18px 0}
.badge{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;background:#14171A;border:1px solid #202226;border-radius:6px;color:#F5EEE3;font-size:11px;font-weight:700;text-transform:capitalize;white-space:nowrap}.badge::before{content:'';width:5px;height:5px;border-radius:50%;background:currentColor}.badge-active,.badge-approved,.badge-paid{background:#080A0C;color:#C5DEBA;border-color:#14171A}.badge-pending,.badge-requested,.badge-draft{background:#252A2F;color:#B7B1A8;border-color:#2D3238}.badge-paused,.badge-disabled,.badge-rejected,.badge-blocked{background:#252A2F;color:#DFCEB1;border-color:#2D3238}.badge-public{background:#14171A;color:#DFCEB1;border-color:#202226}.badge-private,.badge-archived{background:#14171A;color:#C6BDB0;border-color:#202226}
/* Public marketing */
.site-header{height:80px;display:flex;align-items:center;border-bottom:1px solid #F5EEE313;background:#0D1013CF;backdrop-filter:blur(16px);position:sticky;top:0;z-index:20}.site-nav{width:min(1300px,calc(100% - 70px));margin:auto;display:flex;align-items:center;justify-content:space-between;gap:25px}.brand{display:inline-flex;align-items:center;gap:11px;font-weight:840;letter-spacing:.12em;font-size:15px}.brand-symbol{display:grid;place-items:center;width:35px;height:35px;border-radius:10px;background:linear-gradient(155deg,#DFCEB1,#DFCEB1);color:#080A0C;font-size:20px;font-weight:850;letter-spacing:-.08em;box-shadow:0 7px 23px #DFCEB12B}.brand-sub{font-size:9px;letter-spacing:.24em;font-weight:700;color:#C6BDB0;display:block;margin-top:3px}.site-links{display:flex;align-items:center;gap:32px;color:#C6BDB0;font-weight:600;font-size:13px}.site-links a:hover{color:white}.site-actions{display:flex;align-items:center;gap:10px}.hero{width:min(1300px,calc(100% - 70px));margin:auto;padding:113px 0 110px;display:grid;grid-template-columns:1.1fr .9fr;gap:64px;align-items:center;position:relative}.hero::before{content:'';position:absolute;top:-100px;right:-100px;width:600px;height:600px;background:radial-gradient(circle,#DFCEB112 0%,transparent 67%);pointer-events:none}.eyebrow{color:#DFCEB1;font-size:11px;font-weight:750;letter-spacing:.2em;text-transform:uppercase;display:flex;align-items:center;gap:10px}.eyebrow::before{content:'';height:1px;width:24px;background:var(--brand)}.hero h1{font-size:clamp(47px,5.5vw,79px);line-height:1.08;letter-spacing:-.06em;font-weight:770;margin:24px 0}.hero h1 em{font-style:normal;color:#DFCEB1}.hero p{font-size:16px;color:#C6BDB0;max-width:530px;line-height:1.85}.hero-cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:34px}.hero-notes{margin-top:42px;display:flex;gap:23px;flex-wrap:wrap;font-size:12px;color:#C6BDB0}.hero-notes span{display:flex;align-items:center;gap:7px}.hero-notes svg{color:#C5DEBA}.network-preview{position:relative;z-index:1;background:linear-gradient(180deg,#080A0C,#080A0C);border:1px solid #202226;border-radius:19px;box-shadow:0 32px 110px #0D1013AA;padding:22px;transform:rotate(-1deg)}.preview-head{display:flex;justify-content:space-between;align-items:center;padding-bottom:19px;border-bottom:1px solid #14171A}.preview-dot{height:7px;width:7px;border-radius:50%;background:#C5DEBA;box-shadow:0 0 12px #DFCEB188}.preview-row{padding:16px 0;border-bottom:1px solid #14171A;display:grid;grid-template-columns:1fr 110px;gap:8px;align-items:center}.preview-row:last-child{border:0;padding-bottom:3px}.preview-title{font-weight:700;font-size:13px}.preview-sub{font-size:11px;color:#C6BDB0;margin-top:6px}.preview-money{font-weight:740;color:#C5DEBA;text-align:right;font-size:15px}.preview-empty{padding:26px 8px;color:var(--muted);font-size:13px}.marketing-section{padding:75px 0;border-top:1px solid #080A0C}.section-inner{width:min(1300px,calc(100% - 70px));margin:auto}.section-head{max-width:690px;margin-bottom:33px}.section-head h2{font-size:clamp(32px,3.3vw,45px);margin:13px 0}.section-head p{color:var(--muted);max-width:550px}.feature-card{background:linear-gradient(180deg,#080A0C,#080A0C);border:1px solid #14171A;border-radius:14px;padding:27px;min-height:200px}.feature-icon{width:42px;height:42px;border-radius:10px;background:#14171A;color:#DFCEB1;display:grid;place-items:center;margin-bottom:24px}.feature-card h3{font-size:17px;margin-bottom:9px}.feature-card p{color:#C6BDB0;font-size:13px}.public-catalog{background:#0D1013}.offer-mini{padding:17px 20px;border:1px solid var(--line);border-radius:10px;background:#080A0C;display:flex;align-items:center;justify-content:space-between;gap:16px}.offer-mini+.offer-mini{margin-top:10px}.offer-mini h3{font-size:14px;margin-bottom:6px}.footer{border-top:1px solid #14171A;padding:35px 0;color:#C6BDB0;font-size:12px}.footer-inner{width:min(1300px,calc(100% - 70px));margin:auto;display:flex;justify-content:space-between;align-items:center;gap:18px}.login-layout{min-height:100vh;display:grid;grid-template-columns:1fr 530px}.login-art{padding:55px clamp(45px,8vw,160px);display:flex;flex-direction:column;justify-content:space-between;background:radial-gradient(circle at 76% 50%,#252B3240,transparent 55%),#0D1013;border-right:1px solid var(--line)}.login-art h1{font-size:clamp(42px,5.2vw,74px);line-height:1.1;max-width:680px;margin:30px 0}.login-art p{font-size:16px;max-width:500px;color:#C6BDB0}.login-form-pane{display:flex;align-items:center;justify-content:center;padding:48px}.login-card{width:100%;max-width:385px}.login-card h2{font-size:30px;margin-bottom:10px}.login-card p{color:var(--muted);margin-bottom:32px}.login-card .field{margin-bottom:19px}.login-card .btn{width:100%;margin-top:8px}.login-back{display:inline-flex;align-items:center;gap:8px;color:var(--muted);margin-top:25px;font-size:12px}
/* App */
.app-shell{min-height:100vh;background:var(--bg)}.app-top{position:sticky;top:0;z-index:30;background:#0D1013F5;backdrop-filter:blur(18px);border-bottom:1px solid var(--line)}.app-mainbar{height:68px;width:min(1600px,calc(100% - 68px));margin:auto;display:flex;align-items:center;gap:34px}.app-brand{padding-right:25px;border-right:1px solid #14171A}.app-navigation{display:flex;align-items:center;gap:5px;overflow-x:auto;scrollbar-width:none;white-space:nowrap;flex:1;height:100%}.app-navigation::-webkit-scrollbar{display:none}.nav-link{display:flex;align-items:center;gap:8px;height:37px;padding:0 13px;border-radius:8px;font-size:12px;font-weight:680;color:#C6BDB0;transition:background .14s,color .14s}.nav-link .icon{width:15px;height:15px}.nav-link:hover{background:#14171A;color:#F1E6D6}.nav-link.active{background:#14171A;color:#DFCEB1}.nav-profile{display:flex;align-items:center;gap:12px;white-space:nowrap}.avatar{width:34px;height:34px;border-radius:50%;background:#14171A;display:grid;place-items:center;color:#DFCEB1;font-weight:780;font-size:12px}.profile-name{font-weight:720;font-size:12px}.profile-role{font-size:10px;text-transform:capitalize;color:var(--faint);margin-top:3px}.app-content{width:min(1600px,calc(100% - 68px));margin:0 auto;padding:40px 0 90px}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:29px}.page-kicker{font-size:10px;color:#C6BDB0;text-transform:uppercase;letter-spacing:.17em;font-weight:800;margin-bottom:10px}.page-heading h1{font-size:30px;letter-spacing:-.045em}.page-heading p{font-size:13px;color:var(--muted);margin-top:8px}.page-actions{display:flex;gap:9px;flex-wrap:wrap}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.metric{padding:23px;min-height:135px;background:var(--panel);border:1px solid var(--line);border-radius:12px}.metric-top{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#C6BDB0}.metric-icon{width:33px;height:33px;background:#14171A;border:1px solid #14171A;border-radius:9px;display:grid;place-items:center;color:#DFCEB1}.metric-value{font-size:33px;letter-spacing:-.055em;font-weight:740;margin-top:15px;font-variant-numeric:tabular-nums}.metric-description{font-size:11px;color:#C6BDB0;margin-top:6px}.page-grid{display:grid;grid-template-columns:1.3fr .7fr;gap:16px}.panel{border:1px solid var(--line);background:var(--panel);border-radius:12px;overflow:hidden}.panel-header{padding:20px 22px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:15px}.panel-title{font-size:14px;font-weight:750}.panel-sub{color:var(--faint);font-size:11px;margin-top:6px}.panel-body{padding:22px}.action-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 17px;border-radius:9px;background:#080A0C;border:1px solid #14171A;margin-bottom:10px;cursor:pointer}.action-card:hover{border-color:#34383D}.action-card:last-child{margin-bottom:0}.action-label{font-size:13px;font-weight:700}.action-detail{font-size:11px;color:#C6BDB0;margin-top:5px}.toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:15px;align-items:center}.toolbar .search-control{flex:1;min-width:200px}.search-control{position:relative}.search-control .icon{position:absolute;left:12px;top:12px;color:#C6BDB0}.search-control input{padding-left:36px}.toolbar select{width:175px}.table-wrap{width:100%;overflow-x:auto}.data-table{border-collapse:collapse;text-align:left;width:100%;font-size:12px;white-space:nowrap}.data-table thead{background:#080A0C;color:#C6BDB0}.data-table th{font-size:10px;font-weight:800;letter-spacing:.045em;text-transform:uppercase;padding:14px 17px;border-bottom:1px solid #14171A}.data-table td{padding:15px 17px;border-bottom:1px solid #14171A;color:#F5EEE3}.data-table tbody tr:last-child td{border-bottom:0}.data-table tbody tr:hover{background:#080A0C}.cell-main{color:var(--txt);font-weight:720;font-size:12px}.cell-sub{font-size:10px;color:var(--faint);margin-top:5px}.table-actions{display:flex;align-items:center;gap:6px}.empty{padding:60px 20px;text-align:center;max-width:520px;margin:auto}.empty-icon{width:54px;height:54px;background:#14171A;border:1px solid #202226;border-radius:14px;margin:0 auto 17px;display:grid;place-items:center;color:#DFCEB1}.empty h3{font-size:17px;margin-bottom:9px}.empty p{font-size:12px;color:var(--muted);margin-bottom:18px}.note{padding:16px 18px;border:1px solid #202226;background:#080A0C;border-radius:9px;color:#C6BDB0;font-size:12px;line-height:1.7}.note strong{color:#DFCEB1}.alert{padding:13px 15px;border:1px solid #2D3238;border-radius:9px;color:#DFCEB1;background:#252A2F;font-size:12px;margin:15px 0}.ok{border-color:#202226;background:#080A0C;color:#C5DEBA}.filter-title{margin:25px 0 12px;color:#C6BDB0;font-size:11px;letter-spacing:.08em;text-transform:uppercase;font-weight:800}.currency-row{display:flex;gap:10px;flex-wrap:wrap}.currency-pill{background:#14171A;border:1px solid #202226;padding:12px 15px;border-radius:9px;min-width:150px}.currency-pill strong{display:block;color:white;font-size:20px;margin-top:6px}.main-bottom{padding:35px 0 10px;text-align:center;color:#34383D;font-size:10px;letter-spacing:.08em}
/* Modal layout: one scrollable body and fixed footer, never nested page scroll */
.modal-overlay{position:fixed;inset:0;background:#0D1013D6;backdrop-filter:blur(8px);z-index:60;display:flex;align-items:center;justify-content:center;padding:24px}.modal{width:min(940px,100%);max-height:min(90vh,900px);display:flex;flex-direction:column;background:#080A0C;border:1px solid #202226;border-radius:16px;box-shadow:0 28px 110px #101316AA;overflow:hidden}.modal.narrow{width:min(550px,100%)}.modal-head{padding:24px 28px 20px;border-bottom:1px solid var(--line);flex-shrink:0}.modal-head h2{font-size:21px}.modal-head p{font-size:12px;color:var(--muted);margin-top:6px}.modal-body{padding:24px 28px;overflow-y:auto;min-height:0;overscroll-behavior:contain}.modal-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 28px;border-top:1px solid var(--line);flex-shrink:0;background:#080A0C}.modal-steps{display:flex;align-items:center;gap:5px;margin-top:20px}.modal-step{flex:1;display:flex;flex-direction:column;gap:8px;color:#C6BDB0;font-size:10px;font-weight:730;border:0;background:transparent;text-align:left;padding:0 4px}.modal-step::before{content:'';height:3px;background:#202226;border-radius:5px}.modal-step.active{color:#DFCEB1}.modal-step.active::before{background:var(--brand)}.modal-step.completed::before{background:#DFCEB1}.step-panel{display:none}.step-panel.active{display:block}.form-section{border:1px solid #14171A;background:#080A0C;border-radius:10px;padding:20px;margin-bottom:15px}.form-section h3{font-size:12px;color:#F5EEE3;margin-bottom:18px}.form-section p{font-size:11px;color:var(--faint);margin:-10px 0 16px}.modal-help{font-size:11px;color:#C6BDB0}.required{color:#DFCEB1}.modal-close{background:#14171A;border:1px solid #202226;color:#F5EEE3;border-radius:8px;display:grid;place-items:center;width:34px;height:34px}.modal-close:hover{background:#202226}.modal-open{overflow:hidden}.toast-zone{position:fixed;bottom:24px;right:24px;z-index:90;display:flex;flex-direction:column;gap:9px;max-width:420px}.toast{border:1px solid #202226;background:#14171A;box-shadow:var(--shadow);border-radius:10px;padding:15px 18px;color:#DFCEB1;font-size:12px;animation:slidein .25s}.toast.error{border-color:#30363C;background:#14171A;color:#DFCEB1}@keyframes slidein{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1200px){.app-mainbar,.app-content{width:calc(100% - 42px)}.app-mainbar{gap:18px}.app-brand{padding-right:10px}.profile-name,.profile-role{display:none}.nav-profile{gap:5px}.site-links{gap:16px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{gap:30px}}
@media(max-width:820px){.hero{grid-template-columns:1fr;padding:80px 0}.network-preview{transform:none}.site-links{display:none}.login-layout{grid-template-columns:1fr}.login-art{display:none}.login-form-pane{min-height:100vh}.page-grid{grid-template-columns:1fr}.app-mainbar{height:65px}.app-brand .brand-sub{display:none}.app-brand{border:0;padding:0}.app-brand .brand-text{display:none}.app-navigation{gap:0}.nav-link{padding:0 9px}.nav-link .icon{display:none}.grid3{grid-template-columns:1fr}.page-heading{align-items:flex-start}.metric{padding:16px;min-height:116px}.metric-value{font-size:27px}}
@media(max-width:560px){.site-nav,.hero,.section-inner,.footer-inner{width:calc(100% - 36px)}.site-header{height:66px}.site-actions .btn-secondary{display:none}.hero{padding:65px 0}.hero h1{font-size:47px}.hero-notes{gap:11px}.marketing-section{padding:52px 0}.grid2{grid-template-columns:1fr}.app-mainbar,.app-content{width:calc(100% - 28px)}.app-content{padding-top:24px}.app-mainbar{gap:8px}.nav-link{font-size:11px;padding:0 7px}.page-heading{flex-direction:column;align-items:stretch;margin-bottom:21px}.page-heading h1{font-size:26px}.page-actions .btn{flex:1}.metric-grid{gap:9px}.metric{padding:13px}.metric-top{font-size:10px}.metric-icon{display:none}.metric-value{font-size:24px}.panel-header{padding:16px}.toolbar select{width:calc(50% - 5px)}.modal-overlay{padding:0;align-items:stretch}.modal,.modal.narrow{width:100%;max-height:100%;height:100%;border-radius:0}.modal-head{padding:20px}.modal-body{padding:17px 20px}.modal-foot{padding:15px 20px}.modal-step{font-size:9px}.footer-inner{flex-direction:column;align-items:flex-start}}
/* Secondary navigation stays accessible, with no second header row. */
.nav-more{position:relative;flex-shrink:0}
.nav-more summary{list-style:none;cursor:pointer;user-select:none;white-space:nowrap}
.nav-more summary::-webkit-details-marker{display:none}
.nav-more summary .icon{width:12px;height:12px}
.nav-dropdown{position:absolute;top:49px;right:0;min-width:186px;padding:7px;border-radius:10px;background:#080A0C;border:1px solid #202226;box-shadow:0 16px 50px #10131688;display:grid;gap:2px;z-index:45}
.nav-dropdown a{width:100%;justify-content:flex-start}
@media(max-width:820px){.nav-more summary{padding:0 8px}.nav-dropdown{top:47px;right:-20px}}
@media(max-width:820px){.hero::before{right:0;width:100%;height:500px}}

/* EN/RU language control — compact across marketing pages, login and CRM. */
.language-switcher{display:inline-flex;align-items:center;gap:2px;padding:3px;background:#080A0C;border:1px solid #202226;border-radius:9px;flex-shrink:0;white-space:nowrap}
.language-switcher .lang-choice{background:transparent;border:0;border-radius:6px;color:#C6BDB0;font-size:11px;font-weight:700;line-height:1.2;font-family:inherit;cursor:pointer;min-width:31px;min-height:29px;padding:6px 7px;transition:color .15s,background .15s}
.language-switcher .lang-choice:hover{color:#F5EEE3;background:#14171A}
.language-switcher .lang-choice.active{color:#F5EEE3;background:#34383D;box-shadow:0 1px 5px #10131633}
.language-switcher .lang-choice:focus-visible{outline:2px solid #DFCEB1;outline-offset:2px}
.login-language{display:flex;justify-content:flex-end;margin-bottom:25px}
.site-actions>.language-switcher{margin-right:3px}
.app-mainbar>.language-switcher{margin-left:auto}
@media(max-width:1200px){.app-mainbar>.language-switcher{margin-left:0}}
@media(max-width:560px){.language-switcher{padding:2px}.language-switcher .lang-choice{min-width:25px;min-height:28px;padding:5px}.app-mainbar>.language-switcher{margin-left:0}.site-actions>.language-switcher{margin-right:0}}

/* Operations edition: consistent density, dialogs, details and reporting */
.modal>form{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
.modal-body{flex:1;min-height:0}
.modal-head{position:relative}
.modal-head .between{align-items:flex-start}
.modal:has(.offer-detail){width:min(1050px,100%)}
.table-link{border:0;background:transparent;padding:0;margin:0;text-align:left;color:#F1E6D6;line-height:1.4;cursor:pointer;font-size:12px;font-weight:720}
.table-link:hover{color:#DFCEB1;text-decoration:underline;text-underline-offset:3px}
.table-link:focus-visible{outline:2px solid var(--brand);outline-offset:4px}
.report-controls{display:grid;grid-template-columns:1.2fr .8fr 1fr 1fr auto;gap:12px;align-items:end;background:var(--panel);border:1px solid var(--line);padding:17px;border-radius:12px;margin-bottom:18px}
.report-controls label{font-size:12px;font-weight:680;color:#F5EEE3;display:flex;flex-direction:column;gap:7px;min-width:0}
.report-controls button{height:41px}
.detail-intro{margin-bottom:24px;padding:4px 0 14px;border-bottom:1px solid var(--line)}
.detail-intro h2{font-size:26px;margin:15px 0 9px;letter-spacing:-.035em}
.detail-intro p{font-size:13px;color:var(--muted);white-space:pre-line}
.offer-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.offer-detail-grid .form-section{margin-bottom:0}
.detail-row{display:flex;align-items:baseline;justify-content:space-between;gap:20px;min-height:36px;padding:8px 0;border-bottom:1px solid var(--line-soft);font-size:12px}
.detail-row:last-child{border-bottom:0}
.detail-row span{color:#C6BDB0;flex:0 0 43%}
.detail-row strong{font-weight:650;text-align:right;overflow-wrap:anywhere;color:#DFCEB1}
.offer-detail>.note{margin-top:18px}
.ticket-note{padding:15px 17px;border:1px solid var(--line);background:#080A0C;border-radius:10px}
.ticket-note p{margin-top:10px;white-space:pre-line;overflow-wrap:anywhere;color:#F5EEE3;font-size:13px}
.ticket-toolbar{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:18px;border-bottom:1px solid var(--line);padding-bottom:18px}
.reply-body{padding-top:20px;border-top:1px solid var(--line);margin-top:18px}
.inline-link{color:#DFCEB1;text-decoration:underline;text-underline-offset:3px;font-weight:680}
.inline-link:hover{color:#DFCEB1}
.mfa-key{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;word-break:break-all;background:#080A0C;color:#F1E6D6;padding:12px;border:1px solid var(--line);margin:10px 0;border-radius:7px;font-size:15px;letter-spacing:.05em}
.nav-dropdown{max-height:min(76vh,640px);overflow-y:auto;min-width:205px}
.nav-dropdown .nav-link{min-height:40px}
.badge-open,.badge-high{background:#2D3238;border-color:#B9A383;color:#DFCEB1}
.badge-resolved,.badge-closed{background:#080A0C;border-color:#202226;color:#C5DEBA}
.badge-waiting{background:#14171A;color:#DFCEB1;border-color:#202226}
@media(max-width:1120px){.report-controls{grid-template-columns:1fr 1fr auto}.report-controls label:first-child{grid-column:auto}}
@media(max-width:750px){.report-controls{grid-template-columns:1fr 1fr}.report-controls button{grid-column:1/-1}.offer-detail-grid{grid-template-columns:1fr}.detail-row span{flex-basis:40%}}
@media(max-width:560px){.report-controls{padding:12px;gap:9px}.modal>form{width:100%}.modal-foot{align-items:stretch;flex-direction:column}.modal-foot>.flex{width:100%;justify-content:flex-end;flex-wrap:wrap}.detail-intro h2{font-size:22px}}

/* KEIMARO Offer Studio v0.5: one scrolling region, compact data-first form */
.offer-studio{width:min(1080px,calc(100vw - 42px));max-height:min(94dvh,950px);background:#080A0C;border:1px solid #202226;border-radius:18px;box-shadow:0 28px 110px rgba(0,0,0,.62)}
.offer-studio .modal-head{padding:22px 29px 16px;background:linear-gradient(135deg,#080A0C 0%,#080A0C 72%)}
.offer-studio .modal-head h2{font-size:24px;letter-spacing:-.04em}
.offer-studio .modal-head p{font-size:12px;color:#C6BDB0}
.offer-studio .modal-steps{margin-top:21px;gap:13px}
.offer-studio .modal-step{font-size:12px;letter-spacing:0;padding:0 1px;gap:9px;font-weight:600}
.offer-studio .modal-step::before{height:3px}
.offer-studio .modal-step.active{color:#F1E6D6}
.offer-studio .modal-body{padding:20px 28px 24px;overflow-y:auto;overflow-x:hidden}
.offer-studio-banner{display:flex;align-items:center;gap:13px;background:#14171A;border:1px solid #202226;border-radius:11px;padding:14px 15px;margin-bottom:18px}
.offer-studio-banner-icon{width:40px;height:40px;display:grid;place-items:center;background:#202226;border:1px solid #34383D;border-radius:11px;color:#DFCEB1;flex-shrink:0}
.offer-studio-banner strong{font-size:13px;color:#F1E6D6}.offer-studio-banner p{font-size:11px;color:#C6BDB0;margin-top:4px}
.offer-studio-tag{margin-left:auto;background:#14171A;border:1px solid #34383D;border-radius:6px;padding:5px 8px;font-size:10px;font-weight:800;color:#DFCEB1}
.offer-studio .form-section{background:#080A0C;border-color:#14171A;border-radius:12px;padding:20px 21px;margin-bottom:14px}
.offer-studio .form-section h3{font-size:13px;color:#F1E6D6;font-weight:750;margin-bottom:17px}
.offer-studio .form-section>p{margin:-8px 0 17px;font-size:11px;line-height:1.65}
.offer-studio .form-section .grid2{gap:15px 18px}
.offer-studio .field label{font-size:11px;letter-spacing:.01em;color:#F5EEE3;font-weight:700;margin-bottom:8px}
.offer-studio .control{min-height:42px;border-radius:8px;border-color:#202226;background:#080A0C;color:#DFCEB1;font-size:12px;padding:10px 12px}
.offer-studio .control::placeholder{color:#C6BDB0}
.offer-studio .control:focus{border-color:#DFCEB1;box-shadow:0 0 0 3px #DFCEB129;outline:none}
.offer-studio .control-textarea{line-height:1.6;min-height:86px}
.offer-studio .modal-foot{padding:15px 28px;background:#080A0C;border-top:1px solid #14171A}
.offer-studio-foot .modal-help{font-size:11px;line-height:1.5}
.offer-stage-count{color:#DFCEB1;font-weight:800}
.offer-studio-buttons{display:flex;justify-content:flex-end;align-items:center;gap:9px;flex-wrap:wrap}
.offer-studio-buttons .btn{white-space:nowrap;min-height:38px;padding:9px 14px;font-size:11px}
.offer-studio .btn[data-action="offer-next-v2"],.offer-studio .btn[data-action="offer-submit-final"]{background:#DFCEB1;color:#080A0C;font-weight:800}
.offer-geo-presets{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:15px}
.offer-geo-presets>span{font-size:10px;color:#C6BDB0;font-weight:700;margin-right:4px}
.offer-geo-chip{background:#14171A;color:#DFCEB1;border:1px solid #202226;border-radius:6px;padding:6px 9px;font-weight:800;font-size:10px;cursor:pointer}
.offer-geo-chip:hover{background:#202226;border-color:#C6BDB0}
.offer-margin{border:1px solid #202226;background:#080A0C;border-radius:8px;min-height:76px;padding:10px 14px;display:flex;flex-direction:column;justify-content:center;gap:5px}
.offer-margin span,.offer-margin small{color:#C6BDB0;font-size:10px}
.offer-margin strong{font-size:19px;letter-spacing:-.02em;color:#C5DEBA}
.offer-margin.negative strong{color:#DFCEB1}
.offer-url-row{display:flex;align-items:center;gap:8px}
.offer-url-row .control{flex:1;min-width:0}
.offer-url-row .btn{flex-shrink:0;font-size:10px}
.offer-help{font-size:10px;color:#C6BDB0;display:block;line-height:1.5;margin-top:8px}
.offer-studio-cols{display:grid;grid-template-columns:1.05fr .95fr;gap:14px;align-items:stretch}
.offer-studio-cols>.form-section{margin-bottom:14px;min-width:0}
.offer-section-title{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.offer-section-title h3{margin-bottom:9px!important}.offer-section-title p{font-size:10px;color:#C6BDB0;margin:0 0 12px!important}
.offer-macro-search{margin:0 0 10px}
.offer-macro-list{display:flex;flex-direction:column;gap:5px;max-height:320px;overflow-y:auto;overscroll-behavior:contain;padding-right:4px}
.offer-macro{display:flex;justify-content:space-between;align-items:center;border:1px solid #14171A;background:#080A0C;padding:9px 10px;border-radius:8px;gap:6px}
.offer-macro[hidden],.publisher-option[hidden]{display:none!important}
.offer-macro-meta{min-width:0;display:flex;flex-direction:column;gap:3px}
.offer-macro-meta code{font-family:ui-monospace,monospace;color:#DFCEB1;font-size:11px;font-weight:700}
.offer-macro-meta span{font-size:10px;color:#C6BDB0}
.offer-macro-actions{display:flex;gap:5px}
.offer-icon-button{width:30px;height:30px;display:grid;place-items:center;border-radius:7px;border:1px solid #202226;background:#14171A;color:#DFCEB1;cursor:pointer;font-size:15px}
.offer-icon-button:hover{border-color:#DFCEB1;color:white}
.offer-studio-note{border:1px solid #202226;background:#14171A;border-radius:9px;padding:13px 14px;color:#DFCEB1;line-height:1.55}
.offer-studio-note strong{font-size:11px}.offer-studio-note p{font-size:11px;color:#F5EEE3;margin:6px 0 0}
.offer-tracking-side .field{margin-bottom:15px}
.offer-tracking-side .btn{margin-top:12px}
.offer-tracking-example{border:1px solid #14171A;background:#080A0C;padding:12px;border-radius:9px;margin-top:12px;display:flex;flex-direction:column;gap:9px;overflow:hidden}
.offer-tracking-example strong{font-size:11px}.offer-tracking-example code{font-size:10px;font-family:ui-monospace,monospace;overflow-wrap:anywhere;color:#DFCEB1}
.offer-tracking-example span{font-size:10px;color:#C6BDB0;line-height:1.5}
.offer-diagnostic{border:1px solid #202226;border-radius:9px;background:#080A0C;padding:11px;margin-top:12px;overflow-wrap:anywhere}
.offer-diagnostic strong{font-size:11px;color:#C5DEBA}.offer-diagnostic p{margin:9px 0;font-size:10px;line-height:1.65;color:#DFCEB1;max-height:100px;overflow:auto}.offer-diagnostic small{display:block;color:#C6BDB0;font-size:10px}
.offer-pub-toolbar{margin:12px 0}
.offer-publisher-list{max-height:220px;overflow-y:auto;padding:3px;overscroll-behavior:contain}
.publisher-option{display:flex;align-items:center;gap:11px;padding:10px 12px;background:#080A0C;border:1px solid #14171A;border-radius:8px;margin-bottom:6px;cursor:pointer}
.publisher-option>input{width:17px;height:17px;accent-color:#DFCEB1;flex-shrink:0}
.publisher-option>span:nth-child(2){display:flex;flex-direction:column;gap:5px;flex:1;min-width:0}
.publisher-option strong{font-size:11px;color:#DFCEB1}.publisher-option small{font-size:10px;color:#C6BDB0}
.offer-subtle{font-size:11px;color:#C6BDB0;line-height:1.65}
@media(max-width:850px){.offer-studio-cols{grid-template-columns:1fr}.offer-studio .modal-body{padding:16px 18px}.offer-studio .modal-head{padding:18px}.offer-studio .modal-foot{padding:14px 18px}.offer-studio .form-section{padding:16px}.offer-studio-foot{align-items:stretch;flex-direction:column}.offer-studio-buttons{width:100%;justify-content:space-between}}
@media(max-width:560px){.offer-studio{width:100%;height:100dvh;max-height:100dvh;border-radius:0}.offer-studio .modal-steps{gap:5px}.offer-studio .modal-step{font-size:9px}.offer-studio .modal-step::before{height:2px}.offer-studio .form-section .grid2{grid-template-columns:1fr}.offer-studio .grid3{grid-template-columns:1fr}.offer-studio .modal-help{display:none}.offer-studio-buttons .btn{flex:1}.offer-studio .modal-head h2{font-size:21px}.offer-studio-banner{padding:12px}.offer-studio-tag{display:none}.offer-url-row{flex-direction:column;align-items:stretch}.offer-url-row .control{width:100%}.offer-studio .modal-body{padding:13px 15px}.offer-studio .modal-head,.offer-studio .modal-foot{padding:15px}}
.offer-studio [hidden]{display:none!important}
