@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #1c1916;
  --muted: #6f6a63;
  --line: rgba(28, 25, 22, 0.1);
  --paper: #f6f4f0;
  --desk: #e7e2da;
  --red: #c8102e;
  --nav: #12110f;
  --nav-w: max(280px, 25%);
  --radius: 1.15rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(90rem 40rem at 110% -10%, rgba(200, 16, 46, 0.08), transparent 50%),
    var(--desk);
  font-family: Inter, ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.65;
}
::selection { background: rgba(200, 16, 46, 0.18); }
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(200, 16, 46, 0.45);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover { text-decoration-color: var(--red); }
body::before {
  content: "";
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  pointer-events: none;
}
.nav {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--nav-w);
  background:
    linear-gradient(180deg, rgba(200, 16, 46, 0.16), transparent 9rem),
    var(--nav);
  color: #f4f1ec;
  overflow: auto;
  z-index: 5;
  padding: 1.15rem 0 2.4rem;
  scrollbar-color: #3a3834 transparent;
  scrollbar-width: thin;
}
.nav a { color: #ebe7e1; text-decoration: none; }
.brand {
  display: block;
  padding: 0.15rem 0 1rem;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin: 0 1.15rem 0.85rem;
}
.kia-logo { display: block; width: 6.4rem; height: auto; color: #fff; }
.brand span {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.01em;
  color: #b7b1a8;
  margin-top: 0.55rem;
  line-height: 1.4;
}
.nav h2 {
  margin: 1.15rem 1.15rem 0.3rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8d877e;
  font-weight: 650;
}
.nav ul { list-style: none; margin: 0; padding: 0 0.55rem 0.15rem; }
.nav li a {
  display: block;
  padding: 0.32rem 0.7rem 0.32rem 0.75rem;
  border-radius: 0.45rem;
  font-size: 0.9rem;
  line-height: 1.35;
}
.nav li a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.nav li a.active {
  background: rgba(200, 16, 46, 0.16);
  color: #fff;
  box-shadow: inset 2px 0 0 var(--red);
}
.wrap {
  margin-left: var(--nav-w);
  min-width: 0;
  max-width: calc(100% - var(--nav-w));
  padding: 1.75rem 1.5rem 3.5rem;
}
.sheet {
  max-width: min(52rem, 100%);
  min-width: 0;
  margin: 0 auto;
  background: var(--paper);
  min-height: 70vh;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 18px 50px rgba(28, 25, 22, 0.12);
  padding: 0 0 1.6rem;
}
.running {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.75rem 0.2rem;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.running span:last-child { color: var(--ink); text-align: right; }
.sheet > h1 {
  position: relative;
  margin: 0 0 1.15rem;
  padding: 0.35rem 1.75rem 1.05rem;
  background: transparent;
  color: var(--ink);
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.035em;
  border-bottom: 1px solid var(--line);
}
.sheet > h1::before {
  content: attr(data-num);
  position: relative;
  left: auto;
  top: auto;
  bottom: auto;
  width: 1.85rem;
  height: 1.85rem;
  margin: 0 0.7rem 0.12rem 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #fff;
  border-right: 0;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0;
  vertical-align: 0.08rem;
}
.sheet > h1:not([data-num])::before,
.sheet > h1[data-num=""]::before { display: none; }
.sheet > h1:not([data-num]),
.sheet > h1[data-num=""] { padding-left: 1.75rem; }
.body { min-width: 0; max-width: 100%; padding: 0.35rem 1.75rem 0.4rem; }
.body h2 {
  margin: 1.7rem 0 0.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  font-size: 1.22rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.25;
}
.body h2:first-child { margin-top: 0.35rem; padding-top: 0; border-top: 0; }
.body h3 {
  margin: 1.25rem 0 0.4rem;
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}
.body h2[id], .body h3[id] { scroll-margin-top: 1rem; }
.body h2:target, .body h3:target { color: var(--red); }
.body p { margin: 0.45rem 0 0.8rem; }
.body ul, .body ol { margin: 0.35rem 0 0.95rem; padding-left: 1.2rem; }
.body li { margin: 0.28rem 0; }
.body li::marker { color: var(--red); }
code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.86em;
  background: rgba(28, 25, 22, 0.06);
  padding: 0.08em 0.35em;
  border-radius: 0.3em;
}
.index-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.2rem 0 0.8rem;
  font-weight: 650;
}
.index-nav a {
  color: var(--ink);
  text-decoration: none;
  min-width: 2rem;
  padding: 0.28rem 0.45rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
}
.index-nav a:hover { border-color: var(--red); color: var(--red); }
.index-group { margin-top: 0.4rem; scroll-margin-top: 3.6rem; }
.index-group h2 { margin-bottom: 0.15rem; }
.index-list { list-style: none; margin: 0 0 0.8rem; padding: 0; }
.index-list li { margin: 0; }
.index-list li::marker { content: none; }
.index-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.42rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.index-list a span:first-child { color: var(--ink); }
.index-list a:hover span:first-child { color: var(--red); }
.index-page {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1rem auto;
  background: #fff;
  padding: 0.55rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(28, 25, 22, 0.05);
}
.body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.7rem 0 1rem;
  font-size: 0.9rem;
  background: #fff;
  border-radius: 0.75rem;
}
.body thead th,
.body tr:first-child th {
  background: #1c1916;
  color: #f6f4f0;
  font-weight: 600;
}
.table-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0.7rem 0 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: #8a847c #efece7;
  scrollbar-width: thin;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fff;
}
.table-scroll::-webkit-scrollbar { height: 10px; }
.table-scroll::-webkit-scrollbar-thumb { background: #8a847c; border-radius: 6px; }
.table-scroll::-webkit-scrollbar-track { background: #efece7; }
.body .table-scroll table {
  min-width: 100%;
  margin: 0;
}
.body .table-scroll th,
.body .table-scroll td { min-width: 5rem; }
.body th, .body td {
  border-bottom: 1px solid var(--line);
  padding: 0.48rem 0.65rem;
  vertical-align: top;
  text-align: left;
  font-weight: 400;
}
.body tr:last-child td { border-bottom: 0; }
.body table.glossary { table-layout: fixed; }
.body table.glossary td:first-child { width: 8.5rem; font-weight: 650; }
.body table.glossary tr:first-child td {
  background: #1c1916;
  color: #f6f4f0;
  font-weight: 600;
}
.body table.pair { table-layout: fixed; }
.body table.pair td:first-child { width: auto; }
.body table.pair td:last-child {
  width: 13.5rem;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.body table.lcd-mode { table-layout: fixed; }
.body table.lcd-mode td {
  border: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
  padding: 0.55rem 0.6rem;
}
.body .lcd-mode .lcd-mode-keys,
.body .lcd-mode .lcd-mode-head,
.body .lcd-mode .lcd-mode-mode {
  background: #1c1916;
  color: #f6f4f0;
}
.body .lcd-mode .lcd-mode-keys { width: 4.6rem; }
.body .lcd-mode .lcd-mode-head { font-weight: 600; }
.body .lcd-mode .lcd-mode-head img.glyph { filter: brightness(0) invert(1); }
.body .lcd-mode .lcd-mode-mode { font-weight: 600; font-size: 0.82rem; }
.body .lcd-mode .lcd-mode-mode img {
  display: block;
  width: 3rem;
  margin: 0 auto 0.4rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.body .lcd-mode .lcd-mode-nav { font-size: 0.78rem; line-height: 1.3; }
.body .lcd-mode .lcd-mode-arrows { font-size: 0.95rem; letter-spacing: 0.08em; }
.body .lcd-mode ul { text-align: left; margin: 0; padding-left: 1.05rem; }
.body .lcd-mode li { margin: 0.12rem 0; }
.callout {
  margin: 1rem 0 1.15rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink);
  border-radius: 0.85rem;
  overflow: hidden;
}
.callout.warn {
  border-left-color: var(--red);
  background: #fff7f7;
}
.callout.caution {
  border-left-color: #1c1916;
  background: #f3f1ec;
}
.callout.note {
  border-left-color: #8a8176;
  background: #f7f5f1;
}
.callout-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.7rem 0.9rem 0.15rem;
  font-size: 0.78rem;
  background: transparent;
  border-radius: 0;
}
.callout.warn .callout-title { color: var(--red); }
.callout.caution .callout-title,
.callout.note .callout-title { color: var(--ink); }
.callout-title::before {
  content: "";
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  background: currentColor;
  -webkit-mask: url("../img/triangle-exclamation-solid-full.svg") center / contain no-repeat;
  mask: url("../img/triangle-exclamation-solid-full.svg") center / contain no-repeat;
}
.callout.note .callout-title::before {
  -webkit-mask-image: url("../img/circle-info-solid-full.svg");
  mask-image: url("../img/circle-info-solid-full.svg");
}
.callout-body { padding: 0.15rem 0.95rem 0.75rem; font-size: 0.94rem; }
.callout-body:empty { display: none; }
.callout:has(.callout-body:empty) .callout-title { padding-bottom: 0.7rem; }
.callout-body > :first-child { margin-top: 0.2rem; }
.callout-body > :last-child { margin-bottom: 0.25rem; }
.warn-row {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.warn-row > :first-child { flex: none; margin: 0; }
.warn-row img,
.body td img,
.body th img {
  width: 3.6rem;
  max-width: none;
  display: block;
  margin: 0.15rem 0 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.body td img,
.body th img { width: auto; max-width: 100%; margin: 0.35rem auto; }
.body img.glyph,
.body td img.glyph,
.body th img.glyph,
.warn-row img.glyph {
  display: inline-block;
  width: auto;
  max-width: none;
  height: 1.25em;
  margin: 0 0.08em;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  vertical-align: -0.28em;
}
.warn-row p { margin: 0.15rem 0 0.2rem; }
.pager {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 0.75rem;
  margin: 1.6rem 1.75rem 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 600;
}
.pager a, .pager span { flex: 1 1 0; min-width: 0; }
.pager a {
  text-decoration: none;
  padding: 0.7rem 0.85rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
}
.pager a:hover { border-color: rgba(200, 16, 46, 0.45); color: var(--red); }
.pager a:last-child, .pager span:last-child { text-align: right; }
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.nav-bar, .nav-scrim, .nav-search-open { display: none; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.cover {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(200, 16, 46, 0.42), transparent 46%),
    linear-gradient(165deg, #242220 0%, #0e0d0c 72%);
  color: #fff;
  padding: 3.4rem 2rem 2.6rem;
}
.cover::after {
  content: "RAY";
  position: absolute;
  right: 0.15em;
  bottom: -0.18em;
  font-size: clamp(6.5rem, 18vw, 10rem);
  font-weight: 650;
  letter-spacing: -0.07em;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.16);
  pointer-events: none;
}
.cover .kia { position: relative; z-index: 1; }
.cover .kia-logo { width: 7.5rem; }
.cover-kicker {
  position: relative;
  z-index: 1;
  margin: 1.35rem 0 0.2rem;
  color: #e7c2c8;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.cover h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 0 0.15rem;
  border: 0;
  background: none;
  color: #fff;
  font-size: clamp(4.2rem, 10vw, 6.4rem);
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 0.9;
}
.cover-year {
  position: relative;
  z-index: 1;
  margin: 0.85rem 0 0;
  color: #d9d3cb;
  font-size: 1rem;
  letter-spacing: 0.18em;
}
.menu { padding: 1.35rem 1.75rem 1.5rem; }
.cover + .menu > p {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.cover + .menu h2 {
  margin: 1.45rem 0 0.55rem;
  padding: 0;
  border: 0;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.cover + .menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}
.cover + .menu li { margin: 0; }
.cover + .menu li::marker { content: none; }
.cover + .menu li a {
  display: block;
  padding: 0.72rem 0.9rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 550;
}
.cover + .menu li a:hover {
  border-color: rgba(200, 16, 46, 0.5);
  color: var(--red);
}
@media (max-width: 900px) {
  .nav-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: fixed;
    z-index: 8;
    top: 0;
    left: 0;
    right: 0;
    height: 3.25rem;
    padding: 0 0.7rem;
    background: var(--nav);
    color: #fff;
    cursor: pointer;
  }
  .nav-toggle:focus-visible + .nav-bar { outline: 2px solid #fff; outline-offset: -4px; }
  .burger {
    width: 2.75rem;
    height: 2.75rem;
    display: grid;
    place-items: center;
  }
  .burger::before,
  .burger::after,
  .burger span {
    content: "";
    display: block;
    width: 1.25rem;
    height: 2px;
    background: #fff;
    grid-area: 1 / 1;
    transition: transform .18s ease, opacity .18s ease;
  }
  .burger::before { transform: translateY(-6px); }
  .burger::after { transform: translateY(6px); }
  .nav-toggle:checked + .nav-bar .burger::before { transform: rotate(45deg); }
  .nav-toggle:checked + .nav-bar .burger::after { transform: rotate(-45deg); }
  .nav-toggle:checked + .nav-bar .burger span { opacity: 0; }
  .nav-bar-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
  }
  .nav-bar-title .kia-logo { width: 3.15rem; }
  .nav-scrim {
    display: block;
    position: fixed;
    z-index: 6;
    inset: 3.25rem 0 0 0;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }
  .nav-toggle:checked ~ .nav-scrim { opacity: 1; pointer-events: auto; }
  .nav {
    position: fixed;
    z-index: 7;
    top: 3.25rem;
    left: 0;
    bottom: 0;
    width: min(20rem, 88vw);
    transform: translateX(-100%);
    transition: transform .2s ease;
  }
  .nav-toggle:checked ~ .nav { transform: none; }
  body:has(.nav-toggle:checked) { overflow: hidden; }
  .wrap { margin-left: 0; max-width: none; padding: 3.25rem 0 0; }
  .sheet { border-radius: 0; box-shadow: none; }
  .cover + .menu ul { grid-template-columns: 1fr; }
  .nav-search-open {
    display: grid;
    place-items: center;
    position: fixed;
    z-index: 9;
    top: 0;
    right: 0;
    width: 3.25rem;
    height: 3.25rem;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
  }
  .nav-bar { padding-right: 3.25rem; }
  .body h2[id], .body h3[id] { scroll-margin-top: 4.25rem; }
}
.nav-search {
  margin: 0 1.15rem 0.85rem;
}
.nav-search input {
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
}
.nav-search input::placeholder { color: #a39d95; }
.nav-search input:focus {
  outline: 2px solid rgba(200, 16, 46, 0.85);
  outline-offset: 1px;
  border-color: transparent;
}
.nav-search input[type="search"]::-webkit-search-cancel-button {
  filter: invert(1);
}
.page-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0.15rem 0 1rem;
}
.page-search input[type="search"] {
  flex: 1 1 14rem;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: #fff;
  color: var(--ink);
}
.page-search input[type="search"]:focus {
  outline: 2px solid rgba(200, 16, 46, 0.85);
  outline-offset: 1px;
  border-color: transparent;
}
.page-search button {
  font: inherit;
  font-weight: 650;
  font-size: 0.95rem;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: 0.6rem;
  background: var(--red);
  color: #fff;
  cursor: pointer;
}
.page-search button:hover { background: #a30d25; }
.search-count { color: var(--muted); }
.body .search-results {
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0;
}
.body .search-results li {
  margin: 0;
  border-top: 1px solid var(--line);
}
.body .search-results li:last-child { border-bottom: 1px solid var(--line); }
.body .search-results a {
  display: block;
  padding: 0.75rem 0.15rem;
  color: inherit;
  text-decoration: none;
}
.body .search-results a:hover { background: rgba(200, 16, 46, 0.06); }
.body .search-results .hit-chapter {
  display: block;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}
.body .search-results .hit-title {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--ink);
}
.body .search-results .hit-snippet {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
.body .search-results mark {
  background: rgba(200, 16, 46, 0.18);
  color: inherit;
  padding: 0 0.08em;
  border-radius: 0.12em;
}
@media (min-width: 1100px) {
  .cover + .menu ul { grid-template-columns: 1fr 1fr; }
}

.table-transparent {
  border: none;
  background: none !important;
  box-shadow: none;
  margin: 0;
  padding: 0;
}
.table-transparent th,
.table-transparent td {
  border: none;
  background: none;
  box-shadow: none;
  margin: 0;
  padding: 0;
  text-align: center !important;
}

.sel-tools {
  position: absolute;
  z-index: 10;
  display: flex;
  gap: 0.3rem;
  padding: 0.3rem;
  background: var(--nav);
  border-radius: 0.75rem;
  box-shadow: 0 10px 28px rgba(28, 25, 22, 0.28);
}
.sel-tools[hidden] { display: none; }
.sel-tools.is-side { flex-direction: column; align-items: stretch; }
.sel-tools button {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.5rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: #f4f1ec;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.sel-tools button:hover { background: rgba(255, 255, 255, 0.1); }
.sel-tools button:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; }
.sel-tools button[data-action="report"] svg { color: #ff8a9b; }
.sel-tools.is-side:not(.is-labeled) button span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.feedback {
  position: fixed;
  z-index: 12;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--nav);
  color: #f4f1ec;
  box-shadow: 0 10px 28px rgba(28, 25, 22, 0.28);
  cursor: pointer;
}
.feedback[hidden] { display: none; }
.feedback:hover { background: #2a2724; }
.feedback:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.toast {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 1.5rem;
  max-width: calc(100% - 2rem);
  padding: 0.7rem 1.1rem;
  background: var(--nav);
  color: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 10px 28px rgba(28, 25, 22, 0.28);
  font-size: 0.92rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.6rem);
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

dialog.report {
  width: min(34rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}
dialog.report::backdrop { background: rgba(18, 17, 15, 0.55); }
.report-form { padding: 1.3rem 1.4rem 1.2rem; }
.report-form h2 {
  margin: 0 0 0.9rem;
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.report-label {
  display: block;
  margin: 0 0 0.3rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.report-origin {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}
.report-quote-label[hidden],
.report-quote[hidden],
.report-origin[hidden] { display: none; }
.report-quote {
  max-height: 9rem;
  overflow: auto;
  margin: 0 0 1rem;
  padding: 0.55rem 0.8rem;
  border-left: 3px solid var(--red);
  border-radius: 0 0.5rem 0.5rem 0;
  background: #fff;
  font-size: 0.92rem;
  line-height: 1.5;
}
.report-form textarea {
  display: block;
  width: 100%;
  min-height: 6rem;
  resize: vertical;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
}
.report-form textarea:focus {
  outline: 2px solid rgba(200, 16, 46, 0.85);
  outline-offset: 1px;
  border-color: transparent;
}
.report-hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.report-captcha { min-height: 102px; margin-top: 0.9rem; }
.report-captcha[hidden] { display: none; }
.report-error { margin: 0.7rem 0 0; color: var(--red); font-size: 0.9rem; }
.report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}
.report-actions button {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: 0.6rem;
  cursor: pointer;
}
.report-cancel { background: transparent; color: var(--ink); }
.report-cancel:hover { background: rgba(28, 25, 22, 0.06); }
.report-send { background: var(--red); color: #fff; }
.report-send:hover { background: #a30d25; }
.report-send:disabled { opacity: 0.6; cursor: default; }
