@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

:root {
  /* Siemens Energy–inspired palette (Siemens Element brand references) */
  --se-deep: #000028;
  --se-petrol: #009999;
  --se-light-petrol: #00c1b6;
  --se-coral: #00cccc;
  --se-teal: #005159;
  --se-purple: #641e8c;
  --se-focus: #199fff;
  --se-sand-200: #f5f5f5;
  --se-deep-50: #ebebee;
  --se-deep-600: #66667e;
  --se-orange: #e37200;
  --se-red: #d72339;

  --tt-bg: var(--se-sand-200);
  --tt-surface: #ffffff;
  --tt-surface-elevated: #ffffff;
  --tt-border: #e0e0de;
  --tt-border-strong: #ccccd4;
  --tt-text: var(--se-deep);
  --tt-text-muted: var(--se-deep-600);
  --tt-header-bg: var(--se-deep);
  --tt-header-text: #ffffff;
  --tt-accent: var(--se-petrol);
  --tt-accent-hover: var(--se-teal);
  --tt-accent-soft: #e0f7f6;
  --tt-accent-secondary: var(--se-coral);
  --tt-brand-purple: var(--se-purple);
  --tt-radius: 10px;
  --tt-radius-lg: 14px;
  --tt-shadow-sm: 0 1px 2px rgba(0, 0, 40, 0.08);
  --tt-shadow: 0 4px 20px rgba(0, 0, 40, 0.1);
  --tt-header-h: 56px;
  --tt-font: 'DM Sans', system-ui, -apple-system, sans-serif;

  /* Bootstrap 5 — map to Siemens Energy palette */
  --bs-primary: var(--se-petrol);
  --bs-primary-rgb: 0, 153, 153;
  --bs-secondary: var(--se-deep-600);
  --bs-secondary-rgb: 102, 102, 126;
  --bs-success: var(--se-light-petrol);
  --bs-success-rgb: 0, 193, 182;
  --bs-info: var(--se-focus);
  --bs-info-rgb: 25, 159, 255;
  --bs-warning: var(--se-orange);
  --bs-warning-rgb: 227, 114, 0;
  --bs-danger: var(--se-red);
  --bs-danger-rgb: 215, 35, 57;
  --bs-body-color: var(--se-deep);
  --bs-body-bg: var(--se-sand-200);
  --bs-link-color: var(--se-petrol);
  --bs-link-hover-color: var(--se-teal);
  --bs-border-color: var(--tt-border);
  --bs-focus-ring-color: rgba(0, 153, 153, 0.35);
}

html, body {
  font-family: var(--tt-font);
  background: var(--tt-bg);
  color: var(--tt-text);
  min-height: 100vh;
}

h1:focus {
  outline: none;
}

a, .btn-link {
  color: var(--tt-accent);
}

.btn-primary {
  background: var(--tt-accent);
  border-color: var(--tt-accent);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--tt-accent-hover);
  border-color: var(--tt-accent-hover);
}

.btn-outline-primary {
  color: var(--se-petrol);
  border-color: var(--se-petrol);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  color: #fff;
  background: var(--se-petrol);
  border-color: var(--se-petrol);
}

.btn-secondary {
  background: var(--se-deep-600);
  border-color: var(--se-deep-600);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: #4c4c68;
  border-color: #4c4c68;
}

.btn-outline-secondary {
  color: var(--se-deep-600);
  border-color: var(--tt-border-strong);
}

.btn-outline-secondary:hover {
  color: var(--se-deep);
  background: var(--se-deep-50);
  border-color: var(--se-deep-600);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus,
.form-select:focus {
  border-color: var(--se-petrol);
  box-shadow: 0 0 0 0.15rem var(--tt-accent-soft), 0 0 0 0.25rem rgba(0, 153, 153, 0.35);
}

/* —— App shell —— */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--tt-header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1.25rem;
  background: linear-gradient(90deg, var(--se-deep) 0%, #12122e 55%, var(--se-deep) 100%);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--se-purple), var(--se-petrol), var(--se-coral)) 1;
  box-shadow: var(--tt-shadow-sm);
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--tt-header-text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.app-brand:hover {
  color: #fff;
}

.app-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 153, 153, 0.35);
  flex-shrink: 0;
  display: block;
  object-fit: cover;
}

.app-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.app-nav-link {
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(248, 250, 252, 0.75);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.app-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.app-nav-link.active {
  color: #fff;
  background: rgba(0, 153, 153, 0.35);
  box-shadow: inset 0 0 0 1px rgba(0, 204, 204, 0.25);
}

.app-nav-link-muted {
  opacity: 0.85;
}

.app-header-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.app-user-chip {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-signout-btn {
  white-space: nowrap;
}

.auth-denied-panel {
  max-width: 36rem;
  margin: 3rem auto;
  padding: 2rem;
  background: var(--tt-surface);
  border: 1px solid var(--tt-border);
  border-radius: var(--tt-radius-lg);
  box-shadow: var(--tt-shadow);
}

.auth-denied-panel h1 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.culture-select {
  width: auto;
  min-width: 7rem;
}

.culture-select-header {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--tt-header-text);
  font-size: 0.8rem;
}

.culture-select-header:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(0, 193, 182, 0.7);
  color: var(--tt-header-text);
  box-shadow: 0 0 0 0.2rem rgba(0, 153, 153, 0.3);
}

.culture-select-header option {
  color: var(--tt-text);
  background: #fff;
}

.app-main {
  flex: 1;
  padding: 1.25rem 1.5rem 2rem;
  max-width: 100%;
}

