.wf-page { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.wf-page h2 { font-size: 15px; margin-bottom: 10px; }
.wf-page .card { padding: 18px; }
.wf-page a:not(.act) { color: var(--up); text-underline-offset: 3px; }
.wf-page .wf-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.wf-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.wf-form label, .wf-field { display: flex; flex-direction: column; gap: 7px; color: var(--ink-dim); }
.wf-form input, .wf-form select, .wf-form textarea { width: 100%; color: var(--ink); background: var(--bg); border: 1px solid var(--card-border); border-radius: 9px; padding: 10px; font: inherit; }
.wf-form textarea { resize: vertical; }
.wf-form input:focus-visible, .wf-form textarea:focus-visible, .wf-form select:focus-visible { outline-color: var(--up); }
.wf-wide { grid-column: 1 / -1; }
.wf-note, .wf-meta, .wf-field small { color: var(--ink-dim); font-size: 12px; }
.wf-note { line-height: 1.7; margin: 5px 0 10px; }
.wf-meta { line-height: 1.7; margin: 6px 0; }
.wf-status { display: inline-block; border: 1px solid currentColor; border-radius: 999px; padding: 1px 7px; margin-right: 5px; font-size: 11px; }
.wf-fresh { color: var(--up); }
.wf-warning { color: #e8c27e; }
.wf-stale { color: var(--down); }
.wf-empty { color: var(--ink-dim); padding: 24px 0; }
.wf-saved { padding: 12px 0; border-bottom: 1px solid var(--line); }
.wf-saved:last-child { border-bottom: 0; }
.wf-saved summary { cursor: pointer; font-weight: 600; }
.wf-text { margin: 8px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.wf-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.wf-facts dt { color: var(--ink-dim); font-size: 11px; }
.wf-facts dd { font-family: var(--mono); margin-top: 4px; overflow-wrap: anywhere; }
.wf-position-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.wf-position-grid .wf-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wf-direction { color: var(--ink-dim); font-size: 12px; margin-left: 8px; }
.wf-scroll { width: 100%; overflow: auto; }
.wf-scroll table { border-collapse: collapse; width: 100%; text-align: left; white-space: nowrap; }
.wf-scroll th, .wf-scroll td { padding: 11px 12px; border-bottom: 1px solid var(--line); }
.wf-scroll th { color: var(--ink-dim); font-size: 12px; font-weight: 500; }
.wf-scroll small { display: block; color: var(--ink-dim); }
.wf-page button:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 850px) { .wf-position-grid { grid-template-columns: 1fr; } }
@media (max-width: 550px) { .wf-form { grid-template-columns: 1fr; } .wf-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wf-page .card { padding: 14px; } }
