
 
.wrap{
  max-width:1100px;
  margin:20px auto;
  padding:0 12px;
}
.toprow{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:14px;
}
.toplinks{margin-left:auto;display:flex;gap:8px;justify-content:flex-end;}
.toplinks a{font-size:12px;color:rgba(255,255,255,.84);text-decoration:none;}
.h1{
  margin:0 0 14px;
  font-size:22px;
  letter-spacing:.2px;
}
.small{
  margin:0;
  font-size:12px;
  color:rgba(255,255,255,.75);
}
.card{
  border:1px solid rgba(255,255,255,.18);
  border-radius:12px;
  background:rgba(255,255,255,.04);
  padding:14px;
}
.form-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.field{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:160px;
  flex:1;
}
label{
  font-size:12px;
  color:rgba(255,255,255,.75);
}
input[type="text"], input[type="password"], textarea{
  width:100%;
  padding:10px 10px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.20);
  background:rgba(0,0,0,.25);
  color:rgba(255,255,255,.92);
  outline:none;
}
textarea{
  min-height:110px;
  resize:none;
  overflow:auto;
  line-height:1.55;
}
.btnrow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:10px;
}
.btn{
  display:inline-flex;
  padding:9px 12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.20);
  background:rgba(255,255,255,.06);
  color:rgba(255,255,255,.90);
  text-decoration:none;
  font-size:13px;
  font-weight:inherit;
  cursor:pointer;
}
.btn.danger{ border-color:rgba(255,255,255,.20); }

 
.bottombar{margin-top:12px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;}

 
.gb-write-togglebar{ display:none; }
.gb-midbar{
  position:relative;
  margin:18px 0 14px;
  height:44px;
}
.gb-midbar:before{
  content:"";
  position:absolute;
  left:0; right:0;
  top:50%;
  height:1px;
  background:linear-gradient(to right, transparent, rgba(255,255,255,.25), transparent);
  transform:translateY(-50%);
}
.gb-midbar .gb-midbar-btn{
  position:absolute;
  left:50%; top:50%;
  transform:translate(-50%,-50%);
  display:inline-block;
  padding:10px 16px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(10,10,10,.85);
  backdrop-filter: blur(8px);
  color:rgba(255,255,255,.85);
  font-size:12px;
  text-decoration:none;
  white-space:nowrap;
  cursor:pointer;
}

 
.gb-writebox{ max-height:none; overflow:visible; opacity:1; pointer-events:auto; }
@media (max-width: 720px){
  .gb-write-togglebar{ display:block; }
  .gb-midbar .gb-midbar-btn{ font-weight:700; }
  .gb-writebox{
    max-height:0;
    overflow:hidden;
    opacity:0;
    pointer-events:none;
    transition:max-height .28s ease, opacity .18s ease;
  }
  .gb-writebox.open{
    opacity:1;
    pointer-events:auto;
  }
}

 
.write-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:10px 16px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  font-size:13px;
  text-decoration:none;
  color:rgba(255,255,255,.90);
  cursor:pointer;
   
  flex:0 0 auto;
  min-width:64px;
   
  white-space:nowrap;
  word-break:keep-all;
}

 
@media (hover:hover) and (pointer:fine){
  .write-btn:hover{
    background:rgba(255,255,255,.10);
    border-color:rgba(255,255,255,.22);
    color:rgba(255,255,255,.95);
    text-decoration:none;
  }
  .toplinks a:hover{color:#fff;text-decoration:none;}
  .btn:hover{ background:rgba(255,255,255,.10); }
  .gb-midbar .gb-midbar-btn:hover{
    background:rgba(255,255,255,.06);
    border-color:rgba(255,255,255,.28);
    color:rgba(255,255,255,.95);
  }
  .gb-abtn:hover{
    background:rgba(255,255,255,.11);
    border-color:rgba(255,255,255,.22);
  }
  .cmt-btn:hover{background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.22);}
}

 
.gb-abtn{
  white-space:nowrap;
  word-break:keep-all;
  display:inline-flex;
  align-items:center;
  justify-content:center;
   
  font-size:13px;
  padding:8px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.08);
  color:#fff;
  text-decoration:none;
  cursor:pointer;
  flex:0 0 auto;
  min-width:52px;
}
.list{
  margin-top:14px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.item{
  border:1px solid rgba(255,255,255,.14);
  border-radius:12px;
  background:rgba(255,255,255,.03);
  padding:12px 14px;
}
.meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.meta .left{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.name{
  font-weight:700;
  color:rgba(255,255,255,.92);
}
.date{
  font-size:12px;
  color:rgba(255,255,255,.70);
}
.body{
  margin-top:10px;
  line-height:1.65;
  font-size:13px;
  color:rgba(255,255,255,.88);
  white-space:pre-wrap;
  word-break:break-word;
}
.actions{
  display:flex;
  gap:8px;
  flex-wrap:nowrap;
}


/* ===== 원글 ⋮ 메뉴 ===== */
.gb-menu-wrap{position:relative;display:inline-flex;align-items:center;}
.gb-dot-btn{
  background:transparent;
  border:0;
  padding:0 4px;
  line-height:1;
  font-size:22px;
  color:rgba(255,255,255,.90);
  cursor:pointer;
}
.gb-dot-menu{
  position:absolute;
  top:100%;
  right:0;
  margin-top:6px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:6px;
  background:#111;
  padding:6px 0;
  z-index:20;
  color:rgba(255,255,255,.70);
}
.gb-menu-item{
  display:block;
  width:100%;
  text-align:left;
  background:transparent;
  border:0;
  padding:9px 18px;
  font-size:13px;
  color:inherit;
  cursor:pointer;
  white-space:nowrap;
}
@media (hover:hover) and (pointer:fine){
  .gb-dot-menu .gb-menu-item:hover{
    text-decoration:none;
    color:rgba(255,255,255,.90);
  }
}
.hp{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}



 
.cmt-wrap{
  margin-top:12px;
  padding-top:10px;
  border-top:1px solid rgba(255,255,255,.10);
}
.cmt-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}
.cmt-title{
  font-size:12px;
  color:rgba(255,255,255,.75);
}
.cmt-list{
  display:flex;
  flex-direction:column;
  gap:8px;

   
  max-height:0;
  overflow:hidden;
  opacity:0;
  pointer-events:none;
  transition:max-height .28s ease, opacity .18s ease;
}
.cmt-wrap.cmt-open .cmt-list{
   

  max-height:200000px;
  opacity:1;
  pointer-events:auto;
}
.cmt-item{
  border:1px solid rgba(255,255,255,.10);
  border-radius:10px;
  background:rgba(255,255,255,.02);
  padding:10px 12px;
}
.cmt-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}
.cmt-left{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  min-width:0;
}
.cmt-name{font-weight:700;color:rgba(255,255,255,.90);font-size:12px;}
.cmt-date{font-size:11px;color:rgba(255,255,255,.65);}
.cmt-actions{display:flex;gap:8px;flex-wrap:nowrap;}
.cmt-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.06);
  color:#fff;
  text-decoration:none;
  cursor:pointer;
  font-size:11px;
  white-space:nowrap;
  word-break:keep-all;
}
.cmt-body{
  margin-top:8px;
  font-size:12px;
  line-height:1.6;
  color:rgba(255,255,255,.88);
  white-space:pre-wrap;
  word-break:break-word;
}
.cmt-empty{
  font-size:12px;
  color:rgba(255,255,255,.68);
  padding:8px 2px;
}
.cmt-formbox{
   
  max-height:0;
  overflow:hidden;
  opacity:0;
  pointer-events:none;
  transition:max-height .28s ease, opacity .18s ease;
}
.cmt-wrap.cmt-open .cmt-formbox{
   

  max-height:200000px;
  opacity:1;
  pointer-events:auto;
}
.cmt-form{
  margin-top:10px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  background:rgba(255,255,255,.02);
  padding:10px 12px;
}

 
.cmt-writebar{
  position:relative;
  margin:6px 0 8px;
  height:36px;
  display:none;  
}
.cmt-writebar:before{
  content:"";
  position:absolute;
  left:0; right:0;
  top:50%;
  height:1px;
  background:linear-gradient(to right, transparent, rgba(255,255,255,.25), transparent);
  transform:translateY(-50%);
}
@media (max-width: 720px){
  .cmt-writebar{ display:block; margin:10px 0; height:20px; }
  .cmt-form{ margin-top:0; }
}
.cmt-form-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:8px;
}
.cmt-field{
  flex:1;
  min-width:140px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.cmt-form textarea{
  min-height:86px;
  resize:none;
}
.cmt-form .cmt-submit{
  display:flex;
  justify-content:flex-end;
  margin-top:8px;
}
 
.gb-backdrop{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(0,0,0,.55);
  z-index:3100;
}
.gb-backdrop.show{ display:flex; }
.gb-box{
  width:100%;
  max-width:420px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.18);
  background:#111;
  box-shadow:0 14px 40px rgba(0,0,0,.45);
  overflow:hidden;
}
.gb-hd{
  padding:14px 16px;
  border-bottom:1px solid rgba(255,255,255,.10);
  font-weight:800;
}
.gb-bd{
  padding:14px 16px;
}
.gb-ft{
  padding:12px 16px;
  border-top:1px solid rgba(255,255,255,.10);
  display:flex;
  justify-content:flex-end;
  gap:10px;
}
#gbPwOk:focus,
#gbPwOk:focus-visible{outline:none;}
.gb-help{
  margin:0 0 10px;
  font-size:12px;
  color:rgba(255,255,255,.75);
  line-height:1.5;
}

 
@media (max-width: 720px){
  .write-btn{
    font-size:12px;
    padding:8px 12px;
    flex:0 0 auto;
    min-width:64px;
  }
  .gb-abtn{
    font-size:11px;
    padding:8px 10px;
    flex:0 0 auto;
    min-width:52px;
  }

   
  .actions{ gap:8px; }
  .cmt-actions{ gap:8px; }

  .gb-abtn[data-gb="view"],
  .gb-abtn[data-gb="edit"],
  .gb-abtn[data-gb="delete"],
  .cmt-btn[data-gbc="cdel"]{
    border:0;
    background:transparent;
    padding:0;
    min-width:0;
    border-radius:0;
    font-weight:300;
    color:rgba(255,255,255,.68);
  }

   
  .cmt-btn[data-cmt="toggle"]{
    border:0;
    background:transparent;
    padding:0;
    min-width:0;
    border-radius:0;
    font-weight:700;
  }

   


  .cmt-title{
    font-weight:700;
    color:#fff;
    cursor:pointer;
    user-select:none;
  }
  .cmt-btn[data-cmt="toggle"]{ display:none; }
}

 
@media (min-width: 721px){
   
  .gb-abtn{
    border:0;
    background:transparent;
    border-radius:0;
    box-shadow:none;
    outline:none;

    padding:0;
    min-width:auto;
  }

   
  .gb-abtn[data-gb="view"],
  .gb-abtn[data-gb="edit"],
  .gb-abtn[data-gb="delete"]{
    font-weight:300;
    color:rgba(255,255,255,.68);
  }
   
  .cmt-actions .cmt-btn[data-gbc="cdel"]{
    border:0;
    background:transparent;
    border-radius:0;
    box-shadow:none;
    outline:none;

    padding:0;
    min-width:auto;

    font-weight:300;
    color:rgba(255,255,255,.68);
  }

}

@media (min-width: 721px) and (hover:hover) and (pointer:fine){
  .gb-abtn:hover{
    background:transparent;
    color:rgba(255,255,255,.95);
  }
  .cmt-actions .cmt-btn[data-gbc="cdel"]:hover{
    background:transparent;
    color:rgba(255,255,255,.95);
  }
}


 
html.gb-strong-dim .pm-msg-backdrop{ background:rgba(0,0,0,.55); }
 
.gb-field-f07{flex:0.7;}
.gb-field-f06{flex:0.6;}
.gb-field-secret{flex:0 0 110px;min-width:110px;}
.gb-field-full{min-width:100%;}

.gb-secret-row{
  display:flex;
  align-items:center;
  gap:8px;
  height:42px;
}
.gb-secret-check{width:auto;}
.gb-secret-label{font-size:12px;color:rgba(255,255,255,.80);}

.cmt-field-captcha{flex:0.6;min-width:140px;}
.cmt-field-full{min-width:100%;}


.pager[data-gb-pager="1"]{
  flex:1;
  justify-content:center;
  margin-top:0;
}
.gb-flex-spacer{flex:1;}
.gb-hidden{display:none;}
