/* Login: Bauhinweis bis zum geplanten Start am 1. Januar 2027. */
.launch-notice {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid #f3d99b;
  border-top: 5px solid #edb342;
  border-radius: 26px;
  background: linear-gradient(120deg, #fffdf7, #fff3d7);
  color: #182b3b;
  box-shadow: 0 18px 44px rgba(4, 10, 18, 0.18);
}

.launch-notice-status {
  margin: 0 0 12px;
  color: #79500c;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.launch-notice h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  line-height: 1.12;
}

.launch-notice-copy > p:last-child {
  max-width: 55ch;
  margin: 12px 0 0;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.6;
}

.launch-notice-date {
  display: grid;
  gap: 10px;
  padding: 24px 28px;
  border-radius: 18px;
  background: #073f62;
  color: #fff;
}

.launch-notice-date span {
  font-size: 0.9rem;
}

.launch-notice-date time {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
}

@media (max-width: 1100px) {
  .auth-stage--construction > .auth-panel {
    order: 1;
  }

  .auth-stage--construction > .auth-brand-panel {
    order: 2;
  }
}

@media (max-width: 620px) {
  .launch-notice {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    border-radius: 22px;
  }

  .launch-notice-date {
    padding: 18px 20px;
  }
}

:root {
  --bg: #0d1620;
  --panel: rgba(248, 250, 252, 0.94);
  --panel-strong: #ffffff;
  --text: #15202b;
  --muted: #667085;
  --line: rgba(31, 46, 62, 0.14);
  --accent: #0b5f8f;
  --accent-dark: #073f62;
  --messe: #1f78c8;
  --messe-deep: #0d4f8b;
  --ludwig: #141414;
  --ludwig-deep: #030303;
  --energy: #21b7d8;
  --success: #256f3a;
  --warning: #8a6200;
  --error: #922b21;
  --gti-border: rgba(15, 36, 53, 0.12);
  --gti-soft: #eef5f8;
  --gti-action: #0f6f8d;
  --gti-action-dark: #0a4c63;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "IBM Plex Sans", "Aptos", "Avenir Next", "Segoe UI", sans-serif;
  overflow-x: hidden;
  min-height: 100%;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

.page-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.brand-half {
  position: absolute;
  inset: 0;
}

.brand-half-left {
  right: 50%;
  background:
    radial-gradient(circle at 25% 18%, rgba(255, 255, 255, 0.2), transparent 18%),
    radial-gradient(circle at 18% 70%, rgba(111, 214, 255, 0.16), transparent 26%),
    linear-gradient(180deg, var(--messe) 0%, var(--messe-deep) 100%);
}

.brand-half-right {
  left: 50%;
  background:
    radial-gradient(circle at 76% 20%, rgba(111, 214, 255, 0.14), transparent 18%),
    radial-gradient(circle at 82% 66%, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(180deg, #171717 0%, var(--ludwig-deep) 100%);
}

.brand-seam {
  position: absolute;
  top: -15%;
  bottom: -15%;
  left: calc(50% - 90px);
  width: 180px;
  background:
    radial-gradient(circle at center, rgba(111, 214, 255, 0.45) 0%, rgba(111, 214, 255, 0.08) 32%, transparent 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(111, 214, 255, 0.06));
  filter: blur(10px);
  transform: skewX(-10deg);
}

code {
  font-family: "SFMono-Regular", Menlo, monospace;
}

.shell {
  width: min(100%, 1440px);
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(16px, 2vw, 32px);
}

.topbar,
.section-head,
.topbar-actions,
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
  grid-template-areas:
    "brand copy"
    "brand actions";
  gap: 12px 22px;
  align-items: center;
  margin-bottom: 24px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 28px;
  background: rgba(246, 249, 252, 0.9);
  box-shadow: 0 18px 44px rgba(4, 10, 18, 0.18);
  backdrop-filter: blur(14px);
}

.topbar-copy {
  grid-area: copy;
  align-self: center;
  color: var(--text);
  text-shadow: none;
  min-width: 0;
}

.topbar-copy .eyebrow {
  color: var(--accent-dark);
}

.topbar-actions {
  grid-area: actions;
  align-self: center;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
}

.topbar-actions form {
  margin: 0;
}

.brand-ribbon {
  grid-area: brand;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 76px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(8, 10, 14, 0.18);
}

.brand-ribbon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 42%, rgba(111, 214, 255, 0.84) 50%, transparent 58%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.brand-side {
  padding: 16px 18px;
  color: #fff;
  display: grid;
  align-content: center;
  gap: 6px;
}

.brand-side-left {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent), linear-gradient(160deg, var(--messe) 0%, var(--messe-deep) 100%);
}

.brand-side-right {
  background: linear-gradient(215deg, rgba(255, 255, 255, 0.08), transparent), linear-gradient(160deg, #222 0%, #111 46%, var(--ludwig-deep) 100%);
  grid-template-columns: auto 1fr;
  align-items: center;
  align-content: center;
  gap: 12px;
}

.brand-logo-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.54);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.brand-logo-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-logo-card-compact {
  width: 78px;
  height: 48px;
  padding: 8px;
  border-radius: 18px;
}

.brand-logo-card-large {
  width: min(100%, 360px);
  height: 164px;
  padding: 18px 22px;
  border-radius: 26px;
  justify-self: start;
}

.brand-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  opacity: 0.78;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.03;
}

h1 {
  font-size: clamp(1.65rem, 2.35vw, 2.6rem);
  max-width: 18ch;
  overflow-wrap: anywhere;
}

h2 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.card {
  min-width: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 250, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 26px;
  box-shadow: 0 18px 48px rgba(11, 17, 26, 0.14);
  padding: 26px;
  backdrop-filter: blur(10px);
}

.dashboard {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.metric-tile {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px;
  border-radius: 14px;
  background: rgba(15, 95, 143, 0.07);
  border: 1px solid rgba(15, 95, 143, 0.1);
}

.metric-tile span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
}

.metric-tile strong {
  overflow-wrap: anywhere;
}

.auth-layout {
  min-height: calc(100vh - 48px);
  display: grid;
  align-items: center;
}

.auth-stage {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}

.auth-brand-panel {
  min-height: 560px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(7, 11, 17, 0.26);
}

.brand-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
}

