/* Uses the same shared theme as the staff tools. Spreadsheet formatting is export-only. */
.cs-guide{font:14px/1.6 var(--sans);color:var(--txt);background:var(--bg);max-width:1040px;min-width:0;margin:auto;padding:20px 14px 60px;box-sizing:border-box}
.cs-guide *{box-sizing:border-box}.cs-guide [hidden]{display:none!important}
.cs-guide button,.cs-guide input,.cs-guide textarea{font:inherit}
.cs-guide button,.cs-guide .cs-button{min-height:44px;border:1px solid var(--line);background:var(--card);border-radius:8px;padding:8px 13px;color:var(--txt);cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;white-space:nowrap}
.cs-guide button:hover,.cs-guide .cs-button:hover{border-color:var(--line2);background:var(--card2)}
.cs-guide :focus-visible{outline:2px solid var(--accent);outline-offset:2px}.cs-guide button:disabled{opacity:.6;cursor:wait}
.cs-header{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.cs-header h1{font-size:16px;margin:8px 0}.cs-home{color:var(--sub);font-size:13px;min-height:44px;display:flex;align-items:center}.cs-identity{margin-left:auto;font-size:12px;color:var(--sub);overflow-wrap:anywhere}
.cs-actions,.cs-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:16px 0}.cs-actions .cs-button{background:#fff;color:var(--fui-on);border-color:#fff}
.cs-tabs{display:flex;gap:6px;overflow-x:auto;padding:4px 2px 10px;max-width:100%}.cs-tabs button{flex-shrink:0;white-space:nowrap;border-radius:999px}.cs-tabs button[aria-current=true]{color:var(--txt);border-color:var(--line2);background:var(--card2)}
.cs-tools h2{font-size:16px;margin:0 auto 0 0;overflow-wrap:anywhere}.cs-status{font-size:12px;min-height:20px;color:var(--sub)}.cs-status.is-error,.cs-error{color:var(--bad);overflow-wrap:anywhere}
.cs-scroll{max-width:100%;overflow:auto;max-height:73vh;background:var(--card);border:1px solid var(--line);border-radius:14px;position:relative}
.cs-sheet{table-layout:fixed;border-collapse:collapse;background:var(--card);color:var(--txt);min-width:100%;font:inherit}
.cs-sheet thead,.cs-sheet tbody th,.cs-sheet .cs-row-col{display:none}
.cs-sheet td{position:relative;border:0;border-bottom:1px solid var(--line);padding:9px 12px;overflow-wrap:anywhere}
.cs-sheet .cs-cell-value{color:inherit;background:transparent;border:0;border-radius:0;padding:0;min-height:44px;width:100%;height:auto;font:inherit;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;display:block;line-height:1.6}
.cs-sheet .cs-cell-value:hover{background:var(--card2)}.cs-sheet td:hover,.cs-sheet td:focus-within{padding-bottom:38px}
.cs-sheet .cs-cell-history{position:absolute;right:8px;bottom:6px;font-size:11px;min-height:28px;padding:2px 8px;background:var(--card2);color:var(--sub);opacity:0;z-index:1}
.cs-sheet td:hover .cs-cell-history,.cs-sheet td:focus-within .cs-cell-history{opacity:1}
.cs-guide .cs-dialog{width:min(760px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--line);border-radius:14px;background:var(--card);color:var(--txt)}.cs-dialog::backdrop{background:#0009}
.cs-dialog-panel{padding:20px;overflow:auto;max-height:calc(100dvh - 36px)}.cs-dialog-header{position:sticky;top:-20px;z-index:5;background:var(--card);display:flex;gap:12px;align-items:center;margin-bottom:16px;padding:12px 0}.cs-dialog-header h2{margin:0;font-size:16px;flex:1}.cs-guide .cs-close{min-width:60px;min-height:44px}
.cs-dialog label{display:block;font-size:14px;font-weight:600;margin:12px 0}.cs-dialog input,.cs-dialog textarea{display:block;width:100%;padding:10px;border:1px solid var(--line);border-radius:8px;margin-top:6px;min-height:44px;background:var(--card2);color:var(--txt)}.cs-dialog textarea{min-height:220px;resize:vertical;line-height:1.6}
.cs-muted{font-size:12px;color:var(--sub);overflow-wrap:anywhere}.cs-filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.cs-filters input{width:180px;margin:0;flex:1}.cs-history-entry{border-top:1px solid var(--line);padding:12px 0}.cs-history-entry p{margin:6px 0}.cs-history-entry pre{white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.6 var(--sans);background:var(--card2);padding:10px;border-radius:8px;max-width:100%}.cs-history-list{margin-top:16px}.cs-error:empty{display:none}
.cs-guide .cs-unsaved{position:sticky;top:56px;z-index:6;background:var(--card2);border:1px solid var(--warn);border-radius:8px;padding:12px}.cs-guide .cs-unsaved p{margin:0 0 8px}.cs-guide .cs-unsaved button{margin-right:8px}
@media(max-width:600px){.cs-guide{padding:12px}.cs-header{gap:6px 12px}.cs-identity{width:100%;margin:0}.cs-tools h2{width:100%}.cs-tools button{flex:1}.cs-dialog-panel{padding:14px}.cs-dialog-header{top:-14px}.cs-filters input{width:100%;flex-basis:100%}.cs-sheet td{padding-bottom:38px}.cs-sheet .cs-cell-history{opacity:1}.cs-scroll{max-height:65vh}.cs-actions>*{flex:1}}
.cs-guide-row{border-bottom:1px solid var(--line);padding:12px;overflow-wrap:anywhere}.cs-guide-row p{margin:6px 0}.cs-guide h2{font-size:16px;overflow-wrap:anywhere}
