#online-data[hidden]{display:none!important}.online-data-view{color:#eef6f6;min-width:0}.data-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:18px;background:#e0edf0;color:#163d47;border-radius:12px}.data-filters label{display:flex;flex-direction:column;gap:5px}.data-filters input,.data-filters select{width:100%;box-sizing:border-box}.data-filters input[type=checkbox]{width:auto;align-self:flex-start}.data-scroll{overflow:auto;background:#edf4f3;color:#173b45;border-radius:10px}.data-scroll table{border-collapse:collapse;width:100%}.data-scroll td,.data-scroll th{padding:10px;border-bottom:1px solid #c3d4d6;text-align:left}.data-scroll button{color:#173b45}#data-detail-dialog{max-width:min(850px,90vw);max-height:85vh}#data-detail-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere}.spell-bubbles{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.spell-bubbles button{border-radius:28px;padding:10px 16px;display:flex;flex-direction:column}.spell-bubbles button[aria-current=true]{outline:3px solid #287b76}.spell-bubble-editor{background:#f0f5ed;padding:16px;border-radius:12px}.spell-bubble-editor .spell-word-row{background:transparent}.spell-bubble-section textarea{width:100%;box-sizing:border-box}@media(max-width:650px){.data-filters{grid-template-columns:minmax(0,1fr)}}
.online-app-shell .wrap>.top{grid-template-columns:150px minmax(0,1fr) auto;grid-template-areas:'turtle title controls'}.bonus-counter-scope{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.online-app-shell #admin-session-settings{color:#f1f7f7}.online-app-shell #admin-session-settings h1{color:#f1f7f7}.online-app-shell #admin-session-settings select{max-width:260px}.spell-bubble-editor .spell-acquisition-choice{display:flex!important;align-items:center;gap:12px}.spell-bubble-editor input[type=checkbox]{width:22px!important;min-height:22px!important;flex:0 0 22px}#spell-word-remove-dialog{width:min(540px,calc(100vw - 30px));max-height:85vh;overflow:auto;padding:22px;background:#edf3fa;color:#033249;border:2px solid #91aabd;border-radius:14px;font:18px/1.6 system-ui}#spell-word-remove-dialog button{min-height:48px;padding:10px 16px}@media(max-width:650px){.online-app-shell .wrap>.top{grid-template-columns:140px minmax(0,1fr);grid-template-areas:'turtle title' 'controls controls'}.online-app-shell .top>.app-title{width:100%;max-width:245px}}

.spell-bubbles{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.spell-bubbles button{display:flex;flex-direction:column;align-items:center;min-height:48px;max-width:100%;padding:10px 18px;border:1px solid #8daabd;border-radius:28px;background:#fff;color:#033249;font:inherit;overflow-wrap:anywhere;cursor:pointer}.spell-bubbles button small{font-size:12px}.spell-bubbles button[aria-current=true]{background:#cbdde8;border:2px solid #295775}.spell-bubble-editor{background:#eef4f8;border:2px solid #91aabd;border-radius:13px;padding:18px;margin:18px 0}.spell-bubble-editor h3{font-size:23px;line-height:1.5;overflow-wrap:anywhere}.spell-bubble-editor .spell-word-row{border:0;margin:0;padding:0}.spell-bubble-section>textarea{min-height:85px}.spell-bubble-editor .evidence-actions{flex-wrap:wrap}.spell-bubble-editor button,.spell-bubble-section>button{min-height:48px;font:inherit}.spell-bubble-editor .spell-word-pair{display:block}.spell-bubble-editor input,.spell-bubble-editor select{width:100%;max-width:100%}#spell-word-remove-dialog{width:min(540px,calc(100vw - 30px));max-height:85vh;overflow:auto;padding:22px;background:#edf3fa;color:#033249;border:2px solid #91aabd;border-radius:14px;font:18px/1.6 system-ui}#spell-word-remove-dialog::backdrop{background:#102c4566}#spell-word-remove-dialog button{min-height:48px;font:inherit;padding:10px 16px}@media(max-width:520px){.spell-bubble-editor{padding:12px}.spell-bubble-editor .evidence-actions button{flex:1}}
.spell-bubble-section button{min-height:48px;padding:9px 14px;border:1px solid #8daabd;border-radius:10px;background:#fff;color:#033249;font:inherit;cursor:pointer}.spell-bubble-section button:focus-visible{outline:3px solid #67466f;outline-offset:3px}.spell-bubble-section button:disabled{opacity:.55;cursor:default}.spell-bubbles button{border-radius:28px}.spell-bubble-editor .spell-acquisition-choice{display:flex!important;justify-content:flex-start;align-items:center;gap:12px}.spell-bubble-editor input[type=checkbox]{width:22px!important;min-height:22px!important;flex:0 0 22px;margin:0}
.data-scroll table{min-width:720px;table-layout:auto}.data-scroll td,.data-scroll th{white-space:nowrap;word-break:normal;overflow-wrap:normal}.online-data-view>.back{color:#e8f4f4}#admin-session-card button.admin-tool-circle{margin-inline:auto}

.record-readonly{color:#173e4e;background:#eaf1f3;border-radius:12px;padding:16px;overflow-wrap:anywhere}.record-readonly dl{margin:0}.record-readonly dl>div{padding:10px 0;border-bottom:1px solid #bbced4}.record-readonly dt{font-weight:700}.record-readonly dd{margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.record-preservation-note{font-size:14px}.history-filter{display:flex;flex-direction:column;gap:6px;max-width:380px;margin:18px 0}.history-record-details>summary{color:inherit;min-height:44px;cursor:pointer}.history-item>button{min-height:44px}.data-scroll td.data-measurement{white-space:pre-wrap;max-width:330px;min-width:150px;overflow-wrap:anywhere}.data-record-details{max-width:100%}#data-detail-dialog{padding:22px;background:#eaf1f3;color:#173e4e;width:min(850px,calc(100vw - 30px));box-sizing:border-box}#data-detail-dialog h2{color:#173e4e}#data-detail-close{min-height:44px}.record-readonly a{color:inherit}@media(max-width:650px){.record-readonly{padding:12px}.history-item{min-width:0}.history-record-details{min-width:0}}

.online-app-shell #app .history-item{background:#eaf1f3;color:#173e4e;border:1px solid #9db9c4;border-radius:12px;padding:16px;margin:18px 0}.online-app-shell #app .history-item h2,.online-app-shell #app .history-item p,.online-app-shell #app .history-record-details>summary{color:#173e4e}.online-app-shell #app .history-item h2{font-size:23px;line-height:1.45}

.data-view-options{background:#e1edf2;color:#173e50;border:0;border-radius:12px;padding:14px 18px;margin:12px 0}#scoped-export-dialog{width:min(560px,calc(100vw - 36px));max-height:85vh;overflow:auto;background:#e9f0f5;color:#173e50;border:0;border-radius:16px;padding:22px}#scoped-export-dialog p{color:#173e50}#scoped-export-dialog .actions{display:flex;flex-wrap:wrap;gap:8px}

.online-data-view button,#scoped-export-dialog button{font:inherit;min-height:40px;padding:8px 14px;background:#d9e8ec;color:#173e50;border:1px solid #9fb5be;border-radius:999px;cursor:pointer}.online-data-view button:focus-visible,#scoped-export-dialog button:focus-visible{outline:3px solid #39778c;outline-offset:2px}.online-data-view input:not([type=checkbox]),.online-data-view select{font:inherit;border:1px solid #a8bdc7;border-radius:8px;min-height:42px;padding:8px;background:#f1f5f7;color:#173e50;box-sizing:border-box;max-width:100%}#scoped-export-dialog .actions{margin-top:16px}

/* Separate next Data candidate: readable rows and a close control outside scrolling detail. */
.data-scroll{border:1px solid #9db7c0}.data-scroll thead th{position:sticky;top:0;background:#cbdfe5;z-index:1}.data-scroll tbody tr:nth-child(even){background:#e0edf0}.data-scroll tbody tr:hover{background:#d4e8ed}.data-scroll tbody td{vertical-align:top;line-height:1.5}.data-scroll tbody td:last-child{white-space:normal;min-width:150px}.data-scroll tbody td:last-child button{display:block;margin:5px 0}.data-scroll td.data-measurement{min-width:180px;max-width:350px}.data-page-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:16px 0}.data-action-error{padding:10px 14px;background:#ffe1dd;color:#7c201b;border:2px solid #bb534b;border-radius:10px}
#data-detail-dialog[open]{display:flex;flex-direction:column;padding:0;max-height:88vh;overflow:hidden;width:min(1050px,calc(100vw - 24px));border:1px solid #7194a3;border-radius:14px}#data-detail-dialog::backdrop,#data-change-dialog::backdrop{background:#102d4777}.data-detail-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:16px 18px;background:#d6e7ed;color:#153f50;flex:0 0 auto}.data-detail-header h2{margin:0;font-size:1.3rem;line-height:1.4;overflow-wrap:anywhere}.data-detail-header button{flex:0 0 44px;width:44px;min-height:44px;border:1px solid #7e9da9;border-radius:50%;background:#f5fafb;color:#163f50;font-size:28px;line-height:1;cursor:pointer}.data-detail-header button:focus-visible,.data-dialog-actions button:focus-visible{outline:3px solid #7c4b91;outline-offset:2px}.data-detail-body{overflow:auto;min-height:0;padding:16px 18px}.data-dialog-actions{display:flex;gap:10px;flex-wrap:wrap;padding:10px 18px;border-bottom:1px solid #b1c9d2;background:#edf4f6}.data-dialog-actions:empty{display:none}.data-dialog-actions button,#data-change-submit{min-height:44px;padding:8px 15px;font:inherit;border:1px solid #86a6b4;border-radius:12px;background:#d8e9ee;color:#173e50;cursor:pointer}.data-detail-table,.data-event-table{border-collapse:collapse;width:100%;margin:0 0 20px;color:#183f4e;table-layout:fixed}.data-detail-table caption,.data-event-table caption{text-align:left;font-weight:700;font-size:1.06rem;padding:10px 12px;background:#cbdfe7}.data-detail-table th,.data-detail-table td,.data-event-table th,.data-event-table td{border:1px solid #b4cbd3;padding:10px 12px;vertical-align:top;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}.data-detail-table th{width:30%;text-align:left;background:#dfebef}.data-detail-table tr:nth-child(even) td{background:#e1edf0}.data-event-scroll{overflow:auto}.data-event-table{min-width:850px;table-layout:auto}.data-event-table th{text-align:left;background:#dae8ed}.data-minute{display:inline-block;padding:4px 9px;border-radius:99px;background:#245f78;color:#fff;font-weight:700}.data-audit{padding:14px;border:1px solid #96b7c5;border-radius:12px;background:#e2edf2}.data-audit>summary,.data-audit-revision>details>summary{min-height:44px;cursor:pointer;font-weight:700}.data-audit-revision{margin:14px 0;border-top:1px solid #b1c9d4;padding-top:10px}.data-audit-revision h3{color:#173f50}.data-audit-revision>details{margin:10px 0}#data-change-dialog{padding:0;width:min(560px,calc(100vw - 24px));max-height:88vh;overflow:auto;background:#edf4f6;color:#173f50;border:1px solid #7194a3;border-radius:14px}#data-change-form{padding:18px;display:flex;flex-direction:column;gap:10px}#data-change-form input{font:inherit;min-height:44px;box-sizing:border-box;width:100%;padding:8px;border:1px solid #8cabb8;border-radius:8px}#data-change-status{white-space:pre-wrap;line-height:1.5}
@media(max-width:600px){.data-detail-header{padding:12px;gap:10px}.data-detail-body{padding:12px}.data-detail-table th{width:35%}.data-detail-table th,.data-detail-table td{padding:8px}.data-dialog-actions{padding:10px 12px}.data-dialog-actions button{flex:1}.data-scroll{max-width:100%}}

/* Five primary event columns; secondary values expand inside a readable key/value cell. */
.data-event-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;border:1px solid #acc4ce;border-radius:8px}.data-event-scroll:focus-visible{outline:3px solid #39778c;outline-offset:2px}.data-event-table{min-width:960px;width:100%;table-layout:fixed;margin-bottom:0}.data-event-table .data-col-minute{width:10%}.data-event-table .data-col-source{width:20%}.data-event-table .data-col-result{width:10%}.data-event-table .data-col-prompts{width:22%}.data-event-table .data-col-details{width:38%}.data-event-table>thead>tr>th{white-space:nowrap;overflow-wrap:normal;word-break:normal;padding:10px}.data-event-table>tbody>tr>th,.data-event-table>tbody>tr>td{padding:10px;overflow-wrap:break-word;word-break:normal;vertical-align:top}.data-event-table>tbody>tr:nth-child(even){background:#e0edf0}.data-event-prompts{margin:0}.data-event-prompts>div{margin:0 0 10px}.data-event-prompts dt{font-size:.9em;font-weight:700}.data-event-prompts dd{margin:2px 0 0;white-space:pre-wrap}.data-event-values{padding-left:20px;margin:2px 0}.data-event-more>summary{min-height:44px;cursor:pointer;font-weight:700;line-height:1.5;white-space:normal;overflow-wrap:normal}.data-event-more>summary:focus-visible{outline:3px solid #39778c;outline-offset:2px}.data-event-fields{width:100%;table-layout:fixed;border-collapse:collapse;margin:8px 0 0}.data-event-fields caption{text-align:left;white-space:normal;font-size:.9em;font-weight:700;padding:6px;background:#d7e7ed}.data-event-fields th,.data-event-fields td{padding:8px;border:1px solid #afc7d1;white-space:pre-wrap;overflow-wrap:break-word;word-break:normal;line-height:1.5}.data-event-fields th{width:35%;text-align:left;background:#e1edf1}.data-event-fields td{background:#f0f6f7}.data-event-fields .data-event-fields{font-size:.95em}
