/* panda-mk — uncommon-style (home + shared base) */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: rgb(35, 39, 51);
}

body {
  background: rgb(35, 39, 51);
  color: #000;
  font-family: arial, helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.5;
}

/* Single page frame shared by every template. The white borders act as the page
   gutters, so #container carries no padding of its own. */
#container {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 2rem);
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  background-color: #fff;
  padding: 1rem;
  margin-top: 1rem;
}

body:has(.login-layout) {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

body:has(.login-layout) #container {
  margin-top: 0;
  flex-shrink: 0;
}

#container:has(.login-layout) {
  min-height: auto;
}

#container:has(.login-layout) #site-header {
  border-bottom: 1px solid #ddd;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
}

#site-header {
  margin-bottom: 0.25rem;
}

.site-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header-login {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 1rem;
}

.site-header-guest {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem 1rem;
  margin-left: auto;
  min-width: 0;
}

.guest-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  font-size: 0.9rem;
}

.guest-nav a {
  color: #003399;
  text-decoration: none;
  white-space: nowrap;
}

.guest-nav a:hover {
  color: #cc0000;
}

.site-logo-banner {
  flex-shrink: 0;
  line-height: 0;
}

.site-logo-banner img {
  display: block;
  width: 220px;
  height: auto;
  object-fit: contain;
}

.site-logo-text {
  flex-shrink: 0;
  line-height: 0;
}

.site-logo-text img {
  display: block;
  width: auto;
  height: 2rem;
  max-width: min(220px, 45vw);
  object-fit: contain;
}

.site-logo-banner:hover,
.site-logo-text:hover,
.site-logo-mark:hover {
  opacity: 0.85;
}

.site-header-brand {
  flex-shrink: 0;
  min-width: 0;
}

.site-header-tagline {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  line-height: 1.25;
  font-weight: normal;
  color: #4a4a4a;
}

.site-logo-mark {
  flex-shrink: 0;
  line-height: 0;
}

.site-logo-mark img {
  display: block;
  height: 2.2rem;
  width: auto;
  object-fit: contain;
}

#site-header .tagline {
  margin-top: 0.35rem;
}

.tagline {
  color: #555;
  font-size: 0.9rem;
}

h2 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

section {
  margin-bottom: 0.5rem;
}

section p {
  margin-bottom: 0.5rem;
}

section ul {
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}

section ul li {
  margin-bottom: 0.2rem;
}

hr {
  border: none;
  border-top: 1px solid #1b1b1b;
  margin: 1rem 0;
}

nav a {
  color: #0000ee;
  text-decoration: none;
}

nav a:visited {
  color: #0000ee;
}

nav a:hover {
  text-decoration: underline;
}

nav a:active {
  color: #ff0000;
}

a {
  color: #0000ee;
  text-decoration: none;
}

a:visited {
  color: #0000ee;
}

a:hover {
  text-decoration: underline;
}

a:active {
  color: #ff0000;
}

.spirit p {
  margin-bottom: 0.25rem;
}

.site-footer-wrap {
  margin-top: auto;
  margin-left: -1rem;
  margin-right: -1rem;
  margin-bottom: -1rem;
  background-color: #f3f3f3;
}

.app-layout .site-footer-wrap {
  margin-top: 1rem;
}

#container:has(.home-page) .site-footer-wrap {
  margin-top: 2rem;
  background-color: #fff;
}

#container:has(.home-page) .site-footer {
  background-color: #fff;
}

.site-footer {
  padding: 1.5rem 1rem 1rem;
  text-align: center;
  color: #3b3b3b;
  font-size: 0.9rem;
  border-top: 1px solid #ddd;
}

.site-footer p {
  margin: 0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.site-footer .footer-tagline {
  margin-bottom: 1rem;
  line-height: 1.5;
}

.site-footer .footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.85rem;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
}

.site-footer .footer-meta {
  font-size: 0.82rem;
  color: #3b3b3b;
}

.site-footer .footer-sep {
  margin: 0 0.35rem;
  color: #888;
}

.site-footer a {
  color: #3b3b3b;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.field {
  margin-bottom: 0.75rem;
}

.field label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
}

.field-label-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}

.field-label-row label {
  margin-bottom: 0;
}

.field-required {
  color: #c00;
}

.field-counter {
  margin-left: auto;
  font-size: 0.75rem;
  color: #667085;
  white-space: nowrap;
}

.post-image-btn {
  display: block;
  box-sizing: border-box;
  width: 100%;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.2;
  padding: 0.45rem 0.6rem;
  margin-top: 0.45rem;
  border: 1px solid #d0d5dd;
  background: #f8f9fb;
  color: #1a1a1a;
  cursor: pointer;
}

.post-image-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.post-image-rule {
  margin: 0.75rem 0 0.85rem;
}

.field-counter.is-near-limit {
  color: #996600;
}

.field-counter.is-at-limit,
.field-counter.is-over-limit {
  color: #c00;
}

.field-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.field-tip-mark {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: help;
  vertical-align: middle;
}

.field-tip-icon {
  display: block;
  width: 12px;
  height: 12px;
  opacity: 0.7;
}

.field-tip-mark:hover,
.field-tip-mark:focus {
  text-decoration: none;
}

.field-tip-mark:hover .field-tip-icon,
.field-tip-mark:focus .field-tip-icon {
  opacity: 1;
}

.field-tip-text {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 0.3rem);
  z-index: 3;
  width: 16.5rem;
  padding: 0.5rem 0.55rem;
  border: 1px solid #aaa;
  background: #fffbe6;
  color: #665800;
  font-size: 0.75rem;
  font-weight: normal;
  line-height: 1.4;
  box-shadow: 1px 1px 0 #ddd;
}

.field-tip:hover .field-tip-text,
.field-tip:focus-within .field-tip-text,
.field-tip.is-open .field-tip-text {
  display: block;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field select {
  width: 100%;
  max-width: 280px;
  border: 1px solid #1b1b1b;
  padding: 0.35rem 0.5rem;
  font-family: sans-serif;
  font-size: 0.9rem;
  background: #fff;
  color: #000;
  outline: none;
}

.password-field {
  display: inline-flex;
  align-items: stretch;
  width: 100%;
  max-width: 280px;
}

.password-field input[type="password"],
.password-field input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  border-right: 0;
}

.password-field .password-toggle {
  flex: 0 0 auto;
  border: 1px solid #1b1b1b;
  border-left: 0;
  background: #fff;
  color: #000;
  font-family: sans-serif;
  font-size: 0.8rem;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  white-space: nowrap;
}

.password-field:focus-within input,
.password-field:focus-within .password-toggle {
  border-color: #0000ee;
}

.password-strength {
  width: 100%;
  max-width: 280px;
  margin: 0.35rem 0 0;
}

.password-strength-bar {
  height: 3px;
  background: #ddd;
  overflow: hidden;
}

.password-strength-fill {
  display: block;
  height: 100%;
  width: 0;
  background: transparent;
  transition: width 0.15s ease, background-color 0.15s ease;
}

.password-strength[data-score="1"] .password-strength-fill {
  width: 33%;
  background: #c00;
}

.password-strength[data-score="2"] .password-strength-fill {
  width: 66%;
  background: #c90;
}

.password-strength[data-score="3"] .password-strength-fill {
  width: 100%;
  background: #2a7;
}

.field input:focus {
  border-color: #0000ee;
}

.field-error {
  font-size: 0.85rem;
  color: #c00;
  margin-bottom: 0.75rem;
}

.field-notice {
  font-size: 0.85rem;
  color: #24435e;
  margin-bottom: 0.75rem;
}

