* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; color: var(--text); background: var(--bg); font: 14px/1.55 var(--font-ui); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(102,87,216,.27); outline-offset: 2px; }
.visually-hidden { position:absolute !important; overflow:hidden; width:1px; height:1px; padding:0; margin:-1px; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link { position:fixed; left:16px; top:-48px; z-index:100; padding:9px 12px; color:#fff; background:var(--violet); border-radius:var(--radius-sm); transition:top .16s; }.skip-link:focus { top:16px; }

.app-shell { display:grid; grid-template-columns: 256px minmax(0, 1fr); min-height:100vh; }
.sidebar { position:sticky; top:0; display:flex; flex-direction:column; height:100vh; padding:22px 14px; background:var(--surface); border-right:1px solid var(--border); }
.brand { display:flex; align-items:center; gap:10px; width:max-content; padding:8px 10px; background:none; border:0; cursor:pointer; font-weight:760; font-size:18px; letter-spacing:-.04em; }
.brand__mark { width:21px; height:21px; border:5px solid var(--violet); border-radius:7px 7px 7px 2px; transform:rotate(45deg); }
.workspace-label { margin:28px 10px 8px; color:var(--text-faint); font-size:11px; font-weight:700; letter-spacing:.08em; }
.side-nav { display:grid; gap:3px; }.side-nav button { display:flex; align-items:center; gap:10px; width:100%; padding:10px 11px; color:var(--text-soft); background:transparent; border:0; border-radius:10px; cursor:pointer; text-align:left; }.side-nav button:hover { color:var(--text); background:var(--surface-subtle); }.side-nav button[aria-current='page'] { color:var(--violet-deep); background:var(--violet-wash); font-weight:700; }.nav-icon { display:grid; place-items:center; width:18px; height:18px; color:currentColor; font-size:14px; font-weight:700; }.nav-count { margin-left:auto; min-width:19px; padding:1px 6px; color:var(--violet-deep); background:rgba(102,87,216,.12); border-radius:999px; font-size:11px; text-align:center; }
.side-space { margin-top:auto; padding:15px 11px 3px; border-top:1px solid var(--border); }.side-space__label { margin:0 0 6px; color:var(--text-faint); font-size:10px; font-weight:750; letter-spacing:.07em; }.side-space__switch { display:flex; align-items:center; justify-content:space-between; width:100%; gap:8px; padding:7px 8px; color:var(--text); background:var(--surface-subtle); border:1px solid var(--border); border-radius:9px; cursor:pointer; text-align:left; }.side-space__switch:hover { border-color:#c9c4ec; background:var(--violet-wash); }.side-space__name { font-size:12px; font-weight:700; line-height:1.35; }.side-space__hint { margin:7px 1px 0; color:var(--text-faint); font-size:10px; line-height:1.4; }
.avatar { display:grid; place-items:center; flex:0 0 auto; width:28px; height:28px; color:#fff; background:var(--violet); border-radius:9px; font-size:12px; font-weight:800; }.avatar[data-kind='ai'] { color:var(--violet-deep); background:var(--violet-wash); }

.main { min-width:0; padding:28px clamp(20px, 4vw, 64px) 64px; }.content { width:min(1240px, 100%); margin:0 auto; }.topbar { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:36px; margin-bottom:30px; }.crumb { display:flex; align-items:center; gap:7px; color:var(--text-faint); font-size:12px; }.crumb strong { color:var(--text-soft); font-weight:650; }.crumb i { font-style:normal; color:var(--border-strong); }.top-actions { display:flex; gap:8px; align-items:center; }
.top-connection { display:flex; align-items:center; gap:8px; min-height:36px; padding:4px 8px 4px 5px; color:var(--text); background:transparent; border:1px solid transparent; border-radius:10px; cursor:pointer; text-align:left; transition:background .16s var(--ease), border-color .16s var(--ease); }.top-connection:hover { background:var(--surface-subtle); border-color:var(--border); }.top-connection .avatar { width:27px; height:27px; border-radius:8px; font-size:10px; }.top-connection__copy { display:grid; gap:0; line-height:1.12; }.top-connection__copy > span { font-size:11px; font-weight:750; }.top-connection__copy small { color:var(--text-faint); font-size:9px; }.top-connection__arrow { color:var(--text-faint); font-size:18px; line-height:1; }
.mobile-space-switch { display:none; }
.page-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:24px; }.page-heading h1 { margin:0; font-size:clamp(25px, 3vw, 34px); line-height:1.25; letter-spacing:-.045em; }.page-heading p { max-width:640px; margin:7px 0 0; color:var(--text-soft); }.eyebrow { margin:0 0 7px; color:var(--violet-deep); font-size:11px; font-weight:750; letter-spacing:.07em; }.muted { color:var(--text-soft); }.meta { color:var(--text-faint); font-size:12px; }.mono { font-family:var(--font-mono); font-size:11px; }

.btn { display:inline-flex; align-items:center; justify-content:center; min-height:36px; gap:7px; padding:7px 12px; color:#fff; background:var(--violet); border:1px solid var(--violet); border-radius:10px; cursor:pointer; font-size:12px; font-weight:700; transition:.16s var(--ease); }.btn:hover { background:var(--violet-deep); border-color:var(--violet-deep); }.btn--secondary { color:var(--text-soft); background:var(--surface); border-color:var(--border-strong); }.btn--secondary:hover { color:var(--violet-deep); background:var(--violet-wash); border-color:var(--violet); }.btn--small { min-height:30px; padding:5px 9px; font-size:11px; }.btn[aria-disabled='true'], .btn:disabled { color:var(--text-faint); background:var(--surface-subtle); border-color:var(--border); cursor:not-allowed; }
.icon-button { display:grid; place-items:center; width:36px; height:36px; color:var(--text-soft); background:var(--surface); border:1px solid var(--border); border-radius:10px; cursor:pointer; }.icon-button:hover { color:var(--violet-deep); border-color:var(--violet); background:var(--violet-wash); }
.pill { display:inline-flex; align-items:center; width:max-content; padding:3px 8px; color:var(--tone); background:var(--tone-bg); border-radius:999px; font-size:11px; font-weight:700; }.pill--plain { color:var(--text-soft); background:var(--surface-subtle); }.context-chip { display:inline-flex; gap:5px; align-items:center; padding:4px 8px; color:var(--text-soft); background:var(--surface-subtle); border-radius:7px; font:11px/1 var(--font-mono); }

.space-hero { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:24px; padding:27px 29px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); box-shadow:var(--shadow-sm); }.space-hero h1 { margin:0; font-size:28px; letter-spacing:-.04em; }.space-hero p { max-width:680px; margin:7px 0 0; color:var(--text-soft); }.space-hero .space-hero__boundary { margin-top:14px; color:var(--text-faint); font-size:11px; }.space-hero__aside { display:flex; flex-direction:column; align-items:flex-end; justify-content:space-between; gap:22px; }.member-stack { display:flex; align-items:center; justify-content:flex-end; padding-top:3px; }.member-stack .avatar { margin-left:-6px; border:2px solid var(--surface); }.member-stack .avatar:first-child { margin-left:0; }.space-hero__actions { display:flex; gap:7px; }
.card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow-sm); }.section-title { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin:0; font-size:14px; }.section-title h2, h2.section-title { margin:0; font-size:14px; }.section-title > span { padding-top:2px; color:var(--text-faint); font-size:11px; font-weight:400; }.activity-event { display:grid; grid-template-columns:32px minmax(0, 1fr); gap:12px; padding:16px 0; border-bottom:1px solid var(--border); }.activity-event:last-child { border-bottom:0; }.event-dot { display:grid; place-items:center; width:26px; height:26px; color:var(--tone); background:var(--tone-bg); border-radius:8px; font-size:12px; font-weight:800; }.event-title { margin:0; font-size:13px; font-weight:700; }.event-text { margin:3px 0 0; color:var(--text-soft); font-size:12px; }.event-meta { margin:5px 0 0; color:var(--text-faint); font-size:10px; }.member-row { display:flex; align-items:center; gap:9px; padding:10px 0; border-top:1px solid var(--border); }.member-row:first-of-type { border-top:0; }.member-row .name { display:block; font-size:12px; font-weight:700; }.member-row .role { display:block; color:var(--text-faint); font-size:11px; }
.work-pulse { overflow:hidden; margin-top:18px; }.work-pulse__head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; padding:18px 20px 15px; border-bottom:1px solid var(--border); }.work-pulse__head h2 { margin:0; font-size:15px; }.work-pulse__head p:not(.eyebrow) { max-width:660px; margin:4px 0 0; color:var(--text-faint); font-size:11px; }.work-pulse__rows { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); }.work-pulse__row { display:grid; grid-template-columns:31px minmax(0,1fr) auto 13px; gap:9px; align-items:center; min-width:0; padding:15px 14px; color:var(--text); background:var(--surface); border:0; border-right:1px solid var(--border); cursor:pointer; text-align:left; }.work-pulse__row:last-child { border-right:0; }.work-pulse__row:hover { background:var(--surface-hover); }.work-pulse__count { display:grid; place-items:center; width:27px; height:27px; color:var(--tone); background:var(--tone-bg); border-radius:8px; font:700 12px/1 var(--font-mono); }.work-pulse__row b, .work-pulse__row div > span { display:block; overflow:hidden; }.work-pulse__row b { font-size:12px; }.work-pulse__row div > span { margin-top:2px; color:var(--text-faint); font-size:10px; line-height:1.4; white-space:nowrap; text-overflow:ellipsis; }.work-pulse__action { color:var(--violet-deep); font-size:10px; font-weight:750; white-space:nowrap; }.work-pulse__row .list-arrow { font-size:15px; }
.space-overview__grid { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(320px,.85fr); gap:16px; margin-top:16px; }.space-trace { padding:18px 20px 4px; }.space-trace__events { margin-top:8px; }.space-overview__side { display:grid; align-content:start; gap:16px; }.space-threads { overflow:hidden; padding:18px 0 0; }.space-threads .section-title { padding:0 18px 13px; }.space-threads__list { border-top:1px solid var(--border); }.space-thread-row { display:grid; grid-template-columns:minmax(0,1fr) auto 14px; gap:9px; align-items:center; width:100%; padding:12px 16px 12px 18px; color:var(--text); background:var(--surface); border:0; border-bottom:1px solid var(--border); cursor:pointer; text-align:left; }.space-thread-row:last-child { border-bottom:0; }.space-thread-row:hover { background:var(--surface-hover); }.space-thread-row b, .space-thread-row div:first-child > span, .space-thread-row time { display:block; }.space-thread-row b { overflow:hidden; font-size:12px; white-space:nowrap; text-overflow:ellipsis; }.space-thread-row div:first-child > span { overflow:hidden; margin-top:2px; color:var(--text-faint); font-size:10px; white-space:nowrap; text-overflow:ellipsis; }.space-thread-row div:nth-child(2) { text-align:right; }.space-thread-row .context-chip { max-width:126px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }.space-thread-row .meta, .space-thread-row time { color:var(--text-faint); font-size:10px; }.space-thread-row time { margin-top:3px; }.space-participants { padding:18px; }.space-participants .section-title { margin-bottom:4px; }.space-participants .btn { margin-top:10px; }

