/* Pre-redesign component rules, recolored with the tokens so the current screens stay readable in both themes. Each redesign component task moves its rules into its own file in src/styles/ (ADR 0001, section 6) and deletes them here; the file goes when it is empty. Do not add new rules here. Literal white and black are only text on crimson and video letterboxing. */ .center { min-height: 100vh; display: grid; place-items: center; padding: 16px; } label { font-size: 14px; font-weight: 500; margin-top: 8px; } input { font: inherit; padding: 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--tile-2); color: var(--ink); } input:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; } button { font: inherit; font-weight: 500; margin-top: 16px; padding: 12px; border: 0; border-radius: 8px; background: var(--accent); color: white; cursor: pointer; } .error { margin: 0 0 4px; padding: 10px 12px; border: 1px solid var(--accent); border-radius: 8px; color: var(--danger); background: var(--accent-soft); font-size: 14px; } .shell header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--tile); border-bottom: 1px solid var(--line); } .shell header div { display: flex; flex-direction: column; font-size: 14px; } .shell header span { color: var(--ink-3); } .shell header { position: sticky; top: 0; z-index: 5; } .shell header button { margin: 0 0 0 auto; padding: 8px 14px; background: transparent; color: var(--ink); border: 1px solid var(--ink); } .feed { max-width: 640px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; } .post { background: var(--tile); border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 12px; } .post-head { display: flex; align-items: center; gap: 12px; } .post-who { display: flex; flex-direction: column; font-size: 14px; min-width: 0; } .post-who time { color: var(--ink-3); font-size: 13px; } .post-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; } .post-media img { display: block; width: 100%; height: auto; border-radius: 8px; } .post-video { background: black; border-radius: 8px; overflow: hidden; } .post-video-pending { color: white; padding: 48px 12px; text-align: center; } .post-video video { display: block; width: 100%; max-height: 520px; background: black; } .post-stats { display: flex; gap: 16px; color: var(--ink-3); font-size: 14px; } .heart { color: var(--accent); } .feed-message { text-align: center; color: var(--ink-3); padding: 32px 16px; } .feed-message button { margin-top: 8px; } .feed-center { display: grid; place-items: center; padding: 16px; } .spinner { width: 24px; height: 24px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } .new-posts { position: sticky; top: 68px; z-index: 4; align-self: center; margin: 0; padding: 8px 16px; border-radius: 999px; } .sentinel { height: 1px; } .like-btn { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 4px 8px; background: transparent; color: var(--ink-3); border-radius: 8px; font-size: 14px; font-weight: 400; } .like-btn:hover:not(:disabled) { color: var(--accent); background: var(--accent-soft); } .like-btn.liked { color: var(--accent); } .like-btn:disabled { opacity: 1; cursor: default; } .like-btn:disabled:not(.liked) { color: var(--ink-3); } .like-error { color: var(--danger); font-size: 13px; align-self: center; } .post-stats { align-items: center; } .composer { background: var(--tile); border: 1px solid var(--line); border-radius: 0; padding: 16px; display: flex; flex-direction: column; gap: 8px; } .composer-label { margin: 0; } .composer textarea { font: inherit; width: 100%; padding: 12px; border: 1px solid var(--line-2); border-radius: 0; resize: vertical; background: var(--tile-2); color: var(--ink); } .composer textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; } .composer .composer-post { align-self: flex-end; margin: 0; padding: 10px 24px; border-radius: 0; } .composer-media { display: flex; flex-direction: column; gap: 8px; } .composer-image { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; cursor: pointer; } .composer-image span { padding: 6px 12px; border: 1px solid var(--line-2); background: var(--tile-2); } .composer-image input[type="file"] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; } .composer-preview { display: flex; align-items: center; gap: 10px; } .composer-preview video { width: 96px; height: 64px; object-fit: cover; border: 1px solid var(--line); background: black; } .composer-preview img { width: 64px; height: 64px; object-fit: cover; border: 1px solid var(--line); } .composer-filename { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .composer-remove { margin: 0; padding: 6px 12px; border-radius: 0; } .comments { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); } .comment-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; } .comment p { margin: 2px 0 0; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; } .comment-head { display: flex; gap: 8px; align-items: baseline; font-size: 13px; } .comment-head time { color: var(--ink-3); font-size: 12px; } .comment.removed .comment-removed { color: var(--ink-3); font-style: italic; } .comments-empty { margin: 0; color: var(--ink-3); font-size: 14px; } .comment-error { margin: 0; color: var(--danger); font-size: 13px; } .comment-form { display: flex; gap: 8px; } .comment-form input { flex: 1; margin: 0; } .comment-form button { margin: 0; } .link-btn { background: transparent; color: inherit; text-decoration: underline; padding: 0; margin: 0; font-size: inherit; width: auto; } .comments-toggle { background: transparent; color: var(--ink-3); padding: 4px 8px; margin: 0; font-size: 14px; font-weight: 400; width: auto; } .post-menu { position: relative; margin-left: auto; } .menu-btn { margin: 0; padding: 2px 10px; background: transparent; color: var(--ink-3); border-radius: 8px; font-size: 18px; line-height: 1; letter-spacing: 1px; } .menu { position: absolute; right: 0; top: 100%; z-index: 5; display: flex; flex-direction: column; gap: 2px; min-width: 150px; padding: 6px; background: var(--tile); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow-pop); } .menu button { margin: 0; text-align: left; background: transparent; color: inherit; padding: 6px 8px; border-radius: 6px; font-size: 14px; font-weight: 400; } .menu button:hover { background: var(--tile-2); } .menu .menu-danger { color: var(--danger); } .menu-ask { font-size: 13px; color: var(--ink-3); padding: 4px 8px; } /* 3-column signed-in layout: nav | feed | rails. Wraps on narrow widths. */ .columns { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; max-width: 1240px; margin: 0 auto; padding: 0 16px; } .col-left { flex: 0 0 180px; position: sticky; top: 72px; padding-top: 16px; } .col-left > ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; } .col-left a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; } .col-left a[aria-current="page"] { background: var(--ink); color: var(--bg); } .col-center { flex: 1 1 400px; min-width: 0; } .col-center .feed { padding-left: 0; padding-right: 0; } .col-right { flex: 0 0 300px; position: sticky; top: 72px; max-height: calc(100vh - 88px); overflow-y: auto; padding-top: 16px; display: flex; flex-direction: column; gap: 20px; } .rail h2 { margin: 0 0 8px; font-size: 16px; font-weight: 700; } .rail-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; } .rail-card { background: var(--tile); border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: flex; gap: 10px; } .expert-card { align-items: center; } .minnect-card { flex-direction: column; } .rail-text { display: flex; flex-direction: column; min-width: 0; font-size: 14px; } .rail-name { font-size: 14px; } .rail-byline { color: var(--ink-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rail-meta { color: var(--ink-3); font-size: 13px; } .minnect-who { display: flex; align-items: center; gap: 8px; } .minnect-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--line); } .minnect-question { margin: 0; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } .minnect-video { background: black; border-radius: 0; } .minnect-audio { width: 100%; height: 36px; } @media (max-width: 959px) { .col-left { flex: 1 1 100%; position: static; padding-top: 8px; } .col-left > ul { flex-direction: row; } .col-center { flex: 1 1 100%; order: 3; } .col-right { flex: 1 1 100%; order: 2; position: static; max-height: none; overflow: visible; padding-top: 0; } .col-right .rail-list { flex-direction: row; overflow-x: auto; padding-bottom: 8px; } .col-right .rail-card { flex: 0 0 260px; } } /* Expert search + category chips (left column). Squared corners, monochrome + red. */ .expert-search { margin-top: 16px; } .expert-search summary { font-weight: 700; font-size: 16px; cursor: pointer; padding: 4px 0; } .expert-search form { display: flex; flex-direction: column; } .expert-search input { border-radius: 0; width: 100%; } .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; } .chip { margin: 0; padding: 6px 10px; border-radius: 0; background: transparent; color: var(--ink); border: 1px solid var(--ink); font-size: 13px; } .chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: white; } .search-results { margin-top: 12px; } .search-note { margin: 0; font-size: 14px; color: var(--ink-3); } @media (max-width: 959px) { .col-left .expert-search { flex-basis: 100%; } }