:root { --bg: #0e0e11; --card: #17171b; --field: #0f0f12; --fg: #f1f1f3; --muted: #9b9ba6; --line: #2a2a31; --edge: #3a3a44; --accent: #ff6b3d; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 "WP Emoji", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; }
.cl-wrap { max-width: 1100px; margin: 0 auto; padding: 22px 22px 70px; }
.cl-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 36px; }
.cl-logo { display: inline-flex; align-items: center; gap: 10px; font: 800 20px/1 "WP Emoji", system-ui, sans-serif; text-decoration: none; letter-spacing: 0.01em; }
.cl-logo img { display: block; height: 20px; width: auto; }
.cl-top-r { display: flex; align-items: center; gap: 14px; }
.cl-back { color: var(--muted); text-decoration: none; font-size: 14px; } .cl-back:hover { color: #fff; }
.cl-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.cl-head h1 { margin: 0; font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; }
.cl-head p { margin: 8px 0 0; color: var(--muted); }
.cl-follow { color: var(--accent); font-weight: 700; text-decoration: none; } .cl-follow:hover { text-decoration: underline; }
.cl-new { display: inline-block; margin-left: 12px; padding: 7px 14px; border-radius: 999px; background: #fff; color: #111; font: 700 14px system-ui, sans-serif; text-decoration: none; }
.cl-list { padding-top: 14px; }
.cl-row { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 0; padding: 46px 0 22px; }
.cl-date { grid-column: 1; align-self: start; margin-top: 34px; padding-right: 40px; color: var(--muted); font-size: 16px; }
.cl-date span { display: block; padding-bottom: 8px; border-bottom: 1px solid var(--line); width: 100%; }
.cl-date small { display: block; margin-top: 4px; font-size: 12px; }
.cl-main { grid-column: 2; min-width: 0; position: relative; }
.cl-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.cl-tag { font: 600 12px/1 system-ui, sans-serif; padding: 6px 10px; border-radius: 999px; color: var(--tc, #4ac98a); background: color-mix(in srgb, var(--tc, #4ac98a) 14%, transparent); border: 1px solid color-mix(in srgb, var(--tc, #4ac98a) 35%, transparent); }
.t-new { --tc: #4ac98a; } .t-update { --tc: #6c8cff; } .t-fix { --tc: #ffb454; } .t-event { --tc: #ff6fae; }
.cl-hero { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); margin: 0 0 26px; background: #000; }
.cl-img { display: block; max-width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); margin: 14px 0; }
.cl-title { margin: 0 0 14px; font-size: 30px; line-height: 1.2; letter-spacing: -0.01em; overflow-wrap: anywhere; position: relative; }
.cl-title::before { content: ""; position: absolute; left: -26px; top: 4px; bottom: 4px; width: 2px; background: var(--accent); border-radius: 2px; opacity: 0.8; }
.cl-text { color: #bdbdc7; overflow-wrap: anywhere; }
.cl-text p { margin: 0 0 14px; } .cl-text ul { margin: 0 0 14px; padding-left: 22px; } .cl-text li { margin: 4px 0; }
.cl-text h3 { margin: 18px 0 8px; font-size: 18px; color: #fff; }
.cl-btns { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin: 20px 0 6px; }
.cl-btn { text-decoration: none; font-weight: 700; color: #fff; }
.cl-btn.link { padding: 2px 0; } .cl-btn.link:hover { text-decoration: underline; }
.cl-chev { color: var(--accent); }
.cl-btn.primary { padding: 9px 18px; border-radius: 999px; background: #fff; color: #111; font-size: 15px; } .cl-btn.primary:hover { background: #e6e6ea; }
.cl-empty { padding: 40px 0; color: var(--muted); }
.cl-act { margin-top: 10px; display: flex; gap: 14px; } .cl-act a, .cl-act button { color: var(--muted); font: 600 13px system-ui, sans-serif; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; }
.cl-act a:hover, .cl-act button:hover { color: #fff; text-decoration: underline; } .cl-act .danger { color: #ff9b9b; }
@media (max-width: 760px) {
  .cl-wrap { padding: 16px 16px 50px; } .cl-head h1 { font-size: 32px; }
  .cl-row { grid-template-columns: 1fr; padding: 30px 0 14px; }
  .cl-date { grid-column: 1; margin: 0 0 12px; padding: 0; } .cl-date span { border: 0; padding: 0; }
  .cl-main { grid-column: 1; } .cl-title { font-size: 25px; } .cl-title::before { display: none; }
}

/* ---- editor page /changelog/new ---- */
.ed-login { max-width: 380px; margin: 14vh auto 0; display: grid; gap: 12px; text-align: center; padding: 28px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.ed-login h1 { margin: 0; font-size: 22px; } .ed-login p { margin: 0; color: var(--muted); font-size: 14px; }
.ed-login input { width: 100%; background: var(--field); color: var(--fg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; font: inherit; }
.ed-msg { min-height: 20px; margin: 0; font-size: 13px; color: #ff9b9b; } .ed-msg.ok { color: #8fe3a4; }
.ed-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: start; margin-top: 22px; }
.ed-form { display: grid; gap: 12px; }
.ed-form input[type=text], .ed-form input[type=url], .ed-form select, .ed-form textarea { width: 100%; background: var(--field); color: var(--fg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; font: 14px/1.5 "WP Emoji", system-ui, sans-serif; outline: none; }
.ed-form textarea { resize: vertical; min-height: 110px; }
.ed-form input:focus, .ed-form select:focus, .ed-form textarea:focus { border-color: #8a8a96; }
.ed-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .ed-row > input[type=text] { flex: 1 1 200px; width: auto; } .ed-row > select { width: auto; }
.ed-pin { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; }
.ed-block { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 10px 12px 12px; display: grid; gap: 8px; }
.ed-bhead { display: flex; align-items: center; gap: 6px; color: var(--muted); font: 700 12px system-ui, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; }
.ed-bhead span { flex: 1; }
.ed-ib { background: #26262d; color: #fff; border: 1px solid var(--edge); border-radius: 8px; width: 30px; height: 28px; cursor: pointer; font: 14px system-ui; } .ed-ib:hover { background: #33333c; }
.ed-btnrow { display: grid; grid-template-columns: 1fr 1.4fr auto 30px; gap: 6px; align-items: center; }
.ed-pic { max-width: 100%; max-height: 160px; border-radius: 10px; border: 1px solid var(--line); justify-self: start; }
.ed-add { display: flex; gap: 8px; flex-wrap: wrap; }
.ed-pill { border: 1px solid var(--edge); background: #202027; color: #fff; border-radius: 999px; padding: 7px 14px; font: 600 13px system-ui, sans-serif; cursor: pointer; } .ed-pill:hover { background: #2b2b34; }
.ed-pill.main { background: #fff; color: #111; border-color: #fff; } .ed-pill:disabled { opacity: 0.5; cursor: default; }
.ed-prev { position: sticky; top: 14px; border: 1px dashed var(--edge); border-radius: 16px; padding: 4px 16px 10px; max-height: calc(100vh - 28px); overflow: auto; }
.ed-prev h2.ed-ph { margin: 14px 0 0; font: 700 12px system-ui, sans-serif; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.ed-prev .cl-row { grid-template-columns: 1fr; padding: 14px 0 6px; } .ed-prev .cl-date { margin: 0 0 8px; padding: 0; } .ed-prev .cl-date span { border: 0; padding: 0; } .ed-prev .cl-title { font-size: 24px; } .ed-prev .cl-title::before { display: none; } .ed-prev .cl-main { grid-column: 1; }
.ed-old { margin-top: 38px; border-top: 1px solid var(--line); padding-top: 14px; }
.ed-old h2 { font-size: 18px; margin: 0 0 8px; }
.ed-oldrow { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; } .ed-oldrow small { color: var(--muted); margin-left: 8px; }
@media (max-width: 900px) { .ed-grid { grid-template-columns: 1fr; } .ed-prev { position: static; max-height: none; } .ed-btnrow { grid-template-columns: 1fr 30px; } }
