:root {
  color-scheme: light;
  --ink: #242428;
  --ink-soft: #4f5057;
  --muted: #777a83;
  --line: #dddddf;
  --line-strong: #c8c9ce;
  --paper: #ffffff;
  --surface: #f7f7f8;
  --surface-strong: #efeff1;
  --teal: #376f78;
  --teal-dark: #245962;
  --teal-soft: #edf6f7;
  --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;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fafafa;
  color: var(--ink);
  font-family:
    Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe 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;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  padding: 10px max(28px, calc((100vw - 1140px) / 2));
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(20, 20, 24, 0.06);
}

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

.header-actions {
  gap: 9px;
  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: 800;
  letter-spacing: 0;
  white-space: nowrap;
  transition:
    transform 150ms ease,
    background 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

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

.button--primary:hover {
  background: var(--teal-dark);
}

.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(8, 125, 132, 0.24);
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.button--reaction.is-active,
.button--reaction:hover {
  background: var(--teal);
  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(--teal-soft);
  color: var(--teal-dark);
}

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

.language-menu__meta {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 820;
  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:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

.support-button:hover {
  transform: translateY(-1px);
}

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

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

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

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

.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: 364px minmax(0, 1fr);
  gap: 24px;
  width: min(1140px, calc(100% - 56px));
  margin: 0 auto;
  padding: 18px 0 56px;
  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: 16px;
  align-items: start;
  grid-column: 1;
  grid-row: 1 / span 3;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: none;
}

.notice-board,
.toolbar,
.feed {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: none;
}

.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.25rem;
  line-height: 1.25;
}

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

.suggestion-entry {
  width: 100%;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink-soft);
  text-align: left;
  font-weight: 650;
}

.suggestion-entry:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

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

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

.metric-strip div {
  min-height: 62px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfbfc;
}

.metric-strip dt {
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1;
}

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

.notice-board {
  grid-column: 2;
  overflow: hidden;
  background: #ffffff;
}

.notice-board__header {
  min-height: 52px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

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

.notice-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

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

.notice-card__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(160, 106, 37, 0.24);
  border-radius: var(--radius);
  background: var(--amber-soft);
  color: #855306;
}

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

.notice-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-bottom: 5px;
}

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

.toolbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  grid-column: 2;
  padding: 14px;
  background: #ffffff;
}

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

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

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

.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 {
  width: min(280px, 100%);
  margin-left: auto;
  order: 5;
}

.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);
  outline: none;
}

.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(--teal);
  box-shadow: 0 0 0 3px rgba(8, 125, 132, 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: 172px;
}

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

.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: 56px;
  margin-bottom: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

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

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

.post-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  width: 100%;
  min-height: 96px;
  padding: 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #ffffff;
  text-align: left;
  transition:
    background 150ms ease,
    color 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: 3;
}

.post-card__context {
  font-size: 0.92rem;
  font-weight: 650;
}

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

.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: 900;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

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

.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: 22px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfbfc;
  color: var(--ink-soft);
  font-size: 0.71rem;
  font-weight: 850;
  white-space: nowrap;
}

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

.pill--feature {
  border-color: rgba(8, 125, 132, 0.24);
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.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--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(8, 125, 132, 0.25);
  background: var(--teal-soft);
  color: var(--teal-dark);
}

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

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

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

.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: 850;
  box-shadow: 0 4px 12px rgba(21, 23, 28, 0.06);
}

.google-login-button:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

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

.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: 850;
  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(--teal-soft);
  color: var(--teal-dark);
  font-size: 0.74rem;
  font-weight: 900;
}

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

.admin-board {
  grid-column: auto;
  margin-top: 0;
}

.admin-notice-panel {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-notice-panel__form,
.admin-notice-panel__list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.admin-notice-panel__form {
  display: grid;
  gap: 16px;
  padding: 18px;
}

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

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

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

.admin-notice-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

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

.admin-notice-row__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

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

.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 286px);
  gap: 22px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.admin-row:last-child {
  border-bottom: 0;
}

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

.admin-row__controls {
  display: grid;
  gap: 10px;
}

.admin-row__quick-groups {
  display: grid;
  gap: 9px;
}

.admin-row__quick-group {
  display: grid;
  gap: 6px;
}

.admin-row__quick-group > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.admin-row__quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.quick-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 850;
}

.quick-status .icon {
  width: 13px;
  height: 13px;
}

.quick-status:hover,
.quick-status.is-active {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: #ffffff;
}

.admin-row__status select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 0 11px;
}

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

.modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 20, 24, 0.58);
  backdrop-filter: blur(8px);
}

.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 {
  width: min(860px, 100%);
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  padding: 26px;
}

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

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

