/* ============================================================
   editor.css — Edit Profile surfaces
   ============================================================ */

.editorPage { }
.editorHead { border-bottom: 2px solid #3c5a89; margin-bottom: 12px; }
.editorHead h2 { font: bold 20px Trebuchet MS; color: #14365f; margin: 4px 0 6px; }
.edTabs { display: flex; gap: 4px; flex-wrap: wrap; }
.edTab {
  padding: 5px 14px; border: 1px solid #9aa9c4; border-bottom: none;
  background: linear-gradient(180deg,#fff,#e6ebf5);
  color: #16305e !important; font-weight: bold; font-size: 11.5px;
  text-decoration: none !important;
}
.edTab.active { background: #4677ad; color: #fff !important; }
.edSafeNote { font-size: 10.5px; color: #55606e; background: #fffeec; border: 1px solid #b6a24c; padding: 5px 9px; margin: 8px 0; }
.edBody { border: 1px solid #ccd4e2; background: #fff; padding: 14px; }
.edIntro { color: #45536e; font-size: 11.5px; }
.edSubhead { border-bottom: 1px solid #ccd4e2; }

.themeGrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 10px 0 16px; }
.themeCard { border: 1px solid #b9c6dd; padding: 6px; text-align: center; }
.tc-preview {
  height: 96px; position: relative; overflow: hidden;
  border: 1px solid #666;
}
.tc-table { display: block; margin: 12px auto 0; width: 80%; padding: 18px 4px 6px; font-size: 10px; font-weight: bold; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.tc-head { position: absolute; top: 0; left: 0; right: 0; color: #fff; font-size: 9px; padding: 2px 4px; text-align: left; }
.chipMini { font-size: 9px; color: #fff; background: #333; padding: 1px 6px; border-radius: 4px; }

.customizeGrid { display: grid; grid-template-columns: 1fr 380px; gap: 16px; }
.custLeft label, .custRight > label { display: block; margin: 8px 0 4px; font-weight: bold; color: #16305e; font-size: 11.5px; }
.custLeft small, .custRight small { color: #8593a8; font-weight: normal; }
#aboutHtmlBox, #cssBox {
  width: 100%; font: 12px/1.5 "Courier New", monospace; white-space: pre;
  border: 1px solid #7f9db9; padding: 6px; background: #fdfdf4;
}
.snipRow { margin-top: 8px; font-size: 10.5px; color: #55606e; }
.snippetBtn { margin: 2px 3px 2px 0; }
.viewSourceLabel { margin-top: 12px; }
.sourceLabelMono::before { content: "> "; }
#prevFrame {
  width: 100%; height: 240px; border: 1px solid #7f9db9; background: #dfe5ee;
}
#sourcePanel { max-height: 190px; overflow: auto; font-size: 10.5px; line-height: 1.45; }
.dramaMeter { margin-top: 12px; min-height: 52px; }

.top8ColsWrap { display: flex; gap: 20px; align-items: flex-start; }
#top8List { list-style: none; margin: 10px 0; padding: 0; flex: 1; max-width: 420px; }
.top8Row {
  display: flex; gap: 8px; align-items: center;
  border: 1px solid #9aa9c4; background: linear-gradient(180deg,#fff,#eef1fa);
  padding: 5px 8px; margin-bottom: 5px; cursor: grab;
}
.top8Row.dragging { opacity: .5; border-style: dashed; }
.rankNum {
  width: 22px; height: 22px; line-height: 22px; text-align: center;
  background: #4677ad; color: #fff; font-weight: bold; font-size: 11px; border-radius: 2px;
  flex: 0 0 auto;
}
.tr-name { flex: 1; overflow-wrap: anywhere; font-size: 11.5px; }
.tr-btns button {
  width: 24px; height: 20px; cursor: pointer; margin-left: 2px;
  border: 1px solid #7c96bd; background: linear-gradient(180deg,#fff,#dae4f2); border-radius: 2px;
  font-size: 9px;
}
.tr-btns button:hover { border-color: #36609e; background: #e2ebfa; }
.rmFriend:hover { color: #b40000; border-color: #b40000 !important; }
.addPane { width: 250px; border: 1px solid #ccd4e2; padding: 10px; background: #f6f8fc; }
.addPane select { width: 100%; font: 11px Verdana; }

.songPickList { max-width: 480px; }
.songPickRow { display: flex; align-items: center; gap: 8px; padding: 6px 2px; border-bottom: 1px dotted #dde3ee; font-size: 12px; }
.songPickList .dim { color: #8593a8; font-size: 10.5px; }

@media (max-width: 720px) {
  .customizeGrid, .themeGrid { display: block; }
  .custRight { margin-top: 14px; }
  .top8ColsWrap { flex-direction: column; }
  .addPane { width: auto; }
}