.account-disabled-box {
  background: #fff3e8;
  border: 1px solid #d9783a;
  color: #8a3a12;
  padding: 0.65rem 0.7rem;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.account-disabled-box p {
  margin: 0 0 0.3rem;
}

.account-disabled-box p:last-child {
  margin-bottom: 0;
}

.field-success,
.waitlist-success {
  background: #eaf5ea;
  border: 1px solid #a8d4a8;
  color: #2a6e2a;
  padding: 0.45rem 0.5rem;
  font-size: 0.8rem;
  line-height: 1.45;
}

.field-success {
  margin-bottom: 0.75rem;
}

.field-info {
  background: #eef4fb;
  border: 1px solid #b7cbe4;
  color: #24435e;
  padding: 0.45rem 0.5rem;
  font-size: 0.8rem;
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

.login-main .field input:disabled,
.login-main button[type="submit"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.field-notice-dev a {
  word-break: break-all;
}

.field-hint {
  font-size: 0.8rem;
  color: #555;
  margin-top: 0.25rem;
}

.field-readonly {
  margin: 0.25rem 0 0;
  font-weight: 600;
}

button[type="submit"],
.btn {
  background: none;
  border: none;
  margin: 0 0 0.5rem;
  padding: 0;
  font: inherit;
  font-size: inherit;
  line-height: inherit;
  color: #0000ee;
  text-decoration: none;
  display: inline;
  cursor: pointer;
}

button[type="submit"]:hover,
.btn:hover {
  background: none;
  color: #0000ee;
  text-decoration: underline;
}

button[type="submit"].btn-danger,
.btn-danger {
  color: #c00;
}

button[type="submit"].btn-danger:hover,
.btn-danger:hover {
  background: none;
  color: #c00;
  text-decoration: underline;
}

.nav-logout {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font: inherit;
  font-size: inherit;
  color: #0000ee;
  text-decoration: none;
}

.nav-logout:hover {
  color: #0000ee;
  text-decoration: underline;
}

.home-page {
  margin-top: 0;
}

.home-page .form-box,
.home-page .app-box {
  margin-bottom: 1rem;
}

.home-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem;
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 1rem;
}

.home-split .form-box {
  margin-bottom: 0;
}

.home-banner {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.home-features p {
  margin-bottom: 0.5rem;
}

.home-features p:last-child {
  margin-bottom: 0;
}

.home-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.55rem;
  margin: 0 0 1rem;
  font-size: 0.82rem;
  line-height: 1.35;
  color: #555;
  text-align: center;
}

.home-stats-sep {
  color: #aaa;
}

.home-stats-online {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  color: #278227;
  font-weight: bold;
  line-height: 1;
}

.home-online-beacon {
  display: block;
  flex: 0 0 auto;
  width: 0.5rem;
  height: 0.5rem;
  margin: 0;
  font-size: 0;
  color: transparent;
  border-radius: 50%;
  background: #278227;
}

.home-quick-links {
  margin: 0.35rem 0 0.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.legal-page {
  max-width: 42rem;
  margin: 0 auto;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #333;
}

.legal-page-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: bold;
}

.legal-page-updated {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  color: #666;
}

.legal-page h2 {
  margin: 1.25rem 0 0.45rem;
  font-size: 0.88rem;
  font-weight: bold;
  color: #24435e;
}

.legal-page h3 {
  margin: 0.85rem 0 0.35rem;
  font-size: 0.82rem;
  font-weight: bold;
  color: #444;
}

.legal-page p {
  margin: 0 0 0.55rem;
}

.legal-page ul {
  margin: 0.35rem 0 0.65rem;
  padding-left: 1.2rem;
}

.legal-page li {
  margin-bottom: 0.25rem;
}

.legal-page a {
  color: #003399;
}

.legal-page a:hover {
  color: #cc0000;
}

.legal-page-divider {
  margin: 1.25rem 0;
  border: none;
  border-top: 1px solid #ddd;
}

.home-quick-links a {
  color: #003399;
  text-decoration: none;
}

.home-quick-links a:hover {
  color: #cc0000;
}

.home-quick-sep {
  margin: 0 0.35rem;
  color: #666;
}

.domain-list {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 2rem;
}

.domain-list li {
  margin: 0 0 0.35rem;
  break-inside: avoid;
}

.domain-list code {
  font-size: 0.9rem;
}

.home-nav {
  margin: 0.75rem 0;
  font-size: 1rem;
}

.home-nav form {
  display: inline;
}

.home-register .form-header {
  flex-wrap: wrap;
  height: auto;
}

.home-register .field input[type="text"],
.home-register .field input[type="email"],
.home-register .field input[type="password"] {
  max-width: none;
  background: #fff;
  border-color: #ccc;
}

.home-register .password-field {
  max-width: none;
}

.home-register .password-strength {
  max-width: none;
}

.home-register .password-field .password-toggle {
  border-color: #ccc;
}

.home-register .field input:focus {
  border-color: #0000ee;
}

.reg-closed-note {
  margin-top: 0;
  background: #f8eaea;
  border: 1px solid #d4a8a8;
  color: #6e2a2a;
  padding: 0.45rem 0.5rem;
  font-size: 0.8rem;
  line-height: 1.45;
  border-radius: 0;
}

.reg-closed-note a,
.reg-closed-note a:visited {
  color: #a40000;
}

.waitlist-form {
  margin-top: 0.85rem;
}

.waitlist-form .field input[type="email"] {
  max-width: none;
  background: #fff;
  border-color: #ccc;
}

.waitlist-success {
  margin-top: 0.65rem;
}

.home-register button[type="submit"] {
  margin-bottom: 0;
}

.home-section-divider {
  border: none;
  border-top: 1px solid #ddd;
  margin: 1.25rem auto 1rem;
  width: 40%;
  max-width: 12rem;
}

.home-cover-wrap {
  margin: 0 -1rem 1rem;
  padding-left:1rem;
  padding-right:1rem;
}

.home-cover-banner {
  height: 90px;
  overflow: hidden;
  background: #ebebeb;
  border-radius:4px;
}

.home-cover-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-position: center 70%;
}

/* Screenshot placeholders: four squares across, pastel until images land. */
.home-shots-box .app-box-body {
  padding: 0.7rem;
}

.home-shots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hub-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hub-tool {
  display: block;
  padding: 0.9rem 1rem;
  border: 1px solid #d5d8e0;
  text-decoration: none;
  color: inherit;
}

.hub-tool strong {
  display: block;
  margin-bottom: 0.25rem;
}

.hub-tool span {
  color: #444;
}

.hub-tool:hover {
  border-color: #24435e;
}

.hub-tool-soon {
  opacity: 0.85;
}

.home-faq .app-box:last-child {
  margin-bottom: 0;
}

.home-faq-item > summary {
  list-style: none;
  cursor: pointer;
}

.home-faq-item > summary:hover {
  color: #24435e;
}

.home-faq-item > summary:hover::after {
  color: #24435e;
}

.home-faq-item > summary::-webkit-details-marker {
  display: none;
}

.home-faq-item > summary::marker {
  content: "";
  display: none;
}

.home-faq-item:not([open]) > summary {
  border-bottom: none;
}

.home-faq-item > summary::after {
  content: "+";
  float: right;
  font-weight: normal;
  color: #888;
}

.home-faq-item[open] > summary::after {
  content: "−";
}

.home-faq .app-box-body p {
  margin-bottom: 0;
}

.home-shot {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: flex-end;
  border: 1px solid #dfdfdf;
  padding: 0.5rem 0.6rem;
  font-size: 0.8rem;
  color: #444;
}

.home-shot-write {
  background: #e7e7e7;
}

.home-shot-blog {
  background: #e7e7e7;
}

.home-shot-archive {
  background: #e7e7e7;
}

.home-shot-discover {
  background: #e7e7e7;
}

/* example / public blog */

.blog-title {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
  overflow-wrap: anywhere;
}

.blog-admin-flag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.32rem;
  border: 1px solid #ddd;
  border-radius: 0;
  background: #f6f6f6;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
  vertical-align: middle;
  color: #24435e;
}

.blog-public-email {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  overflow-wrap: anywhere;
}

.blog-email-icon {
  width: 14px;
  height: auto;
  flex-shrink: 0;
  opacity: 0.75;
}

