:root {
  color-scheme: only light;
  --canvas: #f3f5f4;
  --surface: #ffffff;
  --ink: #17191b;
  --muted: #687078;
  --line: #ced3d1;
  --line-strong: #a8b0ae;
  --teal: #2f6f65;
  --teal-soft: #e3efec;
  --yellow: #f4c95d;
  --danger: #9e342f;
  --shadow: 0 10px 28px rgb(23 25 27 / 10%);
}

* { box-sizing: border-box; }

html {
  background: var(--canvas);
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-width: 0;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.35;
}

button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  border-radius: 4px;
  padding: 8px 12px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus { transform: translateY(0); }

.shell {
  width: min(1360px, calc(100% - 48px));
  min-height: 760px;
  margin: auto;
  padding: 20px 0;
}

.panel,
.topbar {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  height: 92px;
  min-height: 92px;
  max-height: 92px;
  align-items: center;
  gap: 18px;
  border-color: #cad2cd;
  border-radius: 10px;
  padding: 14px 24px;
  background: var(--surface);
  box-shadow: none;
}

.brand,
.header-link,
.profile-button,
.icon-button {
  border: 0;
  background: transparent;
  color: var(--ink);
}

.brand-zone {
  display: flex;
  min-width: 190px;
  max-width: 420px;
  height: 62px;
  overflow: hidden;
  align-items: center;
  flex: 0 1 auto;
  gap: 20px;
  padding-left: 8px;
}

.brand {
  display: grid;
  width: 132px;
  min-width: 0;
  max-width: 132px;
  height: 54px;
  max-height: 54px;
  overflow: hidden;
  flex: 0 0 132px;
  place-items: center;
  padding: 0;
}
.brand-logo { display: block; width: 100%; max-width: 132px; height: 100%; max-height: 54px; object-fit: contain; object-position: left center; }

.brand-copy { display: block; min-width: 0; overflow: hidden; white-space: nowrap; }
.brand-copy small { display: block; overflow: hidden; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .07em; text-overflow: ellipsis; text-transform: uppercase; }
.brand-copy strong { display: block; overflow: hidden; margin-top: 2px; color: #214b2a; font-size: 13px; text-overflow: ellipsis; }

.header-link {
  padding: 7px 0;
  color: var(--muted);
  font-size: 13px;
}

.header-link.active { color: var(--ink); }
.top-spacer { min-width: 0; flex: 1; }

.header-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
}

.icon-button {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  padding: 0;
}

.icon-button:hover { background: #edf5e9; }
.icon-button img { width: 18px; height: 18px; }

.notification-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: var(--danger);
}

.notification-dot.hidden { display: none; }

