* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg); overflow: hidden;
  font: 14px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Noto Sans JP", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

.nu { white-space: nowrap; }
.nu b { font-weight: 600; font-size: 1.12em; font-variant-numeric: tabular-nums; color: var(--heading); }
.nu i { font-style: normal; font-size: .72em; margin-left: 1px; color: var(--muted); }
.dim { color: var(--subtle); }

#app { display: flex; height: 100vh; height: 100dvh; }

#side {
  width: 264px; flex: none; display: flex; flex-direction: column; gap: 4px;
  background: var(--bg); border-right: 1px solid var(--line); padding: 12px 10px;
}
body.side-off #side { display: none; }
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 8px; }
.brand { font-weight: 700; color: var(--fg); letter-spacing: .02em; font-size: 16px; line-height: 22px; display: inline-flex; align-items: center; gap: 8px; }
.brand-mark { flex: none; display: block; }

.brand-name { position: relative; top: 1px; }
.icon { border: 0; background: none; width: 32px; height: 32px; border-radius: 8px; color: var(--muted); font-size: 15px; }
.icon:hover { background: var(--hover); color: var(--heading); }
.newchat {
  display: flex; align-items: center; gap: 8px; border: 0; background: none; text-align: left;
  padding: 8px 10px; border-radius: 8px; color: var(--accent-dark); font-weight: 600;
}
.newchat:hover { background: var(--accent-tint); }
.newchat .plus {
  width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 13px; line-height: 1;
}
.side-cap { font-size: 11px; color: var(--subtle); padding: 14px 10px 2px; }
#convs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; }
.side-empty { color: var(--subtle); font-size: 12px; padding: 6px 10px; }
.conv { display: flex; align-items: center; border-radius: 8px; }
.conv:hover { background: var(--hover); }
.conv.on { background: var(--line); }
.conv .ct {
  flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; border: 0; background: none;
  padding: 7px 10px; text-align: left;
}
.conv .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--heading); font-size: 13px; }
.conv .d { font-size: 11px; color: var(--subtle); flex: none; }
.conv .del { border: 0; background: none; color: var(--subtle); padding: 2px 8px; border-radius: 6px; visibility: hidden; font-size: 13px; }
.conv:hover .del, .conv .del.sure { visibility: visible; }
.conv .del:hover { color: var(--err); }
.conv .del.sure { color: var(--err); font-size: 12px; font-weight: 600; }
.side-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border-top: 1px solid var(--line); padding: 10px 8px 0; font-size: 12px; color: var(--muted);
}

