.button-link { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 15px; border-radius: 14px; text-decoration: none; font-weight: 690; }
.secondary.button-link { background: var(--soft); color: var(--accent); }
.login-panel { padding: 20px; }
.login-panel form, .composer form, .library-tools { display: grid; gap: 10px; }
.login-panel input, .composer input[type=text] { width: 100%; border-radius: 12px; min-height: 46px; padding: 0 12px; border: 1px solid var(--line); color: var(--ink); background: var(--bg); font: inherit; }
.login-panel .button-link { width: 100%; }
.app-tile { display: flex; gap: 13px; padding: 15px; align-items: center; text-decoration: none; color: var(--ink); }
.app-tile span { margin-left: auto; font-size: 1.7rem; color: var(--accent); }
.library-tools { grid-template-columns: 1fr 1fr; }
.section-heading { margin: 24px 0 10px; }
.posts-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px 10px; padding-bottom: 18px; }
.post-card { display: grid; gap: 3px; width: 100%; padding: 6px 4px 10px; justify-content: stretch; text-align: left; background: transparent; }
.post-card strong { overflow-wrap: anywhere; padding-top: 3px; }
.post-card time { display: grid; gap: 2px; color: var(--muted); font-size: .77rem; font-weight: 500; }
.folder-fan { position: relative; display: flex; justify-content: center; width: 100%; height: 118px; isolation: isolate; }
.folder-fan::before, .folder-fan::after { content: ""; position: absolute; }
.folder-fan::before { left: 9%; right: 9%; bottom: 7%; height: 61%; z-index: -1; border-radius: 9px; background: var(--soft); border: 1px solid var(--line); }
.folder-fan::after { left: 9%; right: 9%; bottom: 5%; height: 35%; border: 1px solid var(--line); background: var(--soft); border-radius: 5px 5px 10px 10px; }
.fan-frame { position: absolute; bottom: 19%; width: 45%; height: 69%; border-radius: 8px; border: 2px solid var(--panel); box-shadow: 0 2px 8px var(--shadow); background: var(--bg); transform: translateX(-31%) rotate(-14deg); overflow: hidden; display: grid; place-items: center; color: var(--accent); }
.fan-frame:nth-child(2) { transform: translateX(30%) rotate(13deg); }
.fan-frame:nth-child(3), .fan-frame:only-child { transform: rotate(-3deg) translateY(-9%); }
.fan-frame img { width: 100%; height: 100%; object-fit: cover; }
#post-actions > .button-link, #post-actions > button { width: 100%; }
#posts-status, #login-status, #post-action-status, .composer-status { color: var(--muted); overflow-wrap: anywhere; }
.composer ul { list-style: none; max-height: 23vh; overflow: auto; margin: 0; padding: 0; color: var(--muted); }
.composer ul li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; overflow-wrap: anywhere; }
.composer ul button { flex: none; }
.composer-actions { display: flex; justify-content: flex-end; gap: 6px; }
.editor-nav { margin-right: auto; margin-left: 6px; padding-inline: 8px; }
.save-post { width: 100%; margin-top: 6px; }
.post-view { max-width: 1040px; }
.post-view h1 { font-size: clamp(1.5rem,6vw,2.2rem); overflow-wrap: anywhere; }
.filmstrip { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; scrollbar-width: thin; }
.filmstrip figure { margin: 0; min-width: 0; height: min(64svh,680px); display: grid; place-items: center; scroll-snap-align: start; scroll-snap-stop: always; background: var(--panel); border-radius: 15px; overflow: hidden; }
.filmstrip img, .filmstrip video { display: block; max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; }
.post-thumbs { display: flex; padding: 9px 2px; gap: 7px; overflow-x: auto; position: sticky; bottom: 0; background: var(--bg); }
.post-thumbs button { min-width: 58px; height: 54px; padding: 0; overflow: hidden; color: var(--accent); background: var(--soft); border: 2px solid transparent; border-radius: 9px; }
.post-thumbs button[aria-current=true] { border-color: var(--accent); }
.post-thumbs img { width: 54px; height: 50px; object-fit: cover; }
