/* Waterline — shared skin for standalone/embedded NexusPHP mini pages:
   attachment.php (editor iframe), moresmilies.php (popup), shoutbox.php (iframe).
   These pages do not call stdhead(), so they never load theme.css. */
html.wl-popup{color-scheme:dark}
html.wl-popup,
html.wl-popup body{
  background:#0F1612!important;
  color:#EDF3EE!important;
  font:13px/1.6 -apple-system,BlinkMacSystemFont,"SF Pro SC","PingFang SC","Microsoft YaHei",sans-serif!important;
  margin:0!important;
}
html.wl-popup body{overflow-x:hidden!important}
html.wl-popup a{color:#7FD3B6!important;text-decoration:none!important}
html.wl-popup a:hover{text-decoration:underline!important}
html.wl-popup table{border-color:#243329!important}
html.wl-popup td{border-color:#243329!important;color:#EDF3EE!important}
html.wl-popup img{border:0!important;max-width:100%}
html.wl-popup input[type="file"],
html.wl-popup input[type="text"],
html.wl-popup textarea,
html.wl-popup select{
  background:#151E18!important;color:#EDF3EE!important;
  border:1px solid #2A3A31!important;border-radius:8px!important;
  padding:4px 9px!important;font:12px inherit!important;
}
html.wl-popup input[type="submit"],
html.wl-popup input[type="button"],
html.wl-popup button{
  background:transparent!important;color:#A9BAB0!important;
  border:1px solid #2A3A31!important;border-radius:999px!important;
  padding:3px 12px!important;font:12px inherit!important;cursor:pointer;
}
html.wl-popup input[type="submit"]:hover,
html.wl-popup input[type="button"]:hover,
html.wl-popup button:hover{border-color:#2A5847!important;color:#A9E5CC!important}
html.wl-popup input[type="file"]::file-selector-button{
  background:#1C3A2E!important;color:#A9E5CC!important;
  border:0!important;border-right:1px solid #2A5847!important;
  padding:3px 10px!important;margin:0 8px 0 0!important;
  font:12px inherit!important;cursor:pointer;
}
html.wl-popup table.lista{width:auto!important;border-collapse:separate!important;border-spacing:5px!important;margin:0 auto!important}
html.wl-popup table.lista tr,
html.wl-popup table.lista td{display:inline-block!important}
html.wl-popup table.lista td{text-align:center;padding:6px!important;border:0!important;background:#151E18!important;border-radius:8px}
html.wl-popup table.lista td:hover{background:#1C3A2E!important}
html.wl-popup ::-webkit-scrollbar{width:8px;height:8px}
html.wl-popup ::-webkit-scrollbar-thumb{background:#2A3A31;border-radius:8px}
html.wl-popup ::-webkit-scrollbar-track{background:#0F1612}

/* ------------------------------------------------------------------------
   P0: shoutbox.php / attachment.php / moresmilies.php print their own head
   and never load gd_skin.css. gd_enhance.js mirrors data-theme into these
   same-origin frames so a light main page no longer shows a black chat box.
   ------------------------------------------------------------------------ */
html.wl-popup[data-theme="light"],
html.wl-popup[data-theme="light"] body{
  background:#FDFCFA!important;color:#18241F!important;color-scheme:light!important;
}
html.wl-popup[data-theme="light"] a{color:#14584A!important}
html.wl-popup[data-theme="light"] a:hover{color:#1B6D5B!important}
html.wl-popup[data-theme="light"] table,
html.wl-popup[data-theme="light"] td{border-color:rgba(20,88,74,.13)!important;color:#18241F!important}
html.wl-popup[data-theme="light"] input[type="file"],
html.wl-popup[data-theme="light"] input[type="text"],
html.wl-popup[data-theme="light"] textarea,
html.wl-popup[data-theme="light"] select{
  background:#FFFFFF!important;color:#18241F!important;border-color:rgba(20,88,74,.18)!important}
html.wl-popup[data-theme="light"] input[type="submit"],
html.wl-popup[data-theme="light"] input[type="button"],
html.wl-popup[data-theme="light"] button{
  background:#F1F4F0!important;color:#4E5C55!important;border-color:rgba(20,88,74,.18)!important}
html.wl-popup[data-theme="light"] table.lista td{background:#F1F4F0!important}
html.wl-popup[data-theme="light"] ::-webkit-scrollbar-thumb{background:#C9D5CD}
html.wl-popup[data-theme="light"] ::-webkit-scrollbar-track{background:#F7F6F2}