.blog-description {
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.blog-subnav {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.guestbook-delete {
  display: inline;
  margin-left: 0.5rem;
}

.guestbook-write {
  margin-bottom: 0.75rem;
}

.guestbook-comment-toggle {
  margin-top: 0.75rem;
}

.guestbook-comment-toggle .comment-form-new {
  margin-top: 0;
}

.post-date {
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 0.2rem;
}

.post-title {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  overflow-wrap: anywhere;
}

.post-body img,
.post-excerpt img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0.65rem auto;
}

.post-body,
.post-excerpt {
  margin-bottom: 0.5rem;
}

.post-body p,
.post-excerpt p {
  margin-bottom: 0.5rem;
}

.post-body-markdown h1,
.post-body-markdown h2,
.post-body-markdown h3,
.post-body-markdown h4 {
  margin: 0.85rem 0 0.4rem;
  line-height: 1.3;
}

.post-body-markdown h1 { font-size: 1.15rem; }
.post-body-markdown h2 { font-size: 1.05rem; }
.post-body-markdown h3 { font-size: 1rem; }

.post-body-markdown ul,
.post-body-markdown ol {
  margin: 0.35rem 0 0.65rem 1.35rem;
}

.post-body-markdown li + li {
  margin-top: 0.2rem;
}

.post-body-markdown blockquote {
  margin: 0.5rem 0;
  padding: 0.35rem 0 0.35rem 0.75rem;
  border-left: 3px solid #aaa;
  color: #444;
}

.post-body-markdown pre {
  margin: 0.5rem 0;
  padding: 0.55rem 0.65rem;
  overflow-x: auto;
  background: #f5f5f5;
  border: 1px solid #ddd;
  font-size: 0.85rem;
  line-height: 1.45;
}

.post-body-markdown code {
  font-family: ui-monospace, monospace;
  font-size: 0.88em;
  background: #f0f0f0;
  padding: 0.05rem 0.2rem;
}

.post-body-markdown pre code {
  background: none;
  padding: 0;
}

.post-body-markdown img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0.65rem auto;
}

.post-body-markdown a {
  word-break: break-word;
}

.post-body-markdown hr {
  margin: 0.75rem 0;
  border: none;
  border-top: 1px solid #ccc;
}

.post-body-markdown table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 0.65rem 0;
  font-size: 0.9rem;
}

.post-body-markdown th,
.post-body-markdown td {
  border: 1px solid #888;
  padding: 0.4rem 0.55rem;
  text-align: left;
  vertical-align: top;
}

.post-body-markdown th {
  background: #f5f5f5;
  font-weight: bold;
}

.post-body-markdown tbody tr:nth-child(even) {
  background: #fafafa;
}

.post-body-markdown sub,
.post-body-markdown sup {
  font-size: 0.75em;
  line-height: 0;
}

.post-body-markdown ins {
  text-decoration: underline;
  background: #edf7ed;
}

.post-body-markdown mark {
  background: #fff3a3;
  padding: 0.05rem 0.15rem;
}

.post-body-markdown .footnotes {
  margin-top: 1.25rem;
  padding-top: 0.65rem;
  font-size: 0.85rem;
  color: #444;
}

.post-body-markdown .footnotes hr {
  margin: 0 0 0.65rem;
}

.post-body-markdown .footnotes ol {
  margin: 0;
  padding-left: 1.35rem;
}

.post-body-markdown .footnote-ref {
  font-size: 0.75em;
  vertical-align: super;
  text-decoration: none;
}

.post-body-markdown .footnote-backref {
  text-decoration: none;
}

.post-format-field .post-options-row {
  gap: 1rem;
}

.post-form .post-form-section,
.post-form .post-format-field {
  border: none;
  padding: 0;
  margin: 0 0 0.85rem;
}

.post-form-section legend,
.post-format-field legend {
  font-weight: bold;
  padding: 0;
  margin-bottom: 0.35rem;
  width: 100%;
}

.field-label-row-legend {
  margin-bottom: 0;
}

.tag-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.65rem;
}

.post-tags-section .post-optional-toggle {
  margin-top: 0.15rem;
}

.post-tags-section .tag-checkbox-grid {
  margin-bottom: 0;
}

.post-context {
  display: inline-flex;
  flex-wrap: wrap;
  max-width: 100%;
  gap: 0.2rem 0.65rem;
  margin-top: 0.25rem;
  padding: 0.1rem 0.4rem;
  font-size: 0.75rem;
  line-height: 1.3;
  color: #444;
  background: #f3f4f6;
  border-radius: 4px;
}

.post-context-label {
  color: #666;
  font-weight: 600;
}

.post-upvotes {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  color: #555;
  margin-top: 0.4rem;
}

.post-meta .post-upvotes {
  margin-top: 0;
}

.upvote-form {
  display: inline;
  margin: 0;
  padding: 0;
}

.post-meta .upvote-form {
  display: inline-flex;
  align-items: center;
}

.upvote-button,
.upvote-count {
  font: inherit;
  font-size: inherit;
  color: #555;
}

.upvote-button {
  background: none;
  border: none;
  margin: 0;
  padding: 0;
  cursor: pointer;
  line-height: inherit;
}

.upvote-button.is-active {
  color: #000;
  font-weight: bold;
}

.upvote-button:hover {
  text-decoration: underline;
}

form.discover-upvotes.upvote-form {
  display: block;
  flex-shrink: 0;
  width: 2.5rem;
  text-align: center;
  line-height: 1.3;
  font-size: 0.8rem;
}

.blog-footer {
  font-size: 0.9rem;
}

.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.blog-toolbar .pagination {
  margin-top: 0;
}

/* discover (HN-style feed) */

.discover-header h2 {
  margin-bottom: 0.35rem;
}

.discover-tabs {
  font-size: 0.9rem;
}

.discover-tag-heading {
  margin: 0.45rem 0 0;
  font-size: 0.85rem;
  color: #444;
}

.discover-tag-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 22rem;
  overflow-y: auto;
}

.discover-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  max-width: 100%;
  padding: 0.12rem 0.28rem 0.12rem 0.5rem;
  border: 1px solid #ddd;
  border-radius: 0;
  background: #f6f6f6;
  color: #24435e;
  font-size: 0.78rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.discover-tag-pill:visited {
  color: #24435e;
}

.discover-tag-pill:hover {
  border-color: #bbb;
  background: #eee;
  text-decoration: none;
}

.discover-tag-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.discover-tag-count {
  flex: 0 0 auto;
  min-width: 1.15rem;
  padding: 0.05rem 0.32rem;
  border-radius: 0;
  background: #e3e7ee;
  color: #333;
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.blogs-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.45rem 1rem;
}

.blogs-header h2 {
  margin-bottom: 0;
}

.blogs-search {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 1 1 14rem;
  max-width: 22rem;
  margin-left: auto;
}

.blogs-search input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 0.28rem 0.5rem;
  background: #fafafa;
  color: #000;
  font-family: inherit;
  font-size: 0.85rem;
  line-height: 1.3;
}

.blogs-search input[type="search"]::-webkit-search-decoration,
.blogs-search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.blogs-search input[type="search"]:focus {
  outline: none;
  border-color: #0000ee;
  background: #fff;
}

.blogs-search button[type="submit"].link-button {
  flex: 0 0 auto;
  font-size: 0.85rem;
}

.blogs-table-wrap {
  overflow-x: auto;
}

.blogs-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.78rem;
  line-height: 1.25;
}

.blogs-col-name { width: 26%; }
.blogs-col-desc { width: 38%; }
.blogs-col-post { width: 36%; }

.blogs-table th,
.blogs-table td {
  box-sizing: border-box;
  text-align: left;
  vertical-align: middle;
  padding: 0.22rem 0.45rem;
  border-bottom: 1px solid #e8e8e8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blogs-table th {
  font-weight: 600;
  color: #333;
  background: #f3f3f3;
}

.blogs-table tbody tr:nth-child(odd) {
  background: #fff;
}

.blogs-table tbody tr:nth-child(even) {
  background: #f4f4f4;
}

.blogs-table td a {
  text-decoration: none;
}

.blogs-table td a:hover {
  text-decoration: underline;
}

.blogs-desc {
  color: #555;
}

.blogs-latest-inner {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

.blogs-latest-inner a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blogs-latest-date {
  flex: 0 0 auto;
  margin-left: auto;
  color: #888;
  font-size: 0.72rem;
}

.discover-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.discover-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid #1b1b1b;
}

.discover-item:last-child {
  border-bottom: none;
}

.discover-rank {
  flex-shrink: 0;
  width: 1.75rem;
  font-size: 0.85rem;
  color: #555;
  text-align: right;
}

.discover-upvotes {
  flex-shrink: 0;
  width: 2.5rem;
  font-size: 0.8rem;
  color: #555;
  text-align: center;
  line-height: 1.3;
}

.discover-main {
  min-width: 0;
  flex: 1;
}

.discover-title-line {
  display: inline;
  font-size: 0.95rem;
  line-height: 1.35;
}

.discover-title {
  color: #0000ee;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.discover-blog {
  font-size: 0.8rem;
  color: #555;
  text-decoration: none;
}