#main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; position: relative; }
#top { height: 48px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 12px; }
#side-open { display: none; }
body.side-off #side-open { display: block; }
#conv-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13px; }
.ghost {
  border: 1px solid var(--line-strong); background: var(--bg); border-radius: 8px; padding: 4px 12px;
  color: var(--fg); text-decoration: none; font-size: 13px; display: inline-block;
}
.ghost:hover { background: var(--hover); }
.ghost.sm { padding: 1px 10px; font-size: 12px; }
.primary { border: 0; background: var(--accent); color: #fff; border-radius: 8px; padding: 5px 14px; font-weight: 600; font-size: 13px; }
.primary:hover { background: var(--accent-dark); }

#thread { flex: 1; overflow-y: auto; padding: 8px 20px 24px; }
.col { max-width: 1040px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.m { white-space: pre-wrap; word-break: break-word; }
.m.u { display: flex; justify-content: flex-end; }
.m.u .bub { background: var(--surface); border-radius: 16px; padding: 8px 14px; max-width: 70%; color: var(--heading); }
.m.b { color: var(--heading); font-size: 15px; line-height: 1.8; max-width: 800px; }
.m.b.err { color: var(--err); font-size: 13px; }
.m.note { font-size: 12px; color: var(--muted); background: var(--chip); border: 1px dashed var(--line-strong); border-radius: 8px; padding: 6px 10px; }
.m.note a { color: var(--accent-dark); }
.pend { display: flex; gap: 5px; padding: 8px 0; }
.pend i { width: 7px; height: 7px; border-radius: 50%; background: var(--subtle); animation: blink 1.2s infinite both; }
.pend i:nth-child(2) { animation-delay: .2s; } .pend i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.art {
  display: flex; align-items: center; gap: 12px; width: 100%; max-width: 440px; text-align: left;
  border: 1px solid var(--line-strong); background: var(--bg); border-radius: 12px; padding: 10px 14px;
}
.art:hover { border-color: var(--accent); background: var(--warm); }
.art .ico { width: 36px; height: 36px; border-radius: 8px; background: var(--accent-tint); color: var(--accent-dark); display: grid; place-items: center; font-size: 18px; flex: none; }
.art .at { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.art .at b { color: var(--heading); font-weight: 600; }
.art .at span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.art .go { font-size: 12px; color: var(--accent-dark); flex: none; }

.showlist { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; max-width: 520px; white-space: normal; }
.showlist .cap { padding: 8px 12px; background: var(--chip); font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.showlist .cond { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; }
.showlist { max-width: none; }
.showlist .cap b { color: var(--heading); font-size: 13px; }
.showlist .row { display: grid; grid-template-columns: 108px 52px minmax(0, 1.3fr) minmax(0, 1.4fr) minmax(0, 1.2fr) 84px; gap: 12px; align-items: baseline; width: 100%; border: 0; border-top: 1px solid var(--line); background: var(--bg); padding: 7px 12px; text-align: left; }
.showlist .row:hover, .showlist .row.on { background: var(--hover); }
.showlist .id { color: var(--subtle); font-variant-numeric: tabular-nums; flex: none; width: 48px; }
.showlist .row.nomk { grid-template-columns: 52px minmax(0, 1.3fr) minmax(0, 1.4fr) minmax(0, 1.2fr) 84px; }
.showlist .row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.showlist .hd { color: var(--heading); font-weight: 600; }
.showlist .c2, .showlist .c3 { color: var(--muted); font-size: 13px; }
.showlist .c4 { text-align: right; }
.showlist .mks { white-space: nowrap; }
.showlist .mks .mk { margin-right: 5px; }
.showlist .none { padding: 12px; color: var(--muted); border-top: 1px solid var(--line); }
.showlist .foot { display: flex; gap: 8px; justify-content: flex-end; padding: 6px 10px; border-top: 1px solid var(--line); background: var(--chip); }
.showlist .foot button { border: 0; background: none; color: var(--accent-dark); font-size: 12px; padding: 2px 6px; border-radius: 6px; }
.showlist .foot button:hover { background: var(--accent-tint); }
.showlist .brief { border: 0; border-top: 1px dashed var(--line); border-radius: 0; background: var(--chip); max-width: none; }

.brief { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; white-space: normal; font-size: 13px; }
.brief.two { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; }
.brief .bl { display: flex; flex-direction: column; gap: 8px; }
.brief .pair .mg:last-child { margin-bottom: 0; }
.brief.err { color: var(--err); }
.brief .kicker { font-size: 11px; color: var(--muted); }
.brief h4 { margin: 0; font-size: 16px; color: var(--heading); line-height: 1.4; }
.brief .sub { color: var(--muted); font-size: 12px; }
.brief .acts { margin: 2px 0 0; }
.brief .pair h3 { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }

#dock { flex: none; padding: 0 20px 14px; }
#dock > * { max-width: 1040px; margin-left: auto; margin-right: auto; }
#hero { display: none; font-size: 28px; font-weight: 600; color: var(--heading); text-align: center; letter-spacing: .02em; margin-bottom: 28px; }
#composer {
  display: flex; align-items: flex-end; gap: 8px; border: 1px solid var(--line-strong); border-radius: 18px;
  padding: 8px 8px 8px 16px; background: var(--bg); box-shadow: 0 2px 10px var(--accent-tint);
}
#composer:focus-within { border-color: var(--accent); }
#composer { position: relative; }
#input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 5px 0; line-height: 1.9; font-size: 15px; max-height: 200px; overflow-y: auto; white-space: pre-wrap; word-break: break-word; color: var(--heading); }
#input.blank::before { content: attr(data-ph); color: var(--subtle); pointer-events: none; }
#send { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font-size: 16px; font-weight: 700; flex: none; }
#send:hover { background: var(--accent-dark); }
#send:disabled { background: var(--line-strong); cursor: default; }
#sugs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
#sugs:empty { margin: 0; }
#sugs button { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--fg); }
#sugs button:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--warm); }
#sugs button.act { border-style: dashed; color: var(--muted); }
#cost { font-size: 11px; color: var(--subtle); text-align: right; min-height: 16px; margin-top: 4px; }

body.empty #thread { display: none; }
body.empty #main { justify-content: center; }
body.empty #top { position: absolute; top: 0; left: 0; right: 0; }
body.empty #dock { padding-bottom: 14vh; }
body.empty #hero { display: block; }
body.empty #sugs { justify-content: center; margin-top: 16px; }

#pop { position: fixed; inset: 0; z-index: 20; background: var(--scrim); display: grid; place-items: center; padding: 3vh 3vw; }
#pop[hidden] { display: none; }
.pop-card { width: min(1440px, 100%); max-height: 94vh; display: flex; flex-direction: column; background: var(--bg); border-radius: 14px; box-shadow: 0 12px 48px var(--pop-shadow); overflow: hidden; }
.pop-head { display: flex; align-items: center; gap: 6px; height: 48px; flex: none; padding: 0 8px 0 12px; border-bottom: 1px solid var(--line); }
#pop-title { flex: 1; min-width: 0; font-weight: 600; color: var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#pop-body { flex: 1; overflow: auto; padding: 16px 20px 32px; }
body.pop-open { overflow: hidden; }

.lv.loading .tbl { opacity: .5; }
.lv-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.lv-head h2 { font-size: 18px; color: var(--heading); }
.lv-head .total .nu b { font-size: 20px; }
.grow { flex: 1; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: var(--bg); padding: 3px 12px; font-size: 13px; color: var(--muted); }
.seg button.on { background: var(--accent-tint); color: var(--accent-dark); font-weight: 600; }
.sort { font-size: 12px; color: var(--muted); }
.sort select { border: 1px solid var(--line-strong); border-radius: 8px; padding: 3px 6px; background: var(--bg); font-size: 13px; }

.pinbar { display: flex; align-items: center; gap: 10px; background: var(--warm); border: 1px solid var(--accent-tint-line); border-radius: 10px; padding: 6px 10px; margin-bottom: 10px; }
.pinbar .lab { font-size: 11px; color: var(--accent-dark); font-weight: 700; flex: none; }
.pinrec { flex: 1; min-width: 0; border: 0; background: none; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0; }
.pinrec b { color: var(--heading); margin-right: 6px; }
.pinrec:hover { text-decoration: underline; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.chip { display: inline-flex; align-items: center; gap: 5px; max-width: 320px; border: 1px solid var(--line-strong); background: var(--chip); border-radius: 999px; padding: 1px 4px 1px 10px; font-size: 13px; }
.chip.der { border-style: dashed; }
.chip .cat { font-size: 11px; color: var(--muted); flex: none; }
.chip .tx { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--heading); }
.chip button { border: 0; background: none; color: var(--subtle); padding: 0 5px; font-size: 14px; line-height: 1; flex: none; }
.chip button:hover { color: var(--err); }
.chips form { flex: 1; min-width: 160px; }
.chips input { width: 100%; border: 0; border-bottom: 1px solid var(--line); outline: 0; padding: 4px 2px; background: none; font-size: 13px; }
.chips input:focus { border-color: var(--accent); }
.hidnote { font-size: 11px; color: var(--subtle); margin-bottom: 6px; }
.empty-note { color: var(--muted); padding: 28px 4px; }
.empty-note.err { color: var(--err); }

.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11px; font-weight: 500; color: var(--subtle); padding: 6px 8px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; position: sticky; top: -16px; background: var(--bg); }
.tbl td { padding: 8px; border-bottom: 1px solid var(--paper-line); vertical-align: top; }
.tbl tbody tr { cursor: pointer; }
.tbl tbody tr:hover { background: var(--hover); }
.tbl tr.off { color: var(--subtle); }
.tbl .c-id { color: var(--subtle); font-variant-numeric: tabular-nums; }
.tbl .c-main { min-width: 150px; }
.tbl .nm { color: var(--heading); font-weight: 600; }
.tbl .sub { font-size: 12px; color: var(--muted); }
.tbl .c-num { text-align: right; white-space: nowrap; }
.tbl .c-mk { white-space: nowrap; }
.mk { display: inline-flex; align-items: baseline; gap: 2px; margin-right: 7px; font-size: 11px; }
.mk b { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mk-ok { color: var(--v-ok); } .mk-pt { color: var(--v-partial); } .mk-ng { color: var(--v-ng); }
.mk.zero { color: var(--line-strong); }
.st { display: inline-block; font-size: 11px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 0 6px; color: var(--muted); white-space: nowrap; line-height: 1.6; }
.st-seeking, .st.on { border-color: var(--v-ok-line); background: var(--v-ok-bg); color: var(--v-ok); }
.st.must { background: var(--grade-bg); color: var(--grade-ink); border-color: var(--grade-bg); }
.more { display: block; margin: 14px auto 0; }

.rec { max-width: 760px; }
#pop .rec { max-width: none; }
.rcols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 32px; align-items: start; }
.rcol > section:first-child { border-top: 1px solid var(--line); }
@media (max-width: 900px) { .rcols { grid-template-columns: 1fr; } }
.rec header { margin-bottom: 10px; }
.rec .kicker { font-size: 12px; color: var(--muted); }
.rec h2 { font-size: 22px; color: var(--heading); line-height: 1.4; }
.rec header .sub { color: var(--muted); font-size: 13px; }
.acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.rec section { border-top: 1px solid var(--line); padding: 12px 0; }
.rec h3 { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.pre { white-space: pre-wrap; word-break: break-word; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 3px 16px; margin: 0; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--heading); }
.lnk { border: 0; background: none; padding: 0; color: var(--accent-dark); text-decoration: underline; font-size: inherit; }
.talks, .career, .reqs, .mg ul { list-style: none; margin: 0; padding: 0; }
.talks li, .career li { padding: 8px 0; border-top: 1px dashed var(--paper-line); font-size: 13px; }
.talks li:first-child, .career li:first-child { border-top: 0; padding-top: 0; }
.th { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.th .d { font-variant-numeric: tabular-nums; color: var(--heading); }
.th .op { margin-left: auto; }
.career .co { color: var(--heading); font-weight: 600; }
.reqs li { display: flex; gap: 8px; align-items: baseline; padding: 2px 0; }
.pair .mg { border-radius: 10px; padding: 8px 12px; margin-bottom: 6px; font-size: 13px; }
.mg .mh, .mg summary { font-weight: 600; margin-bottom: 2px; }
.mg summary { cursor: pointer; }
.mg .sym { display: inline-block; width: 18px; }
.mg li { display: flex; gap: 10px; padding: 1px 0; }
.mg .cat { flex: none; width: 76px; font-size: 12px; color: var(--muted); }
.mg-ok { background: var(--v-ok-bg); } .mg-ok .mh, .mg-ok summary { color: var(--v-ok); }
.mg details ul, details.mg ul { margin-top: 4px; }
details.mg summary { margin-bottom: 0; }
.mg-pt { background: var(--v-partial-bg); } .mg-pt .mh { color: var(--v-partial); }
.mg-ng { background: var(--v-ng-bg); } .mg-ng .mh { color: var(--v-ng); }
.mg-na { background: var(--chip); color: var(--muted); }

@media (max-width: 900px) {
  .showlist .row, .showlist .row.nomk { display: flex; }
  .showlist .row .hd { flex: 1; }
  .showlist .row .c2, .showlist .row .c3 { display: none; }
  .brief.two { grid-template-columns: 1fr; }
}

.m.withorig { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; white-space: normal; }
.m.withorig .origbox { position: sticky; top: 8px; }
.m.withorig iframe.orig { height: 75vh; }
@media (max-width: 900px) { .m.withorig { grid-template-columns: 1fr; } }

@media (max-width: 820px) {
  #pop { padding: 0; }
  .pop-card { max-height: 100vh; height: 100%; border-radius: 0; }
  #side { position: fixed; inset: 0 auto 0 0; z-index: 6; box-shadow: 0 0 24px var(--line-strong); }
}

.ecard { border: 1px solid var(--line-strong); border-radius: 12px; padding: 14px 16px; white-space: normal; font-size: 13px; display: flex; flex-direction: column; gap: 10px; }
.ecard.draft { border-color: var(--accent-tint-line); box-shadow: 0 2px 10px var(--accent-tint); }
.ecard.cancelled { opacity: .6; }
.ecard .eh { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ecard .eh b { font-size: 15px; color: var(--heading); }
.st.draft { border-color: var(--accent-tint-line); background: var(--warm); color: var(--accent-dark); }
.diff { display: grid; grid-template-columns: minmax(96px, max-content) minmax(0, 1fr) minmax(0, 1fr); gap: 4px 10px; align-items: stretch; }
.diff .dh { font-size: 11px; color: var(--subtle); }
.diff .df { color: var(--muted); padding: 5px 0; }
.diff .bf, .diff .af { padding: 5px 10px; border-radius: 8px; white-space: pre-wrap; word-break: break-word; color: var(--heading); }
.diff .bf { background: var(--v-ng-bg); }
.diff .af { background: var(--v-ok-bg); }
.ecard.saved .diff .bf, .ecard.cancelled .diff .bf, .ecard.cancelled .diff .af { background: var(--chip); color: var(--muted); }
.diff .af.ed { padding: 0; background: none; }
.diff textarea { width: 100%; height: 100%; min-height: 32px; border: 1px solid var(--v-ok-line); background: var(--v-ok-bg); border-radius: 8px; padding: 5px 10px; resize: vertical; outline: 0; line-height: 1.7; }
.diff textarea:focus { border-color: var(--ok); }
.ecard .acts { margin: 0; }
.ecard .primary:disabled { background: var(--line-strong); cursor: default; }
.ewarn { background: var(--v-partial-bg); color: var(--v-partial); border-radius: 8px; padding: 6px 10px; }
.eerr { color: var(--err); }
.diff del { background: var(--ans-ng); text-decoration: line-through; border-radius: 3px; }
.diff ins { background: var(--ans-ok); text-decoration: none; border-radius: 3px; font-weight: 600; }
.ecard.saved .diff del, .ecard.saved .diff ins, .ecard.cancelled .diff del, .ecard.cancelled .diff ins { background: none; font-weight: inherit; }

.ent {
  display: inline-flex; align-items: center; gap: 5px; vertical-align: baseline; max-width: 100%;
  border: 1px solid var(--line-strong); background: var(--bg); border-radius: 8px; padding: 0 8px 0 4px; margin: 0 2px;
  font: inherit; line-height: 1.55; color: var(--heading); white-space: nowrap; position: relative; top: -1px;
}
button.ent:hover { border-color: var(--accent); background: var(--warm); }
.ent small { font-size: .78em; color: var(--subtle); font-weight: 600; font-variant-numeric: tabular-nums; }
.ent b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.ei { width: 18px; height: 18px; border-radius: 5px; flex: none; display: inline-grid; place-items: center; background-size: cover; background-position: center top; font-style: normal; }
.ei-job { background-color: var(--accent); color: #fff; }
.ei-client { background-color: var(--grade-bg); color: var(--grade-ink); }
.ei-staff { border-radius: 50%; background-color: var(--surface); color: var(--muted); }
.m.u .bub .ent { background: var(--bg); }
#sugs .ent, .showlist .cap .ent { border: 0; background: none; padding: 0; margin: 0; top: 0; }
#sugs .ent b { font-weight: inherit; }
#mention {
  position: absolute; left: 10px; bottom: calc(100% + 8px); z-index: 4; width: min(460px, calc(100% - 20px));
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 5px;
  box-shadow: 0 8px 28px var(--line-strong); display: flex; flex-direction: column; gap: 1px;
}
#mention .sg, .whosug .sg { display: flex; align-items: center; gap: 8px; border: 0; background: none; border-radius: 8px; padding: 6px 8px; text-align: left; min-width: 0; }
#mention .sg.on, #mention .sg:hover, .whosug .sg.on, .whosug .sg:hover { background: var(--hover); }
#mention .sg small, .whosug .sg small { font-size: 12px; color: var(--subtle); font-variant-numeric: tabular-nums; flex: none; }
#mention .sg b, .whosug .sg b { color: var(--heading); font-weight: 600; flex: none; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#mention .sg span, .whosug .sg span { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ent.lite { border: 0; background: none; padding: 0; margin: 0; top: 0; font-weight: 600; border-bottom: 1px dotted var(--line-strong); border-radius: 0; }
button.ent.lite:hover { background: none; border-bottom-color: var(--accent); color: var(--accent-dark); }

.ccard .cgrid { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px 12px; align-items: start; }
.ccard .cl { color: var(--muted); font-size: 12px; padding-top: 5px; }
.cseg { display: flex; flex-wrap: wrap; gap: 5px; }
.cseg button { border: 1px solid var(--line-strong); background: var(--bg); border-radius: 999px; padding: 2px 12px; font-size: 13px; color: var(--fg); }
.cseg button:hover { border-color: var(--accent); }
.cseg button.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.cwho { display: flex; align-items: center; gap: 4px; min-height: 30px; }
.cwho .ent { margin-left: 0; }
.cx { border: 0; background: none; color: var(--subtle); font-size: 15px; padding: 0 6px; }
.cx:hover { color: var(--err); }
.cid { border: 1px solid var(--line-strong); border-radius: 8px; padding: 4px 10px; width: 180px; font-size: 13px; outline: 0; }
.cid:focus { border-color: var(--accent); }
.cmemo { width: 100%; border: 1px solid var(--line-strong); border-radius: 8px; padding: 7px 10px; resize: vertical; outline: 0; line-height: 1.7; font-size: 13px; }
.cmemo:focus { border-color: var(--accent); }
.cline { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cev { color: var(--muted); font-size: 12px; margin-left: 6px; }
.cnote { color: var(--heading); background: var(--chip); border-radius: 8px; padding: 6px 10px; margin: 0; }

.mxbox .mx { display: flex; flex-direction: column; }
.mxr { display: grid; align-items: center; gap: 0 6px; width: 100%; border: 0; border-top: 1px solid var(--line); background: var(--bg); padding: 6px 12px; text-align: left; min-height: 40px; }
button.mxr:hover, button.mxr.on { background: var(--hover); }
.mxh { background: var(--chip); min-height: 0; padding-top: 6px; padding-bottom: 6px; }
.mxh .mxc { font-size: 11px; color: var(--muted); line-height: 1.35; text-align: center; overflow-wrap: anywhere; word-break: normal; padding: 0 8px; align-self: end; }
.mxh .mxc small { display: block; font-size: 10px; color: var(--subtle); }
.mxn { color: var(--subtle); font-variant-numeric: tabular-nums; font-size: 12px; }
.mxw { display: flex; align-items: center; gap: 7px; min-width: 0; }
.mxw .ei { width: 26px; height: 26px; border-radius: 50%; }
.mxw .ei-job { border-radius: 7px; }
.mxw b { color: var(--heading); font-weight: 600; white-space: nowrap; flex: none; max-width: 60%; overflow: hidden; text-overflow: ellipsis; }
.mxw small { color: var(--subtle); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mxc { text-align: center; }
.mk2 { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-style: normal; font-size: 13px; font-weight: 700; }
.mk2.ok { background: var(--v-ok-bg); color: var(--v-ok); }
.mk2.pt { background: var(--v-partial-bg); color: var(--v-partial); }
.mk2.ng { background: var(--v-ng-bg); color: var(--v-ng); }
.mk2.na { background: var(--hover); color: var(--subtle); }
.mk2.no { width: 8px; height: 2px; border-radius: 1px; background: var(--line); }
.mxbrief { border-top: 1px dashed var(--line); background: var(--chip); padding: 8px; }
.mxbrief .brief { background: var(--bg); }
.mxfoot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 12px; border-top: 1px solid var(--line); }
.mxtools { display: flex; flex-wrap: wrap; gap: 6px; }
.mxtools button { border: 1px solid var(--line-strong); background: var(--bg); border-radius: 999px; padding: 2px 12px; font-size: 12px; color: var(--fg); }
.mxtools button:hover { border-color: var(--accent); color: var(--accent-dark); }
.mxtools button:disabled { color: var(--subtle); }
.mxlegend { display: flex; gap: 12px; font-size: 11px; color: var(--muted); }
.mxlegend span { display: inline-flex; align-items: center; gap: 4px; }
.mxlegend .mk2 { width: 18px; height: 18px; font-size: 10px; }

.evs { display: flex; flex-direction: column; gap: 8px; white-space: normal; }
.evcap { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.evcap .cond, .showlist .cond { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; }
.ev { display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); gap: 16px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--bg); }
.ev.on { border-color: var(--accent-tint-line); }
.evw { border: 0; background: none; text-align: left; padding: 0; display: flex; align-items: center; gap: 9px; align-self: start; min-width: 0; }
.evw .ei { width: 36px; height: 36px; border-radius: 50%; }
.evw b { display: block; color: var(--heading); font-size: 15px; }
.evw small { color: var(--subtle); font-size: 12px; }
.evw:hover b { color: var(--accent-dark); text-decoration: underline; }
.evq { display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--heading); }
.evq .q { border-left: 2px solid var(--accent); padding-left: 10px; }
.evq .qd { font-size: 11px; color: var(--subtle); font-variant-numeric: tabular-nums; }
.evq .qd span { margin-left: 8px; }
.evq mark { background: var(--hit); color: inherit; font-weight: 600; padding: 0 1px; }
.evbrief { grid-column: 1 / -1; }
.ev .evbrief { margin-top: 4px; }
@media (max-width: 900px) { .ev { grid-template-columns: 1fr; } }

.diff.new { grid-template-columns: minmax(110px, max-content) minmax(0, 1fr); }
.diff.new .af.miss { background: var(--v-ng-bg); }
.diff .req { font-style: normal; font-size: 10px; color: var(--err); margin-left: 4px; }
.diff .crow { padding: 1px 0; }
.esrc { font-size: 12px; color: var(--muted); background: var(--chip); border-radius: 8px; padding: 6px 10px; }
.enote { font-size: 12px; }
#attach { width: 34px; height: 34px; border: 0; background: none; color: var(--muted); border-radius: 50%; flex: none; display: grid; place-items: center; }
#attach:hover { background: var(--hover); color: var(--accent-dark); }
#attach-menu {
  position: absolute; left: 6px; bottom: calc(100% + 8px); z-index: 4; width: 300px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 6px;
  box-shadow: 0 8px 28px var(--line-strong); display: flex; flex-direction: column; gap: 1px;
}
#attach-menu .amh { font-size: 11px; color: var(--subtle); padding: 6px 8px 2px; }
#attach-menu button { border: 0; background: none; text-align: left; border-radius: 8px; padding: 7px 8px; font-size: 13px; color: var(--heading); display: flex; flex-direction: column; }
#attach-menu button:hover { background: var(--hover); }
#attach-menu button .dim { font-size: 11px; }

.tbox { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; white-space: normal; }
.tbox .cap { padding: 8px 12px; background: var(--chip); font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: baseline; }
.tbox .cap b { color: var(--heading); font-size: 13px; }
.ctbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.ctbl th { text-align: left; font-size: 11px; font-weight: 500; color: var(--subtle); padding: 6px 12px; border-bottom: 1px solid var(--line); }
.ctbl td { padding: 6px 12px; border-top: 1px solid var(--paper-line); color: var(--heading); vertical-align: middle; }
.ctbl .n { text-align: right; white-space: nowrap; }
.ctbl .barc { width: 34%; }
.ctbl .barc i { display: block; height: 10px; border-radius: 3px; background: var(--accent-tint-line); min-width: 2px; }
.tnote { font-size: 11px; color: var(--subtle); padding: 6px 12px; border-top: 1px solid var(--line); }
.cls { display: flex; flex-direction: column; }
.clr { display: grid; grid-template-columns: 84px minmax(220px, max-content) 120px minmax(0, 1fr); gap: 10px; align-items: center; padding: 7px 12px; border-top: 1px solid var(--paper-line); font-size: 13px; }
.clr .d { color: var(--subtle); font-variant-numeric: tabular-nums; }
.clr .w { display: flex; gap: 4px; flex-wrap: wrap; }
.clr .e { color: var(--muted); font-size: 12px; }
.clr .t { color: var(--heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbox .none { padding: 12px; color: var(--muted); }
@media (max-width: 900px) { .clr { grid-template-columns: 1fr; gap: 2px; } }

.adesc { color: var(--heading); font-size: 13px; line-height: 1.9; }
.ares { font-size: 13px; color: var(--v-ok); background: var(--v-ok-bg); border-radius: 8px; padding: 6px 10px; }

.mcard .cgrid { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px 12px; align-items: start; }
.mcard .cl { color: var(--muted); font-size: 12px; padding-top: 5px; }
.mto { display: flex; flex-wrap: wrap; gap: 4px 2px; align-items: center; }
.mtoi { display: inline-flex; align-items: center; }
.msub { width: 100%; border: 1px solid var(--line-strong); border-radius: 8px; padding: 5px 10px; font-size: 13px; outline: 0; }
.msub:focus { border-color: var(--accent); }
.mbody { white-space: pre-wrap; background: var(--chip); border-radius: 8px; padding: 10px 12px; font-size: 13px; color: var(--heading); line-height: 1.8; }

.eadd { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.eadd select { border: 1px solid var(--line-strong); border-radius: 8px; padding: 3px 6px; font-size: 13px; background: var(--bg); }

@media (max-width: 640px) {
  #thread, #dock { padding-left: 10px; padding-right: 10px; }
  .mxbox .mx { overflow-x: auto; }
  .mxr { min-width: 600px; }
  .mxfoot { flex-direction: column; align-items: flex-start; }
  .ccard .cgrid, .mcard .cgrid { grid-template-columns: 1fr; gap: 4px; }
  .ccard .cl, .mcard .cl { padding-top: 6px; }
  .diff { grid-template-columns: 1fr; }
  .diff .dh { display: none; }
  .diff .df { padding-bottom: 0; font-weight: 600; }
  .brief.two { grid-template-columns: 1fr; }
  .showlist .row, .showlist .row.nomk { display: flex; flex-wrap: wrap; }
  .showlist .row .c2, .showlist .row .c3 { display: none; }
  #mention, #attach-menu { width: calc(100% - 12px); }
}

.now { border-top: 1px dashed var(--line); padding-top: 8px; display: flex; flex-direction: column; gap: 3px; }
.nowh { font-size: 12px; color: var(--muted); font-weight: 600; }
.nowh span { font-weight: 400; color: var(--subtle); margin-left: 8px; font-size: 11px; }
.nowr { display: grid; grid-template-columns: 64px minmax(90px, max-content) minmax(0, 1fr); gap: 10px; font-size: 13px; align-items: baseline; }
.nowr .k { color: var(--muted); font-size: 12px; }
.nowr .v { color: var(--heading); font-weight: 600; }
.nowr .q { color: var(--fg); font-size: 12px; border-left: 2px solid var(--ai-line); padding-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nowr .q i { font-style: normal; color: var(--subtle); margin-left: 6px; font-size: 11px; }

a.primary { display: inline-block; text-decoration: none; }
.mxw em, .evw em { font-style: normal; font-size: 10px; color: var(--v-ok); background: var(--v-ok-bg); border-radius: 4px; padding: 0 4px; white-space: nowrap; flex: none; }
.evw em { display: inline-block; margin-top: 2px; }

.hits { border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 10px; margin: 6px 0 8px; display: flex; flex-direction: column; gap: 6px; background: var(--surface); }
.hits.strong { border-color: var(--warm); background: var(--v-partial-bg); }
.hits .hh { font-size: 13px; font-weight: 600; color: var(--heading); }
.hits .hh .dim { font-weight: 400; font-size: 11px; margin-left: 8px; }
.hit { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.hit .why { color: var(--muted); font-size: 12px; }
.hits > button { align-self: flex-start; }

.hinfo { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 12px; font-size: 13px; line-height: 1.6; }
.hinfo > span { font-size: 12px; color: var(--muted); padding-top: 1px; }
.ecard .hq { font-weight: 600; color: var(--heading); }
.acts.next { border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 4px; }
.snote { font-size: 12px; margin: 4px 2px 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.origh { display: flex; gap: 10px; align-items: baseline; padding: 4px 2px 8px; font-size: 13px; }
.origh .dim { font-size: 11px; }
iframe.orig { width: 100%; height: calc(100vh - 140px); border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.gridw { overflow: auto; max-height: calc(100vh - 140px); border: 1px solid var(--line); border-radius: 6px; }
table.grid { border-collapse: collapse; font-size: 12px; }
table.grid td { border: 1px solid var(--line); padding: 2px 6px; white-space: nowrap; color: var(--fg); }
body.dropping::after { content: "ここに落とすと、スキルシートを読み込んで登録の下書きを作ります（PDF・Excel、10 枚まで）"; position: fixed; inset: 12px; z-index: 50; display: flex; align-items: center; justify-content: center; border: 2px dashed var(--accent); border-radius: 14px; background: var(--accent-tint); color: var(--accent-dark); font-size: 15px; font-weight: 600; pointer-events: none; }

.pbar { display: inline-block; width: 44px; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; vertical-align: middle; }
.pbar > i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.pbar.big { display: block; width: 100%; height: 10px; }
.s-warn .pbar > i { background: var(--warn); }
.s-over .pbar > i { background: var(--err); }
.planbtn { border: 0; background: none; padding: 2px 4px; font-size: 11px; color: var(--subtle); display: inline-flex; align-items: center; gap: 6px; border-radius: 6px; }
.planbtn:hover { background: var(--hover); color: var(--fg); }
.planbtn.s-warn .nu b { color: var(--warn); }
.planbtn.s-over .nu b { color: var(--err); }
.plancard { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 10px; white-space: normal; font-size: 13px; }
.plancard .phead { display: flex; align-items: center; gap: 14px; }
.plancard .pbig .nu b { font-size: 34px; line-height: 1; }
.plancard .pbig .nu i { font-size: 14px; }
.plancard .psub { line-height: 1.5; }
.plancard .psub em { font-style: normal; color: var(--muted); font-size: 12px; }
.plancard .phead .pusd { margin-left: auto; }
.plancard .phead .pusd .nu b { font-size: 18px; }
.plancard.s-warn .pbig .nu b, .plancard.s-warn .pstate { color: var(--warn); }
.plancard.s-over .pbig .nu b, .plancard.s-over .pstate { color: var(--err); }
.plancard .pstate { font-size: 12px; font-weight: 600; }
.plancard .pcap { margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--heading); }
.plancard .pcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.plancard .pcard { border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; display: grid; gap: 5px; align-content: start; }
.plancard .pcard.on { border-color: var(--accent); background: var(--accent-tint); }
.plancard .ptitle { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--heading); }
.plancard .psize .nu b { font-size: 20px; }
.plancard .pnote, .plancard .pnone { color: var(--muted); font-size: 12px; line-height: 1.5; }
.plancard .pcard .ghost { justify-self: start; margin-top: 2px; }
.plancard .pbreak { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.plancard .plab { color: var(--subtle); font-size: 11px; font-weight: 600; letter-spacing: .06em; margin-bottom: 4px; }
.plancard .prow { display: flex; align-items: center; gap: 8px; min-height: 24px; }
.plancard .pname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plancard .prow .pbar { width: 64px; flex: none; }
.plancard .pv { width: 3.6em; text-align: right; flex: none; }
.plancard .prow .pusd { width: 4.4em; text-align: right; flex: none; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .plancard .pcards, .plancard .pbreak { grid-template-columns: 1fr; } }

.mxh .mxc { position: relative; }
.mxx { position: absolute; top: -2px; right: 0; width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--line-strong); opacity: 0; cursor: pointer; padding: 0; }
.mxx::before, .mxx::after { content: ""; position: absolute; left: 3px; top: 6.5px; width: 8px; height: 1px; background: var(--bg); transform: rotate(45deg); }
.mxx::after { transform: rotate(-45deg); }
.mxh .mxc:hover .mxx, .mxx:focus-visible { opacity: 1; }
.mxx:hover { background: var(--muted); }
.mxcols { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 12px 0; border-top: 1px solid var(--line); }
.mxcols button { border: 1px dashed var(--line-strong); background: var(--bg); border-radius: 999px; padding: 1px 10px; font-size: 11px; color: var(--muted); }
.mxcols button:hover { border-color: var(--accent); color: var(--accent-dark); }
.mxwho { font-size: 11px; color: var(--ai-ink); margin-right: 4px; }
.mxwho.busy { color: var(--muted); }

.mxtools button, .mxcols button { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

#todo { flex: none; }
.todobtn { border: 0; background: none; width: 100%; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; color: var(--fg); font-size: 13px; }
.todobtn:hover { background: var(--hover); }
.todobtn .tico { position: relative; width: 30px; height: 30px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); display: grid; place-items: center; flex: none; }
.todobtn .tlabel { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--muted); }
.tnum, #side-open[data-n]::after { position: absolute; top: -6px; right: -7px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--err); color: var(--bg); font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--surface); }
#side-open { position: relative; }
#side-open[data-n]::after { content: attr(data-n); top: 0; right: -4px; box-shadow: 0 0 0 2px var(--bg); }
.prov { font-style: normal; font-size: 10px; font-weight: 600; color: var(--warn); background: var(--v-partial-bg); border: 1px solid var(--v-partial-line); border-radius: 4px; padding: 0 4px; margin-left: 6px; white-space: nowrap; vertical-align: middle; }
.diff .req.full { color: var(--warn); }
.todocard .tlead { font-size: 12px; }
.todocard { gap: 8px; }
.todocard .titem { border-top: 1px solid var(--line); }
.todocard .titem.on { background: var(--chip); border-radius: 8px; border-top-color: transparent; }

.todocard .todorow { width: 100%; border: 0; background: none; display: flex; align-items: center; gap: 10px; padding: 5px 6px; border-radius: 8px; font: inherit; font-size: 12px; color: var(--muted); text-align: left; min-height: 34px; }
.todocard .todorow:hover { background: var(--hover); }
.todocard .todorow .tgap { flex: 1; }
.todocard .todorow .tsub { white-space: nowrap; }
.todocard .todorow .tchev { width: 1em; color: var(--subtle); flex: none; }
.todocard .tdays { white-space: nowrap; }
.todocard .tdays .nu b { font-size: 15px; }
.todocard .titem.stale .tdays, .todocard .titem.stale .tdays .nu b { color: var(--warn); }
.todocard .tdetail { display: grid; gap: 8px; padding: 4px 10px 10px; }
.todocard .tmore { border: 0; background: none; color: var(--accent-dark); font-size: 12px; padding: 4px 6px; border-radius: 6px; justify-self: start; }
.todocard .tmore:hover { background: var(--accent-tint); }
.tfields { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.tfields label { display: grid; gap: 2px; font-size: 11px; color: var(--muted); }
.tfields input, .tfields select, .twaive input { border: 1px solid var(--line-strong); border-radius: 6px; padding: 4px 8px; font: inherit; font-size: 13px; color: var(--fg); background: var(--bg); width: 9.5em; }
.tfields input:focus, .tfields select:focus, .twaive input:focus { outline: none; border-color: var(--accent); }
.twaive { display: grid; gap: 4px; font-size: 12px; }
.twaive input { width: 100%; max-width: 28em; }
.task { border: 1px dashed var(--v-partial-line); background: var(--v-partial-bg); border-radius: 8px; padding: 8px 10px; display: grid; gap: 6px; font-size: 12px; }
.task .tlab { color: var(--warn); font-weight: 600; }

#todo-pop { position: fixed; left: 12px; bottom: 100px; z-index: 30; width: min(560px, calc(100vw - 24px)); max-height: min(70vh, 640px); overflow: auto; background: var(--bg); border-radius: 14px; box-shadow: 0 12px 40px var(--line-strong), 0 0 0 1px var(--line); }
#todo-pop .ecard { border: 0; border-radius: 14px; }
#todo-pop .tclose { position: absolute; top: 8px; right: 8px; }
.todocard .tsec { display: grid; gap: 0; }
.todocard .tcap { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 4px; font-size: 13px; color: var(--heading); }
.todocard .tcap .nu b { font-size: 15px; }
.todocard .tcap .dim { font-size: 11px; }
.todocard .tnote { font-size: 12px; color: var(--fg); line-height: 1.5; }
.cnext { align-items: center; }
.cnext input[type="date"] { border: 1px solid var(--line-strong); border-radius: 999px; padding: 1px 10px; font: inherit; font-size: 12px; color: var(--fg); background: var(--bg); }
.todocard .trow { display: flex; align-items: center; gap: 2px; }
.todocard .trow .todorow { flex: 1; min-width: 0; }
.todocard .tdel { border: 0; background: none; color: var(--subtle); padding: 4px 8px; border-radius: 6px; font-size: 14px; flex: none; }
.todocard .tdel:hover { color: var(--err); background: var(--hover); }
.todocard .tdel.sure { color: var(--err); font-size: 12px; font-weight: 600; }
.todocard .tsure { font-size: 11px; padding: 0 8px 6px; }

.bh, .rec header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 6px 14px; }
.bh > .hl, .rec header > .hl { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.brief .bh { margin-bottom: 8px; }
.brief.two .bh { grid-column: 1 / -1; margin-bottom: 0; }
.rgo { flex: 0 1 auto; max-width: 100%; margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; }
.rgo .seg { display: inline-flex; flex-wrap: wrap; max-width: 100%; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); overflow: hidden; }

.rgo .seg > .op { border: 0; border-radius: 0; margin: 0; background: none; box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line);
  display: inline-flex; align-items: center; gap: 3px; padding: 3px 9px; font-size: 12px; color: var(--fg); text-decoration: none; white-space: nowrap; cursor: pointer; }
.rgo .seg > .op:hover { background: var(--hover); color: var(--heading); }
.op > svg { width: 14px; height: 14px; flex: none; }
.op .oplbl { font-size: 9px; line-height: 1; letter-spacing: .02em; align-self: flex-start; margin-top: 1px; color: var(--subtle); }
.op:hover .oplbl { color: var(--muted); }

.matchbtn { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--accent); background: var(--accent); color: #fff;
  border-radius: 8px; padding: 3px 10px; font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap; cursor: pointer; }
.matchbtn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.matchbtn > svg { width: 13px; height: 13px; flex: none; }

.pin { position: sticky; bottom: 0; z-index: 2; padding-top: 6px; background: linear-gradient(transparent, var(--bg) 6px); }
.pin .ecard { background: var(--bg); max-height: 56vh; overflow: auto; }

.pin { display: flex; flex-direction: column; gap: 6px; }
.pin .ecard { max-height: 50vh; }
.tray-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.tray-h b { color: var(--heading); }
.tray-h .primary { margin-left: auto; }
.tray-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px; padding: 6px 12px; font-size: 13px; }
.tray-row:hover { border-color: var(--accent); background: var(--warm); }
.tray-row .tw { color: var(--heading); font-weight: 600; flex: none; }
.tray-row .tm { flex: 1; min-width: 0; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tray-row .tl { flex: none; font-size: 12px; color: var(--accent-dark); }
.tray-row .tok { flex: none; font-size: 12px; color: var(--subtle); }

.cna { row-gap: 6px; }
.cgrp { display: inline-flex; align-items: center; gap: 4px; margin-right: 10px; }
.cgrp small { font-size: 11px; color: var(--subtle); margin-right: 2px; }

.stepc { gap: 8px; }
.sdones { display: flex; flex-wrap: wrap; gap: 6px; }
.sdone { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line-strong); background: var(--bg); border-radius: 999px; padding: 2px 10px; font-size: 12px; color: var(--fg); cursor: pointer; }
.sdone:hover { border-color: var(--accent); background: var(--warm); }
.sdone .ent { border: 0; padding: 0; background: none; }
.sq { font-size: 15px; font-weight: 600; color: var(--heading); margin-top: 2px; }
.sin .cid { min-width: 240px; }
.sfoot { border-top: 1px solid var(--line); padding-top: 8px; }
.sconsult { font-size: 12px; color: var(--accent-dark); }

.sin { position: relative; }
.sin .cid.who { min-width: 320px; }
.whosug { position: absolute; z-index: 5; left: 0; top: calc(100% + 4px); width: min(520px, 100%); max-height: 300px; overflow: auto; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: 0 8px 24px var(--line-strong); padding: 4px; }
.whosug .wcap { font-size: 11px; color: var(--subtle); padding: 4px 8px; }
.whosug .sg { width: 100%; }
.pin .ecard.stepc { overflow: visible; max-height: none; }

.scands { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.scand { display: flex; align-items: baseline; gap: 8px; text-align: left; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px; padding: 6px 12px; font-size: 13px; }
.scand:hover { border-color: var(--accent); background: var(--warm); }
.scand small { color: var(--subtle); font-variant-numeric: tabular-nums; flex: none; }
.scand b { color: var(--heading); font-weight: 600; flex: none; }
.scand span { color: var(--muted); font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scand em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--accent-dark); flex: none; }

.stepc .cseg button { padding: 4px 14px; font-size: 14px; }
.stepc .sskip { border: 1px dashed var(--line-strong); background: none; border-radius: 999px; padding: 4px 14px; font-size: 13px; color: var(--muted); }
.stepc .sskip:hover { border-color: var(--accent); color: var(--accent-dark); }
.scand.on { border-color: var(--accent); background: var(--accent-tint); }
.sfoot { gap: 4px; }
.snav { border: 0; background: none; padding: 4px 8px; border-radius: 6px; font-size: 13px; color: var(--muted); }
.snav:hover { background: var(--hover); color: var(--heading); }
.snav.sask { color: var(--accent-dark); }
.snav.sask:hover { background: var(--accent-tint); color: var(--accent-dark); }
.snav.scancel { margin-left: auto; }
.snav.scancel:hover { color: var(--err); background: var(--v-ng-bg); }

.scand { align-items: center; }
.scand .ei { width: 26px; height: 26px; }
.scand .ei-job, .scand .ei-client { border-radius: 7px; }
.sdone { border: 0; background: var(--surface); border-radius: 6px; padding: 3px 9px; color: var(--muted); }
.sdone::before { content: "✓"; color: var(--ok); font-size: 11px; font-weight: 700; }
.sdone:hover { background: var(--accent-tint); color: var(--accent-dark); }
.sdone .ent b { color: var(--fg); }

#recwin { position: fixed; left: 12px; bottom: 100px; z-index: 25; width: min(500px, calc(100vw - 24px)); max-height: min(78vh, 760px); background: var(--bg); border-radius: 14px; box-shadow: 0 12px 40px var(--pop-shadow), 0 0 0 1px var(--line); display: flex; flex-direction: column; overflow: hidden; }
#recwin[hidden] { display: none; }
.rw-head { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.rw-head > b { display: inline-flex; align-items: center; gap: 6px; color: var(--heading); font-size: 15px; margin-right: auto; }
.rw-head > b svg { width: 16px; height: 16px; color: var(--accent); }
.rw-body { flex: 1; overflow: auto; padding: 12px 14px 32px; display: flex; flex-direction: column; gap: 12px; }
#recwin .pin { position: static; background: none; padding-top: 0; }
#recwin .pin .ecard { max-height: none; }
#recwin .m { margin: 0; max-width: none; }
.rw-empty { text-align: center; padding: 28px 8px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rw-hint { font-size: 12px; max-width: 300px; }
.rw-sugs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }
.rw-sugs .act { border: 1px dashed var(--accent-tint-line); background: var(--bg); border-radius: 999px; padding: 3px 12px; font-size: 13px; color: var(--accent-dark); }
.rw-sugs .act:hover { background: var(--accent-tint); }
.rw-today { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.rw-cap { font-size: 13px; color: var(--muted); }
.rw-cap b { color: var(--heading); margin-right: 6px; }
.todobtn.on { background: var(--accent-tint); }
.todobtn.on .tlabel { color: var(--accent-dark); }

.lrec { margin-left: auto; flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-strong); color: var(--muted); background: var(--bg); }
.lrec:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--warm); }
.lrec svg { width: 14px; height: 14px; }

#notice { margin-left: auto; flex: none; }
.bellbtn { position: relative; border: 0; background: none; width: 34px; height: 34px; border-radius: 8px; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.bellbtn:hover { background: var(--hover); color: var(--heading); }
.bellbtn .tnum { top: 0; right: -2px; box-shadow: 0 0 0 2px var(--bg); }
#notice-pop { position: fixed; top: 48px; right: 12px; z-index: 30; width: min(420px, calc(100vw - 24px)); max-height: min(75vh, 680px); display: flex; background: var(--bg); border-radius: 12px; box-shadow: 0 12px 40px var(--pop-shadow), 0 0 0 1px var(--line); overflow: hidden; }
.ncard { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.nhead { display: flex; align-items: center; gap: 8px; padding: 10px 8px 10px 16px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--heading); flex: none; }
.nhead .ncount { font-size: 12px; color: var(--muted); }
.nhead .ncount .nu b { font-size: 13px; color: var(--accent-dark); }
.nhead .ngap { flex: 1; }
.nhead .nall { border: 0; background: none; color: var(--accent-dark); font-size: 12px; padding: 4px 8px; border-radius: 6px; cursor: pointer; }
.nhead .nall:hover { background: var(--accent-tint); }
.nlist { overflow: auto; min-height: 0; }
.nempty { padding: 28px 16px; text-align: center; font-size: 13px; }
.nfoot { flex: none; padding: 8px 16px 10px; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.5; }
.nitem { position: relative; border-bottom: 1px solid var(--line); }
.nitem:last-child { border-bottom: 0; }
.nitem.unread { background: var(--warm); }
.nitem:hover { background: var(--hover); }
.nmain { width: 100%; border: 0; background: none; display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px 12px 10px; text-align: left; font: inherit; color: var(--fg); cursor: pointer; }
.ndot { width: 7px; height: 7px; border-radius: 999px; flex: none; margin-top: 15px; background: transparent; }
.nitem.unread .ndot { background: var(--accent); }

.nav { position: relative; width: 36px; height: 36px; flex: none; }
.nface { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: var(--surface) center / cover no-repeat; color: var(--staff-ink); box-shadow: inset 0 0 0 1px var(--line); }
.nico { position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; border-radius: 999px; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
.nitem.unread .nico { box-shadow: 0 0 0 2px var(--warm); }
.k-ending .nico { background: var(--v-partial-bg); color: var(--warn); outline: 1px solid var(--v-partial-line); outline-offset: -1px; }
.nface.njob { color: var(--muted); border-radius: 10px; }
.k-job_ending .nico { background: var(--info-bg); color: var(--info-ink); outline: 1px solid var(--info-line); outline-offset: -1px; }
.npeople { font-size: 12px; color: var(--muted); }
.npeople b { color: var(--fg); font-weight: 600; }
.npeople b.mine { color: var(--accent-dark); }
.k-renew .nico, .k-renew_ask .nico { background: var(--info-bg); color: var(--info-ink); outline: 1px solid var(--info-line); outline-offset: -1px; }
.k-client_end .nico { background: var(--v-ng-bg); color: var(--err); outline: 1px solid var(--v-ng-line); outline-offset: -1px; }
.k-concern .nico { background: var(--v-partial-bg); color: var(--warn); outline: 1px solid var(--v-partial-line); outline-offset: -1px; }

.ninline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 16px 12px 63px; margin-top: -4px; }
.ninline .nask { font-size: 11px; margin-right: 2px; }
.npick .dim { font-size: 10px; }
.npick.go { border-color: var(--accent); color: var(--accent-dark); }
.npick .nu b { font-size: 12px; }
.nnote { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-available .nico { background: var(--v-ok-bg); color: var(--ok); outline: 1px solid var(--v-ok-line); outline-offset: -1px; }
.ntext { display: grid; gap: 3px; min-width: 0; }
.nsent { font-size: 13px; line-height: 1.5; color: var(--muted); }
.nsent b { color: var(--heading); font-weight: 600; }
.nitem.unread .nsent { color: var(--fg); }
.nmeta { font-size: 11px; color: var(--subtle); }
.nmeta .nu b { font-size: 12px; color: var(--fg); }
.nmeta .sep { margin: 0 5px; }

.nops { position: absolute; right: 10px; bottom: 8px; display: none; align-items: center; gap: 2px; background: var(--bg); border-radius: 8px; box-shadow: 0 0 0 1px var(--line), 0 2px 8px var(--pop-shadow); padding: 2px; font-size: 11px; }
.nitem:hover .nops, .nitem.picking .nops, .nitem:focus-within .nops { display: flex; }
.nops .dim { padding: 0 4px 0 6px; }
.nop { border: 0; background: none; width: 28px; height: 26px; border-radius: 6px; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.nop:hover { background: var(--hover); color: var(--heading); }
.nop[data-nt="todo"]:hover { color: var(--accent-dark); background: var(--accent-tint); }
.npick { border: 1px solid var(--line-strong); background: var(--bg); color: var(--fg); border-radius: 999px; padding: 1px 9px; font: inherit; font-size: 11px; cursor: pointer; }
.npick:hover { border-color: var(--accent); color: var(--accent-dark); }
