@charset "UTF-8";
@import url("https://cdn.jsdelivr.net/gh/sunn-us/SUIT/fonts/static/woff2/SUIT.css");
* {
  padding: 0;
  margin: 0;
}

html, body {
  height: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-size: 14px;
  text-align: center;
  color: #333;
  background-image: url("/img/PAPER_GRAY.webp");
  font-family: "나눔고딕";
}

body {
  color: #3a3530;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.5em;
}

@font-face {
  font-family: "나눔고딕";
  src: url("../font/NanumGothic-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "와우폰트";
  src: url("../font/LifeCraft_Font.ttf") format("truetype");
}
@font-face {
  font-family: "월인석보";
  src: url("/font/wisb/월인석보 OTF R.otf") format("opentype");
}
@font-face {
  font-family: "나눔스퀘어라운드";
  src: url("/font/nanum-square-round/NanumSquareRoundOTFR.otf") format("opentype");
}
@font-face {
  font-family: "레코체";
  src: url("/font/레코체/Recipekorea 레코체 FONT.otf") format("opentype");
}
@keyframes vibe {
  0% {
    width: 30px;
  }
  25% {
    width: 40px;
  }
  50% {
    width: 30px;
  }
  75% {
    width: 20px;
  }
  100% {
    width: 30px;
  }
}
.clicked {
  animation: vibe 1s 2;
}

button.feed_goodbadButtonModify, button.feed_goodbadButtonDelete {
  margin: 5px;
}

.button {
  background-color: white;
  border: 1px solid;
  color: black;
  padding: 1px 0px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 13px;
  margin: 0;
  cursor: pointer;
}

input {
  display: inline-block;
}

input#i1 {
  width: 20%;
}

input#if1, input#if2 {
  width: 80%;
}

input#inputChkNotice {
  display: none;
}

.tr1 input {
  vertical-align: middle;
  margin: 5px auto;
}

.tr1 textarea {
  vertical-align: middle;
  margin: 5px auto;
}

textarea {
  width: 70%;
  resize: none;
  display: inline-block;
}

textarea#fw_ta {
  height: 300px;
  width: 90%;
}

textarea.desc {
  resize: none;
  display: inline-block;
  min-height: 100px;
}

textarea.feedwrite, textarea.brdYzwrite, textarea.brdYoutubewrite {
  width: 90%;
  height: 80vh;
}

textarea.brdYoutubewrite {
  height: 50vh;
}

textarea.brdYzwrite {
  height: 50vh;
}

@media screen and (max-width: 768px) {
  textarea.desc {
    width: 95%;
  }
  div.maintext, div.p0_maintext, div.maintext_reply {
    display: block;
    width: 100%;
    padding-left: 0;
  }
  div.subtext, div.p0_subtext, div.subtext_reply {
    display: inline-block;
    width: 65%;
  }
  div#content {
    padding-left: 0;
  }
  th, td {
    padding-top: 3px;
    padding-bottom: 3px;
  }
  div.shame {
    width: 80%;
  }
  a.read_a {
    padding-left: 0;
  }
}
label {
  cursor: pointer;
}
label.label_notice {
  color: red;
  font-weight: bold;
}

progress {
  width: 90%;
  margin: 5px auto;
  display: block;
}

fieldset {
  border: 1px solid #ddd;
  padding: 10px;
  margin: 10px 0;
}
fieldset legend {
  padding: 0 10px;
}

select {
  padding: 5px;
  margin: 5px 0;
  border: 1px solid #ddd;
}
select:focus {
  outline: none;
  border-color: #666;
}

button.btn-close {
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  padding: 0 5px;
}
button.btn-close:hover {
  color: #ff0000;
}

table {
  width: 100%;
  margin: 10px auto;
  border-collapse: collapse;
  background-color: rgba(252, 249, 242, 0.62);
}

th, td {
  padding: 5px auto;
  min-height: 12px;
  border: 1px solid rgba(0, 0, 0, 0.13);
  padding-top: 10px;
  padding-bottom: 10px;
}

td.td_p0 {
  height: 2.5vh;
}
td#td0 {
  text-align: center;
}
td.fw_td1 {
  width: 20%;
}
td.fw_td2 {
  text-align: left;
  padding-left: 3%;
}

th {
  color: white;
  background: #3a3530;
}
th.th_header {
  padding: 0;
  height: 60vh;
  vertical-align: top;
}

tr:has(td.td_p0) {
  transition: background-color 0.12s;
  cursor: pointer;
}
tr:has(td.td_p0):hover {
  background-color: rgba(0, 0, 0, 0.04);
}

@media screen and (max-width: 768px) {
  th, td {
    padding-top: 3px;
    padding-bottom: 3px;
  }
  th.th_header {
    height: 100%;
    vertical-align: center;
  }
  td.td_p0 {
    height: 0;
  }
}
img.penguin {
  width: 100%;
  max-width: 100%;
}

img.chk {
  max-width: 500px;
}

img.img_read, img.feed_img, img.brdYz_img, img.brdYoutube_img {
  max-width: 50vw;
  height: auto;
}

img.icon {
  height: 13px;
  width: 13px;
  margin: 0;
  padding: 0;
}

img.good, img.bad {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  cursor: pointer;
}

img.clicked {
  animation-duration: 1s;
  animation-name: vibe;
  animation-iteration-count: 2;
}

img#img_main:hover {
  content: url("/img/장드시뇽.png");
}

