:root{
  --bg:#070807;
  --panel:#0d100d;
  --panel2:#111511;
  --line:rgba(255,255,255,.07);
  --text:#eef2ee;
  --muted:#858c85;
  --green:#76b900;
  --green2:#8bd600;
}

*{
  box-sizing:border-box;
}

html,
body{
  margin:0;
  height:100%;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background:var(--bg);
  color:var(--text);
}

button,
textarea,
input{
  font:inherit;
}

button{
  cursor:pointer;
}

.cms{
  height:100vh;

  display:grid;

  grid-template-columns:
    240px
    minmax(0,1fr)
    310px;

  grid-template-rows:
    64px
    1fr;
}

.topbar{
  grid-column:1/-1;

  height:64px;

  padding:0 18px;

  display:flex;
  align-items:center;
  justify-content:space-between;

  border-bottom:1px solid var(--line);

  background:
    rgba(8,10,8,.96);

  backdrop-filter:
    blur(20px);

  z-index:20;
}

.brand{
  display:flex;
  align-items:center;
  gap:11px;
}

.brand-mark{
  width:38px;
  height:38px;

  display:grid;
  place-items:center;

  border-radius:11px;

  background:
    linear-gradient(
      135deg,
      var(--green2),
      var(--green)
    );

  color:#071007;

  font-weight:900;
}

.brand strong{
  display:block;

  font-size:14px;
}

.brand small{
  display:block;

  margin-top:2px;

  color:var(--muted);

  font-size:10px;
}

.top-actions{
  display:flex;
  align-items:center;
  gap:7px;
}

.device,
.icon-button{
  height:34px;

  padding:0 12px;

  border:1px solid var(--line);
  border-radius:9px;

  background:var(--panel);

  color:var(--muted);
}

.device.active{
  border-color:
    rgba(118,185,0,.35);

  color:var(--green2);

  background:
    rgba(118,185,0,.08);
}

.open-site{
  height:34px;

  padding:0 13px;

  display:flex;
  align-items:center;

  border-radius:9px;

  background:var(--green);

  color:#071007;

  text-decoration:none;

  font-size:12px;
  font-weight:800;
}

.sidebar,
.editor{
  min-height:0;

  overflow:auto;

  background:var(--panel);
}

.sidebar{
  border-right:
    1px solid var(--line);

  padding:18px 12px;
}

.editor{
  border-left:
    1px solid var(--line);

  padding:18px;
}

.sidebar-title{
  margin:
    0 8px 10px;

  color:#666d66;

  font-size:10px;
  font-weight:800;

  letter-spacing:.14em;

  text-transform:uppercase;
}

.site-item,
.page-item{
  width:100%;

  margin-bottom:5px;

  padding:11px;

  display:flex;
  align-items:center;

  gap:10px;

  border:1px solid transparent;
  border-radius:11px;

  background:transparent;

  color:#dce1dc;

  text-align:left;
}

.site-item:hover,
.page-item:hover{
  background:
    rgba(255,255,255,.025);
}

.site-item.active,
.page-item.active{
  border-color:
    rgba(118,185,0,.20);

  background:
    rgba(118,185,0,.07);
}

.site-icon{
  width:31px;
  height:31px;

  display:grid;
  place-items:center;

  border-radius:8px;

  background:#171b17;

  color:var(--green2);

  font-size:10px;
  font-weight:900;
}

.site-meta{
  min-width:0;
}

.site-meta strong{
  display:block;

  overflow:hidden;

  font-size:12px;

  text-overflow:ellipsis;
  white-space:nowrap;
}

.site-meta small{
  color:var(--muted);
  font-size:9px;
}

.status{
  margin-left:auto;

  width:6px;
  height:6px;

  border-radius:50%;
}

.status.online{
  background:var(--green2);

  box-shadow:
    0 0 10px
    rgba(139,214,0,.5);
}

.status.offline{
  background:#d95050;
}

.pages-wrap{
  margin-top:25px;
}

.page-item{
  padding:9px 11px;

  font-size:11px;
}

.workspace{
  min-width:0;
  min-height:0;

  overflow:hidden;

  background:
    radial-gradient(
      circle at center,
      rgba(118,185,0,.025),
      transparent 50%
    ),
    #090b09;
}

.empty-state{
  height:100%;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  text-align:center;
}

.empty-logo{
  width:66px;
  height:66px;

  display:grid;
  place-items:center;

  margin-bottom:20px;

  border-radius:20px;

  background:
    rgba(118,185,0,.09);

  border:
    1px solid
    rgba(118,185,0,.18);

  color:var(--green2);

  font-weight:900;
}

.empty-state h1{
  margin:0 0 8px;

  font-size:22px;
}

.empty-state p{
  max-width:340px;

  margin:0;

  color:var(--muted);

  font-size:12px;
  line-height:1.6;
}

.preview-shell{
  height:100%;

  display:grid;

  grid-template-rows:
    54px
    1fr;
}

.preview-toolbar{
  padding:0 14px;

  display:flex;
  align-items:center;
  justify-content:space-between;

  border-bottom:
    1px solid var(--line);
}

.preview-toolbar strong{
  display:block;

  font-size:12px;
}

.preview-toolbar small{
  color:var(--muted);

  font-size:9px;
}

.preview-stage{
  overflow:auto;

  padding:18px;

  display:flex;
  justify-content:center;
}

#preview{
  width:100%;
  height:100%;

  min-height:600px;

  border:0;
  border-radius:12px;

  background:white;

  box-shadow:
    0 20px 65px
    rgba(0,0,0,.28);

  transition:
    width .25s ease;
}

.editor-empty{
  height:100%;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  color:var(--muted);

  text-align:center;
}

.editor-empty span{
  margin-bottom:13px;

  color:var(--green2);

  font-size:25px;
}

.editor-empty strong{
  color:var(--text);

  font-size:13px;
}

.editor-empty p{
  max-width:190px;

  font-size:10px;
  line-height:1.6;
}

.editor-title{
  margin-bottom:18px;
}

.editor-title small{
  display:block;

  margin-bottom:5px;

  color:var(--green2);

  font-size:9px;
  font-weight:800;

  text-transform:uppercase;
}

.editor-title strong{
  font-size:16px;
}

.field{
  margin-bottom:16px;
}

.field label{
  display:block;

  margin-bottom:7px;

  color:var(--muted);

  font-size:10px;
}

textarea{
  width:100%;
  min-height:145px;

  resize:vertical;

  padding:12px;

  border:
    1px solid var(--line);

  border-radius:11px;

  outline:0;

  background:#090b09;

  color:var(--text);

  font-size:12px;
  line-height:1.5;
}

textarea:focus{
  border-color:
    rgba(118,185,0,.4);
}

.save-button,
.upload-button,
.delete-button{
  width:100%;
  min-height:42px;

  border:0;
  border-radius:11px;

  font-size:11px;
  font-weight:800;
}

.save-button,
.upload-button{
  background:var(--green);
  color:#071007;
}

.delete-button{
  margin-top:8px;

  background:
    rgba(210,72,72,.08);

  border:
    1px solid
    rgba(210,72,72,.17);

  color:#e88080;
}

.image-preview{
  width:100%;
  max-height:190px;

  margin-bottom:13px;

  object-fit:contain;

  border-radius:10px;

  background:#090b09;
}

.file-input{
  width:100%;

  margin-bottom:12px;

  color:var(--muted);

  font-size:10px;
}

