:root {
  --bg: #050816;
  --bg-soft: #090f24;
  --panel: rgba(10, 17, 38, 0.91);
  --panel-strong: rgba(13, 23, 49, 0.98);
  --panel-soft: rgba(17, 29, 58, 0.72);
  --line: rgba(110, 221, 255, 0.19);
  --line-strong: rgba(110, 221, 255, 0.38);
  --cyan: #69e7ff;
  --cyan-soft: #b9f6ff;
  --violet: #b493ff;
  --magenta: #ef83db;
  --success: #72f2bc;
  --warning: #ffc879;
  --danger: #ff8298;
  --text: #f4f8ff;
  --muted: #91a2c2;
  --muted-strong: #b7c5dc;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(45, 174, 255, 0.13), transparent 34rem),
    radial-gradient(circle at 85% 32%, rgba(159, 88, 255, 0.1), transparent 32rem),
    radial-gradient(circle at 50% 100%, rgba(52, 111, 255, 0.08), transparent 40rem),
    linear-gradient(145deg, #040612 0%, #080d20 49%, #050816 100%);
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
}

body::before {
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(105, 231, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105, 231, 255, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

body::after {
  background:
    linear-gradient(110deg, transparent 0 47%, rgba(105, 231, 255, 0.025) 48%, transparent 49%),
    linear-gradient(70deg, transparent 0 47%, rgba(180, 147, 255, 0.025) 48%, transparent 49%);
  background-size: 240px 240px;
}

button,
input {
  font: inherit;
}

button,
.file-button {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
.file-button:focus-within,
canvas:focus-visible,
a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.ambient {
  position: fixed;
  z-index: -2;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  pointer-events: none;
}

.ambient-a {
  top: -9rem;
  right: -6rem;
  background: var(--violet);
}

.ambient-b {
  bottom: -12rem;
  left: -8rem;
  background: #20c8ff;
}

.citadel-shell {
  width: min(1700px, calc(100% - 32px));
  margin: 22px auto;
  border: 1px solid rgba(110, 221, 255, 0.16);
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(150deg, rgba(10, 17, 37, 0.9), rgba(4, 8, 22, 0.96)),
    var(--bg);
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.035);
}

.topbar {
  min-height: 82px;
  padding: 14px clamp(18px, 3vw, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(110, 221, 255, 0.1);
  background: rgba(5, 10, 26, 0.74);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--text);
  text-decoration: none;
}

.brand > span:last-child {
  display: grid;
  gap: 2px;
}

.brand strong {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.brand small {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  transform: rotate(30deg);
}

.brand-mark span {
  position: absolute;
  width: 26px;
  height: 9px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 13px rgba(105, 231, 255, 0.35);
}

.brand-mark span:nth-child(2) {
  transform: rotate(60deg);
  border-color: var(--violet);
}

.brand-mark span:nth-child(3) {
  transform: rotate(120deg);
  border-color: var(--magenta);
}

.topbar-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.status-pill {
  min-height: 31px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(180, 147, 255, 0.23);
  border-radius: 999px;
  color: #d7caff;
  background: rgba(180, 147, 255, 0.07);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.status-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 10px var(--violet);
}

.status-pill-safe {
  color: #c8ffe7;
  border-color: rgba(114, 242, 188, 0.22);
  background: rgba(114, 242, 188, 0.06);
}

.status-pill-safe i {
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
}

.status-pill.active {
  color: #ffe4fa;
  border-color: rgba(239, 131, 219, 0.31);
  background: rgba(239, 131, 219, 0.09);
}

.status-pill.active i {
  background: var(--magenta);
  box-shadow: 0 0 10px var(--magenta);
}

.hero {
  position: relative;
  min-height: 250px;
  padding: clamp(42px, 6vw, 82px) clamp(22px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  overflow: hidden;
  border-bottom: 1px solid rgba(110, 221, 255, 0.09);
}

.hero::after {
  position: absolute;
  right: 8%;
  bottom: 0;
  left: 8%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(105, 231, 255, 0.55), transparent);
  box-shadow: 0 0 18px rgba(105, 231, 255, 0.5);
}

.hero > div:first-child {
  position: relative;
  z-index: 2;
  max-width: 930px;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: -0.057em;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(92deg, var(--cyan), #e6fbff 46%, var(--violet));
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-copy {
  max-width: 820px;
  margin: 22px 0 0;
  color: var(--muted-strong);
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  line-height: 1.72;
}

.hero-orbit {
  position: relative;
  flex: 0 0 190px;
  width: 190px;
  height: 190px;
  opacity: 0.84;
}

.orbit,
.orbit-core {
  position: absolute;
  inset: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit {
  width: 145px;
  height: 54px;
  border: 1px solid rgba(105, 231, 255, 0.56);
  box-shadow: inset 0 0 22px rgba(105, 231, 255, 0.09), 0 0 20px rgba(105, 231, 255, 0.09);
}

.orbit-one {
  transform: translate(-50%, -50%) rotate(25deg);
}

.orbit-two {
  transform: translate(-50%, -50%) rotate(90deg);
  border-color: rgba(180, 147, 255, 0.64);
}

.orbit-core {
  width: 24px;
  height: 24px;
  background: radial-gradient(circle at 35% 35%, #fff, var(--cyan) 28%, var(--violet));
  box-shadow: 0 0 34px var(--cyan);
}

.dashboard-grid {
  padding: 26px;
  display: grid;
  grid-template-columns: minmax(240px, 0.76fr) minmax(480px, 1.72fr) minmax(260px, 0.88fr);
  grid-template-areas: "verify create mapping";
  gap: 18px;
  align-items: stretch;
}

.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(150deg, rgba(18, 30, 60, 0.62), rgba(6, 12, 28, 0.82)),
    var(--panel);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2), inset 0 1px rgba(255, 255, 255, 0.035);
}

.panel::before {
  position: absolute;
  top: 0;
  right: 10%;
  left: 10%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(105, 231, 255, 0.48), transparent);
}

.verification-panel {
  grid-area: verify;
  padding: 22px;
}

.creation-panel {
  grid-area: create;
  padding: 22px;
}

.mapping-panel {
  grid-area: mapping;
  padding: 22px;
}

.panel-heading,
.heading-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-heading {
  margin-bottom: 18px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.panel-heading .panel-kicker {
  margin-bottom: 5px;
  font-size: 0.58rem;
}

.panel-index {
  width: 33px;
  height: 33px;
  flex: 0 0 33px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(105, 231, 255, 0.27);
  border-radius: 9px;
  color: var(--cyan);
  background: rgba(105, 231, 255, 0.055);
  font-size: 0.66rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.scan-visual {
  position: relative;
  height: 160px;
  margin: 8px 0 19px;
  border: 1px solid rgba(105, 231, 255, 0.16);
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(180, 147, 255, 0.13), transparent 53%),
    rgba(4, 10, 25, 0.72);
}

.scan-grid {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(105, 231, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105, 231, 255, 0.08) 1px, transparent 1px);
  background-size: 19px 19px;
}

.scan-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 105px;
  height: 82px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(105, 231, 255, 0.2);
}

.scan-line-a {
  transform: translate(-50%, -50%) rotate(37deg);
}

.scan-line-b {
  border-color: var(--magenta);
  transform: translate(-50%, -50%) rotate(112deg);
}

.scan-point {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px var(--cyan);
}

.scan-point-a {
  top: 29%;
  left: 36%;
}

.scan-point-b {
  top: 64%;
  left: 67%;
}

.scan-point-c {
  top: 45%;
  left: 57%;
  box-shadow: 0 0 12px var(--magenta);
}

.protocol-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  list-style: none;
}

.protocol-list li {
  position: relative;
  min-height: 63px;
  padding: 11px 10px 11px 29px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.017);
  transition: 180ms ease;
}

.protocol-list li::before {
  position: absolute;
  top: -8px;
  bottom: 36px;
  left: 15px;
  width: 1px;
  content: "";
  background: rgba(105, 231, 255, 0.14);
}

.protocol-list li:first-child::before {
  top: 31px;
}

.protocol-list li:last-child::before {
  bottom: 31px;
}

.protocol-dot {
  position: absolute;
  left: 11px;
  width: 9px;
  height: 9px;
  border: 2px solid #5c6e91;
  border-radius: 50%;
  background: #0a1125;
}

.protocol-list strong,
.protocol-list small {
  display: block;
}

.protocol-list strong {
  color: var(--muted-strong);
  font-size: 0.8rem;
}

.protocol-list small {
  margin-top: 4px;
  font-size: 0.68rem;
  line-height: 1.35;
}

.protocol-list li.done {
  background: rgba(114, 242, 188, 0.04);
}

.protocol-list li.done .protocol-dot {
  border-color: var(--success);
  background: var(--success);
  box-shadow: 0 0 11px rgba(114, 242, 188, 0.7);
}

.protocol-list li.done strong {
  color: #d8ffed;
}

.protocol-list li.warning {
  background: rgba(255, 200, 121, 0.055);
}

.protocol-list li.warning .protocol-dot {
  border-color: var(--warning);
  background: var(--warning);
  box-shadow: 0 0 11px rgba(255, 200, 121, 0.6);
}

.verdict-card {
  min-height: 68px;
  margin-top: 17px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(105, 231, 255, 0.2);
  border-radius: 14px;
  background: rgba(105, 231, 255, 0.045);
}

.verdict-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--cyan);
  background: rgba(105, 231, 255, 0.09);
  font-size: 1.3rem;
}

