* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f7fb;
  color: #182230;
}

.container {
  max-width: 720px;
  margin: 40px auto;
  padding: 22px;
  background: #ffffff;
  border: 1px solid #d5deea;
  border-radius: 12px;
}

.brand-wrap {
  display: flex;
  justify-content: center;
  margin: 4px 0 16px;
}

.brand-logo {
  width: 100%;
  max-width: 340px;
  height: auto;
  display: block;
}

form {
  display: grid;
  gap: 14px;
}

#boe-form {
  margin-top: 14px;
}

.disabled-panel {
  pointer-events: none;
  opacity: 0.55;
}

.card {
  border: 1px solid #d5deea;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 0;
  box-shadow: 0 8px 18px rgba(9, 30, 66, 0.06);
}

.card h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

label {
  font-weight: 700;
  display: block;
  margin: 10px 0 6px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-top: 10px;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

input,
select,
textarea,
button {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #c4cfdf;
  border-radius: 8px;
  font-size: 15px;
}

button {
  margin-top: 6px;
  border: none;
  background: #155eef;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: #004eea;
}

.secondary {
  background: #eef4ff;
  color: #1f3f9c;
  border: 1px solid #c6d7ff;
}

.secondary:hover {
  background: #dbe7ff;
}

.group-btn {
  background: #e7f7ee;
  color: #11663a;
  border: 1px solid #bce6cd;
}

.group-btn:hover {
  background: #d6f1e3;
}

.value-btn {
  background: #fff4e8;
  color: #9a3412;
  border: 1px solid #ffd8b0;
}

.value-btn:hover {
  background: #ffe9d3;
}

.inline-group {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.trust-panel {
  background: linear-gradient(180deg, #f7faff 0%, #f4f8ff 100%);
  border: 1px solid #d2def7;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
  color: #2b3f58;
}

.trust-panel p {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.3;
}

.trust-panel p:last-child {
  margin-bottom: 0;
}

.trust-panel a {
  color: #155eef;
  font-weight: 700;
  text-decoration: none;
}

.trust-panel a:hover {
  text-decoration: underline;
}

.contact-note {
  margin: 10px 2px 0;
  font-size: 12px;
  color: #5f6f87;
}

.contact-note a {
  color: #4a6fd6;
  text-decoration: none;
}

.contact-note a:hover {
  text-decoration: underline;
}

.hidden {
  display: none;
}

.hint-inline {
  margin: 10px 0 6px;
  color: #5f6f87;
  font-size: 13px;
  line-height: 1.35;
}

.hint-title {
  margin: 0 0 4px;
  font-weight: 600;
}

.hint-list {
  margin: 0;
  padding-left: 16px;
}

.hint-list li {
  margin-bottom: 2px;
}

.entry-row {
  margin-bottom: 12px;
  background: #fbfdff;
  border: 1px solid #d9e5fb;
  border-radius: 10px;
  padding: 10px;
}

.entry-row-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}

.entry-category {
  background: #ffffff;
  border-color: #c4cfdf;
  font-weight: 700;
}

.entry-values {
  margin-top: 8px;
}

.entry-values .value-row {
  margin-left: 0;
}

.add-value-inline {
  margin-top: 2px;
}

.value-row {
  display: grid;
  grid-template-columns: minmax(118px, 150px) 1fr auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  margin-left: 14px;
  padding: 8px 10px 8px 12px;
  border-left: 4px solid #bfd1ff;
  background: #f8fbff;
  border-radius: 8px;
}

.value-kind,
.value-input {
  background: #ffffff;
  border: 1px solid #d6dff0;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  color: inherit;
  min-height: 40px;
  box-sizing: border-box;
}

.remove-row {
  background: #fde8e8;
  color: #b42318;
  border: 1px solid #f7c9c7;
}

.icon-danger {
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #f7c9c7;
  border-radius: 8px;
  background: #fde8e8;
  color: #b42318;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-danger:hover {
  background: #fbd5d4;
}

.icon-trash {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.small {
  margin: 0 0 10px;
  color: #53657d;
  font-size: 14px;
}

h3 {
  margin: 4px 0 10px;
  font-size: 17px;
}

.password-details summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

#logoutBtn {
  margin-top: 14px;
}

#passwordDetails {
  margin-top: 10px;
}

.password-details summary::-webkit-details-marker {
  display: none;
}

.password-details summary::after {
  content: " ▾";
  font-weight: 700;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 8px;
}

#manageValues {
  margin-top: 10px;
  margin-bottom: 10px;
}

#lookupResult {
  margin-top: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#lookupResult input[readonly] {
  background: #ffffff;
  color: #182230;
}

.record-header {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #e5edf9;
  border-radius: 10px;
  background: #ffffff;
}

.create-header {
  margin-bottom: 10px;
}

.group-header {
  margin: 12px 0 8px;
}

.group-control {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
}

.manage-hint {
  margin-top: 10px;
  margin-bottom: 6px;
}

.danger-soft {
  margin-top: 10px;
  background: #fff1f1;
  color: #b42318;
  border: 1px solid #f6c7c3;
}

.danger-soft:hover {
  background: #ffe5e5;
}

.status {
  margin-top: 14px;
  font-weight: 700;
}

@media (max-width: 640px) {
  .brand-logo {
    max-width: 250px;
  }
}