.info-box{
  margin-top:16px;

  padding:11px;

  border-radius:10px;

  background:
    rgba(255,255,255,.025);

  color:var(--muted);

  font-size:9px;
  line-height:1.5;
}

.toast{
  position:fixed;

  left:50%;
  bottom:24px;

  z-index:100;

  transform:
    translate(-50%,20px);

  padding:
    11px 16px;

  border-radius:10px;

  background:#161a16;

  border:
    1px solid var(--line);

  color:white;

  font-size:11px;

  opacity:0;
  pointer-events:none;

  transition:.25s;
}

.toast.show{
  opacity:1;

  transform:
    translate(-50%,0);
}

.hidden{
  display:none!important;
}

@media(max-width:1050px){

  .cms{
    grid-template-columns:
      190px
      minmax(0,1fr)
      270px;
  }

}

@media(max-width:800px){

  .cms{
    grid-template-columns:
      155px
      minmax(0,1fr);

    grid-template-rows:
      58px
      1fr;
  }

  .editor{
    position:fixed;

    right:0;
    top:58px;
    bottom:0;

    width:300px;

    z-index:50;

    box-shadow:
      -20px 0 50px
      rgba(0,0,0,.4);
  }

  .top-actions .device{
    display:none;
  }

}


/* ==========================================================
   CMS SERVICES MANAGER
========================================================== */

.cms-manager-button{
  width:100%;
  margin:14px 0 5px;
  padding:11px;

  display:flex;
  align-items:center;
  gap:10px;

  border:1px solid rgba(118,185,0,.16);
  border-radius:11px;

  background:rgba(118,185,0,.045);
  color:#dce1dc;

  text-align:left;
}

.cms-manager-button:hover,
.cms-manager-button.active{
  background:rgba(118,185,0,.10);
  border-color:rgba(118,185,0,.30);
}

.cms-manager-icon{
  width:29px;
  height:29px;

  display:grid;
  place-items:center;

  border-radius:8px;

  background:rgba(118,185,0,.10);
  color:var(--green2);

  font-size:15px;
}

.services-shell{
  height:100%;
  overflow:auto;
  padding:24px;
}

.services-header{
  max-width:1100px;
  margin:0 auto 22px;

  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
}

.services-header small{
  display:block;
  margin-bottom:6px;

  color:var(--green2);

  font-size:9px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.services-header h2{
  margin:0;
  font-size:25px;
}

.services-header p{
  margin:7px 0 0;

  color:var(--muted);
  font-size:11px;
}

.add-service{
  flex:none;

  height:40px;
  padding:0 17px;

  border:0;
  border-radius:11px;

  background:var(--green);
  color:#071007;

  font-weight:900;
  font-size:11px;
}

.services-grid-cms{
  max-width:1100px;
  margin:auto;

  display:grid;
  grid-template-columns:
    repeat(2,minmax(0,1fr));

  gap:12px;
}

.cms-service-card{
  position:relative;

  padding:17px;

  border:1px solid var(--line);
  border-radius:14px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.025),
      rgba(255,255,255,.01)
    );

  transition:.2s;
}

.cms-service-card:hover{
  border-color:
    rgba(118,185,0,.25);

  transform:
    translateY(-2px);
}

.cms-service-top{
  display:flex;
  align-items:flex-start;
  gap:13px;
}

.cms-service-image{
  width:72px;
  height:72px;
  flex:none;

  display:grid;
  place-items:center;

  overflow:hidden;

  border-radius:11px;

  background:#090b09;
  border:1px solid var(--line);
}

.cms-service-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.cms-service-image-empty{
  color:#596059;
  font-size:20px;
}

.cms-service-info{
  min-width:0;
}

.cms-service-info strong{
  display:block;

  margin:2px 0 6px;

  font-size:14px;
}

.cms-service-info p{
  margin:0;

  color:var(--muted);

  font-size:10px;
  line-height:1.55;
}

.cms-service-price{
  margin-top:7px;

  color:var(--green2);

  font-size:11px;
  font-weight:800;
}

.cms-service-actions{
  margin-top:15px;

  display:flex;
  align-items:center;
  gap:6px;
}

.cms-mini-button{
  min-height:31px;

  padding:0 10px;

  border:1px solid var(--line);
  border-radius:8px;

  background:#0a0c0a;
  color:#adb3ad;

  font-size:9px;
}

.cms-mini-button:hover{
  color:white;

  border-color:
    rgba(118,185,0,.25);
}

.cms-mini-button.edit{
  color:var(--green2);
}

.cms-mini-button.danger{
  margin-left:auto;

  color:#dc7474;

  border-color:
    rgba(220,80,80,.14);
}

.service-editor-form input,
.service-editor-form textarea{
  width:100%;

  border:1px solid var(--line);
  border-radius:10px;

  outline:0;

  background:#090b09;
  color:var(--text);
}

.service-editor-form input{
  height:40px;
  padding:0 11px;
}

.service-editor-form textarea{
  min-height:115px;
}

.service-editor-form input:focus,
.service-editor-form textarea:focus{
  border-color:
    rgba(118,185,0,.40);
}

.service-editor-image{
  width:100%;
  max-height:180px;

  margin-bottom:12px;

  object-fit:contain;

  border-radius:10px;

  background:#090b09;
}

.services-unconfigured{
  max-width:600px;

  margin:80px auto;

  padding:30px;

  border:1px solid var(--line);
  border-radius:16px;

  background:rgba(255,255,255,.018);

  text-align:center;
}

.services-unconfigured strong{
  display:block;

  margin-bottom:8px;

  font-size:18px;
}

.services-unconfigured p{
  margin:0 0 18px;

  color:var(--muted);

  font-size:11px;
  line-height:1.6;
}

@media(max-width:950px){

  .services-grid-cms{
    grid-template-columns:1fr;
  }

}


/* ==========================================================
   CMS AUTH / USERS
========================================================== */

.cms-auth-screen{
  position:fixed;
  inset:0;
  z-index:10000;

  display:grid;
  place-items:center;

  padding:20px;

  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(118,185,0,.08),
      transparent 40%
    ),
    #070807;
}

.cms-auth-card{
  width:min(420px,100%);

  padding:30px;

  border:
    1px solid rgba(255,255,255,.075);

  border-radius:20px;

  background:
    rgba(13,16,13,.98);

  box-shadow:
    0 30px 90px
    rgba(0,0,0,.45);
}

.cms-auth-logo{
  width:52px;
  height:52px;

  display:grid;
  place-items:center;

  margin-bottom:23px;

  border-radius:14px;

  background:
    linear-gradient(
      135deg,
      var(--green2),
      var(--green)
    );

  color:#071007;

  font-weight:950;
}

.cms-auth-card h1{
  margin:0 0 7px;

  font-size:24px;
}

.cms-auth-card > p{
  margin:0 0 24px;

  color:var(--muted);

  font-size:11px;
}

.cms-auth-field{
  margin-bottom:13px;
}

.cms-auth-field label{
  display:block;

  margin-bottom:6px;

  color:var(--muted);

  font-size:10px;
}

.cms-auth-field input,
.cms-auth-field select{
  width:100%;
  height:44px;

  padding:0 12px;

  border:
    1px solid var(--line);

  border-radius:11px;

  outline:none;

  background:#090b09;
  color:var(--text);
}

.cms-auth-field input:focus{
  border-color:
    rgba(118,185,0,.4);
}

