:root {
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: #ede7d4;
  background: #0e1b17;
  font-synthesis: none;
  --chalk: #ede7d4;
  --muted: #afc1b3;
  --stroke: #95b3a23d;
  --gold: #f0ce8b;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 0, #24382d, transparent 62%);
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 2px solid #ffdb96; outline-offset: 4px; }

.shell { width: min(960px, calc(100% - 64px)); margin: 0 auto; padding: 46px 0 24px; }
.topbar, .foot, .top-actions, .identity, .board-title, .role, .messages-head, .composer-footer {
  display: flex;
  align-items: center;
}
.topbar { justify-content: space-between; gap: 12px; margin-bottom: 16px; min-height: 38px; }
.identity { gap: 11px; color: #cad6c8; font-size: .875rem; letter-spacing: .08em; }
.board-mark {
  position: relative;
  width: 23px;
  height: 17px;
  border: 1px solid #c8b590;
  border-radius: 3px;
}
.board-mark::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 2px;
  background: #c8b590;
  bottom: 4px;
  right: 3px;
  border-radius: 2px;
}
.top-actions { gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.board {
  margin: 0;
  padding: 11px 11px 0;
  border-radius: 15px;
  background:
    repeating-linear-gradient(4deg, #fff0 0 4px, #26150e30 5px, #fff0 7px 10px),
    linear-gradient(110deg, #99704d, #80583b 32%, #a0754f 70%, #79533a);
  box-shadow: 0 22px 54px #0308069c, inset 0 1px #eecfa066, 0 0 0 1px #3b281e;
}
.surface {
  min-height: 455px;
  padding: clamp(24px, 6vw, 61px);
  border-radius: 7px 7px 3px 3px;
  background:
    radial-gradient(ellipse at 24% 8%, #b2c8a418, transparent 62%),
    repeating-linear-gradient(0deg, #94a78e06 0 1px, transparent 1px 35px),
    #193229;
  box-shadow: inset 0 0 30px #081b16a1, inset 0 0 0 1px #172218;
}
.board-title { justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 37px; }
h1 { margin: 0; font-size: clamp(2.6rem, 7vw, 4.7rem); line-height: 1.16; letter-spacing: .09em; }
.chalk-line {
  width: 88px;
  height: 4px;
  margin-top: 16px;
  border-radius: 87% 25% 70% 32%;
  transform: rotate(-3deg);
  background: var(--gold);
  opacity: .9;
}
.role {
  gap: 8px;
  margin-top: 9px;
  border: 1px solid #91ae9b4d;
  border-radius: 20px;
  color: #d0ded1;
  padding: 6px 12px;
  font-size: .875rem;
  white-space: nowrap;
}
.role span { width: 6px; height: 6px; border-radius: 50%; background: #a6cbb1; }
.role.owner { color: #f1dcb2; border-color: #e4c17c66; }
.role.owner span { background: var(--gold); }
.messages-head { justify-content: space-between; gap: 8px; padding-bottom: 13px; border-bottom: 1px solid var(--stroke); }
h2 { margin: 0; font-size: 1.125rem; font-weight: 650; }
.messages-head span { color: var(--muted); font-size: .875rem; }
.empty { padding: 38px 10px 20px; text-align: center; }
.empty p { margin: 9px 0 0; }
.chalk-drawing {
  width: 52px;
  height: 49px;
  border: 2px solid #b9c8ad8c;
  border-radius: 5px 7px 6px 5px;
  transform: rotate(-7deg);
  margin: 0 auto 17px;
  position: relative;
}
.chalk-drawing i {
  position: absolute;
  top: 11px;
  left: 9px;
  width: 25px;
  height: 12px;
  border-top: 2px solid #b9c8ad8c;
  border-bottom: 2px solid #b9c8ad8c;
}
.chalk-drawing b {
  position: absolute;
  width: 29px;
  height: 6px;
  border-radius: 2px;
  transform: rotate(-35deg);
  bottom: 4px;
  right: -11px;
  background: #edce8f;
}
.post { border-bottom: 1px solid var(--stroke); padding: 19px 1px 20px; }
.post:last-child { border-bottom: 0; padding-bottom: 0; }
.post-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 26px; }
.post time { color: var(--muted); font-size: .875rem; }
.post p { margin: 8px 0 0; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.tray { height: 16px; display: flex; align-items: center; gap: 8px; padding: 0 23px; }
.tray i, .tray b { width: 29px; height: 5px; background: #f1ead8; border-radius: 3px; box-shadow: 0 2px 2px #4a2b17; }
.tray i + i { width: 21px; background: #eed199; transform: rotate(-7deg); }
.tray b { width: 34px; height: 7px; margin-left: auto; background: #48362d; }
.foot { justify-content: space-between; margin: 15px 2px 0; gap: 12px; color: #b0bcb1; font-size: .8125rem; }
.panel {
  display: grid;
  gap: 12px;
  margin: 0 0 26px;
  padding: 20px;
  border: 1px solid var(--stroke);
  background: #0d241e64;
  border-radius: 10px;
}
.panel label { font-weight: 650; }
.panel .primary { justify-self: start; }
input, textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--chalk);
  background: #0c211a;
  border: 1px solid #89a59272;
  border-radius: 7px;
}
textarea { resize: vertical; min-height: 108px; line-height: 1.55; }
textarea::placeholder { color: #adbcad; }
.composer-footer { justify-content: space-between; gap: 15px; }
.hint { color: var(--muted); font-size: .875rem; margin: 0; }
.primary, .quiet, .danger {
  min-height: 38px;
  border-radius: 7px;
  padding: 7px 13px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: .875rem;
}
.primary { background: var(--gold); color: #2a2317; padding-inline: 20px; }
.primary:hover { background: #ffe0a6; }
.quiet { background: #142a21; border-color: #91ae9b57; color: #d7e4d7; }
.quiet:hover { background: #243e30; }
.danger { background: #ffdfd411; border-color: #eab6a76b; color: #ffcabd; }
.danger:hover { background: #ffdfd425; }
.notice { margin: 0 0 20px; color: #f5d29a; font-size: .9rem; overflow-wrap: anywhere; }
dialog {
  width: min(400px, calc(100% - 36px));
  padding: 24px;
  border: 1px solid #a2c0ad66;
  border-radius: 12px;
  background: #172d24;
  color: var(--chalk);
}
dialog p { color: #d2dbcd; line-height: 1.55; }
dialog::backdrop { background: #07110fd4; }
.dialog-actions { display: flex; gap: 9px; justify-content: flex-end; margin-top: 20px; }

@media (max-width: 540px) {
  .shell { width: calc(100% - 24px); padding-top: 20px; }
  .board { padding: 7px 7px 0; border-radius: 11px; }
  .surface { min-height: 430px; padding: 27px 18px 31px; }
  .board-title { margin-bottom: 28px; }
  .panel { padding: 13px; }
  .empty { padding-top: 35px; }
  .quiet, .primary, .danger { min-height: 42px; }
}

