.finance-preview-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px}
.finance-settings-form{min-width:0;width:100%}
.finance-settings-form>.admin-panel{width:100%;min-width:0;max-width:none;box-sizing:border-box;align-self:stretch}
.finance-settings-form>.admin-panel>label{margin-bottom:18px}
.finance-settings-form [data-finance-save]{margin-top:6px}
.admin-table-wrap[data-records-module="payments"] table{table-layout:fixed;width:100%;min-width:var(--records-min-width,1500px)}
.admin-table-wrap[data-records-module="payments"] :is(th,td){white-space:normal;overflow-wrap:anywhere;word-break:break-word;vertical-align:top;max-width:none;line-height:1.65}
.admin-table-wrap[data-records-module="payments"] td>span{display:block;max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:break-word}
.record-value-preview{display:block;width:100%;min-width:0;padding:0;border:0;background:transparent;color:inherit;font:inherit;line-height:inherit;text-align:left;cursor:pointer}
.record-value-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;overflow-wrap:anywhere;word-break:break-word;white-space:normal;max-height:4.95em}
.record-value-preview:hover{text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px}
.record-value-preview:focus-visible{outline:2px solid var(--lime);outline-offset:3px;border-radius:3px}
.record-value-dialog{width:min(760px,calc(100vw - 32px));max-height:85dvh;padding:24px;border:1px solid var(--border);border-radius:18px;background:var(--surface-raised);color:var(--ink);box-shadow:0 24px 80px #0005;box-sizing:border-box}
.record-value-dialog[open]{display:flex;flex-direction:column;gap:18px}
.record-value-dialog::backdrop{background:#06130ccc;backdrop-filter:blur(3px)}
.record-value-dialog header,.record-value-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.record-value-dialog h2{margin:0;font-size:1.1rem;overflow-wrap:anywhere}
.record-value-dialog pre{min-height:60px;max-height:55dvh;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;margin:0;padding:16px;border:1px solid var(--border);border-radius:10px;background:var(--surface-input);font: .85rem/1.7 ui-monospace,Consolas,monospace;color:inherit}
.record-value-dialog footer{justify-content:flex-end}
@media(max-width:760px){.record-value-dialog{padding:18px}.record-value-dialog h2{font-size:1rem}}

html[data-theme="dark"] summary{color:var(--text-primary)}
html[data-theme="dark"] :is(.admin-panel,.dashboard-panel,.finance-workspace,.coupon-conditional) summary{color:#d6f3d0}
html[data-theme="dark"] summary::marker{color:#b5ed9b}
html[data-theme="dark"] :is(.admin-content,.finance-workspace,.student-console-main,.prose,.about-reading) a:not(:where(.btn,.page-link,.status,.icon-btn,.course-card,.resource-card,.danger,.text-danger)){color:#a7ed94}
html[data-theme="dark"] :is(.admin-content,.finance-workspace,.student-console-main,.prose,.about-reading) a:not(:where(.btn,.page-link,.status,.icon-btn,.course-card,.resource-card,.danger,.text-danger)):hover{color:#ccffbd}
html[data-theme="dark"] .coupon-studio .required-step{background:linear-gradient(120deg,#14271b,var(--surface-raised));color:var(--text-primary)}
html[data-theme="dark"] .coupon-studio .coupon-step header :is(h2,p){color:inherit}
html[data-theme="dark"] .coupon-studio .coupon-step header p{color:var(--text-secondary)}
html[data-theme="dark"] .coupon-scope-cards label>span>i{color:#b5ed9b}
html[data-theme="dark"] .coupon-scope-cards input:checked+span>i{color:#07391f}

.admin-content>form.site-content-editor{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;gap:20px;min-width:0;width:100%;margin-bottom:24px}
.site-content-editor>.admin-panel{width:100%;min-width:0;max-width:none;box-sizing:border-box;align-self:stretch}
.trust-strip-editor-list{display:grid;gap:12px;margin:18px 0}
.trust-strip-row{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) minmax(150px,1fr) auto;align-items:center;gap:14px;margin:0;padding:16px;border:1px solid var(--border);border-radius:12px;min-width:0}
.trust-strip-row legend{padding:0 6px;font-size:.8rem;font-weight:800;color:var(--ink)}
.trust-strip-row label{min-width:0}.trust-strip-row input{width:100%}
.trust-strip-preview{display:flex;align-items:center;gap:10px;min-width:0;font-size:.8rem;overflow-wrap:anywhere}
.trust-strip-preview i{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:10px;background:var(--soft-lime);color:#07532e}
.trust-strip-actions{display:flex;gap:6px;flex-wrap:wrap}
@media(max-width:1100px){.trust-strip-row{grid-template-columns:repeat(2,minmax(0,1fr))}.trust-strip-actions{justify-content:flex-end}}
@media(max-width:760px){.trust-strip-row{grid-template-columns:minmax(0,1fr)}.trust-strip-actions{justify-content:flex-start}}

html[data-theme="dark"] .trust-strip-preview i{background:#23432b;color:#b5ed9b}