.cms-auth-submit{
  width:100%;
  height:45px;

  margin-top:5px;

  border:0;
  border-radius:11px;

  background:var(--green);
  color:#071007;

  font-weight:900;
}

.cms-auth-error{
  min-height:18px;

  margin-top:10px;

  color:#df7777;

  font-size:10px;
}

.cms-user-button{
  height:34px;
  padding:0 12px;

  border:
    1px solid var(--line);

  border-radius:9px;

  background:var(--panel);
  color:#bec4be;

  font-size:10px;
}

.cms-user-button:hover{
  border-color:
    rgba(118,185,0,.3);

  color:white;
}

.cms-user-button.logout{
  color:#df8989;
}

.cms-users-overlay{
  position:fixed;
  inset:0;

  z-index:9000;

  display:grid;
  place-items:center;

  padding:20px;

  background:
    rgba(0,0,0,.66);

  backdrop-filter:
    blur(7px);
}

.cms-users-modal{
  width:min(920px,100%);
  max-height:88vh;

  overflow:auto;

  padding:23px;

  border:
    1px solid var(--line);

  border-radius:18px;

  background:#0d100d;

  box-shadow:
    0 30px 90px
    rgba(0,0,0,.5);
}

.cms-users-head{
  display:flex;
  align-items:center;
  justify-content:space-between;

  margin-bottom:20px;
}

.cms-users-head h2{
  margin:0;

  font-size:20px;
}

.cms-users-close{
  width:34px;
  height:34px;

  border:
    1px solid var(--line);

  border-radius:9px;

  background:#090b09;
  color:white;
}

.cms-users-layout{
  display:grid;

  grid-template-columns:
    minmax(0,1fr)
    320px;

  gap:20px;
}

.cms-user-row{
  margin-bottom:8px;

  padding:13px;

  display:flex;
  align-items:center;
  gap:12px;

  border:
    1px solid var(--line);

  border-radius:12px;

  background:
    rgba(255,255,255,.018);
}

.cms-user-avatar{
  width:35px;
  height:35px;

  display:grid;
  place-items:center;

  flex:none;

  border-radius:9px;

  background:
    rgba(118,185,0,.10);

  color:var(--green2);

  font-size:10px;
  font-weight:900;
}

.cms-user-row-info{
  min-width:0;
  flex:1;
}

.cms-user-row-info strong{
  display:block;

  font-size:11px;
}

.cms-user-row-info small{
  display:block;

  margin-top:3px;

  color:var(--muted);

  font-size:9px;
}

.cms-user-status{
  padding:4px 7px;

  border-radius:6px;

  background:
    rgba(118,185,0,.08);

  color:var(--green2);

  font-size:8px;
}

.cms-user-status.off{
  background:
    rgba(220,80,80,.08);

  color:#df7777;
}

.cms-user-toggle{
  height:29px;

  padding:0 8px;

  border:
    1px solid var(--line);

  border-radius:7px;

  background:#090b09;
  color:#b9bfb9;

  font-size:8px;
}

.cms-create-user{
  padding:17px;

  border:
    1px solid var(--line);

  border-radius:13px;

  background:
    rgba(255,255,255,.018);
}

.cms-create-user h3{
  margin:
    0 0 15px;

  font-size:14px;
}

.cms-site-check{
  display:flex;
  align-items:center;
  gap:7px;

  margin-bottom:7px;

  color:#c3c8c3;

  font-size:10px;
}

.cms-site-check input{
  accent-color:
    var(--green);
}

@media(max-width:800px){

  .cms-users-layout{
    grid-template-columns:1fr;
  }

}


/* ==========================================================
   USERS MODAL — FINAL UI
========================================================== */

.cms-users-overlay{
  padding:28px;
}

.cms-users-modal{
  width:min(1040px,96vw);
  max-height:90vh;

  padding:28px;

  border-radius:22px;

  background:
    linear-gradient(
      145deg,
      rgba(15,19,15,.995),
      rgba(10,13,10,.995)
    );

  border:
    1px solid rgba(255,255,255,.075);

  box-shadow:
    0 35px 100px rgba(0,0,0,.56);
}


/* HEADER */

.cms-users-head{
  margin-bottom:24px;
}

.cms-users-head h2{
  font-size:24px;
  letter-spacing:-.02em;
}

.cms-users-close{
  width:40px;
  height:40px;

  border-radius:11px;

  font-size:20px;

  transition:
    background .2s,
    border-color .2s,
    transform .2s;
}

.cms-users-close:hover{
  background:
    rgba(255,255,255,.05);

  border-color:
    rgba(255,255,255,.13);

  transform:
    rotate(4deg);
}


/* TWO COLUMNS */

.cms-users-layout{
  grid-template-columns:
    minmax(0,1.15fr)
    minmax(340px,.85fr);

  gap:24px;

  align-items:start;
}


/* LEFT USER LIST */

#cmsUsersList{
  min-height:420px;
}

.cms-user-row{
  min-height:72px;

  padding:14px 16px;

  border-radius:14px;

  background:
    rgba(255,255,255,.018);

  transition:
    border-color .2s,
    background .2s,
    transform .2s;
}

.cms-user-row:hover{
  border-color:
    rgba(118,185,0,.18);

  background:
    rgba(118,185,0,.025);

  transform:
    translateY(-1px);
}

.cms-user-avatar{
  width:40px;
  height:40px;

  border-radius:10px;

  font-size:11px;
}

.cms-user-row-info strong{
  font-size:12px;
}

.cms-user-row-info small{
  margin-top:4px;

  line-height:1.45;
}

.cms-user-status{
  padding:6px 9px;

  border-radius:8px;

  white-space:nowrap;
}


/* CREATE USER PANEL */

.cms-create-user{
  padding:20px;

  border-radius:16px;

  background:
    rgba(255,255,255,.015);
}

.cms-create-user h3{
  margin-bottom:20px;

  font-size:18px;
  letter-spacing:-.01em;
}


/* FORM */

.cms-create-user .cms-auth-field{
  margin-bottom:16px;
}

.cms-create-user .cms-auth-field label{
  margin-bottom:7px;

  font-size:10px;
}

.cms-create-user .cms-auth-field > input{
  height:46px;

  border-radius:11px;

  background:
    rgba(4,6,4,.76);

  transition:
    border-color .2s,
    box-shadow .2s;
}

.cms-create-user .cms-auth-field > input:focus{
  border-color:
    rgba(118,185,0,.50);

  box-shadow:
    0 0 0 3px
    rgba(118,185,0,.06);
}


/* ----------------------------------------------------------
   SITE ACCESS
---------------------------------------------------------- */

#newUserSites{
  display:grid;

  grid-template-columns:
    repeat(2,minmax(0,1fr));

  gap:8px;

  margin-top:9px;
}


/*
   Entire label becomes the button.
*/

.cms-site-check{
  position:relative;

  min-height:44px;

  margin:0;

  padding:0 12px;

  display:flex;
  align-items:center;

  gap:9px;

  overflow:hidden;

  border:
    1px solid rgba(255,255,255,.065);

  border-radius:10px;

  background:
    rgba(255,255,255,.018);

  color:#aeb5ae;

  cursor:pointer;

  user-select:none;

  transition:
    background .2s,
    border-color .2s,
    color .2s,
    transform .2s;
}

.cms-site-check:hover{
  border-color:
    rgba(118,185,0,.25);

  background:
    rgba(118,185,0,.04);

  color:#eef2ee;

  transform:
    translateY(-1px);
}