@media screen and (max-width: 768px) {
  img.img_read {
    max-width: 100%;
  }
}
@media screen and (max-width: 768px) {
  img.penguin {
    width: 200px;
  }
  img.chk {
    max-width: 90%;
  }
  img.img_read, img.feed_img, img.brdYoutube_img, img.brdYz_img {
    max-height: none;
  }
  img.good, img.bad {
    width: 20px;
    height: 20px;
  }
}
a.read_a {
  display: inline-block;
  margin: 0 auto;
  text-decoration: none;
  color: #222;
  font-weight: 600;
  padding-left: 5px;
}

.pagination .page-link {
  color: #3a3530;
  border-color: rgba(0, 0, 0, 0.13);
}
.pagination .page-link:hover {
  color: #3a3530;
  background-color: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.13);
}
.pagination .page-link:focus {
  box-shadow: none;
}

.pagination .page-item.active .page-link {
  background-color: #3a3530;
  border-color: #3a3530;
  color: white;
}

a.button {
  background-color: white;
  border: 1px solid;
  color: black;
  padding: 1px 0px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 13px;
  margin: 0;
  cursor: pointer;
}

@media screen and (max-width: 768px) {
  a.read_a {
    padding-left: 0;
  }
}
ul > li {
  display: inline-block;
}

ul > li.liHotWhere {
  width: 20%;
}

ul > li.liHotId {
  display: none;
}

ul > li.liHotTitle {
  font-size: 14px;
  width: 50%;
}

ul.ulHot.ulHot-clickable {
  cursor: pointer;
}
ul.ulHot.ulHot-clickable:hover {
  cursor: pointer;
  font-weight: bold;
}

ul > li.liHotDatetime {
  font-size: 12px;
  width: 25%;
}

input#inputChkNotice ~ li {
  display: none;
}

input#inputChkNotice:checked ~ li {
  display: block;
}

@media screen and (max-width: 768px) {
  ul > li.liHotTitle {
    font-size: 14px;
    width: 100%;
  }
  ul > li.liHotDatetime {
    font-size: 12px;
    width: 70%;
  }
  ul > li.liHotWhere {
    width: 20%;
  }
}
.notice-list {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}
.notice-list li {
  display: block;
  margin: 5px 0;
}

li.notice {
  display: block;
  margin: 5px 0;
}

div.notice {
  font-family: "월인석보";
  background-color: rgba(252, 249, 242, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  margin: 6px 0;
  padding: 0;
  text-align: left;
  overflow: hidden;
}
div.notice label[for=inputChkNotice] {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  user-select: none;
}
div.notice label[for=inputChkNotice]:hover {
  background: rgba(0, 0, 0, 0.03);
}
div.notice li {
  display: none;
  padding: 4px 16px;
  font-size: 13px;
  color: #666;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  list-style: disc;
}
div.notice input#inputChkNotice {
  display: none;
}
div.notice input#inputChkNotice:checked ~ li {
  display: block;
}

p {
  margin: 10px auto;
}
p.p_modify {
  display: inline;
  font-size: 12px;
}
p.hidden {
  display: none; /* f_id를 넘기기 위해 */
}

blockquote {
  margin: 1em 0;
  padding: 0.8em 1em;
  border: 1px solid #ccc;
  border-left: 5px solid #71bc6d;
  background-color: rgba(0, 0, 0, 0.02);
  text-align: left;
}
blockquote > :first-child {
  margin-top: 0;
}
blockquote > :last-child {
  margin-bottom: 0;
}

span.title_login, span.title_sub_login {
  margin: 0 auto;
}

span.caption {
  background-color: orange;
}

span.feed_tmp {
  margin-left: 5px;
}

span.feed_count {
  font-size: 0.8em;
  color: #666;
}

span.feed_goodbad_count {
  display: inline-block;
  min-width: 30px;
}

span.feed_goodbad_text {
  font-size: 0.9em;
  margin-right: 10px;
}

@media screen and (max-width: 768px) {
  span.title {
    font-size: 16px;
  }
  span.title_sub {
    font-size: 12px;
  }
}
iframe.youtube {
  top: 0;
  left: 0;
  position: absolute;
  width: 100%;
  height: 100%;
}

div.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
div.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

video.preview {
  max-width: 300px;
  margin: 5px;
  border: 1px solid #ddd;
}

@media screen and (max-width: 768px) {
  audio {
    width: 150px;
    height: 25px;
  }
}
.forum-search {
  margin: 20px 0;
  padding: 15px;
  background-color: rgba(252, 249, 242, 0.62);
  border-radius: 5px;
}
.forum-search .search-form {
  display: flex;
  gap: 10px;
  align-items: center;
}
.forum-search .search-select {
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: 4px;
  background-color: white;
  min-width: 100px;
}
.forum-search .search-input {
  flex: 1;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: 4px;
}
.forum-search .search-button {
  padding: 8px 16px;
  background-color: #3a3530;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.forum-search .search-button:hover {
  background-color: rgb(30.0943396226, 27.5, 24.9056603774);
}

