
/* SecretGift V8.6 — interface compacte, centrée et lisible */
:root{
 --sg-max:1380px;
 --sg-gap:10px;
 --sg-radius:14px;
 --sg-text:#201e1a;
}
html{font-size:14px}
body{color:var(--sg-text);line-height:1.42}
.container{width:min(var(--sg-max),calc(100% - 24px));margin:0 auto;padding:16px 0 28px}
.topbar{min-height:64px;padding:8px max(14px,calc((100% - var(--sg-max))/2));gap:12px}
.brand{gap:8px;min-width:0}
.brand-icon,.brand-logo-image{width:44px!important;height:44px!important}
.brand b{font-size:1.15rem}
.brand small{font-size:.78rem;line-height:1.15}
.nav{gap:3px;align-items:center;justify-content:flex-end}
.nav>a,.workspace-switch{padding:8px 10px!important;border-radius:10px;font-size:.91rem;min-height:38px!important}
.language-switcher{display:flex;gap:3px;margin-left:5px;padding:3px;border:1px solid #e5ded1;border-radius:10px;background:#f7f4ee}
.language-switcher a{display:grid;place-items:center;min-width:32px;height:30px;padding:0 6px;border-radius:7px;font-size:.76rem;font-weight:850;color:#4b463f;text-decoration:none}
.language-switcher a.active{background:#171512;color:#fff}
.admin-tabs{display:flex;justify-content:center;gap:4px;padding:7px!important;margin:0 auto 16px;border-radius:13px;white-space:nowrap}
.admin-tabs a{padding:7px 10px!important;border-radius:9px;font-size:.86rem;min-height:34px;display:flex;align-items:center}
.dashboard-head{gap:12px;margin-bottom:14px}
.dashboard-head h1,h1{font-size:clamp(1.65rem,2.5vw,2.25rem);margin:0 0 5px}
h2{font-size:1.35rem;margin:0 0 10px}
h3{font-size:1.05rem;margin:0 0 8px}
.card,.form-card{padding:16px!important;border-radius:var(--sg-radius)!important}
.top-space{margin-top:12px!important}
.settings-grid,.split-grid,.dashboard-grid,.stats-grid,.admins-grid{gap:12px!important}
.form-row{gap:10px}
.field{margin-bottom:10px!important}
.field label,label{margin-bottom:4px;font-size:.88rem}
input,select,textarea{min-height:40px!important;padding:8px 10px!important;border-radius:10px!important;font-size:.94rem}
textarea{min-height:80px!important}
.btn,button,input[type=submit],input[type=button]{min-height:40px!important;padding:9px 13px!important;border-radius:10px!important;font-size:.9rem!important}
.badge{padding:5px 9px;font-size:.78rem}
.table-wrap{border-radius:12px}
table{font-size:.88rem}
th,td{padding:9px 10px!important}
.detail-list>div{padding:9px 0!important}
.timeline-item{padding-bottom:11px!important}
.alert{padding:10px 12px!important;border-radius:11px!important}
.empty{padding:18px!important}
.delivery-progress{height:9px!important;margin:10px 0!important}
.permission-grid{gap:6px 10px!important;margin:8px 0 12px!important}
.check-line{padding:7px 9px!important;border-radius:9px}
.branding-upload-card{padding:12px!important}
.menu-toggle{width:40px;height:40px}
@media(max-width:900px){
 .topbar{padding:8px 12px}
 .nav{top:64px;padding:10px;gap:5px}
 .nav>a,.workspace-switch{width:100%;justify-content:flex-start}
 .language-switcher{width:100%;justify-content:center;margin:4px 0 0}
 .admin-tabs{justify-content:flex-start}
 .container{width:min(100% - 16px,var(--sg-max));padding-top:10px}
}
@media(max-width:600px){
 html{font-size:13.5px}
 .card,.form-card{padding:13px!important}
 .dashboard-head{margin-bottom:10px}
 h1{font-size:1.65rem}
 .responsive-actions{gap:7px!important}
 th,td{padding:8px!important}
}