.board-toolbar { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-bottom:17px; }.view-toggle { display:inline-flex; padding:3px; background:var(--surface-subtle); border:1px solid var(--border); border-radius:9px; }.view-toggle button { padding:5px 8px; color:var(--text-faint); background:transparent; border:0; border-radius:6px; cursor:pointer; font-size:11px; }.view-toggle button[aria-pressed='true'] { color:var(--text); background:var(--surface); box-shadow:0 1px 2px rgba(0,0,0,.06); font-weight:700; }
.board { display:grid; grid-template-columns:repeat(4, minmax(230px, 1fr)); gap:14px; overflow-x:auto; padding-bottom:8px; }.lane { min-width:230px; padding:12px; background:var(--surface-subtle); border:1px solid var(--border); border-radius:var(--radius); }.lane__head { display:flex; align-items:center; justify-content:space-between; padding:1px 3px 11px; }.lane__head h2 { margin:0; font-size:12px; }.lane__head span { display:grid; place-items:center; min-width:19px; height:19px; color:var(--text-faint); background:var(--surface); border-radius:999px; font-size:10px; }.task-card { display:block; width:100%; margin-top:8px; padding:15px; color:var(--text); background:var(--surface); border:1px solid var(--border); border-radius:12px; box-shadow:0 1px 2px rgba(20,20,28,.035); cursor:pointer; text-align:left; transition:transform .16s var(--ease), border-color .16s; }.task-card:hover { border-color:#c9c4ec; transform:translateY(-1px); }.task-card h3 { margin:10px 0 8px; font-size:14px; line-height:1.4; letter-spacing:-.02em; }.task-card__people { display:flex; align-items:center; gap:6px; color:var(--text-soft); font-size:11px; }.task-card__people .avatar { width:21px; height:21px; border-radius:7px; font-size:9px; }.task-card__open { display:flex; gap:6px; margin-top:12px; padding-top:10px; color:var(--text-soft); border-top:1px solid var(--border); font-size:11px; }.task-card__open b { color:var(--violet-deep); font-weight:750; }.list-arrow { color:var(--violet); font-size:18px; }

/* Inbox is a re-entry surface: a primary signal followed by compact, provenance-preserving queues. */
.inbox-urgent { overflow:hidden; margin-bottom:18px; background:var(--surface); border:1px solid #d9d5f7; border-radius:var(--radius-lg); box-shadow:var(--shadow-sm); }.inbox-urgent__signal { display:flex; justify-content:space-between; gap:12px; padding:9px 17px; color:#5144bd; background:var(--violet-wash); border-bottom:1px solid #dfdcfb; font-size:11px; font-weight:750; }.inbox-urgent__body { display:flex; justify-content:space-between; gap:24px; padding:21px 22px 17px; }.inbox-urgent__body .eyebrow { margin-bottom:5px; }.inbox-urgent h2 { max-width:720px; margin:0; font-size:19px; letter-spacing:-.035em; }.inbox-urgent__body p:not(.eyebrow) { max-width:690px; margin:6px 0 0; color:var(--text-soft); font-size:13px; }.inbox-urgent--empty > p { margin:0; padding:18px 22px; color:var(--text-soft); font-size:13px; line-height:1.55; }.inbox-urgent__meta { display:flex; flex:0 0 auto; flex-direction:column; align-items:flex-end; gap:7px; color:var(--text-faint); font-size:11px; }.inbox-urgent__foot { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:13px 22px; color:var(--text-soft); background:#fcfcff; border-top:1px solid var(--border); font-size:12px; }
.surface-controls { display:flex; align-items:center; gap:9px; margin:0 0 16px; }.search-field, .filter-field { display:flex; align-items:center; min-height:36px; color:var(--text-faint); background:var(--surface); border:1px solid var(--border-strong); border-radius:10px; box-shadow:0 1px 2px rgba(24,24,32,.02); }.search-field { flex:1 1 360px; max-width:510px; gap:8px; padding:0 10px; }.search-field input { width:100%; min-width:0; padding:7px 0; color:var(--text); background:transparent; border:0; outline:0; font-size:12px; }.search-field input::placeholder { color:var(--text-faint); }.filter-field { gap:8px; padding-left:10px; font-size:11px; font-weight:700; }.filter-field select { min-height:34px; padding:0 26px 0 0; color:var(--text-soft); background:transparent; border:0; outline:0; font-size:12px; cursor:pointer; }.surface-controls--board { margin-bottom:18px; }
.inbox-queues { display:grid; gap:14px; }.inbox-queue { overflow:hidden; }.inbox-queue__head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:16px 18px 13px; }.inbox-queue__head h2 { margin:0; font-size:14px; letter-spacing:-.02em; }.inbox-queue__head p { margin:3px 0 0; color:var(--text-faint); font-size:11px; }.inbox-queue__labels, .inbox-row { display:grid; grid-template-columns:30px minmax(190px,1.15fr) minmax(225px,1.45fr) 92px 122px 20px; gap:12px; align-items:center; }.inbox-queue__labels { padding:8px 18px; color:var(--text-faint); background:var(--surface-subtle); border-top:1px solid var(--border); border-bottom:1px solid var(--border); font:10px/1.2 var(--font-mono); }.inbox-queue__labels span:first-child { grid-column:2; }.inbox-row { width:100%; padding:13px 18px; color:var(--text); background:var(--surface); border:0; border-bottom:1px solid var(--border); cursor:pointer; text-align:left; }.inbox-row:last-child { border-bottom:0; }.inbox-row:hover { background:var(--surface-hover); }.inbox-row__kind { display:grid; place-items:center; width:22px; height:22px; color:var(--tone); background:var(--tone-bg); border-radius:7px; font-size:12px; font-weight:800; }.inbox-row__task b, .inbox-row__task span, .inbox-row__origin > span:last-child { display:block; }.inbox-row__task b { font-size:12px; }.inbox-row__task span, .inbox-row__origin > span:last-child { margin-top:2px; color:var(--text-faint); font-size:10px; }.inbox-row__origin { min-width:0; }.inbox-row__origin .pill { margin-bottom:3px; }.inbox-row__origin > span:last-child { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }.inbox-row time { color:var(--text-faint); font-size:11px; }.inbox-row__action { color:var(--violet-deep); font-size:11px; font-weight:750; }.inbox-queue__empty { margin:0; padding:18px; color:var(--text-faint); font-size:12px; }

/* Threads use the viewport as a conversation canvas; lists and task context stay intentionally quiet. */
.main:has(.thread-workspace) { display:flex; flex-direction:column; min-height:100vh; padding-bottom:28px; }.main:has(.thread-workspace) .topbar { flex:0 0 auto; }.thread-workspace { display:grid; flex:1 1 auto; grid-template-columns:196px minmax(0,1fr) 180px; min-height:0; overflow:hidden; }.thread-workspace__list { overflow:auto; background:#fcfcfe; border-right:1px solid var(--border); }.thread-list__head { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px 13px; border-bottom:1px solid var(--border); }.thread-list__head .eyebrow { margin:0; }.thread-list__head h2 { display:none; }.thread-list__item { display:block; width:100%; padding:11px 13px; color:var(--text); background:transparent; border:0; border-bottom:1px solid var(--border); cursor:pointer; text-align:left; }.thread-list__item:hover { background:var(--surface-hover); }.thread-list__item[aria-current='page'] { background:var(--violet-wash); box-shadow:inset 3px 0 0 var(--violet); }.thread-list__title, .thread-list__meta { display:flex; align-items:center; justify-content:space-between; gap:8px; }.thread-list__title b { font-size:12px; }.thread-count { display:grid; place-items:center; min-width:18px; height:18px; color:var(--violet-deep); background:#dfdcfb; border-radius:999px; font-size:10px; font-weight:800; }.thread-list__item p { overflow:hidden; margin:3px 0 0; color:var(--text-soft); font-size:11px; white-space:nowrap; text-overflow:ellipsis; }.thread-list__meta { margin-top:5px; color:var(--text-faint); font-size:10px; }.thread-workspace__reading { display:flex; min-width:0; min-height:0; flex-direction:column; background:linear-gradient(180deg,#fff 0%,#fdfdff 100%); }.thread-reading__head { display:flex; flex:0 0 auto; align-items:center; justify-content:space-between; gap:16px; padding:12px 20px; border-bottom:1px solid var(--border); }.thread-reading__head .eyebrow { margin:0 0 2px; font-size:10px; }.thread-reading__head h2 { margin:0; font-size:16px; line-height:1.3; letter-spacing:-.035em; }.thread-reading__head p:not(.eyebrow) { display:none; }.thread-reading__messages { display:grid; flex:1 1 auto; align-content:start; gap:11px; min-height:0; overflow:auto; padding:22px clamp(18px, 3vw, 34px); }.thread-message { display:grid; grid-template-columns:28px minmax(0,1fr); gap:8px; align-items:start; max-width:min(88%, 720px); }.thread-message[data-kind='ai'] { justify-self:start; }.thread-message[data-self='true'] { justify-self:end; grid-template-columns:minmax(0,1fr) 28px; }.thread-message[data-self='true'] .avatar { grid-column:2; }.thread-message[data-self='true'] .thread-message__body { grid-column:1; grid-row:1; }.thread-message .avatar { width:26px; height:26px; border-radius:8px; font-size:10px; }.thread-message__body { min-width:0; padding:8px 11px 9px; background:#f5f4fb; border:1px solid #e6e3f0; border-radius:4px 13px 13px 13px; }.thread-message[data-kind='ai'] .thread-message__body { background:#f7f5ff; border-color:#ddd8fa; }.thread-message[data-self='true'] .thread-message__body { background:var(--violet); border-color:var(--violet); border-radius:13px 4px 13px 13px; }.thread-message__meta { display:flex; align-items:center; gap:6px; }.thread-message__meta b { font-size:10px; }.thread-message__meta time { margin-left:auto; color:var(--text-faint); font-size:9px; }.thread-message[data-self='true'] .thread-message__meta b, .thread-message[data-self='true'] .thread-message__meta time, .thread-message[data-self='true'] p { color:#fff; }.source-badge { padding:2px 5px; color:var(--slate); background:var(--slate-wash); border-radius:5px; font:9px/1.25 var(--font-mono); }.source-badge[data-kind='ai'] { color:var(--violet-deep); background:#e9e5ff; }.thread-message[data-self='true'] .source-badge { color:#fff; background:rgba(255,255,255,.18); }.thread-message p { margin:4px 0 0; color:var(--text-soft); font-size:12px; line-height:1.58; }.thread-composer { flex:0 0 auto; margin:0 clamp(18px, 3vw, 34px) 18px; padding:10px 12px; background:var(--surface); border:1px solid #d9d5ec; border-radius:14px; box-shadow:0 4px 12px rgba(35,28,80,.05); }.thread-composer label { display:block; margin-bottom:4px; color:var(--text-soft); font-size:10px; font-weight:750; }.thread-composer textarea { display:block; width:100%; resize:vertical; padding:0; color:var(--text); background:transparent; border:0; outline:0; font-size:12px; line-height:1.55; }.thread-composer textarea::placeholder { color:var(--text-faint); }.thread-composer__foot { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:7px; padding-top:7px; color:var(--text-faint); border-top:1px solid var(--border); font-size:10px; }.thread-workspace__context { overflow:auto; padding:14px 13px; background:#fcfcfe; border-left:1px solid var(--border); }.thread-workspace__context .eyebrow { margin-bottom:4px; font-size:10px; }.thread-workspace__context h2 { margin:2px 0 8px; font-size:12px; line-height:1.45; }.thread-workspace__context > p:not(.eyebrow) { margin:8px 0 13px; color:var(--text-soft); font-size:11px; }.context-mini-list { display:grid; gap:7px; margin:13px 0; }.context-mini-list div { padding-bottom:7px; border-bottom:1px solid var(--border); }.context-mini-list dt { color:var(--text-faint); font-size:10px; }.context-mini-list dd { margin:2px 0 0; color:var(--text-soft); font-size:11px; }

/* The list view is an operational index, not a second generic dashboard. */
.task-card__activity { display:block; margin-top:9px; color:var(--text-faint); font-size:10px; }.task-table-groups { display:grid; gap:14px; }.task-table-group { overflow:hidden; }.task-table-group__head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:16px 18px 13px; }.task-table-group__head h2 { margin:0; font-size:14px; }.task-table-group__head p { margin:3px 0 0; color:var(--text-faint); font-size:11px; }.task-table__labels, .task-table__row { display:grid; grid-template-columns:minmax(190px,1.1fr) minmax(112px,.65fr) minmax(210px,1.15fr) minmax(145px,.8fr) minmax(150px,.85fr) 18px; gap:14px; align-items:center; }.task-table__labels { padding:8px 18px; color:var(--text-faint); background:var(--surface-subtle); border-top:1px solid var(--border); border-bottom:1px solid var(--border); font:10px/1.2 var(--font-mono); }.task-table__row { width:100%; padding:13px 18px; color:var(--text); background:var(--surface); border:0; border-bottom:1px solid var(--border); cursor:pointer; text-align:left; }.task-table__row:last-child { border-bottom:0; }.task-table__row:hover { background:var(--surface-hover); }.task-table__task b, .task-table__origin span, .task-table__origin b, .task-table__activity time, .task-table__activity span, .task-table__state > span:last-child { display:block; }.task-table__task b { margin-bottom:5px; font-size:12px; }.task-table__responsibility { display:flex; align-items:center; gap:7px; color:var(--text-soft); font-size:11px; }.task-table__responsibility .avatar { width:22px; height:22px; border-radius:7px; font-size:9px; }.task-table__origin span, .task-table__activity span, .task-table__state > span:last-child { color:var(--text-faint); font-size:10px; }.task-table__origin b { margin-top:2px; color:var(--text-soft); font-size:11px; }.task-table__activity time { color:var(--text-soft); font-size:11px; }.task-table__activity span { margin-top:2px; }.task-table__state .pill { margin-bottom:3px; }.task-table__empty { margin:0; padding:18px; color:var(--text-faint); font-size:12px; }

.decision-grid { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:22px; }.decision-main { display:grid; gap:18px; }.context-version { padding:22px; }.context-version__top, .proposal__top { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }.context-version h2, .proposal h2 { margin:7px 0 0; font-size:17px; letter-spacing:-.025em; }.fact-list { display:grid; gap:8px; margin:17px 0 0; padding:0; list-style:none; }.fact-list li { display:flex; gap:9px; color:var(--text-soft); font-size:13px; }.fact-list li::before { flex:0 0 auto; content:'·'; color:var(--violet); font-weight:800; }.proposal { padding:22px; border-color:#dcd9fa; }.proposal__note { margin:12px 0; padding:11px; color:#514f64; background:#f7f6ff; border-radius:10px; font-size:12px; }.proposal__evidence { display:flex; flex-wrap:wrap; gap:6px; margin:13px 0 0; }.acceptance-gate { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-top:17px; padding:15px; background:var(--violet-wash); border:1px solid #dedafc; border-radius:12px; }.acceptance-gate strong { display:block; color:var(--violet-deep); font-size:13px; }.acceptance-gate p { margin:3px 0 0; color:var(--text-soft); font-size:11px; }.evidence-panel { padding:18px; }.evidence-panel h2 { margin:0; font-size:13px; }.evidence-link { display:block; width:100%; padding:12px 0; color:var(--text); background:none; border:0; border-bottom:1px solid var(--border); cursor:pointer; text-align:left; }.evidence-link:hover b { color:var(--violet-deep); }.evidence-link b, .evidence-link span { display:block; }.evidence-link b { font-size:12px; }.evidence-link span { margin-top:3px; color:var(--text-faint); font-size:11px; }.thread-panel { padding:18px 20px; }.thread-line { display:grid; grid-template-columns:28px minmax(0,1fr); gap:9px; padding:12px 0; border-top:1px solid var(--border); }.thread-line:first-of-type { margin-top:10px; }.thread-line p { margin:0; color:var(--text-soft); font-size:12px; }.thread-line b { display:block; margin-bottom:2px; font-size:11px; }.thread-line time { color:var(--text-faint); font-size:10px; }
.ai-actions { position:relative; }.ai-popover { position:absolute; right:0; top:43px; z-index:5; width:250px; padding:7px; background:var(--surface); border:1px solid var(--border-strong); border-radius:13px; box-shadow:var(--shadow-float); }.ai-popover p { margin:5px 8px 7px; color:var(--text-faint); font-size:10px; }.ai-popover button { width:100%; padding:9px 8px; color:var(--text-soft); background:none; border:0; border-radius:8px; cursor:pointer; text-align:left; font-size:12px; }.ai-popover button:hover { color:var(--violet-deep); background:var(--violet-wash); }.ai-popover button small { display:block; margin-top:2px; color:var(--text-faint); font-size:10px; }

.nodes-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(255px, 1fr)); gap:14px; }.node-card { padding:18px; }.node-card__top { display:flex; gap:10px; align-items:center; }.node-card h2 { margin:0; font-size:15px; }.node-card p { margin:10px 0; color:var(--text-soft); font-size:12px; }.node-card__foot { display:flex; align-items:center; justify-content:space-between; gap:8px; padding-top:12px; border-top:1px solid var(--border); color:var(--text-faint); font-size:11px; }.node-card__foot > span { min-width:0; }.node-card__foot .btn { flex:0 0 auto; white-space:nowrap; }
.side-info { overflow:hidden; padding:18px; }.side-info > h3:first-child { margin:0 0 8px; font-size:15px; }
.empty-state { padding:35px; color:var(--text-soft); background:var(--surface); border:1px dashed var(--border-strong); border-radius:var(--radius); text-align:center; }

