:root { --blue: #3858e9; --blue-dark: #2145e6; --ink: #1e1e1e; --muted: #50575e; --line: #dcdcde; --line-strong: #c3c4c7; --canvas: #f0f0f1; --success: #4d755a; --bar: 56px; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 13px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; }
a { color: var(--blue); }

.bar { height: var(--bar); display: flex; align-items: center; gap: 16px; padding: 0 20px; border-bottom: 1px solid var(--line); background: #fff; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; }
.tagline { margin: 0; color: var(--muted); }
.bar nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.bar nav a { font-weight: 500; text-decoration: none; }
.bar nav a:hover { text-decoration: underline; }
.bar .button { padding: 7px 14px; border-radius: 4px; background: var(--blue); color: #fff; }
.bar .button:hover { background: var(--blue-dark); text-decoration: none; }

.demo { display: grid; grid-template-columns: 320px minmax(0, 1fr); height: calc(100vh - var(--bar)); height: calc(100dvh - var(--bar)); }
.examples { padding: 24px 12px 20px; border-right: 1px solid var(--line); background: #fff; overflow-y: auto; }
.examples h2 { margin: 0 8px; font-size: 15px; font-weight: 600; }
.status { margin: 2px 8px 12px; color: var(--muted); }
.examples ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.example { width: 100%; display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 8px; border: 0; border-radius: 6px; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.example:hover:not(:disabled) { background: #f6f7f7; }
.example:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.example:disabled { cursor: default; opacity: .55; }
.name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.kind { grid-column: 2; color: var(--muted); font-size: 12px; }
.example[data-state="sent"] .kind { color: var(--success); }
.note { margin: 16px 8px 0; color: var(--muted); }

/* A small version of the document sheets on Collage's dropzone. */
.sheet { grid-row: span 2; position: relative; width: 38px; height: 46px; border: 1px solid var(--line-strong); border-radius: 4px; background: #fff; box-shadow: 0 1px 2px #0000000f; }
.sheet::before { content: ""; position: absolute; inset: 7px 7px auto; height: 10px; background: linear-gradient(var(--line-strong) 0 0) 0 0 / 60% 2px no-repeat, linear-gradient(#e2e4e7 0 0) 0 4px / 100% 2px no-repeat, linear-gradient(#e2e4e7 0 0) 0 8px / 80% 2px no-repeat; }
.sheet b { position: absolute; left: 50%; bottom: 5px; padding: 1px 3px; border-radius: 2px; background: #f0f0f1; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .02em; line-height: 1.2; transform: translateX(-50%); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

#playground { display: block; width: 100%; height: 100%; border: 0; background: var(--canvas); }

@media (max-width: 800px) {
    .bar { gap: 12px; padding: 0 16px; }
    .tagline { display: none; }
    .bar nav { gap: 16px; }
    .demo { display: block; height: auto; }
    .examples { padding: 16px 0 12px; border-right: 0; border-bottom: 1px solid var(--line); }
    .examples h2 { margin: 0 16px; }
    .status { margin: 2px 16px 8px; }
    .examples ul { display: flex; gap: 4px; padding: 0 8px; overflow-x: auto; }
    .examples li { flex: 0 0 auto; }
    .example { padding-right: 16px; }
    .note { margin: 8px 16px 0; }
    #playground { height: 85vh; height: 85dvh; }
}
