:root {
  --bg: #0f1115;
  --surface: #1a1e24;
  --surface-2: #242a33;
  --amber: #f57c00;
  --amber-hover: #e65100;
  --text: #ffffff;
  --text-muted: #c4cbd4;
  --stroke: #3c4656;
  --green: #2e7d32;
  --green-bright: #4caf50;
  --green-bg: rgba(76, 175, 80, 0.14);
  --red: #c62828;
  --red-bright: #ef5350;
  --red-bg: rgba(239, 83, 80, 0.15);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.45;
}

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

.hidden {
  display: none !important;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--stroke);
}

.brand {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-mark {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--amber);
}

.brand-slogan {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-select {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--amber);
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.container {
  flex: 1 0 auto;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 16px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 18px;
}

.card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.card-desc {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.token-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.token-input {
  flex: 1 1 220px;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--bg);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  direction: ltr;
}

.token-input:focus {
  outline: none;
  border-color: var(--amber);
}

.btn {
  min-height: 52px;
  padding: 0 20px;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.08s ease, background-color 0.15s ease;
}

.btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.btn:active {
  transform: scale(0.99);
}

.btn-amber {
  background: var(--amber);
  color: var(--text);
}

.btn-amber:hover {
  background: var(--amber-hover);
}

/* Grün/Rot-Manipulations-Ampel */
.ampel-card {
  border-width: 2px;
}

.ampel-neutral {
  border-color: var(--stroke);
  background: var(--surface);
}

.ampel-green {
  border-color: var(--green-bright);
  background: var(--green-bg);
}

.ampel-red {
  border-color: var(--red-bright);
  background: var(--red-bg);
}

.ampel-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ampel-dot {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  background: var(--stroke);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
}

.ampel-green .ampel-dot {
  background: var(--green-bright);
  box-shadow: 0 0 16px rgba(76, 175, 80, 0.65);
}

.ampel-red .ampel-dot {
  background: var(--red-bright);
  box-shadow: 0 0 16px rgba(239, 83, 80, 0.65);
}

.ampel-title {
  font-size: 17px;
  font-weight: 800;
}

.ampel-green .ampel-title {
  color: var(--green-bright);
}

.ampel-red .ampel-title {
  color: var(--red-bright);
}

.ampel-subtitle {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-muted);
}

.file-picker {
  margin-top: 14px;
  min-height: 54px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1.5px dashed var(--amber);
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
}

.file-picker:hover,
.file-picker.drag-over {
  background: rgba(245, 124, 0, 0.16);
}

.details-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.status-sealed {
  background: var(--green-bg);
  color: var(--green-bright);
  border: 1px solid var(--green-bright);
}

.status-deleted {
  background: var(--red-bg);
  color: var(--red-bright);
  border: 1px solid var(--red-bright);
}

.deleted-banner {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--red-bg);
  border: 1px solid var(--red-bright);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.meta-grid {
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 540px) {
  .meta-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.meta-item {
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 12px;
}

.meta-item-wide {
  grid-column: 1 / -1;
}

.meta-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.meta-value {
  margin-top: 3px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
  white-space: pre-wrap;
}

.hash-block {
  margin-top: 14px;
}

.mono-box {
  margin-top: 8px;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--stroke);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: var(--text);
  word-break: break-all;
  white-space: pre-wrap;
  direction: ltr;
}

.legal-note {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-cta {
  padding: 16px;
  border-top: 1px solid var(--stroke);
  background: var(--surface);
  text-align: center;
}

.footer-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-seal {
  font-weight: 800;
  color: var(--amber);
}

.footer-sep {
  opacity: 0.5;
}
