  /* ---------- the chat window (retro frame) ---------- */
  .cframe { background: #24104a; border: 4px solid #4a2a8a; border-radius: 12px; box-shadow: inset 0 0 0 2px #6a3fb5, 0 0 0 1px #1c0c3a; padding: 8px 12px 12px; }
  .ctabrow { display: flex; justify-content: space-between; align-items: flex-end; padding-left: 24px; margin-bottom: -1px; }
  .ctab { display: inline-block; margin: 0; font-size: 15px; font-weight: normal; line-height: 1.2; color: #fff; padding: 7px 18px 6px; background: linear-gradient(#6a3fc0, #4b2a8c); border: 1px solid #2e1660; border-bottom: none; border-radius: 8px 8px 0 0; text-shadow: 0 1px 0 rgba(0,0,0,.25); }
  .cmin { width: 24px; height: 18px; margin-bottom: 2px; border: 1px solid #1c0c3a; border-radius: 4px; background: linear-gradient(#d9ccf5, #2e1a5c); color: #eadfff; font-size: 12px; line-height: 14px; text-align: center; }
  .cmain { display: flex; gap: 6px; height: 530px; position: relative; }
  #left { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  #logwrap { position: relative; flex: 1; min-height: 0; display: flex; }
  #log { flex: 1; min-width: 0; overflow-y: auto; background: #fff; border: 1px solid #6a3fb5; padding: 8px; font-size: 16px; line-height: 23px; color: #2f8a2f; word-wrap: break-word; }
  .topic { font-weight: bold; }
  .msg { color: #222; }
  .msg .n { font-weight: bold; }
  .me { color: #8a1c9c; }
  .self { font-weight: bold; }
  .selftxt { color: inherit; }

  #toolbar { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 4px; }
  #toolbar .btn2 { width: 22px; height: 22px; text-align: center; line-height: 21px; font: italic bold 15px Georgia, serif; color: #2a5db0; background: linear-gradient(#ddd2f7, #c9b6f0); border: 1px solid #8057d6; border-radius: 3px; cursor: pointer; user-select: none; }
  #toolbar .btn2.emo { font: 15px "Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",sans-serif; line-height: 20px; }
  #toolbar .btn2.on { outline: 2px solid #4b2a8c; }
  #toolbar select { font: 13px Tahoma, sans-serif; height: 22px; padding: 0 4px; color: #222; background: linear-gradient(#f8f5ff, #e8dffb); border: 1px solid #8057d6; border-radius: 3px; }
  #ubtn { display: none; margin-left: auto; font: 13px Tahoma, sans-serif; padding: 3px 9px; border: 1px solid #8057d6; border-radius: 3px; background: linear-gradient(#f8f5ff, #e8dffb); color: #4b2a8c; cursor: pointer; }
  #input { width: 100%; height: 42px; padding: 6px 10px; font: 16px Tahoma, Verdana, sans-serif; color: #222; background: #fff; border: 1px solid #6a3fb5; border-radius: 4px; outline: none; }
  #input::placeholder { color: #b5b5b5; }
  #input:disabled { background: #f1ecfa; }

  /* font + colour panel and emoji panel */
  #pop { display: none; position: absolute; left: 4px; bottom: 82px; z-index: 6; background: #f6f2ff; border: 2px solid #6a3fb5; border-radius: 8px; box-shadow: 0 3px 10px rgba(0,0,0,.25); padding: 8px; font-size: 14px; color: #4b2a8c; max-width: calc(100% - 8px); max-height: calc(100% - 92px); overflow-y: auto; }
  #pop.show { display: block; }
  #pop label { display: block; margin: 6px 0 3px; font-weight: bold; }
  #flist { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; max-height: 128px; overflow-y: auto; width: 296px; max-width: 100%; }
  #flist span { padding: 3px 6px; border: 1px solid #d9ccf5; border-radius: 3px; background: #fff; cursor: pointer; font-size: 14px; color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #flist span:hover { background: #ece6fc; }
  #flist span.sel { background: #6a3fc0; color: #fff; border-color: #4b2a8c; }
  #sws { width: 296px; max-width: 100%; line-height: 0; }
  .sw { display: inline-block; width: 20px; height: 20px; margin: 1px; border: 1px solid #666; border-radius: 3px; cursor: pointer; vertical-align: top; }
  .sw.sel { outline: 2px solid #000; outline-offset: 1px; }
  .crow { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
  .crow input[type=color] { width: 38px; height: 26px; padding: 0; border: 1px solid #8057d6; background: none; cursor: pointer; }
  .tgl { display: inline-block; min-width: 30px; padding: 3px 8px; margin-right: 4px; border: 1px solid #8057d6; border-radius: 3px; background: linear-gradient(#f8f5ff, #e8dffb); cursor: pointer; text-align: center; font-size: 14px; color: #222; }
  .tgl.sel { background: #6a3fc0; color: #fff; }
  .big { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 88px; height: 38px; margin: 0 6px 6px 0; padding: 0 12px; border: 2px solid #8057d6; border-radius: 6px; background: linear-gradient(#f8f5ff, #d9ccf5); cursor: pointer; font-size: 16px; color: #222; user-select: none; }
  .big:hover { background: linear-gradient(#fff, #e8dffb); }
  .big.sel { background: linear-gradient(#8057d6, #4b2a8c); color: #fff; border-color: #2e1660; box-shadow: inset 0 2px 4px rgba(0,0,0,.25); }
  .big b { font-size: 20px; }
  #szrow { display: flex; align-items: center; gap: 8px; width: 296px; max-width: 100%; }
  #szrow input[type=range] { flex: 1; accent-color: #4b2a8c; }
  #szval { min-width: 46px; text-align: right; font-weight: bold; }
  #toolbar .q { font: bold 13px Tahoma, sans-serif; font-style: normal; text-decoration: none; }
  #toolbar .q.sel { background: linear-gradient(#8057d6, #4b2a8c); color: #fff; }
  #prev { margin-top: 8px; padding: 6px 8px; background: #fff; border: 1px solid #d9ccf5; border-radius: 4px; min-height: 30px; font-size: 15px; word-break: break-word; width: 296px; max-width: 100%; }
  #emojis { width: 288px; max-width: 100%; }
  #emojis .tabs { display: flex; gap: 4px; margin-bottom: 4px; }
  #emojis .tabs span { flex: 1; text-align: center; padding: 3px 0; border: 1px solid #8057d6; border-radius: 3px; cursor: pointer; font-size: 16px; background: #ece6fc; }
  #emojis .tabs span.sel { background: #6a3fc0; }
  #egrid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 1px; max-height: 190px; overflow-y: auto; }
  #egrid span { text-align: center; font-size: 20px; line-height: 30px; cursor: pointer; border-radius: 4px; font-family: "Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",sans-serif; }
  #egrid span:hover { background: #e8dffb; }

  /* user list with status dots */
  #grip { width: 6px; height: 20px; align-self: center; background: repeating-linear-gradient(#8057d6 0 2px, transparent 2px 4px); opacity: .55; }
  #right { width: 134px; background: #fff; border: 1px solid #6a3fb5; overflow-y: scroll; overflow-x: hidden; font-size: 14px; color: #2f8a2f; }
  .u { height: 23.5px; display: flex; align-items: center; gap: 8px; padding-left: 7px; white-space: nowrap; overflow: hidden; cursor: pointer; }
  .u:hover { background: #ece6fc; }
  .u i { position: relative; width: 16px; height: 20px; flex: none; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='20' viewBox='0 0 16 20'><defs><linearGradient id='g' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23e3ecfb'/><stop offset='1' stop-color='%237f9fd6'/></linearGradient></defs><circle cx='8' cy='6' r='4.2' fill='url(%23g)' stroke='%235f7fb8' stroke-width='.9'/><path d='M1.2 19c0-6.500 3-8 6.800-8s6.800 1.500 6.800 8z' fill='url(%23g)' stroke='%235f7fb8' stroke-width='.9'/></svg>") no-repeat center; }
  .u i::after { content: ""; position: absolute; right: -3px; bottom: 0; width: 8px; height: 8px; border-radius: 50%; border: 1px solid #fff; background: #3fae2a; }
  .u.s-away i::after { background: #e6a817; }
  .u.s-busy i::after { background: #d33; }
  .u.s-off i::after { background: #999; }
  .u.s-away, .u.s-busy { color: #6a5a8f; }
  .u.s-off { color: #999; }
  .u em { font-size: 11px; color: #999; font-style: normal; margin-left: -3px; }
  #right::-webkit-scrollbar, #log::-webkit-scrollbar { width: 16px; }
  #right::-webkit-scrollbar-track, #log::-webkit-scrollbar-track { background: #e8dffb; border-left: 1px solid #6a3fb5; }
  #right::-webkit-scrollbar-thumb, #log::-webkit-scrollbar-thumb { background: linear-gradient(90deg, #2e1660, #6a3fc0 45%, #2e1660); border: 1px solid #1c0c3a; border-radius: 3px; }
  #right::-webkit-scrollbar-button:vertical:start:decrement, #log::-webkit-scrollbar-button:vertical:start:decrement { display: block; height: 16px; background: #4a2a8a url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16'><path d='M4 10l4-4 4 4z' fill='%23dff2a8'/></svg>") center no-repeat; }
  #right::-webkit-scrollbar-button:vertical:end:increment, #log::-webkit-scrollbar-button:vertical:end:increment { display: block; height: 16px; background: #4a2a8a url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16'><path d='M4 6l4 4 4-4z' fill='%23dff2a8'/></svg>") center no-repeat; }
  @supports (-moz-appearance: none) { #right, #log { scrollbar-color: #6a3fc0 #e8dffb; } }

  /* nickname gate: nothing connects until this is submitted */
  #gate { position: absolute; inset: 0; background: rgba(225,230,242,.45); -webkit-backdrop-filter: blur(2.5px); backdrop-filter: blur(2.5px); display: flex; align-items: center; justify-content: center; z-index: 5; border: 1px solid #6a3fb5; }
  #gate form { background: #fff; border: 2px solid #6a3fb5; border-radius: 8px; padding: 16px 18px; width: min(310px, 92%); text-align: center; font-size: 13px; color: #4b2a8c; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
  #gate b { display: block; font-size: 15px; margin-bottom: 8px; }
  #gate input[type=text], #gate input[type=password] { width: 100%; padding: 8px; margin: 4px 0 8px; border: 1px solid #6a3fb5; border-radius: 4px; font: 14px Tahoma, sans-serif; }
  #gate .gnote { font-size: 11px; color: #6a5a8f; line-height: 1.4; margin: 2px 0 10px; text-align: center; }
  #gate button { width: 100%; padding: 10px; font: bold 15px Tahoma, sans-serif; color: #fff; cursor: pointer; background: linear-gradient(#8057d6, #4b2a8c); border: 1px solid #2e1660; border-radius: 6px; text-shadow: 0 1px 0 rgba(0,0,0,.25); }
  #gerr { color: #a11; font-size: 12px; min-height: 16px; margin-bottom: 6px; }

  /* click menu on a name */
  #menu { position: fixed; display: none; background: #f6f2ff; border: 1px solid #4a2a8a; box-shadow: 2px 2px 4px rgba(0,0,0,.3); font-size: 13px; z-index: 30; min-width: 150px; }
  #menu div { padding: 6px 18px; cursor: pointer; }
  #menu div:hover { background: #6a3fc0; color: #fff; }
  #menu .hd { background: #e8dffb; font-weight: bold; color: #4b2a8c; cursor: default; font-size: 12px; }
  #menu .hd:hover { background: #e8dffb; color: #4b2a8c; }

  /* private message windows */
  #pms { position: fixed; right: 12px; bottom: 0; z-index: 20; display: flex; flex-direction: row-reverse; align-items: flex-end; gap: 8px; pointer-events: none; }
  .pmw { pointer-events: auto; width: 270px; background: #24104a; border: 3px solid #4a2a8a; border-bottom: none; border-radius: 10px 10px 0 0; box-shadow: 0 -2px 10px rgba(0,0,0,.3); display: flex; flex-direction: column; height: 320px; }
  .pmw .ph { display: flex; align-items: center; gap: 6px; padding: 5px 8px; background: linear-gradient(#6a3fc0, #4b2a8c); color: #fff; font-size: 13px; text-shadow: 0 1px 0 rgba(0,0,0,.25); cursor: pointer; border-radius: 6px 6px 0 0; }
  .pmw .ph b { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pmw .ph .x { cursor: pointer; padding: 0 4px; font-size: 16px; line-height: 14px; }
  .pmw .ph .dot { width: 9px; height: 9px; border-radius: 50%; background: #3fae2a; border: 1px solid #fff; flex: none; }
  .pmw .ph .dot.s-away { background: #e6a817; } .pmw .ph .dot.s-busy { background: #d33; } .pmw .ph .dot.s-off { background: #999; }
  .pmw.flash .ph { background: linear-gradient(#ffd54a, #e0a000); }
  .pmw .pl { flex: 1; overflow-y: auto; background: #fff; margin: 4px 4px 0; border: 1px solid #6a3fb5; padding: 6px; font-size: 16px; line-height: 23px; color: #222; word-wrap: break-word; }
  .pmw .pi { margin: 4px; height: 34px; padding: 4px 8px; border: 1px solid #6a3fb5; border-radius: 4px; outline: none; font: 16px Tahoma, sans-serif; }
  .pmw.min { height: auto; } .pmw.min .pl, .pmw.min .pi { display: none; }
  .pmw .note { color: #a15; font-style: italic; }

  @media (max-width: 600px) {
    .cmain { height: var(--chatH, min(42svh, 320px)); min-height: 240px; } #input, #gate input { font-size: 16px !important; }
    #ubtn { display: inline-block; }
    #right { display: none; position: absolute; right: 0; top: 0; bottom: 38px; z-index: 4; width: 150px; box-shadow: -2px 0 6px rgba(0,0,0,.25); }
    #right.open { display: block; }
    #grip { display: none; }
    #pms { left: 8px; right: 8px; }
    .pmw { width: 100%; height: 55vh; }
    .pmw:not(:first-child) { display: none; }
  }
/* ---- navy theme overrides ---- */
.ctabrow{display:flex;justify-content:space-between;align-items:flex-end}
#toolbar .btn2,#toolbar select,#ubtn{background:linear-gradient(#4a2f86,#2e1a5c);border-color:#8057d6;color:#eadfff}
#toolbar .q.sel{background:linear-gradient(#9a74e6,#6a3fc0);color:#fff}
.cmin{background:linear-gradient(#6a3fc0,#4b2a8c);border-color:#2e1660;color:#e0d2ff}
.ctab{color:#fff}
.chat-note{font-size:12px;color:#6a5a8f;text-align:center;margin:6px 0 0}
#chat{font:16px/1.4 Tahoma,Verdana,Arial,sans-serif;color:#222}
#chat *,#menu *,#pms *{box-sizing:border-box}
#pop{color:#4b2a8c}
#flist span.sel,.tgl.sel,#emojis .tabs span.sel{background:#6a3fc0;color:#fff;border-color:#4b2a8c}
.pmw .ph{color:#fff}
.ts{color:#9a8fb8;font-size:11px;margin-right:2px}
#inrow{display:flex;gap:6px}
#inrow #input{flex:1;min-width:0;width:auto}
#send{flex:0 0 auto;height:42px;padding:0 18px;font:bold 15px Tahoma,Verdana,sans-serif;color:#fff;background:linear-gradient(#8057d6,#4b2a8c);border:1px solid #2e1660;border-radius:4px;cursor:pointer}
#send:hover:not(:disabled){background:linear-gradient(#8a64dd,#5a34a8)}
#send:disabled{opacity:.45;cursor:default}
#gate .gmeet{font-size:12px;color:#4b2a8c;text-align:center;margin:2px 0 4px}
#newmsg{display:none;position:absolute;left:50%;bottom:10px;transform:translateX(-50%);z-index:3;padding:5px 14px;font:bold 12px Tahoma,Verdana,sans-serif;color:#fff;background:#6a3fc0;border:1px solid #2e1660;border-radius:16px;cursor:pointer;box-shadow:0 2px 6px rgba(0,0,0,.35)}
.pmw.flash .ph{background:linear-gradient(#ffd54a,#e0a000)}
.pmw{box-shadow:0 -2px 8px rgba(0,0,0,.35)}
#gate button{background:linear-gradient(#8057d6,#4b2a8c);border-color:#2e1660;color:#fff}
#ubtn{white-space:nowrap}
#menu .hd{color:#4b2a8c}
#gate a{color:#4b2a8c}
/* reserve the chat's space so the page does not jump when the chat loads */
#chat-room{min-height:615px}


/* ================= PHONES ONLY (max 600px). Desktop is not touched. ================= */
@media (max-width:600px){
  /* chat first: it sits right under the header, the page text moves below it */
  .crumbs{display:none}
  article{display:flex;flex-direction:column}
  #chat-room{order:-1;min-height:calc(100svh - 70px)!important;margin-top:8px}
  /* the window is the size of the phone screen */
  .cmain{height:calc(100svh - 168px)!important;min-height:300px}
  /* while typing: pinned to the top of the visible area, small gap above the keyboard, nothing behind it moves */
  body.chatmode{overflow:hidden}
  body.chatmode::before{content:"";position:fixed;left:0;right:0;top:var(--vvt,0px);height:var(--vvh);background:#ece6fc;z-index:40}
  body.chatmode #chat{position:fixed;left:6px;right:6px;top:calc(var(--vvt,0px) + 6px);height:calc(var(--vvh) - 12px);z-index:50;margin:0;display:flex;flex-direction:column}
  body.chatmode #chat .ctabrow{flex:none}
  body.chatmode #chat .cmain{height:auto!important;flex:1;min-height:0}
  #menu,#pms{z-index:60}
  /* online list: a small card over the top-right of the log, own header + close button, never over the toolbar */
  #logwrap #right{display:none;position:absolute;right:8px;top:42px;bottom:2px;width:136px;z-index:7;border:2px solid #6a3fb5;border-top:0;border-radius:0 0 8px 8px;box-shadow:0 3px 10px rgba(0,0,0,.35);overflow-y:auto;padding-top:0}
  #logwrap #right.open{display:block}
  #uhead{display:none;position:absolute;right:8px;top:8px;width:136px;height:34px;z-index:8;align-items:center;justify-content:space-between;padding:0 5px 0 9px;background:linear-gradient(#6a3fc0,#4b2a8c);border:2px solid #6a3fb5;border-radius:8px 8px 0 0;color:#fff;font:bold 13px Tahoma,Verdana,sans-serif;box-shadow:0 3px 10px rgba(0,0,0,.35)}
  #uhead.open{display:flex}
  #uhead button{width:26px;height:24px;border:1px solid #2e1660;border-radius:5px;background:linear-gradient(#9a74e6,#6a3fc0);color:#fff;font:bold 15px Tahoma,sans-serif;line-height:1;padding:0}
  #ubtn.on{background:linear-gradient(#9a74e6,#6a3fc0);color:#fff}
  #inrow #input{height:44px}
}

.at{color:#5b2a9e;font-family:Georgia,"Times New Roman",serif;font-weight:bold;font-size:16px;line-height:1;margin-right:-4px;text-shadow:0 0 5px rgba(139,92,246,.55),0 1px 0 #fff}
#log .bot{color:#6a3fb5}
#log .botn{display:inline-block;background:linear-gradient(#9a74e6,#6a3fc0);color:#fff;font-weight:bold;font-size:13px;padding:0 6px;border-radius:9px;margin-right:4px;vertical-align:1px}

.ctabrow{gap:8px}
.grp{display:flex;align-items:flex-end;gap:4px;min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
.grp::-webkit-scrollbar{display:none}
.grp>.ctab{flex:none;white-space:nowrap}
.ctab.dim{opacity:.7}
.ptab{flex:none;display:inline-flex;align-items:center;gap:6px;height:25px;padding:0 10px;font:14px Tahoma,Verdana,sans-serif;color:#eadfff;background:linear-gradient(#4a2f86,#2e1a5c);border:1px solid #6f4fc0;border-bottom:0;border-radius:8px 8px 0 0;cursor:pointer;white-space:nowrap;margin-bottom:-1px}
.ptab.on{background:linear-gradient(#9a74e6,#6a3fc0);color:#fff;font-weight:bold}
.ptab.flash{background:linear-gradient(#ffd54a,#e0a000);color:#3a2a00;font-weight:bold}
.ptab .x{font-style:normal;opacity:.8;font-size:16px;line-height:1;padding:0 2px}
.ptab .x:hover{opacity:1}
.ptab b.c{background:#d33;color:#fff;border-radius:8px;font-size:10px;padding:0 5px;line-height:15px;font-weight:bold}
.ptab .dot{width:8px;height:8px;border-radius:50%;background:#3fae2a;border:1px solid #fff;flex:none}
.ptab .dot.s-away{background:#e6a817}.ptab .dot.s-busy{background:#d33}.ptab .dot.s-off{background:#999}
#logwrap .pmpane{display:none;flex:1;min-width:0;overflow-y:auto;background:#fff;border:1px solid #6a3fb5;padding:8px;font-size:16px;line-height:23px;color:#2f8a2f;word-wrap:break-word}
#logwrap .pmpane.on{display:block}
#logwrap .pmpane>div{margin:3px 0}
#logwrap .pmpane .note{color:#a31560;font-style:italic}
#logwrap.pm #log{display:none}
.pmpane::-webkit-scrollbar{width:16px}
.pmpane::-webkit-scrollbar-track{background:#e8dffb;border-left:1px solid #6a3fb5}
.pmpane::-webkit-scrollbar-thumb{background:linear-gradient(90deg,#2e1660,#6a3fc0 45%,#2e1660);border:1px solid #1c0c3a;border-radius:3px}
@supports (-moz-appearance:none){.pmpane{scrollbar-color:#6a3fc0 #e8dffb}}
@media (max-width:600px){
.ptab{padding:0 8px;gap:4px;font-size:14px}
.ptab:not(.on) .x{display:none}
.ptab .pn{max-width:64px;overflow:hidden;text-overflow:ellipsis}
.ptab .dot{display:none}
}

/* ---- retro JOIN CHAT window ---- */
#gate #gform{padding:0;border:1px solid #4f3590;border-radius:5px;background:#dcd9d2;width:min(300px,92%);text-align:left;overflow:hidden;box-shadow:0 3px 10px rgba(0,0,0,.3)}
#gate .ghd{background:linear-gradient(#7a52c8,#5a359e);color:#fff;font:bold 15px Georgia,"Times New Roman",serif;letter-spacing:.4px;padding:7px 10px;border-bottom:1px solid #3e2478}
#gate .gbd{padding:10px 12px 14px;color:#222}
#gate label{display:block;font:bold 14px Georgia,"Times New Roman",serif;color:#111;margin:0 0 3px}
#gate #nickIn{display:block;width:100%;padding:6px 7px;margin:0 0 8px;border:1px solid #9a8fb8;border-radius:2px;background:#fff;font:16px Tahoma,Verdana,sans-serif;color:#111}
#gate .gnote{font-size:13px;color:#444;line-height:1.4;margin:0 0 10px;text-align:left}
#gate #gerr{color:#b00020;font-size:12px;margin:0 0 6px}
#gate .gbd button{display:block;width:auto;min-width:74px;margin:0 auto;padding:6px 18px;font:15px Tahoma,Verdana,sans-serif;color:#222;text-shadow:none;background:linear-gradient(#f4f2ee,#d2cfc7);border:1px solid #9a8fb8;border-radius:5px;cursor:pointer}
#gate .gbd button:hover{background:linear-gradient(#fff,#dedbd4)}
@media (max-width:600px){#gate .gbd button{min-width:150px;min-height:44px;font-size:16px;font-weight:bold}}

/* ---- Sam: easy to read; admin lines ---- */
#log .bot{color:#3b1c78;font:16px/23px Tahoma,Verdana,sans-serif;background:#f1e9ff;border-left:3px solid #8057d6;padding:3px 7px;margin:3px 0;border-radius:0 6px 6px 0}
#log .botn{background:linear-gradient(#9a74e6,#6a3fc0)}
#log .adm{color:#5a2ca8;font-weight:bold}
#log .adm.off{color:#8a7aa8}

/* Sam's real IRC messages: traditional <Sam> style, no badge or bubble. */
#log .msg.sam-message {
  margin: 3px 0 5px;
  line-height: 1.4;
  overflow-wrap: break-word;
}
#log .msg.sam-message .sam-name {
  color: #167044;
  font-weight: 700;
}
#log .msg.sam-message .sam-text {
  color: #24643c;
  font-family: "Comic Sans MS", "Comic Neue", cursive;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

/* ---- Chat readability refinements: old-school IRC, no bubbles ---- */
#log .msg {
  padding: 2px 2px 3px;
  margin: 0;
  line-height: 1.43;
  overflow-wrap: anywhere;
}
#log .msg.speaker-change {
  border-top: 1px solid #eee9f5;
  margin-top: 5px;
  padding-top: 7px;
}
/* Sam still uses the green handwriting style; align his spacing with everyone. */
#log .msg.sam-message { margin: 0; line-height: 1.43; }
#log .msg.sam-message.speaker-change { margin-top: 5px; }
/* More legible status list without introducing avatars or new badges. */
#right .u {
  min-height: 28px;
  height: auto;
  padding: 3px 5px 3px 7px;
  line-height: 1.25;
  border-bottom: 1px solid #f3effa;
}
#right .u:hover { background: #eee8fc; }
#input::placeholder { color: #857898; opacity: 1; }
@media (max-width:600px) {
  #logwrap #right, #uhead { width: 158px; }
  #right .u { min-height: 31px; font-size: 14px; }
  #log .msg.speaker-change { margin-top: 6px; padding-top: 8px; }
  #input::placeholder { font-size: 13px; }
}