.verdict-card small,
.verdict-card strong {
  display: block;
}

.verdict-card small {
  color: var(--muted);
  font-size: 0.64rem;
  text-transform: uppercase;
}

.verdict-card strong {
  margin-top: 3px;
  font-size: 0.79rem;
}

.verdict-card.success {
  border-color: rgba(114, 242, 188, 0.28);
  background: rgba(114, 242, 188, 0.055);
}

.verdict-card.success .verdict-icon {
  color: var(--success);
  background: rgba(114, 242, 188, 0.09);
}

.verdict-card.warning {
  border-color: rgba(255, 200, 121, 0.28);
  background: rgba(255, 200, 121, 0.055);
}

.verdict-card.warning .verdict-icon {
  color: var(--warning);
  background: rgba(255, 200, 121, 0.09);
}

.truth-note {
  margin: 16px 2px 0;
  color: #70809e;
  font-size: 0.66rem;
  line-height: 1.55;
}

.creation-heading {
  justify-content: space-between;
}

.glyph-number {
  min-width: 90px;
  padding: 8px 11px;
  border: 1px solid rgba(180, 147, 255, 0.2);
  border-radius: 11px;
  text-align: right;
  background: rgba(180, 147, 255, 0.055);
}

.glyph-number small,
.glyph-number strong {
  display: block;
}