.scrim { position:fixed; inset:0; z-index:20; background:rgba(26,25,36,.28); backdrop-filter:blur(2px); }.overlay-panel { position:fixed; right:20px; top:20px; bottom:20px; z-index:21; width:min(410px, calc(100vw - 40px)); overflow:auto; padding:22px; background:var(--surface); border:1px solid var(--border); border-radius:20px; box-shadow:var(--shadow-float); }.overlay-panel__head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:17px; }.overlay-panel__head h2 { margin:3px 0 0; font-size:19px; }.queue-item { width:100%; padding:13px 0; background:none; border:0; border-top:1px solid var(--border); cursor:pointer; text-align:left; }.queue-item:hover b { color:var(--violet-deep); }.queue-item b, .queue-item span { display:block; }.queue-item b { font-size:13px; }.queue-item span { margin-top:3px; color:var(--text-faint); font-size:11px; }.picker-row { display:flex; align-items:center; gap:10px; padding:11px 0; border-top:1px solid var(--border); }.picker-row > div { min-width:0; }.picker-row .pick, .picker-row > .pill { flex:0 0 auto; margin-left:auto; white-space:nowrap; }.picker-row .pick { color:var(--violet-deep); background:none; border:0; cursor:pointer; font-size:11px; font-weight:700; }
.notice { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:18px; padding:10px 12px; color:#4e4975; background:var(--violet-wash); border:1px solid #dfdcfb; border-radius:10px; font-size:12px; }.notice button { padding:0; color:inherit; background:none; border:0; cursor:pointer; text-decoration:underline; }

@media (max-width: 1080px) { .thread-workspace { grid-template-columns:180px minmax(0,1fr); grid-template-rows:minmax(0,1fr) auto; }.thread-workspace__context { grid-column:1 / -1; display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:8px 16px; max-height:116px; padding:11px 14px; border-top:1px solid var(--border); border-left:0; }.thread-workspace__context .eyebrow, .thread-workspace__context h2, .thread-workspace__context > p { grid-column:1; }.thread-workspace__context > p:not(.eyebrow) { margin:0; }.thread-workspace__context .pill, .thread-workspace__context .context-mini-list, .thread-workspace__context button { grid-column:auto; }.thread-workspace__context .pill { align-self:center; }.thread-workspace__context .context-mini-list { grid-row:1 / span 3; min-width:190px; margin:0; }.thread-workspace__context button { align-self:center; justify-self:end; }.work-pulse__rows { grid-template-columns:repeat(2, minmax(0,1fr)); }.work-pulse__row:nth-child(2) { border-right:0; }.work-pulse__row:nth-child(-n+2) { border-bottom:1px solid var(--border); }.space-overview__grid { grid-template-columns:minmax(0,1fr) 320px; }.task-table__labels, .task-table__row { grid-template-columns:minmax(185px,1.1fr) 104px minmax(180px,1fr) minmax(135px,.75fr) 18px; }.task-table__labels span:nth-child(5), .task-table__row > :nth-child(5) { display:none; } }
@media (max-width: 930px) { .app-shell { grid-template-columns:1fr; }.sidebar { position:sticky; z-index:10; flex-direction:row; align-items:center; height:auto; min-height:64px; padding:8px 14px; border-right:0; border-bottom:1px solid var(--border); }.workspace-label, .side-space, .viewer-button span:last-child { display:none; }.side-nav { display:flex; gap:1px; margin-left:auto; }.side-nav button { width:auto; padding:9px; }.side-nav button span:not(.nav-icon):not(.nav-count) { display:none; }.nav-count { position:absolute; margin: -17px 0 0 14px; }.viewer-button { width:auto; margin:0 0 0 6px; padding:2px; background:none; border:0; }.main { padding-top:23px; }.main:has(.thread-workspace) { min-height:calc(100vh - 64px); }.decision-grid, .space-overview__grid { grid-template-columns:1fr; }.space-overview__side { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }.board { grid-template-columns:repeat(4, 255px); }.inbox-queue__labels, .inbox-row { grid-template-columns:28px minmax(180px,1fr) minmax(190px,1.15fr) 95px 20px; }.inbox-queue__labels span:nth-child(5), .inbox-row > :nth-child(5) { display:none; }.crumb__space, .crumb i:first-of-type { display:none; }.mobile-space-switch { display:inline-flex; align-items:center; gap:5px; min-width:0; max-width:150px; margin-left:auto; padding:6px 8px; color:var(--text-soft); background:var(--surface-subtle); border:1px solid var(--border); border-radius:8px; cursor:pointer; font-size:11px; font-weight:700; }.mobile-space-switch > span:first-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.top-connection { margin-left:0; } }
@media (max-width: 690px) { .thread-workspace { grid-template-columns:1fr; }.thread-workspace__list { border-right:0; border-bottom:1px solid var(--border); }.thread-list { display:flex; overflow-x:auto; }.thread-list__item { flex:0 0 210px; border-right:1px solid var(--border); border-bottom:0; }.thread-workspace__context { display:block; }.thread-workspace__context .context-mini-list { min-width:0; margin:15px 0; }.thread-workspace__context button { margin-top:2px; }.work-pulse__rows, .space-overview__side { grid-template-columns:1fr; }.work-pulse__row { border-right:0; border-bottom:1px solid var(--border); }.work-pulse__row:last-child { border-bottom:0; }.inbox-queue__labels { display:none; }.inbox-row { grid-template-columns:28px minmax(0,1fr) 20px; gap:10px; }.inbox-row__origin, .inbox-row time { display:none; }.inbox-row__action { grid-column:2; margin-top:-8px; }.task-table__labels { display:none; }.task-table__row { grid-template-columns:minmax(0,1fr) 22px; gap:8px; }.task-table__row > :not(.task-table__task):not(.list-arrow) { display:none; }.task-table__task { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; align-items:center; }.task-table__task b { margin:0; }.task-table__task .context-chip { white-space:nowrap; } }
@media (max-width: 590px) { .main { padding:18px 14px 42px; }.topbar { margin-bottom:20px; }.topbar .crumb { max-width:62%; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }.page-heading, .space-hero { display:block; }.space-hero { padding:20px; }.space-hero__aside { display:block; margin-top:17px; }.member-stack { justify-content:flex-start; }.space-hero__actions { margin-top:15px; }.page-heading h1 { font-size:25px; }.work-pulse__head { display:block; }.work-pulse__head > .context-chip { display:inline-flex; margin-top:11px; }.space-trace { padding-right:14px; padding-left:14px; }.board-toolbar { align-items:flex-start; flex-direction:column; }.acceptance-gate { display:block; }.acceptance-gate .btn { margin-top:12px; }.overlay-panel { top:auto; right:10px; bottom:10px; left:10px; width:auto; max-height:85vh; }.nodes-grid { grid-template-columns:1fr; }.inbox-urgent__body, .inbox-urgent__foot { display:block; }.inbox-urgent__meta { align-items:flex-start; flex-direction:row; margin-top:12px; }.inbox-urgent__foot .btn { width:100%; margin-top:10px; }.surface-controls { align-items:stretch; flex-direction:column; }.search-field { max-width:none; }.filter-field { width:100%; justify-content:space-between; }.thread-reading__head { display:block; }.thread-reading__head > .context-chip { display:inline-flex; margin-top:9px; }.thread-composer__foot { align-items:flex-start; flex-direction:column; }.thread-composer__foot .btn { align-self:stretch; }.thread-reading__messages, .thread-composer { margin-right:14px; margin-left:14px; }.thread-reading__messages { padding-right:0; padding-left:0; }.thread-list__head { padding-right:14px; padding-left:14px; }.task-table-group__head { padding-right:14px; padding-left:14px; }.task-table__row { padding-right:14px; padding-left:14px; } }
@media (min-width: 1090px) {
  .main:has(.thread-workspace) { height:100vh; min-height:0; }
  .thread-workspace { grid-template-columns:206px minmax(0, 1fr) 190px; }
  .thread-reading__messages { padding-right:clamp(32px, 8vw, 150px); padding-left:clamp(32px, 7vw, 132px); }
  .thread-conversation__day { justify-self:center; margin:1px 0 8px; color:var(--text-faint); font:10px/1 var(--font-mono); }
  .thread-message { width:fit-content; max-width:min(76%, 650px); }
  .thread-message__body { box-shadow:0 1px 1px rgba(35,28,80,.025); }
  .thread-composer { margin-right:clamp(32px, 7vw, 132px); margin-left:clamp(32px, 7vw, 132px); }
}
.thread-conversation__day { justify-self:center; margin:1px 0 8px; color:var(--text-faint); font:10px/1 var(--font-mono); }
.thread-composer__quick { display:flex; gap:5px; margin:-1px 0 7px; }.thread-composer__quick button { padding:3px 7px; color:var(--text-soft); background:var(--surface-subtle); border:1px solid var(--border); border-radius:999px; cursor:pointer; font-size:10px; }.thread-composer__quick button:hover { color:var(--violet-deep); background:var(--violet-wash); border-color:#d8d3f7; }

/* A Thread is a full conversation canvas, never a card containing a conversation. */
.main:has(.thread-workspace) { height:100vh; min-height:0; padding:0; background:var(--surface); }
.main:has(.thread-workspace) .topbar { margin:0; padding:0 28px; background:var(--surface); border-bottom:1px solid var(--border); }
.thread-workspace { grid-template-columns:206px minmax(0,1fr); background:var(--surface); border:0; border-radius:0; box-shadow:none; }
.thread-reading__actions { display:flex; align-items:center; gap:8px; flex:0 0 auto; }
@media (min-width:1090px) { .thread-reading__messages { padding-right:clamp(32px, 6vw, 96px); padding-left:clamp(32px, 6vw, 96px); }.thread-composer { margin-right:clamp(32px, 6vw, 96px); margin-left:clamp(32px, 6vw, 96px); } }
@media (max-width:1080px) { .thread-workspace { grid-template-columns:180px minmax(0,1fr); grid-template-rows:none; } }
@media (max-width:930px) { .main:has(.thread-workspace) { height:auto; min-height:calc(100vh - 64px); } }
@media (max-width:690px) { .main:has(.thread-workspace) { padding:18px 14px 42px; background:var(--bg); }.main:has(.thread-workspace) .topbar { margin:0 0 20px; padding:0; background:transparent; border-bottom:0; }.thread-workspace { grid-template-columns:1fr; border:1px solid var(--border); border-radius:16px; }.thread-reading__actions { margin-top:9px; }.thread-reading__head { display:block; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior:auto !important; transition-duration:.01ms !important; animation-duration:.01ms !important; } }

/* Layout contracts: a compact desktop must not hide a lane or let a chooser
   cover a neighbouring input.  These follow the view styles on purpose. */
.surface-controls--board > .dropdown {
  width: 232px;
  min-width: 232px;
  margin-left: auto;
}

/* Inbox 검색과 범위 선택은 한 개의 작업 도구다. 검색이 주이고,
   범위 선택은 보조이므로 어느 폭에서도 3:1 읽기 비율을 유지한다. */
.surface-controls--inbox {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr);
  gap: 12px;
  max-width: 920px;
}

.surface-controls--inbox .search-field,
.surface-controls--inbox .dropdown {
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
}

.surface-controls--inbox .search-field,
.surface-controls--inbox .dropdown__trigger {
  min-height: 46px;
}

.dropdown--inbox-queue .dropdown__label {
  display: none;
}

.workflow-stacked-form > .dropdown--inline .dropdown__menu {
  right: auto;
  left: 0;
  width: 100%;
  min-width: 0;
}

.workflow-stacked-form > .dropdown--inline .dropdown__option {
  min-height: 38px;
  padding: 8px 9px;
  line-height: 1.35;
  white-space: normal;
}

.node-card__foot--action .btn {
  min-width: 92px;
}

/* Bridge 상태는 어느 Node에서도 같은 점·색·라벨 순서를 사용한다. */
.bridge-status {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 6px;
  min-height: 25px;
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
}

.bridge-status__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.bridge-status[data-state='waiting'] {
  color: #a76812;
  background: #fff7e8;
  border-color: #f3dfb8;
}

.bridge-status[data-state='connected'] {
  color: #207a5b;
  background: #edf9f3;
  border-color: #cfeade;
}

.bridge-status[data-state='revoked'] {
  color: #6c6a78;
  background: #f2f2f5;
  border-color: #dedee5;
}

@media (max-width: 1420px) {
  .board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .lane { min-width: 0; }
}

@media (max-width: 700px) {
  .board { grid-template-columns: 1fr; }
  .surface-controls--board > .dropdown {
    width: 100%;
    min-width: 0;
    margin-left: 0;
  }

  .surface-controls--inbox {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------------- */
/* Shared system guardrails                                                    */
/* These rules deliberately sit after view styling: a new product surface      */
/* inherits the same interaction and re-entry behavior without duplicating it. */
/* -------------------------------------------------------------------------- */

button,
input,
textarea,
select {
  font: inherit;
}

button,
[role='button'],
select {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[role='button']:focus-visible,
[tabindex]:not([tabindex='-1']):focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring);
}

/* Inputs intentionally have no inner outline. Their whole field is focused. */
.search-field:focus-within,
.filter-field:focus-within,
.thread-composer:focus-within {
  border-color: var(--violet);
  box-shadow: var(--focus-ring);
}

.search-field input:focus-visible,
.filter-field select:focus-visible,
.thread-composer textarea:focus-visible {
  box-shadow: none;
}

/* Shared compact selector.  Values open into an explicit action menu rather
   than looking like a text field with a browser-native select inside it. */
.dropdown {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  min-width: 196px;
}

.dropdown__trigger {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 46px;
  gap: 8px;
  padding: 0 11px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  box-shadow: 0 1px 2px rgba(24, 24, 32, .02);
  cursor: pointer;
  text-align: left;
}

.dropdown__trigger:hover {
  background: var(--surface-hover);
  border-color: #c9c4e8;
}

.dropdown[data-open='true'] .dropdown__trigger,
.dropdown__trigger:focus-visible {
  border-color: var(--violet);
  box-shadow: var(--focus-ring);
}

.dropdown__label {
  flex: 0 0 auto;
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 750;
}

.dropdown__value {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.control-chevron {
  display: grid;
  flex: 0 0 16px;
  width: 16px;
  min-width: 16px;
  align-self: center;
  place-items: center;
  color: var(--text-faint);
}

.control-chevron::before {
  width: 6px;
  height: 6px;
  border-right: 1.75px solid currentColor;
  border-bottom: 1.75px solid currentColor;
  content: '';
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform 140ms ease;
}

.dropdown[data-open='true'] .dropdown__chevron::before {
  transform: rotate(225deg);
}

.side-space__chevron,
.mobile-space-switch__chevron {
  width: 14px;
  min-width: 14px;
  flex-basis: 14px;
}

.side-space__chevron::before,
.mobile-space-switch__chevron::before {
  width: 5px;
  height: 5px;
}

.dropdown[data-disabled='true'] .dropdown__trigger {
  color: var(--text-faint);
  background: var(--surface-subtle);
  border-color: var(--border);
  cursor: not-allowed;
}

.dropdown--field {
  width: fit-content;
  min-width: 180px;
  max-width: 100%;
}

.dropdown--inline {
  width: fit-content;
  min-width: 150px;
}

.dropdown--field .dropdown__trigger,
.dropdown--inline .dropdown__trigger {
  min-height: 38px;
}

.dropdown--field .dropdown__label,
.dropdown--inline .dropdown__label {
  display: none;
}

.dropdown__menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  display: grid;
  width: max(100%, 214px);
  gap: 3px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  box-shadow: 0 14px 30px rgba(31, 27, 61, .14);
}

.dropdown__menu[hidden] {
  display: none;
}

.dropdown__option {
  min-height: 34px;
  padding: 0 9px;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  text-align: left;
}

.dropdown__option:hover,
.dropdown__option:focus-visible {
  color: var(--violet-deep);
  background: var(--violet-wash);
  border-color: #dfdcfb;
}

.dropdown__option[aria-checked='true']::after {
  float: right;
  color: var(--violet);
  content: '✓';
}

@media (max-width: 590px) {
  .dropdown {
    width: 100%;
  }
}

/* The reply field is a single writing action: write first, then choose an
   optional starter or send.  It must not read like a policy/information card. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.thread-composer {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-color: #d9d5ec;
  border-radius: 12px;
}

.thread-composer textarea {
  min-height: 78px;
  padding: 10px 15px 12px;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.thread-composer__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  background: #fbfbfd;
  border-top: 1px solid var(--border);
}

.thread-composer__intent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 15px 1px;
}

.thread-composer__intent-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--violet-deep);
  background: var(--violet-wash);
  border-radius: 6px;
  font: 700 12px/1 var(--font-mono);
}

.thread-composer__intent b {
  display: block;
  color: var(--text);
  font-size: 11px;
}

.thread-composer__intent p {
  margin: 2px 0 0;
  color: var(--text-faint);
  font-size: 10px;
  line-height: 1.4;
}

.thread-composer__quick,
.thread-composer__branches,
.thread-composer__submit {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.thread-composer__quick {
  margin: 0;
  flex-wrap: wrap;
}

.thread-composer__branches { gap: 5px; }

.thread-composer__branches button {
  min-height: 29px;
  padding: 4px 8px;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 7px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.thread-composer__branches button:hover:not(:disabled) {
  color: var(--violet-deep);
  background: var(--violet-wash);
  border-color: #d8d3f7;
}

.thread-composer__quick button {
  min-height: 28px;
  padding: 4px 8px;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 10px;
}

.thread-composer__submit {
  flex: 0 0 auto;
}

.thread-composer__submit > span {
  color: var(--text-faint);
  font-size: 10px;
  white-space: nowrap;
}

.thread-composer__submit .btn {
  min-height: 30px;
  padding-inline: 11px;
}

.dropdown--thread-mention {
  min-width: 116px;
}

.dropdown--thread-mention .dropdown__trigger {
  min-height: 30px;
  padding-left: 8px;
  font-size: 11px;
}

.dropdown--thread-mention .dropdown__value {
  font-size: 11px;
}

.thread-message__mention {
  max-width: 112px;
  overflow: hidden;
  padding: 2px 5px;
  color: var(--violet-deep);
  background: var(--violet-wash);
  border-radius: 5px;
  font: 9px/1.25 var(--font-mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-message[data-self='true'] .thread-message__mention {
  color: #fff;
  background: rgba(255, 255, 255, .18);
}

.thread-draft-link {
  display: block;
  max-width: 100%;
  margin-top: 6px;
  padding: 0;
  overflow: hidden;
  color: var(--violet-deep);
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  cursor: pointer;
  font: 700 11px/1.4 var(--font-sans);
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-message[data-self='true'] .thread-draft-link { color: #fff; }

@media (max-width: 590px) {
  .thread-composer__toolbar {
    align-items: flex-end;
    flex-wrap: wrap;
  }

  .thread-composer__quick {
    flex: 1 1 100%;
  }

  .thread-composer__branches { flex: 1 1 100%; }

  .thread-composer__submit {
    width: 100%;
    margin-left: 0;
  }

  .thread-composer__submit > span {
    display: none;
  }

  .thread-composer__submit .dropdown--thread-mention {
    flex: 1 1 auto;
    min-width: 0;
  }

  .thread-composer__submit .btn {
    flex: 0 0 auto;
  }
}

/* Use ghost ink only where text is decorative rather than operational. */
.workspace-label,
.side-space__label,
.crumb i {
  color: var(--text-ghost);
}

.surface-controls,
.board-toolbar,
.top-actions,
.thread-reading__actions {
  min-width: 0;
}

.search-field,
.filter-field,
.thread-composer,
.overlay-panel,
.card,
.lane,
.task-table-group,
.inbox-queue {
  min-width: 0;
}

/* Labels should truncate before they force the desktop shell horizontally. */
.side-space__name,
.viewer-button span:last-child,
.queue-item b,
.queue-item span,
.picker-row b,
.picker-row .meta,
.node-card__foot > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* The primary human decision is clear; non-acceptance is explicit but quiet. */
.proposal-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-2);
  max-width: 286px;
}