@media (max-width: 900px) {
  /* iPad / tablet: keep the header on one row but let the nav scroll
     horizontally so the 5 links never wrap or push the header-end off screen. */
  .app-header {
    gap: 0.75rem;
  }

  .app-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }

  .app-nav::-webkit-scrollbar {
    display: none;
  }

  .app-nav-link {
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .app-header {
    flex-wrap: wrap;
    height: auto;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }

  .app-nav {
    order: 3;
    width: 100%;
  }

  .app-nav-link {
    padding: 0.5rem 0.85rem;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  .app-header-end {
    gap: 0.5rem;
  }

  .app-main {
    padding: 1rem;
  }
}

.app-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1rem;
  padding: 0.65rem 1.25rem calc(0.65rem + env(safe-area-inset-bottom));
  font-size: 0.8rem;
  color: var(--bs-secondary-color, #6c757d);
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
}

.app-footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.app-footer-heart-icon {
  color: #e85d6a;
  flex-shrink: 0;
  vertical-align: -0.1em;
}

.app-footer-brand {
  margin-left: 0.15rem;
  white-space: nowrap;
}

.app-footer-version {
  opacity: 0.85;
}

.app-footer-version::before {
  content: "·";
  margin-right: 0.5rem;
  opacity: 0.5;
}

@media (max-width: 480px) {
  .app-footer {
    flex-direction: column;
    gap: 0.2rem;
  }

  .app-footer-version::before {
    display: none;
  }
}

/* —— Takt builder —— */
.plan-workspace {
  max-width: 100%;
}

.plan-workspace-control {
  --plan-toolbar-sticky-h: 4.5rem;
  --gantt-chrome-sticky-h: 5rem;
  --gantt-chrome-stick-top: calc(var(--tt-header-h, 56px) + var(--plan-toolbar-sticky-h));
  --gantt-sticky-stack-top: calc(var(--gantt-chrome-stick-top) + var(--gantt-chrome-sticky-h) + 0.35rem);
  --gantt-sticky-palette-top: var(--gantt-sticky-stack-top);
}

.plan-workspace-control .plan-canvas {
  overflow: visible;
}

.plan-workspace-control .plan-toolbar {
  position: sticky;
  top: var(--tt-header-h, 56px);
  z-index: 90;
}

.plan-workspace-control .gantt-edit-chrome {
  position: sticky;
  top: var(--gantt-chrome-stick-top);
  z-index: 88;
  margin-bottom: 0.75rem;
}

.plan-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  background: var(--tt-surface);
  border: 1px solid var(--tt-border);
  border-radius: var(--tt-radius-lg);
  box-shadow: var(--tt-shadow-sm);
}

.plan-toolbar-start {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 200px;
}

.plan-toolbar-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.plan-toolbar-data {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.35rem 0.2rem 0.45rem;
  border: 1px solid var(--tt-border);
  border-radius: var(--tt-radius);
  background: var(--tt-surface-muted, rgba(0, 0, 0, 0.02));
}

.plan-toolbar-data .plan-select {
  min-width: 10rem;
  max-width: 16rem;
}

.plan-data-actions {
  flex-shrink: 0;
}

.plan-data-action-btn,
.plan-data-delete-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.plan-data-action-icon {
  flex-shrink: 0;
  display: block;
}

.plan-data-delete-btn {
  margin-left: 0.1rem;
  border-color: color-mix(in srgb, var(--bs-danger) 35%, var(--tt-border));
}

.plan-data-delete-btn:not(:disabled):hover {
  background: color-mix(in srgb, var(--bs-danger) 8%, #fff);
  border-color: var(--bs-danger);
  color: var(--bs-danger);
}

@media (max-width: 1100px) {
  .plan-data-action-label,
  .plan-data-delete-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .plan-data-action-btn,
  .plan-data-delete-btn {
    padding-left: 0.45rem;
    padding-right: 0.45rem;
  }
}

@media (max-width: 900px) {
  .plan-workspace-control {
    --plan-toolbar-sticky-h: 6.75rem;
  }

  .plan-toolbar {
    padding: 0.85rem 1rem;
  }

  .plan-toolbar-end {
    width: 100%;
    justify-content: flex-start;
  }

  .plan-select {
    flex: 1;
    min-width: 0;
    max-width: none;
  }
}

.plan-name-input {
  flex: 1;
  min-width: 180px;
  max-width: 420px;
  border: none;
  background: transparent;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--tt-text);
  padding: 0.15rem 0;
}

.plan-name-input:focus {
  outline: none;
  box-shadow: 0 2px 0 var(--tt-accent);
}

.plan-name-input::placeholder {
  color: var(--tt-text-muted);
  font-weight: 500;
}

.plan-version-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: var(--tt-accent-soft);
  color: var(--tt-accent-hover);
}

.plan-toolbar-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.plan-select {
  min-width: 200px;
  max-width: 280px;
}

.plan-save-btn {
  font-weight: 600;
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}

.plan-autosave-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}

.plan-autosave-btn.plan-autosave-on {
  border-color: rgba(0, 193, 182, 0.45);
  background: #e1f5f3;
  color: #00706a;
}

.plan-autosave-icon {
  display: block;
  flex-shrink: 0;
}

.plan-autosave-btn.plan-autosave-pending .plan-autosave-icon {
  animation: plan-autosave-pulse 1s ease-in-out infinite;
}

.plan-autosave-btn.plan-autosave-done {
  color: #00706a;
}

