/* ============================================================
   讨论区（OOPZ 式三栏） / 创新场 / 弹层
   ============================================================ */

/* ---------- community shell ---------- */
body.is-community .site-footer { display: none; }
.community-page { height: calc(100svh - var(--header-h)); min-height: 620px; overflow: hidden; background: var(--paper); }
.community-grid {
  height: 100%; display: grid;
  grid-template-columns: 66px 256px minmax(0, 1fr) 232px;
}
.community-rail {
  background: var(--paper-2); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 14px 0;
  overflow-y: auto; scrollbar-width: none;
}
.community-rail::-webkit-scrollbar { display: none; }
.rail-home {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px;
  color: var(--muted); background: var(--surface); border: 1px solid var(--line);
  transition: all .2s;
}
.rail-home:hover { color: var(--red); border-color: var(--line-strong); border-radius: 9px; }
.rail-home .icon { width: 19px; height: 19px; }
.rail-divider { width: 22px; height: 1px; background: var(--line); margin: 3px 0; }
.rail-server {
  position: relative; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid transparent;
  font-family: var(--serif); font-size: calc(16px * var(--font-scale, 1)); transition: all .22s var(--ease);
}
.rail-server:hover { border-radius: 10px; background: var(--surface); border-color: var(--line-strong); }
.rail-server.is-active { background: var(--red); color: #fff8ef; border-radius: 10px; box-shadow: 0 8px 18px -10px rgba(140,40,25,.7); }
.rail-server.is-active::before { content: ""; position: absolute; left: -12px; top: 50%; transform: translateY(-50%); width: 3px; height: 18px; background: var(--red); border-radius: 0 3px 3px 0; }
.rail-tools { margin-top: auto; display: flex; flex-direction: column; gap: 7px; }
.rail-tool { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--faint); transition: all .2s; }
.rail-tool:hover { color: var(--red); background: var(--surface); }
.rail-tool .icon { width: 17px; height: 17px; }

.channels {
  background: var(--surface); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; min-height: 0;
}
.channels__head { padding: 18px 16px 14px; border-bottom: 1px solid var(--line); }
.channels__brand { display: flex; align-items: center; gap: 9px; }
.channels__brand .brand-seal { width: 29px; height: 29px; border-radius: 8px; font-size: calc(15px * var(--font-scale, 1)); }
.channels__name { font-family: var(--serif); font-size: calc(15px * var(--font-scale, 1)); font-weight: 700; letter-spacing: .04em; }
.channels__sub { font-size: calc(12px * var(--font-scale, 1)); letter-spacing: .14em; color: var(--faint); margin-top: 2px; text-transform: uppercase; }
.channels__scroll { overflow-y: auto; flex: 1; padding: 11px 9px 18px; }
.channel-group { margin-bottom: 17px; }
.channel-group__label {
  display: flex; align-items: center; gap: 7px; padding: 0 8px 7px;
  font-size: calc(12px * var(--font-scale, 1)); letter-spacing: .14em; color: var(--faint); font-weight: 600;
}
.channel-group__label::after { content: ""; flex: 1; height: 1px; background: var(--line); opacity: .7; }
.channel-link {
  display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 7px;
  color: var(--muted); font-size: calc(12px * var(--font-scale, 1)); transition: background .16s, color .16s; margin-bottom: 1px;
}
.channel-link:hover { background: var(--surface-2); color: var(--ink); }
.channel-link.is-active { background: var(--red-soft); color: var(--red); font-weight: 600; }
.channel-link__hash { font-family: var(--serif); font-size: calc(14px * var(--font-scale, 1)); color: var(--faint); width: 13px; flex: none; text-align: center; }
.channel-link.is-active .channel-link__hash { color: var(--red); }
.channel-link__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel-link__online { display: inline-flex; align-items: center; gap: 4px; font-size: calc(12px * var(--font-scale, 1)); color: var(--faint); flex: none; }
.channel-link__online::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }
.channel-link__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--red); flex: none; }
.channels__self { border-top: 1px solid var(--line); padding: 10px 12px; display: flex; align-items: center; gap: 9px; cursor: pointer; transition: background .2s; }
.channels__self:hover { background: var(--surface-2); }
.channels__self .avatar { --avatar-size: 29px; }
.channels__self-info { min-width: 0; flex: 1; }
.channels__self-name { font-size: calc(12px * var(--font-scale, 1)); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channels__self-status { font-size: calc(12px * var(--font-scale, 1)); color: var(--faint); display: flex; align-items: center; gap: 5px; }
.channels__self-status::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--success); }
.channels__self .icon { width: 14px; height: 14px; color: var(--faint); }

.chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--paper); }
.chat__head {
  height: 62px; flex: none; display: flex; align-items: center; gap: 14px;
  padding: 0 22px; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px);
}
.chat__head-main { min-width: 0; flex: 1; display: flex; align-items: center; gap: 10px; }
.chat__hash { font-family: var(--serif); font-size: calc(23px * var(--font-scale, 1)); color: var(--faint); line-height: 1; }
.chat__name { font-family: var(--serif); font-size: calc(17px * var(--font-scale, 1)); font-weight: 600; white-space: nowrap; }
.chat__topic { font-size: calc(12px * var(--font-scale, 1)); color: var(--faint); border-left: 1px solid var(--line); padding-left: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat__head-actions { display: flex; align-items: center; gap: 3px; flex: none; }
.chat__head-actions .icon-btn { width: 33px; height: 33px; }
.chat__head-actions .icon { width: 16px; height: 16px; }
.chat__online { display: inline-flex; align-items: center; gap: 5px; font-size: calc(12px * var(--font-scale, 1)); color: var(--faint); margin-right: 9px; white-space: nowrap; }
.chat__online::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--success); }
.chat-side-toggle { display: none; }

.messages { flex: 1; overflow-y: auto; min-height: 0; padding: 18px 22px 12px; scroll-behavior: smooth; }
.chat-welcome {
  position: relative; margin: 4px 0 22px; padding: 20px 22px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  overflow: hidden;
}
.chat-welcome::after { content: "戲"; position: absolute; right: 12px; bottom: -22px; font-family: var(--serif); font-size: calc(88px * var(--font-scale, 1)); color: color-mix(in srgb, var(--ink) 4%, transparent); line-height: 1; pointer-events: none; }
.chat-welcome__label { font-size: calc(12px * var(--font-scale, 1)); letter-spacing: .16em; color: var(--red); font-weight: 600; }
.chat-welcome h2 { font-size: calc(24px * var(--font-scale, 1)); margin-top: 7px; line-height: 1.4; }
.chat-welcome p { color: var(--muted); font-size: calc(12px * var(--font-scale, 1)); line-height: 1.8; margin-top: 7px; max-width: 580px; position: relative; z-index: 1; }
.chat-welcome__links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; position: relative; z-index: 1; }
.chat-welcome__links a { font-size: calc(12px * var(--font-scale, 1)); color: var(--red); border-bottom: 1px solid color-mix(in srgb, var(--red) 30%, transparent); padding-bottom: 1px; }
.chat-welcome__links a:hover { border-color: var(--red); }
.chat-date { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--faint); font-size: calc(12px * var(--font-scale, 1)); letter-spacing: .08em; }
.chat-date::before, .chat-date::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.msg { position: relative; display: flex; align-items: flex-start; gap: 11px; padding: 7px 8px; margin: 0 -8px; border-radius: 8px; transition: background .16s; }
.msg:hover { background: color-mix(in srgb, var(--surface-2) 64%, transparent); }
.msg__avatar { flex: none; margin-top: 1px; }
.msg__body { min-width: 0; flex: 1; }
.msg__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; line-height: 1.4; }
.msg__name { font-size: calc(12px * var(--font-scale, 1)); font-weight: 650; color: var(--ink); }
.msg__role { font-size: calc(12px * var(--font-scale, 1)); letter-spacing: .08em; color: var(--red); background: var(--red-soft); border-radius: 3px; padding: 0 5px; line-height: 1.7; }
.msg__time { font-size: calc(12px * var(--font-scale, 1)); color: var(--faint); font-family: var(--mono); }
.msg__text { margin-top: 3px; font-size: calc(12.5px * var(--font-scale, 1)); line-height: 1.8; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
.msg__text a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.msg__reply {
  margin: 4px 0 5px; padding: 5px 9px; border-left: 2px solid var(--line-strong);
  border-radius: 0 5px 5px 0; background: color-mix(in srgb, var(--surface-2) 66%, transparent);
  font-size: calc(12px * var(--font-scale, 1)); color: var(--muted); line-height: 1.6;
}
.msg__reply b { color: var(--ink-2); font-weight: 600; }
.msg__actions { position: absolute; right: 9px; top: -10px; display: none; align-items: center; gap: 2px; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow-sm); z-index: 2; }
.msg:hover .msg__actions { display: flex; }
.msg__actions button { height: 23px; padding: 0 7px; border-radius: 4px; font-size: calc(12px * var(--font-scale, 1)); color: var(--muted); }
.msg__actions button:hover { background: var(--surface-2); color: var(--ink); }
.msg--host .msg__name { color: var(--red); }
.msg--host .msg__role { color: var(--jade); background: var(--jade-soft); }
.msg--own .msg__avatar { box-shadow: 0 0 0 2px var(--red-soft); }
.chat-empty { padding: 34px 10px; text-align: center; color: var(--faint); font-size: calc(12px * var(--font-scale, 1)); }
.new-message-pill {
  position: absolute; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 8;
  background: var(--red); color: #fff; border-radius: 999px; padding: 6px 14px; font-size: calc(12px * var(--font-scale, 1));
  box-shadow: var(--shadow-md); display: none;
}
.new-message-pill.is-visible { display: inline-flex; align-items: center; gap: 5px; animation: rise .3s var(--ease-out); }

