:root {
  color: #232d42;
  background: #eef4ff;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  --primary: #3563ef;
  --primary-active: #2553d9;
  --primary-soft: #edf3ff;
  --ink: #232d42;
  --ink-soft: #46536b;
  --muted: #788196;
  --line: #dfe6f2;
  --line-strong: #cbd6e7;
  --paper: #ffffff;
  --canvas: #eef4ff;
  --success: #198760;
  --success-soft: #edf9f4;
  --warning: #9a621e;
  --warning-soft: #fff8ed;
  --danger: #d6424e;
  --danger-soft: #fff1f3;
  --shadow: 0 16px 42px rgba(35, 45, 66, 0.09);
  --radius-control: 4px;
  --radius-panel: 6px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--canvas);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-size: 14px;
}

button,
input,
textarea,
select {
  font: inherit;
  letter-spacing: 0;
}

button,
label[for],
summary {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
label[for]:focus-within {
  outline: 3px solid rgba(53, 99, 239, 0.18);
  outline-offset: 2px;
}

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

h1,
h2,
h3 {
  color: var(--ink);
  letter-spacing: 0;
}

.site-shell {
  display: flex;
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 0 30px;
  flex-direction: column;
}

.site-header {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  color: var(--ink);
}

.brand img {
  width: auto;
  height: 32px;
  max-width: 96px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-name {
  min-width: 0;
  margin: 0 0 0 10px;
  overflow: hidden;
  white-space: nowrap;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.2;
  text-overflow: ellipsis;
}

.brand-divider {
  width: 1px;
  height: 18px;
  margin: 0 12px;
  background: #cbd6e8;
}

.brand-context {
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-state {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.channel-state::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9aa4b7;
  content: "";
}

.channel-state.is-open {
  border-color: #b8dfd1;
  color: var(--success);
  background: var(--success-soft);
}

.channel-state.is-open::before {
  background: var(--success);
}

.channel-state.is-closed {
  border-color: #edc2c8;
  color: var(--danger);
  background: var(--danger-soft);
}

.channel-state.is-closed::before {
  background: var(--danger);
}

.channel-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  margin: 24px 0 14px;
}

.channel-heading {
  min-width: 0;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 650;
}

.channel-description,
.panel-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.view-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(108px, 1fr));
  align-items: end;
  border-bottom: 1px solid #cbd6e7;
}

.view-navigation {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.tab-button {
  position: relative;
  min-height: 40px;
  padding: 6px 14px;
  border: 0;
  color: #59667e;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.tab-button::after {
  position: absolute;
  right: 14px;
  bottom: -1px;
  left: 14px;
  height: 3px;
  background: transparent;
  content: "";
}

.tab-button:hover {
  color: var(--primary);
}

.tab-button.is-active {
  color: var(--primary);
}

.tab-button.is-active::after {
  background: var(--primary);
}

.storage-hint {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  margin-bottom: 7px;
}

.settings-menu {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  margin-bottom: 7px;
}

.storage-hint-button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  color: #68748a;
  background: rgba(255, 255, 255, 0.72);
  cursor: help;
}

.settings-button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  color: #68748a;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.settings-button:hover,
.settings-button:focus-visible,
.settings-menu.is-open .settings-button {
  border-color: rgba(53, 99, 239, 0.45);
  color: var(--primary);
  background: var(--paper);
}

.storage-hint-button:hover,
.storage-hint-button:focus-visible,
.storage-hint.is-open .storage-hint-button {
  border-color: rgba(53, 99, 239, 0.45);
  color: var(--primary);
  background: var(--paper);
}

.storage-hint-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.settings-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.settings-popover {
  position: absolute;
  z-index: 31;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  width: 164px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(35, 45, 66, 0.14);
}

.settings-popover::before {
  position: absolute;
  top: -5px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--paper);
  content: "";
  transform: rotate(45deg);
}