@keyframes plan-autosave-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.plan-toolbar-print {
  flex-shrink: 0;
  border: 1px solid var(--se-petrol, #009999);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--tt-shadow-sm, 0 1px 2px rgba(0, 0, 40, 0.08));
}

.plan-toolbar-print .plan-print-btn {
  font-weight: 600;
  white-space: nowrap;
  border: none;
  color: var(--se-teal, #005159);
  background: var(--tt-surface, #fff);
}

.plan-toolbar-print .plan-print-btn:hover {
  background: var(--tt-accent-soft, #e0f7f6);
  color: var(--se-petrol, #009999);
}

.plan-print-icon {
  margin-right: 0.2rem;
}

.plan-toast {
  margin: -0.5rem 0 1rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--se-teal);
  background: #d1fff2;
  border: 1px solid rgba(0, 193, 182, 0.45);
  border-radius: var(--tt-radius);
}

.plan-canvas {
  background: var(--tt-surface);
  border: 1px solid var(--tt-border);
  border-radius: var(--tt-radius-lg);
  padding: 1.25rem;
  box-shadow: var(--tt-shadow);
  border-top: 3px solid var(--se-petrol);
}

.plan-canvas:has(.gantt-layout-blocks) {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--tt-header-h) - 10rem);
}

.plan-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--tt-surface);
  border: 1px dashed var(--tt-border-strong);
  border-radius: var(--tt-radius-lg);
  color: var(--tt-text-muted);
}

.plan-empty p {
  margin-bottom: 1.25rem;
}

/* —— Change log —— */
.changelog-wrap {
  position: relative;
}

.changelog-wrap-inline {
  margin-bottom: 1rem;
}

.plan-changelog-section {
  margin-bottom: 1rem;
  background: var(--tt-surface);
  border: 1px solid var(--tt-border);
  border-radius: var(--tt-radius-lg);
  box-shadow: var(--tt-shadow-sm);
  overflow: hidden;
  border-top: 3px solid var(--se-petrol, #009999);
}

/* —— Change log drawer (right slide-in) —— */
.changelog-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 240;
  background: rgba(0, 0, 40, 0.28);
  animation: changelog-backdrop-in 0.2s ease;
}

.changelog-drawer {
  position: fixed;
  top: var(--tt-header-h, 56px);
  right: 0;
  bottom: 0;
  z-index: 250;
  width: min(24rem, 92vw);
  display: flex;
  flex-direction: column;
  background: var(--tt-surface);
  border-left: 1px solid var(--tt-border);
  box-shadow: -8px 0 32px rgba(0, 0, 40, 0.14);
  transform: translateX(100%);
  animation: changelog-drawer-in 0.28s ease forwards;
}

.changelog-drawer.is-open {
  transform: translateX(0);
}

.changelog-drawer-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--tt-border);
  background: linear-gradient(180deg, var(--tt-accent-soft, #e0f7f6) 0%, var(--tt-surface) 100%);
}

.changelog-drawer-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.changelog-drawer-title-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.changelog-drawer-title-text strong {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.changelog-drawer-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--tt-surface);
  color: var(--se-petrol, #009999);
  border: 1px solid rgba(0, 153, 153, 0.2);
  box-shadow: var(--tt-shadow-sm);
}

.changelog-drawer-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0.75rem 1rem 1rem;
}

.changelog-drawer-body .changelog-list {
  padding: 0;
}

@keyframes changelog-drawer-in {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes changelog-backdrop-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.plan-changelog-section .changelog-panel-body {
  max-height: min(420px, 50vh);
  overflow-y: auto;
}

.plan-changelog-section .changelog-list {
  max-height: none;
  padding: 0.75rem 1rem 1rem;
}

.changelog-panel-inline {
  position: static;
  width: 100%;
  max-height: 280px;
  margin-top: 0;
  box-shadow: var(--tt-shadow-sm);
}

.changelog-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.changelog-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
  gap: 0;
}

.changelog-trigger-icon {
  display: block;
  flex-shrink: 0;
}

.changelog-trigger .changelog-count {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  min-width: 1rem;
  padding: 0.05rem 0.3rem;
  font-size: 0.6rem;
  line-height: 1.2;
}

.changelog-count {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--se-purple), var(--se-petrol));
  color: #fff;
  border: none;
}

.changelog-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  width: min(420px, 92vw);
  max-height: 420px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--tt-surface);
  border: 1px solid var(--tt-border);
  border-radius: var(--tt-radius-lg);
  box-shadow: var(--tt-shadow);
  z-index: 50;
}

.changelog-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--tt-border);
  background: linear-gradient(180deg, var(--tt-accent-soft, #e0f7f6) 0%, var(--tt-surface) 100%);
  font-size: 0.875rem;
  position: sticky;
  top: 0;
  z-index: 1;
}

.changelog-panel-title {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.changelog-panel-title strong {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.changelog-header-count {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--tt-text-muted);
}

.changelog-panel-body {
  background: var(--tt-surface);
}

.changelog-empty {
  padding: 1.25rem 1rem;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--tt-text-muted);
  text-align: center;
}

.changelog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.changelog-entry {
  margin: 0;
  padding: 0 0 0 0.85rem;
  border-left: 2px solid var(--tt-border);
}

.changelog-entry-latest {
  border-left-color: var(--se-petrol, #009999);
}

.changelog-entry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
}

.changelog-version-badge,
.changelog-entry-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--se-petrol, #009999);
  background: var(--tt-accent-soft, #e0f7f6);
  border: 1px solid rgba(0, 153, 153, 0.25);
  border-radius: 999px;
}

.changelog-entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
  font-size: 0.75rem;
  color: var(--tt-text-muted);
}

.changelog-meta-sep {
  opacity: 0.55;
}

.changelog-time {
  font-variant-numeric: tabular-nums;
}

.changelog-author {
  font-weight: 500;
}

.changelog-no-diff {
  margin: 0;
  padding: 0.45rem 0.55rem;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--tt-text-muted);
  background: var(--tt-bg);
  border-radius: 6px;
  border: 1px dashed var(--tt-border);
}