.proposal-actions .btn:first-child {
  flex: 1 0 100%;
}

.proposal-actions .btn--small {
  flex: 1 1 126px;
  min-width: 0;
}

/* Space, Task, and Node surfaces share a quiet operational grammar. */
.space-trace__intro {
  margin: var(--space-2) 0 0;
  color: var(--text-soft);
  font-size: var(--type-meta);
}

.participant-group + .participant-group {
  margin-top: var(--space-4);
}

.participant-group__label {
  margin: 0;
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .07em;
}

.space-participants__note {
  margin: var(--space-2) 0 var(--space-3);
  color: var(--text-soft);
  font-size: var(--type-label);
  line-height: 1.55;
}

.space-participants__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.task-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

/* Thread는 대화가 주인 화면이다. 목록은 탐색만, 작성은 본문에서 한다. */
.thread-workspace {
  grid-template-columns: 232px minmax(0, 1fr);
}

.thread-workspace__list {
  min-width: 0;
}

.thread-list__head-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.thread-new-button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  color: var(--violet-deep);
  background: var(--violet-wash);
  border: 1px solid #ddd8fa;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.thread-new-button:hover {
  background: #e8e5ff;
  border-color: var(--violet);
}

.thread-reading__head {
  align-items: flex-start;
  gap: 20px;
  min-height: 78px;
  padding: 18px 24px;
}

