:root {
  --bg: #f6f8fa;
  --surface: #ffffff;
  --surface-muted: #f6f8fa;
  --border: #d0d7de;
  --text: #1f2328;
  --muted: #59636e;
  --accent: #0969da;
  --success: #1a7f37;
  --danger: #cf222e;
  --critical: #b62324;
  --shadow: 0 1px 0 rgba(31, 35, 40, 0.04), 0 8px 24px rgba(140, 149, 159, 0.2);
  --issue-panel-bg: #eef4ff;
  --comment-panel-bg: #f3f6f9;
  --comment-item-bg: #ffffff;
  --comment-item-border: #d8e0e8;
  --note-panel-bg: #fff7cc;
  --note-panel-border: #e6c15a;
  --note-panel-accent: #b76e00;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "SF Pro Text", "Segoe UI Variable", "Noto Sans SC", "PingFang SC", sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 8% -10%, rgba(9, 105, 218, 0.08), rgba(9, 105, 218, 0) 44%),
    radial-gradient(circle at 100% 0%, rgba(26, 127, 55, 0.09), rgba(26, 127, 55, 0) 32%),
    linear-gradient(180deg, #f8fafc 0%, #f6f8fa 100%);
}

.app-hidden {
  visibility: hidden;
  pointer-events: none;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(3px);
}

.auth-gate-hidden {
  display: none;
}

.auth-card {
  width: min(440px, 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
}

.auth-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.auth-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.action-note-card {
  width: min(560px, 100%);
}

.doc-card {
  width: min(900px, 100%);
}

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

.doc-card-header h2 {
  margin: 0;
}

.doc-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.doc-toolbar .small-action-btn {
  min-width: 90px;
}

.doc-editor {
  min-height: 320px;
  max-height: min(62vh, 760px);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  padding: 12px;
  font-size: 16px;
  line-height: 1.7;
  word-break: break-word;
}

.doc-editor[contenteditable="false"] {
  background: #f6f8fa;
}

.doc-editor:focus {
  outline: 2px solid rgba(9, 105, 218, 0.28);
  border-color: var(--accent);
}

.action-note-card textarea {
  min-height: 130px;
}

.action-note-upload-actions {
  margin-top: -2px;
  justify-content: flex-start;
}

.action-note-upload-actions .small-action-btn {
  min-width: 120px;
}

.issues-app {
  width: min(1240px, 100% - 32px);
  margin: 24px auto 36px;
}

.issues-header {
  margin-bottom: 16px;
}

.issues-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.back-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.back-link:hover {
  text-decoration: underline;
}

.repo-title {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(9, 105, 218, 0.08);
  font-size: 13px;
  font-weight: 700;
}

.issues-header h1 {
  margin: 12px 0 8px;
  font-size: 32px;
  line-height: 1.2;
}

.issues-header p {
  margin: 0;
  color: var(--muted);
}

.issues-auth-bar {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.current-user-badge {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #0b3c84;
  border: 1px solid rgba(9, 105, 218, 0.28);
  background: rgba(9, 105, 218, 0.09);
}

.issues-auth-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.small-action-btn {
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  color: #1f2328;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.small-action-btn-secondary {
  background: #f6f8fa;
  color: #57606a;
}

.card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.issues-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
}

.state-tabs {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-muted);
}

.tab-btn {
  border: none;
  border-right: 1px solid var(--border);
  background: transparent;
  color: #57606a;
  cursor: pointer;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
}

.tab-btn:last-child {
  border-right: none;
}

.tab-btn span {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(9, 105, 218, 0.14);
  color: #0d306f;
  font-size: 12px;
}

.tab-btn-active {
  background: #ffffff;
  color: var(--text);
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: flex-end;
  flex-wrap: wrap;
  min-width: 0;
}

.category-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #f6f8fa;
  flex: 0 0 auto;
}

.category-btn {
  border: none;
  border-right: 1px solid var(--border);
  background: transparent;
  color: #57606a;
  cursor: pointer;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  min-height: 34px;
  min-width: 76px;
  white-space: nowrap;
  line-height: 1.2;
  flex: 0 0 auto;
}

.category-btn:last-child {
  border-right: none;
}

.category-btn-active {
  background: #ffffff;
  color: #1f2328;
}

#issueSearch {
  width: auto;
  min-width: 220px;
  flex: 1 1 260px;
  height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
}

#issueSort {
  height: 34px;
  min-width: 180px;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  padding: 6px 10px;
  background: #fff;
}

