*{box-sizing:border-box}

:root{
  --bg:#06172f;
  --bg2:#082b5c;
  --panel:rgba(10,43,86,.82);
  --panel2:rgba(7,32,68,.92);
  --line:rgba(71,190,255,.22);
  --line2:rgba(54,216,255,.55);
  --blue:#168dff;
  --cyan:#36d8ff;
  --electric:#086cff;
  --text:#f4fbff;
  --muted:#91b9d9;
  --green:#4dffba;
}

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

body{
  background:
    radial-gradient(circle at 20% 5%,rgba(0,132,255,.30),transparent 32%),
    radial-gradient(circle at 90% 85%,rgba(34,209,255,.18),transparent 30%),
    linear-gradient(135deg,#06172f,#08295a 55%,#061c3b);
}

button,input{font:inherit}
button{cursor:pointer}

.eyebrow{
  color:var(--cyan);
  letter-spacing:2.5px;
  font-size:11px;
  font-weight:800;
}

.online-dot{
  width:8px;
  height:8px;
  display:inline-block;
  border-radius:50%;
  background:var(--green);
  box-shadow:0 0 12px var(--green);
}

/* LOGIN */

.login-body{
  overflow-x:hidden;
}

.bg-grid{
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.28;
  background-image:
    linear-gradient(rgba(64,179,255,.08) 1px,transparent 1px),
    linear-gradient(90deg,rgba(64,179,255,.08) 1px,transparent 1px);
  background-size:42px 42px;
}

.glow{
  position:fixed;
  border-radius:50%;
  filter:blur(100px);
  pointer-events:none;
}

.glow-a{
  width:420px;
  height:420px;
  left:-100px;
  top:-80px;
  background:rgba(0,124,255,.34);
}

.glow-b{
  width:520px;
  height:520px;
  right:-160px;
  bottom:-150px;
  background:rgba(35,215,255,.22);
}

.login-layout{
  min-height:100vh;
  max-width:1280px;
  margin:auto;
  padding:60px;
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:80px;
  align-items:center;
  position:relative;
  z-index:2;
}

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

.brand-h,.mini-h{
  display:grid;
  place-items:center;
  font-weight:1000;
  font-style:italic;
  color:#04162d;
  background:linear-gradient(145deg,#fff,#3ad9ff 45%,#0a65ff);
  border:1px solid rgba(118,224,255,.8);
  box-shadow:
    0 0 25px rgba(32,184,255,.55),
    inset 0 0 20px rgba(255,255,255,.45);
  transform:skewX(-9deg);
}

.brand-h{
  width:80px;
  height:80px;
  font-size:50px;
  border-radius:18px;
}

.brand-name{
  font-size:45px;
  line-height:.9;
  font-weight:900;
  letter-spacing:3px;
  font-style:italic;
}

.brand-name span,
.sidebar-logo strong span{
  color:var(--cyan);
  text-shadow:0 0 18px rgba(54,216,255,.8);
}

.brand-sub{
  margin-top:10px;
  color:#a9dfff;
  font-weight:700;
  letter-spacing:8px;
  font-size:12px;
}

.login-copy{
  margin-top:80px;
}

.login-copy h1{
  max-width:650px;
  font-size:clamp(44px,6vw,78px);
  line-height:.98;
  margin:15px 0 25px;
  letter-spacing:-4px;
}

.login-copy h1 span,
.hero h2 span{
  display:block;
  color:var(--cyan);
  text-shadow:0 0 28px rgba(54,216,255,.3);
}

.login-copy p{
  max-width:600px;
  color:#a4c8e6;
  line-height:1.8;
  font-size:16px;
}

.feature-row{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:40px;
}

.feature-row div{
  min-width:150px;
  padding:16px 18px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(14,57,112,.5);
  box-shadow:inset 0 0 24px rgba(0,132,255,.06);
}

.feature-row strong{
  display:block;
  color:#dff8ff;
  font-size:12px;
  letter-spacing:1px;
}

.feature-row small{
  display:block;
  color:var(--muted);
  margin-top:5px;
}

.login-card{
  position:relative;
  overflow:hidden;
  padding:42px;
  border-radius:24px;
  border:1px solid rgba(68,196,255,.38);
  background:
    linear-gradient(145deg,rgba(14,61,120,.92),rgba(5,29,65,.94));
  box-shadow:
    0 30px 80px rgba(0,0,0,.32),
    0 0 45px rgba(0,132,255,.16),
    inset 0 1px rgba(255,255,255,.08);
}

.card-line{
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:2px;
  background:linear-gradient(90deg,transparent,var(--cyan),transparent);
  box-shadow:0 0 20px var(--cyan);
}

.login-top{
  display:flex;
  gap:10px;
  align-items:center;
  color:#9edcff;
  font-size:10px;
  font-weight:800;
  letter-spacing:2px;
}

.login-card h2{
  margin:25px 0 8px;
  font-size:36px;
}

.muted{
  color:var(--muted);
}

.login-card form{
  margin-top:34px;
}

.login-card label{
  display:block;
  color:#b9dcf7;
  font-size:11px;
  letter-spacing:1.5px;
  font-weight:800;
  margin-top:20px;
}

.login-card input{
  width:100%;
  margin-top:9px;
  padding:16px;
  border-radius:12px;
  border:1px solid rgba(91,184,255,.28);
  outline:none;
  color:white;
  background:rgba(2,22,51,.65);
  transition:.2s;
}

.login-card input:focus{
  border-color:var(--cyan);
  box-shadow:0 0 0 3px rgba(54,216,255,.10),0 0 22px rgba(54,216,255,.12);
}

.password-box{
  position:relative;
}

.password-box input{
  padding-right:78px;
}

.show-pass{
  position:absolute;
  right:12px;
  top:20px;
  border:0;
  background:transparent;
  color:var(--cyan);
  font-size:10px;
  font-weight:900;
  letter-spacing:1px;
}

.primary-btn{
  width:100%;
  margin-top:25px;
  padding:17px 20px;
  border:0;
  border-radius:12px;
  color:white;
  font-weight:900;
  letter-spacing:1px;
  display:flex;
  justify-content:space-between;
  background:linear-gradient(90deg,#096cff,#20c8ff);
  box-shadow:0 10px 30px rgba(0,123,255,.35),0 0 25px rgba(32,200,255,.18);
}

.primary-btn:hover{
  filter:brightness(1.1);
}

.primary-btn:disabled{
  opacity:.6;
  cursor:not-allowed;
}

.login-error{
  min-height:20px;
  margin-top:15px;
  color:#ff9eb6;
  font-size:13px;
}

.login-bottom{
  display:flex;
  align-items:center;
  gap:9px;
  margin-top:28px;
  padding-top:22px;
  border-top:1px solid var(--line);
  color:#75afd8;
  font-size:9px;
  letter-spacing:1.5px;
}

/* APP LAYOUT */

.app-body{
  overflow-x:hidden;
}

.app-shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:270px 1fr;
}

.app-glow{
  position:fixed;
  border-radius:50%;
  filter:blur(120px);
  pointer-events:none;
}

.glow-left{
  width:500px;
  height:500px;
  left:150px;
  top:-300px;
  background:rgba(0,132,255,.22);
}

.glow-right{
  width:500px;
  height:500px;
  right:-250px;
  bottom:-200px;
  background:rgba(25,213,255,.14);
}

/* SIDEBAR */

.sidebar{
  height:100vh;
  position:sticky;
  top:0;
  z-index:20;
  padding:26px 18px;
  display:flex;
  flex-direction:column;
  border-right:1px solid rgba(67,180,255,.2);
  background:linear-gradient(
    180deg,
    rgba(8,39,82,.97),
    rgba(4,24,55,.97)
  );
}

.sidebar-logo{
  padding:0 8px 28px;
  display:flex;
  gap:13px;
  align-items:center;
  border-bottom:1px solid var(--line);
}

.mini-h{
  width:46px;
  height:46px;
  border-radius:11px;
  font-size:28px;
}

.sidebar-logo strong{
  display:block;
  font-style:italic;
  font-size:21px;
  letter-spacing:2px;
}

.sidebar-logo small{
  color:#91c9ee;
  font-size:8px;
  letter-spacing:4px;
}

.sidebar-nav{
  padding-top:25px;
}

.nav-label{
  padding:0 12px 10px;
  color:#568ab4;
  font-size:9px;
  font-weight:900;
  letter-spacing:2px;
}

.nav-label.second{
  margin-top:25px;
}

.nav-link{
  margin:4px 0;
  padding:13px 14px;
  display:flex;
  align-items:center;
  gap:13px;
  text-decoration:none;
  color:#8db7d8;
  border:1px solid transparent;
  border-radius:11px;
  transition:.2s;
}

.nav-link span{
  width:23px;
  color:#60bfff;
  font-size:18px;
  text-align:center;
}

.nav-link b{
  font-size:13px;
  font-weight:650;
}

.nav-link:hover{
  color:white;
  border-color:rgba(54,216,255,.2);
  background:rgba(19,100,181,.22);
}

.nav-link.active{
  color:white;
  border-color:rgba(54,216,255,.35);
  background:linear-gradient(
    90deg,
    rgba(9,108,255,.35),
    rgba(32,198,255,.08)
  );
  box-shadow:
    inset 3px 0 var(--cyan),
    0 0 22px rgba(0,132,255,.08);
}

.sidebar-bottom{
  margin-top:auto;
  padding-top:20px;
  border-top:1px solid var(--line);
}

.server-state{
  padding:13px;
  display:flex;
  gap:10px;
  align-items:center;
  border-radius:12px;
  background:rgba(11,71,132,.28);
}

.server-state strong,
.server-state small{
  display:block;
}

.server-state strong{
  font-size:10px;
}

.server-state small{
  color:#6fa8d1;
  margin-top:4px;
  font-size:9px;
}


/* TOPBAR */

.main-content{
  position:relative;
  z-index:2;
  min-width:0;
  padding:28px 34px 45px;
}

.topbar{
  min-height:70px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:25px;
}

.topbar h1{
  margin:5px 0 0;
  font-size:29px;
}

.topbar-left{
  display:flex;
  align-items:center;
  gap:14px;
}

.menu-button{
  display:none;
  width:42px;
  height:42px;
  color:white;
  border:1px solid var(--line);
  border-radius:10px;
  background:rgba(10,55,108,.7);
}

.profile{
  display:flex;
  align-items:center;
  gap:12px;
}

.profile-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:12px;
  color:#dffaff;
  font-size:12px;
  font-weight:900;
  background:linear-gradient(145deg,#0875ef,#24cfff);
  box-shadow:0 0 22px rgba(30,187,255,.22);
}

.profile-info strong,
.profile-info small{
  display:block;
}

.profile-info strong{
  font-size:12px;
}

.profile-info small{
  margin-top:3px;
  color:#73b7e5;
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:1px;
}

.outline-btn{
  padding:10px 14px;
  color:#a9dfff;
  border:1px solid rgba(80,184,255,.25);
  border-radius:9px;
  background:rgba(10,58,115,.45);
}

/* HERO */

.hero{
  min-height:285px;
  overflow:hidden;
  position:relative;
  padding:42px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border:1px solid rgba(70,195,255,.3);
  border-radius:22px;
  background:linear-gradient(
    115deg,
    rgba(12,70,139,.92),
    rgba(7,38,81,.9)
  );
  box-shadow:
    0 20px 55px rgba(0,25,68,.25),
    inset 0 1px rgba(255,255,255,.06);
}

.hero:before{
  content:"";
  position:absolute;
  inset:0;
  opacity:.22;
  background-image:
    linear-gradient(
      rgba(74,189,255,.12) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(74,189,255,.12) 1px,
      transparent 1px
    );
  background-size:35px 35px;
}

.hero-content{
  position:relative;
  z-index:2;
  max-width:720px;
}

.hero h2{
  margin:12px 0 17px;
  font-size:clamp(34px,4vw,56px);
  line-height:1.02;
  letter-spacing:-2.5px;
}

.hero p{
  max-width:650px;
  color:#a8cce8;
  line-height:1.7;
}

.hero-tags{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-top:25px;
}

.hero-tags span{
  padding:8px 11px;
  color:#8bdcff;
  font-size:8px;
  font-weight:800;
  letter-spacing:1px;
  border:1px solid rgba(62,200,255,.25);
  border-radius:8px;
  background:rgba(5,39,83,.48);
}

.hero-visual{
  width:250px;
  height:250px;
  position:relative;
  flex:0 0 250px;
  display:grid;
  place-items:center;
}

.hero-h{
  width:100px;
  height:100px;
  z-index:5;
  display:grid;
  place-items:center;
  border-radius:25px;
  color:#041a38;
  font-size:65px;
  font-weight:1000;
  font-style:italic;
  transform:skewX(-8deg);
  background:linear-gradient(
    145deg,
    #fff,
    #3be0ff 45%,
    #086cff
  );
  box-shadow:
    0 0 45px rgba(41,207,255,.55),
    inset 0 0 20px rgba(255,255,255,.4);
}

.ring{
  position:absolute;
  border-radius:50%;
  border:1px solid rgba(58,210,255,.3);
}

.ring-one{
  width:150px;
  height:150px;
  box-shadow:0 0 30px rgba(28,177,255,.12);
}

.ring-two{
  width:200px;
  height:200px;
  border-style:dashed;
}

.ring-three{
  width:245px;
  height:245px;
  opacity:.5;
}


/* STATS */

.stats{
  margin-top:18px;
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:12px;
}

.stat-card{
  min-width:0;
  padding:20px;
  position:relative;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:16px;
  background:linear-gradient(
    145deg,
    rgba(12,60,117,.82),
    rgba(7,34,73,.82)
  );
  box-shadow:
    inset 0 1px rgba(255,255,255,.04),
    0 12px 30px rgba(0,28,70,.12);
}

.stat-card:after{
  content:"";
  position:absolute;
  width:80px;
  height:80px;
  right:-35px;
  bottom:-35px;
  border-radius:50%;
  background:rgba(39,202,255,.13);
  filter:blur(5px);
}

.stat-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.stat-top span{
  color:#8ec8ed;
  font-size:9px;
  font-weight:900;
  letter-spacing:1.4px;
}

.stat-top i{
  color:rgba(96,200,255,.35);
  font-size:9px;
  font-style:normal;
}

.stat-card > strong{
  display:block;
  margin-top:14px;
  font-size:31px;
  line-height:1;
}

.stat-card > small{
  display:block;
  margin-top:8px;
  color:#6fa5cd;
  font-size:10px;
}

.meter{
  height:4px;
  margin-top:13px;
  overflow:hidden;
  border-radius:20px;
  background:rgba(255,255,255,.07);
}

.meter div{
  width:0;
  height:100%;
  border-radius:20px;
  background:linear-gradient(90deg,#0878ff,#37dcff);
  box-shadow:0 0 10px var(--cyan);
  transition:.5s;
}


/* PANELS */

.dashboard-columns{
  margin-top:18px;
  display:grid;
  grid-template-columns:1.4fr .8fr;
  gap:18px;
}

.panel{
  padding:25px;
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(
    145deg,
    rgba(10,49,99,.83),
    rgba(6,31,67,.86)
  );
  box-shadow:
    inset 0 1px rgba(255,255,255,.04),
    0 15px 40px rgba(0,27,70,.12);
}

.panel-title{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  margin-bottom:20px;
}

.panel-title h3{
  margin:5px 0 0;
  font-size:20px;
}

.panel-chip,
.live-badge{
  padding:7px 10px;
  border:1px solid rgba(61,202,255,.25);
  border-radius:8px;
  color:#80d9ff;
  background:rgba(10,89,161,.25);
  font-size:8px;
  font-weight:900;
  letter-spacing:1px;
}

.live-badge{
  display:flex;
  align-items:center;
  gap:7px;
}


/* QUICK ACTION */

.quick-actions{
  display:grid;
  gap:10px;
}

.quick-actions button{
  width:100%;
  padding:16px;
  display:grid;
  grid-template-columns:42px 1fr 25px;
  align-items:center;
  gap:13px;
  text-align:left;
  color:white;
  border:1px solid rgba(73,180,255,.16);
  border-radius:13px;
  background:rgba(7,48,96,.58);
  transition:.2s;
}

.quick-actions button:hover{
  transform:translateX(3px);
  border-color:rgba(54,216,255,.45);
  background:rgba(11,76,145,.68);
  box-shadow:0 0 25px rgba(0,153,255,.08);
}

.quick-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:10px;
  color:#a9efff;
  font-size:20px;
  background:linear-gradient(
    145deg,
    rgba(8,111,255,.6),
    rgba(35,202,255,.25)
  );
  border:1px solid rgba(67,207,255,.25);
}

.quick-actions strong,
.quick-actions small{
  display:block;
}

.quick-actions strong{
  font-size:12px;
}

.quick-actions small{
  margin-top:5px;
  color:#79a9ce;
  font-size:10px;
}

.quick-actions i{
  color:var(--cyan);
  font-style:normal;
}


/* SYSTEM STATUS */

.service-list{
  display:grid;
  gap:10px;
}

.service-list div{
  padding:14px 15px;
  display:flex;
  justify-content:space-between;
  gap:20px;
  border:1px solid rgba(69,179,255,.14);
  border-radius:11px;
  background:rgba(5,41,83,.48);
}

.service-list span{
  color:#91bddd;
  font-size:11px;
}

.service-list strong{
  color:var(--green);
  font-size:9px;
  letter-spacing:1px;
}


/* TOAST */

.toast{
  position:fixed;
  right:25px;
  bottom:25px;
  z-index:100;
  max-width:340px;
  padding:14px 18px;
  opacity:0;
  pointer-events:none;
  transform:translateY(15px);
  color:#dff8ff;
  border:1px solid rgba(55,213,255,.4);
  border-radius:11px;
  background:rgba(6,46,94,.96);
  box-shadow:0 15px 45px rgba(0,0,0,.3);
  transition:.25s;
}

.toast.show{
  opacity:1;
  transform:translateY(0);
}


/* RESPONSIVE */

.mobile-overlay{
  display:none;
}

@media(max-width:1200px){
  .stats{
    grid-template-columns:repeat(3,1fr);
  }
}

@media(max-width:900px){

  .login-layout{
    padding:35px 22px;
    grid-template-columns:1fr;
    gap:35px;
  }

  .login-brand{
    padding-top:15px;
  }

  .login-copy{
    margin-top:45px;
  }

  .feature-row{
    display:none;
  }

  .app-shell{
    display:block;
  }

  .sidebar{
    width:270px;
    position:fixed;
    left:-285px;
    top:0;
    transition:.25s;
    box-shadow:30px 0 70px rgba(0,0,0,.35);
  }

  .sidebar.open{
    left:0;
  }

  .mobile-overlay{
    position:fixed;
    inset:0;
    z-index:15;
    background:rgba(0,13,35,.62);
    backdrop-filter:blur(4px);
  }

  .mobile-overlay.show{
    display:block;
  }

  .menu-button{
    display:block;
  }

  .main-content{
    padding:22px;
  }

  .hero{
    padding:32px;
  }

  .hero-visual{
    width:180px;
    height:180px;
    flex-basis:180px;
  }

  .ring-one{
    width:110px;
    height:110px;
  }

  .ring-two{
    width:150px;
    height:150px;
  }

  .ring-three{
    width:180px;
    height:180px;
  }

  .dashboard-columns{
    grid-template-columns:1fr;
  }
}

@media(max-width:650px){

  .login-layout{
    padding:24px 16px;
  }

  .brand-h{
    width:58px;
    height:58px;
    font-size:36px;
  }

  .brand-name{
    font-size:32px;
  }

  .brand-sub{
    letter-spacing:5px;
  }

  .login-copy h1{
    font-size:45px;
    letter-spacing:-2px;
  }

  .login-card{
    padding:27px 22px;
  }

  .main-content{
    padding:17px;
  }

  .profile-info{
    display:none;
  }

  .outline-btn{
    padding:9px 10px;
    font-size:11px;
  }

  .hero{
    min-height:auto;
    padding:27px 23px;
  }

  .hero h2{
    font-size:36px;
  }

  .hero-visual{
    display:none;
  }

  .stats{
    grid-template-columns:repeat(2,1fr);
  }

  .stat-card{
    padding:17px;
  }

  .stat-card > strong{
    font-size:27px;
  }

  .panel{
    padding:19px;
  }
}

@media(max-width:390px){
  .stats{
    grid-template-columns:1fr;
  }
}


/* =========================================
   FINAL HATORI BRANDING
   ========================================= */

.final-logo-wrap{
  display:block;
}

.final-logo{
  display:block;
  width:min(450px,100%);
  height:auto;
  object-fit:contain;
  object-position:left center;
  filter:
    drop-shadow(0 0 12px rgba(0,145,255,.30))
    drop-shadow(0 0 30px rgba(38,214,255,.13));
}

.final-sidebar-logo{
  min-height:68px;
  display:flex;
  align-items:center;
  padding-left:4px;
  padding-right:4px;
}

.final-sidebar-logo img{
  display:block;
  width:100%;
  max-width:215px;
  height:auto;
  object-fit:contain;
  object-position:left center;
  filter:
    drop-shadow(0 0 10px rgba(0,145,255,.25));
}

@media(max-width:650px){
  .final-logo{
    max-width:310px;
  }
}


/* ========================================
   DOMAINS V1
   ======================================== */

.domains-hero{
  padding:28px 30px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:25px;
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(
    120deg,
    rgba(12,76,150,.84),
    rgba(6,40,84,.88)
  );
}

.domains-hero h2{
  margin:7px 0;
  font-size:31px;
}

.domains-hero h2 span{
  color:var(--cyan);
}

.domains-hero p{
  margin:0;
  color:var(--muted);
}

.domain-add-btn{
  padding:14px 19px;
  white-space:nowrap;
  color:white;
  font-size:11px;
  font-weight:900;
  letter-spacing:1px;
  border:1px solid rgba(95,222,255,.5);
  border-radius:11px;
  background:linear-gradient(
    90deg,
    #086fff,
    #25caff
  );
  box-shadow:0 8px 25px rgba(0,128,255,.25);
}

.domain-add-btn span{
  margin-right:5px;
  font-size:16px;
}

.domain-toolbar{
  margin-top:15px;
  padding:13px;
  display:grid;
  grid-template-columns:1fr 190px 170px;
  gap:10px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(7,43,87,.72);
}

.domain-search{
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 13px;
  border:1px solid rgba(74,185,255,.2);
  border-radius:10px;
  background:rgba(3,28,61,.62);
}

.domain-search span{
  color:var(--cyan);
  font-size:20px;
}

.domain-search input{
  width:100%;
  padding:12px 0;
  border:0;
  outline:0;
  color:white;
  background:transparent;
}

.domain-search input::placeholder{
  color:#628fb4;
}

.domain-toolbar select{
  width:100%;
  padding:12px;
  outline:none;
  color:white;
  border:1px solid rgba(76,183,255,.25);
  border-radius:10px;
  background:#082b58;
}

.domain-summary{
  margin-top:15px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}

.domain-summary div{
  padding:16px 18px;
  border:1px solid var(--line);
  border-radius:13px;
  background:rgba(8,50,100,.7);
}

.domain-summary span,
.domain-summary strong{
  display:block;
}

.domain-summary span{
  color:#79b4dc;
  font-size:8px;
  font-weight:900;
  letter-spacing:1.4px;
}

.domain-summary strong{
  margin-top:6px;
  font-size:23px;
}


/* DOMAIN TABLE */

.domain-table-panel{
  margin-top:15px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(6,38,80,.78);
}

.domain-table-wrap{
  overflow:auto;
}

.domain-table{
  width:100%;
  min-width:1100px;
  border-collapse:collapse;
}

.domain-table th{
  padding:15px 14px;
  text-align:left;
  color:#71b8e5;
  font-size:8px;
  letter-spacing:1.3px;
  border-bottom:1px solid var(--line);
  background:rgba(9,61,118,.55);
}

.domain-table td{
  padding:15px 14px;
  color:#a9cce6;
  font-size:11px;
  border-bottom:1px solid rgba(72,174,238,.1);
}

.domain-table tbody tr{
  transition:.15s;
}

.domain-table tbody tr:hover{
  background:rgba(13,91,166,.2);
}

.domain-name-cell{
  color:#e8faff !important;
  font-weight:800;
}

.domain-name-cell button{
  padding:0;
  border:0;
  color:#dff9ff;
  font-weight:800;
  background:transparent;
}

.domain-name-cell button:hover{
  color:var(--cyan);
}

.domain-badge{
  display:inline-block;
  padding:5px 8px;
  border-radius:7px;
  color:#8ee8ff;
  font-size:8px;
  font-weight:800;
  text-transform:uppercase;
  background:rgba(19,128,210,.2);
  border:1px solid rgba(63,196,255,.2);
}

.row-action{
  padding:7px 10px;
  white-space:nowrap;
  color:#8ddfff;
  border:1px solid rgba(67,196,255,.22);
  border-radius:8px;
  background:rgba(8,75,139,.35);
}

.row-action:hover{
  color:white;
  border-color:var(--cyan);
}

.table-empty{
  padding:50px !important;
  text-align:center;
  color:#6699bd !important;
}

.domain-pagination{
  padding:13px 15px;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:14px;
  border-top:1px solid var(--line);
}

.domain-pagination span{
  color:#7cafd3;
  font-size:10px;
}

.pagination-btn{
  padding:8px 11px;
  color:#9edcff;
  border:1px solid rgba(68,184,255,.2);
  border-radius:8px;
  background:rgba(7,57,111,.45);
}

.pagination-btn:disabled{
  opacity:.35;
  cursor:not-allowed;
}


/* DOMAIN MODAL */

.modal-overlay{
  position:fixed;
  inset:0;
  z-index:200;
  padding:25px;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(0,14,38,.72);
  backdrop-filter:blur(8px);
}

.modal-overlay.open{
  display:flex;
}

.modal-above{
  z-index:220;
}

.hatori-modal{
  width:min(760px,100%);
  max-height:90vh;
  overflow:auto;
  padding:27px;
  border:1px solid rgba(63,204,255,.35);
  border-radius:20px;
  background:linear-gradient(
    145deg,
    #0b3d78,
    #061f46
  );
  box-shadow:
    0 30px 100px rgba(0,0,0,.45),
    0 0 40px rgba(0,140,255,.12);
}

.small-modal{
  width:min(470px,100%);
}

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

.modal-header h2{
  margin:6px 0 0;
}

.modal-close{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  color:#9cdfff;
  font-size:22px;
  border:1px solid rgba(74,196,255,.25);
  border-radius:10px;
  background:rgba(4,37,79,.6);
}

.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:17px;
}

.form-grid label,
.modal-label{
  display:block;
  color:#9ac8e8;
  font-size:9px;
  font-weight:900;
  letter-spacing:1.3px;
}

.form-grid label.full{
  grid-column:1 / -1;
}

.hatori-modal input,
.hatori-modal select,
.hatori-modal textarea{
  width:100%;
  margin-top:8px;
  padding:13px;
  outline:none;
  resize:vertical;
  color:white;
  border:1px solid rgba(76,183,255,.25);
  border-radius:10px;
  background:#082b58;
}

.hatori-modal input:focus,
.hatori-modal select:focus,
.hatori-modal textarea:focus{
  border-color:var(--cyan);
  box-shadow:0 0 0 3px rgba(54,216,255,.08);
}

.inline-control{
  display:grid;
  grid-template-columns:1fr 43px;
  gap:7px;
}

.small-add{
  margin-top:8px;
  color:white;
  font-size:20px;
  border:1px solid rgba(64,210,255,.4);
  border-radius:10px;
  background:linear-gradient(
    145deg,
    #0878ff,
    #1dbbe9
  );
}

.field-help{
  display:block;
  margin-top:6px;
  color:#6097be;
  font-size:9px;
  letter-spacing:0;
  font-weight:500;
}

.form-error{
  min-height:18px;
  margin-top:15px;
  color:#ff9eb6;
  font-size:11px;
}

.modal-actions{
  margin-top:18px;
  display:flex;
  justify-content:flex-end;
  gap:9px;
}

.secondary-btn{
  padding:12px 17px;
  color:#a8cee9;
  border:1px solid rgba(76,177,242,.2);
  border-radius:10px;
  background:rgba(5,38,80,.6);
}

.modal-primary{
  width:auto;
  margin:0;
  min-width:160px;
  justify-content:center;
}


/* DOMAINS RESPONSIVE */

@media(max-width:900px){

  .domains-hero{
    align-items:flex-start;
  }

  .domain-toolbar{
    grid-template-columns:1fr 1fr;
  }

  .domain-search{
    grid-column:1 / -1;
  }
}

@media(max-width:650px){

  .domains-hero{
    padding:22px;
    display:block;
  }

  .domains-hero h2{
    font-size:27px;
  }

  .domain-add-btn{
    width:100%;
    margin-top:20px;
  }

  .domain-toolbar{
    grid-template-columns:1fr;
  }

  .domain-search{
    grid-column:auto;
  }

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

  .domain-summary div{
    padding:13px;
  }

  .domain-summary strong{
    font-size:19px;
  }

  .modal-overlay{
    padding:12px;
    align-items:flex-start;
    overflow:auto;
  }

  .hatori-modal{
    margin-top:15px;
    padding:21px;
    max-height:none;
  }

  .form-grid{
    grid-template-columns:1fr;
  }

  .form-grid label.full{
    grid-column:auto;
  }
}


/* ========================================
   DOMAIN DETAIL
   ======================================== */

.detail-back-row{
  margin-bottom:12px;
}

.detail-back{
  color:#7dc8f4;
  font-size:11px;
  text-decoration:none;
}

.detail-back:hover{
  color:var(--cyan);
}

.domain-detail-hero{
  padding:30px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:25px;
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(
    120deg,
    rgba(12,76,150,.86),
    rgba(6,39,82,.9)
  );
}

.detail-status-row{
  display:flex;
  gap:8px;
  align-items:center;
}

.domain-detail-hero h2{
  margin:12px 0 7px;
  font-size:38px;
  word-break:break-word;
}

.detail-brand{
  color:#8ec7ec;
  font-size:13px;
}

.detail-actions{
  display:flex;
  gap:9px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.renewal-badge{
  display:inline-block;
  padding:5px 8px;
  border-radius:7px;
  font-size:8px;
  font-weight:900;
  letter-spacing:1px;
}

.renewal-badge.active{
  color:#6dffd0;
  border:1px solid rgba(77,255,186,.25);
  background:rgba(37,171,125,.15);
}

.renewal-badge.non-renew{
  color:#ffc3a5;
  border:1px solid rgba(255,142,88,.3);
  background:rgba(181,72,32,.18);
}

.warning-btn{
  padding:12px 16px;
  color:#ffd6c1;
  font-weight:800;
  border:1px solid rgba(255,137,82,.35);
  border-radius:10px;
  background:rgba(155,58,27,.28);
}

.warning-btn:hover{
  border-color:#ff9c6e;
  background:rgba(177,67,30,.4);
}

.detail-info-grid{
  margin-top:15px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}

.detail-info-card{
  min-height:110px;
  padding:19px;
  border:1px solid var(--line);
  border-radius:14px;
  background:linear-gradient(
    145deg,
    rgba(10,58,114,.78),
    rgba(6,35,75,.8)
  );
}

.detail-info-card span,
.detail-info-card strong,
.detail-info-card small{
  display:block;
}

.detail-info-card span{
  color:#6faed7;
  font-size:8px;
  font-weight:900;
  letter-spacing:1.3px;
}

.detail-info-card strong{
  margin-top:11px;
  color:#eaf9ff;
  font-size:15px;
  word-break:break-word;
}

.detail-info-card small{
  margin-top:7px;
  color:#79a8c9;
  font-size:9px;
}

.expiry-warning{
  color:#ffd477 !important;
}

.expiry-danger{
  color:#ff9e9e !important;
}

.expiry-good{
  color:#68e6c1 !important;
}

.non-renew-panel{
  margin-top:15px;
  padding:20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  border:1px solid rgba(255,139,88,.25);
  border-radius:14px;
  background:rgba(115,45,24,.18);
}

.non-renew-panel[hidden]{
  display:none;
}

.non-renew-panel h3{
  margin:6px 0;
}

.non-renew-panel p{
  margin:0;
  color:#d2a992;
  font-size:11px;
}

.non-renew-meta{
  text-align:right;
}

.non-renew-meta span,
.non-renew-meta strong{
  display:block;
}

.non-renew-meta span{
  color:#ad8069;
  font-size:8px;
  letter-spacing:1px;
}

.non-renew-meta strong{
  margin-top:5px;
  font-size:11px;
}

.detail-notes{
  margin-top:15px;
}

.detail-notes p{
  margin:0;
  color:#a7c9e2;
  line-height:1.7;
  white-space:pre-wrap;
}

.versions-panel{
  margin-top:15px;
  padding:25px;
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(6,38,80,.78);
}

.versions-heading{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:25px;
}

.versions-heading h2{
  margin:6px 0;
}

.versions-heading p{
  margin:0;
  color:#759fbe;
  font-size:11px;
}

.version-list{
  margin-top:22px;
  display:grid;
  gap:11px;
}

.version-empty{
  padding:45px 20px;
  text-align:center;
  color:#6897b9;
  border:1px dashed rgba(77,185,255,.2);
  border-radius:13px;
}

.version-card{
  padding:18px;
  border:1px solid rgba(69,185,255,.16);
  border-radius:13px;
  background:rgba(7,48,96,.55);
}

.version-card-top{
  display:flex;
  justify-content:space-between;
  gap:15px;
}

.version-card h3{
  margin:0;
  font-size:16px;
}

.version-meta{
  margin-top:7px;
  color:#739fc0;
  font-size:9px;
}

.version-amp{
  color:#7fe3ff;
}

.renewal-warning-text{
  color:#9fc2dc;
  line-height:1.6;
  font-size:11px;
}

@media(max-width:900px){

  .detail-info-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:650px){

  .domain-detail-hero{
    display:block;
    padding:22px;
  }

  .domain-detail-hero h2{
    font-size:29px;
  }

  .detail-actions{
    margin-top:20px;
    justify-content:flex-start;
  }

  .detail-info-grid{
    grid-template-columns:1fr;
  }

  .versions-heading{
    display:block;
  }

  .versions-heading .domain-add-btn{
    margin-top:18px;
  }

  .non-renew-panel{
    display:block;
  }

  .non-renew-meta{
    margin-top:15px;
    text-align:left;
  }
}


/* ========================================
   VERSION UPLOAD
   ======================================== */

.version-upload-modal{
  width:min(820px,100%);
}

.version-modal-subtitle{
  margin:7px 0 0;
  color:#7faaca;
  font-size:10px;
}

.version-form-top{
  display:grid;
  grid-template-columns:180px 1fr;
  gap:15px;
}

.version-form-top label{
  color:#9ac8e8;
  font-size:9px;
  font-weight:900;
  letter-spacing:1.3px;
}

.version-number-display{
  height:48px;
  margin-top:8px;
  display:flex;
  align-items:center;
  padding:0 15px;
  color:var(--cyan);
  font-size:18px;
  font-weight:900;
  border:1px solid rgba(55,211,255,.28);
  border-radius:10px;
  background:rgba(5,40,84,.65);
}

.version-notes-label{
  display:block;
  margin-top:16px;
}

.upload-section{
  margin-top:17px;
  padding:18px;
  border:1px solid rgba(68,185,255,.18);
  border-radius:14px;
  background:rgba(5,40,82,.48);
}

.upload-section-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  margin-bottom:14px;
}

.upload-section-heading h3{
  margin:4px 0 0;
  font-size:15px;
}

.optional-chip{
  padding:5px 8px;
  color:#79b6dc;
  font-size:7px;
  font-weight:900;
  letter-spacing:1px;
  border:1px solid rgba(83,176,234,.2);
  border-radius:6px;
}

.file-drop{
  min-height:145px;
  padding:20px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  cursor:pointer;
  border:1px dashed rgba(70,203,255,.35);
  border-radius:12px;
  background:rgba(4,31,67,.5);
  transition:.2s;
}

.file-drop:hover{
  border-color:var(--cyan);
  background:rgba(8,63,119,.5);
}

.file-drop input{
  display:none;
}

.file-drop-icon{
  width:37px;
  height:37px;
  display:grid;
  place-items:center;
  margin-bottom:9px;
  color:white;
  font-size:18px;
  border-radius:9px;
  background:linear-gradient(
    145deg,
    #0876ff,
    #24cfff
  );
}

.file-drop strong{
  font-size:11px;
}

.file-drop small{
  margin-top:5px;
  color:#6999bd;
  font-size:9px;
}

.selected-file{
  margin-top:11px;
  padding:6px 9px;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#8ee7ff;
  font-size:9px;
  border-radius:6px;
  background:rgba(15,106,174,.18);
}

.compact-file-drop{
  min-height:115px;
  margin-top:13px;
}

.amp-fields[hidden]{
  display:none;
}

.switch-control{
  display:flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
  color:#9dd7f7;
  font-size:9px;
}

.switch-control input{
  display:none;
}

.switch-slider{
  width:38px;
  height:21px;
  position:relative;
  border-radius:20px;
  background:#0a315f;
  border:1px solid rgba(87,180,240,.25);
  transition:.2s;
}

.switch-slider:after{
  content:"";
  width:15px;
  height:15px;
  position:absolute;
  top:2px;
  left:3px;
  border-radius:50%;
  background:#7296b3;
  transition:.2s;
}

.switch-control input:checked +
.switch-slider{
  background:#0879e8;
  box-shadow:0 0 14px rgba(35,203,255,.2);
}

.switch-control input:checked +
.switch-slider:after{
  left:18px;
  background:#63edff;
}

.upload-progress{
  margin-top:17px;
}

.upload-progress[hidden]{
  display:none;
}

.upload-progress-bar{
  height:7px;
  overflow:hidden;
  border-radius:20px;
  background:rgba(255,255,255,.07);
}

.upload-progress-bar div{
  width:0;
  height:100%;
  border-radius:20px;
  background:linear-gradient(
    90deg,
    #0875ff,
    #34dcff
  );
  box-shadow:0 0 12px rgba(52,220,255,.4);
  transition:.2s;
}

.upload-progress span{
  display:block;
  margin-top:7px;
  color:#74a8cd;
  font-size:9px;
}

@media(max-width:650px){

  .version-form-top{
    grid-template-columns:1fr;
  }

  .upload-section{
    padding:14px;
  }
}


/* VERSION FILE DETAILS */

.version-files{
  margin-top:15px;
  display:grid;
  gap:8px;
}

.version-file{
  padding:13px 14px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  border:1px solid rgba(69,188,255,.14);
  border-radius:10px;
  background:rgba(4,37,77,.48);
}

.version-file-info span,
.version-file-info strong,
.version-file-info small{
  display:block;
}

.version-file-info span{
  color:#53dfff;
  font-size:7px;
  font-weight:900;
  letter-spacing:1.3px;
}

.version-file-info strong{
  margin-top:5px;
  color:#e6f7ff;
  font-size:11px;
  word-break:break-all;
}

.version-file-info small{
  margin-top:5px;
  color:#6998ba;
  font-size:8px;
}

.version-download{
  flex:0 0 auto;
  padding:9px 11px;
  color:#8eeaff;
  font-size:8px;
  font-weight:900;
  letter-spacing:.7px;
  text-decoration:none;
  border:1px solid rgba(65,204,255,.25);
  border-radius:8px;
  background:rgba(10,91,157,.3);
}

.version-download:hover{
  color:white;
  border-color:var(--cyan);
}

.version-amp-domain{
  margin-top:10px;
  color:#6fa2c5;
  font-size:9px;
}

.version-amp-domain strong{
  color:#9ee8ff;
}

.version-note{
  margin-top:10px;
  padding:10px;
  color:#9dbdd4;
  font-size:10px;
  line-height:1.5;
  border-radius:8px;
  background:rgba(5,34,69,.4);
}

.version-file.missing{
  opacity:.55;
}

@media(max-width:650px){
  .version-file{
    display:block;
  }

  .version-download{
    display:inline-block;
    margin-top:12px;
  }
}


/* ========================================
   HATORI PERFORMANCE PASS
   ======================================== */

/* Avoid expensive full-screen GPU blur */
.modal-overlay{
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  background:rgba(0,14,38,.88) !important;
}

/* Mobile menu overlay */
.mobile-overlay{
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}

/* Keep neon without huge blur workload */
.app-glow{
  filter:blur(70px) !important;
  opacity:.75;
}

/* Faster interactions */
.nav-link,
.row-action,
.domain-add-btn,
.secondary-btn,
.warning-btn,
.primary-btn,
.file-drop,
.modal-close,
.pagination-btn{
  transition:
    background-color .12s ease,
    border-color .12s ease,
    color .12s ease,
    opacity .12s ease !important;
}

/* Modal should render immediately */
.hatori-modal{
  contain:layout paint;
}

.modal-overlay.open{
  display:flex;
}

/* Reduce repaint from giant shadows */
.hatori-modal{
  box-shadow:
    0 20px 55px rgba(0,0,0,.38),
    0 0 20px rgba(0,140,255,.08) !important;
}


/* VERSION ACTIONS */

.version-file-actions{
  flex:0 0 auto;
  display:flex;
  gap:6px;
}

.version-verify,
.version-delete{
  padding:9px 10px;
  font-size:8px;
  font-weight:900;
  letter-spacing:.6px;
  border-radius:8px;
}

.version-verify{
  color:#7ce6c6;
  border:1px solid rgba(76,231,186,.22);
  background:rgba(30,130,102,.18);
}

.version-delete{
  color:#ffb2b2;
  border:1px solid rgba(255,109,109,.22);
  background:rgba(146,43,43,.18);
}

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

.version-verify:hover{
  border-color:#5cf1c5;
}

.version-delete:hover{
  border-color:#ff8585;
}

@media(max-width:650px){
  .version-file-actions{
    margin-top:12px;
  }
}


/* ========================================
   HATORI FAST UI
   ======================================== */

.modal-overlay,
.modal-overlay *,
.sidebar,
.nav-link,
.hatori-modal{
  animation:none !important;
}

.modal-overlay{
  transition:none !important;
}

.hatori-modal{
  transition:none !important;
  transform:none !important;
}

.app-glow{
  display:none !important;
}

.nav-link:hover,
.quick-actions button:hover{
  transform:none !important;
}


/* ========================================
   DOMAIN LIFECYCLE
   ======================================== */

.domain-lifecycle-bar{
  margin-top:15px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
}

.domain-tabs{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
}

.domain-tab{
  padding:10px 13px;
  color:#79acd0;
  font-size:9px;
  font-weight:900;
  letter-spacing:.7px;
  border:1px solid rgba(75,180,247,.18);
  border-radius:9px;
  background:rgba(6,45,91,.55);
}

.domain-tab span{
  margin-left:6px;
  padding:3px 6px;
  border-radius:6px;
  background:rgba(255,255,255,.06);
}

.domain-tab.active{
  color:#bff5ff;
  border-color:rgba(55,215,255,.5);
  background:rgba(8,104,184,.35);
  box-shadow:inset 0 0 15px rgba(34,193,255,.08);
}

.export-btn{
  padding:10px 14px;
  color:#8eeaff;
  font-size:9px;
  font-weight:900;
  letter-spacing:.7px;
  border:1px solid rgba(61,204,255,.28);
  border-radius:9px;
  background:rgba(8,79,143,.35);
}

.export-btn:hover{
  border-color:var(--cyan);
}

.expiration-cell strong,
.expiration-cell small{
  display:block;
}

.expiration-cell strong{
  color:#cbeaff;
  font-size:10px;
}

.expiration-cell small{
  margin-top:4px;
  font-size:8px;
}

.expiry-list-good{
  color:#5fe1bd;
}

.expiry-list-warning{
  color:#ffd16d;
}

.expiry-list-danger{
  color:#ff9999;
}

.non-renew-row{
  opacity:.72;
}

.non-renew-row .domain-name-cell button{
  color:#d6a997;
}

@media(max-width:650px){

  .domain-lifecycle-bar{
    display:block;
  }

  .export-btn{
    width:100%;
    margin-top:10px;
  }

  .domain-tabs{
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  .domain-tab:first-child{
    grid-column:1 / -1;
  }
}


/* ========================================
   APP SHELL NAVIGATION
   ======================================== */

html.hatori-navigating{
  cursor:progress;
}

html.hatori-navigating .main-content{
  opacity:.82;
}

.main-content{
  transition:opacity .08s linear;
}


/* ========================================
   DOMAIN INVENTORY FINAL CONTROLS
   ======================================== */

.domain-lifecycle-bar{
  margin:14px 0 0 !important;
  padding:12px 14px;
  min-height:58px;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:14px;
  border:1px solid rgba(56,174,245,.18);
  border-radius:13px;
  background:rgba(5,43,87,.52);
}

.domain-lifecycle-bar .domain-tabs{
  display:flex !important;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
}

.domain-lifecycle-bar .domain-tab{
  appearance:none;
  -webkit-appearance:none;
  min-height:35px;
  padding:0 13px !important;
  display:inline-flex;
  align-items:center;
  gap:6px;
  cursor:pointer;
  color:#7fafd1 !important;
  font-family:inherit;
  font-size:9px !important;
  font-weight:900 !important;
  letter-spacing:.8px;
  border:1px solid rgba(77,183,247,.2) !important;
  border-radius:8px !important;
  background:rgba(4,39,80,.7) !important;
}

.domain-lifecycle-bar .domain-tab span{
  min-width:21px;
  padding:3px 6px;
  display:inline-grid;
  place-items:center;
  color:#9ed9f7;
  border-radius:5px;
  background:rgba(60,177,238,.1);
}

.domain-lifecycle-bar .domain-tab.active{
  color:#e9fbff !important;
  border-color:#25cfff !important;
  background:linear-gradient(
    135deg,
    rgba(10,113,206,.65),
    rgba(15,77,145,.62)
  ) !important;
  box-shadow:
    inset 0 0 15px rgba(40,206,255,.08),
    0 0 14px rgba(25,177,255,.08);
}

.domain-lifecycle-bar .export-btn{
  appearance:none;
  -webkit-appearance:none;
  min-height:35px;
  padding:0 14px !important;
  cursor:pointer;
  color:#b9f3ff !important;
  font-family:inherit;
  font-size:9px !important;
  font-weight:900 !important;
  letter-spacing:.8px;
  border:1px solid rgba(58,207,255,.32) !important;
  border-radius:8px !important;
  background:rgba(8,91,158,.38) !important;
}

.domain-lifecycle-bar .export-btn:hover{
  border-color:#34d9ff !important;
  background:rgba(11,112,190,.5) !important;
}

@media(max-width:700px){
  .domain-lifecycle-bar{
    display:block !important;
  }

  .domain-lifecycle-bar .export-btn{
    width:100%;
    margin-top:9px;
  }
}


.expiring-chip{
  min-height:35px;
  padding:0 11px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#ffd886;
  font-size:8px;
  font-weight:900;
  letter-spacing:.7px;
  border:1px solid rgba(255,196,75,.25);
  border-radius:8px;
  background:rgba(142,91,14,.17);
}

.expiring-chip[hidden]{
  display:none !important;
}

.expiring-chip span{
  padding:3px 6px;
  color:#ffe5a7;
  border-radius:5px;
  background:rgba(255,198,77,.1);
}


/* =========================================================
   HATORI LOGIN V2
   ORIGINAL VISUAL / FAST RENDER
   ========================================================= */

.login-body{
  margin:0;
  min-height:100vh;
  overflow-x:hidden;
  color:#f2f9ff;
  background:
    linear-gradient(
      90deg,
      rgba(5,71,139,.62) 0%,
      rgba(4,45,94,.82) 38%,
      rgba(3,34,73,.96) 100%
    ),
    #062a59 !important;
}

/* Lightweight grid — no blur/filter */
.login-body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:
    linear-gradient(
      rgba(54,173,255,.045) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(54,173,255,.045) 1px,
      transparent 1px
    );
  background-size:80px 80px;
}

/* Small static cyan illumination */
.login-body::after{
  content:"";
  position:fixed;
  left:-8vw;
  top:-15vh;
  width:55vw;
  height:70vh;
  pointer-events:none;
  background:
    radial-gradient(
      ellipse at center,
      rgba(0,153,255,.18),
      transparent 67%
    );
}

.login-layout{
  position:relative;
  z-index:1;
  width:100%;
  min-height:100vh;
  padding:clamp(42px,6vw,82px);
  box-sizing:border-box;

  display:grid;
  grid-template-columns:
    minmax(0,1.25fr)
    minmax(390px,.75fr);

  align-items:center;
  gap:clamp(60px,9vw,150px);
}

/* =========================
   LEFT
   ========================= */

.login-brand{
  min-width:0;
}

.login-brand .brand-logo{
  display:block;
  width:min(470px,52vw);
  height:auto;
  object-fit:contain;
  object-position:left center;
  filter:none !important;
  transform:none !important;
}

.login-copy{
  margin-top:72px;
  max-width:760px;
}

.login-copy .eyebrow{
  margin-bottom:23px;
  color:#32ddff;
  font-size:12px;
  font-weight:900;
  letter-spacing:3.2px;
}

.login-copy h1{
  margin:0;
  max-width:700px;
  color:#f5fbff;
  font-size:clamp(50px,5.2vw,86px);
  line-height:.96;
  letter-spacing:-4px;
  font-weight:800;
}

.login-copy h1 span{
  display:block;
  margin-top:10px;
  color:#30d6ff;
}

.login-copy > p{
  margin:32px 0 0;
  max-width:730px;
  color:#9fc5e5;
  font-size:18px;
  line-height:1.75;
}

.login-features{
  margin-top:48px;
  display:grid;
  grid-template-columns:
    repeat(3,minmax(0,1fr));
  gap:14px;
  max-width:720px;
}

.login-feature{
  min-height:72px;
  padding:17px 20px;
  box-sizing:border-box;
  border:1px solid rgba(55,183,255,.26);
  border-radius:13px;
  background:rgba(10,67,126,.45);
}

.login-feature strong{
  display:block;
  color:#e8f7ff;
  font-size:11px;
  letter-spacing:1.2px;
}

.login-feature span{
  display:block;
  margin-top:7px;
  color:#82add0;
  font-size:12px;
}

/* =========================
   LOGIN CARD
   ========================= */

.login-card{
  width:100%;
  max-width:570px;
  justify-self:end;
  padding:48px;
  box-sizing:border-box;

  border:1px solid rgba(62,200,255,.38);
  border-radius:27px;

  /* no backdrop-filter */
  background:
    linear-gradient(
      160deg,
      rgba(13,76,140,.96),
      rgba(4,40,84,.98)
    );

  box-shadow:
    0 25px 70px rgba(0,0,0,.22),
    inset 0 1px rgba(255,255,255,.04);
}

.login-top{
  margin-bottom:34px;
}

.login-top .eyebrow{
  display:flex;
  align-items:center;
  gap:11px;
  color:#a7d5f5;
  font-size:10px;
  font-weight:900;
  letter-spacing:2.2px;
}

.login-top .eyebrow::before{
  content:"";
  width:9px;
  height:9px;
  flex:0 0 auto;
  border-radius:50%;
  background:#55f2b7;
  box-shadow:0 0 9px rgba(85,242,183,.55);
}

.login-top h2{
  margin:29px 0 8px;
  color:#f7fbff;
  font-size:37px;
  line-height:1.1;
  letter-spacing:-1.4px;
}

.login-top p{
  margin:0;
  color:#8eb7d6;
  font-size:15px;
}

/* =========================
   FORM
   ========================= */

.login-card form label{
  display:block;
  margin-top:22px;
  color:#b6d6ed;
  font-size:9px;
  font-weight:900;
  letter-spacing:1.8px;
}

.login-card input{
  width:100%;
  height:54px;
  margin-top:9px;
  padding:0 18px;
  box-sizing:border-box;

  color:#f3fbff;
  font-family:inherit;
  font-size:13px;

  outline:none;
  border:1px solid rgba(59,165,230,.32);
  border-radius:11px;

  background:#052d5c;

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

.login-card input:focus{
  border-color:#26d4ff;
  box-shadow:
    0 0 0 2px rgba(38,212,255,.08);
}

.password-wrap{
  position:relative;
}

.password-wrap input{
  padding-right:80px;
}

#togglePassword{
  position:absolute;
  right:13px;
  bottom:17px;
  padding:0;
  color:#42ddff;
  font-size:9px;
  font-weight:900;
  letter-spacing:1px;
  border:0;
  background:none;
  cursor:pointer;
}

.login-error{
  min-height:18px;
  margin-top:13px;
  color:#ff9e9e;
  font-size:10px;
}

#loginButton{
  width:100%;
  height:59px;
  margin-top:10px;

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

  padding:0 22px;

  color:white;
  font-family:inherit;
  font-size:14px;
  font-weight:900;
  letter-spacing:1px;

  cursor:pointer;

  border:0;
  border-radius:11px;

  background:
    linear-gradient(
      90deg,
      #0876ff,
      #25caff
    );

  box-shadow:
    0 8px 22px rgba(0,143,255,.19);

  transition:opacity .1s linear;
}