.thread-reading__head > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.thread-reading__head h2 {
  overflow-wrap: anywhere;
}

.thread-reading__actions {
  flex: 0 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: min(52%, 430px);
}

.thread-compose-canvas {
  display: grid;
  flex: 1 1 auto;
  place-items: start center;
  padding: clamp(44px, 8vw, 112px) 24px;
  overflow: auto;
}

.thread-start--canvas {
  width: min(100%, 640px);
  padding: clamp(24px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.thread-start__intro h2 {
  margin: 3px 0 0;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -.04em;
}

.thread-start__intro p:not(.eyebrow) {
  max-width: 430px;
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 13px;
}

.thread-start--canvas label {
  gap: 7px;
  margin-top: 18px;
  color: var(--text-soft);
  font-size: 12px;
}

.thread-start--canvas input,
.thread-start--canvas textarea {
  min-height: 42px;
  padding: 10px 12px;
  font-size: 13px;
}

.thread-start--canvas textarea {
  min-height: 92px;
}

.thread-start__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 22px;
}

.thread-workspace--empty {
  display: grid;
  grid-template-columns: minmax(200px, .75fr) minmax(0, 1.25fr);
  gap: clamp(28px, 7vw, 96px);
  align-items: center;
  width: min(100%, 980px);
  min-height: min(620px, calc(100vh - 96px));
  margin: 0 auto;
  padding: clamp(32px, 8vw, 96px) clamp(24px, 6vw, 72px);
  overflow: visible;
}

.main:has(.thread-workspace--empty) {
  height: auto;
  min-height: 100vh;
  padding: 0;
}

.thread-empty-state .eyebrow { margin-bottom: 8px; }
.thread-empty-state h2 { margin: 0; font-size: clamp(26px, 4vw, 42px); letter-spacing: -.055em; line-height: 1.16; }
.thread-empty-state p:not(.eyebrow) { margin: 14px 0 0; color: var(--text-soft); font-size: 14px; line-height: 1.7; }
.thread-workspace--empty .thread-start { align-self: center; }

@media (max-width: 900px) {
  .thread-workspace { grid-template-columns: 202px minmax(0, 1fr); }
  .thread-reading__head { padding: 16px 18px; }
  .thread-reading__actions { max-width: 58%; }
}

@media (max-width: 690px) {
  .thread-workspace { grid-template-columns: 1fr; }
  .thread-reading__head { min-height: 0; }
  .thread-reading__actions { max-width: none; justify-content: flex-start; }
  .thread-workspace--empty { grid-template-columns: 1fr; min-height: 0; padding: 34px 20px 44px; }
  .thread-compose-canvas { padding: 24px 16px; }
  .thread-start--canvas { padding: 22px; }
}

.lane__head > div {
  min-width: 0;
}

.lane__head p {
  margin: 3px 0 0;
  color: var(--text-faint);
  font-size: 10px;
  line-height: 1.35;
}

.lane__empty {
  margin: 0;
  padding: var(--space-4) var(--space-2) var(--space-2);
  color: var(--text-faint);
  font-size: var(--type-label);
  text-align: center;
}

.node-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.85fr);
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-5);
  margin-bottom: var(--space-6);
  background: linear-gradient(135deg, var(--surface) 0%, #fbfaff 100%);
}