.brand-column {
  padding: 36px 32px;
  color: #fff;
  display: grid;
  align-content: end;
  gap: 14px;
}

.brand-column-left {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(160deg, var(--messe) 0%, var(--messe-deep) 100%);
}

.brand-column-right {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(160deg, #202020 0%, var(--ludwig) 48%, var(--ludwig-deep) 100%);
  align-content: space-between;
}

.brand-column-copy {
  display: grid;
  gap: 14px;
}

.auth-panel {
  width: 100%;
  align-self: center;
}

.eyebrow.inverse {
  color: rgba(255, 255, 255, 0.85);
}

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

.full {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

.mode-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 8px;
  max-width: 420px;
  padding: 4px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(15, 93, 168, 0.12);
}

.mode-switch.assignment-mode {
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  max-width: 680px;
}

.mode-switch legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.mode-switch label {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 14px;
  cursor: pointer;
}

.mode-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mode-switch span {
  width: 100%;
  padding: 10px 14px;
  border-radius: 14px;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
}

.mode-switch input:checked + span {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 10px 20px rgba(10, 68, 122, 0.18);
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font-size: 1rem;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(15, 93, 168, 0.45);
  box-shadow: 0 0 0 4px rgba(15, 93, 168, 0.08);
}

select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, rgba(15, 93, 168, 0.72) 50%),
    linear-gradient(135deg, rgba(15, 93, 168, 0.72) 50%, transparent 50%),
    rgba(255, 255, 255, 0.82);
  background-position:
    calc(100% - 24px) calc(50% - 3px),
    calc(100% - 18px) calc(50% - 3px),
    0 0;
  background-size: 6px 6px, 6px 6px, 100% 100%;
  background-repeat: no-repeat;
}

button {
  border: 0;
  border-radius: 999px;
  min-height: 44px;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--gti-action) 0%, var(--gti-action-dark) 100%);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(10, 76, 99, 0.2);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 26px rgba(10, 76, 99, 0.24);
}

button.ghost {
  background: rgba(255, 255, 255, 0.76);
  color: var(--accent-dark);
  border: 1px solid rgba(15, 36, 53, 0.16);
  box-shadow: none;
}

button.ghost:hover {
  box-shadow: none;
}