.page-toolbar {
  display: flex;
  align-items: center;
  margin: 14px 0 6px;
  background: rgba(252, 249, 242, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  padding: 8px 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.page-toolbar .toolbar-left {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
}
.page-toolbar .toolbar-center {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.page-toolbar .toolbar-right {
  flex: 4;
}

.forum-category-filter {
  display: flex;
  gap: 8px;
  margin: 12px 0 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.forum-category-filter::-webkit-scrollbar {
  display: none;
}
.forum-category-filter .category-btn {
  flex: 0 0 auto;
  padding: 5px 14px;
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: 20px;
  font-size: 13px;
  color: #333;
  text-decoration: none;
  background-color: white;
  white-space: nowrap;
  word-break: keep-all;
  transition: background-color 0.15s, color 0.15s;
}
.forum-category-filter .category-btn:hover {
  background-color: #3a3530;
  color: white;
  border-color: #3a3530;
}
.forum-category-filter .category-btn.active {
  background-color: #3a3530;
  color: white;
  border-color: #3a3530;
}

.forum-category-badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: bold;
  margin-right: 5px;
  vertical-align: middle;
}
.forum-category-badge.cat-0 {
  background-color: #e8f4fd;
  color: #2980b9;
}
.forum-category-badge.cat-1 {
  background-color: #fef9e7;
  color: #d4a017;
}
.forum-category-badge.cat-2 {
  background-color: #eafaf1;
  color: #1e8449;
}

.category-select {
  padding: 5px 8px;
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: 4px;
  background-color: white;
}

@media screen and (max-width: 768px) {
  .page-toolbar {
    gap: 8px;
    padding: 8px;
  }
  .page-toolbar .toolbar-left {
    flex: 1 1 auto;
    min-width: 0;
  }
  .page-toolbar .toolbar-center {
    flex: 0 0 auto;
    margin-left: 4px;
  }
  .forum-category-filter {
    gap: 6px;
    margin: 0;
    padding-bottom: 2px;
  }
  .forum-category-filter .category-btn {
    padding: 5px 12px;
    font-size: 12px;
  }
  .forum-search .search-form {
    flex-direction: column;
    gap: 8px;
  }
  .forum-search .search-select,
  .forum-search .search-input,
  .forum-search .search-button {
    width: 100%;
  }
}
.file-section {
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 8px;
  background-color: #f9f9f9;
  margin: 10px 0;
}
.file-section .file-header {
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}
.file-section .file-item {
  margin: 8px 0;
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.file-section .file-item .file-icon {
  font-size: 16px;
}
.file-section .file-item .file-link {
  text-decoration: none;
  color: #0066cc;
  flex: 1;
}
.file-section .file-item .file-link:hover {
  text-decoration: underline;
}
.file-section .file-item .file-size {
  color: #888;
  font-size: 0.9em;
}
.file-section .file-summary {
  background-color: #f0f0f0;
  padding: 8px;
  border-radius: 4px;
  font-size: 0.9em;
  color: #666;
}

@media screen and (max-width: 768px) {
  .file-section {
    padding: 10px;
  }
  .file-section .file-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
.visitor-count {
  font-size: 12px;
  color: #666;
  margin-left: 10px;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid #ddd;
  display: inline-block;
}
.visitor-count:hover {
  background-color: rgba(255, 255, 255, 0.9);
  color: #333;
}
@media screen and (max-width: 768px) {
  .visitor-count {
    display: block;
    margin-left: 0;
    margin-top: 5px;
    font-size: 11px;
    text-align: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
}

nav .visitor-count {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: light) {
  .visitor-count {
    background-color: rgba(135, 206, 235, 0.2);
    border-color: rgba(135, 206, 235, 0.5);
  }
}
.user-info {
  margin-left: 15px;
  font-size: 12px;
}
.user-info .user-nickname {
  color: #333;
  margin-right: 10px;
  font-weight: bold;
}
.user-info .btn-user, .user-info .btn-admin, .user-info .btn-logout {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 2px 6px;
  border-radius: 3px;
  text-decoration: none;
  color: #333;
  margin: 0 2px;
  font-size: 11px;
  border: 1px solid #ddd;
}
.user-info .btn-user:hover, .user-info .btn-admin:hover, .user-info .btn-logout:hover {
  background-color: rgba(255, 255, 255, 0.9);
  color: #000;
}
.user-info .btn-admin {
  background-color: rgba(255, 0, 0, 0.1);
  border-color: #ff6b6b;
  color: #d63031;
}
.user-info .btn-admin:hover {
  background-color: rgba(255, 0, 0, 0.2);
}
.user-info .btn-logout {
  background-color: rgba(255, 165, 0, 0.1);
  border-color: #fdcb6e;
  color: #e17055;
}
.user-info .btn-logout:hover {
  background-color: rgba(255, 165, 0, 0.2);
}

.auth-links {
  margin-left: 15px;
  font-size: 12px;
}
.auth-links .btn-login, .auth-links .btn-register {
  background-color: rgba(0, 123, 255, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
  text-decoration: none;
  color: #007bff;
  margin: 0 2px;
  font-size: 11px;
  border: 1px solid #007bff;
}
.auth-links .btn-login:hover, .auth-links .btn-register:hover {
  background-color: rgba(0, 123, 255, 0.2);
}

@media screen and (max-width: 768px) {
  .user-info, .auth-links {
    display: block;
    margin-left: 0;
    margin-top: 5px;
    text-align: center;
  }
}
div.header {
  width: 100%;
  background-color: rgba(252, 249, 242, 0.62);
  padding: 20px 0;
  text-align: center;
}

div.div_titleimg {
  width: 100%;
  text-align: center;
}

div.div_imgaudio {
  text-align: center;
  margin: 10px auto;
}

.hot-container {
  margin: 4px 0;
  background-color: rgba(252, 249, 242, 0.62);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  overflow: hidden;
}

ul.ulHot {
  margin: 0;
  padding: 5px 10px;
  font-size: 14px;
  color: #333;
  width: 100%;
  text-align: left;
  background-color: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
ul.ulHot:last-child {
  border-bottom: none;
}
ul.ulHot.ulHot-header {
  font-weight: 600;
  font-size: 12px;
  color: #888;
  padding: 6px 10px;
}

@media screen and (max-width: 768px) {
  div.header {
    padding: 10px 0;
  }
}
div.footer {
  width: 100%;
  background-color: rgba(255, 255, 240, 0.85);
  padding: 20px 0;
  text-align: center;
  margin-top: 50px;
}

@media screen and (max-width: 768px) {
  div.footer {
    padding: 10px 0;
    margin-top: 30px;
  }
}
nav {
  position: fixed;
  width: 15%;
  height: 100vh;
  top: 0;
  padding: 0 8px;
  box-sizing: border-box;
}

@media screen and (max-width: 768px) {
  nav {
    position: static;
    width: 100%;
    height: auto;
  }
}
span.title {
  font-size: 16px;
  text-shadow: 10px 10px 8px;
  font-weight: bold;
  color: lightgray;
  display: inline-block;
  margin: 10% auto;
}

span.title_sub {
  font-family: "SUIT", "Apple SD Gothic Neo", sans-serif;
  font-size: 20px;
  color: black;
  display: inline-block;
  margin: 10% auto;
}

@media screen and (max-width: 768px) {
  span.title {
    font-size: 14px;
    margin: 0 auto;
  }
  span.title_sub {
    margin: 0 auto;
  }
}
table.table_nav {
  width: 100%;
  margin: 10px auto;
  border-collapse: collapse;
  border-radius: 10px;
  overflow: hidden;
}

a.menu {
  display: block;
  margin: 50px auto;
  text-decoration: none;
  color: white;
  font-size: 18px;
}

a.menu:hover {
  font-style: italic;
}

@media screen and (max-width: 768px) {
  a.menu {
    font-size: 14px;
    display: inline-block;
    width: 20%;
    margin: 5px auto;
  }
}
audio {
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

@media screen and (max-width: 768px) {
  audio {
    width: 70%;
    max-height: 20px;
    display: inline-block;
  }
}
.grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}
.grid-item {
  padding: 0 15px;
  flex: 0 0 auto;
  width: 100%;
}
@media (min-width: 768px) {
  .grid-item {
    width: 50%;
  }
}
@media (min-width: 1024px) {
  .grid-item {
    width: 33.333333%;
  }
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

div.BaseContainer {
  margin-left: 15%;
}

div.container {
  text-align: center;
}

div.shame {
  width: 90%;
}

div#content {
  min-height: 100px;
  text-align: left;
  text-align: -webkit-left;
  padding-left: 15px;
}

div.div_img {
  width: 95%;
  background-color: lightgray;
  margin: 0 auto;
}

@media screen and (max-width: 768px) {
  div.BaseContainer {
    margin-left: 0;
  }
  div#content {
    padding-left: 0;
  }
  div.shame {
    width: 80%;
  }
}
div.maintext, div.p0_maintext, div.maintext_reply, div.subtext, div.p0_subtext, div.subtext_reply {
  display: inline-block;
  text-align: left;
  vertical-align: middle;
}

div.maintext, div.p0_maintext, div.maintext_reply {
  width: 65%;
  font-size: 14px;
  padding-left: 5px;
}

div.subtext, div.p0_subtext, div.subtext_reply {
  width: 20%;
  font-size: 12px;
}

div.subtext2 {
  width: 10%;
  font-size: 12px;
  text-align: left;
}

div.maintext_reply {
  width: 70%;
  padding-left: 0;
}

div.p0_subtext2 {
  width: 10%;
  font-size: 12px;
  text-align: left;
  display: inline-block;
}

div.p0_modify {
  display: inline-block;
  vertical-align: middle;
}

.post-card {
  background-color: rgba(252, 249, 242, 0.82);
  border-radius: 6px;
  margin: 12px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.post-body {
  padding: 32px 36px;
}
.post-body ul, .post-body ol {
  padding-left: 1.5em;
  margin: 0 0 10px;
}
.post-body li {
  display: list-item;
}
.post-body h1 {
  font-size: 1.5em;
}
.post-body h2 {
  font-size: 1.3em;
}
.post-body h3 {
  font-size: 1.15em;
}
.post-body h4 {
  font-size: 1.05em;
}
.post-body h5, .post-body h6 {
  font-size: 1em;
}

.post-header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.13);
  margin-bottom: 0;
}
.post-header .post-header-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.post-header .post-title {
  font-size: 26px;
  font-weight: 700;
  color: #222;
  margin: 0;
  line-height: 1.4;
}
.post-header .post-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #888;
}
.post-header .post-meta-sep {
  color: #ccc;
}

.content-card {
  background-color: rgba(252, 249, 242, 0.82);
  border-radius: 6px;
  padding: 20px;
  margin: 12px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
}

.comment-section {
  padding: 0;
}
.comment-section .comment-empty {
  padding: 16px 20px;
  color: #999;
  font-size: 13px;
  text-align: center;
}

.comment-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
.comment-item:last-of-type {
  border-bottom: none;
}
.comment-item .comment-body {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
}
.comment-item .comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #999;
  white-space: nowrap;
  flex-shrink: 0;
}
.comment-item .comment-author {
  font-weight: 600;
  color: #666;
}
.comment-item .comment-actions {
  display: flex;
  gap: 4px;
}

.comment-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 0 0 6px 6px;
}
.comment-form textarea#replyContent {
  flex: 1;
  width: auto;
  height: 36px;
  min-height: 36px;
  resize: none;
  padding: 6px 10px;
  font-size: 13px;
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: 4px;
  line-height: 1.4;
}
.comment-form progress {
  display: none;
}

.write-field-row {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.13);
}
.write-field-row:last-child {
  border-bottom: none;
}

.write-field-label {
  width: 70px;
  font-size: 12px;
  color: #999;
  flex-shrink: 0;
  text-align: right;
  padding-right: 16px;
}

.write-field-value {
  flex: 1;
  text-align: left;
}
.write-field-value.write-author {
  font-size: 14px;
  color: #555;
}

.write-title-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 18px;
  font-weight: 600;
  color: #222;
  background: transparent;
  padding: 2px 0;
}
.write-title-input::placeholder {
  color: #ccc;
  font-weight: 400;
}

