File size: 10,324 Bytes
8b38665 b2c9ced 74fa33a b0ffedc | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 | :root {
--bg: #f5f6f9; --card: #fff; --text: #16181d; --muted: #5b6270; --line: #e2e5eb;
--red: #ED2939; --blue: #00A1DE; --ok: #1a7f37; --bad: #c4242f; --na: #6e7781; --pending: #9a6700; --err: #8250df;
}
@media (prefers-color-scheme: dark) {
:root { --bg: #0d1117; --card: #161b22; --text: #e6edf3; --muted: #9da7b3; --line: #2b313a;
--ok: #3fb950; --bad: #ff6b6b; --na: #8b949e; --pending: #d29922; --err: #b392f0; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px; background: var(--card); border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, var(--red), var(--blue)); }
.device { color: var(--muted); font-size: 13px; }
main { max-width: 900px; margin: 0 auto; padding: 28px 24px 48px; }
h1 { font-size: 26px; margin: 0 0 6px; }
h2 { font-size: 19px; margin: 0 0 8px; }
.lead { color: var(--muted); margin: 0 0 18px; }
.muted { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.hidden { display: none !important; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; }
.row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.progress { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.progress.thin { height: 6px; margin: 12px 0 4px; }
.progress > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--red)); transition: width .25s; }
.option { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0 18px; font-size: 14px; }
.actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
button { font: inherit; font-weight: 600; border-radius: 10px; padding: 10px 18px; cursor: pointer; border: 1px solid transparent; }
button.primary { background: var(--red); color: #fff; }
button.primary:hover { filter: brightness(.95); }
button.secondary { background: var(--card); color: var(--text); border-color: var(--line); }
button:disabled { opacity: .5; cursor: default; }
.checklist { background: var(--card); border: 1px solid var(--line); border-radius: 12px; max-height: 380px; overflow: auto; }
.check { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 7px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.check:last-child { border-bottom: 0; }
.check .icon { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); }
.check.running .icon { border-color: var(--blue); border-top-color: transparent; animation: spin .8s linear infinite; }
.check.done .icon { border: 0; background: currentColor; }
.check .group { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.s-Compliant { color: var(--ok); } .s-Non-Compliant { color: var(--bad); } .s-NotApplicable { color: var(--na); }
.s-Pending { color: var(--pending); } .s-Error { color: var(--err); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.pill { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); }
.score { font-size: 40px; font-weight: 800; line-height: 1; }
.gaps { margin: 10px 0 0; padding-left: 18px; }
.modal { position: fixed; inset: 0; background: rgba(10, 12, 16, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-box { background: var(--card); border-radius: 14px; padding: 22px; max-width: 480px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
@keyframes spin { to { transform: rotate(360deg); } }
/* Fix problems */
.fixes h2 { margin: 0 0 4px; font-size: 18px; }
.fixes h3 { margin: 18px 0 2px; font-size: 15px; }
.fix-auto, .fix-guided { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.fix-item { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
label.fix-item { justify-content: flex-start; cursor: pointer; }
label.fix-item input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--red); }
.fix-item ol { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--muted); }
.fix-item button { flex-shrink: 0; }
.fix-item .muted { margin: 0; }
.undo-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line); }
.fix-banner { border-left: 4px solid var(--ok); }
.fix-results, .fix-list { margin: 8px 0 0; padding-left: 4px; list-style: none; font-size: 14px; }
.fix-results li, .fix-list li { margin-bottom: 6px; }
button:disabled { opacity: .5; cursor: default; }
/* Approval screen: two rows of two groups */
.sections { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.section { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 12px; display: flex; flex-direction: column; min-width: 0; }
.section-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.section-icon { font-size: 20px; line-height: 1.2; }
.section-titles { flex: 1; min-width: 0; }
.section h3 { font-size: 15px; margin: 0; line-height: 1.3; }
.section-titles p { margin: 2px 0 0; font-size: 12px; color: var(--muted); line-height: 1.4; }
.section .count { flex-shrink: 0; white-space: nowrap; font-size: 12px; font-weight: 600; color: var(--red); background: color-mix(in srgb, var(--red) 10%, transparent); border-radius: 999px; padding: 3px 10px; }
.section ul { margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); overflow: auto; max-height: 232px; border-top: 1px solid var(--line); padding-top: 8px; }
.section li { position: relative; padding: 3px 0 3px 18px; line-height: 1.35; }
.section li::before { content: '✓'; position: absolute; left: 0; top: 3px; color: var(--ok); font-weight: 700; font-size: 12px; }
.section-aiact ul, .section-org ul { max-height: none; }
@media (max-width: 760px) { .sections { grid-template-columns: 1fr; } }
.section-baseline ul, .section-gdpr ul { columns: 2; column-gap: 18px; max-height: 300px; }
.section-baseline li, .section-gdpr li { break-inside: avoid; font-size: 12.5px; }
@media (max-width: 900px) { .section-baseline ul, .section-gdpr ul { columns: 1; } }
/* All results */
button.pill { cursor: pointer; background: var(--card); font-family: inherit; }
button.pill:hover { border-color: currentColor; }
.s-Pending { color: var(--pending); } .s-Error { color: var(--err); }
.results-all h2 { margin: 0 0 2px; font-size: 18px; }
.rf-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.rf-tabs button { border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 999px; padding: 4px 12px; font: 600 13px system-ui, -apple-system, sans-serif; cursor: pointer; }
.rf-tabs button span { opacity: .7; margin-left: 2px; }
.rf-tabs button[aria-pressed="true"] { background: var(--text); color: var(--card); border-color: var(--text); }
.res-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.res { border-bottom: 1px solid var(--line); }
.res:last-child { border-bottom: 0; }
.res > summary { display: grid; grid-template-columns: 118px 1fr minmax(0, 42%); gap: 10px; align-items: center; padding: 9px 12px; cursor: pointer; list-style: none; font-size: 14px; }
.res > summary::-webkit-details-marker { display: none; }
.res > summary:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.res[open] > summary { background: color-mix(in srgb, var(--text) 5%, transparent); }
.res-badge { justify-self: start; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.res-Compliant .res-badge { color: var(--ok); background: color-mix(in srgb, var(--ok) 13%, transparent); }
.res-Non-Compliant .res-badge { color: var(--bad); background: color-mix(in srgb, var(--bad) 13%, transparent); }
.res-Pending .res-badge { color: var(--pending); background: color-mix(in srgb, var(--pending) 14%, transparent); }
.res-Error .res-badge { color: var(--err); background: color-mix(in srgb, var(--err) 13%, transparent); }
.res-NotApplicable .res-badge { color: var(--na); background: color-mix(in srgb, var(--na) 14%, transparent); }
.res-name { font-weight: 600; }
.res-found { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.res-body { padding: 4px 14px 14px 140px; font-size: 13.5px; }
.rd-block { margin-top: 10px; }
.rd-block h4 { margin: 0 0 3px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.rd-block p { margin: 0; }
.rd-block ol { margin: 0; padding-left: 18px; }
.rd-kv { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin-top: 8px; font-size: 13px; }
.rd-kv span { color: var(--muted); }
.rd-tag { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--blue); margin-left: 4px; }
.risk { font-size: 12px; padding: 1px 8px; border-radius: 999px; margin-right: 4px; }
.risk-High { color: var(--bad); background: color-mix(in srgb, var(--bad) 13%, transparent); }
.risk-Medium { color: var(--pending); background: color-mix(in srgb, var(--pending) 14%, transparent); }
.risk-Low { color: var(--blue); background: color-mix(in srgb, var(--blue) 13%, transparent); }
.rd-fixnote { margin-top: 6px !important; color: var(--ok); font-size: 13px; }
.rd-refs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ref { font-size: 11.5px; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.rd-evidence { margin-top: 10px !important; font-size: 12px; }
@media (max-width: 760px) { .res > summary { grid-template-columns: 1fr; gap: 4px; } .res-found { text-align: left; } .res-body { padding-left: 14px; } }
|