/* NBC 360 connected application — additions to the original visual system. */
body {
  overflow-x: hidden;
}
.post-description,
.profile-bio {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.post-title,
.post-tags,
.post-content {
  overflow-wrap: anywhere;
}
.avatar {
  background: #e4f0e9;
  color: #176f5c;
  overflow: hidden;
  flex-shrink: 0;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar.large {
  width: 88px;
  height: 88px;
  font-size: 26px;
}
.text-action {
  font-size: 12px;
}
.btn {
  min-height: 42px;
}
.btn.small-btn {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 11px;
}
.button-group {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.danger-text {
  color: #ad5044 !important;
}
.loading-state {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  flex-direction: column;
  color: #7a8c81;
}
.spinner {
  width: 27px;
  height: 27px;
  border: 3px solid #deeee5;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.boot-screen {
  min-height: 90vh;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
}
.boot-screen > img {
  width: 120px;
}
.boot-screen > h1 {
  font-size: 25px;
}
.boot-screen > p {
  max-width: 560px;
  color: #6e8175;
}
.boot-screen .loading-state {
  min-height: 110px;
}
.page-error {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  max-width: 650px;
  margin: 40px auto;
  padding: 40px;
  text-align: center;
}
.page-error > .icon {
  width: 38px;
  height: 38px;
  color: var(--green);
  margin-bottom: 15px;
}
.page-error h2 {
  font-size: 22px;
}
.page-error p {
  margin: 14px 0 22px;
  color: #7c8c82;
}
.notice-box {
  background: #edf6f0;
  border: 1px solid #dcece2;
  border-radius: 10px;
  padding: 13px 16px;
  color: #496e58;
  font-size: 12px;
  line-height: 1.9;
  margin: 12px 0 18px;
}
.login-page {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 100dvh;
  background: white;
}
.login-story {
  background: linear-gradient(140deg, #edf4ea, #f5f7f1 55%, #dbece0);
  padding: 45px max(7vw, 35px) 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  width: max-content;
  margin-bottom: 60px;
}
.login-brand img {
  width: 106px;
  height: auto;
}
.login-brand > span {
  color: #126e84;
  border-left: 1px solid #bcd6ca;
  padding-left: 15px;
  font-size: 39px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -2px;
}
.login-brand sup {
  font-size: 15px;
  vertical-align: top;
  letter-spacing: 0;
}
.login-story > .eyebrow {
  color: #638771;
  font-size: 10px;
  letter-spacing: 1.9px;
  margin-bottom: 18px;
}
.login-story h1 {
  font-size: clamp(40px, 4vw, 58px);
  line-height: 1.25;
  letter-spacing: -2.8px;
  font-weight: 700;
  color: #183f32;
}
.login-story > p {
  font-size: 13px;
  line-height: 2;
  color: #718b77;
  margin-top: 21px;
}
.login-gallery {
  height: 240px;
  display: flex;
  gap: 16px;
  position: relative;
  margin: 33px 0 30px;
  max-width: 410px;
}
.login-gallery > img {
  width: 41%;
  height: 100%;
  object-fit: cover;
  border-radius: 60px 60px 14px 14px;
  box-shadow: 0 10px 25px #214e3010;
}
.login-gallery > img + img {
  height: 85%;
  align-self: flex-end;
  border-radius: 14px 14px 60px 14px;
}
.login-gallery > span {
  position: absolute;
  right: -12px;
  top: 5px;
  width: 132px;
  padding: 14px 16px;
  background: #0e7764;
  color: #fff;
  box-shadow: 0 10px 25px #1a4e3020;
  border-radius: 13px;
  transform: rotate(5deg);
}
.login-gallery strong {
  display: block;
  font-size: 10px;
  line-height: 1.8;
  font-weight: 500;
  margin-top: 7px;
}
.login-gallery > span .icon {
  width: 23px;
  height: 23px;
}
.login-features {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: #688472;
  font-size: 10px;
}
.login-features span {
  display: flex;
  gap: 6px;
  align-items: center;
}
.login-features .icon {
  width: 15px;
  height: 15px;
}
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 45px;
}
.login-panel-inner {
  width: 100%;
  max-width: 390px;
}
.section-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #95a696;
}
.login-panel h2 {
  font-size: 31px;
  letter-spacing: -1.4px;
  line-height: 1.5;
  color: #294738;
  margin: 15px 0 10px;
}
.login-subtitle {
  color: #87998b;
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 30px;
}
.login-panel .form-group {
  margin-bottom: 20px;
}
.login-panel .form-group > label {
  font-size: 12px;
}
.login-panel .form-group input {
  background: #fbfcf9;
  min-height: 48px;
  font-size: 14px;
}
.login-help {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin: -2px 0 22px;
  font-size: 10px;
  color: #91a18e;
}
.login-help button {
  font-size: 10px;
  color: var(--green);
}
.login-panel .auth-submit {
  min-height: 48px;
  font-size: 13px;
}
.login-footer {
  font-size: 10px;
  color: #a4afa1;
  text-align: center;
  margin-top: 33px;
}
.login-panel .field-error {
  margin-bottom: 15px;
}
.mobile-search-close {
  display: none;
}
.center-play {
  position: absolute;
  z-index: 4;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 61px;
  height: 61px;
  border-radius: 50%;
  background: #ffffff28;
  backdrop-filter: blur(5px);
  border: 1px solid #ffffff55;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
}
.center-play .icon {
  width: 28px;
  height: 28px;
  fill: #fff;
  stroke: #fff;
  margin-left: 3px;
}
.video-shell.paused .center-play {
  display: flex;
}
.video-shell video:focus-visible {
  outline-offset: -4px;
}
.video-progress {
  min-width: 20px;
}
.post-status {
  margin: 10px 0 16px;
}
.post-status p {
  font-size: 11px;
  color: #8d7253;
  margin-top: 7px;
}
.post-more {
  display: flex;
  gap: 15px;
  padding: 3px 0 12px;
}
.post-more button {
  font-size: 9px;
  color: #99a69b;
  padding: 4px 0;
}
.post-more button:hover {
  color: var(--green);
}
.post-tags button {
  font-size: inherit;
  color: inherit;
  padding: 0;
}
.post-actions .save-action {
  margin-left: auto;
}
.comment-peek > .icon {
  color: #8ca394;
  margin: 5px 5px 0 0;
  width: 20px;
}
.rail-community {
  display: flex;
  text-align: left;
  align-items: center;
  width: 100%;
  gap: 9px;
  margin: 15px 0;
}
.rail-community strong {
  display: block;
  font-size: 11px;
}
.rail-community small {
  font-size: 9px;
  color: #93a393;
  display: block;
  margin-top: 3px;
}
.rail-community > .icon {
  margin-left: auto;
  width: 14px;
  color: #a4b2a5;
}
.community-mini {
  font-size: 20px;
  background: #f2f7ef;
  border-radius: 9px;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  margin: 25px 0;
}
.pagination > span {
  color: #91a18e;
  font-size: 11px;
}
.pagination .btn {
  font-size: 11px;
  min-height: 35px;
  padding: 6px 12px;
}
.document-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
}
.document-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 23px;
  border-radius: 14px;
  min-width: 0;
}
.document-card h3 {
  font-size: 16px;
  line-height: 1.7;
  margin: 9px 0;
}
.document-card > p {
  font-size: 11px;
  color: #96a291;
  margin-bottom: 18px;
}
.document-card .text-action {
  margin-top: 15px;
  font-size: 11px;
  color: var(--green);
}
.document-icon {
  height: 90px;
  background: #f2f6ed;
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #7c9d79;
}
.document-icon > .icon {
  width: 36px;
  height: 36px;
}
.document-icon > span {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
}
.document-card .attachment {
  width: 100%;
  text-align: left;
}
.document-card .attachment-text strong {
  font-size: 11px;
  line-height: 1.7;
}
.mini-post {
  text-align: left;
  border: 1px solid var(--line);
  background: white;
}
.mini-poster {
  width: 100%;
  display: block;
  background: #dce9df;
}
.mini-post h3 button {
  text-align: left;
  padding: 0;
  font-size: inherit;
  line-height: inherit;
}
.poster-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  color: #88a38e;
}
.poster-placeholder > .icon {
  width: 45px;
  height: 45px;
}
.mini-status {
  padding: 0 13px 10px;
}
.mini-tools {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 18px;
  padding: 8px 13px;
}
.mini-tools button {
  font-size: 10px;
  color: var(--green);
  padding: 4px 0;
}
.profile-account-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 23px;
}
.profile-tabs button.active {
  cursor: default;
}
.profile-bio {
  white-space: pre-wrap;
}
.avatar-edit {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 23px;
}
.avatar-edit .form-hint {
  margin-top: 9px;
}
.wide-dialog {
  width: 740px;
}
.discussion-dialog {
  width: 650px;
}
.attachment {
  width: 100%;
  text-align: left;
}
.rating-stars .star-button {
  min-width: 38px;
  min-height: 38px;
}
.video-error .btn {
  margin-top: 12px;
}
.upload-zone {
  display: block;
  cursor: pointer;
}
.upload-zone input {
  font-size: 16px;
}
.upload-progress {
  padding: 13px 0;
  display: grid;
  gap: 8px;
}
.upload-progress progress {
  width: 100%;
  height: 12px;
  accent-color: var(--green);
}
.upload-progress span {
  font-size: 11px;
  color: var(--green);
}
#upload-preview video {
  width: 100%;
  max-height: 230px;
  background: #18382a;
  border-radius: 10px;
  margin: 3px 0 20px;
}
.notice-list {
  margin-top: 20px;
}
.notice.unread {
  border-left: 3px solid #2e9c7d;
  padding-left: 10px;
}
.notice .text-action {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  color: var(--green);
}
.status-badge,
.role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  background: #f0f4ef;
  color: #71856f;
}
.status-active,
.status-published {
  background: #e5f5e9;
  color: #37825e;
}
.status-pending,
.status-open {
  background: #fff4d9;
  color: #9b752b;
}
.status-locked,
.status-hidden,
.status-rejected {
  background: #f9ebe6;
  color: #a1664d;
}
.status-resolved {
  background: #e8f3f2;
  color: #387d75;
}
.role-admin {
  background: #e8effb;
  color: #486b9e;
}
.role-moderator {
  background: #f0eafb;
  color: #8b6b9f;
}
.role-member {
  background: #edf4ed;
  color: #6b8967;
}
.copy-content {
  width: 100%;
  min-height: 150px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font: 13px/1.8 monospace;
}
.admin-tabs {
  display: flex;
  gap: 7px;
  overflow: auto;
  padding: 5px 1px 15px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 24px;
  scrollbar-width: none;
}
.admin-tabs button {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 12px;
  padding: 9px 13px;
  border-radius: 8px;
  color: #869584;
}
.admin-tabs .icon {
  width: 16px;
  height: 16px;
}
.admin-tabs button.active {
  color: var(--green);
  background: #e9f4eb;
  font-weight: 600;
}
.admin-main .page-heading {
  margin-bottom: 18px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
}
.stat-card {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: 0.2s;
  min-width: 0;
}
.stat-card:is(button):hover {
  border-color: #bcd6c3;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px #2b543e08;
}
.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  background: #eef5ec;
  border-radius: 10px;
  color: #739777;
  margin-bottom: 18px;
}
.stat-label {
  font-size: 11px;
  color: #90a08a;
  line-height: 1.6;
}
.stat-card > strong {
  font-size: 29px;
  color: #31573d;
  margin-top: 7px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: -0.7px;
}
.stat-arrow {
  position: absolute;
  right: 21px;
  top: 20px;
  color: #b5c5b0;
  font-size: 20px;
}
.admin-welcome {
  background: linear-gradient(130deg, #e8f1df, #f4f7ed);
  border: 1px solid #dfead8;
  border-radius: 16px;
  padding: 34px;
  margin: 25px 0;
  display: flex;
  justify-content: space-between;
  gap: 35px;
}
.admin-welcome .eyebrow {
  color: #85a078;
  font-size: 9px;
}
.admin-welcome h2 {
  font-size: 25px;
  line-height: 1.5;
  color: #42613b;
  margin: 10px 0 13px;
  letter-spacing: -0.7px;
}
.admin-welcome p {
  font-size: 12px;
  color: #8da080;
  max-width: 540px;
  line-height: 1.9;
}
.admin-quick-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-width: 210px;
}
.admin-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.admin-section-heading h2 {
  font-size: 19px;
  color: #3a573c;
  letter-spacing: -0.5px;
}
.admin-section-heading p {
  font-size: 11px;
  color: #91a08a;
  margin-top: 5px;
}
.admin-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
}
.admin-filter input,
.admin-filter select {
  padding: 10px 12px;
  min-height: 41px;
  border: 1px solid #dfe9dc;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
}
.admin-filter input {
  min-width: 200px;
  flex: 1;
}
.admin-filter select {
  max-width: 200px;
}
.table-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  max-width: 100%;
}
.data-table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
}
.data-table th {
  font-size: 10px;
  font-weight: 600;
  color: #9ba891;
  background: #fafcf6;
  white-space: nowrap;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.data-table td {
  padding: 15px 16px;
  border-bottom: 1px solid #eff3e9;
  vertical-align: middle;
  min-width: 95px;
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.data-table tr:hover {
  background: #fbfdf8;
}
.data-table td strong {
  font-size: 12px;
  font-weight: 600;
  display: block;
}
.data-table td small {
  display: block;
  font-size: 10px;
  color: #99a591;
  margin-top: 5px;
}
.data-table td code {
  font: 10px/1.7 monospace;
  color: #78906a;
  overflow-wrap: anywhere;
}
.table-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}
.table-user .avatar {
  width: 35px;
  height: 35px;
}
.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  min-width: 150px;
}
.table-actions .text-action {
  font-size: 10px;
  color: #829978;
  padding: 3px 0;
}
.data-table .table-empty {
  text-align: center;
  padding: 45px;
  color: #a1ad97;
}
.wrap-cell {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-width: 240px;
  max-width: 450px;
}
.table-post {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 270px;
  max-width: 430px;
}
.table-post > img {
  width: 42px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.credential-list {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}
.credential-card {
  border: 1px solid #d9e8d3;
  border-radius: 10px;
  padding: 18px;
  background: #fafff6;
}
.credential-card > strong {
  font-size: 13px;
  color: #567845;
}
.credential-card dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 7px 12px;
  font-size: 12px;
  margin: 16px 0;
}
.credential-card dt {
  color: #8b9f7e;
}
.credential-card dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.credential-card code {
  font-size: 13px;
  padding: 3px 6px;
  background: #edf4e4;
  border-radius: 5px;
  user-select: all;
}
.report-list {
  display: grid;
  gap: 16px;
}
.report-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 23px;
}
.report-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.report-top strong {
  font-size: 13px;
}
.report-reason {
  font-size: 13px;
  line-height: 1.9;
  white-space: pre-wrap;
  margin: 14px 0;
  color: #647c59;
}
.report-card blockquote {
  margin: 12px 0;
  padding: 10px 16px;
  background: #f5f8ef;
  border-left: 3px solid #dce7ce;
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.report-card small {
  color: #9ca98f;
  font-size: 10px;
}
.report-card .button-group {
  margin-top: 17px;
}
.resolution {
  margin-top: 15px;
  background: #f2f8ef;
  border-radius: 7px;
  padding: 11px 14px;
  font-size: 12px;
  white-space: pre-wrap;
}
.category-admin-grid {
  display: grid;
  gap: 15px;
}
.category-admin-card {
  display: flex;
  align-items: center;
  gap: 19px;
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.category-admin-card > .community-emoji {
  font-size: 28px;
  flex-shrink: 0;
}
.category-admin-card > div {
  flex: 1;
}
.category-admin-card h3 {
  font-size: 15px;
}
.category-admin-card p {
  font-size: 12px;
  color: #8c9e7f;
  margin: 5px 0;
}
.category-admin-card small {
  font-size: 10px;
  color: #9eac91;
}
.settings-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px;
  max-width: 750px;
}
.settings-card h2 {
  font-size: 21px;
}
.settings-card > .muted {
  font-size: 12px;
  margin: 6px 0 25px;
}
.setting-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-top: 1px solid var(--line);
  padding: 23px 0;
  cursor: pointer;
}
.setting-toggle strong {
  font-size: 13px;
  display: block;
}
.setting-toggle small {
  font-size: 11px;
  color: #93a287;
  display: block;
  line-height: 1.9;
  margin-top: 6px;
}
.setting-toggle input {
  width: 21px;
  height: 21px;
  accent-color: var(--green);
  flex-shrink: 0;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  cursor: pointer;
  margin: 10px 0 15px;
}
.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}
@media (max-width: 1250px) {
  .login-story {
    padding-left: 50px;
    padding-right: 40px;
  }
  .login-brand {
    margin-bottom: 40px;
  }
  .login-gallery {
    height: 210px;
  }
  .document-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats-grid {
    gap: 12px;
  }
  .stat-card {
    padding: 19px;
  }
  .stat-label {
    font-size: 10px;
  }
  .admin-filter input {
    min-width: 170px;
  }
}
@media (max-width: 1000px) {
  .login-panel {
    padding: 35px;
  }
  .login-story {
    padding: 35px;
  }
  .login-gallery {
    height: 190px;
  }
  .login-gallery > span {
    right: 0;
    width: 110px;
  }
  .login-features {
    gap: 12px;
    font-size: 9px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-welcome {
    padding: 25px;
    flex-direction: column;
    gap: 20px;
  }
  .admin-quick-actions {
    flex-direction: row;
    justify-content: flex-start;
    min-width: 0;
    flex-wrap: wrap;
  }
  .admin-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
}
@media (max-width: 760px) {
  .login-page {
    display: block;
  }
  .login-story {
    padding: 27px 25px 29px;
    min-height: 0;
  }
  .login-brand {
    margin-bottom: 25px;
    gap: 10px;
  }
  .login-brand img {
    width: 75px;
  }
  .login-brand > span {
    font-size: 29px;
    padding-left: 10px;
  }
  .login-brand sup {
    font-size: 12px;
  }
  .login-story > .eyebrow {
    font-size: 8px;
    margin-bottom: 10px;
  }
  .login-story h1 {
    font-size: 32px;
    line-height: 1.3;
    letter-spacing: -1.2px;
  }
  .login-story > p {
    font-size: 11px;
    line-height: 1.9;
    margin-top: 12px;
  }
  .login-gallery {
    display: none;
  }
  .login-features {
    margin-top: 23px;
    font-size: 9px;
    gap: 19px;
  }
  .login-panel {
    padding: 30px 25px 35px;
  }
  .login-panel-inner {
    max-width: none;
  }
  .login-panel h2 {
    font-size: 25px;
    line-height: 1.5;
    margin: 9px 0;
  }
  .login-subtitle {
    font-size: 11px;
    margin-bottom: 24px;
  }
  .login-panel .form-group input {
    font-size: 16px;
  }
  .login-help {
    font-size: 9px;
  }
  .login-footer {
    font-size: 9px;
    margin-top: 25px;
  }
  .login-panel > .section-kicker {
    font-size: 9px;
  }
  .topbar.search-open .mobile-search-close {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
  }
  .mobile-search-close .icon {
    width: 16px;
  }
  .search-wrap {
    display: flex;
  }
  .pagination {
    gap: 9px;
    margin-top: 20px;
  }
  .pagination > span {
    font-size: 9px;
  }
  .pagination .btn {
    padding: 6px 9px;
    font-size: 10px;
    min-height: 36px;
  }
  .post-more {
    padding: 0 0 13px;
  }
  .post-more button {
    font-size: 10px;
    min-height: 32px;
  }
  .post-description {
    font-size: 13px;
  }
  .center-play {
    width: 58px;
    height: 58px;
  }
  .document-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .document-card {
    padding: 21px;
  }
  .document-icon {
    height: 70px;
    margin-bottom: 16px;
  }
  .document-card h3 {
    font-size: 16px;
  }
  .profile-account-tools .btn {
    font-size: 10px;
    padding: 8px 11px;
    min-height: 39px;
  }
  .profile-account-tools {
    gap: 8px;
    margin-top: 19px;
  }
  .profile-info > .avatar.large {
    width: 77px;
    height: 77px;
  }
  .mini-post {
    border-radius: 10px;
  }
  .mini-post .mini-poster {
    height: 210px;
  }
  .mini-tools button {
    font-size: 10px;
    min-height: 32px;
  }
  .mini-status .status-badge {
    font-size: 8px;
  }
  .wide-dialog,
  .discussion-dialog {
    width: 100vw;
  }
  .modal-body .field-error {
    font-size: 12px;
  }
  .avatar-edit {
    gap: 15px;
  }
  .avatar-edit .avatar.large {
    width: 70px;
    height: 70px;
  }
  .avatar-edit .btn {
    font-size: 11px;
  }
  .avatar-edit .form-hint {
    font-size: 9px;
  }
  .copy-content {
    font-size: 12px;
  }
  .status-badge,
  .role-badge {
    font-size: 9px;
  }
  .admin-main .page-heading {
    align-items: center;
  }
  .admin-main .page-heading h1 {
    font-size: 23px;
  }
  .admin-main .page-heading p {
    font-size: 10px;
  }
  .admin-tabs {
    margin-left: -4px;
    margin-right: -4px;
    gap: 4px;
    padding-bottom: 13px;
  }
  .admin-tabs button {
    font-size: 11px;
    padding: 9px 11px;
    min-height: 41px;
  }
  .admin-tabs .icon {
    width: 15px;
  }
  .stats-grid {
    gap: 11px;
  }
  .stat-card {
    padding: 17px;
    min-height: 157px;
  }
  .stat-icon {
    width: 33px;
    height: 33px;
    margin-bottom: 14px;
  }
  .stat-icon .icon {
    width: 18px;
    height: 18px;
  }
  .stat-label {
    font-size: 10px;
  }
  .stat-card > strong {
    font-size: 25px;
    margin-top: 4px;
  }
  .stat-arrow {
    top: 14px;
    right: 15px;
    font-size: 17px;
  }
  .admin-welcome {
    margin: 20px 0;
    padding: 23px;
  }
  .admin-welcome h2 {
    font-size: 22px;
  }
  .admin-welcome p {
    font-size: 11px;
  }
  .admin-quick-actions {
    gap: 8px;
  }
  .admin-quick-actions .btn {
    font-size: 10px;
    min-height: 39px;
    padding: 8px 10px;
  }
  .admin-section-heading h2 {
    font-size: 18px;
  }
  .admin-section-heading p {
    font-size: 10px;
    line-height: 1.9;
  }
  .admin-section-heading .button-group {
    width: 100%;
  }
  .admin-section-heading .button-group .btn {
    flex: 1;
    font-size: 10px;
    padding: 9px 10px;
  }
  .admin-filter {
    gap: 8px;
  }
  .admin-filter input {
    width: 100%;
    flex: auto;
    font-size: 16px;
  }
  .admin-filter input::placeholder {
    font-size: 12px;
  }
  .admin-filter select {
    font-size: 13px;
    flex: 1;
    min-width: 130px;
    max-width: none;
  }
  .admin-filter .btn {
    font-size: 11px;
    min-height: 40px;
  }
  .data-table {
    font-size: 11px;
  }
  .data-table th {
    font-size: 10px;
    padding: 12px 13px;
  }
  .data-table td {
    padding: 13px;
  }
  .data-table .table-user strong {
    font-size: 12px;
  }
  .table-actions .btn {
    min-height: 35px;
    font-size: 10px;
  }
  .table-actions .text-action {
    min-height: 30px;
    display: flex;
    align-items: center;
  }
  .table-post {
    min-width: 225px;
  }
  .report-card {
    padding: 19px;
  }
  .report-reason {
    font-size: 12px;
  }
  .report-top strong {
    font-size: 12px;
  }
  .report-card blockquote {
    font-size: 11px;
  }
  .category-admin-card {
    padding: 18px;
    gap: 13px;
    flex-wrap: wrap;
  }
  .category-admin-card > div {
    min-width: 190px;
  }
  .category-admin-card > .btn {
    margin-left: 40px;
    min-height: 36px;
    font-size: 11px;
  }
  .category-admin-card h3 {
    font-size: 14px;
  }
  .category-admin-card p {
    font-size: 11px;
  }
  .settings-card {
    padding: 22px;
  }
  .settings-card h2 {
    font-size: 19px;
  }
  .settings-card > .muted {
    font-size: 11px;
  }
  .setting-toggle {
    gap: 16px;
    padding: 19px 0;
  }
  .setting-toggle strong {
    font-size: 12px;
  }
  .setting-toggle small {
    font-size: 10px;
  }
  .credential-card {
    padding: 16px;
  }
  .credential-card dl {
    grid-template-columns: 100px 1fr;
    font-size: 11px;
    gap: 9px;
  }
  .credential-card code {
    font-size: 12px;
  }
  .credential-list {
    gap: 12px;
  }
  .notice-box {
    font-size: 11px;
  }
  .page-error {
    padding: 27px;
  }
  .page-error h2 {
    font-size: 20px;
  }
  .page-error p {
    font-size: 12px;
  }
  .comment-name {
    flex-wrap: wrap;
    gap: 3px 8px;
  }
  .comment-tools {
    flex-wrap: wrap;
    gap: 3px 16px;
  }
  .comment-tools button {
    font-size: 10px;
  }
  .comment.reply {
    padding-left: 15px;
    margin-left: 8px;
  }
  .comment-text {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
  }
}

/* Rich community posts: one scrolling timeline, explicit playback and detail. */
.timeline-card .post-header { padding: 22px 24px 17px; }
.timeline-card .author-line { margin-bottom: 13px; }
.timeline-card .author-name { font-size: 13px; }
.timeline-card .author-sub { white-space: normal; font-size: 10px; line-height: 1.6; display: block; }
.timeline-card .author-trigger > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.post-kind-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 10px; }
.post-kind-line .post-category { margin: 0; font-size: 10px; }
.post-kind { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: #7c9087; }
.post-kind .icon { width: 13px; height: 13px; }
.timeline-card .post-title { margin: 9px 0 8px; font-size: 19px; line-height: 1.5; overflow-wrap: anywhere; }
.timeline-card .post-title button { font: inherit; text-align: left; padding: 0; color: inherit; }
.timeline-card .post-description { margin: 0; font-size: 13px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.timeline-card .post-content { padding: 15px 24px 0; min-width: 0; }
.timeline-card .post-tags:empty { display: none; }
.timeline-card .video-shell { width: 100%; min-height: 0; max-height: 480px; aspect-ratio: 16 / 10; touch-action: pan-y; }
.timeline-card .video-shell video { object-fit: contain; }
.timeline-card .video-overlay .eyebrow, .timeline-card .video-overlay h2 { display: none; }
.timeline-card .video-shell:after { background: linear-gradient(180deg, #001b1028, transparent 30%, transparent 65%, #031813b8); }
.timeline-card .post-more { flex-wrap: wrap; gap: 9px 18px; }
.timeline-card .post-detail-link { margin-right: auto; display: inline-flex; align-items: center; gap: 4px; color: #237d62; font-weight: 600; }
.post-detail-link .icon { width: 14px; height: 14px; }
.preview-dialog { width: 820px; }
.preview-dialog .timeline-card .video-shell { min-height: 0; max-height: 55dvh; touch-action: pan-y; }
.text-post-surface { background: var(--post-bg, #e8f4ef); color: var(--post-fg, #172b26); min-height: 270px; padding: 42px 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.text-post-surface p { color: inherit; font-size: 28px; font-weight: 650; line-height: 1.6; text-align: center; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; max-width: 34ch; width: 100%; }
.text-post-surface.long-text p { font-size: 18px; font-weight: 500; line-height: 1.8; max-width: 65ch; text-align: left; }
.text-read-more { color: inherit; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.text-read-more .icon { width: 15px; height: 15px; }
.post-image-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; background: #edf3ef; }
.post-image-grid.image-count-1 { grid-template-columns: minmax(0, 1fr); }
.post-image-cell { padding: 0; width: 100%; min-width: 0; position: relative; overflow: hidden; background: #e6eeea; aspect-ratio: 1 / 1; display: block; }
.post-image-cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.post-image-cell:hover img { transform: scale(1.025); }
.post-image-cell:focus-visible { outline-offset: -4px; }
.image-count-1 .post-image-cell { aspect-ratio: 16 / 11; max-height: 560px; }
.image-count-2 .post-image-cell { aspect-ratio: 4 / 5; }
.image-count-3:not(.all-images) .post-image-cell:first-child { grid-row: span 2; aspect-ratio: auto; }
.image-more { position: absolute; inset: 0; background: #102d28a6; color: white; display: grid; place-items: center; font-size: 36px; font-weight: 650; }
.photo-dialog { width: 1000px; }
.photo-viewer { padding: 18px; text-align: center; }
.photo-viewer > img { display: block; width: 100%; max-height: 64dvh; object-fit: contain; border-radius: 8px; background: #f1f4f2; }
.photo-viewer-nav { display: flex; justify-content: space-between; gap: 12px; margin: 14px 0; }
.mini-poster.mini-text { background: var(--post-bg); color: var(--post-fg); }
.mini-poster.mini-text:after { content: none; }
.mini-text { height: 100%; padding: 42px 22px; display: flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1.6; font-weight: 600; overflow-wrap: anywhere; overflow: hidden; text-align: center; }
.mini-text + .mini-duration, .mini-text ~ .mini-plays { color: #254337; background: #ffffffe6; border-radius: 5px; padding: 3px 6px; }
.table-post-kind, .discussion-kind { flex-shrink: 0; display: grid; place-items: center; background: var(--post-bg, #e8f4ef); color: var(--post-fg, #172b26); width: 52px; height: 58px; border-radius: 8px; }
.discussion-kind { width: 65px; height: 70px; }

/* Composer, text style controls and local image previews. */
.compose-dialog { width: 680px; max-width: calc(100vw - 28px); }
.compose-dialog [hidden], .input-tools [hidden] { display: none !important; }
.compose-dialog .modal-footer { position: sticky; bottom: 0; z-index: 4; }
.compose-author { display: flex; align-items: center; gap: 11px; margin-bottom: 21px; }
.compose-author strong { display: block; font-size: 13px; }
.compose-author span:not(.avatar) { display: block; color: #829489; font-size: 10px; margin-top: 4px; }
.compose-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; background: #f2f6f3; padding: 5px; border-radius: 12px; margin-bottom: 23px; }
.compose-types button { padding: 12px 8px; border-radius: 9px; color: #74877d; display: flex; justify-content: center; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; min-width: 0; }
.compose-types button .icon { width: 17px; height: 17px; }
.compose-types button.active { background: white; color: #247859; box-shadow: 0 2px 8px #123c2710; }
.compose-dialog textarea[name=description] { min-height: 135px; font-size: 15px; line-height: 1.7; resize: vertical; }
.compose-counter { text-align: right; margin: -2px 0 16px; font-size: 10px; color: #8b9b92; }
.text-style-controls { margin: 4px 0 23px; padding: 17px; background: #fafcfb; border: 1px solid #e3ece6; border-radius: 12px; }
.style-heading { display: flex; align-items: center; gap: 8px; font-size: 11px; margin-bottom: 13px; color: #466858; }
.style-heading .icon { width: 17px; height: 17px; }
.color-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.color-presets button { width: 40px; height: 40px; border: 1px solid #dce7df; border-radius: 9px; background: var(--post-bg); color: var(--post-fg); font-size: 15px; font-weight: 650; }
.color-presets button[aria-pressed=true] { outline: 2px solid #317f65; outline-offset: 2px; }
.custom-colors { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.custom-colors label { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; }
.custom-colors input[type=color] { width: 34px; height: 31px; border: 1px solid #d9e4dc; padding: 2px; background: white; border-radius: 5px; cursor: pointer; }
.custom-colors .text-action { font-size: 10px; margin-left: auto; }
.color-contrast { margin: 12px 0; font-size: 10px; line-height: 1.7; }
.color-contrast.contrast-warning { color: #98631d; }
.preview-label { font-size: 9px; font-weight: 650; color: #899b8f; letter-spacing: 1px; margin: 17px 0 9px; }
.compose-text-preview { border-radius: 9px; min-height: 180px; max-height: 350px; padding: 26px 20px; overflow: auto; justify-content: safe center; }
.compose-text-preview p { font-size: 22px; }
.compose-text-preview.long-text p { font-size: 15px; }
.compose-extras { border: 1px solid #e1eae4; border-radius: 11px; margin: 15px 0; }
.compose-extras summary { cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 15px; font-size: 11px; font-weight: 600; }
.compose-extras summary .icon { width: 17px; height: 17px; color: #639b80; }
.compose-extras summary span { margin-left: auto; color: #90a092; font-weight: 400; font-size: 10px; }
.compose-extras[open] summary { border-bottom: 1px solid #e4ece6; }
.compose-extras > div { padding: 18px 16px 1px; }
.compose-review-note { font-size: 10px; line-height: 1.8; }
.image-upload-zone { margin-top: 12px; }
.compose-images { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin: 14px 0; }
.compose-images figure { margin: 0; border: 1px solid #e0e8e2; overflow: hidden; border-radius: 9px; }
.compose-image-thumb { aspect-ratio: 1 / 1; position: relative; background: #edf3ef; }
.compose-image-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.compose-image-thumb > span { position: absolute; left: 7px; top: 7px; border-radius: 5px; background: #183f2dd9; color: white; min-width: 23px; text-align: center; padding: 3px 5px; font-size: 10px; }
.remove-photo { position: absolute; right: 6px; top: 6px; width: 28px; height: 28px; border-radius: 50%; background: #fffffff0; color: #375b49; display: grid; place-items: center; padding: 5px; }
.remove-photo .icon { width: 17px; height: 17px; }
.compose-images figcaption { padding: 9px; font-size: 10px; }
.compose-images figcaption strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.compose-images figcaption > span { display: block; color: #8b9b91; font-size: 9px; margin: 3px 0 7px; }
.compose-images figcaption > div { display: flex; justify-content: space-between; }
.compose-images figcaption button { border: 1px solid #dee8e1; border-radius: 5px; padding: 3px 12px; min-height: 27px; }
.compose-images figcaption .icon { width: 15px; height: 15px; }
.edit-type-label { display: inline-flex; gap: 6px; align-items: center; background: #edf5f0; border-radius: 6px; padding: 6px 9px; font-size: 10px; color: #50836a; margin-bottom: 20px; }
.edit-type-label .icon { width: 14px; height: 14px; }

/* Emoji and speech input are explicitly started by the member. */
.input-tools { margin: -9px 0 13px; }
.input-tools-buttons { display: flex; flex-wrap: wrap; gap: 7px 11px; }
.tool-button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 9px; font-size: 10px; color: #6b8375; border-radius: 7px; background: #f4f8f5; }
.tool-button .icon { width: 16px; height: 16px; }
.tool-button:hover { background: #e8f2eb; color: #2e7f5e; }
.tool-button.listening { color: #a33838; background: #fff0ef; border: 1px solid #edc8c4; }
.emoji-picker { background: #fff; border: 1px solid #dbe7de; border-radius: 12px; box-shadow: 0 6px 22px #183d2410; padding: 13px; margin: 10px 0; max-height: 315px; overflow-y: auto; }
.emoji-picker-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.emoji-picker-heading strong { font-size: 11px; color: #4b6b58; }
.emoji-picker-heading .icon-btn { width: 28px; height: 28px; }
.emoji-picker section + section { margin-top: 11px; }
.emoji-picker h4 { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: #99a89b; margin-bottom: 7px; }
.emoji-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; }
.emoji-grid button { padding: 3px; min-height: 34px; font-size: 23px; line-height: 1; border-radius: 6px; }
.emoji-grid button:hover, .emoji-grid button:focus-visible { background: #edf6ef; }
.speech-status { font-size: 10px; color: #657f6e; line-height: 1.7; margin: 8px 0 0; }
.speech-status:empty { display: none; }
textarea[readonly], input[readonly] { cursor: default; }
.comment-form .input-tools { margin: 9px 0 0 36px; }
.comment-form .emoji-picker { max-height: 220px; }
.comment-form .tool-button { min-height: 30px; font-size: 9px; }
@media (max-width: 760px) {
  .timeline-card .post-header { padding: 17px 18px 14px; }
  .timeline-card .post-content { padding: 12px 18px 0; }
  .timeline-card .post-title { font-size: 17px; }
  .timeline-card .author-name { font-size: 12px; }
  .timeline-card .author-sub { font-size: 9px; }
  .timeline-card .video-shell, .preview-dialog .timeline-card .video-shell { aspect-ratio: 4 / 5; min-height: 0; max-height: 480px; touch-action: pan-y; }
  .preview-dialog .timeline-card .video-shell { max-height: 55dvh; }
  .text-post-surface { min-height: 250px; padding: 30px 24px; }
  .text-post-surface p { font-size: 24px; }
  .text-post-surface.long-text p { font-size: 16px; }
  .image-more { font-size: 29px; }
  .compose-dialog { width: calc(100vw - 20px); max-width: calc(100vw - 20px); }
  .compose-dialog .modal-body { padding: 19px 17px; }
  .compose-dialog .modal-header { padding: 17px; }
  .compose-dialog .modal-footer { padding: 13px 17px; }
  .compose-dialog textarea[name=description] { font-size: 16px; }
  .compose-types { gap: 3px; }
  .compose-types button { font-size: 11px; padding: 10px 5px; gap: 5px; }
  .text-style-controls { padding: 14px 12px; }
  .color-presets { gap: 7px; }
  .color-presets button { width: 34px; height: 34px; font-size: 13px; }
  .custom-colors { gap: 12px; }
  .custom-colors .text-action { margin-left: 0; }
  .compose-text-preview { min-height: 165px; padding: 23px 16px; }
  .compose-text-preview p { font-size: 21px; }
  .compose-text-preview.long-text p { font-size: 15px; }
  .emoji-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .emoji-grid button { min-height: 38px; font-size: 24px; }
  .compose-images { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .tool-button { min-height: 36px; font-size: 10px; }
  .comment-form .input-tools { margin-left: 0; }
  .comment-form .tool-button { min-height: 34px; }
  .photo-viewer { padding: 10px; }
  .photo-viewer > img { max-height: 60dvh; }
  .photo-viewer-nav .btn { padding: 8px 10px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .post-image-cell img { transition: none; }
}
