
@font-face {
  font-family: 'Work Color Emoji';
  src: url('/emoji/Noto-COLRv1.ttf') format('truetype');
  font-display: swap;
}

.we-editor {
  --we-text: var(--c-ink, #26364b);
  --we-muted: var(--c-ink-2, #536578);
  --we-line: var(--c-line, #d5deea);
  --we-bg: var(--c-sunken, #f7f9fc);
  --we-blue: var(--c-primary, #244f9d);
  color: var(--we-text);
  display: grid;
  gap: 14px;
  min-width: 0;
}
.we-flex { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.we-editor > .we-flex:first-child { justify-content: flex-end; min-height: 34px; }
.we-title {
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.15rem) !important;
}
.we-status { color: var(--we-muted); margin: 0; font-size: .875rem; }
.we-btn, .we-icon, .we-link, .we-input, .we-block-text { font-family: inherit; }
.we-btn, .we-icon, .we-link {
  background: var(--c-surface, #fff);
  border: 1px solid var(--we-line);
  color: var(--we-text);
  border-radius: 7px;
  cursor: pointer;
  font-size: .84rem;
  line-height: 1.3;
  padding: 7px 10px;
}
.we-btn:hover, .we-icon:hover { background: var(--c-primary-soft, #eef4ff); color: var(--c-primary-hover, #18478b); }
.we-primary, .we-primary:hover { background: var(--we-blue); color: var(--c-on-primary, #fff); border-color: var(--we-blue); }
.we-quiet { background: transparent; border-color: transparent; font-size: .79rem; }
.we-btn:disabled, .we-icon:disabled {
  background: var(--c-sunken, #edf1f6);
  color: var(--c-ink-3, #617084);
  cursor: default;
  opacity: .74;
}
.we-icon { padding: 0; height: 28px; width: 28px; font-size: .97rem; }
.we-link {
  border: 0;
  background: transparent;
  color: var(--c-primary, #214f99);
  padding: 4px 0;
  text-align: start;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.we-input, .we-block-text {
  color: var(--we-text);
  background: var(--c-surface, #fff);
  border: 1px solid var(--we-line);
  border-radius: 7px;
  min-height: 34px;
  box-sizing: border-box;
  font-size: .925rem;
  padding: 6px 9px;
}
.we-input[type='checkbox'] {
  min-height: auto;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  accent-color: var(--we-blue);
}
.we-input:focus-visible, .we-block-text:focus-visible, .we-btn:focus-visible, .we-icon:focus-visible, .we-link:focus-visible {
  outline: 2px solid var(--c-primary, #3974cc);
  outline-offset: 2px;
}
.we-blocks { display: grid; gap: 5px; min-width: 0; }
.we-block {
  position: relative;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: start;
  gap: 7px;
}
.we-controls {
  display: flex;
  gap: 1px;
  position: relative;
  padding-top: 2px;
  opacity: 0;
  user-select: none;
  transition: opacity .12s ease;
}
.we-block:hover:not(:has(.we-block:hover)) > .we-controls,
.we-block:focus-within:not(:has(.we-block:focus-within)) > .we-controls {
  opacity: 1;
}
.we-content { display: grid; gap: 7px; align-items: start; min-width: 0; }
.we-text-line { flex-wrap: nowrap; position: relative; min-width: 0; }
.we-block-text {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 4px 0;
  min-height: 31px;
  line-height: 1.55;
  resize: none;
  overflow-y: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: .98rem;
}
.we-block-text:focus-visible {
  outline: none;
  box-shadow: -2px 0 var(--c-primary-line, transparent);
}
.we-heading { font-size: 1.35rem; font-weight: 700; }
.we-done { color: var(--we-muted); text-decoration: line-through; }
.we-nested { margin: 0 0 5px 10px; padding-left: 7px; border-left: 1px solid var(--we-line); }
.we-divider { width: 100%; margin: 15px 0; border: 0; border-top: 1px solid var(--c-line-strong); }
.we-code-block, :is(.public-page, .we-page-reader) pre {
  max-width: 100%;
  margin-block: 6px;
  padding: 12px;
  color: var(--c-ink);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 8px;
  overflow-x: auto;
}
.we-code-language { display: block; margin-bottom: 6px; color: var(--c-muted); font-size: 12px; }
.we-code-editor {
  display: block;
  width: 100%;
  min-height: 4rem;
  resize: vertical;
  border: 0;
  color: inherit;
  background: transparent;
  font: .9rem/1.6 ui-monospace, Consolas, monospace;
  white-space: pre;
}
.public-checklist-children { margin-inline-start: 1.45rem; }
.we-toggle-trigger {
  align-self: flex-start;
  flex: 0 0 26px;
  height: 28px;
  margin-block-start: 2px;
  border: 0;
  background: transparent;
  color: var(--c-ink-2);
}
.we-toggle-trigger .work-icon { width: 14px; height: 14px; }
.we-toggle-trigger[aria-expanded='true'] .work-icon { transform: rotate(90deg); }
.we-nested.we-toggle-children { margin-inline-start: 0; padding-inline-start: 13px; border-inline-start: 0; }
.we-empty-toggle { min-height: 28px; }
.we-empty-toggle .we-btn { color: var(--we-muted); }
.we-handle { cursor: grab; touch-action: none; user-select: none; }
.we-handle:active { cursor: grabbing; }
[data-we-dragging] { opacity: .45; }
.we-block[data-we-drop]::after {
  position: absolute;
  inset-inline: 0;
  z-index: 1;
  border-radius: 3px;
  pointer-events: none;
  content: '';
}
.we-block[data-we-drop='before']::after { inset-block-start: -3px; border-top: 3px solid var(--we-blue); }
.we-block[data-we-drop='after']::after { inset-block-end: -3px; border-bottom: 3px solid var(--we-blue); }
.we-block[data-we-drop='inside']::after { inset-block: 0; border: 2px solid var(--we-blue); }
.we-menu {
  position: absolute;
  z-index: 2;
  top: 100%;
  left: 0;
  display: grid;
  gap: 4px;
  min-width: 145px;
  border: 1px solid var(--we-line);
  border-radius: 8px;
  background: var(--c-surface, #fff);
  padding: 7px;
  box-shadow: 0 6px 18px #16254024;
}
.we-menu .we-btn { text-align: start; }
.we-scroll { overflow: auto; max-width: 100%; }
.we-table { border-collapse: collapse; width: 100%; text-align: start; font-size: .9rem; }
.we-table th, .we-table td { text-align: start; border: 1px solid var(--we-line); padding: 5px 9px; min-width: 90px; }
.we-table td .we-input { width: 100%; }
.we-table td:has(.we-quiet) { min-width: 60px; }
.we-database thead { background: var(--we-bg); }
.we-database td, .we-database th { padding: 8px 12px; }
.we-database tr > :last-child { width: 75px; }
.we-schema, .we-calendar { border: 1px solid var(--we-line); border-radius: 8px; padding: 10px; display: grid; gap: 8px; }
.we-calendar time { color: var(--we-muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.we-editor > .we-flex .we-title, .we-form .we-input { min-width: 0; }
.we-label, .we-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.we-label > span { color: var(--we-muted); font-size: .86rem; }
.we-schema > .we-flex { border-bottom: 1px solid var(--we-line); padding-bottom: 8px; }
.we-schema > .we-btn { justify-self: start; }
.we-editor > div:has(> .we-scroll) { display: grid; gap: 6px; }
.we-modal {
  border: 1px solid var(--we-line);
  border-radius: 12px;
  padding: 19px;
  background: var(--c-surface, #fff); color: var(--c-ink, #26364b);
  width: min(470px, calc(100vw - 30px));
  max-height: 84vh;
  overflow: auto;
  box-sizing: border-box;
}
.we-modal[open] { display: grid; gap: 12px; }
.we-modal::backdrop { background: #13254166; }
.we-modal > .we-flex:first-child { justify-content: space-between; }
.we-modal h2 { margin: 0; font-size: 1.15rem; }
.we-modal .we-label { display: grid; }
.we-modal textarea { min-height: 90px; width: 100%; }
.we-modal .we-output { min-height: 150px; }
.we-form { display: grid; gap: 10px; }
.we-emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
  gap: 3px;
  max-height: min(45vh, 320px);
  overflow: auto;
  padding: 4px;
}
.we-emoji-choice {
  min-height: 42px;
  padding: 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--c-ink);
  font: 1.35rem 'Work Color Emoji', 'Segoe UI Emoji', 'Apple Color Emoji', sans-serif;
  cursor: pointer;
}
.we-emoji-choice:is(:hover, :focus-visible) { background: var(--c-primary-soft); }
@media (max-width: 680px) {
  .we-block { gap: 4px; }
  .we-controls > .we-icon { width: 25px; }
  .we-nested { margin-inline-start: 3px; padding-inline-start: 3px; }
  .we-editor > .we-flex:first-child { justify-content: flex-start; }
}
@media (hover: none) {
  .we-controls { opacity: .56; }
}
@media (prefers-reduced-motion: reduce) {
  .we-controls { transition: none; }
}


html[data-theme='dark'] .we-editor { color-scheme: dark; }
html[data-theme='dark'] .we-modal::backdrop { background: #000a; }
.we-primary:hover { background: var(--c-primary-hover, var(--we-blue)); }

.we-editor > .we-flex:first-child {
  gap: 10px;
  border-bottom: 1px solid var(--we-line);
  padding-bottom: 11px;
}
.we-editor .we-title {
  border-color: transparent;
  background: transparent;
  padding: 8px 0;
  letter-spacing: -.03em;
}
.we-page-editor > .we-page-header:first-child {
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  border: 0;
  padding-bottom: 3px;
  padding-inline-start: 64px;
}
.we-page-header .we-title { flex: 1 1 auto; }
.we-page-save { flex: 0 0 auto; gap: 4px; }
.we-page-save .we-status { font-size: .77rem; }
.we-page-save .we-btn { color: var(--we-muted); padding-inline: 6px; }
.we-page-save .we-btn:disabled { opacity: .55; background: none; }
.we-row-properties {
  margin-inline-start: clamp(0px, 5vw, 64px);
  padding: 12px;
  border: 1px solid var(--we-line);
  border-radius: 10px;
  background: var(--c-surface);
}
.we-row-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  min-inline-size: 0;
  gap: 10px 14px;
  margin: 0;
  border: 0;
  padding: 0;
}
.we-row-fields legend { margin-block-end: 8px; padding: 0; font-size: .875rem; font-weight: 650; }
.we-row-fields .we-input:not([type='checkbox']) { inline-size: 100%; }
.we-btn, .we-icon { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.we-btn { min-height: 34px; border-radius: 8px; font-weight: 600; }
.we-btn .work-icon, .we-icon .work-icon { width: 15px; height: 15px; }
.we-controls .we-icon { background: transparent; border: 0; color: var(--c-ink-3); }
.we-controls .we-icon:hover { background: var(--c-primary-soft); color: var(--c-accent-text); }
.we-controls > .we-handle { font-size: 1rem; }
.we-menu { border-radius: 12px; padding: 6px; min-width: 194px; }
.we-menu .we-btn { justify-content: flex-start; }
.we-menu .we-menu-danger { color: var(--c-danger); }
.we-command-menu {
  z-index: 5;
  inline-size: min(294px, calc(100vw - 92px));
  min-inline-size: 0;
  max-inline-size: 100vw;
}
.we-command-search { width: 100%; }
.we-command-list {
  display: grid;
  max-block-size: min(260px, 45dvh);
  gap: 2px;
  overflow: auto;
  overscroll-behavior: contain;
}
.we-command-list .we-command-option {
  display: flex;
  justify-content: space-between;
  min-width: 0;
  padding-inline: 8px;
  background: transparent;
  border-color: transparent;
  font-weight: 500;
}
.we-command-option[aria-selected='true'], .we-command-list .we-command-option:hover {
  background: var(--c-primary-soft);
  color: var(--c-accent-text);
}
.we-command-code {
  margin-inline-start: auto;
  color: var(--c-ink-3);
  font-size: .72rem;
  white-space: nowrap;
}
.we-command-empty { padding: 8px; }
.we-list-marker {
  align-self: flex-start;
  padding-block: 4px;
  min-inline-size: 14px;
  color: var(--c-ink-2);
  font-size: .98rem;
  line-height: 1.55;
  text-align: end;
  white-space: nowrap;
}
.we-block-text {
  --we-text-size: .98rem;
  font-size: calc(var(--we-text-size) * var(--we-text-scale, 1));
}
.we-block-text.we-heading-1, .public-block-text:is(h2) { --we-text-size: 1.54rem; }
.we-block-text.we-heading-2, .public-block-text:is(h3) { --we-text-size: 1.25rem; }
.we-block-text.we-heading-3, .public-block-text:is(h4) { --we-text-size: 1.1rem; }
.public-block-text { font-size: calc(var(--we-text-size, 1em) * var(--we-text-scale, 1)); }
.we-font-small { --we-text-scale: .85; }
.we-font-large { --we-text-scale: 1.23; }
.we-rich-text {
  flex: 1 1 0;
  white-space: break-spaces;
  overflow-wrap: anywhere;
  cursor: text;
}
.we-block[data-we-cut]:not([data-we-cut] .we-block) { opacity: .5; }
.we-page-editor > .we-blocks { position: relative; }
.we-page-editor > .we-blocks::before, .we-page-editor > .we-blocks::after {
  content: '';
  position: absolute;
  inset-block: 0;
  width: 10px;
}
.we-page-editor > .we-blocks::before { inset-inline-end: 100%; }
.we-page-editor > .we-blocks::after { inset-inline-start: 100%; }
.we-block[data-we-selected] {
  border-radius: 6px;
  background: var(--c-primary-soft);
  box-shadow: inset 0 0 0 1px var(--c-primary-line);
}
.we-drag-rectangle {
  position: fixed;
  z-index: 12;
  pointer-events: none;
  border: 1px solid var(--c-primary);
  border-radius: 2px;
  background: color-mix(in srgb, var(--c-primary) 13%, transparent);
}
.we-page-editor[data-we-block-selection] .we-format-toolbar { display: none; }
.we-page-editor[data-we-block-selection] .we-blocks *::selection { background: transparent; color: inherit; }
.we-block-selection-status { color: var(--c-accent-text); font-size: .8rem; text-align: end; }
.we-page-editor[tabindex='-1']:focus { box-shadow: none; }
.we-page-editor :is(.we-toggle-trigger, .we-list-marker, .we-empty-toggle) { user-select: none; }
.we-page-editor .we-rich-text::selection, .we-page-editor .we-inline-run::selection {
  background-color: var(--c-primary-line);
  color: var(--c-ink);
}
::highlight(we-document-selection) {
  background-color: var(--c-primary-line);
  color: var(--c-ink);
}
.we-rich-text:empty::before { content: attr(data-placeholder); color: var(--c-ink-3); pointer-events: none; opacity: 0; }
.we-rich-text:focus:empty::before { opacity: .84; }
.we-toggle-heading .we-toggle-trigger { margin-block-start: .46em; }
.we-toggle-heading .we-rich-text { font-weight: 700; }
.public-block-text { --we-text-size: .98rem; }
.public-block-text.we-heading-1 { --we-text-size: 1.54rem; }
.public-block-text.we-heading-2 { --we-text-size: 1.25rem; }
.public-block-text.we-heading-3 { --we-text-size: 1.1rem; }
.public-block-text:is(.we-heading-1, .we-heading-2, .we-heading-3) { font-weight: 700; }
.we-inline-run[data-bold='true'] { font-weight: 700; }
.we-inline-run[data-bold='false'] { font-weight: 400; }
.we-inline-run[data-italic='true'] { font-style: italic; }
.we-inline-run[data-italic='false'] { font-style: normal; }
.we-inline-run[data-underline='true'] { text-decoration-line: underline; }
.we-inline-run[data-strike='true'] { text-decoration-line: line-through; }
.we-inline-run[data-underline='true'][data-strike='true'] { text-decoration-line: underline line-through; }
.we-inline-run[data-code='true'] {
  background-color: var(--c-primary-soft);
  border-radius: 3px;
  font-family: ui-monospace, monospace;
}
.we-inline-run[data-size='small'] { font-size: calc(var(--we-text-size, 1rem) * .85); }
.we-inline-run[data-size='normal'] { font-size: var(--we-text-size, 1rem); }
.we-inline-run[data-size='large'] { font-size: calc(var(--we-text-size, 1rem) * 1.23); }
:root {
  --we-color-gray: #646170;
  --we-color-red: #ac333b;
  --we-color-orange: #9a4d12;
  --we-color-green: #22694f;
  --we-color-blue: #245cb3;
  --we-color-purple: #683bb3;
}
:root[data-theme='dark'] {
  --we-color-gray: #b8b2c4;
  --we-color-red: #ffabb4;
  --we-color-orange: #ffc18b;
  --we-color-green: #91ddbb;
  --we-color-blue: #a2c8ff;
  --we-color-purple: #cfb6ff;
}
:is(.we-inline-run, .we-color-swatch)[data-color='gray'] { --we-swatch: var(--we-color-gray); }
:is(.we-inline-run, .we-color-swatch)[data-color='red'] { --we-swatch: var(--we-color-red); }
:is(.we-inline-run, .we-color-swatch)[data-color='orange'] { --we-swatch: var(--we-color-orange); }
:is(.we-inline-run, .we-color-swatch)[data-color='green'] { --we-swatch: var(--we-color-green); }
:is(.we-inline-run, .we-color-swatch)[data-color='blue'] { --we-swatch: var(--we-color-blue); }
:is(.we-inline-run, .we-color-swatch)[data-color='purple'] { --we-swatch: var(--we-color-purple); }
.we-inline-run[data-color] { color: var(--we-swatch); }
.we-inline-run[data-link] { text-decoration-line: underline; text-underline-offset: .12em; }
.we-inline-run[data-link][data-strike='true'] { text-decoration-line: underline line-through; }
.we-inline-run[data-link]:not([data-color]) { color: var(--c-accent-text); }
.we-page-editable-link { cursor: pointer; touch-action: manipulation; -webkit-touch-callout: none; }
.we-page-editable-link:focus-visible { outline: 2px solid var(--focus-color); outline-offset: 2px; }
.we-link-dialog form { display: grid; gap: 12px; }
.we-link-dialog .we-input { min-inline-size: 0; }
.we-format-toolbar {
  position: fixed;
  z-index: 45;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  max-inline-size: calc(100vw - 16px);
  padding: 4px;
  background: var(--c-surface);
  border: 1px solid var(--c-line-strong);
  border-radius: 9px;
  box-shadow: 0 6px 18px #15102226;
}
.we-format-toolbar :is(button, select) {
  min-block-size: 32px;
  min-inline-size: 30px;
  padding-inline: 6px;
  border: 0;
  border-radius: 5px;
  color: var(--c-ink);
  background-color: transparent;
  font: inherit;
  cursor: pointer;
}
.we-format-toolbar :is(button, select):hover, .we-format-toolbar button[aria-pressed='true'] {
  background-color: var(--c-primary-soft);
  color: var(--c-accent-text);
}
.we-format-toolbar .we-inline-bold { font-weight: 700; }
.we-format-toolbar .we-inline-italic { font-style: italic; }
.we-format-toolbar .we-inline-underline { text-decoration-line: underline; }
.we-format-toolbar .we-inline-strike { text-decoration-line: line-through; }
.we-format-toolbar .we-inline-code { font-family: ui-monospace, monospace; }
.we-color-trigger, .we-color-options button {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.we-color-options {
  position: absolute;
  z-index: 1;
  inset-inline-end: 0;
  top: calc(100% + 5px);
  display: grid;
  min-inline-size: 128px;
  max-block-size: min(57vh, 22rem);
  overflow: auto;
  padding: 4px;
  background: var(--c-surface);
  border: 1px solid var(--c-line-strong);
  border-radius: 8px;
  box-shadow: 0 6px 18px #15102226;
}
.we-color-options.we-color-above { top: auto; bottom: calc(100% + 5px); }
.we-color-options button:focus-visible { outline-offset: -2px; }
.we-color-swatch {
  flex: none;
  inline-size: 16px;
  block-size: 16px;
  border: 1px solid var(--c-line-strong);
  border-radius: 3px;
  background-color: var(--we-swatch, var(--c-ink));
}
@media (pointer: coarse) {
  .we-format-toolbar :is(button, select) { min-block-size: 42px; min-inline-size: 40px; }
}
.we-font-bold { font-weight: 700; }
.we-font-italic { font-style: italic; }
.we-block-text.we-quote, .public-block-text:is(blockquote) {
  border-inline-start: 3px solid var(--c-primary-line);
  padding-inline-start: 12px;
}
.public-block-text:is(blockquote) { margin-inline: 0; }
.we-btn.we-page-link {
  justify-self: start;
  min-height: 32px;
  max-width: 100%;
  padding-inline: 1px 6px;
  border-color: transparent;
  background: transparent;
  text-align: start;
  overflow-wrap: anywhere;
}
.we-btn.we-page-link .work-icon { color: var(--c-accent-text); }
.we-btn.we-page-link:hover { background: var(--c-primary-soft); color: var(--c-accent-text); }
.we-link { color: var(--c-accent-text); font-weight: 600; }
.we-schema, .we-calendar { padding: 13px; border-radius: 12px; box-shadow: var(--control-shadow); }
.we-embedded-database { display: grid; width: 100%; min-width: 0; gap: 6px; }
.we-db-caption { margin: 0; font-size: clamp(1rem, 2vw, 1.35rem); overflow-wrap: anywhere; min-width: 0; }
.we-database tbody tr:hover { background: var(--c-sunken); }
.we-database tbody tr.we-db-selected { background: var(--c-primary-soft); }
.we-database-heading { flex-wrap: nowrap; justify-content: space-between; }
.we-database-heading .we-title { flex: 1 1 auto; }
.we-database-heading .we-schema-toggle { white-space: nowrap; }
.we-table-toolbar {
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
  gap: 6px 12px;
  padding-block: 3px;
}
.we-table-toolbar:has(.we-db-caption) { justify-content: space-between; }
.we-db-tools { justify-content: flex-end; gap: 4px; min-width: 0; }
.we-db-calendar-link { white-space: nowrap; }
.we-db-calendar-linked { color: var(--c-accent-text); background: var(--c-primary-soft); }
.we-db-tools > .we-quiet { inline-size: 34px; padding: 0; color: var(--we-muted); }
.we-db-tools > .we-quiet:is([aria-expanded='true'], .we-db-tool-active) {
  color: var(--c-accent-text);
  background: var(--c-primary-soft);
}
.we-db-new { position: relative; flex-wrap: nowrap; gap: 0; }
.we-db-new > button:first-child { border-start-end-radius: 0; border-end-end-radius: 0; }
.we-db-new > button:nth-child(2) {
  padding-inline: 7px;
  border-start-start-radius: 0;
  border-end-start-radius: 0;
  border-inline-start-color: var(--c-primary-line);
}
.we-db-new .we-menu { inset-inline: auto 0; z-index: 5; }
.we-db-new .we-menu button { white-space: nowrap; }
.we-db-panel {
  padding: 7px;
  border: 1px solid var(--we-line);
  border-radius: 8px;
  background: var(--c-sunken);
}
.we-db-panel .we-input { max-width: 100%; }
.we-db-search { width: min(100%, 25ch); }
.we-db-selection:has(button[hidden]) { display: none; }
.we-database-frame { min-width: 0; border-block-start: 1px solid var(--we-line); }
.we-database thead { background: transparent; color: var(--we-muted); }
.we-database th, .we-database td { padding: 0 8px; border-block-start: 0; }
.we-database tr > :first-child { border-inline-start: 0; }
.we-database tr > :last-child { border-inline-end: 0; }
.we-database thead th { font-weight: 600; height: 39px; }
.we-database th:first-child { min-width: 180px; }
.we-database td.we-db-utility, .we-database th.we-db-utility { width: 112px; }
.we-database tfoot td { border: 0; }
.we-db-bottom-add { color: var(--we-muted); }
.we-db-new-name {
  flex-wrap: nowrap;
  gap: 4px;
  padding-block: 3px;
}
.we-db-new-name > .we-input { min-width: 0; width: 180px; }
.we-db-add-property { color: var(--we-muted); white-space: nowrap; }
.we-db-check { margin: 0 2px; }
.we-db-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  max-width: 100%;
  padding: 4px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--c-ink);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.we-db-open .work-icon { flex: none; color: var(--c-accent-text); }
.we-db-open:hover, .we-db-open:focus-visible { background: var(--c-primary-soft); }
.we-db-open:focus-visible { outline-offset: -2px; }
.we-db-row-title { min-inline-size: 0; max-inline-size: min(24ch, 42vw); text-align: start; white-space: pre-wrap; overflow-wrap: anywhere; }
.we-db-open-hint {
  flex: none;
  color: var(--c-accent-text);
  border: 1px solid var(--we-line);
  padding: 2px 5px;
  border-radius: 5px;
  font-size: .74rem;
}
@media (hover: hover) and (pointer: fine) {
  .we-database tbody tr:not(:hover, :focus-within, .we-db-selected) :is(.we-db-check, .we-db-open-hint, .we-db-rename, .we-db-utility button) { opacity: 0; }
}
@media (pointer: coarse) {
  .we-db-tools > .we-btn, .we-db-new > .we-btn, .we-db-open, .we-db-bottom-add { min-height: 44px; }
  .we-db-tools > .we-quiet { inline-size: 44px; }
}
.we-shortcut-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  max-inline-size: 100%;
  padding: 6px 11px;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  background: var(--c-surface);
  color: var(--c-ink);
  overflow-wrap: anywhere;
  text-decoration: none;
  font-weight: 600;
}
.we-shortcut-link .work-icon { width: 16px; height: 16px; flex: 0 0 16px; color: var(--c-accent-text); }
.we-shortcut-link:hover, .we-shortcut-link:focus-visible { background: var(--c-primary-soft); border-color: var(--c-primary-line); }
.we-shortcut-controls { gap: 4px; }
.public-shortcut { margin-block: 5px; }
.we-choice {
  display: inline-block;
  max-width: 100%;
  border-radius: 999px;
  background: var(--c-primary-soft);
  color: var(--c-accent-text);
  padding: 2px 8px;
  font-size: .82rem;
  font-weight: 600;
}
.we-simple-frame {
  min-width: 0;
  width: 100%;
  border-radius: 8px;
}
.we-simple-table {
  table-layout: fixed;
  width: 100%;
}
.we-simple-table thead { background: var(--c-sunken); }
.we-simple-table th, .we-simple-table td { position: relative; min-width: 0; padding: 0; }
.we-simple-table .we-table-gutter { background: var(--c-sunken); text-align: center; }
.we-simple-table .we-column-head { height: 38px; white-space: nowrap; font-size: .77rem; color: var(--we-muted); }
.we-column-head .we-table-handle { margin-inline: 3px; }
.we-simple-table .we-input {
  display: block;
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.we-simple-table tbody td { vertical-align: top; }
.we-simple-cell { position: relative; min-width: 0; }
.we-simple-cell::after,
.we-simple-table .we-simple-input {
  box-sizing: border-box;
  min-height: 34px;
  padding: 6px 9px;
  font: inherit;
  font-size: .925rem;
  line-height: 1.4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.we-simple-cell::after {
  content: attr(data-value) ' ';
  display: block;
  visibility: hidden;
}
.we-simple-table .we-simple-input {
  position: absolute;
  inset: 0;
  height: 100%;
  resize: none;
  overflow: hidden;
}
.we-simple-table .we-input:focus-visible,
.we-db-edit-cell .we-input:focus-visible,
.we-db-cell:focus-visible,
.we-column-size:focus-visible {
  outline: 2px solid var(--c-primary, #3974cc);
  outline-offset: -2px;
}
.we-table-handle {
  width: 28px;
  height: 31px;
  flex: none;
  border: 0;
  background: transparent;
  color: var(--c-ink-3, var(--we-muted));
}
.we-column-size {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: 14px;
  border: 0;
  background: transparent;
  touch-action: none;
  cursor: col-resize;
}
.we-column-size:hover, .we-column-size:active { background: var(--c-primary-soft, var(--we-bg)); }
.we-simple-table [data-we-drop='left'] { box-shadow: inset 3px 0 var(--we-blue); }
.we-simple-table [data-we-drop='right'] { box-shadow: inset -3px 0 var(--we-blue); }
.we-table tr[data-we-drop='before'] > *,
.we-schema [data-we-drop='before'] { box-shadow: inset 0 3px var(--we-blue); }
.we-table tr[data-we-drop='after'] > *,
.we-schema [data-we-drop='after'] { box-shadow: inset 0 -3px var(--we-blue); }
.we-database td.we-db-edit-cell { min-width: 116px; padding: 0; }
.we-db-cell {
  display: block;
  width: 100%;
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--we-text);
  padding: 5px 12px;
  font: inherit;
  text-align: start;
  max-inline-size: min(22rem, 70vw);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.we-db-cell:hover { background: var(--c-primary-soft, var(--we-bg)); }
.we-db-edit-cell > .we-input:not([type='checkbox']) { min-height: 38px; border-radius: 0; }
.we-db-edit-cell > [type='checkbox'] { margin: 9px 12px; }
.we-database tr > :last-child { width: 100px; }
.we-database th > .we-flex, .we-database td > .we-flex { flex-wrap: nowrap; }
.we-database th > .we-flex { min-width: max-content; }
.we-database td:last-child .we-btn { white-space: nowrap; }
.we-db-rename { flex: none; width: 25px; height: 27px; border: 0; background: transparent; color: var(--we-muted); }
.we-file { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; min-width: 0; }
.we-file-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  min-height: 37px;
  padding: 6px 10px;
  border: 1px solid var(--we-line);
  border-radius: 8px;
  background: var(--c-surface, #fff);
  color: var(--we-text);
  font-size: .88rem;
  text-decoration: none;
}
.we-file-link:hover { border-color: var(--c-primary-line); background: var(--c-primary-soft); }
.we-file-link:focus-visible { outline: 2px solid var(--we-blue); outline-offset: 2px; }
.we-file-link .work-icon { width: 17px; height: 17px; flex: none; color: var(--c-accent-text, var(--we-blue)); }
.we-file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.we-file-size, .we-file-status { flex: none; color: var(--we-muted); font-size: .78rem; }
.we-file-status { flex: 0 1 auto; overflow-wrap: anywhere; }
.we-file-error { color: var(--c-danger); }
.we-columns-layout {
  display: grid;
  grid-template-columns: var(--we-column-tracks);
  align-items: stretch;
  min-width: 0;
}
.we-column-lane {
  position: relative;
  min-width: 0;
  min-height: 37px;
}
.we-column-lane .we-block {
  grid-template-columns: 35px minmax(0, 1fr);
  gap: 4px;
}
.we-column-lane .we-controls > .we-icon { width: 17px; }
.we-column-divider {
  position: relative;
  cursor: col-resize;
  touch-action: none;
  user-select: none;
  min-height: 38px;
}
.we-column-divider::after {
  position: absolute;
  inset: 3px 6px;
  border-radius: 4px;
  background: var(--we-line);
  opacity: .65;
  pointer-events: none;
  content: '';
}
.we-column-divider:hover::after, .we-column-divider:focus-visible::after, .we-column-divider:active::after {
  opacity: 1;
  background: var(--we-blue);
}
.we-block:is([data-we-drop='left'], [data-we-drop='right'])::after,
.we-column-lane[data-we-drop]::after {
  position: absolute;
  inset-block: 0;
  z-index: 1;
  border-radius: 3px;
  pointer-events: none;
  content: '';
}
.we-block[data-we-drop='left']::after, .we-column-lane[data-we-drop='left']::after {
  inset-inline: -5px auto;
  border-inline-start: 3px solid var(--we-blue);
}
.we-block[data-we-drop='right']::after, .we-column-lane[data-we-drop='right']::after {
  inset-inline: auto -5px;
  border-inline-end: 3px solid var(--we-blue);
}
.we-column-lane[data-we-drop='inside']::after { inset-inline: 0; border: 2px solid var(--we-blue); }
@media (max-width: 680px) {
  .we-columns-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .we-column-divider { display: none; }
  .we-column-lane + .we-column-divider + .we-column-lane { border-block-start: 1px solid var(--we-line); padding-block-start: 6px; }
  .we-column-lane .we-block { grid-template-columns: max-content minmax(0, 1fr); }
  .we-column-lane .we-controls > .we-icon { width: 25px; }
  .we-page-editor > .we-page-header:first-child { padding-inline-start: 54px; }
}

.we-db-view-header { margin-inline-end: auto; min-width: 0; gap: 6px 12px; }
.we-db-view-switch {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--we-line);
  border-radius: 8px;
  background: var(--c-sunken);
}
.we-db-view-button {
  min-height: 29px;
  padding: 3px 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--we-muted);
  font: inherit;
  font-size: .81rem;
  cursor: pointer;
  white-space: nowrap;
}
.we-db-view-button[aria-pressed='true'] {
  border-color: var(--we-line);
  background: var(--c-surface);
  color: var(--c-ink);
  font-weight: 650;
}
.we-db-view-button:focus-visible, .we-db-card-main:focus-visible, .we-db-card-add:focus-visible {
  outline: 2px solid var(--we-blue);
  outline-offset: -2px;
}
.we-db-gallery { display: grid; gap: 9px; min-width: 0; padding-block: 5px; }
.we-db-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 215px), 1fr));
  gap: 9px;
  min-width: 0;
}
.we-db-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 105px;
  border: 1px solid var(--we-line);
  border-radius: 9px;
  background: var(--c-surface);
  color: var(--c-ink);
}
.we-db-card:focus-within, .we-db-card:hover { border-color: var(--c-primary-line); }
.we-db-card-main {
  display: grid;
  align-content: start;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  padding: 11px 12px 12px;
  text-align: start;
  font: inherit;
}
button.we-db-card-main { cursor: pointer; }
.we-db-card-title {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
  padding-inline-end: 24px;
  font-size: .94rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.we-db-card-title .work-icon { width: 17px; height: 17px; flex: none; color: var(--c-accent-text); }
.we-db-card-properties { display: grid; gap: 5px; min-width: 0; }
.we-db-card-property {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: start;
  gap: 5px;
  min-width: 0;
  font-size: .77rem;
}
.we-db-card-label { color: var(--we-muted); overflow-wrap: anywhere; }
.we-db-card-value { justify-self: start; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.we-db-card-state { padding: 1px 6px; border-radius: 5px; background: var(--c-sunken); color: var(--we-muted); }
.we-db-card-state.is-checked { background: var(--c-primary-soft); color: var(--c-accent-text); }
.we-db-card-edit { position: absolute; inset: 5px 5px auto auto; color: var(--we-muted); }
@media (hover: hover) and (pointer: fine) {
  .we-db-card:not(:hover, :focus-within) .we-db-card-edit { opacity: 0; }
}
.we-db-card-add {
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-style: dashed;
  color: var(--we-muted);
  background: var(--c-sunken);
  font: inherit;
  font-size: .85rem;
  cursor: pointer;
}
.we-db-card-add .work-icon { width: 16px; height: 16px; }
.we-db-card-add:hover { color: var(--c-accent-text); }
@media (pointer: coarse) {
  .we-db-view-button { min-height: 41px; }
}
