:root {
  color-scheme: light;
  --ink: #1a2924;
  --muted: #4b5e55;
  --paper: #f2f4f1;
  --surface: #fff;
  --fill: #e8ede8;
  --line: #d5ded6;
  --field: #788f82;
  --accent: #00634f;
  --accent-hover: #004c3c;
  --masthead: #112723;
  --danger: #9b2628;
  --radius-control: 10px;
  --radius-surface: 16px;
  font: 100%/1.5 system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
[hidden] { display: none !important; }
::selection { background: #c7eadb; color: var(--ink); }
a { color: var(--accent); text-underline-offset: .2em; overflow-wrap: anywhere; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { width: min(calc(100% - 64px), 1120px); margin-inline: auto; }
.top { color: var(--surface); background: var(--masthead); }
.nav, .nav nav { display: flex; align-items: center; gap: 12px; }
.nav { justify-content: space-between; min-height: 64px; }
.nav a, .quiet { display: inline-flex; align-items: center; min-height: 44px; color: var(--surface); font-size: .875rem; }
.brand { gap: 12px; text-decoration: none; }
.brand img { display: block; width: 116px; height: auto; }
.brand span { color: #d4e6de; border-left: 1px solid #688179; padding-left: 12px; }
.top :focus-visible { outline-color: #b7e7cf; }
.team { white-space: nowrap; }
.quiet { padding: 0 8px; background: transparent; border: 0; text-decoration: underline; text-underline-offset: .2em; }

.intro h1, .panel h1, .message h1 {
  margin: 0; font-size: 2rem; font-weight: 600; line-height: 1.1875;
  letter-spacing: -.02em; text-wrap: balance;
}
.intro p, .panel-head p, .message p { margin: 8px 0 0; color: var(--muted); }
.intro p { max-width: 36ch; }
.form-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px; align-items: start; padding-block: 48px; }
.form-layout .intro { padding-top: 24px; }
.form-layout .intro h1 { max-width: 14ch; }
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-surface); }
.form, .message { padding: 24px; }
label { display: block; font-size: .875rem; font-weight: 600; line-height: 20px; }
.form > label:not(:first-of-type) { margin-top: 24px; }
input:not([type=file]), textarea, select {
  display: block; width: 100%; min-width: 0; min-height: 44px; margin-top: 8px; padding: 8px 12px;
  color: var(--ink); background: var(--surface); border: 1px solid var(--field);
  border-radius: var(--radius-control); font-size: 1rem; font-weight: 400; line-height: 24px;
  caret-color: var(--accent);
}
input::placeholder, textarea::placeholder { color: #54675d; opacity: 1; }
input:not([type=file]):focus, textarea:focus, select:focus {
  outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px #00634f33;
}
textarea { resize: vertical; }
.hint, .optional, .upload label span { color: var(--muted); font-size: .8125rem; font-weight: 400; line-height: 18px; }
.hint { margin: 8px 0 0; }
.optional, .upload label span { margin-left: 4px; }
.upload { margin-block: 24px 32px; padding-block: 16px; border-block: 1px solid var(--line); }
.upload-ready { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; }
.upload-ready:has(.upload-preview:not([hidden])) { grid-template-columns: 56px minmax(0, 1fr) auto; }
.upload-ready input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
input[type=file] { display: block; max-width: 100%; margin-top: 8px; font-size: .875rem; }
input::file-selector-button { min-height: 44px; margin-right: 8px; padding-inline: 12px; border: 0; border-radius: var(--radius-control); color: var(--ink); background: var(--fill); font: inherit; cursor: pointer; }
.upload-preview { width: 56px; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-control); background: var(--fill); }
.upload-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.upload-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.upload-ready:has(input:focus-visible) .pick-file { outline: 2px solid var(--accent); outline-offset: 2px; }
.file-status { margin: 8px 0 0; color: var(--muted); font-size: .8125rem; line-height: 18px; overflow-wrap: anywhere; }
.file-status:empty { display: none; }

.primary, .secondary, .danger, .destructive {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 8px 20px; border: 0; border-radius: var(--radius-control); font-size: 1rem;
  line-height: 24px; font-weight: 600; text-decoration: none; text-align: center;
}
.primary { color: var(--surface); background: var(--accent); }
.primary:hover { background: var(--accent-hover); }
.primary:active { background: #003a30; }
.secondary { color: var(--ink); background: var(--fill); }
.secondary:hover { background: #dce5dd; }
.secondary:active { background: #d0ded3; }
.pick-file { cursor: pointer; }
.remove-file { background: transparent; }
.danger { color: var(--surface); background: var(--danger); }
.danger:hover { background: #811d20; }
.danger:active { background: #6c1719; }
.destructive { color: var(--danger); background: #9b262814; }
.destructive:hover { background: #9b26281f; }
.destructive:active { background: #9b26282b; }
button:disabled { background: var(--fill); color: var(--muted); cursor: not-allowed; }
.narrow { max-width: 544px; padding-block: 48px; }
.narrow .form, .narrow .form > button, .message > a { margin-top: 24px; }
.error { color: #872424; background: #fff2f0; border: 1px solid #dba29b; border-radius: var(--radius-control); padding: 8px 12px; }
.form .error { margin: 0 0 24px; }
.support-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 24px; color: var(--muted); font-size: .875rem; }
.support-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

.panel { padding-block: 32px 48px; }
.panel-head { display: flex; gap: 16px; align-items: start; justify-content: space-between; margin-bottom: 24px; }
.panel-head p { max-width: 52ch; }
.filters { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.filters a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border-bottom: 2px solid transparent; color: var(--muted); font-size: .875rem; text-decoration: none; }
.filters a span { font-size: .8125rem; font-variant-numeric: tabular-nums; }
.filters a[aria-current], .filters a:hover { color: var(--accent); border-color: var(--accent); }
.filters a[aria-current] { font-weight: 600; }
.workspace { display: grid; grid-template-columns: minmax(240px, .82fr) minmax(0, 2fr); }
.report-queue { min-width: 0; border-inline-end: 1px solid var(--line); }
.report-queue ul { list-style: none; margin: 0; padding: 0; }
.report-queue li + li { border-top: 1px solid var(--line); }
.report-queue a { display: block; padding: 16px; color: var(--ink); text-decoration: none; }
.report-queue a:hover { background: var(--fill); }
.report-queue a[aria-current] { color: var(--accent); background: #edf5ef; }
.report-queue :focus-visible { outline-offset: -4px; }
.report-queue .next { color: var(--accent); font-size: .875rem; }
.queue-title, .queue-copy { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue-title, .site-address, .protocol { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.queue-title, .queue-copy, .queue-meta, .meta { font-size: .8125rem; line-height: 18px; }
.queue-copy, .queue-meta, .meta { color: var(--muted); }
.queue-copy { margin-top: 4px; }
.queue-meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.workspace .report, .empty { min-width: 0; padding: 24px; }
.empty p { margin: 0 0 8px; }
.report-head { display: flex; align-items: start; justify-content: space-between; gap: 8px 16px; }
.report h2 { margin: 0; font-size: 1.25rem; font-weight: 600; line-height: 26px; overflow-wrap: anywhere; }
.meta { margin: 8px 0 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.status { display: inline-flex; flex: none; align-items: center; gap: 8px; color: var(--ink); font-size: .8125rem; font-weight: 400; line-height: 18px; }
.status::before { content: ""; inline-size: 8px; block-size: 8px; border-radius: 50%; background: currentColor; }
.status.em-andamento { color: #765219; }
.status.resolvido { color: #155839; }
.description { max-width: 72ch; margin: 24px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.contact-line { margin: 16px 0; color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }
.contact-line strong { margin-right: 4px; font-weight: 600; }
.contact-line span { display: inline-block; margin-left: 8px; color: var(--accent); }
.contact-line .mail-failed { color: var(--danger); }
.saved { margin: 8px 0; color: var(--accent); font-size: .875rem; }
.panel-feedback { margin-bottom: 16px; }
summary { display: list-item; width: fit-content; min-height: 44px; padding-block: 12px; color: var(--accent); font-size: .875rem; cursor: pointer; }
summary:hover { text-decoration: underline; text-underline-offset: .2em; }
.attachment { margin: 16px 0; }
.attachment img { display: block; width: auto; height: auto; max-width: 100%; max-height: 544px; margin-top: 8px; border-radius: var(--radius-control); }
.case-actions { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.case-commands { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.case-commands form { margin-inline-start: auto; }
.edit { display: grid; grid-template-columns: minmax(144px, auto) minmax(0, 1fr); align-items: end; gap: 12px; padding-block: 8px; }
.edit button { justify-self: start; }
.confirm-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.message .delete-site { color: var(--ink); overflow-wrap: anywhere; }
.message .error { padding: 8px 12px; }
.back-to-queue { display: none; }

@media (max-width: 767px) {
  .wrap { width: calc(100% - 40px); }
  .form-layout { grid-template-columns: 1fr; gap: 32px; padding-block: 32px; }
  .form-layout .intro { padding-top: 0; }
  .intro h1, .panel h1, .message h1 { font-size: 1.75rem; line-height: 34px; }
  .form-layout .intro h1 { max-width: none; }
  .report-form { padding: 0; border: 0; background: transparent; }
  .report-form > .primary { width: 100%; min-height: 48px; }
  .upload-ready, .upload-ready:has(.upload-preview:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
  .upload-ready:has(.upload-preview:not([hidden])) { grid-template-columns: 56px minmax(0, 1fr); }
  .upload-controls { grid-column: 1 / -1; }
  .panel-head { flex-wrap: wrap; }
  .filters { margin-bottom: 16px; }
  .filters a { padding-inline: 8px; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .workspace .report { display: none; padding: 16px; }
  .report-queue { border: 0; }
  .detail-open .workspace .report { display: block; }
  .detail-open .report-queue, .detail-open .filters, .detail-open .panel-head { display: none; }
  .back-to-queue { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 12px; font-size: .875rem; }
  .report-head, .edit { display: flex; flex-direction: column; align-items: stretch; }
  .edit button { align-self: start; }
}
@media (max-width: 420px) {
  .brand { gap: 8px; }
  .brand img { width: 92px; }
  .brand span { padding-left: 8px; font-size: .8125rem; }
  .nav .team { font-size: .8125rem; }
}
