@charset "UTF-8";
:root {
  --paper: #f5f5ef;
  --surface: #fff;
  --ink: #1c302d;
  --muted: #71807b;
  --line: #e2e7df;
  --green: #164d43;
  --soft: #eaf1e9;
  --accent: #ccdfb8;
  --danger: #a33f32;
  --radius: 16px;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
input,
textarea {
  font: inherit;
}

button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: .55;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #93b886;
  outline-offset: 3px;
}

button {
  border: 0;
}

a {
  color: var(--green);
}

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

svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

button svg {
  pointer-events: none;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
  font-size: 18px;
  letter-spacing: -.4px;
}

.brandmark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  background: var(--green);
  border-radius: 11px;
}

.brandmark svg {
  width: 23px;
  height: 23px;
}

.brand small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-top: 3px;
}

.primary,
.secondary,
.quiet,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 650;
  min-height: 40px;
  padding: 10px 15px;
  white-space: nowrap;
}

.primary {
  background: var(--green);
  color: #fff;
}

.primary:hover {
  background: #0b3c33;
}

.secondary {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
}

.secondary:hover,
.quiet:hover,
.icon-button:hover {
  background: var(--soft);
}

.quiet,
.icon-button {
  background: transparent;
  color: var(--muted);
}

.icon-button {
  padding: 9px;
}

.muted {
  color: var(--muted);
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}

.auth-layout {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 24px;
  gap: 24px;
}

.auth-story {
  background: var(--green);
  border-radius: 23px;
  color: white;
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 600px;
}

.auth-story .brandmark {
  background: #ffffff18;
}

.auth-story .brand small {
  color: #c1d1c7;
}

.auth-story h1 {
  font-size: clamp(32px,4vw,54px);
  letter-spacing: -1.8px;
  line-height: 1.25;
  max-width: 500px;
  margin: 70px 0 22px;
}

.auth-story p {
  font-size: 15px;
  color: #c4d7cc;
  line-height: 1.9;
  max-width: 400px;
}

.auth-flow {
  margin-top: 56px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-flow span {
  border: 1px solid #ffffff25;
  border-radius: 9px;
  padding: 10px 14px;
  color: #deeadf;
  font-size: 12px;
}

.auth-foot {
  font-size: 12px;
  color: #a4bdb0;
  margin-top: 60px;
}

.auth-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.auth-form {
  width: 100%;
  max-width: 350px;
}

.auth-form h2 {
  font-size: 27px;
  letter-spacing: -.8px;
  margin: 14px 0;
}

.auth-form>p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 32px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0 0 20px;
}

.field label {
  font-size: 13px;
  font-weight: 650;
}

.field input,
.field textarea,
.field select,
.search {
  width: 100%;
  border: 1px solid #d9e0d6;
  background: #fff;
  border-radius: 9px;
  padding: 12px 13px;
  color: var(--ink);
  font-size: 14px;
}

.field textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.7;
}

.field input::placeholder,
.field textarea::placeholder,
.search::placeholder {
  color: #9aa69f;
}

.field small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.auth-form .primary {
  width: 100%;
  min-height: 46px;
}

.error {
  padding: 12px 14px;
  color: var(--danger);
  background: #fff0eb;
  border: 1px solid #f1d8cf;
  border-radius: 9px;
  line-height: 1.6;
  font-size: 13px;
  margin-bottom: 16px;
}

.shell {
  max-width: 1800px;
  margin: auto;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 228px minmax(0,1fr);
}

.sidebar {
  padding: 30px 22px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100dvh;
  background: #eff1e9;
}

.nav-section {
  margin: 58px 0 auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #e0e9da;
  color: var(--green);
  padding: 13px 15px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
}

.nav-section .eyebrow {
  margin: 0 15px 16px;
}

.sidebar-note {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
  padding: 20px 12px;
}