#issueSearch:focus {
  outline: 2px solid rgba(9, 105, 218, 0.32);
  border-color: var(--accent);
}

#issueSort:focus {
  outline: 2px solid rgba(9, 105, 218, 0.32);
  border-color: var(--accent);
}

.new-issue-btn,
.submit-btn {
  border: 1px solid #1f883d;
  border-radius: 7px;
  background: linear-gradient(180deg, #2da44e 0%, #22863a 100%);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.new-issue-btn {
  padding: 8px 12px;
  min-width: 96px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.submit-btn {
  width: 100%;
  padding: 10px 14px;
  margin-top: 4px;
}

.issue-submit-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.issue-submit-actions .submit-btn {
  flex: 1;
  width: auto;
  margin-top: 0;
}

.issue-submit-actions .small-action-btn {
  flex: 0 0 auto;
  min-width: 110px;
}

.issues-layout {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(320px, 1fr);
  gap: 14px;
  align-items: start;
}

.issues-list-panel {
  overflow: hidden;
}

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

.issue-item {
  border-top: 1px solid var(--border);
}

.issue-item.issue-has-new-comment {
  box-shadow: inset 4px 0 0 #cf222e;
  background: linear-gradient(90deg, rgba(207, 34, 46, 0.08), rgba(207, 34, 46, 0));
}

.issue-item:first-child {
  border-top: none;
}

.issue-details {
  background: #fff;
}

.issue-details summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
}

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

.issue-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

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

.issue-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  word-break: break-word;
}

.issue-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
}

.issue-title-left {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.issue-title-left .issue-title {
  flex: 1;
}

.issue-title-left .issue-severity-edit-trigger {
  flex: 0 0 auto;
  margin-top: 1px;
}

.issue-title:hover {
  color: var(--accent);
  text-decoration: underline;
}

.issue-meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.issue-meta-sort-trigger {
  border: none;
  background: transparent;
  color: #0d4a9b;
  font: inherit;
  font-weight: 800;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-decoration: underline;
}

.issue-meta-sort-trigger:hover {
  color: #0969da;
}

.issue-severity-edit-trigger {
  cursor: pointer;
  user-select: none;
}

.issue-severity-sort-btn {
  border: 1px solid rgba(13, 74, 155, 0.3);
  background: rgba(9, 105, 218, 0.08);
  color: #0d4a9b;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  line-height: 1.2;
  cursor: pointer;
}

.issue-severity-sort-btn:hover {
  background: rgba(9, 105, 218, 0.14);
}

.issue-sort-active {
  box-shadow: 0 0 0 1px rgba(9, 105, 218, 0.28);
}

.issue-preview {
  margin-top: 10px;
  font-size: 13px;
  color: #3d444d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.issue-labels {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.issue-header-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex: 0 0 auto;
  margin-top: 2px;
}

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
}

.status-dot-open {
  background: var(--success);
}

.status-dot-closed {
  background: var(--danger);
}

.status-dot-pending {
  background: #b26a00;
}

.status-pill,
.severity-pill {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
}

.status-pill-open {
  background: rgba(26, 127, 55, 0.13);
  color: #24663b;
}

.issue-category-pill {
  background: rgba(9, 105, 218, 0.12);
  color: #0d4a9b;
}

.status-pill-closed {
  background: rgba(207, 34, 46, 0.12);
  color: #86222a;
}

.status-pill-pending {
  background: rgba(246, 185, 59, 0.22);
  color: #7a5200;
}

.status-pill-close-mode {
  background: rgba(9, 105, 218, 0.12);
  color: #0d4a9b;
}

.status-pill-close-mode-pending {
  background: #ffe2e2;
  color: #c40000;
  font-weight: 900;
  border: 1px solid #ff7a7a;
  box-shadow: 0 0 0 1px rgba(196, 0, 0, 0.12), 0 0 10px rgba(255, 0, 0, 0.2);
}

.issue-new-comment-pill {
  background: #ffebe9;
  color: #b42318;
  border: 1px solid #ff8182;
  box-shadow: 0 0 0 1px rgba(255, 129, 130, 0.26);
  animation: issue-new-comment-pulse 1.2s ease-in-out infinite;
}

@keyframes issue-new-comment-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

.severity-pill-low {
  background: rgba(87, 171, 90, 0.18);
  color: #24552a;
}

.severity-pill-medium {
  background: rgba(251, 188, 4, 0.28);
  color: #6d4d00;
}

.severity-pill-high {
  background: rgba(248, 81, 73, 0.22);
  color: #7f1d1d;
}

