.writing-page { min-height: 100vh; display: flex; flex-direction: column; }
.writing-page main { flex: 1; }
.writing-main { padding-top: 65px; padding-bottom: 90px; }
.writing-kicker { display: inline-block; padding: 8px 11px; border: 2px solid var(--ink); background: var(--mint); font: 10px "DM Mono",monospace; transform: rotate(-2deg); }
.writing-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin: 22px 0 34px; }
.writing-heading h1, .login-intro h1, .dashboard-welcome h1 { margin: 0; font-size: clamp(42px, 7vw, 72px); font-weight: 1000; line-height: .96; letter-spacing: -3px; }
.writing-heading h1 span, .login-intro h1 span, .dashboard-welcome h1 span { color: var(--blue); }
.writing-heading > p { max-width: 380px; margin: 0 0 5px; font-size: 15px; line-height: 1.65; }
.public-articles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.public-article { padding: 22px; background: var(--white); }
.public-article:nth-child(3n + 1) { background: #fff3bd; transform: rotate(-.5deg); }
.public-article:nth-child(3n + 2) { background: #e4f5ff; transform: rotate(.5deg); }
.public-article:nth-child(3n) { background: #ffe2ed; }
.article-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: #555; font: 9px "DM Mono",monospace; text-transform: uppercase; }
.public-article h2 { margin: 15px 0 7px; font-size: 25px; line-height: 1.15; font-weight: 1000; }
.article-excerpt { margin: 0; color: #454545; font-size: 14px; line-height: 1.6; }
.article-details { margin-top: 16px; }
.article-details summary { width: fit-content; cursor: pointer; padding: 8px 11px; border: 2px solid var(--ink); border-radius: 6px; background: var(--yellow); font-size: 12px; font-weight: 1000; }
.article-body { margin: 15px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.8; }
.writing-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 30px; }
.text-link { font-size: 13px; font-weight: 1000; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.notice { padding: 13px 15px; border: 2px dashed #7c7568; border-radius: 7px; background: #fffef9; color: #4a453d; font-size: 13px; line-height: 1.6; }
.notice-error { border-color: #b5284e; background: #ffe4eb; color: #791330; }

.login-layout { display: grid; grid-template-columns: 1fr minmax(340px, .82fr); align-items: center; gap: 70px; padding-top: 75px; padding-bottom: 90px; }
.login-intro { position: relative; }
.login-intro h1 { margin-top: 20px; font-size: clamp(52px, 8vw, 84px); }
.login-intro > p { max-width: 440px; margin-top: 20px; font-size: 16px; line-height: 1.7; }
.login-comic { display: inline-block; margin-top: 30px; padding: 14px 19px; border: var(--line); background: var(--yellow); box-shadow: var(--shadow); font-size: 23px; line-height: .9; font-weight: 1000; text-align: center; transform: rotate(-8deg); }
.login-comic span { color: var(--pink); font-size: 28px; }
.form-panel { padding: 26px; background: var(--white); }
.form-panel h2 { margin: 0; font-size: 34px; font-weight: 1000; }
.form-hint { margin: 7px 0 19px; color: #555; font-size: 13px; line-height: 1.6; }
.form-panel label { display: block; margin: 13px 0 5px; font-size: 12px; font-weight: 1000; }
.form-panel input, .form-panel textarea, .form-panel select, .reset-password {
  display: block; width: 100%; padding: 10px 11px; border: 2px solid var(--ink); border-radius: 5px; background: #fffefa; color: var(--ink); font: 14px "Nunito",sans-serif;
}
.form-panel input:focus, .form-panel textarea:focus, .form-panel select:focus, .reset-password:focus { outline: 3px solid #287cf366; outline-offset: 1px; }
.form-panel textarea { resize: vertical; line-height: 1.55; }
.form-submit { width: 100%; margin-top: 20px; cursor: pointer; }
.form-submit:disabled, .small-action:disabled, .nav-cta:disabled { cursor: wait; opacity: .65; }
.form-back { margin: 18px 0 0; }
.form-panel .notice { margin-bottom: 0; }

.dashboard-main { padding-top: 55px; padding-bottom: 75px; }
.dashboard-welcome { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.dashboard-welcome h1 { font-size: clamp(38px, 6vw, 58px); }
.dashboard-welcome .eyebrow { margin-bottom: 7px; }
.role-badge { padding: 7px 10px; border: 2px solid var(--ink); border-radius: 99px; background: var(--yellow); font: 10px "DM Mono",monospace; }
.dashboard-section { padding-top: 34px; margin-top: 30px; border-top: 2px dashed #17171766; scroll-margin-top: 90px; }
.dashboard-section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.dashboard-section-heading .eyebrow { margin-bottom: 4px; }.dashboard-section-heading h2{margin:0;font-size:32px;font-weight:1000}
.section-sticker { padding: 8px 10px; border: 2px solid var(--ink); background: var(--mint); font: 10px "DM Mono",monospace; transform: rotate(4deg); }.pink-sticker{background:var(--pink);transform:rotate(-4deg)}
.dashboard-columns { display: grid; grid-template-columns: minmax(270px, .8fr) minmax(0, 1.2fr); gap: 22px; align-items: start; }
.small-panel { padding: 20px; }.small-panel h3{margin:0 0 14px;font-size:17px;font-weight:1000}
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }.form-actions .button{cursor:pointer}
.item-list { display: grid; gap: 12px; min-width: 0; }
.managed-card { padding: 17px; border: 2px solid var(--ink); border-radius: 8px; background: var(--white); box-shadow: 3px 3px 0 var(--ink); }
.managed-card-heading { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.managed-card-heading h3 { margin: 0; overflow-wrap: anywhere; font-size: 16px; font-weight: 1000; }
.status-pill { flex: 0 0 auto; padding: 5px 7px; border: 1px solid var(--ink); border-radius: 20px; font: 8px "DM Mono",monospace; }
.status-pill.published { background: var(--mint); }.status-pill.draft{background:#e5e0e0}
.managed-meta { margin: 7px 0; color: #65605a; font-size: 11px; }.managed-excerpt{margin:8px 0;color:#49443f;font-size:12px;line-height:1.55}
.managed-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.small-action { padding: 7px 10px; border: 2px solid var(--ink); border-radius: 5px; background: var(--yellow); font-size: 11px; font-weight: 1000; cursor: pointer; }
.danger-action { background: #ffd5df; }
.author-actions .reset-password { flex: 1 1 150px; width: auto; min-width: 120px; padding: 7px; font-size: 11px; }
.author-actions .small-action { flex: 0 0 auto; }
.writing-page .footer-inner { min-height: 82px; }

@media (max-width: 760px) {
  .login-layout { grid-template-columns: 1fr; gap: 35px; padding-top: 50px; }
  .login-comic { display: none; }
  .dashboard-columns { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .writing-main { padding-top: 45px; padding-bottom: 60px; }
  .writing-heading { display: block; margin-bottom: 25px; }
  .writing-heading > p { margin-top: 15px; }
  .public-articles { grid-template-columns: 1fr; gap: 18px; }
  .writing-footer { align-items: start; flex-direction: column; }
  .login-layout { padding-top: 45px; padding-bottom: 60px; }
  .login-intro h1 { font-size: 59px; }
  .form-panel { padding: 20px; }
  .dashboard-main { padding-top: 38px; padding-bottom: 55px; }
  .dashboard-welcome { align-items: start; flex-direction: column; }
  .dashboard-section-heading h2 { font-size: 27px; }
}