/*
   Remove browser checkbox completely.
*/

.cms-site-check input[type="checkbox"]{
  appearance:none;
  -webkit-appearance:none;

  width:18px !important;
  height:18px !important;

  min-width:18px;
  min-height:18px;

  margin:0;

  display:grid;
  place-items:center;

  border:
    1px solid rgba(255,255,255,.17);

  border-radius:5px;

  background:
    #080a08;

  cursor:pointer;

  transition:
    background .18s,
    border-color .18s,
    box-shadow .18s;
}


/*
   Check mark
*/

.cms-site-check input[type="checkbox"]::after{
  content:"";

  width:8px;
  height:4px;

  border-left:
    2px solid #071007;

  border-bottom:
    2px solid #071007;

  transform:
    rotate(-45deg)
    scale(0);

  transition:
    transform .16s;
}


.cms-site-check input[type="checkbox"]:checked{
  background:
    var(--green2);

  border-color:
    var(--green2);

  box-shadow:
    0 0 14px
    rgba(139,214,0,.18);
}


.cms-site-check input[type="checkbox"]:checked::after{
  transform:
    rotate(-45deg)
    scale(1);
}


/*
   Highlight full card when selected.
*/

.cms-site-check:has(
  input[type="checkbox"]:checked
){
  border-color:
    rgba(118,185,0,.38);

  background:
    rgba(118,185,0,.09);

  color:
    var(--green2);
}


.cms-site-check span{
  overflow:hidden;

  font-size:10px;
  font-weight:700;

  text-overflow:ellipsis;
  white-space:nowrap;
}


/* CREATE BUTTON */

.cms-create-user .cms-auth-submit{
  height:48px;

  margin-top:18px;

  border-radius:12px;

  background:
    linear-gradient(
      135deg,
      var(--green2),
      var(--green)
    );

  box-shadow:
    0 10px 30px
    rgba(118,185,0,.10);

  transition:
    transform .2s,
    box-shadow .2s;
}

.cms-create-user .cms-auth-submit:hover{
  transform:
    translateY(-1px);

  box-shadow:
    0 14px 35px
    rgba(118,185,0,.18);
}

.cms-create-user .cms-auth-submit:active{
  transform:
    translateY(0)
    scale(.99);
}


/* MOBILE */

@media(max-width:900px){

  .cms-users-modal{
    padding:20px;
  }

  .cms-users-layout{
    grid-template-columns:1fr;
  }

  #cmsUsersList{
    min-height:auto;
  }

  #newUserSites{
    grid-template-columns:1fr;
  }

}


@media(max-width:520px){

  .cms-users-overlay{
    padding:10px;
  }

  .cms-users-modal{
    width:100%;
    max-height:94vh;

    padding:16px;

    border-radius:17px;
  }

  .cms-users-head h2{
    font-size:20px;
  }

  .cms-user-row{
    align-items:flex-start;

    flex-wrap:wrap;
  }

  .cms-user-status{
    margin-left:auto;
  }

}



/* ==========================================================
   YANDEX METRIKA
========================================================== */

.cms-metrika-shell{
  height:100%;
  overflow:auto;
  padding:28px;
}

.cms-metrika-card{
  width:min(680px,100%);
  margin:20px auto;

  padding:26px;

  border:1px solid var(--line);
  border-radius:17px;

  background:
    rgba(255,255,255,.018);
}

.cms-metrika-card h2{
  margin:0 0 7px;
  font-size:24px;
}

.cms-metrika-card > p{
  margin:0 0 23px;

  color:var(--muted);

  font-size:11px;
  line-height:1.6;
}

.cms-metrika-status{
  margin-bottom:20px;

  padding:13px 14px;

  border-radius:11px;

  background:
    rgba(118,185,0,.06);

  border:
    1px solid
    rgba(118,185,0,.11);

  color:#b9c0b9;

  font-size:10px;
}

.cms-metrika-status strong{
  color:var(--green2);
}

.cms-metrika-input{
  width:100%;
  height:46px;

  padding:0 13px;

  border:1px solid var(--line);
  border-radius:11px;

  outline:none;

  background:#090b09;
  color:white;
}

.cms-metrika-input:focus{
  border-color:
    rgba(118,185,0,.45);
}

.cms-metrika-switch{
  margin:17px 0;

  display:flex;
  align-items:center;

  gap:9px;

  color:#c1c7c1;

  font-size:10px;
}

.cms-metrika-switch input{
  appearance:none;
  -webkit-appearance:none;

  width:18px;
  height:18px;

  margin:0;

  border:
    1px solid
    rgba(255,255,255,.15);

  border-radius:5px;

  background:#080a08;

  cursor:pointer;
}

.cms-metrika-switch input:checked{
  background:var(--green2);
  border-color:var(--green2);
}

.cms-metrika-switch input:checked::after{
  content:"✓";

  display:grid;
  place-items:center;

  height:100%;

  color:#071007;

  font-size:12px;
  font-weight:900;
}

.cms-metrika-actions{
  display:flex;
  gap:8px;
}

.cms-metrika-save,
.cms-metrika-remove{
  height:43px;

  padding:0 16px;

  border-radius:10px;

  font-size:10px;
  font-weight:850;
}

.cms-metrika-save{
  border:0;

  background:
    linear-gradient(
      135deg,
      var(--green2),
      var(--green)
    );

  color:#071007;
}

.cms-metrika-remove{
  border:
    1px solid
    rgba(220,80,80,.16);

  background:
    rgba(220,80,80,.06);

  color:#df7e7e;
}



/* ==========================================================
   CMS BUTTONS MANAGER
========================================================== */

.cms-buttons-shell{
  height:100%;
  overflow:auto;
  padding:26px;
}

.cms-buttons-header{
  max-width:1100px;
  margin:0 auto 20px;
}

.cms-buttons-header small{
  display:block;

  margin-bottom:6px;

  color:var(--green2);

  font-size:9px;
  font-weight:850;

  letter-spacing:.12em;
  text-transform:uppercase;
}

.cms-buttons-header h2{
  margin:0;

  font-size:25px;
}

.cms-buttons-header p{
  margin:7px 0 0;

  color:var(--muted);

  font-size:11px;
}

.cms-buttons-list{
  max-width:1100px;
  margin:auto;

  display:grid;
  gap:8px;
}

.cms-button-row{
  padding:13px 14px;

  display:grid;

  grid-template-columns:
    minmax(170px,1.2fr)
    minmax(190px,1fr)
    minmax(250px,1.6fr)
    auto;

  align-items:center;
  gap:12px;

  border:
    1px solid var(--line);

  border-radius:12px;

  background:
    rgba(255,255,255,.016);

  transition:
    border-color .2s,
    background .2s;
}

.cms-button-row:hover{
  border-color:
    rgba(118,185,0,.20);

  background:
    rgba(118,185,0,.025);
}

.cms-button-main{
  min-width:0;
}

.cms-button-main strong{
  display:block;

  overflow:hidden;

  color:#edf1ed;

  font-size:11px;

  text-overflow:ellipsis;
  white-space:nowrap;
}

.cms-button-main small{
  display:block;

  margin-top:4px;

  color:var(--muted);

  font-size:8px;
}

.cms-button-action{
  min-width:0;

  color:#aeb5ae;

  font-size:9px;
}

.cms-button-action span{
  display:block;

  margin-bottom:3px;

  color:var(--green2);

  font-size:8px;
}