.language {
  min-width: 54px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

.profile-button { display: flex; min-height: 42px; align-items: center; gap: 7px; border-radius: 10px; padding: 5px 9px 5px 5px; font-weight: 600; }
.profile-button:hover { background: #edf5e9; }
.header-profile-avatar { display: grid; width: 28px; height: 28px; overflow: hidden; place-items: center; border-radius: 50%; background: var(--teal-soft); }
.header-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.anonymous-avatar-mark { position: relative; display: block; width: 18px; height: 18px; }
.anonymous-avatar-mark::before { position: absolute; top: 1px; left: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); content: ""; }
.anonymous-avatar-mark::after { position: absolute; bottom: 1px; left: 2px; width: 15px; height: 8px; border-radius: 9px 9px 4px 4px; background: var(--teal); content: ""; }

.primary-button {
  min-width: 76px;
  height: 36px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 0 14px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}

.primary-button:hover { background: #303438; }

.topbar .header-write {
  min-width: 88px;
  height: 44px;
  border-color: #214b2a;
  border-radius: 11px;
  padding: 0 18px;
  background: #214b2a;
}

.topbar .header-write:hover { background: #2c6137; }

.secondary-button,
.ghost-button,
.danger-button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 11px;
  background: #fff;
  color: var(--ink);
}

.secondary-button:hover,
.ghost-button:hover { border-color: var(--line-strong); }
.secondary-button.active { border-color: var(--teal); background: var(--teal-soft); color: var(--teal); }
.ghost-button { border-color: transparent; background: transparent; color: var(--muted); }
.danger-button { border-color: #e2c0bd; color: var(--danger); }

.popover-wrap { position: relative; }

.popover {
  position: absolute;
  z-index: 10;
  top: calc(100% + 10px);
  right: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--shadow);
}

.notifications { width: 300px; padding: 12px; }
.notifications h2 { margin: 0; font-size: 14px; }
.notification-item { display: grid; width: 100%; gap: 2px; border: 0; border-top: 1px solid #e8ebea; padding: 10px 0; background: transparent; color: var(--ink); text-align: left; }
.notifications h2 + .notification-item { margin-top: 8px; }
button.notification-item { cursor: pointer; }
button.notification-item:hover { background: var(--canvas); }
button.notification-item:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.notification-item-disabled { opacity: .65; }
.notification-item strong { font-size: 12px; }
.notification-item span { color: var(--muted); font-size: 11px; }
.notification-empty { margin: 12px 0 2px; color: var(--muted); }

.language-menu { display: grid; width: 110px; overflow: hidden; padding: 4px; }
.language-menu button { border: 0; border-radius: 3px; padding: 8px; background: transparent; text-align: left; }
.language-menu button:hover { background: var(--canvas); }

[hidden] { display: none !important; }

.layout {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr) 228px;
  gap: 20px;
  align-items: start;
  margin-top: 16px;
}

.site-footer {
  display: flex;
  width: 100%;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding: 18px 24px;
  background: #e8ebe9;
  color: var(--muted);
  font-size: 11px;
}

.site-footer a, .footer-link { color: inherit; text-decoration: none; }
.footer-link { border: 0; padding: 0 14px; background: transparent; font-size: inherit; }
.site-footer a { padding: 0 14px; }
.site-footer > * + * { border-left: 1px solid var(--line-strong); }
.site-footer a:hover, .footer-link:hover { color: var(--ink); text-decoration: underline; }

.legal-page { min-height: 100dvh; }
.legal-shell { width: min(760px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 64px; }
.legal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.legal-brand { display: inline-flex; width: 132px; height: 56px; align-items: center; flex: 0 0 auto; text-decoration: none; }
.legal-brand-logo { display: block; width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.legal-back { color: var(--muted); font-size: 12px; }
.legal-document { border: 1px solid var(--line); border-radius: 4px; padding: 32px; background: var(--surface); }
.legal-document h1 { margin: 0; font-size: 25px; }
.legal-updated { margin: 8px 0 28px; color: var(--muted); font-size: 12px; }
.legal-document h2 { margin: 28px 0 9px; font-size: 16px; }
.legal-document p, .legal-document li { color: #3f474d; line-height: 1.65; }
.legal-document ul { margin: 8px 0; padding-left: 20px; }
.legal-document a { color: var(--teal); }

.browse-panel { padding: 16px; }
.browse-panel-header { display: block; }
.browse-panel h2, .info-panel h2 { margin: 0 0 10px; font-size: 16px; }
.browse-panel p, .info-panel > p { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.browse-menu { display: grid; gap: 8px; }
.mobile-board-toggle,
.browse-close,
.mobile-board-backdrop { display: none; }

.browse-button {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}

.browse-button.active { border-color: var(--ink); background: var(--ink); color: #fff; font-weight: 600; }
.content-column { min-width: 0; }

.publisher-content { padding: 26px; }
.publisher-content-kicker { margin: 0 0 7px; color: var(--teal); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.publisher-content > h1 { margin: 0 0 12px; font-size: 28px; line-height: 1.2; }
.publisher-content > p { margin: 0 0 22px; color: #454d52; font-size: 15px; line-height: 1.65; }
.publisher-content section { border-top: 1px solid #e8ebea; padding: 18px 0 0; }
.publisher-content section + section { margin-top: 18px; }
.publisher-content h2 { margin: 0 0 7px; font-size: 17px; }
.publisher-content section p { margin: 0; color: #4f585d; line-height: 1.65; }
.remote-data-state + .publisher-content { margin-top: 10px; }

.feed-heading {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.feed-copy { flex: 1; }
.feed-heading h1 { margin: 0; font-size: 30px; line-height: 1.1; letter-spacing: 0; }
.feed-heading p { margin: 3px 0 0; color: var(--muted); }
.page-count { display: grid; width: 94px; height: 34px; place-items: center; border-radius: 4px; background: var(--teal-soft); color: var(--teal); font-size: 12px; font-weight: 600; }

.feed-tools { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr) minmax(0, 112px); align-items: stretch; gap: 10px; margin: 0 0 10px; padding: 0; }
.search-group { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 8px; }
.search-submit { min-width: 84px; height: 46px; margin: 0; }
.search-field, .sort-select, .form-control {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}
.search-field { height: 46px; margin: 0; padding: 0 14px; }
.sort-select,
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%23545d5b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 8px;
}
.sort-select {
  display: block;
  justify-self: end;
  width: 112px;
  min-width: 0;
  max-width: 100%;
  height: 46px;
  margin: 0;
  padding: 0 34px 0 12px;
}
select.form-control { padding-right: 34px; }

.post-list { display: grid; gap: 9px; }
.post-card {
  position: relative;
  min-height: 108px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  content-visibility: auto;
  contain-intrinsic-size: 108px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.post-card-open {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 18px;
  align-items: stretch;
  width: 100%;
  min-height: 106px;
  border: 0;
  padding: 11px 14px 11px 16px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.post-card:hover { border-color: var(--line-strong); box-shadow: 0 3px 10px rgb(23 25 27 / 6%); }
.avatar { display: grid; width: 34px; height: 34px; overflow: hidden; place-items: center; border-radius: 50%; background: #ddeae7; font-size: 13px; font-weight: 600; }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.avatar-yellow { background: #f6e6b7; }.avatar-blue { background: #dde5f3; }.avatar-purple { background: #e9e2f2; }.avatar-gray { background: #e8eceb; }
.post-body { display: flex; width: 100%; min-width: 0; flex-direction: column; align-items: stretch; }
.post-category-row { display: flex; align-self: flex-start; align-items: center; }
.post-meta { display: grid; grid-template-columns: 24px minmax(0, 1fr); min-width: 0; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.post-meta-copy { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 3px 7px; }
.avatar.post-card-avatar { width: 24px; height: 24px; box-shadow: 0 0 0 1px rgb(47 111 101 / 10%); font-size: 9px; }
.post-card-avatar .anonymous-avatar-mark { transform: scale(.72); }
.post-author { overflow: hidden; color: #454c52; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.post-meta-divider { color: #a1a8ac; }
.category-label { color: var(--teal); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.post-card .category-label { border-radius: 999px; padding: 2px 7px; background: var(--teal-soft); font-size: 10px; letter-spacing: .04em; line-height: 1.35; }
.university-badge { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #bfd2cd; border-radius: 999px; padding: 2px 7px; background: #f3f8f7; color: var(--teal); font-size: 10px; font-weight: 700; line-height: 1.35; }
.post-card h2 { width: 100%; min-width: 0; margin: 5px 0 1px; overflow: hidden; font-size: 17px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.post-card p { width: 100%; min-width: 0; margin: 0 0 6px; overflow: hidden; color: #626a70; font-size: 13px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.post-stats { display: flex; min-height: 0; flex-direction: column; align-items: flex-end; gap: 5px; border-left: 1px solid #edf0ef; padding: 2px 0 24px 14px; color: var(--muted); font-size: 12px; text-align: right; }
.post-stats strong { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-weight: 600; }
.post-stats strong img { display: block; width: 14px; height: 14px; flex: 0 0 auto; }
.post-stats span { display: block; }
.bookmark-button { position: absolute; right: 13px; bottom: 10px; display: grid; width: 22px; height: 22px; place-items: center; border: 0; border-radius: 4px; padding: 0; background: transparent; }
.bookmark-button:hover { background: var(--teal-soft); }
.bookmark-button img { width: 18px; height: 18px; }

.pagination { display: flex; justify-content: center; gap: 8px; padding-top: 8px; }
.page-button { min-width: 36px; height: 38px; border: 1px solid var(--line); border-radius: 4px; padding: 0 11px; background: #fff; color: var(--ink); }
.page-button.active { border-color: var(--ink); background: var(--ink); color: #fff; font-weight: 600; }
.comment-pagination { flex-wrap: wrap; border-top: 1px solid #e8ebea; margin-top: 4px; padding: 14px 0; }
.profile-pagination { flex-wrap: wrap; margin-top: 18px; padding-bottom: 4px; }

.empty-state { border: 1px dashed var(--line); border-radius: 4px; padding: 42px 20px; background: rgb(255 255 255 / 55%); text-align: center; }
.empty-state h2 { margin: 0 0 5px; font-size: 16px; }.empty-state p { margin: 0 0 14px; color: var(--muted); }

.remote-data-state { display: grid; min-height: 240px; place-content: center; justify-items: center; padding: 36px; text-align: center; }
.remote-data-state h1 { margin: 0; font-size: 18px; }
.remote-data-state p { margin: 8px 0 18px; color: var(--muted); }
.remote-data-loading::before { width: 24px; height: 24px; border: 3px solid var(--teal-soft); border-top-color: var(--teal); border-radius: 50%; margin-bottom: 14px; animation: remote-data-spin 700ms linear infinite; content: ""; }
@keyframes remote-data-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .remote-data-loading::before { animation: none; } }

.info-panel { padding: 16px; }
.info-panel h3 { margin: 0 0 10px; font-size: 15px; }
.accent-rule { height: 4px; margin: 12px 0; background: var(--yellow); }
.divider { height: 1px; margin: 12px 0; background: var(--line); }
.trend-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: trend; }
.trend-list li { counter-increment: trend; }
.trend-button { position: relative; width: 100%; border: 0; padding: 0 0 0 30px; background: transparent; color: var(--ink); text-align: left; }
.trend-button::before { position: absolute; left: 0; color: var(--teal); content: "0" counter(trend); font-size: 11px; font-weight: 600; }
.trend-button strong { display: block; font-size: 13px; line-height: 1.2; }.trend-button small { color: var(--muted); font-size: 11px; }

.detail-panel, .editor-panel, .profile-panel { min-height: 540px; padding: 26px; }
.detail-panel { padding: 22px clamp(24px, calc((100% - 840px) / 2), 60px); }
.back-button { display: inline-flex; min-height: 32px; align-items: center; gap: 7px; border: 0; padding: 0; background: transparent; color: var(--teal); line-height: 1.25; }
.back-button-icon { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.detail-kicker { margin: 12px 0 5px; }
.content-title { margin: 0; font-size: 28px; letter-spacing: 0; line-height: 1.2; }
.content-subtitle { margin: 6px 0 18px; color: var(--muted); font-size: 12px; }
.detail-author { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 9px; margin: 7px 0 18px; }
.detail-author .content-subtitle { margin: 0; }
.detail-copy { max-width: 840px; color: #394146; font-size: 16px; line-height: 1.65; white-space: pre-wrap; }
.detail-actions { display: flex; gap: 8px; margin: 20px 0; }
.detail-icon-button { display: inline-flex; align-items: center; gap: 6px; }
.detail-icon-button img { width: 16px; height: 16px; }
.owner-actions { display: flex; justify-content: flex-end; border-top: 1px solid #e8ebea; padding-top: 12px; }
.comments-heading { margin: 25px 0 8px; font-size: 15px; }
.comment { border-top: 1px solid #e8ebea; padding: 12px 0; }.comment:first-of-type { border-top: 0; }.comment header { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 4px; }.comment time { color: var(--muted); font-size: 11px; }.comment p { margin: 0; color: #454d52; white-space: pre-wrap; }
.comment-thread { border-top: 1px solid #e8ebea; }
.comment-thread > .comment { border-top: 0; }
.comment-children { margin: 0 0 10px 20px; border-left: 2px solid #dfeae5; padding-left: 14px; }
.comment-children .comment { border-top: 1px solid #edf0ef; padding: 10px 0; }
.comment-children .comment:first-child { border-top: 0; }
.comment-actions { margin-top: 7px; }
.comment-actions button,
.comment-reply-heading button { border: 0; padding: 4px 0; background: transparent; color: var(--teal); cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; }
.comment-actions button:hover,
.comment-reply-heading button:hover { text-decoration: underline; }
.comment-reply-heading { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #454d52; font-size: 12px; font-weight: 600; }
.comment-author-post { color: var(--teal); }
.comment-author-line { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; min-width: 0; }
.comment-meta { display: flex; align-items: center; gap: 9px; }
.comment-delete-button { appearance: none; border: 0; background: transparent; color: var(--danger); cursor: pointer; font: inherit; font-size: 11px; padding: 2px 0; }
.comment-delete-button:hover { text-decoration: underline; }.comment-delete-button:disabled { cursor: wait; opacity: .55; }
.comment-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }.comment-form input { min-width: 0; height: 38px; border: 1px solid var(--line); border-radius: 4px; padding: 0 10px; }
.comment-form.comment-form-inline { margin: 4px 0 12px 20px; border: 1px solid #dfeae5; border-radius: 8px; background: #f7faf8; padding: 12px; }
.comment-university-toggle { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: #454d52; font-size: 12px; font-weight: 600; }
.comment-university-toggle > input { width: 16px; height: 16px; margin: 0; padding: 0; accent-color: var(--teal); }
.university-option-help,
.comment-university-missing { grid-column: 1 / -1; margin: -3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }

.editor-panel header, .profile-panel header { margin-bottom: 18px; }
.form { display: grid; max-width: 760px; gap: 14px; }
.form-row { display: grid; gap: 6px; }
.form-row label { color: #454d52; font-size: 12px; font-weight: 600; }
.form-control { min-height: 40px; padding: 9px 10px; }
textarea.form-control { min-height: 180px; resize: vertical; }
.small-textarea { min-height: 92px !important; }
.check-row { display: flex; align-items: center; gap: 8px; color: #454d52; font-size: 12px; font-weight: 600; }
.check-row input { width: 16px; height: 16px; margin: 0; accent-color: var(--teal); }
.post-options { display: flex; flex-wrap: wrap; gap: 18px; border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; background: var(--canvas); }
.campus-university-option { display: grid; gap: 6px; border: 1px solid #c9d9d5; border-radius: 4px; padding: 12px 14px; background: #f3f8f7; }
.campus-university-option[hidden] { display: none; }
.campus-university-option p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.poll-fields { display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 4px; padding: 14px; }
.poll-fields legend { padding: 0 5px; font-size: 12px; font-weight: 700; }
.maximum-choices-field p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.maximum-choices-field .form-control:disabled { cursor: not-allowed; background: #eef1f0; color: #8b9592; }
.poll-option-list { display: grid; gap: 8px; }
.poll-option-row { display: flex; align-items: center; gap: 8px; }
.poll-option-row .poll-option-input { flex: 1; }
.poll-option-remove { flex-shrink: 0; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; }
.poll-option-remove:hover { color: #454d52; border-color: var(--muted); }
.poll-option-add { align-self: start; border: 1px dashed var(--line); border-radius: 4px; padding: 8px 12px; background: #fff; color: var(--teal); font-size: 12px; font-weight: 700; cursor: pointer; }
.poll-option-add:hover { background: var(--canvas); }
.field-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.field-meta-end { justify-content: flex-end; }
.form-actions { display: flex; gap: 8px; margin-top: 4px; }
.draft-note { color: var(--muted); font-size: 11px; }

.profile-panel { min-height: 0; padding: 0; overflow: hidden; }
.profile-hero { display: grid; grid-template-columns: 64px minmax(150px, 1fr) auto; align-items: center; gap: 16px; margin: 0 !important; padding: 24px; }
.profile-avatar { display: grid; width: 64px; height: 64px; overflow: hidden; place-items: center; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-size: 22px; font-weight: 700; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-small { width: 48px; height: 48px; font-size: 17px; }
.profile-identity { min-width: 0; }
.profile-identity h1 { margin: 1px 0 3px; overflow-wrap: anywhere; font-size: 24px; line-height: 1.15; }
.profile-identity > p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.profile-eyebrow { margin: 0; color: var(--teal); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.profile-stats { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid #e8ebea; padding-top: 14px; }
.profile-stats div { min-width: 0; text-align: center; }
.profile-stats dt { color: var(--ink); font-size: 17px; font-weight: 700; }
.profile-stats dd { margin: 1px 0 0; color: var(--muted); font-size: 10px; text-transform: lowercase; }
.profile-hero-actions { grid-column: 3; grid-row: 1; display: flex; align-items: center; gap: 8px; }
.profile-edit, .profile-signout { white-space: nowrap; }
.profile-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); min-height: 45px; overflow-x: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0 10px; scrollbar-width: none; }
.profile-tabs::-webkit-scrollbar { display: none; }
.profile-tab-button { position: relative; display: flex; width: 100%; min-width: 0; height: 44px; align-items: center; justify-content: center; gap: 5px; border: 0; padding: 0 8px; background: transparent; color: var(--muted); }
.profile-tab-button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-tab-button::after { position: absolute; right: 14px; bottom: -1px; left: 14px; height: 2px; background: transparent; content: ""; }
.profile-tab-button:hover { color: var(--ink); }
.profile-tab-button.active { color: var(--ink); font-weight: 700; }
.profile-tab-button.active::after { background: var(--teal); }
.profile-tab-button img { width: 15px; height: 15px; }
.profile-tab-content { min-height: 320px; padding: 22px 24px 28px; }
.section-heading { display: flex; min-height: 38px; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-heading h2 { margin: 0; font-size: 17px; }
.section-heading p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.profile-rows { border-top: 1px solid var(--line); }
.profile-rows + .profile-rows { margin-top: 18px; }
.profile-row { position: relative; display: flex; align-items: center; border-bottom: 1px solid #e8ebea; }
.profile-row-main { display: grid; min-width: 0; flex: 1; gap: 3px; border: 0; padding: 13px 44px 13px 0; background: transparent; color: var(--ink); text-align: left; }
.profile-row-main strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.profile-row-main > span:last-child,
.profile-row-main p { margin: 0; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.profile-row-kicker { color: var(--teal); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.row-icon-button { position: absolute; right: 6px; display: grid; width: 32px; height: 32px; place-items: center; border: 0; border-radius: 4px; padding: 0; background: transparent; }
.row-icon-button:hover { background: var(--teal-soft); }
.row-icon-button img { width: 16px; height: 16px; }
.profile-empty { border-top: 1px solid var(--line); padding: 28px 0 4px; }
.profile-empty strong { font-size: 14px; }
.profile-empty p { margin: 4px 0 14px; color: var(--muted); font-size: 12px; }
.settings-content,
.edit-profile-content { max-width: 760px; }
.profile-settings { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.profile-settings .profile-photo-field,
.profile-settings .settings-actions { grid-column: 1 / -1; }
.optional-label { margin-left: 5px; color: var(--muted); font-size: 10px; font-weight: 400; }
.field-label { color: #454d52; font-size: 12px; font-weight: 600; }
.photo-control { display: flex; align-items: center; gap: 12px; }
.photo-control p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.upload-button { display: inline-flex; height: 34px; align-items: center; border: 1px solid var(--line); border-radius: 4px; padding: 0 11px; background: #fff; color: var(--ink); cursor: pointer; font-size: 12px; font-weight: 600; }
.upload-button:hover { border-color: var(--line-strong); }
.profile-photo-remove-button { justify-self: start; min-height: 32px; font-size: 11px; }
.post-image-picker { display: flex; align-items: center; gap: 10px; }
.post-image-count { color: var(--muted); font-size: 11px; }
.post-image-previews { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.post-image-previews:empty { display: none; }
.post-image-preview { position: relative; overflow: hidden; aspect-ratio: 1; margin: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--canvas); }
.post-image-preview img { width: 100%; height: 100%; object-fit: cover; }
.post-image-preview button { position: absolute; top: 5px; right: 5px; display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid rgba(255, 255, 255, .75); border-radius: 50%; padding: 0; background: rgba(20, 24, 23, .78); color: #fff; cursor: pointer; font-size: 18px; line-height: 1; }
.post-image-preview button:hover { background: #111; }
.settings-actions { display: flex; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 14px; }
.settings-actions { gap: 8px; }
.settings-stack { display: grid; }
.settings-section { border-top: 1px solid var(--line); padding: 17px 0; }
.settings-section:first-child { border-top: 0; padding-top: 0; }
.settings-section h3 { margin: 0; font-size: 14px; }
.settings-section > p { margin: 4px 0 11px; color: var(--muted); font-size: 11px; }
.settings-language-form { display: grid; max-width: 480px; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 8px; }
.settings-language-form .form-control { height: 40px; }
.settings-password-form { max-width: 480px; gap: 11px; }
.settings-form-error { display: none; margin: 0; border: 1px solid #e7c3bd; border-radius: 5px; padding: 9px 11px; background: #fff7f5; color: #9b4136; font-size: 12px; line-height: 1.45; }
.settings-form-error:not(:empty) { display: block; }
.settings-password-form .form-control[aria-invalid="true"] { border-color: #b85b50; box-shadow: inset 0 0 0 1px rgb(184 91 80 / 12%); }
.settings-form-actions { display: flex; justify-content: flex-end; padding-top: 3px; }
.settings-password-link > p { margin: 0 0 10px; color: var(--muted); font-size: 11px; }
.danger-zone { max-width: 760px; border-top: 1px solid var(--line); padding: 17px 0 0; }
.danger-zone h3 { margin: 0; font-size: 14px; }
.danger-zone p { margin: 4px 0 12px; color: var(--muted); font-size: 12px; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; clip-path: inset(50%) !important; }
.compact-post { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #e8ebea; padding: 10px 0; }
.compact-post:first-of-type { border-top: 0; }
.compact-post button { border: 0; padding: 0; background: transparent; color: var(--ink); font-weight: 600; text-align: left; }
.compact-post span { color: var(--muted); font-size: 11px; white-space: nowrap; }

.media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 840px; margin: 20px 0; }.media-grid-single { grid-template-columns: minmax(0, 1fr); }.media-grid a { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: var(--canvas); }.media-grid img { display: block; width: 100%; max-height: 360px; object-fit: cover; }.media-grid-single img { max-height: 440px; }
.poll-card { display: grid; max-width: 840px; gap: 10px; margin: 20px 0; border: 1px solid var(--line); border-radius: 4px; padding: 16px; background: var(--canvas); }.poll-card h2 { margin: 0 0 4px; font-size: 16px; }.poll-option { position: relative; isolation: isolate; display: flex; min-height: 42px; overflow: hidden; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 4px; padding: 0 12px; background: #fff; }.poll-option::before { position: absolute; z-index: -1; inset: 0 auto 0 0; width: var(--poll-fill, 0%); background: var(--teal-soft); content: ''; transition: width .45s ease; }.poll-option > span, .poll-option > strong { position: relative; }.poll-option input { accent-color: var(--teal); }
.comment-controls { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; }.comment-controls label { display: flex; align-items: center; gap: 5px; }.comment-controls input[type="password"] { flex: 1; height: 32px; border: 1px solid var(--line); border-radius: 4px; padding: 0 8px; }
.comment-anonymous-toggle { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; cursor: pointer; }.comment-anonymous-toggle input { width: 15px; height: 15px; margin: 0; accent-color: var(--teal); }

.toast { position: fixed; z-index: 30; bottom: 22px; left: 50%; transform: translate(-50%, 12px); border-radius: 4px; padding: 10px 14px; background: var(--ink); color: #fff; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; }.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 1120px) {
  .brand-copy { display: none; }
  .brand-zone { min-width: 132px; max-width: 132px; flex-basis: 132px; }
}

@media (max-width: 1080px) {
  .shell { width: calc(100% - 32px); }
  .layout { grid-template-columns: 150px minmax(0, 1fr) 190px; gap: 14px; }
  .browse-button { width: 100%; }
}

@media (max-width: 900px) {
  .shell { width: calc(100% - 24px); }
  .topbar { gap: 10px; padding: 12px; }
  .layout { grid-template-columns: 138px minmax(0, 1fr); gap: 14px; }
  .browse-button { width: 100%; }
  .info-panel { grid-column: 2; }
  .profile-hero { grid-template-columns: 56px minmax(0, 1fr) auto; padding: 20px; }
  .profile-avatar { width: 56px; height: 56px; }
  .profile-stats { grid-column: 1 / -1; grid-row: 2; }
  .profile-hero-actions { grid-column: 3; grid-row: 1; }
}

@media (max-width: 760px) {
  body { font-size: 13px; }
  body.board-drawer-open { overflow: hidden; }
  .shell { width: 100%; min-height: 100dvh; padding: 8px 10px 14px; }
  .site-footer { min-height: 56px; margin-top: 14px; padding: 16px 10px; }
  .legal-shell { width: min(100% - 24px, 760px); padding-top: 18px; }
  .legal-header { margin-bottom: 16px; }
  .legal-brand { width: 112px; height: 50px; }
  .legal-document { padding: 22px 18px; }
  .topbar {
    display: grid;
    height: 66px;
    min-height: 66px;
    max-height: 66px;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 8px;
    border-radius: 12px;
    padding: 8px 10px;
  }
  .top-spacer { display: none; }
  .mobile-board-toggle {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 0;
    border-radius: 5px;
    padding: 0;
    background: transparent;
    color: var(--ink);
  }
  .mobile-board-toggle:hover { background: var(--canvas); }
  .mobile-board-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentcolor; stroke-linecap: round; stroke-width: 1.6; }
  .brand-zone { width: min(100%, 96px); min-width: 0; max-width: 96px; height: 42px; justify-self: start; flex: none; gap: 0; padding-left: 0; }
  .brand { width: 100%; max-width: 96px; height: 42px; max-height: 42px; flex: none; }
  .brand-logo { width: 100%; max-width: 96px; height: auto; max-height: 40px; }
  .header-actions { justify-self: end; gap: 4px; }
  .icon-button { width: 40px; height: 40px; }
  .header-link,
  .language-wrap { display: none; }
  .profile-button { display: grid; width: 40px; height: 40px; min-height: 40px; place-items: center; padding: 0; }
  .profile-button > span:last-child { display: none; }
  .header-profile-avatar { width: 28px; height: 28px; }
  .topbar .header-write { min-width: 62px; height: 40px; border-radius: 9px; padding: 0 10px; }
  .notifications { position: fixed; top: 82px; right: 10px; left: 10px; width: auto; }
  .layout { display: block; margin-top: 10px; }
  .browse-panel {
    position: fixed;
    z-index: 40;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(276px, 84vw);
    max-height: 100dvh;
    overflow-y: auto;
    margin: 0;
    border: 0;
    border-radius: 0 10px 10px 0;
    padding: 18px 16px;
    background: var(--surface);
    box-shadow: 14px 0 34px rgb(23 25 27 / 18%);
    transform: translateX(calc(-100% - 16px));
    transition: transform 180ms ease;
  }
  .browse-panel.mobile-open { transform: translateX(0); }
  .browse-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .browse-panel h2 { display: block; margin: 0; font-size: 18px; }
  .browse-close { display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 50%; padding: 0; background: var(--canvas); color: var(--muted); font-size: 24px; line-height: 1; }
  .browse-menu { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 18px; }
  .browse-button { width: 100%; height: 42px; padding: 0 14px; text-align: left; }
  .mobile-board-backdrop { position: fixed; z-index: 35; inset: 0; display: block; width: 100%; border: 0; padding: 0; background: rgb(20 29 26 / 42%); }
  .info-panel { display: none; }
  .feed-heading { align-items: center; }
  .feed-heading h1 { font-size: 22px; }
  .feed-heading p { max-width: 240px; font-size: 11px; }
  .page-count { width: 76px; height: 30px; font-size: 10px; }
  .feed-tools { grid-template-columns: minmax(0, 1fr) minmax(0, 102px); }
  .sort-select { width: 102px; }
  .search-field,
  .search-submit,
  .sort-select { height: 38px; }
  .post-card { min-height: 104px; contain-intrinsic-size: 104px; }
  .post-card-open { grid-template-columns: minmax(0, 1fr); min-height: 102px; gap: 6px; padding: 10px 11px; }
  .avatar { width: 28px; height: 28px; }
  .post-meta { grid-template-columns: 22px minmax(0, 1fr); gap: 7px; font-size: 11px; }
  .avatar.post-card-avatar { width: 22px; height: 22px; }
  .post-meta-copy { gap: 3px 6px; }
  .post-card h2 { display: -webkit-box; margin: 5px 0 2px; overflow: hidden; font-size: 16px; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .post-card p { display: -webkit-box; margin-bottom: 6px; overflow: hidden; font-size: 13px; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
  .post-stats { grid-column: 1; flex-direction: row; align-items: center; gap: 12px; border-left: 0; padding: 1px 28px 0 29px; text-align: left; }
  .post-stats strong,
  .post-stats span { display: inline-flex; align-items: center; margin: 0; line-height: 1; }
  .bookmark-button { right: 12px; bottom: 10px; }
  .detail-panel,
  .editor-panel { min-height: 0; padding: 15px; }
  .content-title { font-size: 23px; overflow-wrap: anywhere; }
  .detail-actions { flex-wrap: wrap; }
  .comment-form { grid-template-columns: minmax(0, 1fr) auto; }
  .profile-hero { grid-template-columns: 50px minmax(0, 1fr) auto; gap: 12px; padding: 16px; }
  .profile-avatar { width: 50px; height: 50px; font-size: 18px; }
  .profile-identity h1 { font-size: 20px; }
  .profile-edit, .profile-signout { min-height: 32px; padding: 0 9px; font-size: 11px; }
  .profile-stats { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 8px; border-top: 1px solid #e8ebea; padding-top: 12px; }
  .profile-stats div { min-width: 0; }
  .profile-tabs { padding: 0 4px; }
  .profile-tab-button { flex: 1; justify-content: center; padding: 0 9px; font-size: 11px; }
  .profile-tab-button::after { right: 8px; left: 8px; }
  .profile-tab-button img { width: 14px; height: 14px; }
  .profile-tab-button img + span { display: none; }
  .profile-tab-content { min-height: 250px; padding: 18px 16px 22px; }
  .profile-settings { grid-template-columns: minmax(0, 1fr); }
  .profile-settings .profile-photo-field,
  .profile-settings .settings-actions { grid-column: auto; }
  .settings-actions .primary-button { width: 100%; }
  .settings-language-form { grid-template-columns: minmax(0, 1fr); }
  .settings-language-form .secondary-button,
  .settings-form-actions .primary-button { width: 100%; }
  .profile-row-main { padding-right: 38px; }
  .profile-row-main strong,
  .profile-row-main p { white-space: normal; overflow-wrap: anywhere; }
}

@media (max-width: 600px) {
  .shell { padding-right: 8px; padding-left: 8px; }
  .topbar { height: 62px; min-height: 62px; max-height: 62px; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 6px; padding: 7px 8px; }
  .mobile-board-toggle { width: 38px; height: 38px; }
  .brand-zone { width: min(100%, 88px); max-width: 88px; height: 38px; }
  .brand { max-width: 88px; height: 38px; max-height: 38px; }
  .brand-logo { max-width: 88px; max-height: 38px; }
  .icon-button { width: 38px; height: 38px; }
  .profile-button { width: 38px; height: 38px; min-height: 38px; }
  .header-profile-avatar { width: 27px; height: 27px; }
  .topbar .header-write { min-width: 56px; height: 38px; padding: 0 8px; }
  .layout { margin-top: 8px; }
  .feed-heading { margin-bottom: 9px; }
  .feed-heading h1 { font-size: 21px; }
  .feed-tools { grid-template-columns: minmax(0, 1fr); gap: 7px; margin-bottom: 9px; padding: 0; }
  .search-group { grid-template-columns: minmax(0, 1fr) 72px; gap: 6px; }
  .search-submit { min-width: 0; padding: 0 9px; }
  .sort-select { justify-self: stretch; width: 100%; padding-right: 34px; }
  .post-list { gap: 8px; }
  .post-card { min-height: 0; border-radius: 7px; contain-intrinsic-size: 112px; }
  .post-card-open { min-height: 0; gap: 5px; padding: 11px 12px 9px; }
  .post-card h2 { margin-top: 5px; font-size: 15px; line-height: 1.25; }
  .post-card p { margin-bottom: 6px; font-size: 12px; line-height: 1.35; }
  .post-meta { font-size: 10px; }
  .post-stats { margin-top: 1px; border-top: 1px solid #edf0ef; padding: 7px 30px 0 0; }
  .bookmark-button { right: 10px; bottom: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toast { transition: none; }
}

.auth-dialog { width: min(440px, calc(100% - 28px)); border: 0; border-radius: 18px; padding: 0; color: #26302e; box-shadow: 0 24px 70px rgba(25, 38, 34, .25); }
.auth-dialog::backdrop { background: rgba(20, 29, 26, .48); backdrop-filter: blur(2px); }
.auth-content { padding: 32px; }
.auth-content h1 { margin: 5px 0 10px; font-size: 26px; }
.auth-content > p { color: #65706d; line-height: 1.55; }
.google-existing-account-dialog .primary-button { width: 100%; margin-top: 18px; }
.check-email-close-button { width: 100%; margin-top: 18px; }
.dialog-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f0f3f2; color: #52605c; font-size: 24px; cursor: pointer; }
.auth-form { display: grid; gap: 9px; margin-top: 22px; }
.auth-form label { font-size: 13px; font-weight: 700; }
.auth-form-error { display: none; margin: 1px 0 2px; border: 1px solid #e7c3bd; border-radius: 5px; padding: 9px 11px; background: #fff7f5; color: #9b4136; font-size: 12px; line-height: 1.45; }
.auth-form-error:not(:empty) { display: block; }
.auth-form .form-control[aria-invalid="true"] { border-color: #b85b50; box-shadow: inset 0 0 0 1px rgb(184 91 80 / 12%); }
.auth-form .primary-button, .auth-google { width: 100%; margin-top: 4px; }
.contact-dialog { width: min(500px, calc(100% - 28px)); border: 0; border-radius: 18px; padding: 0; color: #26302e; box-shadow: 0 24px 70px rgba(25, 38, 34, .25); }
.contact-dialog::backdrop { background: rgba(20, 29, 26, .48); backdrop-filter: blur(2px); }
.contact-content { padding: 32px; }
.contact-content h1 { margin: 5px 0 10px; font-size: 26px; }
.contact-content > p { margin: 0; color: #65706d; line-height: 1.55; }
.contact-form { display: grid; gap: 9px; margin-top: 22px; }
.contact-form label { font-size: 13px; font-weight: 700; }
.contact-form .primary-button { width: 100%; margin-top: 4px; }
.delete-account-dialog { width: min(480px, calc(100% - 28px)); border: 0; border-radius: 18px; padding: 0; color: #26302e; box-shadow: 0 24px 70px rgba(25, 38, 34, .25); }
.delete-account-dialog::backdrop { background: rgba(20, 29, 26, .55); backdrop-filter: blur(2px); }
.delete-account-content { padding: 32px; }
.delete-account-content h1 { margin: 5px 0 10px; font-size: 26px; }
.delete-account-content > p { margin: 0; color: #65706d; line-height: 1.55; }
.delete-account-notice { margin: 20px 0; border: 1px solid #e7c3bd; border-radius: 6px; padding: 13px 14px; background: #fff7f5; color: #773832; }
.delete-account-notice strong { display: block; font-size: 13px; }
.delete-account-notice p { margin: 5px 0 0; font-size: 12px; line-height: 1.5; }
.delete-account-form { display: grid; gap: 9px; }
.delete-account-form label { font-size: 13px; font-weight: 700; }
.delete-account-status { min-height: 17px; margin: 0; color: var(--danger); font-size: 12px; }
.delete-account-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.danger-confirm-button { border-color: var(--danger); background: var(--danger); color: #fff; font-weight: 600; }
.danger-confirm-button:hover:not(:disabled) { background: #842b27; }
.contact-message { min-height: 140px !important; }
.contact-status { min-height: 18px; margin: 0; color: var(--teal); font-size: 12px; }
.auth-actions { display: grid; gap: 9px; margin-top: 22px; }
.auth-actions .primary-button, .auth-actions .secondary-button { width: 100%; }
.auth-dismiss-day, .auth-back-button, .auth-forgot-button { width: 100%; margin-top: 10px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: #8a9491; font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: #e1e6e4; }
.auth-note { margin: 18px 0 0; font-size: 12px; }
.auth-page {
  display: grid;
  min-height: 480px;
  place-items: center;
  padding: clamp(28px, 7vw, 72px) 20px;
  background:
    radial-gradient(circle at 50% 12%, rgb(47 111 101 / 13%), transparent 34%),
    linear-gradient(180deg, #f8faf9 0%, #f3f6f5 100%);
}
.auth-page .auth-content {
  width: min(440px, 100%);
  margin: 0;
  border: 1px solid rgb(47 111 101 / 18%);
  border-radius: 12px;
  padding: 34px 36px 30px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgb(34 55 49 / 12%);
  text-align: center;
}
.auth-page .auth-content h1 { margin: 7px 0 10px; font-size: 28px; line-height: 1.15; }
.auth-page .auth-content > p:not(.profile-eyebrow) { max-width: 360px; margin: 0 auto; color: var(--muted); font-size: 13px; line-height: 1.65; }
.auth-page .profile-eyebrow { letter-spacing: .08em; }
.auth-page .login-avatar { width: 58px; height: 58px; margin: 0 auto 18px; box-shadow: 0 0 0 8px rgb(227 239 236 / 70%); }
.auth-page .auth-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
.auth-page .auth-actions button { min-height: 44px; }
.auth-page .auth-form { text-align: left; }
.auth-page .auth-form .form-control { height: 44px; }
.auth-page .auth-dismiss-day { margin-top: 18px; font-size: 11px; }

@media (max-width: 520px) {
  .auth-page { min-height: 420px; padding: 22px 12px; }
  .auth-page .auth-content { padding: 28px 22px 24px; }
  .auth-page .auth-content h1 { font-size: 24px; }
  .auth-page .auth-actions { grid-template-columns: 1fr; }
}
