:root {
  --sans: var(--seed-font-family);
  --mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, "D2Coding", monospace;

  --bg: var(--seed-color-bg-layer-default);
  --bg-soft: var(--seed-color-bg-layer-basement);
  --bg-float: var(--seed-color-bg-layer-floating);
  --bg-hover: var(--seed-color-bg-transparent-pressed);
  --bg-selected: var(--seed-color-bg-transparent-selected);
  --fg: var(--seed-color-fg-neutral);
  --fg-muted: var(--seed-color-fg-neutral-muted);
  --fg-faint: color-mix(in srgb, var(--seed-color-fg-neutral-muted) 55%, var(--seed-color-fg-neutral-subtle));
  --border: var(--seed-color-stroke-neutral-weak);
  --divider: var(--seed-color-stroke-neutral-muted);
  --field: var(--seed-color-stroke-neutral-weak);
  --field-focus: var(--seed-color-stroke-neutral-contrast);
  --accent: var(--seed-color-palette-blue-800);
  --accent-solid: var(--seed-color-bg-informative-solid);
  --accent-fg: var(--seed-color-fg-on-informative-solid);
  --accent-soft: var(--seed-color-bg-informative-weak);
  --mention-bg: var(--seed-color-bg-warning-weak);
  --mention-fg: var(--seed-color-fg-warning-contrast);
  --danger: var(--seed-color-palette-red-800);
  --warn-bg: var(--seed-color-bg-warning-weak);
  --warn-fg: var(--seed-color-fg-warning-contrast);
  --ok: var(--seed-color-palette-green-800);
  --stale: var(--seed-color-palette-yellow-800);
  --chip-bg: var(--seed-color-bg-neutral-weak);
  --code-bg: var(--seed-color-bg-neutral-muted);
  --code-fg: var(--seed-color-palette-red-800);
  --focus: var(--seed-color-stroke-focus-ring);
  --overlay: var(--seed-color-bg-overlay);
  --shadow: var(--seed-shadow-s3);
  --shadow-low: var(--seed-shadow-s2);

  --side-bg: var(--seed-color-palette-gray-100);
  --side-fg: var(--seed-color-fg-neutral-muted);
  --side-muted: var(--fg-faint);
  --side-active-fg: var(--seed-color-fg-neutral);
  --online: var(--seed-color-palette-green-500);
}

* { box-sizing: border-box; }
html, body, #app { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: var(--seed-font-size-t4);
  line-height: var(--seed-line-height-t4);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code, pre, .mono { font-family: var(--mono); }
a { color: var(--accent); }
:where(a, button, summary, [tabindex]):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.btn-danger { color: var(--danger); }
.link-btn { border: 0; background: none; color: var(--accent); padding: 0; font-weight: var(--seed-font-weight-bold); }
.icon-btn {
  display: inline-grid; place-items: center; min-width: 32px; height: 32px; border: 0; background: none; padding: 0 6px;
  border-radius: var(--seed-radius-r2); color: var(--fg-muted); line-height: 1;
}
.icon-btn:hover { background: var(--bg-hover); color: var(--fg); }

input[type=text], input[type=password], input[type=number], input[type=date], input:not([type]), select, textarea {
  width: 100%; min-height: 40px; border: 0; border-radius: var(--seed-radius-r2); background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--field); padding: 8px 12px; outline: none; font-weight: var(--seed-font-weight-regular);
  font-size: var(--seed-font-size-t4); line-height: var(--seed-line-height-t4);
}
select { padding-right: 8px; }
input::placeholder, textarea::placeholder { color: var(--seed-color-fg-placeholder); }
input:focus, select:focus, textarea:focus { box-shadow: inset 0 0 0 2px var(--field-focus); }
input:disabled, input[readonly], select:disabled, textarea:disabled { background: var(--seed-color-bg-disabled); color: var(--seed-color-fg-disabled); }
label.field { display: grid; gap: 6px; font-size: var(--seed-font-size-t3); line-height: var(--seed-line-height-t3); font-weight: var(--seed-font-weight-bold); color: var(--fg); }
.muted { color: var(--fg-muted); }
.faint { color: var(--fg-faint); }
.notice { min-height: auto; padding: var(--seed-dimension-x2_5) var(--seed-dimension-x3_5); white-space: pre-wrap; overflow-wrap: anywhere; }

/* join */
.join { min-height: 100%; display: grid; grid-template-columns: min(400px, 100%); place-content: center; justify-items: center; gap: var(--seed-dimension-x5); padding: 16px; background: var(--bg-soft); overflow: auto; }
.join-icon { display: block; border-radius: var(--seed-radius-r4); box-shadow: var(--shadow-low); }
.join form {
  width: min(400px, 100%); background: var(--bg-float); border-radius: var(--seed-radius-r5);
  padding: var(--seed-dimension-x8) var(--seed-dimension-x6); display: grid; gap: var(--seed-dimension-x4); box-shadow: var(--shadow-low);
}
.join h1 { margin: 0; font-size: var(--seed-font-size-t9); line-height: var(--seed-line-height-t9); }
.join p { margin: 0 0 var(--seed-dimension-x2); color: var(--fg-muted); }
.join .seed-action-button { width: 100%; margin-top: var(--seed-dimension-x2); }
.join-code { text-align: center; font-size: var(--seed-font-size-t10); line-height: var(--seed-line-height-t10); font-weight: var(--seed-font-weight-bold); letter-spacing: 0.3em; padding-left: 0.3em; }