.glyph-number small {
  color: var(--muted);
  font-size: 0.57rem;
  text-transform: uppercase;
}

.glyph-number strong {
  margin-top: 2px;
  color: #e0d6ff;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.toolbar {
  min-height: 55px;
  margin-bottom: 12px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(105, 231, 255, 0.13);
  border-radius: 13px;
  background: rgba(5, 10, 24, 0.62);
}

.tool-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tool-control output {
  min-width: 34px;
  color: var(--cyan-soft);
  font-size: 0.67rem;
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  width: 94px;
  height: 4px;
  accent-color: var(--cyan);
  cursor: pointer;
}

input[type="color"] {
  width: 31px;
  height: 31px;
  padding: 2px;
  border: 1px solid rgba(105, 231, 255, 0.2);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.toolbar-spacer {
  flex: 1;
}

.icon-button {
  min-height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(105, 231, 255, 0.13);
  border-radius: 9px;
  color: var(--muted-strong);
  background: rgba(105, 231, 255, 0.035);
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
  transition: 160ms ease;
}

.icon-button:hover:not(:disabled) {
  color: var(--text);
  border-color: rgba(105, 231, 255, 0.34);
  background: rgba(105, 231, 255, 0.08);
}

.icon-button span {
  color: var(--cyan);
  font-size: 1rem;
}

.icon-button-danger:hover:not(:disabled) {
  border-color: rgba(255, 130, 152, 0.35);
}

.icon-button-danger span {
  color: var(--danger);
}

.drawing-stage {
  position: relative;
  height: clamp(410px, 49vw, 620px);
  min-height: 410px;
  max-height: 620px;
  border: 1px solid rgba(105, 231, 255, 0.22);
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(105, 231, 255, 0.045), transparent 50%),
    linear-gradient(145deg, rgba(10, 18, 39, 0.86), rgba(4, 9, 22, 0.96));
  box-shadow: inset 0 0 44px rgba(0, 0, 0, 0.32);
  touch-action: none;
}

#glyph-canvas {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}

.canvas-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.48;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(105, 231, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105, 231, 255, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black, transparent 88%);
}

.canvas-axis {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  opacity: 0.34;
}

.canvas-axis-x {
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(105, 231, 255, 0.28), transparent);
}