.changelog-changes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.changelog-change-row {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  gap: 0.5rem 0.65rem;
  align-items: start;
  padding: 0.45rem 0.55rem;
  background: var(--tt-bg);
  border: 1px solid var(--tt-border);
  border-radius: 8px;
}

.changelog-change-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.35rem;
  padding: 0.1rem 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 4px;
  line-height: 1.2;
}

.changelog-change-row--plan .changelog-change-tag {
  color: #5b21b6;
  background: #ede9fe;
}

.changelog-change-row--line .changelog-change-tag {
  color: #0f766e;
  background: #ccfbf1;
}

.changelog-change-row--box .changelog-change-tag {
  color: #c2410c;
  background: #ffedd5;
}

.changelog-change-row--other .changelog-change-tag {
  color: var(--tt-text-muted);
  background: var(--tt-surface);
}

.changelog-change-body {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--tt-text);
  min-width: 0;
}

.changelog-change-text {
  font-weight: 500;
  word-break: break-word;
}

.changelog-arrow {
  color: var(--tt-text-muted);
  font-weight: 600;
  padding: 0 0.1rem;
}

.changelog-change-lead {
  font-weight: 500;
}

.changelog-change-color {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.changelog-color-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.1rem 0.35rem 0.1rem 0.2rem;
  background: var(--tt-bg, #f8fafc);
  border: 1px solid var(--tt-border, #e2e8f0);
  border-radius: 6px;
}

.changelog-color-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.changelog-color-name {
  font-weight: 600;
  font-size: 0.78rem;
}

.changelog-color-arrow {
  color: var(--tt-text-muted, #64748b);
  font-weight: 600;
}

@media (max-width: 520px) {
  .changelog-change-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .changelog-change-tag {
    justify-content: flex-start;
    width: fit-content;
  }
}

/* —— Keyboard shortcuts panel —— */
.shortcuts-panel {
  margin: 0 0 1rem;
  background: var(--tt-surface);
  border: 1px solid var(--tt-border);
  border-radius: var(--tt-radius-lg);
  box-shadow: var(--tt-shadow-sm);
  overflow: hidden;
  border-top: 3px solid var(--se-petrol);
}

.shortcuts-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--tt-border);
  background: linear-gradient(180deg, var(--tt-accent-soft) 0%, var(--tt-surface) 100%);
}

.shortcuts-panel-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--tt-text);
}

.shortcuts-panel-title strong {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.shortcuts-panel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--tt-surface);
  color: var(--tt-accent);
  box-shadow: var(--tt-shadow-sm);
  border: 1px solid rgba(0, 153, 153, 0.2);
}

.shortcuts-panel-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.shortcuts-body {
  padding: 0.35rem 0;
}

.shortcuts-row {
  display: grid;
  grid-template-columns: minmax(11rem, auto) 1fr;
  gap: 0.75rem 1.25rem;
  align-items: center;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--tt-border);
  transition: background 0.15s ease;
}

.shortcuts-row:last-child {
  border-bottom: none;
}

.shortcuts-row:hover {
  background: rgba(0, 153, 153, 0.04);
}

.shortcuts-keys-col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.shortcuts-keys-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
}

.shortcuts-keys-line-mac {
  opacity: 0.92;
}

.shortcuts-platform-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-right: 0.2rem;
  color: var(--tt-text-muted);
}

.shortcuts-platform-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.shortcuts-platform-icon--windows {
  width: 1.2rem;
  height: 1.2rem;
  padding: 0.12rem;
  border-radius: 4px;
  background: rgba(0, 120, 212, 0.1);
  border: 1px solid rgba(0, 120, 212, 0.22);
  box-sizing: border-box;
}

.shortcuts-platform-icon--windows svg {
  width: 0.95rem;
  height: 0.95rem;
}

.shortcuts-platform-icon--mac {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--tt-text);
}

.shortcuts-keys-line kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  min-height: 1.5rem;
  padding: 0.15rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--tt-font);
  color: var(--tt-text);
  background: linear-gradient(180deg, #ffffff 0%, #f0f2f5 100%);
  border: 1px solid var(--tt-border-strong);
  border-radius: 6px;
  box-shadow:
    0 1px 0 rgba(0, 0, 40, 0.12),
    inset 0 -1px 0 rgba(0, 0, 40, 0.06);
}

.shortcuts-plus,
.shortcuts-sep {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--tt-text-muted);
  padding: 0 0.1rem;
  user-select: none;
}

.shortcuts-desc {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--tt-text);
}

.shortcuts-footer {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: var(--tt-bg);
  border-top: 1px solid var(--tt-border);
}

.shortcuts-footer-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  font-style: italic;
  font-family: Georgia, serif;
  color: var(--tt-accent);
  background: var(--tt-accent-soft);
  border: 1px solid rgba(0, 153, 153, 0.25);
}

.shortcuts-footer p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--tt-text-muted);
}

@media (max-width: 560px) {
  .shortcuts-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}

.shortcuts-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}

.shortcuts-trigger-icon {
  font-size: 1rem;
  line-height: 1;
}

.valid.modified:not([type=checkbox]) {
  outline: 1px solid #26b050;
}

.invalid {
  outline: 1px solid red;
}

.validation-message {
  color: red;
}

#blazor-error-ui {
  background: lightyellow;
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}

.blazor-error-boundary {
  background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
  padding: 1rem 1rem 1rem 3.7rem;
  color: white;
}

.blazor-error-boundary::after {
  content: "An error has occurred.";
}

/* Live collaboration presence */
.collab-presence {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 28px;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 153, 153, 0.1);
  border: 1px solid rgba(0, 153, 153, 0.25);
  color: var(--tt-text);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}

.collab-presence-solo {
  color: var(--tt-text-muted);
  font-weight: 500;
}

