#workspace-grid-app { min-width:0; }
.grid-views,.grid-tools,.grid-bottom { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.grid-views { border-bottom:1px solid var(--line); margin-bottom:16px; padding-bottom:10px; }
.grid-views button { border:0; background:transparent; }
.grid-views button[aria-pressed=true] { background:var(--blue-tint); color:var(--blue); }
.grid-tools { margin-bottom:8px; }
.grid-tools form { display:flex; gap:4px; }
.grid-tools label { display:flex; align-items:center; gap:5px; font-size:12px; }
.grid-tools select { width:auto; max-width:140px; }
.grid-tools input { width:240px; }
.grid-notice { color:var(--danger); font-size:12px; margin:6px 0; }
.grid-notice:empty { display:none; }
.grid-layout { display:grid; grid-template-columns:minmax(0,1fr); align-items:start; }
.grid-layout.with-panel { grid-template-columns:minmax(0,1fr) 300px; gap:16px; }
.grid-main { min-width:0; }
.record-grid { overflow:auto; max-height:calc(100vh - 270px); border:1px solid var(--line); }
.record-grid table { table-layout:fixed; width:max-content; min-width:100%; border-collapse:separate; border-spacing:0; }
.record-grid th,.record-grid td { border-right:1px solid var(--line); border-bottom:1px solid var(--line); padding:0; vertical-align:top; }
.record-grid th { position:sticky; top:0; background:#f7f9fc; z-index:3; height:40px; padding:10px; font-size:12px; white-space:nowrap; }
.record-grid th[data-grid-drag-col] { cursor:grab; }
.record-grid th:first-child,.record-grid td:first-child { position:sticky; left:0; background:#fff; z-index:2; }
.record-grid th:first-child { z-index:4; }
.record-grid th[data-grid-drag-col="title"],.record-grid td[data-col="title"] { position:sticky; left:36px; z-index:2; background:#fff; box-shadow:1px 0 var(--line); }
.record-grid th[data-grid-drag-col="title"] { z-index:4; background:#f7f9fc; }
.grid-panel [data-grid-edit-view] { padding:12px 0; border-bottom:1px solid var(--line); }
@media(max-width:700px) { .record-grid th[data-grid-drag-col="title"],.record-grid td[data-col="title"] { position:static; } }
.record-grid .grid-row-handle { width:36px; text-align:center; padding:12px 0; cursor:grab; color:#8793a6; }
.grid-resize { position:absolute; right:0; top:0; width:7px; height:100%; cursor:col-resize; }
.grid-resize:hover { background:var(--blue); }
.grid-value { padding:12px; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.8; }
.grid-fulltext { font-size:14px; line-height:1.9; }
.record-grid.compact .grid-value { max-height:100px; overflow:auto; }
.grid-editable textarea,.grid-editable input:not([type=checkbox]),.grid-editable select { width:100%; min-width:0; min-height:45px; border:1px solid transparent; background:transparent; padding:12px; font-size:13px; margin:0; resize:vertical; }
.grid-editable textarea { field-sizing:content; }
.grid-editable input[type=checkbox] { margin:16px; }
.grid-editable :is(textarea,input,select):focus { border-color:var(--blue); background:#fff; outline:none; }
.grid-cell-status { display:block; color:var(--muted); font-size:11px; padding:0 10px; white-space:normal; }
.grid-cell-status:empty { display:none; }
.grid-group td { padding:10px 14px; background:#edf3ff!important; font-weight:600; }
.grid-bottom { padding:12px 0; }
.grid-bottom span { margin-left:auto; color:var(--muted); font-size:12px; }
.grid-panel { border:1px solid var(--line); padding:16px; max-height:calc(100vh - 265px); overflow:auto; }
.grid-panel h3 { display:flex; justify-content:space-between; align-items:center; margin-top:0; }
.grid-panel h3 button { font-size:12px; padding:4px; }
.grid-panel form { display:grid; gap:12px; }
.grid-field-list>label { display:flex; align-items:center; gap:8px; padding:7px 0; }
.grid-field-list input[type=checkbox] { width:auto; }
.grid-field-list button,.grid-field-list small { margin-left:auto; }
.grid-source { padding:14px 0; border-bottom:1px solid var(--line); }
.grid-source strong { display:block; }
.grid-empty { padding:48px 24px; color:var(--muted); }
.grid-lock { display:flex; gap:8px; margin-top:12px; }
.grid-conflict { padding:8px 0; display:grid; gap:8px; }
.grid-conflict pre { white-space:pre-wrap; overflow-wrap:anywhere; max-height:180px; overflow:auto; margin:0; font:inherit; color:var(--ink); }
@media(max-width:900px) { .grid-layout.with-panel { grid-template-columns:minmax(0,1fr); } .grid-panel { grid-row:1; max-height:400px; } .record-grid { max-height:65vh; } }
