:root { --bg: #fafaf9; --fg: #1c1917; --muted: #78716c; --line: #e7e5e4; --card: #fff; --accent: #c2410c; --sel: #fff7ed; --logo-fill: linear-gradient(180deg, #4b5a8f, #2a3358); --logo-glow: rgba(90, 120, 220, .35); }
@media (prefers-color-scheme: dark) {
  :root { --bg: #1c1917; --fg: #f5f5f4; --muted: #a8a29e; --line: #44403c; --card: #292524; --accent: #fb923c; --sel: #431407; --logo-fill: linear-gradient(180deg, #fff 0%, #c9d6ff 55%, #6f7fb8 100%); --logo-glow: rgba(150, 180, 255, .55); }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.5 system-ui, sans-serif; height: 100dvh; display: flex; flex-direction: column; }
button { font: inherit; background: var(--card); color: var(--fg); border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; cursor: pointer; }
button.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
header { display: flex; gap: 8px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
header h1 { font-size: 15px; margin: 0; letter-spacing: .04em; }
#status, #usage, #cache { color: var(--muted); font-size: 12px; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 820px; margin: 6px auto 0; }
.pickers, .stats { display: flex; gap: 12px; align-items: center; font-size: 12px; }
.pickers { gap: 6px; }
.badge { font-size: 12px; line-height: 1.4; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.badge:hover, .badge[aria-expanded="true"] { color: var(--fg); border-color: var(--muted); }
.badge[hidden] { display: none; }
/* Popover above the prompt: model picker today, commands / skills later. */
#popover { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 8px 30px rgb(0 0 0 / .18); z-index: 10; overflow-y: auto; overscroll-behavior: contain; }
#popover[hidden] { display: none; }
.pop-title { font-size: 13px; color: var(--muted); padding: 6px 10px; }
.pop-item { display: flex; align-items: center; width: 100%; text-align: left; border: 0; background: none; border-radius: 8px; padding: 8px 10px; gap: 10px; }
.pop-item:hover, .pop-item:focus-visible { background: var(--sel); outline: none; }
.pop-item > div { flex: 1; min-width: 0; }
.pop-item .sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop-item .check { visibility: hidden; }
.pop-item[aria-selected="true"] .check { visibility: visible; }
.pop-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px; border-top: 1px solid var(--line); margin-top: 4px; }
.pop-row { flex-direction: column; align-items: stretch; }
.slider { width: min(280px, 100%); padding: 8px 22px 20px; outline: none; }
.track { position: relative; height: 4px; border-radius: 2px; background: var(--line); }
.fill { position: absolute; inset: 0 auto 0 0; border-radius: 2px; background: var(--accent); }
.stop { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 20px; height: 20px; padding: 0; border: 0; background: none; display: grid; place-items: center; }
.stop i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); transition: transform .1s; }
.stop.on i { width: 14px; height: 14px; background: var(--accent); box-shadow: 0 0 0 3px var(--card); }
.slider:focus-visible .stop.on i { outline: 2px solid var(--accent); outline-offset: 2px; }
.stop span { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--muted); white-space: nowrap; }
.stop.on span, .stop:hover span { color: var(--fg); }
#usage { font-variant-numeric: tabular-nums; }
#status { margin-left: auto; }
#menu { display: none; }
.layout { flex: 1; display: flex; min-height: 0; }
aside { width: 56px; border-right: 1px solid var(--line); overflow: hidden; min-height: 0; padding: 8px; flex-shrink: 0; display: flex; flex-direction: column; gap: 2px; transition: width .15s; }
aside.expanded { width: 260px; }
svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.item { display: flex; align-items: center; gap: 10px; width: 100%; flex-shrink: 0; border: 0; background: none; padding: 8px 10px; white-space: nowrap; text-align: left; }
.item:hover { background: var(--card); }
#collapse { width: auto; align-self: flex-start; margin-bottom: 8px; }
aside.expanded #collapse { align-self: flex-end; }
aside:not(.expanded) .item span, aside:not(.expanded) .recents, aside:not(.expanded) #sessions, aside:not(.expanded) #agents, aside.expanded #history { display: none; }
.recents { font-size: 13px; color: var(--muted); padding: 16px 10px 6px; flex-shrink: 0; }
#sessions { overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; max-height: 50vh; min-height: 0; }
#agents { overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; max-height: 30vh; min-height: 0; }
.session { padding: 8px 10px; border-radius: 6px; cursor: pointer; margin-bottom: 2px; }
.session:hover { background: var(--card); }
.session.active { background: var(--sel); }
.session .title { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session .meta { font-size: 12px; color: var(--muted); }
.chat { flex: 1; display: flex; flex-direction: column; min-width: 0; }
main { flex: 1; overflow-y: auto; padding: 16px; }
.msg { max-width: 820px; margin: 0 auto 14px; white-space: pre-wrap; word-wrap: break-word; }
.user { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.role { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.tool { font: 13px/1.4 ui-monospace, monospace; color: var(--muted); border-left: 2px solid var(--line); padding-left: 10px; max-height: 200px; overflow: auto; }
.tool b { color: var(--fg); }
.error { color: #dc2626; }
footer { padding: 12px 16px; }
form { display: flex; gap: 8px; max-width: 820px; margin: 0 auto; }
#form { position: relative; }
#form textarea { padding: 12px 52px 12px 14px; border-radius: 22px; min-height: 0; max-height: calc(10lh + 26px); overflow-y: auto; }
#send, #abort { position: absolute; right: 8px; bottom: 7px; width: 34px; height: 34px; padding: 0; border-radius: 50%; display: grid; place-items: center; border: 0; background: var(--fg); color: var(--bg); opacity: .85; }
#send:hover, #abort:hover { opacity: 1; }
#abort { display: none; }
body.streaming #abort { display: grid; }
body.streaming #send { display: none; }
#abort svg { fill: currentColor; stroke: none; }
#send svg { width: 18px; height: 18px; stroke-width: 2.2; }
/* No messages yet: the prompt sits in the middle of the screen. */
.chat:has(#log:empty) { justify-content: center; }
.chat:has(#log:empty) .stats { visibility: hidden; }
.chat:has(#log:empty) main { flex: 0; padding: 0; }
.chat:has(#log:empty) footer { padding-bottom: 12vh; }
/* Phoenix logo + halo above the prompt. */
.chat:has(#log:empty) main { position: relative; isolation: isolate; overflow: visible; }
#log:empty::before { content: ""; display: block; width: 158px; aspect-ratio: 572 / 425; margin: 0 auto 32px; background: var(--logo-fill); -webkit-mask: url(logo.png) center / contain no-repeat; mask: url(logo.png) center / contain no-repeat; filter: drop-shadow(0 0 6px var(--logo-glow)); }
#log:empty::after { content: ""; position: absolute; z-index: -1; left: 50%; top: calc((158px * 425 / 572) / 2); width: 170px; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%) scale(1.3); background: radial-gradient(circle, var(--logo-glow), transparent 65%); filter: blur(18px); opacity: .4; pointer-events: none; }
textarea, input { flex: 1; font: inherit; background: var(--card); color: var(--fg); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; }
textarea { resize: none; min-height: 44px; }
#login { position: fixed; inset: 0; background: var(--bg); display: none; align-items: center; justify-content: center; padding: 16px; }
#login.open { display: flex; }
#login form { flex-direction: column; width: 100%; max-width: 360px; }
@media (max-width: 700px) {
  #menu { display: inline-block; }
  aside, aside.expanded { width: 260px; position: fixed; top: 0; bottom: 0; left: 0; z-index: 2; background: var(--bg); transform: translateX(-100%); transition: transform .2s; }
  aside .item span, aside .recents, aside #sessions, aside #agents { display: revert !important; }
  aside #history { display: none; }
  aside.open { transform: none; }
}

[data-detail] { position: relative; cursor: help; }
[data-detail]:hover::after { content: attr(data-detail); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: pre; background: var(--card); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 12px; line-height: 1.6; box-shadow: 0 4px 16px rgb(0 0 0 / .15); z-index: 5; }
#cache { display: inline-flex; align-items: center; gap: 4px; }
#cache svg { width: 14px; height: 14px; }
#cache.expired { opacity: .6; }

/* ROUTINES */
body.agents-open .chat { display: none; }
#agents-view { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 16px; gap: 12px; }
#agents-view[hidden] { display: none; }
#agents-view h2 { margin: 0; font-size: 16px; align-self: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#agent-console { flex: 1; min-height: 0; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
#agent-output { margin: 0; padding: 12px; font: 12px/1.5 ui-monospace, monospace; white-space: pre-wrap; word-break: break-word; }
/* The sidebar agents reuse the .session row, plus a pulsing dot while the process lives. */
.session.agent .title i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--ok, #3fb950); animation: agent-pulse 1.6s ease-in-out infinite; }
.session.agent.queued .title i { background: var(--muted); animation: none; }
@keyframes agent-pulse { 50% { opacity: 0.25; } }

body.routines-open .chat { display: none; }
#routines-view { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 16px; gap: 12px; overflow-y: auto; }
#routines-view[hidden] { display: none; }
#routines-view h2, #routines-view h3 { margin: 0; font-size: 16px; align-self: center; }
#routines-view .empty { color: var(--muted); margin: 12px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--card); flex-shrink: 0; }
.routines-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.routines-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.routines-table td { padding: 8px 12px; border-top: 1px solid var(--line); white-space: nowrap; }
.routines-table tbody tr:first-child td { border-top: 0; }
.routines-table tbody tr { cursor: pointer; }
.routines-table tbody tr:hover { background: var(--sel); }
.routines-table tr.selected { background: var(--sel); box-shadow: inset 3px 0 var(--accent); }
.routines-table tr.disabled td:not(:last-child) { opacity: .5; }
.routines-table td.actions { text-align: right; }
.routines-table td.actions button { padding: 2px 10px; font-size: 13px; }
.routines-table code, .hint code { font-size: 13px; }
.muted { color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 6px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status.success i { background: #34d399; }
.status.failed i { background: #dc2626; }
.status.running i { background: #60a5fa; animation: pulse 1s infinite alternate; }
@keyframes pulse { to { opacity: .3; } }
#routine-form { display: flex; flex-direction: column; gap: 8px; }
#routine-form input:not([type=checkbox]), #routine-form textarea { font: inherit; background: var(--card); color: var(--fg); border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; }
#routine-form textarea { font-family: ui-monospace, monospace; font-size: 13px; }
#routine-form .row { display: flex; gap: 8px; }
#routine-form .row input { flex: 1; min-width: 0; }
#routine-form .spacer, .run-head .spacer { flex: 1; }
.hint { color: var(--muted); }
.hint.error { color: #dc2626; }
.check { display: flex; align-items: center; gap: 6px; }
#delete-routine[hidden], #stop-run[hidden] { display: none; }
#run-dialog { width: min(900px, calc(100vw - 32px)); }
.run-head { display: flex; align-items: center; gap: 8px; }
.run-head h3 { margin: 0; font-size: 16px; }
#run-info { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; font-size: 14px; margin: 12px 0; }
#run-info dt { color: var(--muted); }
#run-info dd { margin: 0; }
#run-command, #run-log { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 10px; font-size: 12px; white-space: pre-wrap; word-break: break-word; margin: 8px 0 0; }
#run-log { max-height: 55vh; overflow-y: auto; }

/* KANBAN */
body.kanban-open .chat { display: none; }
#board { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 16px; gap: 12px; }
#board[hidden] { display: none; }
.board-bar { display: flex; gap: 8px; justify-content: space-between; }
select { font: inherit; background: var(--card); color: var(--fg); border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; }
#columns { flex: 1; min-width: 0; min-height: 0; display: flex; gap: 12px; overflow-x: auto; }
.column { --c: #a8a29e; flex: 1 1 0; min-width: 220px; display: flex; flex-direction: column; min-height: 0; background: color-mix(in srgb, var(--line) 35%, transparent); border: 1px solid transparent; border-radius: 10px; padding: 8px; }
.column.todo { --c: #60a5fa; }
.column.in_progress { --c: #a78bfa; }
.column.review { --c: #fbbf24; }
.column.error { --c: #f87171; }
.column.done { --c: #34d399; }
.column.archived { --c: #78716c; }
.column-head { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 4px 6px 10px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); text-align: left; }
.column-head:hover { color: var(--fg); }
.column-head i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex-shrink: 0; }
.column-head .count { font-weight: normal; }
.column .card { border-left: 3px solid var(--c); }
/* Collapsed: a thin strip with the name written vertically; still a drop target. */
.column.collapsed { flex: 0 0 44px; min-width: 44px; padding: 8px 0; }
.column.collapsed .column-head { flex-direction: column; padding: 6px 0; flex: 1; justify-content: flex-start; }
.column.collapsed .column-head span { writing-mode: vertical-rl; }
.column.collapsed .cards { display: none; }
.column.archived .card { opacity: .6; }
.column.over { border-color: var(--accent); }
/* A card whose agent is running (or queued): a pulsing dot next to its title. */
.card.agent-running .title::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--c); animation: agent-pulse 1.2s ease-in-out infinite; }
@keyframes agent-pulse { 50% { opacity: .2; } }
.cards { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: grab; }
.card:hover { border-color: var(--muted); }
.card.dragging { opacity: .4; }
.card .title { font-size: 14px; word-wrap: break-word; }
.card-footer { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.card-footer time { margin-left: auto; font-size: 11px; color: var(--muted); white-space: nowrap; }
.card .tag { display: inline-block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; }
dialog { background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 12px; padding: 16px; width: min(520px, calc(100vw - 32px)); }
dialog::backdrop { background: rgb(0 0 0 / .4); }
#task-form { flex-direction: column; }
#task-form .row { display: flex; gap: 8px; }
#task-form .row select { flex: 1; }
#task-form .spacer { flex: 1; }
button.danger { color: #dc2626; }
/* Task side panel */
.board-body { flex: 1; min-height: 0; display: flex; gap: 12px; }
#task-panel { width: 440px; flex-shrink: 0; display: flex; flex-direction: column; gap: 0; padding: 0; min-height: 0; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
#task-panel[hidden] { display: none; }
.panel-head { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 0; border-bottom: 1px solid var(--line); }
.panel-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.panel-head h3 { margin: 0; font-size: 13px; font-weight: 500; color: var(--muted); }
select.pill { --c: var(--muted); min-width: 0; max-width: 150px; font-size: 12px; padding: 3px 8px; border-radius: 999px; background: var(--bg); }
select.pill.status { color: var(--c); border-color: color-mix(in srgb, var(--c) 45%, var(--line)); font-weight: 600; }
select.pill.status.todo { --c: #60a5fa; }
select.pill.status.in_progress { --c: #a78bfa; }
select.pill.status.review { --c: #fbbf24; }
select.pill.status.error { --c: #f87171; }
select.pill.status.done { --c: #34d399; }
#panel-close { margin-left: auto; border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px; }
#panel-close:hover { color: var(--fg); }
#panel-expand { margin-left: auto; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 4px; display: grid; }
#panel-expand + #panel-close { margin-left: 0; }
#panel-expand:hover, #panel-expand[aria-pressed=true] { color: var(--fg); }
#panel-expand svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Expanded: the panel becomes a large centred modal over a dimmed page. */
#task-panel.expanded { position: fixed; inset: 0; margin: auto; width: min(960px, calc(100vw - 32px)); height: min(90vh, 900px); z-index: 50; transform: none; box-shadow: 0 0 0 100vmax rgb(0 0 0 / .55), 0 20px 60px rgb(0 0 0 / .5); }
#task-panel.expanded #panel-form textarea[name=description] { max-height: none; flex: 1; }
/* The title reads as a heading and only shows it is editable on hover/focus. */
/* A long title wraps and the field grows with it (fitTitle() where field-sizing is unsupported). */
.panel-head textarea[name=title] { flex: none; min-height: 0; field-sizing: content; overflow: hidden; font-size: 18px; font-weight: 600; line-height: 1.3; padding: 4px 6px; margin: 0 -6px; background: transparent; border-color: transparent; }
.panel-head textarea[name=title]:hover { border-color: var(--line); }
.panel-head textarea[name=title]:focus { border-color: var(--muted); background: var(--bg); outline: none; }
.panel-tabs { display: flex; gap: 18px; }
.panel-tabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; color: var(--muted); padding: 8px 2px; }
.panel-tabs button:hover { color: var(--fg); }
.panel-tabs button[aria-selected=true] { color: var(--fg); border-bottom-color: var(--accent); }
.panel-tabs .count { font-size: 11px; padding: 0 6px; margin-left: 2px; border: 1px solid var(--line); border-radius: 999px; }
.panel-tabs .count:empty { display: none; }
.panel-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px; }
.panel-pane { display: flex; flex-direction: column; gap: 8px; }
.panel-pane[hidden] { display: none; }
/* Descriptions follow a long template: give them room, with an internal scroll past the panel height. */
#panel-form textarea[name=description] { flex: none; min-height: 16lh; max-height: 60vh; resize: vertical; overflow-y: auto; line-height: 1.55; }
#panel-form textarea[name=description][hidden] { display: none; }
.md-tabs { display: flex; align-items: center; gap: 4px; }
.md-tabs button { border: 0; background: none; color: var(--muted); padding: 4px 10px; border-radius: 6px; font-size: 13px; }
.md-tabs button:hover { color: var(--fg); }
.md-tabs button[aria-selected=true] { color: var(--fg); background: var(--bg); }
.md-tabs .hint { margin-left: auto; font-size: 11px; }
.markdown { box-sizing: border-box; max-height: 60vh; overflow-y: auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; line-height: 1.55; overflow-wrap: anywhere; }
.markdown > :first-child { margin-top: 0; }
.markdown > :last-child { margin-bottom: 0; }
.markdown h1, .markdown h2, .markdown h3, .markdown h4, .markdown h5, .markdown h6 { margin: 1em 0 .4em; line-height: 1.3; }
.markdown h1 { font-size: 1.3em; }
.markdown h2 { font-size: 1.15em; }
.markdown h3, .markdown h4, .markdown h5, .markdown h6 { font-size: 1em; }
.markdown p, .markdown ul, .markdown ol, .markdown blockquote, .markdown pre { margin: 0 0 .7em; }
.markdown ul, .markdown ol { padding-left: 1.4em; }
.markdown li.task { list-style: none; margin-left: -1.3em; }
.markdown li.task input { margin: 0 .5em 0 0; vertical-align: -1px; }
.markdown code { font-family: ui-monospace, monospace; font-size: .9em; background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }
.markdown pre { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; overflow-x: auto; }
.markdown pre code { border: 0; padding: 0; background: none; }
.markdown blockquote { border-left: 3px solid var(--line); padding-left: 10px; color: var(--muted); }
.markdown hr { border: 0; border-top: 1px solid var(--line); }
.markdown a { color: var(--accent); }
.panel-foot { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); background: var(--bg); }
.panel-foot .spacer { flex: 1; }
.panel-section-head { display: flex; align-items: center; justify-content: space-between; }
#panel-comments, #panel-logs { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
#panel-logs { max-height: 40vh; overflow-y: auto; }
.entry { border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: var(--bg); font-size: 13px; }
.entry-head { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.entry-head time { margin-left: auto; }
.entry-head .link { border: 0; background: none; color: var(--muted); font-size: 11px; cursor: pointer; padding: 0; }
.entry-head .link:hover { color: #dc2626; }
.entry-body { margin: 0; white-space: pre-wrap; word-break: break-word; }
.entry.comment.agent { border-left: 3px solid var(--accent); }
.entry.log { font-family: ui-monospace, monospace; font-size: 12px; }
.entry.log.warn { border-left: 3px solid #fbbf24; }
.entry.log.error { border-left: 3px solid #dc2626; }
#comment-form { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
#comment-form textarea { width: 100%; }
.card.selected { border-color: var(--accent); }
@media (max-width: 700px) { #columns { scroll-snap-type: x mandatory; } .column:not(.collapsed) { flex: 0 0 80vw; } .column { scroll-snap-align: start; } }
@media (max-width: 900px) { .board-body { position: relative; } #task-panel { position: absolute; inset: 0 0 0 auto; width: min(440px, 100%); z-index: 5; transform: none; transition: none; } /* the mobile sidebar rule targets every aside */ #panel-form textarea[name=description] { min-height: 10lh; max-height: 40vh; } .panel-foot { flex-wrap: wrap; } body.panel-open #columns { filter: blur(1px); } }
