/* Layout glue around Polaris web components; Polaris does the look. */
body { margin: 0; }
.nf-loading { display: grid; place-items: center; min-height: 60vh; }
.nf-split { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1040px) { .nf-split { grid-template-columns: minmax(0, 1fr) 380px; } .nf-sticky-col { position: sticky; top: 16px; } }
.nf-preview { padding: 12px; border-radius: 12px; background: #f1f2f4; }
.nf-preview .nf-form { pointer-events: auto; }
.nf-tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.nf-tile { padding: 14px; border-radius: 12px; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .07), inset 0 0 0 1px rgba(0, 0, 0, .06); }
.nf-tile b { display: block; font-size: 22px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.nf-tile span { color: #616161; font-size: 13px; }
.nf-row { display: grid; gap: 8px; align-items: end; padding: 10px 0; border-bottom: 1px solid #ebebeb; }
.nf-row:last-child { border-bottom: 0; }
.nf-row-fields { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) auto auto auto; }
.nf-row-tiers { grid-template-columns: minmax(0, 1.4fr) 90px 150px 110px minmax(0, 1fr) auto auto; }
.nf-row-ship { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) 130px auto; }
@media (max-width: 760px) { .nf-row-fields, .nf-row-tiers, .nf-row-ship { grid-template-columns: 1fr 1fr; } }
.nf-row-key { font-size: 12px; color: #616161; grid-column: 1 / -1; }
.nf-actions { display: flex; gap: 4px; align-items: center; }
.nf-code { margin: 0; padding: 12px; max-height: 280px; overflow: auto; border-radius: 8px; background: #1a1a1a; color: #e3e3e3;
  font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; direction: ltr; text-align: left; white-space: pre; }
.nf-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; direction: ltr; unicode-bidi: embed; }
.nf-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.nf-table th, .nf-table td { padding: 8px 6px; border-bottom: 1px solid #ebebeb; text-align: start; vertical-align: top; }
.nf-table th { color: #616161; font-weight: 600; white-space: nowrap; }
.nf-table td small { color: #616161; display: block; }
.nf-scroll { overflow-x: auto; }
.nf-check-list { display: grid; gap: 10px; }
.nf-check-item { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