.post-actions {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 10px 16px;
  background: rgba(252, 249, 242, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  margin: 0 0 8px;
}

#content {
  line-height: 1.6;
  font-size: 15px;
}
#content img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
}
@media screen and (max-width: 768px) {
  #content img {
    max-height: none;
  }
}
#content img.is-long-image {
  max-height: none;
}
#content pre[class*=language-] {
  margin: 15px 0;
  border-radius: 4px;
}
#content pre[class*=language-] code[class*=language-] {
  font-family: Consolas, Monaco, "Andale Mono", monospace;
  font-size: 14px;
  line-height: 1.5;
}

@media screen and (max-width: 768px) {
  div.maintext, div.maintext_reply, div.p0_maintext {
    display: block;
    width: 100%;
    padding-left: 0;
  }
  div.subtext, div.subtext_reply, div.p0_subtext {
    width: 68%;
  }
  div.maintext_reply {
    width: 100%;
  }
  div.subtext_reply {
    width: 90%;
  }
  div.p0_subtext2 {
    float: right;
    display: inline-block;
    width: 15%;
  }
  div.p0_modify {
    float: right;
    margin-right: 3%;
  }
  .comment-item {
    flex-direction: column;
    gap: 4px;
  }
}
/* ── AI 대화형 글: 좌우 말풍선 렌더 (read 화면) ───────────────── */
.chat-log {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 4px 0;
}
.chat-log .chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}
.chat-log .chat-msg::before {
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}
.chat-log .chat-msg .chat-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  line-height: 1.6;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.chat-log .chat-msg .chat-bubble > :first-child {
  margin-top: 0;
}
.chat-log .chat-msg .chat-bubble > :last-child {
  margin-bottom: 0;
}
.chat-log .chat-msg .chat-bubble p {
  margin: 0 0 8px;
}
.chat-log .chat-msg .chat-bubble img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.chat-log .chat-msg .chat-bubble pre {
  max-width: 100%;
  overflow-x: auto;
  border-radius: 8px;
}
.chat-log .chat-msg .chat-bubble table {
  width: auto;
  max-width: 100%;
}
.chat-log .chat-ai {
  align-self: flex-start;
  align-items: flex-start;
}
.chat-log .chat-ai::before {
  content: "🤖 AI";
}
.chat-log .chat-ai .chat-bubble {
  background: #f1f3f5;
  border: 1px solid #e3e6e8;
  border-top-left-radius: 4px;
  color: #222;
}
.chat-log .chat-me {
  align-self: flex-end;
  align-items: flex-end;
}
.chat-log .chat-me::before {
  content: "나 🙋";
}
.chat-log .chat-me .chat-bubble {
  background: #e7f5e9;
  border: 1px solid #cfe9d4;
  border-top-right-radius: 4px;
  color: #1b3a23;
  text-align: left;
}