.chat-compose { flex: none; padding: 0 22px 16px; background: var(--paper); position: relative; }
.compose-box { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: border-color .2s, box-shadow .2s; overflow: visible; }
.compose-box:focus-within { border-color: color-mix(in srgb, var(--jade) 55%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--jade) 8%, transparent); }
.compose-reply { display: none; align-items: center; gap: 7px; margin: 10px 12px 0; padding: 6px 9px; border-radius: 6px; background: var(--paper-2); font-size: calc(12px * var(--font-scale, 1)); color: var(--muted); }
.compose-reply.is-visible { display: flex; }
.compose-reply b { color: var(--ink-2); }
.compose-reply__close { margin-left: auto; color: var(--faint); display: inline-flex; }
.compose-reply__close:hover { color: var(--red); }
.compose-main { display: flex; align-items: flex-end; gap: 7px; padding: 9px 10px; }
.compose-main textarea {
  flex: 1; min-height: 30px; max-height: 120px; padding: 5px 2px; border: 0; outline: 0;
  background: transparent; resize: none; font-size: calc(12.5px * var(--font-scale, 1)); line-height: 1.7;
}
.compose-main textarea::placeholder { color: var(--faint); }
.compose-tools { display: flex; align-items: center; gap: 2px; flex: none; }
.compose-tool { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; color: var(--faint); transition: all .18s; }
.compose-tool:hover { color: var(--ink); background: var(--surface-2); }
.compose-tool .icon { width: 16px; height: 16px; }
.compose-send { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 7px; background: var(--ink); color: var(--paper); transition: background .2s, opacity .2s; }
.compose-send:hover { background: var(--red); }
.compose-send:disabled { opacity: .35; cursor: default; }
.compose-send .icon { width: 15px; height: 15px; }
.compose-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 12px 9px; color: var(--faint); font-size: calc(12px * var(--font-scale, 1)); }
.compose-foot kbd { font-family: var(--mono); font-size: calc(12px * var(--font-scale, 1)); border: 1px solid var(--line); border-radius: 3px; padding: 0 3px; margin: 0 1px; }
.compose-count.is-over { color: var(--red); }
.emoji-pop {
  display: none; position: absolute; right: 14px; bottom: calc(100% - 4px); z-index: 20;
  grid-template-columns: repeat(6, 1fr); gap: 2px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-md);
  width: 224px;
}
.emoji-pop.is-open { display: grid; animation: rise .18s var(--ease-out); }
.emoji-pop button { font-size: calc(17px * var(--font-scale, 1)); height: 31px; border-radius: 5px; display: grid; place-items: center; }
.emoji-pop button:hover { background: var(--surface-2); }
.compose-login { padding: 5px 2px; font-size: calc(12px * var(--font-scale, 1)); color: var(--muted); }
.compose-login button { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }

.members { background: var(--surface); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.members__head { height: 62px; flex: none; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; }
.members__head h3 { font-family: var(--sans); font-size: calc(12px * var(--font-scale, 1)); letter-spacing: .12em; color: var(--muted); font-weight: 650; }
.members__head span { font-family: var(--mono); font-size: calc(12px * var(--font-scale, 1)); color: var(--faint); }
.members__scroll { overflow-y: auto; flex: 1; padding: 14px; }
.members__group { font-size: calc(12px * var(--font-scale, 1)); letter-spacing: .12em; color: var(--faint); margin-bottom: 10px; }
.member { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.member .avatar { --avatar-size: 25px; }
.member__name { font-size: calc(12px * var(--font-scale, 1)); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member--empty { font-size: calc(12px * var(--font-scale, 1)); color: var(--faint); line-height: 1.7; padding: 6px 0; }
.member + .member--host { margin-top: 4px; }
.member__you { font-size: calc(12px * var(--font-scale, 1)); color: var(--red); border: 1px solid color-mix(in srgb, var(--red) 25%, var(--line)); border-radius: 3px; padding: 0 3px; line-height: 1.6; }
.room-brief { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.room-brief__label { font-size: calc(12px * var(--font-scale, 1)); letter-spacing: .12em; color: var(--faint); margin-bottom: 7px; }
.room-brief p { font-size: calc(12px * var(--font-scale, 1)); color: var(--muted); line-height: 1.8; }
.room-brief ul { margin-top: 8px; }
.room-brief li { position: relative; padding-left: 10px; font-size: calc(12px * var(--font-scale, 1)); color: var(--faint); line-height: 1.8; }
.room-brief li::before { content: "·"; position: absolute; left: 1px; color: var(--red); }
.room-brief__links { margin-top: 12px; display: flex; flex-direction: column; gap: 5px; }
.room-brief__links a { font-size: calc(12px * var(--font-scale, 1)); color: var(--jade); }
.room-brief__links a:hover { color: var(--red); }
.room-brief__report { display: inline-flex; margin-top: 14px; font-size: calc(12px * var(--font-scale, 1)); color: var(--faint); text-decoration: underline; text-underline-offset: 2px; }
.room-brief__report:hover { color: var(--red); }
.members__toggle { display: none; }

/* mobile channel drawer */
.channels-backdrop { display: none; position: fixed; inset: var(--header-h) 0 0; z-index: 70; background: rgba(18,14,10,.4); backdrop-filter: blur(3px); }
body.channels-open .channels { position: fixed; z-index: 80; left: 0; top: var(--header-h); bottom: 0; width: min(84vw, 310px); box-shadow: var(--shadow-lg); }
body.channels-open .channels-backdrop { display: block; }

/* ---------- innovation landing ---------- */
.create-hero {
  position: relative; overflow: hidden; background: #1b1712; color: #f5eee2;
  padding: clamp(54px, 7vw, 96px) 0 clamp(48px, 6vw, 78px);
}
.create-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 78% 30%, rgba(178,58,42,.34), transparent 40%),
    radial-gradient(ellipse at 12% 80%, rgba(47,97,88,.22), transparent 38%),
    repeating-linear-gradient(118deg, transparent 0 30px, rgba(255,255,255,.025) 30px 31px);
}
.create-hero::after {
  content: "新"; position: absolute; right: 2vw; bottom: -11vw; font-family: var(--serif);
  font-size: calc((clamp(220px, 31vw, 460px)) * var(--font-scale, 1)); line-height: 1; color: rgba(255,255,255,.04); pointer-events: none;
}
.create-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: end; }
.create-hero h1 { font-size: calc((clamp(40px, 6vw, 76px)) * var(--font-scale, 1)); line-height: 1.2; margin-top: 14px; }
.create-hero h1 em { font-style: normal; color: #dd7560; }
.create-hero__lead { color: rgba(245,238,226,.64); font-size: calc(13.5px * var(--font-scale, 1)); line-height: 1.95; margin-top: 19px; max-width: 520px; }
.create-hero__actions { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; margin-top: 28px; }
.create-hero__actions .btn { --btn-bg: #f3eadc; --btn-fg: #1b1712; --btn-bd: #f3eadc; }
.create-hero__actions .btn--ghost { --btn-bg: transparent; --btn-fg: #f5eee2; --btn-bd: rgba(255,255,255,.26); }
.create-hero__actions .btn--ghost:hover { background: rgba(255,255,255,.08); }
.create-hero__stats { display: flex; justify-content: flex-end; gap: 30px; }
.create-hero__stat { text-align: right; }
.create-hero__stat b { display: block; font-family: var(--serif); font-size: calc(36px * var(--font-scale, 1)); font-weight: 600; line-height: 1.1; }
.create-hero__stat span { font-size: calc(12px * var(--font-scale, 1)); letter-spacing: .1em; color: rgba(245,238,226,.45); }
.create-hero__scroll { position: absolute; left: 32px; bottom: 26px; z-index: 2; font-size: calc(12px * var(--font-scale, 1)); letter-spacing: .22em; color: rgba(245,238,226,.35); }
.create-hero__scroll::before { content: ""; display: inline-block; width: 22px; height: 1px; background: rgba(245,238,226,.35); vertical-align: middle; margin-right: 8px; }

.create-filters { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 32px; }
.create-filter-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.create-sort { font-size: calc(12px * var(--font-scale, 1)); color: var(--muted); display: flex; align-items: center; gap: 6px; }
.create-feature-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; margin-top: 24px; }
.create-spotlight {
  position: relative; min-height: 430px; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column;
}
.create-spotlight__poster { position: absolute; inset: 0; z-index: 0; }
.create-spotlight__poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,9,7,.88) 0%, rgba(12,9,7,.3) 42%, transparent 75%); }
.create-spotlight__copy { position: relative; z-index: 1; margin-top: auto; padding: 30px; color: #fbf4e8; }
.create-spotlight__meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 13px; }
.create-spotlight__meta .badge { color: #fbf4e8; border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.1); }
.create-spotlight__title { font-family: var(--serif); font-size: calc((clamp(28px, 3.5vw, 44px)) * var(--font-scale, 1)); line-height: 1.32; }
.create-spotlight__desc { color: rgba(251,244,232,.65); font-size: calc(12.5px * var(--font-scale, 1)); line-height: 1.85; margin-top: 12px; max-width: 620px; }
.create-spotlight__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.create-spotlight__author { font-size: calc(12px * var(--font-scale, 1)); color: rgba(251,244,232,.5); }
.create-spotlight__author b { color: rgba(251,244,232,.85); font-weight: 500; }
.create-quote-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--surface);
  display: flex; flex-direction: column; min-height: 430px; position: relative; overflow: hidden;
}
.create-quote-card::before { content: "创"; position: absolute; right: -10px; bottom: -34px; font-family: var(--serif); font-size: calc(150px * var(--font-scale, 1)); color: color-mix(in srgb, var(--ink) 4%, transparent); line-height: 1; }
.create-quote-card__label { font-size: calc(12px * var(--font-scale, 1)); letter-spacing: .15em; color: var(--red); font-weight: 600; }
.create-quote-card blockquote { font-family: var(--serif); font-size: calc((clamp(23px, 2.6vw, 31px)) * var(--font-scale, 1)); line-height: 1.6; margin-top: 30px; position: relative; z-index: 1; }
.create-quote-card blockquote em { font-style: normal; color: var(--red); }
.create-quote-card__foot { margin-top: auto; padding-top: 28px; position: relative; z-index: 1; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.create-quote-card__foot p { font-size: calc(12px * var(--font-scale, 1)); color: var(--muted); line-height: 1.8; }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
.work-card .work-poster { transition: transform .35s var(--ease-out), box-shadow .35s; }
.work-card:hover .work-poster { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.works-grid--masonry .work-poster { aspect-ratio: 4/5; }
.works-section { padding-top: 36px; }
.works-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 22px; }
.works-section__head h2 { font-size: calc(25px * var(--font-scale, 1)); }
.works-section__head p { font-size: calc(12px * var(--font-scale, 1)); color: var(--muted); margin-top: 3px; }
.archive-note { display: flex; gap: 8px; align-items: flex-start; color: var(--faint); font-size: calc(12px * var(--font-scale, 1)); line-height: 1.7; margin-top: 14px; }
.archive-note .icon { width: 13px; height: 13px; margin-top: 2px; color: var(--gold); }

/* ---------- work detail ---------- */
.work-detail { padding-top: 24px; }
.work-detail__grid { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: clamp(34px, 5vw, 66px); align-items: start; margin-top: 22px; }
.work-detail__poster { position: sticky; top: calc(var(--header-h) + 24px); }
.work-detail__poster .work-poster { aspect-ratio: 4/5; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.work-detail__poster-meta { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--faint); font-size: calc(12px * var(--font-scale, 1)); }
.work-detail__main { min-width: 0; max-width: 780px; }
.work-detail__kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 15px; }
.work-detail__title { font-size: calc((clamp(32px, 4.4vw, 55px)) * var(--font-scale, 1)); line-height: 1.27; }
.work-detail__byline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: calc(12px * var(--font-scale, 1)); margin-top: 18px; }
.work-detail__byline .avatar { --avatar-size: 27px; }
.work-detail__summary { font-family: var(--serif); font-size: calc(18px * var(--font-scale, 1)); line-height: 1.9; color: var(--ink-2); margin-top: 24px; padding-left: 18px; border-left: 2px solid var(--red); }
.work-detail__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.work-detail__actions .is-on { background: var(--red-soft); color: var(--red); border-color: transparent; }
.work-detail__actions .is-on .icon { fill: currentColor; }
.work-detail__block { padding: 26px 0; border-bottom: 1px solid var(--line); }
.work-detail__block:last-of-type { border-bottom: 0; }
.work-detail__block h2 { font-size: calc(17px * var(--font-scale, 1)); margin-bottom: 12px; display: flex; align-items: center; gap: 9px; }
.work-detail__block h2::before { content: ""; width: 5px; height: 5px; background: var(--red); border-radius: 50%; }
.work-detail__block p { font-size: calc(13.5px * var(--font-scale, 1)); line-height: 2; color: var(--ink-2); white-space: pre-wrap; }
.work-detail__sources { margin-top: 12px; padding: 17px 19px; border-radius: 9px; background: var(--surface-2); }
.work-detail__sources h3 { font-family: var(--sans); font-size: calc(12px * var(--font-scale, 1)); letter-spacing: .1em; margin-bottom: 8px; }
.work-detail__sources a { display: block; font-size: calc(12px * var(--font-scale, 1)); color: var(--jade); line-height: 1.9; text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.work-detail__link { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; font-size: calc(12px * var(--font-scale, 1)); color: var(--red); }
.work-detail__link .icon { width: 13px; height: 13px; }
.work-detail__tagrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

/* comments */
.comments { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--line); }
.comments__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.comments__head h2 { font-size: calc(21px * var(--font-scale, 1)); }
.comments__count { font-family: var(--serif); color: var(--faint); font-size: calc(14px * var(--font-scale, 1)); }
.comments__empty { padding: 22px 0; font-size: calc(12px * var(--font-scale, 1)); color: var(--faint); }
.comment-form { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 22px; }
.comment-form .avatar { --avatar-size: 30px; margin-top: 3px; }
.comment-form__main { flex: 1; }
.comment-form textarea { width: 100%; min-height: 76px; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; padding: 10px 12px; outline: 0; font-size: calc(12px * var(--font-scale, 1)); line-height: 1.8; resize: vertical; transition: border-color .2s; }
.comment-form textarea:focus { border-color: var(--jade); }
.comment-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.comment-form__hint { font-size: calc(12px * var(--font-scale, 1)); color: var(--faint); }
.comment-item { display: flex; gap: 11px; padding: 15px 0; border-top: 1px solid var(--line); }
.comment-item .avatar { --avatar-size: 30px; flex: none; }
.comment-item__body { min-width: 0; flex: 1; }
.comment-item__head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.comment-item__name { font-size: calc(12px * var(--font-scale, 1)); font-weight: 600; }
.comment-item__time { font-size: calc(12px * var(--font-scale, 1)); color: var(--faint); font-family: var(--mono); }
.comment-item__text { font-size: calc(12.5px * var(--font-scale, 1)); line-height: 1.85; color: var(--ink-2); margin-top: 4px; white-space: pre-wrap; word-break: break-word; }
.work-report { color: var(--faint); font-size: calc(12px * var(--font-scale, 1)); text-decoration: underline; text-underline-offset: 2px; margin-top: 20px; display: inline-block; }
.work-report:hover { color: var(--red); }

