@charset "UTF-8";

/* Neutral surfaces with a small, cool accent; dark is the first-paint default. */
:root {
  color-scheme: dark;
  --canvas: #111214;
  --surface: #191a1d;
  --raised: #222327;
  --input: #16171a;
  --ink: #eceef2;
  --muted: #a0a8b5;
  --line: #30363f;
  --line-hover: #515d6e;
  --accent: #b6adf0;
  --accent-soft: #292638;
  --primary: #e5e3ed;
  --primary-ink: #202025;
  --red: #f3aaa6;
  --green: #9bd4b5;
  --amber: #ddc493;
  --shadow: 0 18px 60px rgb(0 0 0 / 12%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.65;
  font-synthesis: none;
  background: var(--canvas);
  color: var(--ink);
}

:root[data-theme="light"] {
  color-scheme: light;
  --canvas: #f7f7f8;
  --surface: #ffffff;
  --raised: #f0f2f5;
  --input: #fdfdfd;
  --ink: #202630;
  --muted: #606b7b;
  --line: #dce1e8;
  --line-hover: #a2aebb;
  --accent: #6555a6;
  --accent-soft: #f1eef9;
  --primary: #29272f;
  --primary-ink: #ffffff;
  --red: #b13b36;
  --green: #26744b;
  --amber: #806024;
  --shadow: 0 18px 60px rgb(31 43 63 / 4%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background-color: var(--canvas);
}

button, input, textarea, select {
  font: inherit;
}

button, a, input, textarea, select {
  -webkit-tap-highlight-color: transparent;
}

button, a {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 10;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--primary-ink);
}

.skip:focus {
  top: 12px;
}

.shell {
  width: min(1360px, 100%);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  height: 60px;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1360px, 100%);
  height: 100%;
  margin: auto;
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -.8px;
}

.brand-version {
  margin-left: 8px;
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  vertical-align: middle;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}

.header-divider {
  width: 1px;
  height: 20px;
  background: var(--line);
}

.header-current {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.header-inner nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.editor-link, .theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}

.theme-toggle:hover, .editor-link:hover {
  border-color: var(--line-hover);
  background: var(--raised);
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
}

.hero, .admin-intro {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 22px 0 20px;
}

.hero h1, .admin-intro h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.7px;
  line-height: 1.35;
}

.hero p, .admin-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.compose-jump {
  display: none;
}

#feedback-form {
  scroll-margin-top: 20px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  padding-bottom: 12px;
}

.board, .compose-panel, .admin-board, .login-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 3px 14px rgb(0 0 0 / 2%);
}

.board, .admin-board {
  padding: 20px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.2px;
}

.count {
  display: inline-block;
  min-width: 28px;
  margin-left: 7px;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
}

.icon-button:hover {
  background: var(--raised);
  color: var(--ink);
}

input:not([type="radio"]):not([type="checkbox"]):not([type="file"]), textarea, select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
  color: var(--ink);
  font-size: 14px;
  transition: border-color .15s ease;
}

input::placeholder, textarea::placeholder {
  color: var(--muted);
  opacity: .85;
}

input:hover, textarea:hover, select:hover {
  border-color: var(--line-hover);
}

textarea {
  display: block;
  resize: vertical;
  min-height: 110px;
  height: 110px;
  line-height: 1.65;
}

select {
  padding-right: 28px;
  cursor: pointer;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
}

.search-field:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.search-field svg {
  position: static;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--muted);
}

.search-field input#search {
  flex: 1;
  width: 0;
  padding: 8px 0;
  padding-left: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  outline: none;
}

.text-button {
  padding: 6px 0 6px 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}

.text-button:hover {
  color: var(--accent);
}

.filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.filter-row select {
  min-height: 38px;
  padding-top: 6px;
  padding-bottom: 6px;
  font-size: 13px;
}

.filter-note {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
}

