.notification-center .notification-check {display:inline-flex;align-items:center;gap:.4rem;margin:.5rem 1rem .5rem 0;}
.notification-center input[type=checkbox],#modal[data-notification-form] .notification-check input {width:auto;}
.notification-center .notification-message {white-space:pre-wrap;overflow-wrap:anywhere;}
.notification-center .toolbar {flex-wrap:wrap;gap:.75rem;}
.notification-center .toolbar label {max-width:100%;}
.notification-center details {margin:1rem 0;}
.notification-center pre,#modal[data-notification-form] pre {white-space:pre-wrap;overflow-wrap:anywhere;}
#modal[data-notification-form] textarea {width:100%;min-height:6rem;}
@media(max-width:600px){.notification-center .toolbar label{width:100%;}.notification-center .panel{padding:1rem;}}
.console-table-wrap{overflow:auto;max-width:100%;border-radius:16px;border:1px solid var(--line)}
.console-table{min-width:2450px;border-collapse:separate;border-spacing:0;font-size:14px}
.console-table th,.console-table td{padding:10px;vertical-align:middle;border-bottom:1px solid var(--line)}
.console-table th{background:var(--surface-subtle);white-space:nowrap}
.console-table th:first-child,.console-table td:first-child{position:sticky;left:0;background:var(--white);z-index:2;min-width:170px;box-shadow:2px 0 4px #0001}
.console-table th:first-child{background:var(--surface-subtle);z-index:3}
.console-table input,.console-table select{min-width:100px;width:100%;font-size:14px}
.console-table textarea{width:260px;min-height:70px;font-size:14px}
.console-table td:nth-child(4),.console-table td:nth-child(6),.console-table td:nth-child(9){min-width:180px}
.console-switch{display:inline-flex;align-items:center;justify-content:center;position:relative;width:44px;height:26px}
.console-table .console-switch input{position:absolute;opacity:0;width:44px;min-width:44px;height:26px;cursor:pointer}
.console-switch span{width:44px;height:26px;background:#c5cbc5;border-radius:16px;pointer-events:none}
.console-switch span:before{content:'';display:block;width:20px;height:20px;margin:3px;border-radius:50%;background:white;transition:transform .15s}
.console-switch input:checked+span{background:var(--green)}.console-switch input:checked+span:before{transform:translateX(18px)}
.console-switch input:focus-visible+span{outline:2px solid var(--green);outline-offset:3px}.console-switch input:disabled+span{opacity:.4}
.row-tests{display:flex;gap:5px}.row-tests button{white-space:nowrap}

.console-table td:first-child button{margin-top:7px;width:100%;font-size:13px;min-height:34px;background:var(--surface-subtle)}
.console-table td:first-child [data-result]{display:block;font-size:12px;color:var(--ink)}
.row-tests{flex-direction:column}.row-tests button{font-size:13px;min-height:34px}
.console-table{table-layout:fixed;width:2700px;min-width:2700px}
.console-table th:first-child,.console-table td:first-child{width:170px;min-width:170px;max-width:170px}
.console-table td:nth-child(10),.console-table th:nth-child(10){width:260px}
.console-table td:last-child,.console-table th:last-child{width:115px}
.console-table td:first-child{white-space:normal}
.console-table td:first-child select,.console-table td:first-child button{display:block;max-width:100%}
/* Dense rule matrix; wrapped headers never determine column width. */
.console-table{width:1850px;min-width:1850px;font-size:13px}
.console-table th,.console-table td{padding:5px 6px;overflow-wrap:anywhere;white-space:normal}
.console-table th{line-height:1.25;white-space:normal}
.console-table th:first-child,.console-table td:first-child{width:140px;min-width:140px;max-width:140px}
.console-table input,.console-table select{min-width:0!important;min-height:32px!important;padding:5px 6px!important;font-size:13px;box-sizing:border-box}
.console-table textarea{width:100%;min-width:0;min-height:52px;box-sizing:border-box;font-size:13px;padding:5px 6px}
.console-table td:nth-child(4),.console-table td:nth-child(6),.console-table td:nth-child(9){min-width:0}
.console-table td:nth-child(10),.console-table th:nth-child(10){width:190px}
.console-table td:last-child,.console-table th:last-child{width:95px}
.console-table td:first-child button,.row-tests button{min-height:30px;padding:4px 6px;font-size:12px;margin-top:3px}
.console-table .console-switch input{min-width:44px!important;padding:0!important;min-height:26px!important}

.console-role-list{max-height:150px;overflow:auto;margin:6px 0 0;padding:4px;border:1px solid var(--line)}
.console-role-list label{display:flex;align-items:center;gap:5px;padding:3px 0}
.console-table .console-role-list input{width:16px!important;min-height:16px!important;flex:0 0 16px}


.console-workspace{display:grid;grid-template-columns:minmax(240px,.75fr) minmax(0,2fr);gap:16px;align-items:start}
.console-rule-list,.console-editors{border:1px solid var(--line);border-radius:7px;background:#fff;padding:12px;min-width:0}
.console-rule-list{position:sticky;top:12px;max-height:calc(100dvh - 300px);overflow:auto}
.console-rule-list input{width:100%;box-sizing:border-box;min-height:34px;height:34px;margin-bottom:10px}
.console-rule-list .console-rule{display:block;width:100%;text-align:left;padding:10px 8px;border:0;border-bottom:1px solid var(--line);border-radius:0;font-size:13px;min-height:40px;background:#fff}
.console-rule-list .console-rule[aria-pressed=true]{background:#e3f0e9;color:#275c4b;border-left:3px solid #306e62}
.console-workspace [hidden]{display:none!important}.console-editor-group{margin:0 0 16px}.console-editor-group h3{font-size:15px;margin:0 0 10px;padding-bottom:7px;border-bottom:1px solid var(--line)}
.console-editor-group>div{display:flex;flex-wrap:wrap;gap:12px 18px}.console-field{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:130px;max-width:100%;font-size:13px}
.console-field-label{font-size:12px;color:var(--muted)}.console-field select,.console-field input:not([type=checkbox]){box-sizing:border-box;height:34px;min-height:34px;border-radius:4px;padding:4px 8px;max-width:100%}
.console-field:has(textarea){flex:1 1 100%}.console-field textarea{box-sizing:border-box;width:100%;min-height:64px;height:64px;border-radius:4px;padding:8px}.console-field .console-role-list{max-height:180px;overflow:auto}
.console-workspace .console-switch{min-height:24px}.console-editor-group [data-save-row]{background:#306e62;color:#fff;border-radius:4px;padding:6px 12px}.console-editor-group .row-tests{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:800px){.console-workspace{grid-template-columns:1fr}.console-rule-list{position:static;max-height:240px}.console-editors{padding:10px}}

.console-workspace .console-switch input{position:absolute;opacity:0;width:44px;min-width:44px;height:26px;min-height:26px;padding:0;cursor:pointer;margin:0;z-index:1}
.console-workspace .console-role-list input{width:16px;min-height:16px;flex:0 0 16px}
