textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(2, 8, 19, 0.75);
  color: white;
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}

textarea:focus {
  border-color: rgba(118, 228, 255, 0.5);
  outline: 3px solid rgba(66, 184, 255, 0.1);
}

.panel-section-tabs {
  display: flex;
  gap: 0.5rem;
  margin: -1.4rem 0 2rem;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(8, 21, 43, 0.68);
}

.panel-section-tabs a {
  padding: 0.55rem 0.8rem;
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
}

.panel-section-tabs a.active {
  background: rgba(22, 140, 255, 0.12);
  color: white;
}

.lock-card { text-align: center; }
.lock-screen-icon {
  display: grid;
  width: 82px;
  height: 82px;
  margin: 0 auto 1.4rem;
  place-items: center;
  border: 1px solid rgba(255, 102, 133, 0.3);
  border-radius: 24px;
  background: rgba(255, 102, 133, 0.08);
  color: #ff9bad;
  box-shadow: 0 0 45px rgba(255, 73, 112, 0.12);
}

.lock-screen-icon svg { width: 38px; height: 38px; }
.lock-card .kicker { margin-top: 0; color: #ff9bad; }
.lock-card h1 { font-size: clamp(1.8rem, 5vw, 2.7rem); }
.lock-reason,
.lock-expiry {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.16);
  text-align: left;
}

.lock-reason small,
.lock-expiry small {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lock-reason strong { overflow-wrap: anywhere; }
.lock-logout { margin-top: 1.5rem; }
.lock-logout button { width: 100%; }
.table-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  white-space: nowrap;
}

.table-actions form { margin: 0; }
.lock-action,
.unlock-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ff9bad;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.unlock-action { color: var(--success); }
.lock-table-reason {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lock-form-card { max-width: 700px; }
.lock-target {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.lock-target > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 102, 133, 0.09);
  color: #ff9bad;
  font-weight: 850;
}

.lock-target div { display: grid; }
.lock-target small { color: var(--muted); }
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-top: 0.5rem;
}

.customer-readonly-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 1rem;
}

.customer-meta-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.customer-meta-strip > div {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 21, 43, 0.64);
}

.customer-meta-strip small { color: var(--muted); font-size: 0.63rem; }
.customer-meta-strip strong { overflow: hidden; font-size: 0.76rem; text-overflow: ellipsis; }

.detail-list {
  display: grid;
  gap: 0;
  margin: 1rem 0 0;
}

.detail-list > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
}

.detail-list dt { color: var(--muted); font-size: 0.7rem; }
.detail-list dd { margin: 0; overflow-wrap: anywhere; }
.notes-text { color: #bdcce0; white-space: normal; }

@media (max-width: 600px) {
  .form-actions { flex-direction: column-reverse; }
  .form-actions > * { width: 100%; }
  .customer-readonly-grid { grid-template-columns: 1fr; }
  .customer-meta-strip { grid-template-columns: 1fr 1fr; }
  .detail-list > div { grid-template-columns: 1fr; gap: 0.25rem; }
}