.node-summary__identity {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.node-summary__identity .eyebrow {
  margin-bottom: 2px;
}

.node-summary__identity h2 {
  margin: 0;
  font-size: 15px;
}

.node-summary__identity p:last-child {
  margin: 3px 0 0;
  color: var(--text-soft);
  font-size: var(--type-label);
}

.node-summary__metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-left: 1px solid var(--border);
}

.node-summary__metrics > div {
  min-width: 0;
  padding: 2px var(--space-3);
  border-right: 1px solid var(--border);
}

.node-summary__metrics > div:last-child {
  border-right: 0;
}

.node-summary__metrics strong,
.node-summary__metrics span {
  display: block;
}

.node-summary__metrics strong {
  color: var(--violet-deep);
  font: 750 20px/1 var(--font-mono);
  letter-spacing: -.05em;
}

.node-summary__metrics span {
  margin-top: 5px;
  color: var(--text-faint);
  font-size: 10px;
  line-height: 1.35;
}

.node-section {
  margin-top: var(--space-6);
}

.node-section > .section-title {
  margin-bottom: var(--space-3);
}

.node-people {
  padding: 4px var(--space-5);
}

.node-card__top > div {
  min-width: 0;
}

.node-card {
  display: flex;
  flex-direction: column;
}

.node-card__top {
  align-items: flex-start;
  gap: 12px;
  min-height: 48px;
}

