* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink, #222); background: var(--surface, #fafaf8); font: 14px/1.6 var(--sans, system-ui); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: var(--surface, white); border: 1px solid var(--line, #ddd); border-radius: 6px; padding: 7px 12px; }
button:disabled { cursor: default; opacity: .5; }
a { color: inherit; }
:focus-visible { outline: 2px solid #3874b9; outline-offset: 3px; }
.team-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100dvh; }
.team-sidebar { background: var(--surface-soft, #f2f2ee); border-right: 1px solid var(--line, #ddd); padding: 24px 18px; }
h1 { font-size: 22px; margin: 0 0 12px; } h1 small { display: block; font-size: 12px; font-weight: 400; } h2 { font-size: 15px; margin-top: 24px; }
.team-sidebar nav { display: grid; gap: 6px; }
.team-sidebar nav button { text-align: left; }
[aria-current="page"] { background: var(--blue-soft, #e1eaf4); border-color: #6a93bf; }
.team-main { padding: 28px clamp(18px, 4vw, 64px); min-width: 0; }
.team-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0; }
.team-content { max-width: 1000px; }
#stream { min-height: 180px; max-height: 56dvh; overflow-y: auto; padding: 8px 0 24px; }
.message, .task-card, .artifact-card { padding: 16px; background: var(--surface, white); border: 1px solid var(--line, #ddd); border-radius: 8px; margin: 10px 0; }
.message p, .artifact-card pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.message small, .muted { color: var(--muted, #777); font-size: 12px; }
textarea { display: block; width: 100%; resize: vertical; border: 1px solid var(--line, #ccc); background: var(--surface, white); padding: 12px; border-radius: 6px; }
#error { color: #a43131; white-space: pre-wrap; }
.board-columns { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 20px; }
.board-column { min-width: 210px; flex: 1; background: var(--surface-soft, #f2f2ee); padding: 10px; border-radius: 8px; }
.board-column button { display: block; width: 100%; text-align: left; margin-bottom: 8px; }
#taskDetail { border-top: 1px solid var(--line, #ddd); padding-top: 20px; }
.skip-link { position: absolute; left: -10000px; } .skip-link:focus { left: 12px; top: 8px; }
@media (max-width: 700px) { .team-shell { grid-template-columns: 1fr; } .team-sidebar { padding: 18px; border-bottom: 1px solid #ddd; } .team-sidebar nav { grid-template-columns: repeat(auto-fit, minmax(130px,1fr)); } .team-main { padding: 20px; } }
.task-card{display:flex;flex-wrap:wrap;gap:.4rem;padding:.6rem 0;border-bottom:1px solid #ddd}.task-card>[data-task]{width:100%;text-align:left}.task-drag-handle{touch-action:none;cursor:grab;min-width:44px;min-height:44px}.task-card select{max-width:100%;min-height:44px}.board-column{min-height:10rem}.task-card [draggable=true]{cursor:grab}

#channelEditor label { display: block; margin: 10px 0; }
#channelEditor input, #channelEditor select { width: 100%; box-sizing: border-box; }
#channelManagement button { margin-right: 8px; }