/* ── 글쓰기 형식 탭 (일반 글 / AI 대화) ─────────────────────────── */
.write-mode-tabs {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 14px;
  padding: 4px;
  background: #fff;
  border: 1px solid #d9dde0;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.write-mode-tab {
  padding: 7px 16px;
  text-decoration: none;
  color: #555;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.write-mode-tab:hover {
  background: #f1f3f5;
  color: #222;
}
.write-mode-tab.active {
  background: #71bc6d;
  color: #fff;
  font-weight: 600;
}
.write-mode-tab.active:hover {
  background: #66ad62;
  color: #fff;
}

/* ── AI 대화형 글: 빌더 UI (chat-write / chat-modify) ──────────── */
.chat-hidden-content {
  display: none;
}

.chat-composer-guide {
  font-size: 13px;
  color: #666;
  background: #f8f9fa;
  border: 1px dashed #ddd;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 0 0 12px;
}
.chat-composer-guide code {
  background: #eee;
  padding: 1px 4px;
  border-radius: 4px;
}

.chat-composer.chat-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.chat-edit-pane {
  min-width: 0;
}

.chat-preview-pane {
  min-width: 0;
  position: sticky;
  top: 12px;
}

.chat-preview-label {
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
}

.chat-preview-body {
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 14px;
  background: #fff;
  min-height: 160px;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}
.chat-preview-body .chat-preview-empty {
  color: #aaa;
  font-size: 13px;
  text-align: center;
  margin: 40px 0;
}

.chat-edit-msg {
  border: 1px solid #e3e6e8;
  border-left: 4px solid #bbb;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 12px;
  background: #fff;
}
.chat-edit-msg[data-role=ai] {
  border-left-color: #6c8cff;
}
.chat-edit-msg[data-role=me] {
  border-left-color: #71bc6d;
}
.chat-edit-msg .chat-edit-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.chat-edit-msg .chat-edit-role {
  font-size: 13px;
  font-weight: 600;
  color: #444;
}
.chat-edit-msg .chat-edit-tools button {
  border: 1px solid #ddd;
  background: #fafafa;
  border-radius: 6px;
  cursor: pointer;
  padding: 2px 7px;
  margin-left: 3px;
  font-size: 13px;
  line-height: 1.4;
}
.chat-edit-msg .chat-edit-tools button:hover {
  background: #eee;
}
.chat-edit-msg .chat-edit-input {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 10px;
  font-family: ui-monospace, "D2Coding", "Consolas", monospace;
  font-size: 14px;
  line-height: 1.55;
  box-sizing: border-box;
}