.sidebar-foot {
  border-top: 1px solid #dce2d6;
  padding: 18px 8px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.connection {
  display: flex;
  gap: 7px;
  align-items: center;
}

.connection:before {
  content: "";
  width: 6px;
  height: 6px;
  background: #66875c;
  border-radius: 50%;
}

.workspace {
  min-width: 0;
  padding: 36px 36px 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.topbar h1 {
  font-size: 27px;
  letter-spacing: -1px;
  margin: 8px 0 9px;
}

.topbar p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.topbar-actions {
  display: flex;
  gap: 10px;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(260px,350px) minmax(0,1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  min-height: calc(100dvh - 220px);
  overflow: hidden;
}

.issue-column {
  border-right: 1px solid var(--line);
  min-width: 0;
}

.list-tools {
  padding: 22px 20px 16px;
  border-bottom: 1px solid var(--line);
}

.list-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 700;
}

.count {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: var(--paper);
  padding: 3px 8px;
  border-radius: 5px;
}

.search-wrap {
  position: relative;
}

.search-wrap svg {
  position: absolute;
  left: 11px;
  top: 11px;
  width: 17px;
  height: 17px;
  color: #8b9991;
}

.search {
  padding: 11px 10px 11px 35px;
  background: #f8f9f5;
  font-size: 12px;
}

.filters {
  display: flex;
  gap: 5px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.filter {
  font-size: 11px;
  background: transparent;
  color: var(--muted);
  padding: 7px 9px;
  border-radius: 6px;
}

.filter[aria-pressed=true] {
  background: var(--soft);
  color: var(--green);
  font-weight: 700;
}

.issue-list {
  max-height: calc(100dvh - 365px);
  min-height: 340px;
  overflow: auto;
  padding: 8px;
}

.issue-card {
  display: block;
  width: 100%;
  text-align: left;
  background: white;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 17px 14px;
  margin-bottom: 4px;
}

.issue-card:hover {
  background: #f6f8f2;
}

.issue-card[aria-current=true] {
  background: #eff4e9;
  border-color: #dce7d1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 11px;
}

.issue-card h3 {
  font-size: 14px;
  line-height: 1.65;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.card-excerpt {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 8px;
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-top: 15px;
  font-size: 10px;
  color: var(--muted);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}

.status:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status.queued {
  color: #96713c;
}

.status.analyzing {
  color: #476da0;
}

.status.done {
  color: #427452;
}

.detail {
  padding: 30px;
  min-width: 0;
}

.detail-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 21px;
}

.detail-head .muted {
  font-size: 11px;
}

.detail h2 {
  font-size: 23px;
  line-height: 1.55;
  letter-spacing: -.5px;
  overflow-wrap: anywhere;
  margin-bottom: 13px;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 11px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.detail-section {
  margin-top: 28px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-heading h3 {
  font-size: 13px;
  font-weight: 700;
}

.body-text {
  font-size: 13px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.report {
  background: #f6f8f2;
  border: 1px solid #e4eadd;
  border-radius: 12px;
  padding: 22px;
  font-size: 13px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.report p {
  white-space: pre-wrap;
  margin-bottom: 12px;
}

.report p:last-child {
  margin-bottom: 0;
}

.report h3,
.report h4 {
  font-size: 14px;
  margin: 20px 0 8px;
}

.report h3:first-child,
.report h4:first-child {
  margin-top: 0;
}

.report pre {
  background: #e9eee4;
  padding: 14px;
  border-radius: 7px;
  overflow: auto;
  font-size: 12px;
  white-space: pre-wrap;
}

.report-pending {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 19px;
  background: #f6f8f2;
  border-radius: 12px;
  border: 1px solid #e4eadd;
}

.report-pending svg {
  color: #7c9469;
  margin-top: 1px;
}

.report-pending strong {
  font-size: 13px;
  font-weight: 600;
}

.report-pending p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 4px;
}

.file-list {
  display: grid;
  gap: 8px;
}

.file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 12px;
  min-width: 0;
}

.file-row>svg {
  color: #87937c;
}

.file-name {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.file-size {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}

.file-row a {
  color: var(--green);
  padding: 6px;
  font-size: 11px;
  text-decoration: none;
}

.upload-button {
  font-size: 11px;
  min-height: 30px;
  padding: 6px 9px;
}

.upload-status {
  font-size: 12px;
  line-height: 1.8;
  color: var(--green);
  margin-top: 10px;
}

.upload-status progress {
  display: block;
  width: 100%;
  height: 5px;
  margin: 7px 0;
  accent-color: var(--green);
}

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

.note {
  padding: 0 0 18px 14px;
  border-left: 2px solid #e1e9d9;
  margin-bottom: 12px;
}

.note time {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-bottom: 5px;
}

.note-form {
  margin-top: 14px;
}

.note-form textarea {
  width: 100%;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
  resize: vertical;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink);
  background: #fcfcfa;
}

.note-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 9px;
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 50px 25px;
  min-height: 440px;
}

.empty-icon {
  height: 64px;
  width: 64px;
  border-radius: 19px;
  background: #f0f4e9;
  display: grid;
  place-items: center;
  color: #6e8860;
  margin-bottom: 23px;
}

.empty-icon svg {
  width: 29px;
  height: 29px;
}

.empty h2 {
  font-size: 20px;
  letter-spacing: -.5px;
  margin: 0 0 12px;
}

.empty p {
  max-width: 300px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.empty .primary {
  margin-top: 24px;
}

.list-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.footer {
  display: flex;
  justify-content: space-between;
  margin-top: 17px;
  font-size: 10px;
  color: #8d998e;
}

.mobile-brand,
.back {
  display: none;
}

dialog {
  width: min(620px,calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  box-shadow: 0 24px 100px #142e2424;
  max-height: 90dvh;
}

dialog::backdrop {
  background: #102b2666;
  backdrop-filter: blur(3px);
}

.dialog-inner {
  padding: 28px;
}

.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.dialog-heading h2 {
  font-size: 21px;
  letter-spacing: -.5px;
}

.dialog-intro {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  margin: -9px 0 24px;
}

.dropzone {
  border: 1px dashed #cbd5c3;
  background: #f8faf4;
  border-radius: 10px;
  padding: 19px;
  display: flex;
  align-items: center;
  gap: 13px;
  cursor: pointer;
}

.dropzone svg {
  color: #7d9271;
}

.dropzone strong {
  font-size: 12px;
  display: block;
}

.dropzone small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  display: block;
  margin-top: 4px;
}

.selected-files {
  font-size: 11px;
  color: var(--muted);
  margin-top: 9px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 24px;
}

.loading {
  padding: 50px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.banner {
  margin-bottom: 16px;
}

.spinner {
  height: 16px;
  width: 16px;
  border: 2px solid #ffffff50;
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }

}

@media(prefers-reduced-motion:reduce) {
  * {
    animation: none!important;
    scroll-behavior: auto!important;
  }

}

@media(min-width:1600px) {
  .detail {
    padding: 36px 42px;
  }

}

@media(max-width:1100px) {
  .shell {
    grid-template-columns: 190px minmax(0,1fr);
  }

  .sidebar {
    padding: 28px 16px;
  }

  .workspace {
    padding: 28px 23px;
  }

  .workbench {
    grid-template-columns: 280px minmax(0,1fr);
  }

  .detail {
    padding: 24px;
  }

  .topbar p {
    max-width: 300px;
  }

  .brand {
    font-size: 16px;
  }

}

@media(max-width:860px) {
  .shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .workspace {
    padding: 22px 18px;
  }

  .mobile-brand {
    display: flex;
    margin-bottom: 30px;
  }

  .mobile-brand .brand {
    flex: 1;
  }

  .mobile-brand .quiet {
    font-size: 11px;
  }

  .workbench {
    grid-template-columns: 260px minmax(0,1fr);
    min-height: 65dvh;
  }

  .topbar h1 {
    font-size: 24px;
  }

  .topbar {
    margin-bottom: 24px;
  }

  .topbar-actions .refresh-label {
    display: none;
  }

  .issue-list {
    max-height: 75dvh;
  }

  .auth-layout {
    padding: 14px;
    gap: 0;
    grid-template-columns: 1fr 1fr;
  }

  .auth-story {
    padding: 28px;
    min-height: 650px;
  }

  .auth-story h1 {
    font-size: 37px;
  }

  .auth-form-wrap {
    padding: 30px;
  }

}

@media(max-width:660px) {
  .auth-layout {
    display: block;
    padding: 0;
  }

  .auth-story {
    min-height: auto;
    border-radius: 0;
    padding: 28px;
  }

  .auth-story h1 {
    font-size: 32px;
    margin: 36px 0 14px;
  }

  .auth-story p {
    font-size: 13px;
  }

  .auth-flow,
  .auth-foot {
    display: none;
  }

  .auth-form-wrap {
    padding: 40px 28px;
  }

  .auth-form h2 {
    font-size: 24px;
  }

  .workspace {
    padding: 20px 14px;
  }

  .topbar {
    align-items: flex-start;
    gap: 10px;
  }

  .topbar h1 {
    font-size: 23px;
  }

  .topbar p {
    max-width: 210px;
    font-size: 11px;
  }

  .topbar-actions {
    gap: 4px;
    padding-top: 18px;
  }

  .topbar-actions .primary {
    padding: 10px 12px;
  }

  .topbar-actions .secondary {
    padding: 10px;
  }

  .workbench {
    display: block;
    min-height: 65dvh;
  }

  .issue-column {
    border-right: 0;
  }

  .list-tools {
    padding: 20px 18px 14px;
  }

  .issue-list {
    max-height: none;
    min-height: 250px;
    padding: 8px;
  }

  .detail {
    display: none;
    padding: 22px 20px;
  }

  .workbench.has-selection .issue-column {
    display: none;
  }

  .workbench.has-selection .detail {
    display: block;
  }

  .back {
    display: inline-flex;
    font-size: 11px;
    padding: 6px 0;
    min-height: 26px;
  }

  .back svg {
    width: 15px;
    height: 15px;
  }

  .detail h2 {
    font-size: 21px;
  }

  .detail-head {
    margin-bottom: 16px;
  }

  .detail-head>.muted {
    margin-left: auto;
  }

  .footer span: last-child {
    display: none;
  }

  .dialog-inner {
    padding: 23px;
  }

  .field textarea {
    min-height: 140px;
  }

  .empty {
    min-height: 370px;
  }

  .note-form textarea {
    font-size: 14px;
  }

}

.video-preview {
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fafbf7;
  padding: 11px 13px;
}

.video-preview summary {
  font-size: 12px;
  cursor: pointer;
  color: var(--green);
}

.video-preview video {
  display: block;
  width: 100%;
  max-height: 420px;
  background: #142622;
  border-radius: 7px;
  margin-top: 12px;
}

.video-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 9px;
  line-height: 1.7;
}

.report-pending + .report {
  margin-top: 12px;
}

.field select {
  width: 100%;
  min-height: 44px;
  font: inherit;
}

select:focus-visible {
  outline: 3px solid #93b886;
  outline-offset: 3px;
}