#loginButton:hover{
  opacity:.94;
}

#loginButton:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.login-bottom{
  margin-top:30px;
  padding-top:24px;

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

  color:#72a6cc;
  font-size:8px;
  letter-spacing:1.7px;

  border-top:1px solid rgba(72,176,239,.2);
}

.login-bottom::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
  background:#55f2b7;
  box-shadow:0 0 8px rgba(85,242,183,.5);
}

/* Kill expensive login effects */
.login-body *,
.login-body *::before,
.login-body *::after{
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  animation:none !important;
}

/* =========================
   RESPONSIVE
   ========================= */

@media(max-width:1000px){

  .login-layout{
    grid-template-columns:1fr;
    gap:45px;
    padding:40px;
  }

  .login-brand .brand-logo{
    width:min(440px,80vw);
  }

  .login-copy{
    margin-top:45px;
  }

  .login-card{
    max-width:none;
    justify-self:stretch;
  }
}

@media(max-width:600px){

  .login-layout{
    padding:25px 18px 35px;
  }

  .login-brand .brand-logo{
    width:min(340px,88vw);
  }

  .login-copy{
    margin-top:35px;
  }

  .login-copy h1{
    font-size:45px;
    letter-spacing:-2.5px;
  }

  .login-copy > p{
    font-size:14px;
  }

  .login-features{
    grid-template-columns:1fr;
    margin-top:30px;
  }

  .login-card{
    padding:28px 22px;
    border-radius:20px;
  }

  .login-top h2{
    font-size:30px;
  }
}


/* =========================================================
   HATORI USERS
   ========================================================= */

.users-hero{
  margin:22px 26px 0;
  padding:32px 38px;

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

  border:1px solid rgba(54,184,255,.24);
  border-radius:20px;

  background:
    linear-gradient(
      110deg,
      rgba(11,83,159,.72),
      rgba(5,49,100,.78)
    );
}

.users-hero h2{
  margin:8px 0 8px;
  color:#f3faff;
  font-size:34px;
  letter-spacing:-1.4px;
}

.users-hero h2 span{
  color:#31d6ff;
}

.users-hero p{
  margin:0;
  color:#8fb9d8;
  font-size:13px;
}

.users-add-btn{
  min-width:145px;
  min-height:48px;
}

.users-stats{
  margin:18px 26px 0;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:13px;
}

.users-stats article{
  padding:22px 25px;

  border:1px solid rgba(52,173,242,.2);
  border-radius:15px;

  background:rgba(7,57,112,.72);
}

.users-stats span{
  display:block;
  color:#7eb1d5;
  font-size:9px;
  font-weight:900;
  letter-spacing:1.8px;
}

.users-stats strong{
  display:block;
  margin-top:10px;
  color:#f3faff;
  font-size:31px;
}

.users-panel{
  margin:18px 26px 35px;
  padding:24px;

  border:1px solid rgba(52,173,242,.2);
  border-radius:18px;

  background:rgba(5,46,94,.7);
}

.users-panel-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:18px;
}

.users-panel-head h3{
  margin:6px 0 0;
  color:#f2f9ff;
  font-size:21px;
}

.users-search{
  width:min(330px,100%);
  height:43px;

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

  padding:0 14px;

  border:1px solid rgba(56,170,235,.22);
  border-radius:10px;

  background:#052d5c;
}

.users-search span{
  color:#2ed7ff;
}

.users-search input{
  width:100%;
  color:#eaf8ff;
  border:0;
  outline:0;
  background:none;
}

.users-list{
  display:grid;
  gap:11px;
}

.user-card{
  min-height:105px;
  padding:18px 20px;

  display:grid;
  grid-template-columns:52px 1fr auto;
  align-items:center;
  gap:17px;

  border:1px solid rgba(54,172,240,.18);
  border-radius:13px;

  background:rgba(7,58,113,.55);
}

.user-card.disabled{
  opacity:.58;
}

.user-avatar{
  width:50px;
  height:50px;

  display:grid;
  place-items:center;

  color:white;
  font-size:15px;
  font-weight:900;

  border:1px solid rgba(62,214,255,.42);
  border-radius:13px;

  background:
    linear-gradient(
      135deg,
      #087cff,
      #25c9ff
    );
}

.user-name-row{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}

.user-name-row > strong{
  color:#f2f9ff;
  font-size:15px;
}

.user-role-badge,
.user-status-badge{
  padding:4px 7px;

  font-size:7px;
  font-weight:900;
  letter-spacing:1px;

  border-radius:6px;
}

.user-role-badge.superadmin{
  color:#8be8ff;
  background:rgba(22,166,220,.14);
}

.user-role-badge.user{
  color:#9dc5e4;
  background:rgba(86,144,188,.12);
}

.user-status-badge.active{
  color:#65e6bc;
  background:rgba(42,199,146,.12);
}

.user-status-badge.disabled{
  color:#ffaaa2;
  background:rgba(219,84,73,.13);
}

.user-username{
  margin-top:6px;
  color:#7da8ca;
  font-size:10px;
}

.user-access{
  margin-top:9px;
  color:#acd1ea;
  font-size:10px;
}

.user-last-login{
  margin-top:5px;
  color:#608dad;
  font-size:8px;
}

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

.user-actions button{
  min-height:34px;
  padding:0 10px;

  cursor:pointer;

  color:#9fdcff;
  font-family:inherit;
  font-size:8px;
  font-weight:900;
  letter-spacing:.6px;

  border:1px solid rgba(60,181,246,.23);
  border-radius:8px;

  background:rgba(7,74,136,.45);
}

.user-status-btn.disable{
  color:#ffaca4;
  border-color:rgba(255,112,100,.2);
}

.user-status-btn.enable{
  color:#6ee9bd;
  border-color:rgba(64,222,166,.2);
}

.users-empty{
  padding:45px;
  text-align:center;
  color:#709cbc;
}


/* permissions */

.permission-section{
  margin-top:22px;
  padding-top:22px;
  border-top:1px solid rgba(55,170,235,.16);
}

.permission-head h3{
  margin:6px 0 15px;
  color:#eef9ff;
  font-size:17px;
}

.module-permissions{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:9px;
}

.module-access-card{
  position:relative;
  min-height:72px;
  padding:14px;

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

  cursor:pointer;

  border:1px solid rgba(54,170,238,.18);
  border-radius:11px;

  background:rgba(5,47,94,.62);
}

.module-access-card input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.module-check{
  width:20px;
  height:20px;
  flex:0 0 auto;

  border:1px solid rgba(74,185,243,.38);
  border-radius:6px;
}

.module-access-card
input:checked + .module-check{
  border-color:#2ed7ff;

  background:
    linear-gradient(
      135deg,
      #087cff,
      #27d3ff
    );
}

.module-access-card
input:checked + .module-check::after{
  content:"✓";

  display:grid;
  place-items:center;

  height:100%;

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

.module-access-copy{
  min-width:0;
}

.module-access-copy strong,
.module-access-copy small,
.module-access-copy em{
  display:block;
}

.module-access-copy strong{
  color:#eaf8ff;
  font-size:11px;
}

.module-access-copy small{
  margin-top:4px;
  color:#779fbe;
  font-size:8px;
}

.module-access-copy em{
  margin-top:5px;
  color:#39d8ff;
  font-size:7px;
  font-style:normal;
  letter-spacing:.5px;
}

.password-field{
  position:relative;
}

.password-field input{
  padding-right:70px !important;
}

.password-field button{
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);

  color:#36d8ff;
  font-size:8px;
  font-weight:900;

  border:0;
  background:none;
  cursor:pointer;
}


@media(max-width:850px){

  .users-hero{
    align-items:flex-start;
    flex-direction:column;
  }

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

  .users-panel-head{
    align-items:stretch;
    flex-direction:column;
  }

  .users-search{
    width:auto;
  }

  .user-card{
    grid-template-columns:50px 1fr;
  }

  .user-actions{
    grid-column:1 / -1;
  }
}


@media(max-width:600px){

  .users-hero,
  .users-stats,
  .users-panel{
    margin-left:14px;
    margin-right:14px;
  }

  .users-hero{
    padding:24px;
  }

  .users-hero h2{
    font-size:29px;
  }

  .module-permissions{
    grid-template-columns:1fr;
  }

}


/* ========================================
   GRANULAR USER PERMISSIONS
   ======================================== */

.module-permissions{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
}

.module-permission-card{
  padding:15px;

  border:1px solid rgba(55,177,242,.19);
  border-radius:12px;

  background:rgba(5,48,96,.62);
}

