:root {
  color-scheme: light;
  --paper: #f5f2e9;
  --paper-deep: #ece7da;
  --card: #fffdf8;
  --ink: #1f2926;
  --muted: #71807b;
  --green: #193f35;
  --green-2: #2f6556;
  --green-soft: #dfe9e3;
  --coral: #d97955;
  --line: #ddd8cc;
  --danger: #b24a43;
  --shadow: 0 20px 60px rgba(41, 51, 46, .10);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  --sans: Inter, "SF Pro Text", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-family: var(--sans);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { min-height: 100dvh; margin: 0; color: var(--ink); background: var(--paper); font-size: 14px; line-height: 1.55; }
button, input, textarea, select { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
[hidden] { display: none !important; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.wordmark { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 22px; font-weight: 800; letter-spacing: .06em; }
.wordmark > span:last-child { display: grid; line-height: 1; }
.wordmark small { margin-top: 7px; color: var(--muted); font-family: var(--sans); font-size: 8px; font-weight: 800; letter-spacing: .19em; }
.mark { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px 5px 12px 5px; background: var(--green); color: #fff; transform: rotate(-2deg); }
.mark svg { width: 24px; height: 24px; }
.eyebrow { margin: 0 0 8px; color: var(--coral); font-size: 10px; font-weight: 900; letter-spacing: .17em; }

.login-view { display: grid; grid-template-columns: minmax(360px, 1.05fr) minmax(420px, .95fr); min-height: 100dvh; background: var(--card); }
.login-art { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 100dvh; overflow: hidden; padding: clamp(36px, 6vw, 84px); background: var(--green); color: #f8f3e8; }
.login-art::before { content: ""; position: absolute; inset: 26px; border: 1px solid rgba(255,255,255,.13); border-radius: 160px 18px 160px 18px; }
.login-art p { position: relative; z-index: 1; margin: 0; font-family: Georgia, serif; font-size: clamp(56px, 8vw, 118px); font-style: italic; font-weight: 700; letter-spacing: -.055em; line-height: .77; }
.login-art span { position: relative; z-index: 1; margin-top: 30px; color: rgba(255,255,255,.65); letter-spacing: .08em; }
.orb { position: absolute; border-radius: 50%; filter: blur(1px); }
.orb-one { top: 12%; right: 10%; width: 220px; height: 220px; border: 55px solid rgba(217,121,85,.68); }
.orb-two { top: 31%; left: 8%; width: 110px; height: 110px; background: rgba(236,231,218,.09); }
.login-card { display: flex; width: min(540px, 100%); justify-self: center; flex-direction: column; justify-content: center; gap: 32px; padding: clamp(38px, 7vw, 92px); }
.login-copy h1 { margin: 0 0 13px; font-family: var(--serif); font-size: clamp(32px, 4vw, 50px); line-height: 1.15; }
.login-copy > p:last-child { margin: 0; color: var(--muted); line-height: 1.8; }

.field { display: grid; gap: 7px; min-width: 0; color: var(--muted); font-size: 12px; font-weight: 700; }
input, textarea, select { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 8px; outline: 0; background: #fff; color: var(--ink); padding: 0 12px; transition: border-color .16s, box-shadow .16s; }
textarea { padding: 11px 12px; resize: vertical; line-height: 1.7; }
input::placeholder, textarea::placeholder { color: #a4aaa6; }
input:focus, textarea:focus, select:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(47,101,86,.12); }
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 0 17px; font-size: 13px; font-weight: 800; transition: transform .16s, background .16s, border-color .16s; }
.button.primary { border-color: var(--green); background: var(--green); color: #fff; }
.button.large { min-height: 50px; }
.button.ghost { background: transparent; }
.button.danger { border-color: rgba(178,74,67,.25); background: transparent; color: var(--danger); }
.button:disabled, .soft-button:disabled { cursor: wait; opacity: .55; }
.form-message { min-height: 24px; margin: -19px 0 0; color: var(--danger); font-size: 12px; }

.app-shell { display: grid; grid-template-columns: 246px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { position: sticky; top: 0; display: flex; height: 100dvh; flex-direction: column; border-right: 1px solid var(--line); background: var(--card); padding: 28px 20px 22px; }
.sidebar .wordmark { margin: 0 10px 48px; }
.nav-list { display: grid; gap: 5px; }
.nav-item { display: flex; min-height: 43px; align-items: center; justify-content: space-between; border: 0; border-radius: 7px; background: transparent; padding: 0 12px; color: var(--muted); text-align: left; font-weight: 700; }
.nav-item b { min-width: 24px; border-radius: 20px; background: var(--paper); padding: 2px 6px; color: var(--muted); font-size: 10px; text-align: center; }
.nav-item.active { background: var(--green-soft); color: var(--green); }
.nav-item.active b { background: var(--green); color: #fff; }
.sidebar-note { margin-top: auto; border: 1px solid var(--line); border-radius: 12px 5px 12px 5px; background: var(--paper); padding: 14px; }
.sidebar-note span { color: var(--green); font-family: var(--serif); font-size: 15px; font-weight: 800; }
.sidebar-note p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.logout-button { display: flex; align-items: center; gap: 8px; margin-top: 14px; border: 0; background: transparent; padding: 9px 12px; color: var(--muted); font-size: 12px; font-weight: 700; }

.workspace { width: min(1280px, 100%); margin: 0 auto; padding: clamp(26px, 5vw, 62px); }
.workspace-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.workspace-head h1 { margin: 0; font-family: var(--serif); font-size: clamp(36px, 5vw, 58px); line-height: 1; }
.workspace-head > div > p:last-child { margin: 12px 0 0; color: var(--muted); }
.toolbar { display: grid; grid-template-columns: minmax(240px, 420px) 150px; gap: 10px; margin: 34px 0 20px; }
.search-box { position: relative; display: block; }
.search-box svg { position: absolute; top: 13px; left: 13px; color: var(--muted); }
.search-box input { padding-left: 39px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.post-card { position: relative; display: flex; min-height: 276px; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 15px 5px 15px 5px; background: var(--card); padding: 22px; box-shadow: 0 3px 0 rgba(31,41,38,.03); transition: transform .18s, box-shadow .18s; }
.post-card::after { content: ""; position: absolute; right: -34px; bottom: -48px; width: 100px; height: 100px; border: 20px solid var(--green-soft); border-radius: 50%; opacity: .6; }
.post-card:nth-child(3n + 2)::after { border-color: #f1dace; }
.post-card-head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.status { border-radius: 99px; background: var(--paper); padding: 4px 9px; color: var(--muted); font-size: 10px; font-weight: 800; }
.status.published { background: var(--green-soft); color: var(--green); }
.card-menu { display: flex; gap: 5px; }
.icon-button { display: inline-grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 0; }
.post-card h2 { position: relative; z-index: 1; margin: 22px 0 9px; font-family: var(--serif); font-size: 23px; line-height: 1.28; }
.post-card .excerpt { position: relative; z-index: 1; display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.tag-row { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 5px; margin: 15px 0; }
.tag { color: var(--green-2); font-size: 11px; font-weight: 700; }
.post-card-foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; margin-top: auto; border-top: 1px solid var(--line); padding-top: 13px; color: var(--muted); font-size: 10px; }
.share-indicator { display: inline-flex; align-items: center; gap: 4px; color: var(--coral); font-weight: 800; }
.empty-state { grid-column: 1 / -1; display: grid; min-height: 390px; place-items: center; border: 1px dashed #c9c2b4; border-radius: 16px; color: var(--muted); text-align: center; }
.empty-state h2 { margin: 0 0 7px; color: var(--ink); font-family: var(--serif); }
.empty-state p { margin: 0; }

dialog { max-width: none; border: 0; background: transparent; color: var(--ink); padding: 14px; }
dialog::backdrop { background: rgba(22,32,28,.5); backdrop-filter: blur(5px); }
.editor-dialog { width: min(1180px, 100%); }
.editor-dialog form, .share-panel { max-height: calc(100dvh - 28px); overflow: auto; border: 1px solid var(--line); border-radius: 16px 6px 16px 6px; background: var(--card); padding: 24px; box-shadow: var(--shadow); }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.dialog-head h2 { margin: 0; font-family: var(--serif); font-size: 27px; }
.editor-meta { display: grid; grid-template-columns: minmax(250px, 1fr) 170px 150px; gap: 12px; }
.summary-textarea { min-height: 68px; }
.editor-dialog form > .field { margin-top: 13px; }
.editor-columns { display: grid; grid-template-columns: 1fr 1fr; min-height: 420px; margin-top: 13px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.editor-field { grid-template-rows: auto 1fr; gap: 0; }
.field-line { display: flex; min-height: 43px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: var(--paper); padding: 0 10px 0 13px; }
.soft-button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--green-2); font-size: 11px; font-weight: 800; }
#contentInput { height: 100%; min-height: 420px; border: 0; border-radius: 0; background: #fff; padding: 18px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
#contentInput:focus { box-shadow: inset 0 0 0 2px rgba(47,101,86,.18); }
.preview-pane { min-width: 0; overflow: auto; border-left: 1px solid var(--line); background: #fff; }
.preview-label { display: flex; min-height: 43px; align-items: center; border-bottom: 1px solid var(--line); background: var(--paper); padding: 0 13px; color: var(--muted); font-size: 12px; font-weight: 700; }
.dialog-actions { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; margin-top: 18px; }

.article-body { padding: clamp(20px, 4vw, 50px); font-family: var(--serif); color: #28322f; font-size: 16px; line-height: 1.9; }
.article-body:empty::before { content: "文章预览会出现在这里"; color: #a4aaa6; font-family: var(--sans); font-size: 13px; }
.article-body h1, .article-body h2, .article-body h3, .article-body h4 { margin: 1.4em 0 .55em; color: var(--ink); line-height: 1.3; }
.article-body h1 { font-size: 2em; }.article-body h2 { font-size: 1.55em; }.article-body h3 { font-size: 1.25em; }.article-body h4 { font-size: 1.05em; }
.article-body p { margin: 0 0 1em; }.article-body ul, .article-body ol { padding-left: 1.5em; }.article-body a { color: var(--green-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-body blockquote { margin: 1.2em 0; border-left: 3px solid var(--coral); background: #fbf3ed; padding: 10px 16px; color: #61564e; }
.article-body code { border-radius: 4px; background: var(--paper-deep); padding: .12em .35em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; }
.article-body pre { overflow: auto; border-radius: 9px; background: #182420; color: #edf2ed; padding: 17px; line-height: 1.65; }.article-body pre code { background: transparent; padding: 0; }
.article-body figure { margin: 1.6em 0; }.article-body img { display: block; max-width: 100%; max-height: 72dvh; border-radius: 10px; object-fit: contain; }.article-body figcaption { margin-top: 7px; color: var(--muted); font-family: var(--sans); font-size: 11px; text-align: center; }.article-body figcaption:empty { display: none; }
.article-body hr { height: 1px; margin: 2em 0; border: 0; background: var(--line); }

.share-dialog { width: min(680px, 100%); }
.dialog-intro { margin: -10px 0 20px; color: var(--muted); line-height: 1.7; }
.create-share { display: grid; grid-template-columns: minmax(180px, 1fr) auto; align-items: end; gap: 10px; border-radius: 10px; background: var(--paper); padding: 14px; }
.share-result { display: grid; grid-template-columns: auto 1fr; gap: 11px 12px; margin-top: 14px; border: 1px solid #bdd3c6; border-radius: 10px; background: #edf5f0; padding: 14px; }
.share-result > label { grid-column: 1 / -1; color: var(--muted); font-size: 11px; font-weight: 700; }
.share-result strong { color: var(--green); }.share-result p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.success-dot { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font-weight: 900; }
.copy-row { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin-top: 5px; }.share-key { color: var(--coral); font-family: ui-monospace, monospace; font-size: 18px; font-weight: 900; letter-spacing: .18em; }
.share-list-head { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; }.share-list-head h3 { margin: 0; font-family: var(--serif); font-size: 17px; }.share-list-head span { color: var(--muted); font-size: 11px; }
.share-list { display: grid; gap: 8px; margin-top: 10px; }.share-item { display: grid; grid-template-columns: 1fr auto; gap: 8px; border: 1px solid var(--line); border-radius: 9px; padding: 12px; }.share-item strong { display: block; font-size: 12px; }.share-item p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }.share-state { color: var(--green-2); }.share-state.inactive { color: var(--danger); }
.share-empty { min-height: 120px; }
.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; max-width: min(380px, calc(100% - 48px)); border-radius: 9px; background: #17251f; color: #fff; padding: 12px 16px; box-shadow: var(--shadow); font-size: 12px; }

@media (hover: hover) {
  .button:hover, .icon-button:hover { transform: translateY(-1px); border-color: #aaa397; }
  .button.primary:hover { border-color: var(--green-2); background: var(--green-2); }
  .nav-item:hover { background: var(--paper); color: var(--ink); }
  .post-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(41,51,46,.09); }
}
@media (max-width: 1060px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.editor-columns { grid-template-columns: 1fr; }.preview-pane { min-height: 300px; border-top: 1px solid var(--line); border-left: 0; } }
@media (max-width: 760px) {
  .login-view { grid-template-columns: 1fr; }.login-art { display: none; }.login-card { min-height: 100dvh; padding: 34px 24px; }
  .app-shell { display: block; }.sidebar { position: static; width: auto; height: auto; flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 16px; }.sidebar .wordmark { margin: 0 auto 0 0; }.sidebar-note, .nav-list { display: none; }.logout-button { margin: 0; padding: 8px; font-size: 0; }.logout-button svg { width: 20px; height: 20px; }
  .workspace { padding: 26px 16px 46px; }.workspace-head { align-items: center; }.workspace-head h1 { font-size: 38px; }.workspace-head > div > p:last-child { display: none; }.button { padding: 0 13px; }
  .toolbar { grid-template-columns: 1fr 120px; margin-top: 24px; }.post-grid { grid-template-columns: 1fr; }.post-card { min-height: 245px; }
  .editor-dialog form, .share-panel { padding: 17px; }.editor-meta { grid-template-columns: 1fr 1fr; }.title-field { grid-column: 1 / -1; }.editor-columns { min-height: 360px; }.preview-pane { display: none; }.dialog-actions { grid-template-columns: auto 1fr auto; }.dialog-actions .ghost { display: none; }
  .create-share { grid-template-columns: 1fr; }
}
@media (max-width: 440px) { .toolbar { grid-template-columns: 1fr; }.workspace-head .button { font-size: 0; }.workspace-head .button svg { width: 20px; height: 20px; }.editor-meta { grid-template-columns: 1fr; }.title-field { grid-column: auto; }.dialog-actions { grid-template-columns: auto 1fr; }.dialog-actions span { display: none; }.dialog-actions .primary { grid-column: 1 / -1; grid-row: 1; }.editor-dialog { padding: 5px; } }

/* Minimal dashboard theme, aligned with the visual language of the reference site. */
:root {
  --paper: #fafafa;
  --paper-deep: #f3f4f6;
  --card: #ffffff;
  --ink: #1a1a1a;
  --muted: #6b7280;
  --green: #2563eb;
  --green-2: #1d4ed8;
  --green-soft: #eff4ff;
  --coral: #2563eb;
  --line: #ebebeb;
  --danger: #dc2626;
  --shadow: 0 12px 32px rgba(0, 0, 0, .08);
  --serif: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body { background: var(--paper); -webkit-font-smoothing: antialiased; }
.mark { width: 36px; height: 36px; border-radius: 10px; transform: none; background: var(--green); }
.mark svg { width: 21px; height: 21px; }
.wordmark { gap: 10px; font-family: var(--sans); font-size: 17px; letter-spacing: 0; }
.wordmark small { margin-top: 5px; font-size: 8px; letter-spacing: .15em; }
.eyebrow { color: var(--green); }

.login-view { display: grid; min-height: 100dvh; grid-template-columns: 1fr; place-items: center; background: var(--paper); padding: 24px; }
.login-art { display: none; }
.login-card { width: min(430px, 100%); min-height: auto; gap: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 30px; box-shadow: 0 4px 16px rgba(0, 0, 0, .05); }
.login-copy h1 { font-family: var(--sans); font-size: 28px; letter-spacing: -.02em; }
.login-copy > p:last-child { font-size: 13px; line-height: 1.7; }

.app-shell { display: block; min-height: 100dvh; }
.sidebar { position: static; display: flex; width: min(1120px, 100%); height: auto; align-items: center; gap: 20px; margin: 0 auto; border: 0; background: transparent; padding: 40px 24px 0; }
.sidebar .wordmark { flex: 0 0 auto; margin: 0 10px 0 0; }
.nav-list { display: flex; flex-wrap: wrap; gap: 6px; }
.nav-item { width: auto; min-height: 31px; gap: 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); padding: 0 13px; color: var(--muted); font-size: 12px; font-weight: 500; }
.nav-item b { min-width: 0; background: transparent; padding: 0; color: var(--muted); font-size: 10px; }
.nav-item.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.nav-item.active b { background: transparent; color: rgba(255, 255, 255, .72); }
.sidebar-note { display: none; }
.logout-button { min-height: 31px; margin: 0 0 0 auto; border: 1px solid var(--line); border-radius: 999px; background: var(--card); padding: 0 13px; font-size: 12px; font-weight: 500; }

.workspace { width: min(1120px, 100%); padding: 24px 24px 64px; }
.workspace-head { align-items: flex-end; margin-bottom: 28px; }
.workspace-head h1 { font-family: var(--sans); font-size: 26px; font-weight: 700; letter-spacing: .01em; }
.workspace-head > div > p:last-child { margin-top: 6px; font-size: 13px; }
.button { min-height: 36px; border-radius: 8px; padding: 0 14px; font-size: 12px; }
.button.primary { border-color: var(--green); background: var(--green); }
.button.large { min-height: 44px; }
.toolbar { grid-template-columns: minmax(240px, 1fr) 150px auto; margin: 0 0 14px; }
input, textarea, select { border-color: var(--line); border-radius: 8px; }
input:focus, textarea:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(37, 99, 235, .10); }

.post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.post-card { min-height: 176px; border-color: var(--line); border-radius: 14px; padding: 17px 19px; box-shadow: none; cursor: pointer; }
.post-card::after { display: none; }
.post-card h2 { margin: 14px 0 6px; font-family: var(--sans); font-size: 18px; font-weight: 650; letter-spacing: 0; }
.post-card .excerpt { font-size: 13px; line-height: 1.65; }
.status { background: #f3f4f6; font-weight: 600; }
.status.published { background: var(--green-soft); color: var(--green); }
.icon-button { width: 32px; height: 32px; border-radius: 8px; }
.tag { color: var(--green); font-weight: 600; }
.post-card .tag-row { margin: 7px 0 10px; }
.post-card-foot { font-variant-numeric: tabular-nums; }
.share-indicator { color: var(--green); }
.empty-state { border-color: #d1d5db; border-radius: 14px; }

.editor-dialog form, .share-panel { border-radius: 14px; padding: 22px; }
.dialog-head h2 { font-family: var(--sans); font-size: 22px; }
.editor-dialog form > .field { margin-top: 12px; }
.auto-tag-note { margin: 12px 0 0; color: var(--muted); font-size: 11px; }
.auto-tag-note code { border-radius: 5px; background: var(--green-soft); color: var(--green); padding: 2px 5px; }
.editor-columns { margin-top: 12px; border-radius: 10px; }
.field-line, .preview-label { background: #fafafa; }
.article-body { font-family: var(--sans); font-size: 15px; line-height: 1.85; }
.article-body blockquote { border-left-color: var(--green); background: var(--green-soft); color: #4b5563; }
.article-body pre { background: #111827; }
.share-result { border-color: #bfdbfe; background: #eff6ff; }
.success-dot { background: var(--green); }
.share-key { color: var(--green); }

.post-dialog { width: min(880px, 100%); }
.post-reader { max-height: calc(100dvh - 28px); overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.post-reader-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding: clamp(24px, 5vw, 48px); }
.post-reader-head > div { min-width: 0; }
.post-reader-head h1 { margin: 16px 0 12px; font-size: clamp(28px, 5vw, 44px); letter-spacing: -.025em; line-height: 1.25; }
.post-reader-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--muted); font-size: 11px; }
.post-reader-meta > span:last-child { display: flex; flex-wrap: wrap; gap: 5px 10px; color: var(--green); }
.post-reader > .article-body { max-width: 760px; min-height: 240px; padding: clamp(28px, 5vw, 52px); }
.post-reader-actions { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .94); padding: 14px clamp(20px, 5vw, 48px); backdrop-filter: blur(10px); }

@media (hover: hover) {
  .post-card:hover { transform: none; box-shadow: 0 4px 16px rgba(0, 0, 0, .05); }
  .nav-item:hover { border-color: var(--green); background: var(--card); color: var(--green); }
  .nav-item.active:hover { background: var(--ink); color: #fff; }
}

@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .login-card { min-height: auto; padding: 26px; }
  .sidebar { position: static; height: auto; flex-wrap: wrap; border-bottom: 0; padding: 24px 16px 0; }
  .sidebar .wordmark { margin-right: auto; }
  .nav-list { display: flex; order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
  .logout-button { margin-left: 0; font-size: 0; }
  .workspace { padding: 24px 16px 48px; }
  .toolbar { grid-template-columns: minmax(0, 1fr) 120px; }
  .toolbar .button { grid-column: 1 / -1; }
  .workspace-head h1 { font-size: 26px; }
  .workspace-head > div > p:last-child { display: block; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card { min-height: 164px; }
  .post-dialog { padding: 5px; }
  .post-reader { max-height: calc(100dvh - 10px); }
  .post-reader-head { padding: 24px 20px; }
  .post-reader > .article-body { padding: 28px 20px; }
  .post-reader-actions { padding: 12px 20px; }
}

@media (max-width: 440px) {
  .toolbar { grid-template-columns: 1fr; }
  .toolbar .button { grid-column: auto; font-size: 12px; }
}