.settings-popover button {
  min-height: 32px;
  padding: 6px 9px;
  border: 0;
  border-radius: 3px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.settings-popover button:hover,
.settings-popover button:focus-visible {
  color: var(--primary);
  background: var(--primary-soft);
}

.settings-popover button.danger-text {
  color: var(--danger);
}

.storage-hint-tooltip {
  position: absolute;
  z-index: 30;
  top: calc(100% + 10px);
  right: 0;
  width: min(300px, calc(100vw - 32px));
  padding: 10px 12px;
  visibility: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  color: var(--muted);
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(35, 45, 66, 0.14);
  font-size: 12px;
  line-height: 1.55;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 120ms ease-out, transform 120ms ease-out, visibility 120ms;
}

.storage-hint-tooltip::before {
  position: absolute;
  top: -5px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--paper);
  content: "";
  transform: rotate(45deg);
}

.storage-hint-tooltip strong,
.storage-hint-tooltip span {
  display: block;
}

.storage-hint-tooltip strong {
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.storage-hint-button:focus-visible + .storage-hint-tooltip,
.storage-hint.is-open .storage-hint-tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

@media (hover: hover) {
  .storage-hint:hover .storage-hint-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

}

.channel-note {
  margin: 0 0 18px;
  padding: 13px 16px;
  border: 1px solid #efc5ca;
  border-left: 3px solid var(--danger);
  border-radius: var(--radius-control);
  color: #812f39;
  background: var(--danger-soft);
  line-height: 1.6;
}

.app-shell {
  min-width: 0;
  flex: 1 0 auto;
}

.view {
  animation: view-enter 160ms ease-out;
}

@keyframes view-enter {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.workspace-card {
  padding: 32px 38px 0;
  border: 1px solid rgba(35, 45, 66, 0.09);
  border-radius: var(--radius-panel);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.panel-heading > div:first-child {
  max-width: 700px;
}

.panel-heading h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.3;
}

.required-note {
  flex: 0 0 auto;
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.required-note b,
.field b,
.field-label b {
  color: var(--danger);
}

.feedback-target {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: -2px 0 22px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.feedback-target[hidden] {
  display: none;
}

.feedback-target > span {
  flex: 0 0 auto;
}

.feedback-target dl,
.feedback-target dl > div {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}

.feedback-target dl {
  min-width: 0;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.feedback-target dl > div[hidden] {
  display: none;
}

.feedback-target dt {
  color: var(--muted);
}

.feedback-target dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 600;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.reporter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.field {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 9px;
}

.field > span,
.field-label {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

.field > span small {
  margin-left: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  color: var(--ink);
  background: #f9fbff;
  outline: 0;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

input,
select {
  min-height: 50px;
  padding: 0 14px;
}

textarea {
  padding: 14px 16px;
  line-height: 1.7;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #a0a9ba;
}

input:hover,
textarea:hover,
select:hover,
.editor-shell:hover {
  border-color: var(--line-strong);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(53, 99, 239, 0.11);
}

.content-field {
  margin-top: 30px;
}

.editor-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: #fff;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.editor-shell:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(53, 99, 239, 0.11);
}

.editor-shell.is-dragging {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 2px rgba(53, 99, 239, 0.14);
}

.editor-shell textarea {
  display: block;
  min-height: 260px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.editor-toolbar {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 9px 7px 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fbfcff;
  font-size: 12px;
}

.attachment-button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  color: var(--primary);
  background: #fff;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

.attachment-button:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.file-list,
.resume-panel ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.file-list:not(:empty) {
  padding: 0 10px 10px;
}

.editor-shell > .file-list:not(:empty) {
  max-height: 132px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.file-item {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(100px, 200px);
  gap: 6px;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 40px;
  padding: 3px 27px 3px 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: #f8faff;
}

.resume-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 7px 8px 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: #f8faff;
}

.file-preview,
.evidence-preview {
  position: relative;
  display: grid;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: #edf1f7;
}

.file-preview {
  width: 32px;
  height: 32px;
}

button.file-preview {
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: zoom-in;
}

button.file-preview:hover,
button.file-preview:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(53, 99, 239, 0.12);
  outline: 0;
}

.file-preview img,
.file-preview video,
.evidence-preview img,
.evidence-preview video,
.evidence-preview a {
  display: block;
  width: 100%;
  height: 100%;
}

.file-preview img,
.file-preview video,
.evidence-preview img,
.evidence-preview video {
  object-fit: cover;
}

.video-cover-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(25, 35, 55, 0.72);
  font-size: 8px;
  transform: translate(-50%, -50%);
}

.file-type-icon {
  position: relative;
  display: grid;
  width: 24px;
  height: 29px;
  place-items: end center;
  padding: 0 2px 5px;
  border: 1px solid currentColor;
  border-radius: 3px;
  color: #55709f;
  background: #f2f6ff;
}

.file-type-icon::after {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 7px;
  height: 7px;
  border-bottom: 1px solid currentColor;
  border-left: 1px solid currentColor;
  background: var(--paper);
  content: "";
}

.file-type-icon.is-video {
  color: #7258a8;
  background: #f7f2ff;
}

.file-type-icon.is-audio {
  color: #23806c;
  background: #effaf7;
}

.file-type-icon.is-archive {
  color: #98651f;
  background: #fff8eb;
}

.file-type-icon.is-other {
  color: #68748a;
  background: #f3f5f8;
}

.file-type-mark {
  max-width: 100%;
  overflow: hidden;
  font-size: 6px;
  font-weight: 700;
  line-height: 1;
  text-overflow: ellipsis;
}

.file-copy {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.file-name {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-meta,
.supplement-meta,
.evidence-meta {
  color: var(--muted);
  font-size: 12px;
}

.file-item .file-meta {
  flex: 0 0 auto;
  white-space: nowrap;
}

.remove-file,
.close-button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: var(--radius-control);
  color: var(--muted);
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

.file-item .remove-file {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 22px;
  height: 22px;
  font-size: 15px;
}

.remove-file:hover,
.close-button:hover {
  color: var(--danger);
  background: var(--danger-soft);
}

.resume-panel {
  margin-top: 18px;
  padding: 15px 17px;
  border: 1px solid #ebd4b1;
  border-left: 3px solid var(--warning);
  border-radius: var(--radius-control);
  background: var(--warning-soft);
}

.resume-panel h3 {
  margin: 0 0 11px;
  font-size: 14px;
}

.form-actions,
.dialog-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.form-actions {
  min-height: 68px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.form-status,
.inline-status {
  flex: 1;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.form-status.is-error,
.inline-status.is-error {
  padding: 8px 10px;
  border: 1px solid #efc2c8;
  border-left: 3px solid var(--danger);
  border-radius: var(--radius-control);
  color: #9f2f3d;
  background: var(--danger-soft);
  font-weight: 600;
}

.primary-button,
.secondary-button,
.text-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: var(--radius-control);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.primary-button {
  min-width: 122px;
  border: 1px solid var(--primary);
  color: #fff;
  background: var(--primary);
  box-shadow: 0 9px 20px rgba(53, 99, 239, 0.2);
  transition: background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.primary-button:hover {
  background: #4772f1;
  box-shadow: 0 11px 24px rgba(53, 99, 239, 0.25);
  transform: translateY(-1px);
}

.primary-button:active {
  background: var(--primary-active);
  transform: translateY(0);
}

.secondary-button {
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  background: #fff;
}

.secondary-button:hover {
  border-color: rgba(53, 99, 239, 0.5);
  color: var(--primary);
  background: var(--primary-soft);
}

.text-button {
  min-height: 34px;
  padding: 0 9px;
  border: 0;
  color: var(--primary);
  background: transparent;
}

button:disabled,
fieldset:disabled .attachment-button {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.records-card {
  padding-bottom: 22px;
}

.records-heading {
  align-items: flex-end;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.records-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.compact-field {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.compact-field select {
  width: 70px;
  min-height: 36px;
  padding: 0 8px;
  background: #fff;
}

.records-summary {
  min-height: 22px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.feedback-list {
  min-width: 0;
}

.feedback-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--paper);
  scrollbar-gutter: stable;
}

.feedback-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  table-layout: fixed;
}

.feedback-table-id-column {
  width: 310px;
}

.feedback-table-time-column {
  width: 184px;
}

.feedback-table-status-column {
  width: 104px;
}

.feedback-table th,
.feedback-table td {
  padding: 11px 13px;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feedback-table th {
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  background: #f7f9fd;
  font-size: 12px;
  font-weight: 600;
}

.feedback-table th:last-child {
  text-align: right;
}

.feedback-table td {
  height: 52px;
  color: var(--ink-soft);
  background: var(--paper);
  font-size: 13px;
  transition: background-color 140ms ease, color 140ms ease;
}

.feedback-table-row + .feedback-table-row td {
  border-top: 1px solid var(--line);
}

.feedback-table-row {
  cursor: pointer;
}

.feedback-table-row:hover td,
.feedback-table-row:focus td {
  color: var(--ink);
  background: var(--primary-soft);
}

.feedback-table-row:focus {
  outline: none;
}

.feedback-table-row:focus-visible {
  outline: 3px solid rgba(53, 99, 239, 0.22);
  outline-offset: -3px;
}

.feedback-table-id span {
  color: #42516a;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.feedback-table-time {
  color: var(--muted) !important;
  font-variant-numeric: tabular-nums;
}

.feedback-table-title span {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feedback-table-mobile-meta {
  display: none;
}

.feedback-table-status {
  text-align: right !important;
}

.feedback-popover {
  position: fixed;
  z-index: 60;
  width: min(350px, calc(100vw - 24px));
  padding: 12px 14px;
  border: 1px solid #d4dce9;
  border-radius: var(--radius-panel);
  background: var(--paper);
  box-shadow: 0 14px 32px rgba(35, 45, 66, 0.14);
  pointer-events: none;
}

.feedback-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.feedback-popover-header > strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.feedback-popover .status-badge {
  min-width: 54px;
  min-height: 23px;
  padding: 2px 7px;
  font-size: 11px;
}

.feedback-popover-title {
  display: -webkit-box;
  margin: 9px 0 4px;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.feedback-popover-meta {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.feedback-popover-followup {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.feedback-popover-event-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.feedback-popover-event-heading strong {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.feedback-popover-event-heading time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.feedback-popover-followup p {
  display: -webkit-box;
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.status-badge {
  display: inline-flex;
  min-width: 64px;
  min-height: 27px;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: #59667e;
  background: #edf1f7;
  font-size: 12px;
  font-weight: 600;
}

.status-badge.accepted {
  border-color: #c8d7fb;
  color: var(--primary-active);
  background: var(--primary-soft);
}

.status-badge.resolved {
  border-color: #b8dfd1;
  color: var(--success);
  background: var(--success-soft);
}

.status-badge.rejected {
  border-color: #edc2c8;
  color: var(--danger);
  background: var(--danger-soft);
}

.list-empty,
.list-error {
  display: grid;
  min-height: 260px;
  place-items: center;
  padding: 42px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-control);
  color: var(--muted);
  background: #fbfcff;
  text-align: center;
  line-height: 1.7;
}

.list-error {
  color: var(--danger);
  background: var(--danger-soft);
}

.list-message {
  margin: 0;
  padding: 24px 0;
  color: var(--muted);
  line-height: 1.6;
}

.empty-state-copy {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.empty-state-copy strong {
  color: var(--ink);
  font-size: 17px;
}

.empty-state-copy p {
  margin: 0;
  color: var(--muted);
}

.list-actions {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.danger-text {
  color: var(--danger);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding: 18px 4px 0;
  border-top: 1px solid rgba(35, 45, 66, 0.1);
  color: var(--muted);
  font-size: 12px;
}

.support-credit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 16px;
  white-space: nowrap;
}

.support-credit img {
  width: auto;
  height: 18px;
  max-width: 32px;
  flex: 0 0 auto;
  object-fit: contain;
}

.support-name {
  color: var(--ink-soft);
  font-weight: 550;
}

.support-name sup {
  position: relative;
  top: -0.18em;
  margin-left: 1px;
  font-size: 8px;
  line-height: 0;
}

.dialog {
  width: min(620px, calc(100% - 32px));
  max-width: none;
  max-height: min(820px, calc(100vh - 32px));
  padding: 0;
  border: 0;
  border-radius: var(--radius-panel);
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 28px 80px rgba(18, 27, 48, 0.28);
}

.dialog::backdrop {
  background: rgba(22, 31, 49, 0.58);
  backdrop-filter: blur(3px);
}

.dialog-large {
  width: min(780px, calc(100vw - 32px));
}

.dialog-shell {
  display: flex;
  max-height: min(820px, calc(100vh - 32px));
  flex-direction: column;
  margin: 0;
  background: var(--paper);
}

.dialog-header,
.dialog-footer {
  flex: 0 0 auto;
  padding: 16px 20px;
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.dialog-header h2,
.result-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
}

.dialog-body {
  overflow: auto;
  padding: 20px;
}

.dialog-footer {
  border-top: 1px solid var(--line);
}

.detail-status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 12px;
}

.detail-status-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.withdraw-button {
  min-height: 30px;
  padding: 4px 9px;
  border: 1px solid #efc9ce;
  border-radius: 6px;
  color: var(--danger);
  background: var(--paper);
  cursor: pointer;
}

.withdraw-button:hover,
.withdraw-button:focus-visible {
  background: var(--danger-soft);
}

.withdrawn-note {
  margin: 0 0 15px;
  padding: 10px 12px;
  border-left: 3px solid var(--muted);
  color: var(--muted);
  background: var(--canvas);
}

.withdrawal-confirmation p {
  margin: 0;
}

.danger-button {
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid var(--danger);
  border-radius: 6px;
  color: #fff;
  background: var(--danger);
  cursor: pointer;
}

.danger-button:disabled {
  cursor: wait;
  opacity: .6;
}

.status-badge.withdrawn {
  color: #596273;
  background: #edf0f4;
}

.detail-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.detail-section h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
}

.feedback-content,
.supplement-content,
.public-result {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  line-height: 1.75;
}

.public-result {
  padding: 14px 16px;
  border: 1px solid #b8dfd1;
  border-left: 3px solid var(--success);
  border-radius: var(--radius-control);
  background: var(--success-soft);
}

.supplement-meta,
.evidence-meta {
  margin-top: 8px;
}

.feedback-timeline {
  display: grid;
}

.timeline-item {
  position: relative;
  margin-left: 7px;
  padding: 0 0 22px 24px;
  border-left: 1px solid var(--line-strong);
}

.timeline-item:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.timeline-item::before {
  position: absolute;
  top: 4px;
  left: -5px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
  content: "";
}

.timeline-item.is-supplement::before {
  background: var(--paper);
}

.timeline-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.timeline-heading strong {
  color: var(--ink-soft);
  font-size: 13px;
}

.timeline-heading time {
  color: var(--muted);
  font-size: 11px;
}

.timeline-more,
.timeline-collapse {
  width: fit-content;
  padding: 5px 8px;
  border: 0;
  color: var(--primary);
  background: transparent;
  font-size: 12px;
  cursor: pointer;
}

.timeline-more {
  margin: -7px 0 15px 22px;
}

.timeline-actions {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 7px 0 0 22px;
}

.timeline-collapse {
  margin-left: auto;
}

.timeline-load-hint,
.timeline-evidence-status {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.timeline-evidence {
  margin-top: 10px;
}

.supplement-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 15px;
  border: 1px solid #c8d7fb;
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-control);
  background: #f7f9ff;
}

#feedback-dialog {
  width: min(680px, calc(100vw - 32px));
  border: 1px solid rgba(35, 45, 66, 0.1);
  font-size: 14px;
}

#feedback-dialog .dialog-shell {
  max-height: min(760px, calc(100vh - 32px));
}

#feedback-dialog .dialog-header {
  align-items: flex-start;
  padding: 14px 18px 15px;
}

#feedback-dialog .dialog-header > div {
  min-width: 0;
}

#feedback-dialog .dialog-header .eyebrow {
  margin-bottom: 4px;
  overflow-wrap: anywhere;
  color: #6f7c92;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 500;
}

#feedback-dialog .dialog-header h2 {
  display: -webkit-box;
  overflow-wrap: anywhere;
  overflow: hidden;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#feedback-dialog .close-button {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  font-size: 18px;
}

#feedback-dialog .dialog-body {
  padding: 14px 18px 18px;
}

#feedback-dialog .detail-status-line {
  margin-bottom: 15px;
}

#feedback-dialog .detail-status-line > span:last-child {
  font-variant-numeric: tabular-nums;
}

#feedback-dialog .public-result {
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.6;
}

#feedback-dialog .detail-section {
  margin-top: 20px;
  padding-top: 17px;
}

#feedback-detail > .detail-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

#feedback-dialog .detail-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

#feedback-dialog .detail-section h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

#feedback-dialog .detail-section-meta {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
}

#feedback-dialog .detail-section-composer {
  padding: 0;
  border-top: 0;
}

#feedback-dialog .feedback-content,
#feedback-dialog .supplement-content {
  font-size: 14px;
  line-height: 1.65;
}

#feedback-dialog .timeline-item {
  margin-left: 5px;
  padding: 0 0 18px 20px;
}