.module-permission-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;

  padding-bottom:12px;
  margin-bottom:11px;

  border-bottom:
    1px solid rgba(56,170,235,.13);
}

.module-permission-head strong{
  display:block;

  color:#edf9ff;
  font-size:11px;
}

.module-permission-head small{
  display:block;

  margin-top:4px;

  color:#719bbb;
  font-size:8px;
}

.permission-all-btn{
  flex:0 0 auto;

  padding:5px 8px;

  cursor:pointer;

  color:#42dcff;
  font-family:inherit;
  font-size:7px;
  font-weight:900;
  letter-spacing:.7px;

  border:
    1px solid rgba(52,205,255,.22);
  border-radius:6px;

  background:rgba(10,102,172,.25);
}

.permission-actions{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}

.permission-action{
  position:relative;

  min-height:29px;
  padding:0 9px;

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

  cursor:pointer;

  color:#8db9d7;
  font-size:8px;
  font-weight:800;

  border:
    1px solid rgba(66,169,229,.16);
  border-radius:7px;

  background:rgba(3,39,80,.52);
}

.permission-action input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.permission-action-check{
  width:12px;
  height:12px;

  display:grid;
  place-items:center;

  border:
    1px solid rgba(70,184,242,.35);
  border-radius:4px;
}

.permission-action
input:checked +
.permission-action-check{
  border-color:#2bd5ff;

  background:
    linear-gradient(
      135deg,
      #087cff,
      #28d2ff
    );
}

.permission-action
input:checked +
.permission-action-check::after{
  content:"✓";

  color:#fff;
  font-size:8px;
  font-weight:900;
}

.permission-action:has(
  input:checked
){
  color:#e6f8ff;

  border-color:
    rgba(46,211,255,.34);

  background:
    rgba(8,102,174,.31);
}

.permission-none{
  color:#638eae;
  font-size:8px;
}

@media(max-width:700px){
  .module-permissions{
    grid-template-columns:1fr;
  }
}


/* ========================================
   AUTH FOUC PROTECTION
   Prevent unauthorized UI flash
   ======================================== */

.auth-pending .sidebar-nav{
  visibility:hidden;
}

/* Domains sensitive actions */
.auth-pending #addDomainButton,
.auth-pending #exportExcelButton,
.auth-pending .edit-domain{
  visibility:hidden;
}

/* Domain Detail sensitive actions */
.auth-pending #editDomainButton,
.auth-pending #renewalActionButton,
.auth-pending #uploadVersionButton,
.auth-pending .version-download,
.auth-pending .version-verify,
.auth-pending .version-delete{
  visibility:hidden;
}

/* Users sensitive actions */
.auth-pending #addUserButton,
.auth-pending .user-edit-btn,
.auth-pending .user-password-btn,
.auth-pending .user-status-btn{
  visibility:hidden;
}


/* =========================================================
   HATORI PYRAMID
   ========================================================= */

.pyramid-hero{
  margin:22px 26px 0;
  padding:30px 36px;

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

  border:1px solid rgba(53,185,255,.22);
  border-radius:19px;

  background:
    linear-gradient(
      110deg,
      rgba(11,82,158,.72),
      rgba(5,48,98,.78)
    );
}

.pyramid-hero h2{
  margin:8px 0;
  color:#f3faff;
  font-size:33px;
  letter-spacing:-1.3px;
}

.pyramid-hero h2 span{
  color:#31d6ff;
}

.pyramid-hero p{
  margin:0;
  color:#8eb7d6;
  font-size:12px;
}


.pyramid-workspace{
  margin:18px 26px 35px;

  min-height:650px;

  display:grid;
  grid-template-columns:260px minmax(0,1fr);
  gap:14px;
}


.pyramid-library,
.pyramid-stage{
  border:1px solid rgba(52,173,242,.19);
  border-radius:17px;

  background:rgba(5,46,94,.7);
}


.pyramid-library{
  padding:18px;
}


.pyramid-library-head{
  padding:3px 3px 15px;
  margin-bottom:10px;

  border-bottom:
    1px solid rgba(55,170,235,.14);
}

.pyramid-library-head > div{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.pyramid-library-head span{
  color:#79a9cb;
  font-size:8px;
  font-weight:900;
  letter-spacing:1.6px;
}

.pyramid-library-head strong{
  min-width:25px;
  height:25px;

  display:grid;
  place-items:center;

  color:#75e4ff;
  font-size:10px;

  border-radius:7px;
  background:rgba(38,186,238,.1);
}


.pyramid-list{
  display:grid;
  gap:7px;
}

.pyramid-list-item{
  width:100%;
  padding:13px;

  text-align:left;
  cursor:pointer;

  border:1px solid rgba(55,168,232,.15);
  border-radius:10px;

  background:rgba(4,40,83,.55);
}

.pyramid-list-item:hover{
  border-color:
    rgba(46,209,255,.3);
}

.pyramid-list-item.active{
  border-color:#29ceff;

  background:
    linear-gradient(
      135deg,
      rgba(9,107,190,.48),
      rgba(5,65,125,.55)
    );
}

.pyramid-list-item span,
.pyramid-list-item strong,
.pyramid-list-item small{
  display:block;
}

.pyramid-list-item span{
  color:#3ed8ff;
  font-size:7px;
  font-weight:900;
  letter-spacing:1px;
}

.pyramid-list-item strong{
  margin-top:5px;
  color:#edf9ff;
  font-size:11px;
}

.pyramid-list-item small{
  margin-top:6px;
  color:#6e9aba;
  font-size:8px;
}


.pyramid-empty{
  padding:35px 10px;
  text-align:center;
  color:#6d99ba;
  font-size:10px;
}


/* STAGE */

.pyramid-stage{
  position:relative;
  min-width:0;
  overflow:hidden;
}


.pyramid-stage-empty{
  min-height:650px;

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

  color:#668fad;
}

.pyramid-stage-empty strong{
  color:#a8cee8;
  font-size:17px;
}

.pyramid-stage-empty span{
  margin-top:8px;
  font-size:10px;
}


.pyramid-editor{
  min-height:650px;
}


.pyramid-editor-head{
  min-height:95px;
  padding:20px 23px;

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

  border-bottom:
    1px solid rgba(55,170,235,.15);
}

.pyramid-editor-head h2{
  margin:5px 0 0;
  color:#effaff;
  font-size:22px;
}

.pyramid-editor-head p{
  margin:5px 0 0;
  color:#6f9aba;
  font-size:9px;
}

.pyramid-editor-actions{
  display:flex;
  gap:8px;
}


/* TOOLBAR */

.pyramid-toolbar{
  height:48px;
  padding:0 17px;

  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;

  border-bottom:
    1px solid rgba(55,170,235,.12);
}

.pyramid-toolbar button{
  min-width:31px;
  height:29px;

  cursor:pointer;

  color:#8fd8f7;
  font-family:inherit;
  font-size:9px;
  font-weight:900;

  border:1px solid rgba(61,181,241,.2);
  border-radius:7px;

  background:rgba(5,65,122,.45);
}

.pyramid-toolbar span{
  min-width:48px;
  text-align:center;

  color:#72a9ca;
  font-size:8px;
  font-weight:900;
}


/* GRAPH VIEWPORT */

.pyramid-viewport{
  position:relative;

  height:505px;

  overflow:auto;

  background:
    linear-gradient(
      rgba(45,155,221,.035) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(45,155,221,.035) 1px,
      transparent 1px
    ),
    rgba(3,33,70,.58);

  background-size:
    36px 36px;
}


.pyramid-canvas{
  min-width:100%;
  min-height:100%;

  padding:35px;

  box-sizing:border-box;

  display:flex;
  align-items:flex-start;
  gap:28px;

  transform-origin:
    top left;
}


/* HEAD */

.pyramid-head-column{
  width:245px;
  flex:0 0 245px;

  border:1px solid rgba(52,184,247,.22);
  border-radius:13px;

  background:rgba(5,50,99,.83);
}

.pyramid-head-column > header{
  padding:15px;

  border-bottom:
    1px solid rgba(54,174,237,.14);

  background:
    linear-gradient(
      135deg,
      rgba(10,104,184,.4),
      rgba(6,65,125,.35)
    );
}

.pyramid-head-column header span,
.pyramid-head-column header strong,
.pyramid-head-column header small{
  display:block;
}

.pyramid-head-column header span{
  color:#3edbff;
  font-size:7px;
  font-weight:900;
  letter-spacing:1.5px;
}

.pyramid-head-column header strong{
  margin-top:5px;
  color:#eefaff;
  font-size:13px;
}

.pyramid-head-column header small{
  margin-top:5px;
  color:#6e9bbb;
  font-size:8px;
}


.pyramid-head-nodes{
  padding:11px;

  display:grid;
  gap:8px;
}


.pyramid-node{
  padding:11px 12px;

  display:block;

  text-decoration:none;

  border:1px solid rgba(61,180,239,.17);
  border-radius:9px;

  background:rgba(3,38,79,.68);
}

.pyramid-node:hover{
  border-color:
    rgba(44,211,255,.4);

  background:
    rgba(7,73,134,.68);
}

.pyramid-node span{
  display:block;

  color:#5e9fc6;
  font-size:7px;
  font-weight:900;
  text-transform:uppercase;
}

.pyramid-node strong{
  display:block;

  margin-top:4px;

  color:#dff5ff;
  font-size:10px;
}


.pyramid-head-empty{
  padding:25px 8px;

  text-align:center;

  color:#5d88a7;
  font-size:9px;
}


.pyramid-no-head{
  margin:auto;
  padding:50px;

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

  color:#648fac;
}

.pyramid-no-head strong{
  color:#a7cde6;
  font-size:15px;
}

.pyramid-no-head span{
  margin-top:7px;
  font-size:9px;
}


/* Responsive */

@media(max-width:900px){

  .pyramid-hero{
    align-items:flex-start;
    flex-direction:column;
  }

  .pyramid-workspace{
    grid-template-columns:1fr;
  }

  .pyramid-library{
    max-height:250px;
    overflow:auto;
  }

  .pyramid-editor-head{
    align-items:flex-start;
    flex-direction:column;
  }
}


@media(max-width:600px){

  .pyramid-hero,
  .pyramid-workspace{
    margin-left:14px;
    margin-right:14px;
  }

  .pyramid-hero{
    padding:23px;
  }

  .pyramid-hero h2{
    font-size:28px;
  }

}


.auth-pending #newPyramidButton,
.auth-pending #addHeadButton,
.auth-pending #saveRevisionButton{
  visibility:hidden;
}


/* ========================================
   PYRAMID BRAND ACCORDION
   ======================================== */

.pyramid-brand-group{
  overflow:hidden;

  border:1px solid rgba(51,168,233,.14);
  border-radius:10px;

  background:rgba(3,38,79,.38);
}

.pyramid-brand-group.open{
  border-color:
    rgba(46,205,255,.25);

  background:
    rgba(4,52,101,.5);
}


.pyramid-brand-toggle{
  width:100%;
  min-height:45px;
  padding:0 11px;

  display:grid;
  grid-template-columns:18px 1fr auto;
  align-items:center;
  gap:7px;

  cursor:pointer;
  text-align:left;

  border:0;
  background:transparent;
}

.pyramid-brand-chevron{
  color:#35d6ff;

  font-size:17px;
  line-height:1;
}

.pyramid-brand-toggle strong{
  overflow:hidden;

  color:#dff5ff;

  font-size:9px;
  font-weight:900;
  letter-spacing:.7px;

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

.pyramid-brand-toggle small{
  min-width:23px;
  height:23px;

  display:grid;
  place-items:center;

  color:#5fdcff;

  font-size:8px;
  font-weight:900;

  border-radius:6px;

  background:
    rgba(24,145,210,.13);
}


.pyramid-brand-items{
  padding:0 7px 7px;

  display:grid;
  gap:6px;
}


.pyramid-brand-items
.pyramid-list-item{
  padding:11px 12px 11px 31px;

  border-radius:8px;

  background:
    rgba(2,31,68,.52);
}

.pyramid-brand-items
.pyramid-list-item.active{
  border-color:#2bd4ff;

  background:
    linear-gradient(
      135deg,
      rgba(9,109,191,.48),
      rgba(5,64,124,.55)
    );
}



/* ========================================
   HIDDEN ELEMENT HARD FIX
   ======================================== */

.pyramid-stage-empty[hidden],
.pyramid-editor[hidden]{
  display:none !important;
}


.pyramid-stage{
  align-self:start;
}

.pyramid-editor{
  width:100%;
}


/* Pyramid node controls */

.pyramid-add-domain{
  width:100%;
  min-height:34px;

  cursor:pointer;

  color:#bfeeff;
  font-family:inherit;
  font-size:9px;
  font-weight:900;
  letter-spacing:.7px;

  border:1px dashed rgba(49,205,255,.35);
  border-radius:8px;

  background:rgba(9,92,161,.22);
}

.pyramid-add-domain:hover{
  border-color:#32d7ff;
  background:rgba(10,112,190,.35);
}


.pyramid-node{
  padding:0;
  overflow:hidden;
}

.pyramid-node-link{
  padding:11px 12px;
  display:block;
  text-decoration:none;
}

.pyramid-node-link span{
  display:block;
  color:#5e9fc6;
  font-size:7px;
  font-weight:900;
  text-transform:uppercase;
}

.pyramid-node-link strong{
  display:block;
  margin-top:4px;
  color:#dff5ff;
  font-size:10px;
}

.pyramid-add-child{
  width:100%;
  height:28px;

  cursor:pointer;

  color:#63dfff;
  font-family:inherit;
  font-size:8px;
  font-weight:900;

  border:0;
  border-top:1px solid rgba(61,180,239,.15);

  background:rgba(7,72,130,.35);
}

.pyramid-add-child:hover{
  background:rgba(8,105,180,.45);
}


/* ========================================
   PYRAMID ACTION CONTROLS
   ======================================== */

.pyramid-list-item{
  position:relative;
}

.pyramid-item-content{
  display:block;
  padding-right:28px;
}

.pyramid-item-menu{
  position:absolute;
  top:50%;
  right:11px;

  width:25px;
  height:25px;

  display:grid;
  place-items:center;

  transform:translateY(-50%);

  color:#62dfff;
  font-size:16px;
  line-height:1;

  border-radius:6px;
}

.pyramid-item-menu:hover{
  background:rgba(36,183,238,.12);
}


.pyramid-head-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.pyramid-head-menu,
.pyramid-node-menu{
  flex:0 0 auto;

  cursor:pointer;

  color:#68dcff;
  font-family:inherit;
  font-weight:900;

  border:1px solid rgba(54,192,244,.2);
  border-radius:6px;

  background:rgba(4,48,95,.45);
}

.pyramid-head-menu{
  width:29px;
  height:29px;
  font-size:15px;
}


.pyramid-node-actions{
  display:grid;
  grid-template-columns:1fr 31px;

  border-top:
    1px solid rgba(61,180,239,.15);
}

.pyramid-node-actions
.pyramid-add-child{
  border-top:0;
}

.pyramid-node-menu{
  border-width:0 0 0 1px;
  border-radius:0;

  border-left:
    1px solid rgba(61,180,239,.15);
}

.pyramid-node-menu:hover,
.pyramid-head-menu:hover{
  color:#fff;
  background:rgba(12,117,190,.45);
}


.auth-pending .pyramid-item-menu,
.auth-pending .pyramid-head-menu,
.auth-pending .pyramid-node-menu,
.auth-pending .pyramid-add-child,
.auth-pending .pyramid-add-domain{
  visibility:hidden;
}


/* ========================================
   PYRAMID FLOATING ACTION MENU
   ======================================== */

.pyramid-floating-menu{
  position:fixed;
  z-index:500;

  width:130px;
  padding:6px;

  display:grid;
  gap:4px;

  border:1px solid rgba(55,194,247,.28);
  border-radius:10px;

  background:#062d5c;

  box-shadow:
    0 18px 45px rgba(0,0,0,.35);
}

.pyramid-floating-menu button{
  width:100%;
  padding:9px 10px;

  cursor:pointer;
  text-align:left;

  color:#bdeaff;
  font-family:inherit;
  font-size:9px;
  font-weight:900;
  letter-spacing:.6px;

  border:0;
  border-radius:7px;

  background:transparent;
}

.pyramid-floating-menu button:hover{
  color:#fff;
  background:rgba(25,159,226,.18);
}

.pyramid-floating-menu button.danger{
  color:#ff8e98;
}

.pyramid-floating-menu button.danger:hover{
  background:rgba(255,73,91,.12);
}


.pyramid-action-description{
  margin-bottom:20px;

  color:#91b9d5;
  font-size:11px;
  line-height:1.7;
}

.pyramid-action-description strong{
  color:#e8f8ff;
}


.danger-action{
  background:
    linear-gradient(
      135deg,
      #d73a52,
      #ff5b68
    ) !important;

  box-shadow:
    0 10px 28px
    rgba(255,66,85,.18) !important;
}


/* ========================================
   PYRAMID TREE
   Final geometry is defined in
   HATORI PYRAMID FINAL below.
   ======================================== */


/* =========================================================
   HATORI DESIGN SYSTEM V1
   Global visual consistency layer
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');


:root{
  /* Typography */
  --font-ui:"Poppins",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;

  /* Brand */
  --hatori-blue:#168dff;
  --hatori-cyan:#36d8ff;

  /* Text */
  --hatori-text:#f4fbff;
  --hatori-text-soft:#b4d3e9;
  --hatori-muted:#79a6c7;
  --hatori-label:#7eb7da;

  /* Surfaces */
  --hatori-surface:#073467;
  --hatori-surface-dark:#05284f;

  /* Borders */
  --hatori-border:rgba(65,185,245,.22);
  --hatori-border-active:rgba(54,216,255,.55);

  /* Radius */
  --radius-sm:8px;
  --radius-md:10px;
  --radius-lg:14px;
  --radius-panel:18px;

  /* Control sizing */
  --control-sm:34px;
  --control-md:40px;
  --control-lg:46px;
}


/* =========================================================
   GLOBAL FONT
   ========================================================= */

html,
body,
button,
input,
select,
textarea{
  font-family:var(--font-ui) !important;
}

body{
  font-size:13px;
  font-weight:400;
  line-height:1.5;
}


/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6{
  font-family:var(--font-ui) !important;
  color:var(--hatori-text);
  font-weight:700;
}


/* Page title */
.topbar h1{
  font-size:28px;
  font-weight:700;
  letter-spacing:-.8px;
}


/* Hero titles */
.hero h2,
.domains-hero h2,
.domain-detail-hero h2,
.users-hero h2,
.pyramid-hero h2{
  font-family:var(--font-ui) !important;
  font-weight:700;
  letter-spacing:-1.2px;
}


/* Section headings */
.panel-title h3,
.users-panel-head h3,
.versions-heading h2,
.pyramid-editor-head h2{
  font-weight:700;
  letter-spacing:-.3px;
}


/* Eyebrow / section labels */
.eyebrow{
  font-family:var(--font-ui) !important;
  font-size:10px;
  font-weight:800;
  letter-spacing:2.2px;
  text-transform:uppercase;
}


/* Small structural labels */
.stat-top span,
.domain-summary span,
.detail-info-card > span,
.pyramid-library-head span{
  font-family:var(--font-ui) !important;
  font-size:9px;
  font-weight:800;
  letter-spacing:1.4px;
  text-transform:uppercase;
}


/* =========================================================
   GLOBAL CONTROLS
   ========================================================= */

button,
input,
select,
textarea{
  font-family:var(--font-ui) !important;
}

button{
  font-weight:600;
}


/* =========================================================
   PRIMARY BUTTON FAMILY
   ========================================================= */

.primary-btn,
.domain-add-btn,
.users-add-btn,
.modal-primary{
  min-height:var(--control-lg);

  padding:0 18px;

  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;

  color:#fff;

  font-size:11px;
  font-weight:700;
  letter-spacing:.7px;

  border:1px solid rgba(87,218,255,.48);
  border-radius:var(--radius-md);

  background:
    linear-gradient(
      135deg,
      #0877f7,
      #25c9f4
    );

  box-shadow:
    0 8px 22px rgba(0,130,255,.18);

  transition:
    border-color .12s ease,
    filter .12s ease,
    opacity .12s ease;
}

.primary-btn:hover,
.domain-add-btn:hover,
.users-add-btn:hover,
.modal-primary:hover{
  filter:brightness(1.07);
}


/* =========================================================
   SECONDARY BUTTON FAMILY
   ========================================================= */

.secondary-btn,
.outline-btn,
.export-btn,
.pagination-btn,
.row-action{
  min-height:var(--control-md);

  padding:0 14px;

  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;

  color:#aee7ff;

  font-size:10px;
  font-weight:600;
  letter-spacing:.3px;

  border:1px solid var(--hatori-border);
  border-radius:var(--radius-sm);

  background:rgba(7,65,123,.42);
}

.secondary-btn:hover,
.outline-btn:hover,
.export-btn:hover,
.pagination-btn:hover,
.row-action:hover{
  color:#fff;
  border-color:var(--hatori-border-active);
  background:rgba(10,91,158,.52);
}


/* =========================================================
   DANGER / WARNING
   ========================================================= */

.warning-btn{
  min-height:var(--control-md);
  padding:0 14px;

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

  border-radius:var(--radius-sm);
}


/* =========================================================
   FORM CONTROLS
   ========================================================= */

.hatori-modal input,
.hatori-modal select,
.hatori-modal textarea,
.domain-toolbar select{
  font-family:var(--font-ui) !important;

  color:#eef9ff;

  font-size:12px;
  font-weight:500;

  border:1px solid var(--hatori-border);
  border-radius:var(--radius-md);

  background:#062d5b;
}

.hatori-modal input,
.hatori-modal select{
  min-height:44px;
}

.hatori-modal textarea{
  line-height:1.6;
}

.hatori-modal input:focus,
.hatori-modal select:focus,
.hatori-modal textarea:focus{
  border-color:var(--hatori-cyan);

  box-shadow:
    0 0 0 2px rgba(54,216,255,.08);
}


/* Form labels */
.form-grid label,
.modal-label,
.version-form-top label{
  color:#9fcbe7;

  font-size:9px;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
}


/* Help / description */
.field-help,
.version-modal-subtitle{
  color:#719cbd;

  font-size:9px;
  font-weight:400;
  letter-spacing:0;
}


/* =========================================================
   MODALS
   ========================================================= */

.hatori-modal{
  border-radius:var(--radius-panel);

  border:
    1px solid rgba(61,195,250,.30);

  background:
    linear-gradient(
      145deg,
      #0a3a73,
      #061f46
    );
}

