.home-view { max-width: 1190px; margin: 0 auto; }
.wiki-cover { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 210px; overflow: hidden; border: 1px solid var(--accent-line); border-radius: 17px; background: linear-gradient(105deg, var(--paper), var(--accent-soft) 72%, color-mix(in srgb, var(--accent) 23%, var(--paper))); }
.wiki-cover::before { content: ""; position: absolute; z-index: -2; inset: 0; background-image: linear-gradient(var(--accent-line) 1px, transparent 1px), linear-gradient(90deg, var(--accent-line) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(90deg, transparent 43%, #000a); opacity: .7; }
.cover-text { padding: 26px clamp(19px, 3.5vw, 40px); }
.cover-text h1 { margin: 0; color: var(--text); font-size: clamp(2rem, 3.2vw, 2.85rem); line-height: 1.18; letter-spacing: -.024em; }
.cover-text p { margin: 9px 0 18px; color: var(--muted); font-variant-numeric: tabular-nums; font-size: .9rem; }
.cover-text p span { color: var(--quiet); margin-inline: 3px; }
.cover-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cover-illustration { position: absolute; z-index: -1; width: 46%; height: 100%; inset: 0 0 0 auto; }
.cover-sheet { position: absolute; width: 128px; height: 144px; left: 60%; top: 50%; translate: -50% -50%; border-radius: 12px; border: 1px solid var(--accent-line); box-shadow: 0 10px 22px color-mix(in srgb, var(--accent) 20%, transparent); }
.sheet-back { transform: translate(33px, 5px) rotate(22deg); background: color-mix(in srgb, var(--accent) 49%, var(--paper)); }
.sheet-middle { transform: translate(14px, 1px) rotate(8deg); background: color-mix(in srgb, var(--accent) 28%, var(--paper)); }
.sheet-front { display: grid; gap: 9px; align-content: center; padding: 18px; transform: translate(-13px, 1px) rotate(-10deg); background: var(--paper); }
.sheet-front i { height: 4px; border-radius: 3px; background: var(--accent-line); }
.sheet-front i:first-child { width: 42%; height: 11px; margin-bottom: 4px; background: var(--accent); }
.sheet-front i:last-child { width: 68%; }
.home-section { margin-top: 27px; }
.home-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 11px; }
.home-heading h2 { margin: 0; font-size: 1.14rem; }
.home-heading .button { min-height: 34px; }
.folder-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.folder-tile, .creation-option { display: flex; align-items: center; gap: 10px; min-width: 0; text-align: left; color: var(--text); }
.folder-tile { padding: 11px; border: 1px solid var(--line); background: var(--paper); border-radius: 11px; min-height: 66px; }
.folder-tile:hover { background: var(--accent-soft); border-color: var(--accent-line); }
.folder-tile .record-icon { width: 36px; height: 36px; }
.folder-tile-label { min-width: 0; display: grid; gap: 1px; }
.folder-tile-label strong { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-tile-label small { font-size: .77rem; color: var(--muted); }
.library-heading + .folder-tiles { margin-bottom: 17px; }
.creation-options { display: grid; gap: 5px; }
.creation-option { width: 100%; border: 0; border-radius: 8px; min-height: 49px; padding: 6px 8px; background: transparent; }
.creation-option:hover, .creation-option:focus-visible { background: var(--accent-soft); color: var(--accent-ink); }
.creation-icon { width: 33px; height: 33px; border-radius: 8px; color: var(--accent-ink); background: var(--accent-soft); }
.creation-icon .icon { width: 17px; height: 17px; }
.recent-list { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.recent-row { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(72px, .34fr) minmax(82px, .20fr) 32px; gap: 11px; align-items: center; min-height: 57px; min-width: 0; padding: 6px 12px; }
.recent-row + .recent-row { border-top: 1px solid var(--line); }
.recent-row:hover { background: var(--hover); }
.recent-row:first-child { border-radius: 12px 12px 0 0; }
.recent-row:last-child { border-radius: 0 0 12px 12px; }
.recent-row .record-icon { width: 32px; height: 32px; border-radius: 8px; }
.recent-row .record-icon .icon { width: 16px; height: 16px; }
.recent-row .record-menu { align-self: center; }
.recent-info { min-width: 0; }
.recent-title { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0; text-align: left; color: var(--text); border: 0; background: transparent; font-weight: 640; font-size: .9rem; }
.recent-title:hover { color: var(--accent-ink); text-decoration: underline; }
.recent-info span, .recent-category, .recent-row time { font-size: .79rem; color: var(--quiet); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-info span { display: block; }

@media (max-width: 1120px) { .folder-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 690px) {
  .wiki-cover { min-height: 166px; }
  .cover-text { padding-block: 18px; }
  .cover-text h1 { font-size: 1.95rem; }
  .cover-text p { margin: 7px 0 13px; }
  .cover-sheet { width: 77px; height: 94px; }
  .sheet-front { padding: 11px; gap: 5px; }
  .cover-illustration { opacity: .65; }
  .recent-row { grid-template-columns: auto minmax(0, 1fr) 32px; gap: 8px; }
  .recent-row time, .recent-category { display: none; }
}
@media (max-width: 385px) { .cover-illustration { opacity: .28; } }