.discover-blog:visited {
  color: #555;
}

.discover-blog:hover {
  text-decoration: underline;
}

.news-timeline {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.news-timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  position: relative;
  padding: 0 0 1.25rem;
}

.news-timeline-item:last-child {
  padding-bottom: 0;
}

.news-timeline-item:not(:last-child)::before,
.news-timeline-item:not(:first-child)::after {
  content: "";
  position: absolute;
  left: 6px;
  width: 2px;
  background: #93c5fd;
}

.news-timeline-item:not(:last-child)::before {
  top: calc(0.25rem + 7px);
  bottom: 0;
}

.news-timeline-item.is-latest:not(:last-child)::before {
  top: calc(20px + 0.15rem + 7px);
}

.news-timeline-item:not(:first-child)::after {
  top: 0;
  height: calc(0.25rem + 7px);
}

.news-timeline-dot {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 0.25rem;
  border: none;
  border-radius: 50%;
  background: #2563eb;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.news-timeline-item.is-latest .news-timeline-dot {
  margin-top: calc(20px + 0.15rem);
}

.news-timeline-item.is-unread .news-timeline-dot {
  box-shadow: 0 0 0 3px #dbeafe;
}

.news-timeline-card {
  flex: 1;
  min-width: 0;
}

.news-timeline-item.is-latest .news-timeline-card {
  background-color: #eef7ff;
  padding: 20px;
  border: solid 1px #cedaf0;
  color: #222;
}

.news-timeline-card .discover-meta {
  margin: 0 0 0.35rem;
}

.news-timeline-card .discover-title-line {
  display: block;
}

.news-timeline-card .post-excerpt {
  margin-top: 0.35rem;
}

.notif-timeline .news-timeline-item:not(:last-child)::before,
.notif-timeline .news-timeline-item:not(:first-child)::after {
  background: #f0c56e;
}

.notif-timeline .news-timeline-dot {
  background: #c98412;
}

.notif-timeline .news-timeline-item.is-unread .news-timeline-dot {
  box-shadow: 0 0 0 3px #ffe8b8;
}

.notif-timeline .news-timeline-item.is-latest .news-timeline-card {
  background-color: #fff6e4;
  border-color: #edd4a0;
}

.notif-timeline .news-timeline-item.is-strike {
  padding-bottom: 0.45rem;
  gap: 0.55rem;
}

.notif-timeline .news-timeline-item.is-strike .news-timeline-card,
.notif-timeline .news-timeline-item.is-strike.is-latest .news-timeline-card {
  background-color: #fff1f1;
  border: 1px solid #e8a0a0;
  padding: 0.35rem 0.5rem;
  color: #6b2828;
}

.notif-timeline .news-timeline-item.is-strike .news-timeline-dot,
.notif-timeline .news-timeline-item.is-strike.is-latest .news-timeline-dot {
  background: #c0392b;
  margin-top: 0.4rem;
  width: 10px;
  height: 10px;
}

.notif-timeline .news-timeline-item.is-strike.is-unread .news-timeline-dot {
  box-shadow: 0 0 0 3px #f8d0d0;
}

.notif-timeline .news-timeline-item.is-strike:not(:last-child)::before,
.notif-timeline .news-timeline-item.is-strike.is-latest:not(:last-child)::before {
  top: calc(0.4rem + 5px);
  background: #e8a0a0;
}

.notif-timeline .news-timeline-item.is-strike:not(:first-child)::after {
  height: calc(0.4rem + 5px);
  background: #e8a0a0;
}

.strike-notice-title {
  margin: 0;
  color: #a32020;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
}

.strike-notice-title .discover-meta {
  display: inline;
  margin: 0 0 0 0.35rem;
  font-weight: 400;
  font-size: 0.75rem;
  color: #a05050;
}

.strike-note {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  line-height: 1.3;
  white-space: pre-wrap;
  color: #6b2828;
}

.discover-meta {
  display: block;
  font-size: 0.8rem;
  color: #555;
  margin-top: 0.15rem;
}

.discover-meta a {
  font-size: inherit;
  text-decoration: none;
}

.discover-tag {
  color: #555;
  text-decoration: none;
}

.discover-tag:visited {
  color: #555;
}

.discover-tag:hover {
  text-decoration: underline;
}

.discover-comments {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #555;
  text-decoration: none;
  white-space: nowrap;
}

.discover-comments:visited {
  color: #555;
}

.discover-comments:hover {
  text-decoration: underline;
}

.news-item .news-body {
  margin-top: 0.35rem;
  font-size: 0.85rem;
}

.news-item .news-body p {
  margin: 0 0 0.4rem;
}

.news-item .news-body p:last-child {
  margin-bottom: 0;
}

.news-detail .discover-meta {
  margin-bottom: 1rem;
}

.comments-icon {
  width: 10px;
  height: 10px;
  vertical-align: -2px;
  opacity: 0.7;
}