.canvas-axis-y {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(transparent, rgba(180, 147, 255, 0.25), transparent);
}

.canvas-corners {
  position: absolute;
  inset: 11px;
  z-index: 2;
  pointer-events: none;
}

.canvas-corners i {
  position: absolute;
  width: 23px;
  height: 23px;
  border-color: rgba(105, 231, 255, 0.44);
  border-style: solid;
}

.canvas-corners i:nth-child(1) {
  top: 0;
  left: 0;
  border-width: 1px 0 0 1px;
}

.canvas-corners i:nth-child(2) {
  top: 0;
  right: 0;
  border-width: 1px 1px 0 0;
}

.canvas-corners i:nth-child(3) {
  right: 0;
  bottom: 0;
  border-width: 0 1px 1px 0;
}

.canvas-corners i:nth-child(4) {
  bottom: 0;
  left: 0;
  border-width: 0 0 1px 1px;
}

.canvas-empty {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  justify-items: center;
  pointer-events: none;
  transition: 180ms ease;
}

.canvas-empty.hidden {
  opacity: 0;
}

.stylus-symbol {
  width: 70px;
  height: 70px;
  margin-bottom: 13px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(105, 231, 255, 0.22);
  border-radius: 50%;
  color: var(--cyan);
  background: rgba(105, 231, 255, 0.045);
  box-shadow: 0 0 32px rgba(105, 231, 255, 0.08);
  font-size: 2.2rem;
}

.canvas-empty strong {
  font-size: 1rem;
}

.canvas-empty small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pointer-readout {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 6;
  display: flex;
  gap: 9px;
  pointer-events: none;
}