/* shell */
.shell { display: grid; grid-template-columns: 260px minmax(0, 1fr) auto; height: 100%; }
.sidebar {
  background: var(--side-bg); color: var(--side-fg); display: flex; flex-direction: column; min-height: 0;
  box-shadow: inset -1px 0 0 0 var(--divider);
}
.ws { padding: 0 var(--seed-dimension-x4); height: 56px; flex: none; display: flex; align-items: center; gap: 8px; }
.ws-icon { flex: none; border-radius: var(--seed-radius-r2); }
.ws h1 {
  display: grid; flex: 1; min-width: 0; margin: 0; color: var(--side-active-fg);
  font-size: var(--seed-font-size-t5); line-height: var(--seed-line-height-t5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ws-sub { font-size: var(--seed-font-size-t2); line-height: var(--seed-line-height-t2); font-weight: var(--seed-font-weight-medium); color: var(--side-muted); }
.conn { font-size: var(--seed-font-size-t2); font-weight: var(--seed-font-weight-bold); color: var(--danger); }
.nav { flex: 1; overflow-y: auto; padding: 4px 0 16px; scrollbar-width: thin; }
.nav-section { margin-top: var(--seed-dimension-x4); }
.nav-section:first-child { margin-top: 0; }
.nav-title { padding: 6px var(--seed-dimension-x4) 4px; font-size: var(--seed-font-size-t3); line-height: var(--seed-line-height-t3); color: var(--side-muted); font-weight: var(--seed-font-weight-bold); }
.nav-item {
  display: flex; align-items: center; gap: 8px; margin: 1px 8px; padding: 0 10px; min-height: 36px; border-radius: var(--seed-radius-r2_5);
  color: var(--side-fg); text-decoration: none; font-weight: var(--seed-font-weight-medium);
  border: 0; background: none; width: calc(100% - 16px); text-align: left;
}
.nav-item:hover { background: var(--bg-hover); }
.nav-item.active { background: var(--bg-selected); color: var(--side-active-fg); font-weight: var(--seed-font-weight-bold); }
.nav-item.unread { color: var(--side-active-fg); font-weight: var(--seed-font-weight-bold); }
.nav-item .label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item .hash { color: var(--side-muted); width: 16px; text-align: center; }
.nav-item.muted-item { color: var(--side-muted); }
.search-item { flex: none; margin-bottom: 6px; box-shadow: inset 0 0 0 1px var(--border); color: var(--side-muted); }
.search-item .hash { font-size: 13px; }
kbd {
  font-family: var(--mono); font-size: var(--seed-font-size-t1); line-height: 18px; padding: 0 5px; border-radius: var(--seed-radius-r1);
  background: var(--chip-bg); color: var(--fg-muted); white-space: nowrap;
}

/* quick switcher */
.switcher-scrim { position: fixed; inset: 0; z-index: 55; background: var(--overlay); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.switcher {
  width: min(620px, 100%); max-height: min(560px, 76vh); display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg-float); border-radius: var(--seed-radius-r4); box-shadow: var(--shadow), inset 0 0 0 1px var(--divider);
}
input.switcher-input {
  flex: none; border-radius: 0; box-shadow: inset 0 -1px 0 var(--divider); padding: 16px 18px; min-height: 0; background: transparent;
  font-size: var(--seed-font-size-t6); line-height: var(--seed-line-height-t6);
}
input.switcher-input:focus { box-shadow: inset 0 -1px 0 var(--divider); }
.switcher-list { flex: 1; overflow-y: auto; padding: 6px; overscroll-behavior: contain; }
.switch-sec { padding: 8px 10px 4px; font-size: var(--seed-font-size-t2); font-weight: var(--seed-font-weight-bold); color: var(--fg-faint); }
.switch-row {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 6px 10px; border: 0; background: none;
  border-radius: var(--seed-radius-r2); text-align: left; color: var(--fg);
}
.switch-row:hover { background: var(--bg-hover); }
.switch-row.sel { background: var(--bg-selected); }
.switch-icon { flex: none; min-width: 22px; display: inline-flex; justify-content: center; }
.switch-key { font-size: var(--seed-font-size-t2); color: var(--fg-muted); }
.switch-label { flex: none; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: var(--seed-font-weight-medium); }
.switch-hint { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg-faint); font-size: var(--seed-font-size-t3); }
.switcher mark { background: var(--mention-bg); color: var(--mention-fg); border-radius: 2px; }
.switch-empty { padding: 18px 12px; color: var(--fg-muted); font-size: var(--seed-font-size-t4); }
.switcher-foot {
  flex: none; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 8px 14px;
  font-size: var(--seed-font-size-t2); color: var(--fg-faint); box-shadow: inset 0 1px 0 var(--divider);
}
.switcher-chips, .found-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.switcher-chips:not(:empty) { flex: none; padding: 8px 14px 0; }
.switch-row.two-line { align-items: flex-start; padding-block: 8px; }
.switch-row.two-line .switch-icon { padding-top: 1px; }
.switch-stack { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.switch-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switch-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg-faint); font-size: var(--seed-font-size-t2); }
.switch-more .switch-label { color: var(--fg-muted); }
.found { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 16px 24px 24px; }
.found-input { flex: none; max-width: 620px; }
.found-list { display: flex; flex-direction: column; max-width: 720px; }
.found-list mark { background: var(--mention-bg); color: var(--mention-fg); border-radius: 2px; }
.found-more { align-self: flex-start; margin-top: 8px; }
@media (max-width: 700px) { .found { padding: 12px 16px 20px; } }
.blk.flash { animation: blk-flash 1.6s ease-out; }
@keyframes blk-flash { 0%, 40% { background: var(--accent-soft); } 100% { background: transparent; } }
div.nav-item:hover { background: none; }
.dot { width: 10px; height: 10px; border-radius: var(--seed-radius-full); box-shadow: inset 0 0 0 1.5px var(--side-muted); flex: none; }
.dot.on { background: var(--online); box-shadow: none; }
.me-bar { box-shadow: inset 0 1px 0 0 var(--divider); padding: 10px 12px; display: flex; align-items: center; gap: 8px; }
.me-bar .name { flex: 1; min-width: 0; font-weight: var(--seed-font-weight-bold); color: var(--side-active-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-bar .me-settings { color: var(--side-fg); font-size: var(--seed-font-size-t6); }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.view-header {
  display: flex; align-items: center; gap: 10px; padding: 0 var(--seed-dimension-x4) 0 var(--seed-dimension-x5); height: 56px;
  box-shadow: inset 0 -1px 0 0 var(--divider); flex: none;
}
.view-header h2 { font-size: var(--seed-font-size-t6); line-height: var(--seed-line-height-t6); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.view-header .sub { display: flex; gap: 6px; align-items: center; min-width: 0; color: var(--fg-muted); font-size: var(--seed-font-size-t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.view-header .spacer { flex: 1; }
.view-header select { width: auto; min-height: 36px; max-width: 45%; }
.webhook-chip:empty, .bin-link:empty { display: none; }
.menu-btn { display: none; }
.hist-nav { display: inline-flex; flex: none; gap: 2px; margin-left: calc(-1 * var(--seed-dimension-x2)); }
.panel .hist-nav { display: none; }

.seed-avatar__root { flex: none; }
.avatar-letter { color: var(--seed-color-palette-static-white); font-weight: var(--seed-font-weight-bold); font-size: var(--seed-font-size-t5); user-select: none; }
.seed-avatar__root--size_24 .avatar-letter { font-size: var(--seed-font-size-t2); }
.seed-avatar__root--size_20 .avatar-letter { font-size: var(--seed-font-size-t1); }
.seed-avatar__root--size_80 .avatar-letter, .seed-avatar__root--size_96 .avatar-letter { font-size: var(--seed-font-size-t10); }
.avatar-claude { border-radius: var(--seed-radius-full); background: var(--seed-color-palette-carrot-500); color: var(--seed-color-palette-static-white); padding: 2px; }
/* a face or a name that opens the profile card */
.who {
  border: 0; background: none; padding: 0; margin: 0; color: inherit; font: inherit; text-align: left;
  display: inline-flex; align-items: center; gap: 6px; min-width: 0; border-radius: var(--seed-radius-r1);
}
.who-avatar { border-radius: var(--seed-radius-full); line-height: 0; }
.who.author:hover, .who-inline:hover { text-decoration: underline; }
.person-head .who-inline { font: inherit; }
.person-face { position: relative; flex: none; display: inline-flex; }
.person-face .dot { position: absolute; right: -2px; bottom: -2px; width: 9px; height: 9px; box-shadow: 0 0 0 2px var(--side-bg), inset 0 0 0 1.5px var(--side-muted); background: var(--side-bg); }
.person-face .dot.on { background: var(--online); box-shadow: 0 0 0 2px var(--side-bg); }
.person-item .label { display: flex; gap: 6px; align-items: baseline; }
.person-item .person-name { flex: none; max-width: 65%; overflow: hidden; text-overflow: ellipsis; }
.person-item .person-status { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: var(--seed-font-size-t2); color: var(--side-muted); font-weight: var(--seed-font-weight-regular); }
.person-status img.emoji, .pc-status img.emoji { height: 1.2em; vertical-align: -0.2em; }
.me-chip {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 4px 6px; margin: -4px -6px;
  border-radius: var(--seed-radius-r2); color: inherit; text-align: left;
}
.me-chip:hover { background: var(--bg-hover); }

/* messages */
.messages { flex: 1; overflow-y: auto; padding: 8px 0 12px; overscroll-behavior: contain; }
.channel-start { padding: var(--seed-dimension-x6) var(--seed-dimension-x5) 8px; color: var(--fg-muted); }
.channel-start strong { display: block; color: var(--fg); font-size: var(--seed-font-size-t8); line-height: var(--seed-line-height-t8); margin-bottom: 2px; }
.older { text-align: center; padding: 8px; color: var(--fg-faint); font-size: var(--seed-font-size-t3); }
.day { display: flex; align-items: center; gap: 12px; margin: 16px 20px 6px; color: var(--fg-muted); font-size: var(--seed-font-size-t3); font-weight: var(--seed-font-weight-bold); }
.day::before, .day::after { content: ""; flex: 1; border-top: 1px solid var(--divider); }
.new-divider { display: flex; align-items: center; gap: 8px; margin: 6px 20px; color: var(--danger); font-size: var(--seed-font-size-t2); font-weight: var(--seed-font-weight-bold); }
.new-divider::before { content: ""; flex: 1; border-top: 1px solid var(--seed-color-stroke-critical-solid); }

.msg { position: relative; display: flex; gap: 12px; padding: 8px 20px 4px; }
.msg.grouped { padding-top: 2px; }
.msg:hover { background: var(--bg-hover); }
.msg .gutter { width: 36px; flex: none; display: flex; justify-content: center; align-items: flex-start; }
.msg .hover-time { visibility: hidden; color: var(--fg-faint); font-size: var(--seed-font-size-t1); padding-top: 4px; white-space: nowrap; }
.msg:hover .hover-time { visibility: visible; }
.msg .body { min-width: 0; flex: 1; }
.msg .text { font-size: var(--seed-font-size-t5); line-height: var(--seed-line-height-t5); }
.meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.author { font-weight: var(--seed-font-weight-bold); }
.meta time { color: var(--fg-faint); font-size: var(--seed-font-size-t2); }
.text { overflow-wrap: anywhere; }
.text pre {
  background: var(--code-bg); box-shadow: inset 0 0 0 1px var(--divider); border-radius: var(--seed-radius-r2); padding: 10px 12px; margin: 6px 0;
  overflow-x: auto; font-size: var(--seed-font-size-t3); line-height: var(--seed-line-height-t3); white-space: pre;
}
.text code { background: var(--chip-bg); border-radius: var(--seed-radius-r1); padding: 1px 5px; font-size: .85em; color: var(--code-fg); }
.text pre code { padding: 0; color: inherit; background: none; font-size: inherit; }
.icode { position: relative; }
.icode code { -webkit-user-select: all; user-select: all; }
.icode-copy {
  position: absolute; right: -6px; bottom: calc(100% + 2px); z-index: 3; display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; padding: 0; border: 0; border-radius: var(--seed-radius-r1_5); background: var(--bg-float); color: var(--fg-muted);
  box-shadow: var(--shadow-low), inset 0 0 0 1px var(--divider); opacity: 0; pointer-events: none; transition: opacity .12s;
}
.icode:hover .icode-copy, .icode:focus-within .icode-copy, .icode-copy.copied { opacity: 1; pointer-events: auto; }
.icode-copy:hover { color: var(--fg); }
.icode-copy.copied { color: var(--seed-color-fg-positive); }
@media (hover: none) {
  .icode-copy { position: static; opacity: 1; pointer-events: auto; width: 28px; height: 22px; margin-left: 2px; vertical-align: middle; box-shadow: none; background: none; }
}
.edited { color: var(--fg-faint); font-size: var(--seed-font-size-t2); margin-left: 4px; }
.mention { background: var(--accent-soft); color: var(--seed-color-fg-informative-contrast); border-radius: var(--seed-radius-r1); padding: 0 3px; font-weight: var(--seed-font-weight-bold); }
.mention.me { background: var(--mention-bg); color: var(--mention-fg); }
.mention.call { box-shadow: inset 0 0 0 1px currentColor; }
.msg.mentions-me { background: color-mix(in srgb, var(--mention-bg) 60%, transparent); box-shadow: inset 3px 0 0 var(--seed-color-stroke-warning-solid); }

.msg.system { padding-top: 3px; padding-bottom: 3px; font-size: var(--seed-font-size-t3); line-height: var(--seed-line-height-t3); color: var(--fg-muted); }
.msg.system .text { font-size: inherit; line-height: inherit; }
.msg.system .gutter { color: var(--fg-faint); font-size: var(--seed-font-size-t2); padding-top: 2px; }
.msg.system time { color: var(--fg-faint); font-size: var(--seed-font-size-t1); margin-left: 6px; }

.seed-reaction-button[aria-pressed=true] { color: var(--seed-color-palette-carrot-800); --seed-count-color: var(--seed-color-palette-carrot-800); }
.reactions { display: flex; flex-wrap: wrap; gap: var(--seed-dimension-x1_5); margin-top: var(--seed-dimension-x1_5); }
.replies {
  margin: 4px 0 0 -8px; border: 0; background: none; border-radius: var(--seed-radius-r2); padding: 4px 8px; display: flex; flex-wrap: wrap; width: fit-content; max-width: 100%; gap: 0 8px; text-align: left;
  color: var(--accent); font-weight: var(--seed-font-weight-bold); font-size: var(--seed-font-size-t3);
}
.replies:hover { background: var(--bg-hover); }
.replies span { color: var(--fg-faint); font-weight: var(--seed-font-weight-regular); }
.actions {
  position: absolute; right: 16px; top: -16px; display: none; gap: 2px; padding: 3px;
  background: var(--bg-float); border-radius: var(--seed-radius-r2_5); box-shadow: var(--shadow-low), inset 0 0 0 1px var(--divider); z-index: 2;
}
.msg:hover .actions, .msg:focus-within .actions, .msg.menu-open .actions { display: flex; }
.msg.menu-open { background: var(--bg-hover); }
.actions button { border: 0; background: none; border-radius: var(--seed-radius-r2); min-width: 32px; height: 32px; padding: 0 6px; font-size: var(--seed-font-size-t4); color: var(--fg-muted); }
.actions button:hover { background: var(--bg-hover); color: var(--fg); }
.actions .bar-ico { display: inline-flex; align-items: center; justify-content: center; width: 32px; padding: 0; color: var(--fg); }
.actions .bar-ico[aria-expanded=true] { background: var(--bg-hover); }
@media (hover: none) { .msg:hover .actions, .msg:focus-within .actions, .msg.menu-open .actions { display: none; } }
.msg-menu {
  position: fixed; z-index: 40; display: grid; min-width: 200px; padding: 6px;
  background: var(--bg-float); border-radius: var(--seed-radius-r3); box-shadow: var(--shadow), inset 0 0 0 1px var(--divider);
}
.msg-pop [role=menuitem] {
  display: flex; align-items: center; gap: 10px; border: 0; background: none; text-align: left; padding: 8px 10px; border-radius: var(--seed-radius-r2);
  color: var(--fg); font-size: var(--seed-font-size-t4); line-height: var(--seed-line-height-t4);
}
.msg-pop [role=menuitem]:hover, .msg-pop [role=menuitem]:focus-visible { background: var(--bg-hover); }
.msg-pop .danger { color: var(--danger); }
.msg-pop hr { border: 0; height: 1px; margin: 4px 6px; background: var(--divider); }
.msg-sheet-back { position: fixed; inset: 0; z-index: 40; background: var(--overlay); }
.msg-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; display: grid; gap: 8px; max-height: 80dvh; overflow-y: auto;
  padding: 16px 12px calc(12px + env(safe-area-inset-bottom)); background: var(--bg-float); border-radius: var(--seed-radius-r5) var(--seed-radius-r5) 0 0; box-shadow: var(--shadow);
}
.sheet-quick { display: flex; justify-content: space-around; padding-bottom: 12px; box-shadow: inset 0 -1px 0 var(--divider); }
.sheet-quick button { width: 52px; height: 52px; border: 0; border-radius: var(--seed-radius-full); background: var(--chip-bg); font-size: 26px; line-height: 1; }
.sheet-quick img.emoji { height: 28px; vertical-align: middle; }
.sheet-list { display: grid; }
.msg-sheet [role=menuitem] { min-height: 48px; padding: 0 12px; font-size: var(--seed-font-size-t5); }
.msg-delete-dlg p { margin: 0; }
.edit-box { display: grid; gap: 8px; margin-top: 2px; }
.edit-box .row { display: flex; gap: 6px; justify-content: flex-end; }

.task-chip {
  display: inline-flex; align-items: center; gap: 4px; border: 0; border-radius: var(--seed-radius-r1_5);
  padding: 1px 6px; font-size: var(--seed-font-size-t3); line-height: var(--seed-line-height-t3); font-weight: var(--seed-font-weight-bold);
  background: var(--chip-bg); vertical-align: 1px; color: var(--fg);
}
button.task-chip:hover { background: var(--seed-color-bg-neutral-weak-pressed); }
.task-chip .st { font-weight: var(--seed-font-weight-medium); color: var(--fg-muted); }
.task-chip.claimed .st { color: var(--accent); }
.task-chip.stale .st, .task-chip.review .st { color: var(--stale); }
.task-chip.done .st { color: var(--ok); }
.task-chip.draft .st { color: var(--fg-faint); }
.task-chip.gone { opacity: .6; }

/* composer */
.composer { padding: 0 var(--seed-dimension-x4) var(--seed-dimension-x4); flex: none; position: relative; }
.composer-box { border-radius: var(--seed-radius-r3); background: var(--bg); box-shadow: inset 0 0 0 1px var(--field); }
.composer-box:focus-within { box-shadow: inset 0 0 0 2px var(--field-focus); }
.composer textarea {
  box-shadow: none !important; resize: none; max-height: 40vh; min-height: 44px; padding: 12px 14px 6px; display: block; background: transparent;
  font-size: var(--seed-font-size-t5); line-height: var(--seed-line-height-t5);
}
.composer .hint { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 2px 8px 8px 14px; font-size: var(--seed-font-size-t2); color: var(--fg-faint); }
.hint-items { min-width: 0; }
.hint-item { white-space: nowrap; }
.autocomplete {
  position: absolute; left: 16px; bottom: calc(100% - 8px); min-width: 220px; background: var(--bg-float);
  border-radius: var(--seed-radius-r3); box-shadow: var(--shadow), inset 0 0 0 1px var(--divider); padding: 6px; z-index: 5;
  max-width: calc(100% - 32px);
}
.autocomplete button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 36px; border: 0; background: none; padding: 4px 8px; border-radius: var(--seed-radius-r2); text-align: left; }
.autocomplete button.sel { background: var(--bg-selected); font-weight: var(--seed-font-weight-bold); }
.ac-call {
  flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: var(--seed-radius-full);
  background: var(--accent-soft); color: var(--seed-color-fg-informative-contrast); font-weight: var(--seed-font-weight-bold);
}
.ac-name { flex: none; }
.ac-hint { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg-faint); font-size: var(--seed-font-size-t3); font-weight: normal; }

/* right panel */
.panel { width: var(--panel-w, 400px); position: relative; box-shadow: inset 1px 0 0 0 var(--divider); display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
.panel-resizer { position: absolute; inset: 0 auto 0 -4px; width: 8px; z-index: 6; cursor: col-resize; touch-action: none; }
.panel-resizer::after { content: ''; position: absolute; inset: 0 3px; transition: background-color var(--seed-duration-d2) var(--seed-timing-function-easing); }
.panel-resizer:hover::after, .panel-resizer:focus-visible::after, .shell.resizing .panel-resizer::after { background: var(--focus); }
.panel-resizer:focus-visible { outline: none; }
.shell.resizing { cursor: col-resize; user-select: none; }
.panel[hidden] { display: none; }
.panel .view-header h2 { font-size: var(--seed-font-size-t5); line-height: var(--seed-line-height-t5); }
.thread-sep { display: flex; align-items: center; gap: 10px; margin: 8px 20px; color: var(--fg-muted); font-size: var(--seed-font-size-t3); font-weight: var(--seed-font-weight-bold); }
.thread-sep::after { content: ""; flex: 1; border-top: 1px solid var(--divider); }
.task-detail { flex: 1; min-height: 0; padding: var(--seed-dimension-x5); overflow-y: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--seed-dimension-x4); align-content: start; }
.task-detail h3 { margin: 0; font-size: var(--seed-font-size-t7); line-height: var(--seed-line-height-t7); }
.task-detail h4 { margin: 4px 0 8px; font-size: var(--seed-font-size-t3); color: var(--fg-muted); }
.task-detail.history { gap: var(--seed-dimension-x2); }
.hist-help { margin: 0 0 4px; font-size: var(--seed-font-size-t3); }
.hist-group { border-radius: var(--seed-radius-r3); box-shadow: inset 0 0 0 1px var(--border); min-width: 0; }
.hist-group.open { box-shadow: inset 0 0 0 1px var(--divider); background: var(--bg-soft); }
.hist-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; width: 100%; padding: 10px 12px; border: 0; background: none;
  text-align: left; color: var(--fg); border-radius: var(--seed-radius-r3);
}
.hist-head:hover { background: var(--bg-hover); }
.hist-who { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: var(--seed-font-size-t4); }
.hist-name { font-weight: var(--seed-font-weight-bold); overflow-wrap: anywhere; }
.hist-sum { flex-basis: 100%; padding-left: 32px; color: var(--fg-muted); font-size: var(--seed-font-size-t3); overflow-wrap: anywhere; }
.hist-body { display: grid; gap: 8px; padding: 0 12px 12px 12px; }
.hist-change { display: grid; gap: 4px; padding: 8px 10px; border-radius: var(--seed-radius-r2); background: var(--bg); min-width: 0; }
.hist-change-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: var(--seed-font-size-t2); color: var(--fg-faint); font-weight: var(--seed-font-weight-bold); }
.hist-diff { white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--seed-font-size-t4); line-height: var(--seed-line-height-t4); }
.hist-diff del { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); text-decoration: line-through; border-radius: 2px; }
.hist-diff ins { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); text-decoration: none; border-radius: 2px; }
.hist-delete .hist-diff { opacity: .8; }
.hist-notes { font-size: var(--seed-font-size-t2); color: var(--fg-muted); }
.hist-restore-all, .hist-restore-group { justify-self: start; }
.task-detail .form { max-width: none; box-shadow: inset 0 0 0 1px var(--border); border-radius: var(--seed-radius-r3); padding: var(--seed-dimension-x4); }
.kv { display: grid; grid-template-columns: 80px 1fr; gap: 8px 12px; margin: 0; }
.kv dt { color: var(--fg-faint); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.task-thread { box-shadow: inset 0 0 0 1px var(--border); border-radius: var(--seed-radius-r3); padding: 4px 0; margin: 0 -4px; }
.task-thread .msg { padding-left: 10px; padding-right: 10px; }
.task-thread-empty { padding: 6px 10px; font-size: var(--seed-font-size-t3); }
.task-confirm {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 10px 12px;
  border-radius: var(--seed-radius-r3); background: var(--warn-bg); color: var(--warn-fg); font-size: var(--seed-font-size-t3);
}
.hist-toggle { display: block; margin: 0 0 6px; padding: 2px 0; border: 0; background: none; color: var(--fg-muted); font: inherit; font-size: var(--seed-font-size-t3); cursor: pointer; }
.hist-toggle:hover { color: var(--fg); }
.msg.flash { animation: blk-flash 1.6s ease-out; }
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.links li { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; overflow-wrap: anywhere; }

/* board: the scrolling body other views share */
.board { flex: 1; overflow-y: auto; padding: var(--seed-dimension-x5) var(--seed-dimension-x5) var(--seed-dimension-x10); }
.board section h3 { margin: 0 0 12px; font-size: var(--seed-font-size-t5); line-height: var(--seed-line-height-t5); display: flex; gap: 8px; align-items: center; }
.board section h3 .count { color: var(--fg-faint); font-weight: var(--seed-font-weight-medium); }
.person { margin-bottom: 16px; }
.holder { position: relative; display: inline-flex; flex: none; }
.holder-badge { position: absolute; right: -5px; bottom: -4px; min-width: 14px; height: 14px; padding: 0 3px; box-sizing: border-box; border-radius: var(--seed-radius-full);
  background: var(--seed-color-palette-carrot-500); color: var(--seed-color-palette-static-white); box-shadow: 0 0 0 1.5px var(--bg);
  font-size: 10px; line-height: 14px; font-weight: var(--seed-font-weight-bold); text-align: center; max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.holder.ended .holder-badge { background: var(--fg-faint); }
.holder-line { margin-left: 8px; }
.holder + .who-name { margin-left: 2px; }
.who-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sessions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sess { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--seed-radius-r2); background: var(--bg); }
.sess.idle { opacity: .62; }
.sess-name { flex: none; }
.sess-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sess-doing { font-size: var(--seed-font-size-t3); overflow-wrap: anywhere; }
.sess-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: var(--seed-font-size-t2); color: var(--fg-faint); }
.sess-area { padding: 0 6px; border-radius: var(--seed-radius-r1); background: var(--chip-bg); color: var(--fg-muted); overflow-wrap: anywhere; }
.sess-held { display: inline-flex; gap: 4px; align-items: center; }
.sess-warn { display: flex; flex-wrap: wrap; gap: 4px; }
.sess-body { flex: 1; }
.sess-task { font-weight: var(--seed-font-weight-medium); text-align: left; overflow-wrap: anywhere; }
.sess-end { flex: none; width: 24px; height: 24px; margin: -2px -4px 0 0; font-size: 16px; }
.pc-sessions { display: grid; gap: 6px; }
.pc-sess { display: flex; align-items: center; gap: 6px; font-size: var(--seed-font-size-t3); min-width: 0; }
.pc-sess.idle { opacity: .7; }
.pc-sess-doing { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.person-head { display: flex; align-items: center; gap: 8px; font-weight: var(--seed-font-weight-bold); margin-bottom: 8px; }
.person-head .dot { box-shadow: inset 0 0 0 1.5px var(--fg-faint); }
.person-head .dot.on { box-shadow: none; }
.task-id { border: 0; background: none; padding: 2px 4px; margin: -2px -4px; border-radius: var(--seed-radius-r1); color: var(--accent); font-weight: var(--seed-font-weight-bold); font-family: var(--mono); font-size: var(--seed-font-size-t3); }
.task-id:hover { background: var(--accent-soft); }
.card-tags, .chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.areas { display: flex; flex-wrap: wrap; gap: 4px; }
.area {
  font-family: var(--mono); font-size: var(--seed-font-size-t2); line-height: var(--seed-line-height-t2); color: var(--fg-muted);
  background: var(--chip-bg); border-radius: var(--seed-radius-r1); padding: 2px 6px; overflow-wrap: anywhere;
}
.area.none { color: var(--fg-faint); font-family: var(--sans); background: none; padding: 0; }
.area.locked { color: var(--fg); }
.note { font-size: var(--seed-font-size-t3); color: var(--fg-muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.empty { color: var(--fg-faint); padding: 6px 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--seed-dimension-x5); }
.filters select { width: auto; max-width: 100%; min-height: 36px; }
.ico { flex: none; }

/* 할일 보드 header: the project, the webhook, then the board's references and actions; details drop as it narrows */
.board-head { container: bhead / inline-size; gap: var(--seed-dimension-x2); padding: 0 var(--seed-dimension-x5); }
.board-head h2 { flex: none; }
.view-header select.board-project {
  flex: 0 1 auto; width: auto; min-width: 72px; max-width: 240px; min-height: 32px; padding: 4px 8px;
  font-size: var(--seed-font-size-t3); line-height: var(--seed-line-height-t3); font-weight: var(--seed-font-weight-bold); text-overflow: ellipsis;
}
.board-head .spacer { flex: 1 1 0; min-width: 4px; }
.board-head > :is(.prop-link, .bin-link, .board-refs, .webhook-chip) { display: inline-flex; gap: 6px; align-items: center; flex: none; }
.board-head .board-refs:empty, .board-head .prop-link:empty { display: none; }
.board-ref .ref-count { font-variant-numeric: tabular-nums; }
.board-ref .ref-count.hot { color: var(--seed-color-palette-carrot-800); }
.board-ref[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--seed-color-stroke-neutral-contrast); }
.live-dot { width: 8px; height: 8px; border-radius: var(--seed-radius-full); background: var(--fg-faint); flex: none; }
.live-dot.on { background: var(--online); }
.board-channel { font-weight: var(--seed-font-weight-bold); color: var(--fg-muted); text-decoration: none; }
.board-admin-btn { color: var(--fg-muted); }
@container bhead (max-width: 1180px) { .board-head :is(.prop-link, .bin-link, .webhook-chip) .chip-detail { display: none; } }
@container bhead (max-width: 900px) { .board-head .chip-detail { display: none; } }
@container bhead (max-width: 640px) { .board-head .board-channel, .board-head .board-admin-btn { display: none; } }
@container bhead (max-width: 520px) { .board-head .board-add-label { display: none; } .board-head .board-add { padding-inline: 8px; } }

/* the filter toolbar: a search field, filters as chips that name their value, the label menu, the match count */
.board-filters { flex: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px var(--seed-dimension-x5); }
.board-project-m, .filters-toggle, .filters-head { display: none; }
.filter-search {
  display: flex; align-items: center; gap: 8px; width: 260px; max-width: 100%; height: 36px; padding: 0 10px; border-radius: var(--seed-radius-r2);
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--field); color: var(--fg-muted); cursor: text;
}
.filter-search:focus-within { box-shadow: inset 0 0 0 2px var(--field-focus); }
.filter-search input { flex: 1; min-width: 0; height: 100%; border: 0; padding: 0; outline: none; background: transparent; color: var(--fg); font-size: var(--seed-font-size-t4); }
.filters-body { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; flex-wrap: wrap; }
.filters-dyn { display: contents; }
.fchip {
  position: relative; display: inline-flex; align-items: center; gap: 4px; height: 32px; max-width: 220px; padding: 0 8px 0 12px; border: 0;
  border-radius: var(--seed-radius-full); background: var(--bg); box-shadow: inset 0 0 0 1px var(--border); color: var(--fg); cursor: pointer;
  font-size: var(--seed-font-size-t3); line-height: var(--seed-line-height-t3); font-weight: var(--seed-font-weight-medium); white-space: nowrap;
}
.fchip:hover { background: var(--seed-color-bg-neutral-weak); }
.fchip-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fchip .ico { color: var(--fg-muted); }
.fchip.on { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--seed-color-stroke-informative-solid); color: var(--seed-color-fg-informative-contrast); font-weight: var(--seed-font-weight-bold); }
.fchip.on .ico { color: inherit; }
.fchip select { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; opacity: 0; cursor: pointer; }
.fchip:has(select:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.fmenu { position: relative; }
.fmenu-panel {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 12; width: 280px; flex-direction: column; gap: 10px; padding: 12px;
  background: var(--bg-float); border-radius: var(--seed-radius-r3); box-shadow: var(--shadow), inset 0 0 0 1px var(--divider);
}
.fmenu.open .fmenu-panel { display: flex; }
.filter-labels-name { font-size: var(--seed-font-size-t3); font-weight: var(--seed-font-weight-bold); }
.filter-labels-name .faint { font-weight: var(--seed-font-weight-regular); margin-left: 4px; }
.filter-labels { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.filter-label { border: 0; background: none; padding: 2px; border-radius: var(--seed-radius-full); opacity: .55; }
.filter-label[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--fg); }
.filter-label:hover { opacity: 1; }
.fmenu-admin { align-self: flex-start; font-size: var(--seed-font-size-t3); }
.filter-sum { display: flex; gap: 8px; align-items: center; flex: 1 1 auto; font-size: var(--seed-font-size-t3); color: var(--fg-muted); }
.filter-sum .spacer { flex: 1; }
.filter-count { white-space: nowrap; }
.filters-badge { font-weight: var(--seed-font-weight-bold); }

/* team labels: the SEED palette tokens flip with the color scheme, so one rule serves light and dark */
.label-chip {
  --lc-bg: var(--seed-color-palette-gray-200); --lc-fg: var(--seed-color-palette-gray-900);
  display: inline-flex; align-items: center; gap: 2px; max-width: 100%; padding: 1px 8px; border-radius: var(--seed-radius-full);
  background: var(--lc-bg); color: var(--lc-fg); font-size: var(--seed-font-size-t2); line-height: var(--seed-line-height-t2);
  font-weight: var(--seed-font-weight-medium); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.label-chip[data-color="red"] { --lc-bg: var(--seed-color-palette-red-200); --lc-fg: var(--seed-color-palette-red-900); }
.label-chip[data-color="carrot"] { --lc-bg: var(--seed-color-palette-carrot-200); --lc-fg: var(--seed-color-palette-carrot-900); }
.label-chip[data-color="yellow"] { --lc-bg: var(--seed-color-palette-yellow-200); --lc-fg: var(--seed-color-palette-yellow-900); }
.label-chip[data-color="green"] { --lc-bg: var(--seed-color-palette-green-200); --lc-fg: var(--seed-color-palette-green-900); }
.label-chip[data-color="blue"] { --lc-bg: var(--seed-color-palette-blue-200); --lc-fg: var(--seed-color-palette-blue-900); }
.label-chip[data-color="purple"] { --lc-bg: var(--seed-color-palette-purple-200); --lc-fg: var(--seed-color-palette-purple-900); }
.label-more { font-size: var(--seed-font-size-t2); color: var(--fg-muted); font-weight: var(--seed-font-weight-bold); }
.label-x { border: 0; background: none; color: inherit; padding: 0 0 0 2px; font-size: 14px; line-height: 1; border-radius: var(--seed-radius-full); opacity: .7; }
.label-x:hover { opacity: 1; }
.label-editor { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.label-add { min-height: 24px; }
.label-picker { position: relative; flex-basis: 100%; }
.label-input { width: 100%; min-height: 32px; }
.label-options { display: grid; gap: 2px; margin-top: 4px; max-height: 220px; overflow-y: auto; padding: 4px; border-radius: var(--seed-radius-r2); background: var(--bg-float); box-shadow: inset 0 0 0 1px var(--border); }
.label-opt { display: flex; align-items: center; gap: 6px; text-align: left; border: 0; background: none; padding: 6px 8px; border-radius: var(--seed-radius-r1); font-size: var(--seed-font-size-t3); }
.label-opt[aria-selected="true"], .label-opt:hover { background: var(--bg-selected); }
.label-none { padding: 6px 8px; font-size: var(--seed-font-size-t3); }
.label-rows { display: grid; gap: 8px; margin-bottom: 12px; }
.label-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.label-row input { width: 160px; max-width: 100%; min-height: 32px; }
.label-row select { width: auto; min-height: 32px; }
.label-row .spacer, .filters-head .spacer { flex: 1; }
.label-confirm { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: var(--seed-font-size-t3); color: var(--danger); }
.label-new { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.label-new input { width: 200px; max-width: 100%; }
.label-new select { width: auto; }

/* the kanban: columns side by side, each with a sticky head and its own scroll; the row scrolls sideways when it must */
.board.kanban { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.board-live { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.board-tabs, .board-addbar { display: none; }
.board-cols { flex: 1; min-height: 0; display: flex; gap: var(--seed-dimension-x3); padding: 2px var(--seed-dimension-x5) var(--seed-dimension-x5); overflow-x: auto; overscroll-behavior-x: contain; }
/* a column sits half a step off the page: gray-100 on white, and still visible on the dark layer */
:root { --col-bg: color-mix(in srgb, var(--seed-color-palette-gray-300) 50%, var(--bg)); }
.col {
  --col-dot: var(--seed-color-palette-gray-600);
  flex: 1 1 0; min-width: 220px; min-height: 0; display: flex; flex-direction: column; border-radius: var(--seed-radius-r3); background: var(--col-bg);
}
.col[data-col="open"] { --col-dot: var(--seed-color-palette-blue-700); }
.col[data-col="claimed"] { --col-dot: var(--seed-color-palette-carrot-600); }
.col[data-col="review"] { --col-dot: var(--seed-color-palette-purple-700); }
.col[data-col="done"] { --col-dot: var(--seed-color-palette-green-700); }
.col-head { flex: none; display: flex; align-items: center; gap: 8px; height: 44px; padding: 6px 6px 6px 12px; }
.board .col-head h3 { margin: 0; font-size: var(--seed-font-size-t4); line-height: var(--seed-line-height-t4); font-weight: var(--seed-font-weight-bold); white-space: nowrap; }
.col-dot { width: 8px; height: 8px; border-radius: var(--seed-radius-full); background: var(--col-dot); flex: none; }
.col-head .count, .col-rail .count, .col-lead-name .count { color: var(--fg-muted); font-weight: var(--seed-font-weight-bold); font-size: var(--seed-font-size-t3); font-variant-numeric: tabular-nums; }
.col-head .spacer { flex: 1; }
.col-head .seed-action-button { height: 28px; min-width: 28px; color: var(--fg-muted); }
.col-cards { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 0 8px 8px; scrollbar-width: thin; }
.col-lead { display: flex; flex-direction: column; gap: 8px; padding-bottom: 10px; box-shadow: inset 0 -1px 0 var(--divider); }
.col-lead + .card { margin-top: 2px; }
.col-lead-name { padding: 2px 4px 0; font-size: var(--seed-font-size-t2); font-weight: var(--seed-font-weight-bold); color: var(--fg-muted); }
.col-lead-name .count { font-size: inherit; }
.col-empty { padding: 10px 4px; color: var(--fg-faint); font-size: var(--seed-font-size-t3); line-height: var(--seed-line-height-t3); }
.col-more { align-self: flex-start; }
.col.drop-inside { outline: 2px solid var(--accent); outline-offset: -2px; background: color-mix(in srgb, var(--accent-soft) 70%, var(--col-bg)); }
.col-rail { display: none; }
.col.shut { flex: 0 0 44px; min-width: 44px; }
.col.shut > :not(.col-rail) { display: none; }
.col.shut .col-rail {
  display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; height: 100%; padding: 12px 0; border: 0;
  border-radius: var(--seed-radius-r3); background: none; color: var(--fg); cursor: pointer;
}
.col-rail:hover { background: var(--bg-hover); }
.col-rail-name { writing-mode: vertical-rl; font-size: var(--seed-font-size-t4); font-weight: var(--seed-font-weight-bold); letter-spacing: 2px; }
.board-empty { padding: var(--seed-dimension-x5); display: grid; gap: 12px; justify-items: start; max-width: 560px; }

/* a card: key and flags, title in two lines, labels, then who holds it and its counts; actions cover that last line on hover */
.card {
  position: relative; flex: none; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--seed-radius-r2_5);
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--border); cursor: pointer; transition: box-shadow var(--seed-duration-d2) var(--seed-timing-function-easing);
}
.card:hover, .card:focus-within { box-shadow: inset 0 0 0 1px var(--border), var(--shadow-low); }
.card[data-phase="draft"] { border: 1px dashed var(--seed-color-palette-gray-600); padding: 11px; box-shadow: none; }
.card[data-phase="stale"] { background: color-mix(in srgb, var(--warn-bg) 45%, var(--bg)); }
[data-drag-task] { cursor: grab; }
.card.dragging { opacity: .45; }
.card-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 20px; }
.card-top .spacer { flex: 1; }
.card .task-id { font-size: var(--seed-font-size-t2); }
.card-title {
  font-size: var(--seed-font-size-t4); line-height: 20px; font-weight: var(--seed-font-weight-bold); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-tags { gap: 4px; }
.card-note {
  font-size: var(--seed-font-size-t2); color: var(--fg-muted); word-break: keep-all; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot { position: relative; display: flex; align-items: center; gap: 8px; min-height: 24px; font-size: var(--seed-font-size-t2); line-height: var(--seed-line-height-t2); color: var(--fg-muted); }
.card-foot .who { font-size: inherit; min-width: 0; }
.card-foot .spacer { flex: 1 1 0; min-width: 0; }
.card-stat { display: inline-flex; align-items: center; gap: 3px; flex: none; font-variant-numeric: tabular-nums; }
.card-locks { color: var(--seed-color-palette-carrot-800); }
.card-age { flex: none; white-space: nowrap; }
.card-nobody { color: var(--fg-faint); }
.card-actions { position: absolute; inset: -4px; display: none; align-items: center; justify-content: flex-end; gap: 6px; overflow: clip visible; background: var(--bg); }
.card[data-phase="stale"] .card-actions { background: color-mix(in srgb, var(--warn-bg) 45%, var(--bg)); }
.card-actions > .seed-action-button--layout_withText { flex: 1 1 auto; min-width: 0; }
.card:focus-within .card-actions { display: flex; }
@media (hover: hover) { .card:hover .card-actions { display: flex; } }

/* the side panels the header opens */
.board-side .activity { display: grid; gap: var(--seed-dimension-x5); }
.board-side .person { margin: 0; }
.board-side h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 2px; font-size: var(--seed-font-size-t4); color: var(--fg); }
.board-side h4 .count { color: var(--fg-faint); font-weight: var(--seed-font-weight-medium); }
.area-help { margin: 0 0 8px; font-size: var(--seed-font-size-t2); }
.area-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.area-row { display: grid; gap: 6px; padding: 10px 12px; border-radius: var(--seed-radius-r2); background: var(--bg-soft); min-width: 0; }
.area-row.stale { box-shadow: inset 3px 0 0 var(--seed-color-stroke-warning-solid); }
.area-path { font-size: var(--seed-font-size-t3); overflow-wrap: anywhere; }
.area-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: var(--seed-font-size-t3); color: var(--fg-muted); }
.area-meta .spacer { flex: 1; }

/* dialogs the board opens: 할일 추가, and 프로젝트·라벨 관리 */
.add-task-dlg .form { max-width: none; }
dialog:has(.board-admin) { width: min(760px, calc(100vw - 32px)); }
.admin-block { display: grid; gap: 10px; min-width: 0; }
.admin-block-head { display: flex; align-items: center; gap: 8px; }
.board-admin h3 { margin: 0; font-size: var(--seed-font-size-t6); line-height: var(--seed-line-height-t6); }
.board-admin .projects-list { max-width: none; }
.board-admin .label-admin p { margin: 0; }

@media (max-width: 700px) {
  .board-head { padding: 0 8px 0 4px; gap: 6px; }
  .board-head h2 { flex: 0 1 auto; min-width: 48px; }
  .board-head .board-project, .board-head .board-channel, .board-head .board-admin-btn, .board-head .board-add, .board-head .chip-detail { display: none; }
  .board-head > span > .seed-action-button { padding-inline: 6px; }
  .board-head .board-ref { padding-inline: 8px; }
  .board-filters { flex-wrap: wrap; padding: 12px 16px 8px; }
  .kind-seg { order: 10; flex: 1 1 100%; }
  .kind-seg .seg-btn { flex: 1 1 auto; }
  .board-project-m { display: block; flex: 0 1 34%; width: auto; min-width: 0; min-height: 40px; padding: 8px; font-size: var(--seed-font-size-t3); }
  .filter-search { flex: 1 1 auto; width: auto; height: 40px; min-width: 0; }
  .filters-toggle { display: inline-flex; flex: none; height: 40px; }
  .filters-toggle.on { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--seed-color-stroke-informative-solid); color: var(--seed-color-fg-informative-contrast); }
  .filters-body { display: none; }
  .board-filters.open .filters-body {
    display: flex; flex-direction: column; align-items: stretch; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    max-height: 75vh; overflow-y: auto; padding: 16px; gap: 12px;
    background: var(--bg-float); border-radius: var(--seed-radius-r5) var(--seed-radius-r5) 0 0; box-shadow: var(--shadow);
  }
  .board-filters.open .filters-head { display: flex; align-items: center; }
  .board-filters.open .filters-dyn { display: flex; flex-wrap: wrap; gap: 8px; }
  .filters-body .fmenu { flex-basis: 100%; }
  .filters-body .fmenu > .fchip { display: none; }
  .filters-body .fmenu-panel { display: flex; position: static; width: auto; padding: 4px 0 0; background: none; box-shadow: none; }
  .filters-body .filter-sum { flex-basis: 100%; }
  .filters-body .fchip { height: 36px; max-width: 100%; }

  .board.kanban { display: block; overflow-y: auto; }
  .board-live { display: block; }
  .board-tabs {
    display: flex; gap: 6px; padding: 4px 16px 12px; overflow-x: auto; scrollbar-width: none;
    position: sticky; top: 0; z-index: 3; background: var(--bg); box-shadow: inset 0 -1px 0 var(--divider);
  }
  .board-tab {
    flex: none; height: 34px; padding: 0 12px; border: 0; border-radius: var(--seed-radius-full); background: var(--chip-bg); color: var(--fg);
    font-size: var(--seed-font-size-t4); font-weight: var(--seed-font-weight-bold); white-space: nowrap;
  }
  .board-tab .count { margin-left: 2px; color: var(--fg-muted); font-weight: var(--seed-font-weight-medium); }
  .board-tab[aria-selected="true"] { background: var(--seed-color-bg-neutral-inverted); color: var(--seed-color-fg-neutral-inverted); }
  .board-tab[aria-selected="true"] .count { color: inherit; opacity: .75; }
  .board-cols { display: block; min-height: calc(100% - 50px); padding: 12px 16px 24px; overflow: visible; background: var(--col-bg); }
  .col { display: none; max-width: none; min-width: 0; background: none; border-radius: 0; }
  .col.picked, .col.shut.picked { display: block; }
  .col-head, .col.shut .col-rail { display: none; }
  .col.shut.picked > .col-cards { display: flex; }
  .col-cards { overflow: visible; padding: 0; }
  .board-addbar { display: block; flex: none; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--bg); box-shadow: inset 0 1px 0 var(--divider); }
  .board-addbar .seed-action-button { width: 100%; }
}
.form { display: grid; gap: var(--seed-dimension-x3); max-width: 560px; }
.form .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.form .field.grow, .row .grow { flex: 1; min-width: 140px; }
.area-inputs { display: grid; gap: 6px; }
.area-inputs input { font-family: var(--mono); font-size: var(--seed-font-size-t3); }
.draft-actions { display: flex; gap: 6px; margin-top: 6px; }
.projects-list { box-shadow: inset 0 0 0 1px var(--border); border-radius: var(--seed-radius-r3); max-width: 900px; }
.list-row { gap: var(--seed-dimension-x3); align-items: center; flex-wrap: wrap; }
.list-row + .list-row { box-shadow: inset 0 1px 0 0 var(--divider); }
.list-row .seed-list-item__content { min-width: 0; flex-basis: 160px; overflow-wrap: anywhere; }
.list-row .seed-list-item__suffix { gap: var(--seed-dimension-x1_5); }
.archive-entry { margin-top: 6px; font-size: var(--seed-font-size-t3); min-height: 32px; }
.nav-count { color: var(--side-muted); font-size: var(--seed-font-size-t2); font-variant-numeric: tabular-nums; }
.archive-help { margin: 0 0 var(--seed-dimension-x4); font-size: var(--seed-font-size-t3); }
.archive-list.is-empty { box-shadow: none; }
.archive-row .archive-icon { font-size: 20px; width: 28px; text-align: center; }
.archive-row .seed-list-item__title { color: inherit; text-decoration: none; }
.archive-row .seed-list-item__title:hover { text-decoration: underline; }
.archive-row .seed-list-item__detail { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }

/* dialog */
dialog {
  border: 0; border-radius: var(--seed-radius-r5); padding: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 48px);
  background: var(--bg-float); color: var(--fg); box-shadow: var(--shadow);
}
dialog::backdrop { background: var(--overlay); }
.dlg { padding: var(--seed-dimension-x6); display: grid; gap: var(--seed-dimension-x4); }
.dlg h2 { margin: 0; font-size: var(--seed-font-size-t8); line-height: var(--seed-line-height-t8); }
.dlg .foot { display: flex; justify-content: flex-end; gap: 8px; padding-top: var(--seed-dimension-x2); }
.dlg .foot .spacer { flex: 1; }
.cmd { display: flex; gap: 8px; align-items: center; }
.cmd pre {
  flex: 1; min-width: 0; margin: 0; background: var(--code-bg); box-shadow: inset 0 0 0 1px var(--divider); border-radius: var(--seed-radius-r2);
  padding: 10px 12px; font-size: var(--seed-font-size-t2); line-height: var(--seed-line-height-t2); white-space: pre-wrap; word-break: break-all;
}
.steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.install-tabs { display: flex; gap: 4px; padding: 3px; border-radius: var(--seed-radius-r2); background: var(--chip-bg); align-self: flex-start; max-width: 100%; }
.install-tab { border: 0; background: none; color: var(--fg-muted); font: inherit; font-size: var(--seed-font-size-t3); padding: 6px 12px; border-radius: var(--seed-radius-r1); cursor: pointer; }
.install-tab[aria-selected="true"] { background: var(--bg); color: var(--fg); font-weight: var(--seed-font-weight-bold); box-shadow: var(--shadow-low); }
.install-pane { display: grid; gap: 6px; }
.install-pane[hidden] { display: none; }
.install-note { margin: 0; font-size: var(--seed-font-size-t3); }
.install-fallback summary { cursor: pointer; color: var(--fg-muted); font-size: var(--seed-font-size-t3); }
.install-fallback[open] { display: grid; gap: 8px; }
.field-title { font-weight: var(--seed-font-weight-bold); font-size: var(--seed-font-size-t4); margin-bottom: 8px; }
.webhook { display: grid; gap: 10px; box-shadow: inset 0 1px 0 0 var(--divider); padding-top: 14px; }
.token-list { box-shadow: inset 0 0 0 1px var(--border); border-radius: var(--seed-radius-r3); }
.digest-out {
  margin: 8px 0 0; background: var(--code-bg); box-shadow: inset 0 0 0 1px var(--divider); border-radius: var(--seed-radius-r2);
  padding: 10px 12px; font-size: var(--seed-font-size-t2); white-space: pre-wrap; max-height: 40vh; overflow: auto;
}

