:root {
  color-scheme: light;
  --navy: #002b7f;
  --blue: #0484d6;
  --sky: #77ccff;
  --red: #f5362f;
  --ink: #101b2d;
  --muted: #69778a;
  --subtle: #94a0af;
  --line: #e5ebf2;
  --wash: #f5f9fd;
  --white: #fff;
  --system: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--system);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}
header {
  min-height: 78px;
  padding: 0 max(4vw, calc((100vw - 1440px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #edf1f6;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.8px;
  white-space: nowrap;
}
.brand-mark { width: 38px; height: 38px; flex: 0 0 auto; filter: drop-shadow(0 3px 7px #002b7f20); }
.brand-dot { color: var(--blue); }
.brand-my { color: #67768b; font-weight: 600; }
.privacy, .eyebrow, .card-head label, .meta, .submit small, footer {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .055em;
}
.privacy { display: flex; align-items: center; gap: 9px; color: var(--muted); }
.privacy b { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #37ad80; box-shadow: 0 0 0 3px #37ad8018; }
.privacy small { color: #c6cdd6; }
main { width: min(96vw, 1760px); margin-inline: auto; }
.hero { padding: clamp(56px, 7vh, 88px) 0 clamp(30px, 3vw, 46px); }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--blue); }
.eyebrow i { width: 22px; height: 2px; flex: 0 0 auto; border-radius: 2px; background: var(--blue); }
.eyebrow span { margin-left: auto; color: var(--subtle); }
h1 {
  margin: 24px 0 18px;
  font-size: clamp(48px, 7.6vw, 78px);
  font-weight: 650;
  line-height: .99;
  letter-spacing: -5px;
}
h1 em { color: var(--blue); font-style: normal; }
.hero p { max-width: 58ch; color: var(--muted); font-size: clamp(16px, 1.15vw, 19px); line-height: 1.65; }
.card {
  padding: clamp(28px, 3vw, 48px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 18px 55px #002b7f0b, 0 2px 9px #152c4510;
}
.card-head, .meta, .submit, .result-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.card-head { margin-bottom: 15px; }
.card-head label { color: var(--blue); }
.card-head label span { margin-left: 9px; color: #637187; }
.link {
  min-height: 42px;
  padding: 8px 0 8px 8px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-family: var(--system);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
textarea {
  display: block;
  width: 100%;
  min-height: clamp(260px, 32vh, 440px);
  padding: clamp(18px, 1.5vw, 26px);
  resize: vertical;
  border: 1px solid #dce5ef;
  border-radius: 12px;
  outline: none;
  background: #fbfdff;
  color: var(--ink);
  font: clamp(16px, 1.1vw, 19px)/1.7 var(--system);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
textarea:focus { border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px #0484d615; }
textarea::placeholder { color: #9ba8b8; }
.meta { margin-top: 10px; color: var(--subtle); font-size: clamp(11px, .78vw, 13px); }
.meta .over-limit { color: #c72e2a; font-weight: 600; }
.file-tools { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; margin-top: 16px; }
#files { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.upload-button, .clear-button {
  min-height: clamp(46px, 3.4vw, 54px);
  padding: 0 clamp(15px, 1.4vw, 22px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #cadbed;
  border-radius: 10px;
  background: #f4f9fe;
  color: var(--navy);
  font-size: clamp(14px, .9vw, 16px);
  font-weight: 600;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.upload-button:hover, .clear-button:hover { border-color: #9bc9ea; background: #eaf5fd; }
.upload-button:focus-within, #files:focus-visible + .upload-button { outline: 3px solid #0484d629; outline-offset: 2px; }
.file-types, .file-status { color: var(--subtle); font: clamp(11px, .75vw, 13px) var(--mono); letter-spacing: .02em; }
.file-status { margin: 9px 0 0; }
.clear-button { margin-left: auto; background: var(--white); color: var(--muted); }
.submit { justify-content: flex-start; gap: 19px; margin-top: 21px; }
.submit button {
  min-height: clamp(56px, 4.5vw, 66px);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  border: 0;
  border-radius: 11px;
  background: var(--blue);
  box-shadow: 0 6px 14px #0484d626;
  color: var(--white);
  font-family: var(--system);
  font-size: clamp(16px, 1.05vw, 18px);
  font-weight: 650;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.submit button:hover { transform: translateY(-1px); background: #006db6; box-shadow: 0 9px 18px #0484d633; }
.submit button:disabled { opacity: .58; cursor: wait; transform: none; }
.submit small { color: #77869a; font-size: clamp(11px, .75vw, 13px); letter-spacing: 0; }
#error { margin: 14px 0 0; color: #b43831; font-size: 13px; line-height: 1.5; }
.result { margin-top: 18px; padding: clamp(26px, 3vw, 44px); border: 1px solid #d7e7f5; border-radius: 16px; background: #f1f8fe; }
.result-head { align-items: flex-end; }
.result-head h2 { margin: 8px 0 0; font-size: clamp(23px, 1.8vw, 30px); font-weight: 650; letter-spacing: -.8px; }
.result-head strong { color: var(--navy); font-size: clamp(36px, 3.3vw, 50px); font-weight: 600; letter-spacing: -2px; }
.result-head small { color: var(--subtle); font: 10px var(--mono); }
.track { height: 5px; margin: 19px 0 13px; overflow: hidden; border-radius: 5px; background: #d5e7f5; }
.track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--navy)); transition: width .5s; }
.result p { color: #5f6e82; font-size: clamp(15px, .95vw, 17px); line-height: 1.65; }
.caution { padding: 53px 0 64px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.grid article { padding-top: 14px; border-top: 1px solid var(--line); }
.grid small { color: var(--blue); font: 500 10px var(--mono); }
.grid h3 { margin: 12px 0 7px; font-size: clamp(17px, 1.1vw, 20px); font-weight: 650; letter-spacing: -.2px; }
.grid p { margin: 0; color: var(--muted); font-size: clamp(15px, .95vw, 17px); line-height: 1.7; }
footer { min-height: 68px; padding: 12px max(4vw, calc((100vw - 1760px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid #edf1f6; color: var(--navy); font-size: clamp(11px, .75vw, 13px); }
footer small { margin-left: 10px; color: var(--subtle); }
html[hidden], [hidden] { display: none !important; }
button, input, textarea { font: inherit; }
button:focus-visible, .upload-button:focus-visible, .link:focus-visible { outline: 3px solid #0484d640; outline-offset: 3px; }
@media (max-width: 700px) {
  header { min-height: 66px; padding: 10px 5vw; }
  .brand { gap: 9px; font-size: 17px; }
  .brand-mark { width: 34px; height: 34px; }
  .privacy { gap: 6px; font-size: 8px; }
  main { width: 94vw; }
  .hero { padding: 50px 0 27px; }
  h1 { margin: 20px 0 15px; font-size: clamp(43px, 12vw, 64px); letter-spacing: -3.2px; }
  .hero p { font-size: 16px; }
  .card { padding: 21px 18px 22px; border-radius: 15px; }
  .card-head label { font-size: 9px; }
  .card-head label span { margin-left: 6px; }
  textarea { min-height: clamp(240px, 34vh, 380px); padding: 16px; font-size: clamp(16px, 4vw, 18px); }
  .meta { align-items: flex-start; gap: 12px; font-size: 10px; }
  .meta span:last-child { text-align: right; }
  .file-tools { gap: 9px; }
  .file-types { font-size: 10px; }
  .upload-button, .clear-button { min-height: 44px; }
  .clear-button { margin-left: 0; }
  .submit { align-items: stretch; flex-direction: column; gap: 13px; }
  .submit button { width: 100%; min-height: 52px; justify-content: space-between; }
  .submit small { font-size: 10px; }
  .result { padding: 21px 18px; }
  .result-head h2 { font-size: 21px; }
  .result-head strong { font-size: 32px; }
  .grid { grid-template-columns: 1fr; gap: 17px; margin-top: 19px; }
  .grid article { padding-top: 11px; }
  .grid h3 { margin: 9px 0 5px; }
  .caution { padding: 40px 0 46px; }
  footer { padding: 15px 5vw 12px; align-items: stretch; flex-direction: column; gap: 12px; font-size: 10px; }
  footer span:first-child { max-width: 100%; }
  footer small { display: block; margin: 4px 0 0; }
  footer nav { align-self: flex-end; }
}
@media (max-width: 380px) {
  .privacy { max-width: 130px; justify-content: flex-end; text-align: right; letter-spacing: 0; }
  .privacy small { display: none; }
  .card { padding-right: 14px; padding-left: 14px; }
  .file-types { width: 100%; padding-left: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Supporting SEO pages */
.content-page { max-width: 1120px; }
.content-page .hero { padding-top: clamp(48px, 6vh, 72px); }
.content-page h1 { font-size: clamp(42px, 6vw, 68px); }
.content-card { padding: clamp(25px, 4vw, 56px); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 36px #002b7f0a; }
.faq-item { padding: 23px 0; border-bottom: 1px solid var(--line); }
.faq-item:first-child { padding-top: 0; }
.faq-item:last-child { border-bottom: 0; }
.faq-item h2, .content-card > h2 { margin: 0 0 9px; font-size: clamp(19px, 1.5vw, 23px); line-height: 1.35; letter-spacing: -.35px; }
.faq-item h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.4; }
.faq-item p { max-width: 78ch; margin: 7px 0 0; color: var(--muted); font-size: clamp(15px, 1vw, 17px); line-height: 1.75; }
.content-card a { color: #006eb5; text-underline-offset: 3px; }
.policy-date { margin: 0 0 8px; color: var(--subtle); font: 12px var(--mono); }
.content-card hr { height: 1px; margin: 34px 0 26px; border: 0; background: var(--line); }
.content-card > h2[lang="ms"] { margin: 0 0 10px; font-size: 24px; }
.page-home { color: var(--blue); font-size: 14px; font-weight: 600; text-decoration: none; }
.page-home:hover, footer nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
footer nav { margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: clamp(22px, 3vw, 40px); }
footer nav a { padding: 8px 0; color: inherit; text-decoration: none; }
@media (max-width: 700px) {
  .content-page .hero { padding-top: 44px; }
  .content-page h1 { font-size: clamp(40px, 10vw, 58px); letter-spacing: -2.6px; }
  .content-card { padding: 22px 18px; border-radius: 15px; }
  .faq-item { padding: 19px 0; }
  footer nav { width: auto; margin-left: 0; gap: clamp(22px, 7vw, 32px); }
}

/* AIChecker app shell and local recent-check workspace */
.app-page { min-height: 100vh; background: var(--wash); }
@media (max-width: 760px) { body.sidebar-visible { overflow: hidden; } }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 264px minmax(0, 1fr); transition: grid-template-columns .22s ease; }
.sidebar { position: sticky; top: 0; z-index: 40; height: 100vh; min-width: 0; padding: 18px 14px 14px; display: flex; flex-direction: column; overflow: hidden; background: var(--white); border-right: 1px solid var(--line); }
.sidebar-top { min-height: 46px; margin: 0 2px 19px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sidebar .brand { gap: 10px; font-size: 18px; }
.sidebar .brand-mark { width: 38px; height: 38px; }
.sidebar-toggle, .mobile-menu { width: 38px; height: 38px; padding: 8px; display: inline-grid; place-items: center; flex: 0 0 auto; border: 0; border-radius: 12px; background: transparent; color: var(--muted); cursor: pointer; }
.sidebar-toggle:hover, .mobile-menu:hover { background: var(--wash); color: var(--navy); }
.sidebar-toggle svg, .mobile-menu svg, .sidebar-nav svg, .new-check svg, .clear-history svg, .history-shortcut svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-toggle svg { transition: transform .2s ease; }
.new-check { min-height: 46px; margin: 0 2px 24px; padding: 0 13px; display: flex; align-items: center; gap: 11px; border: 0; border-radius: 13px; background: var(--blue); color: white; font-size: 14px; font-weight: 650; text-align: left; cursor: pointer; box-shadow: 0 4px 11px #0484d61c; }
.new-check:hover { background: #006db6; }
.new-check svg { width: 18px; height: 18px; }
.sidebar-section-label { color: var(--subtle); font: 500 10px var(--mono); letter-spacing: .09em; white-space: nowrap; }
.sidebar > .sidebar-section-label { margin: 0 12px 8px; }
.sidebar-nav { display: grid; gap: 4px; }
.sidebar-link { min-height: 42px; padding: 0 12px; display: flex; align-items: center; gap: 12px; border-radius: 11px; color: var(--muted); font-size: 13px; font-weight: 550; text-decoration: none; white-space: nowrap; transition: background .16s ease, color .16s ease; }
.sidebar-link svg { width: 18px; height: 18px; flex: 0 0 auto; }
.sidebar-link:hover { background: var(--wash); color: var(--navy); }
.sidebar-link.active { background: #eaf5fd; color: var(--navy); font-weight: 650; }
.history-section { min-height: 0; flex: 1 1 280px; margin-top: 22px; padding-top: 18px; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.history-heading-row { min-height: 28px; padding: 0 8px; display: flex; align-items: center; gap: 8px; }
.history-heading-row .sidebar-section-label { margin-right: auto; }
.history-count { padding: 4px 7px; border-radius: 99px; background: #eaf5fd; color: var(--blue); font: 10px var(--mono); white-space: nowrap; }
.clear-history { padding: 5px 6px; display: inline-flex; align-items: center; gap: 4px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; }
.clear-history:hover { background: var(--wash); color: #b43831; }
.clear-history svg { width: 14px; height: 14px; }
.history-list { min-height: 0; flex: 1 1 auto; margin: 5px 0 0; padding: 0 2px 0 0; overflow: auto; list-style: none; scrollbar-color: #cadbed transparent; scrollbar-width: thin; }
.history-item { width: 100%; min-height: 57px; padding: 8px 9px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: center; column-gap: 8px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.history-item:hover, .history-item[aria-current="true"] { background: var(--wash); }
.history-item-title { overflow: hidden; color: #3a495d; font-size: 12px; font-weight: 580; text-overflow: ellipsis; white-space: nowrap; }
.history-item-meta { margin-top: 4px; color: var(--subtle); font: 9px var(--mono); white-space: nowrap; }
.history-item-score { align-self: center; min-width: 29px; color: var(--navy); font-size: 12px; font-weight: 700; text-align: center; }
.history-empty, .history-status { margin: 10px 10px; color: var(--subtle); font-size: 11px; line-height: 1.5; }
.history-status { color: #a43b35; }
.history-shortcut { width: 42px; height: 42px; margin: 6px auto 0; display: inline-flex; align-items: center; justify-content: center; gap: 4px; border: 0; border-radius: 11px; background: var(--wash); color: var(--blue); cursor: pointer; }
.history-shortcut span { font: 9px var(--mono); }
.sidebar-spacer { flex: 0 0 clamp(10px, 2vh, 22px); min-height: 10px; }
.sidebar-storage { margin: 8px 2px 0; padding: 12px 10px; display: flex; align-items: flex-start; gap: 9px; border: 1px solid var(--line); border-radius: 12px; background: #fbfdff; }
.storage-dot, .privacy-pill b { width: 7px; height: 7px; margin-top: 3px; flex: 0 0 auto; border-radius: 50%; background: #37ad80; box-shadow: 0 0 0 3px #37ad8018; }
.storage-copy { color: var(--muted); font-size: 10px; line-height: 1.55; }
.storage-copy button { padding: 0; border: 0; background: none; color: var(--blue); font-size: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.app-main { min-width: 0; }
.workspace-header { position: sticky; top: 0; z-index: 20; min-height: 66px; padding: 0 clamp(18px, 3vw, 48px); display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); background: #ffffffed; backdrop-filter: blur(16px); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.breadcrumb i { color: #c6cdd6; font-style: normal; }
.breadcrumb strong { color: var(--ink); font-weight: 650; }
.privacy-pill { margin-left: auto; padding: 8px 12px; display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 99px; background: var(--white); color: var(--muted); font: 9px var(--mono); letter-spacing: .03em; white-space: nowrap; }
.privacy-pill b { margin: 0; }
.mobile-menu { display: none; }
.app-main main { width: 100%; max-width: 1680px; margin: 0 auto; padding: clamp(24px, 3vw, 48px); }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(285px, .9fr); align-items: start; gap: clamp(18px, 2.2vw, 34px); }
.checker-column, .result-column { min-width: 0; }
.checker-column .hero { padding: 12px 0 24px; }
.checker-column h1 { margin: 20px 0 14px; font-size: clamp(38px, 4.4vw, 62px); letter-spacing: clamp(-3.5px, -.22vw, -1.5px); line-height: 1.02; }
.checker-column .hero p { max-width: 56ch; margin: 0; font-size: clamp(15px, 1.05vw, 17px); }
.checker-column .card { padding: clamp(20px, 2.2vw, 34px); border-radius: 17px; }
.checker-column textarea { min-height: clamp(280px, 39vh, 460px); }
.checker-column .submit { align-items: center; }
.checker-column .submit button { min-width: 170px; }
.checker-column .submit small { max-width: 42ch; line-height: 1.5; }
.result-column { position: sticky; top: 88px; padding-top: 15px; }
.result-panel-heading { margin: 0 2px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.result-model { color: var(--subtle); font: 9px var(--mono); letter-spacing: .05em; }
.result-guide, .result-column .result { margin: 0; padding: clamp(22px, 2.2vw, 32px); border: 1px solid #d7e7f5; border-radius: 17px; background: #f1f8fe; box-shadow: 0 12px 34px #002b7f08; }
.score-placeholder { width: 116px; height: 116px; margin: 14px auto 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px solid #d7e7f5; border-radius: 50%; background: #fff; color: var(--navy); }
.score-placeholder span { font-size: 39px; font-weight: 600; line-height: 1; }
.score-placeholder small { margin-top: 7px; color: var(--subtle); font: 9px var(--mono); }
.result-guide h2 { margin: 0; font-size: clamp(18px, 1.4vw, 22px); letter-spacing: -.4px; text-align: center; }
.result-guide > p { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; text-align: center; }
.result-guide > p strong { color: var(--ink); font-weight: 650; }
.guide-note { margin-top: 22px; padding: 12px; display: flex; align-items: center; gap: 9px; border-radius: 10px; background: #fff; color: var(--muted); font-size: 11px; }
.guide-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--blue); }
.result-guide .guide-caution { margin-top: 17px; font-size: 11px; text-align: left; }
.result-column .result { padding: clamp(22px, 2.2vw, 32px); }
.result-column .result-head { align-items: center; }
.result-column .result-head h2 { font-size: clamp(19px, 1.5vw, 25px); }
.result-column .result-head strong { font-size: clamp(36px, 3.5vw, 52px); }
.result-column .result p { font-size: 13px; }
.result-column .result .meta { flex-wrap: wrap; font-size: 9px; }
.caution { padding: clamp(42px, 6vh, 72px) 0 28px; }
.caution .grid { gap: clamp(18px, 2.4vw, 34px); }
.app-main > footer { width: 100%; min-height: 64px; padding: 12px clamp(18px, 3vw, 48px); }
.sidebar-scrim { display: none; }
.app-shell.sidebar-collapsed { grid-template-columns: 78px minmax(0, 1fr); }
.sidebar-collapsed .sidebar { padding-right: 10px; padding-left: 10px; }
.sidebar-collapsed .sidebar-top { margin-right: 0; margin-left: 0; flex-direction: column; gap: 8px; }
.sidebar-collapsed .sidebar-top .brand { justify-content: center; }
.sidebar-collapsed .brand-name, .sidebar-collapsed .sidebar-section-label, .sidebar-collapsed .new-check span, .sidebar-collapsed .sidebar-link span, .sidebar-collapsed .history-heading-row, .sidebar-collapsed .history-list, .sidebar-collapsed .history-empty, .sidebar-collapsed .history-status, .sidebar-collapsed .sidebar-storage { display: none !important; }
.sidebar-collapsed .new-check { width: 44px; min-height: 44px; margin: 0 auto 18px; padding: 0; justify-content: center; }
.sidebar-collapsed .sidebar-link { width: 44px; margin: 0 auto; padding: 0; justify-content: center; }
.sidebar-collapsed .history-section { margin-top: 16px; padding-top: 11px; align-items: center; }
.sidebar-collapsed .history-shortcut { display: inline-flex; }
.sidebar-collapsed .sidebar-toggle svg { transform: rotate(180deg); }
.app-main > footer nav { margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: clamp(22px, 3vw, 40px); }
.app-main > footer nav a { padding: 8px 0; color: inherit; text-decoration: none; }
.app-main > footer nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1100px) {
  .workspace-grid { grid-template-columns: minmax(0, 1fr); }
  .result-column { position: static; padding-top: 0; }
  .result-guide { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 20px; }
  .score-placeholder { grid-row: span 3; margin: 0; }
  .result-guide h2, .result-guide > p { text-align: left; }
  .guide-note { grid-column: 1 / -1; }
  .result-guide .guide-caution { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .app-shell, .app-shell.sidebar-collapsed { display: block; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: min(290px, 86vw); height: 100dvh; transform: translateX(-105%); transition: transform .22s ease; box-shadow: 14px 0 42px #002b7f16; }
  .app-shell.sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-toggle { display: none; }
  .sidebar-collapsed .sidebar-top { margin: 0 2px 19px; flex-direction: row; }
  .sidebar-collapsed .sidebar-top .brand { justify-content: flex-start; }
  .sidebar-collapsed .brand-name, .sidebar-collapsed .sidebar-section-label, .sidebar-collapsed .new-check span, .sidebar-collapsed .sidebar-link span, .sidebar-collapsed .history-heading-row, .sidebar-collapsed .history-list, .sidebar-collapsed .history-empty, .sidebar-collapsed .history-status, .sidebar-collapsed .sidebar-storage { display: initial !important; }
  .sidebar-collapsed .history-heading-row { display: flex !important; }
  .sidebar-collapsed .history-list { display: block !important; }
  .sidebar-collapsed .sidebar-storage { display: flex !important; }
  .sidebar-collapsed .new-check { width: auto; margin: 0 2px 24px; padding: 0 13px; justify-content: flex-start; }
  .sidebar-collapsed .sidebar-link { width: auto; margin: 0; padding: 0 12px; justify-content: flex-start; }
  .sidebar-collapsed .history-section { margin-top: 22px; padding-top: 18px; align-items: stretch; }
  .sidebar-collapsed .history-shortcut { display: none !important; }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 35; display: block; border: 0; background: #101b2d66; opacity: 0; pointer-events: none; transition: opacity .22s ease; }
  .app-shell.sidebar-open + .sidebar-scrim { opacity: 1; pointer-events: auto; }
  .workspace-header { min-height: 60px; padding: 0 5vw; gap: 11px; }
  .mobile-menu { display: inline-grid; margin-left: -7px; }
  .privacy-pill { max-width: 48vw; padding: 7px 9px; font-size: 8px; overflow: hidden; text-overflow: ellipsis; }
  .privacy-pill b { width: 6px; height: 6px; }
  .app-main main { padding: 25px 5vw 8px; }
  .checker-column .hero { padding: 6px 0 22px; }
  .checker-column h1 { font-size: clamp(38px, 10vw, 56px); letter-spacing: -2.7px; }
  .checker-column .card { padding: 21px 18px 22px; }
  .checker-column textarea { min-height: clamp(240px, 34vh, 380px); }
  .checker-column .submit { align-items: stretch; flex-direction: column; gap: 12px; }
  .checker-column .submit button { width: 100%; }
  .result-guide { grid-template-columns: auto minmax(0, 1fr); padding: 20px; }
  .score-placeholder { width: 82px; height: 82px; }
  .score-placeholder span { font-size: 31px; }
  .result-guide h2 { font-size: 17px; }
  .result-guide > p { font-size: 12px; }
  .guide-note, .result-guide .guide-caution { grid-column: 1 / -1; }
  .caution { padding: 39px 0 20px; }
  .app-main > footer { padding: 14px 5vw; align-items: flex-start; flex-direction: column; gap: 10px; font-size: 10px; }
  .app-main > footer small { display: block; margin: 4px 0 0; }
  .app-main > footer nav { align-self: flex-end; margin-left: 0; gap: clamp(22px, 7vw, 32px); }
}
@media (prefers-reduced-motion: reduce) {
  .app-shell, .sidebar, .sidebar-scrim { transition: none; }
}

.sidebar a:focus-visible, .history-item:focus-visible, .sidebar-toggle:focus-visible, .mobile-menu:focus-visible { outline: 3px solid #0484d640; outline-offset: 2px; }
