:root {
  --bg: #0e1116; --card: #161b22; --line: #2a313c;
  --text: #e6edf3; --dim: #8b98a5; --acc: #3fb950; --acc2: #58a6ff; --err: #f85149;
}
* { box-sizing: border-box; }
.hidden { display: none !important; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
#app { max-width: 720px; margin: 0 auto; padding: 24px 16px 64px; }
.appfooter { text-align: center; color: var(--dim); font-size: .72rem; letter-spacing: .04em; padding: 4px 0 10px; opacity: .8; }
.appfooter .ver { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.appfooter .verline { margin-bottom: 2px; }
.appfooter .sinceline { display: flex; gap: 5px; justify-content: center; align-items: baseline; flex-wrap: wrap; }
.appfooter .since-label { color: #ffff55; }
.appfooter #since-date { color: var(--text); }
.appfooter .since-timer {
  color: #55ff55; font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.chatlink { color: #58a6ff; text-decoration: underline; overflow-wrap: anywhere; }
.chatlink:hover { color: #8bc2ff; }
.chatcolorlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; max-height: 46vh; overflow-y: auto; }
.chatcoloritem {
  display: flex; align-items: baseline; gap: 8px; text-align: left;
  background: #0b0e13; border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 10px; cursor: pointer; font: inherit; color: var(--text);
}
.chatcoloritem:hover { border-color: var(--acc2); }
.chatcoloritem .code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--dim); }
h1 { font-size: 1.45rem; margin: 0 0 6px; }
.lead { color: var(--dim); margin-top: 0; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 18px 20px; margin: 14px 0;
}
.card h2 { font-size: 1.05rem; margin: 0 0 12px; }
.view { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }

.tabs { display: flex; gap: 8px; margin: 18px 0 8px; }
.tab {
  background: none; border: 1px solid var(--line); color: var(--dim);
  border-radius: 999px; padding: 8px 18px; cursor: pointer; font: inherit;
}
.tab.active { background: var(--acc2); color: #06111f; border-color: var(--acc2); font-weight: 600; }

label { display: block; margin: 10px 0 14px; color: var(--dim); font-size: .9rem; }
label small { display: block; color: #677483; }
input {
  width: 100%; margin-top: 4px; padding: 9px 12px; border-radius: 8px;
  border: 1px solid var(--line); background: #0b0e13; color: var(--text); font: inherit;
}
input:focus { outline: 2px solid var(--acc2); border-color: transparent; }

.btn {
  background: #1d2430; border: 1px solid var(--line); color: var(--text);
  padding: 9px 16px; border-radius: 8px; cursor: pointer; font: inherit;
}
.btn.primary { background: var(--acc); border-color: var(--acc); color: #04140a; font-weight: 700; }
.btn.primary:disabled { opacity: .55; cursor: wait; }
.btn.ghost { background: none; border-color: transparent; color: var(--dim); }
.btn.small { padding: 4px 10px; font-size: .82rem; border-radius: 6px; }
.btn.danger { color: var(--err); border-color: var(--err); background: none; }
.msg { min-height: 20px; margin-top: 10px; }
.msg.err { color: var(--err); }
.msg.ok { color: var(--acc); }

.steps { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; }
.step { font-size: .88rem; padding: 2px 0; opacity: .35; }
.step.done { opacity: 1; }
.step.done::before { content: "✔ "; color: var(--acc); }
.step.run::before { content: "⏳ "; }
.step.fail { color: var(--err); opacity: 1; }
.step.fail::before { content: "✖ "; }

.statusline { color: var(--dim); font-size: .85rem; margin-top: 18px; }
.bigmsg {
  background: #10261a; border: 1px solid var(--acc); color: var(--acc);
  padding: 12px 14px; border-radius: 10px; margin-top: 12px; word-break: break-all;
}
.bigmsg.err { background: #2b1113; border-color: var(--err); color: var(--err); }

.topbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.topbar h1 { margin: 12px 0; font-size: 1.3rem; }
.topacts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hide-sm { display: inline; }
@media (max-width: 560px) { .hide-sm { display: none; } }
.namebtn {
  display: flex; align-items: center; gap: 8px; max-width: 100%;
  background: none; border: 1px solid transparent; border-radius: 999px;
  padding: 6px 14px 6px 8px; margin: 4px 0; color: var(--text);
  font: inherit; font-size: 1.35rem; font-weight: 700; cursor: pointer;
}
.namebtn:hover, .namebtn:focus-visible { background: #101827; border-color: var(--line); outline: none; }
.namebtn .nameemoji { font-size: 1.1rem; }
#hello-name { overflow-wrap: anywhere; text-align: left; }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(3, 6, 12, .62);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 8vh 16px 32px; overflow-y: auto;
}
.modal {
  width: 100%; max-width: 460px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55); animation: fade .18s ease;
}
.modal.wide { max-width: 640px; }
.modalhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.modalhead h2 { margin: 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.modal .adminblock { margin-top: 18px; }
.changelogbox {
  width: 100%; max-width: 340px; aspect-ratio: 1 / 1;
  margin: 0 auto; overflow-y: auto;
  background: #0b0e13; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px;
}
.changelogline {
  font-size: .9rem; line-height: 1.5; padding: 2px 0;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.changelog-gap { height: 8px; }
.changelog-reload {
  background: none; border: none; padding: 0; margin: 0;
  font: inherit; color: var(--err); text-decoration: underline; cursor: pointer;
}
.changelog-reload:hover { color: #ff7b72; }
input[type=color] { width: 76px; height: 40px; padding: 3px; margin-top: 6px; cursor: pointer; }
.profile-preview { font-size: 1.1rem; font-weight: 700; color: var(--text); margin: 2px 0 14px; overflow-wrap: anywhere; }

.chathint { margin: 0 0 10px; }
.chatbox {
  border: 1px solid var(--line); border-radius: 10px; background: #0b0e13;
  padding: 8px 12px; overflow-y: auto;
  max-height: calc(8 * (1.45 * 0.9rem + 6px) + 18px);
}
.chatline { display: flex; align-items: baseline; gap: 8px; font-size: .9rem; line-height: 1.45; padding: 3px 0; }
.chatbody { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.chatline .chattext { white-space: pre-wrap; }
.chattime {
  flex: 0 0 auto; color: var(--dim); font-size: .72rem; white-space: nowrap;
  opacity: 0; transition: opacity .12s ease;
}
.chatline:hover .chattime, .chatline:focus-within .chattime { opacity: 1; }
@media (hover: none) { .chattime { opacity: .75; } }
.chatuser { font-weight: 700; }
.chatsep { color: var(--dim); }
.chatfile {
  background: none; border: none; padding: 0; font: inherit;
  color: #3fb950; text-decoration: underline; cursor: pointer;
  overflow-wrap: anywhere; text-align: left;
}
.chatfile:hover { color: #56d364; }
.chatfile:disabled { opacity: .55; cursor: wait; }
.chatsize { color: var(--dim); font-size: .75rem; margin-left: 6px; }
.chatform { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.chatform input { flex: 1 1 220px; margin-top: 0; }
.linkbtn {
  background: none; border: none; padding: 0; font: inherit; color: var(--text);
  cursor: pointer; text-align: left; overflow-wrap: anywhere;
}
.linkbtn:hover { color: var(--acc2); text-decoration: underline; }
#picker-list tr { cursor: default; }
#picker-list td.dim { color: var(--dim); font-size: .84rem; }

.beta {
  font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--acc2); border: 1px solid var(--acc2); border-radius: 999px;
  padding: 1px 7px; vertical-align: middle;
}
.hwlist {
  display: flex; flex-direction: column; gap: 8px;
  max-height: 320px; overflow-y: auto;
}
.hwrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: #0b0e13;
  padding: 8px 10px; font-size: .9rem;
}
.hwsubj { flex: 0 0 auto; font-weight: 700; color: var(--acc); overflow-wrap: anywhere; }
.hwtask { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.hwdue { flex: 0 0 auto; margin-left: auto; color: var(--dim); font-size: .8rem; white-space: nowrap; }
.hwrow.today .hwdue { color: var(--acc); }
.hwrow.late { border-color: var(--err); }
.hwrow.late .hwdue { color: var(--err); }
.hwcount {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .78rem; white-space: nowrap; color: var(--dim);
}
.hwcount.soon { color: #d29922; font-weight: 700; }
.hwcount.gone { color: var(--err); font-weight: 700; }
.hwdone { flex: 0 0 auto; }
.hwdone.on { border-color: var(--acc); color: var(--acc); font-weight: 700; }
.hwrow.mine { opacity: .62; }
.hwrow.mine .hwtask { text-decoration: line-through; }
.hwrow.mine:hover, .hwrow.mine:focus-within { opacity: 1; }
.hwwho { flex: 1 1 100%; font-size: .78rem; color: var(--acc); overflow-wrap: anywhere; }
.hwform { margin-top: 2px; }
.hwform .rowbtns { justify-content: flex-end; margin-top: 4px; }
.hwform input[type=date] { color-scheme: dark; }
#hw-admin-list { margin-top: 10px; }
#hw-admin-list td.late { color: var(--err); }
#hw-admin-list td small { color: var(--dim); }
#hw-admin-list td.hwby { color: var(--dim); font-size: .82rem; }

.hwnext {
  margin: 8px 0 6px; padding: 6px 10px; border-radius: 8px;
  border: 1px solid var(--line); background: #0b0e13; color: var(--dim);
  font-size: .82rem;
}
.hwnext b { color: var(--txt); }
.hwnexttag { margin-right: 4px; }
.hwfilters { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.hwfilter {
  border: 1px solid var(--line); background: #0b0e13; color: var(--dim);
  border-radius: 999px; padding: 3px 12px; font: inherit; font-size: .8rem;
  cursor: pointer;
}
.hwfilter b { color: var(--txt); font-weight: 700; }
.hwfilter:hover { border-color: var(--acc); color: var(--txt); }
.hwfilter.on { border-color: var(--acc); color: var(--acc); background: #10151d; }
.hwfilter.on b { color: var(--acc); }
.hwedit { padding: 2px 8px; line-height: 1.2; }
#hw-modal .rowbtns { align-items: center; }
#hw-modal #btn-hw-delete { margin-right: auto; }

.update-banner {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center; margin: 14px 0 16px; padding: 14px 16px;
  background: #2b1113; border: 1px solid var(--err); border-radius: 10px;
  color: var(--err);
}
.update-banner .update-text { font-weight: 700; line-height: 1.4; text-wrap: balance; }
.update-btn {
  background: var(--err); border-color: var(--err); color: #2b0507; font-weight: 700;
}
.update-btn:hover { background: #ff7b72; border-color: #ff7b72; }

.motd {
  text-align: center; margin: 16px 0 2px; padding: 14px 6px;

  overflow: hidden;
}
.motd p {
  margin: 0; font-size: 1.5rem; font-weight: 700; line-height: 1.3;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.motd .w { display: inline-block; max-width: 100%; }
.motd .ch { display: inline-block; }

.motd[data-anim="float"] p { animation: motd-float 5s ease-in-out infinite; }
@keyframes motd-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.motd[data-anim="wave"] .ch {
  animation: motd-wave 2.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.11s);
}
@keyframes motd-wave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.motd[data-anim="rainbow"] .ch {
  animation: motd-hue 3.2s linear infinite;
  animation-delay: calc(var(--i) * -0.12s);
}
@keyframes motd-hue {
  0% { color: #58a6ff; }
  25% { color: #3fb950; }
  50% { color: #f0b429; }
  75% { color: #d2a8ff; }
  100% { color: #58a6ff; }
}
.motd[data-anim="glow"] p { animation: motd-glow 3.2s ease-in-out infinite; }
@keyframes motd-glow {
  0%, 100% { color: var(--text); text-shadow: 0 0 6px rgba(88, 166, 255, .35); }
  50% { color: #c7f9d2; text-shadow: 0 0 18px rgba(63, 185, 80, .8); }
}
.motd[data-anim="shimmer"] p {
  background: linear-gradient(90deg, #58a6ff, #3fb950, #d2a8ff, #58a6ff);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: motd-shimmer 4s linear infinite;
}
@keyframes motd-shimmer {
  from { background-position: 0% 50%; }
  to { background-position: 300% 50%; }
}
.motd[data-anim="pulse"] p { animation: motd-pulse 2.8s ease-in-out infinite; }
@keyframes motd-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: .85; }
}

.motd[data-anim="bounce"] .ch {
  animation: motd-bounce 1.9s cubic-bezier(.28, .84, .42, 1) infinite;
  animation-delay: calc(var(--i) * -0.09s);
}
@keyframes motd-bounce {
  0%, 55%, 100% { transform: translateY(0) scale(1); }
  28% { transform: translateY(-9px) scale(1.06); }
}
.motd[data-anim="sparkle"] .ch {
  animation: motd-sparkle 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.17s);
}
@keyframes motd-sparkle {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; color: #fff; text-shadow: 0 0 8px #bae6fd; }
}
.motd[data-anim="sway"] p { animation: motd-sway 4.5s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes motd-sway {
  0%, 100% { transform: rotate(-1.5deg); }
  50% { transform: rotate(1.5deg); }
}
.motd[data-anim="jitter"] .ch {
  animation: motd-jitter .45s steps(2, end) infinite;
  animation-delay: calc(var(--i) * -0.05s);
}
.motd[data-anim="jitter"] .ch:nth-child(even) { animation-direction: reverse; }
@keyframes motd-jitter {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-1px, 1px); }
  50% { transform: translate(1px, -1px); }
  75% { transform: translate(-1px, -1px); }
}
.motd[data-anim="neon"] p { animation: motd-neon 3.6s linear infinite; }
@keyframes motd-neon {
  0%, 18%, 22%, 25%, 53%, 57%, 100% {
    color: #e6edf3;
    text-shadow: 0 0 4px rgba(88, 166, 255, .6), 0 0 12px rgba(88, 166, 255, .35);
  }
  20%, 24%, 55% { color: #7cc4ff; text-shadow: 0 0 2px rgba(88, 166, 255, .2); }
}
.motd[data-anim="hue"] p { color: #7cc4ff; animation: motd-huecycle 6s linear infinite; }
@keyframes motd-huecycle {
  from { filter: hue-rotate(0deg); }
  to { filter: hue-rotate(360deg); }
}
.motd[data-anim="slide"] .ch {
  animation: motd-slide .9s cubic-bezier(.2, .9, .25, 1) both;
  animation-delay: calc(var(--i) * 0.035s);
}
@keyframes motd-slide {
  from { transform: translateY(90%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.motd[data-anim="flip"] p { perspective: 400px; }
.motd[data-anim="flip"] .ch {
  animation: motd-flip 2.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.12s);
}
@keyframes motd-flip {
  0%, 70%, 100% { transform: rotateX(0); }
  35% { transform: rotateX(360deg); }
}
.motd[data-anim="glitch"] p { position: relative; animation: motd-glitch-skew 2.4s steps(2, end) infinite; }
.motd[data-anim="glitch"] p::before,
.motd[data-anim="glitch"] p::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  text-align: center; white-space: inherit;
  pointer-events: none; opacity: .75;
}
.motd[data-anim="glitch"] p::before {
  color: #58a6ff;
  animation: motd-glitch-a 2.2s steps(2, end) infinite;
}
.motd[data-anim="glitch"] p::after {
  color: #ff7b72;
  animation: motd-glitch-b 1.8s steps(2, end) infinite;
}
@keyframes motd-glitch-skew {
  0%, 92%, 100% { transform: skewX(0); }
  94% { transform: skewX(2deg); }
  97% { transform: skewX(-2deg); }
}
@keyframes motd-glitch-a {
  0%, 100% { clip-path: inset(0 0 92% 0); transform: translate(-1px, -1px); }
  20% { clip-path: inset(82% 0 4% 0); transform: translate(1px, 1px); }
  40% { clip-path: inset(40% 0 45% 0); transform: translate(-1px, 0); }
  60% { clip-path: inset(10% 0 80% 0); transform: translate(1px, -1px); }
  80% { clip-path: inset(65% 0 20% 0); transform: translate(-1px, 1px); }
}
@keyframes motd-glitch-b {
  0%, 100% { clip-path: inset(88% 0 0 0); transform: translate(1px, 1px); }
  25% { clip-path: inset(6% 0 78% 0); transform: translate(-1px, -1px); }
  50% { clip-path: inset(55% 0 25% 0); transform: translate(1px, 0); }
  75% { clip-path: inset(30% 0 55% 0); transform: translate(-1px, 1px); }
}
.motd[data-anim="blur"] p { animation: motd-blur 4s ease-in-out infinite; }
@keyframes motd-blur {
  0%, 100% { filter: blur(0); }
  50% { filter: blur(1.2px); }
}
.motd[data-anim="tilt"] p {
  animation: motd-tilt 3.5s ease-in-out infinite;
  transform-origin: 50% 100%;
}
@keyframes motd-tilt {
  0%, 100% { transform: perspective(300px) rotateX(0); }
  50% { transform: perspective(300px) rotateX(16deg); }
}

@media (prefers-reduced-motion: reduce) {
  .motd p, .motd .ch, .motd p::before, .motd p::after { animation: none !important; }
  .motd[data-anim="glitch"] p::before,
  .motd[data-anim="glitch"] p::after { content: none; }
}
.uncrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.uncrow code {
  background: #0b0e13; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 12px; font-size: 1.05rem; letter-spacing: .5px;
}
.howto { color: var(--dim); font-size: .9rem; padding-left: 20px; margin: 14px 0 0; }
.howto code { background: #0b0e13; padding: 1px 6px; border-radius: 4px; }

.osgrid { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.oscard { flex: 1 1 120px; padding: 12px 10px; font-size: .95rem; }
.oscard.active { border-color: var(--acc2); color: var(--acc2); }
.oshelp {
  margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 12px;
  color: var(--dim); font-size: .9rem;
}
.oshelp ol { padding-left: 20px; margin: 0; }
.oshelp .cmdline {
  display: flex; gap: 8px; align-items: center; margin: 8px 0;
  background: #0b0e13; border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 10px; overflow-x: auto;
}
.oshelp .cmdline code { white-space: nowrap; font-size: .85rem; }

.cardhead { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.cardhead h2 { margin: 0; }

.cardhead .btn { margin: 0; color: var(--text); white-space: nowrap; }

.usage { font-size: 1.25rem; font-weight: 700; }
.usage small { color: var(--dim); font-weight: 400; font-size: .85rem; }
.bar { height: 10px; border-radius: 6px; background: #0b0e13; border: 1px solid var(--line); overflow: hidden; margin-top: 8px; }
.fill { height: 100%; background: linear-gradient(90deg, var(--acc), var(--acc2)); transition: width .4s; }
.small { color: var(--dim); font-size: .82rem; margin-top: 6px; }

.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--dim); font-weight: 600; }
td .btn { margin-right: 4px; }
.sysgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.sysgrid b { display: block; font-size: 1.2rem; }
.sysgrid span { color: var(--dim); font-size: .8rem; }
.dot { color: var(--acc); } .dot.err { color: var(--err); }

a.btn { display: inline-block; text-decoration: none; text-align: center; }

#app.wide { max-width: 1040px; }
.who { color: var(--dim); margin-right: 10px; font-size: .9rem; }
.fsbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.newmenu { position: relative; }
.newmenu-pop {
  position: absolute; left: 0; top: calc(100% + 6px); z-index: 20;
  min-width: 170px; padding: 4px;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
}
.newmenu-item {
  display: block; width: 100%; padding: 8px 10px;
  background: none; border: none; border-radius: 6px;
  color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.newmenu-item:hover, .newmenu-item:focus-visible { background: #101827; outline: none; }
.crumbs {
  display: flex; gap: 4px; align-items: center; flex: 1 1 220px; min-width: 0;
  overflow-x: auto; font-size: .88rem; white-space: nowrap; padding: 2px 4px;
}
.crumbs a { color: var(--acc2); cursor: pointer; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { color: var(--dim); }
.crumbs b { color: var(--text); }
.drop {
  border: 1px dashed var(--line); border-radius: 10px; padding: 12px;
  text-align: center; color: var(--dim); font-size: .82rem; margin-bottom: 12px;
}
.drop.over { border-color: var(--acc2); color: var(--acc2); background: #101827; }
.empty { color: var(--dim); font-size: .9rem; padding: 18px 4px; text-align: center; }
#fs td.fsname { white-space: normal; word-break: break-word; }
#fs .fsname a { color: var(--text); text-decoration: none; }
#fs .fsname a:hover { color: var(--acc2); text-decoration: underline; }
#fs td.dim { color: var(--dim); font-size: .84rem; }
#fs td.acts { text-align: right; }
#fs td.acts .btn { padding: 2px 8px; }
label.btn { cursor: pointer; }

#fs tr.isdir td.fsname { cursor: pointer; font-weight: 600; }
#fs tr.isdir:hover td { background: #101827; }

.banner {
  background: #2b1113; border: 1px solid var(--err); color: #ffb3ae;
  border-radius: 10px; padding: 10px 14px; margin: 6px 0 14px; font-size: .88rem;
}
.banner code { background: #0b0e13; padding: 1px 5px; border-radius: 4px; }
.rowbtns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.checklist { margin-top: 10px; display: grid; gap: 4px; }
.chk { font-size: .84rem; border-radius: 8px; padding: 6px 10px; background: #0b0e13; word-break: break-word; }
.chk.ok { color: var(--acc); }
.chk.err { color: var(--err); }
.chk.warn { color: #d29922; }

.adminblock { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 14px; }
.adminblock h3 { font-size: .98rem; margin: 0 0 8px; }
#full-list { margin-top: 10px; }
#full-list table { margin-top: 4px; }
#full-list td.fname { white-space: normal; word-break: break-all; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .8rem; }
#full-list td.acts { text-align: right; }
.restorebox { margin-top: 12px; }
.restorebox code { font-size: .8rem; overflow-x: auto; display: block; padding: 8px 10px; }
.restorebox .uncrow { align-items: flex-start; }

.settingrow {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
}
.settingrow + .settingrow { margin-top: -2px; }
.colorfield { flex: 1 1 170px; margin-bottom: 10px; }
.switchfield {
  display: flex; align-items: center; gap: 8px; margin: 0 0 12px;
  font-size: .82rem; color: var(--dim);
}
.switch {
  position: relative; display: inline-block; width: 38px; height: 21px;
  flex: 0 0 auto; cursor: pointer;
}
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute; inset: 0; background: #0b0e13;
  border: 1px solid var(--line); border-radius: 999px;
  transition: background .18s, border-color .18s;
}
.switch .track::after {
  content: ""; position: absolute; left: 2px; top: 2px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--dim); transition: transform .18s, background .18s;
}
.switch input:checked + .track { background: var(--acc2); border-color: var(--acc2); }
.switch input:checked + .track::after { transform: translateX(17px); background: #04140a; }
.switch input:focus-visible + .track { outline: 2px solid var(--acc2); outline-offset: 2px; }

.motd .motd-part { display: inline; }
.motd .tone-red { color: #ff5c5c; }
.motd .tone-yellow { color: #ffd166; }
.motd .tone-red.pulse { animation: motd-holiday-pulse 1.2s ease-in-out infinite; }
.motd[data-holiday] p { font-size: clamp(1.4rem, 7vw, 2.1rem); letter-spacing: .04em; }
@keyframes motd-holiday-pulse {
  0%, 100% { color: #ff5c5c; text-shadow: 0 0 6px rgba(255, 60, 60, .45); }
  50% { color: #ffbcbc; text-shadow: 0 0 20px rgba(255, 60, 60, .95); }
}
@media (prefers-reduced-motion: reduce) {
  .motd .tone-red.pulse { animation: none !important; }
}