#feedback-dialog .timeline-heading {
  margin-bottom: 5px;
}

#feedback-dialog .timeline-heading strong {
  font-size: 12px;
  font-weight: 600;
}

#feedback-dialog .timeline-heading time {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

#feedback-dialog .supplement-form {
  display: block;
  overflow: hidden;
  margin-top: 0;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  background: var(--paper);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

#feedback-dialog .supplement-form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(53, 99, 239, 0.1);
}

#feedback-dialog .supplement-form textarea {
  display: block;
  min-height: 112px;
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  background: var(--paper);
  font-size: 14px;
  line-height: 1.55;
  box-shadow: none;
}

#feedback-dialog .supplement-file-list:not(:empty) {
  max-height: 108px;
  padding: 0 10px 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

#feedback-dialog .supplement-attachment-toolbar {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 7px 5px 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fbfcff;
  font-size: 12px;
}

#feedback-dialog .supplement-attachment-toolbar .attachment-button {
  width: 30px;
  height: 30px;
  font-size: 18px;
}

#feedback-dialog .supplement-attachment-toolbar .attachment-button.is-disabled {
  border-color: var(--line);
  color: var(--muted);
  background: #f3f5f8;
  cursor: not-allowed;
}

#feedback-dialog .supplement-form.is-dragging {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 3px rgba(53, 99, 239, 0.1);
}

