@import url(//fonts.googleapis.com/css?family=Libre+Baskerville:400,400italic,700);
@import url(//fonts.googleapis.com/css?family=Source+Code+Pro:400,400italic,700,700italic);

@import url(//fonts.bunny.net/css?family=hepta-slab:400,700|montserrat:400,400i,700,700i);
@import url(//fonts.googleapis.com/css2?family=Vollkorn:wght@800&display=swap);

/* normalize.css v3.0.0 | MIT License | git.io/normalize */

/* define color scheme */
:root {
  --primary-light-color: #ffffff;
  --primary-dark-color: #3a3a3a;
  --accent-hue-value: 322;
  
}

:root {
  --text-color: var(--primary-dark-color);
  --background-color: var(--primary-light-color);
  --accent-color: hsl(calc(var(--accent-hue-value)), 80%, 45%);
  --card-color: hsl(calc(var(--accent-hue-value)), 60%, 90%);
}

@media (prefers-color-scheme: dark) {
:root {
  --text-color: var(--primary-light-color);
  --background-color: var(--primary-dark-color);
  --accent-color: hsl(calc(var(--accent-hue-value) - 180), 80%, 75%);
  --card-color: hsl(calc(var(--accent-hue-value) - 180), 20%, 40%);
}
}

.english {
  font-style: italic;
  opacity: 0.6;
}

.center {
  margin-right: auto;
  margin-left: auto;
  position: relative;
  max-width: 600px;
}


html {
  font-family: sans-serif;
  text-rendering: optimizeLegibility;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
  display: block;
}

audio,
canvas,
progress,
video {
  display: inline-block;
  vertical-align: baseline;
}

audio:not([controls]) {
  display: none;
  height: 0;
}

[hidden],
template {
  display: none;
}

a {
  background: transparent;
  color: var(--accent-color);
}

a:active,
a:hover {
  outline: 0;
}

abbr[title] {
  border-bottom: 1px dotted;
}

b,
strong {
  font-weight: bold;
}

dfn {
  font-style: italic;
}

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

mark {
  background: var(--accent-color);
  color: var(--background-color);
}



small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

img {
  border: 0;
}

svg:not(:root) {
  overflow: hidden;
}

figure {
  margin: 1em 40px;
}

hr {
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  height: 0;
}

pre {
  overflow: auto;
}

code,
kbd,
pre,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

button,
input,
optgroup,
select,
textarea {
  color: inherit;
  font: inherit;
  margin: 0;
}

button {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button;
  cursor: pointer;
}

button[disabled],
html input[disabled] {
  cursor: default;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

input {
  line-height: normal;
}

input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

input[type="search"] {
  -webkit-appearance: textfield;
  -moz-box-sizing: content-box;
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}

legend {
  border: 0;
  padding: 0;
}

textarea {
  overflow: auto;
}

optgroup {
  font-weight: bold;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

td,
th {
  padding: 0;
}

/* Noisy background */

body,
code,
tr.odd,
tr.even,
figure {
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAABOFBMVEWDg4NycnJnZ2ebm5tjY2OgoKCurq5lZWWoqKiKiopmZmahoaGOjo5TU1N6enp7e3uRkZGJiYmFhYWxsbFOTk6Xl5eBgYGkpKRhYWFRUVGvr69dXV2wsLBiYmKnp6dUVFR5eXmdnZ1sbGxYWFh2d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CU9kmCvydDptoECLq+XXLs4w8U+DUZyir9Cw+XL3rHFGoDNI9Rw3baFy/fZwTY2Gr0WMuLaxMrWaC5rh+IeyZijp0fdaDLPg8YtugLgnwYZss1xIh1o13qB7L8pC6wEutNQVuy5aIpNkSSl2yWAiRADUVXSMqpTH8Da3gCNr8maodNIxjY7CXyvzHHfiJoto/CE9UMmX+cRqPC8RKdks7OV35txMGkdXzOkkhX9wTr+tIOGKZzjoo+qbWy3hsJJtz5D7nP+syyjxYe7eCAMIOywwFNfv/ZMNyBSxV0g7ZEJCPVE8IA5sw7jg9Kx3RXdfCQXGxpH+0kyHYpBj0H4y2VdAHRW9RyegOPPB+5NudysJji/lnxHQ9pFOMLMLeZ0O9hrnsuFsstbjczbC+14JHS+xsDf3pPgQXvUG6Q/H2fKV/B7jYX8RdOrug5BjG/1jueAPq1ElQb4AeH/sRNwnNyoFqsJwT9tWhChzL/IP/gxfleLSIgVQDdRvKBZVfu9wgKkeHEEfgIqa/F6fJ0HM8knJtkbCn4hKFvNDLWXDr8BGMywGD1Lh54AAAAASUVORK5CYII=");
}

/* Font */
body {
  /*font-family: "Libre Baskerville", Baskerville, Georgia, serif;*/
  font-family: Montserrat,"Helvetica Neue",Helvetica,sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.3;
  text-align: left;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/*
-----------------
Responsive layout
-----------------
*/

@media (max-width: 400px) {
  body {
    font-size: 1.1rem;
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 10px;
    margin-bottom: 15px;
  }
}

@media (min-width: 401px) and (max-width: 600px) {
  body {
    font-size: 1.3rem;
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 10px;
    margin-bottom: 15px;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  body {
    font-size: 1.3rem;
    margin-left: 100px;
    margin-right: 100px;
    margin-top: 20px;
    margin-bottom: 25px;
  }
}

@media (min-width: 901px) and (max-width: 1800px) {
  body {
    font-size: 1.4rem;
    margin-left: 200px;
    margin-right: 200px;
    margin-top: 30px;
    margin-bottom: 25px;
  }
}

@media (min-width: 1801px) {
  body {
    font-size: 1.5rem;
    margin-left: 20%;
    margin-right: 20%;
    margin-top: 30px;
    margin-bottom: 25px;
  }
}

/*
-----------------
Paragraphs
-----------------
*/

p {
  line-height: 1.5em;
  margin-top: 10px;
  margin-bottom: 18px;
}

em {
  font-style: italic;
}

strong {
  font-weight: bold;
}


/*
-----------------
Header and titles
-----------------
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: bold;
  padding-top: 0.25em;
  margin-bottom: 0.15em;
  font-family: Vollkorn;
}

header {
  line-height: 2.475em;
  padding-bottom: 0.7em;
  /*border-bottom: 8px dotted #bbb;*/
  margin-bottom: 1.2em;
}

header>h1 {
  border: none;
  padding: 0;
  margin: 0;
  font-size: 225%;
}

header>h2 {
  border: none;
  padding: 0;
  margin: 0;
  font-style: normal;
  font-size: 175%;
}

header>h3 {
  padding: 0;
  margin: 0;
  font-size: 125%;
  font-style: italic;
}

header+h1 {
  border-top: none;
  padding-top: 0px;
}

h1 {
  border-top: 4px dotted var(--accent-color);
  padding-top: 15px;
  color: var(--accent-color);
  font-size: 150%;
  margin-bottom: 10px;
}

h1:first-of-type {
  border: none;
}

h2 {
  font-size: 125%;
  font-style: italic;
}

h3 {
  font-size: 105%;
  font-style: italic;
}

hr {
  border: 0px;
  border-top: 1px solid var(--text-color);
  width: 100%;
  height: 0px;
}

hr+h1 {
  border-top: none;
  padding-top: 0px;
}


/*
-----------------
Lists
-----------------
*/

ul,
ol {
  font-size: 90%;
  margin-top: 10px;
  margin-bottom: 15px;
  padding-left: 30px;
}

ul {
  list-style: circle;
}

ol {
  list-style: decimal;
}

ul ul,
ol ol,
ul ol,
ol ul {
  font-size: inherit;
}

li {
  margin-top: 5px;
  margin-bottom: 7px;
}


/*
-----------------
Quotes and Blockquotes
-----------------
*/

q,
blockquote,
dd {
  font-style: italic;
  font-size: 90%;
}

blockquote,
dd {
  quotes: none;
  border-left: 0.35em var(--card-color) solid;
  padding-left: 1.15em;
  margin: 0 1.5em 0 0;
}

blockquote blockquote,
dd blockquote,
blockquote dd,
dd dd,
ol blockquote,
ol dd,
ul blockquote,
ul dd,
blockquote ol,
dd ol,
blockquote ul,
dd ul {
  font-size: inherit;
}

/*
-----------------
Links
-----------------
*/

a,
a:link,
a:visited,
a:hover {
  color: var(--accent-color);
  text-decoration: none;
  border-bottom: 1px dashed #111;
}

a:hover,
a:link:hover,
a:visited:hover,
a:hover:hover {
  border-bottom-style: solid;
}

a.footnoteRef,
a:link.footnoteRef,
a:visited.footnoteRef,
a:hover.footnoteRef {
  border-bottom: none;
  color: var(--accent-color);
}

/*
-----------------
Code and Code Blocks
-----------------
*/

code {
  font-family: "Source Code Pro", "Consolas", "Monaco", monospace;
  font-size: 85%;
  background-color: var(--card-color);
  border: 1px solid var(--accent-color);
  padding: 0px 0.15em 0px 0.15em;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
}

pre {
  margin-right: 1.5em;
  display: block;
}

pre>code {
  display: block;
  font-size: 80%;
  padding: 10px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  overflow-x: auto;
}

blockquote pre,
dd pre,
ul pre,
ol pre {
  margin-left: 0;
  margin-right: 0;
}

blockquote pre>code,
dd pre>code,
ul pre>code,
ol pre>code {
  font-size: 77.77778%;
}

/*
-----------------
Table
-----------------
*/

table {
  width: 100%;
  margin-top: 1em;
  margin-bottom: 1em;
}

table+h1 {
  border-top: none;
}

tr td,
tr th {
  padding: 0.2em 0.7em;
}

tr.header {
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
  font-weight: 700;
}

tr.odd {
  background-color: #6666662c;
}

tr.even {
  background-color: #66666618;
}

tbody:last-child {
  border-bottom: 1px solid #222;
}

dt {
  font-weight: 700;
}

dt:after {
  font-weight: normal;
  content: ":";
}

dd {
  margin-bottom: 10px;
}

figure {
  margin: 1.3em 0 1.3em 0;
  text-align: center;
  padding: 0px;
  width: 100%;
  background-color: var(--card-color);
  /*border: 1px solid #bbb;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;*/
  border-radius: 8px;
  overflow: hidden;
}

/*
-----------------
Images and Captions
-----------------
*/

caption,
figcaption {
  font-size: 80%;
  font-style: italic;
  text-align: right;
  margin-bottom: 5px;
}

caption:empty,
figcaption:empty {
  display: none;
}

img {
  display: block;
  margin: 1em auto;
  padding: 0px;
  max-width: 100%;
}

figcaption {
  margin: 5px 10px 5px 30px;
}

.footnotes {
  color: #666;
  font-size: 70%;
  font-style: italic;
}

.footnotes li p:last-child a:last-child {
  border-bottom: none;
}

.csl-bib-body {
  color: var(--accent-color);
  margin-top: 2em;
}

.csl-entry {
  margin-bottom: 1.5em;
  font-size: 0.8em;
  font-family: 'Courier New', Courier, monospace;
}

/*
-----------------
Custom CSS
-----------------
*/

.striped {
  background-image: repeating-linear-gradient(-56deg, transparent, transparent 8px, currentcolor 8px, currentcolor 10px);
  padding: 0px;
  aspect-ratio: 6 / 1;
  border: 0px none;
  display: block;
  color: inherit;
}

/*
-----------------
Answer & Graph pages
-----------------
*/

.answer-page,
.graph-page {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.answer-page h1,
.graph-page h1 {
  border: none;
  margin-bottom: 1.5rem;
}

.answer-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 480px;
}

.answer-input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1.1rem;
  border: 2px solid var(--accent-color);
  border-radius: 8px;
  background-color: var(--background-color);
  color: var(--text-color);
  box-sizing: border-box;
}

.answer-input:focus,
.batch-input:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.batch-input {
  width: 100%;
  min-height: 12rem;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.5;
  border: 2px solid var(--accent-color);
  border-radius: 8px;
  background-color: var(--background-color);
  color: var(--text-color);
  box-sizing: border-box;
  resize: vertical;
}

.batch-hint {
  margin: 0 0 1rem 0;
  font-size: 0.95rem;
  opacity: 0.75;
}

.answer-submit {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  background-color: var(--accent-color);
  color: var(--background-color);
}

.answer-submit:hover {
  filter: brightness(1.1);
}

.answer-status,
.graph-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

.answer-nav {
  margin-top: 2rem;
}

.graph-header {
  width: 100%;
  text-align: center;
  margin-bottom: 1.5rem;
}

.graph-body {
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

.graph-layout {
  position: relative;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.graph-toolbar {
  position: fixed;
  top: 0.85rem;
  left: 50%;
  right: auto;
  width: auto;
  max-width: calc(100vw - 1.7rem);
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 1.25rem;
  padding: 0.6rem 1.25rem;
  text-align: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--background-color) 35%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid color-mix(in srgb, var(--text-color) 8%, transparent);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.graph-toolbar:hover {
  background: color-mix(in srgb, var(--background-color) 94%, transparent);
  border-color: color-mix(in srgb, var(--text-color) 14%, transparent);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.graph-toolbar h1 {
  border: none;
  margin: 0;
  font-size: 1.15rem;
  white-space: nowrap;
}

.graph-toolbar .graph-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.8rem;
}

.graph-connection-indicator {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #9e9e9e;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.graph-connection-indicator--connected {
  background: #2e7d32;
}

.graph-toolbar .answer-nav {
  margin: 0;
  font-size: 0.85rem;
}

.graph-toolbar .threshold-controls {
  margin: 0;
  gap: 1rem;
}

.graph-toolbar .graph-legend {
  margin: 0;
}

.threshold-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 0.75rem 0 0.25rem;
}

.threshold-control {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.threshold-label {
  min-width: 6.5rem;
  text-align: right;
}

.threshold-control input[type="range"] {
  width: 140px;
  accent-color: var(--accent-color);
}

.threshold-value {
  min-width: 3.5rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.8;
}

.graph-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  opacity: 0.8;
}

.legend-edge::before {
  content: "—";
  margin-right: 0.35rem;
  font-weight: bold;
}

.legend-edge--strong::before {
  color: #c62828;
}

.legend-edge--weak::before {
  color: #9e9e9e;
}

.graph-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  overflow: hidden;
  background-color: var(--background-color);
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  background: transparent;
}

.graph-delete-btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0.45rem 0.9rem;
  border: none;
  border-radius: 8px;
  background-color: #c62828;
  color: #fff;
  font-size: 0.85rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  pointer-events: all;
}

.graph-delete-btn:hover {
  filter: brightness(1.08);
}

.graph-export-btn {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  padding: 0.55rem 1rem;
  border: none;
  border-radius: 8px;
  background-color: var(--accent-color);
  color: var(--background-color);
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.graph-export-btn:hover {
  filter: brightness(1.08);
}

.graph-export-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.graph-container svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}

.graph-float-panel {
  position: fixed;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--background-color) 35%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid color-mix(in srgb, var(--text-color) 8%, transparent);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
  touch-action: none;
  user-select: none;
}

.graph-float-panel:hover {
  background: color-mix(in srgb, var(--background-color) 94%, transparent);
  border-color: color-mix(in srgb, var(--text-color) 14%, transparent);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.graph-float-panel.is-dragging {
  cursor: grabbing;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.14);
}

.graph-float-panel--collapsed {
  padding-bottom: 0.55rem;
}

.graph-float-panel--collapsed .graph-float-body {
  display: none;
}

.graph-qr-panel {
  left: calc(100vw - 17.5rem);
  top: calc(50vh - 8rem);
  right: auto;
  bottom: auto;
}

.graph-physics-panel {
  left: 0.85rem;
  bottom: 0.85rem;
  top: auto;
  width: min(20rem, calc(100vw - 1.7rem));
}

.graph-physics-legend {
  justify-content: flex-start;
  margin: 0;
  padding: 0.15rem 0 0.35rem;
  font-size: 0.72rem;
}

.graph-float-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  cursor: grab;
}

.graph-float-panel.is-dragging .graph-float-header {
  cursor: grabbing;
}

.graph-float-title {
  font-size: 0.9rem;
  font-weight: bold;
  white-space: nowrap;
}

.graph-float-toggle {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  border-radius: 6px;
  background: color-mix(in srgb, var(--text-color) 10%, transparent);
  color: var(--text-color);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.graph-float-toggle:hover {
  background: color-mix(in srgb, var(--accent-color) 25%, transparent);
}

.graph-float-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
}

.graph-physics-body {
  align-items: stretch;
  gap: 0.55rem;
}

.graph-physics-body .physics-control {
  grid-template-columns: 6.5rem 1fr 2.75rem;
}

.physics-control {
  display: grid;
  grid-template-columns: 5.5rem 1fr 2.5rem;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
}

.physics-control input[type="range"] {
  width: 100%;
  accent-color: var(--accent-color);
}

.physics-value {
  font-variant-numeric: tabular-nums;
  opacity: 0.75;
  text-align: right;
}

.graph-qr-code {
  padding: 0.35rem;
  border-radius: 10px;
  background: #fff;
  line-height: 0;
}

.graph-qr-code img,
.graph-qr-code canvas {
  display: block;
}

.graph-qr-panel--enlarged {
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  z-index: 50 !important;
  padding: 1.25rem 1.5rem;
}

.graph-qr-panel--enlarged .graph-qr-header {
  display: none;
}

.graph-qr-panel--enlarged .graph-qr-code img,
.graph-qr-panel--enlarged .graph-qr-code canvas {
  width: min(85vh, calc(100vw - 4rem)) !important;
  height: min(85vh, calc(100vw - 4rem)) !important;
}

.graph-qr-panel--enlarged .graph-qr-url {
  max-width: min(85vh, calc(100vw - 4rem));
}

.graph-qr-url {
  margin: 0;
  max-width: 220px;
  font-size: 1.44rem;
  opacity: 0.85;
  word-break: break-all;
  text-align: center;
}

.graph-qr-url a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.graph-qr-url a:hover {
  color: var(--accent-color);
}

.graph-qr-reset-btn {
  margin-top: 0.25rem;
  padding: 0.5rem 0.75rem;
  width: 100%;
  max-width: 220px;
  border: none;
  border-radius: 8px;
  background-color: #c62828;
  color: #fff;
  font-size: 0.8rem;
  font-weight: bold;
  cursor: pointer;
}

.graph-qr-reset-btn:hover {
  filter: brightness(1.08);
}

.graph-empty {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  margin: 0;
  text-align: center;
  opacity: 0.6;
  font-style: italic;
  pointer-events: none;
}

.graph-tooltip {
  background: var(--card-color);
  color: var(--text-color);
  border: 1px solid var(--accent-color);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  pointer-events: none;
  font-size: 0.85rem;
  max-width: 280px;
  line-height: 1.4;
  z-index: 10;
}

.graph-tooltip-synonym {
  font-size: 0.75rem;
  opacity: 0.75;
  margin-top: 0.15rem;
}

body {
  background: transparent !important;
}