button.danger-button {
  background: linear-gradient(135deg, #a43723, #6f1f17);
  box-shadow: 0 12px 22px rgba(111, 31, 23, 0.22);
}

button.danger-button:hover {
  box-shadow: 0 16px 26px rgba(111, 31, 23, 0.26);
}

.primary-action {
  min-width: 240px;
  min-height: 50px;
  width: fit-content;
  max-width: 100%;
  align-self: flex-start;
  background: linear-gradient(135deg, #0f7899, #073f62);
}

.hero-write-mode-bar button.primary-action {
  justify-self: start;
  width: fit-content;
  min-width: min(240px, 100%);
}

.secondary-action {
  background: #ffffff;
  color: var(--accent-dark);
  border: 1px solid rgba(15, 36, 53, 0.18);
  box-shadow: none;
}

.secondary-action:hover {
  box-shadow: 0 10px 18px rgba(15, 36, 53, 0.12);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(15, 95, 143, 0.08);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 800;
  border: 1px solid rgba(15, 95, 143, 0.1);
  white-space: nowrap;
}

.user-chip,
.count-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(15, 93, 168, 0.08);
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

.topbar-actions button.ghost {
  min-height: 38px;
  padding: 7px 14px;
  font-size: 0.88rem;
}

.hero-bridge {
  position: relative;
  overflow: hidden;
}

.hero-bridge::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(31, 120, 200, 0.12) 0%, rgba(31, 120, 200, 0.03) 42%, rgba(111, 214, 255, 0.16) 50%, rgba(20, 20, 20, 0.08) 58%, rgba(20, 20, 20, 0.16) 100%);
  pointer-events: none;
}

.hero-bridge-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 18px;
  align-items: center;
}

.hero-side {
  display: grid;
  gap: 10px;
}

.hero-centerline {
  display: grid;
  justify-items: center;
}

.hero-centerline span {
  width: 10px;
  height: 140px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, var(--energy) 50%, rgba(255, 255, 255, 0.95) 100%);
  box-shadow: 0 0 24px rgba(111, 214, 255, 0.44);
}

.flash-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.flash {
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 600;
}

.flash.success {
  background: rgba(37, 111, 58, 0.12);
  color: var(--success);
}

.flash.error {
  background: rgba(146, 43, 33, 0.12);
  color: var(--error);
}

.flash.warning {
  background: rgba(138, 98, 0, 0.12);
  color: var(--warning);
}

.muted,
.meta {
  color: var(--muted);
}

