:root {
  color-scheme: light;
  --paper: #f9f7f3;
  --white: #fffdfa;
  --ink: #2c2330;
  --muted: #635966;
  --line: #e9e1e6;
  --plum: #4f2741;
  --lavender: #f1e8f1;
  --coral: #fa8f78;
  --danger: #a3333d;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-inline-size: 0; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .53; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #9470a6; outline-offset: 3px; }
main:focus, [tabindex="-1"]:focus { outline: none; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.05rem, 5vw, 3.25rem); line-height: 1.04; letter-spacing: -.045em; }
h2 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -.025em; }
h3 { font-size: 1rem; }
p, li { line-height: 1.55; }
a { color: var(--plum); }
.skip { position: fixed; z-index: 3; left: 12px; top: 10px; padding: 12px; background: white; transform: translateY(-155%); }
.skip:focus { transform: none; }
.top { background: var(--white); border-bottom: 1px solid var(--line); }
.top-inner { max-width: 1180px; min-height: 68px; padding: 0 24px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; font-size: 1.18rem; font-weight: 800; letter-spacing: -.035em; }
.brand img { border-radius: 11px; }
.top-account { font-size: .88rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offline { background: #ffedcc; text-align: center; padding: 9px 12px; font-size: .88rem; }
.loading { margin: 12vh auto; width: fit-content; color: var(--muted); }
.auth-layout { max-width: 1000px; margin: clamp(24px, 8vh, 86px) auto; padding: 0 24px; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 16px; }
.auth-art { position: relative; isolation: isolate; overflow: hidden; min-height: 475px; border-radius: 30px; background: #502940; color: #fff6ef; padding: 36px; }
.auth-art::before, .auth-art::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; }
.auth-art::before { width: 285px; height: 285px; background: #6b3b5f; bottom: -95px; right: -42px; }
.auth-art::after { width: 185px; height: 185px; border: 1px solid #9b647e; bottom: 16px; right: 6px; }
.art-title { font-size: clamp(1.55rem, 3vw, 2.25rem); font-weight: 750; line-height: 1.15; letter-spacing: -.04em; position: relative; z-index: 1; }
.package { position: absolute; inset: 45% auto auto 23%; width: 56%; height: 42%; border-radius: 16px 18px 30px 19px; padding: 26px; background: #fff3dc; color: #502940; transform: rotate(-12deg); box-shadow: 0 20px 40px #3116277a, inset -9px -7px 0 #ebcdb2; }
.package-title { font-weight: 760; font-size: 1.45rem; }
.package-line { height: 5px; width: 90%; margin: 7px 0; background: #c3a5a8; border-radius: 4px; }
.package-line:nth-child(3) { width: 65%; }
.package-line:nth-child(4) { width: 77%; }
.barcode { height: 28px; width: 36%; margin: 15px 0 0 auto; background: repeating-linear-gradient(90deg,#502940 0 3px,transparent 3px 5px,#502940 5px 6px,transparent 6px 9px); }
.scan-frame { position: absolute; inset: 36% 12% 12% 12%; border: 2px solid #ffa389a8; border-radius: 27px; box-shadow: inset 0 0 0 1px #62365033; }
.scan-frame::after { content: ""; position: absolute; left: 6%; right: 6%; top: 52%; height: 2px; background: #f58e77; box-shadow: 0 0 10px #f5a391; }
.auth-content { border: 1px solid var(--line); border-radius: 30px; background: var(--white); padding: clamp(23px, 4vw, 45px); display: grid; place-content: center stretch; }
.auth-content h1 { font-size: clamp(1.9rem, 3vw, 2.65rem); margin-bottom: 14px; }
.intro, .page-title p, .file-hint, .muted { color: var(--muted); }
label { display: grid; gap: 6px; font-weight: 650; font-size: .94rem; }
label small { font-weight: 450; color: var(--muted); }
input:not([type="checkbox"]), textarea, select { min-width: 0; width: 100%; padding: 11px 12px; min-height: 44px; border-radius: 12px; border: 1px solid #d8ccd5; background: #fff; color: var(--ink); font-size: 1rem; }
textarea { resize: vertical; }
input[type="checkbox"] { width: 19px; height: 19px; margin: 2px 0; accent-color: var(--plum); }
.check { display: flex; align-items: start; gap: 9px; font-weight: 500; line-height: 1.4; }
.check input { flex: 0 0 auto; }
.auth-content form, .text-pane, #delete-form { display: grid; gap: 13px; }
.auth-content form h1 { margin: 0; }
.auth-content form .primary { margin-top: 4px; width: 100%; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.text-button, .primary, .secondary, .segmented button, nav button { min-height: 44px; font-weight: 700; font-size: .94rem; }
.text-button { background: transparent; border: 0; color: var(--plum); padding: 6px 0; text-align: left; text-underline-offset: 4px; text-decoration: underline; }
.text-button:hover { color: #784b6e; }
.back { width: fit-content; }
.primary, .secondary { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 12px; padding: 10px 15px; }
.primary { color: #fff; background: var(--plum); }
.primary:hover:enabled { background: #643755; }
.secondary { color: var(--plum); background: #fcf8fb; border-color: #dcd1dc; }
.secondary:hover:enabled { background: var(--lavender); }
.workspace { max-width: 1180px; min-height: calc(100dvh - 68px); margin: auto; display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.sidebar { padding: 30px 16px 24px 24px; border-right: 1px solid var(--line); }
.sidebar nav { display: grid; gap: 5px; }
nav button { display: flex; align-items: center; gap: 12px; text-align: left; color: var(--muted); border: 0; border-radius: 12px; background: transparent; padding: 9px 12px; }
nav button[aria-current="page"] { color: var(--plum); background: var(--lavender); }
nav button:hover { color: var(--plum); background: var(--lavender); }
.nav-icon { display: inline-flex; width: 20px; height: 20px; flex: 0 0 20px; position: relative; }
.scan-icon { border: 2px solid currentColor; border-radius: 5px; }
.scan-icon::before { content: ""; position: absolute; left: 3px; right: 3px; top: 7px; border-top: 2px solid currentColor; }
.profile-icon { background: linear-gradient(currentColor,currentColor) 3px 4px/14px 2px no-repeat, linear-gradient(currentColor,currentColor) 3px 9px/14px 2px no-repeat, linear-gradient(currentColor,currentColor) 3px 14px/14px 2px no-repeat; }
.account-icon::before, .account-icon::after { content: ""; position: absolute; border: 2px solid currentColor; left: 50%; transform: translateX(-50%); }
.account-icon::before { width: 8px; height: 8px; top: 0; border-radius: 50%; }
.account-icon::after { width: 16px; height: 9px; bottom: 0; border-radius: 8px 8px 4px 4px; }
.install { margin: 10px 0 0; }
.workspace-content { padding: clamp(24px, 5vw, 60px) clamp(20px, 7vw, 90px); }
.screen { max-width: 735px; margin: 0 auto; }
.page-title { margin-bottom: 25px; }
.page-title p { margin-top: 10px; }
.segmented { display: inline-flex; padding: 4px; border-radius: 14px; background: #eee8ec; margin: 0 0 14px; }
.segmented button { color: var(--muted); border: 0; padding: 5px 17px; border-radius: 10px; background: transparent; }
.segmented button[aria-pressed="true"] { color: var(--plum); background: var(--white); box-shadow: 0 1px 4px #422c3f15; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: clamp(16px, 4vw, 26px); }
.card + .card, .message + .card { margin-top: 14px; }
.upload { text-align: center; border: 1px dashed #cfbbce; border-radius: 15px; background: #faf5f8; padding: 32px 10px; }
.upload-symbol { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 12px; background: #efdfed; border-radius: 16px; color: var(--plum); }
.upload-symbol span { width: 24px; height: 18px; border: 2px solid currentColor; border-radius: 4px; position: relative; }
.upload-symbol span::before { content: ""; width: 10px; height: 10px; border: 2px solid currentColor; border-radius: 50%; position: absolute; top: 2px; left: 5px; }
.upload-symbol span::after { content: ""; width: 10px; height: 3px; background: currentColor; position: absolute; top: -4px; left: 5px; border-radius: 3px 3px 0 0; }
.upload p { margin: 5px 0 0; color: var(--muted); font-size: .93rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.file-hint { margin-top: 8px; font-size: .82rem; }
.media { border-radius: 13px; overflow: hidden; background: #2b2430; }
.media video, .media img { display: block; width: 100%; max-height: min(55dvh, 440px); object-fit: contain; }
.text-pane .primary, #save-profile { justify-self: start; width: fit-content; }
.message { border-radius: 11px; margin: 12px 0; padding: 9px 12px; background: #f1ebf6; color: #523b68; font-size: .91rem; }
.message.error { background: #fff0ee; color: #902c38; }
.message.success { background: #eaf2e9; color: #24513b; }
.result { display: grid; gap: 12px; margin-top: 16px; }
.verdict {
  --verdict-ink: #523d63;
  --verdict-icon: #775385;
  --verdict-wash: #efe3f4;
  --verdict-border: #e1d1e7;
  display: grid;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(13px, 4vw, 24px);
  border: 1px solid var(--verdict-border);
  border-radius: 24px;
  padding: clamp(17px, 4vw, 32px);
  color: var(--verdict-ink);
  background: linear-gradient(130deg, var(--verdict-wash), #fffdfa);
}
.verdict[data-tone="positive"] {
  --verdict-ink: #175039;
  --verdict-icon: #20784f;
  --verdict-wash: #d8f4e4;
  --verdict-border: #bde1cb;
}
.verdict[data-tone="negative"] {
  --verdict-ink: #742437;
  --verdict-icon: #a93750;
  --verdict-wash: #ffdee5;
  --verdict-border: #efbdc8;
}
.verdict[data-tone="caution"] {
  --verdict-ink: #63421c;
  --verdict-icon: #8b5a25;
  --verdict-wash: #faeccb;
  --verdict-border: #e8d2a2;
}
.verdict::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto -54px -87px auto;
  width: 192px;
  aspect-ratio: 1;
  border: 22px solid var(--verdict-wash);
  border-radius: 50%;
  opacity: .74;
}
.verdict-symbol {
  --symbol-size: clamp(47px, 12vw, 72px);
  position: relative;
  display: grid;
  place-items: center;
  width: var(--symbol-size);
  aspect-ratio: 1;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--verdict-icon);
  color: #fff;
  box-shadow: 0 0 0 5px #ffffff80;
}
.verdict-symbol::before { content: "–"; font-weight: 800; font-size: 1.65rem; line-height: 1; }
.verdict[data-tone="positive"] .verdict-symbol::before {
  content: "";
  width: calc(var(--symbol-size) * .37);
  height: calc(var(--symbol-size) * .20);
  border-inline-start: 4px solid;
  border-block-end: 4px solid;
  transform: translateY(-2px) rotate(-45deg);
}
.verdict[data-tone="negative"] .verdict-symbol::before,
.verdict[data-tone="negative"] .verdict-symbol::after {
  content: "";
  grid-area: 1 / 1;
  width: calc(var(--symbol-size) * .38);
  border-block-end: 4px solid;
  border-radius: 3px;
  transform: rotate(45deg);
}
.verdict[data-tone="negative"] .verdict-symbol::after { transform: rotate(-45deg); }
.verdict[data-tone="caution"] .verdict-symbol::before { content: "!"; }
.verdict-copy { min-width: 0; }
.verdict h2 { font-size: clamp(1.44rem, 5vw, 2.44rem); line-height: 1.06; letter-spacing: -.045em; }
.verdict p { margin-top: 6px; font-size: .88rem; line-height: 1.4; }
.verdict .verdict-kicker { margin: 0 0 6px; font-size: .76rem; line-height: 1.2; font-weight: 750; }
.result-evidence { padding: clamp(14px, 4vw, 23px); }
.result-evidence h3 { margin-bottom: 8px; }
.verdict-checks { display: grid; gap: 7px; margin: 0 0 13px; padding: 0; list-style: none; }
.verdict-checks li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1px 9px;
  border-radius: 12px;
  padding: 8px 10px;
  font-size: .87rem;
  overflow-wrap: anywhere;
}
.verdict-checks .has-clear { background: #eaf6ee; color: #24533c; }
.verdict-checks .has-match { background: #fff0f1; color: #742437; }
.verdict-checks li::before {
  content: "✓";
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 1.45rem;
  aspect-ratio: 1;
  border-radius: 50%;
  color: #fff;
  background: #20784f;
  font-weight: 800;
}
.verdict-checks .has-match::before { content: "!"; background: #a93750; }
.check-category { font-size: .75rem; font-weight: 750; }
.result-notice { color: var(--muted); font-size: .83rem; }
.findings { padding: 0; list-style: none; display: grid; gap: 8px; margin: 8px 0 16px; }
.findings li { padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; overflow-wrap: anywhere; }
.findings strong { display: block; }
.findings blockquote { border-left: 2px solid var(--coral); padding-left: 9px; margin: 5px 0 0; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.result-sources { display: grid; gap: 8px; }
.result-source { border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.result-source summary { min-height: 44px; padding: 11px 14px; font-weight: 700; cursor: pointer; }
.result-source p { padding: 0 14px 12px; white-space: pre-wrap; color: var(--muted); max-height: 25em; overflow: auto; }
.result-actions { margin-top: 0; }
.profile-fields { display: grid; gap: 10px; margin-top: 12px; grid-template-columns: minmax(125px, 1fr) minmax(0, 2fr); }
.lookup-option { display: block; border: 0; border-bottom: 1px solid var(--line); background: transparent; width: 100%; min-height: 44px; text-align: left; padding: 8px 3px; color: var(--plum); }
.lookup-option:hover { background: #f8f2f8; }
#lookup-results:not(:empty) { margin-top: 10px; }
.rule-group { margin-top: 14px; }
.rule-group h2 { margin-bottom: 5px; }
.rule-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.rule-row:last-child { border-bottom: 0; }
.rule-row .check { flex: 1; }
.rule-row .text-button { flex: 0 0 auto; }
#save-profile { margin-top: 16px; }
#view-account h2 { margin-bottom: 8px; }
.account-delete p { margin-bottom: 6px; color: var(--muted); }
.danger { color: var(--danger); }
.danger-fill { background: var(--danger); }
.danger-fill:hover:enabled { background: #872b31; }
@media (max-width: 699px) {
  .top-inner { min-height: 58px; padding: 0 16px; }
  .auth-layout { grid-template-columns: minmax(0, 1fr); margin: 16px auto; padding: 0 14px; max-width: 440px; }
  .auth-art { min-height: 126px; padding: 20px; border-radius: 20px; }
  .art-title { font-size: clamp(1.2rem, 5.2vw, 1.65rem); }
  .package { width: 28%; height: 80%; left: auto; top: 17%; right: 9%; padding: 9px; }
  .package-title { font-size: .67rem; }
  .package-line { height: 3px; margin: 4px 0; }
  .barcode { height: 18px; margin-top: 7px; width: 43%; }
  .scan-frame { inset: 10% 5% 10% 63%; border-radius: 12px; }
  .auth-content { border-radius: 20px; }
  .workspace { display: block; min-height: initial; }
  .workspace-content { padding: 25px 14px calc(86px + env(safe-area-inset-bottom)); }
  .sidebar { position: fixed; z-index: 2; inset: auto 0 0; border: 0; border-top: 1px solid var(--line); background: var(--white); padding: 3px 9px calc(3px + env(safe-area-inset-bottom)); }
  .sidebar nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  nav button { justify-content: center; flex-direction: column; gap: 4px; font-size: .77rem; padding: 7px 3px; }
  .button-row > button { flex: 1 1 auto; }
}
@media (max-width: 460px) {
  .profile-fields { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .segmented { display: flex; }
  .segmented button { flex: 1; padding-inline: 4px; }
}
