.writing-page { padding-bottom: 0; }
.writing-contact { margin-left: auto; color: var(--muted); font-size: 13px; }
.writing-shell { width: min(100% - 48px, 1040px); margin: 0 auto; padding-bottom: 80px; }
.writing-header { padding: 52px 0 30px; border-bottom: 1px solid var(--line); }
.back-profile { font-size: 13px; color: var(--muted); }
.back-profile:hover, .writing-contact:hover { color: #fff; }
.writing-heading { display: flex; gap: 24px; align-items: center; margin-top: 25px; }
.writing-heading h1 { font-size: 34px; line-height: 1.2; letter-spacing: -.8px; margin: 0; }
.private-label { display: inline-flex; gap: 7px; align-items: center; color: var(--muted); font-size: 12px; }
.private-label svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.writing-header > p { color: var(--muted); margin: 13px 0 0; }
.writing-gate { width: min(100%, 380px); margin: 72px auto 0; text-align: center; }
.gate-icon { margin: 0 auto 23px; width: 52px; height: 52px; border: 1px solid #3b3b3b; border-radius: 50%; display: grid; place-items: center; }
.gate-icon svg { width: 24px; height: 24px; fill: none; stroke: #ddd; stroke-width: 1.5; }
.writing-gate h2 { font-size: 22px; font-weight: 650; line-height: 1.3; margin: 0 0 12px; }
.writing-gate > p { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 30px; }
#writing-login { text-align: left; }
#writing-login label { display: block; font-size: 13px; margin-bottom: 9px; }
.password-input { display: flex; align-items: center; border: 1px solid #505050; border-radius: 4px; background: #1d1d1d; }
.password-input:focus-within { border-color: #fff; outline: 1px solid #fff; }
.password-input input { width: 100%; min-width: 0; padding: 13px 14px; background: none; color: #fff; border: 0; outline: none; border-radius: 4px; font: inherit; }
.password-input button { color: #ccc; background: none; border: 0; padding: 12px; font-size: 12px; cursor: pointer; }
.writing-error { font-size: 13px; line-height: 1.5; color: #ffaaa3; margin: 10px 0; min-height: 20px; }
.unlock-button { width: 100%; justify-content: center; gap: 15px; height: 42px; font-weight: 650; }
.unlock-button:disabled { opacity: .6; cursor: wait; }
.request-access { display: inline-block; color: var(--muted); font-size: 12px; margin-top: 25px; }
.request-access:hover { color: #fff; }
.collection-toolbar { margin: 30px 0; display: flex; justify-content: space-between; align-items: center; }
.collection-toolbar h2 { font-size: 18px; font-weight: 600; }
.writing-entry { display: grid; grid-template-columns: 44px 1fr 24px; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line); align-items: start; }
.writing-entry:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.writing-entry-index { font-size: 14px; color: var(--muted); padding-top: 3px; }
.writing-entry small { color: var(--muted); font-size: 12px; }
.writing-entry h3 { font-size: 23px; line-height: 1.35; font-weight: 600; margin: 9px 0 12px; max-width: 760px; }
.writing-entry p { max-width: 650px; color: var(--muted); line-height: 1.7; margin: 0; }
.writing-entry-arrow { font-size: 22px; padding-top: 26px; }
.reader-toolbar { display: flex; justify-content: space-between; align-items: center; margin: 28px 0 0; }
.reader-toolbar > span { color: var(--muted); font-size: 12px; }
#article-frame iframe { display: block; width: 100%; min-height: 600px; border: 0; }
@media (max-width: 650px) {
 .writing-shell { width: calc(100% - 32px); }
 .writing-header { padding-top: 35px; }
 .writing-heading { justify-content: space-between; gap: 12px; }
 .writing-heading h1 { font-size: 30px; }
 .writing-contact { display: none; }
 .writing-gate { margin-top: 50px; }
 .writing-entry { grid-template-columns: 24px 1fr 18px; gap: 12px; }
 .writing-entry h3 { font-size: 20px; }
 .collection-toolbar h2 { font-size: 16px; }
}
