/* Additive connection states; the approved styles.css and ripple assets are unchanged. */
.environment-bar { background: #e4ece8aa; border-bottom: 1px solid var(--line); padding: 7px 20px; font-size: 12px; color: #48605a; text-align: center; }
.loading-state { min-height: 180px; display: grid; place-items: center; color: var(--muted); }
.request-error { padding: 20px 24px; border: 1px solid #dccac0; background: #fcf7f2; border-radius: 9px; margin-block: 16px; }
.request-error .button { margin-top: 12px; }
.request-error ul { margin-block: 8px; }
.request-error details { margin-block: 10px; font-size: 13px; }
.break-text, .prose p, .prose h1 { overflow-wrap: anywhere; }
.local-composer { padding: 30px 34px; }
.local-composer .title-input { min-height: 152px; max-height: 420px; }
.composer-settings { display: grid; grid-template-columns: minmax(240px, 2fr) minmax(120px, 1fr) minmax(180px, 1fr); gap: 22px; margin-top: 25px; }
.composer-settings .field { margin-bottom: 0; min-width: 0; align-content: start; grid-template-rows: 22px 50px auto; }
.composer-settings .form-input { width: 100%; }
.composer-settings small { display: block; margin-top: 7px; font-size: 12px; color: var(--muted); }
.composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; }
.composer-footer p { color: var(--muted); font-size: 13px; }
.pending-notice { padding: 18px 24px; background: var(--mist); border-radius: 9px; margin-bottom: 22px; }
.pending-notice a { margin-left: 16px; font-weight: 600; }
.section-gap { margin-top: 36px; }
.compact-heading { display: flex; gap: 18px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.compact-heading h2 { font-size: 19px; }
.table-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; color: var(--muted); font-size: 13px; }
.pager { display: flex; gap: 12px; }
.article-table td:first-child { max-width: 440px; overflow-wrap: anywhere; }
.query-form { display: flex; gap: 12px; margin-bottom: 24px; }
.query-form input { flex: 1; min-width: 0; }
.query-form select { max-width: 220px; }
.query-form label { display: flex; align-items: center; gap: 12px; }
.task-overview { padding: 25px 30px; margin-bottom: 24px; }
.task-overview p { margin-top: 12px; }
.task-overview .record-list { margin-top: 16px; }
.task-item { padding: 24px 28px; border-top: 1px solid var(--line); }
.task-item:first-child { border-top: 0; }
.task-item-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.task-item h2 { font-size: 17px; overflow-wrap: anywhere; }
.task-item p { margin-top: 10px; color: var(--muted); font-size: 14px; }
.task-item .button { margin-top: 16px; }
.reading-meta { display: flex; gap: 10px 25px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 25px; }
.prose pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--canvas); padding: 16px; font-size: 14px; }
.prose h2 { font-size: 21px; margin: 28px 0 16px; }
.auth-card .field { margin-bottom: 22px; }
.account-menu > summary { width: auto; height: auto; min-height: 38px; padding: 6px 12px; border-radius: 6px; font-size: 13px; white-space: nowrap; }
.local-composer .title-input { width: 100%; padding: 16px; border: 1px solid #c5d2cb; border-radius: 6px; background: #fffefb; font: inherit; line-height: 1.7; }
.auth-note { font-size: 13px; color: var(--muted); margin-top: 20px; }
.paper-stack .paper h3 { font-size: 19px; }
.scope-list { display: grid; gap: 0; }
.scope-list > div { padding: 22px 26px; border-bottom: 1px solid var(--line); }
.scope-list > div:last-child { border-bottom: 0; }
.scope-list h2 { font-size: 17px; margin-bottom: 8px; }
.scope-list p { color: var(--muted); font-size: 14px; }
.home-members-footer p { color: var(--muted); font-size: 13px; }
@media (max-width: 760px) {
  .environment-bar { text-align: left; font-size: 11px; padding-inline: 20px; }
  .header-inner { gap: 18px; min-height: 72px; flex-wrap: wrap; padding-block: 15px; }
  .main-nav { display: flex !important; order: 3; width: 100%; gap: 24px; border: 0; position: static; background: none; }
  .main-nav a { padding: 7px 0; font-size: 14px; }
  .header-actions { gap: 15px; }
  .member-badge { display: none; }
  .composer-settings { grid-template-columns: 1fr; gap: 18px; }
  .local-composer { padding: 24px 20px; }
  .composer-footer { align-items: stretch; flex-direction: column; }
  .composer-footer .button { width: 100%; }
  .query-form { flex-wrap: wrap; }
  .query-form input { min-width: 170px; }
  .task-item, .task-overview { padding: 20px; }
  .task-item-header { flex-direction: column; gap: 8px; }
  .table-footer { padding: 16px 12px; flex-wrap: wrap; }
  .pending-notice a { display: block; margin: 8px 0 0; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-layout .paper-stack { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