.field-note {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.assignment-source-note {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
}

.assignment-warning {
  margin-top: 4px;
}

.warning-text {
  color: var(--warning);
}

.meta {
  font-size: 0.9rem;
  margin-top: 4px;
}

.muted-copy {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.plain-list {
  margin: 6px 0 0;
  padding-left: 18px;
}

.plain-list li {
  margin: 2px 0;
}

.empty-state {
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px dashed rgba(15, 93, 168, 0.22);
  color: var(--muted);
  font-weight: 700;
}

.form-subsection {
  padding-top: 8px;
  border-top: 1px solid rgba(15, 93, 168, 0.12);
}

.checkbox-row {
  grid-template-columns: auto 1fr;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(15, 93, 168, 0.12);
}

.checkbox-row input {
  width: 20px;
  min-height: 20px;
}

.inline-editor {
  margin-top: 8px;
}

.inline-editor summary {
  cursor: pointer;
  color: var(--accent-dark);
  font-weight: 800;
}

.danger-action {
  width: fit-content;
}

.danger-action summary {
  cursor: pointer;
  color: var(--error);
  font-weight: 800;
}

.danger-action.compact {
  width: min(360px, 100%);
}

.danger-confirm-form {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(146, 43, 33, 0.18);
  border-radius: 16px;
  background: rgba(255, 245, 242, 0.84);
}

.danger-confirm-form button {
  width: fit-content;
}

.mini-form {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  min-width: min(360px, 100%);
}

.mini-form label {
  gap: 5px;
}

.mini-form textarea {
  min-height: 84px;
}

.mini-form button {
  width: fit-content;
}

.user-edit-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.edit-row td {
  padding-top: 0;
}

.type-chip {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.type-chip.incident {
  background: rgba(138, 98, 0, 0.12);
  color: var(--warning);
}

.type-chip.reorder {
  background: rgba(15, 93, 168, 0.12);
  color: var(--accent-dark);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
}

.tech-list,
.event-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.tech-row,
.event-row,
.assignment-box {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(15, 93, 168, 0.1);
}

.tech-row span,
.event-row span,
.event-row small,
.assignment-box span,
.assignment-box small {
  color: var(--muted);
  font-weight: 600;
}

.assignment-box {
  margin-top: 16px;
  background: rgba(15, 93, 168, 0.08);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.code-preview {
  overflow-x: auto;
  margin: 16px 0 0;
  padding: 16px;
  border-radius: 18px;
  background: rgba(14, 22, 32, 0.92);
  color: #f6fbff;
  font-size: 0.86rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.gti-page {
  gap: 26px;
}

.gti-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15, 111, 141, 0.08), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #f2f7f9 100%);
  border: 1px solid rgba(15, 36, 53, 0.12);
  box-shadow: 0 14px 40px rgba(4, 10, 18, 0.12);
}

.gti-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: linear-gradient(180deg, var(--gti-action), var(--energy));
}

.gti-hero h2 {
  max-width: 760px;
  color: #102331;
}

.gti-hero p {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.5;
}

.gti-hero-status {
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: 170px;
}

.gti-hero-status small {
  color: var(--muted);
  font-weight: 700;
}

.gti-form-card,
.gti-projects-card,
.gti-preview-card {
  border-color: var(--gti-border);
}

.gti-form-card {
  padding: clamp(22px, 3vw, 34px);
}

.gti-form-grid {
  gap: 20px;
  margin-top: 22px;
}

.gti-form-grid label,
.gti-inline-form label {
  align-content: start;
  gap: 9px;
}

.gti-form-grid label > span:first-child,
.gti-inline-form label > span:first-child {
  color: #203444;
  font-size: 0.88rem;
  font-weight: 850;
  letter-spacing: 0.01em;
}

.gti-form-grid input,
.gti-form-grid textarea,
.gti-inline-form input,
.gti-inline-form textarea {
  min-height: 50px;
  background: #ffffff;
  border-color: rgba(15, 36, 53, 0.16);
}

.gti-form-grid textarea,
.gti-inline-form textarea {
  min-height: 128px;
  line-height: 1.45;
}

.gti-form-grid input[type="file"],
.gti-inline-form input[type="file"] {
  padding: 10px;
  background: #f8fbfc;
}

.gti-context-box {
  margin-top: 0;
  min-height: 88px;
  padding: 16px;
  background: var(--gti-soft);
  border-color: rgba(15, 111, 141, 0.16);
}

.gti-context-box strong {
  color: #102331;
}

.gti-preview-card .preview-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.technical-preview {
  margin-top: 18px;
  border-top: 1px solid var(--gti-border);
  padding-top: 14px;
}

.technical-preview summary {
  width: fit-content;
  cursor: pointer;
  color: var(--accent-dark);
  font-weight: 850;
}

.create-confirm-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 248, 232, 0.72);
  border: 1px solid rgba(138, 98, 0, 0.18);
}

.create-confirm-form .checkbox-row {
  background: rgba(255, 255, 255, 0.78);
}

.create-confirm-form button {
  width: fit-content;
}

.gti-projects-card {
  padding: clamp(20px, 3vw, 32px);
}

.gti-table-wrap {
  margin-top: 20px;
}

.gti-project-table {
  min-width: 1180px;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.gti-project-table th {
  padding: 0 14px 8px;
  color: #445464;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 0;
}

.gti-project-table td {
  padding: 18px 14px;
  background: rgba(255, 255, 255, 0.78);
  border-top: 1px solid rgba(15, 36, 53, 0.08);
  border-bottom: 1px solid rgba(15, 36, 53, 0.08);
}

.gti-project-table td:first-child {
  border-left: 1px solid rgba(15, 36, 53, 0.08);
  border-radius: 18px 0 0 18px;
}

.gti-project-table td:last-child {
  border-right: 1px solid rgba(15, 36, 53, 0.08);
  border-radius: 0 18px 18px 0;
  min-width: 260px;
}

.gti-project-table .inline-editor {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8fbfc;
  border: 1px solid rgba(15, 36, 53, 0.1);
}

.gti-inline-form {
  min-width: 0;
  width: min(420px, 100%);
}

.reorder-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(15, 93, 168, 0.12);
}

.reorder-panel[hidden] {
  display: none;
}

.reorder-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px auto;
  gap: 12px;
  align-items: end;
}

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

.reorder-list li {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.56);
}

.search-suggestions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.search-option,
.search-empty {
  border-radius: 18px;
  padding: 12px 14px;
}