.chat-add-bar {
  display: flex;
  gap: 8px;
}
.chat-add-bar .chat-add-btn {
  cursor: pointer;
}

@media (max-width: 900px) {
  .chat-composer.chat-split {
    grid-template-columns: 1fr;
  }
  .chat-preview-pane {
    position: static;
  }
  .chat-preview-body {
    max-height: none;
  }
}
@media (max-width: 640px) {
  .chat-log .chat-msg {
    max-width: 95%;
  }
}
div.feedOuter {
  text-align: center;
  margin: 0 auto;
}

div.feedInner {
  width: 99%;
  text-align: center;
  margin: 10px auto;
  background: rgba(252, 249, 242, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  overflow: hidden;
}

div.feedTitle {
  font-weight: bold;
  padding: 2%;
  font-size: 1.3em;
}

div.feed_name {
  font-family: "레코체";
  font-size: 35px;
  margin: 10px auto;
}

div.feed_desc {
  width: 100%;
  padding: 20px 24px 12px;
  box-sizing: border-box;
  min-height: 50px;
  text-align: left;
  font-family: "나눔고딕", sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
div.feed_desc p {
  margin: 0 0 10px;
  padding: 0;
}
div.feed_desc img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
}
@media screen and (max-width: 768px) {
  div.feed_desc img {
    max-height: none;
  }
}
div.feed_desc img.is-long-image {
  max-height: none;
}
div.feed_desc table {
  border-collapse: collapse;
  width: 100%;
}
div.feed_desc td, div.feed_desc th {
  border: 1px solid #ddd;
  padding: 8px;
}
div.feed_desc ul, div.feed_desc ol {
  padding-left: 1.5em;
  margin: 0 0 10px;
}
div.feed_desc iframe {
  max-width: 100%;
}

div.feed_author {
  font-weight: 600;
  font-size: 12px;
  color: #888;
  text-align: right;
  padding: 0 24px 8px;
}
div.feed_author::before {
  content: "✍ ";
}

div.feed_goodInner, div.feed_badInner {
  margin: 0;
  padding: 4px 0;
  display: inline-block;
  width: 10%;
}

div.feed_date {
  padding: 10px;
  font-size: 12px;
}

div.feed_goodbad {
  display: flex;
  align-items: center;
  justify-content: center;
}

div.feed_goodbadID {
  display: none;
}

form.feed_goodbadFormModify {
  display: inline-flex;
  align-items: center;
}

div.feed_replies {
  width: 100%;
  text-align: left;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  padding: 6px 0 0;
}

div.feed_reply_item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 20px;
  font-size: 13px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
div.feed_reply_item:last-of-type {
  border-bottom: none;
}
div.feed_reply_item .feed_reply_content {
  flex: 1;
  text-align: left;
}
div.feed_reply_item .feed_reply_edit_area {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
}
div.feed_reply_item .feed_reply_meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #999;
  white-space: nowrap;
  flex-shrink: 0;
}