.modal-header h2{
  font-size:22px;
  font-weight:700;
  letter-spacing:-.5px;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.nav-label{
  font-family:var(--font-ui) !important;

  font-size:9px;
  font-weight:800;
  letter-spacing:1.8px;
}

.nav-link b{
  font-family:var(--font-ui) !important;

  font-size:13px;
  font-weight:600;
}


/* =========================================================
   PROFILE
   ========================================================= */

.profile-info strong{
  font-size:12px;
  font-weight:600;
}

.profile-info small{
  font-size:9px;
  font-weight:500;
  letter-spacing:1px;
}


/* =========================================================
   TABLES
   ========================================================= */

.domain-table th{
  font-family:var(--font-ui) !important;

  font-size:9px;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
}

.domain-table td{
  font-family:var(--font-ui) !important;

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

.domain-name-cell,
.domain-name-cell button{
  font-weight:600 !important;
}


/* =========================================================
   BADGES
   ========================================================= */

.domain-badge,
.renewal-badge,
.user-role-badge,
.user-status-badge{
  font-family:var(--font-ui) !important;

  font-size:8px;
  font-weight:700;
  letter-spacing:.7px;
}


/* =========================================================
   PYRAMID TYPOGRAPHY ONLY
   DO NOT TOUCH TREE GEOMETRY
   ========================================================= */

.pyramid-brand-toggle strong{
  font-family:var(--font-ui) !important;
  font-size:10px;
  font-weight:700;
}

.pyramid-list-item strong{
  font-family:var(--font-ui) !important;
  font-size:11px;
  font-weight:600;
}

.pyramid-list-item small{
  font-size:8px;
  font-weight:500;
}

.pyramid-head-column header strong{
  font-family:var(--font-ui) !important;
  font-size:13px;
  font-weight:600;
}

.pyramid-node-link strong{
  font-family:var(--font-ui) !important;
  font-size:10px;
  font-weight:600;
}


/* Pyramid controls */

.pyramid-add-domain,
.pyramid-add-child,
.pyramid-toolbar button,
.pyramid-floating-menu button{
  font-family:var(--font-ui) !important;
  font-weight:700;
}


/* =========================================================
   DISABLED
   ========================================================= */

button:disabled{
  opacity:.4;
  cursor:not-allowed;
}


/* =========================================================
   MOBILE TYPOGRAPHY
   ========================================================= */

@media(max-width:650px){

  .topbar h1{
    font-size:25px;
  }

  .domains-hero h2,
  .users-hero h2,
  .pyramid-hero h2{
    font-size:28px;
  }

  .domain-detail-hero h2{
    font-size:28px;
  }
}


/* =========================================================
   HATORI HEADING TYPOGRAPHY
   Restore original strong heading character
   ========================================================= */

:root{
  --font-heading:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}


/* Major headings use original HATORI typography */

.topbar h1,
.hero h1,
.hero h2,
.domains-hero h1,
.domains-hero h2,
.domain-detail-hero h1,
.domain-detail-hero h2,
.users-hero h1,
.users-hero h2,
.pyramid-hero h1,
.pyramid-hero h2{
  font-family:var(--font-heading) !important;
}


/* Dashboard hero */

.hero h2{
  font-weight:800;
  letter-spacing:-2px;
}


/* Page hero headings */

.domains-hero h2,
.domain-detail-hero h2,
.users-hero h2,
.pyramid-hero h2{
  font-weight:800;
  letter-spacing:-1.5px;
}


/* Page title: Dashboard / Domains / Users / Pyramid */

.topbar h1{
  font-weight:800;
  letter-spacing:-1px;
}


/* Keep smaller UI typography Poppins */

button,
input,
select,
textarea,
.nav-link,
.eyebrow,
.stat-top,
.domain-table,
.profile,
.modal-label{
  font-family:var(--font-ui) !important;
}



/* =========================================================
   HATORI DESIGN SYSTEM V1.1
   Controls / Buttons / Cards
   ========================================================= */


/* ---------- CONTROL TOKENS ---------- */

:root{
  --ui-control-h:42px;
  --ui-control-sm:34px;

  --ui-radius-control:9px;
  --ui-radius-card:14px;
  --ui-radius-panel:18px;

  --ui-border:rgba(64,180,238,.22);
  --ui-border-hover:rgba(54,216,255,.48);

  --ui-card-bg:rgba(7,53,103,.72);
  --ui-card-bg-hover:rgba(9,65,122,.78);
}


/* =========================================================
   BUTTON FOUNDATION
   ========================================================= */

.primary-btn,
.secondary-btn,
.outline-btn,
.domain-add-btn,
.users-add-btn,
.export-btn,
.warning-btn,
.row-action{
  box-sizing:border-box;

  min-height:var(--ui-control-h);

  padding:0 15px;

  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;

  font-family:var(--font-ui) !important;
  font-size:10px;
  font-weight:700;
  line-height:1;
  letter-spacing:.45px;

  border-radius:var(--ui-radius-control);

  white-space:nowrap;
}


/* Primary */

.primary-btn,
.domain-add-btn,
.users-add-btn{
  color:#fff;

  border:
    1px solid rgba(65,207,255,.46);

  background:
    linear-gradient(
      135deg,
      #087cf7,
      #28c9f3
    );

  box-shadow:
    0 8px 20px rgba(0,126,255,.16);
}


/* Secondary */

.secondary-btn,
.outline-btn,
.export-btn,
.row-action{
  color:#b9e8ff;

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

  background:
    rgba(6,54,104,.62);

  box-shadow:none;
}


/* Warning */

.warning-btn{
  color:#ff9ca4;

  border:
    1px solid rgba(255,94,110,.32);

  background:
    rgba(117,28,47,.20);
}


/* Hover */

.primary-btn:hover,
.domain-add-btn:hover,
.users-add-btn:hover{
  filter:brightness(1.06);
}

.secondary-btn:hover,
.outline-btn:hover,
.export-btn:hover,
.row-action:hover{
  color:#fff;

  border-color:
    var(--ui-border-hover);

  background:
    rgba(9,76,139,.72);
}


/* Small row controls */

.row-action,
.pagination-btn{
  min-height:var(--ui-control-sm);
}


/* Icon buttons */

.modal-close,
.pyramid-head-menu,
.pyramid-node-menu{
  font-family:var(--font-ui) !important;
}


/* =========================================================
   FORM FOUNDATION
   ========================================================= */

.hatori-modal input,
.hatori-modal select,
.domain-toolbar select,
.domain-search input{
  box-sizing:border-box;

  min-height:var(--ui-control-h);

  font-family:var(--font-ui) !important;
  font-size:11px;
  font-weight:500;

  border-radius:var(--ui-radius-control);
}


.hatori-modal textarea{
  box-sizing:border-box;

  min-height:90px;

  font-family:var(--font-ui) !important;
  font-size:11px;
  font-weight:500;
  line-height:1.6;

  border-radius:var(--ui-radius-control);
}


/* Search/select use same visual language */

.domain-search,
.domain-toolbar select{
  border-color:var(--ui-border);
}


/* =========================================================
   CARD FOUNDATION
   ========================================================= */

.stat-card,
.panel,
.domain-summary,
.domain-table-panel,
.detail-info-card,
.users-stat,
.users-panel,
.pyramid-library,
.pyramid-workspace{
  border-color:
    var(--ui-border);

  border-radius:
    var(--ui-radius-card);
}


/* Dashboard stat cards */

.stat-card{
  min-height:126px;
  padding:21px;
}


/* Numeric stat */

.stat-card > strong{
  font-family:var(--font-heading) !important;

  font-size:27px;
  font-weight:800;
  letter-spacing:-.8px;
}


/* Stat helper */

.stat-card > small{
  font-family:var(--font-ui) !important;

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


/* =========================================================
   DASHBOARD PANELS
   ========================================================= */

.panel{
  border-radius:var(--ui-radius-panel);
}

.panel-title h3{
  font-family:var(--font-heading) !important;

  font-size:18px;
  font-weight:800;
  letter-spacing:-.4px;
}


/* Quick access rows */

.quick-actions{
  gap:10px;
}

.quick-actions button{
  min-height:66px;

  padding:12px 15px;

  border-radius:11px;
  border-color:var(--ui-border);
}

.quick-actions strong{
  font-family:var(--font-ui) !important;
  font-size:11px;
  font-weight:700;
}

.quick-actions small{
  font-family:var(--font-ui) !important;
  font-size:9px;
  font-weight:400;
}


/* =========================================================
   TABLE FOUNDATION
   ========================================================= */

.domain-table th{
  height:44px;
  padding-top:0;
  padding-bottom:0;

  vertical-align:middle;
}

.domain-table td{
  min-height:52px;
  padding-top:13px;
  padding-bottom:13px;
}


/* =========================================================
   MODAL FOUNDATION
   ========================================================= */

.hatori-modal{
  border-radius:var(--ui-radius-panel);
}

.modal-header{
  margin-bottom:22px;
}

.modal-actions{
  gap:10px;
}


/* =========================================================
   CONSISTENT FOCUS
   ========================================================= */

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible{
  outline:
    2px solid rgba(54,216,255,.68);

  outline-offset:2px;
}


/* =========================================================
   DO NOT ALTER PYRAMID GEOMETRY
   Only normalize its control typography.
   ========================================================= */

.pyramid-add-domain,
.pyramid-add-child{
  font-family:var(--font-ui) !important;
  font-size:9px;
  font-weight:700;
  letter-spacing:.5px;
}

.pyramid-toolbar button{
  font-family:var(--font-ui) !important;
  font-size:9px;
  font-weight:700;
}



/* =========================================================
   HATORI DESIGN SYSTEM V1.2
   Dashboard Layout / Vertical Rhythm
   ========================================================= */

:root{
  --space-page-x:34px;

  --space-section:22px;
  --space-section-lg:26px;

  --panel-pad:24px;
}


/* ---------------------------------------------------------
   PAGE SHELL
   --------------------------------------------------------- */

.main-content{
  padding:
    26px
    var(--space-page-x)
    42px;
}


/* Topbar should feel separate from page content */

.topbar{
  min-height:62px;
  margin-bottom:22px;
}


/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */

.hero{
  min-height:280px;

  padding:
    38px
    40px;

  border-radius:20px;
}


/*
 * Keep content comfortably inside hero.
 */
.hero-content{
  max-width:760px;
}


.hero p{
  margin-bottom:0;
}


/* ---------------------------------------------------------
   HERO -> STATS
   --------------------------------------------------------- */

.stats{
  margin-top:
    var(--space-section);
}


/* Keep all six dashboard stats equal */

.stat-card{
  min-height:126px;

  padding:
    20px;

  display:flex;
  flex-direction:column;
}


/*
 * Keep number/helper alignment consistent,
 * even when Storage has a meter.
 */
.stat-card > strong{
  margin-top:14px;
}

.stat-card > small{
  margin-top:8px;
}


/* ---------------------------------------------------------
   STATS -> MAIN PANELS
   --------------------------------------------------------- */

.dashboard-columns{
  margin-top:
    var(--space-section);

  gap:
    var(--space-section);
}


/* Main dashboard panels */

.dashboard-columns > .panel{
  min-width:0;
  padding:
    var(--panel-pad);
}


/* Panel title rhythm */

.panel-title{
  min-height:45px;

  margin-bottom:18px;
}


/* ---------------------------------------------------------
   QUICK ACCESS
   --------------------------------------------------------- */

.quick-actions{
  gap:10px;
}

.quick-actions button{
  min-height:66px;
  padding:12px 14px;

  transform:none;
}

.quick-actions button:hover{
  /*
   * No horizontal jump.
   * It made cards feel like they collide with
   * the panel edge.
   */
  transform:none;
}


/* ---------------------------------------------------------
   SYSTEM STATUS
   --------------------------------------------------------- */

.service-list{
  gap:10px;
}


/*
 * Match service rows with Quick Access rhythm.
 */
.service-item{
  min-height:52px;
}


/* ---------------------------------------------------------
   PANEL BOTTOM SAFETY
   --------------------------------------------------------- */

.dashboard-columns{
  align-items:stretch;
}

.dashboard-columns > .panel{
  height:auto;
}


/* ---------------------------------------------------------
   DESKTOP RESPONSIVE SAFETY
   --------------------------------------------------------- */

@media(max-width:1200px){

  :root{
    --space-page-x:26px;
  }

  .stats{
    grid-template-columns:
      repeat(3,1fr);
  }

}


/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media(max-width:900px){

  :root{
    --space-page-x:20px;
    --space-section:18px;
  }

  .main-content{
    padding-top:20px;
  }

  .dashboard-columns{
    grid-template-columns:1fr;
  }

  .hero{
    padding:30px;
  }

}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media(max-width:650px){

  :root{
    --space-page-x:14px;
    --space-section:14px;
  }

  .main-content{
    padding:
      16px
      var(--space-page-x)
      28px;
  }

  .topbar{
    min-height:54px;
    margin-bottom:16px;
  }

  .hero{
    min-height:auto;

    padding:
      25px
      20px;

    border-radius:16px;
  }

  .stats{
    margin-top:
      var(--space-section);
  }

  .dashboard-columns{
    margin-top:
      var(--space-section);
  }

  .panel{
    padding:18px;
  }

}



/* =========================================================
   HATORI DESIGN SYSTEM V1.3
   DOMAINS PAGE POLISH
   ========================================================= */


/* ---------------------------------------------------------
   DOMAINS PAGE RHYTHM
   --------------------------------------------------------- */

.domains-hero{
  margin-bottom:0;
}

.domain-lifecycle-bar{
  margin-top:18px !important;

  min-height:56px;

  padding:10px 12px;

  border-radius:14px;
}


/* ---------------------------------------------------------
   LIFECYCLE TABS
   --------------------------------------------------------- */

.domain-lifecycle-bar .domain-tabs{
  gap:7px;
}

.domain-lifecycle-bar .domain-tab{
  box-sizing:border-box;

  min-height:34px;

  padding:0 13px;

  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  gap:8px;

  font-family:var(--font-ui) !important;
  font-size:9px;
  font-weight:700;
  letter-spacing:.6px;

  border-radius:8px;
}

.domain-lifecycle-bar .domain-tab span{
  min-width:22px;
  height:20px;

  padding:0 6px;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  border-radius:6px;

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


/* Export is a compact secondary action */

.domain-lifecycle-bar .export-btn{
  min-height:34px;

  padding:0 13px;

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


/* ---------------------------------------------------------
   SEARCH + FILTER BAR
   --------------------------------------------------------- */

.domain-toolbar{
  margin-top:14px;

  min-height:60px;

  padding:10px 12px;

  display:grid;

  grid-template-columns:
    minmax(300px,1fr)
    175px
    155px;

  gap:10px;

  align-items:center;

  border-radius:14px;
}


.domain-search{
  height:42px;

  display:flex;
  align-items:center;

  border-radius:9px;
}

.domain-search input{
  height:40px;

  font-size:11px;
}


.domain-toolbar select{
  width:100%;
  height:42px;

  font-size:10px;
}


/* ---------------------------------------------------------
   DOMAIN SUMMARY
   --------------------------------------------------------- */

.domain-summary{
  margin-top:14px;

  display:grid;

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

  gap:10px;
}


.domain-summary div{
  min-height:76px;

  padding:15px 17px;

  border-radius:12px;
}


.domain-summary span{
  font-size:8px;
  font-weight:800;
  letter-spacing:1.1px;
}


.domain-summary strong{
  margin-top:7px;

  font-family:var(--font-heading) !important;

  font-size:22px;
  font-weight:800;
  line-height:1;
}


/* ---------------------------------------------------------
   DOMAIN TABLE PANEL
   --------------------------------------------------------- */

.domain-table-panel{
  margin-top:14px;

  overflow:hidden;

  border-radius:14px;
}


.domain-table-wrap{
  overflow-x:auto;
}


/* Header */

.domain-table th{
  height:42px;

  padding-left:13px;
  padding-right:13px;

  font-size:8px;
  font-weight:800;
  letter-spacing:1px;

  white-space:nowrap;
}


/* Rows */

.domain-table td{
  height:54px;

  padding:
    10px
    13px;

  font-size:10px;

  vertical-align:middle;
}


/* Domain itself should remain strongest column */

.domain-name-cell button{
  font-size:10px;
  font-weight:700 !important;
}


/* Badges */

.domain-badge{
  min-height:22px;

  padding:0 8px;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  border-radius:6px;

  font-size:7px;
  font-weight:800;
  letter-spacing:.5px;
}


/* Edit button */

.domain-table .row-action{
  min-width:48px;
  min-height:32px;

  padding:0 10px;

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


/* ---------------------------------------------------------
   PAGINATION
   --------------------------------------------------------- */

.domain-pagination{
  min-height:50px;

  padding:9px 12px;

  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}


.domain-pagination span{
  font-family:var(--font-ui) !important;

  font-size:9px;
  font-weight:500;
}


.domain-pagination .pagination-btn{
  min-height:32px;

  padding:0 11px;

  font-size:9px;
}


/* ---------------------------------------------------------
   ADD DOMAIN BUTTON
   --------------------------------------------------------- */

.domains-hero .domain-add-btn{
  min-height:42px;

  padding:0 17px;

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


/* ---------------------------------------------------------
   TABLE HOVER
   --------------------------------------------------------- */

.domain-table tbody tr{
  transition:
    background .12s ease;
}

.domain-table tbody tr:hover{
  background:
    rgba(21,107,177,.10);
}


/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media(max-width:1000px){

  .domain-toolbar{
    grid-template-columns:
      minmax(240px,1fr)
      150px
      140px;
  }

}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media(max-width:700px){

  .domain-lifecycle-bar{
    align-items:flex-start !important;
    flex-direction:column;
  }

  .domain-lifecycle-bar .domain-tabs{
    width:100%;

    overflow-x:auto;
  }

  .domain-lifecycle-bar .export-btn{
    width:100%;
  }


  .domain-toolbar{
    grid-template-columns:1fr;

    padding:10px;
  }

  .domain-search,
  .domain-toolbar select{
    width:100%;
  }


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

  .domain-summary div{
    min-height:68px;
  }

}



/* =========================================================
   HATORI DESIGN SYSTEM V1.4
   DOMAINS VISUAL DEPTH
   ========================================================= */


/* ---------------------------------------------------------
   LIFECYCLE BAR
   --------------------------------------------------------- */

.domain-lifecycle-bar{
  position:relative;
  overflow:hidden;

  background:
    linear-gradient(
      135deg,
      rgba(8,58,112,.72),
      rgba(5,39,82,.72)
    ) !important;

  box-shadow:
    inset 0 1px rgba(255,255,255,.025);
}


/* subtle top highlight */

.domain-lifecycle-bar::before{
  content:"";

  position:absolute;
  top:0;
  left:18px;
  right:18px;

  height:1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(63,210,255,.22),
      transparent
    );

  pointer-events:none;
}


/* ---------------------------------------------------------
   SEARCH TOOLBAR
   --------------------------------------------------------- */

.domain-toolbar{
  background:
    linear-gradient(
      135deg,
      rgba(7,51,101,.68),
      rgba(5,37,78,.72)
    );

  box-shadow:
    inset 0 1px rgba(255,255,255,.025);
}


/* Search gets slightly stronger focus */

.domain-search{
  background:
    rgba(4,39,80,.72);
}

.domain-search:focus-within{
  border-color:
    rgba(54,216,255,.46);

  box-shadow:
    0 0 0 2px
    rgba(54,216,255,.05);
}


/* ---------------------------------------------------------
   SUMMARY CARDS
   --------------------------------------------------------- */

.domain-summary div{
  position:relative;
  overflow:hidden;

  border:
    1px solid rgba(61,183,240,.20);

  background:
    linear-gradient(
      145deg,
      rgba(11,65,124,.78),
      rgba(6,43,88,.78)
    );

  box-shadow:
    inset 0 1px rgba(255,255,255,.035);
}


/* Cyan atmospheric accent */

.domain-summary div::after{
  content:"";

  position:absolute;

  right:-24px;
  bottom:-34px;

  width:85px;
  height:85px;

  border-radius:50%;

  background:
    rgba(38,201,255,.08);

  filter:blur(8px);

  pointer-events:none;
}


/* Tiny index like Dashboard */

.domain-summary div::before{
  position:absolute;

  top:14px;
  right:16px;

  color:
    rgba(83,192,245,.30);

  font-family:
    var(--font-ui);

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


.domain-summary div:nth-child(1)::before{
  content:"01";
}

.domain-summary div:nth-child(2)::before{
  content:"02";
}

.domain-summary div:nth-child(3)::before{
  content:"03";
}


/* ---------------------------------------------------------
   TABLE
   --------------------------------------------------------- */

.domain-table-panel{
  border:
    1px solid rgba(62,178,237,.20);

  background:
    rgba(4,36,76,.42);

  box-shadow:
    inset 0 1px rgba(255,255,255,.025);
}


/* Stronger table header */

.domain-table thead{
  background:
    linear-gradient(
      90deg,
      rgba(10,72,135,.82),
      rgba(7,57,111,.82)
    );
}


.domain-table th{
  color:#86c7eb;
}


/* Alternating rows, extremely subtle */

.domain-table tbody tr:nth-child(even){
  background:
    rgba(13,72,126,.045);
}


/* Better row separation */

.domain-table td{
  border-bottom:
    1px solid rgba(74,166,222,.075);
}


/* ---------------------------------------------------------
   DOMAIN NAME
   --------------------------------------------------------- */

.domain-name-cell button{
  color:#edfaff;

  transition:
    color .12s ease;
}

.domain-name-cell button:hover{
  color:#38d8ff;
}


/* ---------------------------------------------------------
   EMPTY SPACE / PAGE END
   --------------------------------------------------------- */

/*
 * Domains with only a few records otherwise feels like
 * a giant empty blue canvas. Give the inventory panel
 * a visual floor without forcing excessive height.
 */

.domain-table-panel{
  margin-bottom:6px;
}


/* ---------------------------------------------------------
   ADD DOMAIN
   --------------------------------------------------------- */

.domains-hero .domain-add-btn{
  box-shadow:
    0 9px 24px
    rgba(0,135,255,.16),
    inset 0 1px
    rgba(255,255,255,.10);
}



/* =========================================================
   HATORI DESIGN SYSTEM V1.5
   DOMAIN DETAIL POLISH
   ========================================================= */


/* ---------------------------------------------------------
   BACK NAVIGATION
   --------------------------------------------------------- */

.detail-back-row{
  margin-bottom:14px;
}

.detail-back{
  display:inline-flex;
  align-items:center;
  gap:6px;

  color:#82bfe3;

  font-family:var(--font-ui) !important;
  font-size:10px;
  font-weight:600;

  transition:color .12s ease;
}


/* ---------------------------------------------------------
   DOMAIN HERO
   --------------------------------------------------------- */

.domain-detail-hero{
  min-height:150px;

  padding:26px 28px;

  border-radius:18px;

  background:
    linear-gradient(
      120deg,
      rgba(12,76,150,.90),
      rgba(6,39,82,.92)
    );

  box-shadow:
    inset 0 1px rgba(255,255,255,.04);
}


.domain-detail-hero h2{
  margin:10px 0 6px;

  font-size:36px;
  line-height:1.08;
}


.detail-brand{
  color:#91c4e4;

  font-family:var(--font-ui) !important;
  font-size:11px;
  font-weight:500;
}


.detail-status-row{
  gap:7px;
}


/* Hero action buttons */

.detail-actions{
  gap:8px;
}

.detail-actions .secondary-btn,
.detail-actions .warning-btn{
  min-height:40px;
}


/* ---------------------------------------------------------
   DOMAIN INFORMATION CARDS
   --------------------------------------------------------- */

.detail-info-grid{
  margin-top:18px;

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

  gap:12px;
}


.detail-info-card{
  position:relative;
  overflow:hidden;

  min-height:96px;

  padding:17px 18px;

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

  border-radius:12px;

  background:
    linear-gradient(
      145deg,
      rgba(10,62,119,.78),
      rgba(6,39,81,.82)
    );

  box-shadow:
    inset 0 1px rgba(255,255,255,.03);
}


/* atmospheric accent */

.detail-info-card::after{
  content:"";

  position:absolute;

  right:-28px;
  bottom:-38px;

  width:88px;
  height:88px;

  border-radius:50%;

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

  filter:blur(8px);

  pointer-events:none;
}


.detail-info-card span{
  position:relative;
  z-index:1;

  color:#7db8dc;

  font-size:8px;
  font-weight:800;
  letter-spacing:1.2px;
}


.detail-info-card strong{
  position:relative;
  z-index:1;

  margin-top:9px;

  color:#effaff;

  font-family:var(--font-ui) !important;
  font-size:13px;
  font-weight:600;
  line-height:1.35;
}


.detail-info-card small{
  position:relative;
  z-index:1;

  margin-top:5px;

  font-size:8px;
}


/* ---------------------------------------------------------
   NON RENEW PANEL
   --------------------------------------------------------- */

.non-renew-panel{
  margin-top:18px;

  padding:18px 20px;

  border-radius:12px;
}


/* ---------------------------------------------------------
   NOTES
   --------------------------------------------------------- */

.detail-notes{
  margin-top:18px;

  padding:22px 24px;
}

.detail-notes .panel-title{
  min-height:auto;
  margin-bottom:14px;
}

.detail-notes p{
  font-family:var(--font-ui) !important;
  font-size:11px;
  line-height:1.7;
}


/* ---------------------------------------------------------
   VERSION HISTORY PANEL
   --------------------------------------------------------- */

.versions-panel{
  margin-top:18px;

  padding:24px;

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

  border-radius:18px;

  background:
    linear-gradient(
      145deg,
      rgba(7,48,96,.78),
      rgba(5,34,73,.82)
    );

  box-shadow:
    inset 0 1px rgba(255,255,255,.03);
}


.versions-heading{
  min-height:58px;
  gap:20px;
}


.versions-heading h2{
  margin:5px 0;

  font-family:var(--font-heading) !important;
  font-size:20px;
  font-weight:800;
  letter-spacing:-.4px;
}


.versions-heading p{
  max-width:540px;

  font-family:var(--font-ui) !important;
  font-size:10px;
  line-height:1.6;
}


.versions-heading .domain-add-btn{
  flex:0 0 auto;

  min-height:42px;

  padding:0 16px;
}


/* ---------------------------------------------------------
   VERSION LIST
   --------------------------------------------------------- */

.version-list{
  margin-top:20px;

  gap:10px;
}


.version-empty{
  min-height:120px;

  padding:35px 20px;

  display:grid;
  place-items:center;

  font-family:var(--font-ui) !important;
  font-size:10px;

  border-radius:12px;
}


/* Version card */

.version-card{
  padding:17px;

  border:
    1px solid rgba(64,181,239,.18);

  border-radius:12px;

  background:
    linear-gradient(
      135deg,
      rgba(7,55,106,.66),
      rgba(5,40,83,.66)
    );
}


.version-card-top{
  align-items:flex-start;
}


.version-card h3{
  font-family:var(--font-heading) !important;

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


.version-meta{
  margin-top:6px;

  font-family:var(--font-ui) !important;
  font-size:8px;
}


/* ---------------------------------------------------------
   VERSION FILES
   --------------------------------------------------------- */

.version-files{
  margin-top:13px;
  gap:7px;
}


.version-file{
  min-height:58px;

  padding:11px 13px;

  border-radius:9px;

  background:
    rgba(4,38,79,.55);
}


.version-file-info span{
  font-family:var(--font-ui) !important;

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


.version-file-info strong{
  margin-top:4px;

  font-family:var(--font-ui) !important;

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


.version-file-info small{
  margin-top:4px;

  font-size:8px;
}


.version-download{
  min-height:32px;

  padding:0 10px;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  font-family:var(--font-ui) !important;

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

  border-radius:7px;
}


/* ---------------------------------------------------------
   UPLOAD VERSION MODAL
   --------------------------------------------------------- */

.version-upload-modal{
  width:min(800px,100%);
}


.version-modal-subtitle{
  font-size:9px;
  line-height:1.6;
}


.version-form-top{
  gap:14px;
}


.version-number-display{
  height:44px;

  margin-top:7px;

  font-family:var(--font-heading) !important;

  font-size:16px;

  border-radius:9px;
}


.upload-section{
  margin-top:15px;

  padding:16px;

  border-radius:12px;
}


.upload-section-heading{
  margin-bottom:12px;
}


.upload-section-heading h3{
  font-family:var(--font-heading) !important;

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


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media(max-width:900px){

  .detail-info-grid{
    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }

}


@media(max-width:650px){

  .domain-detail-hero{
    min-height:auto;
    padding:21px;
  }

  .domain-detail-hero h2{
    font-size:28px;
  }

  .detail-info-grid{
    grid-template-columns:1fr;
    gap:9px;
  }

  .detail-info-card{
    min-height:82px;
  }

  .versions-panel{
    padding:18px;
  }

  .versions-heading{
    display:block;
  }

  .versions-heading .domain-add-btn{
    width:100%;
    margin-top:16px;
  }

}



/* =========================================================
   HATORI DESIGN SYSTEM V1.6
   USERS / ACCESS MANAGEMENT
   ========================================================= */


/* ---------------------------------------------------------
   USERS HERO
   --------------------------------------------------------- */

.users-hero{
  min-height:180px;

  padding:28px 30px;

  border-radius:18px;

  background:
    linear-gradient(
      120deg,
      rgba(12,76,150,.88),
      rgba(6,39,82,.92)
    );

  box-shadow:
    inset 0 1px rgba(255,255,255,.04);
}


.users-hero h2{
  margin:9px 0 7px;

  font-family:var(--font-heading) !important;

  font-weight:800;
  letter-spacing:-1.4px;
}


.users-hero p{
  max-width:520px;

  font-family:var(--font-ui) !important;
  font-size:11px;
  line-height:1.6;
}


/* Add User CTA */

.users-hero .users-add-btn{
  min-height:42px;

  padding:0 17px;

  font-size:10px;
}


/* ---------------------------------------------------------
   USER STATS
   --------------------------------------------------------- */

.users-stats{
  margin-top:18px;

  gap:12px;
}


.users-stat{
  position:relative;
  overflow:hidden;

  min-height:92px;

  padding:17px 19px;

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

  border-radius:12px;

  background:
    linear-gradient(
      145deg,
      rgba(10,63,121,.78),
      rgba(6,40,83,.80)
    );

  box-shadow:
    inset 0 1px rgba(255,255,255,.03);
}


.users-stat::after{
  content:"";

  position:absolute;

  width:82px;
  height:82px;

  right:-30px;
  bottom:-38px;

  border-radius:50%;

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

  filter:blur(7px);

  pointer-events:none;
}


.users-stat span{
  position:relative;
  z-index:1;

  font-family:var(--font-ui) !important;

  font-size:8px;
  font-weight:800;
  letter-spacing:1.2px;
}


.users-stat strong{
  position:relative;
  z-index:1;

  display:block;

  margin-top:8px;

  font-family:var(--font-heading) !important;

  font-size:25px;
  font-weight:800;
  line-height:1;
}


/* ---------------------------------------------------------
   USER MANAGEMENT PANEL
   --------------------------------------------------------- */

.users-panel{
  margin-top:18px;

  padding:22px;

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

  border-radius:18px;

  background:
    linear-gradient(
      145deg,
      rgba(7,48,96,.78),
      rgba(5,34,73,.82)
    );

  box-shadow:
    inset 0 1px rgba(255,255,255,.03);
}


.users-panel-head{
  min-height:52px;

  margin-bottom:16px;

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


.users-panel-head h3{
  margin:4px 0 0;

  font-family:var(--font-heading) !important;

  font-size:19px;
  font-weight:800;
  letter-spacing:-.4px;
}


/* ---------------------------------------------------------
   USER SEARCH
   --------------------------------------------------------- */

.users-search{
  min-width:300px;
  height:42px;

  border-radius:9px;

  background:
    rgba(4,39,80,.72);
}


.users-search:focus-within{
  border-color:
    rgba(54,216,255,.46);

  box-shadow:
    0 0 0 2px
    rgba(54,216,255,.05);
}


.users-search input{
  height:40px;

  font-family:var(--font-ui) !important;

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


/* ---------------------------------------------------------
   USER LIST
   --------------------------------------------------------- */

.users-list{
  display:grid;
  gap:10px;
}


.user-card{
  min-height:86px;

  padding:14px 16px;

  border:
    1px solid rgba(64,181,239,.17);

  border-radius:12px;

  background:
    rgba(7,52,101,.60);

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


.user-card:hover{
  border-color:
    rgba(54,216,255,.30);

  background:
    rgba(8,61,115,.66);
}


/* Avatar */

.user-avatar{
  flex:0 0 auto;

  width:46px;
  height:46px;

  border-radius:10px;

  font-family:var(--font-heading) !important;

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


/* User identity */

.user-card strong,
.user-name{
  font-family:var(--font-ui) !important;

  font-weight:700;
}


.user-meta,
.user-email,
.user-permissions,
.user-last-login{
  font-family:var(--font-ui) !important;
}


/* ---------------------------------------------------------
   USER BADGES
   --------------------------------------------------------- */

.user-role-badge,
.user-status-badge{
  min-height:20px;

  padding:0 7px;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  border-radius:6px;

  font-size:7px;
  font-weight:800;
  letter-spacing:.7px;
}


/* ---------------------------------------------------------
   USER ACTION BUTTONS
   --------------------------------------------------------- */

.user-actions{
  gap:7px;
}


.user-actions button{
  box-sizing:border-box;

  min-height:34px;

  padding:0 11px;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  font-family:var(--font-ui) !important;

  font-size:8px;
  font-weight:700;
  letter-spacing:.6px;

  border-radius:8px;
}


/* ---------------------------------------------------------
   USER / PERMISSION MODAL
   --------------------------------------------------------- */

.user-modal{
  width:min(850px,100%);
}


.module-access-section{
  margin-top:20px;
}


.module-access-grid{
  gap:10px;
}


.module-access-card{
  border-radius:12px;

  border:
    1px solid rgba(65,185,245,.18);

  background:
    rgba(6,48,96,.46);
}


.module-access-card h3{
  font-family:var(--font-ui) !important;

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


.module-access-card p{
  font-family:var(--font-ui) !important;

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


/* Permission pills */

.permission-option{
  font-family:var(--font-ui) !important;
}


/* ALL toggle */

.module-all-btn{
  min-height:30px;

  padding:0 10px;

  font-family:var(--font-ui) !important;

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

  border-radius:7px;
}


/* ---------------------------------------------------------
   PASSWORD MODAL
   --------------------------------------------------------- */

.small-modal{
  width:min(470px,100%);
}


/* ---------------------------------------------------------
   EMPTY STATE
   --------------------------------------------------------- */

.users-empty{
  min-height:120px;

  display:grid;
  place-items:center;

  font-family:var(--font-ui) !important;

  font-size:10px;

  border-radius:12px;
}


/* ---------------------------------------------------------
   TABLET / MOBILE
   --------------------------------------------------------- */

@media(max-width:850px){

  .users-panel-head{
    align-items:stretch;
    flex-direction:column;
  }

  .users-search{
    width:100%;
    min-width:0;
  }

}


@media(max-width:650px){

  .users-hero{
    min-height:auto;
    padding:21px;
  }

  .users-stats{
    grid-template-columns:1fr;
    gap:9px;
  }

  .users-stat{
    min-height:76px;
  }

  .users-panel{
    padding:17px;
  }

  .user-card{
    padding:13px;
  }

}



/* =========================================================
   HATORI PYRAMID FINAL V1
   Single source of truth for Pyramid geometry
   ========================================================= */


/* ---------------------------------------------------------
   PAGE
   --------------------------------------------------------- */

.pyramid-hero{
  min-height:180px;

  padding:30px 32px;

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

  border-radius:18px;

  background:
    linear-gradient(
      120deg,
      rgba(12,76,150,.90),
      rgba(6,39,82,.92)
    );
}


.pyramid-hero h2{
  margin:9px 0 7px;

  font-family:var(--font-heading) !important;

  font-weight:800;
  letter-spacing:-1.5px;
}


.pyramid-hero p{
  font-family:var(--font-ui) !important;
  font-size:11px;
}


/* ---------------------------------------------------------
   WORKSPACE
   --------------------------------------------------------- */

.pyramid-workspace{
  margin-top:18px;

  display:grid;

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

  gap:18px;

  align-items:stretch;
}


.pyramid-library,
.pyramid-stage{
  border:
    1px solid var(--ui-border);

  border-radius:18px;

  background:
    linear-gradient(
      145deg,
      rgba(7,48,96,.78),
      rgba(5,34,73,.82)
    );
}


/* ---------------------------------------------------------
   LIBRARY
   --------------------------------------------------------- */

.pyramid-library{
  min-width:0;

  padding:20px;
}


.pyramid-list{
  display:grid;
  gap:9px;
}


.pyramid-brand-group{
  overflow:hidden;

  border:
    1px solid rgba(61,183,240,.18);

  border-radius:11px;

  background:
    rgba(5,43,87,.42);
}


.pyramid-brand-toggle{
  min-height:48px;
}


.pyramid-list-item{
  min-height:64px;

  border-radius:9px;
}


/* ---------------------------------------------------------
   STAGE
   --------------------------------------------------------- */

.pyramid-stage{
  min-width:0;
  overflow:hidden;
}


.pyramid-editor{
  min-width:0;
}


.pyramid-editor-head{
  min-height:112px;

  padding:22px 26px;

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

  border-bottom:
    1px solid rgba(63,177,235,.15);
}


.pyramid-editor-head h2{
  margin:5px 0 0;

  font-family:var(--font-heading) !important;

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


.pyramid-editor-actions{
  display:flex;
  gap:8px;
}


/* ---------------------------------------------------------
   TOOLBAR
   --------------------------------------------------------- */

.pyramid-toolbar{
  min-height:48px;

  padding:8px 14px;

  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;

  border-bottom:
    1px solid rgba(63,177,235,.13);

  background:
    rgba(4,35,73,.28);
}


.pyramid-toolbar button{
  min-width:32px;
  height:30px;

  padding:0 8px;

  border:
    1px solid rgba(61,188,243,.20);

  border-radius:7px;

  color:#9de6ff;

  background:
    rgba(6,55,104,.62);
}


/* ---------------------------------------------------------
   VIEWPORT / CANVAS
   --------------------------------------------------------- */

.pyramid-viewport{
  position:relative;

  min-height:560px;

  overflow:auto;

  padding:34px;

  background-image:
    linear-gradient(
      rgba(59,170,229,.045) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(59,170,229,.045) 1px,
      transparent 1px
    );

  background-size:34px 34px;
}


.pyramid-canvas{
  width:max-content;
  min-width:100%;

  display:flex;
  align-items:flex-start;
  gap:28px;

  transform-origin:
    top left;
}


/* ---------------------------------------------------------
   HEAD
   --------------------------------------------------------- */

.pyramid-head-column{
  flex:0 0 auto;

  width:max-content;
  min-width:360px;

  overflow:visible;

  border:
    1px solid rgba(54,191,245,.24);

  border-radius:15px;

  background:
    linear-gradient(
      145deg,
      rgba(8,65,125,.88),
      rgba(5,43,88,.90)
    );
}


.pyramid-head-column > header{
  min-height:88px;

  padding:17px 20px;

  border-bottom:
    1px solid rgba(62,185,241,.17);

  background:
    linear-gradient(
      120deg,
      rgba(10,89,164,.52),
      rgba(6,55,107,.30)
    );
}


.pyramid-head-type{
  color:#43dcff !important;

  font-size:8px !important;
  font-weight:800 !important;
  letter-spacing:1.5px !important;
}


.pyramid-head-title{
  margin-top:6px;
}


.pyramid-head-title strong{
  font-family:var(--font-ui) !important;

  font-size:14px !important;
  font-weight:700 !important;
}


.pyramid-head-title small{
  margin-top:4px;

  font-size:8px !important;
}


/* ---------------------------------------------------------
   HEAD BODY
   --------------------------------------------------------- */

.pyramid-head-nodes{
  width:max-content;
  min-width:100%;

  padding:14px 16px 20px;
}


.pyramid-add-domain{
  width:100%;
  min-height:40px;

  margin-bottom:24px;

  border:
    1px dashed rgba(54,203,255,.40);

  border-radius:9px;

  color:#a9ecff;

  background:
    rgba(6,62,113,.28);
}


/* ---------------------------------------------------------
   ROOT TREE
   HEAD
     |
     +---- ROOT ----> CHILD ----> CHILD
     |
     +---- ROOT ----> CHILD
   --------------------------------------------------------- */

.pyramid-tree{
  position:relative;

  width:max-content;

  padding-top:34px;
}


/*
 * Root bus begins directly underneath
 * ADD ROOT / HEAD area.
 */

.pyramid-root-spine{
  position:relative;

  display:flex;
  align-items:flex-start;

  gap:74px;

  padding-left:28px;
  padding-right:28px;
}


/*
 * HEAD -> horizontal root bus
 */

.pyramid-root-spine::before{
  content:"";

  position:absolute;

  top:-22px;
  left:50%;

  width:2px;
  height:22px;

  transform:translateX(-50%);

  background:
    #27cfff;

  box-shadow:
    0 0 8px
    rgba(39,207,255,.28);
}


/*
 * Horizontal ROOT bus.
 */

.pyramid-root-spine::after{
  content:"";

  position:absolute;

  top:0;

  left:calc(
    28px + 105px
  );

  right:calc(
    28px + 105px
  );

  height:2px;

  background:
    #27cfff;

  box-shadow:
    0 0 8px
    rgba(39,207,255,.20);
}


/* ---------------------------------------------------------
   ROOT SLOT
   --------------------------------------------------------- */

.pyramid-root-slot{
  position:relative;

  flex:0 0 auto;

  padding-top:18px;
}


/*
 * bus -> ROOT
 */

.pyramid-root-slot::before{
  content:"";

  position:absolute;

  top:0;
  left:105px;

  width:2px;
  height:18px;

  background:#27cfff;
}


/*
 * One root does not need horizontal bus.
 */

.pyramid-tree[data-root-count="1"]
.pyramid-root-spine::after{
  display:none;
}


/* ---------------------------------------------------------
   TREE BRANCH
   --------------------------------------------------------- */

.pyramid-tree-branch{
  position:relative;

  flex:0 0 auto;

  width:max-content;
}


/* ---------------------------------------------------------
   DOMAIN NODE
   --------------------------------------------------------- */

.pyramid-tree .pyramid-node{
  width:210px;
  min-width:210px;

  overflow:hidden;

  border:
    1px solid rgba(55,179,238,.22);

  border-radius:11px;

  background:
    linear-gradient(
      145deg,
      rgba(6,54,104,.96),
      rgba(4,39,81,.96)
    );

  box-shadow:
    0 9px 22px
    rgba(0,22,57,.13);
}


.pyramid-node-link{
  min-height:68px;

  padding:12px 14px;

  display:block;

  text-decoration:none;
}


.pyramid-node-link span{
  display:block;

  color:#68a9cf;

  font-size:8px;
  font-weight:700;
  letter-spacing:.5px;
  text-transform:uppercase;
}


.pyramid-node-link strong{
  display:block;

  margin-top:5px;

  color:#eefaff;

  font-family:var(--font-ui) !important;

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

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


.pyramid-node-link:hover strong{
  color:#43ddff;
}


/* ---------------------------------------------------------
   NODE ACTIONS
   --------------------------------------------------------- */

.pyramid-node-actions{
  min-height:34px;

  display:grid;

  grid-template-columns:
    1fr
    34px;

  border-top:
    1px solid rgba(61,180,239,.14);
}


.pyramid-add-child{
  min-height:34px;

  border:0;

  color:#5edfff;

  background:transparent;
}


.pyramid-node-menu{
  width:34px;

  border:
    0;

  border-left:
    1px solid rgba(61,180,239,.14);

  color:#68dcff;

  background:
    rgba(5,48,94,.35);
}


/* ---------------------------------------------------------
   CHILD CHAIN
   ROOT ----> CHILD ----> CHILD
   --------------------------------------------------------- */

.pyramid-tree-children{
  position:absolute;

  top:0;
  left:100%;

  display:flex;
  align-items:flex-start;

  gap:58px;

  padding-left:58px;
}


/*
 * parent -> child
 */

.pyramid-tree-children::before{
  content:"";

  position:absolute;

  top:51px;
  left:0;

  width:58px;
  height:2px;

  background:#27cfff;
}


/*
 * Arrow head.
 */

.pyramid-tree-children::after{
  content:"";

  position:absolute;

  top:46px;
  left:48px;

  width:9px;
  height:9px;

  border-top:
    2px solid #27cfff;

  border-right:
    2px solid #27cfff;

  transform:
    rotate(45deg);
}


/*
 * Multiple direct children:
 * keep each branch separated.
 */

.pyramid-tree-children >
.pyramid-tree-branch{
  margin-right:0;
}


/* ---------------------------------------------------------
   EMPTY HEAD
   --------------------------------------------------------- */

.pyramid-head-empty{
  min-width:210px;

  padding:26px 16px;

  color:#709bbb;

  font-size:9px;

  text-align:center;
}


/* ---------------------------------------------------------
   FLOATING ACTION MENU
   --------------------------------------------------------- */

.pyramid-floating-menu{
  width:140px;

  padding:6px;

  border-radius:9px;

  background:#062d5c;

  box-shadow:
    0 16px 40px
    rgba(0,0,0,.30);
}


.pyramid-floating-menu button{
  min-height:32px;

  padding:0 10px;

  border-radius:6px;

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


/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media(max-width:1000px){

  .pyramid-workspace{
    grid-template-columns:240px minmax(0,1fr);
  }

}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media(max-width:850px){

  .pyramid-hero{
    align-items:flex-start;
    flex-direction:column;
  }

  .pyramid-workspace{
    grid-template-columns:1fr;
  }

  .pyramid-library{
    max-height:260px;
    overflow:auto;
  }

  .pyramid-editor-head{
    align-items:flex-start;
    flex-direction:column;
  }

  .pyramid-viewport{
    min-height:480px;
    padding:24px;
  }

}


@media(max-width:650px){

  .pyramid-hero{
    min-height:auto;
    padding:21px;
  }

  .pyramid-editor-head{
    padding:18px;
  }

  .pyramid-editor-actions{
    width:100%;
  }

  .pyramid-editor-actions button{
    flex:1;
  }

  .pyramid-tree .pyramid-node{
    width:190px;
    min-width:190px;
  }

}



/* =========================================================
   PYRAMID ACCORDION HARD FIX
   ========================================================= */

.pyramid-brand-items[hidden]{
  display:none !important;
}

.pyramid-brand-group:not(.open)
.pyramid-brand-items{
  display:none !important;
}

.pyramid-brand-group.open
.pyramid-brand-items{
  display:grid !important;
}



/* =========================================================
   HATORI PYRAMID TREE V1.2
   Collision-free branch geometry
   ========================================================= */


/* ROOT container */

.pyramid-root-spine{
  position:relative !important;

  display:flex !important;
  align-items:flex-start !important;

  gap:72px !important;

  width:max-content !important;

  padding:
    18px
    28px
    0 !important;
}


/*
 * Every ROOT owns its complete horizontal chain.
 * Its width therefore includes all descendants.
 */

.pyramid-root-slot{
  position:relative !important;

  flex:0 0 auto !important;

  width:max-content !important;

  padding-top:18px !important;
}


/* branch participates in layout */

.pyramid-tree-branch{
  position:relative !important;

  display:flex !important;
  align-items:flex-start !important;

  width:max-content !important;

  flex:0 0 auto !important;
}


/* ROOT / CHILD node */

.pyramid-tree .pyramid-node{
  position:relative !important;

  flex:
    0 0 210px !important;

  width:210px !important;
  min-width:210px !important;

  z-index:2;
}


/* =========================================================
   CHILDREN
   ========================================================= */

/*
 * IMPORTANT:
 * children are NO LONGER absolute.
 *
 * This makes their width part of the branch,
 * preventing the next ROOT from occupying
 * the same space.
 */

.pyramid-tree-children{
  position:relative !important;

  top:auto !important;
  left:auto !important;

  display:flex !important;
  align-items:flex-start !important;

  gap:58px !important;

  width:max-content !important;

  padding-left:58px !important;
}


/* Parent -> first child line */

.pyramid-tree-children::before{
  content:"" !important;

  position:absolute !important;

  top:51px !important;
  left:0 !important;

  width:58px !important;
  height:2px !important;

  background:#27cfff !important;
}


/* Arrow */

.pyramid-tree-children::after{
  content:"" !important;

  position:absolute !important;

  top:46px !important;
  left:48px !important;

  width:9px !important;
  height:9px !important;

  border-top:
    2px solid #27cfff !important;

  border-right:
    2px solid #27cfff !important;

  transform:
    rotate(45deg) !important;
}


/* =========================================================
   ROOT BUS
   ========================================================= */

/*
 * Connector from HEAD down to root bus.
 */

.pyramid-root-spine::before{
  content:"" !important;

  position:absolute !important;

  top:-22px !important;
  left:50% !important;

  width:2px !important;
  height:22px !important;

  transform:
    translateX(-50%) !important;

  background:#27cfff !important;
}


/*
 * Root bus.
 *
 * Keep it behind cards.
 */

.pyramid-root-spine::after{
  content:"" !important;

  position:absolute !important;

  top:18px !important;

  left:133px !important;
  right:133px !important;

  height:2px !important;

  background:#27cfff !important;

  z-index:0 !important;
}


/* bus -> each ROOT */

.pyramid-root-slot::before{
  content:"" !important;

  position:absolute !important;

  top:0 !important;
  left:105px !important;

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

  background:#27cfff !important;
}


/* one root: horizontal bus unnecessary */

.pyramid-tree[data-root-count="1"]
.pyramid-root-spine::after{
  display:none !important;
}


/* =========================================================
   HEAD COLUMN MUST EXPAND WITH TREE
   ========================================================= */

.pyramid-head-column{
  width:max-content !important;

  min-width:360px !important;

  overflow:visible !important;
}


.pyramid-head-nodes{
  width:max-content !important;

  min-width:100% !important;
}


.pyramid-tree{
  width:max-content !important;

  min-width:100% !important;

  overflow:visible !important;
}


/*
 * Give chains breathing room before edge of HEAD.
 */

.pyramid-root-spine{
  margin-bottom:20px;
}



/* =========================================================
   HATORI DESIGN SYSTEM V1.7
   COMPACT SIDEBAR + PAGE ALIGNMENT
   ========================================================= */

:root{
  --sidebar-width:210px;
}


/* =========================================================
   APP SHELL
   ========================================================= */

.app-shell{
  grid-template-columns:
    var(--sidebar-width)
    minmax(0,1fr) !important;
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.main-content{
  min-width:0;

  padding-left:28px;
  padding-right:28px;
}


/* Every direct page section uses same horizontal axis */

.main-content > .topbar,
.main-content > .hero,
.main-content > .domains-hero,
.main-content > .domain-detail-hero,
.main-content > .users-hero,
.main-content > .pyramid-hero,
.main-content > .stats,
.main-content > .dashboard-columns,
.main-content > .domain-lifecycle-bar,
.main-content > .domain-toolbar,
.main-content > .domain-summary,
.main-content > .domain-table-panel,
.main-content > .detail-info-grid,
.main-content > .detail-notes,
.main-content > .versions-panel,
.main-content > .users-stats,
.main-content > .users-panel,
.main-content > .pyramid-workspace{
  width:100%;
  max-width:none;
  box-sizing:border-box;

  margin-left:0;
  margin-right:0;
}


/* =========================================================
   USERS ALIGNMENT
   ========================================================= */

/*
 * Users previously had page-specific horizontal sizing.
 * Force hero/stats/accounts onto same vertical guides.
 */

.users-hero,
.users-stats,
.users-panel{
  width:100% !important;

  margin-left:0 !important;
  margin-right:0 !important;
}


/* Hero contents should not create page offset */

.users-hero{
  box-sizing:border-box;
}


/* =========================================================
   DOMAINS WIDTH SAFETY
   ========================================================= */

.domains-hero,
.domain-lifecycle-bar,
.domain-toolbar,
.domain-summary,
.domain-table-panel{
  min-width:0;
}


/*
 * Table may scroll internally when viewport is genuinely
 * too narrow. It must never enlarge the whole application.
 */

.domain-table-panel{
  overflow:hidden;
}

.domain-table-wrap{
  width:100%;
  max-width:100%;

  overflow-x:auto;
  overflow-y:hidden;
}


/*
 * Keep filters inside available width.
 */

.domain-toolbar{
  grid-template-columns:
    minmax(260px,1fr)
    minmax(130px,170px)
    minmax(120px,150px);
}


/* =========================================================
   PROFILE SAFETY
   ========================================================= */

.profile{
  flex:0 0 auto;
}


/* =========================================================
   LARGE DESKTOP
   ========================================================= */

@media(min-width:1400px){

  .main-content{
    padding-left:30px;
    padding-right:30px;
  }

}


/* =========================================================
   LAPTOP
   ========================================================= */

@media(max-width:1200px){

  :root{
    --sidebar-width:195px;
  }

  .sidebar{
    width:var(--sidebar-width);
    min-width:var(--sidebar-width);
  }

  .final-sidebar-logo img{
    max-width:160px;
  }

  .main-content{
    padding-left:22px;
    padding-right:22px;
  }

}


/* =========================================================
   MOBILE SIDEBAR
   Existing mobile open/close behavior remains unchanged.
   ========================================================= */

@media(max-width:850px){

  :root{
    --sidebar-width:250px;
  }

  .sidebar{
    width:var(--sidebar-width);
    min-width:var(--sidebar-width);
  }

}



/* =========================================================
   HATORI DOMAIN BRAND SWITCHER V1
   ========================================================= */

.domain-brand-bar{
  margin-top:14px;

  padding:10px 12px;

  overflow:hidden;

  border:
    1px solid rgba(56,174,245,.18);

  border-radius:14px;

  background:
    linear-gradient(
      135deg,
      rgba(8,58,112,.72),
      rgba(5,39,82,.72)
    );

  box-shadow:
    inset 0 1px
    rgba(255,255,255,.025);
}


.domain-brand-tabs{
  display:flex;
  align-items:center;
  gap:7px;

  overflow-x:auto;
  overflow-y:hidden;

  scrollbar-width:none;
}


.domain-brand-tabs::-webkit-scrollbar{
  display:none;
}


.domain-brand-tab{
  flex:0 0 auto;

  min-height:36px;

  padding:0 10px 0 13px;

  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  color:#8fb4d0;

  font-family:
    var(--font-ui) !important;

  font-size:9px;
  font-weight:800;
  letter-spacing:.6px;

  border:
    1px solid rgba(57,166,225,.18);

  border-radius:9px;

  background:
    rgba(4,43,87,.62);

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


.domain-brand-tab:hover{
  color:#dff7ff;

  border-color:
    rgba(54,216,255,.34);

  background:
    rgba(8,70,129,.62);
}


.domain-brand-tab.active{
  color:#fff;

  border-color:
    #31d6ff;

  background:
    linear-gradient(
      135deg,
      rgba(13,119,238,.82),
      rgba(16,112,192,.72)
    );

  box-shadow:
    inset 0 1px
    rgba(255,255,255,.08);
}


.domain-brand-count{
  min-width:24px;
  height:22px;

  padding:0 6px;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  color:#9edfff;

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

  border-radius:7px;

  background:
    rgba(7,74,130,.78);
}


.domain-brand-tab.active
.domain-brand-count{
  color:#a9ebff;

  background:
    rgba(5,85,145,.72);
}



/* =========================================================
   HATORI DESKTOP DENSITY V2
   Pedrosa-like information density
   ========================================================= */

@media(min-width:851px){

  :root{
    --sidebar-width:185px;
    --space-page-x:22px;
    --space-section:16px;
    --panel-pad:20px;

    --ui-control-h:38px;
    --ui-control-sm:31px;
  }


  /* APP SHELL */

  .app-shell{
    grid-template-columns:
      var(--sidebar-width)
      minmax(0,1fr) !important;
  }

  .sidebar{
    width:var(--sidebar-width);
    min-width:var(--sidebar-width);

    padding-left:11px;
    padding-right:11px;
  }

  .main-content{
    padding:
      20px
      var(--space-page-x)
      32px !important;
  }


  /* LOGO */

  .sidebar-logo{
    min-height:105px;
    padding:15px 4px;
  }

  .final-sidebar-logo img{
    max-width:148px;
  }


  /* SIDEBAR */

  .sidebar-nav{
    margin-top:10px;
  }

  .nav-label{
    margin-bottom:7px;

    padding-left:8px;

    font-size:7px;
    letter-spacing:1.5px;
  }

  .nav-label.second{
    margin-top:24px;
  }

  .nav-link{
    min-height:45px;

    padding:
      0
      11px;

    gap:9px;

    border-radius:9px;
  }

  .nav-link b{
    font-size:10px;
  }

  .nav-link span{
    font-size:13px;
  }


  /* TOPBAR */

  .topbar{
    min-height:52px;
    margin-bottom:16px;
  }

  .topbar h1{
    margin-top:3px;

    font-size:25px;
  }

  .eyebrow{
    font-size:8px;
    letter-spacing:1.8px;
  }

  .profile-icon{
    width:38px;
    height:38px;

    font-size:11px;
  }

  .profile-info strong{
    font-size:10px;
  }

  .profile-info small{
    font-size:7px;
  }

  .profile .outline-btn{
    min-height:36px;

    padding:0 12px;

    font-size:9px;
  }


  /* DASHBOARD HERO */

  .hero{
    min-height:235px;

    padding:
      30px
      34px;

    border-radius:18px;
  }

  .hero-content{
    max-width:680px;
  }

  .hero h2{
    margin:
      9px
      0
      13px;

    font-size:
      clamp(34px,3.5vw,46px);

    line-height:1.03;
  }

  .hero p{
    max-width:620px;

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

  .hero-tags{
    margin-top:18px;
    gap:7px;
  }

  .hero-tags span{
    padding:6px 9px;

    font-size:7px;
  }


  /* H VISUAL */

  .hero-visual{
    width:205px;
    height:205px;

    flex-basis:205px;
  }

  .hero-h{
    width:82px;
    height:82px;

    border-radius:21px;

    font-size:54px;
  }

  .ring-one{
    width:125px;
    height:125px;
  }

  .ring-two{
    width:165px;
    height:165px;
  }

  .ring-three{
    width:200px;
    height:200px;
  }


  /* DASHBOARD STATS */

  .stats{
    margin-top:16px;
    gap:10px;
  }

  .stat-card{
    min-height:105px;

    padding:16px;
  }

  .stat-top span{
    font-size:7px;
  }

  .stat-card > strong{
    margin-top:11px;

    font-size:25px;
  }

  .stat-card > small{
    margin-top:6px;

    font-size:8px;
  }

  .meter{
    margin-top:10px;
  }


  /* DASHBOARD LOWER PANELS */

  .dashboard-columns{
    margin-top:16px;
    gap:16px;
  }

  .dashboard-columns > .panel,
  .panel{
    padding:20px;
  }

  .panel-title{
    min-height:38px;

    margin-bottom:14px;
  }

  .panel-title h3{
    font-size:17px;
  }

  .quick-actions{
    gap:8px;
  }

  .quick-actions button{
    min-height:57px;

    padding:9px 12px;
  }

  .quick-icon{
    width:36px;
    height:36px;

    font-size:17px;
  }

  .quick-actions strong{
    font-size:10px;
  }

  .quick-actions small{
    margin-top:3px;

    font-size:8px;
  }

  .service-list{
    gap:8px;
  }

  .service-item{
    min-height:46px;
  }


  /* OTHER PAGE HEROES */

  .domains-hero,
  .domain-detail-hero,
  .users-hero,
  .pyramid-hero{
    min-height:145px;

    padding:
      23px
      26px;

    border-radius:16px;
  }

  .domains-hero h2,
  .domain-detail-hero h2,
  .users-hero h2,
  .pyramid-hero h2{
    font-size:
      clamp(27px,2.7vw,36px);

    line-height:1.08;
  }

  .domains-hero p,
  .users-hero p,
  .pyramid-hero p{
    font-size:10px;
  }


  /* DOMAIN WORKSPACE */

  .domain-lifecycle-bar{
    margin-top:14px !important;
  }

  .domain-toolbar,
  .domain-brand-bar,
  .domain-table-panel{
    margin-top:10px;
  }

  .domain-table th{
    height:38px;
  }

  .domain-table td{
    height:48px;

    padding-top:8px;
    padding-bottom:8px;
  }


  /* USERS */

  .users-stats,
  .users-panel{
    margin-top:14px;
  }

  .users-stat{
    min-height:78px;

    padding:14px 16px;
  }

  .users-stat strong{
    font-size:22px;
  }

  .users-panel{
    padding:18px;
  }


  /* PYRAMID */

  .pyramid-workspace{
    margin-top:14px;
    gap:14px;

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

  .pyramid-library{
    padding:16px;
  }

  .pyramid-editor-head{
    min-height:92px;

    padding:18px 22px;
  }

}



/* =========================================================
   HATORI SIDEBAR GEOMETRY FINAL V2
   ========================================================= */

@media(min-width:851px){

  :root{
    --sidebar-width:185px;
  }


  /* IMPORTANT:
     width now INCLUDES padding */

  .sidebar{
    box-sizing:border-box !important;

    width:var(--sidebar-width) !important;
    min-width:var(--sidebar-width) !important;
    max-width:var(--sidebar-width) !important;

    padding:
      16px
      12px
      14px !important;
  }


  /* -------------------------------------------------------
     LOGO HEADER
     ------------------------------------------------------- */

  .sidebar-logo,
  .final-sidebar-logo{
    box-sizing:border-box !important;

    width:100% !important;

    height:78px !important;
    min-height:78px !important;
    max-height:78px !important;

    padding:
      4px
      3px
      13px !important;

    margin:0 !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    gap:0 !important;

    border-bottom:
      1px solid rgba(63,181,239,.18) !important;

    overflow:hidden !important;
  }


  .sidebar-logo::after,
  .final-sidebar-logo::after{
    display:none !important;
  }


  .sidebar-logo img,
  .final-sidebar-logo img{
    display:block !important;

    width:100% !important;
    height:auto !important;

    max-width:158px !important;
    max-height:58px !important;

    object-fit:contain !important;
    object-position:center center !important;

    margin:0 auto !important;
  }


  /* -------------------------------------------------------
     NAVIGATION
     ------------------------------------------------------- */

  .sidebar-nav{
    padding-top:16px !important;
    margin-top:0 !important;
  }


  .nav-label{
    padding:
      0
      8px
      7px !important;

    margin:0 !important;
  }


  .nav-label.second{
    margin-top:20px !important;
  }


  .nav-link{
    box-sizing:border-box !important;

    width:100% !important;

    min-height:43px !important;

    margin:3px 0 !important;

    padding:
      0
      10px !important;

    gap:8px !important;
  }


  .nav-link span{
    width:20px !important;

    font-size:13px !important;
  }


  .nav-link b{
    font-size:10px !important;
  }


  /* -------------------------------------------------------
     BOTTOM STATUS
     ------------------------------------------------------- */

  .sidebar-bottom{
    left:12px !important;
    right:12px !important;
    bottom:14px !important;
  }


  .server-state{
    padding:10px !important;
  }


  .server-state strong{
    font-size:8px !important;
  }


  .server-state small{
    margin-top:3px !important;

    font-size:7px !important;
  }

}



/* =========================================================
   DOMAINS TOOLBAR FINAL
   Brand filtering lives in Brand Switcher
   ========================================================= */

.domain-toolbar{
  grid-template-columns:
    minmax(300px,1fr)
    minmax(130px,165px) !important;
}


@media(max-width:700px){

  .domain-toolbar{
    grid-template-columns:
      1fr !important;
  }

}



/* =========================================================
   HATORI PYRAMID VERTICAL DESCENDANTS V1
   ROOTS = horizontal
   CHILDREN = downward
   ========================================================= */


/*
 * A branch is now a vertical unit:
 *
 * NODE
 *  |
 * CHILDREN
 */

.pyramid-tree-branch{
  position:relative !important;

  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;

  width:max-content !important;

  flex:0 0 auto !important;
}


/* ---------------------------------------------------------
   CHILD GROUP
   --------------------------------------------------------- */

.pyramid-tree-children{
  position:relative !important;

  top:auto !important;
  left:auto !important;

  display:flex !important;
  flex-direction:row !important;
  align-items:flex-start !important;
  justify-content:center !important;

  width:max-content !important;

  gap:28px !important;

  margin-top:48px !important;

  padding:
    22px
    0
    0 !important;
}


/*
 * Parent -> child vertical trunk.
 */

.pyramid-tree-children::before{
  content:"" !important;

  position:absolute !important;

  top:-48px !important;
  left:50% !important;

  width:2px !important;
  height:48px !important;

  transform:
    translateX(-50%) !important;

  background:#27cfff !important;

  box-shadow:
    0 0 8px
    rgba(39,207,255,.20) !important;
}


/*
 * Old horizontal arrow is no longer used.
 */

.pyramid-tree-children::after{
  display:none !important;
}


/* ---------------------------------------------------------
   DIRECT CHILD CONNECTORS
   --------------------------------------------------------- */

/*
 * If multiple children exist, create horizontal bus
 * above them.
 */

.pyramid-tree-children >
.pyramid-tree-branch{
  position:relative !important;

  padding-top:22px !important;
}


/*
 * bus -> child
 */

.pyramid-tree-children >
.pyramid-tree-branch::before{
  content:"" !important;

  position:absolute !important;

  top:0 !important;
  left:50% !important;

  width:2px !important;
  height:22px !important;

  transform:
    translateX(-50%) !important;

  background:#27cfff !important;
}


/*
 * Horizontal sibling bus.
 *
 * It spans the child group and sits behind nodes.
 */

.pyramid-tree-children >
.pyramid-tree-branch:not(:only-child)::after{
  content:"" !important;

  position:absolute !important;

  top:0 !important;

  width:calc(100% + 28px) !important;
  height:2px !important;

  background:#27cfff !important;

  z-index:0 !important;
}


.pyramid-tree-children >
.pyramid-tree-branch:first-child:not(:only-child)::after{
  left:50% !important;
}


.pyramid-tree-children >
.pyramid-tree-branch:last-child:not(:only-child)::after{
  right:50% !important;
}


/*
 * A single child does not need a horizontal bus.
 */

.pyramid-tree-children >
.pyramid-tree-branch:only-child{
  padding-top:0 !important;
}


.pyramid-tree-children >
.pyramid-tree-branch:only-child::before,
.pyramid-tree-children >
.pyramid-tree-branch:only-child::after{
  display:none !important;
}


/* ---------------------------------------------------------
   NODE SAFETY
   --------------------------------------------------------- */

.pyramid-tree .pyramid-node{
  position:relative !important;

  flex:0 0 auto !important;

  width:210px !important;
  min-width:210px !important;

  z-index:2 !important;
}


/*
 * Descendant width must participate in ROOT spacing,
 * preventing neighbouring ROOT trees from overlapping.
 */

.pyramid-root-slot{
  width:max-content !important;
}


.pyramid-root-slot >
.pyramid-tree-branch{
  min-width:210px !important;
}



/* =========================================================
   HATORI VERTICAL PYRAMID GRAPH V1
   Main spine + recursive incoming branches
   ========================================================= */

.vp-head-board{
  min-width:720px;
  overflow:hidden;

  border:1px solid rgba(55,190,245,.22);
  border-radius:15px;

  background:
    linear-gradient(
      145deg,
      rgba(7,55,107,.90),
      rgba(4,37,78,.92)
    );
}


.vp-head-board-header{
  min-height:70px;
  padding:13px 16px;

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

  border-bottom:
    1px solid rgba(61,181,239,.16);

  background:
    rgba(8,74,137,.38);
}


.vp-head-label{
  display:block;

  color:#39d8ff;

  font-size:7px;
  font-weight:900;
  letter-spacing:1.5px;
}


.vp-head-board-header strong{
  display:block;

  margin-top:4px;

  font-size:12px;
}


.vp-head-actions,
.vp-chain-actions{
  display:flex;
  align-items:center;
  gap:7px;
}


.vp-chain-count{
  padding:6px 8px;

  color:#77cdef;

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

  border:
    1px solid rgba(53,185,240,.18);

  border-radius:7px;

  background:
    rgba(5,51,100,.50);
}


.vp-add-chain,
.vp-add-first,
.vp-chain-menu{
  min-height:30px;
  padding:0 10px;

  color:#91e5ff;

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

  border:
    1px solid rgba(55,201,255,.24);

  border-radius:7px;

  background:
    rgba(6,67,123,.54);
}


/* CHAINS */

.vp-chains{
  display:grid;
  gap:12px;

  padding:14px;
}


.vp-chain{
  overflow:hidden;

  border:
    1px solid rgba(56,176,235,.16);

  border-radius:12px;

  background:
    rgba(4,38,79,.48);
}


.vp-chain-header{
  min-height:50px;
  padding:9px 12px;

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

  border-bottom:
    1px solid rgba(56,176,235,.13);
}


.vp-chain-header span{
  color:#3ddcff;

  font-size:7px;
  font-weight:900;
  letter-spacing:1px;
}


.vp-chain-header strong{
  margin-left:7px;

  font-size:10px;
}


.vp-chain-header small{
  margin-left:7px;

  color:#608ead;

  font-size:7px;
}


.vp-chain-body{
  min-height:180px;

  padding:20px;

  overflow:auto;
}


/* =========================================================
   FLOW
   ========================================================= */

.vp-flow{
  width:max-content;
  min-width:100%;

  display:flex;
  flex-direction:column;
  align-items:center;
}


/* HEAD */

.vp-head-target{
  position:relative;

  width:210px;
  min-height:60px;

  padding:
    10px
    34px
    10px
    12px;

  border:
    1px solid rgba(51,220,255,.55);

  border-radius:10px;

  background:
    linear-gradient(
      145deg,
      rgba(11,105,179,.88),
      rgba(6,65,124,.90)
    );

  box-shadow:
    0 0 25px
    rgba(37,207,255,.08);
}


.vp-head-target span,
.vp-node-meta{
  display:block;

  color:#56dcff;

  font-size:7px;
  font-weight:850;
  letter-spacing:.8px;
}


.vp-head-target strong{
  display:block;

  margin-top:5px;

  color:#f1fbff;

  font-size:10px;

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


.vp-head-target .pyramid-head-menu{
  position:absolute;

  top:8px;
  right:8px;
}


/* VERTICAL CONNECTOR */

.vp-head-arrow,
.vp-up-arrow{
  width:2px;
  height:34px;

  position:relative;

  font-size:0;

  background:#29d5ff;

  box-shadow:
    0 0 8px
    rgba(41,213,255,.20);
}


.vp-head-arrow::before,
.vp-up-arrow::before{
  content:"";

  position:absolute;

  top:0;
  left:50%;

  width:7px;
  height:7px;

  border-top:
    2px solid #29d5ff;

  border-left:
    2px solid #29d5ff;

  transform:
    translateX(-50%)
    rotate(45deg);
}


/* =========================================================
   MAIN SPINE
   ========================================================= */

.vp-spine{
  display:flex;
  flex-direction:column;
  align-items:center;
}


.vp-spine-level{
  min-width:680px;

  display:grid;

  grid-template-columns:
    minmax(190px,1fr)
    220px
    minmax(190px,1fr);

  align-items:center;

  column-gap:28px;
}


.vp-spine-center{
  display:flex;
  flex-direction:column;
  align-items:center;
}


/* =========================================================
   DOMAIN NODE
   ========================================================= */

.vp-node{
  position:relative;

  width:210px;

  overflow:hidden;

  border:
    1px solid rgba(55,181,238,.24);

  border-radius:9px;

  background:
    linear-gradient(
      145deg,
      rgba(7,58,111,.96),
      rgba(4,42,85,.96)
    );

  box-shadow:
    0 7px 18px
    rgba(0,21,55,.12);
}


.vp-node-link{
  min-height:54px;

  padding:
    9px
    34px
    9px
    11px;

  display:block;

  text-decoration:none;
}


.vp-node-link strong{
  display:block;

  margin-top:4px;

  color:#edfaff;

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

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


.vp-node-link:hover strong{
  color:#4be2ff;
}


.vp-node-menu{
  position:absolute;

  top:0;
  right:0;

  width:30px;
  height:100%;

  color:#65dfff;

  border:0;

  border-left:
    1px solid rgba(56,181,238,.13);

  background:
    rgba(5,47,92,.36);
}


.vp-node-menu:hover{
  background:
    rgba(8,79,140,.60);
}


/* =========================================================
   SIDE BRANCH
   ========================================================= */

.vp-side-area{
  min-width:0;

  display:flex;
  justify-content:flex-end;
  align-items:center;

  gap:16px;
}


.vp-spine-level >
.vp-side-area:last-child{
  justify-content:flex-start;
}


.vp-branch{
  position:relative;

  display:flex;
  flex-direction:column;
  align-items:flex-end;

  padding-right:34px;
}


.vp-branch > .vp-node{
  width:178px;
}


/*
 * Branch -> spine horizontal connector.
 */

.vp-side-area:first-child >
.vp-branch::after{
  content:"";

  position:absolute;

  top:27px;
  right:0;

  width:34px;
  height:2px;

  background:#29d5ff;
}


/*
 * Arrow head pointing toward spine.
 */

.vp-side-area:first-child >
.vp-branch::before{
  content:"";

  position:absolute;

  top:23px;
  right:-1px;

  width:7px;
  height:7px;

  border-top:
    2px solid #29d5ff;

  border-right:
    2px solid #29d5ff;

  transform:
    rotate(45deg);
}


/* recursive source under branch */

.vp-branch-sources{
  position:relative;

  margin-top:14px;

  display:grid;
  gap:12px;
}


/*
 * Recursive branch relationship.
 */

.vp-branch-sources::before{
  content:"";

  position:absolute;

  top:-14px;
  right:88px;

  width:2px;
  height:14px;

  background:#29d5ff;
}


/* =========================================================
   EMPTY CHAIN
   ========================================================= */

.vp-empty-chain{
  min-height:110px;

  display:grid;
  place-items:center;

  color:#648fac;

  font-size:9px;
}


/* =========================================================
   OLD GRAPH VISUALS OFF
   Renderer no longer needs old root/tree geometry.
   ========================================================= */

.vp-head-board
.pyramid-tree,

.vp-head-board
.pyramid-root-spine,

.vp-head-board
.pyramid-root-slot{
  all:unset;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media(max-width:850px){

  .vp-head-board{
    min-width:620px;
  }

  .vp-spine-level{
    min-width:580px;

    grid-template-columns:
      minmax(150px,1fr)
      200px
      minmax(150px,1fr);

    column-gap:18px;
  }

  .vp-node{
    width:190px;
  }

  .vp-branch > .vp-node{
    width:155px;
  }

}



/* =========================================================
   VERTICAL PYRAMID CANVAS V1
   ========================================================= */

#pyramidCanvas{
  box-sizing:border-box !important;

  width:100% !important;

  min-width:0 !important;
  min-height:0 !important;

  height:auto !important;

  padding:18px !important;

  display:block !important;

  overflow:visible !important;

  transform-origin:
    top center !important;
}


.pyramid-canvas-wrap{
  min-height:0 !important;
  height:auto !important;

  overflow:auto !important;
}


.vp-board-list{
  width:100%;

  display:grid;
  gap:16px;
}


.vp-head-board{
  width:100% !important;
  min-width:0 !important;
}


/*
 * Old head column layout must not affect
 * Vertical Pyramid.
 */

.pyramid-head-column{
  min-width:0;
}


/* compact graph background */

#pyramidCanvas{
  background-image:
    linear-gradient(
      rgba(57,176,235,.055) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(57,176,235,.055) 1px,
      transparent 1px
    );

  background-size:
    35px 35px;
}



/* =========================================================
   VERTICAL PYRAMID DYNAMIC WIDTH V2
   Compact from right, expand left with branches
   ========================================================= */


/*
 * Canvas aligns graph boards to the right.
 */

.vp-board-list{
  width:100% !important;

  display:flex !important;
  flex-direction:column !important;
  align-items:flex-end !important;

  gap:16px !important;
}


/*
 * HEAD board no longer fills entire canvas.
 * Width follows its graph content.
 */

.vp-head-board{
  width:max-content !important;

  min-width:390px !important;
  max-width:100% !important;

  margin-left:auto !important;
  margin-right:0 !important;
}


/*
 * Header follows board width.
 */

.vp-head-board-header{
  width:100% !important;
  box-sizing:border-box !important;
}


/*
 * Chains also size from their graph.
 */

.vp-chains{
  width:max-content !important;

  min-width:390px !important;
  max-width:100% !important;

  margin-left:auto !important;
}


.vp-chain{
  width:max-content !important;

  min-width:390px !important;
  max-width:100% !important;

  margin-left:auto !important;
}


.vp-chain-header{
  width:100% !important;
  box-sizing:border-box !important;
}


/*
 * Body is compact by default.
 */

.vp-chain-body{
  width:max-content !important;

  min-width:390px !important;
  max-width:none !important;

  box-sizing:border-box !important;

  padding:
    18px
    22px !important;
}


/*
 * Flow should only occupy actual graph width.
 */

.vp-flow{
  width:max-content !important;
  min-width:0 !important;

  margin-left:auto !important;
  margin-right:0 !important;
}


/*
 * A simple spine only needs center column.
 */

.vp-spine-level{
  min-width:0 !important;

  grid-template-columns:
    auto
    210px
    auto !important;

  column-gap:22px !important;
}


/*
 * Empty side columns consume no width.
 */

.vp-side-area:empty{
  width:0 !important;
  min-width:0 !important;
}


/*
 * Keep center spine fixed and tidy.
 */

.vp-spine-center{
  width:210px !important;
}


/*
 * HEAD same width as spine.
 */

.vp-head-target{
  width:210px !important;
  box-sizing:border-box !important;
}


/*
 * Domain cards.
 */

.vp-node{
  width:210px !important;
  box-sizing:border-box !important;
}


/*
 * Incoming branch cards are slightly smaller.
 */

.vp-branch > .vp-node{
  width:175px !important;
}


/*
 * Whole canvas keeps board against right side.
 */

#pyramidCanvas{
  display:flex !important;

  justify-content:flex-end !important;
  align-items:flex-start !important;
}


/*
 * Give some breathing room from right edge.
 */

.vp-board-list{
  padding-right:4px;
  box-sizing:border-box;
}



/* =========================================================
   DYNAMIC PYRAMID ALIGNMENT FIX
   Compact left -> expand right
   ========================================================= */

.vp-board-list{
  width:100% !important;

  align-items:flex-start !important;

  padding-left:0 !important;
  padding-right:0 !important;
}


.vp-head-board{
  width:max-content !important;

  min-width:390px !important;
  max-width:none !important;

  margin-left:0 !important;
  margin-right:auto !important;
}


.vp-chains,
.vp-chain{
  width:max-content !important;

  min-width:390px !important;
  max-width:none !important;

  margin-left:0 !important;
  margin-right:auto !important;
}


.vp-chain-body{
  width:max-content !important;

  min-width:390px !important;

  margin:0 !important;
}


.vp-flow{
  width:max-content !important;
  min-width:0 !important;

  margin-left:0 !important;
  margin-right:0 !important;
}


/*
 * Keep the main spine centered inside
 * the compact board.
 */

.vp-spine{
  width:max-content !important;

  margin:0 auto !important;
}


.vp-head-target{
  margin-left:auto !important;
  margin-right:auto !important;
}


/*
 * Canvas itself starts from the left.
 */

#pyramidCanvas{
  justify-content:flex-start !important;
  align-items:flex-start !important;
}



/* =========================================================
   HATORI PYRAMID GRAPH FINAL V5

   MAIN      = NEXT
   LINK_IN   = incoming side branch

   Rules:
   - linear graph stays compact + centered
   - MAIN axis never shifts because of LINK IN
   - LINK IN grows naturally to the left
   - NEXT may branch
   - no permanent empty side lane
   ========================================================= */


/* ---------- GRAPH ---------- */

.vp-edge-flow{
  width:max-content;
  min-width:300px;

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

  margin:0 auto;

  overflow:visible;
}


/* ---------- HEAD ---------- */

.vp-head-target{
  width:220px !important;

  position:relative;

  margin:0 auto !important;
}


.vp-edge-head-line{
  width:220px;
  height:36px;
  min-height:36px;

  position:relative;

  margin:0 auto;

  font-size:0;
}


.vp-edge-head-line::before{
  content:"";

  position:absolute;

  left:50%;
  top:0;

  width:2px;
  height:36px;

  transform:translateX(-50%);

  background:#2bd7ff;
}


.vp-edge-head-line::after{
  content:"";

  position:absolute;

  left:50%;
  top:0;

  width:8px;
  height:8px;

  border-top:3px solid #2bd7ff;
  border-left:3px solid #2bd7ff;

  transform:
    translateX(-50%)
    rotate(45deg);
}


/* ---------- ROOTS ---------- */

.vp-edge-main-roots{
  width:max-content;

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

  gap:18px;

  margin:0 auto;
}


/* ---------- MAIN NODE ---------- */

.vp-tree-main{
  width:max-content;

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

  position:relative;
}


.vp-tree-row{
  width:max-content;

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

  position:relative;
}


/*
 * Main card itself always owns the center axis.
 */

.vp-tree-axis{
  width:220px;
  min-width:220px;

  display:flex;
  justify-content:center;

  position:relative;

  z-index:3;
}


.vp-tree-axis > .vp-node{
  width:220px !important;
}


/* ---------- LINK IN LANE ---------- */

/*
 * IMPORTANT:
 * no fixed width.
 *
 * Empty = literally zero width.
 * Has branches = grows LEFT according to content.
 */

.vp-tree-link-lane{
  width:max-content;

  display:flex;
  flex-direction:column;

  align-items:flex-end;
  justify-content:center;

  gap:10px;

  margin-right:14px;

  overflow:visible;
}


.vp-tree-link-lane:empty{
  display:none;
  width:0;
  margin:0;
}


/* Recursive incoming branch */

.vp-edge-link-branch{
  width:max-content !important;

  display:flex !important;
  flex-direction:row !important;

  align-items:center !important;
  justify-content:flex-end !important;

  gap:7px !important;
}


.vp-edge-link-children{
  width:max-content !important;

  display:flex !important;
  flex-direction:row !important;

  align-items:center !important;

  gap:7px !important;
}


.vp-edge-link-branch > .vp-node{
  width:170px !important;
  flex:0 0 170px;
}


/* LINK arrow */

.vp-edge-link-arrow{
  width:25px !important;
  min-width:25px !important;

  position:relative;

  font-size:0 !important;
}


.vp-edge-link-arrow::before{
  content:"";

  position:absolute;

  left:0;
  top:50%;

  width:25px;
  height:2px;

  transform:translateY(-50%);

  background:#2bd7ff;
}


.vp-edge-link-arrow::after{
  content:"";

  position:absolute;

  right:0;
  top:50%;

  width:7px;
  height:7px;

  border-top:2px solid #2bd7ff;
  border-right:2px solid #2bd7ff;

  transform:
    translateY(-50%)
    rotate(45deg);
}


/* ---------- NEXT / MAIN CONNECTOR ---------- */

.vp-tree-up{
  width:220px;
  height:36px;

  display:flex;
  justify-content:center;

  position:relative;

  margin:0 auto;
}


.vp-tree-up span{
  width:2px;
  height:36px;

  display:block;

  position:relative;

  background:#2bd7ff;
}


.vp-tree-up span::before{
  content:"";

  position:absolute;

  left:50%;
  top:0;

  width:8px;
  height:8px;

  border-top:3px solid #2bd7ff;
  border-left:3px solid #2bd7ff;

  transform:
    translateX(-50%)
    rotate(45deg);
}


/* ---------- NEXT CHILDREN ---------- */

.vp-tree-next{
  width:max-content;

  display:flex;

  align-items:flex-end;
  justify-content:center;

  gap:18px;

  position:relative;

  margin:0 auto;
}


/*
 * One NEXT:
 * perfectly centered, no branch bus.
 */

.vp-tree-next.is-single{
  display:flex;
  justify-content:center;
}


/*
 * Multiple NEXT:
 * compact horizontal fan.
 */

.vp-tree-next.is-branching{
  padding-bottom:14px;
}


.vp-tree-next.is-branching::after{
  content:"";

  position:absolute;

  left:110px;
  right:110px;
  bottom:0;

  height:2px;

  background:#2bd7ff;
}


/* ---------- ORPHANS ---------- */

.vp-edge-orphans{
  width:100%;

  margin-top:20px;
  padding-top:12px;

  border-top:
    1px dashed rgba(59,181,237,.18);
}


.vp-edge-orphans-label{
  display:block;

  margin-bottom:8px;

  color:#668fac;

  font-size:7px;
  font-weight:900;
  letter-spacing:1px;
}


.vp-edge-orphans-list{
  display:flex;
  flex-wrap:wrap;

  gap:8px;
}


/* ---------- CHAIN BOARD ---------- */

.vp-chain-body{
  min-width:300px !important;

  display:flex !important;
  justify-content:center !important;
  align-items:flex-start !important;

  padding:24px !important;

  overflow:auto !important;
}


/*
 * Do NOT force the whole Head/Chain to max-content.
 * The board stays visually balanced.
 */

.vp-chain,
.vp-chains,
.vp-head-board{
  width:100% !important;
}


/* ---------- MOBILE ---------- */

@media(max-width:850px){

  .vp-tree-axis,
  .vp-tree-axis > .vp-node,
  .vp-head-target{
    width:190px !important;
    min-width:190px;
  }

  .vp-tree-up,
  .vp-edge-head-line{
    width:190px;
  }

  .vp-edge-link-branch > .vp-node{
    width:145px !important;
    flex-basis:145px;
  }

  .vp-chain-body{
    justify-content:flex-start !important;
  }

}



/* =========================================================
   HATORI PYRAMID SIDEBAR FINAL V1
   ========================================================= */

.pyramid-brand-group{
  padding:8px !important;

  border:
    1px solid rgba(43,215,255,.20) !important;

  border-radius:14px !important;

  background:
    rgba(4,38,75,.34) !important;
}


/* BRAND HEADER */

.pyramid-brand-toggle{
  width:100% !important;
  min-height:42px !important;

  display:grid !important;
  grid-template-columns:
    18px 1fr auto !important;

  align-items:center !important;

  gap:8px !important;

  padding:6px 8px !important;

  border:0 !important;

  background:transparent !important;

  cursor:pointer !important;
}


.pyramid-brand-chevron{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  color:#31d9ff !important;

  font-size:16px !important;
  font-weight:900 !important;
}


.pyramid-brand-toggle strong{
  min-width:0;

  color:#f4f9ff !important;

  font-size:12px !important;
  font-weight:900 !important;

  letter-spacing:.45px !important;

  text-align:left !important;

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


.pyramid-brand-toggle small{
  min-width:28px;
  height:28px;

  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  padding:0 8px !important;

  border-radius:8px !important;

  background:
    rgba(0,173,255,.12) !important;

  color:#5bddff !important;

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


/* SET LIST */

.pyramid-brand-items{
  display:flex !important;
  flex-direction:column !important;

  gap:7px !important;

  margin-top:6px !important;
}


.pyramid-brand-items[hidden]{
  display:none !important;
}


/* SET CARD */

.pyramid-list-item{
  width:100% !important;
  min-height:66px !important;

  display:grid !important;

  grid-template-columns:
    minmax(0,1fr) 34px !important;

  align-items:center !important;

  gap:8px !important;

  padding:
    10px 8px
    10px 14px !important;

  border:
    1px solid transparent !important;

  border-radius:10px !important;

  background:
    rgba(3,30,61,.62) !important;

  text-align:left !important;

  cursor:pointer !important;

  transition:
    border-color .16s ease,
    background .16s ease,
    transform .16s ease !important;
}


.pyramid-list-item:hover{
  border-color:
    rgba(43,215,255,.32) !important;

  background:
    rgba(7,59,107,.72) !important;

  transform:
    translateY(-1px);
}


.pyramid-list-item.active{
  border-color:#2bd7ff !important;

  background:
    linear-gradient(
      135deg,
      rgba(11,95,161,.92),
      rgba(5,66,120,.90)
    ) !important;

  box-shadow:
    inset 3px 0 0 #2bd7ff,
    0 0 18px rgba(0,170,255,.08) !important;
}


/* CARD TEXT */

.pyramid-item-content{
  min-width:0 !important;

  display:flex !important;
  flex-direction:column !important;

  justify-content:center !important;

  gap:5px !important;
}


.pyramid-item-content strong{
  display:block !important;

  color:#f6faff !important;

  font-size:12px !important;
  font-weight:900 !important;

  line-height:1.2 !important;

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


.pyramid-item-content small{
  display:block !important;

  color:#719ab8 !important;

  font-size:9px !important;
  font-weight:700 !important;

  letter-spacing:.35px !important;

  white-space:nowrap;
}


.pyramid-list-item.active
.pyramid-item-content small{
  color:#8fc8e8 !important;
}


/* THREE DOT MENU */

.pyramid-item-menu{
  width:32px !important;
  height:32px !important;

  display:flex !important;

  align-items:center !important;
  justify-content:center !important;

  justify-self:end !important;

  border:
    1px solid transparent !important;

  border-radius:8px !important;

  color:#57dfff !important;

  font-size:14px !important;
  font-weight:900 !important;

  cursor:pointer !important;

  transition:
    background .16s ease,
    border-color .16s ease !important;
}


.pyramid-item-menu:hover{
  border-color:
    rgba(43,215,255,.25) !important;

  background:
    rgba(0,174,255,.10) !important;
}


/* Slightly tighter Pyramid sidebar */

.pyramid-sidebar{
  padding:14px !important;
}




/* =========================================================
   HATORI PYRAMID COMPACT BOARD FINAL
   ========================================================= */

/* HEAD outer card */

.vp-head-board{
  width:min(100%, 1080px) !important;

  margin:
    18px auto !important;

  border-radius:16px !important;
}


/* HEAD header */

.vp-head-header{
  min-height:72px !important;

  padding:
    14px 18px !important;
}


/* CHAINS */

.vp-chains{
  padding:
    14px 16px 16px !important;

  gap:12px !important;
}


.vp-chain{
  width:100% !important;

  border-radius:13px !important;
}


/* Chain header */

.vp-chain-header{
  min-height:54px !important;

  padding:
    10px 14px !important;
}


.vp-chain-title{
  gap:8px !important;
}


.vp-chain-title strong{
  font-size:12px !important;
}


.vp-chain-title small{
  font-size:9px !important;
}


/*
 * Graph body:
 * no giant minimum height.
 */

.vp-chain-body{
  width:100% !important;

  min-width:0 !important;
  min-height:0 !important;

  height:auto !important;

  display:flex !important;

  align-items:flex-start !important;
  justify-content:center !important;

  padding:
    22px 24px
    26px !important;

  overflow:auto !important;
}


/*
 * Compact graph itself.
 */

.vp-edge-flow{
  width:max-content !important;
  min-width:260px !important;

  margin:0 auto !important;

  align-items:center !important;
}


/* Cards */

.vp-head-target{
  width:200px !important;
}


.vp-tree-axis{
  width:200px !important;
  min-width:200px !important;
}


.vp-tree-axis > .vp-node{
  width:200px !important;
}


/* Less vertical distance */

.vp-tree-up,
.vp-edge-head-line{
  width:200px !important;

  height:28px !important;
  min-height:28px !important;
}


.vp-tree-up span{
  height:28px !important;
}


.vp-edge-head-line::before{
  height:28px !important;
}


/* Node card compact */

.vp-node{
  min-height:62px !important;
}


.vp-node-main{
  padding:
    11px 12px !important;
}


.vp-node-main strong{
  font-size:11px !important;
}


/*
 * Empty chains should also stay short.
 */

.vp-empty-chain{
  min-height:90px !important;

  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  padding:18px !important;
}


/*
 * Desktop:
 * graph stays centered instead of
 * occupying an enormous blank board.
 */

@media(min-width:1000px){

  .vp-chain-body{
    max-height:none !important;
  }

}



/* =========================================================
   HATORI LINK-IN RIGHT LANE FINAL
   ========================================================= */

/*
 * MAIN axis remains centered.
 * LINK IN visually branches to the RIGHT.
 */

.vp-tree-row{
  display:grid !important;

  grid-template-columns:
    220px max-content !important;

  align-items:center !important;

  column-gap:0 !important;

  width:max-content !important;
}


/* MAIN NODE */

.vp-tree-axis{
  grid-column:1 !important;

  width:220px !important;
  min-width:220px !important;

  position:relative !important;

  z-index:3 !important;
}


/* RIGHT LINK-IN LANE */

.vp-tree-link-lane{
  grid-column:2 !important;

  width:max-content !important;

  display:flex !important;
  flex-direction:column !important;

  align-items:flex-start !important;
  justify-content:center !important;

  gap:10px !important;

  margin:
    0 0 0 0 !important;

  overflow:visible !important;
}


.vp-tree-link-lane:empty{
  display:none !important;
}


/*
 * TARGET <-- LINK CARD
 */

.vp-edge-link-branch{
  width:max-content !important;

  display:flex !important;
  flex-direction:row !important;

  align-items:center !important;
  justify-content:flex-start !important;

  gap:0 !important;
}


/* Arrow connector */

.vp-edge-link-arrow{
  width:42px !important;
  min-width:42px !important;
  height:2px !important;

  position:relative !important;

  margin:0 !important;

  font-size:0 !important;

  background:#2bd7ff !important;
}


/*
 * Arrowhead on LEFT,
 * pointing into the target MAIN node.
 */

.vp-edge-link-arrow::before{
  content:"" !important;

  position:absolute !important;

  left:0 !important;
  top:50% !important;

  width:8px !important;
  height:8px !important;

  border-left:
    3px solid #2bd7ff !important;

  border-bottom:
    3px solid #2bd7ff !important;

  transform:
    translateY(-50%)
    rotate(45deg) !important;

  background:transparent !important;
}


.vp-edge-link-arrow::after{
  display:none !important;
}


/* LINK-IN CARD */

.vp-edge-link-branch > .vp-node{
  width:190px !important;
  min-width:190px !important;

  flex:
    0 0 190px !important;
}


/*
 * Recursive LINK IN:
 *
 * TARGET <-- A <-- B <-- C
 */

.vp-edge-link-children{
  width:max-content !important;

  display:flex !important;
  flex-direction:row-reverse !important;

  align-items:center !important;

  gap:8px !important;
}


/* MAIN flow remains centered */

.vp-tree-main{
  align-items:center !important;
}


/* Mobile */

@media(max-width:850px){

  .vp-tree-row{
    grid-template-columns:
      190px max-content !important;
  }

  .vp-tree-axis{
    width:190px !important;
    min-width:190px !important;
  }

  .vp-edge-link-branch > .vp-node{
    width:160px !important;
    min-width:160px !important;

    flex-basis:160px !important;
  }

  .vp-edge-link-arrow{
    width:30px !important;
    min-width:30px !important;
  }

}



/* =========================================================
   HATORI LINK-IN FIXED MAIN AXIS FINAL
   ========================================================= */

/*
 * CRITICAL:
 *
 * MAIN node owns the center axis.
 * LINK-IN lane is absolutely positioned
 * to the RIGHT and therefore does NOT
 * participate in centering calculations.
 */

.vp-tree-row{
  width:220px !important;

  display:block !important;

  position:relative !important;

  margin:
    0 auto !important;
}


/* MAIN node stays exactly on graph center */

.vp-tree-axis{
  width:220px !important;
  min-width:220px !important;

  position:relative !important;

  margin:0 !important;

  z-index:3 !important;
}


.vp-tree-axis > .vp-node{
  width:220px !important;
  min-width:220px !important;
}


/*
 * LINK-IN exists outside normal layout.
 *
 * Start exactly at right edge of target.
 */

.vp-tree-link-lane{
  position:absolute !important;

  left:100% !important;
  top:50% !important;

  width:max-content !important;

  display:flex !important;
  flex-direction:column !important;

  align-items:flex-start !important;
  justify-content:center !important;

  gap:10px !important;

  margin:0 !important;

  transform:
    translateY(-50%) !important;

  z-index:2 !important;

  overflow:visible !important;
}


.vp-tree-link-lane:empty{
  display:none !important;
}


/*
 * One incoming branch:
 *
 * TARGET <----- LINK-IN
 */

.vp-edge-link-branch{
  width:max-content !important;

  display:flex !important;
  flex-direction:row !important;

  align-items:center !important;

  gap:0 !important;

  margin:0 !important;
}


/* Connector from right card into target */

.vp-edge-link-arrow{
  width:42px !important;
  min-width:42px !important;
  height:2px !important;

  position:relative !important;

  margin:0 !important;

  background:#2bd7ff !important;

  font-size:0 !important;
}


/* arrow head points LEFT into target */

.vp-edge-link-arrow::before{
  content:"" !important;

  position:absolute !important;

  left:0 !important;
  top:50% !important;

  width:8px !important;
  height:8px !important;

  border-left:
    3px solid #2bd7ff !important;

  border-bottom:
    3px solid #2bd7ff !important;

  background:transparent !important;

  transform:
    translateY(-50%)
    rotate(45deg) !important;
}


.vp-edge-link-arrow::after{
  display:none !important;
}


/* incoming card */

.vp-edge-link-branch > .vp-node{
  width:190px !important;
  min-width:190px !important;

  flex:
    0 0 190px !important;
}


/*
 * MAIN hierarchy itself always stays centered.
 */

.vp-tree-main,
.vp-tree-next,
.vp-edge-main-roots{
  margin-left:auto !important;
  margin-right:auto !important;

  align-items:center !important;
  justify-content:center !important;
}


/*
 * LINK-IN must not change width used by MAIN graph.
 */

.vp-edge-flow{
  width:max-content !important;
  min-width:220px !important;

  margin:
    0 auto !important;

  overflow:visible !important;
}


/* Recursive LINK-IN */

.vp-edge-link-children{
  width:max-content !important;

  display:flex !important;
  flex-direction:row-reverse !important;

  align-items:center !important;

  gap:8px !important;
}


/* MOBILE */

@media(max-width:850px){

  .vp-tree-row,
  .vp-tree-axis,
  .vp-tree-axis > .vp-node{
    width:190px !important;
    min-width:190px !important;
  }


  .vp-edge-link-arrow{
    width:30px !important;
    min-width:30px !important;
  }


  .vp-edge-link-branch > .vp-node{
    width:155px !important;
    min-width:155px !important;

    flex-basis:155px !important;
  }

}



/* =========================================================
   HATORI PYRAMID LEFT ALIGN FINAL
   All SET / Chain graphs start from the left.
   Internal MAIN axis remains intact.
   LINK-IN still expands to the right.
   ========================================================= */


/*
 * Chain body owns left alignment.
 */

.vp-chain-body{
  display:flex !important;

  justify-content:flex-start !important;
  align-items:flex-start !important;

  padding:
    22px 28px
    28px !important;

  overflow-x:auto !important;
  overflow-y:visible !important;
}


/*
 * Entire graph starts from left.
 *
 * IMPORTANT:
 * do not change the internal main axis.
 */

.vp-edge-flow{
  width:max-content !important;
  min-width:220px !important;

  margin:
    0 !important;

  align-items:center !important;

  flex:
    0 0 auto !important;

  overflow:visible !important;
}


/*
 * Remove old auto-centering from the
 * outer MAIN graph containers only.
 */

.vp-edge-main-roots{
  margin-left:0 !important;
  margin-right:0 !important;
}


/*
 * MAIN tree remains centered relative
 * to its own 220px spine.
 */

.vp-tree-main{
  margin-left:0 !important;
  margin-right:0 !important;
}


/*
 * Individual MAIN rows remain on
 * the same vertical axis.
 */

.vp-tree-row{
  margin-left:0 !important;
  margin-right:0 !important;
}


/*
 * HEAD follows the exact same axis.
 */

.vp-head-target{
  margin-left:0 !important;
  margin-right:0 !important;
}


.vp-edge-head-line{
  margin-left:0 !important;
  margin-right:0 !important;
}


/*
 * Vertical connectors stay aligned
 * with the MAIN cards.
 */

.vp-tree-up{
  margin-left:0 !important;
  margin-right:0 !important;
}


/*
 * NEXT container starts from same axis.
 * Branching NEXT can still grow naturally.
 */

.vp-tree-next{
  margin-left:0 !important;
  margin-right:0 !important;
}


/*
 * Give the graph a clean inset from
 * the chain border.
 */

.vp-chain-body > .vp-edge-flow{
  margin-left:6px !important;
}


/* Mobile */

@media(max-width:850px){

  .vp-chain-body{
    padding:
      18px 16px
      24px !important;
  }

  .vp-chain-body > .vp-edge-flow{
    margin-left:0 !important;
  }

}



/* PYRAMID NODE MENU DIVIDER */

.pyramid-menu-divider{
  height:1px;

  margin:
    6px 8px;

  background:
    rgba(80,195,255,.12);

  pointer-events:none;
}



/* =========================================================
   HATORI STORAGE V1
   ========================================================= */

.storage-hero{
  margin-bottom:18px;
  padding:24px 26px;

  border:
    1px solid rgba(44,204,255,.18);

  border-radius:18px;

  background:
    linear-gradient(
      135deg,
      rgba(7,43,82,.88),
      rgba(4,27,57,.72)
    );

  box-shadow:
    inset 0 1px 0
    rgba(255,255,255,.025);
}


.storage-hero h2{
  margin:5px 0 7px;

  color:#f4f9ff;

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


.storage-hero h2 span{
  color:#36d7ff;
}


.storage-hero p{
  margin:0;

  color:#7396b4;

  font-size:12px;
}


/* STATS */

.storage-stat-grid{
  display:grid;

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

  gap:12px;

  margin-bottom:18px;
}


.storage-stat-card{
  min-width:0;

  padding:17px 18px;

  border:
    1px solid rgba(44,204,255,.16);

  border-radius:14px;

  background:
    linear-gradient(
      145deg,
      rgba(5,36,70,.90),
      rgba(3,25,52,.78)
    );
}


.storage-stat-card > span{
  display:block;

  margin-bottom:10px;

  color:#658aa8;

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

  letter-spacing:1px;
}


.storage-stat-card strong{
  display:block;

  margin-bottom:5px;

  color:#f4f9ff;

  font-size:21px;
  font-weight:900;

  white-space:nowrap;
}


.storage-stat-card small{
  display:block;

  color:#5f819e;

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


/* MANAGER */

.storage-manager{
  border:
    1px solid rgba(44,204,255,.16);

  border-radius:16px;

  background:
    rgba(3,27,55,.76);

  overflow:hidden;
}


.storage-manager-head{
  min-height:76px;

  display:flex;

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

  gap:20px;

  padding:16px 18px;

  border-bottom:
    1px solid rgba(44,204,255,.10);
}


.storage-manager-head h3{
  margin:4px 0 0;

  color:#f3f8ff;

  font-size:15px;
}


.storage-filters{
  display:flex;

  align-items:center;

  gap:8px;
}


.storage-filters input,
.storage-filters select{
  height:38px;

  border:
    1px solid rgba(54,201,255,.18);

  border-radius:9px;

  outline:none;

  background:
    rgba(2,23,48,.88);

  color:#dceeff;

  font-family:inherit;

  font-size:11px;
}


.storage-filters input{
  width:230px;

  padding:0 12px;
}


.storage-filters select{
  min-width:130px;

  padding:0 10px;
}


.storage-filters input:focus,
.storage-filters select:focus{
  border-color:
    rgba(45,211,255,.55);

  box-shadow:
    0 0 0 3px
    rgba(0,177,255,.06);
}


/* TABLE */

.storage-table{
  min-width:980px;
}


.storage-table th{
  white-space:nowrap;
}


.storage-table td{
  vertical-align:middle;
}


.storage-file-name{
  min-width:180px;

  display:flex;
  flex-direction:column;

  gap:5px;
}


.storage-file-name strong{
  max-width:250px;

  overflow:hidden;

  color:#eaf5ff;

  font-size:11px;

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


.storage-file-name small{
  color:#587c99;

  font-size:8px;

  letter-spacing:.3px;
}


/* USED BY */

.storage-usage-list{
  min-width:170px;

  display:flex;
  flex-direction:column;

  align-items:flex-start;

  gap:4px;
}


.storage-usage-domain{
  max-width:220px;

  display:flex;

  align-items:center;

  gap:6px;

  color:#42d9ff;

  text-decoration:none;
}


.storage-usage-domain:hover strong{
  text-decoration:underline;
}


.storage-usage-domain strong{
  max-width:170px;

  overflow:hidden;

  font-size:10px;

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


.storage-usage-domain small{
  padding:2px 5px;

  border:
    1px solid rgba(42,205,255,.18);

  border-radius:5px;

  background:
    rgba(0,169,255,.08);

  color:#72cbe9;

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


.storage-more{
  color:#668aa6;

  font-size:8px;
}


/* TYPE */

.storage-type-list{
  display:flex;

  flex-wrap:wrap;

  gap:4px;
}


.storage-type-badge{
  display:inline-flex;

  align-items:center;
  justify-content:center;

  min-height:20px;

  padding:0 7px;

  border:
    1px solid rgba(47,211,255,.20);

  border-radius:6px;

  background:
    rgba(0,170,255,.08);

  color:#43d8ff;

  font-size:7px;
  font-weight:900;

  letter-spacing:.5px;
}


.storage-type-badge.amp{
  border-color:
    rgba(164,110,255,.28);

  background:
    rgba(128,72,255,.09);

  color:#b99cff;
}


.storage-type-badge.additional{
  border-color:
    rgba(255,195,72,.25);

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

  color:#ffd06c;
}


.storage-type-badge.orphan,
.storage-orphan{
  display:inline-flex;

  padding:4px 7px;

  border:
    1px solid rgba(255,92,111,.25);

  border-radius:6px;

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

  color:#ff8190;

  font-size:7px;
  font-weight:900;

  letter-spacing:.5px;
}


.storage-saving{
  color:#4de0b4;

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


.storage-ref-count{
  min-width:25px;
  height:25px;

  display:inline-flex;

  align-items:center;
  justify-content:center;

  border-radius:7px;

  background:
    rgba(42,203,255,.08);

  color:#61dcff;

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


/* PAGINATION */

.storage-manager .pagination{
  padding:13px 18px;

  border-top:
    1px solid rgba(44,204,255,.10);
}


/* RESPONSIVE */

@media(max-width:1200px){

  .storage-stat-grid{
    grid-template-columns:
      repeat(3,minmax(0,1fr));
  }

}


@media(max-width:800px){

  .storage-hero{
    padding:20px 18px;
  }


  .storage-stat-grid{
    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }


  .storage-manager-head{
    align-items:stretch;

    flex-direction:column;
  }


  .storage-filters{
    width:100%;
  }


  .storage-filters input{
    width:100%;
  }

}


@media(max-width:520px){

  .storage-stat-grid{
    grid-template-columns:1fr;
  }


  .storage-filters{
    flex-direction:column;
  }


  .storage-filters select{
    width:100%;
  }

}



/* =========================================================
   STORAGE FILE DETAIL V1
   ========================================================= */

.storage-file-row{
  cursor:pointer;

  transition:
    background .16s ease;
}


.storage-file-row:hover{
  background:
    rgba(24,151,225,.055);
}


/* MODAL */

.storage-file-modal{
  width:min(
    820px,
    calc(100vw - 32px)
  ) !important;

  max-width:820px !important;

  max-height:
    calc(100vh - 50px);

  overflow-y:auto;
}


/* LOADING / ERROR */

.storage-detail-loading,
.storage-detail-error,
.storage-detail-empty{
  padding:35px 20px;

  color:#7899b4;

  text-align:center;

  font-size:11px;
}


.storage-detail-error{
  color:#ff7f90;
}


/* FILE TITLE */

.storage-detail-title{
  display:flex;

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

  gap:20px;

  margin-bottom:18px;

  padding:15px 16px;

  border:
    1px solid rgba(48,204,255,.16);

  border-radius:12px;

  background:
    rgba(4,31,62,.72);
}


.storage-detail-title > div{
  min-width:0;

  display:flex;
  flex-direction:column;

  gap:5px;
}


.storage-detail-title strong{
  overflow:hidden;

  color:#f4f9ff;

  font-size:16px;
  font-weight:900;

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


.storage-detail-title small{
  color:#668ba7;

  font-size:9px;
}


/* HEALTH */

.storage-health{
  flex:0 0 auto;

  padding:6px 9px;

  border-radius:7px;

  font-size:8px;
  font-weight:900;

  letter-spacing:.5px;
}


.storage-health.healthy{
  border:
    1px solid rgba(48,230,171,.24);

  background:
    rgba(26,211,151,.08);

  color:#4ee2b3;
}


.storage-health.warning{
  border:
    1px solid rgba(255,195,72,.25);

  background:
    rgba(255,185,40,.08);

  color:#ffd16f;
}


.storage-health.danger{
  border:
    1px solid rgba(255,91,112,.26);

  background:
    rgba(255,60,82,.08);

  color:#ff8292;
}


/* FILE STATS */

.storage-detail-grid{
  display:grid;

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

  gap:9px;

  margin-bottom:18px;
}


.storage-detail-grid > div{
  min-width:0;

  padding:13px 14px;

  border:
    1px solid rgba(47,201,255,.12);

  border-radius:10px;

  background:
    rgba(3,27,55,.58);
}


.storage-detail-grid span{
  display:block;

  margin-bottom:6px;

  color:#6388a5;

  font-size:7px;
  font-weight:900;

  letter-spacing:.7px;
}


.storage-detail-grid strong{
  display:block;

  overflow:hidden;

  color:#eaf5ff;

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

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


/* SECTIONS */

.storage-detail-section{
  margin-top:13px;

  padding:15px 16px;

  border:
    1px solid rgba(47,201,255,.12);

  border-radius:11px;

  background:
    rgba(3,26,53,.50);
}


.storage-detail-label{
  display:block;

  margin-bottom:9px;

  color:#54d9ff;

  font-size:8px;
  font-weight:900;

  letter-spacing:1px;
}


.storage-detail-section-head{
  display:flex;

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

  gap:15px;

  margin-bottom:10px;
}


.storage-detail-section-head
.storage-detail-label{
  margin-bottom:4px;
}


.storage-detail-section-head strong{
  color:#819eb6;

  font-size:9px;
}


/* SHA */

.storage-hash{
  display:block;

  width:100%;

  padding:10px 11px;

  overflow-x:auto;

  border:
    1px solid rgba(46,201,255,.10);

  border-radius:8px;

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

  color:#8fb7d2;

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

  font-size:9px;

  white-space:nowrap;
}


/* USAGES */

.storage-detail-usages{
  display:flex;

  flex-direction:column;

  gap:7px;
}


.storage-detail-usage{
  display:flex;

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

  gap:16px;

  padding:10px 11px;

  border:
    1px solid rgba(49,200,255,.10);

  border-radius:9px;

  background:
    rgba(4,33,65,.55);
}


.storage-detail-usage > div:first-child{
  min-width:0;

  display:flex;
  flex-direction:column;

  gap:4px;
}


.storage-detail-usage
> div:first-child
> a{
  overflow:hidden;

  color:#45d9ff;

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

  text-decoration:none;

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


.storage-detail-usage
> div:first-child
> a:hover{
  text-decoration:underline;
}


.storage-detail-usage small{
  color:#6488a4;

  font-size:8px;
}


.storage-detail-usage-actions{
  flex:0 0 auto;

  display:flex;

  align-items:center;

  gap:6px;
}


.storage-small-btn{
  min-height:31px !important;

  display:inline-flex !important;

  align-items:center;
  justify-content:center;

  padding:
    0 10px !important;

  border-radius:
    7px !important;

  font-size:
    7px !important;

  font-weight:
    900 !important;

  text-decoration:none !important;

  white-space:nowrap;
}


/* PHYSICAL STORAGE */

.storage-physical{
  display:grid;

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

  gap:8px;
}


.storage-physical > div{
  padding:10px;

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

  border-radius:8px;

  background:
    rgba(0,20,42,.42);
}


.storage-physical span{
  display:block;

  margin-bottom:5px;

  color:#6386a2;

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


.storage-physical strong{
  color:#e7f4ff;

  font-size:10px;
}


/* FOOTER */

.storage-detail-footer{
  display:flex;

  justify-content:flex-end;

  margin-top:16px;

  padding-top:15px;

  border-top:
    1px solid rgba(48,201,255,.10);
}


.storage-main-download{
  display:inline-flex;

  align-items:center;
  justify-content:center;

  min-height:39px;

  padding:0 17px;

  text-decoration:none;
}


/* MOBILE */

@media(max-width:720px){

  .storage-file-modal{
    width:
      calc(100vw - 20px) !important;

    max-height:
      calc(100vh - 20px);
  }


  .storage-detail-grid{
    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }


  .storage-detail-title{
    align-items:flex-start;

    flex-direction:column;
  }


  .storage-detail-usage{
    align-items:stretch;

    flex-direction:column;
  }


  .storage-detail-usage-actions{
    flex-wrap:wrap;
  }


  .storage-physical{
    grid-template-columns:1fr;
  }

}


@media(max-width:450px){

  .storage-detail-grid{
    grid-template-columns:1fr;
  }

}



/* =========================================================
   STORAGE FILE DETAIL COMPACT V2
   ========================================================= */

.storage-file-modal{
  width:min(
    680px,
    calc(100vw - 40px)
  ) !important;

  max-width:680px !important;

  max-height:
    calc(100vh - 70px) !important;

  padding:20px !important;
}


/* HEADER */

.storage-file-modal .modal-header{
  margin-bottom:14px !important;
}


.storage-file-modal .modal-header h2{
  margin-top:3px !important;

  font-size:21px !important;
}


.storage-file-modal .modal-close{
  width:38px !important;
  height:38px !important;
}


/* FILE TITLE */

.storage-detail-title{
  margin-bottom:12px !important;

  padding:12px 13px !important;

  border-radius:10px !important;
}


.storage-detail-title strong{
  font-size:13px !important;
}


.storage-detail-title small{
  font-size:8px !important;
}


.storage-health{
  padding:5px 8px !important;

  font-size:7px !important;
}


/* TOP STAT CARDS */

.storage-detail-grid{
  gap:7px !important;

  margin-bottom:12px !important;
}


.storage-detail-grid > div{
  padding:10px 11px !important;

  border-radius:8px !important;
}


.storage-detail-grid span{
  margin-bottom:4px !important;

  font-size:6.5px !important;
}


.storage-detail-grid strong{
  font-size:10px !important;
}


/* SECTIONS */

.storage-detail-section{
  margin-top:9px !important;

  padding:11px 12px !important;

  border-radius:9px !important;
}


.storage-detail-label{
  margin-bottom:6px !important;

  font-size:7px !important;
}


/* SHA */

.storage-hash{
  padding:8px 9px !important;

  font-size:7.5px !important;
}


/* USED BY */

.storage-detail-usages{
  gap:5px !important;
}


.storage-detail-usage{
  gap:10px !important;

  padding:8px 9px !important;

  border-radius:7px !important;
}


.storage-detail-usage
> div:first-child
> a{
  font-size:9px !important;
}


.storage-detail-usage small{
  font-size:7px !important;
}


.storage-small-btn{
  min-height:27px !important;

  padding:
    0 8px !important;

  font-size:
    6.5px !important;
}


/* PHYSICAL STORAGE */

.storage-physical{
  gap:6px !important;
}


.storage-physical > div{
  padding:8px 9px !important;

  border-radius:7px !important;
}


.storage-physical span{
  margin-bottom:3px !important;

  font-size:6px !important;
}


.storage-physical strong{
  font-size:8.5px !important;
}


/* BOTTOM DOWNLOAD */

.storage-detail-footer{
  margin-top:11px !important;

  padding-top:11px !important;
}


.storage-main-download{
  min-height:34px !important;

  padding:
    0 14px !important;

  font-size:8px !important;
}


/* MOBILE */

@media(max-width:720px){

  .storage-file-modal{
    width:
      calc(100vw - 20px) !important;

    max-height:
      calc(100vh - 20px) !important;

    padding:16px !important;
  }

}


/* HATORI GLOBAL SEARCH V1 */

.hgs-overlay{
  position:fixed;
  inset:0;
  z-index:99999;
  display:none;
  align-items:flex-start;
  justify-content:center;
  padding:12vh 20px 20px;
  background:rgba(0,10,26,.76);
  backdrop-filter:blur(9px);
}

.hgs-overlay.open{
  display:flex;
}

.hgs-modal{
  width:min(620px,100%);
  max-height:75vh;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid rgba(55,194,255,.3);
  border-radius:16px;
  background:#071d38;
  box-shadow:0 25px 90px rgba(0,0,0,.5);
}

.hgs-input-wrap{
  display:flex;
  align-items:center;
  gap:12px;
  padding:16px 18px;
  border-bottom:1px solid rgba(70,170,255,.14);
}

.hgs-icon{
  color:#48d6ff;
  font-size:27px;
}

.hgs-input-wrap input{
  flex:1;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  color:#f1f8ff;
  font:500 15px inherit;
  font-size:15px;
}

.hgs-input-wrap input::placeholder{
  color:#688ba9;
}

#hgsClose{
  padding:5px 9px;
  border:1px solid rgba(90,160,220,.2);
  border-radius:6px;
  background:#102d4e;
  color:#8eacc5;
  cursor:pointer;
  font-size:10px;
}

.hgs-results{
  min-height:100px;
  overflow-y:auto;
  padding:9px;
}

.hgs-empty{
  padding:32px 15px;
  color:#7699b5;
  font-size:12px;
  text-align:center;
}

.hgs-result{
  display:flex;
  align-items:center;
  width:100%;
  gap:13px;
  padding:12px;
  border:1px solid transparent;
  border-radius:9px;
  background:transparent;
  color:#eaf5ff;
  cursor:pointer;
  text-align:left;
}

.hgs-result:hover,
.hgs-result.selected{
  border-color:rgba(50,195,255,.2);
  background:rgba(22,117,191,.18);
}

.hgs-result-icon{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border-radius:9px;
  background:rgba(29,172,255,.12);
  color:#47d8ff;
  font-size:19px;
}

.hgs-result-copy{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.hgs-result-copy strong{
  overflow:hidden;
  font-size:12px;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.hgs-result-copy small{
  color:#7899b4;
  font-size:10px;
}

.hgs-arrow{
  color:#5d8eae;
  font-size:18px;
}

.hgs-footer{
  display:flex;
  justify-content:flex-end;
  gap:18px;
  padding:11px 17px;
  border-top:1px solid rgba(70,170,255,.12);
  color:#668ba9;
  font-size:9px;
}

@media(max-width:600px){
  .hgs-overlay{
    padding:8vh 12px 12px;
  }

  .hgs-modal{
    max-height:82vh;
  }

  .hgs-input-wrap{
    padding:13px;
  }
}

/* HATORI PYRAMID USAGE V1 */

.pyramid-usage-panel{
  margin-bottom:18px;
}

.pyramid-usage-count{
  padding:6px 10px;
  border:1px solid rgba(53,199,255,.2);
  border-radius:7px;
  color:#55d9ff;
  font-size:10px;
  font-weight:800;
}

.pyramid-usage-list{
  display:grid;
  grid-template-columns:
    repeat(2,minmax(0,1fr));
  gap:11px;
}

.pyramid-usage-item{
  min-width:0;
  padding:16px;
  border:1px solid rgba(53,199,255,.15);
  border-radius:12px;
  background:rgba(4,34,66,.65);
}

.pyramid-usage-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.pyramid-usage-top strong{
  color:#eaf6ff;
  font-size:12px;
}

.pyramid-usage-type{
  padding:5px 7px;
  border-radius:6px;
  background:rgba(39,183,255,.1);
  color:#5cdaff;
  font-size:8px;
  font-weight:900;
}

.pyramid-usage-meta{
  margin-top:11px;
  color:#86a6bf;
  font-size:10px;
  overflow-wrap:anywhere;
}

.pyramid-usage-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid rgba(53,199,255,.1);
}

.pyramid-usage-bottom span{
  color:#a1bfd5;
  font-size:10px;
}

.pyramid-usage-bottom a{
  color:#43d8ff;
  font-size:9px;
  font-weight:900;
  text-decoration:none;
}

.pyramid-usage-bottom a:hover{
  text-decoration:underline;
}

.pyramid-usage-empty{
  grid-column:1/-1;
  padding:20px;
  color:#7798b2;
  text-align:center;
  font-size:11px;
}

@media(max-width:720px){
  .pyramid-usage-list{
    grid-template-columns:1fr;
  }
}


/* PYRAMID NODE DEEP LINK HIGHLIGHT */

.vp-node.pyramid-node-highlight {
  position: relative;
  z-index: 5;

  outline: 2px solid #3bdcff !important;
  outline-offset: 4px;

  box-shadow:
    0 0 0 7px rgba(34,192,255,.10),
    0 0 30px rgba(27,179,255,.35) !important;

  border-radius: 12px;

  animation:
    hatoriNodeHighlight 1.8s ease-in-out 2;
}

@keyframes hatoriNodeHighlight {
  0%, 100% {
    outline-color: #3bdcff;
  }

  50% {
    outline-color: #8df1ff;
  }
}

/* ========================================
   HATORI EXPIRATION MONITORING V5
   ======================================== */

.expiration-hero-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.expiration-stats{
  display:grid;
  grid-template-columns:
    repeat(3,minmax(0,1fr));
  gap:14px;
  margin:20px 0;
}

.expiration-table{
  width:100%;
  min-width:1050px;
}

.expiration-table td{
  vertical-align:middle;
}

.exp-domain-link{
  color:#eaf6ff;
  font-weight:800;
  text-decoration:none;
}

.exp-domain-link:hover{
  color:#45d9ff;
}

.exp-status{
  display:inline-flex;
  padding:6px 9px;
  border-radius:7px;
  font-size:9px;
  font-weight:900;
  white-space:nowrap;
  background:rgba(40,150,255,.12);
  color:#78cfff;
}

.exp-status.expired,
.exp-status.critical{
  background:rgba(255,70,95,.12);
  color:#ff8095;
}

.exp-status.warning,
.exp-status.soon{
  background:rgba(255,180,55,.12);
  color:#ffd079;
}

.exp-status.healthy{
  background:rgba(40,210,160,.1);
  color:#54e3b6;
}

.exp-sync-one{
  padding:8px 12px;
  border:1px solid rgba(51,194,255,.25);
  border-radius:8px;
  background:#07335b;
  color:#70ddff;
  cursor:pointer;
  font-size:9px;
  font-weight:900;
}

.exp-sync-one:disabled{
  opacity:.5;
  cursor:wait;
}

.expiration-progress{
  margin:14px 20px;
  padding:14px;
  border:1px solid rgba(53,199,255,.2);
  border-radius:10px;
  background:rgba(3,32,62,.7);
}

.expiration-progress progress{
  width:100%;
  height:9px;
  margin-top:10px;
  accent-color:#24bfff;
}

.expiration-footer{
  display:flex;
  justify-content:space-between;
  gap:15px;
  padding:15px 20px;
  color:#789bb5;
  font-size:11px;
}

.exp-empty{
  padding:35px!important;
  text-align:center;
  color:#789bb5;
}

@media(max-width:1100px){
  .expiration-stats{
    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }
}

@media(max-width:650px){
  .expiration-hero-row{
    align-items:stretch;
    flex-direction:column;
  }

  .expiration-stats{
    grid-template-columns:1fr;
  }
}

/* ========================================
   HATORI EXPIRATION COMPACT V6
   ======================================== */

.expiration-table{
  width:100%;
  min-width:0;
  table-layout:auto;
}

.expiration-table th,
.expiration-table td{
  padding:13px 10px!important;
  font-size:10px;
  white-space:nowrap;
}

.expiration-table th:first-child,
.expiration-table td:first-child{
  padding-left:18px!important;
}

.exp-domain-link{
  display:block;
  max-width:260px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.exp-mobile-brand{
  display:none;
  color:#7196b2;
  font-size:9px;
  margin-top:4px;
}

.exp-rdap-badge{
  display:inline-flex;
  padding:5px 7px;
  border-radius:6px;
  font-size:8px;
  font-weight:900;
  background:rgba(120,145,170,.12);
  color:#a4b9c9;
}

.exp-rdap-badge.success{
  color:#4ee5b0;
  background:rgba(40,210,150,.1);
}

.exp-rdap-badge.error{
  color:#ff8194;
  background:rgba(255,70,95,.12);
}

.exp-rdap-badge.unavailable{
  color:#ffcc76;
  background:rgba(255,185,60,.12);
}

.exp-sync-one{
  padding:7px 10px;
  min-width:54px;
}

.expiration-table .exp-status{
  font-size:8px;
  padding:5px 7px;
}

@media(max-width:1350px){

  .expiration-table th,
  .expiration-table td{
    padding:11px 7px!important;
    font-size:9px;
  }

  .exp-domain-link{
    max-width:195px;
  }

  .exp-checked-cell{
    font-size:8px!important;
  }
}

@media(max-width:1000px){

  .exp-brand-cell,
  .exp-source-cell,
  .exp-checked-cell{
    display:none;
  }

  .exp-mobile-brand{
    display:block;
  }

  .expiration-table th:nth-child(2),
  .expiration-table th:nth-child(5),
  .expiration-table th:nth-child(7){
    display:none;
  }
}

@media(max-width:600px){

  .expiration-table th,
  .expiration-table td{
    padding:10px 6px!important;
    font-size:8px;
  }

  .exp-domain-link{
    max-width:145px;
  }

  .exp-sync-one{
    min-width:42px;
    padding:6px;
    font-size:8px;
  }
}

/* ========================================
   HATORI EXPIRATION DASHBOARD V7
   ======================================== */

.dashboard-expiration-panel{
  margin-top:20px;
}

.dashboard-expiration-list{
  display:grid;
  grid-template-columns:
    repeat(2,minmax(0,1fr));
  gap:12px;
}

.dashboard-expiration-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  padding:16px;
  border:1px solid rgba(53,199,255,.14);
  border-radius:12px;
  background:rgba(5,36,69,.65);
  text-decoration:none;
}

.dashboard-expiration-item strong{
  display:block;
  color:#eaf6ff;
  font-size:12px;
  overflow-wrap:anywhere;
}

.dashboard-expiration-item small{
  display:block;
  margin-top:6px;
  color:#83a4bd;
  font-size:10px;
}

.exp-view-all{
  color:#45d8ff;
  font-size:10px;
  font-weight:900;
  text-decoration:none;
}

.domain-rdap-panel{
  margin:18px 0;
}

.domain-rdap-grid{
  display:grid;
  grid-template-columns:
    repeat(4,minmax(0,1fr));
  gap:12px;
}

.domain-rdap-grid article{
  min-width:0;
  padding:15px;
  border:1px solid rgba(53,199,255,.14);
  border-radius:10px;
  background:rgba(5,36,69,.6);
}

.domain-rdap-grid span{
  display:block;
  margin-bottom:9px;
  color:#7e9fba;
  font-size:9px;
  font-weight:800;
}

.domain-rdap-grid strong{
  color:#eaf6ff;
  font-size:13px;
  overflow-wrap:anywhere;
}

.domain-rdap-error{
  margin-top:12px;
  color:#ff8b9a;
  font-size:11px;
}

@media(max-width:900px){
  .domain-rdap-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:650px){
  .dashboard-expiration-list{
    grid-template-columns:1fr;
  }

  .domain-rdap-grid{
    grid-template-columns:1fr;
  }
}

/* HATORI MANUAL EXPIRATION OVERRIDE */

.expiration-override-content{
  padding:8px 0;
}

.expiration-override-content > p{
  color:#86a9c4;
  font-size:12px;
  line-height:1.6;
}

.expiration-override-content label{
  display:block;
  margin-top:20px;
  color:#8cb3cd;
  font-size:10px;
  font-weight:900;
}

.expiration-override-content input{
  display:block;
  width:100%;
  margin-top:9px;
  padding:13px;
  border:1px solid rgba(53,199,255,.25);
  border-radius:9px;
  background:#062b50;
  color:#eaf7ff;
}

.expiration-override-rdap{
  display:flex;
  justify-content:space-between;
  gap:15px;
  margin-top:20px;
  padding:14px;
  border:1px solid rgba(53,199,255,.13);
  border-radius:9px;
  background:rgba(4,35,68,.6);
}

.expiration-override-rdap span{
  color:#83a6c0;
  font-size:10px;
  font-weight:800;
}

.expiration-override-rdap strong{
  color:#eaf7ff;
  font-size:12px;
}

.expiration-override-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:20px;
}

@media(max-width:600px){
  .expiration-override-actions{
    flex-direction:column;
  }
}

/* HATORI RDAP V8 UI REFINEMENT */

.domain-rdap-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.domain-rdap-actions button {
  width: auto;
  min-width: 135px;
  white-space: nowrap;
}

#expirationOverrideModal .hatori-modal {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 26px;
}

#expirationOverrideModal .modal-header {
  margin-bottom: 14px;
}

#expirationOverrideModal .modal-header h2 {
  font-size: 25px;
}

#expirationOverrideModal
.expiration-override-content > p {
  margin: 0;
  font-size: 12px;
}

#expirationOverrideModal
.expiration-override-content label {
  margin-top: 16px;
}

#expirationOverrideModal
.expiration-override-rdap {
  margin-top: 15px;
}

#expirationOverrideModal
.expiration-override-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

#expirationOverrideModal
.expiration-override-actions button {
  width: 100%;
  min-height: 44px;
}

@media (max-width: 650px) {
  .domain-rdap-actions {
    justify-content: flex-start;
  }

  .domain-rdap-actions button {
    min-width: 0;
    flex: 1;
  }

  #expirationOverrideModal .hatori-modal {
    padding: 20px;
  }

  #expirationOverrideModal
  .expiration-override-actions {
    grid-template-columns: 1fr;
  }
}

/* BACKUP MANAGER V5 ACTION */

.storage-hero .expiration-hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

#backupNowButton {
  width: auto !important;
  min-width: 155px;
  max-width: 190px;
  flex: 0 0 auto;
  padding: 13px 20px;
  white-space: nowrap;
}

@media (max-width: 650px) {
  .storage-hero .expiration-hero-row {
    align-items: stretch;
    flex-direction: column;
  }

  #backupNowButton {
    width: 100% !important;
    max-width: none;
  }
}

/* HATORI SETTINGS V9 */

.settings-types-panel {
  margin-top: 22px;
}

.settings-types-table {
  width: 100%;
  min-width: 0;
}

.settings-types-table th,
.settings-types-table td {
  padding: 14px 16px !important;
  font-size: 11px;
}

.settings-type-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.settings-type-actions button {
  padding: 8px 12px;
  border: 1px solid rgba(53,199,255,.2);
  border-radius: 8px;
  background: #07345d;
  color: #7bdcff;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.settings-type-actions button:hover {
  background: #0b4b80;
}

.settings-type-actions button:disabled {
  opacity: .5;
}

@media(max-width:700px) {
  .settings-types-table th,
  .settings-types-table td {
    padding: 10px 7px !important;
    font-size: 9px;
  }
}

/* HATORI DASHBOARD QUICK ACCESS FIX */

.quick-access-link {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.quick-access-link strong {
  color: #eaf6ff;
}

.quick-access-link small {
  color: #87a9c4;
}

.quick-access-link:hover {
  text-decoration: none;
}

/* HATORI V10 - BRAND MANAGEMENT */

.pyramid-add-brand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  margin-top: 12px;
  padding: 11px 16px;
  font-size: 11px;
  white-space: nowrap;
}

#pyramidBrandModal .hatori-modal {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
}

#pyramidBrandModal .modal-label {
  display: block;
  margin-top: 16px;
}

#pyramidBrandModal input,
#pyramidBrandModal textarea {
  width: 100%;
  margin-top: 8px;
}

@media (max-width: 650px) {
  .pyramid-add-brand-btn {
    width: 100%;
  }
}

/* HATORI PYRAMID BRAND LAYOUT V10.1 */

#pyramidModal .pyramid-brand-field {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 22px;
}

#pyramidModal .pyramid-brand-field
.modal-label {
  flex: 1;
  min-width: 0;
  margin: 0;
}

#pyramidModal .pyramid-brand-field
select {
  width: 100%;
  margin-top: 10px;
}

#pyramidModal .pyramid-add-brand-btn {
  flex: 0 0 auto;
  width: auto !important;
  min-height: 48px;
  margin: 0 !important;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 11px;
  white-space: nowrap;
}

#pyramidModal #pyramidForm > .modal-label {
  display: block;
  margin-bottom: 22px;
}

#pyramidModal #pyramidForm > .modal-label
input,
#pyramidModal #pyramidForm > .modal-label
textarea {
  margin-top: 10px;
}

@media (max-width: 650px) {
  #pyramidModal .pyramid-brand-field {
    flex-direction: column;
    align-items: stretch;
  }

  #pyramidModal .pyramid-add-brand-btn {
    width: 100% !important;
  }
}

/* HATORI NEW PYRAMID MODAL — COMPACT FIX */

#pyramidModal .hatori-modal {
  width: min(600px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 28px 32px;
}

#pyramidModal .modal-header {
  margin-bottom: 20px;
}

#pyramidModal .modal-header h2 {
  font-size: 27px;
}

#pyramidModal .pyramid-brand-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 16px;
}

#pyramidModal .pyramid-brand-field .modal-label {
  margin: 0;
  min-width: 0;
}

#pyramidModal .pyramid-brand-field select {
  width: 100%;
  height: 48px;
  margin-top: 8px;
}

#pyramidModal .pyramid-add-brand-btn {
  width: auto !important;
  min-width: 0;
  min-height: 48px;
  height: 48px;
  margin: 0 !important;
  padding: 0 14px;
  font-size: 10px;
  border-radius: 10px;
}

#pyramidModal #pyramidForm > .modal-label {
  margin-bottom: 16px;
}

#pyramidModal #pyramidForm > .modal-label input {
  min-height: 48px;
  margin-top: 8px;
}

#pyramidModal #pyramidForm > .modal-label textarea {
  min-height: 85px;
  max-height: 120px;
  margin-top: 8px;
}

#pyramidModal .modal-actions {
  margin-top: 22px;
  gap: 10px;
}

#pyramidModal .modal-actions button {
  min-height: 44px;
}

@media (max-width: 600px) {
  #pyramidModal .hatori-modal {
    padding: 22px 18px;
  }

  #pyramidModal .pyramid-brand-field {
    grid-template-columns: 1fr;
  }

  #pyramidModal .pyramid-add-brand-btn {
    width: 100% !important;
  }
}

/* HATORI V10.2 - ADD BRAND MODAL STACK */

#pyramidModal.open {
  z-index: 1000;
}

#pyramidBrandModal.open {
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 12, 35, .82) !important;
}

#pyramidBrandModal .hatori-modal {
  position: relative;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  z-index: 1;
}

#pyramidBrandModal .modal-actions {
  margin-top: 24px;
}

@media (max-width: 650px) {
  #pyramidBrandModal .hatori-modal {
    padding: 22px 18px;
  }
}

/* PYRAMID BRAND RULE */

#pyramidModal #pyramidBrandInput {
  width: 100%;
}

#pyramidModal .pyramid-brand-hint {
  display: block;
  margin-top: 9px;
  color: #8eb4d0;
  font-size: 11px;
  line-height: 1.6;
}