.search-option {
  display: grid;
  gap: 4px;
  align-items: start;
  text-align: left;
  background: linear-gradient(180deg, rgba(16, 92, 164, 0.08), rgba(8, 12, 18, 0.04));
  color: var(--text);
  border: 1px solid rgba(15, 93, 168, 0.12);
  box-shadow: none;
}

.search-option strong {
  color: var(--accent-dark);
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.search-option span {
  color: var(--text);
  font-weight: 600;
}

.search-option small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.search-empty {
  background: rgba(255, 255, 255, 0.42);
  color: var(--muted);
  border: 1px dashed rgba(15, 93, 168, 0.18);
}

.position-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(15, 93, 168, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.46);
}

.position-panel[hidden] {
  display: none;
}

.position-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.position-panel-head span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.position-panel ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.position-panel li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: start;
  padding-top: 8px;
  border-top: 1px solid rgba(15, 93, 168, 0.08);
}

.position-panel li:first-child {
  padding-top: 0;
  border-top: 0;
}

.position-panel li strong {
  color: var(--accent-dark);
}

.position-panel li span {
  color: var(--text);
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  margin-top: 16px;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 14px 10px;
  border-bottom: 1px solid rgba(15, 93, 168, 0.08);
  vertical-align: top;
  text-align: left;
}

.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status.open,
.status.not_linked,
.status.pending_hero,
.status.preview_blocked {
  background: rgba(138, 98, 0, 0.12);
  color: var(--warning);
}

.status.done {
  background: rgba(37, 111, 58, 0.12);
  color: var(--success);
}

.status.missing,
.status.archived {
  background: rgba(146, 43, 33, 0.12);
  color: var(--error);
}

.status.new,
.status.neu,
.status.review {
  background: rgba(138, 98, 0, 0.12);
  color: var(--warning);
}

.status.approved,
.status.aen {
  background: rgba(15, 93, 168, 0.12);
  color: var(--accent-dark);
}

.status.imported,
.status.ok,
.status.matched,
.status.learned {
  background: rgba(37, 111, 58, 0.12);
  color: var(--success);
}

.status.stor,
.status.unmatched,
.status.error {
  background: rgba(146, 43, 33, 0.12);
  color: var(--error);
}

.status.missing_in_excel,
.status.missing_in_osc,
.status.qty_diff,
.status.price_diff,
.status.qty_price_diff,
.status.special {
  background: rgba(138, 98, 0, 0.12);
  color: var(--warning);
}

.status.ready,
.status.success {
  background: rgba(37, 111, 58, 0.12);
  color: var(--success);
}

.status.blocked {
  background: rgba(146, 43, 33, 0.12);
  color: var(--error);
}

.osc-page {
  gap: 20px;
}

.osc-hero-card {
  display: grid;
  gap: 18px;
}

.osc-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.osc-stat {
  display: grid;
  gap: 6px;
  min-height: 96px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(15, 93, 168, 0.12);
}

.osc-stat span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.osc-stat strong {
  color: var(--accent-dark);
  font-size: 2rem;
  line-height: 1;
}

.osc-stat.compact {
  min-height: 74px;
  padding: 12px;
}

.osc-stat.compact strong {
  font-size: 1.45rem;
}

.osc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
}

.osc-actions form {
  margin: 0;
}

.osc-config-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 93, 168, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  font-weight: 700;
}

.osc-upload-form {
  display: grid;
  grid-template-columns: minmax(260px, 420px) auto;
  gap: 12px;
  align-items: end;
}

.osc-top-export-form {
  display: grid;
  grid-template-columns: minmax(220px, 300px) auto;
  gap: 12px;
  align-items: end;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(37, 111, 58, 0.18);
  background: rgba(37, 111, 58, 0.08);
}

.osc-excel-upload-form {
  grid-template-columns: minmax(120px, 150px) minmax(260px, 420px) auto;
}

.osc-comparison-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.osc-transfer-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.osc-transfer-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-weight: 700;
}

.osc-hero-export-form {
  display: grid;
  grid-template-columns: minmax(220px, 320px) auto;
  align-items: end;
  gap: 12px;
  margin-top: 16px;
}

.osc-stand-list {
  display: grid;
  gap: 10px;
  max-height: 720px;
  overflow: auto;
  margin-top: 16px;
  padding-right: 4px;
}

