:root {
  --bg: #fafafb; --sidebar: #f3f3f5; --panel: #ffffff; --hover: #efeff2; --active: #e8e8ed;
  --text: #1b1c1f; --muted: #7a7d86; --faint: #a4a7af; --line: #e4e5ea;
  --accent: #5b5bd6; --accent-h: #4a4ac4; --accent-soft: rgba(91,91,214,.12); --danger: #d5463f;
  --shadow: 0 1px 2px rgba(20,20,30,.06), 0 4px 14px rgba(20,20,30,.05);
  --shadow-lg: 0 20px 60px rgba(10,10,20,.25);
  --lt: 36%; --on-accent: #fff; --backdrop: rgba(20,20,30,.35);
  --s-backlog: #9a9da6; --s-todo: #7a7d86; --s-in_progress: #e5a000; --s-in_review: #8a63e8; --s-done: #3aa76d; --s-canceled: #c9606a;
  --radius: 10px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font: 13.5px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent-soft); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--active); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--faint); background-clip: padding-box; border: 2px solid transparent; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
svg { flex-shrink: 0; }

/* controls */
button, input, select, textarea { font: inherit; color: inherit; }
button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; padding: 0 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; transition: background .12s, border-color .12s, transform .05s; box-shadow: 0 1px 0 rgba(0,0,0,.02); white-space: nowrap; }
button:hover { background: var(--hover); }
button:active { transform: translateY(1px); }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 500; }
button.primary:hover { background: var(--accent-h); }
button.danger { color: var(--danger); }
button.danger:hover { background: rgba(213,70,63,.1); border-color: rgba(213,70,63,.35); }
button.ghost { background: none; border-color: transparent; box-shadow: none; color: var(--muted); padding: 0 8px; }
button.ghost:hover { background: var(--hover); color: var(--text); }
button.icon { width: 28px; height: 28px; padding: 0; }
input[type=text], input:not([type]), input[type=date], input[type=password], input[type=email], input[type=url], input[type=search], input[type=number], input[type=tel], select, textarea {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; height: 32px; width: 100%; transition: border-color .12s, box-shadow .12s;
}
input:hover, select:hover, textarea:hover { border-color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { height: auto; min-height: 84px; padding: 8px 10px; resize: vertical; line-height: 1.5; }
select { appearance: none; padding-right: 28px; cursor: pointer; width: auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238b8e97' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; }
input[type=file] { display: none; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); font-weight: 500; }
.field > input, .field > select, .field > textarea { color: var(--text); font-weight: 400; font-size: 13.5px; width: 100%; }

/* layout */
#app { display: flex; height: 100vh; }
#sidebar { width: 236px; background: var(--sidebar); border-right: 1px solid var(--line); padding: 14px 10px; overflow-y: auto; flex-shrink: 0; display: flex; flex-direction: column; gap: 2px; }
#main { flex: 1; overflow: auto; display: flex; flex-direction: column; min-width: 0; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 14.5px; padding: 4px 8px 16px; letter-spacing: -.01em; }
.logo { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, var(--accent), #a06cf5); display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; }
.nav-h { display: flex; justify-content: space-between; align-items: center; color: var(--faint); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 16px 8px 4px; }
.nav-h button { height: 22px; width: 22px; padding: 0; }
.nav-item { display: flex; align-items: center; gap: 9px; min-height: 34px; padding: 6px 8px; border-radius: 7px; color: var(--text); transition: background .1s; }
.nav-item:hover { background: var(--hover); text-decoration: none; }
.nav-item.active { background: var(--active); font-weight: 550; }
.nav-item .count { margin-left: auto; color: var(--faint); font-size: 12px; }
.pbadge { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; background: hsl(var(--h) 55% 52%); flex-shrink: 0; }
.key { font-size: 11px; font-weight: 650; background: var(--accent-soft); color: var(--accent); border-radius: 5px; padding: 1px 6px; letter-spacing: .02em; }

.topbar { display: flex; align-items: center; gap: 12px; padding: 16px 28px 12px; flex-wrap: wrap; }
.topbar h1 { font-size: 20px; font-weight: 650; }
.topbar .spacer { flex: 1; }
.filters { display: flex; gap: 8px; align-items: center; }
.search { position: relative; }
.search svg { position: absolute; left: 9px; top: 9px; color: var(--faint); pointer-events: none; }
.search input { padding-left: 30px; width: 190px; }
.tabs { display: flex; gap: 2px; padding: 0 22px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.topbar, .chiprow, .page-title { flex-shrink: 0; }
.tab { padding: 8px 12px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .1s; }
.tab:hover { color: var(--text); text-decoration: none; }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }
.content { padding: 20px 28px 40px; flex: 1; }
.page-title { padding: 22px 28px 0; display: flex; align-items: center; }

/* board */
.board { display: flex; gap: 14px; align-items: flex-start; min-height: 100%; }
.col { width: 296px; flex-shrink: 0; display: flex; flex-direction: column; max-height: calc(100vh - 170px); }
.col-h { display: flex; align-items: center; gap: 8px; padding: 2px 6px 10px; font-weight: 600; font-size: 13px; }
.col-h .count { color: var(--faint); font-weight: 500; }
.col-h .add { margin-left: auto; width: 24px; height: 24px; padding: 0; opacity: 0; }
.col:hover .add { opacity: 1; }
.cards { overflow-y: auto; flex: 1; min-height: 60px; display: flex; flex-direction: column; gap: 8px; padding: 2px; border-radius: 10px; transition: background .12s; }
.cards.over { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.cards:empty::before { content: var(--t-empty, 'No issues'); color: var(--faint); font-size: 12px; text-align: center; padding: 18px 0; border: 1px dashed var(--line); border-radius: 8px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; cursor: grab; box-shadow: var(--shadow); transition: border-color .12s, transform .12s, box-shadow .12s; }
.card:hover { border-color: var(--faint); transform: translateY(-1px); }
.card.dragging { opacity: .35; }
.card .top { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.card .t { margin: 5px 0 8px; font-weight: 500; line-height: 1.4; }
.card .top .av { margin-left: auto; }
.meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 10px; font-size: 11.5px; background: var(--hover); color: var(--muted); }
.chip.label { background: hsl(var(--h) 60% 50% / .16); color: hsl(var(--h) 60% var(--lt)); }
.av { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 650; color: #fff; background: hsl(var(--h) 50% 50%); flex-shrink: 0; }

/* list + tables */
.table { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tr { display: grid; grid-template-columns: 72px 22px 1fr 110px 130px 104px 70px; align-items: center; gap: 10px; padding: 0 14px; height: 40px; border-bottom: 1px solid var(--line); cursor: pointer; }
.tr:last-child { border-bottom: none; }
.tr:not(.th):hover { background: var(--hover); }
.tr.th { height: 32px; cursor: default; color: var(--faint); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.tr .title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.tr .id { color: var(--muted); font-size: 12px; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; box-shadow: var(--shadow); }
.panel h3 { font-size: 13px; font-weight: 650; margin-bottom: 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
a.pcard { color: inherit; display: block; transition: transform .12s, border-color .12s; }
a.pcard:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--faint); }
.bar { height: 5px; background: var(--active); border-radius: 3px; overflow: hidden; }
.bar > div { height: 100%; background: var(--s-done); border-radius: 3px; transition: width .3s; }
.row-flex { display: flex; gap: 8px; align-items: center; }
.empty { color: var(--muted); text-align: center; padding: 60px 20px; }
.empty b { display: block; font-size: 15px; color: var(--text); margin-bottom: 4px; }

/* issue modal */
#modal { position: fixed; inset: 0; background: var(--backdrop); backdrop-filter: blur(3px); display: flex; justify-content: center; align-items: flex-start; padding: 5vh 16px; overflow-y: auto; z-index: 10; animation: fade .12s; }
.dialog { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; width: min(980px, 100%); display: flex; box-shadow: var(--shadow-lg); animation: pop .15s; overflow: hidden; }
.dialog .left { flex: 1; padding: 20px 28px 26px; min-width: 0; }
.dialog .right { width: 250px; padding: 16px 14px; border-left: 1px solid var(--line); background: var(--sidebar); display: flex; flex-direction: column; gap: 2px; }
.dhead { display: flex; align-items: center; gap: 8px; color: var(--muted); margin-bottom: 8px; }
.title-input { border: 1px solid transparent !important; background: none !important; font-size: 22px; font-weight: 650; height: 42px !important; padding: 0 8px !important; margin-left: -8px; width: calc(100% + 8px) !important; letter-spacing: -.015em; }
.title-input:hover { border-color: var(--line) !important; }
.title-input:focus { border-color: var(--accent) !important; }
.desc { border-radius: 8px; padding: 8px 10px; margin: 0 -10px; cursor: text; min-height: 52px; border: 1px solid transparent; transition: background .1s; }
.desc:hover { background: var(--hover); }
.desc.over { background: var(--accent-soft); border-color: var(--accent); }
.placeholder { color: var(--faint); }
.sec-h { display: flex; align-items: center; gap: 8px; margin: 22px 0 8px; font-size: 12px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.prop { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 0 8px; border-radius: 7px; position: relative; color: var(--muted); }
.prop:hover { background: var(--hover); }
.prop .pl { width: 74px; font-size: 12px; flex-shrink: 0; }
.prop .pv { flex: 1; display: flex; align-items: center; gap: 8px; color: var(--text); min-width: 0; }
.prop select, .prop input { border: none; background: none; box-shadow: none; padding: 0; height: 30px; flex: 1; min-width: 0; color: var(--text); background-position: right 0 center; }
.prop select:hover, .prop input:hover { border: none; }
.prop input:focus, .prop select:focus { box-shadow: none; outline: none; }
.prop-sep { height: 1px; background: var(--line); margin: 10px 0; }
.sub { font-size: 12px; color: var(--faint); padding: 4px 8px; }

.md { white-space: pre-wrap; word-break: break-word; line-height: 1.6; }
.md img { max-width: 100%; max-height: 440px; border-radius: 8px; display: block; margin: 8px 0; border: 1px solid var(--line); }
.md code { background: var(--active); padding: 1px 5px; border-radius: 4px; font-size: .92em; }
.md pre { background: var(--sidebar); border: 1px solid var(--line); padding: 10px 12px; border-radius: 8px; overflow-x: auto; white-space: pre; }
.md pre code { background: none; padding: 0; }
.comment { display: flex; gap: 10px; margin: 14px 0; }
.comment .body { flex: 1; min-width: 0; background: var(--sidebar); border: 1px solid var(--line); border-radius: 10px; padding: 9px 13px; }
.comment .ch { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.comment .ch b { color: var(--text); font-weight: 600; }
.comment .ch button { margin-left: auto; height: 22px; opacity: 0; }
.comment:hover .ch button { opacity: 1; }
.composer { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); transition: border-color .12s, box-shadow .12s; margin-top: 12px; }
.composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.composer.over { border-color: var(--accent); background: var(--accent-soft); }
.composer textarea { border: none !important; box-shadow: none !important; background: none; min-height: 70px; resize: none; }
.composer .bar2 { display: flex; align-items: center; gap: 8px; padding: 6px 8px 8px; flex-wrap: wrap; }
.composer .bar2 .grow { flex: 1; }
.fchip { display: inline-flex; align-items: center; gap: 6px; background: var(--hover); border-radius: 7px; padding: 2px 4px 2px 8px; font-size: 12px; max-width: 200px; }
.fchip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fchip button { height: 18px; width: 18px; padding: 0; }
.atts { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }

.attach-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 7px; color: var(--muted); cursor: pointer; font-size: 12.5px; }
.attach-btn:hover { background: var(--hover); color: var(--text); }

/* dialogs */
.dlg { position: fixed; inset: 0; background: var(--backdrop); backdrop-filter: blur(3px); display: flex; justify-content: center; align-items: flex-start; padding-top: 12vh; z-index: 20; animation: fade .12s; }
.dlg form { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; width: min(500px, 92vw); padding: 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-lg); animation: pop .15s; }
.dlg h3 { font-size: 16px; font-weight: 650; }
.dlg .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.dlg .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dlg select { width: 100%; }
#toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 50; }
.toast { background: var(--text); color: var(--bg); padding: 9px 14px; border-radius: 9px; box-shadow: var(--shadow-lg); animation: pop .15s; max-width: 340px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.985); } }

/* native select popup: follow theme (was white-on-white) */
select option { background: var(--panel); color: var(--text); }
.sidebar-foot { margin-top: auto; padding-top: 10px; }
.sidebar-foot .nav-item { width: 100%; background: none; border: none; height: 32px; box-shadow: none; justify-content: flex-start; color: var(--muted); }
.sidebar-foot .nav-item:hover { color: var(--text); background: var(--hover); }
/* appearance dialog */
.seg { display: inline-flex; background: var(--hover); border-radius: 9px; padding: 3px; gap: 2px; }
.seg button { border: none; background: none; box-shadow: none; height: 28px; color: var(--muted); }
.seg button.on { background: var(--panel); color: var(--text); box-shadow: var(--shadow); font-weight: 550; }
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.theme { height: auto; padding: 0; flex-direction: column; align-items: stretch; overflow: hidden; border-radius: 10px; text-align: left; gap: 0; }
.theme .sw { height: 54px; padding: 8px; display: flex; gap: 6px; align-items: flex-end; }
.theme .sw i { display: block; height: 14px; border-radius: 4px; }
.theme .sw b { font-size: 15px; line-height: 1; margin-right: auto; }
.theme .nm { padding: 6px 9px; font-size: 12px; background: var(--panel); border-top: 1px solid var(--line); }
.theme.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft), 0 0 0 1px var(--accent); }
.arow { display: flex; align-items: center; gap: 10px; }
.arow input[type=color] { width: 38px; height: 28px; padding: 2px; border-radius: 7px; cursor: pointer; }