.pointer-readout span {
  min-width: 55px;
  padding: 5px 7px;
  border: 1px solid rgba(105, 231, 255, 0.12);
  border-radius: 7px;
  color: #617395;
  background: rgba(4, 8, 20, 0.72);
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.pointer-readout b {
  margin-left: 3px;
  color: var(--muted-strong);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.creation-actions {
  margin-top: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.button {
  position: relative;
  min-height: 46px;
  padding: 0 17px;
  border: 1px solid rgba(105, 231, 255, 0.18);
  border-radius: 12px;
  color: var(--muted-strong);
  background: rgba(105, 231, 255, 0.045);
  font-size: 0.75rem;
  font-weight: 900;
  cursor: pointer;
  overflow: hidden;
  transition: 170ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
  color: var(--text);
  border-color: rgba(105, 231, 255, 0.4);
  background: rgba(105, 231, 255, 0.09);
}

.button-primary {
  flex: 1;
  min-width: 230px;
  color: #04121b;
  border-color: var(--cyan);
  background: linear-gradient(100deg, #59dfff, #a9f2ff 53%, #a889ff);
  box-shadow: 0 8px 24px rgba(105, 231, 255, 0.13);
}

.button-primary:hover:not(:disabled) {
  color: #020a10;
  background: linear-gradient(100deg, #82eaff, #d4f9ff 53%, #c0a7ff);
  box-shadow: 0 10px 30px rgba(105, 231, 255, 0.22);
}

.button-glow {
  position: absolute;
  inset: 0 auto 0 -40%;
  width: 35%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-22deg);
}

.button-primary:hover:not(:disabled) .button-glow {
  animation: button-scan 650ms ease;
}

@keyframes button-scan {
  to {
    left: 125%;
  }
}

.signature-block {
  margin-top: 13px;
  padding: 13px;
  border: 1px solid rgba(180, 147, 255, 0.16);
  border-radius: 13px;
  background: rgba(5, 9, 23, 0.76);
}

.signature-heading,
.signature-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.signature-heading > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.signature-heading strong {
  font-size: 0.69rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.signal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 10px var(--violet);
}

.text-button {
  padding: 3px 0;
  border: 0;
  color: var(--cyan);
  background: transparent;
  font-size: 0.65rem;
  font-weight: 900;
  cursor: pointer;
}

.signature-output {
  min-height: 57px;
  margin-top: 11px;
  display: block;
  overflow-wrap: anywhere;
  color: #7585a5;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.65rem;
  line-height: 1.55;
}

.signature-output.ready {
  color: #c6eaf2;
}

.signature-meta {
  padding-top: 9px;
  border-top: 1px solid rgba(105, 231, 255, 0.08);
  color: #687896;
  font-size: 0.59rem;
  font-variant-numeric: tabular-nums;
}

.export-row {
  margin-top: 9px;
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.mini-button,
.file-button {
  min-height: 32px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(105, 231, 255, 0.14);
  border-radius: 8px;
  color: var(--muted-strong);
  background: rgba(105, 231, 255, 0.035);
  font-size: 0.62rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: 150ms ease;
}

.mini-button:hover:not(:disabled),
.file-button:hover {
  color: var(--text);
  border-color: rgba(105, 231, 255, 0.35);
  background: rgba(105, 231, 255, 0.075);
}

.mini-button-danger {
  color: #ffc4cd;
  border-color: rgba(255, 130, 152, 0.16);
}

.mapping-stage {
  position: relative;
  height: 230px;
  border: 1px solid rgba(105, 231, 255, 0.16);
  border-radius: 15px;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(105, 231, 255, 0.07), transparent 60%),
    rgba(4, 9, 22, 0.72);
}

#mapping-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.mapping-crosshair {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.36;
  background:
    linear-gradient(transparent 49.8%, rgba(105, 231, 255, 0.16) 50%, transparent 50.2%),
    linear-gradient(90deg, transparent 49.8%, rgba(105, 231, 255, 0.16) 50%, transparent 50.2%);
}

.mapping-label {
  position: absolute;
  z-index: 3;
  color: #586b8c;
  font-size: 0.48rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.mapping-label-a {
  top: 9px;
  left: 11px;
}

.mapping-label-b {
  right: 11px;
  bottom: 9px;
}

.metrics-grid {
  margin-top: 11px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.metric {
  min-height: 58px;
  padding: 10px;
  border: 1px solid rgba(105, 231, 255, 0.1);
  border-radius: 11px;
  background: rgba(105, 231, 255, 0.025);
}

.metric small,
.metric strong {
  display: block;
}

.metric small {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric strong {
  margin-top: 5px;
  color: var(--cyan-soft);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.sensor-card {
  margin-top: 11px;
  padding: 12px;
  border: 1px solid rgba(180, 147, 255, 0.14);
  border-radius: 12px;
  background: rgba(180, 147, 255, 0.025);
}

.sensor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sensor-head span:last-child {
  color: #d5c8ff;
}

.sensor-bars {
  margin-top: 11px;
  display: grid;
  gap: 9px;
}

.sensor-bars > div {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 8px;
  color: #7584a2;
  font-size: 0.57rem;
}

.sensor-bars i {
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
}

.sensor-bars b {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  box-shadow: 0 0 9px rgba(105, 231, 255, 0.4);
  transition: width 120ms ease;
}

.database-panel {
  margin: 0 26px 26px;
  padding: 22px;
}

.database-header,
.database-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.database-header .panel-heading {
  margin: 0;
}

.database-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.database-summary {
  margin-top: 18px;
  padding: 10px 12px;
  justify-content: flex-start;
  flex-wrap: wrap;
  border: 1px solid rgba(105, 231, 255, 0.09);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(5, 10, 24, 0.48);
  font-size: 0.65rem;
}

.database-summary span {
  padding-right: 14px;
  border-right: 1px solid rgba(105, 231, 255, 0.1);
}

.database-summary span:last-child {
  border-right: 0;
}

.database-summary strong {
  color: var(--muted-strong);
}

.safe-text {
  color: var(--success) !important;
}

.glyph-gallery {
  min-height: 180px;
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 11px;
}

.gallery-empty {
  grid-column: 1 / -1;
  min-height: 180px;
  display: grid;
  place-content: center;
  justify-items: center;
  border: 1px dashed rgba(105, 231, 255, 0.13);
  border-radius: 13px;
  color: var(--muted);
  text-align: center;
}

.gallery-empty span {
  color: var(--cyan);
  font-size: 2rem;
}

.gallery-empty strong {
  margin-top: 8px;
  color: var(--muted-strong);
  font-size: 0.82rem;
}

.gallery-empty small {
  margin-top: 4px;
  font-size: 0.65rem;
}

.glyph-card {
  min-width: 0;
  border: 1px solid rgba(105, 231, 255, 0.12);
  border-radius: 13px;
  overflow: hidden;
  background: rgba(5, 10, 24, 0.68);
  transition: 170ms ease;
}

.glyph-card:hover {
  transform: translateY(-2px);
  border-color: rgba(105, 231, 255, 0.28);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
}

.glyph-preview-button {
  width: 100%;
  height: 132px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(105, 231, 255, 0.1);
  background:
    radial-gradient(circle at center, rgba(105, 231, 255, 0.055), transparent 65%),
    rgba(7, 13, 29, 0.84);
  cursor: pointer;
}

.glyph-preview {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.glyph-card-body {
  padding: 10px;
}

.glyph-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.glyph-card-title strong {
  font-size: 0.72rem;
}

.glyph-card-title span {
  color: var(--muted);
  font-size: 0.51rem;
}

.glyph-card code {
  margin-top: 7px;
  display: block;
  overflow: hidden;
  color: #7790aa;
  font-size: 0.54rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.glyph-card-stats {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.glyph-card-stats span {
  padding: 3px 5px;
  border-radius: 5px;
  color: #9aabd0;
  background: rgba(105, 231, 255, 0.045);
  font-size: 0.49rem;
}

.glyph-card-actions {
  margin-top: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.glyph-card-actions button {
  padding: 0;
  border: 0;
  color: var(--cyan);
  background: transparent;
  font-size: 0.53rem;
  font-weight: 900;
  cursor: pointer;
}

.glyph-card-actions button:hover {
  text-decoration: underline;
}

.glyph-card-actions .danger-link {
  color: var(--danger);
}

.footer {
  min-height: 74px;
  padding: 18px clamp(22px, 4vw, 52px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(105, 231, 255, 0.09);
  color: var(--muted);
  background: rgba(4, 8, 20, 0.68);
}

.footer > div {
  display: grid;
  gap: 3px;
}

.footer strong {
  color: var(--muted-strong);
  font-size: 0.72rem;
}

.footer span,
.footer p {
  font-size: 0.61rem;
}

.footer p {
  max-width: 620px;
  margin: 0;
  line-height: 1.5;
  text-align: right;
}

.footer p.success {
  color: var(--success);
}

.footer p.warning {
  color: var(--warning);
}

.footer p.error {
  color: var(--danger);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 1260px) {
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "create create"
      "verify mapping";
  }

  .drawing-stage {
    height: min(64vw, 650px);
    max-height: 650px;
  }

  .glyph-gallery {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
  }
}

@media (max-width: 820px) {
  .citadel-shell {
    width: min(100% - 18px, 1700px);
    margin: 9px auto;
    border-radius: 22px;
  }

  .topbar,
  .hero,
  .footer {
    padding-right: 17px;
    padding-left: 17px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-status {
    justify-content: flex-start;
  }

  .hero {
    min-height: 0;
  }

  .hero-orbit {
    position: absolute;
    right: -55px;
    opacity: 0.28;
  }

  .dashboard-grid {
    padding: 12px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "create"
      "mapping"
      "verify";
  }

  .database-panel {
    margin: 0 12px 12px;
  }

  .glyph-gallery {
    grid-template-columns: repeat(2, minmax(135px, 1fr));
  }

  .database-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .database-actions {
    justify-content: flex-start;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer p {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 42px;
    padding-bottom: 46px;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 13vw, 3.5rem);
  }

  .panel {
    border-radius: 17px;
  }

  .verification-panel,
  .creation-panel,
  .mapping-panel,
  .database-panel {
    padding: 15px;
  }

  .creation-heading {
    align-items: flex-start;
  }

  .heading-group {
    align-items: flex-start;
  }

  .toolbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .toolbar-spacer {
    display: none;
  }

  .tool-control:first-child {
    flex: 1 1 170px;
  }

  .drawing-stage {
    height: 410px;
  }

  .pointer-readout {
    display: none;
  }

  .creation-actions {
    flex-direction: column;
  }

  .button-primary {
    min-width: 0;
  }

  .button {
    width: 100%;
  }

  .mapping-stage {
    height: 210px;
  }

  .database-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .database-summary span {
    padding-right: 0;
    border-right: 0;
  }

  .glyph-gallery {
    grid-template-columns: 1fr;
  }

  .glyph-preview-button {
    height: 170px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ATOOLSHA-2048 — Édition Inédite */

textarea,
select {
  font: inherit;
}

textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.main-nav a {
  padding: 9px 11px;
  border-radius: 10px;
  color: var(--muted-strong);
  font-size: 0.71rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--text);
  background: rgba(105, 231, 255, 0.07);
}

.edition-hero {
  min-height: 360px;
}

.edition-hero .orbit-core {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
}

.edition-hero .orbit-core span {
  color: #061224;
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.hero-actions {
  margin-top: 27px;
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.hero-actions .button {
  width: auto;
  text-decoration: none;
}

.edition-stats {
  padding: 0 26px 26px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.edition-stats article {
  min-height: 92px;
  padding: 18px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10, 20, 42, 0.7);
}

.edition-stats strong {
  color: var(--cyan-soft);
  font-size: clamp(0.93rem, 1.4vw, 1.2rem);
}

.edition-stats span {
  color: var(--muted);
  font-size: 0.7rem;
}

.section-heading {
  padding: 64px 32px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 30px;
  align-items: end;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3.1vw, 3rem);
  letter-spacing: -0.045em;
}

.section-heading > p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.metadata-fieldset {
  margin: 18px 0 0;
  padding: 17px;
  border: 1px solid rgba(105, 231, 255, 0.14);
  border-radius: 16px;
  background: rgba(5, 12, 29, 0.58);
}

.metadata-fieldset legend {
  padding: 0 8px;
  color: var(--cyan);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metadata-grid,
.font-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.metadata-grid label,
.font-config-grid label,
.library-toolbar > label,
.textarea-label {
  display: grid;
  gap: 7px;
}

.metadata-grid label > span,
.font-config-grid label > span,
.library-toolbar label > span,
.textarea-label > span {
  color: var(--muted-strong);
  font-size: 0.66rem;
  font-weight: 800;
}

.metadata-wide {
  grid-column: 1 / -1;
}

.metadata-grid input,
.metadata-grid select,
.font-config-grid input,
.library-toolbar input[type="search"],
.library-toolbar select,
.textarea-label textarea,
.code-grid textarea {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid rgba(105, 231, 255, 0.17);
  border-radius: 11px;
  color: var(--text);
  background: rgba(3, 8, 22, 0.8);
}

.metadata-grid input::placeholder,
.font-config-grid input::placeholder,
.library-toolbar input::placeholder,
.textarea-label textarea::placeholder {
  color: #687a9a;
}

.library-toolbar {
  margin: 4px 0 17px;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.5fr) minmax(220px, 0.8fr) auto;
  gap: 12px;
  align-items: end;
  border: 1px solid rgba(105, 231, 255, 0.12);
  border-radius: 14px;
  background: rgba(4, 10, 25, 0.58);
}

.selection-toggle {
  min-height: 43px;
  padding: 10px 12px;
  grid-template-columns: auto 1fr !important;
  align-items: center;
  border: 1px solid rgba(105, 231, 255, 0.13);
  border-radius: 11px;
}

.selection-toggle input,
.glyph-selector input {
  width: 18px;
  height: 18px;
  accent-color: var(--cyan);
}

.library-toolbar output {
  padding: 12px 13px;
  color: var(--cyan-soft);
  font-size: 0.69rem;
  font-weight: 900;
  white-space: nowrap;
}

.glyph-card {
  isolation: isolate;
}

.glyph-card[hidden] {
  display: none;
}

.glyph-selector {
  min-height: 36px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(105, 231, 255, 0.09);
  color: var(--muted-strong);
  background: rgba(3, 9, 23, 0.72);
  font-size: 0.58rem;
  font-weight: 800;
}

.glyph-card-actions {
  flex-wrap: wrap;
  gap: 8px 12px;
}

.generator-grid,
.font-studio-grid {
  padding: 0 26px 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.generator-panel,
.generator-result,
.font-config-panel,
.mapping-table-panel {
  padding: 22px;
}

.textarea-label textarea {
  min-height: 210px;
  resize: vertical;
  line-height: 1.55;
}

.field-meta {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: var(--muted);
  font-size: 0.63rem;
}

#private-profile-state.active {
  color: var(--magenta);
}

.large-output {
  min-height: 264px;
  max-height: 340px;
  font-size: 0.69rem;
}

.inline-status {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.inline-status.success {
  color: var(--success);
}

.inline-status.warning {
  color: var(--warning);
}

.inline-status.error {
  color: var(--danger);
}

.technical-note {
  margin-top: 18px;
  padding: 15px;
  border: 1px solid rgba(255, 200, 121, 0.18);
  border-radius: 13px;
  color: var(--muted);
  background: rgba(255, 200, 121, 0.05);
}

.technical-note strong {
  color: var(--warning);
  font-size: 0.7rem;
}

.technical-note p {
  margin: 7px 0 0;
  font-size: 0.7rem;
  line-height: 1.6;
}

.full-button {
  width: 100%;
  margin-top: 18px;
}

progress {
  width: 100%;
  height: 8px;
  margin-top: 14px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

progress::-webkit-progress-bar {
  background: rgba(255, 255, 255, 0.06);
}

progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}

progress::-moz-progress-bar {
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}

.font-preview-card {
  min-height: 190px;
  margin-top: 18px;
  padding: 18px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 11px;
  border: 1px solid rgba(105, 231, 255, 0.16);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 35%, rgba(105, 231, 255, 0.1), transparent 55%),
    rgba(3, 9, 23, 0.72);
}

.font-preview-card small,
.font-preview-card span {
  color: var(--muted);
  font-size: 0.63rem;
}

#font-preview {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--cyan);
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  line-height: 1;
  text-shadow: 0 0 25px rgba(105, 231, 255, 0.3);
}

.download-grid {
  margin-top: 15px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.accent-button {
  color: #f5eaff;
  border-color: rgba(180, 147, 255, 0.3);
  background: rgba(180, 147, 255, 0.08);
}

.table-scroll {
  overflow: auto;
  border: 1px solid rgba(105, 231, 255, 0.12);
  border-radius: 14px;
}

.mapping-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(3, 9, 23, 0.65);
}

.mapping-table th,
.mapping-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(105, 231, 255, 0.09);
  text-align: left;
}

.mapping-table th {
  color: var(--muted);
  background: rgba(105, 231, 255, 0.04);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mapping-table td {
  color: var(--muted-strong);
  font-size: 0.68rem;
}

.mapping-table td strong,
.mapping-table td small {
  display: block;
}

.mapping-table td small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.58rem;
}

.mapping-symbol {
  color: var(--cyan);
  font-size: 2.2rem;
}

.mapping-table code,
.pedagogy-grid code {
  color: #d9c8ff;
}

.empty-table {
  padding: 40px 16px !important;
  text-align: center !important;
}

.code-generator-panel {
  margin: 0 26px 26px;
  padding: 22px;
}

.code-generator-panel .database-header > p {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.code-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.code-grid article {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(105, 231, 255, 0.12);
  border-radius: 14px;
  background: rgba(3, 9, 23, 0.58);
}

.code-heading {
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.code-heading strong {
  font-size: 0.72rem;
}

.code-grid textarea {
  min-height: 280px;
  resize: vertical;
  color: #ccefff;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.65rem;
  line-height: 1.55;
}

.pedagogy-grid {
  padding: 0 26px 42px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.pedagogy-grid article {
  padding: 21px;
}

.pedagogy-grid h3 {
  margin: 14px 0 9px;
  font-size: 0.95rem;
}

.pedagogy-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.65;
}

.pedagogy-number {
  color: var(--cyan);
  font-size: 0.63rem;
  font-weight: 950;
}

.clipboard-fallback {
  position: fixed;
  top: -1000px;
  left: -1000px;
}

@media (max-width: 1180px) {
  .topbar {
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .library-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .code-grid,
  .pedagogy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .main-nav {
    order: initial;
    width: 100%;
  }

  .edition-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-right: 12px;
    padding-left: 12px;
  }

  .section-heading {
    padding: 52px 17px 18px;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .generator-grid,
  .font-studio-grid {
    padding-right: 12px;
    padding-left: 12px;
    grid-template-columns: 1fr;
  }

  .code-generator-panel {
    margin-right: 12px;
    margin-left: 12px;
  }

  .library-toolbar {
    grid-template-columns: 1fr;
  }

  .code-grid {
    grid-template-columns: 1fr;
  }

  .pedagogy-grid {
    padding-right: 12px;
    padding-left: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .main-nav a {
    padding-right: 9px;
    padding-left: 9px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .edition-stats {
    grid-template-columns: 1fr;
  }

  .metadata-grid,
  .font-config-grid,
  .download-grid,
  .pedagogy-grid {
    grid-template-columns: 1fr;
  }

  .metadata-wide {
    grid-column: auto;
  }

  .field-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .generator-panel,
  .generator-result,
  .font-config-panel,
  .mapping-table-panel,
  .code-generator-panel {
    padding: 15px;
  }

  .mapping-table {
    min-width: 560px;
  }
}