.osc-stand-preview {
  border: 1px solid rgba(15, 93, 168, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
}

.osc-stand-preview summary {
  display: grid;
  grid-template-columns: auto minmax(120px, 0.6fr) minmax(180px, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
}

.osc-stand-preview summary strong,
.osc-stand-preview summary span,
.osc-stand-preview summary small {
  min-width: 0;
}

.osc-stand-preview summary small {
  color: var(--muted);
  font-weight: 800;
}

.osc-table {
  font-size: 0.9rem;
}

.osc-table tr.is-selected td {
  background: rgba(33, 183, 216, 0.08);
}

.osc-table form {
  margin: 0;
}

.osc-table button {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 0.86rem;
}

.osc-inline-match-form {
  display: grid;
  grid-template-columns: minmax(88px, 1fr) auto;
  gap: 6px;
  margin-top: 8px;
}

.osc-inline-match-form input {
  min-height: 36px;
  padding: 8px 9px;
  border-radius: 10px;
  font-size: 0.86rem;
}

.osc-order-wrap {
  max-height: 620px;
  overflow: auto;
}

.osc-order-table {
  min-width: 1320px;
}

.osc-comparison-table {
  min-width: 1120px;
}

.osc-transfer-table {
  min-width: 980px;
}

.catalog-editor {
  gap: 18px;
}

.catalog-actions,
.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin-top: 18px;
}

.catalog-actions form {
  margin: 0;
}

.catalog-filters label {
  min-width: 220px;
  flex: 1 1 260px;
}

.catalog-filters .checkbox-row {
  flex: 0 0 auto;
  min-width: 190px;
  align-self: center;
}

.catalog-table-card {
  padding: 18px;
}

.catalog-table-wrap {
  max-height: calc(100vh - 330px);
  min-height: 420px;
  overflow: auto;
}

.catalog-table {
  min-width: 1880px;
  font-size: 0.88rem;
}

.catalog-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #eaf3f8;
  color: var(--accent-dark);
  white-space: nowrap;
}

.catalog-table th,
.catalog-table td {
  padding: 8px;
  vertical-align: middle;
}

.catalog-table input,
.catalog-table textarea {
  min-height: 36px;
  padding: 8px 9px;
  border-radius: 8px;
  font-size: 0.88rem;
  background: #fff;
}

.catalog-table textarea {
  min-height: 40px;
  max-height: 92px;
  resize: vertical;
}

.catalog-table tr.is-changed td {
  background: rgba(33, 183, 216, 0.08);
}

.catalog-table .status-cell {
  width: 90px;
  color: var(--accent-dark);
  font-weight: 800;
}

.catalog-table .short-cell {
  width: 110px;
}

.catalog-table .medium-cell {
  width: 170px;
}

.catalog-table .name-cell {
  width: 280px;
}

.catalog-table .description-cell {
  width: 340px;
}

.catalog-table .price-cell {
  width: 105px;
}

.catalog-table .id-cell {
  width: 140px;
  color: var(--muted);
  font-family: "SFMono-Regular", Menlo, monospace;
  font-size: 0.78rem;
}

@media (min-width: 1180px) {
  .report-form {
    padding: 30px;
  }

  .search-suggestions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "copy"
      "actions";
  }

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

  .auth-stage {
    grid-template-columns: 1fr;
  }

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

  .auth-brand-panel {
    min-height: 420px;
  }
}

