eduard/cobra-boards
Cobra Boards, team task boards you can run from Claude or ChatGPT. FastAPI + DataK3 + appid + Dodil Models + MCP.
A remix template · 1 remixes · Remix eduard/cobra-boards
app/boards/doors/static/app.css
/* Cobra Boards. One layout, three themes (data-theme on <html>): jungle (default), daylight, venom. */
:root, [data-theme="jungle"] {
--bg: #0b1512; --bg2: #0f1d19; --panel: #13241f; --panel2: #182d27; --line: #24413a;
--text: #e8f1ec; --muted: #93aaa1; --faint: #5f7b71;
--accent: #d9b44a; --accent2: #f0cf6a; --accent-ink: #1b1405;
--brand: #2fb67c; --danger: #f26d5b; --warn: #e9a23b; --ok: #3ccf8e;
--chip: #1d3a32; --shadow: 0 10px 30px rgba(0,0,0,.45);
--scale: radial-gradient(circle at 10px 10px, rgba(217,180,74,.05) 0 2px, transparent 3px) 0 0/20px 20px;
}
[data-theme="daylight"] {
--bg: #f4f6f5; --bg2: #ffffff; --panel: #ffffff; --panel2: #f7faf8; --line: #e2e8e5;
--text: #15201b; --muted: #5d6c66; --faint: #95a39d;
--accent: #0f8a5f; --accent2: #13a571; --accent-ink: #ffffff;
--brand: #0f8a5f; --danger: #d6453a; --warn: #c97a12; --ok: #13a571;
--chip: #eaf3ef; --shadow: 0 8px 24px rgba(20,40,30,.10);
--scale: none;
}
[data-theme="venom"] {
--bg: #0e0f11; --bg2: #141519; --panel: #1a1c21; --panel2: #202329; --line: #2c3038;
--text: #f1f3f5; --muted: #9aa1ab; --faint: #646b76;
--accent: #b6f23a; --accent2: #cdff5c; --accent-ink: #0e1102;
--brand: #b6f23a; --danger: #ff5c7a; --warn: #ffb347; --ok: #b6f23a;
--chip: #262a31; --shadow: 0 10px 30px rgba(0,0,0,.5);
--scale: linear-gradient(135deg, rgba(182,242,58,.04) 25%, transparent 25%) 0 0/14px 14px;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text);
font: 14px/1.45 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: 260px 1fr; grid-template-rows: 56px 1fr; height: 100vh; }
.top { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 0 16px;
background: var(--bg2); border-bottom: 1px solid var(--line); position: relative; z-index: 3; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: .2px; font-size: 16px;
text-decoration: none; color: var(--text); }
.brand img { width: 30px; height: 30px; display: block; }
.welcome-logo { width: 120px; height: 120px; display: block; margin: 0 0 14px; filter: drop-shadow(0 8px 24px rgba(0,0,0,.35)); }
.brand b { color: var(--accent); font-weight: 800; }
.search { flex: 1; max-width: 460px; position: relative; }
.search input { width: 100%; height: 36px; border-radius: 10px; border: 1px solid var(--line);
background: var(--panel); padding: 0 12px 0 34px; outline: none; }
.search input:focus { border-color: var(--accent); }
.search svg { position: absolute; left: 10px; top: 9px; width: 18px; height: 18px; color: var(--faint); }
.top .spacer { flex: 1; }
.me { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.top .burger { display: none; }
.side { background: var(--bg2); border-right: 1px solid var(--line); overflow: auto; padding: 14px 10px; }
.side h4 { margin: 14px 8px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--faint); }
.nav { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; text-align: left;
padding: 8px 10px; border-radius: 9px; cursor: pointer; color: var(--muted); }
.nav:hover { background: var(--panel); color: var(--text); }
.nav.on { background: var(--panel2); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.nav .count { margin-left: auto; font-size: 12px; color: var(--faint); }
.nav .count.hot { color: var(--danger); font-weight: 700; }
.nav svg { width: 17px; height: 17px; flex: none; }
.newboard { display: flex; gap: 6px; padding: 6px 4px 0; }
.newboard input { flex: 1; min-width: 0; height: 34px; border-radius: 9px; border: 1px dashed var(--line);
background: transparent; padding: 0 10px; }
.main { overflow: auto; background: var(--bg) var(--scale); position: relative; }
/* ---------- buttons, chips ---------- */
.btn { height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel);
cursor: pointer; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 700; }
.btn.primary:hover { background: var(--accent2); }
.btn.ghost { background: transparent; }
.btn.ai::before { content: "✦"; color: var(--accent); }
.btn.primary.ai::before { color: inherit; }
.btn:disabled { opacity: .5; cursor: default; }
.btn svg { width: 16px; height: 16px; }
.icon { width: 34px; padding: 0; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px;
background: var(--chip); color: var(--muted); font-size: 12px; line-height: 20px; }
.chip.label { color: var(--text); }
.chip.due { color: var(--muted); }
.chip.late { background: color-mix(in srgb, var(--danger) 18%, transparent); color: var(--danger); font-weight: 700; }
.chip.soon { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.chip.block { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.chip.done { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.role { font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.role.viewer { border-color: var(--warn); color: var(--warn); }
.role.owner { border-color: var(--accent); color: var(--accent); }
.av { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px;
font-weight: 800; color: #0b1512; flex: none; border: 2px solid var(--panel); }
.avs { display: flex; }
.avs .av + .av { margin-left: -8px; }
/* ---------- board ---------- */
.bhead { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
padding: 16px 22px 12px; background: linear-gradient(var(--bg) 70%, transparent); }
.bhead h1 { margin: 0; font-size: 22px; letter-spacing: -.2px; }
.bhead .tools { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.banner { margin: 0 22px 10px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--warn);
color: var(--warn); background: color-mix(in srgb, var(--warn) 8%, transparent); font-size: 13px; }
.stats { display: flex; gap: 8px; padding: 0 22px 12px; flex-wrap: wrap; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; min-width: 110px; }
.stat b { display: block; font-size: 20px; }
.stat span { color: var(--muted); font-size: 12px; }
.stat.hot b { color: var(--danger); }
.stat.warn b { color: var(--warn); }
.cols { display: flex; gap: 14px; align-items: flex-start; padding: 0 22px 30px; min-height: calc(100% - 140px); }
.col { flex: 0 0 290px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
display: flex; flex-direction: column; max-height: calc(100vh - 230px); }
.col.dropping { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.colh { display: flex; align-items: center; gap: 8px; padding: 12px 12px 8px; font-weight: 700; }
.colh .n { color: var(--faint); font-weight: 600; font-size: 12px; }
.colh .done-tag { font-size: 11px; color: var(--ok); }
.colh .colmenu { margin-left: auto; }
.cards { padding: 0 8px 8px; overflow: auto; flex: 1; min-height: 40px; }
.card { background: var(--panel2); border: 1px solid var(--line); border-radius: 11px; padding: 10px 11px;
margin: 0 0 8px; cursor: pointer; position: relative; transition: transform .08s, border-color .12s; }
.card:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.card.dragging { opacity: .4; transform: rotate(1.5deg); }
.card.is-late { box-shadow: inset 3px 0 0 var(--danger); }
.card.is-blocked { box-shadow: inset 3px 0 0 var(--warn); }
.card .num { color: var(--faint); font-size: 12px; font-weight: 700; margin-right: 4px; }
.card .t { font-weight: 600; word-break: break-word; }
.card .meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; align-items: center; }
.card .meta .av { width: 22px; height: 22px; font-size: 10px; margin-left: auto; }
.drop-line { height: 3px; border-radius: 3px; background: var(--accent); margin: -4px 4px 5px; }
.addcard { margin: 0 8px 10px; }
.addcard input { width: 100%; height: 34px; border-radius: 9px; border: 1px dashed var(--line); background: transparent;
padding: 0 10px; outline: none; }
.addcard input:focus { border-style: solid; border-color: var(--accent); }
.addlist { flex: 0 0 240px; }
.addlist input { width: 100%; height: 42px; border-radius: 12px; border: 1px dashed var(--line); background: transparent; padding: 0 12px; }
/* ---------- lists of cards (my week, overdue, search) ---------- */
.page { padding: 22px 26px 40px; max-width: 980px; }
.page h1 { margin: 0 0 4px; font-size: 24px; }
.page .sub { color: var(--muted); margin: 0 0 18px; }
.group { margin: 18px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: 1.1px; color: var(--muted); }
.group.hot { color: var(--danger); }
.row { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line);
border-radius: 11px; padding: 10px 12px; margin-bottom: 6px; cursor: pointer; }
.row:hover { border-color: var(--accent); }
.row .where { color: var(--faint); font-size: 12px; margin-left: auto; white-space: nowrap; }
.empty { color: var(--muted); padding: 30px 0; text-align: center; }
.empty .big { font-size: 40px; display: block; margin-bottom: 6px; }
/* ---------- dialog ---------- */
.veil { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: grid; place-items: start center;
padding: 6vh 16px; z-index: 20; overflow: auto; }
.dlg { width: min(860px, 100%); background: var(--bg2); border: 1px solid var(--line); border-radius: 16px;
box-shadow: var(--shadow); }
.dlg.small { width: min(520px, 100%); }
.dlgh { display: flex; align-items: flex-start; gap: 10px; padding: 18px 20px 6px; }
.dlgh .num { color: var(--faint); font-weight: 800; font-size: 18px; padding-top: 5px; }
.dlgh input.title { flex: 1; font-size: 20px; font-weight: 700; background: transparent; border: 1px solid transparent;
border-radius: 8px; padding: 4px 8px; }
.dlgh input.title:hover, .dlgh input.title:focus { border-color: var(--line); outline: none; }
.dlgh h2 { margin: 4px 0; font-size: 19px; flex: 1; }
.dlgb { display: grid; grid-template-columns: 1fr 260px; gap: 20px; padding: 6px 20px 20px; }
.dlgb.one { grid-template-columns: 1fr; }
.sec { margin-top: 14px; }
.sec > label, .sec > .lab { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
color: var(--faint); margin-bottom: 6px; }
.field { width: 100%; border: 1px solid var(--line); background: var(--panel); border-radius: 9px; padding: 8px 10px; outline: none; }
.field:focus { border-color: var(--accent); }
textarea.field { min-height: 96px; resize: vertical; }
.check { display: flex; align-items: center; gap: 9px; padding: 6px 4px; border-radius: 8px; }
.check:hover { background: var(--panel); }
.check input { width: 17px; height: 17px; accent-color: var(--accent); }
.check.done span { text-decoration: line-through; color: var(--faint); }
.check .x { margin-left: auto; opacity: 0; border: 0; background: none; color: var(--faint); cursor: pointer; }
.check:hover .x { opacity: 1; }
.progress { height: 6px; border-radius: 6px; background: var(--chip); overflow: hidden; margin: 4px 0 8px; }
.progress i { display: block; height: 100%; background: var(--ok); }
.suggest { border: 1px dashed var(--accent); border-radius: 11px; padding: 10px; margin-top: 8px; }
.suggest .note { color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.tl { border-left: 2px solid var(--line); margin-left: 6px; padding-left: 14px; }
.tl .e { position: relative; margin-bottom: 10px; font-size: 13px; }
.tl .e::before { content: ""; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%;
background: var(--panel); border: 2px solid var(--accent); }
.tl .e .w { color: var(--faint); font-size: 12px; }
.blk { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: var(--panel); margin-bottom: 5px; }
.blk.fin { opacity: .6; text-decoration: line-through; }
.inline { display: flex; gap: 6px; }
.inline .field { flex: 1; }
.ai-out { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; white-space: pre-wrap; }
.facts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.member { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.member .em { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.chain .lvl { display: flex; gap: 8px; align-items: center; padding: 5px 0; }
.start { margin-top: 10px; padding: 10px; border-radius: 10px; background: color-mix(in srgb, var(--ok) 12%, transparent);
border: 1px solid color-mix(in srgb, var(--ok) 50%, transparent); }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--panel2);
border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; box-shadow: var(--shadow); z-index: 40; }
.toast.err { border-color: var(--danger); color: var(--danger); }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--accent);
border-radius: 50%; animation: s .7s linear infinite; vertical-align: -2px; }
@keyframes s { to { transform: rotate(360deg); } }
.themes { display: flex; gap: 4px; }
.themes button { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; padding: 0; }
.themes button.on { border-color: var(--text); }
/* ---------- phone ---------- */
@media (max-width: 820px) {
.app { grid-template-columns: 1fr; }
.side { position: fixed; top: 56px; bottom: 0; left: 0; width: 82vw; max-width: 300px; z-index: 10;
transform: translateX(-102%); transition: transform .18s; box-shadow: var(--shadow); }
.side.open { transform: none; }
.top .burger { display: inline-flex; }
.me .who { display: none; }
.search { max-width: none; }
.brand span { display: none; }
.cols { scroll-snap-type: x mandatory; overflow-x: auto; padding: 0 12px 24px; }
.col { flex-basis: 86vw; scroll-snap-align: start; max-height: none; }
.bhead { padding: 12px; }
.stats, .banner { margin-left: 12px; margin-right: 12px; padding-left: 0; padding-right: 0; }
.stats { display: grid; grid-template-columns: 1fr 1fr; }
.stat { min-width: 0; }
.top { gap: 8px; padding: 0 10px; }
.top .themes, .top .spacer { display: none; }
.search { flex: 1; min-width: 0; }
.bhead .tools { margin-left: 0; width: 100%; }
.bhead .tools .btn { flex: 1; justify-content: center; }
.dlgb { grid-template-columns: 1fr; }
.page { padding: 16px 14px 30px; }
.veil { padding: 0; }
.dlg { border-radius: 0; min-height: 100vh; }
}
/* ---------- v2: notifications, live, comments, files, archive, templates ---------- */
.bell { position: relative; }
.bell svg { width: 20px; height: 20px; }
.bell .badge { position: absolute; top: 2px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 17px; text-align: center; }
.notes { display: grid; gap: 6px; }
.note { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; padding: 10px; border-radius: 11px;
border: 1px solid var(--line); background: var(--panel); cursor: pointer; }
.note:hover { border-color: var(--accent); }
.note.unread { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: inset 3px 0 0 var(--accent); }
.note .ni { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--chip);
color: var(--accent2); font-weight: 800; flex: 0 0 auto; }
.note .nt { font-size: 13px; line-height: 1.45; }
.note .nt .w { display: block; color: var(--faint); font-size: 12px; margin-top: 2px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
color: var(--ok); font-weight: 700; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); }
.live.ping::before { animation: ping 1.2s ease-out 2; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.comments { display: grid; gap: 10px; }
.cm { display: flex; gap: 10px; align-items: flex-start; }
.cm > div { flex: 1; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 8px 10px; }
.cmh { display: flex; gap: 8px; align-items: baseline; font-size: 13px; }
.cmh .w { color: var(--faint); font-size: 12px; }
.cmb { margin-top: 3px; white-space: pre-wrap; word-wrap: break-word; }
.cmb .at { color: var(--accent2); font-weight: 600; }
.cmform { margin-top: 10px; }
.cmform textarea { resize: vertical; min-height: 58px; }
.cmhint { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.cmhint .chip { cursor: pointer; border: 0; }
.att { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: var(--panel); margin-bottom: 5px; }
.att img { width: 34px; height: 34px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; }
.att .ficon { width: 34px; text-align: center; font-size: 20px; }
.att a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); text-decoration: none; }
.att a:hover { color: var(--accent2); }
.att .w { color: var(--faint); font-size: 12px; white-space: nowrap; }
.sec > label.upl { display: inline-flex; font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--text); margin: 6px 0 0; cursor: pointer; }
.banner.arch { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 20px 0; border-color: var(--accent); }
.banner.arch .btn { margin-left: auto; }
.tpls { display: grid; gap: 8px; }
.tpl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 10px 12px; border: 1px solid var(--line);
border-radius: 11px; background: var(--panel); cursor: pointer; }
.tpl input { grid-row: span 2; margin-top: 3px; accent-color: var(--accent); }
.tpl span { color: var(--muted); font-size: 12.5px; }
.tpl:has(input:checked) { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
@media (max-width: 820px) { .bell { margin-left: auto; } }