.srOnly { position: absolute; width: 1px; height: 1px; padding: 0px; margin: -1px; overflow: hidden; clip: rect(0px, 0px, 0px, 0px); white-space: nowrap; border: 0px; }
.checkmodes { display: flex; width: max-content; max-width: 100%; margin: 14px auto 0px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgb(13, 13, 15); }
.checkmodes:has(#imageMode[hidden]):has(#historyMode[hidden]) { display: none; }
.checkmodes button { appearance: none; height: 30px; padding: 0px 16px; border: 0px; border-radius: 999px; background: transparent; cursor: pointer; color: var(--muted); font: 500 10px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; transition: background-color 0.18s, color 0.18s, box-shadow 0.18s; }
.checkmodes button:hover { color: var(--fg); }
.checkmodes button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.04); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
main:not([data-checker-view="history"]) #historyPanel { display: none; }
.checkmodes[hidden] + #textWorkspace .workspace { margin-top: clamp(18px, 3vh, 30px); }
#plagiarismPanel .pcap, #historyPanel .pcap { position: static; right: auto; background: none; padding: 13px 18px 5px; }
#plagiarismPanel .pcap::before, #historyPanel .pcap::before { display: none; }
#historyPanel { margin-top: 18px; min-height: var(--pane-h); }
.historyFilters { display: grid; grid-template-columns: repeat(3, minmax(0px, 1fr)); gap: 12px 18px; padding: 4px 18px 0px; }
.historyFilters label { display: grid; gap: 4px; min-width: 0px; font: 500 var(--label-size)/1.6 var(--mono); letter-spacing: var(--label-track); text-transform: uppercase; color: rgba(255, 255, 255, 0.46); }
select, .historyItem input:not([type="checkbox"]) { width: 100%; height: 36px; padding: 0px; border-top: 0px; border-right: 0px; border-left: 0px; border-image: none; border-bottom: 1px solid var(--line); border-radius: 0px; background: transparent; color: var(--fg); font: 14px var(--sans); letter-spacing: 0px; text-transform: none; outline: none; transition: border-color 0.18s; }
select:focus, .historyItem input:not([type="checkbox"]):focus { border-bottom-color: rgba(56, 189, 248, 0.6); }
#historyStatus { margin: 14px 18px 0px; font: 400 10.5px/1.6 var(--mono); letter-spacing: var(--readout-track); color: var(--muted); }
#historyList { padding: 4px 18px 8px; }
.historyItem { display: flex; flex-direction: column; padding: 18px 0px; border-top: 1px solid var(--hairline); }
#historyList .historyItem:first-child { border-top: 0px; }
.historyHead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.historyHead strong { font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.historyHead strong::first-letter { text-transform: uppercase; }
.historyHead span { font-style: ; font-variant-ligatures: ; font-variant-caps: ; font-variant-east-asian: ; font-variant-alternates: ; font-variant-position: ; font-variant-emoji: ; font-weight: ; font-stretch: ; font-size: ; line-height: ; font-family: ; font-optical-sizing: ; font-size-adjust: ; font-kerning: ; font-feature-settings: ; font-variation-settings: ; font-language-override: ; letter-spacing: var(--readout-track); color: rgba(255, 255, 255, 0.46); font-variant-numeric: tabular-nums; }
.historyItem code { display: block; margin: 4px 0px 10px; font: 400 var(--label-size)/1.6 var(--mono); color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.historyItem > label { margin: 10px 0px 2px; font: 500 var(--label-size)/1.6 var(--mono); letter-spacing: var(--label-track); text-transform: uppercase; color: rgba(255, 255, 255, 0.46); }
.historyItem > label:has(input[type="checkbox"]) { display: flex; align-items: flex-start; gap: 9px; margin-top: 12px; font: 400 12.5px/1.55 var(--sans); letter-spacing: 0px; text-transform: none; color: var(--muted); order: 1; }
.historyItem textarea { width: 100%; min-height: 52px; resize: none; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(0, 0, 0, 0.25); font-size: 14px; line-height: 1.55; outline: none; }
.historyItem textarea:focus { border-color: rgba(56, 189, 248, 0.4); }
.historyItem > .historyActions { order: 2; }
.historyItem > input[type="url"] { order: 3; margin-top: 10px; font: 12px var(--mono); text-overflow: ellipsis; }
.historyItem > .status { order: 4; margin: 8px 0px 0px; }
.historyActions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.historyActions .secondary { height: 34px; padding: 0px 15px; font-size: 13px; }
#historyList .historyActions > button:nth-child(2) { order: 9; margin-left: auto; }
#historyList .historyActions > button:nth-child(2):hover:not(:disabled) { color: rgb(255, 154, 145); border-color: rgba(255, 107, 96, 0.5); background: rgba(255, 107, 96, 0.08); }
#historyLoadMore { display: flex; margin: 6px auto 18px; height: 36px; padding: 0px 18px; font-size: 13px; }
#localRecordPanel .historyActions { justify-content: center; }
#localRecordPanel .historyActions .secondary { height: 36px; padding: 0px 18px; font-size: 13px; }
@media (max-width: 640px) {
.checkmodes { width: 100%; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0px, 1fr); }
.checkmodes button { height: 36px; padding: 0px 8px; }
.checkmodes button[hidden] { display: none; }
.historyFilters { gap: 10px; }
.historyFilters label { letter-spacing: 0.08em; }
}
.historyItem .pangramProof { margin: 12px 0px 10px; max-width: 760px; }
.historyHead strong + span:not(:last-child) { margin-right: auto; }
.historyHead { align-items: center; }
.historyHead > span:not(.verdictPill):not(:last-child) { margin-right: 0px; }
.historyHead > span:last-child { margin-left: auto; }
.verdictPill { display: inline-flex; align-items: center; height: 22px; padding: 0px 10px; border-radius: 999px; border: 1px solid; white-space: nowrap; font: 500 11.5px/1 var(--sans) !important; letter-spacing: 0px !important; }
.verdictPill[data-tone="ai"] { border-color: rgba(248, 113, 113, 0.4); background: rgba(248, 113, 113, 0.1); color: rgb(252, 165, 165) !important; }
.verdictPill[data-tone="mixed"] { border-color: rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.1); color: rgb(252, 211, 77) !important; }
.verdictPill[data-tone="human"] { border-color: rgba(52, 211, 153, 0.38); background: rgba(52, 211, 153, 0.1); color: rgb(167, 243, 208) !important; }
.historyItem > .pangramProof { margin: 14px 0px 4px; }
#historyList .historyActions > button:only-child { margin-left: auto; }
#historyList .historyActions > button:only-child:hover:not(:disabled) { color: rgb(255, 154, 145); border-color: rgba(255, 107, 96, 0.5); background: rgba(255, 107, 96, 0.08); }
.historyFilters label:has(#historyTag) { display: none; }
.historyFilters { display: flex; justify-content: flex-end; gap: 10px; padding: 2px 18px 0px; }
.historyFilters label { display: block; font-size: 0px; letter-spacing: 0px; }
.historyFilters select { appearance: none; width: auto; height: 34px; padding: 0px 34px 0px 14px; border: 1px solid var(--line); border-radius: 999px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a1a1aa' stroke-width='1.4'/%3E%3C/svg%3E") right 14px center no-repeat rgba(255, 255, 255, 0.03); font: 500 13px var(--sans); cursor: pointer; transition: border-color 0.18s, background-color 0.18s; }
.historyFilters select:hover { border-color: rgba(255, 255, 255, 0.28); }
.historyFilters select:focus-visible { border-color: rgba(56, 189, 248, 0.6); outline: none; }
@media (max-width: 640px) {
.historyFilters { justify-content: flex-start; }
}
.histTabs { display: flex; gap: 4px; width: max-content; margin: 4px 18px 14px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.02); }
.histTabs button { height: 34px; padding: 0px 20px; border: 0px; border-radius: 9px; background: transparent; color: var(--muted); font: 600 14px var(--sans); cursor: pointer; }
.histTabs button[aria-selected="true"] { background: rgba(255, 255, 255, 0.08); color: var(--fg); }
#historyPanel .historyFilters { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 10px 8px; padding: 0px 18px; }
.histFilterLabel { font: 500 13px var(--sans); color: var(--muted); margin-right: 2px; }
.histPills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.histPill { height: 32px; padding: 0px 14px; border: 1px solid transparent; border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: var(--fg); font: 600 13px var(--sans); cursor: pointer; }
.histPill:hover { background: rgba(255, 255, 255, 0.1); }
.histPill[aria-pressed="true"] { border-color: rgba(56, 189, 248, 0.7); background: rgba(56, 189, 248, 0.08); color: rgb(125, 211, 252); }
.histDivider { width: 1px; height: 22px; background: var(--line); margin: 0px 4px; }
.histRight { display: flex; align-items: center; gap: 6px; margin-left: auto; }
#historyPanel .historyFilters label.histDate { display: block; font-size: 0px; }
#historyPanel .historyFilters select { height: 34px; padding: 0px 26px 0px 10px; border: 0px; border-radius: 8px; background-color: transparent; background-position: right 8px center; font: 500 13px var(--sans); color: var(--muted); }
#historyPanel .historyFilters select:hover { background-color: rgba(255, 255, 255, 0.05); border: 0px; }
#historySearch { width: 200px; height: 36px; padding: 0px 12px 0px 34px; border: 1px solid var(--line); border-radius: 10px; color: var(--fg); font: 14px var(--sans); outline: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23a1a1aa' stroke-width='1.6'%3E%3Ccircle cx='6' cy='6' r='4.5'/%3E%3Cpath d='M9.5 9.5L13 13'/%3E%3C/svg%3E") 12px center no-repeat rgba(255, 255, 255, 0.02); }
#historySearch:focus { border-color: rgba(56, 189, 248, 0.6); }
.histBulk { height: 32px; padding: 0px 12px; border: 1px solid rgba(255, 107, 96, 0.45); border-radius: 999px; background: rgba(255, 107, 96, 0.08); color: rgb(255, 154, 145); font: 600 12.5px var(--sans); cursor: pointer; }
.histBulk[hidden] { display: none; }
#historyList { margin: 14px 18px 8px; padding: 0px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
#historyList:empty { display: none; }
.histRow { grid-template-columns: 28px minmax(0px, 1.6fr) minmax(0px, 1fr) minmax(0px, 1.1fr); align-items: center; gap: 0px 16px; padding: 0px 18px; display: grid !important; }
.histHeadRow { height: 46px; background: rgba(255, 255, 255, 0.04); border-bottom: 1px solid var(--line); font: 500 12.5px var(--sans); color: var(--muted); }
.histDateHead { cursor: pointer; user-select: none; }
#historyList .historyItem { padding: 0px; border-top: 0px; border-bottom: 1px solid var(--hairline); }
#historyList .historyItem:last-child { border-bottom: 0px; }
#historyList .historyItem > .historyHead { min-height: 70px; flex-wrap: nowrap; }
#historyList .historyItem > .historyHead:hover { background: rgba(255, 255, 255, 0.024); }
.histCheck { width: 16px; height: 16px; margin: 0px; accent-color: rgb(56, 189, 248); cursor: pointer; }
.historyHead .histName { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 14.5px/1.35 var(--sans) !important; }
.historyHead .histName::first-letter { text-transform: none; }
.histWhen { display: flex; flex-direction: column; gap: 2px; font: 400 14px/1.3 var(--sans) !important; letter-spacing: 0px !important; color: var(--fg) !important; margin: 0px !important; }
.histWhen > span { font: inherit !important; color: inherit !important; letter-spacing: 0px !important; }
.histWhen small { font-size: 12.5px; color: var(--muted); }
.histClass { display: flex; gap: 6px; margin: 0px !important; }
.historyHead > .histClass { margin-left: 0px !important; }
#historyList .historyItem > :not(.historyHead) { margin-left: 62px; margin-right: 18px; }
#historyList .historyItem > .pangramProof { margin-top: 6px; }
#historyList .historyItem > .historyActions { margin-top: 10px; margin-bottom: 16px; }
.historyItem .historyHead[role="button"]::after { display: none; }
.verdictPill[data-kind="similarity"] { border-color: rgba(52, 211, 153, 0.38); background: rgba(52, 211, 153, 0.1); color: rgb(167, 243, 208) !important; }
.verdictPill[data-kind="similarity"][data-tone="ai"] { border-color: rgba(248, 113, 113, 0.4); background: rgba(248, 113, 113, 0.1); color: rgb(252, 165, 165) !important; }
.histPager { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 6px 0px 18px; }
.histPager[hidden] { display: none; }
.histPage { min-width: 34px; height: 34px; padding: 0px 8px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--fg); font: 500 13px var(--sans); cursor: pointer; }
.histPage[aria-current="page"] { border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.06); }
.histPage:disabled { opacity: 0.35; cursor: default; }
.histGap { color: var(--muted); padding: 0px 2px; }
@media (max-width: 640px) {
.histRight { margin-left: 0px; flex: 1 1 100%; min-width: 0px; gap: 10px; }
.histFilterLabel, .histDivider { display: none; }
#historyPanel .historyFilters label.histDate { flex: 0 0 auto; }
#historyPanel .historyFilters select { padding-left: 4px; }
#historySearch { flex: 1 1 auto; width: auto; min-width: 0px; }
.histRow { grid-template-columns: 24px minmax(0px, 1fr) auto; gap: 4px 12px; padding: 0px 14px; }
.histHeadRow > span:nth-child(3), .histHeadRow > span:nth-child(4) { display: none; }
#historyList .historyItem > .historyHead { padding-top: 12px; padding-bottom: 12px; }
.historyHead .histWhen { grid-area: 2 / 2; flex-direction: row; gap: 6px; font-size: 12.5px !important; color: var(--muted) !important; }
.historyHead .histClass { grid-area: 1 / 3 / 3; }
#historyList .historyItem > :not(.historyHead) { margin-left: 50px; margin-right: 14px; }
}
#historyPanel > .pcap { display: none; }
.histTabs { margin-top: 18px; }
#historyList .historyItem > .historyHead { min-height: 62px; }
#historyList .historyItem:has(.histCheck:checked) > .historyHead { background: rgba(56, 189, 248, 0.06); }
.histHeadRow { height: 42px; font-size: 12px; letter-spacing: 0.01em; }
.histName { color: var(--fg); }
.verdictPill { gap: 6px; }
.verdictPill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentcolor; opacity: 0.9; }
.histPager { margin-top: 14px; }
.historyItem[data-heat="on"] > .pangramProof { display: none; }
#historyList .historyItem > .heatTabs { margin: 12px auto 10px; }
#historyList .historyItem > .heatView { margin-bottom: 6px; }
.verdictPill[data-tone="unsure"] { border-color: rgba(212, 212, 216, 0.32); background: rgba(212, 212, 216, 0.08); color: rgb(212, 212, 216) !important; }
.batchItem .historyActions { margin-top: 8px; }
.historyItem .historyHead[role="button"] { cursor: pointer; position: relative; padding-right: 22px; }
.historyItem .historyHead[role="button"]::after { content: ""; position: absolute; right: 4px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border-right: 1.5px solid rgba(255, 255, 255, 0.5); border-bottom: 1.5px solid rgba(255, 255, 255, 0.5); transform: rotate(45deg); transition: transform 0.18s; }
@media (prefers-reduced-motion: reduce) {
.historyItem .historyHead[role="button"]::after { transition: none; }
}
.historyItem:not(.isCollapsed) .historyHead[role="button"]::after { transform: rotate(-135deg); margin-top: -1px; }
.historyItem .historyHead[role="button"]:focus-visible { outline: 2px solid var(--focus,#7dd3fc); outline-offset: 3px; border-radius: 8px; }
@media screen and (max-width: 639px) {
#historyPanel .histRight { flex-wrap: wrap; }
#historyPanel #historyDeleteSelected { white-space: nowrap; }
#historyPanel .histRight #historySearch { flex: 1 1 120px; }
}
#historyPanel .histNote { margin: 6px 0px 0px; padding: 4px 18px 16px; font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.55); }
#historyPanel .histNote a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
#historyList:has(> .histCta) { border: 0px !important; margin: 0px !important; border-radius: 0px !important; }
#historyPanel .histCta { display: flex; justify-content: center; padding: 14px 18px 26px; }