.cms-button-url{
  overflow:hidden;

  color:#879087;

  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;

  font-size:8px;

  text-overflow:ellipsis;
  white-space:nowrap;
}

.cms-button-edit{
  height:31px;

  padding:0 10px;

  border:
    1px solid rgba(118,185,0,.18);

  border-radius:8px;

  background:
    rgba(118,185,0,.05);

  color:var(--green2);

  font-size:9px;
}

.cms-button-edit:hover{
  background:
    rgba(118,185,0,.10);
}


/* Right editor */

.cms-button-editor .cms-link-preview{
  margin-bottom:15px;

  padding:11px;

  border-radius:10px;

  background:
    rgba(118,185,0,.05);

  border:
    1px solid
    rgba(118,185,0,.10);

  color:#bec6be;

  font-size:9px;
  line-height:1.5;
}

.cms-button-editor .cms-link-preview strong{
  color:var(--green2);
}

.cms-button-editor input,
.cms-button-editor select{
  width:100%;
  height:41px;

  padding:0 11px;

  border:
    1px solid var(--line);

  border-radius:10px;

  outline:none;

  background:#090b09;

  color:var(--text);
}

.cms-button-editor input:focus,
.cms-button-editor select:focus{
  border-color:
    rgba(118,185,0,.40);
}


@media(max-width:1050px){

  .cms-button-row{
    grid-template-columns:
      minmax(160px,1fr)
      minmax(160px,1fr)
      auto;
  }

  .cms-button-url{
    grid-column:
      1 / 3;
  }

}


@media(max-width:720px){

  .cms-buttons-shell{
    padding:14px;
  }

  .cms-button-row{
    grid-template-columns:
      1fr auto;

    gap:8px;
  }

  .cms-button-action,
  .cms-button-url{
    grid-column:
      1 / -1;
  }

}



/* ==========================================================
   MOBILE CMS FINAL
========================================================== */

.mobile-nav-button,
.mobile-sidebar-overlay{
  display:none;
}


@media(max-width:800px){

  html,
  body{
    overflow:hidden;
  }


  .cms{
    display:grid;

    grid-template-columns:
      minmax(0,1fr);

    grid-template-rows:
      58px
      minmax(0,1fr);

    height:
      100dvh;
  }


  /* TOPBAR */

  .topbar{
    grid-column:1;

    height:58px;

    padding:
      0 10px;

    gap:8px;
  }


  .mobile-nav-button{
    width:38px;
    height:38px;

    flex:none;

    display:grid;
    place-items:center;

    border:
      1px solid var(--line);

    border-radius:10px;

    background:
      var(--panel);

    color:
      var(--green2);

    font-size:18px;
  }


  .brand{
    min-width:0;
    flex:1;
  }


  .brand-mark{
    width:34px;
    height:34px;

    border-radius:9px;

    font-size:11px;
  }


  .brand strong{
    font-size:11px;
  }


  .brand small{
    display:none;
  }


  .top-actions{
    flex:none;

    gap:5px;
  }


  .top-actions .device{
    display:none;
  }


  .open-site{
    width:36px;
    height:36px;

    padding:0;

    display:grid;
    place-items:center;

    overflow:hidden;

    font-size:0;
  }


  .open-site::after{
    content:"↗";

    font-size:16px;
  }


  .cms-user-button{
    max-width:86px;

    height:34px;

    padding:
      0 8px;

    overflow:hidden;

    text-overflow:ellipsis;
    white-space:nowrap;

    font-size:8px;
  }


  .cms-user-button.logout{
    width:34px;

    padding:0;

    overflow:hidden;

    font-size:0;
  }


  .cms-user-button.logout::after{
    content:"⇥";

    font-size:15px;
  }


  /* SIDEBAR -> DRAWER */

  .sidebar{
    position:fixed;

    z-index:7000;

    top:58px;
    bottom:0;
    left:0;

    width:
      min(320px,86vw);

    padding:
      16px 11px
      30px;

    border-right:
      1px solid var(--line);

    transform:
      translateX(-105%);

    transition:
      transform .25s ease;

    box-shadow:
      25px 0 70px
      rgba(0,0,0,.45);
  }


  .sidebar.mobile-open{
    transform:
      translateX(0);
  }


  .mobile-sidebar-overlay{
    position:fixed;

    z-index:6900;

    inset:
      58px 0 0;

    display:block;

    background:
      rgba(0,0,0,.55);

    backdrop-filter:
      blur(5px);

    opacity:0;

    pointer-events:none;

    transition:
      opacity .22s ease;
  }


  .mobile-sidebar-overlay.visible{
    opacity:1;

    pointer-events:auto;
  }


  .sidebar-title{
    margin:
      4px 8px 10px;
  }


  .site-item,
  .page-item,
  .cms-manager-button{
    min-height:48px;

    padding:
      10px 11px;

    border-radius:11px;
  }


  .site-icon{
    width:34px;
    height:34px;
  }


  .page-item{
    font-size:11px;
  }


  .cms-manager-button{
    margin-top:7px;
  }


  /* WORKSPACE */

  .workspace{
    grid-column:1;
    grid-row:2;

    min-width:0;
    min-height:0;

    overflow:hidden;
  }


  .empty-state{
    padding:30px 20px;
  }


  .preview-shell{
    grid-template-rows:
      46px
      minmax(0,1fr);
  }


  .preview-toolbar{
    height:46px;

    padding:
      0 10px;
  }


  .preview-toolbar strong{
    max-width:
      calc(100vw - 80px);

    overflow:hidden;

    text-overflow:ellipsis;
    white-space:nowrap;

    font-size:10px;
  }


  .preview-toolbar small{
    display:none;
  }


  .preview-stage{
    padding:0;

    overflow:hidden;

    background:#111;
  }


  #preview{
    width:100% !important;
    height:100%;

    min-height:0;

    border-radius:0;

    box-shadow:none;

    transition:none;
  }


  /* EDITOR -> BOTTOM SHEET */

  .editor{
    position:fixed;

    z-index:8000;

    top:auto;
    right:0;
    bottom:0;
    left:0;

    width:100%;

    max-height:
      min(72dvh,620px);

    padding:
      18px 16px
      calc(
        18px
        + env(safe-area-inset-bottom)
      );

    overflow:auto;

    border-left:0;

    border-top:
      1px solid var(--line);

    border-radius:
      18px 18px 0 0;

    background:
      rgba(13,16,13,.99);

    transform:
      translateY(105%);

    transition:
      transform .26s ease;

    box-shadow:
      0 -25px 70px
      rgba(0,0,0,.48);
  }


  .editor.mobile-visible{
    transform:
      translateY(0);
  }


  .editor::before{
    content:"";

    display:block;

    width:42px;
    height:4px;

    margin:
      -5px auto 15px;

    border-radius:99px;

    background:
      rgba(255,255,255,.16);
  }


  .mobile-editor-close{
    position:sticky;

    z-index:3;

    top:-8px;

    float:right;

    width:34px;
    height:34px;

    margin-bottom:
      -34px;

    display:grid;
    place-items:center;

    border:
      1px solid var(--line);

    border-radius:9px;

    background:#090b09;

    color:white;

    font-size:17px;
  }


  .editor-title{
    padding-right:45px;
  }


  textarea{
    min-height:120px;
  }


  .save-button,
  .upload-button,
  .delete-button{
    min-height:46px;
  }


  /* SERVICES */

  .services-shell,
  .cms-buttons-shell,
  .cms-metrika-shell{
    height:100%;

    padding:
      14px 11px
      calc(
        20px
        + env(safe-area-inset-bottom)
      );
  }


  .services-header{
    margin-bottom:15px;

    align-items:flex-start;

    flex-direction:column;
  }


  .services-header h2,
  .cms-buttons-header h2,
  .cms-metrika-card h2{
    font-size:21px;
  }


  .add-service{
    width:100%;
  }


  .services-grid-cms{
    grid-template-columns:
      1fr;
  }


  .cms-service-card{
    padding:13px;
  }


  .cms-service-top{
    gap:11px;
  }


  .cms-service-image{
    width:62px;
    height:62px;
  }


  .cms-service-actions{
    display:grid;

    grid-template-columns:
      1fr auto auto auto;
  }


  .cms-mini-button{
    padding:
      0 8px;
  }


  /* BUTTONS */

  .cms-button-row{
    grid-template-columns:
      minmax(0,1fr)
      auto;

    padding:
      12px;
  }


  .cms-button-action,
  .cms-button-url{
    grid-column:
      1 / -1;
  }


  .cms-button-url{
    padding-top:4px;

    white-space:normal;

    overflow-wrap:anywhere;
  }


  /* METRIKA */

  .cms-metrika-card{
    width:100%;

    margin:0;

    padding:17px;
  }


  .cms-metrika-actions{
    flex-direction:column;
  }


  .cms-metrika-save,
  .cms-metrika-remove{
    width:100%;
  }


  /* USERS MODAL */

  .cms-users-overlay{
    padding:
      8px;
  }


  .cms-users-modal{
    width:100%;
    max-height:
      calc(
        100dvh - 16px
      );

    padding:
      16px;

    border-radius:17px;
  }


  .cms-users-layout{
    grid-template-columns:
      1fr;
  }


  #cmsUsersList{
    min-height:auto;
  }


  .cms-user-row{
    align-items:center;

    flex-wrap:wrap;
  }


  .cms-user-row-info{
    min-width:
      calc(100% - 58px);
  }


  .cms-user-status{
    margin-left:
      52px;
  }


  .cms-create-user{
    padding:15px;
  }


  #newUserSites{
    grid-template-columns:
      1fr;
  }


  .cms-site-check{
    min-height:46px;
  }


  /* LOGIN */

  .cms-auth-screen{
    padding:
      12px;
  }


  .cms-auth-card{
    padding:
      23px 18px;

    border-radius:17px;
  }


  .cms-auth-card h1{
    font-size:21px;
  }


  /* TOAST */

  .toast{
    bottom:
      calc(
        16px
        + env(safe-area-inset-bottom)
      );

    max-width:
      calc(100vw - 24px);

    text-align:center;
  }

}