#feedback-dialog .supplement-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 6px 7px;
  border-top: 1px solid var(--line);
  background: #fafbfe;
}

#feedback-dialog .supplement-form-status {
  min-width: 0;
  flex: 1 1 auto;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
}

#feedback-dialog .supplement-form-status.is-error {
  padding: 6px 8px;
  border: 1px solid #efc2c8;
  border-left: 3px solid var(--danger);
  border-radius: var(--radius-control);
  color: #9f2f3d;
  background: var(--danger-soft);
  font-weight: 600;
}

#feedback-dialog .supplement-form .primary-button {
  min-width: 84px;
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
  box-shadow: none;
}

.evidence-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.evidence-item {
  display: grid;
  grid-template-columns: 34px minmax(120px, 230px);
  gap: 6px;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 3px 5px 3px 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: #fbfcff;
}

.evidence-preview {
  width: 34px;
  height: 34px;
}

.evidence-preview-button {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: zoom-in;
}

.evidence-copy {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.evidence-copy .evidence-meta {
  margin: 0;
  flex: 0 0 auto;
  white-space: nowrap;
}

.evidence-link,
.evidence-name {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  color: var(--primary);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}

button.evidence-link {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
}

.evidence-download {
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: var(--radius-control);
  color: var(--muted);
  font-size: 16px;
  text-decoration: none;
}

.evidence-download:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.media-dialog {
  position: fixed;
  inset: 0;
  width: min(1200px, calc(100vw - 48px));
  height: min(900px, calc(100vh - 48px));
  height: min(900px, calc(100dvh - 48px));
  max-height: none;
  margin: auto;
  overflow: hidden;
}

.media-dialog .dialog-shell {
  display: grid;
  width: 100%;
  height: 100%;
  max-height: none;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.media-dialog .dialog-header,
.media-dialog .dialog-footer,
.media-preview-body {
  min-width: 0;
}

.media-dialog .dialog-header {
  align-items: center;
  padding: 12px 16px;
}

.media-dialog .dialog-header > div {
  min-width: 0;
}

.media-dialog .dialog-header h2 {
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-preview-body {
  position: relative;
  display: grid;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  place-items: center;
  background: #151a24;
  overscroll-behavior: contain;
}

.media-preview-body img,
.media-preview-body video {
  position: absolute;
  inset: 16px;
  display: block;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.media-preview-body audio {
  width: min(620px, calc(100% - 32px));
}

.media-preview-error {
  margin: 0;
  color: #d9e0ec;
  font-size: 14px;
  text-align: center;
}

.media-preview-footer {
  display: flex;
  justify-content: flex-end;
  padding: 10px 16px;
}

.result-dialog {
  width: min(660px, calc(100% - 32px));
}

.result-header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 32px;
  gap: 16px;
  align-items: center;
  padding: 25px 22px 20px;
  border-bottom: 1px solid var(--line);
}

.result-header .eyebrow {
  margin-bottom: 4px;
}

.result-mark {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--success);
  font-size: 23px;
  font-weight: 700;
}

.result-body {
  display: grid;
  gap: 18px;
}

.feedback-number {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 15px 16px;
  border: 1px solid rgba(53, 99, 239, 0.2);
  border-radius: var(--radius-control);
  background: rgba(53, 99, 239, 0.05);
}

.feedback-number span {
  color: var(--muted);
  font-size: 12px;
}

.feedback-number strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--primary-active);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 15px;
}