/* lightbox */


/* ---- custom select / date picker / popups ---- */
.csel-native { display: none !important; }
.csel-btn { gap: 8px; font-weight: 400; min-width: 0; justify-content: flex-start; }
.csel-btn .lbl { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csel-btn .lbl.ph { color: var(--muted); }
.csel-btn .chev { color: var(--faint); margin-left: auto; display: inline-flex; }
.csel-btn .ico { display: inline-flex; }
.csel-btn .ico:empty { display: none; }
.field > .csel-btn, .dlg .field .csel-btn { width: 100%; height: 32px; background: var(--panel); }
.filters .csel-btn { min-width: 132px; }
.prop .csel-btn { border: none; background: none; box-shadow: none; padding: 0; height: 30px; flex: 1; }
.prop .csel-btn:hover { background: none; }
.popup { position: fixed; z-index: 70; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow-lg); padding: 4px; overflow: auto; animation: pop .12s; }
.cmenu-item { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 7px; cursor: pointer; white-space: nowrap; }
.cmenu-item.hl { background: var(--hover); }
.cmenu-item .ico { display: inline-flex; width: 14px; justify-content: center; }
.cmenu-item .ico:empty { display: none; }
.cmenu-item .lbl { flex: 1; }
.cmenu-item .tick { color: var(--accent); width: 14px; display: inline-flex; justify-content: flex-end; margin-left: 10px; }
.cal { padding: 10px; width: 264px; }
.cal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-h b { font-weight: 600; text-transform: capitalize; }
.cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal .dow { text-align: center; font-size: 11px; color: var(--faint); padding: 3px 0; }
.cal .day { height: 30px; padding: 0; border: none; background: none; box-shadow: none; border-radius: 8px; font-size: 12.5px; }
.cal .day:hover { background: var(--hover); }
.cal .day.out { color: var(--faint); }
.cal .day.today { box-shadow: inset 0 0 0 1px var(--accent); }
.cal .day.sel { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.cal-f { display: flex; justify-content: space-between; margin-top: 6px; border-top: 1px solid var(--line); padding-top: 6px; }
.dlg form.small { width: min(400px, 92vw); }
.dlg form p { line-height: 1.5; }
button.danger-solid { background: var(--danger); border-color: var(--danger); color: #fff; }
button.danger-solid:hover { background: var(--danger); filter: brightness(1.1); }
textarea.uploading { opacity: .55; }
textarea.over { border-color: var(--accent); background: var(--accent-soft); }
.swatches { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.swatch { width: 24px; height: 24px; padding: 0; border-radius: 50%; border: 2px solid var(--panel); box-shadow: 0 0 0 1px var(--line); }
.swatch:hover { transform: scale(1.12); }
.swatch.on { box-shadow: 0 0 0 2px var(--text); }
.hexin { width: 104px !important; font-family: ui-monospace, Consolas, monospace; }
.md video { max-width: 100%; max-height: 420px; border-radius: 8px; display: block; margin: 8px 0; background: #000; }
.md audio { width: 100%; margin: 8px 0; display: block; }

/* login */
body.locked #app { filter: blur(6px); pointer-events: none; }
#login { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; overflow: auto; background: radial-gradient(900px 500px at 50% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%), var(--bg); }
.login-card { width: min(380px, 100%); display: flex; flex-direction: column; gap: 12px; align-items: stretch; text-align: center; padding: 34px 32px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); }
.login-card #f-in, .login-card #f-up { display: flex; flex-direction: column; gap: 10px; }
.login-card #f-in[hidden], .login-card #f-up[hidden] { display: none; }
.login-card h1 { font-size: 24px; margin: 4px 0 0; letter-spacing: -.02em; }
.login-card p { margin: -4px 0 10px; font-size: 14px; }
.login-card input { height: 42px; text-align: left; padding: 0 12px; border-radius: 9px; font-size: 14px; }
.login-card input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.pw-wrap { position: relative; } .pw-wrap input { width: 100%; padding-right: 40px; }
.pw-eye { position: absolute; right: 4px; top: 4px; width: 34px; height: 34px !important; padding: 0; border: 0; background: transparent; color: var(--faint); border-radius: 7px; display: grid; place-items: center; cursor: pointer; }
.pw-eye:hover { color: var(--text); background: var(--hover); } .pw-eye svg { width: 17px; height: 17px; }
.login-card button { height: 42px; border-radius: 9px; font-size: 14px; }
.login-card .primary { margin-top: 2px; font-weight: 600; }
.login-logo { width: 48px; height: 48px; margin: 0 auto 4px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), #a06cf5); }
.login-logo svg { width: 28px; height: 28px; }
.login-err { color: var(--danger); font-size: 13px; text-align: left; background: color-mix(in srgb, var(--danger) 10%, transparent); border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); border-radius: 8px; padding: 8px 10px; }
.login-err:empty { display: none; }

/* ---- live updates ---- */
.brand .live { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex-shrink: 0; transition: background .2s; }
.brand .live.on { background: var(--s-done); box-shadow: 0 0 0 0 color-mix(in srgb, var(--s-done) 55%, transparent); animation: beat 2.4s infinite; }
.brand .live.off { background: var(--danger); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--s-in_progress); flex-shrink: 0; animation: beat-amber 1.6s infinite; margin-left: 2px; }
.card.flash { animation: flash 2.6s ease-out; }
.toast.live { display: flex; align-items: center; gap: 8px; border-left: 3px solid var(--accent); background: var(--panel); color: var(--text); border: 1px solid var(--line); border-left: 3px solid var(--accent); box-shadow: var(--shadow-lg); }
.toast.link { cursor: pointer; }
.toast.link:hover { background: var(--hover); }
.stale { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--accent-soft); color: var(--text); border-radius: 8px; padding: 6px 10px; margin: -4px 0 10px; font-size: 12.5px; }
.stale button { height: 24px; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--s-done) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
@keyframes beat-amber { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--s-in_progress) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
@keyframes flash { 0% { box-shadow: 0 0 0 2px var(--accent), 0 0 18px var(--accent-soft); background: var(--accent-soft); } 100% { box-shadow: var(--shadow); } }
@media (prefers-reduced-motion: reduce) { .brand .live.on, .pulse, .card.flash { animation: none; } }

