:root {
  --primary: #1c77c3;
  --primary-soft: rgba(28, 119, 195, 0.12);
  --surface: #ffffff;
  --surface-soft: #f5f7fb;
  --ink: #0f172a;
  --muted: #94a3b8;
  --border: #d9e1ec;
  --radius-lg: 16px;
  --radius-sm: 12px;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: var(--surface-soft);
  color: var(--ink);
}

.nb-shell {
  min-height: 100vh;
  background: var(--surface-soft);
  display: flex;
  flex-direction: column;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

textarea,
input {
  font: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  width: 100%;
  background: #fff;
  color: var(--ink);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.nb-field input:not(.nb-hidden-input),
.nb-field textarea {
  font-size: 13px;
  line-height: 1.4;
}

.nb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
  gap: 16px;
}

.nb-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  display: grid;
  place-items: center;
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.nb-icon img {
  width: 18px;
  height: 18px;
  display: block;
}

.nb-icon.dirty {
  background: var(--primary-soft);
  border-color: rgba(28, 119, 195, 0.3);
}

.nb-icon[aria-disabled="true"],
.nb-icon[disabled] {
  opacity: 0.6;
  cursor: default;
}

.nb-title {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nb-title strong {
  font-size: 18px;
}

.nb-title span {
  font-size: 13px;
  color: var(--muted);
}

.nb-main {
  padding: 18px;
  flex: 1;
}

.nb-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nb-field {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  position: relative;
}

.nb-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 13px;
}

.nb-counter {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 11px;
  color: var(--muted);
}

.nb-category {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}

.nb-category button {
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-soft);
  font-weight: 600;
  color: var(--muted);
  transition: all 0.2s ease;
  font-size: 12px;
}

.nb-category button.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.nb-location {
  display: flex;
  gap: 12px;
  align-items: stretch;
  margin-top: 8px;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
  background: var(--surface-soft);
}

.nb-location-info {
  display: flex;
  gap: 12px;
  align-items: center;
  flex: 1;
}

.nb-location-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.nb-location-icon img {
  width: 18px;
  height: 18px;
  display: block;
}

.nb-hidden-input {
  display: none;
}

.nb-location-info strong {
  display: block;
  font-size: 14px;
}

.nb-location-info p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.nb-location-action {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 12px;
}

.nb-info {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #e8f4ff;
  color: var(--ink);
  margin-top: 8px;
}

.nb-info-icon img {
  width: 18px;
  height: 18px;
  display: block;
}

.nb-info-text {
  color: #1c77c3;
  font-size: 12px;
}

.nb-info-text strong {
  color: #1c77c3;
}

.nb-info-close {
  font-size: 18px;
  color: var(--muted);
}

.nb-upload {
  margin-top: 16px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
  text-align: center;
}

.nb-upload-icon {
  font-size: 36px;
}

.nb-upload p {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}

.nb-upload small {
  color: var(--muted);
  text-align: center;
}

.nb-upload-list {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.nb-upload-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 12px;
  color: var(--ink);
}

.nb-upload-item span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nb-upload-remove {
  background: none;
  border: none;
  color: #ef4444;
  font-weight: 700;
  cursor: pointer;
  margin-left: 12px;
}

.nb-footer {
  margin: 24px 18px 32px;
  display: flex;
  gap: 12px;
}

.nb-btn {
  flex: 1;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.nb-btn-secondary {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #64748b;
}

.nb-btn-secondary.dirty {
  border-color: var(--primary);
  color: var(--primary);
}

.nb-btn-primary {
  background: #cbd5e1;
  color: #fff;
  border: none;
  cursor: default;
}

.nb-btn-primary.enabled {
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(28, 119, 195, 0.22);
}

.nb-btn[aria-disabled="true"],
.nb-btn[disabled] {
  cursor: default;
  pointer-events: none;
  opacity: 0.9;
}
@media (min-width: 480px) {
  body {
    display: flex;
    justify-content: center;
    background: #dde6f3;
  }

  .nb-shell {
    max-width: 420px;
    width: 100%;
    min-height: 100vh;
    background: var(--surface-soft);
    box-shadow: var(--shadow);
  }
}

