Files
byre/web/style.css
T

948 lines
14 KiB
CSS

@font-face {
font-family: "Atkinson Hyperlegible Mono";
font-style: normal;
font-display: swap;
font-weight: 200 800;
src: url(/fonts/atkinson-hyperlegible-mono-latin-wght-normal.woff2) format("woff2-variations");
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: "Atkinson Hyperlegible Mono";
font-style: normal;
font-display: swap;
font-weight: 200 800;
src: url(/fonts/atkinson-hyperlegible-mono-latin-ext-wght-normal.woff2) format("woff2-variations");
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
font-family: "Atkinson Hyperlegible Mono";
font-style: italic;
font-display: swap;
font-weight: 200 800;
src: url(/fonts/atkinson-hyperlegible-mono-latin-wght-italic.woff2) format("woff2-variations");
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: "Atkinson Hyperlegible Mono";
font-style: italic;
font-display: swap;
font-weight: 200 800;
src: url(/fonts/atkinson-hyperlegible-mono-latin-ext-wght-italic.woff2) format("woff2-variations");
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
color-scheme: light dark;
--bg: #fbfbfa;
--surface: #f2f3f5;
--raised: #ffffff;
--border: #d6d9de;
--text: #16181b;
--muted: #4a5260;
--accent: #1a45bd;
--accent-tint: #e7edfb;
--danger: #b42318;
--danger-tint: #fdecea;
--warn: #855600;
--warn-tint: #fdf3dc;
--ok: #1a7f37;
--shadow: 0 8px 28px rgb(16 24 40 / 0.18);
--font: "Atkinson Hyperlegible Mono", ui-monospace, Menlo, monospace;
font: 14px/1.55 var(--font);
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #15171a;
--surface: #1c1f23;
--raised: #23272c;
--border: #353b43;
--text: #eceff3;
--muted: #a9b1bc;
--accent: #8ab4ff;
--accent-tint: #1e2a40;
--danger: #ff9488;
--danger-tint: #3a1f1d;
--warn: #f2c66d;
--warn-tint: #352a14;
--ok: #7fd88f;
--shadow: 0 8px 28px rgb(0 0 0 / 0.5);
}
}
* {
box-sizing: border-box;
}
html,
body {
height: 100%;
margin: 0;
background: var(--bg);
color: var(--text);
}
body {
display: flex;
flex-direction: column;
}
a {
color: var(--accent);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
code,
pre,
input,
textarea,
select,
button {
font-family: var(--font);
font-size: inherit;
}
pre {
margin: 0;
white-space: pre-wrap;
word-break: break-word;
}
:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
button {
padding: 4px 12px;
border: 1px solid var(--border);
border-radius: 6px;
background: var(--raised);
color: var(--text);
cursor: pointer;
}
button:hover:not(:disabled) {
border-color: var(--muted);
}
button:disabled {
opacity: 0.45;
cursor: default;
}
button.primary {
background: var(--accent);
border-color: var(--accent);
color: var(--bg);
font-weight: 700;
}
button.danger {
color: var(--danger);
}
input,
textarea,
select {
color: var(--text);
background: var(--raised);
border: 1px solid var(--border);
border-radius: 6px;
padding: 6px 10px;
width: 100%;
}
input:focus,
textarea:focus,
select:focus {
border-color: var(--accent);
outline: none;
}
textarea {
resize: vertical;
}
.navbar {
display: flex;
align-items: center;
gap: 14px;
padding: 8px 16px;
background: var(--surface);
border-bottom: 1px solid var(--border);
}
.brand {
font-weight: 800;
font-size: 15px;
color: var(--text);
}
.brand:hover {
text-decoration: none;
}
.crumb {
border-color: transparent;
background: transparent;
max-width: 50%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.crumb:hover:not(:disabled) {
background: var(--raised);
border-color: var(--border);
}
.spacer {
flex: 1;
}
.inbox-count {
background: transparent;
}
.inbox-count.urgent {
background: var(--danger-tint);
border-color: transparent;
color: var(--danger);
font-weight: 700;
}
.connection {
width: 8px;
height: 8px;
border-radius: 50%;
}
.connection.up {
background: var(--ok);
}
.connection.down {
background: var(--danger);
}
.me {
color: var(--muted);
}
.banner {
padding: 8px 16px;
background: var(--accent-tint);
border-bottom: 1px solid var(--border);
}
.banner input {
width: auto;
margin: 0 4px;
}
.panes {
flex: 1;
display: grid;
grid-template-columns: 1fr 1fr;
min-height: 0;
}
.pane {
display: flex;
flex-direction: column;
min-width: 0;
min-height: 0;
}
.pane + .pane {
border-left: 1px solid var(--border);
}
.pane-tabs {
display: flex;
gap: 4px;
padding: 0 12px;
border-bottom: 1px solid var(--border);
}
.pane-tabs button,
.scope-tabs button,
.modes button {
border: none;
border-radius: 0;
background: transparent;
color: var(--muted);
border-bottom: 2px solid transparent;
}
.pane-tabs button {
padding: 8px 10px 6px;
}
.pane-tabs button:hover:not(:disabled),
.scope-tabs button:hover:not(:disabled),
.modes button:hover:not(:disabled) {
color: var(--text);
}
.pane-tabs button.active,
.scope-tabs button.active,
.modes button.active {
color: var(--text);
border-bottom-color: var(--accent);
}
.pane-body,
.view,
.transcript-view,
.inbox-view {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
}
.tasks-view {
overflow-y: auto;
padding: 8px 16px 16px;
}
.project h2 {
font-size: 14px;
margin: 16px 0 6px;
}
.project h2 .repo {
font-weight: 400;
color: var(--muted);
font-size: 12px;
margin-left: 6px;
}
.task-list {
list-style: none;
margin: 0 0 8px;
padding: 0;
}
.task-list a {
display: flex;
align-items: center;
gap: 10px;
padding: 6px 10px;
border-radius: 6px;
color: var(--text);
}
.task-list a:hover {
background: var(--surface);
text-decoration: none;
}
.task-list li.selected a {
background: var(--accent-tint);
}
.task-title {
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.task-state {
color: var(--muted);
font-size: 12px;
}
.empty-row {
color: var(--muted);
padding: 6px 10px;
}
.dot {
width: 8px;
height: 8px;
border-radius: 50%;
flex-shrink: 0;
box-shadow: inset 0 0 0 1.5px var(--muted);
}
.dot.running {
background: var(--ok);
box-shadow: none;
}
.dot.queued {
background: var(--warn);
box-shadow: none;
}
.badge {
font-size: 12px;
font-weight: 700;
background: var(--danger-tint);
color: var(--danger);
border-radius: 10px;
padding: 0 7px;
}
.inline-form,
.stack-form {
display: flex;
gap: 6px;
margin-top: 6px;
}
.stack-form {
flex-direction: column;
}
.add-project {
margin-top: 24px;
}
.add-project summary {
cursor: pointer;
color: var(--muted);
}
.task-header {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
padding: 8px 16px;
border-bottom: 1px solid var(--border);
}
.task-header:empty {
display: none;
}
.meta {
display: flex;
flex-direction: column;
min-width: 0;
font-size: 12px;
color: var(--muted);
}
.meta code {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.head-actions {
display: flex;
gap: 8px;
align-items: center;
flex-shrink: 0;
}
.state {
font-size: 12px;
padding: 1px 8px;
border-radius: 10px;
background: var(--surface);
color: var(--muted);
}
.state.running {
color: var(--ok);
}
.state.queued {
background: var(--warn-tint);
color: var(--warn);
}
.transcript {
flex: 1;
overflow-y: auto;
padding: 16px;
display: flex;
flex-direction: column;
gap: 12px;
}
.empty {
color: var(--muted);
padding: 32px;
text-align: center;
}
.md {
word-break: break-word;
}
.md > :first-child {
margin-top: 0;
}
.md > :last-child {
margin-bottom: 0;
}
.md p,
.md ul,
.md ol,
.md blockquote,
.md pre,
.md .md-table {
margin: 0 0 8px;
}
.md ul,
.md ol {
padding-left: 22px;
}
.md li > ul,
.md li > ol {
margin: 2px 0;
}
.md h3,
.md h4,
.md h5,
.md h6 {
margin: 12px 0 4px;
font-size: 14px;
}
.md h3 {
font-size: 15px;
}
.md blockquote {
border-left: 3px solid var(--border);
padding-left: 10px;
color: var(--muted);
}
.md hr {
border: none;
border-top: 1px solid var(--border);
margin: 10px 0;
}
.md code {
background: var(--surface);
border-radius: 4px;
padding: 0 4px;
}
.md pre.md-code {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 6px;
padding: 6px 8px;
overflow-x: auto;
white-space: pre;
}
.md pre.md-code code {
background: none;
padding: 0;
}
.md .md-table {
overflow-x: auto;
}
.md table {
border-collapse: collapse;
}
.md th,
.md td {
border: 1px solid var(--border);
padding: 3px 8px;
text-align: left;
vertical-align: top;
}
.md th {
background: var(--surface);
}
.msg.user {
align-self: flex-end;
max-width: 85%;
background: var(--accent-tint);
padding: 8px 12px;
border-radius: 10px;
}
.who {
font-size: 12px;
color: var(--muted);
margin-bottom: 2px;
}
.thinking,
.tool {
border: 1px solid var(--border);
border-radius: 8px;
padding: 4px 10px;
background: var(--surface);
}
.thinking summary,
.tool summary {
cursor: pointer;
}
.thinking summary {
color: var(--muted);
}
.thinking .text {
color: var(--muted);
padding: 6px 0;
}
.tool-name {
font-weight: 700;
}
.tool-brief {
color: var(--muted);
}
.tool.errored {
border-color: var(--danger);
}
.tool-input,
.tool-result pre {
background: var(--raised);
border: 1px solid var(--border);
padding: 6px 8px;
border-radius: 6px;
margin: 6px 0;
max-height: 320px;
overflow: auto;
}
.tool-result.pending {
color: var(--muted);
font-style: italic;
padding: 4px 0;
}
.tool-result.error pre {
color: var(--danger);
}
.report {
border-left: 3px solid var(--accent);
padding: 2px 12px;
}
.report h4 {
margin: 6px 0 2px;
font-size: 12px;
color: var(--muted);
}
.report ul {
margin: 0;
padding-left: 18px;
}
.report-section.deviations h4,
.report-section.risks h4 {
color: var(--warn);
}
.turn-end,
.note {
font-size: 12px;
color: var(--muted);
}
.turn-end:empty {
height: 1px;
background: var(--border);
}
.note.error,
.turn-end.error {
color: var(--danger);
}
.note.ask {
color: var(--accent);
}
.composer {
border-top: 1px solid var(--border);
padding: 12px 16px;
background: var(--surface);
}
.composer:empty {
display: none;
}
.compose-actions {
display: flex;
justify-content: flex-end;
gap: 8px;
margin-top: 8px;
}
.compose-actions select {
width: auto;
margin-right: auto;
}
.scope-tabs {
display: flex;
gap: 4px;
padding: 4px 12px 0;
}
.scope-tabs button {
padding: 6px 8px 4px;
font-size: 13px;
}
.submit-bar {
padding: 8px 16px;
}
.submit-bar:empty {
display: none;
}
.submit-bar button {
width: 100%;
}
.inbox-list {
flex: 1;
overflow-y: auto;
padding: 8px 16px 16px;
display: flex;
flex-direction: column;
gap: 12px;
}
.card {
border: 1px solid var(--border);
border-radius: 10px;
padding: 12px 14px;
background: var(--raised);
}
.card.blocked {
box-shadow: inset 3px 0 0 var(--danger);
}
.card header {
display: flex;
gap: 10px;
align-items: baseline;
font-size: 12px;
color: var(--muted);
}
.card header time {
margin-left: auto;
}
.priority {
font-weight: 700;
}
.priority.blocked {
color: var(--danger);
}
.task-group {
display: flex;
flex-direction: column;
gap: 8px;
}
.task-group + .task-group {
margin-top: 8px;
}
.task-group h3 {
margin: 0;
font-size: 13px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.task-group.blocked h3 a {
color: var(--danger);
}
.context {
margin: 10px 0;
}
.question {
font-weight: 700;
margin: 10px 0 4px;
}
.ack {
display: flex;
justify-content: flex-end;
}
.why {
color: var(--muted);
margin: 0 0 8px;
}
.why strong {
color: var(--text);
font-weight: 400;
}
.error-text {
color: var(--danger);
}
.attachments {
padding-left: 18px;
margin: 6px 0;
}
.attachments img {
max-width: 100%;
border-radius: 6px;
}
.mermaid-source {
background: var(--surface);
padding: 6px 8px;
border-radius: 6px;
}
.caption {
color: var(--muted);
font-size: 12px;
}
.thread {
list-style: none;
padding: 6px 10px;
margin: 8px 0;
background: var(--surface);
border-radius: 6px;
font-size: 12px;
}
.card-actions {
margin-top: 10px;
padding-top: 8px;
border-top: 1px solid var(--border);
display: flex;
flex-direction: column;
gap: 8px;
}
.modes {
display: flex;
flex-wrap: wrap;
gap: 2px;
}
.modes button {
font-size: 12px;
padding: 2px 8px 3px;
}
.options,
.snooze {
display: flex;
flex-direction: column;
gap: 4px;
}
.option,
.snooze label {
cursor: pointer;
}
.option input,
.snooze input {
width: auto;
accent-color: var(--accent);
}
.recommended {
margin-left: 8px;
font-size: 12px;
color: var(--ok);
}
.hint {
color: var(--muted);
margin: 0;
}
.switcher-backdrop {
position: fixed;
inset: 0;
background: rgb(0 0 0 / 0.35);
}
.switcher {
position: fixed;
top: 15vh;
left: 50%;
translate: -50% 0;
width: min(560px, 90vw);
background: var(--raised);
border: 1px solid var(--border);
border-radius: 10px;
padding: 10px;
box-shadow: var(--shadow);
}
.switcher-list {
list-style: none;
margin: 8px 0 0;
padding: 0;
max-height: 50vh;
overflow-y: auto;
}
.switcher-list li {
padding: 6px 10px;
border-radius: 6px;
cursor: pointer;
}
.switcher-list li.selected {
background: var(--accent-tint);
}
.project-name {
color: var(--muted);
}
.fatal {
padding: 24px;
color: var(--danger);
}