@media (max-width: 820px) {
  .shell {
    padding: 14px;
  }

  .page-backdrop {
    background: linear-gradient(180deg, var(--messe) 0%, var(--messe-deep) 32%, #101010 68%, var(--ludwig-deep) 100%);
  }

  .brand-half,
  .brand-seam {
    display: none;
  }

  .topbar,
  .section-head,
  .topbar-actions,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .topbar-copy h1 {
    font-size: clamp(1.45rem, 7vw, 2.05rem);
    max-width: none;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .topbar-actions .user-chip,
  .topbar-actions form {
    grid-column: 1 / -1;
  }

  .topbar-actions button,
  .topbar-actions .nav-link,
  .form-actions button {
    width: 100%;
    justify-content: center;
  }

  .topbar-actions form {
    justify-self: start;
  }

  .topbar-actions form button,
  .form-actions button,
  button.primary-action {
    width: auto;
    max-width: 100%;
  }

  button.primary-action {
    align-self: flex-start;
  }

  .form-actions button.primary-action,
  .hero-write-mode-bar button.primary-action {
    width: fit-content;
    min-width: min(240px, 100%);
    justify-self: start;
  }

  .form-actions {
    align-items: flex-start;
  }

  .auth-stage,
  .brand-columns,
  .hero-bridge-grid,
  .gti-hero,
  .form-grid,
  .osc-stat-grid,
  .osc-comparison-grid,
  .osc-transfer-grid,
  .osc-upload-form,
  .osc-top-export-form,
  .osc-hero-export-form,
  .admin-grid,
  .reorder-row,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .osc-stand-preview summary {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .auth-brand-panel {
    min-height: auto;
  }

  .brand-ribbon {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 22px;
  }

  .brand-side {
    min-height: 76px;
    padding: 16px;
  }

  .brand-side-right {
    grid-template-columns: auto 1fr;
  }

  .brand-logo-card-compact {
    width: 96px;
    height: 56px;
  }

  .brand-logo-card-large {
    width: 100%;
    height: 132px;
  }

  .card {
    border-radius: 22px;
    padding: 18px;
  }

  .brand-column {
    min-height: 280px;
    padding: 24px 20px;
  }

  .mode-switch,
  .mode-switch.assignment-mode {
    width: 100%;
    max-width: none;
    grid-template-columns: 1fr;
  }

  .mode-switch.assignment-mode {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .search-suggestions {
    grid-template-columns: 1fr;
  }

  .search-option {
    min-height: 72px;
  }

  .position-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .reorder-list li {
    grid-template-columns: 48px 1fr;
  }

  .reorder-list li button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .hero-centerline {
    display: none;
  }

  .gti-hero-status {
    justify-items: start;
    min-width: 0;
  }

  .gti-preview-card .preview-grid {
    grid-template-columns: 1fr;
  }

  .table-wrap {
    overflow: visible;
  }

  .catalog-table-wrap,
  .gti-table-wrap,
  .osc-order-wrap {
    overflow: auto;
    max-width: 100%;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  table {
    min-width: 0;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  tbody {
    display: grid;
    gap: 12px;
  }

  tr {
    border: 1px solid rgba(15, 93, 168, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.48);
    padding: 12px;
  }

  td {
    display: grid;
    grid-template-columns: minmax(92px, 34%) 1fr;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(15, 93, 168, 0.08);
  }

  td:last-child {
    border-bottom: 0;
  }

  td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .gti-project-table {
    min-width: 0;
    border-spacing: 0;
  }

  .gti-project-table tr {
    display: grid;
    gap: 0;
    padding: 14px;
    background: rgba(255, 255, 255, 0.78);
  }

  .gti-project-table td {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(15, 36, 53, 0.08);
  }

  .gti-project-table td:first-child,
  .gti-project-table td:last-child {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    min-width: 0;
  }

  .gti-project-table td:last-child {
    border-bottom: 0;
  }

  .gti-project-table .inline-editor {
    margin-top: 4px;
  }

  .gti-inline-form,
  .mini-form,
  .user-edit-form {
    width: 100%;
    min-width: 0;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .shell {
    padding: 10px;
  }

  .card {
    padding: 15px;
    border-radius: 20px;
  }

  .topbar-actions {
    grid-template-columns: 1fr;
  }

  .topbar-actions form,
  .form-actions {
    justify-self: stretch;
    align-items: stretch;
  }

  .topbar-actions form button,
  .form-actions button,
  button.primary-action {
    width: 100%;
  }

  button.primary-action {
    align-self: stretch;
  }

  .form-actions button.primary-action,
  .hero-write-mode-bar button.primary-action {
    width: 100%;
    min-width: 0;
    justify-self: stretch;
  }

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

  .mode-switch.assignment-mode {
    grid-template-columns: 1fr;
  }

  .brand-side-right {
    grid-template-columns: 1fr;
  }

  .brand-logo-card-compact {
    width: 126px;
    height: 58px;
  }

  td {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  input,
  select,
  textarea,
  button {
    font-size: 16px;
  }
}

.hall-calendar-intro {
  margin-bottom: 18px;
}

.hall-calendar-card {
  padding: 0;
  overflow: hidden;
  min-height: 72vh;
}

.hall-calendar-frame {
  display: block;
  width: 100%;
  min-height: 78vh;
  border: 0;
  background: #f9f9f7;
}

@media (max-width: 700px) {
  .hall-calendar-card,
  .hall-calendar-frame {
    min-height: 82vh;
  }
}
/* Scoped controls for the OSC Excel sheet review and its explicit confirmations. */
.osc-page input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  min-height: 1.1rem;
  flex: 0 0 1.1rem;
}

.osc-page summary label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0.5rem 0 0;
}