.collab-presence-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--se-light-petrol);
  box-shadow: 0 0 0 3px rgba(0, 193, 182, 0.25);
  flex-shrink: 0;
}

.collab-presence-avatars {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.collab-presence-avatar {
  width: 22px;
  height: 22px;
  margin-left: -6px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: hsl(var(--collab-hue, 180) 55% 38%);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
}

.collab-presence-avatars .collab-presence-avatar:first-child {
  margin-left: 0;
}

.collab-presence-names {
  color: var(--tt-text);
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.collab-conflict {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.75rem 1rem 0;
  padding: 0.75rem 1rem;
  border-radius: var(--tt-radius);
  background: #fff8e8;
  border: 1px solid #e8c56b;
  color: var(--se-deep);
}

.collab-conflict-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 12rem;
}

.collab-conflict-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Admin panel */
.admin-page {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.35rem 1.5rem 3rem;
}

.admin-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.admin-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--se-petrol, #009999);
}

.admin-title {
  margin: 0;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  letter-spacing: -0.02em;
  color: var(--se-deep);
}

.admin-subtitle {
  margin: 0.35rem 0 0;
  color: var(--se-neutral);
  max-width: 36rem;
  line-height: 1.45;
}

.admin-header-meta {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.admin-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 153, 153, 0.1);
  color: var(--se-deep);
  font-size: 0.85rem;
}

.admin-stat strong {
  font-size: 1.05rem;
}

.admin-stat--muted {
  background: rgba(0, 0, 40, 0.05);
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  padding: 0.3rem;
  border-radius: 12px;
  background: rgba(0, 0, 40, 0.04);
  border: 1px solid rgba(0, 0, 40, 0.05);
}

.admin-tab {
  border: 0;
  background: transparent;
  padding: 0.55rem 0.95rem;
  color: var(--se-neutral);
  border-radius: 9px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.admin-tab:hover {
  color: var(--se-deep);
  background: rgba(255, 255, 255, 0.65);
}

.admin-tab.active {
  color: var(--se-deep);
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 40, 0.08);
  font-weight: 600;
}

a.admin-tab {
  text-decoration: none;
}

.admin-section {
  margin-bottom: 1.25rem;
  padding: 1.15rem 1.2rem 1.25rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 40, 0.07);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 40, 0.03);
}

.admin-section--accent {
  background: linear-gradient(180deg, rgba(0, 153, 153, 0.05), #fff 42%);
}

.admin-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.admin-section-title {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.admin-hint {
  margin: 0.3rem 0 0.85rem;
  color: var(--se-neutral);
  font-size: 0.9rem;
  line-height: 1.4;
}

.admin-section-head .admin-hint {
  margin-bottom: 0;
}

.admin-hint--box {
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  margin-top: 0.85rem;
}

.admin-hint--box.is-ok {
  background: #e8f7f5;
}

.admin-hint--box.is-warn {
  background: #fff8e8;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.75rem 1rem;
  align-items: end;
}

.admin-form-grid--user {
  align-items: start;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: end;
}

.admin-toolbar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-search {
  min-width: min(18rem, 100%);
}

.admin-message {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: #e8f7f5;
  color: var(--se-deep);
}

.admin-message-error {
  background: #fdecee;
  color: #8a1f2c;
}

.admin-empty {
  margin: 0;
  color: var(--se-neutral);
}

.admin-flags,
.admin-user-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.admin-flags-label {
  width: 100%;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--se-deep-600, #4a4a62);
}

.admin-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(0, 0, 40, 0.04);
  border: 1px solid rgba(0, 0, 40, 0.06);
  font-size: 0.85rem;
  cursor: pointer;
}

.admin-flag input {
  margin: 0;
}

.admin-user-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.admin-user-card {
  padding: 1rem 1.05rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 40, 0.08);
  background: #fbfbfc;
}

.admin-user-card.is-inactive {
  opacity: 0.72;
}

.admin-user-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.admin-user-identity {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  min-width: min(18rem, 100%);
  flex: 1 1 16rem;
}

.admin-user-avatar {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, #00a3a3, #005159);
}

.admin-user-identity-text {
  flex: 1 1 auto;
  min-width: 0;
}

.admin-user-name {
  font-weight: 600;
}

.admin-user-email {
  margin: 0.25rem 0 0;
  font-size: 0.86rem;
  color: var(--se-deep-600, #4a4a62);
  word-break: break-all;
}

.admin-user-head-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  justify-content: flex-end;
}

.admin-user-role {
  min-width: 8.5rem;
}

.admin-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.admin-status-pill.is-active {
  background: rgba(27, 107, 74, 0.12);
  color: #1b6b4a;
}

.admin-status-pill.is-inactive {
  background: rgba(138, 31, 44, 0.1);
  color: #8a1f2c;
}

.admin-user-flags {
  margin-top: 0.75rem;
}

.admin-user-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.admin-user-panel {
  padding: 0.75rem 0.8rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(0, 0, 40, 0.06);
}

.admin-user-panel-title {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--se-deep-600, #4a4a62);
}