/* ---------- publish composer ---------- */
.publish-head { padding: 34px 0 24px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.publish-head h1 { font-size: calc((clamp(32px, 4vw, 46px)) * var(--font-scale, 1)); margin-top: 7px; }
.publish-head p { font-size: calc(12px * var(--font-scale, 1)); color: var(--muted); margin-top: 8px; max-width: 560px; }
.publish-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: clamp(28px, 4vw, 54px); align-items: start; padding-top: 32px; }
.form-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: clamp(22px, 3vw, 34px); }
.form-section { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.form-section__title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 15px; }
.form-section__num { font-family: var(--mono); font-size: calc(12px * var(--font-scale, 1)); color: var(--red); letter-spacing: .1em; }
.form-section__title h2 { font-family: var(--sans); font-size: calc(13px * var(--font-scale, 1)); letter-spacing: .03em; font-weight: 650; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 15px; }
.field:last-child { margin-bottom: 0; }
.field label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: calc(12px * var(--font-scale, 1)); font-weight: 600; margin-bottom: 7px; color: var(--ink-2); }
.field label span { font-weight: 400; color: var(--faint); font-size: calc(12px * var(--font-scale, 1)); }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); background: var(--paper); border-radius: 8px;
  padding: 10px 12px; outline: 0; font-size: calc(12.5px * var(--font-scale, 1)); line-height: 1.7;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--jade); box-shadow: 0 0 0 3px color-mix(in srgb, var(--jade) 8%, transparent); }
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field__hint { font-size: calc(12px * var(--font-scale, 1)); color: var(--faint); margin-top: 5px; line-height: 1.6; display: flex; justify-content: space-between; gap: 12px; }
.field__error { color: var(--danger); font-size: calc(12px * var(--font-scale, 1)); margin-top: 5px; display: none; }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field.has-error .field__error { display: block; }
.type-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.type-option { position: relative; }
.type-option input { position: absolute; opacity: 0; pointer-events: none; }
.type-option span {
  display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 7px; font-size: calc(12px * var(--font-scale, 1)); color: var(--muted); cursor: pointer;
  transition: all .18s; text-align: center;
}
.type-option input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.type-option input:focus-visible + span { outline: 2px solid var(--jade); outline-offset: 2px; }
.palette-options { display: flex; gap: 9px; flex-wrap: wrap; }
.palette-option { position: relative; }
.palette-option input { position: absolute; opacity: 0; pointer-events: none; }
.palette-option span {
  width: 34px; height: 34px; border-radius: 50%; display: block; cursor: pointer;
  border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .2s, transform .2s;
}
.palette-option input:checked + span { box-shadow: 0 0 0 2px var(--ink); transform: scale(1.06); }
.palette-option input:focus-visible + span { outline: 2px solid var(--jade); outline-offset: 3px; }
.palette-option--cinnabar span { background: linear-gradient(135deg, #7e2c20, #b23a2a); }
.palette-option--jade span { background: linear-gradient(135deg, #213f39, #3d6d61); }
.palette-option--ink span { background: linear-gradient(135deg, #1f1c18, #4a443a); }
.palette-option--gold span { background: linear-gradient(135deg, #5b4528, #9d7942); }
.palette-option--plum span { background: linear-gradient(135deg, #432432, #75455a); }
.publish-preview { position: sticky; top: calc(var(--header-h) + 24px); }
.preview-label { display: flex; align-items: center; justify-content: space-between; font-size: calc(12px * var(--font-scale, 1)); letter-spacing: .13em; color: var(--faint); margin-bottom: 10px; }
.preview-label::after { content: ""; flex: 1; height: 1px; background: var(--line); margin-left: 10px; }
.publish-preview .work-poster { aspect-ratio: 4/5; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.preview-note { margin-top: 13px; padding: 12px 13px; border-radius: 8px; background: var(--surface-2); color: var(--muted); font-size: calc(12px * var(--font-scale, 1)); line-height: 1.75; }
.preview-note b { color: var(--ink-2); }
.form-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.form-submit-row p { font-size: calc(12px * var(--font-scale, 1)); color: var(--faint); line-height: 1.7; max-width: 440px; }
.form-submit-row p a { color: var(--jade); text-decoration: underline; text-underline-offset: 2px; }
.draft-state { font-size: calc(12px * var(--font-scale, 1)); color: var(--faint); margin-top: 9px; min-height: 14px; }
.publish-legal { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 16px; font-size: calc(12px * var(--font-scale, 1)); color: var(--faint); line-height: 1.8; }

/* ---------- overlays: modal, search, drawer ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(20,16,11,.45); backdrop-filter: blur(5px);
  animation: overlay-in .25s var(--ease) both;
}
.overlay--drawer { justify-content: flex-end; padding: 0; }
@keyframes overlay-in { from { opacity: 0; } }
.modal {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); width: min(100%, 560px); max-height: min(88svh, 860px);
  overflow-y: auto; position: relative; animation: modal-in .38s var(--ease-out) both;
}
.modal--wide { width: min(100%, 700px); }
.modal--narrow { width: min(100%, 430px); }
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(.985); } }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 24px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 3; background: var(--paper); }
.modal__head h2 { font-size: calc(23px * var(--font-scale, 1)); }
.modal__head p { font-size: calc(12px * var(--font-scale, 1)); color: var(--muted); margin-top: 4px; line-height: 1.7; }
.modal__close { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--faint); transition: all .2s; margin: -4px -6px 0 0; }
.modal__close:hover { color: var(--ink); background: var(--surface-2); }
.modal__body { padding: 20px 24px; }
.modal__body--flush { padding: 0; }
.modal__foot { padding: 14px 24px 20px; display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.modal__foot--between { justify-content: space-between; }
.modal__note { font-size: calc(12px * var(--font-scale, 1)); color: var(--faint); line-height: 1.7; margin-right: auto; }
.field--modal { margin-bottom: 15px; }
.profile-editor { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.profile-editor .avatar { --avatar-size: 58px; }
.profile-editor__hint { font-size: calc(12px * var(--font-scale, 1)); color: var(--muted); line-height: 1.7; }
.profile-editor__hint b { display: block; color: var(--ink); font-size: calc(12px * var(--font-scale, 1)); font-weight: 600; margin-bottom: 2px; }
.color-dots { display: flex; gap: 7px; margin-top: 9px; flex-wrap: wrap; }
.color-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); transition: transform .18s, box-shadow .18s; }
.color-dot.is-active { box-shadow: 0 0 0 2px var(--ink); transform: scale(1.06); }
.char-count { text-align: right; font-size: calc(12px * var(--font-scale, 1)); color: var(--faint); margin-top: 4px; }
.char-count.is-over { color: var(--danger); }
.report-reasons { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 15px; }
.report-reason { font-size: calc(12px * var(--font-scale, 1)); padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); transition: all .2s; }
.report-reason.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.modal-success { text-align: center; padding: 22px 8px 8px; }
.modal-success__icon { width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 16px; background: var(--jade-soft); color: var(--jade); display: grid; place-items: center; }
.modal-success__icon .icon { width: 23px; height: 23px; }
.modal-success h3 { font-size: calc(22px * var(--font-scale, 1)); }
.modal-success p { font-size: calc(12px * var(--font-scale, 1)); color: var(--muted); line-height: 1.8; margin-top: 7px; }

/* search */
.search-overlay {
  position: fixed; inset: 0; z-index: 220; background: rgba(20,16,11,.45);
  backdrop-filter: blur(6px); padding: 64px 20px 20px; display: flex; justify-content: center;
  align-items: flex-start; animation: overlay-in .2s var(--ease) both;
}
.search-panel {
  width: min(100%, 760px); max-height: min(78svh, 700px); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  overflow: hidden; display: flex; flex-direction: column; animation: modal-in .35s var(--ease-out) both;
}
.search-input-row { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.search-input-row .icon { width: 20px; height: 20px; color: var(--faint); flex: none; }
.search-input-row input { flex: 1; border: 0; outline: 0; background: transparent; font-size: calc(17px * var(--font-scale, 1)); font-family: var(--serif); min-width: 0; }
.search-input-row input::placeholder { color: var(--faint); }
.search-esc { font-family: var(--mono); font-size: calc(12px * var(--font-scale, 1)); color: var(--faint); border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; flex: none; }
.search-results { overflow-y: auto; padding: 8px 10px 16px; }
.search-hint { display: flex; align-items: center; gap: 8px; padding: 14px 10px 6px; font-size: calc(12px * var(--font-scale, 1)); letter-spacing: .12em; color: var(--faint); }
.search-hint::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.search-empty { padding: 54px 20px; text-align: center; color: var(--muted); font-size: calc(12px * var(--font-scale, 1)); }
.search-empty .icon { width: 24px; height: 24px; color: var(--faint); margin: 0 auto 12px; }
.search-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 8px; transition: background .15s; }
.search-item:hover, .search-item.is-selected { background: var(--surface-2); }
.search-item__cover { width: 72px; aspect-ratio: 16/10; border-radius: 5px; overflow: hidden; flex: none; }
.search-item__icon { width: 38px; height: 38px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; color: var(--red); flex: none; font-family: var(--serif); font-size: calc(15px * var(--font-scale, 1)); }
.search-item__body { min-width: 0; flex: 1; }
.search-item__title { font-size: calc(12.5px * var(--font-scale, 1)); font-weight: 550; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-item__title mark { background: color-mix(in srgb, var(--gold) 26%, transparent); color: inherit; border-radius: 2px; padding: 0 1px; }
.search-item__meta { color: var(--faint); font-size: calc(12px * var(--font-scale, 1)); margin-top: 3px; display: flex; align-items: center; gap: 7px; }
.search-item__type { font-size: calc(12px * var(--font-scale, 1)); color: var(--faint); border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; flex: none; }
.search-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: calc(12px * var(--font-scale, 1)); }
.search-foot kbd { font-family: var(--mono); font-size: calc(12px * var(--font-scale, 1)); border: 1px solid var(--line); border-radius: 3px; padding: 0 3px; }

/* drawer */
.drawer {
  width: min(100%, 420px); height: 100%; background: var(--paper); border-left: 1px solid var(--line);
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: drawer-in .38s var(--ease-out) both;
  overflow: hidden;
}
@keyframes drawer-in { from { transform: translateX(100%); } }
.drawer__head { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: calc(16px * var(--font-scale, 1)); font-family: var(--sans); letter-spacing: .03em; }
.drawer__scroll { overflow-y: auto; flex: 1; padding: 20px; }
.drawer-profile { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.drawer-profile .avatar { --avatar-size: 58px; }
.drawer-profile__info { flex: 1; min-width: 0; }
.drawer-profile__name { font-family: var(--serif); font-size: calc(21px * var(--font-scale, 1)); font-weight: 600; }
.drawer-profile__meta { font-size: calc(12px * var(--font-scale, 1)); color: var(--faint); margin-top: 3px; }
.drawer-profile__edit { font-size: calc(12px * var(--font-scale, 1)); color: var(--jade); border-bottom: 1px solid color-mix(in srgb, var(--jade) 30%, transparent); padding-bottom: 1px; white-space: nowrap; }
.drawer-profile__edit:hover { color: var(--red); border-color: var(--red); }
.drawer-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; margin-top: 18px; }
.drawer-stat { background: var(--surface); padding: 11px 8px; text-align: center; }
.drawer-stat b { display: block; font-family: var(--serif); font-size: calc(20px * var(--font-scale, 1)); line-height: 1.2; font-weight: 600; }
.drawer-stat span { display: block; font-size: calc(12px * var(--font-scale, 1)); color: var(--faint); margin-top: 2px; }
.drawer-section { margin-top: 24px; }
.drawer-section__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.drawer-section__head h3 { font-family: var(--sans); font-size: calc(12px * var(--font-scale, 1)); font-weight: 650; letter-spacing: .04em; }
.drawer-section__head a, .drawer-section__head button { font-size: calc(12px * var(--font-scale, 1)); color: var(--faint); text-decoration: underline; text-underline-offset: 2px; }
.drawer-section__head a:hover, .drawer-section__head button:hover { color: var(--red); }
.drawer-list { display: flex; flex-direction: column; }
.drawer-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.drawer-item:last-child { border-bottom: 0; }
.drawer-item .cover { width: 58px; aspect-ratio: 16/10; border-radius: 5px; flex: none; }
.drawer-item__body { min-width: 0; flex: 1; }
.drawer-item__title { font-size: calc(12px * var(--font-scale, 1)); line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-item__meta { font-size: calc(12px * var(--font-scale, 1)); color: var(--faint); margin-top: 3px; }
.drawer-item__action { font-size: calc(12px * var(--font-scale, 1)); color: var(--faint); flex: none; }
.drawer-item__action:hover { color: var(--red); }
.drawer-empty { font-size: calc(12px * var(--font-scale, 1)); color: var(--faint); padding: 10px 0; line-height: 1.8; }
.drawer-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.drawer-actions .btn { min-height: 32px; font-size: calc(12px * var(--font-scale, 1)); padding: 0 12px; }
.drawer-legal { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: calc(12px * var(--font-scale, 1)); color: var(--faint); line-height: 1.8; }
.drawer-legal a { color: var(--jade); text-decoration: underline; text-underline-offset: 2px; }

/* confirm dialog */
.confirm-body { text-align: center; padding: 8px 4px; }
.confirm-body p { color: var(--muted); font-size: calc(12px * var(--font-scale, 1)); line-height: 1.9; }
.modal--confirm .modal__foot { justify-content: center; }

/* utility */
.stack-8 > * + * { margin-top: 8px; }
.stack-12 > * + * { margin-top: 12px; }
.stack-16 > * + * { margin-top: 16px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.text-center { text-align: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.inline-flex { display: inline-flex; align-items: center; gap: 8px; }
.w-100 { width: 100%; }
.hidden { display: none !important; }
.loading-inline { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 26px; color: var(--faint); font-size: calc(12px * var(--font-scale, 1)); }
.loading-inline::before { content: ""; width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
