.fl-datasheet-panel {
  box-sizing: border-box;
  width: min(440px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 32px;
  overflow: auto;
  border: 1px solid #d6e1e3;
  border-radius: 8px;
  background: #fff;
  color: #172d3e;
  box-shadow: 0 18px 54px #102a3c33;
  font-size: 15px;
  line-height: 1.55;
}

.fl-datasheet-dialog { position: fixed; inset: 0; margin: auto; }
.fl-datasheet-dialog::backdrop { background: #10243599; }
.fl-datasheet-panel :is(h1, h2) {
  margin: 0 32px 6px 0;
  color: #172d3e;
  font-size: 25px;
  line-height: 1.25;
}
.fl-datasheet-panel p { margin: 0 0 16px; color: #405869; }
.fl-datasheet-panel .fl-datasheet-model { margin-bottom: 10px; color: #185367; font-weight: 700; }
.fl-datasheet-panel a { color: #15566a; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.fl-datasheet-panel form { display: grid; gap: 7px; margin-top: 20px; }
.fl-datasheet-panel label { display: block; color: #253f53; font-weight: 650; }
.fl-datasheet-panel input {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  margin: 0 0 6px;
  padding: 9px 12px;
  border: 1px solid #c6d3dc;
  border-radius: 4px;
  background: #fff;
  color: #172d3e;
  font: inherit;
  font-size: 16px;
}
.fl-datasheet-page label input { display: block; margin-top: 7px; }
.fl-datasheet-panel :is(input, button, a):focus-visible { outline: 2px solid #167997; outline-offset: 2px; }
.fl-datasheet-panel button { cursor: pointer; font: inherit; }
.fl-datasheet-panel button[type="submit"] {
  min-height: 44px;
  margin-top: 7px;
  padding: 10px 16px;
  border: 0;
  border-radius: 4px;
  background: #0c3b71;
  color: white;
  font-weight: 700;
}
.fl-datasheet-panel button[type="submit"]:hover { background: #155486; }
.fl-datasheet-panel button:disabled { cursor: wait; opacity: .72; }
.fl-datasheet-panel .fl-datasheet-close {
  position: absolute;
  top: 13px;
  right: 13px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: #f0f4f5;
  color: #253f53;
  font-size: 24px;
  line-height: 1;
}
.fl-datasheet-panel .fl-datasheet-error { margin: 0; color: #9d292c; }
.fl-datasheet-panel [hidden] { display: none !important; }
.fl-datasheet-page { display: grid; min-height: 100vh; margin: 0; place-items: center; background: #eef3f4; font-family: system-ui, sans-serif; }
.fl-datasheet-page form + p { margin: 18px 0 0; }
@media (max-width: 480px) { .fl-datasheet-panel { padding: 25px 22px; } }