/* Shared by the discover feed and the archive. */
.pagination {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.pagination a {
  text-decoration: none;
}

.pagination a:hover {
  text-decoration: underline;
}

.page-num {
  color: #555;
}

.page-disabled {
  color: #999;
}

/* app shell (logged-in layout) */

.app-header {
  border-bottom: 1px solid #8ba8c5;
  padding: 0.45rem 0.65rem;
  padding-left:0rem;
}

.app-header .site-header-row {
  align-items: center;
}

.app-layout .app-divider {
  display: none;
}

.app-account {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  font-size: 0.9rem;
}

.app-account a {
  text-decoration: none;
}

.app-account a:hover {
  text-decoration: underline;
}

.app-logout {
  margin: 0;
}

.app-logout .nav-logout {
  background: none;
  border: none;
  margin: 0;
  padding: 0;
  font: inherit;
  font-size: inherit;
  line-height: inherit;
  display: inline;
  color: #0000ee;
  text-decoration: none;
  cursor: pointer;
}

.app-logout .nav-logout:hover {
  background: none;
  color: #0000ee;
  text-decoration: underline;
}

.app-divider {
  margin: 0.75rem 0 1rem;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12.5rem;
  grid-template-areas:
    "nav nav"
    "content side";
  gap: 1rem 1.25rem;
  align-items: start;
}

.app-nav-strip {
  grid-area: nav;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  padding: 5px 0;
  border-radius: 0;
  min-width: 0;
  overflow-x: auto;
}

.app-nav-link {
  color: #2563eb;
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
  padding: 2px 6px;
  border-radius: 0px;
}

.app-nav-link:visited {
  color: #2563eb;
}

.app-nav-link:hover {
  color: #1e40af;
  background: #eff6ff;
  text-decoration: none;
}

.app-nav-link.is-active,
.app-nav-link.is-active:visited {
  color: #1e40af;
  background: #eff6ff;
  text-decoration: none;
}

.app-shell-bare {
  grid-template-columns: 1fr;
  grid-template-areas: "content";
}

.app-shell-bare .settings-section {
  border: none;
  padding: 0;
}

.app-layout-setup {
  display: flex;
  flex-direction: column;
  /* min-height: calc(100vh - 2rem); */
}

.app-layout-setup .app-shell-bare {
  /* flex: 1;
  display: flex;
  align-items: center;
  justify-content: center; */
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.app-layout-setup .app-content {
  width: 100%;
  display: flex;
  justify-content: center;
}

.setup-panel {
  width: 100%;
  max-width: calc(100% - 13.75rem); /* same width as dashboard content column (aside + gap) */
  margin: 0 auto 2rem;
}

.setup-intro {
  margin: 0;
  padding: 0 0.7rem 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #404040;
  margin-top:.5rem;
}

.setup-panel .settings-form {
  margin: 0;
}

.setup-panel .settings-section {
  margin: 0;
  border: none;
  padding: 0;
  background: #fff;
}

.setup-panel .settings-section-title {
  margin: 0;
  border-bottom: 1px solid rgb(70, 81, 117);
  background: #24435e;
  color: #fff;
  box-sizing: border-box;
  min-height: calc(0.9rem + 1.4 * 0.85rem + 2px);
  display: flex;
  align-items: center;
  padding: 0.45rem 0.65rem;
  font-size: 0.85rem;
  line-height: 1.4;
  font-weight: bold;
}

.setup-panel .settings-section-body {
  padding: 0.7rem;
}

.setup-continue-rule {
  border: none;
  border-top: 1px solid #ddd;
  margin: 0.85rem 0 0.65rem;
}

.setup-continue-link {
  font-size: 0.9rem;
}

.app-content {
  grid-area: content;
  min-width: 0;
  align-self: start;
}

.app-panel {
  padding: 0;
  margin: 0;
}

.app-aside {
  grid-area: side;
  min-width: 0;
  align-self: start;
}

.app-aside-break {
  display: none;
}

.app-aside-new,
.form-header,
.app-shell:not(.app-shell-bare) .settings-section-title {
  box-sizing: border-box;
  min-height: calc(0.9rem + 1.4 * 0.85rem + 2px);
  display: flex;
  align-items: center;
  padding: 0.45rem 0.65rem;
  font-size: 0.85rem;
  line-height: 1.4;
  font-weight: bold;
}

.app-aside-new {
  justify-content: center;
  width: 100%;
  margin-bottom: 0.7rem;
  text-align: center;
  border: 1px solid rgb(70, 81, 117);
  background: #24435e;
  color: #fff;
  text-decoration: none;
}

.app-aside-new:visited {
  color: #fff;
}

.app-aside-new:hover {
  background: rgb(70, 81, 117);
  border-color: rgb(58, 67, 98);
  color: #fff;
  text-decoration: none;
}

.app-aside-new small {
  margin-right: 0.35rem;
}

.app-box {
  border: 1px solid #aaa;
  margin-bottom: 0.7rem;
  background: #fff;
}

.app-box:last-child {
  margin-bottom: 0;
}

.app-box-title {
  font-size: 0.8rem;
  font-weight: bold;
  margin: 0;
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid #aaa;
  background: #fafbfc;
  color: #667085;
}

.app-box-body {
  padding: 0.5rem 0.55rem;
  line-height: 1.45;
}

.mini-userpic {
  width: 80px;
  height: 80px;
  margin: 0.15rem auto 0.5rem;
  border: 1px solid #777;
  background: #d7e5f4;
  color: #174b82;
  text-align: center;
  line-height: 80px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
}

.mini-userpic-img,
.blog-avatar {
  display: block;
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 1px solid #777;
  background: #d7e5f4;
}

.mini-userpic-img {
  margin: 0.15rem auto 0.5rem;
}

.blog-avatar {
  margin-bottom: 0.5rem;
}

.blog-header {
  margin-bottom: 1rem;
}

.blog-cover {
  width: 100%;
  height: 160px;
  overflow: hidden;
  border: 1px solid #888;
  background: #d7e5f4;
}

.blog-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-cover img[src="/static/assets/cover.jpg"] {
  object-position: center 88%;
}

.blog-identity {
  padding: 0 0.75rem;
}

.blog-identity:not(.blog-identity--no-avatar) {
  display: flex;
  align-items: flex-end;
  gap: 0.85rem 1rem;
}

.blog-avatar-on-cover {
  flex-shrink: 0;
  align-self: flex-start;
  width: 120px;
  height: 120px;
  margin-top: -60px;
  margin-bottom: 0;
  border: 4px solid #fff;
  box-shadow: 0 0 0 1px #888;
  position: relative;
  z-index: 1;
}

.blog-identity-text {
  flex: 1;
  min-width: 0;
  margin-top: .3rem;
  padding-bottom: 0.15rem;
}

.blog-identity--no-avatar .blog-identity-text {
  margin-top: 1rem;
}

.blog-identity-text .blog-title {
  margin-bottom: 0.35rem;
}

.avatar-preview {
  margin-bottom: 0.4rem;
}

.cover-preview {
  margin-bottom: 0.4rem;
}

.cover-preview-img {
  display: block;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  border: 1px solid #777;
  background: #d7e5f4;
}

.settings-blog-preview {
  background: #fff;
}

.settings-blog-preview .blog-header {
  margin-bottom: 0;
}

.settings-blog-preview .blog-cover {
  position: relative;
  background: #b0b0b0;
  border-left: none;
  border-right: none;
  border-top: none;
}

.settings-blog-preview .blog-preview-avatar-slot {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  margin-top: -60px;
  margin-bottom: 0;
  border: 4px solid #fff;
  box-shadow: 0 0 0 1px #888;
  background: #dcdcdc;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.settings-blog-preview .blog-preview-avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

.settings-blog-preview .blog-preview-avatar-img[hidden] {
  display: none;
}

.settings-blog-preview .blog-identity {
  padding-bottom: 0.75rem;
}

.blog-preview-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.blog-preview-edit {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  margin: 0;
  padding: 0;
  border: 1px solid #888;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.92);
  color: #333;
  cursor: pointer;
  line-height: 0;
}

.blog-preview-edit:hover {
  background: #fff;
  color: #000;
}

.blog-preview-edit-avatar {
  top: 0.35rem;
  right: 0.35rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.image-remove-form {
  margin-top: 0.45rem;
}

.app-box-userinfo {
  text-align: center;
}

.app-box-user {
  margin-bottom: 0.15rem;
}

.app-box-user b {
  color: #1b1b1b;
}

.app-box-user-handle {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  color: #666;
  line-height: 1.3;
}

.app-box-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.app-box-links li {
  padding: 0.15rem 0;
  border-bottom: 1px dotted #ccc;
}

.app-box-links li:last-child {
  border-bottom: none;
}

.app-box-links a,
.app-box-body a {
  color: #003399;
  text-decoration: underline;
}

.app-box-links a:hover,
.app-box-body a:hover {
  color: #cc0000;
}

.app-tip {
  background: #fffbe6;
  border: 1px solid #d6c987;
  color: #665800;
  padding: 0.45rem;
  font-size: 0.8rem;
  line-height: 1.4;
}

.app-tip-success {
  background: #edf7ed;
  border-color: #9bc89b;
  color: #2d5a2d;
}

.draft-status {
  margin: 0 0 0.75rem;
}

.draft-status .app-tip {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
}

.draft-status-divider {
  color: #9bc89b;
  font-weight: 700;
  user-select: none;
}

.draft-status .link-button {
  font-size: inherit;
  font-weight: 600;
}

.draft-status-error .draft-status-divider,
.draft-status-error .link-button {
  display: none;
}

.draft-status-error {
  background: #fff3f3;
  border-color: #e0a8a8;
  color: #6b2828;
}

.app-tip-requests {
  background: #fff3f3;
  border: 1px solid #e0a8a8;
  color: #6b2828;
}

.app-tip-requests a {
  color: #a83232;
  font-weight: 600;
}

.app-tip-requests a:hover {
  color: #cc0000;
}

.posted-notice-box {
  margin-bottom: 0.85rem;
}

.posted-notice-header {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #aaa;
}

.posted-notice-header .app-box-title {
  flex: 1;
  border-bottom: none;
}

.posted-notice-close {
  border: none;
  border-left: 1px solid #aaa;
  background: #fafbfc;
  color: #667085;
  font-size: 1.15rem;
  line-height: 1;
  padding: 0 0.7rem;
  cursor: pointer;
}

.posted-notice-close:hover {
  color: #cc0000;
  background: #f5f5f5;
}

.app-idea {
  background: #eef4fb;
  border: 1px solid #b8cce4;
  color: #2a4a6e;
  padding: 0.45rem 0.5rem;
  font-size: 0.8rem;
  line-height: 1.45;
}

.app-box-ideas .app-idea + .app-idea {
  margin-top: 0.7rem;
}

.app-ideas-more {
  margin: 0.55rem 0 0;
  font-size: 0.75rem;
  text-align: center;
}

.ideas-refresh {
  background: none;
  border: none;
  margin: 0;
  padding: 0;
  font: inherit;
  color: #0000ee;
  cursor: pointer;
}

.ideas-refresh:hover:not(:disabled) {
  text-decoration: underline;
}

.ideas-refresh:disabled {
  color: #999;
  cursor: default;
}

.app-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.35rem 0.5rem;
  background: #f5f5f5;
  border-bottom: 1px solid #ddd;
}

.app-calendar-title {
  flex: 1;
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.2;
}

.app-calendar-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border: 1px solid #bbb;
  background: #fff;
  color: #003399;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

.app-calendar-nav:hover {
  background: #eee;
  text-decoration: none;
}

.app-calendar-nav.is-disabled {
  color: #ccc;
  border-color: #ddd;
  background: #fafafa;
  cursor: default;
}

.app-calendar {
  width: 100%;
  border-collapse: collapse;
  font-size: 9px;
  text-align: center;
}

.app-calendar th {
  background: #eee;
  border: 1px solid #ccc;
  padding: 2px;
  font-weight: bold;
}

.app-calendar td {
  border: 1px solid #ddd;
  padding: 2px;
  min-width: 1.1rem;
}

.app-calendar a {
  font-weight: bold;
  text-decoration: none;
}

.app-calendar a:hover {
  text-decoration: underline;
}

.app-calendar td.is-today {
  background: #003399;
  color: #fff;
  font-weight: bold;
}

.app-calendar td.is-today a {
  color: #fff;
}

.app-calendar td.is-today a:hover {
  color: #fff;
}

.app-box-prose p {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  line-height: 1.45;
}

.app-box-prose p:last-child {
  margin-bottom: 0;
}

.app-box-stats {
  font-size: 0.8rem;
  color: #555;
  line-height: 1.5;
}

.app-box-stats-in-blog {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px dotted #ccc;
  text-align: center;
}

.app-box-news {
  font-size: 0.75rem;
  line-height: 1.45;
  color: #444;
}

.app-box-news p {
  margin: 0 0 0.5rem;
}

.app-box-news p:last-child {
  margin-bottom: 0;
}

.app-news-date {
  color: #666;
}

.form-box {
  border: 1px solid #aaa;
  background: #fff;
}

.form-header {
  margin: 0;
  border-bottom: 1px solid rgb(70, 81, 117);
  background: #24435e;
  color: #fff;
}

/* Dashboard settings panels (same box model as .form-box; setup stays fieldset). */
.app-shell:not(.app-shell-bare) .settings-section {
  border: 1px solid #aaa;
  padding: 0;
  margin: 0 0 1rem;
  background: #fff;
}

.app-shell:not(.app-shell-bare) .settings-section.settings-readonly {
  background: #fafafa;
}

.app-shell:not(.app-shell-bare) .settings-section-title {
  margin: 0;
  border-bottom: 1px solid rgb(70, 81, 117);
  background: #24435e;
  color: #fff;
}

.app-shell:not(.app-shell-bare) .settings-section-body {
  padding: 0.7rem;
}

.app-shell:not(.app-shell-bare) .settings-section.settings-danger-panel .settings-section-title {
  background: #fff0f0;
  color: #c00;
  border-bottom-color: #c00;
}

.app-shell:not(.app-shell-bare) .settings-form:first-child {
  margin-top: 0;
}

.form-body {
  padding: 0.7rem 0.7rem 0.55rem;
}

.form-box .post-options {
  border: 1px solid #ccc;
  background: #f5f5f5;
}

.form-box .option-row {
  margin-bottom: 0.7rem;
}

.form-box .option-row:last-child {
  margin-bottom: 0;
}

.app-layout .app-account a,
.app-layout .nav-logout {
  color: #003399;
}

.app-layout .app-account a:hover,
.app-layout .nav-logout:hover {
  color: #cc0000;
  text-decoration: underline;
}

/* archive */

.archive-group + .archive-group {
  margin-top: 1.35rem;
}

.archive-month {
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #555;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #ddd;
  margin-bottom: 0.65rem;
}

.archive-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.archive-item {
  padding: 0.7rem 0.75rem 0.6rem;
  border: 1px solid #ddd;
  background: #fafbfc;
}

.archive-item-draft {
  background: #fff8e8;
  border-color: #e0c57a;
}

.archive-item-has-draft {
  border-color: #e4d39a;
  background: #fffdf6;
}

.archive-item-private {
  background: #f7f7f7;
}

.archive-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.archive-title {
  color: #0000ee;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.archive-title:visited {
  color: #0000ee;
}

.archive-item-draft .archive-title,
.archive-item-draft .archive-title:visited {
  color: #8a5a00;
}

.archive-title:hover {
  text-decoration: underline;
}

.archive-date {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: #666;
  font-variant-numeric: tabular-nums;
}

.archive-excerpt {
  margin: 0.28rem 0 0;
  color: #444;
  font-size: 0.82rem;
  line-height: 1.4;
}

.archive-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: #555;
}

.post-flag {
  font-style: italic;
}

.archive-flag {
  display: inline-block;
  padding: 0.08rem 0.4rem;
  border: 1px solid #ddd;
  background: #fff;
  color: #555;
  font-style: normal;
  line-height: 1.3;
}

.archive-flag-draft {
  border-color: #c9a227;
  background: #f0d36b;
  color: #5a4300;
  font-weight: 700;
}

.archive-flag-private {
  border-color: #ccc;
  background: #eee;
  color: #444;
}

.archive-tag,
.post-tag {
  color: #555;
}

.archive-tag {
  display: inline-block;
  padding: 0.08rem 0.35rem;
  border: 1px solid #ddd;
  background: #fff;
  color: #444;
}

/* Unique-visitor count; only ever rendered for the blog owner. */
.views {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #555;
  white-space: nowrap;
  line-height: 1;
}

.views-icon {
  display: block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.7;
}

.blog-views {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 0.35rem;
}

.blog-views .views {
  display: inline-flex;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #555;
}

.comments-heading {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.post-comments .discover-tabs {
  margin-bottom: 0.7rem;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment {
  padding: 0.4rem 0;
}

.comment + .comment {
  border-top: 1px solid #eee;
}

.post-comments .comment-list > .comment {
  background: #f6f6f6;
  border: 1px solid #d4d4d4;
  padding: 0.65rem 0.75rem;
  margin: 0 0 0.7rem;
}

.post-comments .comment-list > .comment + .comment {
  border-top: 1px solid #d4d4d4;
}

.post-comments .comment.comment-admin,
.post-comments .comment-replies .comment.comment-admin {
  background: #eef4fb;
  border-color: #8ba8c5;
}

.post-comments .comment.comment-closed,
.post-comments .comment-replies .comment.comment-closed {
  background: #e8f5e9;
  border-color: #1b5e20;
}

.post-comments .comment.comment-cancelled,
.post-comments .comment-replies .comment.comment-cancelled {
  background: #f8eaea;
  border-color: #a40000;
}

.news-item .news-body {
  margin-top: 0.35rem;
  font-size: 0.85rem;
}

.news-item .news-body p {
  margin: 0 0 0.4rem;
}

.news-item .news-body p:last-child {
  margin-bottom: 0;
}

.comment-flag {
  font-size: 0.7rem;
  color: #24435e;
}

.comment-closed .comment-flag {
  color: #1b5e20;
}

.comment-cancelled .comment-flag {
  color: #a40000;
}

.comment-head {
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 0.15rem;
}

.comment-date {
  color: #777;
}

.comment-blog {
  color: #777;
  font-weight: normal;
}

.comment-body {
  margin: 0;
}

.comment-replies {
  margin: 0.4rem 0 0 1.25rem;
  border-left: 1px solid #eee;
  padding-left: 0.75rem;
}

.post-comments .comment-replies {
  margin: 0.55rem 0 0;
  padding-left: 0;
  border-left: 3px solid #c8c8c8;
}

.post-comments .comment-replies .comment {
  background: #fff;
  border: 1px solid #ddd;
  padding: 0.5rem 0.65rem;
  margin: 0 0 0.45rem 0.7rem;
}

.post-comments .comment-replies .comment:last-child {
  margin-bottom: 0;
}

.archive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  margin-top: 0.55rem;
  background: #d8d8d8;
  border: 1px solid #d8d8d8;
}

.archive-item-draft .archive-actions,
.archive-item-has-draft .archive-actions {
  background: #e0c57a;
  border-color: #e0c57a;
}

.archive-actions > a,
.archive-actions > form {
  display: flex;
  margin: 0;
}

.archive-actions .link-button,
.archive-actions button[type="submit"].link-button {
  display: inline-block;
  margin: 0;
  padding: 0.28rem 0.55rem;
  border: 0;
  border-radius: 0;
  background: #f4f4f4;
  color: #24435e;
  font-size: 0.75rem;
  line-height: 1.3;
  text-decoration: none;
}

.archive-actions .link-button:hover,
.archive-actions button[type="submit"].link-button:hover {
  background: #e8e8e8;
  color: #111;
  text-decoration: none;
}

.archive-item-draft .archive-actions .link-button,
.archive-item-draft .archive-actions button[type="submit"].link-button,
.archive-item-has-draft .archive-actions .link-button,
.archive-item-has-draft .archive-actions button[type="submit"].link-button {
  background: #fff8e8;
  color: #5a4300;
}

.archive-item-draft .archive-actions .link-button:hover,
.archive-item-draft .archive-actions button[type="submit"].link-button:hover,
.archive-item-has-draft .archive-actions .link-button:hover,
.archive-item-has-draft .archive-actions button[type="submit"].link-button:hover {
  background: #ffefc4;
  color: #3d2d00;
}

.archive-actions .link-button-danger,
.archive-actions button[type="submit"].link-button-danger,
.archive-actions .link-button-danger:hover,
.archive-actions button[type="submit"].link-button-danger:hover {
  background: #fff3f3;
  color: #a32020;
}

.archive-actions form,
.notification-go {
  display: inline;
}

.archive-actions form {
  display: flex;
}

.notification-go button[type="submit"].link-button {
  font-size: inherit;
}

/* The button[type="submit"] rule above out-specifies a bare class, so each of
   these also lists a button[type="submit"] variant to render as a plain link. */
.link-button,
button[type="submit"].link-button {
  background: none;
  border: none;
  margin: 0;
  padding: 0;
  font: inherit;
  font-size: 0.8rem;
  line-height: inherit;
  color: #0000ee;
  text-decoration: none;
  display: inline;
  cursor: pointer;
}

.link-button:hover,
button[type="submit"].link-button:hover {
  background: none;
  color: #0000ee;
  text-decoration: underline;
}

.link-button-danger,
.link-button-danger:hover,
button[type="submit"].link-button-danger,
button[type="submit"].link-button-danger:hover {
  color: #c00;
}

.post-form .field input[type="text"],
.post-form .field .field-select {
  max-width: none;
  width: 100%;
  border-radius: 0;
}

.post-form .field input[type="text"],
.post-form textarea,
.post-form .field .field-select {
  border: 1px solid #1b1b1b;
}

.post-form .field .field-select {
  appearance: none;
  -webkit-appearance: none;
}

.field-select {
  width: 100%;
  max-width: 12rem;
  padding: 0.35rem 0.5rem;
  font-family: sans-serif;
  font-size: 0.9rem;
  background: #fff;
  color: #000;
  outline: none;
}

.field-select:focus {
  border-color: #0000ee;
}

.post-form textarea {
  width: 100%;
  min-height: 18rem;
  padding: 0.5rem;
  font-family: sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  resize: vertical;
  background: #fff;
  color: #000;
  outline: none;
}

.post-form textarea:focus {
  border-color: #0000ee;
}

.post-options {
  border: 1px solid #1b1b1b;
  padding: 0.75rem;
  margin: 0 0 0.75rem;
}

.post-options legend {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  padding: 0 0.25rem;
}

.post-options-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.field-inline {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.field-inline label {
  margin-bottom: 0;
  white-space: nowrap;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"],
.checkbox-label input[type="radio"] {
  width: 0.9rem;
  height: 0.9rem;
  margin: 0;
  cursor: pointer;
}

.request-kind-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.request-form,
.comment-form {
  position: relative;
}

.request-kind {
  display: inline-block;
  padding: 0.05rem 0.4rem;
  font-size: 0.75rem;
  line-height: 1.35;
  vertical-align: middle;
}

.request-kind-feature {
  background: #e4eef6;
  color: #24435e;
}

.request-kind-bug {
  background: #f8e4e4;
  color: #a40000;
}

.discover-title-line .request-kind {
  margin-left: 0.4rem;
}

.app-panel .request-form .field input[type="text"],
.app-panel .request-form textarea,
.comment-form textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  border: 1px solid #1b1b1b;
  padding: 0.35rem 0.5rem;
  font-family: sans-serif;
  font-size: 0.9rem;
  background: #fff;
  color: #000;
  outline: none;
}

.app-panel .request-form textarea {
  min-height: 9rem;
  line-height: 1.5;
  resize: vertical;
}

.comment-form textarea {
  min-height: 4rem;
  line-height: 1.5;
  resize: vertical;
}

.request-form textarea:focus,
.comment-form textarea:focus,
.request-form .field input[type="text"]:focus {
  border-color: #0000ee;
}

.request-form {
  margin: 0 0 0.25rem;
}

.post-optional-group {
  margin-bottom: 0.5rem;
}

.post-optional-toggle {
  margin-bottom: 0.15rem;
  border: none;
  background: transparent;
}

.post-optional-toggle > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  padding: 0;
  font-size: 0.9rem;
  font-weight: normal;
  color: #003399;
  text-decoration: none;
}

.post-optional-toggle > summary::marker {
  content: "";
  display: none;
}

.post-optional-toggle > summary::-webkit-details-marker {
  display: none;
}

.post-optional-toggle > summary:hover {
  color: #cc0000;
  text-decoration: underline;
}

.post-optional-toggle > summary small {
  margin-right: 0.25rem;
}

.post-optional-toggle[open] > summary {
  margin-bottom: 0.25rem;
}

.post-optional-body {
  padding: 0 0 0.35rem;
}

.post-optional-body .field {
  margin-bottom: 0;
}

.request-form-toggle {
  margin: 0 0 0.25rem;
}

.request-form-toggle > summary {
  list-style: none;
  cursor: pointer;
}

.request-form-toggle > summary::-webkit-details-marker {
  display: none;
}

.request-form-toggle > summary small {
  margin-right: 0.35rem;
}

.request-form-toggle:not([open]) > summary {
  border-bottom: none;
}

.request-form-toggle > .request-form {
  margin: 0;
}

.request-back {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.request-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.request-status-actions form {
  display: inline;
}

.comment-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.6rem;
}

.comment-quote {
  font-size: 0.8rem;
  color: #777;
  border-left: 2px solid #ddd;
  padding-left: 0.5rem;
  margin: 0 0 0.35rem;
}

.comment-form {
  margin-top: 0.5rem;
}

.comment-more {
  margin: 0.45rem 0 0.15rem;
  font-size: 0.8rem;
}

.comment-more a {
  color: #0000ee;
}

.comment-reply-toggle {
  margin-top: 0.5rem;
}

.comment-reply-toggle > summary {
  list-style: none;
  width: fit-content;
  cursor: pointer;
  color: #0000ee;
  font-size: 0.8rem;
}

.comment-reply-toggle > summary::-webkit-details-marker {
  display: none;
}

.comment-reply-toggle > summary:hover {
  text-decoration: underline;
}

.comment-reply-toggle[open] {
  padding-top: 0.5rem;
  border-top: 1px solid #ddd;
}

.comment-reply-toggle[open] > summary {
  margin-bottom: 0.35rem;
}

.post-comments .comment-reply-toggle .comment-form {
  margin-top: 0.35rem;
}

.comment-form label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
  color: #555;
}

.comment-form-new {
  margin-top: 1rem;
  padding: 0.7rem;
  background: #f6f6f6;
  border: 1px solid #d4d4d4;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 0.75rem;
}

.form-actions-primary {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.form-actions-primary .btn,
.form-actions-primary button {
  margin: 0;
  line-height: inherit;
}

.form-actions-divider {
  color: #999;
  font-weight: 700;
  user-select: none;
  line-height: inherit;
}

.form-actions button[type="submit"] {
  margin-bottom: 0;
}

.form-actions button[type="submit"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-list-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #1b1b1b;
}

.post-list-item:last-child {
  border-bottom: none;
}

.post-list-item.is-unread {
  font-weight: bold;
}

.notification-actions {
  margin-bottom: 0.75rem;
}

.inline-form {
  display: inline;
  margin-left: 0.35rem;
}

.post-list-meta {
  font-size: 0.8rem;
  color: #555;
  white-space: nowrap;
}

.settings-form {
  margin-bottom: 1rem;
}

.settings-section {
  border: 1px solid #1b1b1b;
  padding: 0.75rem 1rem;
  margin: 0 0 1rem;
}

.settings-section legend {
  font-size: 0.9rem;
  padding: 0 0.25rem;
}

.settings-section .field input[type="text"],
.settings-section .field input[type="password"] {
  width: 100%;
  max-width: none;
  border: 1px solid #1b1b1b;
  padding: 0.35rem 0.5rem;
  font-family: sans-serif;
  font-size: 0.9rem;
  background: #fff;
  color: #000;
  outline: none;
}

.settings-section .field input[type="text"]:focus,
.settings-section .field input[type="password"]:focus {
  border-color: #0000ee;
}

.settings-section .password-field {
  width: 100%;
}

.settings-readonly {
  background: #fafafa;
}

.settings-success {
  font-size: 0.9rem;
  color: #060;
  margin-bottom: 0.75rem;
}

.settings-section .checkbox-label {
  margin-bottom: 0;
}

.checkbox-with-tip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
  margin-bottom: 0.75rem;
}

.checkbox-with-tip .field-tip-mark {
  cursor: pointer;
}

.settings-form .settings-save-btn {
  display: block;
  width: 100%;
  margin: 0.75rem 0 0;
  padding: 0.7rem 1rem;
  border: 1px solid #b5d9b5;
  border-radius: 4px;
  background: #dff5df;
  color: #2d5a2d;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.settings-form .settings-save-btn:hover {
  background: #cfecc9;
  border-color: #9dcc9d;
  color: #234923;
  text-decoration: none;
}

.settings-danger-panel {
  border-color: #c00;
  background: #fff8f8;
}

.settings-danger-panel legend {
  color: #c00;
}

.settings-list {
  margin-bottom: 0;
}

.settings-list dt {
  font-size: 0.8rem;
  color: #555;
  margin-top: 0.5rem;
}

.settings-list dt:first-child {
  margin-top: 0;
}

.settings-list dd {
  margin: 0.15rem 0 0;
}

@media (max-width: 760px) {
  .setup-panel {
    max-width: none;
  }

  .app-shell:not(.app-shell-bare) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "nav"
      "content"
      "side";
  }

  .app-aside-break {
    display: block;
    border: none;
    border-top: 1px solid #ccc;
    margin: 0.15rem 0 1rem;
    width: 100%;
  }

  .app-nav-strip {
    flex-wrap: nowrap;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  .app-nav-link {
    padding: 2px 6px;
  }

  .app-calendar {
    font-size: 0.8rem;
    table-layout: fixed;
    max-width: 20rem;
    margin: 0 auto;
  }

  .app-calendar th,
  .app-calendar td {
    padding: 0.45rem 0.15rem;
    height: 2.35rem;
    vertical-align: middle;
  }

  .post-options-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  #container {
    margin-top: 0;
    padding: 0.75rem;
  }

  .site-footer-wrap {
    margin: 1rem -0.75rem -0.75rem;
  }

  #container:has(.home-page) .site-footer-wrap {
    margin-top: 2rem;
  }

  .home-cover-wrap {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    margin-bottom: 1rem;
  }

  .home-cover-banner {
    height: auto;
  }

  .home-cover-banner img {
    height: auto;
    object-fit: contain;
    object-position: center;
  }

  .home-split {
    grid-template-columns: 1fr;
  }

  .site-header-row:has(.site-header-guest) {
    flex-wrap: wrap;
  }

  .site-header-row:has(.site-header-guest) > .site-logo-mark {
    width: 100%;
  }

  .site-header-row:has(.site-header-guest) .site-header-guest {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .field-tip-text {
    left: 0;
    right: auto;
    width: min(16.5rem, calc(100vw - 2.5rem));
  }

  .home-shots {
    grid-template-columns: repeat(2, 1fr);
  }

  .hub-tools {
    grid-template-columns: 1fr;
  }

  .domain-list {
    columns: 1;
  }

  .field input[type="text"],
  .field input[type="email"],
  .field input[type="password"],
  .password-field,
  .password-strength,
  .field-select,
  .post-form textarea,
  .request-form textarea,
  .comment-form textarea,
  .settings-section .field input[type="text"],
  .settings-section .field input[type="password"],
  .blogs-search input[type="search"] {
    max-width: none;
    width: 100%;
    font-size: 16px;
  }

  .post-form textarea {
    min-height: 12rem;
  }

  .comment-replies {
    margin-left: 0.75rem;
    padding-left: 0.5rem;
  }

  .archive-item-head,
  .post-list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .archive-date,
  .post-list-meta {
    white-space: normal;
  }

  .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    align-items: center;
  }

  .discover-item {
    padding: 0.5rem 0;
  }

  .discover-upvotes,
  .post-upvotes,
  .link-button,
  button[type="submit"].link-button {
    padding: 0.25rem 0;
  }

  .archive-actions .link-button,
  .archive-actions button[type="submit"].link-button {
    padding: 0.35rem 0.55rem;
  }

  .post-meta .post-upvotes {
    padding: 0;
  }

  .site-logo-mark img {
    height: 2.5rem;
  }

}

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 40%) minmax(0, 60%);
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.login-main {
  padding: 0 1.25rem calc(1rem + 100px) 1rem;
  border-right: 1px solid #999;
}