#pyramidModal .pyramid-brand-field {
  display: block;
  margin-bottom: 18px;
}

#pyramidModal .pyramid-brand-field .modal-label {
  display: block;
  width: 100%;
}

/* ==========================================
   HATORI V10.3 — MODAL POLISH
   NEW PYRAMID + CREATE BRAND
   ========================================== */

/* NEW PYRAMID */

#pyramidModal .hatori-modal {
  width: min(580px, calc(100vw - 32px)) !important;
  max-height: calc(100dvh - 32px);
  padding: 28px 30px !important;
  overflow-y: auto;
}

#pyramidModal .modal-header {
  margin-bottom: 22px !important;
}

#pyramidModal .modal-header h2 {
  font-size: 27px !important;
  line-height: 1.2;
}

#pyramidModal #pyramidForm {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#pyramidModal #pyramidForm > .modal-label {
  display: flex !important;
  flex-direction: column;
  gap: 8px;
  margin: 0 !important;
  font-size: 11px;
  line-height: 1.5;
}

#pyramidModal #pyramidBrandInput,
#pyramidModal #pyramidNameInput {
  width: 100%;
  height: 48px;
  min-height: 48px;
  margin: 0 !important;
  padding: 0 15px;
  font-size: 13px;
  border-radius: 10px;
}

