/* dischord.css — Discord 風 */
:root { --dc-bg0: #1e1f22; --dc-bg1: #2b2d31; --dc-bg2: #313338; --dc-bg3: #383a40; --dc-fg: #dbdee1; --dc-mute: #949ba4; --dc-head: #f2f3f5; --dc-accent: #5865f2; --dc-red: #ed4245; --dc-green: #23a559; }
body.site-dischord { background: var(--dc-bg2); color: var(--dc-fg); overflow: hidden; }
.dc-app { display: flex; height: 100vh; height: 100dvh; }
.dc-rail { width: 72px; flex: none; background: var(--dc-bg0); display: flex; flex-direction: column; align-items: center; padding: 12px 0; gap: 8px; overflow-y: auto; }
.dc-rail a, .dc-rail button { width: 48px; height: 48px; border-radius: 24px; border: 0; background: var(--dc-bg2); color: var(--dc-fg); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; text-decoration: none; transition: border-radius .15s, background .15s; position: relative; background-size: cover; }
.dc-rail a:hover, .dc-rail a.on { border-radius: 16px; }
.dc-rail a.on::before { content: ""; position: absolute; left: -12px; top: 8px; width: 4px; height: 32px; background: #fff; border-radius: 2px; }
.dc-rail a.dm { background: var(--dc-accent); }
.dc-rail a.dm.on { border-radius: 16px; }
.dc-rail .sep { width: 32px; height: 2px; background: var(--dc-bg3); border-radius: 1px; }
.dc-rail a .unread { position: absolute; right: -2px; bottom: -2px; background: var(--dc-red); color: #fff; font-size: 11px; border-radius: 999px; padding: 0 5px; border: 2px solid var(--dc-bg0); font-weight: 700; }
.dc-side { width: 240px; flex: none; background: var(--dc-bg1); display: flex; flex-direction: column; }
.dc-side-h { height: 48px; display: flex; align-items: center; padding: 0 16px; font-weight: 700; color: var(--dc-head); box-shadow: 0 1px 0 rgba(0,0,0,.25); font-size: 15px; }
.dc-side-list { flex: 1; overflow-y: auto; padding: 8px; }
.dc-cat { font-size: 11px; text-transform: uppercase; color: var(--dc-mute); font-weight: 700; padding: 14px 8px 4px; letter-spacing: .03em; }
.dc-ch { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 4px; color: var(--dc-mute); text-decoration: none; font-size: 15px; }
.dc-ch:hover { background: var(--dc-bg3); color: var(--dc-fg); }
.dc-ch.on { background: #404249; color: #fff; }
.dc-ch .ic { font-size: 16px; width: 18px; text-align: center; opacity: .8; }
.dc-ch .lock { margin-left: auto; font-size: 12px; }
.dc-ch .dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.dc-dmrow { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 4px; color: var(--dc-mute); text-decoration: none; }
.dc-dmrow:hover { background: var(--dc-bg3); color: var(--dc-fg); }
.dc-dmrow.on { background: #404249; color: #fff; }
.dc-dmrow img { width: 32px; height: 32px; border-radius: 50%; }
.dc-dmrow b { font-weight: 500; font-size: 15px; display: block; }
.dc-dmrow span { font-size: 12px; }
.dc-dmrow .st { position: relative; }
.dc-dmrow .st::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; background: #80848e; border: 2px solid var(--dc-bg1); }
.dc-dmrow .st.online::after { background: var(--dc-green); }
.dc-user { height: 52px; background: #232428; display: flex; align-items: center; gap: 8px; padding: 0 8px; }
.dc-user img { width: 32px; height: 32px; border-radius: 50%; }
.dc-user b { font-size: 14px; color: var(--dc-head); display: block; line-height: 1.2; }
.dc-user span { font-size: 12px; color: var(--dc-mute); }
.dc-user .ico { margin-left: auto; display: flex; gap: 4px; }
.dc-user .ico button { border: 0; background: transparent; color: var(--dc-mute); font-size: 16px; width: 32px; height: 32px; border-radius: 4px; }
.dc-user .ico button:hover { background: var(--dc-bg3); color: var(--dc-fg); }
.dc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--dc-bg2); }
.dc-head { height: 48px; display: flex; align-items: center; gap: 8px; padding: 0 12px; box-shadow: 0 1px 0 rgba(0,0,0,.25); flex: none; }
.dc-head .nm { font-weight: 700; color: var(--dc-head); font-size: 16px; display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-head .nm .ic { color: var(--dc-mute); }
.dc-head .topic { color: var(--dc-mute); font-size: 13px; margin-left: 8px; border-left: 1px solid var(--dc-bg3); padding-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-head .tools { margin-left: auto; display: flex; gap: 2px; align-items: center; }
.dc-head .tools button { border: 0; background: transparent; color: var(--dc-mute); font-size: 18px; width: 34px; height: 34px; border-radius: 4px; }
.dc-head .tools button:hover, .dc-head .tools button.on { color: var(--dc-fg); background: var(--dc-bg3); }
.dc-head .tools .srch { display: flex; align-items: center; background: var(--dc-bg0); border-radius: 4px; padding: 0 8px; height: 26px; }
.dc-head .tools .srch input { border: 0; background: transparent; color: var(--dc-fg); font-size: 13px; width: 120px; outline: none; }
.dc-menu { display: none; border: 0; background: transparent; color: var(--dc-mute); font-size: 20px; width: 34px; height: 34px; }
.dc-body { flex: 1; display: flex; min-height: 0; }
.dc-msgs { flex: 1; overflow-y: auto; padding: 16px 0 8px; min-width: 0; }
.dc-welcome { padding: 16px; }
.dc-welcome .big { width: 68px; height: 68px; border-radius: 50%; background: var(--dc-bg3); display: flex; align-items: center; justify-content: center; font-size: 34px; margin-bottom: 10px; }
.dc-welcome h2 { color: var(--dc-head); font-size: 28px; margin: 0 0 4px; }
.dc-welcome p { color: var(--dc-mute); margin: 0; font-size: 15px; }
.dc-day { display: flex; align-items: center; gap: 8px; margin: 18px 16px 6px; color: var(--dc-mute); font-size: 12px; font-weight: 600; }
.dc-day::before, .dc-day::after { content: ""; flex: 1; height: 1px; background: var(--dc-bg3); }
.dc-m { display: flex; gap: 14px; padding: 2px 16px 2px 16px; margin-top: 14px; }
.dc-m:hover { background: rgba(0,0,0,.06); }
.dc-m.cont { margin-top: 0; }
.dc-m.cont .av { visibility: hidden; height: 0; }
.dc-m .av { width: 40px; height: 40px; border-radius: 50%; flex: none; background-size: cover; background-color: #6b7280; cursor: pointer; }
.dc-m .b { min-width: 0; flex: 1; }
.dc-m .h { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.dc-m .h .n { font-weight: 600; color: var(--dc-head); cursor: pointer; }
.dc-m .h .n:hover { text-decoration: underline; }
.dc-m .h .n.deleted { color: var(--dc-mute); }
.dc-m .h .bot { background: var(--dc-accent); color: #fff; font-size: 10px; border-radius: 3px; padding: 1px 4px; font-weight: 600; vertical-align: middle; }
.dc-m .h .t { color: var(--dc-mute); font-size: 12px; }
.dc-m .tx { white-space: pre-wrap; word-break: break-word; font-size: 15px; line-height: 1.4; }
.dc-m .tx a { color: #00a8fc; text-decoration: none; }
.dc-m .tx a:hover { text-decoration: underline; }
.dc-m .tx .num { display: inline-block; margin-left: 12px; color: var(--dc-mute); font-family: monospace; opacity: .55; letter-spacing: .1em; }
.dc-m .tx .num::before { content: "\2063"; }
.dc-m.pinned .tx { position: relative; }
.dc-m .pin { font-size: 11px; color: var(--dc-mute); }
.dc-m .img { margin-top: 6px; max-width: 400px; border-radius: 8px; overflow: hidden; }
.dc-m .img img { display: block; width: 100%; }
.dc-m.sys .tx { color: var(--dc-mute); font-size: 14px; }
.dc-m.sys .av { background: transparent; }
.dc-m.webhook { background: rgba(88,101,242,.08); border-left: 2px solid var(--dc-accent); }
.dc-m.last .tx { color: #fff; font-size: 17px; }
.dc-input { margin: 0 16px 20px; background: var(--dc-bg3); border-radius: 8px; display: flex; align-items: center; padding: 0 12px; min-height: 44px; }
.dc-input input { flex: 1; border: 0; background: transparent; color: var(--dc-fg); font-size: 15px; outline: none; min-width: 0; padding: 10px 0; }
.dc-input input:disabled { color: var(--dc-mute); }
.dc-input button { border: 0; background: transparent; color: var(--dc-mute); font-size: 18px; }
.dc-input.locked { background: var(--dc-bg1); }
.dc-locked-note { margin: 0 16px 8px; font-size: 12px; color: var(--dc-mute); }
.dc-members { width: 240px; flex: none; background: var(--dc-bg1); overflow-y: auto; padding: 16px 8px; }
.dc-members .cat { font-size: 11px; color: var(--dc-mute); font-weight: 700; text-transform: uppercase; padding: 12px 8px 4px; }
.dc-mem { display: flex; align-items: center; gap: 10px; padding: 5px 8px; border-radius: 4px; cursor: pointer; color: var(--dc-mute); }
.dc-mem:hover { background: var(--dc-bg3); color: var(--dc-fg); }
.dc-mem img { width: 32px; height: 32px; border-radius: 50%; }
.dc-mem b { font-weight: 500; font-size: 15px; }
.dc-mem .off { opacity: .5; }
.dc-voice { padding: 30px 20px; text-align: center; }
.dc-voice .ic { font-size: 60px; }
.dc-voice h2 { color: var(--dc-head); margin: 6px 0; }
.dc-voice p { color: var(--dc-mute); }
.dc-voice button { border: 0; border-radius: 4px; background: var(--dc-green); color: #fff; font-weight: 600; padding: 10px 24px; font-size: 15px; }
.dc-voice .tbl { overflow-x: auto; margin-top: 24px; }
.dc-voice table { margin: 0 auto; border-collapse: collapse; font-size: 13px; text-align: left; }
.dc-voice td, .dc-voice th { white-space: nowrap; }
.dc-voice td, .dc-voice th { padding: 6px 10px; border-bottom: 1px solid var(--dc-bg3); }
.dc-voice th { color: var(--dc-mute); font-weight: 600; }
.dc-voice .in-call { margin-top: 20px; color: var(--dc-mute); }
.dc-pop { background: var(--dc-bg0); color: var(--dc-fg); }
.dc-pop .ban { height: 60px; background: var(--dc-accent); border-radius: 8px 8px 0 0; }
.dc-pop .ban.gray { background: #6b7280; }
.dc-pop .pav { width: 80px; height: 80px; border-radius: 50%; border: 6px solid var(--dc-bg0); margin: -40px 0 0 12px; background-size: cover; background-color: #6b7280; }
.dc-pop h3 { margin: 8px 12px 0; font-size: 20px; color: var(--dc-head); }
.dc-pop .sub { margin: 0 12px; color: var(--dc-mute); font-size: 13px; }
.dc-pop dl { margin: 12px; display: grid; grid-template-columns: 90px 1fr; gap: 6px 10px; font-size: 13px; }
.dc-pop dt { color: var(--dc-mute); font-weight: 700; font-size: 12px; text-transform: uppercase; }
.dc-pop dd { margin: 0; }
.arg-modal.dcm { background: var(--dc-bg1); color: var(--dc-fg); }
.arg-modal.dcm .arg-modal-x { color: var(--dc-mute); }
.arg-modal.dcm h3 { color: var(--dc-head); }
.dc-search-res .dc-m { margin-top: 8px; background: var(--dc-bg2); border-radius: 6px; padding: 8px; }
.dc-intro { position: fixed; inset: 0; background: #000; z-index: 9800; display: flex; align-items: center; justify-content: center; padding: 20px; }
.dc-intro .in { max-width: 520px; color: #dbdee1; font-size: 17px; line-height: 2; white-space: pre-wrap; }
.dc-intro button { margin-top: 20px; border: 0; background: var(--dc-accent); color: #fff; border-radius: 4px; padding: 10px 20px; font-size: 15px; }
.site-dischord .chat-root { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.site-dischord .chat-log { flex: 1; overflow-y: auto; padding: 16px; gap: 10px; }
.site-dischord .chat-msg { align-items: flex-start; }
.site-dischord .chat-msg .body { max-width: 100%; flex: 1; align-items: flex-start; }
.site-dischord .chat-msg .bubble { background: transparent; padding: 0; border-radius: 0; max-width: 100%; font-size: 15px; line-height: 1.5; }
.site-dischord .chat-msg.me { flex-direction: row; }
.site-dischord .chat-msg .meta { margin: 0 0 2px; font-size: 14px; opacity: 1; }
.site-dischord .chat-msg .meta .nm { font-weight: 600; color: var(--dc-head); }
.site-dischord .chat-msg .meta .tm { font-size: 12px; color: var(--dc-mute); margin-left: 6px; }
.site-dischord .chat-msg .av { width: 40px; height: 40px; }
.site-dischord .chat-input { margin: 0 16px 20px; background: var(--dc-bg3); border-radius: 8px; border: 0; padding: 4px 12px; }
.site-dischord .chat-input input { background: transparent; border: 0; padding: 10px 0; }
.site-dischord .chat-input button { background: transparent; color: var(--dc-mute); font-size: 14px; }
.site-dischord .chat-choices button { border-color: var(--dc-accent); color: var(--dc-fg); }
.site-dischord .chat-choices button:hover { background: var(--dc-accent); }
.site-dischord .chat-waitbox { padding: 0 16px; }
.site-dischord .chat-day { color: var(--dc-mute); }
.dc-mobile-back { display: none; }
@media (max-width: 900px) { .dc-members { display: none; } .dc-members.show { display: block; position: absolute; right: 0; top: 48px; bottom: 0; z-index: 20; box-shadow: -4px 0 20px rgba(0,0,0,.4); } .dc-body { position: relative; } }
@media (max-width: 680px) {
  .dc-rail { width: 60px; }
  .dc-rail a, .dc-rail button { width: 42px; height: 42px; font-size: 15px; }
  .dc-side { position: absolute; left: 60px; top: 0; bottom: 0; z-index: 30; box-shadow: none; transform: translateX(calc(-100% - 60px)); visibility: hidden; transition: transform .2s, visibility 0s .2s; width: min(240px, calc(100vw - 60px)); }
  .dc-side.show { transform: none; visibility: visible; box-shadow: 4px 0 20px rgba(0,0,0,.4); transition: transform .2s, visibility 0s; }
  .dc-app { position: relative; }
  .dc-menu { display: block; }
  .dc-head .topic { display: none; }
  .dc-head .tools .srch input { width: 70px; }
  .dc-m { gap: 10px; padding: 2px 10px; }
  .dc-input { margin: 0 10px 12px; }
  .dc-msgs { padding-bottom: 60px; }
  .dc-voice { padding: 20px 10px; }
  .dc-voice table { font-size: 12px; }
  .dc-voice td, .dc-voice th { padding: 6px 6px; }
  .dc-input { margin-right: 96px; }
  .site-dischord .chat-input { margin-right: 96px; }
  .site-dischord .chat-choices { padding-right: 90px; }
}