/* ---- filter / display ---- */
.tb { gap: 6px; }
.tb.on { border-color: var(--accent); color: var(--accent); }
.tb .badge { background: var(--accent); color: var(--on-accent); border-radius: 9px; min-width: 17px; height: 17px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 650; padding: 0 5px; }
.tb .badge:empty { display: none; }
.chiprow { display: none; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 28px 0; }
.chiprow.on { display: flex; }
.fchip2 { display: inline-flex; align-items: center; gap: 5px; background: var(--accent-soft); border-radius: 8px; padding: 3px 4px 3px 9px; font-size: 12.5px; max-width: 100%; }
.fchip2 b { font-weight: 600; }
.fchip2 .v { color: var(--accent); font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; }
.fchip2 button { height: 20px; width: 20px; padding: 0; background: none; border: none; box-shadow: none; color: var(--muted); }
.fchip2 button:hover { color: var(--text); background: var(--hover); }
.pover { width: 380px; max-width: 94vw; padding: 12px 14px; overscroll-behavior: contain; }
.pv-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.pv-sec { margin-top: 12px; }
.pv-title { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-bottom: 6px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pillbtn { height: 26px; padding: 0 10px; gap: 6px; border-radius: 13px; font-size: 12.5px; background: var(--panel); }
.pillbtn.on { background: var(--accent-soft); border-color: var(--accent); color: var(--text); font-weight: 550; }
.pillbtn .n { color: var(--faint); font-size: 11px; }
.pillbtn:disabled { opacity: .4; cursor: not-allowed; }
.gh { display: flex; align-items: center; gap: 9px; padding: 0 12px; height: 36px; background: var(--sidebar); border-bottom: 1px solid var(--line); cursor: pointer; user-select: none; }
.gh .count { color: var(--faint); }
.gh .chev { height: 20px; width: 20px; padding: 0; transition: transform .12s; }
.gh .chev.shut { transform: rotate(-90deg); }

/* due dates */
.chip.due { gap: 4px; }
.chip.due.soon { background: color-mix(in srgb, var(--s-in_progress) 20%, transparent); color: var(--s-in_progress); }
.chip.due.overdue { background: color-mix(in srgb, var(--danger) 18%, transparent); color: var(--danger); font-weight: 600; }

.pend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -6px; }
.pend:empty { display: none; }
.fchip .thumb { width: 20px; height: 20px; border-radius: 4px; object-fit: cover; }