#pyramidModal #pyramidDescriptionInput {
  width: 100%;
  height: 90px;
  min-height: 90px;
  max-height: 130px;
  margin: 0 !important;
  padding: 13px 15px;
  font-size: 13px;
  border-radius: 10px;
}

#pyramidModal .pyramid-brand-hint {
  display: block;
  margin: 0 !important;
  color: #8aaeca;
  font-size: 10px !important;
  font-weight: 400 !important;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
}

#pyramidModal .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px !important;
}

#pyramidModal .modal-actions button {
  width: auto;
  min-height: 44px;
  padding: 0 20px;
  font-size: 12px;
}

#pyramidModal .modal-actions .modal-primary {
  min-width: 170px;
}

/* CREATE BRAND — DOMAINS */

#brandModal .hatori-modal,
#createBrandModal .hatori-modal {
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 28px !important;
  overflow-y: auto;
}

#brandModal form,
#createBrandModal form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#brandModal .modal-label,
#createBrandModal .modal-label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0 !important;
  line-height: 1.5;
}

#brandModal input,
#brandModal textarea,
#createBrandModal input,
#createBrandModal textarea {
  width: 100%;
  margin: 0 !important;
  font-size: 13px;
  border-radius: 10px;
}

#brandModal input,
#createBrandModal input {
  min-height: 48px;
  padding: 0 15px;
}

