/* Balanced tokens and components from the Slate design system (.agents/skills/slate-design-system/references).
   Copied rather than imported because the share portal ships only its own sources and its CSP forbids inline styles.
   The portal has no theme control, so dark follows the system setting. */
@font-face { font-family: "Overpass"; src: url("/fonts/overpass-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  color-scheme: light dark;
  --balanced-ground: #e8eaed; --balanced-chrome: #f5f6f8; --balanced-paper: #ffffff; --balanced-inset: #eef1f5;
  --balanced-ink: #19212c; --balanced-muted: #5e6877; --balanced-blue: #084d94; --balanced-selected: #dce8f6; --balanced-warning: #925000;
  --font-sans: Overpass, system-ui, sans-serif;
  --space-1: 8px; --space-2: 12px; --space-3: 18px; --space-4: 24px;
  --frame-gap: 10px; --sheet-padding: 26px;
  --radius-sheet: 12px; --radius-control: 8px; --radius-row: 7px;
  --shadow-header: 0 2px 3px #182d461b; --shadow-paper: 0 3px 5px #182d461b;
  --control-height: 44px; --header-height: 56px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --balanced-ground: #171b22; --balanced-chrome: #21262e; --balanced-paper: #282d35; --balanced-inset: #20252d;
    --balanced-ink: #eef0f4; --balanced-muted: #b1b9c7; --balanced-blue: #96caff; --balanced-selected: #263e57; --balanced-warning: #e9bc6a;
  }
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; padding: var(--frame-gap); display: grid; gap: var(--frame-gap); justify-content: center; grid-template-columns: minmax(0, 1080px); min-height: 100vh; min-height: 100dvh; align-content: start; background: var(--balanced-ground); color: var(--balanced-ink); font: 14px/1.5 var(--font-sans); -webkit-font-smoothing: antialiased; }
h1, h2, p { margin: 0; }
a { color: var(--balanced-blue); text-decoration: none; }
:focus-visible { outline: 2px solid var(--balanced-blue); outline-offset: 3px; }

header { display: flex; align-items: center; gap: 16px; min-height: var(--header-height); padding: 0 8px 0 20px; border-radius: var(--radius-sheet); background: var(--balanced-chrome); box-shadow: var(--shadow-header); }
header form { margin: 0; margin-left: auto; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: var(--control-height); border-radius: var(--radius-row); color: var(--balanced-muted); font-size: 13px; }
.brand img { display: block; width: auto; height: 12px; }

main { min-width: 0; padding: var(--sheet-padding); border-radius: var(--radius-sheet); background: var(--balanced-paper); box-shadow: var(--shadow-paper); overflow-wrap: anywhere; }
h1 { font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -.025em; }
h2 { font-size: 15px; line-height: 1.5; font-weight: 600; }
.meta { margin-top: 5px; color: var(--balanced-muted); font-size: 13px; }
.description { max-width: 720px; margin-top: var(--space-3); white-space: pre-wrap; }

.callout { margin-top: var(--space-4); padding: var(--space-3); border-radius: var(--radius-control); background: var(--balanced-inset); }
.callout h2 { display: flex; align-items: center; gap: 10px; }
.callout svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--balanced-warning); }
.callout p { margin-top: var(--space-1); font-size: 13px; white-space: pre-wrap; }

.file-list { display: grid; margin-top: var(--space-2); }
.file { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; }
.file + .file { border-top: 1px solid var(--balanced-inset); }
.file > div:first-child { min-width: 0; }
.file h2 { font-size: 14px; font-weight: 500; }
.file p { color: var(--balanced-muted); font-size: 13px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1); flex-shrink: 0; }

.balanced-button { display: inline-flex; justify-content: center; align-items: center; gap: var(--space-1); min-height: var(--control-height); padding: 9px 13px; border: 0; border-radius: var(--radius-control); background: transparent; color: var(--balanced-blue); font: inherit; font-size: 13px; cursor: pointer; }
.balanced-button:hover { background: var(--balanced-selected); }

.status { display: inline-flex; align-items: center; gap: var(--space-1); min-height: var(--control-height); font-size: 13px; color: var(--balanced-ink); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--balanced-muted); flex-shrink: 0; }

.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 (max-width: 767px) { body { padding: 8px; gap: 8px; } }
@media (max-width: 600px) {
  header { padding-left: 16px; }
  main { padding: 20px 16px; }
  .file { flex-direction: column; align-items: stretch; gap: 4px; }
  /* Stacked actions line up their labels with the file name by cancelling the first button's inner padding. */
  .actions { margin-left: -13px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; } }
