:root {
  --nd-bg: #f5f5f5;
  --nd-panel: #fff;
  --nd-line: #dedede;
  --nd-ink: #202124;
  --nd-muted: #6f747a;
  --nd-blue: #0288d1;
  --nd-green: #20b45b;
  --nd-purple: #5a2bbd;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--nd-bg);
  color: var(--nd-ink);
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-size: 14px;
}

button, input, select, textarea {
  font: inherit;
}

.nd-app {
  min-height: 100vh;
  padding-top: 58px;
  padding-left: 54px;
}

.nd-topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 210px minmax(280px, 430px) 1fr auto;
  align-items: center;
  gap: 18px;
  height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid var(--nd-line);
  background: #fff;
}

.nd-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.nd-menu {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: #eee;
}

.nd-logo {
  height: 39px;
  max-width: 110px;
  object-fit: contain;
}

.nd-search {
  position: relative;
}

.nd-search input {
  width: 100%;
  height: 38px;
  border: 1px solid #bbb;
  border-radius: 999px;
  padding: 0 18px 0 38px;
  outline: none;
  background: #fff;
}

.nd-search::before {
  content: "⌕";
  position: absolute;
  left: 15px;
  top: 8px;
  color: #777;
  font-size: 22px;
  line-height: 1;
}

.nd-top-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nd-bell {
  position: relative;
}

.nd-bell::after {
  content: "2";
  position: absolute;
  top: -10px;
  right: -10px;
  min-width: 16px;
  height: 16px;
  border-radius: 4px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  text-align: center;
}

.nd-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #eee;
  color: #777;
}

.nd-sidebar {
  position: fixed;
  z-index: 19;
  inset: 58px auto 0 0;
  width: 54px;
  border-right: 1px solid var(--nd-line);
  background: #fff;
}

.nd-nav-link {
  display: grid;
  place-items: center;
  width: 54px;
  height: 47px;
  color: #4a4a4a;
  text-decoration: none;
  border-left: 4px solid transparent;
}

.nd-nav-link.is-active {
  border-left-color: var(--nd-blue);
  background: #e3f2fd;
}

.nd-content {
  padding: 22px 24px;
}

.nd-modern-content {
  padding: 0;
}

.nd-app-modern .modern-full {
  min-height: calc(100vh - 58px);
}

.nd-card {
  border: 1px solid var(--nd-line);
  background: var(--nd-panel);
}

.nd-list-card {
  min-height: calc(100vh - 92px);
}

.nd-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 16px;
}

.nd-page-head h1 {
  margin: 0;
  font-size: 21px;
  font-weight: 400;
}

.nd-add {
  min-width: 58px;
  height: 36px;
  border: 0;
  border-radius: 3px;
  background: #0288d1;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.nd-table {
  width: 100%;
  border-collapse: collapse;
}

.nd-table th,
.nd-table td {
  height: 48px;
  border-top: 1px solid var(--nd-line);
  padding: 0 16px;
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

.nd-table th {
  font-weight: 500;
  color: #111;
}

.nd-table tr:hover td {
  background: #fafafa;
}

.nd-action {
  border: 0;
  background: transparent;
  color: #000;
  font-size: 18px;
  padding: 6px;
}

.nd-client-name {
  color: #111;
  font-weight: 500;
  text-decoration: none;
}

.nd-small {
  color: var(--nd-muted);
  font-size: 12px;
}

.nd-dispute-page {
  padding: 20px 20px 28px;
  background: #fff;
  min-height: calc(100vh - 58px);
}

.nd-dispute-head {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 34px;
  padding: 24px 16px 20px;
  border-bottom: 1px solid var(--nd-line);
}

.nd-client-title {
  margin: 0;
  font-size: 26px;
  font-weight: 500;
}

.nd-dispute-controls {
  display: grid;
  grid-template-columns: 200px 40px 1fr;
  gap: 20px;
  align-items: center;
}

.nd-open-btn,
.nd-auto-btn {
  height: 36px;
  border: 0;
  border-radius: 3px;
  color: #fff;
  background: #0288d1;
  box-shadow: 0 2px 7px rgba(0,0,0,.25);
}

.nd-auto-btn {
  background: linear-gradient(#7653ca, #4c25a8);
  width: 240px;
}

.nd-flat-select {
  height: 40px;
  border: 0;
  background: #f1f1f1;
  padding: 0 12px;
  color: #555;
}

.nd-score-area {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 34px;
  padding: 22px 16px;
}

.nd-bureau-icons {
  display: flex;
  gap: 90px;
  align-items: center;
  margin-top: 24px;
  font-size: 28px;
  font-weight: 900;
}

.tu { color: #00a9cf; }
.ex { color: #3b44b8; }
.eq { color: #ac1f36; }

.nd-auto-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 22px;
  align-items: center;
}

.nd-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-top: 22px;
}

.nd-wide-select {
  grid-column: 1 / -1;
}

.nd-add-account-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 10px 0 16px;
}

.nd-bankruptcy-row {
  display: grid;
  grid-template-columns: 1fr 460px 220px;
  gap: 16px;
  align-items: center;
}

.nd-outline-btn {
  height: 50px;
  border: 1px solid #0288d1;
  background: #fff;
  color: #0288d1;
  font-size: 20px;
}

.nd-switch {
  color: var(--nd-muted);
}

.nd-section-title {
  padding: 16px;
  font-size: 20px;
  font-weight: 400;
}

.nd-collapse {
  margin: 28px 16px;
  border-radius: 18px;
  overflow: hidden;
}

.nd-collapse-title {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 48px;
  padding: 0 18px;
  background: #098ad1;
  color: #fff;
}

.nd-alt-grid {
  margin-top: 24px;
}

.nd-modal-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: start center;
  padding: 18px;
  background: rgba(0,0,0,.35);
  overflow: auto;
}

.nd-modal {
  width: min(680px, 94vw);
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  padding: 34px;
}

.nd-modal h2 {
  margin: 0 0 26px;
  font-weight: 400;
}

.nd-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.nd-field {
  border: 1px solid #bdbdbd;
  padding: 8px 10px;
}

.nd-field label {
  display: block;
  color: #777;
  font-size: 12px;
}

.nd-field input,
.nd-field textarea {
  width: 100%;
  border: 0;
  outline: 0;
  resize: vertical;
}

.nd-field.wide {
  grid-column: 1 / -1;
}

.nd-doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 54px;
  margin: 18px 0;
}

.nd-doc-box {
  text-align: center;
}

.nd-doc-thumb {
  display: grid;
  place-items: center;
  height: 105px;
  border: 1px solid #263cff;
  color: #999;
}

.nd-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  margin-top: 24px;
}

.nd-link-btn {
  border: 0;
  background: transparent;
  color: #0288d1;
}

@media (max-width: 900px) {
  .nd-topbar {
    grid-template-columns: auto 1fr auto;
  }
  .nd-brand span,
  .nd-top-spacer {
    display: none;
  }
  .nd-dispute-head,
  .nd-score-area,
  .nd-auto-grid,
  .nd-bankruptcy-row {
    grid-template-columns: 1fr;
  }
}
