::highlight(arc-hl-yellow) { background-color: rgba(253, 222, 88, 0.62); color: inherit; }
::highlight(arc-hl-green)  { background-color: rgba(110, 222, 150, 0.5); color: inherit; }
::highlight(arc-hl-blue)   { background-color: rgba(125, 190, 255, 0.5); color: inherit; }
::highlight(arc-hl-pink)   { background-color: rgba(250, 150, 200, 0.5); color: inherit; }
.rhl-swatch {
width: 30px;
height: 30px;
flex: 0 0 auto;
padding: 0;
border-radius: 999px;
border: 1px solid rgba(15, 23, 42, 0.18);
cursor: pointer;
transition: transform 0.12s ease, box-shadow 0.12s ease;
}
@media (hover: hover) and (pointer: fine) {
.rhl-swatch:hover { transform: scale(1.1); }
}
.rhl-swatch.is-current { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--accent, #0a84ff); }
.rhl-swatch--yellow { background: #fde68a; }
.rhl-swatch--green  { background: #bdf0cd; }
.rhl-swatch--blue   { background: #bfe2ff; }
.rhl-swatch--pink   { background: #fbcfe8; }
.rhl-action {
min-width: 34px;
height: 34px;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
padding: 0 8px;
border: none;
border-radius: 999px;
background: transparent;
color: #475467;
font: inherit;
font-size: 13px;
font-weight: 700;
cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
.rhl-action:hover { background: #eef2f7; color: var(--text, #111318); }
}
.rhl-action[hidden], .rhl-sep[hidden] { display: none; }
.rhl-swatch:focus-visible,
.rhl-action:focus-visible,
.rhl-pill-toggle:focus-visible {
outline: 3px solid rgba(10, 132, 255, 0.4);
outline-offset: 2px;
}
.rhl-bar {
position: fixed;
z-index: 3100;
display: flex;
align-items: center;
gap: 8px;
padding: 7px 9px;
border-radius: 999px;
background: #ffffff;
border: 1px solid rgba(15, 23, 42, 0.1);
box-shadow: 0 14px 34px rgba(15, 23, 42, 0.2);
-webkit-user-select: none;
user-select: none;
-webkit-touch-callout: none;
}
.rhl-bar[hidden] { display: none; }
.rhl-sep {
width: 1px;
height: 22px;
background: rgba(15, 23, 42, 0.12);
}
.rhl-pill {
position: fixed;
left: calc(16px + env(safe-area-inset-left, 0px));
bottom: calc(22px + env(safe-area-inset-bottom, 0px));
z-index: 1335;
display: flex;
align-items: center;
gap: 6px;
padding: 5px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.96);
border: 1px solid rgba(15, 23, 42, 0.1);
box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
-webkit-user-select: none;
user-select: none;
-webkit-touch-callout: none;
}
.rhl-pill[hidden] { display: none; }
.rhl-pill-toggle {
display: inline-flex;
align-items: center;
gap: 7px;
min-height: 38px;
padding: 0 14px 0 11px;
border: none;
border-radius: 999px;
background: transparent;
color: var(--text, #111318);
font: inherit;
font-size: 13.5px;
font-weight: 700;
cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
.rhl-pill-toggle:hover { background: #f1f4f9; }
}
.rhl-pill.is-on .rhl-pill-toggle:not(.rhl-pill-laser) { background: #fde68a; }
.rhl-pill.is-on[data-pen-color="green"] .rhl-pill-toggle:not(.rhl-pill-laser) { background: #bdf0cd; }
.rhl-pill.is-on[data-pen-color="blue"] .rhl-pill-toggle:not(.rhl-pill-laser) { background: #bfe2ff; }
.rhl-pill.is-on[data-pen-color="pink"] .rhl-pill-toggle:not(.rhl-pill-laser) { background: #fbcfe8; }
.rhl-pill .rhl-pill-laser.is-on { background: #ffe1e4; color: #b4122a; }
.rhl-pill .rhl-pill-laser.is-on svg { color: #ff2d40; }
.laser-canvas {
position: fixed;
top: 0;
left: 0;
z-index: 3050;
pointer-events: none;
}
html.laser-on,
html.laser-on * { cursor: none !important; }
html.laser-on .rhl-pill,
html.laser-on .rhl-pill * { cursor: pointer !important; }
.rhl-pill-tray {
display: flex;
align-items: center;
gap: 7px;
padding-right: 3px;
}
.rhl-pill-tray[hidden] { display: none; }
.rhl-pill-tray .rhl-swatch {
width: 26px;
height: 26px;
}
body.rhl-pen-on #hoadTopicWorkspacePage,
body.rhl-pen-on .topic-peek-content {
cursor: text;
}
body.rhl-pen-on[data-rhl-pen-color="yellow"] #hoadTopicWorkspacePage,
body.rhl-pen-on[data-rhl-pen-color="yellow"] .topic-peek-content {
cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cg transform='rotate(45 15 15)'%3E%3Crect x='11' y='1.5' width='8' height='15' rx='2.2' fill='%23facc15' stroke='%231f2937' stroke-width='1.5'/%3E%3Crect x='11' y='13.5' width='8' height='3.5' fill='%231f2937'/%3E%3Cpath d='M12 17h6l-1.6 7.5h-2.8z' fill='%23facc15' stroke='%231f2937' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E") 7 23, text;
}
body.rhl-pen-on[data-rhl-pen-color="green"] #hoadTopicWorkspacePage,
body.rhl-pen-on[data-rhl-pen-color="green"] .topic-peek-content {
cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cg transform='rotate(45 15 15)'%3E%3Crect x='11' y='1.5' width='8' height='15' rx='2.2' fill='%234ade80' stroke='%231f2937' stroke-width='1.5'/%3E%3Crect x='11' y='13.5' width='8' height='3.5' fill='%231f2937'/%3E%3Cpath d='M12 17h6l-1.6 7.5h-2.8z' fill='%234ade80' stroke='%231f2937' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E") 7 23, text;
}
body.rhl-pen-on[data-rhl-pen-color="blue"] #hoadTopicWorkspacePage,
body.rhl-pen-on[data-rhl-pen-color="blue"] .topic-peek-content {
cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cg transform='rotate(45 15 15)'%3E%3Crect x='11' y='1.5' width='8' height='15' rx='2.2' fill='%2360a5fa' stroke='%231f2937' stroke-width='1.5'/%3E%3Crect x='11' y='13.5' width='8' height='3.5' fill='%231f2937'/%3E%3Cpath d='M12 17h6l-1.6 7.5h-2.8z' fill='%2360a5fa' stroke='%231f2937' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E") 7 23, text;
}
body.rhl-pen-on[data-rhl-pen-color="pink"] #hoadTopicWorkspacePage,
body.rhl-pen-on[data-rhl-pen-color="pink"] .topic-peek-content {
cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cg transform='rotate(45 15 15)'%3E%3Crect x='11' y='1.5' width='8' height='15' rx='2.2' fill='%23f472b6' stroke='%231f2937' stroke-width='1.5'/%3E%3Crect x='11' y='13.5' width='8' height='3.5' fill='%231f2937'/%3E%3Cpath d='M12 17h6l-1.6 7.5h-2.8z' fill='%23f472b6' stroke='%231f2937' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E") 7 23, text;
}
@media (pointer: coarse) {
.rhl-swatch { width: 36px; height: 36px; }
.rhl-action { min-width: 44px; height: 44px; }
.rhl-pill-toggle { min-height: 44px; }
.rhl-pill-tray .rhl-swatch { width: 32px; height: 32px; }
}
@media print {
.rhl-bar, .rhl-pill { display: none !important; }
}
body:has(#assessment-session-page.show) .rhl-pill { display: none !important; }
@media (max-width: 720px) {
.rhl-pill {
left: calc(12px + env(safe-area-inset-left, 0px));
bottom: calc(14px + env(safe-area-inset-bottom, 0px));
gap: 4px;
padding: 3px;
}
.rhl-pill .rhl-pill-toggle {
justify-content: center;
min-width: 42px;
min-height: 42px;
padding: 0;
}
.rhl-pill .rhl-pill-toggle > span {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0 0 0 0);
clip-path: inset(50%);
white-space: nowrap;
}
}
