:root {
  color-scheme: light;
  --ink: #242428;
  --ink-soft: #4f5057;
  --muted: #646773;
  --line: #dddddf;
  --line-strong: #c8c9ce;
  --paper: #ffffff;
  --surface: #f7f7f8;
  --surface-strong: #efeff1;
  --accent: #313244;
  --accent-strong: #1e1e2e;
  --accent-soft: #f0f0f4;
  --intro: #f5f3f9;
  --intro-line: #e4deed;
  --amber: #a06a25;
  --amber-soft: #fff6e9;
  --red: #b35247;
  --red-soft: #fff1ef;
  --green: #4f7f47;
  --green-soft: #eff8ed;
  --charcoal: #303138;
  --shadow: 0 12px 34px rgba(20, 20, 24, 0.12);
  --radius: 8px;
  --focus: #555773;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK KR",
    "Yu Gothic UI", "Microsoft YaHei UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

button:disabled:hover {
  transform: none;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 5px;
  font-size: clamp(1.65rem, 2.4vw, 2.24rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 7px;
  font-size: 1.02rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.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;
}

[hidden] {
  display: none !important;
}

.app-shell {
  width: 100%;
  margin: 0 auto;
  background: var(--paper);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 80px;
  padding: 20px max(28px, calc((100vw - 1200px) / 2));
  background: transparent;
}

.brand,
.header-actions,
.feed__header,
.post-card__meta,
.detail__meta,
.comment__meta,
.tag-row,
.detail-actions,
.form-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 11px;
  min-width: 220px;
}

.brand__icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  box-shadow: none;
}

.brand strong,
.brand small {
  display: block;
  letter-spacing: 0;
}