@media screen and (max-width: 768px) {
  div.feed_reply_item {
    flex-direction: column;
    gap: 2px;
  }
}
div.feed_reply_form {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background-color: rgba(0, 0, 0, 0.02);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
div.feed_reply_form .feed_reply_input {
  flex: 1;
  height: 32px;
  resize: none;
  padding: 4px 8px;
  box-sizing: border-box;
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: 4px;
  font-size: 13px;
}
div.feed_reply_form .feed_reply_submit_btn {
  white-space: nowrap;
}

@media screen and (max-width: 768px) {
  div.feedTitle {
    padding: 0;
    font-size: 1em;
  }
  div.feed_name {
    width: 90%;
    font-size: 1.5em;
    min-height: 0;
    margin: 0 auto;
  }
  div.feed_desc {
    width: 90%;
    font-size: 14px;
    min-height: 0;
    padding: 10px;
  }
  div.feed_goodbad {
    font-size: 10px;
  }
  div.feed_date, div.feed_goodInner, div.feed_badInner {
    padding: 0;
  }
}
.admin-container .container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
}
.admin-container .card {
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.98);
}
.admin-container .card.border-primary {
  border-left: 3px solid #007bff !important;
}
.admin-container .card.border-warning {
  border-left: 3px solid #ffc107 !important;
}
.admin-container .table tbody tr:hover {
  background-color: rgba(0, 123, 255, 0.05);
}
.admin-container .badge {
  font-size: 0.75rem;
  padding: 4px 8px;
}
.admin-container .btn-group .btn {
  padding: 4px 8px;
  margin: 0 1px;
}
.admin-container .admin-header {
  border-bottom: 1px solid #dee2e6;
  margin-bottom: 20px;
  padding-bottom: 15px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  padding: 15px;
  margin: -5px -5px 20px -5px;
}
.admin-container .admin-header h2 {
  color: #007bff;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}
.admin-container .admin-header .btn-back {
  background-color: rgba(108, 117, 125, 0.9);
  border-color: #6c757d;
  color: white;
}
.admin-container .admin-header .btn-back:hover {
  background-color: #6c757d;
  border-color: #545b62;
  color: white;
  transform: translateX(-2px);
}
.admin-container .admin-navigation {
  border-top: 1px solid #dee2e6;
  margin-top: 20px;
  padding-top: 15px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  padding: 15px;
  margin: 20px -5px -5px -5px;
}
.admin-container .admin-navigation .btn {
  font-weight: 500;
}
.admin-container .admin-navigation .btn.btn-outline-primary {
  background-color: rgba(0, 123, 255, 0.1);
  border-color: #007bff;
  color: #007bff;
}
.admin-container .admin-navigation .btn.btn-outline-primary:hover {
  background-color: #007bff;
  border-color: #007bff;
  color: white;
}
.admin-container .admin-navigation .btn.btn-outline-secondary {
  background-color: rgba(108, 117, 125, 0.1);
  border-color: #6c757d;
  color: #6c757d;
}
.admin-container .admin-navigation .btn.btn-outline-secondary:hover {
  background-color: #6c757d;
  border-color: #6c757d;
  color: white;
}
.admin-container .admin-navigation .btn.btn-outline-info {
  background-color: rgba(23, 162, 184, 0.1);
  border-color: #17a2b8;
  color: #17a2b8;
}
.admin-container .admin-navigation .btn.btn-outline-info:hover {
  background-color: #17a2b8;
  border-color: #17a2b8;
  color: white;
}

@media screen and (max-width: 768px) {
  .admin-container .container {
    padding: 15px;
    margin: 10px;
  }
  .admin-container .admin-header .d-flex {
    flex-direction: column;
    gap: 15px;
  }
  .admin-container .admin-header h2 {
    font-size: 1.5rem;
    text-align: center;
  }
  .admin-container .admin-header .btn-back {
    align-self: center;
    width: 100%;
    max-width: 200px;
  }
  .admin-container .admin-navigation .d-flex {
    flex-direction: column;
    gap: 10px;
  }
  .admin-container .admin-navigation .btn {
    width: 100%;
  }
  .admin-container .table .btn-group {
    flex-direction: column;
    width: 100%;
  }
  .admin-container .table .btn-group .btn {
    width: 100%;
    margin: 1px 0;
  }
}
@media (prefers-color-scheme: dark) {
  .admin-container .container {
    background: rgba(33, 37, 41, 0.95);
    color: #f8f9fa;
  }
  .admin-container .card {
    background: rgba(52, 58, 64, 0.95);
    color: #f8f9fa;
  }
  .admin-container .admin-header {
    background: rgba(52, 58, 64, 0.9);
  }
  .admin-container .admin-header h2 {
    color: #74c0fc;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  }
  .admin-container .admin-navigation {
    background: rgba(52, 58, 64, 0.9);
  }
}
.user-history-content .table {
  font-size: 0.9rem;
}
.user-history-content .table th {
  background-color: #343a40 !important;
  color: white !important;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
}
.user-history-content .table td {
  border-color: #f1f3f4;
  vertical-align: middle;
}
.user-history-content .table .font-monospace {
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
}
.user-history-content .sticky-top {
  position: sticky;
  top: 0;
  z-index: 10;
}
.user-history-content .badge {
  font-size: 0.7rem;
}

.modal-xl {
  max-width: 1200px;
}

.fileio-wrap {
  max-width: 720px;
  margin: 16px auto;
  padding: 0 8px;
}

.fileio-memo-section, .fileio-table-wrap, .fileio-upload-box, .fileio-usage, .fileio-header {
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.fileio-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  margin-bottom: 12px;
}
.fileio-header h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.fileio-slot {
  font-size: 13px;
  color: #666;
}

.fileio-usage {
  padding: 18px 22px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.15) 100%);
  border-left: 4px solid rgba(100, 150, 230, 0.85);
}

.fileio-usage-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  color: #333;
}
.fileio-usage-header svg {
  width: 16px;
  height: 16px;
  color: rgba(90, 130, 210, 0.9);
}

.fileio-usage-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fileio-usage-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #555;
}
.fileio-usage-list li svg {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  color: rgba(60, 180, 120, 0.9);
  flex-shrink: 0;
}
.fileio-usage-list li strong {
  color: #333;
  font-weight: 600;
}

.fileio-upload-box {
  padding: 16px 18px;
  margin-bottom: 12px;
}
.fileio-upload-box.fileio-full {
  color: #999;
  font-size: 13px;
  text-align: center;
  padding: 18px;
}

.fileio-upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.fileio-upload-row:last-child {
  margin-bottom: 0;
}

.fileio-picked-name {
  font-size: 13px;
  color: #555;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fileio-memo-input {
  flex: 1;
  max-width: 400px;
  padding: 5px 10px;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.5);
  outline: none;
}
.fileio-memo-input:focus {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(100, 140, 220, 0.5);
}

.fileio-msg {
  font-size: 13px;
  margin-top: 6px;
  font-weight: 500;
}
.fileio-msg.fileio-msg-ok {
  color: #2a7a2a;
}
.fileio-msg.fileio-msg-err {
  color: #c0392b;
}

.fileio-table-wrap {
  overflow: hidden;
}

.fileio-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  border: none;
}
.fileio-table th, .fileio-table td {
  padding: 9px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  border-left: none;
  border-right: none;
}
.fileio-table th {
  background: rgba(255, 255, 255, 0.25);
  font-weight: 600;
  color: #444;
  font-size: 12px;
  letter-spacing: 0.3px;
  border-top: none;
}
.fileio-table tr.fileio-row:hover td {
  background: rgba(255, 255, 255, 0.3);
}

.fileio-size, .fileio-date {
  white-space: nowrap;
  color: #777;
  font-size: 12px;
}

