
:root {
  --brand-text: #c63f29; --brand: #f15b40; --brand-dark: #c63f29; --soft-brand: #fff0ec;
  --ink: #262424; --muted: #686463; --muted-light: #8d8885;
  --fendi: #b7a99a; --soft-fendi: #eee8e2;
  --canvas: #f3f2f1; --paper: #ffffff; --line: #dedbd8; --line-strong: #bdb8b4;
  --warning: #80500d; --warning-bg: #fff8e8; --ok: #2f6b3a; --ok-bg: #eaf5ec;
  --teams: #5b5fc7; --teams-dark: #4b4fb5;
  --shadow: 0 14px 38px rgb(38 36 36 / 8%);
  --radius: 12px; --radius-lg: 18px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand-text: #ff9c85; --ink: #f1eeec; --muted: #b9b3af; --muted-light: #8f8985;
    --canvas: #1b1a1a; --paper: #262424; --line: #3a3736; --line-strong: #514d4b;
    --soft-brand: #3a2520; --soft-fendi: #322e2b; --warning: #f0c070; --warning-bg: #3a3020;
    --ok: #8fd19b; --ok-bg: #213326; --shadow: 0 14px 38px rgb(0 0 0 / 35%);
  }
}
:root[data-theme="dark"] {
  --brand-text: #ff9c85; --ink: #f1eeec; --muted: #b9b3af; --muted-light: #8f8985;
  --canvas: #1b1a1a; --paper: #262424; --line: #3a3736; --line-strong: #514d4b;
  --soft-brand: #3a2520; --soft-fendi: #322e2b; --warning: #f0c070; --warning-bg: #3a3020;
  --ok: #8fd19b; --ok-bg: #213326; --shadow: 0 14px 38px rgb(0 0 0 / 35%);
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); background: var(--canvas);
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-synthesis: none;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 32px; background: var(--paper); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 30px; height: 30px; border: 3px solid var(--ink); }
.brand-name { letter-spacing: .32em; font-weight: 600; font-size: 13px; line-height: 1.15; }
.brand-sep { width: 1px; height: 28px; background: var(--line-strong); }
.brand-app { font-size: 15px; color: var(--muted); }
.freshness { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3aa856; }
.mock-tag {
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--warning); background: var(--warning-bg); padding: 4px 8px; border-radius: 6px;
}

.hero { max-width: 1240px; margin: 0 auto; padding: 36px 32px 8px; }
.hero h1 { margin: 0 0 6px; font-size: 30px; font-weight: 600; letter-spacing: -.01em; }
.hero h1 span { color: var(--brand); }
.hero p { margin: 0; color: var(--muted); max-width: 680px; line-height: 1.5; }

.search {
  margin-top: 22px; display: flex; align-items: center; gap: 12px;
  background: var(--paper); border: 1.5px solid var(--line-strong); border-radius: var(--radius-lg);
  padding: 6px 8px 6px 18px; box-shadow: var(--shadow);
}
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgb(241 91 64 / 16%), var(--shadow); }
.search svg { flex: none; color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 18px; padding: 12px 0; }
.search .clear { border: 0; background: transparent; color: var(--muted); padding: 8px 12px; border-radius: 8px; }
.search .clear:hover { background: var(--soft-fendi); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.chip {
  border: 1px solid var(--line-strong); background: var(--paper); border-radius: 999px;
  padding: 6px 12px; font-size: 13px; color: var(--muted);
}
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.count { font-size: 13px; color: var(--muted); margin-left: auto; }

.layout {
  max-width: 1240px; margin: 0 auto; padding: 18px 32px 48px;
  display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start;
}
.list { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center;
  width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; padding: 14px 18px;
}
.row:hover { background: var(--soft-fendi); }
.row[aria-selected="true"] { background: var(--soft-brand); box-shadow: inset 3px 0 0 var(--brand); }
.row-name { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-meta b { font-weight: 500; color: var(--muted-light); }
.who { display: flex; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap; }
.who.none { color: var(--muted-light); font-style: italic; }
.avatar {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 600; color: #fff;
}
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; margin-left: 8px; vertical-align: 2px; }
.badge.ativo { color: var(--ok); background: var(--ok-bg); }
.more { width: 100%; border: 0; background: transparent; padding: 14px; color: var(--brand-text); font-weight: 600; }
.empty { padding: 40px 24px; text-align: center; color: var(--muted); line-height: 1.5; }

.detail {
  position: sticky; top: 16px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden;
}
.detail-head { padding: 22px 22px 16px; border-bottom: 1px solid var(--line); }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-light); }
.detail-head h2 { margin: 6px 0 4px; font-size: 19px; line-height: 1.3; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; margin-top: 12px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.resp { padding: 20px 22px 22px; }
.resp-card { display: flex; align-items: center; gap: 14px; margin: 12px 0 18px; }
.resp-card .avatar { width: 52px; height: 52px; font-size: 18px; }
.resp-name { font-size: 17px; font-weight: 600; }
.resp-role { font-size: 13px; color: var(--muted); margin-top: 2px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  border-radius: 10px; padding: 12px 14px; font-weight: 600; text-decoration: none; border: 0;
}
.btn-teams { background: var(--teams); color: #fff; }
.btn-teams:hover { background: var(--teams-dark); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); margin-top: 8px; }
.btn-ghost:hover { background: var(--soft-fendi); }
.note { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin-top: 14px; }
.warn { background: var(--warning-bg); color: var(--warning); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; line-height: 1.45; margin-top: 12px; }
.placeholder { padding: 40px 26px; text-align: center; color: var(--muted); line-height: 1.55; }
.placeholder svg { color: var(--fendi); margin-bottom: 8px; }

.team { margin-top: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px; }
.team h3 { margin: 0 0 10px; font-size: 13px; color: var(--muted); font-weight: 600; }
.team-list { display: flex; flex-direction: column; gap: 2px; }
.team-item { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 7px 6px; border-radius: 8px; text-align: left; font-size: 13.5px; }
.team-item:hover { background: var(--soft-fendi); }
.team-item[aria-pressed="true"] { background: var(--soft-brand); }
.team-item .avatar { width: 26px; height: 26px; font-size: 11px; }
.team-item span.n { margin-left: auto; color: var(--muted-light); font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .topbar { padding: 12px 16px; }
  .brand-app, .brand-sep { display: none; }
  .hero { padding: 24px 16px 4px; }
  .hero h1 { font-size: 24px; }
  .layout { grid-template-columns: 1fr; padding: 14px 16px 40px; }
  .detail { position: static; }
  .who .who-name { display: none; }
  .freshness span.long { display: none; }
}

[hidden]{display:none!important} :focus-visible{outline:3px solid var(--brand);outline-offset:3px}.row-name{white-space:normal}.pagination{display:flex;align-items:center;justify-content:center;padding:8px}.pagination span{white-space:nowrap;font-size:12px;color:var(--muted)}.dot.stale{background:#b66a19}.freshness{flex-wrap:wrap}#error{max-width:1176px;margin:16px auto;padding:16px;background:var(--warning-bg);color:var(--warning);border-radius:12px}.login-card{max-width:430px;margin:12vh auto;padding:40px;background:var(--paper);border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow)}.login-card h1{font-size:56px;letter-spacing:-3px;margin:18px 0}.login-card h1 span{color:var(--brand)}.login-card p{line-height:1.6;color:var(--muted)}.login-card .btn{margin-top:30px}#logout{font-size:12px}@media(max-width:600px){.login-card{margin:10vh 16px;padding:28px}#user-name{font-size:10px}}