#brandModal textarea,
#createBrandModal textarea {
  min-height: 95px;
  padding: 13px 15px;
}

#brandModal .modal-actions,
#createBrandModal .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px !important;
}

/* MOBILE */

@media (max-width: 600px) {
  #pyramidModal .hatori-modal,
  #brandModal .hatori-modal,
  #createBrandModal .hatori-modal {
    padding: 22px 18px !important;
  }

  #pyramidModal .modal-header h2 {
    font-size: 24px !important;
  }

  #pyramidModal .modal-actions {
    flex-wrap: wrap;
  }

  #pyramidModal .modal-actions button {
    flex: 1;
    min-width: 0;
  }
}


/* HATORI CREATE BRAND — FORM SPACING FIX */

#brandModal #brandForm {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#brandModal #brandForm > label {
  display: flex !important;
  flex-direction: column;
  gap: 10px;
  margin: 0 !important;
  font-size: 11px;
  line-height: 1.5;
}

#brandModal #brandName,
#brandModal #brandDescription {
  display: block;
  width: 100%;
  margin: 0 !important;
  box-sizing: border-box;
}

#brandModal #brandName {
  min-height: 48px;
}

#brandModal #brandDescription {
  min-height: 95px;
  resize: vertical;
}

#brandModal #brandForm .modal-actions {
  margin-top: 12px !important;
}