.brand strong {
  font-size: 1.1rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.header-actions {
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
  color: currentColor;
}

.icon svg {
  display: block;
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

.button:hover {
  border-color: var(--line-strong);
}

.button--primary {
  background: var(--accent);
  color: #ffffff;
}

.button--primary:hover {
  background: var(--accent-strong);
}

.button--quiet,
.button--muted,
.button--subtle {
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
}

.button--muted {
  background: var(--surface-strong);
}

.button--danger {
  border-color: rgba(189, 73, 63, 0.3);
  background: var(--red-soft);
  color: #913028;
}

.button--reaction {
  min-width: 72px;
  border-color: rgba(49, 50, 68, 0.24);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.button--reaction.is-active,
.button--reaction:hover {
  background: var(--accent);
  color: #ffffff;
}

.language-toggle {
  width: 38px;
  height: 38px;
}

.language-toggle .icon {
  width: 18px;
  height: 18px;
}

.language-menu {
  position: relative;
  display: inline-grid;
}

.language-menu__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 35;
  display: grid;
  gap: 4px;
  min-width: 238px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.language-menu__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.language-menu__item:hover,
.language-menu__item.is-active {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.language-menu__name {
  font-weight: 600;
  white-space: nowrap;
}

.language-menu__meta {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.support-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.support-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  transition:
    border-color 150ms ease,
    background 150ms ease;
}

.support-button:hover {
  border-color: var(--line-strong);
}

.support-button--patreon {
  border-color: var(--line);
  background: var(--paper);
}

.support-button--patreon:hover {
  border-color: rgba(255, 66, 77, 0.42);
  background: #fff6f7;
}

.support-button--kofi {
  border-color: var(--line);
  background: var(--paper);
}

.support-button--kofi:hover {
  border-color: rgba(41, 171, 224, 0.46);
  background: #f1f9fd;
}

.support-logo {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.notification-menu {
  position: relative;
  display: inline-grid;
}

.notification-toggle {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--red);
  color: #ffffff;
  font-size: 0.64rem;
  font-weight: 600;
  line-height: 1;
}

.notification-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 36;
  display: grid;
  width: min(360px, calc(100vw - 28px));
  max-height: min(460px, calc(100vh - 90px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.notification-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 600;
}

.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notification-panel__list {
  display: grid;
  max-height: 390px;
  overflow-y: auto;
}

.notification-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: start;
  width: 100%;
  padding: 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  text-align: left;
}

.notification-item:last-child {
  border-bottom: 0;
}

.notification-item:hover,
.notification-item.is-unread {
  background: var(--accent-soft);
}

.notification-item__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--accent-strong);
}

.notification-item__icon .icon {
  width: 16px;
  height: 16px;
}

.notification-item__body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.notification-item__body strong,
.notification-item__body span,
.notification-item__body small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-item__body strong {
  font-size: 0.86rem;
}

.notification-item__body span,
.notification-item__body small,
.notification-item__date,
.notification-empty {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.notification-item__date {
  white-space: nowrap;
}

.notification-empty {
  margin: 0;
  padding: 16px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1;
}

.icon-button .icon {
  width: 18px;
  height: 18px;
}

.board-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  column-gap: 32px;
  row-gap: 24px;
  width: min(1200px, calc(100% - 56px));
  margin: 0 auto;
  padding: 28px 0 48px;
  align-items: start;
}

.admin-shell {
  display: grid;
  gap: 18px;
  width: min(1040px, calc(100% - 56px));
  margin: 0 auto;
  padding: 22px 0 56px;
}

.summary-band {
  display: grid;
  gap: 20px;
  align-items: start;
  grid-column: 1;
  grid-row: 1;
  padding: 22px;
  border: 1px solid var(--intro-line);
  border-radius: 12px;
  background: var(--intro);
}

.notice-board,
.toolbar,
.feed {
  grid-column: 2;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.summary-copy {
  min-height: 0;
  padding: 0;
}

.summary-copy p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.summary-copy h1 {
  margin-bottom: 14px;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.summary-band .metric-strip,
.summary-band .summary-support {
  border-color: var(--intro-line);
}

.board-notice,
.login-note {
  margin: 0 0 12px;
  color: var(--ink-soft);
}

.feedback-rules {
  display: grid;
  gap: 6px;
  margin: 0 0 18px;
  padding: 0;
  color: var(--ink-soft);
  list-style: none;
}

.feedback-rules li {
  position: relative;
  padding-left: 13px;
}

.feedback-rules li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.metric-strip div {
  padding: 0;
}

.metric-strip dt {
  font-size: 1.35rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.metric-strip dd {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.notice-board {
  grid-column: 2;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.notice-board__header {
  padding: 0 0 12px;
}

.notice-list {
  display: grid;
  gap: 0;
}

.notice-card {
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.notice-card:last-child {
  border-bottom: 0;
}

.notice-card summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.notice-card summary::-webkit-details-marker {
  display: none;
}

.notice-card__title {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.notice-card__chevron {
  display: flex;
  color: var(--muted);
}

.notice-card[open] .notice-card__chevron {
  transform: rotate(90deg);
}

.notice-card__body {
  padding: 2px 24px 22px 50px;
  line-height: 1.85;
  font-size: 0.9rem;
}

.notice-card__icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 24px;
  color: var(--ink-soft);
}

.notice-card__icon .icon {
  width: 17px;
  height: 17px;
}

.notice-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.75rem;
}

.notice-card h3,
.admin-notice-row h3 {
  overflow-wrap: anywhere;
}

.notice-card p,
.admin-notice-row p {
  margin: 0;
  color: var(--ink-soft);
  white-space: pre-wrap;
}

/* Search and every filter belong to the same list toolbar. */
.toolbar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(185px, 1fr) minmax(180px, 1.2fr) auto auto 150px;
  gap: 8px;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.board-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.toolbar .select-field--product {
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  width: 100%;
}

.select-field--product > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.filter-menu {
  position: relative;
  flex: 0 0 auto;
}

.filter-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.activity-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
}

.activity-toggle .icon {
  width: 16px;
  height: 16px;
}

.activity-toggle.is-active,
.activity-toggle:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.activity-toggle:disabled {
  color: var(--muted);
  background: #fbfbfc;
}

.filter-trigger::-webkit-details-marker {
  display: none;
}

.filter-trigger .icon {
  width: 16px;
  height: 16px;
}

.filter-menu[open] .filter-trigger,
.filter-trigger:hover {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: #ffffff;
}

.filter-menu__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  display: grid;
  gap: 10px;
  width: 320px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.filter-menu__panel .select-field {
  width: 100%;
}

.toolbar .search-field {
  min-width: 0;
}

.search-field input,
.select-field select,
.field input,
.field select,
.field textarea,
.comment-form textarea,
.comment-edit-form textarea,
.status-control select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
}

.search-field input {
  padding: 0 13px 0 38px;
}

.search-field {
  position: relative;
}

.search-field__icon {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 17px;
  height: 17px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-field input:focus,
.select-field select:focus,
.field input:focus,
.field select:focus,
.field textarea:focus,
.comment-form textarea:focus,
.comment-edit-form textarea:focus,
.status-control select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(49, 50, 68, 0.14);
}

.select-field,
.field {
  display: grid;
  gap: 6px;
}

.select-field {
  grid-template-columns: auto minmax(92px, 1fr);
  align-items: center;
  min-width: 128px;
  flex: 0 0 auto;
}

.select-field--sort {
  min-width: 150px;
}

.select-field span,
.field span,
.type-picker legend {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.select-field select,
.field select {
  padding: 0 34px 0 11px;
}

.feed {
  grid-column: 2;
  padding: 0;
  overflow: hidden;
}

.feed__header {
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  margin-bottom: 0;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line-strong);
}

.result-count {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.post-list {
  display: grid;
  gap: 0;
}

.post-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  width: 100%;
  min-height: 112px;
  padding: 22px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  text-align: left;
  transition: background 150ms ease;
}

.post-card::before {
  content: none;
}

.post-card:hover,
.post-card.is-selected {
  background: #fbfbfc;
}

.post-card__main {
  grid-column: 2;
  min-width: 0;
}

.post-card__title-row {
  display: block;
  align-items: start;
  margin-bottom: 5px;
}

.post-card__kind {
  display: none;
}

.post-card__kind.is-bug {
  border-color: rgba(189, 73, 63, 0.28);
  background: var(--red-soft);
  color: #913028;
}

.post-card__kind .icon {
  width: 15px;
  height: 15px;
}

.post-card__meta,
.detail__meta,
.comment__meta,
.tag-row {
  flex-wrap: wrap;
  gap: 7px;
}

.post-card__meta {
  margin-bottom: 6px;
}

.post-card h3,
.detail__title {
  overflow-wrap: anywhere;
}

.post-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 9px;
  color: var(--ink-soft);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.post-card__context {
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.6;
}

.post-card__side {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.vote-chip {
  display: grid;
  grid-template-rows: 12px 1fr;
  grid-template-columns: 1fr;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 48px;
  min-height: 48px;
  padding: 6px 0 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfbfc;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.post-card.is-bug .vote-chip {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink-soft);
}

.vote-chip .icon {
  width: 13px;
  height: 13px;
  margin: 0 auto;
  stroke-width: 2.6px;
}

.vote-chip__count {
  display: block;
  min-width: 2ch;
  text-align: center;
  line-height: 1;
}

.open-chip {
  display: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
}

.open-chip .icon {
  width: 16px;
  height: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 24px;
  padding: 1px 7px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: var(--surface-strong);
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.pill .icon {
  width: 13px;
  height: 13px;
}

.pill--feature {
  border-color: rgba(49, 50, 68, 0.24);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.pill--product {
  font-weight: 600;
}

.pill--product-scriptplayer-plus-pc {
  background: transparent;
  color: var(--ink-soft);
  padding-left: 0;
}

.pill--product-scriptplayer-plus-android {
  background: transparent;
  color: var(--ink-soft);
  padding-left: 0;
}

.pill--product-koeplayer-pc {
  background: transparent;
  color: var(--ink-soft);
  padding-left: 0;
}

.pill--product-koeplayer-android {
  background: transparent;
  color: var(--ink-soft);
  padding-left: 0;
}

.pill--bug {
  border-color: rgba(189, 73, 63, 0.28);
  background: var(--red-soft);
  color: #913028;
}

.pill--notice {
  border-color: rgba(160, 106, 37, 0.3);
  background: var(--amber-soft);
  color: #855306;
}

.pill--warning {
  border-color: rgba(183, 116, 8, 0.34);
  background: var(--amber-soft);
  color: #855306;
}

.pill--high,
.pill--critical {
  border-color: rgba(183, 116, 8, 0.34);
  background: var(--amber-soft);
  color: #855306;
}

.pill--resolved {
  border-color: rgba(69, 118, 56, 0.3);
  background: var(--green-soft);
  color: #315d22;
}

.pill--external {
  border-color: rgba(89, 99, 119, 0.28);
  background: #f1f3f7;
  color: #485164;
}

.pill--in_progress,
.pill--planned {
  border-color: rgba(49, 50, 68, 0.25);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.tag {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.author-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.author-chip__avatar {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--ink-soft);
  font-size: 0.62rem;
  font-weight: 600;
}

.tag .icon {
  width: 13px;
  height: 13px;
  margin-right: 4px;
  vertical-align: -2px;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 300px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.empty-state--compact {
  min-height: 150px;
  border: 0;
}

.admin-auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(720px, 100%);
  margin: 34px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(21, 23, 28, 0.05);
}

.admin-auth__copy {
  padding: 24px 24px 18px;
}

.admin-auth p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.admin-auth__box {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 12px;
  min-height: 0;
  padding: 18px 24px 24px;
  border-top: 1px solid var(--line);
  background: #fbfbfc;
}

.user-auth {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.google-login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(21, 23, 28, 0.06);
}

.google-login-button:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.google-login-button.is-setup {
  border-style: dashed;
  color: var(--muted);
}

.google-login-button--admin {
  width: min(280px, 100%);
  min-height: 42px;
}

.google-logo {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.header-actions .google-login-button {
  box-shadow: none;
}

.header-actions .language-toggle .icon,
.header-actions .notification-toggle .icon,
.header-actions .google-logo,
.header-actions > .button .icon {
  width: 20px;
  height: 20px;
}

@media (min-width: 681px) {
  .header-actions .language-toggle,
  .header-actions .notification-toggle {
    width: 44px;
    height: 44px;
  }

  .header-actions .google-login-button,
  .header-actions > .button,
  .header-actions .user-chip {
    min-height: 44px;
    font-size: 0.9375rem;
  }

  .header-actions .google-login-button,
  .header-actions > .button {
    padding: 0 16px;
  }
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 260px;
  min-height: 38px;
  padding: 0 5px 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(21, 23, 28, 0.06);
}

.user-chip > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-avatar {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 600;
}

.icon-button--small {
  width: 28px;
  height: 28px;
}

.icon-button--small .icon {
  width: 15px;
  height: 15px;
}

.admin-auth__message {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.checkbox-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 600;
}

.checkbox-field input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: start center;
  padding: 36px 18px;
  overflow-y: auto;
}

.modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 20, 24, 0.48);
}

.modal__card {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.modal__card--form {
  padding: 22px;
}

.modal__card--detail {
  display: flex;
  flex-direction: column;
  width: min(840px, 100%);
  max-height: calc(100dvh - 72px);
  overflow: hidden;
  padding: 0;
}

.modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
}

form {
  display: grid;
  gap: 14px;
}

.product-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.product-picker legend {
  padding: 0 4px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
}

.product-picker > p {
  grid-column: 1 / -1;
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.product-picker label {
  position: relative;
  display: block;
}

.product-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.product-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.product-option__icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 10px;
  object-fit: cover;
}

.product-option > span:last-child {
  min-width: 0;
  line-height: 1.25;
}

.product-option::before {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "";
  opacity: 0.72;
}

.product-picker input:focus-visible + .product-option {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.product-picker input:checked + .product-option {
  border-color: currentColor;
  box-shadow: inset 0 0 0 1px currentColor;
}

.product-picker input:checked + .product-option::before {
  background: currentColor;
  box-shadow: inset 0 0 0 2px #ffffff;
  opacity: 1;
}

.product-option--scriptplayer-plus-pc {
  background: var(--paper);
  color: var(--ink);
}

.product-option--scriptplayer-plus-android {
  background: var(--paper);
  color: var(--ink);
}

.product-option--koeplayer-pc {
  background: var(--paper);
  color: var(--ink);
}

.product-option--koeplayer-android {
  background: var(--paper);
  color: var(--ink);
}

.type-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.type-picker legend {
  grid-column: 1 / -1;
}

.type-picker label {
  position: relative;
  display: block;
}

.type-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.type-picker label > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-soft);
  font-weight: 600;
}

.type-picker input:checked + span {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: #ffffff;
}

.type-picker .icon {
  width: 16px;
  height: 16px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.field input,
.field textarea {
  padding: 9px 11px;
}

.field textarea {
  min-height: 102px;
  resize: vertical;
}

.bug-fields {
  display: grid;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(189, 73, 63, 0.2);
  border-radius: var(--radius);
  background: var(--red-soft);
}

.duplicate-suggestions {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(49, 50, 68, 0.2);
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.duplicate-suggestions__header {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.duplicate-suggestions__header > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(49, 50, 68, 0.22);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--accent-strong);
}

.duplicate-suggestions__header .icon {
  width: 15px;
  height: 15px;
}

.duplicate-suggestions__header strong {
  display: block;
  font-size: 0.88rem;
}

.duplicate-suggestions__header p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.duplicate-suggestions__list {
  display: grid;
  gap: 7px;
}

.duplicate-suggestion {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  text-align: left;
}

.duplicate-suggestion:hover {
  border-color: var(--accent);
}

.duplicate-suggestion strong,
.duplicate-suggestion small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.duplicate-suggestion small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.duplicate-suggestion__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.attachment-field small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.attachment-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.attachment-preview__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 600;
}

.attachment-preview__item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-preview__item small {
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.attachment-preview__item .icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.form-actions {
  gap: 9px;
}

.detail-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  padding: 8px 20px 0;
  background: var(--paper);
}

.detail-toolbar .icon-button {
  width: 36px;
  height: 36px;
  border-color: transparent;
  background: transparent;
}

#detailPanel {
  min-height: 0;
  padding: 12px 32px 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.detail__header {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.detail__identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.detail__identity .pill--product {
  font-size: 0.82rem;
}

.detail__identity .pill--product img {
  width: 24px;
  height: 24px;
}

.detail__byline, .detail__facts, .detail__tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.78rem;
}

.detail__byline .author-chip, .comment__meta .author-chip {
  color: var(--ink-soft);
  font-weight: 600;
}

.detail__byline .author-chip__avatar, .comment__meta .author-chip__avatar {
  width: 26px;
  height: 26px;
  background: var(--surface);
  border: 0;
}

.detail__facts {
  gap: 10px 20px;
  margin-top: 18px;
}

.detail__facts > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detail__facts strong { color: var(--ink-soft); font-weight: 500; }
.detail__facts .detail__priority--high, .detail__facts .detail__priority--critical { color: var(--red); font-weight: 600; }
.detail__tags { margin: 16px 0 24px; }
.detail__section > h3 { margin: 0 0 16px; font-size: 0.95rem; }
.detail__count { margin-left: 8px; color: var(--muted); font-size: 0.85rem; font-weight: 400; font-variant-numeric: tabular-nums; }
.developer-note p { line-height: 1.85; font-size: 0.9rem; }
.attachment-card--file { grid-template-columns: 36px minmax(0, 1fr); align-items: center; }
.attachment-card--file .attachment-card__preview { width: 36px; height: 40px; aspect-ratio: auto; }
.attachment-card--file .attachment-card__file-icon { width: 22px; height: 22px; }
.comment-signin { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 18px; background: var(--surface); border-radius: var(--radius); }
.comment-signin p { margin: 0; color: var(--muted); font-size: 0.84rem; }
.comment-signin .button { font-size: 0.82rem; }
.comment-form > .button { justify-self: end; }
.comment.is-developer .author-chip__avatar { background: var(--intro); color: var(--accent); }
.comment:last-child { border-bottom: 0; }

.detail__title {
  margin: 14px 0;
  font-size: clamp(1.35rem, 2.1vw, 1.7rem);
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.detail__meta {
  margin-bottom: 16px;
}

.detail__summary {
  margin: 24px 0;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.85;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.developer-note {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding: 20px;
  border: 0;
  border-radius: var(--radius);
  background: var(--intro);
}

.developer-note__header {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.developer-note p {
  margin-bottom: 0;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.developer-note a {
  color: var(--accent-strong);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.notice-card a,
.detail__summary a,
.comment a {
  color: var(--accent-strong);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.detail__section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.detail__section--comments {
  display: grid;
  grid-template-rows: auto minmax(0, auto) auto auto;
  gap: 12px;
  min-height: 0;
}

.detail__section p:last-child,
.detail__section dl:last-child {
  margin-bottom: 0;
}

.detail-actions {
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.post-edit-form {
  display: grid;
  gap: 12px;
}

.type-picker--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vote-button {
  min-width: 118px;
  border-color: rgba(49, 50, 68, 0.24);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.vote-button:hover,
.vote-button.is-active {
  background: var(--accent);
  color: #ffffff;
}

.vote-button strong {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-strong);
  font-size: 0.78rem;
  line-height: 1;
}

.vote-button.is-active strong,
.vote-button:hover strong {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.status-control {
  display: grid;
  grid-template-columns: auto minmax(180px, 260px);
  gap: 8px;
  align-items: center;
  margin: 10px 0 16px;
}

.status-control select {
  min-height: 38px;
  padding: 0 11px;
}

.detail-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
}

.detail-list div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--surface-strong);
}

.detail-list div:first-child:last-child,
.detail-list div:nth-child(n + 3) {
  grid-column: 1 / -1;
}

.detail-list dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.detail-list dd {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.75;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.attachment-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.attachment-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.attachment-card:hover {
  border-color: var(--accent);
}

.attachment-card__preview {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background: var(--surface);
  color: var(--muted);
}

.attachment-card__preview img,
.attachment-card__preview video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.attachment-card__file-icon,
.attachment-card__preview > .icon {
  width: 28px;
  height: 28px;
}

.attachment-card__body {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.attachment-card__body strong {
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.attachment-card__body small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
}

.status-history {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-history li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.status-history__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--accent-strong);
}

.status-history__icon .icon {
  width: 15px;
  height: 15px;
}

.status-history__body {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.status-history__body span {
  overflow-wrap: anywhere;
}

.status-history__body small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
}

.comments {
  display: grid;
  gap: 0;
  min-height: 0;
  overflow: visible;
}

.comments.has-expanded-comment {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.comment {
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.comment.is-developer {
  background: transparent;
}

.comment__body {
  margin: 12px 0 0 34px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.85;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.comment__body.is-collapsed {
  color: var(--ink-soft);
}

.comment__more {
  justify-self: start;
  margin: 8px 0 0 34px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 600;
}

.comment__more:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.comment__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.comment__actions {
  display: inline-flex;
  gap: 4px;
  margin-left: auto;
}

.comment__actions .icon-button {
  width: 30px;
  height: 30px;
  color: var(--ink-soft);
}

.comment__actions .icon-button:hover {
  border-color: var(--charcoal);
  color: var(--ink);
}

.comment-edit-form {
  display: grid;
  gap: 9px;
}

.comment-edit-form textarea {
  min-height: 96px;
  max-height: 220px;
  padding: 9px 11px;
  overflow-y: auto;
  overflow-wrap: anywhere;
  resize: vertical;
}

.comment-edit-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.developer-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border: 1px solid rgba(49, 50, 68, 0.26);
  border-radius: 999px;
  background: #ffffff;
  color: var(--accent-strong);
  font-size: 0.7rem;
  font-weight: 600;
}

.comment-form {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding-top: 12px;
  background: var(--paper);
}

.comment-form textarea {
  min-height: 88px;
  max-height: 220px;
  padding: 12px;
  overflow-y: auto;
  overflow-wrap: anywhere;
  resize: vertical;
}

.comment-form textarea:disabled {
  background: var(--surface);
  color: var(--muted);
}

.comment-login-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.comment-login-note .icon {
  width: 15px;
  height: 15px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  max-width: min(360px, calc(100% - 40px));
  padding: 11px 13px;
  border: 1px solid rgba(49, 50, 68, 0.28);
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: #00545b;
  font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.brand__apps {

  display: flex;

  gap: 5px;

  flex: 0 0 auto;

}
.brand__apps .brand__icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.brand strong {
  font-size: 0.96rem;
  font-weight: 650;
}
.brand small {
  font-weight: 400;
}
.board-notice {
  line-height: 1.8;
}
.login-note {
  margin: 12px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.writing-guide {
  margin-top: 22px;
  font-size: 0.86rem;
}
.writing-guide summary {
  padding: 10px 0;
  cursor: pointer;
  font-weight: 600;
}
.writing-guide .feedback-rules {
  margin-top: 12px;
  line-height: 1.7;
}
.summary-support {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}
.notice-list {
  border-radius: var(--radius);
  overflow: hidden;
}
.notice-card p {
  font-size: 0.86rem;
  line-height: 1.7;
}
.notice-card__meta .pill--notice {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
}
.post-card__meta .pill--feature, .post-card__meta .pill--bug {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
}
.post-card .tag-row {
  display: none;
}
.post-card:hover {
  background: var(--surface-strong);
}
.post-card h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}
.post-card__meta .tag {
  font-size: 0.75rem;
  font-weight: 400;
}
.pill--product img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: contain;
}
.type-picker input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.post-card:focus-visible {
  outline-offset: -3px;
}
::selection {
  background: #dedee9;
  color: var(--ink);
}
input::placeholder, textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 1040px) {
  .board-shell {
    grid-template-columns: 1fr;
    width: calc(100% - 64px);
  }

  .admin-shell {
    width: min(860px, calc(100% - 36px));
  }

  .summary-band,
  .notice-board,
  .toolbar,
  .feed {
    grid-column: 1;
  }

  .summary-band {
    grid-row: auto;
  }

  .filter-menu {
    width: 100%;
  }

  .filter-trigger {
    width: 100%;
  }

  .filter-menu__panel {
    width: 100%;
  }

  .post-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .post-card__side {
    grid-column: 1;
    justify-items: center;
    grid-auto-flow: row;
    justify-content: center;
  }
}

@media (min-width: 681px) and (max-width: 1040px) {
  .summary-band {
    grid-template-columns: minmax(0, 1fr) 160px;
    gap: 24px;
  }
  .summary-support {
    grid-column: 2;
    padding-top: 12px;
  }

  .summary-copy {
    grid-row: 1 / span 2;
  }

  .filter-menu, .filter-trigger {
    width: auto;
  }
  .filter-menu__panel {
    width: 340px;
  }
}

@media (max-width: 680px) {
  html,
  body {
    overflow-x: clip;
  }

  body {
    background: var(--paper);
    font-size: 14px;
  }

  .app-shell {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    min-height: 64px;
    padding: 10px 16px;
    background: var(--paper);
  }

  .brand {
    min-width: 0;
    gap: 8px;
  }

  .brand > span {
    min-width: 0;
  }

  .brand__icon {
    width: 26px;
    height: 26px;
  }

  .brand strong {
    overflow: hidden;
    max-width: none;
    font-size: 0.98rem;
    white-space: normal;
  }

  .brand small {
    display: none;
  }

  .header-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    justify-content: flex-end;
    min-width: 0;
  }

  .user-auth {
    display: contents;
  }

  .support-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
  }

	  .language-toggle,
	  .notification-toggle,
	  .support-button,
  .google-login-button,
  #openComposerButton,
  .header-actions > .button {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: var(--radius);
  }

  .google-login-button > span,
  #openComposerButton span:not(.icon),
  .header-actions > .button span:not(.icon) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  #openComposerButton {
    position: fixed;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 60;
    width: 52px;
    min-width: 52px;
    height: 52px;
    min-height: 52px;
    border-radius: 50%;
    box-shadow: 0 12px 26px rgba(49, 50, 68, 0.26);
  }

  #openComposerButton .icon {
    width: 21px;
    height: 21px;
  }

  .google-logo,
  .support-logo {
    width: 17px;
    height: 17px;
  }

	  .language-menu__panel {
	    position: fixed;
	    top: 54px;
    right: 12px;
    left: 12px;
	    min-width: 0;
	  }

	  .notification-panel {
	    position: fixed;
	    top: 54px;
	    right: 10px;
	    left: 10px;
	    width: auto;
	    max-height: min(420px, calc(100vh - 72px));
	  }

  .user-chip {
    width: auto;
    max-width: 68px;
    min-height: 34px;
    padding: 0 4px 0 7px;
  }

  .user-chip > span:nth-child(2) {
    display: none;
  }

  .board-shell,
  .admin-shell {
    width: 100%;
    margin: 0 auto;
    padding: 0 16px 88px;
  }

  .board-shell {
    gap: 20px;
  }

  .summary-band,
  .notice-board,
  .toolbar,
  .feed__header,
  .post-list,
  .admin-auth,
  .admin-notice-panel,
  .admin-board {
    margin-right: 0;
    margin-left: 0;
  }

  .summary-band {
    order: 1;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-top: 16px;
    padding: 18px;
    border: 1px solid var(--intro-line);
    border-radius: 12px;
    background: var(--intro);
  }

  .summary-copy {
    display: contents;
  }

  .summary-copy h1,
  .summary-copy .board-notice {
    grid-column: 1 / -1;
  }

  .summary-band .writing-guide {
    margin: 0;
    align-self: center;
  }

  .summary-band:has(.writing-guide[open]) .writing-guide {
    grid-column: 1 / -1;
  }

  .summary-band .summary-support {
    margin: 0;
    padding: 0;
    gap: 8px;
  }

  .summary-copy h1 {
    margin-bottom: 0;
    font-size: 1.65rem;
  }

  .board-notice {
    margin-bottom: 0;
    font-size: 0.84rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .metric-strip {
    display: none;
  }

  .notice-board,

  .notice-board {
    order: 2;
  }

  .feed {
    order: 4;
  }

  .notice-board__header,
  .feed__header {
    min-height: 0;
    padding: 9px 0 7px;
  }

  .notice-board__header {
    display: none;
  }

  .notice-card {
    padding: 0;
  }

  .notice-card h3 {
    margin-bottom: 5px;
    font-size: 1rem;
  }

  .notice-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .notice-card__icon {
    display: none;
  }

  .filter-menu {
    grid-column: 1;
    grid-row: 2;
    width: 44px;
    min-width: 0;
  }

  .activity-toggle {
    grid-column: 2;
    grid-row: 2;
    width: 44px;
    min-width: 42px;
    min-height: 40px;
    padding: 0;
  }

  .filter-trigger {
    width: 42px;
    min-height: 40px;
    padding: 0;
  }

  .filter-trigger span:not(.icon),
  .activity-toggle span:not(.icon) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .filter-menu__panel {
    position: absolute;
    top: calc(100% + 8px);
    right: auto;
    left: 0;
    min-width: calc(100vw - 32px);
    width: auto;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
  }

  .select-field {
    grid-template-columns: 48px minmax(0, 1fr);
    width: 100%;
    min-width: 0;
    flex-basis: auto;
  }

  .select-field--sort {
    grid-column: 3;
    grid-row: 2;
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .select-field--sort select {
    padding-left: 10px;
    font-size: 0.82rem;
    font-weight: 600;
  }

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

  .search-field input,
  .select-field select,
  .filter-trigger,
  .activity-toggle {
    min-height: 40px;
  }

  .feed {
    border: 0;
    background: transparent;
    overflow: visible;
  }

  .feed__header {
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .feed__header .eyebrow {
    display: none;
  }

  .result-count {
    font-size: 0.8rem;
  }

  .post-list {
    gap: 8px;
  }

  .post-card {
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 8px;
    min-height: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: none;
  }

  .post-card:not(:last-child) {
    border-bottom: 1px solid var(--line);
  }

  .post-card__main {
    grid-column: 1;
  }

  .post-card__side {
    grid-column: 2;
    grid-row: 1;
    justify-items: end;
  }

  .post-card h3 {
    margin-bottom: 5px;
    font-size: 0.98rem;
    line-height: 1.28;
  }

  .post-card p {
    margin-bottom: 8px;
    font-size: 0.86rem;
    -webkit-line-clamp: 2;
  }

  .post-card__priority,
  .post-card__area,
  .post-card__date,
  .tag-row {
    display: none;
  }

  .post-card__meta {
    gap: 5px;
    margin-bottom: 0;
  }

  .author-chip > span:last-child {
    max-width: 108px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .vote-chip {
    width: 40px;
    min-height: 42px;
  }

  .open-chip {
    display: none;
  }

  .empty-state {
    min-height: 172px;
    border-style: solid;
    background: #ffffff;
  }

  .admin-auth,
  .admin-notice-panel,
  .admin-notice-row,
  .admin-row,
  .field-grid,
  .detail-list {
    grid-template-columns: 1fr;
  }

  .admin-auth {
    margin-top: 0;
  }

  .admin-notice-panel,
  .admin-row,
  .admin-notice-row {
    gap: 12px;
  }

  .modal {
    place-items: end center;
    padding: 0;
  }

  .modal__card {
    width: 100%;
    max-height: 92dvh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .modal__card--form {
    padding: 16px;
  }

  .modal__card--detail {
    max-height: 92dvh;
  }

  .modal__close {
    top: 12px;
    right: 12px;
  }

  .modal__header {
    margin-bottom: 14px;
  }

  .detail__title {
    margin-right: 0;
    font-size: 1.3rem;
  }

  .form-actions,
  .admin-notice-row__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: stretch;
  }

  .form-actions .button,
  .admin-notice-row__actions .button {
    width: 100%;
  }

  .comments,
  .comments.has-expanded-comment {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

@media (max-width: 520px) {
  .product-picker {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .support-actions {
    gap: 3px;
  }

  .language-toggle,
  .support-button,
  .google-login-button,
  .header-actions > .button {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .google-logo,
  .support-logo {
    width: 16px;
    height: 16px;
  }

  .brand strong {
    max-width: none;
  }

  .filter-menu,
  .filter-trigger,
  .activity-toggle {
    width: 44px;
    min-width: 44px;
  }
}

@media (max-width: 680px) {
  .brand strong {
    font-size: 0.78rem;
    line-height: 1.4;
    max-width: 135px;
  }
  .brand__apps .brand__icon {
    width: 24px;
    height: 24px;
  }
  .summary-support {
    margin-top: 8px;
    padding-top: 0;
    border: 0;
  }
  .summary-support .support-button {
    width: 44px;
    height: 44px;
  }
  .writing-guide {
    margin-top: 10px;
  }
  .login-note {
    margin-top: 6px;
  }
  .filter-trigger, .activity-toggle {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  .toolbar input, .toolbar select {
    min-height: 44px;
  }
  .notice-card p {
    display: block;
    overflow: visible;
  }
  .notice-card__body {
    padding: 0 16px 16px;
  }
  .notice-card summary {
    padding: 14px 16px;
  }
  .post-list {
    gap: 0;
    border-top: 1px solid var(--line);
  }
  .post-card {
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    padding: 18px 0;
    background: transparent;
  }
  .post-card:not(:last-child) {
    border-bottom: 1px solid var(--line);
  }
  .post-card__meta {
    row-gap: 8px;
  }
  .modal__card--form {
    overflow-y: auto;
  }

  .admin-auth .google-login-button {
    width: 100%;
    padding: 0 12px;
  }

  .admin-auth .google-login-button > span {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }
}

@media (max-width: 1100px) {
  .board-content { gap: 20px; }
  .toolbar {
    display: grid;
    grid-template-columns: auto auto minmax(150px, 1fr);
    gap: 8px;
    background: transparent;
  }
  .toolbar .select-field--product { grid-column: 1 / -1; grid-row: 1; }
  .toolbar .search-field { grid-column: 1 / -1; grid-row: 2; width: auto; order: 0; }
  .toolbar .filter-menu { grid-column: 1; grid-row: 3; width: auto; }
  .toolbar .activity-toggle { grid-column: 2; grid-row: 3; }
  .toolbar .select-field--sort { grid-column: 3; grid-row: 3; }
}
@media (max-width: 680px) {
  .board-content { order: 2; }
  .toolbar { order: 0; padding: 0; }
  .board-content > .notice-board, .board-content > .feed { order: 0; }
  .toolbar .select-field--product { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  #detailPanel { padding: 8px 18px 12px; }
  .detail-toolbar { padding: 4px 12px 0; }
  .detail-toolbar .icon-button { width: 44px; height: 44px; }
  .detail__facts { gap: 10px 16px; }
  .detail-list div { grid-template-columns: 1fr; gap: 6px; }
  .attachment-list { grid-template-columns: 1fr; }
  .detail-actions .button { min-height: 44px; }
  .comment-signin .button { min-height: 44px; }
  .developer-note { padding: 16px; }
}

/* Management workspace shares the board's typography and product colors. */
.admin-workspace { width: min(1200px, calc(100% - 56px)); gap: 28px; padding-top: 28px; }
.admin-workspace__heading h1 { font-size: 1.65rem; margin: 0 0 10px; }
.admin-workspace__heading p { color: var(--muted); margin: 0 0 24px; }
.admin-navigation { display: flex; gap: 24px; border-bottom: 1px solid var(--line); }
.admin-navigation button { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-weight: 600; }
.admin-navigation button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.admin-navigation button > span:last-child { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.admin-board { grid-column: auto; min-width: 0; margin: 0; }
.admin-board > .feed__header { border: 0; padding: 0 0 16px; }
.admin-filters { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 16px; }
.admin-filters button { display: inline-flex; gap: 8px; align-items: center; min-height: 40px; border: 1px solid transparent; border-radius: var(--radius); background: transparent; color: var(--muted); padding: 0 12px; font-size: 0.86rem; }
.admin-filters button[aria-pressed="true"] { border-color: var(--line-strong); background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }
.admin-filters button:hover { background: var(--surface); }
.admin-filters button > span { font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.admin-toolbar { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(210px, 280px) minmax(120px, 160px); gap: 12px; align-items: center; padding: 0 0 20px; }
.admin-toolbar .select-field { min-width: 0; }
.admin-search > .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.admin-list { border-top: 1px solid var(--line-strong); }
.admin-queue-row { border-bottom: 1px solid var(--line); }
.admin-queue-row > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; gap: 18px; align-items: center; cursor: pointer; padding: 20px 10px; list-style: none; }
.admin-queue-row > summary::-webkit-details-marker { display: none; }
.admin-queue-row > summary:hover { background: var(--surface); }
.admin-queue-row > summary:focus-visible { outline-offset: -3px; }
.admin-queue-row__copy { display: grid; gap: 8px; min-width: 0; }
.admin-queue-row__meta, .admin-queue-row__byline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: 0.76rem; }
.admin-queue-row__byline > span { overflow-wrap: anywhere; }
.admin-queue-row__title { font-size: 1rem; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.admin-queue-row__meta .pill--product { padding: 0; background: transparent; border: 0; }
.admin-reply-flag { display: inline-flex; align-items: center; gap: 5px; color: var(--amber); }
.admin-queue-row__arrow { display: flex; color: var(--muted); transition: transform 150ms ease; }
.admin-queue-row[open] > summary .admin-queue-row__arrow { transform: rotate(90deg); }
.admin-queue-row[open] > summary { background: var(--surface); }
.admin-queue-row__detail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; padding: 24px 20px 28px; background: var(--surface); }
.admin-queue-row__body { min-width: 0; }
.admin-queue-row__body > p { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.85; }
.admin-row__history { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.78rem; color: var(--muted); overflow-wrap: anywhere; margin-top: 18px; }
.admin-row__history strong { font-weight: 600; }
.admin-open-post { margin-top: 20px; font-size: 0.84rem; }
.admin-discussion { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 20px; }
.admin-discussion > h4 { margin: 0 0 16px; font-size: 0.9rem; font-weight: 600; }
.admin-comment { padding: 14px 0; border-bottom: 1px solid var(--line); }
.admin-comment > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 0.76rem; }
.admin-comment p { margin: 10px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.88rem; line-height: 1.8; }
.admin-reply-form { display: grid; gap: 12px; margin-top: 20px; }
.admin-reply-form textarea { padding: 12px; resize: vertical; }
.admin-reply-form > .button { justify-self: end; font-size: 0.85rem; }
.admin-manage-form { position: sticky; top: 20px; }
.notification-error { margin: 0; padding: 12px 16px; color: var(--red); background: var(--red-soft); font-size: 0.82rem; }

@media (max-width: 480px) {
  .site-header:has(#signOutButton:not([hidden])) .brand > span:last-child,
  .site-header:has(#adminPanelLink:not([hidden])) .brand > span:last-child { display: none; }
}
.admin-manage-form { display: grid; gap: 12px; align-content: start; min-width: 0; }
.admin-manage-form .field { margin: 0; }
.admin-manage-form__actions { display: flex; gap: 8px; margin-top: 4px; }
.admin-manage-form__actions .admin-delete { margin-left: auto; color: var(--red); background: transparent; }
.admin-notice-panel { display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); gap: 40px; align-items: start; }
.admin-notice-panel__form, .admin-notice-panel__list { min-width: 0; }
.admin-notice-panel__form { display: grid; gap: 24px; }
.admin-notice-panel__list > .feed__header { padding: 0 0 20px; }
.admin-notice-list { display: grid; }
.admin-notice-row { padding: 20px 0; border-bottom: 1px solid var(--line); }
.admin-notice-row:first-child { padding-top: 20px; }
.admin-notice-row h3 { font-size: 1rem; margin: 14px 0 10px; line-height: 1.5; }
.admin-notice-row p { font-size: 0.88rem; line-height: 1.8; overflow-wrap: anywhere; }
.admin-notice-row__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.admin-notice-row__actions .button { width: auto; font-size: 0.82rem; }
.admin-notice-preview { border-top: 1px solid var(--line); padding-top: 20px; }
.admin-notice-preview > h3 { color: var(--muted); font-size: 0.8rem; font-weight: 500; margin-bottom: 12px; }
.notice-card--preview { border-radius: var(--radius); }
.notice-card--preview h4 { margin: 0; padding: 18px 20px 12px; font-size: 0.9rem; overflow-wrap: anywhere; }
.notice-card--preview .notice-card__body { padding: 0 20px 20px; overflow-wrap: anywhere; }

@media (min-width: 681px) and (max-width: 800px) {
  .header-actions .google-login-button { width: 44px; padding: 0; }
  .header-actions .google-login-button > span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}
@media (max-width: 900px) {
  .admin-toolbar { grid-template-columns: minmax(0, 1fr) minmax(140px, 200px); }
  .admin-search { grid-column: 1 / -1; }
  .admin-queue-row__detail { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .admin-manage-form { position: static; }
  .admin-manage-form { grid-template-columns: 1fr 1fr; }
  .admin-manage-form > :nth-child(n+3) { grid-column: 1 / -1; }
  .admin-notice-panel { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 680px) {
  .admin-workspace { width: calc(100% - 32px); gap: 24px; padding: 24px 0 56px; }
  .admin-workspace__heading h1 { font-size: 1.4rem; }
  .admin-workspace__heading p { font-size: 0.88rem; line-height: 1.75; }
  .admin-filters { gap: 4px; }
  .admin-filters button { padding: 0 9px; min-height: 44px; }
  .admin-toolbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .admin-toolbar .select-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .admin-workspace input, .admin-workspace select, .admin-workspace .button, .admin-workspace .icon-button { min-height: 44px; }
  .admin-queue-row > summary { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 18px 0; }
  .admin-queue-row__copy { grid-column: 1 / -1; padding-right: 4px; }
  .admin-queue-row > summary > .pill { justify-self: start; }
  .admin-queue-row__arrow { justify-self: end; }
  .admin-queue-row__detail { padding: 20px 14px; }
  .admin-manage-form { grid-template-columns: minmax(0, 1fr); }
  .admin-manage-form > * { grid-column: 1; }
  .admin-notice-row__actions .button { flex: 0 1 auto; }
  .notice-card__body { padding-top: 4px; line-height: 1.85; }
}