.node-card__top > .avatar {
  margin-top: 2px;
}

.node-card__top .eyebrow {
  margin: 1px 0 4px;
  line-height: 1.2;
}

.node-card h2 {
  font-size: 17px;
  line-height: 1.28;
  letter-spacing: -.025em;
}

.node-card > p {
  margin: 13px 0 0;
}

.node-card__details {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-4) 0;
  padding: var(--space-3);
  background: var(--surface-subtle);
  border-radius: var(--radius-sm);
}

.node-card__details div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: var(--space-2);
}

.node-card__details dt {
  color: var(--text-faint);
  font-size: 10px;
}

.node-card__details dd {
  display: grid;
  gap: 4px;
  margin: 0;
  color: var(--text-soft);
  font-size: var(--type-label);
  line-height: 1.45;
}

.node-card__details dd .pill {
  justify-self: start;
  font-size: 10px;
}

.node-card__foot--action {
  justify-content: flex-end;
  margin-top: auto;
}

.node-boundary {
  display: grid;
  grid-template-columns: minmax(185px, .7fr) minmax(0, 1.3fr);
  gap: var(--space-6);
  padding: var(--space-5);
  margin-top: var(--space-6);
  background: #fcfcff;
}

.node-boundary h2 {
  margin: 0;
  font-size: 15px;
}