/* docs: tree */
.tree-group { margin-top: 2px; }
.tree-group-head {
  display: flex; align-items: center; gap: 4px; margin: 6px 8px 0; padding: 2px 4px 2px 10px; min-height: 28px;
  font-size: var(--seed-font-size-t2); font-weight: var(--seed-font-weight-bold); color: var(--side-muted);
}
.tree-group-head .label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-row { display: flex; align-items: center; gap: 2px; margin: 1px 8px; min-height: 34px; padding: 0 4px 0 calc(4px + var(--depth, 0) * 14px); border-radius: var(--seed-radius-r2_5); }
.tree-row:hover { background: var(--bg-hover); }
.tree-row.active { background: var(--bg-selected); }
.tree-row.active .tree-link { color: var(--side-active-fg); font-weight: var(--seed-font-weight-bold); }
.tree-row.dragging { opacity: .45; }
.tree-link {
  flex: 1; min-width: 0; display: flex; gap: 6px; align-items: center; color: var(--side-fg); text-decoration: none;
  font-weight: var(--seed-font-weight-medium); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 4px 0; border-radius: var(--seed-radius-r1);
}
.tree-link .ti { flex: none; width: 18px; text-align: center; }
.tw, .tree-add {
  flex: none; display: grid; place-items: center; border: 0; background: none; color: var(--side-muted);
  width: 24px; height: 24px; padding: 0; border-radius: var(--seed-radius-r1_5); line-height: 1; font-size: var(--seed-font-size-t2);
}
.tree-add { font-size: var(--seed-font-size-t6); }
:where(.tree-row, .tree-group-head):hover .tree-add, .tree-add:focus-visible { color: var(--side-fg); }
.tw:hover, .tree-add:hover { background: var(--bg-hover); color: var(--side-active-fg); }
.drop-inside { outline: 2px solid var(--accent); outline-offset: -2px; }
.tree-row.drop-before { box-shadow: inset 0 2px 0 var(--accent); }
.tree-row.drop-after { box-shadow: inset 0 -2px 0 var(--accent); }
.is-dragging, .is-dragging * { user-select: none; cursor: grabbing; }

/* docs: page */
.view-header h2 a { color: inherit; text-decoration: none; }
.view-header h2 a:hover { text-decoration: underline; }
.crumb-group { color: var(--fg-muted); font-weight: var(--seed-font-weight-medium); }
.doc { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.doc-inner {
  max-width: 780px; margin: 0 auto; padding: var(--seed-dimension-x8) 40px 40px 56px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px;
  font-size: var(--seed-font-size-t5); line-height: var(--seed-line-height-t5);
}
.doc-head { position: relative; display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.doc-icon { flex: none; border: 0; background: none; font-size: 36px; line-height: 1; padding: 6px; border-radius: var(--seed-radius-r3); }
.doc-icon:hover { background: var(--bg-hover); }
input.doc-title {
  box-shadow: none; padding: 4px 0; min-height: 0; background: transparent; min-width: 0;
  font-size: var(--seed-font-size-t12); line-height: var(--seed-line-height-t12); font-weight: var(--seed-font-weight-bold);
}
input.doc-title:focus { box-shadow: none; }
input.doc-title[readonly] { background: transparent; color: inherit; }
.doc-meta { color: var(--fg-faint); font-size: var(--seed-font-size-t3); margin-bottom: 16px; }
.icon-menu {
  position: absolute; top: 100%; left: 0; z-index: 10; display: grid; grid-template-columns: repeat(6, 40px); gap: 2px; padding: 6px;
  background: var(--bg-float); border-radius: var(--seed-radius-r3); box-shadow: var(--shadow), inset 0 0 0 1px var(--divider);
}
.icon-menu button { border: 0; background: none; font-size: 20px; height: 40px; border-radius: var(--seed-radius-r2); }
.icon-menu button:hover { background: var(--bg-hover); }
.icon-menu .none { grid-column: span 6; font-size: var(--seed-font-size-t3); color: var(--fg-muted); }
.doc-tail { min-height: 120px; cursor: text; }
.view-header { position: relative; }
.page-more { min-width: 36px; font-size: 18px; letter-spacing: 1px; }
.page-menu {
  position: absolute; top: calc(100% - 4px); right: var(--seed-dimension-x4); z-index: 20; display: grid; min-width: 200px; padding: 6px;
  background: var(--bg-float); border-radius: var(--seed-radius-r3); box-shadow: var(--shadow), inset 0 0 0 1px var(--divider);
}
.page-menu button {
  border: 0; background: none; text-align: left; padding: 8px 10px; border-radius: var(--seed-radius-r2); color: var(--fg);
  font-size: var(--seed-font-size-t4); line-height: var(--seed-line-height-t4);
}
.page-menu button:hover, .page-menu button:focus-visible { background: var(--bg-hover); }
.page-menu .danger { color: var(--danger); }
.doc-start { display: grid; gap: 8px; margin-top: 8px; padding: 12px 0 4px; }
.doc-start[hidden] { display: none; }
.doc-start-head { font-size: var(--seed-font-size-t3); font-weight: var(--seed-font-weight-bold); color: var(--fg-muted); }
.doc-start-list { display: flex; flex-wrap: wrap; gap: 6px; }
.doc-start-place { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.doc-start-place select { width: auto; max-width: 100%; min-height: 32px; }
.doc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.doc-children { display: grid; justify-items: start; margin-top: var(--seed-dimension-x3); }
.doc-children-head {
  justify-self: stretch; padding-top: var(--seed-dimension-x3); margin-bottom: var(--seed-dimension-x1); box-shadow: inset 0 1px 0 var(--divider);
  font-size: var(--seed-font-size-t3); line-height: var(--seed-line-height-t3); font-weight: var(--seed-font-weight-bold); color: var(--fg-muted);
}
.doc-child { padding: 6px 8px; margin-inline: -8px; width: calc(100% + 16px); --list-item-border-radius: var(--seed-radius-r2); }
.doc-child .seed-list-item__prefix { --seed-box-padding-right: var(--seed-dimension-x2); width: 26px; justify-content: center; }
.doc-child .seed-list-item__content { min-width: 0; text-decoration: none; }
.doc-child .seed-list-item__title { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-child-add { --seed-box-color: var(--fg-muted); margin-left: -8px; }

.blk { position: relative; display: flex; align-items: flex-start; margin-left: calc(var(--depth, 0) * 26px - 30px); border-radius: var(--seed-radius-r1); }
.blk[hidden] { display: none; }
.blk-fold {
  flex: none; align-self: flex-start; width: 22px; height: 22px; margin-top: 2px; padding: 0; border: 0; background: none; border-radius: var(--seed-radius-r1);
  color: var(--fg-muted); font-size: 12px; line-height: 22px; text-align: center; transition: transform var(--seed-duration-d2) var(--seed-timing-function-easing);
}
.blk-fold:hover { background: var(--bg-hover); color: var(--fg); }
.blk-toggle.open .blk-fold { transform: rotate(90deg); }
.blk-toggle .blk-row { gap: 4px; }
.blk-toggle .ce { font-weight: var(--seed-font-weight-medium); }
.blk-toggle-empty {
  display: block; margin: 0 0 2px 26px; padding: 2px 6px; border: 0; background: none; border-radius: var(--seed-radius-r1);
  color: var(--fg-faint); font-size: var(--seed-font-size-t3); text-align: left;
}
.blk-toggle-empty:hover { background: var(--bg-hover); color: var(--fg-muted); }
.blk.dragging { opacity: .45; }
.blk.drop-before { box-shadow: 0 -2px 0 var(--accent); }
.blk.drop-after { box-shadow: 0 2px 0 var(--accent); }
.blk.drop-inside { outline: 0; }
.blk.drop-inside::after { content: ""; position: absolute; left: 56px; right: 0; bottom: -1px; height: 2px; background: var(--accent); pointer-events: none; }
.blk.sel { background: var(--accent-soft); }
.blk.sel .blk-row[tabindex]:focus { background: transparent; }
.sel-sink { position: fixed; left: -9999px; top: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; resize: none; }
.sel-band {
  position: fixed; z-index: 40; pointer-events: none; border-radius: 2px;
  background: color-mix(in srgb, var(--accent-soft) 60%, transparent); box-shadow: inset 0 0 0 1px var(--accent);
}
.is-selecting, .is-selecting * { user-select: none; }
.sel-bar {
  position: sticky; bottom: 16px; z-index: 12; width: fit-content; max-width: calc(100% - 32px); margin: 0 auto 16px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; padding: 6px 8px;
  background: var(--bg-float); border-radius: var(--seed-radius-r3); box-shadow: var(--shadow), inset 0 0 0 1px var(--divider);
}
.sel-count { padding: 0 8px; font-size: var(--seed-font-size-t3); font-weight: var(--seed-font-weight-bold); color: var(--fg-muted); white-space: nowrap; }
.sel-turn-menu {
  position: absolute; bottom: calc(100% + 6px); right: 0; z-index: 13; display: grid; min-width: 160px; max-height: min(320px, 50vh); overflow-y: auto; padding: 4px;
  background: var(--bg-float); border-radius: var(--seed-radius-r3); box-shadow: var(--shadow), inset 0 0 0 1px var(--divider);
}
.sel-turn-menu button { border: 0; background: none; text-align: left; padding: 6px 10px; border-radius: var(--seed-radius-r2); font-size: var(--seed-font-size-t4); }
.sel-turn-menu button:hover { background: var(--bg-hover); }
.toast .seed-snackbar__actionButton[hidden] { display: none; }
.blk-gutter { flex: none; align-self: stretch; width: 30px; display: flex; align-items: flex-start; justify-content: center; padding-top: 3px; cursor: grab; touch-action: none; }
.handle {
  border: 0; background: none; color: var(--fg-faint); padding: 2px 3px; border-radius: var(--seed-radius-r1); font-size: var(--seed-font-size-t2); letter-spacing: -2px;
  line-height: 1.2; cursor: grab; opacity: 0; touch-action: none;
}
.blk:hover .handle, .blk:focus-within .handle { opacity: 1; }
.handle:hover { background: var(--bg-hover); }
.blk-body { flex: 1; min-width: 0; position: relative; }
.blk-row { display: flex; align-items: baseline; gap: 8px; border-radius: var(--seed-radius-r1); }
.blk-row[tabindex]:focus { outline: none; background: var(--accent-soft); }
.ce { flex: 1; min-width: 0; outline: none; padding: 3px 2px; white-space: pre-wrap; overflow-wrap: anywhere; min-height: 1.4em; }
.ce:empty::before { content: attr(data-ph); color: var(--seed-color-fg-placeholder); pointer-events: none; }
.blk-p .ce:empty:not(:focus)::before { content: ""; }
.blk-h1 .ce { font-size: var(--seed-font-size-t10); line-height: var(--seed-line-height-t10); font-weight: var(--seed-font-weight-bold); padding-top: 16px; }
.blk-h2 .ce { font-size: var(--seed-font-size-t8); line-height: var(--seed-line-height-t8); font-weight: var(--seed-font-weight-bold); padding-top: 12px; }
.blk-h3 .ce { font-size: var(--seed-font-size-t6); line-height: var(--seed-line-height-t6); font-weight: var(--seed-font-weight-bold); padding-top: 6px; }
.blk-h1 .blk-gutter { padding-top: 22px; }
.blk-h2 .blk-gutter { padding-top: 16px; }
.blk-h3 .blk-gutter { padding-top: 8px; }
.blk-bullet .blk-row::before, .blk-number .blk-row::before { flex: none; min-width: 18px; text-align: right; color: var(--fg-muted); }
.blk-bullet .blk-row::before { content: "•"; font-size: 18px; line-height: 1; }
.blk-bullet .blk-row[data-level="1"]::before { content: "◦"; }
.blk-bullet .blk-row[data-level="2"]::before { content: "▪"; font-size: 14px; }
.blk-number .blk-row::before { content: attr(data-n) "."; }
.blk-check { flex: none; width: 18px; height: 18px; margin: 0 2px; transform: translateY(3px); cursor: pointer; accent-color: var(--seed-color-bg-neutral-solid); }
.blk-check:disabled { cursor: default; }
.blk-check:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.blk-todo.checked .ce { text-decoration: line-through; color: var(--fg-faint); }
.blk-quote .blk-row { border-radius: 0; box-shadow: inset 3px 0 0 var(--seed-color-stroke-neutral-solid); padding-left: 14px; }
.blk-callout .blk-row { background: var(--chip-bg); border-radius: var(--seed-radius-r2_5); padding: 12px 14px; margin: 4px 0; }
.blk-callout .blk-row::before { content: "💡"; flex: none; }
.blk-code .blk-row { background: var(--code-bg); box-shadow: inset 0 0 0 1px var(--divider); border-radius: var(--seed-radius-r2); padding: 10px 14px; margin: 4px 0; }
.blk-code .ce { font-family: var(--mono); font-size: var(--seed-font-size-t3); line-height: var(--seed-line-height-t3); tab-size: 4; }
.blk-divider .blk-row { padding: 10px 0; }
.blk-divider hr { flex: 1; border: 0; border-top: 1px solid var(--border); margin: 0; }
.blk-task .blk-row { padding: 3px 2px; }
.blk-task { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.blk-task-title { overflow-wrap: anywhere; }
.blk-image .blk-row { flex-direction: column; align-items: stretch; gap: 0; }
.blk-figure { position: relative; margin: 6px 0 0; border-radius: var(--seed-radius-r2); cursor: zoom-in; line-height: 0; }
.blk-figure:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.blk-figure img { display: block; max-width: 100%; height: auto; border-radius: var(--seed-radius-r2); background: var(--chip-bg); }
.blk-img-wait { height: 160px; border-radius: var(--seed-radius-r2); background: var(--chip-bg); }
.blk-img-missing {
  line-height: var(--seed-line-height-t3); font-size: var(--seed-font-size-t3); color: var(--fg-muted); cursor: default;
  padding: 18px 14px; border-radius: var(--seed-radius-r2); box-shadow: inset 0 0 0 1px var(--border);
}
.blk-image .ce { font-size: var(--seed-font-size-t3); line-height: var(--seed-line-height-t3); color: var(--fg-muted); }
.blk-image .ce:empty:not(:focus)::before { content: ""; }
.blk-image:hover .ce:empty::before { content: attr(data-ph); }
.blk-file .blk-row { padding: 2px 0; }
.ce .mark, .cell .mark { white-space: normal; }
.ce code, .cell code { background: var(--chip-bg); border-radius: var(--seed-radius-r1); padding: 1px 5px; font-size: .85em; color: var(--code-fg); }
.blk-table .blk-row { display: block; }
.blk-table .blk-gutter { padding-top: 10px; }
.tbl { min-width: 0; }
.tbl-scroll { overflow-x: auto; overscroll-behavior-x: contain; margin: 4px 0; }
.tbl-grid { border-collapse: collapse; min-width: 100%; font-size: var(--seed-font-size-t4); line-height: var(--seed-line-height-t4); }
.tbl-grid td { border: 1px solid var(--border); padding: 0; vertical-align: top; min-width: 88px; max-width: 360px; }
.tbl-grid .cell { padding: 6px 8px; min-height: calc(1.5em + 12px); outline: none; white-space: pre-wrap; overflow-wrap: anywhere; }
.tbl-grid .cell:focus { box-shadow: inset 0 0 0 2px var(--focus); border-radius: 2px; }
.tbl-grid.has-head tr:first-child td { background: var(--chip-bg); font-weight: var(--seed-font-weight-bold); }
.tbl-bar { display: none; flex-wrap: wrap; align-items: center; gap: 2px; padding-bottom: 4px; }
.tbl-bar .spacer { flex: 1; }
.tbl-bar [aria-pressed="true"] { background: var(--bg-selected); }
.blk-table:focus-within .tbl-bar { display: flex; }
.file-chip {
  display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; border: 0; background: var(--chip-bg); color: var(--fg);
  padding: 8px 12px; border-radius: var(--seed-radius-r2); text-align: left; cursor: pointer;
}
.file-chip:hover { background: var(--seed-color-bg-neutral-weak-pressed); }
.file-chip:disabled { cursor: default; opacity: .7; }
.file-chip-name { min-width: 0; overflow-wrap: anywhere; font-weight: var(--seed-font-weight-medium); }
.file-chip-size { flex: none; color: var(--fg-faint); font-size: var(--seed-font-size-t3); }
.blk-upload {
  flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 12px;
  border-radius: var(--seed-radius-r2); box-shadow: inset 0 0 0 1px var(--border); font-size: var(--seed-font-size-t3); line-height: var(--seed-line-height-t3);
}
.blk-upload-name { min-width: 0; overflow-wrap: anywhere; font-weight: var(--seed-font-weight-medium); }
.blk-upload progress { flex: 1; min-width: 80px; height: 6px; accent-color: var(--seed-color-bg-neutral-solid); }
.blk-upload-pct { color: var(--fg-faint); font-variant-numeric: tabular-nums; }
.blk-upload.error { background: var(--warn-bg); color: var(--warn-fg); box-shadow: none; }
.lightbox {
  position: fixed; inset: 0; z-index: 60; display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; gap: 10px;
  padding: 16px; background: color-mix(in srgb, var(--seed-color-palette-static-black) 82%, transparent); cursor: zoom-out;
}
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--seed-radius-r2); }
.lightbox-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; max-width: 100%; cursor: default;
  color: var(--seed-color-palette-static-white); font-size: var(--seed-font-size-t3);
}
.lightbox-cap { min-width: 0; overflow-wrap: anywhere; font-weight: var(--seed-font-weight-medium); }
.lightbox-meta { opacity: .75; }
.lightbox .icon-btn { color: var(--seed-color-palette-static-white); }
.blk-carets { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.blk-cmt {
  position: absolute; top: 2px; right: -38px; min-width: 30px; height: 26px; padding: 0 6px; border: 0; border-radius: var(--seed-radius-full);
  background: none; color: var(--fg-faint); font-size: var(--seed-font-size-t2); font-weight: var(--seed-font-weight-bold); white-space: nowrap; opacity: 0;
}
.blk-cmt[hidden] { display: none; }
.blk:hover > .blk-cmt, .blk:focus-within > .blk-cmt, .blk-cmt:focus-visible { opacity: 1; }
.blk-cmt:hover { background: var(--bg-hover); color: var(--fg); }
.blk-cmt.has { opacity: 1; background: var(--mention-bg); color: var(--mention-fg); }
.cmt-quote {
  margin: 12px 16px 4px; padding: 8px 12px; border-radius: var(--seed-radius-r2); box-shadow: inset 3px 0 0 var(--seed-color-stroke-neutral-solid);
  background: var(--chip-bg); white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--seed-font-size-t4); line-height: var(--seed-line-height-t4);
}
.cmt-goto { margin: 0 16px 8px; }
.messages > .cmt-goto:first-child { margin-top: 12px; }
.cmt-state { margin: 4px 16px 8px; color: var(--fg-muted); font-size: var(--seed-font-size-t3); }
.rc-sel { position: absolute; background: color-mix(in srgb, var(--c) 24%, transparent); border-radius: 2px; }
.rc-bar { position: absolute; margin-left: -1px; background: var(--c); border-radius: 1px; }
.rc-flag {
  position: absolute; bottom: 100%; left: 0; font-size: var(--seed-font-size-t1); font-weight: var(--seed-font-weight-bold); line-height: 16px; white-space: nowrap;
  color: var(--seed-color-palette-static-white); background: var(--c); border-radius: var(--seed-radius-r1) var(--seed-radius-r1) var(--seed-radius-r1) 0; padding: 0 5px;
  animation: rc-fade 2.3s linear forwards;
}
.rc-flag.flip { left: auto; right: 0; border-radius: var(--seed-radius-r1) var(--seed-radius-r1) 0 var(--seed-radius-r1); }
.blk:hover .rc-flag { animation: none; opacity: 1; }
@keyframes rc-fade { 0%, 87% { opacity: 1; } 100% { opacity: 0; } }
.blk-conflict {
  background: var(--warn-bg); color: var(--warn-fg); border-radius: var(--seed-radius-r2_5); padding: 12px 14px; margin: 4px 0;
  display: grid; gap: 8px; font-size: var(--seed-font-size-t3); line-height: var(--seed-line-height-t3);
}
.blk-conflict[hidden] { display: none; }
.cf-head { font-weight: var(--seed-font-weight-bold); }
.cf-latest { color: var(--fg); background: var(--bg); border-radius: var(--seed-radius-r2); padding: 6px 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.cf-note { font-size: var(--seed-font-size-t2); }
.cf-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.slash-menu {
  position: absolute; left: 0; top: 100%; z-index: 10; width: min(300px, 100%); max-height: 320px; overflow-y: auto;
  background: var(--bg-float); border-radius: var(--seed-radius-r3); box-shadow: var(--shadow), inset 0 0 0 1px var(--divider); padding: 6px;
  font-size: var(--seed-font-size-t4); line-height: var(--seed-line-height-t4);
}
.slash-menu button {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; min-height: 36px; border: 0; background: none;
  padding: 4px 10px; border-radius: var(--seed-radius-r2); text-align: left;
}
.slash-menu button .hint { color: var(--fg-faint); font-size: var(--seed-font-size-t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slash-menu button.sel { background: var(--bg-selected); font-weight: var(--seed-font-weight-bold); }
.page-chip {
  display: inline-flex; align-items: center; gap: 4px; border-radius: var(--seed-radius-r1_5); padding: 0 6px;
  background: var(--chip-bg); color: var(--fg); text-decoration: none; font-weight: var(--seed-font-weight-bold);
}
.page-chip:hover { background: var(--seed-color-bg-neutral-weak-pressed); }
.page-chip.archived { text-decoration: line-through; color: var(--fg-muted); }
.page-chip.gone { color: var(--fg-faint); font-weight: var(--seed-font-weight-medium); }
.ce .page-chip, .cell .page-chip { cursor: pointer; max-width: 100%; vertical-align: bottom; }
.doc-backlinks { display: grid; justify-items: start; }
.slash-menu.floating { position: fixed; z-index: 30; }
.menu-head { padding: 4px 10px 6px; color: var(--fg-faint); font-size: var(--seed-font-size-t2); font-weight: var(--seed-font-weight-bold); }
.menu-empty { padding: 6px 10px; color: var(--fg-muted); font-size: var(--seed-font-size-t3); }
.toast { position: fixed; inset: auto 0 var(--seed-dimension-x5); margin: 0 auto; z-index: 50; width: calc(100vw - 32px); box-shadow: var(--shadow); overflow-wrap: anywhere; }
.toast[hidden] { display: none; }

/* a newer board is live: a strip above the app, pushing it down, until reloaded or closed */
body:has(> .update-banner) { display: flex; flex-direction: column; }
body:has(> .update-banner) > #app { flex: 1 1 0; height: auto; min-height: 0; }
.update-banner { flex: none; padding: var(--seed-dimension-x2) var(--seed-dimension-x4); background: var(--bg); box-shadow: inset 0 -1px 0 0 var(--divider); }
.update-banner .seed-callout__root { max-width: 880px; margin: 0 auto; align-items: flex-start; }
.update-banner .seed-callout__content { min-width: 0; word-break: keep-all; overflow-wrap: anywhere; }
.update-list { display: block; margin: var(--seed-dimension-x1) 0; padding-left: 1.25em; }
.update-banner .update-list::after { content: none; }
.update-all { display: block; width: fit-content; }
.update-more { display: block; width: fit-content; margin-top: 4px; font-size: var(--seed-font-size-t3); }

/* builds */
.dropzone {
  display: grid; gap: var(--seed-dimension-x3); max-width: 720px; border: 2px dashed var(--border); border-radius: var(--seed-radius-r4);
  padding: var(--seed-dimension-x5); margin-bottom: var(--seed-dimension-x6);
}
.dropzone.over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.drop-label { cursor: pointer; font-weight: var(--seed-font-weight-bold); font-size: var(--seed-font-size-t5); }
.drop-label u { color: var(--accent); }
.drop-label .faint { display: block; margin-top: 2px; font-weight: var(--seed-font-weight-regular); font-size: var(--seed-font-size-t3); }
.drop-file { font-size: var(--seed-font-size-t3); overflow-wrap: anywhere; }
.dropzone progress { flex: 1; min-width: 120px; height: 8px; accent-color: var(--seed-color-bg-neutral-solid); }
.upload-note { font-size: var(--seed-font-size-t3); color: var(--fg-muted); }
.build-hint, .build-play-note, .tag-hint { margin: 0; font-size: var(--seed-font-size-t3); color: var(--fg-muted); }
.build-list { display: grid; gap: 10px; max-width: 900px; }
.build-row { box-shadow: inset 0 0 0 1px var(--border); border-radius: var(--seed-radius-r3); padding: 14px 16px; display: grid; gap: 8px; min-width: 0; }
.build-row.expired, .build-row.failed { opacity: .7; }
.build-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: var(--seed-font-size-t5); }
.build-name { font-weight: var(--seed-font-weight-medium); overflow-wrap: anywhere; min-width: 0; }
.build-meta { display: flex; gap: 6px 12px; align-items: center; flex-wrap: wrap; font-size: var(--seed-font-size-t3); color: var(--fg-faint); overflow-wrap: anywhere; }
.build-meta a { color: var(--accent); }
/* A git tag reads like one: a label with a punched hole, in monospace, pressing it filters the list by that tag. */
.build-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.tag-chip {
  display: inline-flex; align-items: center; gap: 4px; max-width: 100%; min-height: 24px; padding: 0 8px 0 6px; border: 0; cursor: pointer;
  border-radius: var(--seed-radius-r1) var(--seed-radius-full) var(--seed-radius-full) var(--seed-radius-r1);
  background: var(--chip-bg); box-shadow: inset 0 0 0 1px var(--border); color: var(--fg); font-size: var(--seed-font-size-t2); font-weight: var(--seed-font-weight-regular);
  overflow-wrap: anywhere; text-align: left;
}
.tag-chip::before { content: ''; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1px var(--fg-faint); }
.tag-chip:hover { background: var(--bg-hover); }
.tag-chip[aria-pressed="true"] { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--seed-color-stroke-informative-solid); color: var(--seed-color-fg-informative-contrast); }
.tag-src { color: var(--fg-faint); font-size: var(--seed-font-size-t1); }
.tag-chip[aria-pressed="true"] .tag-src { color: inherit; }
.build-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: var(--seed-font-size-t3); }
.build-latest {
  display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 8px 8px 14px; border-radius: var(--seed-radius-r3);
  background: var(--seed-color-bg-positive-weak); font-size: var(--seed-font-size-t4);
}
.build-latest > .ico { color: var(--seed-color-fg-positive); }
.build-latest-text {
  flex: 1 1 auto; min-width: 0; border: 0; background: none; padding: 0; color: inherit; font: inherit; text-align: start;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer;
}
.build-latest-text:hover { text-decoration: underline; }
@media (max-width: 520px) { .build-link-text { display: none; } }
.build-row.flash { animation: blk-flash 1.6s ease-out; }
.build-reactions { margin-top: 0; }
.build-comments { display: grid; gap: 8px; min-width: 0; }
.build-comments .task-thread { margin: 0; }
.composer.build-composer { padding: 0; }
/* A build's notice in its channel: one line that opens the card, the notes clipped to one line under it. */
.build-notice-link {
  border: 0; background: none; padding: 0; color: var(--fg); font: inherit; font-weight: var(--seed-font-weight-medium);
  text-align: left; overflow-wrap: anywhere; cursor: pointer;
}
.build-notice-link:hover { color: var(--accent); text-decoration: underline; }
.build-notice-notes { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg-faint); }
.build-notice-patch { margin: 2px 0 0; padding: 0; list-style: none; font-size: var(--seed-font-size-t3); color: var(--fg-muted); }
.build-notice-patch li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.build-notice-patch b { color: var(--fg); font-weight: var(--seed-font-weight-medium); }
.nav-dot { flex: none; width: 8px; height: 8px; border-radius: var(--seed-radius-full); background: var(--seed-color-palette-carrot-600); }

/* project picker */
.proj-bar { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 8px 6px; min-width: 0; }
.proj-pick {
  flex: 1 1 120px; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 10px; border: 0;
  border-radius: var(--seed-radius-r2_5); background: var(--bg); box-shadow: inset 0 0 0 1px var(--border);
  color: var(--side-active-fg); font-weight: var(--seed-font-weight-bold); text-align: left;
}
.proj-pick:hover, .proj-pick[aria-expanded=true] { background: var(--bg-hover); }
.proj-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj-caret { color: var(--side-muted); font-size: 11px; }
.proj-sq { flex: none; width: 14px; height: 14px; border-radius: var(--seed-radius-r1); }
.proj-sq.all {
  background: conic-gradient(var(--seed-color-palette-blue-500) 0 25%, var(--seed-color-palette-green-500) 0 50%,
    var(--seed-color-palette-carrot-500) 0 75%, var(--seed-color-palette-purple-500) 0);
}
.proj-ping {
  flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 0 8px; border: 0;
  border-radius: var(--seed-radius-full); background: var(--chip-bg); color: var(--fg-muted);
  font-size: var(--seed-font-size-t2); line-height: var(--seed-line-height-t2); font-weight: var(--seed-font-weight-bold); white-space: nowrap;
}
.proj-ping.hot { background: var(--seed-color-bg-critical-solid); color: var(--seed-color-fg-on-critical-solid); }
.proj-ping:hover { filter: brightness(0.95); }
.proj-menu { min-width: 240px; max-width: min(300px, calc(100vw - 16px)); }
.proj-menu .proj-row { min-height: 40px; }
.proj-row-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj-row.on { font-weight: var(--seed-font-weight-bold); }
.proj-check { flex: none; width: 16px; text-align: center; color: var(--accent); }
.proj-note { margin: 4px 10px 6px; max-width: 240px; font-size: var(--seed-font-size-t2); line-height: var(--seed-line-height-t2); color: var(--fg-faint); }
.scope-chip { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: var(--seed-font-size-t2); }

.scrim { display: none; }

@media (max-width: 700px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); z-index: 20;
    transform: translateX(-100%); transition: transform var(--seed-duration-d4) var(--seed-timing-function-easing);
  }
  .shell.nav-open .sidebar { transform: none; box-shadow: var(--shadow); }
  .shell.nav-open .scrim { display: block; position: fixed; inset: 0; background: var(--overlay); z-index: 15; }
  .menu-btn { display: inline-grid; }
  .hist-nav { display: none; }
  .panel .menu-btn { display: none; }
  .panel .view-header { padding-left: var(--seed-dimension-x4); }
  .panel { position: fixed; inset: 0; width: auto; z-index: 25; box-shadow: none; }
  .panel-resizer { display: none; }
  .view-header { padding: 0 8px 0 4px; gap: 6px; }
  .msg { padding-left: 12px; padding-right: 12px; }
  .actions { right: 8px; }
  .composer { padding: 0 10px 10px; }
  .board { padding: 16px 16px 32px; }
  .dropzone { padding: 14px; }
  .view-header .sub { display: none; }
  .doc-inner { padding: 20px 16px 32px 34px; }
  .blk { margin-left: calc(var(--depth, 0) * 20px - 26px); }
  .blk-gutter { width: 26px; }
  .handle { opacity: .5; }
  .blk-cmt { position: static; flex: none; display: none; margin-left: 2px; }
  .blk:focus-within > .blk-cmt, .blk-cmt.has { display: inline-block; }
  input.doc-title { font-size: var(--seed-font-size-t9); line-height: var(--seed-line-height-t9); }
  .doc-icon { font-size: 28px; }
}

