.shield-workspace-body {
  min-height: 100vh;
  background: #08090b;
}

.shield-workspace-body [hidden] {
  display: none !important;
}

.shield-header {
  position: relative;
}

.shield-workspace {
  display: grid;
  gap: 24px;
  width: min(980px, calc(100% - 32px));
  padding: 42px 0 64px;
}

.shield-titlebar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.shield-titlebar h1 {
  max-width: 720px;
  margin: 5px 0 8px;
  font-size: 4rem;
  line-height: 1;
  letter-spacing: 0;
}

.shield-titlebar p:last-child {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
}

.live-security {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 2px 9px;
  min-width: 240px;
  padding: 12px 14px;
  border-left: 3px solid var(--gold);
  background: #15171a;
}

.live-security .live-dot {
  align-self: center;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}

.live-security strong,
.live-security small {
  grid-column: 2;
}

.live-security small {
  color: var(--muted);
}

.live-security.verified {
  border-color: var(--green);
}

.live-security.verified .live-dot {
  background: var(--green);
}

.shield-tool {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101317;
  box-shadow: var(--shadow);
}

.shield-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 52px;
  border-bottom: 1px solid var(--line);
  background: #0b0d10;
}

.shield-tabs button {
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.shield-tabs button[aria-selected="true"] {
  border-color: var(--accent);
  background: #141c1e;
  color: var(--text);
}

.shield-panel {
  padding: 26px;
}

.shield-panel form {
  display: grid;
  gap: 18px;
}

.field-row,
.two-fields > div,
.note-field,
.message-output {
  display: grid;
  gap: 8px;
}

.message-output {
  padding: 14px;
  border-left: 3px solid var(--accent);
  background: #0a0e11;
}

.message-output small,
.note-field small {
  color: var(--muted);
}

.message-output textarea {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.field-row {
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
}

.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.shield-panel label {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.shield-panel input,
.shield-panel select,
.shield-panel textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #080a0c;
  color: var(--text);
  padding: 10px 12px;
}

.shield-panel textarea {
  resize: vertical;
}

.shield-panel input:focus,
.shield-panel select:focus,
.shield-panel textarea:focus {
  outline: 2px solid rgba(46, 226, 207, 0.55);
  outline-offset: 2px;
  border-color: var(--accent);
}

.file-zone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 138px;
  padding: 24px;
  border: 1px dashed rgba(46, 226, 207, 0.55);
  border-radius: 6px;
  background: #0b1113;
  text-align: center;
  cursor: pointer;
}

.file-zone:hover,
.file-zone.dragging {
  border-color: var(--gold);
  background: #15140f;
}

.file-zone strong {
  color: var(--text);
  font-size: 1.05rem;
}

.file-zone span {
  color: var(--muted);
  font-weight: 500;
}

.file-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.factor-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(240px, 1.4fr);
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-left: 3px solid var(--accent-2);
  background: #0c1016;
}

.factor-row span {
  display: grid;
  gap: 3px;
}

.factor-row strong {
  color: var(--text);
}

.factor-row small {
  color: var(--muted);
  font-weight: 500;
}

.quantum-option input[type="checkbox"] {
  justify-self: end;
  width: 22px;
  min-height: 22px;
  accent-color: var(--accent);
}

.quantum-option input[type="file"] {
  width: 100%;
  min-width: 0;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-actions .button {
  min-height: 44px;
}

.shield-result {
  display: grid;
  gap: 2px;
  padding: 15px 26px;
  border-top: 1px solid var(--line);
  background: #0a0c0e;
}

.shield-result span {
  color: var(--muted);
}

.shield-result.success strong {
  color: var(--green);
}

.shield-result.error strong {
  color: var(--danger);
}

.shield-evidence {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.shield-evidence div {
  display: grid;
  gap: 5px;
  min-height: 104px;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.shield-evidence div:last-child {
  border-right: 0;
}

.shield-evidence span {
  color: var(--muted);
  font-size: 0.86rem;
}

@media (max-width: 760px) {
  .shield-titlebar h1 {
    font-size: 2.6rem;
  }

  .shield-workspace {
    padding-top: 26px;
  }

  .shield-titlebar {
    align-items: stretch;
    flex-direction: column;
  }

  .live-security {
    min-width: 0;
  }

  .two-fields,
  .shield-evidence {
    grid-template-columns: 1fr;
  }

  .field-row,
  .factor-row {
    grid-template-columns: 1fr;
  }

  .shield-evidence div {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .shield-evidence div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 520px) {
  .shield-titlebar h1 {
    font-size: 2.2rem;
  }

  .shield-workspace {
    width: min(100% - 20px, 980px);
  }

  .shield-panel,
  .shield-result {
    padding: 18px;
  }

  .tool-actions .button {
    width: 100%;
  }
}