.severity-pill-critical {
  background: rgba(182, 35, 36, 0.24);
  color: var(--critical);
}

.issue-detail-body {
  border-top: 1px solid var(--border);
  background: var(--issue-panel-bg);
  padding: 12px 14px 14px;
}

.issue-detail-body p {
  margin: 0 0 8px;
  color: #59636e;
  font-size: 12px;
  font-weight: 600;
}

.issue-process-status {
  font-weight: 700;
  color: #0d4a9b;
}

.issue-process-status-pending {
  color: #d40000;
  font-weight: 900;
  font-size: 16px;
  text-shadow: 0 0 8px rgba(255, 0, 0, 0.2);
}

.issue-detail-body pre {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
  color: var(--text);
  font-family: "SF Mono", "Menlo", "Consolas", "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.issue-meta-inline-edit-btn {
  border: none;
  background: transparent;
  color: #0d4a9b;
  font: inherit;
  font-weight: 800;
  margin: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

.issue-meta-inline-edit-btn:hover {
  color: #0969da;
}

.issue-note-block {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.issue-note-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.issue-note-title {
  margin: 0;
  color: #8a4b00;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 8px;
  line-height: 1;
  border-radius: 8px;
  background: rgba(240, 180, 41, 0.2);
  border: 1px solid rgba(240, 180, 41, 0.55);
}

.issue-note-title::before {
  content: "⚠";
  font-size: 13px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
}

.issue-detail-body pre.issue-note-pre {
  margin: 0;
  border-left: 5px solid var(--note-panel-accent);
  background: var(--note-panel-bg);
  border-color: var(--note-panel-border);
  box-shadow: inset 0 0 0 1px rgba(240, 180, 41, 0.2);
}

.issue-comment-section {
  margin-top: 12px;
  border: 1px solid #d4dce4;
  border-radius: 8px;
  background: var(--comment-panel-bg);
  padding: 10px;
}

.issue-comment-title {
  margin: 0 0 8px;
  color: #1f2328;
  font-size: 13px;
  font-weight: 800;
}

.issue-comment-empty {
  color: #6a737d;
  font-size: 12px;
  padding: 4px 0;
}

.issue-comment-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.issue-comment-item {
  border: 1px solid var(--comment-item-border);
  border-radius: 6px;
  background: var(--comment-item-bg);
  padding: 8px;
  position: relative;
}

.issue-comment-item::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  bottom: -1px;
  width: 4px;
  border-radius: 6px 0 0 6px;
  background: #9aa9ba;
}

.issue-comment-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.issue-comment-meta-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.issue-comment-meta {
  color: #57606a;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 0;
}

.issue-comment-item-unread {
  border-color: #f5a4a7;
  background: #fff4f4;
}

.issue-comment-item-unread::before {
  background: #cf222e;
}

.issue-comment-unread-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  background: #cf222e;
  box-shadow: 0 0 0 1px rgba(173, 20, 28, 0.22);
}

.issue-comment-content {
  margin: 0;
  border: none;
  background: transparent;
  padding: 0;
  color: #1f2328;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.issue-comment-form {
  margin-top: 10px;
}

.issue-comment-input {
  min-height: 86px;
}

.issue-comment-actions {
  margin-top: 6px;
  display: flex;
  justify-content: flex-end;
}

