:root {
  color-scheme: dark;
  --bg: #191919;
  --panel: #202020;
  --text: #eeeeec;
  --muted: #9b9b98;
  --line: #303030;
  --hover: #ffffff0b;
  --blue: #3d7bcb;
  --page-gutter: clamp(24px, 8.67vw, 104px);
  --column-width: 276px;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: transparent; border: 0; cursor: pointer; }
button:hover { background: var(--hover); }
button:disabled { cursor: wait; opacity: .5; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible, a:focus-visible { outline: 2px solid #529cca; outline-offset: 2px; }
a { color: inherit; }
svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); }
.icon-button { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border-radius: 5px; color: #adada9; }
.icon-button svg { width: 16px; height: 16px; }
.topbar { position: sticky; top: 0; z-index: 4; height: 44px; display: flex; gap: 7px; align-items: center; padding: 0 11px; background: var(--bg); }
.workspace-mark { display: grid; place-items: center; width: 19px; height: 19px; color: #c7c7c4; background: #303030; border-radius: 4px; font-size: 12px; }
#sidebar { position: fixed; z-index: 3; top: 44px; bottom: 0; left: 0; width: 244px; padding: 16px 10px; background: #202020; border-right: 1px solid #2a2a2a; }
#sidebar a, #sidebar button { display: block; width: 100%; text-decoration: none; text-align: left; padding: 9px 10px; border-radius: 5px; color: #c4c4c0; }
#sidebar a:hover { background: var(--hover); }
.sidebar-open main { margin-left: 244px; }
main { padding: 156px 0 96px; scroll-margin-top: 44px; }
.intro, .database > h2, .toolbar, #notice { margin-left: var(--page-gutter); margin-right: var(--page-gutter); }
h1 { font-size: 40px; font-weight: 700; line-height: 1.15; letter-spacing: -.7px; margin: 0 0 24px; }
.intro p { font-size: 16px; line-height: 1.52; margin: 0 0 16px; }
.intro p:last-child { margin-bottom: 12px; }
.text-link { display: inline; text-decoration: underline; text-decoration-color: #ffffff45; text-underline-offset: 3px; border-radius: 3px; padding: 1px 2px; font-weight: 550; }
.text-link svg { vertical-align: middle; margin-right: 3px; }
.database { scroll-margin-top: 56px; margin-bottom: 35px; }
.database > h2 { font-size: 24px; line-height: 1.2; margin-top: 0; margin-bottom: 14px; letter-spacing: -.28px; }
.toolbar { min-height: 34px; display: flex; align-items: center; justify-content: space-between; position: relative; gap: 8px; margin-bottom: 10px; }
.views, .controls { display: flex; gap: 3px; align-items: center; white-space: nowrap; }
.views { min-width: 0; }
.controls { flex: 0 0 auto; }
.view { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 99px; color: #adada9; line-height: 1; }
.view svg { width: 15px; height: 15px; }
.view.selected { background: #292929; color: var(--text); }
.view.selected:hover { background: #303030; }
.overflow-toggle { display: none; }
.new-button { display: flex; overflow: hidden; margin-left: 2px; border-radius: 6px; background: var(--blue); color: white; }
.new-button button { height: 28px; padding: 0 8px; font-weight: 550; }
.new-button .new-arrow { display: grid; place-items: center; width: 24px; padding: 0; border-left: 1px solid #ffffff30; }
.new-arrow svg { width: 14px; height: 14px; }
.new-button button:hover, .primary:hover { background: #ffffff18; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 4px); z-index: 3; min-width: 218px; max-width: min(390px, 90vw); border: 1px solid #3b3b3b; background: #252525; border-radius: 8px; box-shadow: 0 8px 24px #0008; padding: 6px; }
.menu-panel input, .menu-panel select { width: 100%; min-width: 0; }
.menu-option { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border-radius: 4px; padding: 8px; }
.filter-row { display: grid; grid-template-columns: 90px minmax(110px,1fr); gap: 6px; align-items: center; padding: 3px; }
.board-scroll, .table-scroll { overflow-x: auto; scrollbar-width: thin; padding: 0 var(--page-gutter) 8px; }
.matrix { min-width: max-content; }
.lane { display: flex; align-items: stretch; gap: 12px; }
.column { width: var(--column-width); flex: 0 0 var(--column-width); min-height: 76px; border-radius: 11px; padding: 7px; background: var(--column, #ffffff04); }
.column.drop-target { box-shadow: inset 0 0 0 2px #529cca; }
.column-head { display: flex; gap: 10px; align-items: center; padding: 0 4px 5px; min-height: 34px; }
.column-head .tag { font-size: 14px; font-weight: 550; }
.column-add { margin-left: auto; opacity: 0; }
.column:hover .column-add, .column:focus-within .column-add { opacity: 1; }
.count { color: var(--count, var(--muted)); }
.header-only { min-height: 41px; }
.header-only .column-head { padding-bottom: 0; min-height: 26px; }
.swimlane { margin: 5px 0 10px; }
.swimlane summary { padding: 6px 7px; cursor: pointer; font-weight: 550; }
.swimlane .column { min-height: 65px; }
.card { background: var(--card, #2a2a28); border: 1px solid #ffffff07; box-shadow: 0 1px 2px #0002; border-radius: 11px; margin-bottom: 5px; padding: 10px; cursor: pointer; }
.card:hover { border-color: #ffffff20; filter: brightness(1.07); }
.card.dragging { opacity: .42; }
.card-title { display: flex; align-items: flex-start; gap: 8px; text-align: left; width: 100%; padding: 0; font-weight: 550; line-height: 1.56; overflow-wrap: anywhere; }
.card-title:hover { background: transparent; }
.card-title svg { color: #adada8; margin-top: 2px; width: 17px; height: 17px; }
.card-property { margin-top: 8px; font-size: 12px; overflow-wrap: anywhere; }
.card-property .people, .card-property .person-line { line-height: 1.55; }
.card-property .tag { font-size: 11px; }
.comment-count { color: #c7c6c3; display: flex; gap: 4px; align-items: center; margin-top: 8px; font-size: 12px; }
.comment-count svg { width: 13px; height: 13px; }
.tag-list, .people, .relations { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.tag { display: inline-block; width: fit-content; max-width: 100%; border-radius: 4px; padding: 1px 5px 2px; background: var(--tag, #ffffff20); color: var(--tag-text, #f0eeeb); line-height: 1.32; white-space: normal; }
.tone-gray { --tag: #575753; --tag-text: #eeedea; --column: #222221; --card: #2b2b29; --count: #a6a5a2; }
.tone-blue { --tag: #385783; --tag-text: #e0ebff; --column: #1c222a; --card: #222e3f; --count: #7098d0; }
.tone-orange { --tag: #865538; --tag-text: #f8e3d3; --column: #25201c; --card: #382b20; --count: #c68b67; }
.tone-purple { --tag: #634b77; --tag-text: #f0e3fc; --column: #24202a; --card: #342a40; --count: #b49ac8; }
.tone-yellow { --tag: #7c6332; --tag-text: #faedc6; --column: #25231c; --card: #383120; --count: #c2a86c; }
.tone-pink { --tag: #753b60; --tag-text: #f7daed; --column: #282027; --card: #39283a; --count: #ce8eb5; }
.tone-green { --tag: #365a45; --tag-text: #e0f2e3; --column: #1c2621; --card: #26352e; --count: #83b798; }
.tone-red { --tag: #7b4546; --tag-text: #ffe3e0; --column: #2d2121; --card: #402c2d; }
.tone-brown { --tag: #664b3c; --tag-text: #f9e6d9; --column: #2a231e; --card: #3c2f26; }
.add-card { display: flex; align-items: center; width: 100%; text-align: left; gap: 6px; color: #a1a09d; border-radius: 5px; padding: 7px 5px; }
.add-card svg { width: 15px; height: 15px; }
.empty-board { width: var(--column-width); }
.table-scroll table { table-layout: fixed; width: max-content; border-collapse: collapse; }
.table-scroll th, .table-scroll td { height: 37px; padding: 5px 8px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); text-align: left; overflow: hidden; }
.table-scroll th { color: #a7a7a3; font-weight: 500; white-space: nowrap; }
.table-scroll th svg, .table-scroll th > span { width: 16px; margin-right: 7px; vertical-align: middle; display: inline-block; }
.table-scroll tr:hover td { background: #ffffff03; }
.table-title { text-align: left; width: 100%; display: flex; gap: 5px; align-items: center; padding: 1px 3px; font-weight: 550; border-radius: 4px; overflow: hidden; white-space: nowrap; }
.table-title svg { color: #a3a39e; }
.person { display: inline-flex; gap: 6px; align-items: center; }
.avatar { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 100%; background: #394956; font-size: 11px; color: #e7ebf0; }
#notice, .dialog-error { color: #ffaaa7; }
#notice { margin-bottom: 12px; }
.expanded { position: fixed; z-index: 6; inset: 0; padding-top: 26px; overflow: auto; background: var(--bg); }
dialog { width: min(80vw, 960px); max-height: 82vh; padding: 0; border: 1px solid #3b3b3b; border-radius: 12px; background: var(--panel); color: var(--text); box-shadow: 0 16px 70px #0005; overflow: auto; }
dialog::backdrop { background: #0009; }
.full-dialog { width: min(100%, 1200px); max-height: 97vh; }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: sticky; top: 0; z-index: 1; background: var(--panel); padding: 8px 12px; }
.record-form, .guide-content { width: min(100% - 48px, 690px); margin: auto; padding: 65px 0 32px; }
.record-title { width: 100%; display: block; background: transparent; border: 0; padding: 0; font-size: 40px; font-weight: 700; line-height: 1.15; margin-bottom: 18px; letter-spacing: -.6px; resize: none; overflow: hidden; }
.record-title::placeholder { color: #777; }
.comment-jump { padding: 0; text-align: left; margin: 0 0 11px; }
.properties { display: grid; gap: 4px; }
.property-row { display: grid; grid-template-columns: 164px minmax(0, 1fr); align-items: start; min-height: 34px; gap: 4px; }
.property-label { display: flex; align-items: center; gap: 6px; color: #aaa9a5; min-height: 34px; }
.field-icon { display: inline-block; width: 17px; text-align: center; }
.property-row > .muted, .property-row > .people { padding: 8px; }
input, select, textarea { background: #262626; border: 1px solid #3a3a3a; border-radius: 5px; padding: 7px 8px; min-width: 0; }
.property-row > input, .property-row > select, .multi-picker { background: transparent; border: 1px solid transparent; min-height: 34px; }
.property-row > input:hover, .property-row > select:hover, .multi-picker:hover { background: #272727; }
.multi-picker summary { padding: 7px; cursor: pointer; overflow-wrap: anywhere; }
.multi-picker label { display: flex; align-items: center; gap: 5px; padding: 4px 7px; }
.body-editor, .discussion textarea { width: 100%; min-height: 112px; display: block; line-height: 1.55; resize: vertical; }
.body-editor { min-height: 164px; }
.divider { border-top: 1px solid var(--line); margin: 24px 0; }
h3 { font-size: 18px; margin: 20px 0 10px; }
.template-button { padding: 5px 3px; margin-bottom: 7px; }
.check-item { display: grid; grid-template-columns: 24px minmax(0,1fr) 28px; gap: 4px; align-items: center; margin-bottom: 8px; }
.check-item details { grid-column: 2 / -1; }
.check-item textarea { width: 100%; margin-top: 5px; }
.check-item input[type=checkbox] { justify-self: center; }
.comment { border-top: 1px solid var(--line); padding: 8px 0; }
.comment .muted { margin-left: 8px; }
.comment p { white-space: pre-wrap; overflow-wrap: anywhere; }
.discussion .primary { margin-top: 8px; }
.dialog-footer { position: sticky; bottom: 0; display: flex; justify-content: flex-end; align-items: center; gap: 9px; padding: 10px 14px; border-top: 1px solid var(--line); background: var(--panel); }
.dialog-footer .dialog-error { margin-right: auto; }
.primary { border-radius: 5px; background: var(--blue); color: white; padding: 7px 12px; font-weight: 550; }
.primary:hover { background: #508cd9; }
.guide-content { padding-top: 44px; }
.guide-content p, .guide-content dd { line-height: 1.55; }
.guide-content dt { font-weight: 600; margin-top: 14px; }
.guide-content dd { margin: 3px 0 0; color: #c7c7c5; }
.guide-close { position: absolute; top: 8px; right: 10px; }
@media (max-width: 1380px) {
  .views .view:nth-child(n + 6):not(.overflow-toggle) { display: none; }
  .overflow-toggle { display: inline-flex; }
}
@media (max-width: 1020px) {
  .views .view:nth-child(n + 4):not(.overflow-toggle) { display: none; }
  .sidebar-open .views .view:nth-child(n + 2):not(.overflow-toggle) { display: none; }
}
@media (max-width: 680px) {
  :root { --page-gutter: 22px; --column-width: 250px; }
  main { padding-top: 78px; }
  .sidebar-open main { margin-left: 0; }
  h1, .record-title { font-size: 32px; }
  .toolbar { flex-wrap: wrap; }
  .controls { margin-left: auto; }
  .views .view { padding: 7px 8px; }
  .views .view:nth-child(n + 3):not(.overflow-toggle) { display: none; }
  .record-form, .guide-content { width: calc(100% - 32px); padding-top: 35px; }
  dialog { width: calc(100% - 20px); max-height: 92vh; }
  .property-row { grid-template-columns: 130px minmax(0,1fr); }
}
.select-property { position: relative; min-height: 34px; display: flex; align-items: center; border-radius: 5px; }
.select-property:hover, .select-property:focus-within { background: #272727; }
.select-property .selection-preview { padding: 0 8px; }
.select-property select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.select-property:focus-within { outline: 2px solid #529cca; }
.select-property option { background: #262626; color: var(--text); }
.table-title > .title-text { overflow: hidden; text-overflow: ellipsis; }

.top-link { text-decoration: none; border-radius: 4px; padding: 4px 5px; }
.top-link:hover { background: var(--hover); }
.knowledge-link { margin-left: auto; }
.backlog-pages { display: grid; justify-items: start; gap: 13px; margin: 40px var(--page-gutter) 0; }
.backlog-pages a { text-decoration-color: #ffffff40; text-underline-offset: 3px; }
.knowledge-content { width: min(690px, calc(100% - 2 * var(--page-gutter))); margin: 0 auto; }
.knowledge-home { width: min(1120px, calc(100% - 2 * var(--page-gutter))); }
.rich-text { font-size: 16px; line-height: 1.55; overflow-wrap: anywhere; }
.rich-text p { margin: .68em 0; }
.rich-text h2 { font-size: 1.46em; margin: 1.45em 0 .4em; }
.rich-text h3 { font-size: 1.24em; margin: 1.35em 0 .38em; }
.rich-text a { text-decoration-color: #ffffff68; text-underline-offset: 3px; }
.rich-text ul, .rich-text ol { padding-left: 1.55em; }
.rich-text li + li { margin-top: .25em; }
.rich-text details { margin: .55em 0; padding: .4em .6em; background: #242424; border-radius: 4px; }
.rich-text summary { cursor: pointer; }
.rich-text blockquote { border-left: 2px solid #aaa; margin: 1em 0; padding-left: 1em; }
.rich-text pre { overflow: auto; border-radius: 5px; padding: 1em; background: #272727; }
.rich-text :not(pre) > code { background: #ffffff10; color: #f4a28c; padding: 1px 4px; border-radius: 3px; }
.rich-text table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rich-text th, .rich-text td { border: 1px solid #363636; padding: 7px 9px; text-align: left; }
.rich-text th { background: #282828; }
.rich-text figure { margin: 1em 0; }
.rich-text img, .rich-text video, .discussion-image { max-width: 100%; max-height: 70vh; object-fit: contain; }
.rich-text img, .discussion-image { height: auto; }
.discussion-image { display: block; margin-top: 8px; }
.rich-text .notion-mention { background: #ffffff0c; border-radius: 3px; padding: 0 3px; }
.editor-actions { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding-bottom: 5px; }
.editor-actions button { padding: 4px 7px; border-radius: 4px; margin: 0; }
.body-editor { min-height: 85px; height: auto; resize: none; padding: 5px 8px; border-radius: 5px; }
.body-editor:focus { outline: 1px solid #414141; }
.body-editor:empty::before { content: attr(data-placeholder); color: var(--muted); pointer-events: none; }
.body-editor .editor-embedded-marker { display: none; }
.date-range { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.date-range details { color: var(--muted); }
.date-range summary { cursor: pointer; font-size: 12px; }
.date-range input { min-height: 34px; background: transparent; }
.nested-database { margin: .7em 0 1.4em; font-size: 14px; }
.nested-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid #313131; padding-bottom: 5px; margin-bottom: 10px; }
.nested-tabs button[aria-selected=true] { color: var(--text); background: #292929; }
.knowledge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 8px; }
.knowledge-card { border: 1px solid #ffffff0b; border-radius: 8px; padding: 10px 12px; background: #252525; }
.knowledge-card-title { display: block; font-weight: 600; text-decoration: none; }
.knowledge-card-title:hover { text-decoration: underline; }
.knowledge-card-field { color: #a9a9a6; margin-top: 4px; }
.knowledge-card > .tag { margin-top: 6px; }
.knowledge-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); overflow-x: auto; gap: 10px; }
.knowledge-column { padding: 8px; border-radius: 8px; background: #202020; }
.knowledge-stack { display: grid; gap: 5px; }
.knowledge-board .group-heading, .knowledge-galleries .group-heading { margin: 4px 0 8px; display: flex; gap: 8px; align-items: center; }
.knowledge-galleries section + section { margin-top: 15px; }
.nested-table-wrap { overflow-x: auto; }
.nested-table { width: 100%; border-collapse: collapse; }
.nested-table td, .nested-table th { border: 1px solid #333; padding: 6px 9px; text-align: left; }

.account-page { width: min(960px, calc(100% - 48px)); margin: 0 auto; padding-top: 90px; }
.account-form { display: grid; gap: 14px; max-width: 340px; margin-bottom: 18px; }
.account-field { display: grid; gap: 5px; color: #d0d0cc; }
.account-field input, .account-field select, .account-actions select, .invite-panel input { background: #222; color: var(--text); border: 1px solid #424242; border-radius: 5px; padding: 8px; min-width: 0; }
.account-form .primary { justify-self: start; }
.account-form.invite-form { max-width: none; grid-template-columns: repeat(3,minmax(110px,1fr)) auto; align-items: end; }
.invite-panel { padding: 12px; border: 1px solid #444; border-radius: 6px; margin-bottom: 18px; }
.invite-panel p { margin: 0 0 8px; }
.invite-panel input { width: min(100%, 540px); margin-right: 8px; }
.account-row { border-top: 1px solid #373737; padding: 12px 0; display: grid; grid-template-columns: minmax(105px,1fr) 85px minmax(240px,2fr); align-items: center; gap: 12px; }
.account-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.account-actions button { border-radius: 5px; padding: 6px; }
.remove-access, #account-error { color: #f6a19c; }
.owner-login { display: inline-block; margin-top: 10px; }
.session-actions { display: flex; gap: 5px; margin-left: auto; }
.session-actions .knowledge-link { margin-left: 0; }
@media (max-width: 670px) {
  .account-form.invite-form, .account-row { grid-template-columns: 1fr; }
}
[hidden] { display: none !important; }
