@charset "UTF-8";

:root {
  color-scheme: dark;
  --bg: #0c0c0d;
  --surface: #121214;
  --raised: #18181b;
  --hover: #202023;
  --line: #29292d;
  --line-strong: #414147;
  --text: #f1f1f3;
  --muted: #a1a1aa;
  --subtle: #777780;
  --danger: #ffb1b1;
  --success: #b4d9c4;
  --radius: 12px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6; }
#app, .shell { min-height: 100dvh; }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
a:hover { text-decoration-color: currentColor; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button { color: inherit; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(26px, 3.3vw, 36px); line-height: 1.2; letter-spacing: -1.25px; font-weight: 600; }
h2 { margin-bottom: 18px; font-size: 19px; line-height: 1.4; letter-spacing: -.4px; font-weight: 600; }
h3 { margin-bottom: 12px; font-size: 15px; font-weight: 600; }
p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }
small { font-size: 12px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
:focus-visible { outline: 2px solid #dedee5; outline-offset: 4px; }
::selection { background: #46464e; color: #fff; }
[hidden] { display: none !important; }

.topbar { min-height: 80px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 28px; padding: 18px max(28px, calc((100vw - 1180px) / 2)); background: var(--bg); }
.brand { flex-shrink: 0; font-size: 20px; font-weight: 650; letter-spacing: -.8px; text-decoration: none; }
.project-picker { width: 190px; max-width: 100%; }
.project-picker select { min-height: 38px; }
.nav { display: flex; align-items: center; gap: 5px; }
.nav-link { display: inline-flex; padding: 8px 11px; color: var(--muted); border-radius: 7px; font-size: 13px; text-decoration: none; white-space: nowrap; }
.nav-link:hover { background: var(--raised); color: var(--text); }
.nav-link.active, .nav-link[aria-current="page"] { background: var(--raised); color: var(--text); }
.user-menu { margin-left: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--muted); }
.container { width: min(1180px, calc(100% - 56px)); margin: 0 auto; padding: 52px 0 80px; }
.page-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 32px; }
.page-header > :first-child { min-width: 0; }
.page-header p { color: var(--muted); }
.eyebrow { color: var(--muted); margin-bottom: 12px; font-size: 10px; font-weight: 650; letter-spacing: 1.8px; text-transform: uppercase; }
.muted, .help { color: var(--muted); }
.help { margin-top: 7px; font-size: 12px; line-height: 1.6; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.row, .cluster, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cluster { gap: 8px; }
.split { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.panel, .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; min-width: 0; }
.grid { display: grid; gap: 24px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.auth-wrap { min-height: 100dvh; padding: 64px 24px; display: grid; place-items: center; }
.auth-card { width: 100%; max-width: 420px; padding: 36px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.auth-card .brand { display: inline-block; margin-bottom: 32px; }
.auth-card h1 { font-size: 27px; }
.auth-card form { display: flex; flex-direction: column; gap: 20px; }
.auth-card .button { width: 100%; }
.auth-card > .muted:last-child { margin-top: 24px; text-align: center; font-size: 13px; }

.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-label, .field > label { color: #d3d3d9; font-size: 12px; font-weight: 550; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { width: 100%; min-height: 42px; padding: 10px 12px; color: var(--text); background: #101012; border: 1px solid var(--line-strong); border-radius: 7px; line-height: 1.5; transition: border-color .15s ease, background-color .15s ease; }
input::placeholder, textarea::placeholder { color: var(--subtle); opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: #5b5b63; }
input:focus, select:focus, textarea:focus { border-color: #b7b7c1; }
textarea { min-height: 140px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { accent-color: #e4e4e7; width: 16px; height: 16px; margin: 0; flex-shrink: 0; }
input[type="file"] { font-size: 12px; }
input[type="file"]::file-selector-button { background: var(--raised); border: 1px solid var(--line-strong); border-radius: 4px; color: var(--text); padding: 5px 10px; margin-right: 12px; cursor: pointer; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 40px; padding: 9px 15px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--raised); color: var(--text); font-size: 13px; font-weight: 550; line-height: 1.5; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.button:hover { background: var(--hover); border-color: #606069; }
.button.primary { background: #ededf0; border-color: #ededf0; color: #151518; }
.button.primary:hover { background: #fff; border-color: #fff; }
.button.danger { color: var(--danger); background: #211719; border-color: #503337; }
.button.danger:hover { background: #302024; border-color: #865056; }
.button.small { min-height: 32px; padding: 5px 10px; font-size: 12px; }
.button.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.button.ghost:hover { background: var(--raised); color: var(--text); }
button:disabled, .button[aria-disabled="true"], input:disabled, select:disabled, textarea:disabled { opacity: .45; cursor: not-allowed; }
.actions { margin-top: 24px; }
.filters { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 24px; }
.filter-grid { display: grid; grid-template-columns: minmax(200px, 2fr) repeat(3, minmax(120px, 1fr)); gap: 16px; align-items: end; }
.check { display: inline-flex; gap: 9px; align-items: center; font-size: 13px; cursor: pointer; }
.notice { padding: 13px 16px; margin-bottom: 24px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--raised); font-size: 13px; overflow-wrap: anywhere; }
.notice.error { background: #211719; border-color: #503337; color: var(--danger); }
.notice.success { background: #16211b; border-color: #304c3d; color: var(--success); }
.empty, .loading { padding: 64px 24px; text-align: center; color: var(--muted); }
.empty h2 { color: var(--text); margin-bottom: 8px; }
.empty .button { margin-top: 20px; }

.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
th { padding: 13px 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .9px; text-transform: uppercase; white-space: nowrap; }
td { padding: 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #171719; }
td .muted { font-size: 12px; }
.bug-title { display: inline-block; font-weight: 550; text-decoration: none; overflow-wrap: anywhere; }
a.bug-title:hover { text-decoration: underline; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border: 1px solid var(--line-strong); border-radius: 5px; color: #cccbd2; background: #1c1c20; font-size: 10px; font-weight: 500; line-height: 1.5; white-space: nowrap; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; color: var(--muted); font-size: 12px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 28px; }
.metadata { display: grid; gap: 18px; font-size: 13px; }
.metadata dt { margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.metadata dd { margin: 0; overflow-wrap: anywhere; }
.prose { color: #d2d2d8; line-height: 1.85; overflow-wrap: anywhere; white-space: pre-wrap; }
.prose pre { max-width: 100%; overflow: auto; white-space: pre; background: var(--bg); padding: 16px; border-radius: 6px; }
.prose code { font-size: .9em; }
.prose img { height: auto; border-radius: 6px; }
.comment { padding: 24px 0; border-bottom: 1px solid var(--line); }
.comment:first-child { padding-top: 0; }
.comment:last-child { border-bottom: 0; padding-bottom: 0; }
.comment .prose { margin-top: 12px; font-size: 13px; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--raised); color: #d0d0d8; font-size: 11px; font-weight: 600; flex-shrink: 0; object-fit: cover; }
.history { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 12px; }
.history > * { padding: 13px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.history > :last-child { border-bottom: 0; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.media-card { overflow: hidden; min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.media-card img, .media-card video { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: #09090b; }
.media-card > a { display: block; }
.media-card > p, .media-card > .row, .media-card > .split { margin: 0; padding: 10px 12px; font-size: 12px; overflow-wrap: anywhere; }
.upload { padding: 20px; border: 1px dashed var(--line-strong); border-radius: 8px; background: var(--bg); }
.file-list { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.value-row, .member-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.value-row:last-child, .member-row:last-child { border-bottom: 0; }
.member-row > :first-child { min-width: 0; overflow-wrap: anywhere; }
.member-row .actions { margin-top: 0; }
.saved-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.saved-filter { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--muted); font-size: 12px; text-decoration: none; }
.saved-filter:hover, .saved-filter.active { color: var(--text); background: var(--raised); border-color: var(--line-strong); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (min-width: 1500px) { .topbar { gap: 36px; } }
@media (max-width: 1000px) {
  .topbar { flex-wrap: wrap; gap: 16px; padding: 18px 28px; }
  .nav { order: 4; width: 100%; gap: 8px; overflow-x: auto; }
  .detail-grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; }
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .container { width: calc(100% - 36px); padding: 32px 0 56px; }
  .topbar { gap: 12px; padding: 16px 18px 12px; }
  .brand { font-size: 19px; }
  .project-picker { width: 160px; }
  .user-menu { gap: 8px; font-size: 12px; }
  .nav { gap: 3px; }
  .nav-link { padding: 7px 9px; font-size: 12px; }
  .page-header { flex-direction: column; gap: 18px; margin-bottom: 24px; }
  .page-header .actions { margin-top: 0; }
  .two-col, .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .panel, .card { padding: 20px; }
  .stack, .grid, .two-col { gap: 20px; }
  .detail-grid { gap: 24px; }
  .filters { padding: 16px; }
  th { padding: 12px 14px; }
  td { padding: 16px 14px; }
  .table-wrap table { min-width: 600px; }
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value-row, .member-row { flex-wrap: wrap; }
}
@media (max-width: 440px) {
  .user-menu { width: 100%; margin-left: 0; justify-content: space-between; }
  .project-picker { margin-left: auto; }
  .filter-grid { grid-template-columns: minmax(0, 1fr); }
  .auth-wrap { padding: 24px 16px; }
  .auth-card { padding: 26px 22px; }
  .actions > .button { flex-grow: 1; }
  .media-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* App layout refinements. */
.skip-link { position: fixed; z-index: 100; top: -100px; left: 20px; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 6px; }
.skip-link:focus { top: 12px; }
#feedback.container { padding: 0; }
#feedback:not(:empty) { padding-top: 24px; }
#feedback .notice { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 0; }
.topbar > .nav { margin-left: auto; }
.topbar > .project-picker { width: 190px; }
.grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
a.card { display: block; text-decoration: none; transition: border-color .15s ease; }
a.card:hover { border-color: var(--line-strong); }
a.card h2 { margin: 12px 0; }
.auth-wrap { min-height: calc(100dvh - 240px); padding: 24px 0; }
.filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.filters, .saved-filters { display: block; margin-bottom: 0; }
details > summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 3px 0; }
details[open] > summary { margin-bottom: 22px; }
.saved-filter { display: flex; flex-direction: column; align-items: stretch; padding: 16px; }
.saved-filter .split { width: 100%; }
.saved-filter form { margin-top: 18px; }
.value-row { display: block; padding: 22px 0; }
.value-row > details { margin-top: 18px; }
.value-row .actions { margin-top: 0; }
.member-row form { display: flex; flex-direction: row; gap: 8px; align-items: center; }
.member-row form select { min-width: 110px; }
.comment, .comment:first-child, .comment:last-child { padding: 24px; border: 1px solid var(--line); }
.media-grid:empty { display: none; }
.media-grid:not(:empty) { margin-top: 24px; }
.media-card { margin: 0; }
.media-card figcaption, .media-card > span { display: block; padding: 12px; font-size: 12px; overflow-wrap: anywhere; }
.media-card .help { display: block; }
.file-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 0; }
.upload { margin-top: 24px; }
.prose { white-space: normal; }
.prose p, .prose blockquote { white-space: pre-wrap; }
.prose ul { padding-left: 24px; }
.prose h4, .prose h5 { font-size: 15px; }
.metadata { gap: 5px; margin-top: 28px; }
.metadata dd { margin-bottom: 15px; }
.notice .button { flex-shrink: 0; }
.bug-title { display: block; }
@media (min-width: 1001px) { .nav { max-width: 60%; } }
@media (max-width: 720px) {
  .table-wrap table { min-width: 0; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; }
  .table-wrap tr { padding: 16px; border-bottom: 1px solid var(--line); }
  .table-wrap tr:last-child { border-bottom: 0; }
  .table-wrap td { padding: 5px 0; border: 0; display: flex; justify-content: space-between; gap: 16px; }
  .table-wrap td:first-child { display: block; padding-bottom: 12px; }
  .table-wrap td:not(:first-child)::before { content: attr(data-label); color: var(--muted); font-size: 12px; }
  .auth-wrap { min-height: calc(100dvh - 220px); }
  .member-row .actions { width: 100%; justify-content: space-between; }
  .topbar > .nav { max-width: 100%; }
}
@media (max-width: 440px) { .filter-grid { grid-template-columns: minmax(0, 1fr); } }

#main:focus { outline: none; }

.filters, .saved-filters { align-self: start; }
