
:root{
  --bg:#060b14;
  --bg2:#0a1425;
  --panel:rgba(15,27,46,.86);
  --panel2:rgba(255,255,255,.055);
  --line:rgba(152,180,220,.18);
  --line2:rgba(255,255,255,.10);
  --text:#edf5ff;
  --muted:#9fb4d8;
  --accent:#38bdf8;
  --accent2:#22c55e;
  --warn:#f59e0b;
  --danger:#ef4444;
  --shadow:0 24px 80px rgba(0,0,0,.38);
}
*{box-sizing:border-box}
html,body{min-height:100%}
body{
  margin:0;
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Arial,sans-serif;
  background:
    radial-gradient(circle at 18% 0%, rgba(56,189,248,.22), transparent 34%),
    radial-gradient(circle at 85% 8%, rgba(34,197,94,.13), transparent 30%),
    linear-gradient(180deg,#08111f 0%,#050913 100%);
  background-attachment:fixed;
}
body::before{
  content:"";
  position:fixed;inset:0;pointer-events:none;
  background-image:linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px, transparent 1px);
  background-size:42px 42px;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.55),transparent 65%);
}
.wrap,.container,main{
  max-width:1280px;
  margin:0 auto;
  padding:24px;
}
h1{
  font-size:clamp(30px,4vw,52px);
  line-height:1;
  letter-spacing:-.045em;
  margin:0 0 8px;
}
h2,h3{
  letter-spacing:-.02em;
}
p,.small,small{color:var(--muted)}
a{color:#bae6fd}
.card, fieldset, .panel, .box{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:22px;
  padding:18px;
  box-shadow:var(--shadow);
  backdrop-filter: blur(18px);
}
fieldset{margin:18px 0}
legend{
  color:#fff;
  font-weight:900;
  letter-spacing:.03em;
  padding:0 10px;
}
input,select,textarea{
  width:100%;
  background:rgba(2,6,23,.72)!important;
  color:var(--text)!important;
  border:1px solid rgba(148,163,184,.25)!important;
  border-radius:14px!important;
  padding:12px 14px!important;
  outline:none;
  font-size:15px;
}
input:focus,select:focus,textarea:focus{
  border-color:rgba(56,189,248,.75)!important;
  box-shadow:0 0 0 4px rgba(56,189,248,.12);
}
button,.btn,input[type=submit],input[type=button]{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:0!important;
  border-radius:999px!important;
  padding:12px 17px!important;
  background:linear-gradient(135deg,#fff,#dbeafe)!important;
  color:#07111f!important;
  font-weight:900!important;
  text-decoration:none!important;
  cursor:pointer;
  box-shadow:0 12px 34px rgba(56,189,248,.15);
}
button.secondary,.btn2,.btn-secondary{
  background:rgba(21,36,59,.96)!important;
  color:#fff!important;
  border:1px solid rgba(148,163,184,.28)!important;
}
table{
  width:100%;
  border-collapse:separate!important;
  border-spacing:0 8px!important;
}
th{
  color:#a9bee2!important;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  text-align:left;
  padding:10px 12px!important;
  border:0!important;
}
td{
  background:rgba(255,255,255,.055)!important;
  border-top:1px solid rgba(255,255,255,.08)!important;
  border-bottom:1px solid rgba(255,255,255,.08)!important;
  padding:12px!important;
  color:var(--text)!important;
}
td:first-child{border-left:1px solid rgba(255,255,255,.08)!important;border-radius:14px 0 0 14px}
td:last-child{border-right:1px solid rgba(255,255,255,.08)!important;border-radius:0 14px 14px 0}
pre,.preview{
  background:rgba(2,6,23,.82)!important;
  border:1px solid rgba(148,163,184,.22)!important;
  border-radius:18px!important;
  color:#eef6ff!important;
  padding:16px!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.02);
}
.shut-page-hero{
  display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px;
}
.shut-brand{
  display:flex;align-items:center;gap:14px;margin-bottom:8px;
}
.shut-logo{
  width:54px;height:54px;border-radius:16px;
  background:linear-gradient(135deg,#2563eb,#06b6d4 50%,#22c55e);
  display:grid;place-items:center;
  color:#fff;font-size:24px;font-weight:1000;
  box-shadow:0 20px 50px rgba(37,99,235,.35);
}
.shut-kicker{
  color:#9bdcff;
  text-transform:uppercase;
  letter-spacing:.22em;
  font-weight:900;
  font-size:12px;
}
.shut-topbar{
  position:sticky;top:10px;z-index:50;
  display:flex;flex-wrap:wrap;gap:10px;
  margin:0 0 24px 0;
  padding:10px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:22px;
  background:rgba(8,17,31,.78);
  backdrop-filter:blur(22px);
  box-shadow:0 18px 60px rgba(0,0,0,.28);
}
.shut-topbar-link{
  display:inline-flex;align-items:center;gap:8px;
  padding:11px 15px;
  border-radius:999px;
  background:rgba(21,36,59,.82);
  color:#fff!important;
  border:1px solid rgba(148,163,184,.22);
  text-decoration:none!important;
  font-weight:900;
  font-size:14px;
}
.shut-topbar-link.active{
  background:linear-gradient(135deg,#fff,#dbeafe);
  color:#07111f!important;
  border-color:transparent;
}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.full{grid-column:1/-1}
.badge{
  display:inline-flex;align-items:center;
  padding:6px 10px;border-radius:999px;
  font-weight:900;font-size:12px;
  background:rgba(56,189,248,.13);
  color:#b8ecff;
  border:1px solid rgba(56,189,248,.22);
}
@media(max-width:850px){
  .wrap,.container,main{padding:16px}
  .grid{grid-template-columns:1fr}
  .shut-page-hero{display:block}
  .shut-topbar{position:relative;top:auto}
}


/* v5.5 compact admin polish */
.shut-topbar{
  gap:7px!important;
  padding:8px!important;
  margin:0 0 14px!important;
  border-radius:18px!important;
}
.shut-topbar-link{
  padding:8px 11px!important;
  font-size:12.5px!important;
  letter-spacing:.01em!important;
}
.workflow-bar{
  gap:7px!important;
  padding:8px!important;
  margin:0 0 14px!important;
  border-radius:18px!important;
}
.workflow-btn{
  padding:8px 11px!important;
  font-size:12.5px!important;
}
header{
  margin-bottom:14px!important;
}
.logo .lm,.shut-logo{
  width:44px!important;
  height:44px!important;
  border-radius:14px!important;
}
.bn{
  font-size:34px!important;
  letter-spacing:-2px!important;
}
.bs,.shut-kicker{
  font-size:10px!important;
  letter-spacing:.22em!important;
}
.tabs{
  margin-top:8px!important;
}
.tab{
  padding:10px 18px!important;
  font-size:14px!important;
}
.rc{
  border-radius:20px!important;
  padding:15px!important;
}
.rc-head strong{
  font-size:20px!important;
}
.rc-cnt{
  font-size:13px!important;
}
.src-inp{
  font-size:14px!important;
  padding:10px 12px!important;
}
.btn,button,.workflow-btn,.shut-topbar-link{
  min-height:auto!important;
}
.card, fieldset, .panel, .box{
  border-radius:20px!important;
}

/* Cleaner mobile */
@media(max-width:850px){
  .shut-topbar,.workflow-bar{gap:6px!important}
  .shut-topbar-link,.workflow-btn{font-size:12px!important;padding:8px 10px!important}
  .bn{font-size:28px!important}
}

/* v5.6 unified tabs */
.main-tabs .tablink{
  text-decoration:none!important;
}


/* v6 unified layout */
.shut-layout{
  max-width:1280px;
  margin:0 auto;
  padding:24px;
}
.shut-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}
.shut-card{
  background:rgba(15,27,46,.86);
  border:1px solid rgba(255,255,255,.12);
  border-radius:22px;
  padding:18px;
  box-shadow:0 24px 80px rgba(0,0,0,.32);
  backdrop-filter:blur(18px);
}
.shut-card.full{grid-column:1/-1}
.shut-page-title{
  margin:18px 0 16px;
}
.shut-page-title h1{
  margin:0;
  font-size:clamp(34px,4vw,54px);
  line-height:.95;
  letter-spacing:-.055em;
}
.shut-page-title p{
  margin:8px 0 0;
  color:#9fb4d8;
  font-weight:700;
}
.shut-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}
.shut-table-card table{
  width:100%;
}
.shut-mini{
  color:#9fb4d8;
  font-size:13px;
  line-height:1.5;
}
@media(max-width:900px){
  .shut-layout{padding:16px}
  .shut-grid{grid-template-columns:1fr}
}


/* v6.1 admin mobile/responsive rebuild */
:root{
  --admin-max: 1320px;
}
body{
  overflow-x:hidden;
}
.shut-layout,.wrap,.container,main{
  width:min(var(--admin-max), calc(100% - 28px))!important;
  max-width:var(--admin-max)!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding-left:0!important;
  padding-right:0!important;
}
.shut-topbar{
  width:100%;
  overflow-x:auto;
  flex-wrap:nowrap!important;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.shut-topbar::-webkit-scrollbar{display:none}
.shut-topbar-link{
  white-space:nowrap;
  flex:0 0 auto;
}
header{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  flex-wrap:wrap!important;
}
.toolbar{
  display:flex!important;
  gap:8px!important;
  flex-wrap:wrap!important;
}
.grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr))!important;
  gap:16px!important;
}
.rc{
  min-width:0!important;
}
.src-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto auto!important;
  gap:8px!important;
  align-items:center!important;
}
.src-inp{
  min-width:0!important;
}
.tabs.main-tabs,.tabs{
  width:100%;
  overflow-x:auto;
  flex-wrap:nowrap!important;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.tabs.main-tabs::-webkit-scrollbar,.tabs::-webkit-scrollbar{display:none}
.tabs .tab,.main-tabs .tab{
  white-space:nowrap;
  flex:0 0 auto;
}
.shut-grid{
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr))!important;
}
.shut-card.full{
  grid-column:1/-1;
}
table{
  display:block;
  overflow-x:auto;
  white-space:nowrap;
}
thead,tbody,tr{
  width:100%;
}
.preview,pre{
  max-width:100%;
  overflow:auto;
}
input,select,textarea{
  max-width:100%;
}
.row,.row3,.staffline{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr))!important;
  gap:10px!important;
}