.login-main form {
  margin-bottom: 1rem;
}

.login-main .field input[type="text"],
.login-main .field input[type="email"],
.login-main .field input[type="password"] {
  max-width: none;
}

.login-main .password-field {
  max-width: none;
}

.login-main hr {
  display: none;
}

.login-aside {
  position: relative;
  background: #2d3748;
  height: 0;
  min-height: 100%;
  overflow: hidden;
  border-radius: 5px;
}

.login-aside::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
  pointer-events: none;
  border-radius: inherit;
}

.login-aside-gif {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  display: block;
}

@media (max-width: 720px) {
  body:has(.login-layout) {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
  }

  body:has(.login-layout) #container,
  #container:has(.login-layout) {
    flex: 1 1 auto;
    min-height: 100vh;
    min-height: 100dvh;
    margin-top: 0;
  }

  .login-layout {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .login-main {
    padding: 0;
    border-right: none;
    flex: 0 0 auto;
  }

  .login-main form {
    margin-bottom: 0;
  }

  .login-aside:not(:has(.login-aside-gif)) {
    display: none;
  }

  .login-aside:has(.login-aside-gif) {
    display: block;
    order: -1;
    flex: 0 0 auto;
    height: 8rem;
    min-height: 8rem;
    margin: 0;
    border-radius: 5px;
  }

  .login-aside-gif {
    min-height: 0;
    height: 100%;
    object-fit: cover;
    object-position: center 80%;
  }

  #container:has(.login-layout) .site-footer-wrap {
    margin-top: auto;
  }
}