/* emoji, reactions, nudges */
img.emoji { display: inline-block; height: 1.375em; width: auto; max-width: 2.75em; object-fit: contain; vertical-align: -0.3em; }
/* The pill keeps its SEED height; only the emoji grows (negative margins absorb the extra height). */
.seed-reaction-button img.emoji { height: 26px; max-width: 52px; margin-block: -5px; vertical-align: middle; }
.reactions .seed-reaction-button:not(.react-add) { font-size: 21px; line-height: 1; }
.reactions .seed-reaction-button .seed-count { font-size: var(--seed-font-size-t3); }
.actions img.emoji { height: 18px; vertical-align: -3px; }
.emoji-gone { font-family: var(--mono); font-size: .85em; color: var(--fg-muted); }
.reactions { align-items: center; }
.ico { display: block; }
.seed-reaction-button.react-add { color: var(--fg-muted); padding-inline: var(--seed-dimension-x2); }
.seed-reaction-button.react-add:hover { color: var(--fg); }
.msg .reactions .react-add { opacity: 0; }
.msg:hover .reactions .react-add, .msg:focus-within .reactions .react-add { opacity: 1; }
@media not all and (hover: hover) { .msg .reactions .react-add { opacity: 1; } }
.reaction-more { border: 0; background: none; color: var(--fg-muted); font-size: var(--seed-font-size-t2); font-weight: var(--seed-font-weight-bold); padding: 0 4px; border-radius: var(--seed-radius-r1); }
.reaction-more:hover { background: var(--bg-hover); color: var(--fg); }
.nudge-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: var(--seed-font-size-t3); }
/* ⏰ grows with the task's nudge level (--nudge-scale, 1 to 1.5) and shakes once per nudge, harder at each level. */
.seed-reaction-button.nudge {
  --seed-count-font-size: calc(var(--seed-font-size-t3) * var(--nudge-scale, 1));
  height: calc(var(--seed-dimension-x8) * var(--nudge-scale, 1)); padding-inline: calc(var(--seed-dimension-x3) * var(--nudge-scale, 1));
  font-size: calc(var(--seed-font-size-t3) * var(--nudge-scale, 1)); flex: none;
}
/* On a card the action row is one pill tall, so there the ⏰ and its count grow inside a pill of fixed height. */
.card-actions .seed-reaction-button.nudge { height: var(--seed-dimension-x8); }
.nudge-stat .nudge-glyph { font-size: calc(1em * var(--nudge-scale, 1)); line-height: 1; }
.nudge.shaking, .nudge-stat.shaking { animation: nudge-shake var(--shake-ms) var(--seed-timing-function-easing) both; }
.nudge[data-level="4"].shaking::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  animation: nudge-ring var(--shake-ms) ease-out both; animation-delay: inherit;
}
@keyframes nudge-shake {
  0%, 100% { transform: none; }
  12% { transform: translateX(calc(var(--shake-px) * -1)) rotate(calc(var(--shake-deg) * -1)); }
  27% { transform: translateX(var(--shake-px)) rotate(var(--shake-deg)); }
  42% { transform: translateX(calc(var(--shake-px) * -.7)) rotate(calc(var(--shake-deg) * -.7)); }
  57% { transform: translateX(calc(var(--shake-px) * .7)) rotate(calc(var(--shake-deg) * .7)); }
  72% { transform: translateX(calc(var(--shake-px) * -.35)) rotate(calc(var(--shake-deg) * -.35)); }
  87% { transform: translateX(calc(var(--shake-px) * .35)) rotate(calc(var(--shake-deg) * .35)); }
}
@keyframes nudge-ring {
  from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--danger) 55%, transparent); }
  to { box-shadow: 0 0 0 10px color-mix(in srgb, var(--danger) 0%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .nudge.shaking, .nudge-stat.shaking, .nudge[data-level="4"].shaking::after { animation: none; }
}
.react-pill { -webkit-touch-callout: none; user-select: none; }
.vote-pill { gap: 4px; flex: none; }
.vote-pill .ico { flex: none; }
.card-vote { display: flex; }
.rt-face .ico { width: 34px; height: 34px; }
.react-tip {
  position: fixed; z-index: 40; pointer-events: none; max-width: min(240px, calc(100vw - 16px)); padding: 10px 12px 8px;
  display: grid; justify-items: center; gap: 4px; text-align: center;
  background: var(--seed-color-bg-neutral-inverted); color: var(--seed-color-fg-neutral-inverted);
  border-radius: var(--seed-radius-r3); box-shadow: var(--shadow);
  font-size: var(--seed-font-size-t3); line-height: var(--seed-line-height-t3);
  animation: react-tip-in var(--seed-duration-d2) var(--seed-timing-function-easing);
}
.react-tip[hidden] { display: none; }
.rt-face { height: 40px; display: grid; place-items: center; font-size: 34px; line-height: 1; }
.rt-face img { height: 40px; width: auto; max-width: 80px; object-fit: contain; }
.rt-who { font-weight: var(--seed-font-weight-bold); overflow-wrap: anywhere; }
.rt-name {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: var(--seed-font-size-t2);
  color: color-mix(in srgb, var(--seed-color-fg-neutral-inverted) 62%, transparent);
}
@keyframes react-tip-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .react-tip { animation: none; } }
/* A message of one to three emoji alone shows them big. */
.jumbo { font-size: 28px; line-height: 40px; }
.jumbo img.emoji { height: 32px; max-width: 64px; vertical-align: -6px; }
.copy-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ac-emoji { width: 24px; display: grid; place-items: center; font-size: 20px; line-height: 1; flex: none; }
.ac-emoji img.emoji { height: 22px; max-width: 24px; vertical-align: 0; }
.ac-name { font-family: var(--mono); font-size: var(--seed-font-size-t3); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.emoji-picker {
  position: fixed; z-index: 30; width: min(352px, calc(100vw - 16px)); height: min(420px, calc(100dvh - 16px));
  display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 6px; padding: 10px;
  background: var(--bg-float); border-radius: var(--seed-radius-r4); box-shadow: var(--shadow), inset 0 0 0 1px var(--divider);
}
.emoji-picker .emoji-search { min-height: 36px; }
.emoji-tabs { display: flex; gap: 2px; }
.emoji-tabs button {
  border: 0; background: none; border-radius: var(--seed-radius-r2); padding: 4px 10px; min-height: 30px;
  font-size: var(--seed-font-size-t3); font-weight: var(--seed-font-weight-bold); color: var(--fg-muted);
}
.emoji-tabs button:hover { background: var(--bg-hover); color: var(--fg); }
.emoji-body { overflow-y: auto; overscroll-behavior: contain; position: relative; }
.emoji-sec + .emoji-sec { margin-top: 8px; }
.emoji-sec-title {
  position: sticky; top: 0; z-index: 1; background: var(--bg-float); padding: 4px 2px;
  font-size: var(--seed-font-size-t2); font-weight: var(--seed-font-weight-bold); color: var(--fg-muted);
}
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 2px; }
.emoji-grid button { border: 0; background: none; height: 38px; border-radius: var(--seed-radius-r2); font-size: 22px; line-height: 1; padding: 0; display: grid; place-items: center; }
.emoji-grid button:hover, .emoji-grid button:focus-visible { background: var(--bg-hover); }
.emoji-grid img.emoji { height: 26px; max-width: 34px; vertical-align: 0; }
.emoji-none { color: var(--fg-faint); font-size: var(--seed-font-size-t3); padding: 6px 2px; }
.emoji-foot { display: flex; justify-content: flex-end; padding-top: 4px; box-shadow: inset 0 1px 0 var(--divider); }