.issue-comment-upload-actions {
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.issue-comment-upload-actions .issue-comment-submit-btn {
  margin-left: auto;
}

.issue-comment-submit-btn {
  padding: 6px 10px;
  font-size: 12px;
}

.issue-comment-screenshot-meta {
  margin-top: 8px;
}

.issue-comment-screenshot-preview-list {
  margin-top: 6px;
}

.issue-comment-message {
  min-height: 16px;
  margin-top: 6px;
}

.issue-comment-screenshot-grid {
  margin-top: 8px;
}

.issue-detail-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.issue-close-btn {
  border-color: rgba(26, 127, 55, 0.38);
  color: #1a6a35;
  background: rgba(26, 127, 55, 0.1);
}

.issue-close-btn-secondary {
  border-color: rgba(9, 105, 218, 0.34);
  color: #0b3f86;
  background: rgba(9, 105, 218, 0.1);
}

.issue-pending-btn {
  border-color: rgba(246, 185, 59, 0.46);
  color: #7a5200;
  background: rgba(246, 185, 59, 0.16);
}

.issue-delete-btn {
  border-color: rgba(207, 34, 46, 0.4);
  color: #86222a;
  background: rgba(207, 34, 46, 0.08);
}

.issue-delete-btn-small {
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 6px;
}

.issue-delete-btn-header {
  min-width: 0;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 5px;
  line-height: 1.25;
  white-space: nowrap;
}

.issue-reopen-btn {
  border-color: rgba(251, 188, 4, 0.45);
  color: #7a5200;
  background: rgba(251, 188, 4, 0.16);
}

@media (max-width: 980px) {
  .issue-header-row {
    flex-wrap: wrap;
  }

  .issue-header-main {
    width: 100%;
  }

  .issue-header-side {
    width: 100%;
    align-items: flex-start;
    margin-top: 4px;
  }

  .issue-labels {
    justify-content: flex-start;
  }
}

.issue-close-btn:disabled,
.issue-reopen-btn:disabled,
.issue-delete-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.empty-state {
  padding: 34px 14px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.issue-form-panel {
  padding: 14px;
  position: sticky;
  top: 16px;
}

.issue-form-panel h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.form-row {
  margin-bottom: 12px;
}

.current-reporter {
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 8px 10px;
  font-size: 14px;
  background: #f6f8fa;
  color: #1f2328;
  font-weight: 700;
}

label {
  display: block;
  font-size: 13px;
  color: #57606a;
  margin-bottom: 6px;
}

.category-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-radio-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  font-size: 13px;
  color: #1f2328;
}

.category-radio-item input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  appearance: auto;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 14px;
  padding: 8px 10px;
  color: var(--text);
  background: #ffffff;
}

textarea {
  resize: vertical;
  min-height: 160px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(9, 105, 218, 0.28);
  border-color: var(--accent);
}

.form-message {
  margin-top: 9px;
  font-size: 13px;
  min-height: 18px;
}

.form-message.error {
  color: var(--danger);
}

.form-message.success {
  color: var(--success);
}

.screenshot-meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.screenshot-preview {
  margin-top: 8px;
  display: block;
  max-width: 100%;
  max-height: 260px;
  border-radius: 8px;
  border: 1px solid var(--border);
  object-fit: contain;
  background: #ffffff;
}

.screenshot-preview-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}

.screenshot-preview-grid[hidden] {
  display: none;
}

.screenshot-picker-item {
  position: relative;
}

.screenshot-preview-grid .screenshot-preview {
  margin-top: 0;
  width: 100%;
  height: 120px;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

.issue-screenshot-preview {
  cursor: zoom-in;
}

.screenshot-remove-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(207, 34, 46, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #86222a;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.image-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.82);
  padding: 20px;
}

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

.image-preview-img {
  max-width: min(1200px, 100%);
  max-height: 92vh;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: #fff;
  object-fit: contain;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

.image-preview-close-btn {
  position: fixed;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.issue-highlight {
  box-shadow: inset 3px 0 0 #1a7f37;
  background: linear-gradient(90deg, rgba(26, 127, 55, 0.08), rgba(26, 127, 55, 0));
}

.password-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.password-actions .submit-btn {
  flex: 1;
}

.password-actions .small-action-btn {
  min-width: 100px;
}

@media (max-width: 980px) {
  .issues-layout {
    grid-template-columns: 1fr;
  }

  .issue-form-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .issues-app {
    width: min(1240px, 100% - 20px);
    margin-top: 14px;
  }

  .issues-header h1 {
    font-size: 26px;
  }

  .issues-header-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .issues-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .issues-auth-bar {
    align-items: stretch;
  }

  .issues-auth-actions {
    width: 100%;
  }

  .issues-auth-actions .small-action-btn {
    flex: 1;
  }

  .state-tabs {
    width: 100%;
  }

  .tab-btn {
    flex: 1;
  }

  .toolbar-right {
    width: 100%;
    justify-content: stretch;
    flex-direction: column;
  }

  .category-switch {
    width: 100%;
  }

  .category-btn {
    flex: 1;
  }

  #issueSearch {
    width: 100%;
  }

  #issueSort {
    width: 100%;
  }

  .new-issue-btn {
    width: 100%;
  }

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

  .issue-submit-actions .submit-btn,
  .issue-submit-actions .small-action-btn {
    width: 100%;
  }

  .password-actions .submit-btn,
  .password-actions .small-action-btn {
    width: 100%;
  }

  .doc-toolbar {
    width: 100%;
  }

  .doc-toolbar .small-action-btn {
    flex: 1;
    min-width: 120px;
  }

  .doc-editor {
    min-height: 280px;
  }

  .issue-header-row {
    flex-direction: column;
  }
}