.post-back-nav {
  margin: 0 0 0.35rem;
}

.post-back-sep {
  margin: 0 0.35rem;
  color: #aaa;
}

.post-neighbors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem 0.65rem;
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
}

.post-neighbor-disabled {
  color: #999;
}

.post-read-more {
  white-space: nowrap;
}

.mood-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 0.35rem 0.75rem;
}

.post-form-section-toggle {
  margin-top: 0.75rem;
}

.post-form-section-summary {
  font-weight: bold;
}

.request-card {
  border-radius: 6px;
  padding: 0.55rem 0.65rem;
  margin: 0.15rem 0;
}

.request-card-bug {
  background: rgba(180, 40, 40, 0.08);
}

.request-card-feature {
  background: rgba(40, 80, 170, 0.08);
}

.request-excerpt {
  margin: 0.25rem 0 0.15rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.request-detail .post-title {
  margin-bottom: 0.65rem;
}

.request-detail-body {
  margin-bottom: 0;
}

.request-meta-divider {
  border: none;
  border-top: 1px solid #ccc;
  margin: 1rem 0 0.75rem;
}

.request-detail .request-meta {
  font-size: 0.9rem;
}

.request-detail .request-meta .discover-meta {
  margin-bottom: 0.35rem;
}

.request-detail .request-meta .post-meta {
  margin-bottom: 0;
}

.requests-intro {
  max-width: 42rem;
  line-height: 1.55;
}

.image-crop-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  padding: 1rem;
}

.image-crop-modal[hidden] {
  display: none;
}

.image-crop-dialog {
  width: min(520px, 100%);
  background: #fff;
  border: 1px solid #888;
  padding: 0.75rem;
}

.image-crop-stage-wrap {
  overflow: hidden;
  border: 1px solid #ccc;
  margin-bottom: 0.5rem;
}

.image-crop-stage {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
  cursor: grab;
}

.image-crop-zoom-label {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.9rem;
}

.image-crop-zoom {
  width: 100%;
  margin-top: 0.25rem;
}

.image-crop-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.image-crop-actions .link-button {
  font-size: 0.9rem;
}