@media(max-width:390px){

  .brand strong{
    max-width:80px;

    overflow:hidden;

    text-overflow:ellipsis;
    white-space:nowrap;
  }


  .cms-user-button:not(.logout){
    display:none;
  }


  .cms-service-actions{
    grid-template-columns:
      1fr auto auto;
  }


  .cms-service-actions
  .danger{
    grid-column:
      1 / -1;

    width:100%;

    margin-left:0;
  }

}



/* ==========================================================
   SITE FAVICONS
========================================================== */

.site-icon{
  position:relative;

  overflow:hidden;

  background:
    rgba(255,255,255,.035);
}


.site-favicon{
  width:22px;
  height:22px;

  display:block;

  object-fit:contain;

  border-radius:5px;
}


.site-icon-fallback{
  width:100%;
  height:100%;

  place-items:center;

  color:var(--green2);

  font-size:10px;
  font-weight:900;
}


@media(max-width:800px){

  .site-favicon{
    width:24px;
    height:24px;
  }

}



/* CMS BACKUP CENTER CSS START */

.cms-backup-nav{
  width:100%;

  margin-top:18px;

  display:flex;
  align-items:center;
  gap:10px;

  color:#dce1dc;
}

.cms-backup-nav-icon{
  width:31px;
  height:31px;

  display:grid;
  place-items:center;

  flex:none;

  border-radius:8px;

  background:
    rgba(118,185,0,.07);

  border:
    1px solid
    rgba(118,185,0,.12);
}


.cms-backup-overlay{
  position:fixed;

  z-index:6000;

  top:64px;
  right:0;
  bottom:0;
  left:240px;

  overflow:auto;

  background:
    radial-gradient(
      circle at 50% -20%,
      rgba(118,185,0,.08),
      transparent 35%
    ),
    #090b09;

  color:var(--text);
}


.backup-header{
  position:sticky;

  z-index:5;

  top:0;

  min-height:72px;

  padding:13px 20px;

  display:flex;
  align-items:center;
  justify-content:space-between;

  border-bottom:
    1px solid var(--line);

  background:
    rgba(9,11,9,.94);

  backdrop-filter:
    blur(20px);
}


.backup-header > div:first-child{
  display:flex;
  align-items:center;
  gap:12px;
}


.backup-header-icon{
  width:40px;
  height:40px;

  display:grid;
  place-items:center;

  border:
    1px solid
    rgba(118,185,0,.16);

  border-radius:11px;

  background:
    rgba(118,185,0,.07);
}


.backup-header h2{
  margin:0;

  font-size:16px;
}


.backup-header p{
  margin:3px 0 0;

  color:var(--muted);

  font-size:10px;
}


.backup-header-actions{
  display:flex;
  gap:7px;
}


.backup-header-actions button{
  width:36px;
  height:36px;

  display:grid;
  place-items:center;

  border:
    1px solid var(--line);

  border-radius:9px;

  background:var(--panel);

  color:#dce1dc;

  font-size:17px;
}


.backup-header-actions button:hover{
  border-color:
    rgba(118,185,0,.25);

  color:var(--green2);
}


.backup-content{
  width:min(1180px,100%);

  margin:0 auto;

  padding:22px;
}


.backup-loading,
.backup-error{
  padding:50px;

  color:var(--muted);

  text-align:center;
}


.backup-error{
  color:#d66;
}


.backup-summary{
  display:grid;

  grid-template-columns:
    repeat(3,1fr);

  gap:10px;
}


.backup-summary > div{
  min-height:90px;

  padding:16px;

  display:flex;
  flex-direction:column;
  justify-content:center;

  border:
    1px solid var(--line);

  border-radius:14px;

  background:var(--panel);
}


.backup-summary span{
  margin-bottom:6px;

  color:var(--muted);

  font-size:9px;

  text-transform:uppercase;

  letter-spacing:.08em;
}


.backup-summary strong{
  font-size:18px;
}


.backup-create-panel{
  margin-top:14px;

  padding:16px;

  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:15px;

  border:
    1px solid
    rgba(118,185,0,.13);

  border-radius:14px;

  background:
    rgba(118,185,0,.035);
}


.backup-create-panel > div:first-child{
  display:flex;
  flex-direction:column;
  gap:4px;
}


.backup-create-panel strong{
  font-size:12px;
}


.backup-create-panel span{
  color:var(--muted);

  font-size:9px;
}


.backup-create-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:7px;

  justify-content:flex-end;
}


.backup-create-site{
  min-height:36px;

  padding:0 12px;

  border:
    1px solid
    rgba(118,185,0,.20);

  border-radius:9px;

  background:
    rgba(118,185,0,.08);

  color:var(--green2);

  font-size:10px;
  font-weight:700;
}


