.magnet-panel {
  color: #18263b;
  text-align: left;
}
#dialog-title + .magnet-panel { margin-top: 20px; }
.magnet-panel [hidden] { display: none !important; }
.magnet-panel p { margin: 0; }
.magnet-panel .fine { color: #48586a; line-height: 1.45; }
.magnet-selection, .magnet-directory, .magnet-entry { display: grid; align-items: start; justify-items: stretch; gap: 12px; }
.magnet-selection {
  background: #f5f6fb;
  border: 1px solid #d7dfed;
  border-radius: 16px;
  padding: 16px;
}
.magnet-selection > label, .magnet-directory summary, .magnet-entry label { font-weight: 650; color: #192a40; }
.magnet-selection > label { font-size: 1.07rem; }
.magnet-panel .field { box-sizing: border-box; min-width: 0; width: 100%; font-size: 16px; }
.magnet-panel .field:focus-visible { outline: 2px solid #245f9a; outline-offset: 1px; }
.magnet-panel .field[aria-invalid=true] { border-color: #a42d20; }
.magnet-panel .primary, .magnet-panel .secondary { justify-self: start; min-height: 44px; }
.magnet-directory { margin-top: 16px; }
.magnet-directory summary, .magnet-settings > summary { cursor: pointer; padding: 8px 0; }
.magnet-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.magnet-list:empty, .magnet-panel p:empty { display: none; }
.magnet-row { display: flex; align-items: flex-start; gap: 11px; padding: 10px 12px; border: 1px solid #dce2ed; border-radius: 10px; background: #fff; }
.magnet-description { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.magnet-description > strong, .magnet-description > span { display: block; }
.magnet-description > span { font-size: .86rem; color: #49586b; margin-top: 3px; }
.magnet-description b { color: #913a22; font-weight: 700; }
.magnet-index { padding: 4px 7px; color: #243b59; background: #edf2fa; border-radius: 6px; font-weight: 700; }
.magnet-row .text-button { align-self: center; }
.magnet-panel .magnet-status { font-size: .88rem; color: #344e48; }
.magnet-panel .magnet-error { color: #96291c; font-size: .88rem; }
.magnet-entry { border: 1px solid #d7dfed; border-radius: 14px; padding: 14px; }
.magnet-entry h3 { margin: 0; font-size: 1.05rem; }
.magnet-entry-fields { display: grid; grid-template-columns: 84px minmax(0,1fr); gap: 10px; }
.magnet-entry label { display: grid; gap: 5px; font-size: .91rem; }
.magnet-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.magnet-settings { border: 1px solid #d7dfed; border-radius: 12px; margin: 10px 0 16px; padding: 3px 14px; }
.magnet-settings > summary { font-weight: 650; }
.magnet-settings[open] { padding-bottom: 12px; }
@media(max-width:480px) {
  .magnet-selection, .magnet-entry { padding: 12px; }
  .magnet-row { gap: 7px; padding: 9px 8px; flex-wrap: wrap; }
  .magnet-row .text-button { font-size: .84rem; }
  .magnet-panel .primary, .magnet-panel .secondary { width: 100%; }
}