.admin-password-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.admin-password-status {
  font-size: 0.8rem;
  color: var(--se-deep-600, #4a4a62);
}

.admin-password-status.is-set {
  color: #1b6b4a;
}

.admin-password-status.is-missing {
  color: #8a6a1f;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.admin-channel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.admin-channel-tab {
  border: 1px solid rgba(0, 0, 40, 0.1);
  background: #fff;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: var(--se-neutral);
  cursor: pointer;
  font-size: 0.9rem;
}

.admin-channel-tab.active {
  border-color: var(--se-petrol, #009999);
  color: var(--se-deep);
  background: rgba(0, 153, 153, 0.1);
  font-weight: 600;
}

.admin-color-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.admin-color-box {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.4rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 40, 0.08);
  background: #fbfbfc;
  cursor: grab;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.admin-color-box:active {
  cursor: grabbing;
}

.admin-color-box.is-dragging {
  opacity: 0.45;
}

.admin-color-box.is-drop-target {
  border-color: var(--se-petrol, #009999);
  box-shadow: 0 0 0 2px rgba(0, 153, 153, 0.22);
  transform: scale(1.02);
}

.admin-color-box.is-standard {
  border-color: rgba(0, 0, 40, 0.35);
  box-shadow: 0 0 0 2px rgba(0, 0, 40, 0.18);
}

.admin-color-box-swatch {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.admin-color-box-swatch.is-alpha {
  background-color: transparent;
  background-image:
    linear-gradient(var(--swatch, transparent), var(--swatch, transparent)),
    linear-gradient(45deg, #cfcfd6 25%, transparent 25%),
    linear-gradient(-45deg, #cfcfd6 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #cfcfd6 75%),
    linear-gradient(-45deg, transparent 75%, #cfcfd6 75%);
  background-size: auto, 10px 10px, 10px 10px, 10px 10px, 10px 10px;
  background-position: 0 0, 0 0, 0 5px, 5px -5px, -5px 0;
}

.admin-color-corners {
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.admin-color-corner {
  position: static;
  width: 1.4rem;
  height: 1.4rem;
  border: 0;
  border-radius: 7px;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.88);
  color: var(--se-deep, #000028);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.admin-color-corner:hover {
  transform: scale(1.08);
  background: #fff;
}

.admin-color-corner--fav {
  font-size: 0.85rem;
}

.admin-color-corner--del {
  font-size: 1.05rem;
  font-weight: 600;
  color: #8a1f2c;
}

.admin-color-corner--del:hover {
  background: #fdecee;
  color: #8a1f2c;
}

.admin-color-corner.is-on {
  background: var(--se-deep, #000028);
  color: #fff;
}

.admin-color-corner--fav.is-on {
  background: var(--se-petrol, #009999);
  color: #fff;
}

.admin-color-box .admin-color-hex,
.admin-color-box .admin-color-hex-label {
  width: 100%;
  max-width: none;
  min-width: 0;
  text-align: center;
  font-size: 0.78rem;
}

.admin-color-add {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 28rem;
}

.admin-color-hex {
  width: 7.5rem;
  max-width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.admin-color-hex-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  font-size: 0.85rem;
  color: var(--se-deep-600);
}

.admin-color-swatch {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.admin-color-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.admin-color-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.admin-color-row--standard {
  outline: 2px solid rgba(0, 0, 40, 0.35);
  outline-offset: 1px;
  border-radius: 8px;
}

.admin-toggle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.65rem;
}

.admin-toggle-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 40, 0.08);
  background: #fbfbfc;
  cursor: pointer;
}

.admin-toggle-card input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
}

.admin-toggle-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.admin-toggle-copy small {
  color: var(--se-deep-600);
}

.admin-token-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.admin-token-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 40, 0.08);
  background: #fbfbfc;
}

.admin-token-card.is-inactive {
  opacity: 0.7;
}

.admin-token-name {
  margin: 0;
  font-size: 1rem;
}

.admin-token-prefix {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
}

.admin-token-meta {
  margin: 0.35rem 0 0;
  font-size: 0.86rem;
  color: var(--se-deep-600);
}

.admin-token-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.admin-chip {
  display: inline-flex;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: rgba(0, 153, 153, 0.12);
  color: var(--se-deep);
  font-size: 0.75rem;
  font-weight: 600;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid #ececf2;
  text-align: left;
  vertical-align: middle;
}

.admin-row-inactive {
  opacity: 0.65;
}

.admin-status.active {
  color: #1b6b4a;
}

.admin-status.inactive {
  color: #8a1f2c;
}

.admin-color-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.admin-color-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.admin-color-row--standard {
  outline: 2px solid rgba(0, 0, 40, 0.35);
  outline-offset: 1px;
  border-radius: 8px;
}

.admin-check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.admin-check-row .form-check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}

.admin-token-reveal {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: #fff8e8;
  border: 1px solid #e8c56b;
}

.admin-token-value {
  display: block;
  margin: 0.5rem 0;
  word-break: break-all;
  font-size: 0.9rem;
}

.admin-nfc-cell {
  min-width: 16rem;
  max-width: 22rem;
  vertical-align: top;
}

@media (max-width: 720px) {
  .admin-page {
    padding: 1rem 0.85rem 2rem;
  }

  .admin-user-head-controls {
    width: 100%;
    justify-content: flex-start;
  }
}


.local-login-body {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(160deg, #f3f7f7 0%, #e8f0f0 50%, #f7f5f0 100%);
  color: var(--se-deep, #000028);
}

.local-login-page {
  max-width: 28rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 2.5rem;
}

.local-login-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.local-login-title {
  margin: 0;
  font-size: 1.6rem;
}

.local-login-subtitle {
  margin: 0.4rem 0 1.25rem;
  color: var(--se-neutral, #66667e);
}

.local-login-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.local-login-user {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid #d8d8e0;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.local-login-user:hover {
  border-color: var(--se-petrol, #009999);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.local-login-user-name {
  font-weight: 600;
}

.local-login-hint {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--se-neutral, #66667e);
}

.local-login-form {
  margin-top: 0.5rem;
}

.local-login-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 0.85rem;
  color: var(--se-deep-600);
  font-size: 0.85rem;
}

.local-login-divider::before,
.local-login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 40, 0.12);
}

.local-login-nfc-lead {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  color: var(--se-deep-600);
}

.local-login-nfc-input-wrap {
  display: flex;
  gap: 0.4rem;
}

.local-login-nfc-input-wrap .form-control {
  flex: 1;
}

.local-login-nfc-status {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: var(--se-deep-600);
}

.local-login-nfc-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 153, 153, 0.35);
  background: rgba(0, 153, 153, 0.08);
  color: var(--se-petrol, #009999);
  text-decoration: none;
  font-weight: 600;
}

.local-login-nfc-link:hover {
  background: rgba(0, 153, 153, 0.14);
  color: var(--se-deep, #000028);
}

.local-login-nfc-link-icon {
  font-size: 1.15rem;
}

/* Dedicated NFC login page */
.nfc-login-shell {
  min-height: 100vh;
  margin: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  overflow: hidden;
  font-family: var(--tt-font, "DM Sans", sans-serif);
  color: var(--se-deep, #000028);
  background: #eef3f3;
}

.nfc-login-atmosphere {
  position: absolute;
  inset: -25% -15%;
  background:
    radial-gradient(ellipse 55% 45% at 20% 25%, rgba(0, 153, 153, 0.28), transparent 55%),
    radial-gradient(ellipse 45% 40% at 85% 70%, rgba(0, 81, 89, 0.16), transparent 50%),
    radial-gradient(ellipse 35% 30% at 60% 10%, rgba(0, 193, 182, 0.14), transparent 45%),
    linear-gradient(165deg, #e7f1f1 0%, #f4f6f6 55%, #ebeeee 100%);
  animation: nfc-login-drift 16s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes nfc-login-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-2%, 1.5%, 0) scale(1.04); }
}

.nfc-login-panel {
  position: relative;
  z-index: 1;
  width: min(26rem, 100%);
  padding: 1.75rem 1.5rem 2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 0, 40, 0.06);
  box-shadow: 0 20px 55px rgba(0, 0, 40, 0.1);
  backdrop-filter: blur(10px);
  animation: nfc-login-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  text-align: center;
}

@keyframes nfc-login-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.nfc-login-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.nfc-login-hero {
  position: relative;
  width: 8.5rem;
  height: 8.5rem;
  margin: 0 auto 1.25rem;
  display: grid;
  place-items: center;
}

.nfc-login-wave {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(0, 153, 153, 0.35);
  animation: nfc-login-pulse 2.4s ease-out infinite;
}

.nfc-login-wave--2 { animation-delay: 0.55s; }
.nfc-login-wave--3 { animation-delay: 1.1s; }

@keyframes nfc-login-pulse {
  0% { transform: scale(0.55); opacity: 0.85; }
  100% { transform: scale(1.15); opacity: 0; }
}

.nfc-login-badge {
  position: relative;
  z-index: 1;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 1.1rem;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(145deg, #00a3a3 0%, #005159 100%);
  box-shadow: 0 10px 24px rgba(0, 81, 89, 0.28);
}

.nfc-login-title {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nfc-login-lead {
  margin: 0.45rem 0 1.15rem;
  color: var(--se-deep-600, #4a4a62);
  font-size: 1rem;
  line-height: 1.45;
}

.nfc-login-tap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 1.35rem 1rem;
  border: 2px dashed rgba(0, 153, 153, 0.45);
  border-radius: 16px;
  background: rgba(0, 153, 153, 0.06);
  color: var(--se-deep, #000028);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nfc-login-tap:hover,
.nfc-login-tap:focus-visible {
  background: rgba(0, 153, 153, 0.12);
  border-color: var(--se-petrol, #009999);
  outline: none;
}

.nfc-login-tap.is-scanning {
  border-style: solid;
  border-color: var(--se-petrol, #009999);
  animation: nfc-login-glow 1.2s ease-in-out infinite alternate;
}

@keyframes nfc-login-glow {
  from { box-shadow: 0 0 0 0 rgba(0, 153, 153, 0.15); }
  to { box-shadow: 0 0 0 10px rgba(0, 153, 153, 0); }
}

.nfc-login-tap-icon {
  font-size: 2rem;
  line-height: 1;
  color: var(--se-petrol, #009999);
}

.nfc-login-tap-label {
  font-weight: 600;
  font-size: 1.05rem;
}

.nfc-login-hint {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  color: var(--se-deep-600, #4a4a62);
}

.nfc-login-status {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  color: var(--se-petrol, #009999);
}

.nfc-login-status.is-error {
  color: var(--se-red, #d72339);
}

.nfc-login-manual {
  margin-top: 1.25rem;
  text-align: left;
}

.nfc-login-manual summary {
  cursor: pointer;
  color: var(--se-deep-600, #4a4a62);
  font-size: 0.9rem;
  margin-bottom: 0.55rem;
}

.nfc-login-manual-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.nfc-login-manual-row .form-control,
.nfc-login-wedge .form-control {
  flex: 1 1 10rem;
}

.nfc-login-card-label {
  display: block;
  text-align: left;
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.nfc-login-wedge {
  margin-bottom: 0.35rem;
}

.nfc-login-card-input {
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  text-align: left;
}

.nfc-login-tap[hidden] {
  display: none !important;
}

.nfc-login-tap:not([hidden]) {
  margin-top: 1rem;
}

.nfc-login-alt {
  display: inline-block;
  margin-top: 1.35rem;
  color: var(--se-petrol, #009999);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.nfc-login-alt:hover {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .nfc-login-atmosphere,
  .nfc-login-panel,
  .nfc-login-wave,
  .nfc-login-tap.is-scanning {
    animation: none;
  }
}

/* Status / error pages */
.status-shell {
  min-height: 100vh;
  margin: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  overflow: hidden;
  font-family: var(--tt-font);
  color: var(--se-deep);
  background: #f4f6f6;
}

.status-atmosphere {
  position: absolute;
  inset: -20% -10%;
  background:
    radial-gradient(ellipse 60% 50% at 15% 20%, rgba(0, 153, 153, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 45% at 88% 75%, rgba(227, 114, 0, 0.14), transparent 50%),
    radial-gradient(ellipse 40% 35% at 70% 15%, rgba(0, 193, 182, 0.12), transparent 45%),
    linear-gradient(165deg, #eef3f3 0%, #f7f5f0 55%, #ebeeee 100%);
  animation: status-drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes status-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-2%, 1.5%, 0) scale(1.04); }
}

.status-shell--403 .status-atmosphere,
.status-shell--401 .status-atmosphere {
  background:
    radial-gradient(ellipse 55% 45% at 20% 25%, rgba(215, 35, 57, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 70%, rgba(0, 81, 89, 0.14), transparent 50%),
    linear-gradient(165deg, #f7f0f0 0%, #f4f6f6 60%, #eef2f2 100%);
}

.status-shell--500 .status-atmosphere,
.status-shell--502 .status-atmosphere,
.status-shell--503 .status-atmosphere {
  background:
    radial-gradient(ellipse 55% 45% at 18% 30%, rgba(227, 114, 0, 0.2), transparent 55%),
    radial-gradient(ellipse 45% 40% at 82% 65%, rgba(0, 0, 40, 0.08), transparent 50%),
    linear-gradient(165deg, #f8f3eb 0%, #f4f6f6 55%, #eceff0 100%);
}

.status-panel {
  position: relative;
  z-index: 1;
  width: min(32rem, 100%);
  padding: 2rem 1.75rem 2.25rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 0, 40, 0.06);
  box-shadow: 0 18px 50px rgba(0, 0, 40, 0.08);
  backdrop-filter: blur(10px);
  animation: status-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.status-embed {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(70vh, 36rem);
  padding: 1.5rem 1rem;
  overflow: hidden;
  border-radius: 18px;
}

.status-atmosphere--compact {
  inset: 0;
  border-radius: 18px;
}

.status-panel--embedded {
  margin: 0 auto;
  max-width: 32rem;
  width: min(32rem, 100%);
}

@keyframes status-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.status-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.status-code {
  margin: 0;
  font-size: clamp(4.5rem, 14vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.9;
  color: var(--se-petrol);
  opacity: 0.9;
  animation: status-code-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.status-shell--403 .status-code,
.status-shell--401 .status-code {
  color: var(--se-red);
}

.status-shell--500 .status-code,
.status-shell--502 .status-code,
.status-shell--503 .status-code {
  color: var(--se-orange);
}

@keyframes status-code-in {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 0.9; transform: translateY(0) scale(1); }
}

.status-title {
  margin: 0.85rem 0 0;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.status-lead {
  margin: 0.55rem 0 0;
  color: var(--se-deep-600);
  font-size: 1.02rem;
  line-height: 1.5;
}

.status-meta {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--se-deep-600);
  word-break: break-all;
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .status-atmosphere,
  .status-panel,
  .status-code {
    animation: none;
  }
}

/* Plan export dialog */
.plan-export-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0, 0, 40, 0.45);
}

.plan-export-dialog {
  width: min(32rem, 100%);
  max-height: min(90vh, 40rem);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 40, 0.08);
  box-shadow: 0 18px 50px rgba(0, 0, 40, 0.18);
  padding: 1.25rem 1.35rem 1.35rem;
}

.plan-export-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.plan-export-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.plan-export-lead {
  margin: 0.4rem 0 1rem;
  color: var(--se-deep-600);
  font-size: 0.95rem;
}

.plan-export-section {
  margin-bottom: 1rem;
}

.plan-export-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.plan-export-select-actions {
  display: flex;
  gap: 0.35rem;
}

.plan-export-plan-list {
  max-height: 12rem;
  overflow: auto;
  border: 1px solid rgba(0, 0, 40, 0.1);
  border-radius: 10px;
  padding: 0.35rem;
}

.plan-export-plan-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.45rem;
  border-radius: 6px;
  cursor: pointer;
}

.plan-export-plan-row:hover {
  background: rgba(0, 153, 153, 0.08);
}

.plan-export-plan-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-export-plan-meta {
  font-size: 0.8rem;
  color: var(--se-deep-600);
}

.plan-export-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.plan-export-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.plan-export-format-option {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 40, 0.12);
  cursor: pointer;
  font-size: 0.9rem;
}

.plan-export-format-option.active {
  border-color: var(--se-petrol);
  background: rgba(0, 153, 153, 0.1);
}

.plan-export-format-option input {
  margin: 0;
}

.plan-export-hint {
  margin: 0.45rem 0 0;
  font-size: 0.85rem;
  color: var(--se-deep-600);
}

.plan-export-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

/* User NFC editor (Admin access list) */
.user-nfc-editor {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.user-nfc-empty {
  margin: 0;
  font-size: 0.8rem;
  color: var(--se-deep-600);
}

.user-nfc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.user-nfc-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.35rem 0.15rem 0.45rem;
  border-radius: 6px;
  background: rgba(0, 153, 153, 0.1);
  border: 1px solid rgba(0, 153, 153, 0.25);
  font-size: 0.78rem;
}

.user-nfc-chip.inactive {
  opacity: 0.55;
}

.user-nfc-chip code {
  font-size: 0.78rem;
}

.user-nfc-emp {
  color: var(--se-deep-600);
}

.user-nfc-remove {
  padding: 0 0.2rem;
  line-height: 1;
  text-decoration: none;
  color: var(--se-red, #d72339);
}

.user-nfc-add {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}

.user-nfc-add .form-control {
  width: auto;
  min-width: 6.5rem;
  flex: 1 1 5rem;
}

.user-nfc-preview {
  margin: 0;
  font-size: 0.75rem;
}