.fileio-memo-cell {
  color: #555;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.fileio-dl-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}
.fileio-dl-link:hover {
  text-decoration: underline;
}

.fileio-del-btn {
  background: rgba(220, 60, 50, 0.75);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 3px 10px;
  font-size: 12px;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.fileio-del-btn:hover {
  background: rgba(180, 30, 20, 0.85);
}

.fileio-empty {
  text-align: center;
  color: #aaa;
  padding: 28px 0;
  font-size: 13px;
}

.fileio-memo-section {
  padding: 18px 22px;
  margin-top: 16px;
  margin-bottom: 24px;
}

.fileio-memo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.fileio-memo-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #333;
}

.fileio-memo-status {
  font-size: 13px;
  font-weight: 500;
}

.fileio-memo-actions {
  margin-top: 14px;
  text-align: right;
}
.fileio-memo-actions button {
  background: rgba(100, 140, 220, 0.9);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.fileio-memo-actions button:hover {
  background: rgba(80, 110, 190, 0.95);
}
.fileio-memo-actions button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.tools-wrap {
  max-width: 720px;
  margin: 16px auto;
  padding: 0 8px;
}

.tools-add, .tools-card, .tools-usage, .tools-header {
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.tools-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 18px;
  margin-bottom: 12px;
}
.tools-header h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.tools-sub {
  font-size: 13px;
  color: #666;
}

.tools-usage {
  padding: 18px 22px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.15) 100%);
  border-left: 4px solid rgba(100, 150, 230, 0.85);
}

.tools-usage-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  color: #333;
}
.tools-usage-header svg {
  width: 16px;
  height: 16px;
  color: rgba(90, 130, 210, 0.9);
}

.tools-usage-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tools-usage-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #555;
}
.tools-usage-list li svg {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  color: rgba(60, 180, 120, 0.9);
  flex-shrink: 0;
}
.tools-usage-list li strong {
  color: #333;
  font-weight: 600;
}

.tools-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tools-card {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.tools-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #222;
  letter-spacing: -0.2px;
}

.tools-card-status {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}
.tools-card-status.is-ready {
  background: rgba(60, 180, 120, 0.18);
  color: #1f7a4a;
  border: 1px solid rgba(60, 180, 120, 0.5);
}
.tools-card-status.is-empty {
  background: rgba(160, 160, 160, 0.18);
  color: #777;
  border: 1px solid rgba(160, 160, 160, 0.4);
}

.tools-card-desc {
  margin: 0;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

.tools-card-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.tools-card-file.tools-card-file-empty {
  justify-content: center;
  color: #999;
  font-size: 13px;
  font-style: italic;
}

.tools-file-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.tools-file-name {
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tools-file-detail {
  font-size: 11px;
  color: #777;
}

.tools-file-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.tools-btn {
  background: rgba(100, 140, 220, 0.9);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s;
}
.tools-btn:hover {
  background: rgba(80, 110, 190, 0.95);
}
.tools-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.tools-btn-dl {
  background: rgba(60, 140, 90, 0.9);
}
.tools-btn-dl:hover {
  background: rgba(40, 110, 70, 0.95);
}

.tools-btn-del {
  background: rgba(220, 60, 50, 0.78);
}
.tools-btn-del:hover {
  background: rgba(180, 30, 20, 0.85);
}

.tools-btn-pick,
.tools-btn-cancel {
  background: rgba(110, 110, 130, 0.7);
}
.tools-btn-pick:hover,
.tools-btn-cancel:hover {
  background: rgba(80, 80, 100, 0.85);
}

.tools-upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  flex-wrap: wrap;
}

.tools-pick-name {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tools-progress {
  width: 100%;
  height: 6px;
}

.tools-msg {
  font-size: 12px;
  font-weight: 500;
  min-height: 16px;
}
.tools-msg.tools-msg-ok {
  color: #2a7a2a;
}
.tools-msg.tools-msg-err {
  color: #c0392b;
}

.tools-card-head-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.tools-card-admin {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tools-icon-btn {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #555;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1.4;
  transition: background 0.15s, color 0.15s;
}
.tools-icon-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #222;
}
.tools-icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.tools-icon-btn-danger {
  color: #c0392b;
  border-color: rgba(192, 57, 43, 0.3);
}
.tools-icon-btn-danger:hover {
  background: rgba(220, 60, 50, 0.12);
  color: #a93226;
}

.tools-desc-empty {
  color: #aaa;
  font-style: italic;
}

.tools-edit-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  padding: 10px 0;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.tools-edit-title,
.tools-edit-desc,
.tools-add-title,
.tools-add-desc {
  padding: 7px 10px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.7);
}
.tools-edit-title:focus,
.tools-edit-desc:focus,
.tools-add-title:focus,
.tools-add-desc:focus {
  outline: none;
  border-color: rgba(100, 140, 220, 0.8);
  background: #fff;
}

.tools-edit-title {
  width: 160px;
}

.tools-edit-desc {
  flex: 1;
  min-width: 180px;
}

.tools-add {
  margin-top: 14px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 4px solid rgba(60, 180, 120, 0.7);
}

.tools-add-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  color: #333;
}
.tools-add-header svg {
  width: 16px;
  height: 16px;
  color: rgba(60, 180, 120, 0.9);
}

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

.tools-add-title {
  width: 200px;
}

.tools-add-desc {
  flex: 1;
  min-width: 200px;
}

.tools-add-submit {
  background: rgba(60, 140, 90, 0.9);
}
.tools-add-submit:hover {
  background: rgba(40, 110, 70, 0.95);
}

.bx-wrapper {
  background-color: lightgray;
}
.bx-wrapper img {
  max-width: 100%;
  display: block;
  margin: 0 auto;
}
.bx-wrapper .bx-viewport {
  border: none;
  left: 0;
  box-shadow: none;
  background: transparent;
}
.bx-wrapper .bx-controls {
  margin-top: 10px;
}
