:root {
  --bg: #ffffff; --side: #f7f7f5; --ink: #37352f; --dim: #787774; --faint: #9b9a97; --line: #e9e9e7; --hover: #f1f1ef;
  --card: #ffffff; --preview: #f7f7f5; --callout: #f1f1ef; --blue: #2383e2; --accent: #4f8a2c;
  --p-grey: #e3e2e0; --p-grey-i: #91918e; --p-green: #dbeddb; --p-green-i: #6c9b7d; --p-blue: #d3e5ef; --p-blue-i: #5b97bd;
  --p-yellow: #fdecc8; --p-yellow-i: #cb912f; --p-orange: #fadec9; --p-red: #ffe2dd; --p-red-i: #e16f64; --p-purple: #e8deee;
  --p-pink: #f5e0e9; --p-brown: #eee0da; --avatar: #c3cbdd; --shadow: 0 1px 2px rgba(15, 15, 15, .08), 0 0 0 1px rgba(15, 15, 15, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #191919; --side: #202020; --ink: #e6e6e4; --dim: #9b9b9b; --faint: #7f7f7f; --line: #2f2f2f; --hover: #2a2a2a;
    --card: #232323; --preview: #2a2a2a; --callout: #262626; --blue: #529cca; --accent: #9be564;
    --p-grey: #373737; --p-grey-i: #9b9b9b; --p-green: #2b593f; --p-green-i: #6fcf97; --p-blue: #28456c; --p-blue-i: #7fb4dc;
    --p-yellow: #5b4a1f; --p-yellow-i: #e0b252; --p-orange: #5c3b23; --p-red: #5e2b28; --p-red-i: #f08a80; --p-purple: #492f64;
    --p-pink: #56283f; --p-brown: #4a3228; --avatar: #3a4254; --shadow: 0 0 0 1px rgba(255, 255, 255, .09);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.i.hire { color: #5b7fa6; }

/* shell */
.shell { display: flex; min-height: 100vh; }
.side { width: 248px; flex: none; background: var(--side); border-right: 1px solid var(--line); padding: 10px 8px 60px; position: sticky; top: 0; height: 100vh; overflow-y: auto; font-size: 14px; }
.ws { display: grid; grid-template-columns: 26px 1fr; column-gap: 8px; align-items: center; padding: 6px 8px 12px; font-weight: 600; }
.ws .mark { width: 24px; height: 24px; grid-row: span 2; fill: none; stroke: currentColor; color: var(--accent); }
.ws small { font-weight: 400; color: var(--dim); font-size: 12px; line-height: 1.1; }
.side-h { margin: 16px 8px 4px; font-size: 11.5px; font-weight: 600; color: var(--faint); letter-spacing: .02em; }
.side-a { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 5px; color: var(--dim); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-a:hover, .side-a.on { background: var(--hover); color: var(--ink); }
.side-a.dim { font-weight: 400; }
.side-foot { position: fixed; bottom: 0; left: 0; width: 248px; padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; background: var(--side); border-top: 1px solid var(--line); border-right: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.side-foot button { border: 0; background: none; color: var(--dim); cursor: pointer; padding: 2px 6px; border-radius: 4px; }
.side-foot button:hover { background: var(--hover); color: var(--ink); }
.main { flex: 1; min-width: 0; }
.crumbs { height: 44px; display: flex; align-items: center; gap: 6px; padding: 0 16px; font-size: 14px; color: var(--ink); position: sticky; top: 0; background: var(--bg); z-index: 5; white-space: nowrap; overflow: hidden; }
.crumbs a { padding: 2px 6px; border-radius: 4px; }
.crumbs a:hover { background: var(--hover); }
.crumbs i { color: var(--faint); font-style: normal; }
.crumbs span { padding: 2px 6px; overflow: hidden; text-overflow: ellipsis; }
.page { max-width: 900px; margin: 0 auto; padding: 36px 96px 30vh; }

/* headings */
.pageicon { width: 78px; height: 78px; margin: 24px 0 6px; display: flex; align-items: center; justify-content: center; }
.pageicon .i { width: 64px; height: 64px; stroke-width: 1.1; color: var(--accent); }
.pageicon .tile { width: 72px; height: 72px; font-size: 28px; border-radius: 12px; }
.pageicon.person { border-radius: 50%; background: var(--avatar); margin-top: -40px; position: relative; border: 4px solid var(--bg); font-size: 26px; font-weight: 600; color: #fff; }
.pageicon.person .i { width: 46px; height: 46px; color: #fff; }
h1 { margin: 4px 0 10px; font-size: 40px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
h1.noicon { margin-top: 48px; }
h1.dbtitle { font-size: 32px; }
h2 { margin: 0; font-size: 24px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
h2 .i { width: 22px; height: 22px; color: var(--accent); }
h3 { margin: 28px 0 6px; font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
h3 .i { width: 18px; height: 18px; color: var(--accent); }
h3.big { font-size: 24px; margin-top: 40px; }
h3.big .i { width: 22px; height: 22px; }
h3.plain { font-size: 20px; }
h4 { margin: 0; font-size: 16px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
h4.dbh { display: flex; margin: 30px 0 8px; font-size: 14.5px; }
.hint { color: var(--dim); margin: 2px 0 8px; }
ul.hint { padding-left: 22px; }
.hint em, .roll em { font-style: normal; color: var(--faint); }
.hint a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line); }
.hint.q { margin-top: 30px; color: var(--ink); }
.hint.fat { margin: 6px 0 2px 0; }
.empty { color: var(--faint); }
.dim { color: var(--dim); }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }

/* inline editing */
.e { width: 100%; border: 0; background: transparent; padding: 3px 6px; margin: 0 -6px; border-radius: 4px; outline: none; resize: none; overflow: hidden; display: block; line-height: 1.5; }
.e::placeholder { color: var(--faint); opacity: 1; }
.e:hover { background: var(--hover); }
.e:focus { background: var(--hover); box-shadow: inset 0 0 0 1px var(--line); }
.e.h1 { font-size: 40px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; padding: 2px 6px; }
.e.b { font-weight: 600; }
.e.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; background: var(--callout); margin: 6px 0; padding: 12px 14px; min-height: 80px; white-space: pre-wrap; }
.e.body { min-height: 160px; margin-top: 18px; }
.e.small { font-size: 14px; color: var(--dim); }
.e.saved { animation: saved .9s; }
.e.failed { box-shadow: inset 0 0 0 1px var(--p-red-i); }
@keyframes saved { from { box-shadow: inset 0 0 0 1px var(--p-green-i); } to { box-shadow: inset 0 0 0 1px transparent; } }
input[type=date].e { width: auto; min-width: 118px; color-scheme: light dark; }
input[type=date].e.blank:not(:focus)::-webkit-datetime-edit { color: transparent; }
input[type=date].e.blank:not(:focus)::-webkit-calendar-picker-indicator { opacity: .3; }
select.e.sel:has(option[value=""]:checked) { color: var(--faint); }
select.e.sel { width: auto; appearance: none; -webkit-appearance: none; cursor: pointer; padding: 1px 8px; margin: 0; font-size: 13.5px; font-weight: 400; }
select.pillsel { border-radius: 10px; background: var(--p-grey); padding: 1px 10px; }
select.pillsel.v-active, select.pillsel.v-done, select.pillsel.v-complete { background: var(--p-green); }
select.pillsel.v-in-progress { background: var(--p-yellow); }
select.pillsel.v-not-started { background: var(--p-grey); }
select.pillsel.v-someday-maybe { background: var(--p-purple); }
select.pillsel.v-paused { background: var(--p-orange); }
select.tagsel { border-radius: 3px; background: var(--p-yellow); padding: 0 6px; }
select.tagsel.v-none { background: transparent; color: var(--faint); }
select.tagsel.v-strategy { background: var(--p-orange); } select.tagsel.v-sop { background: var(--p-green); } select.tagsel.v-automation { background: var(--p-blue); }
select.tagsel.v-fulfilment { background: var(--p-blue); } select.tagsel.v-sales { background: var(--p-pink); }
select.tagsel.v-need-to-hire { background: var(--p-blue); } select.tagsel.v-team { background: var(--p-green); }
select.tagsel.v-weekly { background: var(--p-purple); } select.tagsel.v-quarterly { background: var(--p-brown); }

/* pills and tags */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 0 8px 0 7px; border-radius: 10px; background: var(--p-grey); font-size: 13px; line-height: 20px; white-space: nowrap; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--p-grey-i); }
.pill.s-active, .pill.s-done, .pill.s-complete { background: var(--p-green); } .pill.s-active i, .pill.s-done i, .pill.s-complete i { background: var(--p-green-i); }
.pill.s-in-progress { background: var(--p-yellow); } .pill.s-in-progress i { background: var(--p-yellow-i); }
.pill.s-someday-maybe { background: var(--p-purple); } .pill.s-paused { background: var(--p-orange); }
.tag { display: inline-block; padding: 0 6px; border-radius: 3px; background: var(--p-grey); font-size: 13px; line-height: 20px; white-space: nowrap; border: 0; }
.tag.d-marketing, .tag.pr-medium, .tag.k4 { background: var(--p-yellow); } .tag.d-fulfilment, .tag.k1, .tag.ty-automation { background: var(--p-blue); }
.tag.d-sales, .tag.k2 { background: var(--p-pink); } .tag.f-weekly, .tag.k3 { background: var(--p-purple); } .tag.f-monthly { background: var(--p-yellow); }
.tag.f-quarterly, .tag.k5 { background: var(--p-brown); } .tag.k0, .tag.ty-sop { background: var(--p-green); } .tag.k6, .tag.pr-high { background: var(--p-red); }
.tag.k7, .tag.ty-strategy { background: var(--p-orange); }
.tile { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex: none; border-radius: 4px; font-size: 9.5px; font-weight: 700; color: #fff; letter-spacing: -.02em; vertical-align: -3px; background: #111; }
.tile.t1 { background: #d9453d; } .tile.t2 { background: #c13584; } .tile.t3 { background: #1d9bf0; } .tile.t4 { background: #4f8a2c; } .tile.t5 { background: #7b61c9; } .tile.t6 { background: #c98a1e; } .tile.t7 { background: #2a8f86; }

/* properties */
.props { margin: 6px 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.prop { display: grid; grid-template-columns: 176px 1fr; align-items: center; min-height: 34px; font-size: 14.5px; }
.prop.top { align-items: start; }
.prop > label { color: var(--dim); display: flex; align-items: center; gap: 7px; padding: 6px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prop.top > div { padding-top: 5px; }
.bar { display: flex; align-items: center; gap: 10px; }
.bar i { width: 164px; height: 4px; border-radius: 2px; background: var(--line); display: block; overflow: hidden; }
.bar b { display: block; height: 100%; background: var(--p-green-i); }
.dates { display: flex; align-items: center; gap: 8px; }
.syslist { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.syslist a { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.syslist a span, .rel-row a span, .rowlink span { border-bottom: 1px solid var(--line); }
.syslist a:hover span, .rel-row a:hover span, .rowlink:hover span { border-color: var(--dim); }
.syslist details summary, .more > summary { color: var(--dim); cursor: pointer; list-style: none; font-size: 14px; padding: 4px 0; }
.syslist details summary::-webkit-details-marker, .more > summary::-webkit-details-marker { display: none; }
.syslist details[open] { display: flex; flex-direction: column; gap: 5px; }
.more > summary::before { content: "⌄  "; }
.more[open] > summary::before { content: "⌃  "; }
.overview b { display: block; font-weight: 600; } .overview b.ns { color: #b23b33; } .overview b.ip { color: #b5651d; margin-top: 10px; }
.overview b i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #d9453d; vertical-align: -1px; } .overview b.ip i { background: #e08a2b; }
.overview div { padding-left: 34px; } .overview details { padding-left: 34px; } .overview details div { padding-left: 0; } .overview summary { color: var(--dim); list-style: none; font-size: 14px; }
.ql { margin: 4px 0 4px; padding-left: 22px; } .ql li { margin: 3px 0; } .ql a { border-bottom: 1px solid var(--line); font-weight: 500; } .ql a:hover { border-color: var(--dim); } .overview div .i { margin: 0 5px 0 2px; } .overview div span { border-bottom: 1px solid var(--line); font-weight: 500; }
.lastran, .linkfield { display: flex; align-items: center; gap: 8px; }
.linkfield a, a.open { color: var(--blue); font-size: 13.5px; white-space: nowrap; }
.ghost { border: 1px solid var(--line); background: none; border-radius: 5px; padding: 2px 9px; font-size: 13px; color: var(--dim); cursor: pointer; white-space: nowrap; }
.ghost:hover { background: var(--hover); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 2px; } .chip a { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; border-bottom: 1px solid var(--line); }
.chip-add input, .rel-add input, .newrow input, .card.new input { border: 0; background: transparent; outline: none; width: 100%; padding: 2px 0; }
.chip-add { flex: 1; min-width: 170px; } .chip-add input::placeholder, .rel-add input::placeholder, .newrow input::placeholder, .card.new input::placeholder { color: var(--faint); opacity: 1; }
.skills { display: flex; flex-wrap: wrap; gap: 5px; } .skills .tag { cursor: pointer; opacity: .38; } .skills .tag.on { opacity: 1; box-shadow: 0 0 0 1px var(--dim); }
.x { border: 0; background: none; color: var(--faint); cursor: pointer; border-radius: 4px; padding: 0 6px; font-size: 15px; line-height: 20px; opacity: 0; }
.x:hover { background: var(--hover); color: var(--ink); }
*:hover > form > .x, *:hover > .x, tr:hover .x, .x:focus { opacity: 1; }

/* inline relations */
.rel { padding: 8px 0 10px; border-bottom: 1px solid var(--line); }
.rel header { display: flex; align-items: center; gap: 7px; color: var(--dim); font-size: 14.5px; padding: 2px 0 4px; }
.rel-row { display: flex; align-items: center; justify-content: space-between; padding: 3px 0; border-radius: 4px; }
.rel-row:hover { background: var(--hover); }
.rel-row a { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.reltask { display: flex; align-items: center; gap: 8px; flex: 1; font-weight: 500; } .reltask.done > span, .reltask.done .e { color: var(--faint); text-decoration: line-through; }
.reltask > span:not(.pill) { border-bottom: 1px solid var(--line); } .reltask input.e, .reltask textarea.e { flex: 1; width: auto; } .reltask select.e { flex: none; }
.rel-add, .newrow form, .card.new { display: flex; align-items: center; gap: 8px; color: var(--faint); }
.plus { color: var(--faint); width: 16px; text-align: center; flex: none; }
.notes > summary { list-style: none; cursor: pointer; color: var(--dim); display: inline-flex; gap: 7px; align-items: center; padding: 8px 0; font-weight: 500; }
.notes > summary::-webkit-details-marker { display: none; } .notes em { font-style: normal; color: var(--faint); }
.note { position: relative; padding: 6px 12px; margin: 4px 0; background: var(--callout); border-radius: 4px; } .note form { position: absolute; right: 4px; top: 4px; }
.two { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; margin: 18px 0 44px; padding-top: 10px; border-top: 1px solid var(--line); }
.two h3 { margin-top: 12px; }

/* checkboxes */
.todo { display: flex; align-items: flex-start; gap: 9px; padding: 3px 0 3px 2px; cursor: pointer; }
.todo.sub { margin-left: 54px; } .indent { margin-left: 28px; } .two .todo { margin-left: 28px; }
.todo input, .w-done input { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; flex: none; margin: 4px 0 0; border: 1.5px solid var(--ink); border-radius: 2px; cursor: pointer; background: transparent; }
.w-done input { margin: 0; vertical-align: -3px; }
.todo input:checked, .w-done input:checked { background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.500 8.200l3 3 6-6.400' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center/14px no-repeat; border-color: var(--blue); }
.todo.done > span { color: var(--faint); text-decoration: line-through; }
.todo em { font-style: normal; color: var(--dim); }
.todo.mini { font-size: 11.5px; gap: 6px; cursor: inherit; padding: 0; } .todo.mini input { width: 11px; height: 11px; margin-top: 3px; border-width: 1px; }
.subnote { margin-left: 26px; } .subnote .e:placeholder-shown:not(:focus) { height: 6px !important; min-height: 0; padding: 0; opacity: 0; } .subnote:hover .e:placeholder-shown { height: auto !important; opacity: 1; padding: 3px 6px; }

/* lists typed in a textarea */
.e.bullets, .e.numbered { padding-left: 26px; margin-left: 0; background-image: none; }
.listwrap { position: relative; }
.callout { display: flex; gap: 10px; align-items: flex-start; background: var(--callout); border-radius: 4px; padding: 13px 14px; margin: 6px 0; }
.callout > .i { margin-top: 5px; color: var(--p-yellow-i); width: 18px; height: 18px; } .callout .e { margin: 0; }
.callout.embed > .i { color: var(--dim); }
.mk { width: 20px; height: 20px; border-radius: 4px; color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; margin-top: 4px; flex: none; }
.mk.ok { background: #35b25a; } .mk.no { background: none; color: #d9453d; font-size: 20px; font-weight: 700; }

/* toggles */
details > summary { cursor: pointer; }
.stage { border-bottom: 1px solid var(--line); }
.stage > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 14px 0 12px; }
.stage > summary::-webkit-details-marker, .sub > summary::-webkit-details-marker, .group > summary::-webkit-details-marker, details.q > summary::-webkit-details-marker { display: none; }
.stage > summary::before, .sub > summary::before, .group > summary::before, details.q > summary::before { content: ""; width: 0; height: 0; border: 5px solid transparent; border-left: 8px solid var(--ink); border-right: 0; margin: 0 6px 0 4px; flex: none; transition: transform .12s; }
.stage[open] > summary::before, .sub[open] > summary::before, .group[open] > summary::before, details.q[open] > summary::before { transform: rotate(90deg); }
.stage-b { padding: 4px 0 36px 26px; border-top: 1px solid var(--line); }
.sub { margin: 14px 0 4px; } .sub > summary { list-style: none; display: flex; align-items: center; padding: 4px 0; }
.sub > *:not(summary) { margin-left: 24px; }
.group { border-top: 1px solid var(--line); padding: 6px 0; } .group > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 5px 0; font-weight: 500; }
.group > summary a { border-bottom: 1px solid var(--line); } .group > summary em, .tabbar em { font-style: normal; color: var(--faint); font-weight: 400; margin-left: 4px; }
details.q { padding: 3px 0; } details.q > summary { list-style: none; display: flex; align-items: center; } details.q > .e { margin-left: 22px; width: calc(100% - 22px); color: var(--ink); }
.danger { margin-top: 90px; color: var(--faint); font-size: 13px; } .danger summary { list-style: none; } .danger form { margin-top: 8px; display: flex; gap: 10px; align-items: center; }
.danger button { border: 1px solid var(--p-red-i); background: none; color: var(--p-red-i); border-radius: 5px; padding: 2px 10px; cursor: pointer; }

/* database tables */
table.db { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 2px 0 6px; }
table.db th { text-align: left; font-weight: 400; color: var(--dim); padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.db th .i { margin-right: 6px; width: 14px; height: 14px; }
table.db td { padding: 3px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.db td + td, table.db th + th { border-left: 1px solid var(--line); }
table.db td.w-x, table.db th.w-x, table.db td.tick + td, table.db th.tick + th { border-left: 0; }
table.db td .e { margin: 0; padding: 3px 4px; font-weight: 500; }
table.db tr.done td .e[data-edit$=":name"], table.db tr.done td .e[data-edit$=":objective"] { color: var(--faint); text-decoration: line-through; }
table.db a { border-bottom: 1px solid var(--line); } table.db a.rowlink { border: 0; display: inline-flex; gap: 8px; align-items: center; font-weight: 500; }
.tick { width: 26px; padding-right: 0 !important; } .w-status { width: 138px; } .w-sys { width: 176px; } .w-due { width: 136px; } .w-done { width: 86px; text-align: left; } .w-own { width: 96px; } .w-mis { width: 150px; } .w-x { width: 30px; padding: 0 !important; }
.w-sys a { display: inline-block; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.tickbox { width: 17px; height: 17px; border-radius: 4px; border: 1.5px solid var(--dim); background: transparent; cursor: pointer; padding: 0; display: block; flex: none; }
.tickbox.on { background: var(--dim) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.500 8.200l3 3 6-6.400' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center/13px no-repeat; }
.newrow td { border-bottom: 0 !important; padding: 5px 8px !important; }
table.wide { font-size: 14px; }

/* galleries */
.gallery { display: grid; gap: 14px; margin: 8px 0 10px; } .g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); }
.card { display: flex; flex-direction: column; background: var(--card); border-radius: 5px; box-shadow: var(--shadow); overflow: hidden; min-height: 76px; }
a.card:hover { background: var(--hover); }
.preview { background: var(--preview); height: 104px; padding: 10px 12px; font-size: 11.5px; color: var(--dim); overflow: hidden; border-bottom: 1px solid var(--line); line-height: 1.45; }
.preview b { display: block; font-size: 13.5px; color: var(--ink); margin: 3px 0 2px; } .preview ol { margin: 0; padding-left: 20px; }
.card-b { padding: 9px 11px 11px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.card-t { display: flex; gap: 7px; align-items: flex-start; font-weight: 500; font-size: 14.5px; line-height: 1.4; } .card-t .i, .card-t .tile { margin-top: 2px; }
.card-task { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; line-height: 1.4; } .card-task .i { width: 13px; height: 13px; margin-top: 2px; color: var(--dim); }
.card-task span { border-bottom: 1px solid var(--line); } .card-task.done span { color: var(--faint); text-decoration: line-through; }
.card-meta { font-size: 12.5px; color: var(--dim); }
.card-tools { display: flex; flex-wrap: wrap; gap: 3px 10px; font-size: 12.5px; } .card-tools .i { width: 12px; height: 12px; margin-right: 4px; color: var(--dim); }
.card-tags { display: flex; flex-wrap: wrap; gap: 4px; } .card-tags .tag { font-size: 12px; line-height: 18px; }
.card.new { box-shadow: 0 0 0 1px var(--line); background: none; flex-direction: row; padding: 0 12px; min-height: 46px; align-self: start; }
.avatar { height: 150px; background: var(--preview); display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--line); font-size: 34px; font-weight: 600; color: var(--faint); }
.avatar span { align-self: center; } .avatar.hire { background: var(--bg); } .avatar.hire svg { height: 100%; background: var(--avatar); fill: #fff; aspect-ratio: 1.1; }
.cover { height: 72px; margin: 0 -96px; background: var(--preview); overflow: hidden; display: flex; justify-content: center; } .cover.hire { background: var(--avatar); height: 190px; } .cover.hire svg { height: 100%; fill: #fff; }
.tabbar { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-top: 18px; }
.tabbar button, .tabbar a { border: 0; background: none; padding: 6px 8px; cursor: pointer; color: var(--dim); display: inline-flex; gap: 6px; align-items: center; font-weight: 500; font-size: 14.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabbar .on { color: var(--ink); border-bottom-color: var(--ink); }
.created { margin: 14px 0; } .sop-top { border: 0; margin: 8px 0 20px; padding: 0; }
.index { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; } .index a { display: inline-flex; gap: 6px; align-items: center; border-bottom: 1px solid var(--line); color: var(--dim); }
.jd { margin: 4px 0; }

/* link map */
.linkmap { width: 100%; height: auto; margin: 14px 0 6px; }
.linkmap .node rect { fill: var(--card); stroke: var(--line); stroke-width: 1.5; } .linkmap .hub rect { stroke: var(--accent); stroke-width: 2; fill: var(--preview); }
.linkmap text { fill: var(--ink); font-size: 15px; font-weight: 600; text-anchor: middle; } .linkmap text.sub { font-size: 11.5px; font-weight: 400; fill: var(--dim); }
.linkmap .edges path { stroke: var(--faint); stroke-width: 1.5; fill: none; } .linkmap .edges path.roll { stroke-dasharray: 4 4; }
.linkmap .labels text { font-size: 11.5px; font-weight: 500; fill: var(--dim); text-anchor: start; } .linkmap .labels text.mid { text-anchor: middle; } .linkmap .labels text.end { text-anchor: end; }
.links-table td:nth-child(2) { color: var(--dim); } .links-table td { padding: 7px 8px !important; vertical-align: top !important; }
.rules { padding-left: 22px; } .rules li { margin: 5px 0; }

/* sign in */
body.login { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--side); }
.login form { width: 340px; background: var(--bg); padding: 30px 30px 26px; border-radius: 10px; box-shadow: var(--shadow); }
.login .mark { width: 40px; height: 40px; color: var(--accent); } .login h1 { font-size: 24px; margin: 10px 0 2px; } .login p { color: var(--dim); margin: 0 0 18px; font-size: 14px; }
.login label { display: block; font-size: 13px; color: var(--dim); margin: 12px 0; } .login input { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }
.login button { width: 100%; margin-top: 8px; padding: 9px; border: 0; border-radius: 6px; background: var(--ink); color: var(--bg); font-weight: 600; cursor: pointer; }
.login .err { background: var(--p-red); padding: 8px 10px; border-radius: 6px; font-size: 14px; }

@media (max-width: 1100px) { .page { padding: 28px 40px 30vh; } .cover { margin: 0 -40px; } }
@media (max-width: 820px) {
  .side { display: none; } .page { padding: 18px 16px 30vh; } .cover { margin: 0 -16px; } h1, .e.h1 { font-size: 30px; }
  .g2, .g3, .two { grid-template-columns: 1fr; } .prop { grid-template-columns: 132px 1fr; } .stage-b { padding-left: 6px; }
  .w-sys, .w-due { width: auto; } table.db { display: block; overflow-x: auto; } .x { opacity: 1; }
}