.node-boundary__list {
  display: grid;
  gap: var(--space-2);
}

.node-boundary__list p {
  margin: 0;
  padding: 0 0 var(--space-2);
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
  font-size: var(--type-meta);
}

.node-boundary__list p:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

/* Scout remains a contained side journey, never the primary collaboration surface. */
.scout-panel {
  display: flex;
  flex-direction: column;
  width: min(620px, calc(100vw - 40px));
}

.scout-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 0 -22px;
  list-style: none;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.scout-steps li {
  min-width: 0;
}

.scout-steps button {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 52px;
  padding: var(--space-2) 6px;
  color: var(--text-faint);
  background: transparent;
  border: 0;
  border-top: 2px solid transparent;
  cursor: pointer;
  font: 700 10px/1.3 var(--font-mono);
  text-align: center;
}

.scout-steps li[data-current='true'] button {
  color: var(--violet-deep);
  border-top-color: var(--violet);
  background: var(--violet-wash);
}

.scout-steps li[data-complete='true'] button {
  color: var(--green);
}

.scout-step {
  flex: 1 1 auto;
  width: min(760px, 100%);
  padding: var(--space-6) 0;
  margin: 0 auto;
}

.scout-step > .eyebrow {
  color: var(--text-faint);
}

.scout-step__body h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -.03em;
}

.scout-step__body > p {
  margin: var(--space-2) 0 var(--space-5);
  color: var(--text-soft);
  font-size: var(--type-meta);
}

.scout-field {
  display: grid;
  gap: 6px;
  margin: 0 0 var(--space-4);
  color: var(--text-soft);
  font-size: var(--type-label);
  font-weight: 700;
}

.scout-field input,
.scout-field textarea,
.scout-field select {
  width: 100%;
  padding: 10px 11px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  outline: 0;
  resize: vertical;
}

.scout-field:focus-within input,
.scout-field:focus-within textarea,
.scout-field:focus-within select {
  border-color: var(--violet);
  box-shadow: var(--focus-ring);
}

.scout-field:focus-within .dropdown__trigger {
  border-color: var(--violet);
  box-shadow: var(--focus-ring);
}

.scout-field small {
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.45;
}

.scout-choice {
  padding: 0;
  margin: 0 0 var(--space-4);
  border: 0;
}

.scout-choice legend {
  margin-bottom: 6px;
  color: var(--text-soft);
  font-size: var(--type-label);
  font-weight: 700;
}

.scout-choice > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}

.scout-choice button {
  min-height: 77px;
  padding: var(--space-3);
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
}

.scout-choice button[aria-pressed='true'] {
  color: var(--violet-deep);
  background: var(--violet-wash);
  border-color: var(--violet);
}

.scout-choice b,
.scout-choice span {
  display: block;
}

.scout-choice b {
  font-size: var(--type-meta);
}

.scout-choice span {
  margin-top: 4px;
  color: var(--text-faint);
  font-size: 10px;
  line-height: 1.4;
}

.scout-identity,
.scout-callout {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-4);
}

.scout-identity span:not(.avatar),
.scout-callout p {
  display: block;
  margin-top: 3px;
  color: var(--text-soft);
  font-size: var(--type-label);
}

.scout-callout {
  display: block;
  margin: var(--space-4) 0;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-left: 3px solid var(--tone, var(--border-strong));
  border-radius: var(--radius-sm);
}

.scout-callout[data-tone='review'] {
  --tone: var(--green);
}

.scout-callout[data-tone='waiting'] {
  --tone: var(--amber);
}

.scout-callout[data-tone='quiet'] {
  --tone: var(--text-faint);
}

.scout-callout p {
  margin-bottom: 0;
}

.scout-local-steps {
  display: grid;
  gap: 0;
  padding: 0;
  margin: var(--space-4) 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.scout-local-steps li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: var(--space-2);
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}

.scout-local-steps li > span:first-child {
  color: var(--text-ghost);
  font: 700 10px/1 var(--font-mono);
}

.scout-local-steps b {
  display: block;
  color: var(--text);
  font: 700 11px/1.35 var(--font-mono);
}

.scout-local-steps p {
  margin: 3px 0 0;
  color: var(--text-faint);
  font-size: 10px;
  line-height: 1.4;
}

.scout-panel__foot {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

@media (max-width: 930px) {
  .side-nav button .nav-label,
  .viewer-button .viewer-label {
    display: block !important;
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (max-width: 590px) {
  /* Do not let desktop flex-basis become a 360px-tall mobile search box. */
  .surface-controls .search-field {
    flex: 0 1 auto;
    width: 100%;
  }

  .topbar,
  .page-heading,
  .board-toolbar,
  .surface-controls {
    min-width: 0;
  }

  .acceptance-gate {
    gap: var(--space-3);
  }

  .proposal-actions {
    width: 100%;
    max-width: none;
  }

  .node-summary,
  .node-boundary {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .node-summary__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .node-summary__metrics > div {
    padding: var(--space-3) 0;
  }

  .node-summary__metrics > div:nth-child(2) {
    border-right: 0;
  }

  .scout-panel {
    width: auto;
  }

  .scout-steps {
    overflow-x: auto;
    grid-template-columns: repeat(5, 106px);
  }

  .scout-choice > div {
    grid-template-columns: 1fr;
  }

  .scout-local-steps li {
    grid-template-columns: 20px minmax(0, 1fr);
  }

  .scout-local-steps li > :last-child {
    grid-column: 2;
    justify-self: start;
  }
}
}