/* Compact laptop/tablet */
@media(max-width:1100px){
  .bn{font-size:30px!important}
  .bs{letter-spacing:.15em!important}
  .rc-head strong{font-size:18px!important}
}

/* Mobile phone */
@media(max-width:720px){
  .shut-layout,.wrap,.container,main{
    width:calc(100% - 18px)!important;
    padding-top:10px!important;
  }
  header{
    display:block!important;
  }
  .logo,.shut-brand{
    align-items:center!important;
  }
  .lm,.shut-logo{
    width:38px!important;
    height:38px!important;
  }
  .bn,h1{
    font-size:26px!important;
    line-height:1.02!important;
    letter-spacing:-1.2px!important;
  }
  .bs,.shut-kicker{
    font-size:9px!important;
    letter-spacing:.14em!important;
  }
  .toolbar{
    margin-top:10px!important;
  }
  .btn,button,input[type=submit],input[type=button]{
    padding:10px 13px!important;
    font-size:13px!important;
  }
  .shut-topbar{
    position:relative!important;
    top:auto!important;
    margin-bottom:12px!important;
  }
  .shut-topbar-link{
    padding:8px 10px!important;
    font-size:12px!important;
  }
  .tabs.main-tabs,.tabs{
    gap:6px!important;
    padding-bottom:4px;
  }
  .tabs .tab,.main-tabs .tab{
    border-radius:13px!important;
    border:1px solid rgba(255,255,255,.14)!important;
    padding:9px 12px!important;
    min-height:38px!important;
    font-size:13px!important;
  }
  .grid,.shut-grid{
    grid-template-columns:1fr!important;
    gap:12px!important;
  }
  .rc,.card,.shut-card,fieldset,.panel,.box{
    border-radius:16px!important;
    padding:13px!important;
  }
  .src-row{
    grid-template-columns:1fr!important;
  }
  .src-row button,.src-row a{
    width:100%;
  }
  .rc-head{
    gap:8px!important;
  }
  .rc-pill{
    margin-left:auto!important;
  }
  table{
    font-size:12px!important;
  }
  th,td{
    padding:8px!important;
  }
  .shut-page-title{
    margin:12px 0!important;
  }
  .shut-page-title h1{
    font-size:30px!important;
  }
}

/* Very small */
@media(max-width:420px){
  .bn,h1{font-size:23px!important}
  .rc-head strong{font-size:17px!important}
  .shut-topbar-link{font-size:11.5px!important}
}