.backup-create-site:hover{
  background:
    rgba(118,185,0,.14);
}


.backup-create-site:disabled{
  opacity:.5;
}


.backup-history-head{
  margin:
    26px 0 10px;

  display:flex;
  align-items:center;
  justify-content:space-between;
}


.backup-history-head > div{
  display:flex;
  align-items:center;
  gap:9px;
}


.backup-history-head strong{
  font-size:13px;
}


.backup-history-head span{
  color:var(--muted);

  font-size:9px;
}


.backup-filter{
  height:36px;

  padding:0 11px;

  border:
    1px solid var(--line);

  border-radius:9px;

  outline:none;

  background:var(--panel);

  color:var(--text);

  font-size:10px;
}


.backup-list{
  overflow:hidden;

  border:
    1px solid var(--line);

  border-radius:14px;

  background:var(--panel);
}


.backup-row{
  min-height:72px;

  padding:12px 14px;

  display:grid;

  grid-template-columns:
    minmax(250px,1fr)
    145px
    85px
    auto;

  gap:14px;

  align-items:center;

  border-bottom:
    1px solid var(--line);
}


.backup-row:last-child{
  border-bottom:0;
}


.backup-row:hover{
  background:
    rgba(255,255,255,.018);
}


.backup-main{
  min-width:0;
}


.backup-file{
  overflow:hidden;

  margin-bottom:7px;

  color:#dfe5df;

  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;

  font-size:10px;

  text-overflow:ellipsis;
  white-space:nowrap;
}


.backup-row-meta{
  display:flex;
  align-items:center;
  gap:6px;
}


.backup-site-tag,
.backup-safety-tag{
  padding:3px 6px;

  border-radius:6px;

  background:
    rgba(118,185,0,.08);

  color:var(--green2);

  font-size:8px;
  font-weight:700;
}


.backup-site-tag.system{
  background:
    rgba(255,255,255,.05);

  color:#899189;
}


.backup-safety-tag{
  background:
    rgba(217,180,80,.08);

  color:#d8b65f;
}


.backup-date,
.backup-size{
  display:flex;
  flex-direction:column;

  gap:3px;
}


.backup-date strong,
.backup-size strong{
  font-size:10px;
}


.backup-date small,
.backup-size small{
  color:var(--muted);

  font-size:8px;
}


.backup-actions{
  display:flex;
  justify-content:flex-end;

  gap:6px;
}


.backup-actions button{
  min-height:33px;

  padding:0 9px;

  border:
    1px solid var(--line);

  border-radius:8px;

  background:#101310;

  color:#aab1aa;

  font-size:9px;
}


.backup-actions
.backup-restore{
  border-color:
    rgba(118,185,0,.18);

  background:
    rgba(118,185,0,.05);

  color:var(--green2);
}


.backup-actions
.backup-delete{
  color:#c86b6b;
}


.backup-actions button:hover{
  background:#171b17;
}


.backup-actions button:disabled{
  opacity:.45;
}


.backup-readonly{
  color:#626862;

  font-size:9px;
}


.backup-empty{
  min-height:230px;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  gap:6px;

  text-align:center;
}


.backup-empty > div{
  margin-bottom:5px;

  font-size:27px;
}


.backup-empty strong{
  font-size:13px;
}


.backup-empty span{
  color:var(--muted);

  font-size:9px;
}


@media(max-width:1000px){

  .backup-row{
    grid-template-columns:
      minmax(220px,1fr)
      130px
      auto;
  }

  .backup-size{
    display:none;
  }

}


@media(max-width:800px){

  .cms-backup-overlay{
    top:58px;
    left:0;

    z-index:6500;
  }


  .backup-header{
    min-height:62px;

    padding:10px 12px;
  }


  .backup-header-icon{
    width:36px;
    height:36px;
  }


  .backup-content{
    padding:
      12px
      10px
      calc(
        22px
        + env(safe-area-inset-bottom)
      );
  }


  .backup-summary{
    grid-template-columns:
      1fr 1fr;
  }


  .backup-summary > div{
    min-height:76px;

    padding:12px;
  }


  .backup-summary > div:last-child{
    grid-column:
      1 / -1;
  }


  .backup-summary strong{
    font-size:15px;
  }


  .backup-create-panel{
    align-items:stretch;

    flex-direction:column;
  }


  .backup-create-buttons{
    display:grid;

    grid-template-columns:
      1fr;
  }


  .backup-create-site{
    min-height:42px;
  }


  .backup-history-head{
    align-items:stretch;

    flex-direction:column;

    gap:10px;
  }


  .backup-filter{
    width:100%;

    height:42px;
  }


  .backup-list{
    border:0;

    overflow:visible;

    background:transparent;
  }


  .backup-row{
    margin-bottom:8px;

    padding:13px;

    grid-template-columns:
      1fr auto;

    gap:11px;

    border:
      1px solid var(--line);

    border-radius:12px;

    background:var(--panel);
  }


  .backup-main{
    grid-column:
      1 / -1;
  }


  .backup-date{
    grid-column:1;
  }


  .backup-size{
    display:flex;

    grid-column:2;

    text-align:right;
  }


  .backup-actions{
    grid-column:
      1 / -1;

    display:grid;

    grid-template-columns:
      1fr auto;
  }


  .backup-actions button{
    min-height:40px;
  }


  .backup-file{
    white-space:normal;

    overflow-wrap:anywhere;
  }

}

/* CMS BACKUP CENTER CSS END */


/* ==========================================================
   CMS SOCIAL / OG MANAGER START
   ========================================================== */

.cms-social-shell{
    width:100%;
    min-height:100%;
    padding:28px;
    overflow:auto;
}

.cms-social-shell.hidden{
    display:none;
}

.cms-social-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
    margin-bottom:24px;
}

.cms-social-head h2{
    margin:5px 0 7px;
    font-size:28px;
    letter-spacing:-.04em;
}

.cms-social-head p{
    margin:0;
    opacity:.65;
    max-width:620px;
    line-height:1.55;
}

.cms-social-kicker{
    font-size:11px;
    font-weight:800;
    letter-spacing:.14em;
    opacity:.45;
}

.cms-social-grid{
    display:grid;
    grid-template-columns:
        repeat(2,minmax(0,1fr));
    gap:18px;
}

.cms-social-card{
    border:1px solid
        rgba(255,255,255,.08);
    background:
        rgba(255,255,255,.035);
    border-radius:22px;
    padding:20px;
    min-width:0;
}

.cms-social-card-title{
    font-size:15px;
    font-weight:750;
    margin-bottom:15px;
}

.cms-social-preview{
    aspect-ratio:1/1;
    max-height:430px;
    border-radius:18px;
    overflow:hidden;
    background:
        rgba(255,255,255,.04);
    display:flex;
    align-items:center;
    justify-content:center;
}

.cms-social-preview img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.cms-social-no-image{
    opacity:.45;
}

.cms-social-preview-text{
    padding-top:16px;
}

.cms-social-preview-text strong{
    display:block;
    font-size:17px;
    margin-bottom:7px;
}

.cms-social-preview-text p{
    margin:0 0 9px;
    opacity:.65;
    line-height:1.5;
}

.cms-social-preview-text small{
    opacity:.4;
}

.cms-social-help{
    margin:0 0 18px;
    line-height:1.55;
    opacity:.62;
    font-size:13px;
}