.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(8, 125, 132, 0.2);
  border-radius: var(--radius);
  background: var(--teal-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(8, 125, 132, 0.22);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--teal-dark);
}

.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(--teal);
}

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

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

.form-actions {
  gap: 9px;
}

.detail__title {
  margin: 0 44px 10px 0;
  font-size: 1.55rem;
  line-height: 1.2;
}

.detail__meta {
  margin-bottom: 16px;
}

.detail__summary {
  margin-bottom: 16px;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.developer-note {
  display: grid;
  gap: 9px;
  margin: 0 0 16px;
  padding: 13px;
  border: 1px solid rgba(8, 125, 132, 0.28);
  border-radius: var(--radius);
  background: var(--teal-soft);
}

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

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

.developer-note a {
  color: var(--teal-dark);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.detail__section {
  padding: 16px 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: 16px 0;
}

.vote-button {
  min-width: 118px;
  border-color: rgba(8, 125, 132, 0.24);
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.vote-button:hover,
.vote-button.is-active {
  background: var(--teal);
  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(--teal-dark);
  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: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.detail-list div {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

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

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

.comments {
  display: grid;
  gap: 9px;
  max-height: min(36vh, 360px);
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  overscroll-behavior: contain;
}

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

.comment {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.comment.is-developer {
  border-color: rgba(8, 125, 132, 0.28);
  background: var(--teal-soft);
}

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

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

.comment__more {
  justify-self: start;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 900;
}

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

.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;
  gap: 4px;
  min-height: 20px;
  padding: 0 7px;
  border: 1px solid rgba(8, 125, 132, 0.26);
  border-radius: 999px;
  background: #ffffff;
  color: var(--teal-dark);
  font-size: 0.7rem;
  font-weight: 900;
}

.developer-badge .icon {
  width: 12px;
  height: 12px;
}

.comment-form {
  display: grid;
  gap: 9px;
  flex-shrink: 0;
  margin-top: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.comment-form textarea {
  min-height: 104px;
  max-height: 220px;
  padding: 9px 11px;
  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: 820;
}

.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(8, 125, 132, 0.28);
  border-radius: var(--radius);
  background: var(--teal-soft);
  color: #00545b;
  font-weight: 820;
  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);
}

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

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

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

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

  .toolbar {
    display: flex;
  }

  .toolbar .search-field {
    width: 100%;
    margin-left: 0;
    order: 0;
  }

  .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 (max-width: 680px) {
  html,
  body {
    overflow-x: hidden;
  }

  body {
    background: #f8f8f9;
    font-size: 14px;
  }

  .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: 52px;
    padding: 7px 10px;
  }

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

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

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

  .brand strong {
    overflow: hidden;
    max-width: 132px;
    font-size: 0.98rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .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,
  .support-button,
  .google-login-button,
  #openComposerButton,
  .header-actions > .button {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    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(36, 89, 98, 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;
  }

  .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 10px 82px;
  }

  .board-shell {
    gap: 8px;
  }

  .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;
    gap: 0;
    padding: 12px 2px 5px;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .summary-copy h1 {
    margin-bottom: 3px;
    font-size: 1.06rem;
  }

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

  .feedback-rules,
  .login-note,
  .suggestion-entry,
  .metric-strip {
    display: none;
  }

  .notice-board,
  .toolbar {
    border-radius: var(--radius);
  }

  .toolbar {
    order: 2;
    position: sticky;
    top: 52px;
    z-index: 34;
  }

  .notice-board {
    order: 3;
  }

  .feed {
    order: 4;
  }

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

  .notice-board__header {
    display: none;
  }

  .notice-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 10px 12px;
  }

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

  .toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px 42px minmax(88px, 100px);
    gap: 6px;
    padding: 8px 0;
    border: 0;
    background: rgba(248, 248, 249, 0.94);
    backdrop-filter: blur(10px);
  }

  .toolbar .search-field {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    margin-left: 0;
    order: 0;
  }

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

  .activity-toggle {
    grid-column: 3;
    grid-row: 1;
    width: 42px;
    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: fixed;
    top: 104px;
    right: 10px;
    left: 10px;
    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: 4;
    grid-row: 1;
    grid-template-columns: 1fr;
    min-width: 0;
  }

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

  .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: 0 4px 14px rgba(21, 23, 28, 0.04);
  }

  .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,
  .modal__card--detail {
    padding: 16px;
  }

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

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

  .modal__header {
    margin-bottom: 14px;
  }

  .detail__title {
    margin-right: 40px;
    font-size: 1.24rem;
  }

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

  .detail-actions .button,
  .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: 380px) {
  .support-actions {
    gap: 3px;
  }

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

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

  .brand strong {
    max-width: 104px;
  }

  .toolbar {
    grid-template-columns: minmax(0, 1fr) 38px 38px 82px;
  }

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