/* account / users / tokens */
.userbtn .av { width: 22px; height: 22px; }
.userbtn span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-list { display: flex; flex-direction: column; min-width: 190px; }
.menu-item { height: 32px; justify-content: flex-start; gap: 9px; border: none; background: none; box-shadow: none; padding: 0 10px; border-radius: 7px; font-weight: 400; }
.menu-item:hover { background: var(--hover); }
.menu-sep { height: 1px; background: var(--line); margin: 4px 0; }
.dlg form.wide { width: min(800px, 94vw); max-height: 86vh; display: flex; flex-direction: column; padding: 18px 20px 14px; gap: 10px; }
.set-head { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.set-head h3 { flex: 1; }
.set-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.set-tabs button { border: none; border-bottom: 2px solid transparent; border-radius: 0; background: none; box-shadow: none; height: 32px; color: var(--muted); margin-bottom: -1px; }
.set-tabs button.on { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.set-body { min-height: 0; flex: 1 1 auto; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; padding: 4px 2px 6px; min-height: 160px; }
.set-sec h4 { margin: 0 0 8px; font-size: 13px; }
.set-sec .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 8px; }
.set-sec .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.set-sec .field + .field, .set-sec .field + .two { margin-top: 8px; }
.set-sec .two .field + .field { margin-top: 0; }
.set-table { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.set-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.set-row:last-child { border-bottom: none; }
.set-row .grow { flex: 1; min-width: 160px; }
.set-row.dead { opacity: .55; }
.set-row.tok { font-size: 12.5px; }
.set-row code { background: var(--hover); border-radius: 4px; padding: 0 5px; }
@media (max-width: 640px) { .set-sec .two { grid-template-columns: 1fr; } }

/* attachments: square thumbnails */
.atts { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0; }
.att { width: 112px; position: relative; font-size: 12px; }
.att.wide { width: 260px; }
.att .thumb { display: block; width: 112px; height: 112px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--sidebar); cursor: zoom-in; transition: transform .12s, border-color .12s, box-shadow .12s; }
.att .thumb:hover { transform: translateY(-1px); border-color: var(--accent); box-shadow: var(--shadow); }
.att .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; border: none; border-radius: 0; max-height: none; }
.att .thumb.file { cursor: pointer; display: grid; place-content: center; justify-items: center; gap: 4px; color: var(--faint); }
.att .thumb.file svg { width: 22px; height: 22px; }
.ext { font-size: 15px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.att .player { width: 100%; border-radius: 10px; display: block; background: #000; max-height: 150px; }
.att audio.player { background: none; max-height: none; }
.att .nm { display: block; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.att .nm:hover { color: var(--accent); }
.att .x { position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; padding: 0; opacity: 0; background: var(--panel); border-radius: 6px; box-shadow: var(--shadow); }
.att:hover .x { opacity: 1; }
/* files chosen but not yet sent */
.ptile { position: relative; width: 64px; height: 64px; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); background: var(--sidebar); flex-shrink: 0; display: grid; place-items: center; }
.ptile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ptile button { position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; min-width: 0; padding: 0; border-radius: 5px; background: rgba(0,0,0,.6); color: #fff; border: none; box-shadow: none; opacity: 0; transition: opacity .1s; }
.ptile:hover button { opacity: 1; }
.composer .bar2 #chips { flex-basis: 100%; order: -1; gap: 8px; padding: 2px 0 6px; }
.composer .bar2 #chips:empty { display: none; }
.pend { gap: 8px; }
.md img, .att .thumb img { cursor: zoom-in; }
.md img { max-width: min(100%, 560px); }

/* image viewer */
.lightbox { position: fixed; inset: 0; z-index: 40; background: rgba(8,8,10,.92); backdrop-filter: blur(4px); animation: fade .12s; user-select: none; }
.lb-stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: default; }
.lb-stage.zoomed { cursor: grab; } .lb-stage.grab { cursor: grabbing; }
.lb-img { position: absolute; left: 50%; top: 50%; max-width: none; max-height: none; transform-origin: center; will-change: transform; box-shadow: 0 20px 80px rgba(0,0,0,.6); border-radius: 2px; image-rendering: auto; }
.lb-bar { position: absolute; top: 14px; left: 18px; right: 18px; display: flex; align-items: center; gap: 12px; color: #ddd; font-size: 13px; pointer-events: none; }
.lb-bar > span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-bar a, .lb-bar button { pointer-events: auto; color: #ddd; font-size: 16px; text-decoration: none; background: rgba(255,255,255,.1); border: none; border-radius: 8px; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; cursor: pointer; }
.lb-bar a:hover, .lb-bar button:hover { background: rgba(255,255,255,.2); text-decoration: none; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; font-size: 30px; color: #ddd; background: rgba(255,255,255,.08); border: none; border-radius: 10px; padding: 0 0 4px; z-index: 2; }
.lb-nav:hover { background: rgba(255,255,255,.18); }
.lb-nav.prev { left: 16px; } .lb-nav.next { right: 16px; }
.lb-zoom { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 12px; background: rgba(30,30,34,.85); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.1); z-index: 2; }
.lb-zoom button { height: 30px; min-width: 32px; padding: 0 9px; border: none; background: none; color: #e8e8ec; box-shadow: none; border-radius: 8px; font-size: 15px; }
.lb-zoom button:hover { background: rgba(255,255,255,.14); }
.lb-zoom #lb-pct { min-width: 58px; font-size: 13px; font-variant-numeric: tabular-nums; }
.lb-zoom .sep { width: 1px; height: 18px; background: rgba(255,255,255,.18); margin: 0 3px; }

/* project access picker */
.check { display: flex; align-items: center; gap: 8px; padding: 6px 2px; cursor: pointer; font-size: 14px; }
.check input { width: auto; margin: 0; }
.pp-list { display: grid; gap: 0; max-height: 40vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 4px 10px; }
.pp-list.off { opacity: .55; }

/* copy-link button: appears on hover (always visible on touch screens) */
.copy { display: inline-grid; place-items: center; width: 20px; height: 20px; padding: 0; margin: 0; border: none; border-radius: 6px; background: none; color: var(--faint); box-shadow: none; opacity: 0; cursor: pointer; transition: opacity .1s, background .1s, color .1s; flex-shrink: 0; }
.card:hover .copy, .tr:hover .copy, .dhead:hover .copy, .copy:focus-visible { opacity: 1; }
.copy:hover { background: var(--active); color: var(--text); }
.copy.done { opacity: 1; color: var(--ok, #3fb950); }
.tr .id { display: flex; align-items: center; gap: 2px; }
@media (hover: none) { .copy { opacity: .7; } }

/* tooltips */
.tip { position: fixed; z-index: 200; max-width: 280px; padding: 5px 9px; border-radius: 8px; background: var(--panel); color: var(--text); border: 1px solid var(--line); box-shadow: 0 6px 24px rgba(0,0,0,.28); font-size: 12px; line-height: 1.4; pointer-events: none; opacity: 0; transform: translateY(3px); transition: opacity .12s, transform .12s; }
.tip.below { transform: translateY(-3px); }
.tip.on { opacity: 1; transform: none; }

/* selection, bulk bar, keyboard cursor */
.card.picked, .tr.picked { background: var(--accent-soft); border-color: var(--accent); }
.card.cur, .tr.cur { box-shadow: inset 0 0 0 1.5px var(--faint); }
.card.picked.cur, .tr.picked.cur { box-shadow: inset 0 0 0 1.5px var(--accent); }
.band { position: fixed; z-index: 30; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 4px; pointer-events: none; }
body.banding, body.banding * { user-select: none; cursor: crosshair !important; }
#selbar { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 35; display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: pop .15s; }
#selbar .n { font-weight: 600; margin-right: 6px; white-space: nowrap; }
#selbar button { height: 30px; padding: 0 11px; }
.toast.has-act { display: flex; align-items: center; gap: 12px; }
.toast-act { background: none; border: none; color: var(--accent); font-weight: 600; padding: 0 2px; cursor: pointer; height: auto; box-shadow: none; }
.toast-act:hover { text-decoration: underline; background: none; }
/* trash */
.trash-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.trash-head .muted { flex: 1; }
.table.trash .tr { grid-template-columns: 72px 22px 1fr 150px 110px 230px; cursor: default; }
.table.trash .tr .row-flex { justify-content: flex-end; }
/* shortcuts dialog */
.keys { width: min(560px, 94vw); }
.krows { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; align-items: center; }
.kk { font: 12px ui-monospace, Consolas, monospace; background: var(--sidebar); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; justify-self: start; }

/* sidebar groups, pinned, per-project menu, drag targets */
.nav-h.sb-group, .nav-h.sb-pinh { justify-content: flex-start; gap: 4px; padding: 12px 4px 3px 2px; cursor: pointer; text-transform: none; letter-spacing: 0; font-size: 12px; }
.nav-h.sb-group .gname, .nav-h.sb-pinh .gname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-weight: 600; }
.nav-h.sb-group:hover .gname { color: var(--text); }
.nav-h .chev { width: 18px; height: 18px; padding: 0; font-size: 10px; color: var(--faint); transition: transform .12s; }
.nav-h .chev.shut { transform: rotate(-90deg); }
.nav-h.sb-group .count { margin-left: 0; font-weight: 400; }
.sb-gmore, .sb-more { opacity: 0; width: 22px; height: 22px; padding: 0; flex-shrink: 0; }
.sb-group:hover .sb-gmore, .sb-proj:hover .sb-more { opacity: 1; }
.sb-proj { position: relative; }
.sb-proj .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-proj .sb-more { display: none; margin-left: auto; }
.sb-proj:hover .sb-more { display: inline-grid; place-items: center; }
.sb-proj:hover .count { display: none; }
.sb-proj.dragging { opacity: .4; }
.sb-proj.drop-before::before { content: ''; position: absolute; left: 6px; right: 6px; top: -1px; height: 2px; background: var(--accent); border-radius: 2px; }
.sb-group.drop-in, .sb-free.drop-in { background: var(--accent-soft); border-radius: 7px; }
.menu-cap { font-size: 11px; color: var(--faint); padding: 8px 10px 3px; text-transform: uppercase; letter-spacing: .05em; }
.menu-item .tick { margin-left: auto; color: var(--accent); }
.menu-item.danger { color: var(--danger, #e5484d); }

/* all projects: toolbar, segmented view switch, list view */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; height: 32px; background: var(--panel); }
.seg button { border: none; border-radius: 0; height: 100%; padding: 0 12px; background: none; box-shadow: none; color: var(--muted); }
.seg button.on { background: var(--active); color: var(--text); font-weight: 600; }
.table.ptable .tr { grid-template-columns: 28px 1fr 100px 160px 60px 260px; color: inherit; }
.table.ptable a.tr:hover { background: var(--hover); text-decoration: none; }
.overdue-txt { color: var(--danger, #e5484d); }

/* long milestone / label names shrink with an ellipsis instead of overflowing the card */
.chip.shrink { max-width: 100%; min-width: 0; }
.chip .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.chip svg { flex-shrink: 0; }

/* timeline */
.tl-tools { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.tl-hint { font-size: 12px; margin-left: 6px; }
.tl-scroll { overflow: auto; max-height: calc(100vh - 210px); border: 1px solid var(--line); border-radius: 10px; background: var(--panel); position: relative; }
.tl-inner { display: flex; position: relative; }
.tl-left { width: 250px; flex: none; position: sticky; left: 0; z-index: 5; background: var(--panel); border-right: 1px solid var(--line); }
.tl-chart { flex: none; position: relative; }
.tl-head { height: 52px; position: sticky; top: 0; z-index: 4; background: var(--sidebar); border-bottom: 1px solid var(--line); }
.tl-left .tl-head { z-index: 6; }
.tl-top, .tl-bot { position: relative; height: 26px; }
.tl-m { position: absolute; top: 0; height: 26px; line-height: 26px; padding-left: 8px; font-size: 12px; font-weight: 600; color: var(--muted); border-left: 1px solid var(--line); white-space: nowrap; overflow: hidden; }
.tl-t { position: absolute; top: 0; height: 26px; line-height: 26px; text-align: center; font-size: 11px; color: var(--faint); overflow: hidden; }
.tl-t.we { background: var(--hover); } .tl-t.now { color: #fff; background: var(--accent); border-radius: 6px; }
.tl-lab { height: 34px; display: flex; align-items: center; padding: 0 12px; border-bottom: 1px solid var(--line); font-size: 13px; overflow: hidden; }
.tl-lab a, .tl-lab > span { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--text); }
.tl-lab a:hover { color: var(--accent); text-decoration: none; }
.tl-lab .sub { color: var(--faint); font-size: 11.5px; flex: none; }
.tl-lab .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-lab.grp { background: var(--sidebar); font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.tl-lab.nodate .t { color: var(--muted); }
.tl-body { position: relative; }
.tl-row { height: 34px; border-bottom: 1px solid var(--line); position: relative; }
.tl-row.grp { background: var(--sidebar); }
.tl-row.free { cursor: crosshair; }
.tl-row.free:hover { background: var(--hover); }
.tl-vl { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); pointer-events: none; }
.tl-vl.strong { background: var(--faint); opacity: .5; }
.tl-today { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--accent); opacity: .75; z-index: 2; pointer-events: none; }
.tl-bar-item { position: absolute; top: 6px; height: 22px; border-radius: 7px; background: color-mix(in srgb, var(--c) 28%, var(--panel)); border: 1px solid var(--c); display: flex; align-items: center; overflow: hidden; cursor: pointer; z-index: 3; }
.tl-bar-item .pg { position: absolute; left: 0; top: 0; bottom: 0; background: color-mix(in srgb, var(--c) 55%, transparent); pointer-events: none; }
.tl-bar-item .bl { position: relative; padding: 0 10px; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; color: var(--text); }
.tl-bar-item .hl, .tl-bar-item .hr { position: absolute; top: 0; bottom: 0; width: 7px; cursor: ew-resize; z-index: 2; display: none; }
.tl-bar-item .hl { left: 0; } .tl-bar-item .hr { right: 0; }
.tl-bar-item.edit { cursor: grab; touch-action: none; } .tl-bar-item.edit .hl, .tl-bar-item.edit .hr { display: block; }
.tl-bar-item.edit:hover .hl, .tl-bar-item.edit:hover .hr { background: color-mix(in srgb, var(--c) 60%, transparent); }
.tl-bar-item.drag { cursor: grabbing; box-shadow: var(--shadow-lg); }
.tl-bar-item.drag::after, .tl-bar-item.ghost::after { content: attr(data-tip); position: absolute; left: 50%; top: -24px; transform: translateX(-50%); background: var(--text); color: var(--bg); font-size: 11px; padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.tl-bar-item.drag, .tl-bar-item.ghost { overflow: visible; }
.tl-bar-item.ghost { background: var(--accent-soft); border: 1px dashed var(--accent); pointer-events: none; --c: var(--accent); }
.tl-mk { position: absolute; top: 9px; width: 16px; height: 16px; z-index: 3; }
.tl-mk i { display: block; width: 12px; height: 12px; margin: 2px; transform: rotate(45deg); border-radius: 2px; }

/* comment links */
.comment .ch .copy { margin-left: auto; }
.comment .ch button[data-dc] { margin-left: 0; }
.comment:hover .copy { opacity: 1; }
.comment.flash .body { animation: flash 2.6s ease-out; }

/* settings: plain-language lists of connected apps and keys */
.set-intro { margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.set-empty { padding: 14px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); text-align: center; }
.set-row.conn { gap: 12px; padding: 11px 14px; }
.set-row.conn .grow { line-height: 1.45; }
.set-row.conn .sub { font-size: 12px; }
.cico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: var(--hover); color: var(--muted); }
.cico.app { background: var(--accent-soft); color: var(--accent); }
.cico.system { background: color-mix(in srgb, #e5a50a 18%, var(--panel)); color: #c98a00; }
.chip.keep { background: color-mix(in srgb, #e5a50a 20%, var(--panel)); color: #c98a00; }
.set-more { margin-top: 10px; }
.set-more > summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 4px 0; }
.set-more > summary:hover { color: var(--text); }
.set-more[open] > summary { margin-bottom: 8px; }

/* popovers never scroll sideways; a collapsed sidebar group that holds the current project is marked */
.popup { overflow-x: hidden; }
.pover .menu-list { min-width: 0; }
.nav-h.sb-group.has-active .gname { color: var(--accent); }
.nav-h.sb-group.has-active .gname::after { content: " •"; }

/* workspace usage meters */
.meter { margin-bottom: 10px; }
.meter .mh { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.meter .mh b { color: var(--text); font-weight: 600; }
.mbar { height: 6px; border-radius: 4px; background: var(--hover); overflow: hidden; }
.mbar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.meter.hot .mbar i { background: var(--danger, #e5484d); }

/* Continue with Google / Apple */
.login-or { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; color: var(--faint); font-size: 12px; }
.login-or::before, .login-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.social { display: grid; gap: 8px; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 42px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--text); font-weight: 500; font-size: 14px; text-decoration: none; transition: background .12s, border-color .12s; }
.social-btn:hover { background: var(--hover); border-color: var(--faint); text-decoration: none; }
.login-legal { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); text-align: center; font-size: 12px; color: var(--faint); } .login-legal a { color: inherit; } .login-legal a:hover { color: var(--text); }
.login-card .login-switch { background: none; border: 0; color: var(--muted); height: 34px; margin-top: 2px; } .login-card .login-switch:hover { color: var(--accent); background: none; }
a.btn { display: inline-flex; align-items: center; justify-content: center; height: 30px; padding: 0 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; color: var(--text); text-decoration: none; white-space: nowrap; } a.btn:hover { background: var(--hover); text-decoration: none; }

/* ---- phones and small tablets: the sidebar becomes a drawer, tables become compact lists, dialogs fill the screen ---- */
#mbar, #scrim { display: none; }
html { -webkit-text-size-adjust: 100%; }
@media (max-width: 760px) {
  body { font-size: 14px; }
  #app { height: 100vh; height: 100dvh; flex-direction: column; }
  #mbar { display: flex; align-items: center; gap: 10px; flex-shrink: 0; height: 52px; padding: 0 12px 0 8px; background: var(--sidebar); border-bottom: 1px solid var(--line); font-weight: 650; font-size: 15px; letter-spacing: -.01em; }
  #mbar button { width: 38px; height: 38px; padding: 0; border: none; background: none; box-shadow: none; }
  #mbar .logo { flex-shrink: 0; }
  #mbar #m-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #sidebar { position: fixed; z-index: 60; top: 0; bottom: 0; left: 0; width: min(310px, 86vw); transform: translateX(-104%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
  body.nav-open #sidebar { transform: none; }
  #scrim { position: fixed; inset: 0; z-index: 55; background: var(--backdrop); }
  body.nav-open #scrim { display: block; animation: fade .15s; }
  body.nav-open { overflow: hidden; }
  .nav-item { min-height: 42px; }
  .sb-proj .sb-more, .sb-group .sb-gmore { display: inline-grid; opacity: .55; }

  button { height: 36px; }
  input, select, textarea { font-size: 16px !important; } /* below 16px iOS zooms into the field */
  input[type=text], input:not([type]), input[type=date], input[type=password], input[type=email], input[type=url], input[type=search], input[type=number], input[type=tel], select { height: 38px; }

  .topbar { padding: 12px 14px 6px; gap: 10px 8px; }
  .topbar h1 { font-size: 19px; flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar .spacer { display: none; }
  .topbar .filters { flex: 1 1 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .topbar .filters .search { grid-column: 1 / -1; } .search input { width: 100%; } .search svg { top: 11px; }
  .topbar .filters .tb, .topbar .filters .csel-btn { width: 100%; justify-content: center; }
  .topbar > .primary { margin-left: auto; }
  .page-title { padding: 14px 14px 0; }
  .tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px 12px 10px; }
  .tab { text-align: center; padding: 8px 4px; margin: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tab.active { background: var(--accent-soft); border-color: var(--accent); color: var(--text); font-weight: 600; }
  .content { padding: 14px 12px 32px; }
  .chiprow { padding: 8px 12px 0; }
  .grid { grid-template-columns: 1fr; }
  .panel { padding: 14px; }

  /* board: columns side by side, swipe sideways */
  .board { overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -12px; padding: 0 12px 12px; gap: 10px; -webkit-overflow-scrolling: touch; }
  .dlg { z-index: 75; } .popup { z-index: 90; }
  .col { width: calc((100vw - 34px) / 1.5); min-width: 200px; max-width: 300px; scroll-snap-align: start; max-height: calc(100vh - 250px); max-height: calc(100dvh - 250px); min-height: 180px; }
  .cards { overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .card { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
  .card { cursor: pointer; padding: 12px; }
  .col-h .add { opacity: 1; }

  /* tables become compact lists: id, priority, title (+ assignee) */
  .table .tr { grid-template-columns: 62px 20px 1fr 26px; gap: 8px; padding: 0 12px; height: 46px; }
  .table .tr.th { display: none; }
  .table:not(.lv) .tr > :nth-child(4), .table:not(.lv) .tr > :nth-child(5), .table:not(.lv) .tr > :nth-child(6) { display: none; }
  .table.ptable .tr { grid-template-columns: 28px 1fr auto; }
  .table.ptable .tr > :nth-child(3) { display: block; }
  .table.ptable .tr > :nth-child(4), .table.ptable .tr > :nth-child(5), .table.ptable .tr > :nth-child(6) { display: none; }
  .table.trash .tr { grid-template-columns: 62px 20px 1fr; height: auto; padding: 8px 12px; row-gap: 6px; }
  .table.trash .tr > :nth-child(n+4) { display: flex; grid-column: 1 / -1; }
  .table.trash .tr > :nth-child(5) { display: none; }
  .gh { height: 40px; }
  .trash-head { flex-wrap: wrap; }
  .tr .copy { display: none; } .tr .id { white-space: nowrap; }
  .copy { opacity: .7; }

  /* an issue fills the screen; its properties come below the text */
  #modal { padding: 0; }
  .dialog { flex-direction: column; width: 100%; min-height: 100vh; min-height: 100dvh; border: none; border-radius: 0; }
  .dialog .left { padding: 14px 14px 18px; }
  .dialog .right { width: auto; border-left: none; border-top: 1px solid var(--line); padding: 12px 10px 20px; }
  .title-input { font-size: 20px; height: 44px !important; }
  .prop { min-height: 42px; }
  .prop .pl { width: 84px; }
  .md img, .md video { max-width: 100%; }
  .composer .bar2 { gap: 6px; }

  /* dialogs and settings */
  .dlg { padding: 5vh 10px 10px; overflow-y: auto; }
  .dlg form, .dlg form.small, .dlg form.wide, .keys { width: 100%; max-width: 100%; }
  .dlg form.wide { max-height: 92vh; max-height: 92dvh; }
  .dlg .two { grid-template-columns: 1fr; }
  .set-tabs { overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
  .set-tabs button { flex: none; }
  .themes { grid-template-columns: repeat(2, 1fr); }
  .krows { grid-template-columns: 1fr; gap: 4px; }
  .popup { max-width: calc(100vw - 16px); }
  .cmenu-item { padding: 10px 12px; }
  .menu-item { height: 40px; }

  #toasts { left: 12px; right: 12px; bottom: 86px; } /* above the round + button */
  .toast { max-width: none; }
  #selbar { left: 8px; right: 8px; bottom: 8px; transform: none; overflow-x: auto; padding-left: 12px; }

  .tl-tools { flex-wrap: wrap; } .tl-hint { display: none; }
  .tl-left { width: 150px; }
  .tl-scroll { max-height: calc(100vh - 190px); max-height: calc(100dvh - 190px); }
  .lb-nav { width: 36px; height: 52px; } .lb-nav.prev { left: 6px; } .lb-nav.next { right: 6px; }
  .lb-zoom { bottom: 12px; }
}
@media (hover: none) {
  .col-h .add, .comment .ch button, .att .x, .ptile button, .sb-more, .sb-gmore { opacity: 1; }
}

/* Display panel (Linear-style rows with a dropdown, switches and property chips) */
.pover:has(.dp-row) { width: 360px; }
.dp-view { height: 30px; } .dp-view button { height: 100%; padding: 0 12px; }
.dp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; padding: 2px 0; color: var(--muted); }
.dp-row > span:first-child { flex: 1; min-width: 0; }
.dp-ctl { display: flex; align-items: center; gap: 6px; }
.dp-val { height: 28px; min-width: 120px; justify-content: space-between; padding: 0 10px; background: var(--panel); color: var(--text); }
.dp-val.open { border-color: var(--accent); }
.dp-val .lbl { flex: 1; text-align: left; }
.dp-rev { width: 28px; height: 28px; padding: 0; color: var(--muted); font-size: 14px; }
.dp-rev.on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.dp-opts { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 6px; padding: 4px; background: var(--sidebar); border: 1px solid var(--line); border-radius: 9px; }
.dp-opt { height: 30px; justify-content: flex-start; border: none; background: none; box-shadow: none; padding: 0 10px; border-radius: 6px; }
.dp-opt:hover:not(:disabled) { background: var(--hover); }
.dp-opt.on { color: var(--accent); font-weight: 600; }
.dp-opt:disabled { opacity: .4; cursor: not-allowed; }
.dp-sep { height: 1px; background: var(--line); margin: 8px 0; }
.dp-switch { width: 34px; height: 20px; min-height: 0; padding: 2px; border-radius: 10px; background: var(--active); border: none; box-shadow: none; justify-content: flex-start; flex-shrink: 0; transition: background .15s; }
.dp-switch i { width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform .15s; }
.dp-switch.on { background: var(--accent); } .dp-switch.on i { transform: translateX(14px); }
.table.lv .tr { grid-template-columns: var(--cols); }
@media (max-width: 760px) {
  .table.lv .tr { display: flex; align-items: center; gap: 8px; }
  .table.lv .tr .id { width: 62px; flex: none; } .table.lv .tr .title { flex: 1; min-width: 0; }
  .table.lv .tr .c-status, .table.lv .tr .c-ms, .table.lv .tr .c-due { display: none; }
  .table.lv .tr .c-as { flex: none; }
}

/* touch drag and drop on the board */
.touch-ghost { position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none; opacity: .92; box-shadow: var(--shadow-lg); border-color: var(--accent); transform-origin: 0 0; margin: 0; }
body.touch-dragging { overflow: hidden; touch-action: none; -webkit-user-select: none; user-select: none; }
body.touch-dragging .board { scroll-snap-type: none; }
.card.dragging { opacity: .35; }
@media (max-width: 760px) {
  .topbar .seg { grid-column: 1 / -1; flex: 1 1 100%; display: flex; } .topbar .seg button { flex: 1; padding: 0 4px; }
  .topbar:not(:has(.pbadge)) > .primary { flex: 1 1 100%; margin-left: 0; }
}

/* compact phone header: search + icon buttons in one row, tabs in one row, round "+" button for creating */
.tabs-m { display: none; }
.seg a { display: flex; align-items: center; justify-content: center; padding: 0 12px; color: var(--muted); text-decoration: none; }
.seg a.on { background: var(--active); color: var(--text); font-weight: 600; }
.menu-item.sel { color: var(--accent); font-weight: 600; } a.menu-item { display: flex; align-items: center; color: inherit; text-decoration: none; }
@media (max-width: 760px) {
  .topbar { display: block; padding: 8px 12px 4px; }
  .topbar h1, .topbar .pbadge, .topbar .spacer { display: none; }
  .topbar .filters { display: flex; flex-wrap: wrap; gap: 8px; }
  .topbar .filters .search { flex: 1 1 0; min-width: 0; }
  .topbar .filters .tb { position: relative; flex: none; width: 40px; height: 38px; padding: 0; }
  .topbar .filters .tb .lbl { display: none; }
  .tb .badge { position: absolute; top: -5px; right: -5px; }
  .topbar .filters .seg { flex: 1 1 100%; height: 36px; }
  .tabs { display: none; }
  .tabs-m { display: flex; align-items: center; gap: 8px; padding: 6px 12px 8px; flex-shrink: 0; }
  .tabs-m .seg { flex: 1; display: flex; height: 38px; }
  .tabs-m .seg a { flex: 1; padding: 0 4px; font-size: 13.5px; }
  .tabs-m .more { height: 38px; min-width: 40px; padding: 0 12px; font-size: 16px; flex: none; }
  .tabs-m .more.on { border-color: var(--accent); background: var(--accent-soft); color: var(--text); font-weight: 600; font-size: 13.5px; }
  .content { padding: 8px 12px 96px; }
  .fab { position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 9; width: 56px; height: 56px; padding: 0; border-radius: 50%; box-shadow: 0 6px 18px rgba(0,0,0,.38); }
  .fab svg { width: 24px; height: 24px; }
  .fab .lbl { display: none; }
  #main[data-tab=trash] .fab, #main[data-tab=milestones] #new-issue, body:has(#selbar) .fab { display: none; }
  #nm.fab { margin: 0; }
}
@media (max-width: 760px) { .table.lv .tr.th { display: none; } }

/* phones: ONE row of ordinary tabs that scrolls sideways (every tab stays visible, the current one is centred); no separate switcher */
@media (max-width: 760px) {
  .tabs-m { display: none; }
  .tabs { display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; padding: 6px 12px 8px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; padding: 0 16px; height: 38px; display: inline-flex; align-items: center; scroll-snap-align: center; }
  /* milestone cards: heading, status and date wrap instead of squeezing the title */
  .panel .row-flex { flex-wrap: wrap; row-gap: 6px; }
  .panel .row-flex > b { flex: 1 1 100%; }
  .panel .row-flex .chip { white-space: nowrap; }
  .panel a.row-flex { flex-wrap: nowrap; align-items: flex-start; gap: 10px; }
  .panel a.row-flex > .muted { width: auto !important; min-width: 56px; flex: none; }
  .panel a.row-flex > svg { margin-top: 4px; }
  .panel a.row-flex > span:last-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
}
.sidebar-foot a.nav-item { width: 100%; color: var(--muted); } .sidebar-foot a.nav-item:hover, .sidebar-foot a.nav-item.active { color: var(--text); background: var(--hover); text-decoration: none; }

/* notifications about other people's changes: calm card, no side stripe */
.toast.rich { display: flex; align-items: flex-start; gap: 10px; width: 340px; max-width: calc(100vw - 24px); padding: 10px 12px; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); }
.toast.rich.link { cursor: pointer; } .toast.rich.link:hover { background: var(--hover); }
.rt-ico { flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; color: var(--tone); background: color-mix(in srgb, var(--tone) 16%, transparent); }
.rt-ico svg { width: 13px; height: 13px; }
.rt-body { flex: 1; min-width: 0; }
.rt-head { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; color: var(--muted); }
.rt-head b { color: var(--text); font-weight: 600; }
.rt-who { margin-left: auto; color: var(--faint); max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-text { margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.rt-text svg { vertical-align: -2px; }
@media (max-width: 760px) { .toast.rich { width: auto; max-width: none; } }

/* checklists */
.cl { margin: 10px 0 14px; padding: 10px 12px 8px; background: var(--sidebar); border: 1px solid var(--line); border-radius: 10px; }
.cl-h { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.cl-h > svg { width: 16px; height: 16px; }
.cl-title { flex: 1; min-width: 0; font-weight: 600; color: var(--text); background: none !important; border: 1px solid transparent !important; padding: 0 6px !important; height: 28px !important; }
.cl-title:hover { border-color: var(--line) !important; } .cl-title:focus { border-color: var(--accent) !important; background: var(--panel) !important; }
.cl-pct { font-size: 12px; color: var(--muted); min-width: 34px; text-align: right; }
.cl-fold { height: 24px; font-size: 12px; padding: 0 8px; }
.cl-bar { height: 5px; margin: 8px 0 6px; border-radius: 3px; background: var(--active); overflow: hidden; }
.cl-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width .25s; }
.cl-item { display: flex; align-items: center; gap: 8px; min-height: 32px; border-radius: 7px; padding: 0 4px; }
.cl-item:hover { background: var(--hover); }
.cl-box { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; cursor: pointer; }
.cl-box input { position: absolute; opacity: 0; width: 18px; height: 18px; margin: 0; cursor: pointer; }
.cl-box span { width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid var(--faint); background: var(--panel); display: grid; place-items: center; transition: background .12s, border-color .12s; }
.cl-box input:checked + span { background: var(--s-done); border-color: var(--s-done); }
.cl-box input:checked + span::after { content: ''; width: 4px; height: 8px; margin-top: -2px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cl-box input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); }
.cl-text { flex: 1; min-width: 0; background: none !important; border: 1px solid transparent !important; padding: 0 6px !important; height: 28px !important; }
.cl-text:hover { border-color: var(--line) !important; } .cl-text:focus { border-color: var(--accent) !important; background: var(--panel) !important; }
.cl-item.done .cl-text { color: var(--muted); text-decoration: line-through; }
.cl-x { width: 24px; height: 24px; opacity: 0; } .cl-item:hover .cl-x, .cl-x:focus-visible { opacity: 1; }
.cl-new input { margin-top: 4px; height: 30px; background: none; border-style: dashed; }
.cl-new input:focus { background: var(--panel); border-style: solid; }
.cl-chip.full { background: color-mix(in srgb, var(--s-done) 18%, transparent); color: var(--s-done); }
@media (hover: none) { .cl-x { opacity: .7; } }
.cl-h { flex-wrap: wrap; row-gap: 4px; } .cl-title { flex: 1 1 140px; }

/* calendar view */
.cal-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; } .cal-bar b { font-size: 16px; text-transform: capitalize; min-width: 150px; text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); }
.cal-dow { padding: 6px 8px; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); background: var(--sidebar); border-bottom: 1px solid var(--line); }
.cal-day { min-height: 112px; padding: 4px 5px 5px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; cursor: pointer; min-width: 0; }
.cal-day:nth-child(7n) { border-right: none; }
.cal-day.out { background: color-mix(in srgb, var(--sidebar) 60%, transparent); } .cal-day.out .cal-n { color: var(--faint); }
.cal-day:hover { background: var(--hover); } .cal-day.over { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.cal-day.sel .cal-n { background: var(--accent); color: var(--on-accent); }
.cal-top { display: flex; align-items: center; justify-content: space-between; }
.cal-n { min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; display: inline-grid; place-items: center; font-size: 12.5px; font-weight: 550; }
.cal-day.today .cal-n { box-shadow: inset 0 0 0 1.5px var(--accent); }
.cal-day.today.sel .cal-n { box-shadow: none; }
.cal-add { width: 20px; height: 20px; padding: 0; opacity: 0; } .cal-day:hover .cal-add, .cal-add:focus-visible { opacity: 1; }
.cal-list { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal-chip { display: flex; align-items: center; gap: 5px; min-width: 0; padding: 2px 6px; border-radius: 6px; background: var(--sidebar); border: 1px solid var(--line); color: var(--text); font-size: 12px; text-decoration: none; cursor: pointer; }
.cal-chip:hover { border-color: var(--faint); text-decoration: none; } .cal-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-chip.closed { opacity: .6; } .cal-chip.closed span { text-decoration: line-through; } .cal-chip.dragging { opacity: .35; }
.cal-more { height: 20px; padding: 0 6px; font-size: 11.5px; color: var(--muted); background: none; border: none; box-shadow: none; justify-content: flex-start; }
.cal-dots { display: none; gap: 3px; flex-wrap: wrap; } .cal-dots i { width: 6px; height: 6px; border-radius: 50%; }
.cal-agenda { margin-top: 14px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.cal-agenda-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-agenda-l { display: flex; flex-direction: column; gap: 4px; } .cal-agenda-l .cal-chip { padding: 6px 8px; font-size: 13px; }
.cal-un { margin-top: 12px; padding: 10px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; } .cal-un summary { cursor: pointer; font-weight: 600; }
@media (max-width: 760px) {
  .cal-bar b { flex: 1; min-width: 0; }
  .cal-day { min-height: 54px; padding: 3px; align-items: center; }
  .cal-list, .cal-add { display: none; } .cal-dots { display: flex; justify-content: center; }
  .cal-dow { padding: 6px 2px; text-align: center; font-size: 10.5px; }
}

/* workspace switcher */
.ws-item { justify-content: flex-start; } .ws-item .nm { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ws-item .muted { font-size: 12px; }
.inv-link { width: 100%; margin-top: 4px; height: 28px; font-size: 12px; color: var(--muted); }

/* workspace switcher = the header of the sidebar (top left) */
.brand.ws-head { width: 100%; height: auto; margin: 0 0 8px; padding: 6px 8px; background: none; border: none; box-shadow: none; border-radius: 9px; justify-content: flex-start; text-align: left; cursor: pointer; font: inherit; font-weight: 650; }
.brand.ws-head:hover { background: var(--hover); }
.brand.ws-head .nm { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand.ws-head .chev { color: var(--faint); font-size: 11px; margin-left: -2px; }
.ws-ava { color: #fff; font-size: 12px; font-weight: 700; flex: none; }
.ws-item { justify-content: flex-start; gap: 9px; } .ws-item .nm { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ws-item .muted { font-size: 12px; }
