:root{--fg-primary:#302653;--fg-accent:#bf4310;--fg-background:#f5f3f8;--fg-text:#252137;--fg-muted:#655c73;--fg-border:#d9d3e3;--primary:#302653;--primary-hover:#241c40;--primary-soft:#fff0e7;--background:#f5f3f8;--text:#252137;--text-muted:#655c73;--border:#d9d3e3;--shadow:0 16px 48px #30265312}
*{box-sizing:border-box}body{margin:0;background:var(--fg-background)!important;color:var(--fg-text)!important;font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif!important;line-height:1.5}a{color:var(--fg-accent)}h1,h2,h3{color:var(--fg-primary);letter-spacing:-.025em}h1{font-size:clamp(26px,3vw,34px)}h2{font-size:22px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #bf4310!important;outline-offset:3px}
.sidebar{position:fixed!important;inset:0 auto 0 0!important;width:248px!important;padding:26px 18px!important;background:#302653!important;border:0!important;color:#fff!important;overflow-y:auto;z-index:20;display:flex!important;flex-direction:column!important;height:100dvh}
.mp-brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:#fff!important;padding:0 8px 24px}.mp-brand img{width:46px;height:52px;object-fit:contain}.mp-brand strong{display:block;font-size:23px;letter-spacing:-.7px}.mp-brand span{display:block;color:#ffbc94;font-size:13px;letter-spacing:.04em}
.mp-nav{display:block!important}.mp-nav .nav-item{display:block!important;color:#e9e3f4!important;padding:11px 14px!important;border-radius:10px!important;margin:4px 0!important;text-decoration:none;font-size:14px;font-weight:550}.mp-nav .nav-item:hover{background:#ffffff14!important;color:#fff!important}.mp-nav .nav-item.active{background:#fff0e7!important;color:#8d330e!important;box-shadow:inset 3px 0 #bf4310}.mp-nav-label{display:block;color:#c5b9da;font-size:11px;letter-spacing:.1em;text-transform:uppercase;margin:24px 14px 8px}
.mp-bottom{margin-top:auto;padding-top:28px}.mp-home{display:block;font-size:13px;color:#ded5ed!important;padding:10px 14px}.mp-logout{margin:8px 0 0!important}.mp-logout button{width:100%;padding:10px 14px!important;background:#ffffff0b!important;border:1px solid #ffffff38!important;color:white!important;text-align:left;border-radius:10px!important;cursor:pointer}
body.mp-workspace>.main,body.mp-workspace>.content{margin:0 0 0 248px!important;padding:36px clamp(20px,3vw,48px)!important;max-width:none!important;width:calc(100% - 248px);min-width:0}
.header,.page-header{background:transparent!important;color:var(--fg-text)!important;padding:0!important;margin-bottom:28px!important;gap:18px;flex-wrap:wrap}.header p,.subtitle,.muted,.field-hint,.card-note,.empty-text,.info-label{color:var(--fg-muted)!important}
.card,.panel,.stat-card,.account-item,.info-item,.login-card,.setup-card{background:#fff!important;color:var(--fg-text)!important;border:1px solid var(--fg-border)!important;border-radius:18px!important;box-shadow:0 4px 18px #30265306!important}.card,.stat-card{padding:24px!important}.panel{padding:24px!important}.card h3,.stat-card h3{font-weight:600;color:var(--fg-muted)!important;font-size:14px}.big,.stat-value,.card-value{color:var(--fg-primary);font-weight:750;letter-spacing:-.04em}.big.orange{color:var(--fg-accent)}.cards{gap:18px!important}
input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea{background:white!important;color:var(--fg-text)!important;border:1px solid #c9c0d7!important;border-radius:10px!important;max-width:100%;min-height:44px;padding:10px 12px}input::placeholder,textarea::placeholder{color:#81778d}input[type=checkbox],input[type=radio]{accent-color:#302653}label{color:#4b405e!important}
button,.button-primary,.btn-primary,.action-fetch,.action-restore{border-radius:10px!important}button[type=submit],.button-primary,.btn-primary,.login-button,.submit-button{background:#302653!important;color:#fff!important;border-color:#302653!important}button[type=submit]:hover,.button-primary:hover,.btn-primary:hover,.login-button:hover{background:#241c40!important}.button-secondary,.action-link,.back-link{color:#302653!important}.action-delete,button.action-delete{color:#9f2424!important;background:#fff1f1!important;border:1px solid #efc5c5!important}
table{color:var(--fg-text)!important;width:100%}th{background:#f5f3f8!important;color:#655c73!important;font-weight:600}td,th{border-color:#e9e4ef!important}tbody tr:hover{background:#faf8fc!important}td{overflow-wrap:anywhere}thead{background:#f5f3f8!important}.table-wrapper,.table-wrap,.table-container{max-width:100%;overflow-x:auto;border-radius:12px;border:1px solid #e9e4ef}.empty{color:#655c73!important}.empty-title{color:#302653!important}
.protection-banner{background:#fff0e7!important;border:1px solid #edd0c0!important;color:#713516!important;border-radius:16px}.protection-text,.protection-text p{color:#713516!important}.note{background:#fff0e7!important;border-left-color:#bf4310!important;color:#713516}.mail-content,.html-source,.header-source,pre{background:#faf8fc!important;color:#252137!important;border-color:#d9d3e3!important;overflow-wrap:anywhere}
.page{background:radial-gradient(ellipse at 10% 10%,#ede7f4,transparent 55%),#f5f3f8!important}.brand-area{padding:clamp(28px,5vw,72px)!important}.brand-mark{background:transparent!important;box-shadow:none!important;width:100px!important;height:110px!important;border-radius:0!important}.brand-mark img{height:100%;width:100%;object-fit:contain}.brand-title{color:#302653!important}.brand-title span{color:#bf4310!important}.brand-description{color:#655c73!important}.feature-icon{background:#fff0e7!important;color:#bf4310!important}.login-area{background:#ffffff55!important}.login-card{padding:36px!important}.login-footer,.footer-note{color:#655c73!important}
.mp-auth-header{display:flex;align-items:center;justify-content:center;gap:12px;background:#302653!important;color:white!important;padding:22px}.mp-auth-header img{width:40px;height:44px;object-fit:contain}.mp-auth-header span{color:#ffbc94}.mp-auth-header a{color:white;text-decoration:none}
@media(min-width:1400px){body.mp-workspace>.main,body.mp-workspace>.content{padding-right:5vw!important;padding-left:4vw!important}}
@media(max-width:900px){.sidebar{position:relative!important;width:100%!important;height:auto!important;inset:auto!important;padding:16px!important}.mp-brand{padding:0 6px 14px}.mp-brand img{width:34px;height:38px}.mp-brand strong{font-size:21px}.mp-nav{display:flex!important;flex-wrap:wrap;gap:4px}.mp-nav .nav-item{padding:9px 12px!important;margin:0!important}.mp-nav-label{width:100%;margin:12px 12px 4px}.mp-bottom{display:flex;align-items:center;justify-content:space-between;padding-top:14px}.mp-logout{margin:0!important}.mp-logout button{width:auto}.mp-home{padding:6px 12px}body.mp-workspace>.main,body.mp-workspace>.content{width:100%!important;margin:0!important;padding:24px 16px!important}.cards,.stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}.page{grid-template-columns:1fr!important;min-height:100vh}.brand-area{padding:30px 24px!important}.brand-mark{width:60px!important;height:68px!important;margin-bottom:16px!important}.brand-title{font-size:36px!important}.brand-description{font-size:16px!important}.feature-list{display:none!important}.login-area{padding:0 16px 30px!important}.login-card{max-width:540px;padding:26px!important}}
@media(max-width:560px){.cards,.stats,.form-grid,.info-grid{grid-template-columns:1fr!important}.panel{padding:18px!important}.header,.page-header{display:block!important}.header h3{margin-top:14px}.account-row{flex-wrap:wrap}.panel-header{flex-wrap:wrap;gap:10px}h1{font-size:27px}.button-row,.actions{flex-wrap:wrap}.brand-description{margin-bottom:0!important}}

button[type=button]{background:#eee9f5!important;color:#302653!important;border:1px solid #c9c0d7!important;padding:11px 16px;cursor:pointer}button:disabled{opacity:.6;cursor:not-allowed}.mp-bottom .mp-home{white-space:normal;width:auto}.mp-logout button{line-height:1.5!important}.status-green,.badge-green{color:#166534!important;background:#ecfdf3!important}
