
.sedtec-portal {
  --sedtec-p-blue: #0873ff;
  --sedtec-p-blue-deep: #061f58;
  --sedtec-p-red: #ef233c;
  --sedtec-p-ink: #f7fbff;
  --sedtec-p-muted: #b9c7df;
  --sedtec-p-line: rgba(174, 205, 255, .18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  color: var(--sedtec-p-ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(8,115,255,.25), transparent 30%),
    radial-gradient(circle at 88% 92%, rgba(239,35,60,.18), transparent 28%),
    linear-gradient(145deg, #06142d 0%, #071b3c 48%, #040d1d 100%);
}
.sedtec-portal * { box-sizing: border-box; }
.sedtec-shell { max-width: 1280px; margin: 0 auto; padding: 34px; }

.sedtec-panel,
.sedtec-card,
.sedtec-sidebar {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(16,42,86,.94), rgba(8,25,55,.92));
  border: 1px solid var(--sedtec-p-line);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.34);
  backdrop-filter: blur(14px);
}
.sedtec-panel::before,
.sedtec-card::before,
.sedtec-sidebar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
}
.sedtec-panel { padding: 30px; }
.sedtec-panel-centered { max-width: 640px; margin: 4vh auto; }
.sedtec-sidebar { padding: 24px; min-width: 280px; }

.sedtec-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #d7e7ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.sedtec-brand::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sedtec-p-blue), #66b3ff);
  box-shadow: 0 0 16px rgba(8,115,255,.9);
}
.sedtec-muted { color: var(--sedtec-p-muted); line-height: 1.6; }

.sedtec-error {
  margin-bottom: 16px;
  padding: 13px 15px;
  color: #ffd7dc;
  background: rgba(111,13,28,.55);
  border: 1px solid rgba(255,95,116,.45);
  border-radius: 13px;
}

.sedtec-portal input,
.sedtec-portal select,
.sedtec-portal textarea {
  width: 100%;
  margin: 8px 0 18px;
  padding: 15px 16px;
  color: #101828;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(185,209,245,.55);
  border-radius: 13px;
  outline: 0;
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}
.sedtec-portal input:focus,
.sedtec-portal select:focus,
.sedtec-portal textarea:focus {
  border-color: var(--sedtec-p-blue);
  box-shadow: 0 0 0 4px rgba(8,115,255,.18);
}

.sedtec-btn,
.sedtec-portal button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 14px 19px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  background: linear-gradient(135deg, var(--sedtec-p-blue), #0754c8);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
  box-shadow: 0 12px 24px rgba(8,115,255,.24);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.sedtec-btn:hover,
.sedtec-portal button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 16px 28px rgba(8,115,255,.3);
}
.sedtec-btn-secondary {
  background: linear-gradient(135deg, #183867, #0d2448);
  box-shadow: none;
}
.sedtec-btn.is-disabled { opacity: .58; pointer-events: auto; }

.sedtec-meta-grid,
.sedtec-grid { display: grid; gap: 16px; }
.sedtec-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.sedtec-meta-grid { grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: 20px; }
.sedtec-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.sedtec-card { padding: 21px; transition: transform .16s ease, border-color .16s ease; }
.sedtec-card:hover { transform: translateY(-2px); border-color: rgba(96,165,250,.38); }
.sedtec-layout { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 20px; }
.sedtec-valid { margin: 4px 0 10px; color: #e7f1ff; font-size: 19px; font-weight: 800; }
.sedtec-code { margin-bottom: 18px; color: #c9d8f4; font-size: 14px; word-break: break-word; }
.sedtec-actions { display: grid; gap: 10px; margin-bottom: 16px; }

.sedtec-grid label {
  display: block;
  margin-bottom: 6px;
  color: var(--sedtec-p-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sedtec-grid span {
  display: block;
  min-height: 50px;
  padding: 13px 14px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(173,208,255,.13);
  border-radius: 13px;
}
.sedtec-preview-note { color: var(--sedtec-p-muted); font-size: 13px; }
.sedtec-preview-block { margin-top: 24px; }
.sedtec-preview-frame {
  width: 100%;
  min-height: 1120px;
  background: #fff;
  border: 1px solid var(--sedtec-p-line);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
}

@media (max-width: 980px) {
  .sedtec-layout { grid-template-columns: 1fr; }
  .sedtec-grid, .sedtec-meta-grid, .sedtec-cards { grid-template-columns: 1fr; }
  .sedtec-shell { padding: 20px; }
  .sedtec-preview-frame { min-height: 820px; }
}
@media (max-width: 540px) {
  .sedtec-shell { padding: 14px; }
  .sedtec-panel, .sedtec-card, .sedtec-sidebar { border-radius: 17px; }
  .sedtec-panel { padding: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .sedtec-portal *, .sedtec-portal *::before, .sedtec-portal *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
