:is(.sheet-table,.team-table) .source-field-cell{min-width:145px;max-width:260px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.45;text-align:left!important;color:#675f54;vertical-align:middle}
:is(.sheet-table,.team-table) .source-field-header{min-width:145px;max-width:260px;white-space:normal;text-align:left!important}
:is(.sheet-table,.team-table) [data-source-field][hidden]{display:none!important}
.sheet-table.has-source-fields{min-width:calc(1085px + var(--source-column-count)*145px)}
.team-table:has(.source-field-cell){min-width:max(100%,1250px);table-layout:auto}
.source-field-cell a{color:#934e27;text-underline-offset:3px;border-radius:4px}.source-field-cell a:hover{background:#f3d9bc;color:#5d341b}.source-field-cell a:focus-visible{outline:2px solid #b45e2f;outline-offset:2px}
 .sheet-table .source-field-compact{display:flex;align-items:center;gap:4px;width:100%;min-width:0;max-width:260px}
.sheet-table .source-field-editor{display:block;flex:1 1 0;width:100%;min-width:0;min-height:34px;max-height:9em;margin:0;padding:7px 3px;background:transparent;color:inherit;border:1px solid transparent;border-radius:3px;field-sizing:fixed;height:34px;overflow:hidden;resize:none;font:inherit;line-height:1.45}
.sheet-table .source-field-editor::placeholder{color:transparent}
.sheet-table .source-field-editor:hover{background:transparent}
.sheet-table .source-field-editor:focus{field-sizing:content;height:auto;overflow:auto;resize:vertical;background:var(--sheet-editor-paper,#fff);outline:0;border-color:transparent}
.sheet-table .source-field-editor:focus::placeholder{color:#9a9288}
.sheet-table .source-field-links{display:flex;flex:0 0 auto;flex-wrap:wrap;gap:2px;max-width:54px;max-height:90px;overflow:auto;align-items:center}
.sheet-table .source-field-links[hidden]{display:none!important}
.sheet-table .source-field-links a{display:grid;place-items:center;width:24px;min-width:24px;height:28px;padding:3px;background:transparent;border:0;border-radius:4px;color:#934e27}
.sheet-table .source-field-links a:hover{background:#edcfad;color:#542b14}
.sheet-table .source-field-links svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.source-inline-options{display:grid;gap:1px;position:relative;max-height:110px;overflow:auto;padding:4px 0 2px;margin-top:3px;border-top:1px solid #e5dfd7;overscroll-behavior:contain}
.source-inline-options[hidden]{display:none!important}
.sheet-table .source-inline-options button{display:block;width:100%;min-width:0;min-height:26px;padding:4px 5px;text-align:left;font:inherit;white-space:normal;overflow-wrap:anywhere;border:0;border-radius:3px;background:transparent;color:#625b52}
.sheet-table .source-inline-options button:is(:hover,[aria-selected=true]){background:#e8e5df;color:#292623}
.sheet-draft-docked .source-inline-options{display:none!important}
.team-table .source-unassigned .person-chip{white-space:normal;background:#f4ead9;color:#89613a}.team-table .source-unassigned .team-row-actions button:disabled{opacity:.3;cursor:default;background:none}

.team-table:has(.source-field-cell){min-width:calc(1260px + var(--source-column-count,0)*155px);table-layout:auto!important}
.team-table:has(.source-field-cell) :is(th,td):nth-child(2){min-width:160px;width:160px}
.team-table:has(.source-field-cell) :is(th,td):nth-child(4){min-width:330px;width:330px}
.team-table:has(.source-field-cell) :is(th,td):nth-child(5){min-width:155px;width:155px}
.team-table:has(.source-field-cell) :is(th,td):nth-child(6){min-width:110px}
.team-table:has(.source-field-cell) :is(th,td):nth-child(7){min-width:120px;white-space:nowrap}
.team-table:has(.source-field-cell) :is(th,td):is(:nth-child(8),:nth-child(9)){min-width:95px}
.team-table:has(.source-field-cell) .person-chip{white-space:nowrap}
.sheet-table.has-source-fields :is(th,td):nth-child(4){min-width:260px}
:is(.sheet-table,.team-table) .source-field-cell{white-space:pre-line}

.team-table:has(.source-field-cell) .team-row-actions{position:sticky;right:0;z-index:2;background:#fffdf9;box-shadow:-1px 0 #e5dfd4}
.team-table:has(.source-field-cell) th.team-row-actions{z-index:4;background:#f1eee8}

/* Additional fields follow the warm grey new-task row while editing. */
.work-sheet .sheet-table tr:is(.draft,.new-entry,.sheet-draft-docked) .source-field-editor{background:transparent;color:#fffaf3;caret-color:#fffaf3;color-scheme:dark}
.work-sheet .sheet-table tr:is(.draft,.new-entry,.sheet-draft-docked) .source-field-editor:is(:hover,:focus){background:#57524c;color:#fffaf3}
.work-sheet .sheet-table tr:is(.draft,.new-entry,.sheet-draft-docked) :is(input,textarea):focus{background-color:#57524c!important;color:#fffaf3;caret-color:#fffaf3}
.work-sheet .sheet-table tr:is(.draft,.new-entry,.sheet-draft-docked) .source-field-editor::placeholder{color:#e1dbd2;opacity:1}

/* Floating listboxes share one surface outside the sheet's layout and clipping. */
.company-field-options{position:fixed;inset:auto;margin:0;z-index:10020;display:grid;gap:2px;max-height:260px;overflow:auto;overscroll-behavior:contain;padding:5px;border:1px solid var(--line,#d8cbbf);border-radius:9px;background:var(--paper,#fffdf9);color:var(--ink,#302b26);box-shadow:0 9px 28px #21180f2b;box-sizing:border-box;scrollbar-gutter:stable;font-size:13px}
.company-field-options[hidden]{display:none!important}
.company-field-options button{display:block;box-sizing:border-box;width:100%;min-width:0;min-height:36px;padding:8px 10px;border:1px solid transparent;border-radius:5px;background:transparent;color:inherit;text-align:start;font:inherit;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
.company-field-options button:is(:hover,[aria-selected=true]){background:#efdbc5;color:#713813;border-color:#cf9e74}
.company-field-options button:focus-visible{outline:2px solid #b45629;outline-offset:-2px}
:root[data-theme=night] .company-field-options{background:var(--paper,#242a30);color:var(--ink,#eee);box-shadow:0 9px 28px #0007}
:root[data-theme=night] .company-field-options button:is(:hover,[aria-selected=true]){background:#4b3a2c;color:#ffd0ad;border-color:#b9845a}
@media(pointer:coarse){.company-field-options button{min-height:44px}}
