:root {
--actmata-btn-bg:            #0d6efd;
--actmata-btn-bg-rgb:        13, 110, 253;
--actmata-btn-hover:         #0b5ed7;
--actmata-btn-text-color:    #ffffff;
--actmata-modal-bg:          #ffffff;
--actmata-modal-text-color:  #212529;
--actmata-modal-btn-bg:      #e9ecef;
--actmata-modal-btn-hover:   #dde1e4;
--actmata-modal-btn-text:    #212529;
--actmata-focus-color:       #ff0;
--actmata-h1-bg:             yellow;
--actmata-h1-text:           #000000; --rg-pos:                    50vh;
--rg-half:                   2em;
} .actmata-btn {
position: fixed;
bottom: 16px;
left: 16px;
width: 70px;
height: 70px;
background-color: var(--actmata-btn-bg) !important;
color: var(--actmata-btn-text-color) !important;
border: none;
padding: 8px;
border-radius: 50px;
font-size: 14px !important;
z-index: 10006;
display: inline-flex;
align-items: center;
gap: 6px;
}
.actmata-btn:hover {
background-color: var(--actmata-btn-hover) !important;
}
.actmata-btn svg {
fill: currentColor;
width: 4em;
height: 4em;
flex-shrink: 0;
} .actmata-modal-backdrop {
position: fixed;
inset: 0;
background-color: transparent;
pointer-events: none;
z-index: 10005;
} .actmata-modal {
display: none;
position: fixed;
top: 64px;
right: 16px;
z-index: 10006;
font-size: 14px !important;
} .actmata-modal-dialog {
background-color: var(--actmata-modal-bg) !important;
color: var(--actmata-modal-text-color) !important;
border-radius: 4px;
max-width: 360px;
box-shadow: 0 8px 16px rgba(0,0,0,0.15);
display: flex;
flex-direction: column;
} .actmata-modal-header {
padding: 12px;
border-bottom: 1px solid #dee2e6;
display: flex;
justify-content: space-between;
align-items: center;
}
.actmata-modal-title {
margin: 0;
font-size: 16px;
font-weight: 500;
display: inline-flex;
align-items: center;
gap: 6px;
}
.actmata-modal-close {
display: inline-flex;
align-items: center;
justify-content: center;
background-color: var(--actmata-modal-btn-bg) !important;
color: var(--actmata-modal-btn-text) !important;
border: 1px solid #adb5bd;
border-radius: 4px;
padding: 8px;
transition: background-color 0.15s ease;
font: inherit;
}
.actmata-modal-close:hover {
background-color: var(--actmata-modal-btn-hover) !important;
}
.actmata-modal-close:focus {
outline: 2px solid var(--actmata-focus-color) !important;
outline-offset: 2px;
}
.actmata-modal-close svg {
fill: currentColor;
width: 1em;
height: 1em;
flex-shrink: 0;
} .actmata-modal-body {
padding: 12px;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 8px;
align-items: stretch;
}
.actmata-modal-body button {
display: flex !important;
flex-direction: column;
align-items: center;
justify-content: space-between;
aspect-ratio: 1 / 1;
padding: 12px;
box-sizing: border-box;
font-size: 12px !important;
font-weight: 500;
color: var(--actmata-modal-btn-text) !important;
background-color: var(--actmata-modal-btn-bg) !important;
border: 1px solid #adb5bd;
border-radius: 4px;
transition: background-color 0.15s ease;
}
.actmata-modal-body button:hover {
background-color: var(--actmata-modal-btn-hover) !important;
}
.actmata-modal-body button:focus {
outline: 2px solid var(--actmata-focus-color) !important;
outline-offset: 2px;
}
.actmata-modal-body button svg {
fill: currentColor;
width: 1.5em;
height: 1.5em;
margin-bottom: 4px;
flex-shrink: 0;
}
.actmata-modal-body button span {
margin-top: auto;
text-align: center;
line-height: 1.2;
} .actmata-modal-body button.active {
background-color: rgba(var(--actmata-btn-bg-rgb), 0.2) !important;
border-color: var(--actmata-btn-bg) !important;
border-width: 2px;
color: var(--actmata-modal-btn-text) !important;
}
#actmata-modal button#actmata-toggle-tts.active {
background-color: var(--actmata-modal-btn-hover) !important;
border-color: var(--actmata-btn-bg) !important;
} .actmata-tts-active {
outline: 2px solid var(--actmata-h1-text);
background-color: var(--actmata-h1-bg) !important;
color: var(--actmata-h1-text) !important;
} html.actmata-contrast {
filter: invert(1) hue-rotate(180deg) !important;
}
html.actmata-grayscale {
filter: grayscale(1) !important;
}
body.actmata-focus *:focus {
outline: 3px solid var(--actmata-focus-color) !important;
outline-offset: 2px !important;
} body.actmata-reading-guide::before,
body.actmata-reading-guide::after {
content: "";
position: fixed;
left: 0;
width: 100%;
background: rgba(0,0,0,0.7); 
pointer-events: none;
z-index: 10003;
}
body.actmata-reading-guide::before {
top: 0;
height: calc(var(--rg-pos) - var(--rg-half));
}
body.actmata-reading-guide::after {
top: calc(var(--rg-pos) + var(--rg-half));
bottom: 0;
} body.actmata-underline-links a {
text-decoration: underline !important;
} html.actmata-highlight-h1 h1 {
background-color: var(--actmata-h1-bg) !important;
color: var(--actmata-h1-text) !important;
} html.actmata-stop-animations *,
html.actmata-stop-animations *::before,
html.actmata-stop-animations *::after {
animation: none !important;
transition: none !important;
}  #actmata-toolbar .form-table th {
border-bottom: 1px solid #ddd;
padding-bottom: 8px;
vertical-align: top;
}
.actmata-color-field {
width: 100%;
max-width: 150px;
vertical-align: middle;
}  #actmata-toolbar .form-table {
display: grid;
grid-template-columns: auto 1fr auto 1fr;
column-gap: 24px;
row-gap: 12px;
} #actmata-toolbar .form-table tbody,
#actmata-toolbar .form-table tr {
display: contents;
} #actmata-toolbar .form-table th {
padding: 0;
text-align: right;
white-space: nowrap;
}
#actmata-toolbar .form-table td {
padding: 0;
}  #actmata-toolbar #actmata_icons_section td {
display: grid;
grid-template-columns: repeat(2, auto);
gap: 12px;
align-items: center;
}
.actmata-icon-selector {
display: inline-flex;
align-items: center;
gap: 8px;
}
.actmata-icon-preview {
width: 24px;
height: 24px;
}
.actmata-icon-selector input[type="hidden"] {
display: none;
} #actmata-icon-modal {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: #fff;
padding: 16px;
box-shadow: 0 4px 12px rgba(0,0,0,0.2);
z-index: 100000;
max-width: 90%;
border-radius: 6px;
}
#actmata-icon-modal:before {
display: none;
}
.actmata-icon-grid {
display: grid;
grid-template-columns: repeat(8, 1fr);
gap: 8px;
max-height: calc(80vh - 32px);
overflow-y: auto;
background: #fff;
}
.actmata-icon-grid::-webkit-scrollbar {
width: 6px;
}
.actmata-icon-grid::-webkit-scrollbar-thumb {
background-color: rgba(0,0,0,0.2);
border-radius: 3px;
}
.actmata-icon-cell {
width: 48px;
height: 48px;
padding: 4px;
border: 2px solid transparent;
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
transition: border-color 0.15s, background-color 0.15s;
}
.actmata-icon-cell:hover {
border-color: #007cba;
background-color: #f1f1f1;
}
.actmata-icon-cell.selected {
border-color: #00a0d2;
background-color: #e5f6ff;
} html.actmata-low-saturation {
filter: saturate(0.5) !important;
}
html.actmata-high-saturation {
filter: saturate(1.5) !important;
} .actmata-alt-text {
display: block;
font-style: italic;
color: #333;
background: #f8f9fa;
padding: 0.25em 0.5em;
margin-bottom: 0.5em;
border-radius: 4px;
}  body.actmata-large-cursor,
body.actmata-large-cursor * {
cursor: var(--actmata-cursor-url) !important;
} :root{
--actmata-scale: 1;
}
html, body{
font-size: calc(1rem * var(--actmata-scale));
}
body, body *{
-webkit-text-size-adjust: 100%;
}
button#actmata-font-plus,
button#actmata-font-inc,
button#actmata-font-minus,
button#actmata-font-dec,
button#actmata-font-reset,
button#actmata-tts-read,
button#actmata-tts-play,
button#actmata-tts-toggle,
button#actmata-tts-pause,
button#actmata-tts-stop{
touch-action: manipulation;
}