:root {
  --ink: #14221c;
  --muted: #4d5f56;
  --paper: #f3efe4;
  --panel: rgba(255, 251, 244, 0.94);
  --line: rgba(20, 34, 28, 0.12);
  --teal: #0f5c4c;
  --teal-deep: #0a3d34;
  --danger: #b3532d;
  --ok: #0f5c4c;
  --link: #0b57d0;
  --shadow: 0 12px 36px rgba(20, 34, 28, 0.1);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}
* { box-sizing: border-box }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(216, 195, 154, 0.4), transparent 28%),
    linear-gradient(165deg, #efe6d4 0%, #f8f4ea 45%, #e8efe8 100%);
  min-height: 100vh;
  line-height: 1.45;
}
a { color: var(--teal); }
.wrap { width: min(1100px, calc(100% - 1.5rem)); margin-inline: auto }
.wrap-wide { width: min(1400px, calc(100% - 1.5rem)); margin-inline: auto }
.site-header {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap; padding: 1.25rem 0 .75rem;
}
.brand { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--teal-deep); margin: 0; text-decoration: none }
.nav { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center }
.btn, .nav-link {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; border: 1px solid var(--line); border-radius: 999px;
  padding: .55rem .95rem; font-weight: 700; font-size: .92rem;
  color: var(--ink); background: #fffdf8; cursor: pointer; font: inherit;
}
.btn-primary, .nav-link.accent { background: var(--teal); border-color: var(--teal); color: #f7fff9 }
.btn-ghost { background: transparent }
.hero {
  padding: 2.5rem 0 2rem;
}
.hero h1 {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700; margin: 0 0 .75rem; color: var(--teal-deep); max-width: 18ch;
}
.hero p { color: var(--muted); font-size: 1.05rem; max-width: 38rem; margin: 0 0 1.25rem }
.hero-actions { display: flex; gap: .6rem; flex-wrap: wrap }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.25rem; box-shadow: var(--shadow); width: min(480px, 100%);
}
.card h1, .card h2 { font-family: var(--font-display); margin: 0 0 .35rem; font-size: 1.35rem }
.card .sub { color: var(--muted); margin: 0 0 1rem; font-size: .95rem }
.auth-page { display: grid; place-items: center; min-height: calc(100vh - 4rem); padding: 1rem }
.field { display: grid; gap: .3rem; margin-bottom: .85rem }
.field span { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted) }
.hp-wrap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.field input, .field select, .field textarea {
  width: 100%; padding: .65rem .75rem; border: 1px solid var(--line);
  border-radius: 10px; background: #fffdf8; font: inherit;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem }
.alert { padding: .7rem .9rem; border-radius: 10px; margin-bottom: 1rem; font-size: .92rem }
.alert-error { background: #fde8e0; color: var(--danger); border: 1px solid #f0c4b4 }
.alert-ok { background: #e7f5ef; color: var(--ok); border: 1px solid #b7dfc9 }
.muted { color: var(--muted) }
.filters {
  display: flex; gap: .65rem; flex-wrap: wrap; align-items: end;
  margin: 1rem 0; padding: 1rem; background: var(--panel);
  border: 1px solid var(--line); border-radius: 14px;
}
.filters .field { margin: 0 }
.table-shell {
  overflow: auto; border: 1px solid #2a2a2a; background: #fff;
  box-shadow: var(--shadow); margin-bottom: 2rem;
}
table.matrix { border-collapse: collapse; min-width: 1100px; width: 100%; font-size: .86rem }
.matrix th, .matrix td {
  border: 1px solid #2a2a2a; padding: .4rem .45rem; vertical-align: middle; text-align: center;
}
.matrix th { font-size: .75rem; line-height: 1.25 }
.matrix td.title-cell { text-align: left; min-width: 200px; max-width: 300px }
.matrix thead .h-code { background: #f2d66b }
.matrix thead .h-priced { background: #1e4f9c; color: #fff }
.matrix thead .h-title { background: #b42318; color: #fff }
.matrix thead .h-pass { background: #0f766e; color: #fff }
.matrix thead .h-lang { background: #eef2f6 }
.matrix thead .h-lang small { display: block; font-weight: 600; color: #556 }
.num { width: 2.4rem; background: #f7f7f7; font-weight: 700 }
a.link { color: var(--link); text-decoration: underline; font-weight: 600 }
.pass-cell { font-weight: 700 }
.cell-actions { display: grid; gap: .2rem; justify-items: center }
.btn-mini {
  display: inline-block; font-size: .7rem; padding: .15rem .4rem; border-radius: 999px;
  border: 1px solid #9dceb8; background: #e8f5ef; color: #0f5c4c;
  text-decoration: none; font-weight: 700;
}
.meta { color: var(--muted); font-size: .9rem; margin: 0 0 .75rem }
.user-chip { font-size: .9rem; color: var(--muted) }
.user-chip strong { color: var(--ink) }
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 1rem; box-shadow: var(--shadow); margin-bottom: 1rem;
}
.panel h2 { font-family: var(--font-display); font-size: 1.1rem; margin: 0 0 .65rem }
.feedback-panel { margin: 0 0 2rem }
.feedback-panel form .field:last-of-type { margin-bottom: 1rem }
.assist-cta { margin: 0 0 1rem; scroll-margin-top: 1rem }
.assist-cta a {
  color: #c41e1e;
  font-weight: 800;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  text-decoration: underline;
  line-height: 1.35;
}
.assist-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.5rem; align-items: start }
.assist-side { color: #111; background: #fff; padding: .35rem .25rem }
.assist-side h3 {
  margin: 0 0 .4rem;
  text-align: center;
  color: #008b8b;
  font-weight: 800;
  font-size: 1.35rem;
  font-family: var(--font-body);
}
.assist-signin {
  margin: 0 0 1rem;
  text-align: center;
  color: #ff0000;
  font-weight: 800;
  font-size: 1.2rem;
}
.assist-side ol { margin: 0; padding-left: 1.2rem }
.assist-side li { margin-bottom: .85rem; line-height: 1.5 }
.assist-side .hl-red { color: #ff0000; font-weight: 800; text-decoration: none }
.assist-side .hl-teal { color: #008b8b; font-weight: 800 }
.assist-side .hl-blue { color: #0000ee; font-weight: 700; text-decoration: underline }
.assist-pay { text-align: center; margin: .65rem 0 .2rem; font-size: .95rem }
.assist-pay strong { display: block; font-size: 1.05rem }
.assist-course { font-weight: 800; font-style: italic }
#feedback { scroll-margin-top: 1rem }
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin-bottom: 1rem }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; box-shadow: var(--shadow) }
.kpi span { display: block; color: var(--muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em }
.kpi strong { display: block; margin-top: .25rem; font-family: var(--font-display); font-size: 1.6rem }
.admin table { width: 100%; border-collapse: collapse; font-size: .9rem }
.admin th, .admin td { text-align: left; padding: .45rem .35rem; border-bottom: 1px solid var(--line); vertical-align: top }
.admin th { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em }
.footer { padding: 2rem 0; color: var(--muted); font-size: .9rem }
@media (max-width: 800px) {
  .grid-2, .kpi-row, .assist-layout { grid-template-columns: 1fr }
}