.feedback-list {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.feedback-card {
  border-bottom: 1px solid var(--line);
}

.card-open {
  display: block;
  width: 100%;
  padding: 22px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  overflow-wrap: anywhere;
  transition: background .15s ease;
}

.card-open:hover {
  background: var(--raised);
}

.card-top, .card-bottom, .detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.card-top .badge {
  margin-left: auto;
}

.card-open h3 {
  margin: 12px 0 6px;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 600;
}

.card-description {
  display: -webkit-box;
  margin: 0 0 16px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--muted);
  font-size: 14px;
}

.card-bottom {
  gap: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--raised);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.badge .meta-icon { width: 13px; height: 13px; }

.badge.planned, .badge.in_progress {
  color: var(--accent);
}

.badge.open {
  color: var(--amber);
}

.badge.completed {
  color: var(--green);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 200px;
  padding: 24px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.empty-state strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}

.empty-state p {
  max-width: 330px;
  margin: 0 0 8px;
  font-size: 13px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.pagination > div {
  display: flex;
  gap: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: background .15s ease, border-color .15s ease;
}

.button.primary {
  background: var(--primary);
  color: var(--primary-ink);
}

.button.primary:hover:not(:disabled) {
  filter: brightness(1.08);
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.button.secondary:hover:not(:disabled) {
  border-color: var(--line-hover);
  background: var(--raised);
}

.button.compact {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 13px;
}

.compose-panel {
  padding: 20px;
}

.compose-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.compose-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.compose-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--raised);
  color: var(--accent);
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field, .category-field {
  margin-bottom: 12px;
}

.field > label, legend {
  display: block;
  margin-bottom: 5px;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
}

.required {
  margin-left: 3px;
  color: var(--accent);
}

.optional {
  margin-left: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.field-counter {
  float: right;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.field-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3px 10px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.field-meta > span:last-child {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.category-options {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  border-radius: 8px;
  background: var(--raised);
}

.category-options label {
  position: relative;
  cursor: pointer;
}

.category-options input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.category-options span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}

.category-options svg {
  width: 17px;
  height: 17px;
}

.category-options::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc((100% - 12px) / 3);
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: var(--accent-soft);
  transition: transform 280ms cubic-bezier(.22, 1, .36, 1);
}

.category-options:has(input[value="suggestion"]:checked)::before {
  transform: translateX(calc(100% + 3px));
}

.category-options:has(input[value="other"]:checked)::before {
  transform: translateX(calc(200% + 6px));
}

.category-options span {
  transition: color 180ms ease;
}

.category-options input:checked + span {
  color: var(--accent);
}

.category-options input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.field > .dropzone {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 10px 14px;
  border: 1px dashed var(--line-hover);
  border-radius: 9px;
  background: var(--input);
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  font-size: 12px;
  font-weight: 400;
}

.upload-copy, .upload-copy > span {
  display: block;
}

.dropzone strong {
  display: block;
  margin: 0 0 2px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.dropzone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone:hover, .dropzone.drag-over {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.dropzone:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.selected-files {
  margin: 0;
  padding: 0;
  list-style: none;
}

.selected-files li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
}

.file-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 5px;
  background: var(--raised);
  object-fit: cover;
  color: var(--muted);
  font-size: 12px;
}

.file-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  font-size: 13px;
}

.file-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.file-size {
  color: var(--muted);
  font-size: 12px;
}

.remove-file {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 0;
  border-radius: 6px;
  background: var(--raised);
  color: var(--muted);
  font-size: 20px;
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}

.privacy-note svg {
  width: 17px;
  height: 17px;
  margin-top: 3px;
}

.privacy-note p {
  margin: 0;
}

.privacy-note strong {
  color: var(--ink);
  font-weight: 500;
}

.submit-button {
  width: 100%;
  justify-content: space-between;
  margin-top: 12px;
}

.form-message, .inline-error {
  margin: 12px 0 0;
  color: var(--red);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.form-message:empty, .inline-error:empty {
  display: none;
}

.form-message.success {
  color: var(--green);
}

.form-message .button {
  margin: 8px 0 0 6px;
}

.upload-state {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.upload-state > div {
  display: flex;
  justify-content: space-between;
}

progress {
  display: block;
  width: 100%;
  height: 6px;
  margin-top: 8px;
  border: 0;
  border-radius: 3px;
  overflow: hidden;
  accent-color: var(--accent);
  background: var(--raised);
}

progress::-webkit-progress-bar {
  background: var(--raised);
}

progress::-webkit-progress-value {
  background: var(--accent);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 10px;
  padding-bottom: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer > div {
  display: flex;
  gap: 24px;
}

/* Dialog content is generated by the existing application. */
dialog {
  width: min(720px, calc(100% - 40px));
  max-height: calc(100dvh - 64px);
  margin: auto;
  padding: 28px;
  border: 1px solid var(--line-hover);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 100px rgb(0 0 0 / 35%);
  overflow-wrap: anywhere;
}

dialog::backdrop {
  background: rgb(5 8 13 / 66%);
  backdrop-filter: blur(5px);
}

.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.detail-title {
  margin: 18px 0;
  font-size: 24px;
  line-height: 1.5;
}

.prose {
  margin: 0;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.85;
}

.detail-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.detail-section h3 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
}

.attachment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.attachment {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--input);
}

.attachment img, .attachment video {
  display: block;
  width: 100%;
  max-height: 300px;
  min-height: 64px;
  background: var(--raised);
  object-fit: contain;
}

.attachment a, .attachment > .prose {
  display: block;
  padding: 12px;
  color: var(--accent);
  font-size: 13px;
}

.attachment button {
  margin: 0 12px 12px;
}

.official-reply {
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 8px;
  background: var(--accent-soft);
}

.timeline {
  padding: 0 0 0 18px;
  margin: 0;
  border-left: 1px solid var(--line);
  list-style: none;
}

.timeline li {
  position: relative;
  margin-bottom: 20px;
}

.timeline li:last-child {
  margin-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 10px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--muted);
}

.timeline time {
  display: inline-block;
  margin-left: 10px;
  color: var(--muted);
  font-size: 13px;
}

.timeline .prose {
  margin-top: 9px;
}

.admin-shell {
  min-height: calc(100dvh - 170px);
  padding-bottom: 24px;
}

.login-panel {
  width: min(460px, 100%);
  margin: 12px auto 24px;
  padding: 30px;
}

.login-panel h2 {
  margin-top: 18px;
}

.login-panel > p {
  margin: 8px 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.login-panel .login-note {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.admin-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.admin-contact strong {
  color: var(--ink);
  font-weight: 500;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
}

.checkbox-label input {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin: 3px 0 0;
  accent-color: var(--accent);
}

.admin-controls > .button {
  margin-top: 20px;
}

.noscript {
  padding: 20px;
  color: var(--red);
  text-align: center;
}

@media (max-width: 1080px) {
  .shell, .header-inner {
    padding-left: 28px;
    padding-right: 28px;
  }

  .workspace {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 18px;
  }

  .board, .compose-panel, .admin-board {
    padding: 22px;
  }

  .filter-note {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 820px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero, .admin-intro {
    padding-top: 36px;
    padding-bottom: 28px;
  }

  .header-inner {
    gap: 16px;
  }

  .header-inner nav {
    gap: 12px;
  }

  .header-inner nav > a[href="/docs/"] {
    display: none;
  }

  .filter-note {
    width: auto;
    margin-left: auto;
  }

  .hero, .admin-intro {
    display: block;
  }

  .hero p, .admin-intro p {
    margin-top: 6px;
  }
}

@media (max-width: 560px) {
  .compose-jump {
    display: inline-flex;
    margin-top: 12px;
    color: var(--accent);
    font-weight: 500;
  }

  .empty-state {
    min-height: 140px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .site-header {
    height: auto;
    min-height: 68px;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 10px 12px;
    padding: 14px 18px;
  }

  .brand {
    font-size: 21px;
  }

    .header-divider, .header-current {
    display: none;
  }

  .header-inner nav {
    gap: 8px;
  }

  .editor-link, .theme-toggle {
    min-height: 36px;
    padding: 6px 9px;
    font-size: 12px;
  }

  .theme-toggle {
    gap: 5px;
  }

  .shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero h1, .admin-intro h1 {
    font-size: 28px;
  }

  .hero p, .admin-intro p {
    font-size: 14px;
  }

  .board, .compose-panel, .admin-board, .login-panel {
    padding: 18px;
    border-radius: 12px;
  }

  .section-heading {
    margin-bottom: 18px;
  }

  .filter-row {
    gap: 8px;
  }

  .filter-row > label {
    flex: 1;
    min-width: 0;
  }

  .filter-note {
    display: none;
  }

  .card-open {
    padding: 20px 0;
  }

  .pagination {
    gap: 12px;
  }

  .pagination > span {
    font-size: 12px;
  }

  .empty-state {
    padding-left: 0;
    padding-right: 0;
  }

  .compose-heading {
    margin-bottom: 12px;
  }

  .field-counter {
  float: right;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.field-meta {
    gap: 3px 6px;
  }

  .optional {
    margin-left: 3px;
  }

  .site-footer {
    gap: 12px;
    padding-top: 20px;
    padding-bottom: 24px;
  }

  .site-footer > div {
    gap: 16px;
  }

  dialog {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    padding: 20px;
    border-radius: 12px;
  }

  .detail-title {
    font-size: 21px;
  }

  .attachment-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-meta {
    gap: 7px;
  }

  .login-panel {
    margin-top: 4px;
  }
}

@media (max-width: 360px) {
  .header-inner, .shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .brand-version {
    display: none;
  }

  .board, .compose-panel, .admin-board, .login-panel {
    padding: 16px;
  }

  .editor-link {
    padding-left: 7px;
    padding-right: 7px;
  }
}

.recent-update {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 20px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 12px;
  color: var(--muted);
}
.update-label { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--ink); }
.update-label svg { width: 16px; height: 16px; color: var(--accent); }
.update-label time { color: var(--muted); font-variant-numeric: tabular-nums; }
.recent-update p { margin: 0; line-height: 1.7; }
.recent-update a { margin-left: auto; flex-shrink: 0; color: var(--accent); }
@media (max-width: 760px) {
  .recent-update { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; }
  .recent-update p { grid-column: 1 / -1; grid-row: 2; }
  .recent-update a { grid-column: 2; grid-row: 1; }
}

.meta-label { display: inline-flex; align-items: center; gap: 7px; }
.meta-icon { width: 15px; height: 15px; flex-shrink: 0; stroke-width: 1.65; }
.category-label .meta-icon { width: 17px; height: 17px; }
.category-label.bug .meta-icon { color: var(--amber); }
.category-label.suggestion .meta-icon { color: var(--accent); }
.card-arrow { margin-left: auto; opacity: .45; transition: transform 180ms ease, opacity 180ms ease; }
.card-open:hover .card-arrow, .card-open:focus-visible .card-arrow { opacity: 1; transform: translate(2px, -2px); }

.upload-help {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}
.upload-help summary { cursor: pointer; width: fit-content; }
.upload-help p { margin: 8px 0 0; line-height: 1.7; }

body, .site-header, .board, .compose-panel, .admin-board, .login-panel,
dialog, input, textarea, select, .search-field, .category-options {
  transition: background-color 220ms ease, color 180ms ease, border-color 180ms ease;
}
.button, .icon-button, .text-button, .theme-toggle, .editor-link, .card-open, .dropzone {
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease,
    transform 180ms cubic-bezier(.22, 1, .36, 1), box-shadow 180ms ease;
}
.button:not(:disabled):active, .icon-button:not(:disabled):active,
.theme-toggle:active, .editor-link:active { transform: scale(.98); }
@media (hover: hover) {
  .submit-button:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgb(0 0 0 / 10%); }
}
@keyframes feedback-enter {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes feedback-overlay {
  from { opacity: 0; }
  to { opacity: 1; }
}
.hero, .admin-intro { animation: feedback-enter 300ms ease both; }
.board, .compose-panel, .login-panel { animation: feedback-enter 380ms cubic-bezier(.22, 1, .36, 1) both; }
.compose-panel { animation-delay: 45ms; }
.feedback-card, .selected-files li, .form-message.success { animation: feedback-enter 220ms ease both; }
dialog[open] { animation: feedback-enter 200ms ease both; }
dialog[open]::backdrop { animation: feedback-overlay 180ms ease both; }

/* Progressive report sections keep the initial composer quiet at every width. */
.report-section { margin: 0 0 10px; border: 1px solid var(--line); border-radius: 8px; }
.report-section > summary { padding: 11px 12px; cursor: pointer; font-weight: 500; }
.report-section > summary .optional { font-size: 12px; }
.section-fields { padding: 4px 12px 12px; }
.behavior-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
body[data-mode="public"] .compose-panel { padding: 28px; }
body[data-mode="public"] .compose-heading { justify-content: space-between; margin-bottom: 24px; }
body[data-mode="public"] .compose-jump { display: inline-flex; margin-left: auto; color: var(--accent); }
body[data-mode="public"] .field { margin-bottom: 20px; }
#description { min-height: 180px; }
#reproduction { min-height: 160px; }
#expected, #actual { min-height: 130px; }
.section-fields { padding: 12px 16px 4px; }
body[data-mode="public"] .workspace { grid-template-columns: minmax(0, 1fr); }
body[data-mode="public"] .writing-mode > .board { display: none; }
body[data-mode="public"] .writing-mode > .compose-panel { width: min(100%, 920px); margin-inline: auto; }
@media (max-width: 560px) {
  body[data-mode="public"] .compose-panel { padding: 18px; }
  #expand-compose { font-size: 12px; padding-inline: 8px; }
}
.field-help { color: var(--muted); font-size: 12px; line-height: 1.8; }
.environment-label { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.environment-label label { flex: 1; }
#fill-environment { padding: 4px; font-size: 12px; white-space: nowrap; }
#clear-environment { width: 30px; height: 30px; padding: 6px; border: 0; }
#clear-environment svg { width: 16px; height: 16px; }
.aggregate-count { margin: 4px 0 12px; color: var(--muted); font-size: 12px; }
.aggregate-count.over-limit { color: var(--red); }
#confirm-dialog { width: min(520px, calc(100% - 24px)); }
#confirm-description { margin: 14px 0 20px; font-size: 14px; }
.confirmation-check { margin: 22px 0; }
.confirm-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
@media (max-width: 560px) {
  .behavior-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .report-section > summary .optional { display: block; margin-left: 16px; }
}

/* Public tracker: calm Gandi surfaces, an issue-first information hierarchy. */
body[data-mode="public"] .hero { align-items: center; padding-block: 30px 24px; }
body[data-mode="public"] .hero p { margin-top: 6px; }
body[data-mode="public"] .compose-jump { color: var(--primary-ink); white-space: nowrap; }
.status-section { margin-block: 28px 32px; }
.overview-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.overview-heading h2 { font-size: 14px; font-weight: 500; }
#stats-message { color: var(--muted); font-size: 12px; }
/* Two quiet counter groups, not seven competing dashboard cards. */
.status-overview { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.status-group { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; }
.status-summary { padding-right: 24px; border-right: 1px solid var(--line); }
.status-overview button { display: inline-flex; align-items: center; gap: 8px; min-width: 0; min-height: 42px; padding: 9px 12px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); text-align: left; white-space: nowrap; transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease; }
.status-overview button:hover { background: var(--raised); color: var(--ink); }
.status-overview button[aria-pressed="true"] { border-color: var(--line-hover); background: var(--surface); color: var(--ink); }
.status-overview button span { font-size: 13px; }
.status-overview .meta-icon { width: 16px; height: 16px; }
.status-overview strong { min-width: 1ch; margin-left: 3px; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums; }
.status-stages [data-status="open"] .meta-icon { color: var(--amber); }
.status-stages [data-status="in_progress"] .meta-icon { color: var(--accent); }
.status-stages [data-status="completed"] .meta-icon { color: var(--green); }
body[data-mode="public"] .board { padding: 24px 28px; }
body[data-mode="public"] .filters { display: grid; grid-template-columns: minmax(220px, 1fr) auto; align-items: center; gap: 16px; }
body[data-mode="public"] .filter-row { margin: 0; }
body[data-mode="public"] .filter-note { width: auto; margin-left: 4px; }
.filter-context { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; margin-top: 8px; color: var(--muted); font-size: 13px; }
#active-filters { margin: 0; overflow-wrap: anywhere; }
#clear-filters { flex-shrink: 0; }
body[data-mode="public"] .feedback-list { margin-top: 4px; }
.issue-number { color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .3px; font-variant-numeric: tabular-nums; white-space: nowrap; }
body[data-mode="public"] .card-open { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; padding: 20px 12px; }
body[data-mode="public"] .card-top { grid-column: 1 / -1; gap: 14px; }
body[data-mode="public"] .card-open h3 { grid-column: 1; margin: 0; font-size: 17px; }
body[data-mode="public"] .card-description { grid-column: 1; margin: 0; -webkit-line-clamp: 1; }
body[data-mode="public"] .card-bottom { grid-column: 2; grid-row: 2 / 4; align-content: center; justify-content: flex-end; max-width: 310px; font-size: 12px; gap: 8px 14px; }
body[data-mode="public"] .card-bottom .card-arrow { margin-left: 4px; }
body[data-mode="public"] .compose-panel { scroll-margin-top: 20px; }
body[data-mode="public"] .compose-heading { align-items: center; }
body[data-mode="public"] .site-footer { margin-top: 28px; }
.issue-shell { max-width: 1120px; padding-bottom: 36px; min-height: calc(100dvh - 132px); }
.issue-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-block: 26px 20px; }
.copy-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
#copy-message { color: var(--muted); font-size: 13px; }
.copy-fallback { padding-bottom: 20px; }
.copy-fallback label { display: block; margin-bottom: 6px; }
.issue-sheet { min-width: 0; padding: 36px 42px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow-wrap: anywhere; }
.issue-heading .detail-title { margin-block: 18px 24px; font-size: 30px; line-height: 1.45; font-weight: 600; }
.issue-heading .detail-meta { gap: 12px; }
.issue-dates { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 0; font-size: 13px; }
.issue-dates > div { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.issue-dates dt { color: var(--muted); }
.issue-dates dd { margin: 0; }
.issue-sheet .detail-section { margin-top: 30px; padding-top: 26px; }
.issue-sheet .detail-section > h2 { margin: 0 0 18px; font-size: 16px; }
.issue-sheet .prose { line-height: 1.95; }
.reply-empty .prose { color: var(--muted); }
.issue-error { min-height: 300px; }
.issue-error h1, .issue-sheet > .empty-state h1 { margin: 0; font-size: 23px; color: var(--ink); }
.timeline-label { font-size: 13px; }
@media (min-width: 760px) {
  body[data-mode="public"] .behavior-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 1000px) {
  .status-overview { gap: 8px; }
  .status-overview button { padding: 12px; }
  body[data-mode="public"] .filters { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  body[data-mode="public"] .filter-note { margin-left: auto; }
  body[data-mode="public"] .card-open { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  body[data-mode="public"] .card-bottom { grid-column: 1; grid-row: auto; justify-content: flex-start; max-width: none; margin-top: 4px; }
  body[data-mode="public"] .card-bottom .card-arrow { margin-left: auto; }
}
@media (max-width: 760px) {
  .status-overview { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .status-overview button { gap: 6px; }
  .status-overview strong { font-size: 21px; }
  .issue-sheet { padding: 26px; }
  .issue-heading .detail-title { font-size: 26px; }
}
@media (max-width: 560px) {
  body[data-mode="public"] .hero { display: flex; flex-wrap: wrap; gap: 18px; padding-block: 24px; }
  body[data-mode="public"] .hero h1 { font-size: 25px; }
  body[data-mode="public"] .compose-jump { margin: 0 0 0 auto; min-height: 42px; padding: 9px 12px; }
  body[data-mode="public"] .board { padding: 18px 16px; }
  body[data-mode="public"] .card-open { padding: 18px 4px; }
  body[data-mode="public"] .card-top { gap: 8px; }
  body[data-mode="public"] .card-top .category-label { font-size: 12px; }
  body[data-mode="public"] .card-open h3 { font-size: 16px; }
  .status-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .status-overview button:first-child { grid-column: span 3; flex-direction: row; align-items: center; justify-content: space-between; }
  .status-overview button { padding: 12px 14px; }
  .issue-shell { padding-bottom: 24px; }
  .issue-toolbar { align-items: flex-start; padding-top: 20px; }
  .copy-actions { justify-content: flex-end; gap: 6px; }
  #copy-message { max-width: 150px; }
  .issue-sheet { padding: 24px 18px; border-radius: 12px; }
  .issue-heading .detail-title { font-size: 23px; }
  .issue-dates { gap: 8px; flex-direction: column; }
  .issue-sheet .detail-section { margin-top: 24px; padding-top: 22px; }
}

.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.button .meta-icon, .text-button .meta-icon, .editor-link .meta-icon { width: 16px; height: 16px; }
.remove-file { display: inline-flex; align-items: center; justify-content: center; }
.attachment a .meta-icon { margin-left: 8px; vertical-align: middle; }
body[data-mode="public"] .board { box-shadow: none; }
body[data-mode="public"] .hero { padding-block: 36px 28px; }
body[data-mode="public"] .recent-update { border: 0; border-radius: 0; padding: 0 0 20px; border-bottom: 1px solid var(--line); background: transparent; }
body[data-mode="public"] .section-heading { margin-bottom: 20px; }
body[data-mode="public"] .issue-number, body[data-mode="issue"] .issue-number { color: var(--muted); }
@media (max-width: 560px) {
  body[data-mode="public"] .hero { padding-block: 26px; }
  .overview-heading { align-items: center; }
  .status-summary { gap: 10px; }
}

/* Full-page composer: writing first, context second; no floating card. */
body[data-mode="public"].is-composing .hero,
body[data-mode="public"].is-composing .recent-update,
body[data-mode="public"].is-composing .status-section { display: none; }
body[data-mode="public"] .writing-mode > .compose-panel {
  width: 100%; max-width: none; margin: 0; padding: 34px 0 0;
  border: 0; border-radius: 0; background: transparent; box-shadow: none; animation: none;
}
body[data-mode="public"] .compose-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 32px; }
.compose-heading h1 { margin: 0; font-size: 30px; letter-spacing: -.6px; }
.compose-back { padding: 0; min-height: 28px; color: var(--muted); }
#compose-fields { display: grid; grid-template-columns: minmax(0, 1fr) 320px; column-gap: 56px; align-items: start; }
.compose-main, .compose-context { min-width: 0; }
.compose-main > .field { margin-bottom: 28px; }
.compose-main #title { font-size: 19px; font-weight: 550; min-height: 58px; }
.compose-main #description { min-height: 300px; line-height: 1.8; }
body[data-mode="public"] .compose-context { padding-left: 28px; border-left: 1px solid var(--line); }
body[data-mode="public"] .compose-context .report-section { border: 0; border-radius: 0; background: transparent; margin: 0 0 30px; padding: 0; }
body[data-mode="public"] .compose-context .report-section > summary { padding: 0 0 18px; font-weight: 600; }
body[data-mode="public"] .compose-context .section-fields { padding: 0; }
.compose-context .environment-label { flex-wrap: wrap; gap: 8px; }
.compose-context .environment-label > label { width: 100%; }
.compose-context #environment { min-height: 108px; }
.compose-context .dropzone { padding: 22px 12px; flex-direction: column; text-align: center; }
.compose-context .upload-copy strong { font-size: 13px; }
.compose-context .upload-help { font-size: 12px; }
.compose-main .category-field { margin-bottom: 28px; }
body[data-mode="public"] .compose-main .category-options { width: fit-content; max-width: 100%; background: transparent; gap: 8px; padding: 0; border: 0; }
body[data-mode="public"] .compose-main .category-options::before { display: none; }
body[data-mode="public"] .compose-main .category-options label > span { min-height: 42px; padding: 9px 18px; border: 1px solid transparent; border-radius: 8px; }
body[data-mode="public"] .compose-main .category-options input:checked + span { background: var(--surface); color: var(--ink); border-color: var(--line-hover); box-shadow: none; }
.compose-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; border-top: 1px solid var(--line); margin-top: 36px; padding-top: 24px; }
.compose-actions .privacy-note { margin: 0; flex: 1; }
.compose-actions .submit-button { width: auto; min-width: 164px; margin: 0; gap: 20px; }
.compose-actions .form-message:empty { display: none; }
.compose-actions .upload-state, .compose-actions .form-message:not(:empty) { flex-basis: 100%; }
body[data-mode="public"].is-composing .site-footer { margin-top: 48px; }
@media (max-width: 1000px) {
  #compose-fields { grid-template-columns: minmax(0, 1fr) 280px; column-gap: 28px; }
  body[data-mode="public"] .compose-context { padding-left: 20px; }
}
@media (max-width: 760px) {
  #compose-fields { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  body[data-mode="public"] .compose-context { border-left: 0; border-top: 1px solid var(--line); padding: 28px 0 0; }
  .compose-main #description { min-height: 230px; }
  body[data-mode="public"] .writing-mode > .compose-panel { padding-top: 24px; }
  .compose-heading h1 { font-size: 27px; }
  .compose-actions { margin-top: 8px; }
  .compose-actions .privacy-note { flex-basis: 100%; }
  .compose-actions .submit-button { width: 100%; }
}

/* Keep the shell anchored while list and composer exchange places. */
@media (prefers-reduced-motion: no-preference) {
  html[data-feedback-transition] #main { view-transition-name: feedback-page; }
  html[data-feedback-transition] .site-header { view-transition-name: feedback-header; }
  html[data-feedback-transition] .site-footer { view-transition-name: feedback-footer; }
  ::view-transition-group(feedback-page), ::view-transition-group(feedback-footer) {
    animation-duration: 280ms; animation-timing-function: cubic-bezier(.2,.7,.2,1);
  }
  ::view-transition-old(feedback-page) { animation: feedback-page-out 180ms ease-out both; }
  ::view-transition-new(feedback-page) { animation: feedback-page-in 280ms cubic-bezier(.2,.7,.2,1) both; }
  html[data-feedback-transition="list"]::view-transition-old(feedback-page) { animation-name: feedback-page-back-out; }
  html[data-feedback-transition="list"]::view-transition-new(feedback-page) { animation-name: feedback-page-back-in; }
  ::view-transition-old(root), ::view-transition-new(root),
  ::view-transition-old(feedback-header), ::view-transition-new(feedback-header) { animation: none; mix-blend-mode: normal; }
  ::view-transition { pointer-events: none; }
  .compose-main .category-options label > span {
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
  }
  .compose-main .category-options label:active > span { transform: scale(.97); }
  .compose-actions .submit-button { transition: background-color 180ms ease, transform 180ms ease; }
  .compose-actions .submit-button:active { transform: translateY(1px); }
  @supports (interpolate-size: allow-keywords) {
    .compose-panel details { interpolate-size: allow-keywords; }
    .compose-panel details::details-content {
      block-size: 0; opacity: 0; overflow: clip;
      transition: block-size 240ms cubic-bezier(.2,.7,.2,1), opacity 160ms ease, content-visibility 240ms allow-discrete;
    }
    .compose-panel details[open]::details-content { block-size: auto; opacity: 1; }
  }
}
@keyframes feedback-page-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes feedback-page-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes feedback-page-back-out { to { opacity: 0; transform: translateY(8px); } }
@keyframes feedback-page-back-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