/* settings: the team's emoji as a searchable grid */
.emo-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.emo-q { flex: 1; min-width: 120px; }
.emo-count { font-size: var(--seed-font-size-t2); font-variant-numeric: tabular-nums; }
.emo-none { margin: 0; }
.emo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 4px; max-height: 360px; overflow-y: auto; }
.emo-tile { position: relative; min-width: 0; }
.emo-face {
  width: 100%; display: grid; justify-items: center; gap: 2px; padding: 6px 2px 4px; border: 0; border-radius: var(--seed-radius-r2);
  background: none; color: var(--fg-muted); font: inherit; font-size: var(--seed-font-size-t1); line-height: var(--seed-line-height-t1); cursor: pointer;
}
.emo-face:hover, .emo-tile.open .emo-face { background: var(--bg-hover); }
.emo-face img { width: 48px; height: 48px; object-fit: contain; }
.emo-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); }
.emo-actions { position: absolute; left: 2px; right: 2px; bottom: 2px; display: flex; gap: 2px; opacity: 0; pointer-events: none; }
.emo-tile:hover .emo-actions, .emo-tile:focus-within .emo-actions, .emo-tile.open .emo-actions { opacity: 1; pointer-events: auto; }
.emo-tile:hover .emo-name, .emo-tile:focus-within .emo-name, .emo-tile.open .emo-name { visibility: hidden; }
.emo-actions button {
  flex: 1; min-width: 0; height: 22px; border: 0; border-radius: var(--seed-radius-r1); padding: 0; background: var(--bg-float); color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--border); font: inherit; font-size: var(--seed-font-size-t2); cursor: pointer; white-space: nowrap;
}
.emo-actions button:hover { background: color-mix(in srgb, var(--fg) 8%, var(--bg-float)); }
.emo-actions .danger { color: var(--danger); }
.emo-actions button[data-armed] { background: var(--danger); color: var(--accent-fg); box-shadow: none; font-weight: var(--seed-font-weight-bold); }
.emo-actions:has([data-armed]) [data-act=emoji-copy] { display: none; }
.emo-detail { margin: 8px 0 0; font-size: var(--seed-font-size-t2); color: var(--fg-muted); overflow-wrap: anywhere; }
.emo-more { margin-top: 8px; }
.emoji-batch { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 240px; overflow-y: auto; }
.emoji-batch:empty { display: none; }
.emoji-batch li { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; font-size: var(--seed-font-size-t3); min-width: 0; }
.batch-file { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.batch-state { color: var(--fg-muted); }
.batch-done .batch-state { color: var(--ok); }
.batch-fail .batch-state, .batch-note { color: var(--danger); }
.batch-done .batch-note { color: var(--fg-muted); }
.batch-note { flex-basis: 100%; font-size: var(--seed-font-size-t2); overflow-wrap: anywhere; }
.emoji-drop {
  display: grid; gap: 4px; cursor: pointer; border: 2px dashed var(--border); border-radius: var(--seed-radius-r4); padding: var(--seed-dimension-x5);
  font-weight: var(--seed-font-weight-bold);
}
.emoji-drop u { color: var(--accent); }
.emoji-drop .faint { font-weight: var(--seed-font-weight-regular); font-size: var(--seed-font-size-t3); }
.emoji-drop.over { border-color: var(--accent); background: var(--accent-soft); }
.emoji-preview { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.emoji-preview[hidden] { display: none; }
.emoji-sample { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; font-size: var(--seed-font-size-t2); }
.emoji-sample img { object-fit: contain; }
.emoji-sample.big img {
  background: repeating-conic-gradient(var(--chip-bg) 0 25%, transparent 0 50%) 0 0 / 12px 12px; border-radius: var(--seed-radius-r2);
}
.emoji-how { font-size: var(--seed-font-size-t3); flex-basis: 100%; }
.team-emoji .seed-list-item__prefix img.emoji { height: 28px; max-width: 40px; }

/* inbox: 스레드, 활동, 안 읽은 글 */
.inbox-body { display: grid; gap: var(--seed-dimension-x4); max-width: 820px; min-width: 0; }
.inbox-help { margin: 0; font-size: var(--seed-font-size-t3); }
.inbox-sec { margin: var(--seed-dimension-x2) 0 0; font-size: var(--seed-font-size-t5); line-height: var(--seed-line-height-t5); display: flex; gap: 8px; align-items: baseline; }
.inbox-empty { color: var(--fg-muted); padding: var(--seed-dimension-x10) 0; text-align: center; font-size: var(--seed-font-size-t5); }
.inbox-card { box-shadow: inset 0 0 0 1px var(--border); border-radius: var(--seed-radius-r3); min-width: 0; overflow: hidden; }
.inbox-card.unread { box-shadow: inset 0 0 0 1px var(--border), inset 3px 0 0 var(--seed-color-stroke-critical-solid); }
.inbox-card.seen .inbox-msgs { opacity: .72; }
.inbox-card-head { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 10px 12px 4px 16px; font-size: var(--seed-font-size-t3); }
.inbox-card-head .spacer { flex: 1; }
.inbox-channel { font-weight: var(--seed-font-weight-bold); color: var(--fg); text-decoration: none; }
.inbox-channel:hover { text-decoration: underline; }
.inbox-msgs { padding: 0 0 6px; }
.inbox-msgs .msg { padding-left: 16px; padding-right: 12px; }
.inbox-more { margin: 2px 0 4px 64px; }
.msg.fresh { background: color-mix(in srgb, var(--accent-soft) 70%, transparent); }
.msg.fresh:hover { background: var(--accent-soft); }
.inbox-composer { padding: 0 12px 12px; }
.check { display: inline-flex; gap: 6px; align-items: center; font-size: var(--seed-font-size-t3); cursor: pointer; }
.check input { margin: 0; width: 16px; height: 16px; accent-color: var(--seed-color-palette-carrot-600); }
.act-filters { align-items: center; margin-bottom: 0; }
.act-filters .spacer { flex: 1; }
.act-list { box-shadow: inset 0 0 0 1px var(--border); border-radius: var(--seed-radius-r3); overflow: hidden; }
.act-list .inbox-empty { padding: var(--seed-dimension-x8) 16px; }
.act-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px 10px 8px; cursor: pointer; min-width: 0; }
.act-row + .act-row { box-shadow: inset 0 1px 0 0 var(--divider); }
.act-row:hover { background: var(--bg-hover); }
.act-dot { flex: none; width: 8px; height: 8px; margin-top: 12px; border-radius: var(--seed-radius-full); }
.act-row.unread .act-dot { background: var(--seed-color-palette-carrot-600); }
.act-body { display: grid; gap: 2px; min-width: 0; flex: 1; }
.act-head { display: flex; gap: 4px 6px; flex-wrap: wrap; align-items: center; font-size: var(--seed-font-size-t3); }
.act-row.unread .act-head b { color: var(--fg); }
.act-what { color: var(--fg-muted); }
.act-text { overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.act-row:not(.unread) .act-text { color: var(--fg-muted); }
.act-context { font-size: var(--seed-font-size-t2); color: var(--fg-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 나중에 */
.msg.saved { flex-wrap: wrap; row-gap: 0; background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
.saved-mark {
  flex-basis: 100%; display: inline-flex; gap: 4px; align-items: center; padding-left: 48px; margin-bottom: 2px;
  font-size: var(--seed-font-size-t2); color: var(--seed-color-palette-carrot-600); text-decoration: none; font-weight: var(--seed-font-weight-bold);
}
.saved-mark:hover { text-decoration: underline; }
.later { display: grid; gap: var(--seed-dimension-x3); max-width: 820px; min-width: 0; align-content: start; }
.later-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; }
.later-tabs a { text-decoration: none; }
.later-add { display: flex; gap: 8px; }
.later-add input { flex: 1; min-width: 0; }
.later-list { box-shadow: inset 0 0 0 1px var(--border); border-radius: var(--seed-radius-r3); overflow: hidden; }
.later-list .inbox-empty { padding: var(--seed-dimension-x8) 16px; }
.later-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 10px 10px 12px; min-width: 0; }
.later-row + .later-row { box-shadow: inset 0 1px 0 0 var(--divider); }
.later-row:hover { background: var(--bg-hover); }
.later-row.due { box-shadow: inset 3px 0 0 var(--seed-color-stroke-critical-solid); }
.later-row.due + .later-row { box-shadow: inset 0 1px 0 0 var(--divider); }
.later-row + .later-row.due { box-shadow: inset 0 1px 0 0 var(--divider), inset 3px 0 0 var(--seed-color-stroke-critical-solid); }
.later-check {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-top: 1px; padding: 0;
  border: 1.5px solid var(--border); border-radius: var(--seed-radius-full); background: none; color: transparent; cursor: pointer;
}
.later-check:hover, .later-check:focus-visible { border-color: var(--seed-color-palette-green-600, #079171); color: var(--seed-color-palette-green-600, #079171); }
.later-check.done { border-color: transparent; background: var(--seed-color-palette-green-600, #079171); color: #fff; cursor: default; }
.later-body { display: grid; gap: 3px; min-width: 0; flex: 1; }
.later-ctx { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: var(--seed-font-size-t3); }
.later-text { overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.later-text a { color: var(--fg); text-decoration: none; }
.later-text:hover, .later-text a:hover { text-decoration: underline; }
.later-text.own { cursor: default; text-decoration: none; }
.later-note { font-size: var(--seed-font-size-t3); color: var(--fg-muted); overflow-wrap: anywhere; }
.later-note::before { content: '메모 · '; color: var(--fg-faint); }
.later-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: var(--seed-font-size-t2); }
.later-remind {
  display: inline-flex; gap: 4px; align-items: center; border: 0; padding: 2px 8px; border-radius: var(--seed-radius-full);
  background: var(--chip-bg); color: var(--fg-muted); font-size: var(--seed-font-size-t2); cursor: pointer;
}
.later-remind.due { background: var(--seed-color-bg-critical-weak, #fdecea); color: var(--danger); font-weight: var(--seed-font-weight-bold); }
.later-tools { display: flex; gap: 2px; flex: none; opacity: 0; }
.later-row:hover .later-tools, .later-row:focus-within .later-tools { opacity: 1; }
@media (hover: none) { .later-tools { opacity: 1; } }
@media (max-width: 640px) {
  .later-row { flex-wrap: wrap; }
  .later-body { flex-basis: calc(100% - 32px); }
  .later-tools { opacity: 1; width: 100%; justify-content: flex-end; margin-top: -4px; }
}
.later-edit { display: flex; gap: 6px; margin-top: 2px; }
.later-edit input { flex: 1; min-width: 0; }
.remind-menu { min-width: 260px; }
.remind-head { padding: 6px 10px 4px; font-size: var(--seed-font-size-t2); color: var(--fg-muted); font-weight: var(--seed-font-weight-bold); }
.remind-menu [role=menuitem] .remind-at { margin-left: auto; padding-left: 12px; font-size: var(--seed-font-size-t2); }
.remind-custom { display: flex; gap: 6px; padding: 6px 10px; }
.remind-custom input { flex: 1; min-width: 0; }
.later-keep[aria-pressed=true] { color: var(--seed-color-palette-carrot-600); }
.notify { display: grid; gap: 8px; }
.notify-note { margin: 0; font-size: var(--seed-font-size-t3); }
.notify-kinds { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.notify-quiet { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: var(--seed-font-size-t3); }
.notify-push { display: grid; gap: 4px; padding-top: 8px; box-shadow: inset 0 1px 0 var(--divider); }
.notify-times { display: inline-flex; gap: 6px; align-items: center; }
.notify input[type=time] {
  border: 0; border-radius: var(--seed-radius-r2); background: var(--bg); box-shadow: inset 0 0 0 1px var(--field); padding: 4px 8px; min-height: 32px;
}
.notify input:disabled + *, .notify label:has(input:disabled) { color: var(--fg-faint); }
.discord-sub { font-weight: var(--seed-font-weight-bold); font-size: var(--seed-font-size-t3); margin-top: 4px; }
.discord .seed-list-item__content { display: grid; gap: 4px; }
.discord-name { min-height: 32px; }
.discord-add { display: flex; flex-wrap: wrap; gap: 6px; }
.discord-add input[name=name] { flex: 1 1 100px; }
.discord-add input[name=url] { flex: 3 1 200px; min-width: 0; }
.discord-routes { display: grid; gap: 6px; }
.mention-groups, .mg-list { display: grid; gap: 8px; }
.mg-list:empty { display: none; }
.mg-row { display: grid; gap: 6px; padding: 8px 10px; border-radius: var(--seed-radius-r3); box-shadow: inset 0 0 0 1px var(--border); }
.mg-add { box-shadow: inset 0 0 0 1px var(--border); background: var(--seed-color-bg-neutral-weak); }
.mg-head { display: flex; gap: 6px; align-items: center; }
.mg-at { font-weight: var(--seed-font-weight-bold); color: var(--fg-muted); }
.mg-head input { flex: 1 1 auto; min-width: 0; min-height: 32px; }
.mg-members { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.mg-members .check { min-height: 28px; }
.discord-route { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; justify-content: space-between; font-size: var(--seed-font-size-t3); }
.discord-route select { width: auto; min-width: 120px; max-width: 100%; min-height: 32px; }
.discord-route .muted { overflow-wrap: anywhere; }
.traffic-head { font-size: var(--seed-font-size-t5); }
.usage-bar { height: 8px; border-radius: 4px; background: var(--seed-color-bg-neutral-weak); overflow: hidden; }
.usage-bar span { display: block; height: 100%; background: var(--seed-color-bg-neutral-solid); }
.usage-bar.level-80 span { background: var(--seed-color-bg-warning-solid); }
.usage-bar.level-100 span { background: var(--seed-color-bg-critical-solid); }
.traffic-limit { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-end; }
.traffic-limit button { min-height: 40px; }
.traffic-limit .field { flex: 1 1 120px; }
.traffic-limit select { width: auto; }
.meeting-form { display: grid; gap: 10px; }
.meeting-row { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: var(--seed-font-size-t3); }
.meeting-label { flex: 0 0 7em; font-weight: var(--seed-font-weight-bold); }
.meeting-row select { width: auto; min-width: 120px; max-width: 100%; min-height: 32px; }
.meeting-row .notify-kinds { flex: 1 1 240px; }
.meeting .meeting-note:empty { display: none; }
.admin { display: grid; gap: var(--seed-dimension-x8); align-content: start; }
.admin > * { max-width: 900px; min-width: 0; }
.admin-section { display: grid; gap: 8px; }
.board .admin-section h3 { margin: 0; }
.admin .is-empty { box-shadow: none; }
.admin-person .seed-list-item__title { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.admin-person .admin-tokens { flex-basis: 100%; }
.admin-join { display: grid; gap: 8px; }
.join-mode { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: var(--seed-font-size-t3); }
.join-mode select { width: auto; margin-left: 6px; }
.admin .webhook-out:empty { display: none; }
.admin .webhook-out { display: grid; gap: 8px; }
.admin-storage { display: grid; gap: 12px; }
.admin-meter { display: grid; gap: 4px; }
.admin-meter-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; font-size: var(--seed-font-size-t3); }
.admin-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0; font-size: var(--seed-font-size-t3); }
.admin-facts dt { color: var(--fg-muted); }
.admin-facts dd { margin: 0; overflow-wrap: anywhere; }
.token-idle { color: var(--seed-color-fg-warning); }
.idle-days { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 16px; }
.idle-days button { min-height: 40px; }
.idle-days .check { min-height: 40px; display: inline-flex; align-items: center; gap: 6px; }
.admin-idle { display: grid; gap: 8px; }
.admin-idle .idle-note:empty { display: none; }
.audit-filters { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: var(--seed-font-size-t3); }
.audit-filters select { width: auto; max-width: 100%; margin-left: 6px; }
.audit-row .seed-list-item__title { overflow-wrap: anywhere; }
.audit-row .seed-list-item__detail { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.audit-more:empty { display: none; }
@media (max-width: 700px) {
  .inbox-card-head { padding-left: 12px; }
  .inbox-msgs .msg { padding-left: 12px; }
  .inbox-more { margin-left: 56px; }
}

/* Game bridge: report screenshots, task attachments, room cards, playtest reactions */
.report-thumb, .att-thumb {
  display: block; padding: 0; border: 0; background: var(--chip-bg); border-radius: var(--seed-radius-r2); overflow: hidden; cursor: zoom-in;
  box-shadow: inset 0 0 0 1px var(--border);
}
.report-thumb { margin-top: 6px; width: min(240px, 100%); }
.report-thumb img, .att-thumb img { display: block; width: 100%; height: auto; max-height: 180px; object-fit: cover; }
.att-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.att-thumb img { aspect-ratio: 16 / 10; max-height: none; }
.attachments { display: grid; gap: 8px; }
.attachments h4 { margin-bottom: 0; }
.att-files { display: grid; gap: 6px; }
.att-log { box-shadow: inset 0 0 0 1px var(--border); border-radius: var(--seed-radius-r2); min-width: 0; }
.att-log-head { display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 4px; }
.att-log-toggle {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 6px 8px; border-radius: var(--seed-radius-r1_5);
  text-align: left; overflow-wrap: anywhere;
}
.att-log-toggle:hover { background: var(--bg-hover); }
.att-log-cut { margin: 0 12px; font-size: var(--seed-font-size-t2); }
.att-log-text {
  margin: 0; padding: 10px 12px; max-height: 320px; overflow: auto; background: var(--code-bg); color: var(--fg);
  font-size: var(--seed-font-size-t2); line-height: var(--seed-line-height-t2); white-space: pre; border-radius: 0 0 var(--seed-radius-r2) var(--seed-radius-r2);
}
.report-info { display: grid; gap: 8px; }
.tp-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tp-line code { background: var(--code-bg); padding: 2px 6px; border-radius: var(--seed-radius-r1); overflow-wrap: anywhere; }
.diag { border-collapse: collapse; font-size: var(--seed-font-size-t3); width: 100%; }
.diag th, .diag td { text-align: left; padding: 4px 8px; box-shadow: inset 0 -1px 0 var(--divider); overflow-wrap: anywhere; }
.diag th { font-weight: var(--seed-font-weight-medium); color: var(--fg-muted); width: 45%; }
.origin-line { margin: 0; }
.crash-info dd { overflow-wrap: anywhere; }
.dump-modules summary { cursor: pointer; color: var(--fg-muted); }
.dump-modules ul { margin: 6px 0 0; padding-left: 18px; max-height: 200px; overflow: auto; font-size: var(--seed-font-size-t2); }
.build-filed { color: var(--fg-muted); }
.inline-check { display: inline-flex; align-items: center; gap: 4px; }
.file-chip.removed { cursor: default; color: var(--fg-muted); border-style: dashed; }

.msg.system.room { color: var(--fg); }
.msg.system.batch-notice { color: var(--fg); }
.batch-card {
  display: grid; gap: 6px; margin: 2px 0 4px; padding: 12px 14px; max-width: 520px; min-width: 0; border-radius: var(--seed-radius-r3);
  box-shadow: inset 0 0 0 1px var(--border); background: var(--bg); font-size: var(--seed-font-size-t4); line-height: var(--seed-line-height-t4);
}
.batch-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.batch-card-kind { font-size: var(--seed-font-size-t3); font-weight: var(--seed-font-weight-bold); color: var(--fg-muted); margin-right: 2px; }
.batch-card-title { font-weight: var(--seed-font-weight-bold); overflow-wrap: anywhere; }
.batch-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; color: var(--fg-muted); font-size: var(--seed-font-size-t3); min-width: 0; }
.batch-card-meta .page-chip { max-width: 100%; }
.batch-card-items { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 4px; font-size: var(--seed-font-size-t3); }
.batch-card-items li { display: flex; align-items: center; gap: 6px; min-width: 0; }
.batch-card-item { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg); }
.batch-card-items li > .faint { flex: none; }
.batch-card-made { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: var(--seed-font-size-t3); }
.room-card {
  display: grid; gap: 8px; margin: 2px 0 4px; padding: 12px 14px; max-width: 460px; border-radius: var(--seed-radius-r3);
  box-shadow: inset 0 0 0 1px var(--border); background: var(--bg); font-size: var(--seed-font-size-t4); line-height: var(--seed-line-height-t4);
}
.room-card.closed { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 6px 10px; color: var(--fg-muted); font-size: var(--seed-font-size-t3); background: none; }
.room-code { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.room-code .mono { font-size: var(--seed-font-size-t7); line-height: var(--seed-line-height-t7); font-weight: var(--seed-font-weight-bold); letter-spacing: .08em; }
.room-note { color: var(--fg-muted); overflow-wrap: anywhere; }
.room-joined, .pt-who { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.room-person, .pt-person { display: inline-flex; align-items: center; gap: 4px; font-size: var(--seed-font-size-t3); }
.room-until { align-self: center; font-size: var(--seed-font-size-t3); }

.build-changes { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; font-size: var(--seed-font-size-t3); }
.build-changes .task-chip { max-width: 100%; overflow-wrap: anywhere; text-align: left; }
.build-change-group { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; flex-basis: 100%; min-width: 0; }
.build-change-title { color: var(--fg-muted); font-weight: var(--seed-font-weight-medium); }
.build-checks { display: grid; gap: 6px; padding-top: 8px; box-shadow: inset 0 1px 0 var(--divider); }
.checks-head { display: flex; gap: 8px; align-items: baseline; font-size: var(--seed-font-size-t3); }
.build-checks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.build-checks li { display: flex; gap: 8px; align-items: center; padding: 4px 6px; border-radius: var(--seed-radius-r2); }
.build-checks li:hover { background: var(--bg-hover); }
.build-checks li.ok .check-text { color: var(--fg-muted); }
.build-checks li.bad { background: color-mix(in srgb, var(--seed-color-palette-red-200) 45%, transparent); }
.check-text { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: var(--seed-font-size-t4); }
.check-marks { display: flex; gap: 4px; flex: none; }
.check-mark {
  border: 0; border-radius: var(--seed-radius-full); padding: 2px 10px; min-height: 28px; background: var(--chip-bg); color: var(--fg);
  font-size: var(--seed-font-size-t3); font-variant-numeric: tabular-nums;
}
.check-mark:hover { background: var(--seed-color-bg-neutral-weak-pressed); }
.check-mark.ok[aria-pressed="true"] { background: var(--seed-color-palette-green-200); color: var(--seed-color-palette-green-900); }
.check-mark.bad[aria-pressed="true"] { background: var(--seed-color-palette-red-200); color: var(--seed-color-palette-red-900); }
.checks-hint { margin: 0; font-size: var(--seed-font-size-t2); }
.checks-add { justify-self: start; }
.build-checks-form { display: grid; gap: 6px; }
.build-checks-form .row { display: flex; gap: 6px; }
.playtest { display: grid; gap: 8px; padding-top: 8px; box-shadow: inset 0 1px 0 var(--divider); }
.pt-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pt-played, .pt-react {
  border: 0; border-radius: var(--seed-radius-full); padding: 4px 12px; min-height: 30px; background: var(--chip-bg); color: var(--fg);
  font-size: var(--seed-font-size-t3); font-weight: var(--seed-font-weight-medium);
}
.pt-played:hover, .pt-react:hover { background: var(--seed-color-bg-neutral-weak-pressed); }
.pt-played[aria-pressed="true"] { background: var(--seed-color-bg-neutral-inverted); color: var(--seed-color-fg-neutral-inverted); }
.pt-react.fun[aria-pressed="true"], .pt-chip.fun { background: var(--seed-color-palette-green-200); color: var(--seed-color-palette-green-900); }
.pt-react.frustrating[aria-pressed="true"], .pt-chip.frustrating { background: var(--seed-color-palette-yellow-200); color: var(--seed-color-palette-yellow-900); }
.pt-react.bug[aria-pressed="true"], .pt-chip.bug { background: var(--seed-color-palette-red-200); color: var(--seed-color-palette-red-900); }
.pt-who { margin-left: 4px; }
.pt-note-form { display: flex; gap: 6px; flex: 1; min-width: 0; }
.pt-note-form input { min-height: 34px; padding: 4px 10px; }
.pt-note-edit { font-weight: var(--seed-font-weight-medium); font-size: var(--seed-font-size-t3); overflow-wrap: anywhere; text-align: left; }
.pt-summary { justify-self: start; border: 0; background: none; padding: 2px 0; font-weight: var(--seed-font-weight-bold); color: var(--fg); }
.pt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pt-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: var(--seed-font-size-t3); min-width: 0; }
.pt-chip { border-radius: var(--seed-radius-r1_5); padding: 1px 8px; font-weight: var(--seed-font-weight-bold); }
.pt-note { min-width: 0; overflow-wrap: anywhere; }
.pt-task { margin-left: auto; }
.pt-draft { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.pt-draft input { flex: 1 1 200px; min-height: 34px; padding: 4px 10px; }
.playtest-box {
  max-width: 900px; margin-bottom: 12px; padding: 14px 16px; border-radius: var(--seed-radius-r3); display: grid; gap: 8px;
  background: var(--warn-bg);
}
.playtest-box h3 { margin: 0; font-size: var(--seed-font-size-t5); }
.playtest-box p { margin: 0; font-size: var(--seed-font-size-t3); }
@media (max-width: 520px) {
  .pt-task { margin-left: 0; width: 100%; }
  .room-card { max-width: none; }
}

/* profile card: a popover by what was clicked, or a bottom sheet on a phone */
.profile-card {
  position: fixed; z-index: 31; width: min(320px, calc(100vw - 16px)); display: grid; gap: 10px; padding: 16px;
  background: var(--bg-float); border-radius: var(--seed-radius-r4); box-shadow: var(--shadow), inset 0 0 0 1px var(--divider); outline: none;
}
.profile-card.sheet {
  left: 0; right: 0; bottom: 0; width: auto; max-height: 80dvh; overflow-y: auto; overscroll-behavior: contain;
  border-radius: var(--seed-radius-r5) var(--seed-radius-r5) 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom));
}
.pc-head { display: flex; gap: 14px; align-items: center; min-width: 0; }
.pc-id { min-width: 0; display: grid; gap: 2px; }
.pc-name { font-size: var(--seed-font-size-t6); line-height: var(--seed-line-height-t6); font-weight: var(--seed-font-weight-bold); overflow-wrap: anywhere; }
.pc-role { color: var(--fg-muted); }
.pc-seen { display: flex; align-items: center; gap: 6px; font-size: var(--seed-font-size-t2); color: var(--fg-faint); }
.pc-seen .dot { width: 8px; height: 8px; }
.pc-status { background: var(--chip-bg); border-radius: var(--seed-radius-r2); padding: 6px 10px; overflow-wrap: anywhere; }
.pc-bio { margin: 0; color: var(--fg); overflow-wrap: anywhere; }
.pc-sec { font-size: var(--seed-font-size-t2); font-weight: var(--seed-font-weight-bold); color: var(--fg-muted); box-shadow: inset 0 1px 0 var(--divider); padding-top: 10px; }
.pc-sec .count { font-weight: var(--seed-font-weight-regular); }
.pc-tasks { display: grid; gap: 2px; margin: -4px -6px 0; }
.pc-task {
  display: flex; gap: 8px; align-items: center; min-width: 0; border: 0; background: none; padding: 6px; border-radius: var(--seed-radius-r2);
  color: inherit; text-align: left; font-size: var(--seed-font-size-t3);
}
.pc-task:hover { background: var(--bg-hover); }
.pc-task .mono { flex: none; color: var(--fg-muted); }
.pc-task-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-none { margin: -4px 0 0; font-size: var(--seed-font-size-t3); }
.pc-foot { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* 내 프로필 */
.pf-photo { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.pf-preview { flex: none; line-height: 0; }
.pf-canvas { width: 96px; height: 96px; border-radius: var(--seed-radius-full); box-shadow: 0 0 0 1px var(--divider); }
.brand-icon { width: 64px; height: 64px; border-radius: var(--seed-radius-r3); box-shadow: 0 0 0 1px var(--divider); }
.brand-form { display: grid; gap: 12px; max-width: 520px; }
.pf-photo-side { flex: 1; min-width: 180px; display: grid; gap: 8px; }
.pf-photo-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-zoom { display: flex; gap: 8px; align-items: center; font-size: var(--seed-font-size-t3); }
.pf-zoom[hidden], .pf-photo-btns [hidden] { display: none; }
.pf-zoom input { flex: 1; min-width: 0; }
.pf-hint, #pf-name-note { font-size: var(--seed-font-size-t2); line-height: var(--seed-line-height-t2); font-weight: var(--seed-font-weight-regular); }
.profile-dlg .field:not(label) { display: grid; gap: 6px; font-size: var(--seed-font-size-t3); font-weight: var(--seed-font-weight-bold); }
.pf-status { display: flex; gap: 6px; align-items: center; }
.pf-status input { flex: 1; min-width: 0; font-weight: var(--seed-font-weight-regular); }
.pf-emoji {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; padding: 0; font-size: 22px; line-height: 1;
  border-radius: var(--seed-radius-r2); box-shadow: inset 0 0 0 1px var(--field); color: var(--fg-muted);
}
.pf-emoji:hover { background: var(--bg-hover); }
.pf-emoji img.emoji { height: 24px; max-width: 32px; }
.settings-profile { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.settings-profile .muted { flex: 1; min-width: 140px; font-size: var(--seed-font-size-t3); }

/* 할일 후보 (proposals review) */
.proposals { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.prop-body { flex: 1; overflow-y: auto; padding: var(--seed-dimension-x5) var(--seed-dimension-x5) var(--seed-dimension-x10); display: grid; gap: var(--seed-dimension-x3); align-content: start; max-width: 1100px; }
.prop-intro { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--fg-muted); font-size: var(--seed-font-size-t3); }
.prop-help { margin: 0; font-size: var(--seed-font-size-t3); }
.prop-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; position: sticky; top: calc(-1 * var(--seed-dimension-x5)); z-index: 2; background: var(--bg); padding: 6px 0; }
.prop-tools .spacer { flex: 1; }
.prop-list { display: grid; border-radius: var(--seed-radius-r3); box-shadow: inset 0 0 0 1px var(--border); }
.prop-row { display: grid; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--divider); min-width: 0; }
.prop-row:first-child { border-top: 0; }
.prop-row.selected { background: color-mix(in srgb, var(--accent-soft) 60%, var(--bg)); }
.prop-row.created { background: color-mix(in srgb, var(--seed-color-bg-positive-weak) 50%, var(--bg)); }
.prop-row.dropped .prop-title { text-decoration: line-through; color: var(--fg-muted); }
.prop-head { display: flex; gap: 8px; align-items: center; min-width: 0; }
.prop-check { width: 18px; height: 18px; flex: none; accent-color: var(--accent-solid); }
input.prop-title { flex: 1; min-width: 0; min-height: 34px; padding: 4px 8px; box-shadow: none; font-weight: var(--seed-font-weight-bold); background: transparent; }
input.prop-title:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--field); }
input.prop-title:focus { box-shadow: inset 0 0 0 2px var(--field-focus); background: var(--bg); }
input.prop-title:disabled { background: transparent; color: var(--fg); }
.prop-fields { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding-left: 26px; font-size: var(--seed-font-size-t3); }
.prop-fields select { width: auto; min-height: 30px; padding: 2px 8px; font-size: var(--seed-font-size-t3); }
.prop-owner { display: inline-flex; gap: 6px; align-items: center; }
.seg { display: inline-flex; border-radius: var(--seed-radius-r2); box-shadow: inset 0 0 0 1px var(--field); overflow: hidden; flex-wrap: wrap; }
.seg-btn { border: 0; background: none; padding: 4px 10px; min-height: 30px; font-size: var(--seed-font-size-t3); color: var(--fg-muted); }
.seg-btn + .seg-btn { box-shadow: -1px 0 0 var(--field); }
.seg-btn[aria-pressed=true], .seg-btn[aria-checked=true] { background: var(--bg-selected); color: var(--fg); font-weight: var(--seed-font-weight-bold); }
.seg-btn:disabled { cursor: default; }
.prop-refs, .prop-similar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-left: 26px; min-width: 0; }
.ref-chip {
  display: inline-block; max-width: 100%; border: 0; border-radius: var(--seed-radius-r1_5); padding: 2px 8px;
  background: var(--chip-bg); color: var(--fg-muted); font-size: var(--seed-font-size-t2); text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ref-chip:hover { background: var(--seed-color-bg-neutral-weak-pressed); color: var(--fg); }
.ref-chip.gone { text-decoration: line-through; }
.prop-sim { font-size: var(--seed-font-size-t3); color: var(--fg-muted); }
.prop-detail, .prop-restore, .prop-row > .seed-callout__root, .prop-conflict { margin-left: 26px; }
.prop-detail { display: grid; gap: 8px; }
.prop-detail.text { font-size: var(--seed-font-size-t3); overflow-wrap: anywhere; }
.prop-result { display: inline-flex; gap: 4px; align-items: center; flex: none; color: var(--ok); font-weight: var(--seed-font-weight-bold); font-size: var(--seed-font-size-t3); }
.prop-conflict { background: var(--warn-bg); color: var(--warn-fg); border-radius: var(--seed-radius-r2_5); padding: 10px 12px; display: grid; gap: 6px; font-size: var(--seed-font-size-t3); }
.prop-confirm { position: sticky; top: 36px; z-index: 2; }
.prop-dropped .prop-list { opacity: .85; }
.ref-panel { display: grid; gap: 10px; align-content: start; }
.ref-panel .cmt-quote { margin: 0; }
.ref-ctx { padding: 4px 10px; border-radius: var(--seed-radius-r2); color: var(--fg-muted); font-size: var(--seed-font-size-t3); overflow-wrap: anywhere; }
.ref-ctx.hit { color: var(--fg); background: var(--mention-bg); box-shadow: inset 3px 0 0 var(--seed-color-stroke-warning-solid); }
.ref-thread { overflow: visible; padding: 0; }
.msg[data-ref-hit] { background: var(--mention-bg); }
@media (max-width: 700px) {
  .prop-link .chip-detail { display: none; }
  .prop-body { padding: var(--seed-dimension-x3) var(--seed-dimension-x4) var(--seed-dimension-x10); }
  .prop-list { box-shadow: none; gap: 8px; }
  .prop-row { border: 0; border-radius: var(--seed-radius-r3); box-shadow: inset 0 0 0 1px var(--border); padding: 10px 12px; }
  .prop-row.selected { box-shadow: inset 0 0 0 2px var(--accent-solid); }
  .prop-fields, .prop-refs, .prop-similar { padding-left: 0; }
  .prop-detail, .prop-restore, .prop-row > .seed-callout__root, .prop-conflict { margin-left: 0; }
  .prop-tools .spacer { display: none; }
  .prop-tools [data-act=prop-confirm] { flex: 1 1 100%; }
  .prop-choice { width: 100%; }
  .prop-choice .seg-btn { flex: 1 1 auto; }
}
.prop-expand { flex: none; font-size: var(--seed-font-size-t5); }

/* 지표: small multiples, one line chart per metric. Line blue-700 in light, blue-600 in dark (validated against each surface). */
:root { --chart-line: var(--seed-color-palette-blue-700); --chart-surface: var(--bg); --chart-grid: var(--seed-color-stroke-neutral-muted); }
:root[data-seed-user-color-scheme="dark"] { --chart-line: var(--seed-color-palette-blue-600); }
.metric-filters { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.metric-filters .filter-search { width: min(320px, 100%); }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 12px; }
.metric-card { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--bg); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mc-head { display: flex; gap: 8px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; }
.mc-head h3 { margin: 0; font-size: var(--seed-font-size-t4); font-weight: 600; overflow-wrap: anywhere; }
.mc-head .faint { font-size: var(--seed-font-size-t2); }
.mc-figure { display: flex; gap: 4px 10px; align-items: baseline; flex-wrap: wrap; }
.mc-value { font-size: var(--seed-font-size-t7); font-weight: 600; }
.mc-change, .metric-move { font-size: var(--seed-font-size-t3); font-weight: 600; }
.tone-good .metric-move, .mc-change.tone-good { color: var(--seed-color-fg-positive); }
.tone-bad .metric-move, .mc-change.tone-bad { color: var(--seed-color-fg-critical); }
.mc-change.tone-flat { color: var(--fg-muted); }
.mc-where { font-size: var(--seed-font-size-t2); }
.mc-plot { position: relative; }
.mc-plot svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.mc-plot svg:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.mc-grid { stroke: var(--chart-grid); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mc-tick { fill: var(--fg-muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.mc-line { fill: none; stroke: var(--chart-line); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.mc-dot { fill: var(--chart-line); stroke: var(--chart-surface); stroke-width: 2; }
.mc-cross { stroke: var(--fg-muted); stroke-width: 1; vector-effect: non-scaling-stroke; visibility: hidden; }
.mc-hit { fill: var(--chart-line); stroke: var(--chart-surface); stroke-width: 2; visibility: hidden; }
svg[data-at] .mc-cross, svg[data-at] .mc-hit { visibility: visible; }
.mc-tip { position: absolute; transform: translate(10px, -50%); background: var(--bg-float); color: var(--fg); box-shadow: var(--shadow); border-radius: 8px; padding: 6px 8px;
  display: flex; flex-direction: column; gap: 2px; font-size: var(--seed-font-size-t2); pointer-events: none; white-space: nowrap; z-index: 2; }
.mc-tip[hidden] { display: none; }
.mc-tip.flip { transform: translate(calc(-100% - 10px), -50%); }
.mc-tip b { font-size: var(--seed-font-size-t4); }
.mc-note { margin: 0; font-size: var(--seed-font-size-t3); overflow-wrap: anywhere; }
.mc-table summary { cursor: pointer; font-size: var(--seed-font-size-t3); color: var(--fg-muted); }
.mc-table table { width: 100%; border-collapse: collapse; font-size: var(--seed-font-size-t2); margin-top: 6px; display: block; overflow-x: auto; }
.mc-table th, .mc-table td { text-align: left; padding: 3px 8px 3px 0; border-bottom: 1px solid var(--divider); white-space: nowrap; }
.mc-table td:first-child { font-variant-numeric: tabular-nums; }
.metric-chips { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.metric-chip { display: inline-flex; gap: 4px; align-items: baseline; padding: 2px 8px; border-radius: 999px; background: var(--chip-bg); color: var(--fg); text-decoration: none;
  font-size: var(--seed-font-size-t2); max-width: 100%; overflow-wrap: anywhere; }
.metric-chip:hover { background: var(--bg-hover); }

/* 이어받기 메모: the first thing in the task panel, so a returning person or session reads it before anything else. */
.task-detail .memo { border: 1px solid var(--border); border-left: 3px solid var(--seed-color-palette-blue-600); border-radius: 8px; padding: 8px 12px; display: flex; flex-direction: column; gap: 6px; }
.task-detail .memo.empty { border-left-color: var(--border); }
.memo-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.memo-head h4 { margin: 0; }
.memo-who { display: inline-flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.memo-kv dd { white-space: normal; }
.task-memo h4 { margin: 0; }
.criteria .text { white-space: pre-wrap; }

/* Chat attachments: what waits in the composer, and pictures in a message (a GIF animates; click opens it large). */
.compose-strip { display: flex; flex-wrap: wrap; gap: 6px; }
.compose-strip:empty { display: none; }
.compose-strip:not(:empty) { margin-bottom: 6px; }
.compose-file { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 6px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-soft); font-size: var(--seed-font-size-t2); }
.compose-file img { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; }
.compose-file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.composer.over .composer-box { box-shadow: inset 0 0 0 2px var(--field-focus); }
.compose-attach { font-size: 16px; }
.msg-files { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.msg-images { display: flex; flex-wrap: wrap; gap: 6px; }
.msg-image { padding: 0; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-soft); overflow: hidden; max-width: 100%; line-height: 0; cursor: zoom-in; }
.msg-image img { display: block; max-width: min(360px, 100%); max-height: 280px; width: auto; height: auto; }
.msg-files .att-files { justify-items: start; }

/* Milestone progress: a meter whose track is a light step of the chart blue, beside the milestone filter and in its side panel. */
.ms-bar { display: block; height: 6px; border-radius: 3px; background: var(--seed-color-palette-blue-200); overflow: hidden; min-width: 60px; }
.ms-bar > span { display: block; height: 100%; border-radius: 3px; background: var(--chart-line); }
.ms-filter { display: inline-flex; align-items: center; gap: 6px; }
.ms-filter .ms-bar { width: 72px; }
.ms-count { font-size: var(--seed-font-size-t2); color: var(--fg-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ms-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ms-row-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ms-name { border: 0; background: none; padding: 0; min-width: 0; max-width: 100%; text-align: left; cursor: pointer; }
.ms-detail { font-size: var(--seed-font-size-t2); }
/* A milestone is a label-colored chip with a flag, so it reads as a badge beside labels on cards and in the task panel. */
.ms-badge { gap: 3px; }
.ms-badge .ico { width: 12px; height: 12px; flex: none; }
.ms-badge-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ms-panel-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: var(--seed-font-size-t2); }
.ms-card { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--seed-radius-r2); background: var(--bg); }
.ms-card.current { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.ms-star { font-size: 16px; line-height: 1; color: var(--fg-faint); }
.ms-card.current .ms-star { color: var(--seed-color-palette-yellow-600); }
.ms-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: var(--seed-font-size-t2); color: var(--fg-muted); }
.ms-due.late { color: var(--seed-color-fg-critical); font-weight: var(--seed-font-weight-bold); }
.ms-goal { margin: 0; overflow-wrap: anywhere; }
.ms-progress { display: flex; align-items: center; gap: 8px; }
.ms-progress .ms-bar { flex: 1; }
.ms-crit-head { font-size: var(--seed-font-size-t2); font-weight: var(--seed-font-weight-bold); color: var(--fg-muted); margin-top: 2px; }
.ms-crit-head .count { font-weight: var(--seed-font-weight-regular); }
.ms-criteria { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ms-crit { display: flex; align-items: flex-start; gap: 6px; font-size: var(--seed-font-size-t3); }
.ms-crit .inline-check { align-items: flex-start; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ms-crit input { margin-top: 3px; flex: none; }
.ms-crit.checked .inline-check span { color: var(--fg-muted); text-decoration: line-through; }
.ms-by { flex: none; font-size: var(--seed-font-size-t2); }
.ms-past { margin-top: 12px; }
.ms-past > summary { cursor: pointer; color: var(--fg-muted); font-size: var(--seed-font-size-t3); margin-bottom: 8px; }
.ms-past .ms-card { opacity: .75; }
.ms-empty { text-align: left; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ms-empty p { margin: 0; }
.ms-crit-edit { margin: 4px 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; counter-reset: crit; }
.ms-crit-row { display: flex; align-items: center; gap: 4px; counter-increment: crit; }
.ms-crit-row::before { content: counter(crit) "."; width: 1.6em; flex: none; color: var(--fg-faint); font-size: var(--seed-font-size-t2); text-align: right; }
.ms-crit-text { flex: 1; min-width: 0; }
.ms-crit-done { color: var(--seed-color-fg-positive); }
.ms-crit-add { align-self: flex-start; }
.ms-delete-ask { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--seed-font-size-t3); }
.ms-pick { max-width: 100%; }
.prop-ms-why { font-size: var(--seed-font-size-t2); display: flex; align-items: center; gap: 4px; }
.prop-ms-why .ico { width: 12px; height: 12px; }
.ms-coverage { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-bottom: 12px; padding: 8px 10px; border-radius: 8px; background: var(--bg-soft); color: var(--fg); text-decoration: none; }
.ms-coverage b { font-size: var(--seed-font-size-t6); }

.join p.join-help { margin: 0; text-align: center; font-size: var(--seed-font-size-t3); }
.help-public { height: 100%; display: flex; flex-direction: column; background: var(--bg); }
.help { flex: 1; overflow-y: auto; display: grid; grid-template-columns: 180px minmax(0, 760px); justify-content: center; align-items: start; gap: var(--seed-dimension-x8); padding: var(--seed-dimension-x6) var(--seed-dimension-x5) var(--seed-dimension-x10); }
.help-toc { position: sticky; top: 0; display: flex; flex-direction: column; gap: 2px; }
.help-toc a { padding: 5px 10px; border-radius: var(--seed-radius-r2); color: var(--fg-muted); text-decoration: none; font-size: var(--seed-font-size-t4); }
.help-toc a:hover { background: var(--bg-hover); color: var(--fg); }
.help-toc a.active { background: var(--bg-selected); color: var(--fg); font-weight: var(--seed-font-weight-bold); }
.help-body { min-width: 0; font-size: var(--seed-font-size-t5); line-height: var(--seed-line-height-t5); }
.help-sec { scroll-margin-top: 8px; padding-bottom: var(--seed-dimension-x6); margin-bottom: var(--seed-dimension-x6); border-bottom: 1px solid var(--divider); }
.help-sec:last-child { border-bottom: 0; }
.help-sec h3 { margin: 0 0 var(--seed-dimension-x3); font-size: var(--seed-font-size-t8); line-height: var(--seed-line-height-t8); }
.help-sec h4 { scroll-margin-top: 8px; margin: var(--seed-dimension-x5) 0 var(--seed-dimension-x2); font-size: var(--seed-font-size-t6); line-height: var(--seed-line-height-t6); }
.help-sec p, .help-sec ul, .help-sec ol { margin: 0 0 var(--seed-dimension-x3); }
.help-sec ul, .help-sec ol { padding-left: 22px; }
.help-sec li + li { margin-top: 4px; }
.help-sec code { padding: 1px 5px; border-radius: var(--seed-radius-r1); background: var(--code-bg); font-size: 0.88em; overflow-wrap: anywhere; }
.help-sec pre { margin: 0 0 var(--seed-dimension-x3); padding: 10px 12px; border-radius: var(--seed-radius-r2); background: var(--code-bg); overflow-x: auto; font-size: var(--seed-font-size-t3); }
.help-sec pre code { padding: 0; background: none; overflow-wrap: normal; }
.help-table { margin: 0 0 var(--seed-dimension-x3); overflow-x: auto; }
.help-table table { width: 100%; border-collapse: collapse; font-size: var(--seed-font-size-t4); }
.help-table th, .help-table td { padding: 6px 10px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.help-table th { background: var(--bg-soft); }
.help-note { padding: 8px 12px; border-radius: var(--seed-radius-r2); background: var(--warn-bg); color: var(--warn-fg); }
@media (max-width: 700px) {
  .help { grid-template-columns: minmax(0, 1fr); gap: var(--seed-dimension-x4); padding: 12px 16px 32px; }
  .help-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .help-toc a { padding: 3px 8px; background: var(--chip-bg); font-size: var(--seed-font-size-t3); }
}

/* the dashboard: one column of sections, each a list or a grid of cards */
.dash { display: flex; flex-direction: column; gap: var(--seed-dimension-x8); }
.dash-section { min-width: 0; }
.dash-head { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; margin-bottom: 10px; }
.board .dash-head h3 { margin: 0; }
.dash-head .spacer { flex: 1; }
.dash-sub { color: var(--fg-muted); font-size: var(--seed-font-size-t3); }
.dash-queue { max-width: none; }
.dash-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: inherit; text-decoration: none; }
.dash-row:hover { background: var(--bg-hover); }
.dash-row:first-child { border-radius: var(--seed-radius-r3) var(--seed-radius-r3) 0 0; }
.dash-row:last-child { border-radius: 0 0 var(--seed-radius-r3) var(--seed-radius-r3); }
.dash-ico { flex: none; width: 24px; text-align: center; font-size: var(--seed-font-size-t5); color: var(--fg-muted); font-weight: var(--seed-font-weight-bold); }
.dash-row .seed-list-item__content { flex: 1 1 160px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dash-row .seed-list-item__title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-weight: var(--seed-font-weight-bold); }
.dash-row .seed-list-item__detail { color: var(--fg-muted); font-size: var(--seed-font-size-t3); overflow-wrap: anywhere; }
.dash-when { flex: none; font-size: var(--seed-font-size-t2); white-space: nowrap; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.dash-card { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--bg); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dash-card h4 { margin: 0; font-size: var(--seed-font-size-t4); font-weight: var(--seed-font-weight-bold); overflow-wrap: anywhere; }
.dash-card .empty { padding: 0; font-size: var(--seed-font-size-t3); }
.dash-card-head { display: flex; align-items: center; gap: 6px; min-height: 28px; }
.dash-card-head .spacer { flex: 1; }
.dash-ms { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 8px; font-size: var(--seed-font-size-t3); }
.dash-ms .ms-bar { grid-column: 1 / -1; }
.dash-ms .ms-count { grid-column: 1 / -1; }
.dash-ms-due { color: var(--fg-muted); white-space: nowrap; }
.dash-ms-due.late { color: var(--danger); }
.dash-ms-none { font-size: var(--seed-font-size-t3); }
.dash-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.dash-wanted { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: var(--seed-font-size-t3); }
.dash-wanted > .faint { flex-basis: 100%; }
.dash-count { display: flex; flex-direction: column; gap: 2px; padding: 6px 8px; border-radius: var(--seed-radius-r2); background: var(--chip-bg); color: inherit; text-decoration: none; min-width: 0; }
.dash-count:hover { box-shadow: inset 0 0 0 1px var(--field-focus); }
.dash-count b { font-size: var(--seed-font-size-t6); line-height: var(--seed-line-height-t6); font-variant-numeric: tabular-nums; }
.dash-count span { font-size: var(--seed-font-size-t2); color: var(--fg-muted); overflow-wrap: anywhere; }
.dash-count.zero b { color: var(--fg-faint); font-weight: var(--seed-font-weight-medium); }
.dash-late { font-size: var(--seed-font-size-t2); color: var(--warn-fg); font-weight: var(--seed-font-weight-medium); }
.dash-person-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dash-person-id { display: flex; flex-direction: column; min-width: 0; font-size: var(--seed-font-size-t3); line-height: var(--seed-line-height-t3); }
.dash-person-id b { font-size: var(--seed-font-size-t4); }
.dash-status { overflow-wrap: anywhere; }
.dash-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dash-held { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dash-task { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; overflow-wrap: anywhere; }
.dash-task:hover { text-decoration: underline; }
.dash-task .mono { font-size: var(--seed-font-size-t2); color: var(--fg-muted); }
.dash-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--seed-font-size-t2); color: var(--fg-muted); }
.dash-sessions { padding-top: 8px; border-top: 1px solid var(--divider); }
.dash-sess { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: var(--seed-font-size-t3); }
.dash-sess-doing { overflow-wrap: anywhere; }
.dash-sess.idle .dash-sess-doing { color: var(--fg-muted); }
.dash-done summary { cursor: pointer; font-size: var(--seed-font-size-t3); color: var(--fg-muted); }
.dash-done[open] summary { margin-bottom: 8px; }
.dash-done .dash-list { font-size: var(--seed-font-size-t3); }

.dash-caption { margin: 8px 0 0; font-size: var(--seed-font-size-t2); line-height: var(--seed-line-height-t2); color: var(--fg-muted); }
.dash-seg { display: inline-flex; gap: 4px; margin-left: auto; }

/* 타임라인: lanes scroll sideways inside their box; the name column stays put */
:root { --tl-who: 120px; --tl-claimed: var(--seed-color-palette-blue-700); --tl-review: var(--seed-color-palette-purple-600); --tl-stale: var(--seed-color-palette-carrot-600); }
:root[data-seed-user-color-scheme="dark"] { --tl-claimed: var(--seed-color-palette-blue-600); }
.tl-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 8px; font-size: var(--seed-font-size-t2); color: var(--fg-muted); }
.tl-key { display: inline-flex; align-items: center; gap: 5px; }
.tl-swatch { width: 18px; height: 10px; border-radius: 3px; border: 1px solid; }
.tl-swatch-now { width: 2px; border: 0; height: 12px; background: var(--seed-color-palette-red-600); border-radius: 0; }
.tl-swatch-due { width: 0; height: 12px; border: 0; border-left: 2px dashed var(--fg-muted); border-radius: 0; }
.tl-tick-key, .tl-tick { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid var(--fg-muted); }
.tl-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.tl { position: relative; min-width: 100%; }
.tl-row { display: flex; min-width: 0; }
.tl-row + .tl-row { border-top: 1px solid var(--divider); }
.tl-who { position: sticky; left: 0; z-index: 3; flex: none; width: var(--tl-who); display: flex; align-items: center; gap: 6px; padding: 4px 8px;
  background: var(--bg); box-shadow: 1px 0 0 var(--divider); font-size: var(--seed-font-size-t3); min-width: 0; }
.tl-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-track { position: relative; flex: 1; min-width: 0; }
.tl-axis .tl-track { height: 40px; }
.tl-builds .tl-track { height: 22px; }
.tl-builds .tl-who { font-size: var(--seed-font-size-t2); }
.tl-day { position: absolute; top: 4px; transform: translateX(3px); font-size: var(--seed-font-size-t1); color: var(--fg-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tl-day.mon { font-weight: var(--seed-font-weight-bold); color: var(--fg); }
.tl-grid { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--divider); }
.tl-now { position: absolute; top: 0; bottom: 0; z-index: 2; border-left: 2px solid var(--seed-color-palette-red-600); }
.tl-due { position: absolute; top: 0; bottom: 0; z-index: 2; border-left: 2px dashed var(--fg-muted); }
.tl-due-name { position: absolute; bottom: 3px; right: 4px; white-space: nowrap; font-size: var(--seed-font-size-t1); color: var(--fg); background: var(--bg); padding: 0 2px; }
.tl-tick { position: absolute; top: 7px; transform: translateX(-5px); z-index: 2; }
.tl-tick:hover { border-bottom-color: var(--fg); }
.tl-bar { position: absolute; z-index: 1; height: 20px; min-width: 6px; box-sizing: border-box; padding: 0 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  border: 1px solid; border-radius: 6px; font: inherit; font-size: var(--seed-font-size-t2); line-height: 18px; text-align: left; color: var(--fg); text-decoration: none; cursor: pointer; }
.tl-bar .mono { font-size: var(--seed-font-size-t1); color: var(--fg-muted); }
.tl-bar:hover, .tl-bar:focus-visible { z-index: 4; box-shadow: var(--shadow-low); }
.s-claimed { border-color: var(--tl-claimed); background-color: color-mix(in srgb, var(--tl-claimed) 18%, var(--bg)); }
.s-review { border-color: var(--tl-review); background-color: color-mix(in srgb, var(--tl-review) 20%, var(--bg)); }
.s-stale { border-color: var(--tl-stale); background-color: color-mix(in srgb, var(--tl-stale) 18%, var(--bg)); }
.s-done { border-color: var(--border); background-color: var(--chip-bg); }
.tl-bar.s-done { color: var(--fg-muted); }
.tl-bar.open, .tl-swatch.open { border-right-style: dashed; border-top-right-radius: 0; border-bottom-right-radius: 0;
  background-image: repeating-linear-gradient(135deg, transparent 0 5px, color-mix(in srgb, var(--fg) 12%, transparent) 5px 8px); }
.tl-bar.cut { border-left-style: dashed; border-top-left-radius: 0; border-bottom-left-radius: 0; }
@media (max-width: 700px) {
  :root { --tl-who: 84px; }
  .tl-who .who-avatar { display: none; }
}

/* 흐름 (팀): series colors checked for color-blind separation on each mode's surface (blue, carrot, green) */
:root { --fl-c1: var(--seed-color-palette-blue-700); --fl-c2: var(--seed-color-palette-carrot-700); --fl-c3: var(--seed-color-palette-green-600); }
:root[data-seed-user-color-scheme="dark"] { --fl-c1: var(--seed-color-palette-blue-600); --fl-c2: var(--seed-color-palette-carrot-600); --fl-c3: var(--seed-color-palette-green-600); }
.fl-grid { grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }
.fl-svg { display: block; width: 100%; height: auto; overflow: visible; }
.fl-bar.c1, .fl-sw.c1 { fill: var(--fl-c1); background: var(--fl-c1); }
.fl-bar.c2, .fl-sw.c2 { fill: var(--fl-c2); background: var(--fl-c2); }
.fl-bar.c3, .fl-sw.c3 { fill: var(--fl-c3); background: var(--fl-c3); }
.fl-hit { fill: transparent; }
.fl-col:hover .fl-hit { fill: var(--bg-hover); }
.fl-ideal { fill: none; stroke: var(--fg-muted); stroke-width: 1.5; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.fl-ahead { fill: none; stroke: var(--chart-line); stroke-width: 2; stroke-dasharray: 2 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.fl-due { stroke: var(--fg-muted); stroke-width: 1; vector-effect: non-scaling-stroke; }
.fl-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: var(--seed-font-size-t2); color: var(--fg-muted); }
.fl-key { display: inline-flex; align-items: center; gap: 5px; }
.fl-sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.fl-sw-ideal { width: 16px; height: 0; border-top: 2px dashed var(--fg-muted); border-radius: 0; }
.fl-sw-ahead { width: 16px; height: 0; border-top: 2px dotted var(--chart-line); border-radius: 0; }
.fl-lead { margin: 0; font-size: var(--seed-font-size-t3); }
.fl-lead.late { color: var(--danger); }
.fl-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.fl-stat { flex: 1 1 90px; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: var(--seed-radius-r2); background: var(--chip-bg); }
.fl-stat b { font-size: var(--seed-font-size-t7); line-height: var(--seed-line-height-t7); font-variant-numeric: tabular-nums; }
.fl-stat span { font-size: var(--seed-font-size-t2); color: var(--fg-muted); }
.fl-pick { width: auto; max-width: 60%; min-height: 28px; font-size: var(--seed-font-size-t2); }

/* 이번 주 칭호 */
.ti-card { max-width: 720px; }
.ti-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ti-row { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.ti-emoji { flex: none; font-size: var(--seed-font-size-t7); line-height: 1.2; }
.ti-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ti-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.ti-name { display: inline-flex; align-items: center; gap: 4px; }

/* 회의 페이지: 머리글, 탭, [#n] 칩, 원본 대본, 📝 회의록 의 회의 목록 */
.meeting-title { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.meeting-title-icon { font-size: 36px; line-height: 1; padding: 6px; }
.meeting-title h1 { margin: 0; font-size: var(--seed-font-size-t12); line-height: var(--seed-line-height-t12); overflow-wrap: anywhere; }
.meeting-head { display: grid; gap: 8px; margin: 4px 0 12px; }
.meeting-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; color: var(--fg-muted); font-size: var(--seed-font-size-t4); }
.meeting-sep { color: var(--fg-faint); }
.meeting-kind { margin-left: 6px; }
.meeting-people, .meeting-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: var(--seed-font-size-t3); }
.meeting-who { display: inline-flex; align-items: center; gap: 5px; }
.meeting-who.unknown { color: var(--fg-muted); }
.meeting-links .page-chip { font-weight: var(--seed-font-weight-medium); }
.meeting-tabs { display: flex; gap: 2px; box-shadow: inset 0 -1px 0 var(--divider); overflow-x: auto; }
.meeting-tab {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; color: var(--fg-muted); text-decoration: none;
  font-weight: var(--seed-font-weight-bold); font-size: var(--seed-font-size-t4); border-bottom: 2px solid transparent; border-radius: var(--seed-radius-r2) var(--seed-radius-r2) 0 0;
}
.meeting-tab:hover { background: var(--bg-hover); color: var(--fg); }
.meeting-tab[aria-selected=true] { color: var(--fg); border-bottom-color: var(--fg); }
.meeting-tab:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.tab-count { color: var(--fg-faint); font-size: var(--seed-font-size-t2); font-variant-numeric: tabular-nums; font-weight: var(--seed-font-weight-regular); }
.meeting-hint { margin: 0 0 12px; padding: 8px 12px; border-radius: var(--seed-radius-r2); background: var(--chip-bg); color: var(--fg-muted); font-size: var(--seed-font-size-t3); }

.cites {
  margin-left: 1px; color: var(--fg-faint); font-size: 0.72em; font-weight: var(--seed-font-weight-regular); font-variant-numeric: tabular-nums;
  line-height: 1; vertical-align: 0.4em; white-space: nowrap;
}
.cites .cite {
  padding: 2px 1px; border-radius: var(--seed-radius-r1); color: inherit; cursor: pointer;
  text-decoration: underline 1px var(--divider); text-underline-offset: 2px;
}
.cites .cite.memo { text-decoration-style: dotted; text-decoration-color: currentColor; }
.cites .cite:hover, .cites .cite:focus-visible { color: var(--accent); text-decoration-color: currentColor; }
.cites .cite:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.prop-cites .cite {
  display: inline-block; margin: 0 1px; padding: 0 5px; border-radius: var(--seed-radius-r1); background: var(--accent-soft); color: var(--accent);
  font-size: 0.82em; font-weight: var(--seed-font-weight-bold); font-variant-numeric: tabular-nums; line-height: 1.5; text-decoration: none; vertical-align: 0.1em; cursor: pointer;
}
.prop-cites .cite:hover, .prop-cites .cite:focus-visible { background: var(--accent-solid); color: var(--accent-fg); }
.cite-pop {
  position: fixed; z-index: 45; max-width: min(420px, calc(100vw - 16px)); padding: 8px 10px; display: grid; gap: 4px;
  background: var(--bg-float); color: var(--fg); border-radius: var(--seed-radius-r2); box-shadow: var(--shadow); font-size: var(--seed-font-size-t3); line-height: 1.45;
  pointer-events: none;
}
.cite-pop[hidden] { display: none; }
.cite-who { font-weight: var(--seed-font-weight-bold); }
.cite-gap { font-size: var(--seed-font-size-t2); }

.tx { display: grid; gap: 10px; }
.tx-pick { display: grid; gap: 6px; padding: 10px 12px; border-radius: var(--seed-radius-r2); background: var(--warn-bg); color: var(--warn-fg); }
.tx-pick-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; font-size: var(--seed-font-size-t3); }
.tx-pick-row > span { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.tx-pick-row select, .tx-track { width: auto; min-height: 30px; font-size: var(--seed-font-size-t3); }
.tx-bar { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 6px 0; background: var(--bg); }
.tx-search { flex: 1 1 200px; min-height: 32px; }
.tx-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.tx-chip {
  border: 0; padding: 3px 10px; border-radius: 999px; background: var(--chip-bg); color: var(--fg-muted); font-size: var(--seed-font-size-t3); font-weight: var(--seed-font-weight-medium);
}
.tx-chip[aria-pressed=true] { background: var(--seed-color-bg-neutral-inverted); color: var(--seed-color-fg-neutral-inverted); }
.tx-chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.tx-count { font-size: var(--seed-font-size-t2); font-variant-numeric: tabular-nums; }
.tx-lines { list-style: none; margin: 0; padding: 0; display: grid; }
.tx-line {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 6px 6px 6px 4px; border-radius: var(--seed-radius-r2);
  box-shadow: inset 2px 0 0 transparent; content-visibility: auto; contain-intrinsic-size: auto 52px;
}
.tx-line:hover { background: var(--bg-hover); }
.tx-line.cited { box-shadow: inset 2px 0 0 var(--accent); }
.tx-line.flash { animation: blk-flash 1.6s ease-out; }
.tx-line.editing { background: var(--chip-bg); }
.tx-av { padding-top: 2px; }
.tx-body { display: grid; gap: 2px; min-width: 0; }
.tx-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: var(--seed-font-size-t2); color: var(--fg-muted); }
.tx-name { font-weight: var(--seed-font-weight-bold); color: var(--fg); font-size: var(--seed-font-size-t3); }
.tx-at { border: 0; padding: 0 4px; border-radius: var(--seed-radius-r1); background: none; color: var(--fg-muted); font-size: var(--seed-font-size-t2); }
.tx-at:hover { background: var(--chip-bg); color: var(--fg); }
.tx-tag { padding: 0 5px; border-radius: var(--seed-radius-r1); background: var(--accent-soft); color: var(--accent); font-weight: var(--seed-font-weight-medium); }
.tx-tag.edited { background: var(--chip-bg); color: var(--fg-muted); }
.tx-text { white-space: pre-wrap; overflow-wrap: anywhere; cursor: copy; }
.tx-text mark { background: var(--mention-bg); color: var(--mention-fg); border-radius: 2px; }
.tx-edit { opacity: 0; }
.tx-line:hover .tx-edit, .tx-edit:focus-visible { opacity: 1; }
.tx-input { width: 100%; min-height: 56px; resize: vertical; font: inherit; }
.tx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--seed-font-size-t2); }
.tx-none, .tx-empty { padding: 12px 4px; }
@media (hover: none) { .tx-edit { opacity: 1; } }

.meeting-list { display: grid; gap: 6px; margin-top: 12px; }
.meeting-list-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; box-shadow: inset 0 1px 0 var(--divider); }
.meeting-list-head .doc-children-head { box-shadow: none; }
.meeting-list .meeting-hint { margin: 0; }
.meeting-rows { display: grid; gap: 2px; }
.meeting-row {
  display: grid; grid-template-columns: 7.5em minmax(0, 1fr) auto; grid-template-areas: "date title who" "date facts who"; gap: 0 10px; align-items: center;
  padding: 8px 10px; border-radius: var(--seed-radius-r2); color: var(--fg); text-decoration: none;
}
.meeting-row:hover { background: var(--bg-hover); }
.meeting-row-date { grid-area: date; color: var(--fg-muted); font-size: var(--seed-font-size-t3); font-variant-numeric: tabular-nums; }
.meeting-row-title { grid-area: title; font-weight: var(--seed-font-weight-bold); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meeting-row-facts { grid-area: facts; font-size: var(--seed-font-size-t2); }
.meeting-row-who { grid-area: who; display: flex; }
.meeting-row-who .seed-avatar__root { margin-left: -4px; box-shadow: 0 0 0 2px var(--bg); border-radius: 50%; }
@media (max-width: 520px) {
  .meeting-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "date who" "title who" "facts who"; }
  .meeting-title-icon { font-size: 28px; }
  .meeting-tab { padding: 8px 10px; }
}

/* From 미정 to 할일: the review's 메모, cites and owner suggestion; ⚠ 미정 pickers, ❓ question actions and minutes rows. */
.prop-memo { margin-left: 26px; display: grid; gap: 2px; min-width: 0; }
textarea.prop-memo-text { min-height: 0; padding: 6px 8px; font-size: var(--seed-font-size-t3); line-height: 1.5; resize: vertical; }
.prop-memo.text { font-size: var(--seed-font-size-t3); overflow-wrap: anywhere; }
.prop-memo-by { font-size: var(--seed-font-size-t2); }
.prop-cites { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding-left: 26px; font-size: var(--seed-font-size-t3); }
.prop-cites > .faint { margin-right: 2px; font-size: var(--seed-font-size-t2); }
.suggest-chip {
  display: inline-flex; align-items: center; min-height: 28px; padding: 2px 10px; border: 1px dashed var(--accent); border-radius: 999px;
  background: transparent; color: var(--accent); font-size: var(--seed-font-size-t2); font-weight: var(--seed-font-weight-medium);
}
.suggest-chip:hover, .suggest-chip:focus-visible { background: var(--accent-soft); }
.undecided {
  display: inline; margin: 0 1px; padding: 0 6px; border: 1px dashed var(--warn-fg); border-radius: var(--seed-radius-r1);
  background: var(--warn-bg); color: var(--warn-fg); font: inherit; font-size: 0.92em; font-weight: var(--seed-font-weight-bold); line-height: 1.45; cursor: pointer;
}
.undecided:hover, .undecided:focus-visible { border-style: solid; }
.q-acts { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 6px; vertical-align: 0.05em; }
.q-act, .row-send {
  border: 0; border-radius: var(--seed-radius-r1_5); padding: 1px 8px; background: var(--chip-bg); color: var(--fg-muted);
  font-size: var(--seed-font-size-t2); font-weight: var(--seed-font-weight-medium); line-height: 1.6; white-space: nowrap; cursor: pointer;
}
.q-act:hover, .q-act:focus-visible, .row-send:hover, .row-send:focus-visible { background: var(--accent-soft); color: var(--accent); }
.q-made, .row-made.pending {
  display: inline-block; padding: 0 6px; border-radius: var(--seed-radius-r1); background: var(--accent-soft); color: var(--accent);
  font-size: 0.9em; font-weight: var(--seed-font-weight-bold); text-decoration: none; white-space: nowrap;
}
/* ❓ 열린 질문: an open question as a card, a settled one as a compact row; the line itself stays plain text */
.ce .mark:has(> .q-card), .ce .mark:has(> .q-solved) { display: block; }
.q-card {
  display: flex; gap: 12px; align-items: flex-start; margin: 2px 0 6px; padding: 12px 14px;
  border-radius: var(--seed-radius-r3); box-shadow: inset 0 0 0 1px var(--border); line-height: 1.45; cursor: text;
}
.q-main, .q-solved { flex: 1; min-width: 0; display: grid; gap: 4px; justify-items: start; }
.q-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; width: 100%; }
.q-id {
  flex: none; padding: 0 6px; border-radius: var(--seed-radius-r1); background: var(--chip-bg); color: var(--fg-muted);
  font-size: var(--seed-font-size-t2); font-weight: var(--seed-font-weight-bold); line-height: 1.6; white-space: nowrap;
}
.q-text { flex: 1 1 220px; min-width: 0; font-size: var(--seed-font-size-t5); font-weight: var(--seed-font-weight-bold); overflow-wrap: anywhere; }
.q-side { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-left: auto; }
.q-rounds {
  padding: 0 6px; border-radius: var(--seed-radius-r1); background: var(--chip-bg); color: var(--fg-muted);
  font-size: var(--seed-font-size-t2); line-height: 1.6; white-space: nowrap;
}
.q-rounds.again { background: var(--warn-bg); color: var(--warn-fg); font-weight: var(--seed-font-weight-bold); }
.q-fields { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; color: var(--fg-muted); font-size: var(--seed-font-size-t3); overflow-wrap: anywhere; }
.q-field:not(:last-child)::after { content: " ·"; color: var(--fg-faint); }
.q-missing { margin: 0; }
.q-first { color: var(--fg-muted); font-size: var(--seed-font-size-t2); text-decoration: none; }
.q-first:hover, .q-first:focus-visible { color: var(--accent); text-decoration: underline; }
.q-card .q-acts { flex: none; display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin: 0; }
.q-card .q-act { padding: 3px 10px; font-size: var(--seed-font-size-t3); }
.q-solved { padding: 4px 2px; gap: 2px; }
.q-solved .q-text { font-size: inherit; font-weight: var(--seed-font-weight-regular); }
@media (max-width: 560px) {
  .q-card { flex-direction: column; gap: 8px; padding: 10px 12px; }
  .q-card .q-acts { flex-direction: row; flex-wrap: wrap; }
}
.fill-slots { display: flex; flex-wrap: wrap; gap: 4px; }
.fill-slot {
  min-height: 32px; padding: 3px 12px; border: 0; border-radius: 999px; background: var(--chip-bg); color: var(--fg); font-size: var(--seed-font-size-t3);
}
.fill-slot:hover, .fill-slot:focus-visible { background: var(--accent-soft); color: var(--accent); }
.tbl-grid td.tbl-act { min-width: 0; width: 1%; padding: 5px 6px; border-color: transparent; border-left-color: var(--border); background: none; vertical-align: middle; white-space: nowrap; }
.tbl-grid.has-head tr:first-child td.tbl-act { background: none; }
.row-made { display: inline-flex; align-items: center; gap: 4px; font-size: var(--seed-font-size-t2); color: var(--fg-muted); }
.fill-pop {
  position: fixed; z-index: 46; width: max-content; max-width: min(340px, calc(100vw - 16px)); padding: 10px; display: grid; gap: 8px;
  background: var(--bg-float); color: var(--fg); border-radius: var(--seed-radius-r2_5); box-shadow: var(--shadow); font-size: var(--seed-font-size-t3);
}
.fill-head { font-weight: var(--seed-font-weight-bold); }
.fill-people { display: flex; flex-wrap: wrap; gap: 4px; max-height: 220px; overflow-y: auto; }
.fill-person {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 3px 10px 3px 4px; border: 0; border-radius: 999px;
  background: var(--chip-bg); color: var(--fg); font-size: var(--seed-font-size-t3);
}
.fill-person:hover, .fill-person:focus-visible { background: var(--accent-soft); color: var(--accent); }
.fill-form { display: grid; gap: 8px; }
.fill-row { display: flex; gap: 6px; align-items: center; }
.fill-row input { flex: 1; min-width: 0; min-height: 32px; }
.fill-note { margin: 0; font-size: var(--seed-font-size-t2); }
@media (max-width: 700px) {
  .prop-memo { margin-left: 0; }
  .prop-cites { padding-left: 0; }
}

/* a task's kind: a badge with its icon on cards, the panel and the review (개발 blue, 결정 orange, 기획·문서 green), what a decision or a
   plan card adds under its title, and the decision's panel: 정할 사람 · 기한 · 정하는 방법, the 선택지 with their 👍, the 결정 내용 box */
.kind-badge {
  --kind-bg: var(--seed-color-bg-informative-weak); --kind-fg: var(--seed-color-fg-informative-contrast);
  display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 1px 7px; border-radius: var(--seed-radius-r1_5);
  background: var(--kind-bg); color: var(--kind-fg); font-size: var(--seed-font-size-t2); line-height: var(--seed-line-height-t2); font-weight: var(--seed-font-weight-bold); white-space: nowrap;
}
.kind-badge[data-kind="decision"] { --kind-bg: var(--seed-color-bg-warning-weak); --kind-fg: var(--seed-color-fg-warning-contrast); }
.kind-badge[data-kind="plan"] { --kind-bg: var(--seed-color-bg-positive-weak); --kind-fg: var(--seed-color-fg-positive-contrast); }
.card-kind { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: var(--seed-font-size-t2); line-height: var(--seed-line-height-t2); color: var(--fg-muted); overflow-wrap: anywhere; }
.kind-strip { padding: 4px 8px; border-radius: var(--seed-radius-r1_5); font-size: var(--seed-font-size-t2); line-height: var(--seed-line-height-t2); overflow-wrap: anywhere; }
.kind-strip.undecided { background: var(--seed-color-bg-warning-weak); color: var(--seed-color-fg-warning-contrast); }
.kind-strip.decided { background: var(--seed-color-bg-positive-weak); color: var(--seed-color-fg-positive-contrast); }
.card-due { font-size: var(--seed-font-size-t2); color: var(--fg-muted); white-space: nowrap; }
.card-due.late { color: var(--seed-color-fg-warning-contrast); font-weight: var(--seed-font-weight-bold); }
.kind-from { font-size: var(--seed-font-size-t2); color: var(--fg-muted); }
.kind-doc, .doc-pick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.doc-pick select { flex: 0 1 220px; width: auto; min-width: 0; max-width: 100%; }
.decision { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.decision h4 { margin: 4px 0 0; }
.decision-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.decision-fields .field { min-width: 0; }
.decision-fields select, .decision-fields input { width: 100%; min-width: 0; }
.options { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.option { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--seed-radius-r2); box-shadow: inset 0 0 0 1px var(--border); }
.option.top { box-shadow: inset 0 0 0 2px var(--fg); }
.option-text { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }
.option-acts { display: flex; align-items: center; gap: 6px; flex: none; }
.option-add { display: flex; gap: 8px; align-items: center; }
.option-add input { flex: 1 1 auto; min-width: 0; }
.decision-box {
  display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--seed-radius-r3);
  background: color-mix(in srgb, var(--seed-color-bg-warning-weak) 70%, var(--bg)); box-shadow: inset 0 0 0 1px var(--seed-color-stroke-warning-weak);
}
.decision-box.done { background: color-mix(in srgb, var(--seed-color-bg-positive-weak) 70%, var(--bg)); box-shadow: inset 0 0 0 1px var(--seed-color-stroke-positive-weak); }
.decision-box h4, .decision-box p { margin: 0; }
.decision-label { font-weight: var(--seed-font-weight-bold); }
.decision-must { font-weight: var(--seed-font-weight-regular); font-size: var(--seed-font-size-t2); color: var(--seed-color-fg-warning-contrast); }
.decision-text { width: 100%; min-width: 0; }
.decision-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.decision-foot .faint { flex: 1 1 200px; min-width: 0; font-size: var(--seed-font-size-t2); }
@media (max-width: 700px) {
  .decision-fields { grid-template-columns: minmax(0, 1fr); }
  .board-filters .filter-search { flex: 1 1 0; }
}

/* 튜닝. Yellow is 기본과 다름 and nothing else; ▲ (carrot) and ▼ (purple) are above and below the default; a pick is the
   neutral selection; a status is the same badge everywhere. Head rows are a touch off the body in both themes. */
:root { --tune-head: color-mix(in srgb, var(--seed-color-bg-neutral-weak) 55%, var(--bg)); --tune-pick-bar: var(--seed-color-stroke-neutral-contrast); }
.nav-count { color: var(--side-muted); font-size: var(--seed-font-size-t2); font-weight: var(--seed-font-weight-regular); }
.board.tune { display: grid; gap: 14px; align-content: start; }
.tune .sep { margin: 0 6px; color: var(--fg-faint); }
.tune-back { justify-self: start; font-size: var(--seed-font-size-t3); color: var(--fg-muted); text-decoration: none; }
.tune-back:hover { color: var(--fg); text-decoration: underline; }
.tune-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; row-gap: 4px; font-size: var(--seed-font-size-t3); line-height: var(--seed-line-height-t3); color: var(--fg-muted); }
.tune-meta a:not(.page-chip) { color: var(--fg); font-weight: var(--seed-font-weight-bold); text-decoration: none; }
.tune-meta a:not(.page-chip):hover { text-decoration: underline; }
.tune-meta .warn, .tune-warn { color: var(--seed-color-fg-warning-contrast); font-weight: var(--seed-font-weight-bold); }
.tune-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.tune-tools .seg-btn .n { margin-left: 2px; color: var(--fg-faint); font-variant-numeric: tabular-nums; }
.tune-tools .seg-btn[aria-pressed=true] .n { color: var(--fg-muted); }
.tune-search {
  display: inline-flex; align-items: center; gap: 6px; flex: 1 1 220px; max-width: 360px; padding: 0 10px; min-height: 34px;
  border-radius: var(--seed-radius-r2); box-shadow: inset 0 0 0 1px var(--field); color: var(--fg-muted);
}
.tune-search:focus-within { box-shadow: inset 0 0 0 2px var(--field-focus); }
.tune-search input { border: 0; background: none; outline: none; flex: 1; min-width: 0; padding: 6px 0; color: var(--fg); box-shadow: none; min-height: 0; }
.tune-search input:focus { box-shadow: none; }
select.tune-add-col { width: auto; min-height: 34px; padding: 4px 8px; font-size: var(--seed-font-size-t3); }

/* values: chips, ▲ ▼ */
.tune-chips { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.tune-chip {
  display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 7px; border-radius: var(--seed-radius-r1_5); background: var(--chip-bg);
  color: var(--fg); font-size: var(--seed-font-size-t2); white-space: nowrap; text-decoration: none; font-variant-numeric: tabular-nums;
}
.tune-chip.more { color: var(--fg-muted); font-weight: var(--seed-font-weight-bold); cursor: default; }
a.tune-chip:hover { background: var(--seed-color-bg-neutral-weak-pressed); }
.tune-dir { font-weight: var(--seed-font-weight-bold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tune-dir.up { color: var(--seed-color-palette-carrot-800); }
.tune-dir.down { color: var(--seed-color-palette-purple-800); }
.tune-dir.ne { color: var(--fg-muted); }

/* the preset list */
.tune-table { border-radius: var(--seed-radius-r3); box-shadow: inset 0 0 0 1px var(--border); background: var(--bg); overflow: hidden; }
.tune-head, .tune-row {
  display: grid; grid-template-columns: 44px minmax(190px, 1.4fr) minmax(220px, 1.75fr) 48px 60px; gap: 10px; align-items: center; padding: 0 16px 0 6px;
}
.tune-head { min-height: 36px; font-size: var(--seed-font-size-t2); font-weight: var(--seed-font-weight-bold); color: var(--fg-muted); background: var(--tune-head); }
.tune-head span:first-child { text-align: center; }
.tune-row { min-height: 58px; padding-block: 9px; box-shadow: inset 0 1px 0 var(--divider); font-size: var(--seed-font-size-t3); }
.tune-row:hover { background: color-mix(in srgb, var(--tune-head) 70%, var(--bg)); }
.tune-row.on { background: var(--bg-selected); box-shadow: inset 0 1px 0 var(--divider), inset 2px 0 0 var(--tune-pick-bar); }
.tune-check { display: grid; place-items: center; align-self: stretch; cursor: pointer; }
.tune-check input { width: 16px; height: 16px; margin: 0; cursor: pointer; }
.tune-name { display: grid; gap: 1px; min-width: 0; }
.tune-name a { justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: var(--seed-font-weight-bold); font-size: var(--seed-font-size-t5); line-height: var(--seed-line-height-t5); color: var(--fg); text-decoration: none; }
.tune-name a:hover { text-decoration: underline; }
.tune-sub { display: flex; gap: 4px; min-width: 0; font-size: var(--seed-font-size-t4); line-height: var(--seed-line-height-t4); color: var(--fg-muted); }
.tune-desc { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tune-by { flex: none; color: var(--fg-muted); font-size: var(--seed-font-size-t3); white-space: nowrap; }
.tune-social { display: flex; gap: 10px; color: var(--fg-muted); font-size: var(--seed-font-size-t2); font-variant-numeric: tabular-nums; }
.tune-social span { display: inline-flex; align-items: center; gap: 3px; }
.tune-rows > .empty { padding: 16px; box-shadow: inset 0 1px 0 var(--divider); }

.tune-band-slot:empty { display: none; }
.tune-band {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px 8px 14px; border-radius: var(--seed-radius-r3);
  background: var(--bg-selected); box-shadow: inset 2px 0 0 var(--tune-pick-bar); font-size: var(--seed-font-size-t3);
}
.tune-band .spacer { flex: 1; }
.tune-band-names { display: inline-flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.tune-pick {
  display: inline-flex; align-items: center; gap: 1px; height: 26px; padding: 0 2px 0 10px; border-radius: var(--seed-radius-full);
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--border); font-weight: var(--seed-font-weight-bold); white-space: nowrap;
}
.tune-pick.hidden { color: var(--fg-muted); font-weight: var(--seed-font-weight-regular); box-shadow: none; outline: 1px dashed var(--seed-color-stroke-neutral-solid); outline-offset: -1px; }
.tune-unpick { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: var(--seed-radius-full); background: none; color: var(--fg-muted); }
.tune-unpick:hover { background: var(--bg-hover); color: var(--fg); }
.tune-band-note { color: var(--seed-color-fg-critical); font-weight: var(--seed-font-weight-bold); }

@media (max-width: 760px) {
  .tune-head { display: none; }
  .tune-table { background: none; box-shadow: none; overflow: visible; }
  .tune-rows { display: grid; gap: 8px; }
  .tune-row {
    grid-template-columns: 24px minmax(0, 1fr) auto; grid-template-areas: "c n s" "c v v" "c o o"; gap: 6px 10px; padding: 12px 12px 12px 8px;
    border-radius: var(--seed-radius-r2_5); box-shadow: inset 0 0 0 1px var(--border); background: var(--bg);
  }
  .tune-row.on { box-shadow: inset 0 0 0 1px var(--border), inset 3px 0 0 var(--tune-pick-bar); }
  .tune-check { grid-area: c; align-self: start; padding-top: 3px; }
  .tune-name { grid-area: n; }
  .tune-status { grid-area: s; align-self: start; }
  .tune-chips { grid-area: v; }
  .tune-social { grid-area: o; }
  .tune-social:empty { display: none; }
  .tune-rows > .empty { border-radius: var(--seed-radius-r2_5); box-shadow: inset 0 0 0 1px var(--border); }
  .tune-band .spacer { display: none; }
}

/* compare: a table in its own scroll box, so the head row and the key column stay while it scrolls both ways */
.tune-legend { margin: 0; font-size: var(--seed-font-size-t3); line-height: var(--seed-line-height-t3); color: var(--fg-muted); }
.tune-legend .tune-dir { margin-right: 2px; }
.tune-legend b { color: var(--fg); }
.tune-compare-wrap { overflow: auto; max-height: calc(100dvh - 210px); border: 1px solid var(--border); border-radius: var(--seed-radius-r3); background: var(--bg); overscroll-behavior: contain; }
.tune-compare {
  display: grid; grid-template-columns: minmax(170px, 1.3fr) minmax(104px, 0.8fr) repeat(var(--cols), minmax(132px, 1fr));
  min-width: min-content; font-size: var(--seed-font-size-t3);
}
.tune-crow { display: contents; }
.tune-compare > div, .tune-crow > div { min-width: 0; padding: 9px 12px; background: var(--bg); box-shadow: inset 0 -1px 0 var(--divider); }
.tune-compare > .tune-ch {
  position: sticky; top: 0; z-index: 2; display: grid; gap: 2px; align-content: end; padding: 10px 12px;
  box-shadow: inset 0 -1px 0 var(--seed-color-stroke-neutral-solid);
}
.tune-compare > .tune-ch-key { left: 0; z-index: 3; color: var(--fg-muted); font-size: var(--seed-font-size-t2); font-weight: var(--seed-font-weight-bold); }
.tune-ch-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.tune-ch-name a, .tune-ch-name b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: var(--seed-font-weight-bold); font-size: var(--seed-font-size-t4); color: var(--fg); text-decoration: none; }
.tune-ch-name a:hover { text-decoration: underline; }
.tune-col-more { flex: none; margin: -4px -6px -4px auto; min-width: 28px; height: 28px; }
.tune-ch-desc { display: flex; align-items: center; gap: 6px; min-width: 0; min-height: 22px; color: var(--fg-muted); }
.tune-ch-desc .seed-badge__root { flex: none; }
.tune-ch-desc span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tune-compare > .tune-cg { grid-column: 1 / -1; padding: 6px 12px; background: var(--tune-head); color: var(--fg-muted); font-size: var(--seed-font-size-t2); font-weight: var(--seed-font-weight-bold); }
.tune-cg span { position: sticky; left: 12px; }
.tune-crow > .tune-ck { position: sticky; left: 0; z-index: 1; box-shadow: inset 0 -1px 0 var(--divider), inset -1px 0 0 var(--divider); }
.tune-ck-name { color: var(--fg-muted); }
.tune-ck-name code { font-size: var(--seed-font-size-t1); color: var(--fg-muted); }
.tune-ck-range { font-size: var(--seed-font-size-t2); color: var(--fg-faint); font-variant-numeric: tabular-nums; }
.tune-crow.split > .tune-ck { box-shadow: inset 3px 0 0 var(--tune-pick-bar), inset 0 -1px 0 var(--divider), inset -1px 0 0 var(--divider); }
.tune-crow.split .tune-ck-name { color: var(--fg); font-weight: var(--seed-font-weight-bold); }
.tune-crow.split .tune-ck-range { color: var(--fg-muted); }
.tune-cell { display: grid; gap: 6px; align-content: center; }
.tune-v { display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.tune-v .n { font-size: var(--seed-font-size-t4); font-weight: var(--seed-font-weight-bold); color: var(--fg); }
.tune-v .tune-dir { font-size: var(--seed-font-size-t2); }
.tune-c-def .tune-v .n, .tune-crow.agree .tune-v .n { font-weight: var(--seed-font-weight-regular); color: var(--fg-muted); }
.tune-bar { position: relative; display: block; height: 4px; border-radius: 2px; background: var(--seed-color-bg-neutral-weak); }
.tune-bar-fill { position: absolute; inset: 0 auto 0 0; border-radius: 2px; background: var(--seed-color-palette-gray-500); }
.tune-cell.up .tune-bar-fill { background: var(--seed-color-palette-carrot-600); }
.tune-cell.down .tune-bar-fill { background: var(--seed-color-palette-purple-600); }
.tune-crow.agree .tune-bar-fill { opacity: .55; }
.tune-bar-def { position: absolute; top: -3px; width: 2px; height: 10px; margin-left: -1px; border-radius: 1px; background: var(--fg); }
.tune-foot { margin: 0; font-size: var(--seed-font-size-t3); color: var(--fg-muted); }
@media (max-width: 600px) {
  .tune-compare { grid-template-columns: 110px repeat(var(--cols), minmax(104px, 1fr)); }
  .tune-compare .tune-c-def, .tune-ck-name code { display: none; }
  .tune-compare > div, .tune-crow > div { padding: 8px 10px; }
  .tune-compare-wrap { max-height: calc(100dvh - 190px); }
}

/* editing one preset: the form and a 300px side column, or 값 · 의견 · 기록 tabs when the form would be under 560px */
.tune-edit-board { container: tune-edit / inline-size; scroll-padding: 72px 0 88px; }
.tune-edit { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.tune-tabs { display: none; }
@container tune-edit (max-width: 883.98px) {
  .tune-edit { grid-template-columns: minmax(0, 1fr); }
  .tune-tabs {
    display: flex; gap: 6px; position: sticky; top: calc(-1 * var(--seed-dimension-x5)); z-index: 5;
    margin: -4px calc(-1 * var(--seed-dimension-x5)) 0; padding: 10px var(--seed-dimension-x5); background: var(--bg); box-shadow: inset 0 -1px 0 var(--divider);
  }
  .tune-edit[data-tab=values] .tune-side, .tune-edit:not([data-tab=values]) .tune-form { display: none; }
  .tune-edit[data-tab=talk] #tune-pane-log, .tune-edit[data-tab=log] #tune-pane-talk { display: none; }
}
.tune-tab {
  flex: none; height: 34px; padding: 0 14px; border: 0; border-radius: var(--seed-radius-full); background: var(--chip-bg); color: var(--fg);
  font-size: var(--seed-font-size-t4); font-weight: var(--seed-font-weight-bold); white-space: nowrap;
}
.tune-tab .count { margin-left: 2px; color: var(--fg-muted); font-weight: var(--seed-font-weight-medium); font-variant-numeric: tabular-nums; }
.tune-tab .count:empty { display: none; }
.tune-tab[aria-selected=true] { background: var(--seed-color-bg-neutral-inverted); color: var(--seed-color-fg-neutral-inverted); }
.tune-tab[aria-selected=true] .count { color: inherit; opacity: .8; }
.tune-head-acts { display: flex; gap: 6px; flex: none; }
@media (max-width: 600px) {
  .tune-head-acts .tune-hl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.tune-form { display: grid; gap: 14px; min-width: 0; }
.tune-fields { display: grid; gap: 14px; padding: 16px; border-radius: var(--seed-radius-r3); box-shadow: inset 0 0 0 1px var(--border); background: var(--bg); }
.tune-status-field { display: grid; gap: 6px; font-size: var(--seed-font-size-t3); line-height: var(--seed-line-height-t3); font-weight: var(--seed-font-weight-bold); }
.tune-status-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.tune-status-opt {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 16px 0 12px; border: 0; border-radius: var(--seed-radius-r2);
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--field); color: var(--fg); font-size: var(--seed-font-size-t4); font-weight: var(--seed-font-weight-regular);
}
.tune-status-opt:hover { background: var(--bg-hover); }
.tune-status-opt[aria-checked=true] { background: var(--bg-selected); box-shadow: inset 0 0 0 2px var(--seed-color-stroke-neutral-contrast); font-weight: var(--seed-font-weight-bold); }
.tune-status-opt .dot { width: 8px; height: 8px; border-radius: var(--seed-radius-full); }
.tune-status-opt.team .dot { background: var(--seed-color-palette-green-600); }
.tune-status-opt.candidate .dot { background: var(--seed-color-palette-blue-600); }
.tune-status-opt.archived .dot { box-shadow: inset 0 0 0 1.5px var(--seed-color-palette-gray-600); }
.tune-status-help { font-weight: var(--seed-font-weight-regular); color: var(--fg-muted); }

.tune-paste-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: -4px 0; font-size: var(--seed-font-size-t3); }
.tune-paste { display: grid; gap: 8px; padding: 12px 14px; border-radius: var(--seed-radius-r3); background: var(--seed-color-bg-neutral-weak); }
.tune-paste-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: var(--seed-font-size-t3); font-weight: var(--seed-font-weight-regular); }
.tune-paste-head > b { font-size: var(--seed-font-size-t4); color: var(--fg); }
.tune-paste-head code { overflow-wrap: anywhere; font-size: var(--seed-font-size-t2); }
.tune-paste textarea { min-height: 0; resize: vertical; font-size: var(--seed-font-size-t3); line-height: 1.5; overflow-wrap: anywhere; }
.tune-paste-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tune-paste-foot .spacer { flex: 1; }
.tune-paste-note { min-width: 0; font-size: var(--seed-font-size-t3); font-weight: var(--seed-font-weight-regular); color: var(--fg-muted); overflow-wrap: anywhere; }
.tune-copy-dlg textarea[readonly] { background: var(--bg); color: var(--fg); resize: none; overflow-wrap: anywhere; }
.tune-groups { display: grid; gap: 10px; }
.tune-group { display: grid; border-radius: var(--seed-radius-r3); box-shadow: inset 0 0 0 1px var(--border); background: var(--bg); overflow: hidden; }
.tune-group-head { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 4px 8px 4px 16px; background: var(--tune-head); box-shadow: inset 0 -1px 0 var(--divider); }
.tune-group-head b { font-size: var(--seed-font-size-t4); }
.tune-group-sum { flex: 1; font-size: var(--seed-font-size-t3); color: var(--fg-muted); }
.tune-group-fold {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 16px; border: 0; text-align: left;
  font-size: var(--seed-font-size-t4); color: var(--fg);
}
.tune-group-fold span:not(.chev) { flex: 1; font-size: var(--seed-font-size-t3); color: var(--fg-muted); }
.tune-group-fold .chev { color: var(--fg-muted); }
.tune-group-fold:hover { background: var(--bg-hover); }
.tune-group-fold.differs { box-shadow: inset 0 0 0 1px var(--border), inset 3px 0 0 var(--seed-color-stroke-warning-solid); }
.tune-group-fold.invalid { box-shadow: inset 0 0 0 1px var(--border), inset 3px 0 0 var(--seed-color-stroke-critical-solid); }
.tune-key {
  display: grid; grid-template-columns: minmax(130px, 0.9fr) minmax(0, 1.6fr) 112px; gap: 14px; align-items: center;
  min-height: 60px; padding: 8px 12px 8px 16px; box-shadow: inset 0 -1px 0 var(--divider);
}
.tune-group > :last-child { box-shadow: none; }
.tune-key.differs { background: color-mix(in srgb, var(--seed-color-bg-warning-weak) 75%, var(--bg)); box-shadow: inset 3px 0 0 var(--seed-color-stroke-warning-solid), inset 0 -1px 0 var(--divider); }
.tune-key.invalid { background: var(--seed-color-bg-critical-weak); box-shadow: inset 3px 0 0 var(--seed-color-stroke-critical-solid), inset 0 -1px 0 var(--divider); }
.tune-key-name { min-width: 0; }
.tune-key-label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--seed-font-size-t4); font-weight: var(--seed-font-weight-medium); }
.tune-key-name code { font-size: var(--seed-font-size-t1); color: var(--fg-muted); }
.tune-key-help { font-size: var(--seed-font-size-t2); color: var(--fg-muted); }
.tune-edited {
  display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: var(--seed-radius-full);
  background: var(--seed-color-bg-neutral-inverted); color: var(--seed-color-fg-neutral-inverted); font-size: var(--seed-font-size-t1); font-weight: var(--seed-font-weight-bold);
}
.tune-edited.conflict { background: var(--seed-color-bg-critical-solid); color: var(--seed-color-palette-static-white); }
.tune-key-ctl { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tune-slider { display: grid; gap: 1px; flex: 1; min-width: 0; }
.tune-slider input { display: block; width: 100%; margin: 0; accent-color: var(--accent); }
.tune-track { position: relative; display: block; }
.tune-slider-def {
  position: absolute; top: 50%; left: calc(8px + (100% - 16px) * var(--at)); width: 2px; height: 12px; margin: -6px 0 0 -1px;
  border-radius: 1px; background: var(--fg); opacity: .75; pointer-events: none;
}
.tune-ends { display: flex; justify-content: space-between; font-size: var(--seed-font-size-t2); color: var(--fg-muted); font-variant-numeric: tabular-nums; }
input.tune-num {
  width: 84px; min-height: 34px; flex: none; padding: 5px 8px; border: 0; border-radius: var(--seed-radius-r2); box-shadow: inset 0 0 0 1px var(--field);
  background: var(--bg); text-align: right; font-size: var(--seed-font-size-t4); font-variant-numeric: tabular-nums;
}
input.tune-num[aria-invalid=true] { box-shadow: inset 0 0 0 2px var(--danger); }
select.tune-choice { width: auto; min-width: 120px; min-height: 34px; padding: 4px 8px; }
.tune-key-def { display: flex; align-items: center; justify-content: flex-end; gap: 2px; font-size: var(--seed-font-size-t3); color: var(--fg-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tune-reset { flex: none; width: 32px; min-width: 32px; height: 32px; }
span.tune-reset { display: inline-block; }
.tune-invalid {
  padding: 0 16px 10px 16px; background: var(--seed-color-bg-critical-weak); color: var(--seed-color-fg-critical-contrast);
  font-size: var(--seed-font-size-t3); box-shadow: inset 3px 0 0 var(--seed-color-stroke-critical-solid), inset 0 -1px 0 var(--divider); margin-top: -1px;
}
.tune-savebar {
  position: sticky; bottom: 12px; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px 10px 16px;
  border-radius: var(--seed-radius-r3); background: var(--bg-float); box-shadow: inset 0 0 0 1px var(--border), var(--shadow-low);
}
.tune-savebar .spacer { flex: 1; }
.tune-save-state { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--seed-font-size-t3); color: var(--fg-muted); }
.tune-save-state.dirty { color: var(--fg); font-weight: var(--seed-font-weight-bold); }
.tune-save-state.bad { color: var(--seed-color-fg-critical); font-weight: var(--seed-font-weight-bold); }
.tune-save-state .link-btn { color: inherit; text-decoration: underline; }
.tune-dot { width: 8px; height: 8px; border-radius: var(--seed-radius-full); background: var(--seed-color-bg-neutral-inverted); }
.tune-conflict { display: grid; gap: 10px; padding: 12px 14px; border-radius: var(--seed-radius-r3); background: var(--seed-color-bg-critical-weak); color: var(--seed-color-fg-critical-contrast); font-size: var(--seed-font-size-t3); }
.tune-conflict .row-actions { margin: 0; }
.tune-conflict-row { display: grid; gap: 6px; padding: 10px 12px; border-radius: var(--seed-radius-r2); background: var(--bg); color: var(--fg); }
.tune-conflict-key code { font-size: var(--seed-font-size-t1); color: var(--fg-muted); }
.tune-pick-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tune-pick-opt {
  position: relative; display: grid; gap: 1px; padding: 7px 10px 7px 32px; border-radius: var(--seed-radius-r2); box-shadow: inset 0 0 0 1px var(--field);
  cursor: pointer; min-width: 0;
}
.tune-pick-opt:hover { background: var(--bg-hover); }
.tune-pick-opt:has(input:checked) { background: var(--bg-selected); box-shadow: inset 0 0 0 2px var(--seed-color-stroke-neutral-contrast); }
.tune-pick-opt:has(input:focus-visible) { outline: 2px solid var(--field-focus); outline-offset: 1px; }
.tune-pick-opt input { position: absolute; left: 10px; top: 50%; margin: -7px 0 0; width: 14px; height: 14px; }
.tune-pick-what { font-size: var(--seed-font-size-t2); color: var(--fg-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tune-pick-v { font-size: var(--seed-font-size-t4); font-variant-numeric: tabular-nums; }
.tune-will { font-size: var(--seed-font-size-t3); color: var(--fg-muted); }
.tune-will b { color: var(--fg); font-variant-numeric: tabular-nums; }
.tune-side, .tune-side-part { display: grid; gap: 12px; min-width: 0; }
.tune-side-sum { margin: 0; padding: 0 4px; font-size: var(--seed-font-size-t3); color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.tune-box-slim { padding: 10px; }
.tune-box {
  display: grid; gap: 8px; justify-items: start; padding: 14px 16px; border-radius: var(--seed-radius-r3); box-shadow: inset 0 0 0 1px var(--border);
  background: var(--bg); font-size: var(--seed-font-size-t3); min-width: 0;
}
.tune-box-title { font-weight: var(--seed-font-weight-bold); font-size: var(--seed-font-size-t4); }
.tune-box-title .n { color: var(--fg-faint); font-weight: var(--seed-font-weight-regular); font-variant-numeric: tabular-nums; }
.tune-box .task-thread { width: 100%; }
.tune-likes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tune-delete { padding: 0 4px; }
.tune-delete-dlg p, .tune-confirm-dlg p { margin: 0; }
.tune-delete-dlg .dlg-note:empty { display: none; }
.tune-delete-names { font-size: var(--seed-font-size-t3); overflow-wrap: anywhere; }
.tune-comment { display: flex; gap: 6px; width: 100%; }
.tune-comment input { flex: 1; min-width: 0; min-height: 34px; padding: 6px 8px; font-size: var(--seed-font-size-t3); }
.tune-hist { font-size: var(--seed-font-size-t3); overflow-wrap: anywhere; }

/* a text preset (글 튜닝): the text with line numbers, its textarea, the line diff in 기록 and the picks after a conflict */
.tune-text-box { display: grid; gap: 8px; padding: 12px 14px; border-radius: var(--seed-radius-r3); box-shadow: inset 0 0 0 1px var(--border); background: var(--bg); min-width: 0; }
.tune-text-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: var(--seed-font-size-t3); }
.tune-text-head > b { font-size: var(--seed-font-size-t4); }
.tune-text-head .spacer { flex: 1; }
.tune-text {
  display: grid; grid-template-columns: max-content minmax(0, 1fr); align-content: start; max-height: 65vh; overflow: auto; margin: 0 -14px -12px;
  padding: 6px 0 10px; border-top: 1px solid var(--divider); font-family: var(--mono); font-size: var(--seed-font-size-t3); line-height: 1.65;
}
.tune-text .ln, .tune-diff .ln { padding: 0 12px 0 14px; text-align: right; color: var(--fg-faint); font-variant-numeric: tabular-nums; user-select: none; }
.tune-text .lt { padding-right: 14px; white-space: pre; }
.tune-textarea { width: 100%; min-height: 0; resize: vertical; font-size: var(--seed-font-size-t3); line-height: 1.65; white-space: pre; overflow-wrap: normal; overflow-x: auto; tab-size: 4; }
.tune-rev summary { cursor: pointer; }
.tune-rev[open] summary { margin-bottom: 6px; }
.tune-diff {
  display: grid; grid-template-columns: max-content max-content max-content minmax(0, 1fr); overflow-x: auto; border-radius: var(--seed-radius-r2);
  box-shadow: inset 0 0 0 1px var(--divider); font-family: var(--mono); font-size: var(--seed-font-size-t2); line-height: 1.6;
}
.tune-diff .ln { padding: 0 6px; }
.tune-diff .mk { padding: 0 4px; text-align: center; user-select: none; }
.tune-diff .lt { padding-right: 8px; white-space: pre; }
.tune-diff .del { background: var(--seed-color-bg-critical-weak); color: var(--seed-color-fg-critical-contrast); }
.tune-diff .add { background: var(--seed-color-bg-positive-weak); color: var(--seed-color-fg-positive-contrast); }
.tune-diff .gap { grid-column: 1 / -1; padding: 1px 8px; background: var(--seed-color-bg-neutral-weak); color: var(--fg-muted); font-family: var(--sans); }
.tune-pick-lines { margin: 2px 0 0; max-height: 9em; overflow: auto; font-size: var(--seed-font-size-t2); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.tune-format { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; }
.tune-format legend { padding: 0; }
.tune-format-opt { display: flex; align-items: baseline; gap: 8px; font-size: var(--seed-font-size-t3); }
.tune-format-opt b { margin-right: 4px; }
@media (max-width: 600px) { .tune-pick-opts:has(.tune-pick-lines) { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .tune-fields { padding: 12px; }
  .tune-key { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n d" "c c"; gap: 6px 10px; padding: 10px 8px 10px 12px; }
  .tune-key-name { grid-area: n; }
  .tune-key-def { grid-area: d; align-self: start; }
  .tune-key-ctl { grid-area: c; }
  .tune-savebar { bottom: 8px; padding: 8px 8px 8px 12px; }
  .tune-status-opt { flex: 1 1 0; justify-content: center; padding: 0 10px; }
  .tune-pick-opts { grid-template-columns: minmax(0, 1fr); }
}

/* 튜닝 설정 */
dialog:has(.tune-dlg:not([hidden])) { width: min(920px, calc(100vw - 32px)); }
.tune-dlg[hidden], .tune-import-dlg[hidden] { display: none; }
.tune-import-dlg p { margin: 0; }
.tune-import-note { font-size: var(--seed-font-size-t3); color: var(--fg-muted); }
.tune-keys { display: grid; border-radius: var(--seed-radius-r3); box-shadow: inset 0 0 0 1px var(--border); overflow: clip; }
.tune-khead, .tune-krow { display: grid; grid-template-columns: 1fr 1fr 96px 70px 1fr 1.2fr 32px; gap: 6px; align-items: center; padding: 6px 10px; }
.tune-khead { position: sticky; top: 0; z-index: 1; padding-block: 8px; font-size: var(--seed-font-size-t2); color: var(--fg-muted); font-weight: var(--seed-font-weight-bold); background: var(--tune-head); box-shadow: 0 1px 0 var(--divider); }
.tune-krow { box-shadow: inset 0 1px 0 var(--divider); }
.tune-krow input, .tune-krow select { min-width: 0; width: 100%; min-height: 34px; padding: 5px 8px; font-size: var(--seed-font-size-t3); }
.tune-kkey { display: grid; gap: 2px; min-width: 0; }
.tune-keys > button { justify-self: start; margin: 8px 10px 0; }
.tune-kinds { margin: 0; padding: 6px 10px 10px; font-size: var(--seed-font-size-t2); }
@media (max-width: 760px) {
  .tune-khead { display: none; }
  .tune-krow { grid-template-columns: 1fr 1fr 32px; grid-template-areas: "l k x" "t d ." "r r ." "h h ."; padding: 8px 10px; }
  .tune-krow [name=label] { grid-area: l; }
  .tune-krow .tune-kkey { grid-area: k; }
  .tune-krow [name=kind] { grid-area: t; }
  .tune-krow [name=def] { grid-area: d; }
  .tune-krow [name=range] { grid-area: r; }
  .tune-krow [name=help] { grid-area: h; }
  .tune-krow [data-act=tune-key-drop] { grid-area: x; }
}

/* elsewhere: the channel card, the doc embed, a build's presets */
.msg.system.tune-notice .tune-card { color: var(--fg); }
.tune-card {
  display: grid; gap: 8px; margin: 2px 0 4px; padding: 12px 14px; max-width: 560px; min-width: 0; border-radius: var(--seed-radius-r3);
  box-shadow: inset 0 0 0 1px var(--border); background: var(--bg); font-size: var(--seed-font-size-t4); line-height: var(--seed-line-height-t4);
}
.tune-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.tune-card-kind { display: inline-flex; align-items: center; gap: 4px; font-size: var(--seed-font-size-t3); font-weight: var(--seed-font-weight-bold); color: var(--fg-muted); }
.tune-card-by { font-size: var(--seed-font-size-t3); color: var(--fg-muted); }
.tune-card-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; font-size: var(--seed-font-size-t3); }
.tune-card-name { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.tune-card-name a { font-weight: var(--seed-font-weight-bold); font-size: var(--seed-font-size-t4); color: var(--fg); text-decoration: none; }
.tune-card-name a:hover { text-decoration: underline; }
.tune-embed {
  display: grid; margin: 4px 0; border-radius: var(--seed-radius-r3); box-shadow: inset 0 0 0 1px var(--border); background: var(--bg);
  overflow: hidden; white-space: normal; font-size: var(--seed-font-size-t3);
}
.tune-embed-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 10px; padding: 10px 14px; background: var(--tune-head); box-shadow: inset 0 -1px 0 var(--divider); }
.tune-embed-head a { font-weight: var(--seed-font-weight-bold); }
.tune-embed-row { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 14px; box-shadow: inset 0 -1px 0 var(--divider); color: var(--fg); text-decoration: none; }
.tune-embed-row b { flex: none; }
.tune-embed-row .faint { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg-muted); }
.tune-embed-row:hover { background: var(--bg-hover); }
.tune-embed-row:hover b { text-decoration: underline; }
.tune-embed > .faint { padding: 10px 14px; }
.tune-embed-foot { padding: 8px 14px; font-size: var(--seed-font-size-t2); }
.build-tunes { display: grid; gap: 8px; padding: 12px 14px; border-radius: var(--seed-radius-r3); background: var(--bg-soft); font-size: var(--seed-font-size-t3); }
.build-tunes-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; }
a.tune-pchip { gap: 6px; height: 28px; padding: 0 10px 0 4px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--border); font-size: var(--seed-font-size-t3); font-weight: var(--seed-font-weight-bold); }
a.tune-pchip:hover { background: var(--bg-hover); }
.tune-dlg .row { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.tune-dlg .row > select { flex: 1 1 200px; width: auto; }