.credential-note {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.credential-note.is-warning {
  padding: 12px 14px;
  border: 1px solid #ebd4b1;
  border-radius: var(--radius-control);
  color: #805116;
  background: var(--warning-soft);
}

.credential-details {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.credential-details summary {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.credential-list {
  display: grid;
  gap: 14px;
  margin: 16px 0 0;
}

.credential-list > div {
  display: grid;
  gap: 6px;
}

.credential-list dt {
  color: var(--muted);
  font-size: 12px;
}

.credential-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.credential-list code {
  display: block;
  max-height: 100px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: #f6f8fc;
  white-space: pre-wrap;
}

.credential-actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 10px;
}

.result-actions {
  justify-content: space-between;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  max-width: min(420px, calc(100% - 48px));
  padding: 12px 16px;
  border-radius: var(--radius-control);
  color: #fff;
  background: #28344b;
  box-shadow: var(--shadow);
  line-height: 1.5;
}

.toast.is-error {
  background: #9f2f3d;
}

.progress-track {
  height: 5px;
  margin-top: 5px;
  overflow: hidden;
  border-radius: 3px;
  background: #dfe6f2;
}

.progress-bar {
  height: 100%;
  background: var(--primary);
}

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

.noscript {
  margin: 20px;
  padding: 14px;
  border: 1px solid #efc5ca;
  color: var(--danger);
  background: var(--danger-soft);
}

[hidden] {
  display: none !important;
}

@media (max-width: 820px) {
  .workspace-card {
    padding-right: 28px;
    padding-left: 28px;
  }

  .channel-header {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .view-tabs {
    min-width: 0;
    width: 100%;
  }

  .view-navigation {
    width: 100%;
  }

  .records-heading {
    align-items: flex-start;
  }

  .records-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .feedback-popover {
    display: none !important;
  }

  .site-shell {
    width: 100%;
    padding-top: 16px;
  }

  .site-header,
  .channel-header,
  .channel-note,
  .site-footer {
    margin-right: 16px;
    margin-left: 16px;
  }

  .site-header {
    min-height: 40px;
  }

  .brand img {
    width: auto;
    height: 30px;
    max-width: 72px;
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-divider {
    margin: 0 9px;
  }

  .brand-context {
    font-size: 12px;
  }

  .channel-state {
    padding-right: 8px;
    padding-left: 8px;
  }

  .channel-header {
    gap: 16px;
    margin-top: 22px;
    margin-bottom: 12px;
  }

  .channel-description {
    font-size: 14px;
  }

  .view-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: 1 1 auto;
  }

  .tab-button {
    min-height: 42px;
  }

  .storage-hint,
  .settings-menu {
    margin-bottom: 8px;
  }

  .workspace-card {
    padding: 24px 18px 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: 0 10px 28px rgba(35, 45, 66, 0.07);
  }

  .panel-heading,
  .records-heading {
    display: grid;
    gap: 13px;
    margin-bottom: 20px;
  }

  .panel-heading h2 {
    font-size: 19px;
  }

  .required-note {
    margin-top: 0;
  }

  .reporter-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .content-field {
    margin-top: 24px;
  }

  .editor-shell textarea {
    min-height: 240px;
  }

  .editor-toolbar {
    align-items: flex-start;
  }

  .form-actions {
    min-height: 0;
    align-items: stretch;
    flex-direction: column;
    margin-top: 26px;
    padding: 18px 0 22px;
  }

  .form-actions .primary-button {
    width: 100%;
    min-height: 42px;
  }

  .form-status:empty {
    display: none;
  }

  .records-card {
    padding-bottom: 24px;
  }

  .records-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .records-actions .secondary-button {
    width: 100%;
  }

  .compact-field {
    grid-column: 1 / -1;
  }

  .compact-field select {
    flex: 1;
  }

  .feedback-table-wrap {
    overflow-x: hidden;
  }

  .feedback-table {
    min-width: 0;
  }

  .feedback-table-id-column,
  .feedback-table-time-column,
  .feedback-table th:nth-child(1),
  .feedback-table th:nth-child(2),
  .feedback-table-id,
  .feedback-table-time {
    display: none;
  }

  .feedback-table-status-column {
    width: 82px;
  }

  .feedback-table th,
  .feedback-table td {
    padding: 11px 10px;
  }

  .feedback-table td {
    height: 64px;
  }

  .feedback-table-title span {
    font-size: 13px;
  }

  .feedback-table-mobile-meta {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: var(--muted);
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 9px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .resume-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .resume-item .file-meta {
    grid-column: 1 / 2;
  }

  .feedback-target {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .file-item {
    grid-template-columns: 30px minmax(90px, 190px);
  }

  .evidence-item {
    grid-template-columns: 30px minmax(100px, 210px);
  }

  .file-preview,
  .evidence-preview {
    width: 30px;
    height: 30px;
  }

  .file-name,
  .evidence-link,
  .evidence-name {
    font-size: 12px;
  }

  .site-footer {
    align-items: center;
    flex-direction: row;
    gap: 8px;
  }

  .support-credit {
    margin-left: auto;
  }

  .dialog,
  .dialog-large,
  .result-dialog {
    width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
  }

  .dialog-shell {
    max-height: calc(100vh - 20px);
  }

  .dialog-header,
  .dialog-footer,
  .dialog-body,
  .result-header {
    padding-right: 16px;
    padding-left: 16px;
  }

  .dialog-footer,
  .result-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .dialog-footer button {
    width: 100%;
  }

  #feedback-dialog {
    width: calc(100% - 20px);
  }

  #feedback-dialog .dialog-shell {
    max-height: calc(100vh - 20px);
  }

  #feedback-dialog .dialog-header,
  #feedback-dialog .dialog-body {
    padding-right: 14px;
    padding-left: 14px;
  }

  #feedback-dialog .dialog-header h2 {
    font-size: 16px;
  }

  .media-dialog {
    width: calc(100% - 16px);
    height: calc(100vh - 16px);
    height: calc(100dvh - 16px);
    max-height: none;
  }

  .media-dialog .dialog-shell {
    height: 100%;
    max-height: none;
  }

  .media-dialog .dialog-header {
    padding: 11px 13px;
  }

  .media-preview-body {
    padding: 0;
  }

  .media-preview-body img,
  .media-preview-body video {
    inset: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
  }

  .media-preview-footer {
    align-items: center;
    flex-direction: row;
    padding: 9px 13px;
  }

  .result-header {
    grid-template-columns: 42px minmax(0, 1fr) 32px;
    gap: 12px;
  }

  .result-mark {
    width: 42px;
    height: 42px;
  }

  .feedback-number {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .credential-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .toast {
    right: 14px;
    bottom: 14px;
    max-width: calc(100% - 28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
