:root {
    color-scheme: dark;
    --bg: #101712;
    --panel: #18221b;
    --field: #111a14;
    --text: #f2f4ea;
    --muted: #b2c0b0;
    --line: #35473a;
    --gold: #e6bd75;
    --gold-bright: #f4d399;
    --radius: 16px;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
a { color: var(--gold-bright); }
a, button, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
h1, h2, p { margin-top: 0; }
h1 { line-height: 1.08; letter-spacing: -.045em; margin-bottom: .42em; }
h2 { font-size: 1.25rem; line-height: 1.23; margin-bottom: 1.1rem; }
.wrap { width: min(1170px, calc(100% - 48px)); margin-inline: auto; }
.shell { background: #111a14; border-bottom: 1px solid var(--line); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; line-height: 1.18; }
.brand strong { display: block; font-size: 1.08rem; letter-spacing: .07em; }
.brand strong em { color: var(--gold); font-style: normal; }
.brand small { display: block; margin-top: 3px; font-size: .82rem; color: var(--muted); }
.brand-icon { display: grid; place-items: center; border: 1px solid #806f48; border-radius: 9px; width: 40px; height: 40px; color: var(--gold); font: 700 1.5rem Georgia, serif; background: #27271b; }
.header-link, .minor-link { color: var(--gold-bright); font-weight: 650; text-underline-offset: 4px; font-size: .91rem; }
.header-link { color: var(--muted); }
.header-link:hover { color: var(--text); }
.public-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(25px, 6vw, 80px); align-items: start; padding-block: clamp(34px, 7vw, 82px); }
.intro { padding-top: 27px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--gold); margin-bottom: 13px; font-weight: 680; font-size: .9rem; }
.eyebrow span { width: 13px; height: 1px; background: currentColor; }
.intro h1 { font: 700 clamp(2.4rem, 5.35vw, 4.75rem)/1.025 Georgia, serif; letter-spacing: -.058em; margin-bottom: 20px; }
.intro h1 em { color: var(--gold-bright); font-style: normal; }
.intro > p:not(.eyebrow) { max-width: 35ch; font-size: 1.13rem; color: var(--muted); margin-bottom: 28px; }
.intro-note { max-width: 36ch; display: grid; gap: 5px; border-left: 2px solid #92764c; padding-left: 15px; }
.intro-note span { color: var(--muted); font-size: .94rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(17px, 3vw, 30px); }
.narrow { max-width: 610px; margin: clamp(28px, 6vw, 75px) auto; }
.narrow h1 { font-size: clamp(1.85rem, 5vw, 2.7rem); }
.manual h1 { margin-top: 15px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.full { grid-column: 1 / -1; }
.stack { display: grid; gap: 14px; }
label { display: block; min-width: 0; font-weight: 650; font-size: .92rem; }
input, select, textarea, button { font: inherit; }
input, select, textarea { color: var(--text); background-color: var(--field); display: block; border: 1px solid #405344; border-radius: 8px; min-height: 44px; padding: 9px 11px; margin-top: 5px; width: 100%; font-size: 1rem; font-weight: 400; }
select { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, #acbdab 50%), linear-gradient(135deg, #acbdab 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
input::placeholder, textarea::placeholder { color: #a0afa0; opacity: 1; }
textarea { resize: vertical; }
.hint, .optional { color: var(--muted); font-size: .88rem; font-weight: 400; }
label .hint { display: block; margin-top: 2px; }
.optional { margin-left: 3px; }
.privacy { margin: 14px 0; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 43px; padding: 8px 15px; border-radius: 8px; border: 1px solid transparent; text-decoration: none; font-size: .92rem; font-weight: 750; cursor: pointer; }
.primary { color: #211908; background: var(--gold); }
.primary:hover { background: var(--gold-bright); }
.secondary { color: var(--text); background: #1b281f; border-color: #495c4b; }
.secondary:hover { background: #283a2d; }
.stack .primary, .form-end .primary { justify-self: start; }
.form-end { margin-top: 14px; }
.notice { padding: 12px 14px; border: 1px solid #607f56; background: #223420; color: #e2f0d7; border-radius: 8px; margin-bottom: 16px; }
.notice.error { border-color: #a9705c; background: #392821; color: #ffded2; }
.dashboard { padding-block: 32px 42px; }
.dash-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.dash-head h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin-bottom: 0; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.actions form { margin: 0; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-bottom: 20px; }
.metric { background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; display: grid; color: var(--muted); font-size: .89rem; align-content: start; }
.metric strong { font-size: 1.7rem; line-height: 1.15; color: var(--gold-bright); }
.areas { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 17px 0; }
.areas h2 { margin: 0 5px 0 0; font-size: 1rem; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #465c49; padding: 3px 9px; border-radius: 99px; background: #202e23; color: #dbe8d8; font-size: .83rem; line-height: 1.35; }
a.chip { text-decoration: none; min-height: 32px; }
a.chip:hover { border-color: var(--gold); }
.chip strong { color: var(--gold-bright); }
.status-novo { color: #f9d699; background: #322b1b; border-color: #6b5833; }
.status-resolvido { color: #d1efc3; background: #253926; border-color: #567851; }
.status-arquivado { background: #252a27; }
.filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 11px; padding: 15px; margin-bottom: 22px; }
.search { grid-column: span 3; }
.filters .actions { align-self: end; grid-column: span 2; }
.result-title { margin-bottom: 10px; }
.empty { color: var(--muted); }
.entry { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 9px; overflow-wrap: anywhere; }
.entry summary { list-style: none; cursor: pointer; display: flex; gap: 11px; justify-content: space-between; align-items: center; padding: 13px 15px; }
.entry summary::-webkit-details-marker { display: none; }
.entry summary::before { content: '+'; color: var(--gold); font-weight: bold; width: 12px; flex: 0 0 12px; }
.entry[open] summary::before { content: '−'; }
.entry summary:focus-visible { outline-offset: -3px; border-radius: 10px; }
.entry[open] summary { border-bottom: 1px solid var(--line); }
.entry-main { flex: 1; min-width: 0; }
.entry-main small { display: block; color: var(--muted); font-size: .83rem; margin-top: 3px; }
.entry-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.entry-body { padding: 15px; }
.feedback-body { white-space: pre-wrap; margin-bottom: 8px; }
.entry-form { max-width: 680px; }
.pagination { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 20px; color: var(--muted); }
.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; padding-block: 18px; }
.footer span { color: var(--gold); padding-inline: 3px; }
@media (max-width: 800px) {
    .public-grid { grid-template-columns: 1fr; }
    .intro { padding-top: 0; }
    .intro > p:not(.eyebrow) { margin-bottom: 15px; }
    .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .filters .actions { grid-column: auto; }
}
@media (max-width: 520px) {
    .wrap { width: calc(100% - 28px); }
    .fields { grid-template-columns: 1fr; gap: 12px; }
    .public-grid { padding-block: 24px; }
    .metrics, .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .search, .filters .actions { grid-column: 1 / -1; }
    .entry summary { flex-wrap: wrap; }
    .entry-tags { flex-basis: 100%; padding-left: 23px; }
}
