.n-heading, .n-grant {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.n-heading h1, .n-heading h2, .n-heading p { margin: 3px 0; }
.n-heading { margin: 18px 0 12px; }
.n-quotas, .n-times { display: grid; gap: 12px; }
.n-quotas { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 22px 0 28px; }
.n-quotas article { margin: 0; padding: 16px 20px; border-top: 3px solid var(--primary); }
.n-quotas span, .n-quotas small { display: block; }
.n-quotas strong { display: flex; flex-wrap: wrap; gap: 5px; align-items: baseline; font-size: 30px; line-height: 1.5; }
.n-quotas strong small { font-size: 14px; color: var(--text); }
.n-list article > .n-heading { margin-top: 0; }
.n-list h2 { font-size: 19px; overflow-wrap: anywhere; }
.n-pill { font-size: 13px; color: var(--primary); background: var(--selected); border-radius: 18px; padding: 4px 10px; }
.n-times { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.n-grant { justify-content: flex-start; margin-block: 10px; }
.n-grant input { width: 7em; }
.n-channel { padding-block: 12px; border-top: 1px solid var(--border); }
.n-channel > label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.n-channel > label input { width: 18px; height: 18px; }
.n-channel div > label, .n-times label { display: block; font-size: 15px; font-weight: 600; }
.n-channel div > label { margin-top: 12px; }
.n-channel input:not([type=checkbox]), .n-times input, .n-grant input {
  font: inherit; padding: 9px; border: 1px solid var(--control); border-radius: 6px; background:var(--surface); color: var(--text);
}
.n-channel input:not([type=checkbox]), .n-times input { display: block; width: 100%; margin-block: 5px; }
.n-preview { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--background); padding: 14px; margin-block: 8px; border-radius: 8px; }
.n-preview span { color: var(--primary); font-size: 14px; }
details { margin-block: 12px; }
summary { cursor: pointer; color: var(--primary); font-weight: 600; }
#estimate:not(:empty), #n-msg:not(:empty) { border-left: 3px solid; padding-left: 12px; margin-block: 16px; }
#file { font: inherit; min-width: 0; max-width: 100%; }
.n-metrics { width: 100%; border-collapse: collapse; margin: 10px 0; }
.n-metrics th, .n-metrics td { padding: 7px 4px; border-bottom: 1px solid var(--border); text-align: right; }
.n-metrics th:first-child { text-align: left; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (max-width: 560px) {
  .n-quotas { gap: 8px; }
  .n-quotas article { padding: 10px 12px; }
  .n-times { grid-template-columns: 1fr; }
}