.cms-social-drop{
    min-height:210px;
    border:1px dashed
        rgba(255,255,255,.18);
    border-radius:18px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    gap:7px;
    transition:.2s ease;
}

.cms-social-drop:hover{
    background:
        rgba(255,255,255,.04);
    border-color:
        rgba(255,255,255,.32);
}

.cms-social-drop input{
    display:none;
}

.cms-social-upload-icon{
    width:46px;
    height:46px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:
        rgba(255,255,255,.08);
    font-size:22px;
    margin-bottom:5px;
}

.cms-social-drop small{
    opacity:.45;
}

.cms-social-selected{
    margin:13px 0;
    font-size:12px;
    opacity:.55;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.cms-social-primary,
.cms-social-vk{
    width:100%;
    min-height:46px;
    border:0;
    border-radius:13px;
    font-weight:750;
    cursor:pointer;
    transition:.2s ease;
}

.cms-social-primary{
    background:#fff;
    color:#111;
}

.cms-social-primary:hover:not(:disabled){
    transform:translateY(-1px);
}

.cms-social-primary:disabled,
.cms-social-vk:disabled{
    opacity:.35;
    cursor:not-allowed;
}

.cms-social-vk{
    background:#2787f5;
    color:#fff;
    margin-top:15px;
}

.cms-social-vk:hover:not(:disabled){
    filter:brightness(1.08);
}

.cms-social-url{
    padding:13px 15px;
    border-radius:13px;
    background:
        rgba(255,255,255,.045);
}

.cms-social-url span{
    display:block;
    font-size:10px;
    opacity:.4;
    margin-bottom:5px;
}

.cms-social-url strong{
    display:block;
    font-size:13px;
    overflow-wrap:anywhere;
}

.cms-social-result{
    margin-top:13px;
    padding:12px 14px;
    border-radius:12px;
    font-size:12px;
    line-height:1.45;
    background:
        rgba(255,255,255,.04);
    opacity:.75;
}

.cms-social-result.success{
    background:
        rgba(42,190,105,.12);
    opacity:1;
}

.cms-social-result.error{
    background:
        rgba(255,75,75,.12);
    opacity:1;
}

.cms-social-badge{
    white-space:nowrap;
    padding:8px 11px;
    border-radius:999px;
    font-size:11px;
    font-weight:700;
}

.cms-social-badge.ok{
    background:
        rgba(42,190,105,.13);
}

.cms-social-badge.warn{
    background:
        rgba(255,174,0,.13);
}

.cms-social-tech{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.cms-social-tech > div{
    padding:12px 14px;
    background:
        rgba(255,255,255,.035);
    border-radius:12px;
}

.cms-social-tech span{
    display:block;
    font-size:10px;
    opacity:.4;
    margin-bottom:6px;
}

.cms-social-tech code{
    display:block;
    font-size:11px;
    white-space:normal;
    overflow-wrap:anywhere;
    opacity:.8;
}

.cms-social-loading{
    padding:50px 10px;
    text-align:center;
    opacity:.55;
}


@media(max-width:900px){

    .cms-social-shell{
        padding:18px;
    }

    .cms-social-grid{
        grid-template-columns:1fr;
    }

    .cms-social-head{
        flex-direction:column;
    }

    .cms-social-preview{
        max-height:none;
    }
}

/* ==========================================================
   CMS SOCIAL / OG MANAGER END
   ========================================================== */



/* ==========================================================
   CMS CACHE MANAGER
   ========================================================== */

.cms-cache-master{
    grid-column:
        1 / -1;
}

.cms-cache-actions{
    display:grid;
    grid-template-columns:
        repeat(2,minmax(0,1fr));
    gap:12px;
}

.cms-cache-button{
    min-height:82px;
    border:
        1px solid
        rgba(255,255,255,.08);
    border-radius:16px;
    background:
        rgba(255,255,255,.045);
    color:inherit;
    padding:15px;
    display:flex;
    align-items:center;
    gap:13px;
    text-align:left;
    cursor:pointer;
    transition:
        transform .2s ease,
        background .2s ease,
        border-color .2s ease;
}

.cms-cache-button:hover{
    transform:
        translateY(-2px);
    background:
        rgba(255,255,255,.075);
    border-color:
        rgba(255,255,255,.14);
}

.cms-cache-button > span{
    width:42px;
    height:42px;
    flex:0 0 42px;
    display:grid;
    place-items:center;
    border-radius:12px;
    background:
        rgba(255,255,255,.07);
    font-size:20px;
}

.cms-cache-button strong{
    display:block;
    font-size:13px;
    margin-bottom:4px;
}

.cms-cache-button small{
    display:block;
    opacity:.48;
    font-size:11px;
}

.cms-cache-button--danger{
    background:
        rgba(255,130,30,.07);
    border-color:
        rgba(255,150,40,.13);
}

.cms-cache-button--danger:hover{
    background:
        rgba(255,130,30,.12);
}

.cms-cache-button:disabled{
    opacity:.4;
    cursor:wait;
    transform:none;
}


@media(max-width:700px){

    .cms-cache-actions{
        grid-template-columns:1fr;
    }

}

/* ==========================================================
   CMS CACHE MANAGER END
   ========================================================== */



/* ==========================================================
   SEO CACHE PANEL V2
   ========================================================== */

#socialCachePanelV2 {
    grid-column: 1 / -1;
}

#socialCachePanelV2 .cms-cache-actions {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 12px;
}

#socialCachePanelV2 .cms-cache-button {
    appearance: none;
    min-height: 88px;

    display: flex;
    align-items: center;
    gap: 14px;

    padding: 15px;

    border:
        1px solid
        rgba(255,255,255,.09);

    border-radius: 16px;

    background:
        rgba(255,255,255,.045);

    color: inherit;

    text-align: left;

    cursor: pointer;

    transition:
        transform .18s ease,
        background .18s ease,
        border-color .18s ease;
}

#socialCachePanelV2 .cms-cache-button:hover {
    transform: translateY(-2px);

    background:
        rgba(255,255,255,.075);

    border-color:
        rgba(255,255,255,.16);
}

#socialCachePanelV2 .cms-cache-button > span {
    width: 44px;
    height: 44px;

    flex: 0 0 44px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    background:
        rgba(255,255,255,.07);

    font-size: 16px;
    font-weight: 800;
}

#socialCachePanelV2 .cms-cache-button strong {
    display: block;

    margin-bottom: 4px;

    font-size: 13px;
}

#socialCachePanelV2 .cms-cache-button small {
    display: block;

    font-size: 11px;

    opacity: .48;
}

#socialCachePanelV2 .cms-cache-button--vk {
    border-color:
        rgba(39,135,245,.25);

    background:
        rgba(39,135,245,.08);
}

#socialCachePanelV2 .cms-cache-button--vk > span {
    background:
        rgba(39,135,245,.18);

    color: #69aaf8;
}

#socialCachePanelV2 .cms-cache-button--danger {
    border-color:
        rgba(255,155,70,.20);

    background:
        rgba(255,135,40,.07);
}

#socialCachePanelV2 .cms-cache-button--danger > span {
    background:
        rgba(255,135,40,.12);
}

#socialCachePanelV2 .cms-cache-button:disabled {
    opacity: .4;
    cursor: wait;
    transform: none;
}


@media(max-width: 900px) {

    #socialCachePanelV2 .cms-cache-actions {
        grid-template-columns: 1fr;
    }

}

/* ==========================================================
   SEO CACHE PANEL V2 END
   ========================================================== */