/* ==========================================
   HATORI JOBLIST V11.4
   MASTER JOBLIST UI
   ========================================== */

.joblist-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

#joblistAssignButton {
  width: auto !important;
  min-width: 160px;
  max-width: 200px;
  flex: 0 0 auto;
  padding: 13px 20px;
  white-space: nowrap;
}

/* STATISTICS */

.joblist-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.joblist-stats .storage-stat-card {
  min-width: 0;
  padding: 20px;
}

.joblist-stats .storage-stat-card strong {
  font-size: 29px;
  line-height: 1.3;
}

/* TOOLBAR */

.joblist-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  flex-wrap: wrap;
}

.joblist-toolbar input {
  flex: 1 1 260px;
  min-width: 180px;
  height: 44px;
}

.joblist-toolbar select {
  flex: 0 1 170px;
  min-width: 145px;
  height: 44px;
}

/* TABLE */

.joblist-manager {
  min-width: 0;
  overflow: hidden;
}

.joblist-manager .table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.joblist-table {
  width: 100%;
  min-width: 1250px;
  border-collapse: collapse;
}

.joblist-table th,
.joblist-table td {
  padding: 14px 15px !important;
  font-size: 11px;
  vertical-align: middle;
  text-align: left;
}

.joblist-table th {
  color: #80b8df;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .7px;
  white-space: nowrap;
}

.joblist-table td {
  color: #c4d9eb;
  max-width: 220px;
  overflow-wrap: anywhere;
}

.joblist-table td strong {
  color: #eaf7ff;
  font-weight: 700;
}

.joblist-table tbody tr {
  transition: background .15s ease;
}

.joblist-table tbody tr:hover {
  background: rgba(30, 140, 230, .08);
}

/* STATUS BADGES */

.joblist-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.joblist-status.todo {
  background: rgba(160, 175, 195, .14);
  color: #b9c9d9;
}

.joblist-status.progress {
  background: rgba(38, 158, 255, .15);
  color: #55c6ff;
}

.joblist-status.review {
  background: rgba(255, 185, 55, .14);
  color: #ffce72;
}

.joblist-status.done {
  background: rgba(37, 211, 150, .14);
  color: #60e9b8;
}

.joblist-status.cancelled {
  background: rgba(255, 85, 105, .13);
  color: #ff8d9d;
}

/* ACTION BUTTON */

.joblist-edit {
  width: auto !important;
  min-width: 65px;
  padding: 8px 12px !important;
  font-size: 10px !important;
  border-radius: 8px;
}

/* RESPONSIVE */

@media (max-width: 1200px) {
  .joblist-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .joblist-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .joblist-stats .storage-stat-card {
    padding: 15px;
  }

  .joblist-stats .storage-stat-card strong {
    font-size: 25px;
  }

  .joblist-hero {
    flex-direction: column;
    align-items: stretch;
  }

  #joblistAssignButton {
    width: 100% !important;
    max-width: none;
  }

  .joblist-toolbar {
    padding: 14px;
  }

  .joblist-toolbar input,
  .joblist-toolbar select {
    flex: 1 1 100%;
    width: 100%;
  }
}


/* HATORI JOBLIST V11.5 — DARK FILTERS */

.joblist-toolbar input,
.joblist-toolbar select {
  background: #061d36 !important;
  color: #dceeff !important;
  border: 1px solid #16466e !important;
  border-radius: 10px !important;
  outline: none;
  padding: 0 15px !important;
  box-shadow: none !important;
  color-scheme: dark;
}

.joblist-toolbar input::placeholder {
  color: #7298b7 !important;
  opacity: 1;
}

.joblist-toolbar input:focus,
.joblist-toolbar select:focus {
  border-color: #21bfff !important;
  box-shadow: 0 0 0 2px rgba(33,191,255,.12) !important;
}

.joblist-toolbar select option {
  background: #082542;
  color: #e7f5ff;
}

.joblist-toolbar input:hover,
.joblist-toolbar select:hover {
  border-color: #2876a7 !important;
}


/* HATORI JOBLIST V11.5 MODALS */

.joblist-dialog {
  width: min(570px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 28px;
}

.joblist-form {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.joblist-form > label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  color: #9bc6e4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
}

.joblist-form input,
.joblist-form select,
.joblist-form textarea {
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 12px 14px;
  box-sizing: border-box;
  background: #08294d;
  color: #e9f7ff;
  border: 1px solid #20567f;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: normal;
  color-scheme: dark;
}

.joblist-form textarea {
  min-height: 90px;
  resize: vertical;
}

.joblist-form input:focus,
.joblist-form select:focus,
.joblist-form textarea:focus {
  outline: none;
  border-color: #24c5ff;
  box-shadow: 0 0 0 2px rgba(36,197,255,.12);
}

.joblist-form .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.joblist-form .modal-actions button {
  width: auto;
  min-height: 44px;
  padding: 0 20px;
}

.joblist-error {
  color: #ff8b9c;
  font-size: 12px;
  margin: 0;
}

.joblist-error:empty {
  display: none;
}

.joblist-domain-name {
  color: #44d0ff;
  font-size: 15px;
  font-weight: 700;
}

@media(max-width:600px) {
  .joblist-dialog {
    padding: 22px 18px;
  }
}

/* HATORI V11.5.1 — DOMAIN SOURCE SWITCH */

.job-source-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 5px;
  background: #061d38;
  border: 1px solid #1b527c;
  border-radius: 12px;
}

.job-source-switch button {
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  background: transparent;
  color: #9cbfdb;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.job-source-switch button.active {
  background: linear-gradient(
    120deg, #087df1, #23c3ed
  );
  color: white;
  box-shadow: 0 3px 15px rgba(0,145,255,.15);
}

.joblist-form > label[hidden] {
  display: none !important;
}

#jobCustomField small {
  color: #87abc8;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
}

@media (max-width: 500px) {
  .job-source-switch {
    grid-template-columns: 1fr;
  }
}


/* ==========================================
   HATORI JOBLIST V11.5.2
   BRAND + DELETE BUTTON
   ========================================== */

/* BRAND SELECT */

#jobAssignBrand {
  width: 100%;
  min-height: 46px;
  background: #08294d !important;
  color: #e9f7ff !important;
  border: 1px solid #20567f !important;
  border-radius: 10px;
  padding: 12px 14px;
  color-scheme: dark;
}

#jobAssignBrand:disabled {
  opacity: .8;
  cursor: not-allowed;
  background: #092541 !important;
}

#jobBrandHint {
  display: block;
  margin-top: 5px;
  color: #85aecb;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
}

/* TABLE ACTION BUTTONS */

.joblist-table td:last-child {
  white-space: nowrap;
}

.joblist-edit,
.joblist-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  width: auto !important;
  padding: 8px 12px !important;
  border-radius: 8px;
  font-size: 10px !important;
  font-weight: 800;
  cursor: pointer;
}

.joblist-edit {
  background: #0b385f !important;
  color: #5bd4ff !important;
  border: 1px solid #185b86 !important;
}

.joblist-delete {
  margin-left: 6px;
  background: rgba(255, 65, 90, .09) !important;
  color: #ff8d9d !important;
  border: 1px solid rgba(255, 90, 110, .25) !important;
}

.joblist-delete:hover {
  background: rgba(255, 65, 90, .18) !important;
  border-color: #ff667e !important;
}

.joblist-delete:disabled {
  opacity: .5;
  cursor: not-allowed;
}


/* HATORI JOBLIST V11.6 WORKFLOW */

.job-status-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 3px;
  padding: 9px 12px;
  min-height: 34px;
  border-radius: 8px;
  border: 1px solid #1b638e;
  background: #0c3c65;
  color: #63d8ff;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.job-status-action:hover {
  background: #105481;
  border-color: #29c7ff;
}

.job-status-action[data-status="done"] {
  color: #5aefb7;
  border-color: rgba(50,210,150,.3);
  background: rgba(35,190,135,.12);
}

.job-status-action[data-status="review"] {
  color: #ffcc72;
  border-color: rgba(255,185,70,.3);
  background: rgba(255,185,70,.10);
}

.job-status-action:disabled {
  opacity: .5;
  cursor: wait;
}


/* HATORI JOBLIST V11.7 PENDING REMINDER */

.job-pending-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  margin: 20px 0 0;
  border: 1px solid rgba(255,185,75,.22);
  border-radius: 15px;
  background: linear-gradient(
    110deg,
    rgba(12,50,87,.95),
    rgba(8,35,65,.95)
  );
}

.job-pending-banner[hidden] {
  display: none !important;
}

.job-pending-icon {
  font-size: 27px;
  color: #ffc76c;
}

.job-pending-content {
  flex: 1;
}

.job-pending-content strong {
  display: block;
  color: #f4faff;
  font-size: 14px;
}

.job-pending-content p {
  margin: 5px 0 0;
  color: #9ebdd6;
  font-size: 12px;
}

#jobPendingView {
  width: auto !important;
  min-width: 125px;
  padding: 10px 15px;
}

@media(max-width:650px) {
  .job-pending-banner {
    flex-wrap: wrap;
  }

  #jobPendingView {
    width: 100% !important;
  }
}


/* HATORI V11.9 NOTIFICATIONS */
.job-notification-panel{
  margin:20px 0;
  padding:22px;
  background:#06213f;
  border:1px solid #174c77;
  border-radius:18px;
}
.job-notification-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:16px;
}
.job-notification-head h3{
  color:#eff8ff;
  margin:5px 0 0;
}
#jobNotifCount{
  color:#32d0ff;
}
.job-notification-list{
  display:grid;
  gap:10px;
}
.job-notification{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  padding:15px;
  background:#092c51;
  border:1px solid #16486f;
  border-radius:12px;
}
.job-notification.unread{
  border-color:#1d9fdf;
}
.job-notification strong{
  color:#e9f7ff;
  font-size:13px;
}
.job-notification p{
  color:#9abbd5;
  font-size:12px;
  margin:5px 0 0;
}
.job-notif-read{
  background:#104f7e;
  color:#66d9ff;
  border:1px solid #2378aa;
  padding:9px 13px;
  border-radius:8px;
  cursor:pointer;
}
.job-notif-empty{
  color:#87a9c7;
  font-size:13px;
}
@media(max-width:600px){
  .job-notification-head,
  .job-notification{
    flex-wrap:wrap;
  }
}

/* ==========================================
   HATORI V11.14 NOTIFICATION CENTER
   ========================================== */

.joblist-notification-toolbar {
  position: relative;
  display: flex;
  justify-content: flex-end;
  margin: 18px 0;
}

.joblist-notification-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.job-bell-button,
.job-remind-all {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 43px;
  padding: 10px 17px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.job-bell-button {
  color: #c9eaff;
  background: #092d53;
  border: 1px solid #1b5b89;
}

.job-remind-all {
  color: white;
  background: linear-gradient(120deg,#087df1,#23c3ed);
  border: 1px solid #29a8f5;
}

.job-bell-button:hover {
  border-color: #29c7ff;
}

#jobBellBadge {
  background: #ff526f;
  color: white;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 10px;
}

#jobBellBadge[hidden],
#jobRemindAll[hidden],
#jobBellPanel[hidden] {
  display: none !important;
}

.job-bell-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  z-index: 1200;
  width: min(420px, calc(100vw - 32px));
  max-height: 450px;
  overflow-y: auto;
  background: #082849;
  border: 1px solid #1b6392;
  border-radius: 16px;
  padding: 17px;
  box-shadow: 0 22px 55px rgba(0,0,0,.35);
}

.job-bell-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  color: #eff8ff;
}

#jobBellClose {
  background: #103b63;
  color: #a7ddff;
  border: 1px solid #20618e;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.job-bell-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px;
  margin-bottom: 8px;
  background: #092f55;
  border: 1px solid #164d76;
  border-radius: 10px;
}

.job-bell-item.unread {
  border-color: #1c9ddc;
}

.job-bell-item strong {
  color: #eaf7ff;
  font-size: 12px;
}

.job-bell-item p {
  margin: 5px 0 0;
  color: #99bcd8;
  font-size: 11px;
}

.job-bell-read {
  background: #10517f;
  color: #65d9ff;
  border: 1px solid #247caf;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

.job-bell-empty {
  color: #91b5d0;
  font-size: 12px;
}

@media(max-width:600px) {
  .joblist-notification-actions {
    width: 100%;
  }

  .job-bell-button,
  .job-remind-all {
    flex: 1;
  }
}


/* ==========================================
   HATORI JOBLIST V11.14.1
   NOTIFICATION + ACTION CLEANUP
   ========================================== */

/* Hide old notification panel */
.job-notification-panel {
  display: none !important;
}

/* Reminder buttons */
.joblist-table .joblist-remind,
.joblist-table .job-remind,
.joblist-table [data-remind-id] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  margin: 3px;
  border-radius: 8px;
  background: rgba(255, 185, 65, .12) !important;
  border: 1px solid rgba(255, 185, 65, .35) !important;
  color: #ffd078 !important;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.joblist-table .joblist-remind:hover,
.joblist-table .job-remind:hover,
.joblist-table [data-remind-id]:hover {
  background: rgba(255, 185, 65, .22) !important;
}

/* Action cell */
.joblist-table td:last-child {
  min-width: 290px;
  white-space: nowrap;
}

/* Notification toolbar */
.joblist-notification-toolbar {
  margin: 12px 0 18px;
}


/* ==========================================
   HATORI V11.15.2 — REMIND BUTTON FIX
   ========================================== */

.joblist-table button.joblist-remind,
.joblist-table button.job-remind,
.joblist-table button[data-remind-id],
.joblist-table button[data-job-remind],
.joblist-table button[data-remind] {
  appearance: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  width: auto !important;
  padding: 9px 14px !important;
  margin: 3px !important;
  border: 1px solid rgba(255,190,75,.4) !important;
  border-radius: 9px !important;
  background: rgba(255,183,55,.12) !important;
  color: #ffd078 !important;
  font-family: inherit !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  cursor: pointer;
  box-shadow: none !important;
}

.joblist-table button.joblist-remind:hover,
.joblist-table button.job-remind:hover,
.joblist-table button[data-remind-id]:hover,
.joblist-table button[data-job-remind]:hover,
.joblist-table button[data-remind]:hover {
  background: rgba(255,183,55,.23) !important;
  border-color: #ffc76c !important;
}


/* HATORI REMIND BUTTON FINAL */

button.hatori-remind-btn {
  appearance: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 36px !important;
  padding: 9px 14px !important;
  margin: 3px !important;
  border: 1px solid #d59a36 !important;
  border-radius: 9px !important;
  background: #423315 !important;
  color: #ffd078 !important;
  font-family: inherit !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  cursor: pointer;
  box-shadow: none !important;
}

button.hatori-remind-btn:hover {
  background: #62471a !important;
  border-color: #ffd078 !important;
}


/* ==========================================
   HATORI JOBLIST — REMIND BUTTON FINAL FIX
   Actual class: .job-remind-one
   ========================================== */

button.job-remind-one,
.joblist-table button.job-remind-one,
#joblistTableBody button.job-remind-one {
  appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  min-height: 38px !important;
  width: auto !important;
  padding: 9px 15px !important;
  margin: 3px !important;

  background: rgba(255, 184, 65, .12) !important;
  border: 1px solid rgba(255, 190, 75, .45) !important;
  border-radius: 9px !important;

  color: #ffd078 !important;
  font-family: inherit !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;

  box-shadow: none !important;
  cursor: pointer !important;
  transition: background .15s, border-color .15s !important;
}

#joblistTableBody button.job-remind-one:hover {
  background: rgba(255, 184, 65, .24) !important;
  border-color: #ffd078 !important;
}

#joblistTableBody button.job-remind-one:disabled {
  opacity: .5 !important;
  cursor: wait !important;
}


/* ==========================================
   HATORI V11.15.3 — TOAST NOTIFICATIONS
   ========================================== */

#hatoriJobToastContainer {
  position: fixed;
  top: 85px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(390px, calc(100vw - 32px));
  pointer-events: none;
}

.hatori-job-toast {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 17px;
  border-radius: 14px;
  background: #092b4d;
  border: 1px solid #237aa6;
  box-shadow: 0 18px 45px rgba(0,0,0,.35);
  animation: hatoriToastIn .2s ease-out;
  pointer-events: auto;
}

.hatori-job-toast.success {
  border-color: #228c70;
}

.hatori-job-toast.warning {
  border-color: #b8893b;
}

.hatori-job-toast.error {
  border-color: #d35a71;
}

.hatori-job-toast-icon {
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(42,210,165,.12);
  color: #55e8b5;
  font-size: 18px;
  font-weight: 900;
}

.hatori-job-toast.warning .hatori-job-toast-icon {
  background: rgba(255,190,75,.12);
  color: #ffd078;
}

.hatori-job-toast.error .hatori-job-toast-icon {
  background: rgba(255,90,115,.12);
  color: #ff8ea1;
}

.hatori-job-toast-content {
  flex: 1;
  min-width: 0;
}

.hatori-job-toast-content strong {
  display: block;
  color: #f0f9ff;
  font-size: 13px;
  margin-bottom: 5px;
}

.hatori-job-toast-content p {
  margin: 0;
  color: #a6c6dd;
  font-size: 12px;
  line-height: 1.5;
}

.hatori-job-toast-close {
  background: transparent;
  border: 0;
  color: #83b0ca;
  font-size: 20px;
  cursor: pointer;
}

@keyframes hatoriToastIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media(max-width:600px) {
  #hatoriJobToastContainer {
    top: 72px;
    right: 16px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .hatori-job-toast {
    animation: none;
  }
}


/* HATORI V11.15.4 CONFIRMATION MODAL */

.hatori-job-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px;
  background: rgba(0,12,30,.82);
}

.hatori-job-confirm-modal {
  width: min(460px,100%);
  padding: 30px;
  border-radius: 20px;
  background: linear-gradient(
    150deg,#103b70,#082449
  );
  border: 1px solid #2378b1;
  box-shadow: 0 25px 70px rgba(0,0,0,.45);
}

.hatori-job-confirm-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
  border-radius: 13px;
  background: rgba(255,195,85,.12);
  color: #ffd078;
  font-size: 26px;
  font-weight: 800;
}

.hatori-job-confirm-modal h3 {
  color: #f0f8ff;
  font-size: 24px;
  margin: 0 0 12px;
}

.hatori-job-confirm-modal p {
  color: #a8c6de;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 28px;
}

.hatori-job-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.hatori-job-confirm-actions button {
  min-height: 43px;
  padding: 11px 19px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.hatori-job-confirm-cancel {
  color: #b4d5eb;
  background: #10385f;
  border: 1px solid #205b88;
}

.hatori-job-confirm-accept {
  color: white;
  background: linear-gradient(
    110deg,#0986f5,#25c4ec
  );
  border: 1px solid #28b5f1;
}

.hatori-job-confirm-accept.danger {
  background: #a72e50;
  border-color: #df5578;
}

@media(max-width:600px) {
  .hatori-job-confirm-modal {
    padding: 24px;
  }

  .hatori-job-confirm-actions button {
    flex: 1;
  }
}


/* ==========================================
   HATORI V11.23.2 — SIDEBAR SCROLL FIX
   ========================================== */

/* Sidebar viewport */
.app-shell > .sidebar {
  display: flex;
  flex-direction: column;

  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;

  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;

  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;

  scrollbar-width: thin;
  scrollbar-color: #246b9b transparent;
}

/* Sidebar content */
.sidebar .sidebar-nav {
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
}

/* Prevent menu clipping */
.sidebar .nav-link {
  flex-shrink: 0;
  box-sizing: border-box;
}

/* Logo stays within sidebar */
.sidebar .sidebar-logo {
  flex-shrink: 0;
}

/* Footer remains reachable */
.sidebar > :last-child {
  flex-shrink: 0;
}

/* Scrollbar styling */
.sidebar::-webkit-scrollbar {
  width: 5px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #246b9b;
  border-radius: 10px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

/* Mobile sidebar */
@media (max-width: 900px) {
  .app-shell > .sidebar {
    position: fixed;

    top: 0;
    bottom: 0;

    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;

    overflow-x: hidden !important;
    overflow-y: auto !important;

    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }
}



/* HATORI SIDEBAR REBUILD — SOLID MOBILE */

@media (max-width:900px) {
  .app-shell > #sidebar {
    background: #061f40 !important;
    background-image: linear-gradient(
      180deg,#092b55 0%,#04172f 100%
    ) !important;
    opacity: 1 !important;
    backdrop-filter: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    height: 100dvh !important;
    max-height: 100dvh !important;
    z-index: 1001 !important;
  }

  #mobileOverlay.show {
    z-index: 1000 !important;
  }
}


/* HATORI V11.26.3 — NAVIGATION TRANSITION */

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.12s;
  animation-timing-function: ease-out;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0s;
  }
}

/* HATORI V11.26.4 — AUTH SIDEBAR LOADING */

/* Keep navigation protected until permission is ready */
.auth-pending .sidebar-nav {
  visibility: hidden;
}

/* Placeholder occupies sidebar area during auth */
.auth-pending .sidebar {
  position: relative;
}

.auth-pending .sidebar::after {
  content: '';
  position: absolute;
  top: 165px;
  left: 20px;
  right: 20px;
  height: 210px;
  border-radius: 12px;
  pointer-events: none;

  background: repeating-linear-gradient(
    180deg,
    rgba(32, 116, 174, .12) 0px,
    rgba(32, 116, 174, .12) 34px,
    transparent 34px,
    transparent 54px
  );
}

html:not(.auth-pending) .sidebar::after {
  content: none;
}


/* HATORI V11.28.1 — COMPACT JOBLIST */

#joblistTableBody td {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  height: auto !important;
  font-size: 11px !important;
  line-height: 1.45 !important;
}

/* Action buttons */
#joblistTableBody button {
  min-height: 32px !important;
  height: 32px !important;
  padding: 0 10px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  border-radius: 8px !important;
  white-space: nowrap;
}

/* Status badges */
#joblistTableBody .job-status,
#joblistTableBody .status-badge {
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 6px 10px !important;
  border-radius: 8px !important;
}

/* Keep action buttons aligned */
#joblistTableBody td:last-child {
  white-space: nowrap;
}

@media (max-width: 650px) {
  #joblistTableBody td {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  #joblistTableBody button {
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 8px !important;
    font-size: 10px !important;
  }
}
