:root { --ink: #16212a; --muted: #60717d; --line: #e3eaed; --blue: #147fc4; --blue-dark: #0d6fae; --surface: #f4f8fa; --soft-blue: #e8f4fb; font-family: "Segoe UI", Helvetica, sans-serif; color: var(--ink); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { background: linear-gradient(90deg, #f6fafb 0, #fff 22%, #fff 78%, #f6fafb 100%); margin: 0; }
button, input, textarea { font: inherit; }
button { background: var(--blue); border: 0; border-radius: 8px; color: #fff; cursor: pointer; font-weight: 700; min-height: 38px; padding: 8px 18px; transition: background .15s, box-shadow .15s, transform .15s; }
button:hover { background: var(--blue-dark); }
button:not(:disabled):active { transform: translateY(1px); }
button:disabled { cursor: wait; opacity: .65; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #8ecdf5; outline-offset: 2px; }
input, textarea { border: 1px solid #cfd9de; border-radius: 8px; color: var(--ink); padding: 11px 12px; width: 100%; }
input:focus, textarea:focus { border-color: var(--blue); outline: 2px solid #d7efff; }
textarea { min-height: 98px; resize: vertical; }
h1, h2, p { margin-top: 0; }
h1 { font-size: 20px; letter-spacing: 0; }
h2 { font-size: 18px; letter-spacing: 0; }
.app-shell { background: #fff; display: grid; grid-template-columns: 250px minmax(0, 620px) 310px; margin: 0 auto; max-width: 1200px; min-height: 100vh; }
.navigation { border-right: 1px solid var(--line); padding: 18px 22px; position: sticky; top: 0; height: 100vh; }
.wordmark { color: var(--blue); display: inline-block; font-family: Georgia, serif; font-size: 32px; font-weight: 700; margin-bottom: 28px; text-decoration: none; }
.navigation nav { display: grid; gap: 4px; }
.navigation nav a { border-radius: 8px; color: var(--ink); font-size: 19px; font-weight: 700; padding: 12px 14px; text-decoration: none; }
.navigation nav a:hover { background: #eff3f4; }
.navigation nav a.is-active { background: var(--soft-blue); color: var(--blue-dark); }
.primary-action { margin-top: 28px; width: 100%; }
.account-summary { align-items: center; border-radius: 8px; color: var(--ink); display: flex; gap: 10px; margin-top: auto; padding: 10px; text-decoration: none; }
.account-summary:hover { background: var(--surface); }
.navigation { display: flex; flex-direction: column; }
.account-avatar { align-items: center; background: #cfe9fb; background-position: center; background-size: cover; border-radius: 50%; color: #0c5d8a; display: inline-flex; flex: 0 0 38px; font-weight: 800; height: 38px; justify-content: center; width: 38px; }
.account-summary strong, .account-summary small { display: block; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-summary small { color: var(--muted); font-size: 12px; }
.content { border-right: 1px solid var(--line); min-height: 100vh; }
.page-header { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding: 15px 18px; position: sticky; top: 0; background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); z-index: 2; }
.page-header h1, .page-header p { margin: 0; }
.page-header p { color: var(--muted); font-size: 14px; }
.text-button { background: transparent; color: var(--blue); min-height: 30px; padding: 4px 8px; }
.composer, .settings-form, .search-panel, .profile-info { border-bottom: 1px solid var(--line); padding: 20px 18px; }
.composer { display: grid; gap: 12px; grid-template-columns: 44px 1fr; }
#composer-locked { align-items: center; display: flex; justify-content: space-between; }
#composer-locked p { margin: 0; }
.composer-avatar, .avatar { align-items: center; background: #cfe9fb; border-radius: 50%; color: #0c5d8a; display: inline-flex; font-weight: 800; height: 44px; justify-content: center; width: 44px; }
.avatar-image { display: block; object-fit: cover; }
.avatar-has-image { background-position: center; background-size: cover; color: transparent; }
.composer textarea { border: 0; font-size: 19px; min-height: 78px; padding: 6px 0; }
.composer textarea:focus { outline: 0; }
.composer-footer { align-items: center; border-top: 1px solid var(--line); display: flex; grid-column: 2; justify-content: space-between; padding-top: 10px; }
.composer .form-message { grid-column: 2; margin: 0; }
.composer-footer span { color: var(--muted); font-size: 13px; }
.section-heading { border-bottom: 1px solid var(--line); padding: 15px 18px; }
.section-heading h2 { margin: 0; }
.timeline, .profile-list { min-height: 160px; }
.post { border-bottom: 1px solid var(--line); display: grid; gap: 0 12px; grid-template-columns: 44px 1fr; padding: 14px 18px; transition: background .15s; }
.post:hover { background: #f7f9f9; }
.post-avatar { grid-row: span 3; }
.post-meta { font-size: 15px; }
.post-meta a { color: var(--ink); font-weight: 700; text-decoration: none; }
.post-meta span { color: var(--muted); margin-left: 4px; }
.post-meta span:first-of-type { margin-left: 4px; }
.post-meta span:not(:first-of-type) { margin-left: 4px; font-size: 13px; }
.post-content { line-height: 1.45; margin: 4px 0 9px; white-space: pre-wrap; }
.post-actions { display: flex; gap: 14px; }
.post-actions button { background: transparent; color: var(--muted); min-height: 28px; padding: 3px 6px; }
.post-actions button:hover { background: #e8f5fd; color: var(--blue); }
.post-comments { border-left: 2px solid var(--line); margin: 12px 0 8px 0; padding-left: 12px; }
.comment { align-items: flex-start; display: flex; gap: 8px; margin-bottom: 8px; }
.comment-avatar { height: 32px; width: 32px; font-size: 14px; flex-shrink: 0; }
.comment-meta { font-size: 13px; margin-bottom: 2px; }
.comment-meta a { color: var(--ink); font-weight: 700; text-decoration: none; }
.comment-meta span { color: var(--muted); margin-left: 4px; }
.comment-content { font-size: 13px; line-height: 1.4; margin: 2px 0 0 0; }
.comment-form { display: flex; gap: 8px; grid-column: 2; margin-top: 8px; }
.comment-form input { padding: 7px 10px; }
.comment-form button { min-height: 34px; }
.empty { color: var(--muted); padding: 20px; text-align: center; }
.empty a { color: var(--blue-dark); font-weight: 700; text-decoration: none; }
.empty a:hover { text-decoration: underline; }
.right-rail { padding: 18px; }
.rail-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 16px; padding: 16px; }
.rail-card h2 { margin-bottom: 8px; }
.rail-card p { color: var(--muted); font-size: 14px; line-height: 1.45; }
.rail-card a { border-top: 1px solid #e1e7e9; color: var(--ink); display: block; font-size: 14px; font-weight: 700; padding: 11px 0; text-decoration: none; }
.rail-card a:last-child { padding-bottom: 0; }
.auth-layer { inset: 0; position: fixed; z-index: 10; }
.auth-backdrop { background: rgba(0,0,0,.45); inset: 0; position: absolute; }
.auth-panel { background: #fff; border-radius: 8px; box-shadow: 0 18px 50px rgba(15, 20, 25, .22); left: 50%; max-width: 460px; padding: 28px; position: absolute; top: 12vh; transform: translateX(-50%); width: calc(100% - 32px); }
.auth-panel h1 { font-size: 24px; margin: 12px 0 18px; }
.auth-panel form, .settings-form { display: grid; gap: 13px; }
.auth-panel label, .settings-form label, .search-panel label { color: var(--muted); display: grid; font-size: 14px; font-weight: 700; gap: 5px; }
.auth-tabs { border-bottom: 1px solid var(--line); display: flex; margin-bottom: 18px; }
.auth-tabs .tab, .icon-button { background: transparent; border-radius: 0; color: var(--muted); padding: 8px 12px; }
.auth-tabs .tab.is-active { border-bottom: 3px solid var(--blue); color: var(--ink); }
.icon-button { float: right; font-size: 13px; min-height: 26px; }
.form-message { color: var(--blue-dark); font-size: 14px; font-weight: 700; min-height: 20px; }
.profile-hero { border-bottom: 1px solid var(--line); }
.profile-cover { background: linear-gradient(rgba(10, 83, 122, .22), rgba(10, 83, 122, .22)), url('https://images.unsplash.com/photo-1499346030926-9a72daac6c63?auto=format&fit=crop&w=1400&q=80') center 48% / cover; height: 170px; }
.profile-info { position: relative; }
.avatar-large { border: 4px solid #fff; font-size: 30px; height: 116px; left: 18px; position: absolute; top: -62px; width: 116px; }
.profile-actions { display: flex; justify-content: flex-end; min-height: 40px; }
.profile-actions button { background: #0f1419; }
.profile-edit { border: 1px solid #b8c9d1; border-radius: 8px; color: var(--ink); font-weight: 700; padding: 8px 14px; text-decoration: none; }
.profile-edit:hover { background: var(--surface); }
.profile-info h1 { font-size: 22px; margin: 14px 0 2px; }
.muted { color: var(--muted); }
.profile-stats { display: flex; gap: 18px; margin-top: 16px; }
.profile-stats button { background: transparent; color: var(--muted); padding: 0; }
.profile-stats strong { color: var(--ink); }
.profile-tabs { border-bottom: 1px solid var(--line); display: flex; gap: 20px; padding: 0 18px; position: sticky; top: 57px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); z-index: 1; }
.profile-tabs .tab { background: transparent; border: 0; border-bottom: 3px solid transparent; border-radius: 0; color: var(--muted); cursor: pointer; font-weight: 700; min-height: auto; padding: 15px 0; text-transform: none; }
.profile-tabs .tab:hover { color: var(--ink); background: transparent; }
.profile-tabs .tab.is-active { border-bottom-color: var(--blue); color: var(--ink); }
.tab-content { min-height: 160px; }
.profile-row { align-items: center; border-bottom: 1px solid var(--line); display: flex; gap: 12px; padding: 14px 18px; }
.profile-row .profile-copy { flex: 1; min-width: 0; }
.profile-row a { color: var(--ink); font-weight: 700; text-decoration: none; }
.profile-row p { color: var(--muted); font-size: 14px; margin: 3px 0 0; }
.settings-form { margin: 0; }
.settings-form > button:not(.logout-button) { justify-self: start; }
.logout-button { background: transparent; border: 1px solid #cad6dc; color: var(--ink); justify-self: start; }
.logout-button:hover { background: #f1f5f6; }
.mobile-nav { display: none; }
.sr-only { height: 1px; margin: -1px; overflow: hidden; position: absolute; width: 1px; }
@media (max-width: 1050px) { .app-shell { grid-template-columns: 210px minmax(0, 620px); max-width: 830px; } .right-rail { display: none; } .navigation { padding: 18px; } }
@media (max-width: 760px) { body { background: #fff; padding-bottom: 64px; } .app-shell { display: block; } .navigation, .right-rail { display: none; } .content { border: 0; } .page-header { top: 0; } .mobile-nav { background: rgba(255,255,255,.96); border-top: 1px solid var(--line); bottom: 0; display: flex; justify-content: space-around; left: 0; padding: 8px; position: fixed; right: 0; z-index: 4; } .mobile-nav a { border-radius: 6px; color: var(--ink); font-size: 13px; font-weight: 700; padding: 8px 12px; text-decoration: none; } .mobile-nav a.is-active { background: var(--soft-blue); color: var(--blue-dark); } .post { padding: 14px; } .auth-panel { top: 8vh; } .page-header { padding: 14px; } .composer, .settings-form, .search-panel, .profile-info { padding: 16px 14px; } .profile-tabs { gap: 18px; padding: 0 14px; } }