/* NetBaze — light, minimal, Artlogic-inspired. Lots of whitespace, thin lines. */
:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --line: #e5e7eb;
  --line-soft: #f0f1f3;
  --text: #111827;
  --muted: #6b7280;
  --accent: #2563eb;
  --lock: #b45309;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 15px/1.55 -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* Top bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; border-bottom: 1px solid var(--line); background: var(--bg);
  position: sticky; top: 0; z-index: 5;
}
.brand { font-weight: 700; letter-spacing: 1px; font-size: 17px; }
.view-as { color: var(--muted); font-size: 13px; }
.view-as select {
  margin-left: 8px; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px;
}

/* Layout */
.layout {
  display: grid; grid-template-columns: 1fr 300px; gap: 40px;
  max-width: 1160px; margin: 28px auto; padding: 0 28px;
}
@media (max-width: 860px) { .layout { grid-template-columns: 1fr; } }
h2 { font-size: 15px; margin: 0; font-weight: 600; letter-spacing: .2px; }
h2 small { color: var(--muted); font-weight: 400; }
.hint { color: var(--muted); font-size: 13px; margin: 4px 0 18px; }
.section-head { display: flex; align-items: center; justify-content: space-between; }

/* Buttons */
.btn {
  background: var(--text); color: #fff; border: 0; border-radius: 6px;
  padding: 8px 15px; font-size: 13px; cursor: pointer; font-weight: 500;
}
.btn:hover { opacity: .9; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.danger { background: transparent; color: #b91c1c; border: 1px solid #fecaca; }
.form-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.create-panel .form-actions button[type="button"] { padding: 9px 16px; font-size: 14px; border-radius: 6px; cursor: pointer; }

/* Cards — gallery list */
.cards { display: flex; flex-direction: column; gap: 14px; min-height: 60px; }
.card {
  display: flex; gap: 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px; cursor: grab; transition: box-shadow .15s, border-color .15s;
}
.card:hover { box-shadow: 0 1px 6px rgba(17,24,39,.06); border-color: #d1d5db; }
.card.dragging { opacity: .5; border-color: var(--accent); }
.card-body { flex: 1; min-width: 0; }
.thumb {
  width: 92px; height: 92px; flex: 0 0 92px; border-radius: 8px;
  display: flex; align-items: flex-end; justify-content: center;
  font-size: 9px; color: rgba(255,255,255,.9); padding-bottom: 5px;
  text-transform: uppercase; letter-spacing: 1px;
}
.thumb-art { background: linear-gradient(135deg, #7c6ba8, #4b3f78); }
.thumb-estate { background: linear-gradient(135deg, #4a8f86, #2f5d6b); }
.card-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.card .type { color: var(--accent); font-weight: 500; }
.card .state {
  text-transform: uppercase; letter-spacing: .5px; font-size: 10px;
  border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; color: var(--muted);
}
.artist { font-weight: 600; font-size: 14px; margin-top: 6px; }
.card h3 { margin: 6px 0 12px; font-size: 16px; font-weight: 600; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 20px; }
.f { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.f span { color: var(--muted); }
.hidden {
  margin-top: 12px; font-size: 12px; color: var(--lock);
  border-top: 1px dashed var(--line); padding-top: 9px;
}
.offers { margin-top: 10px; font-size: 12px; color: var(--muted); }
.offers a.mkoffer { color: var(--accent); text-decoration: none; margin-left: 10px; }

/* Create / edit form */
.create-panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 20px 22px; margin: 12px 0 18px;
}
.create-panel .row { display: flex; align-items: center; gap: 12px; margin-bottom: 7px; }
.create-panel label { width: 150px; flex: 0 0 150px; color: var(--muted); font-size: 12.5px; text-align: left; }
.create-panel input, .create-panel select, .create-panel textarea {
  flex: 1; padding: 7px 10px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font-size: 13.5px; font-family: inherit;
}
.create-panel input.chk { flex: 0 0 auto; width: 17px; height: 17px; accent-color: var(--accent); }
.create-panel input:focus, .create-panel select:focus, .create-panel textarea:focus {
  outline: none; border-color: var(--accent);
}
.create-panel button[type="submit"] {
  background: var(--accent); color: #fff; border: 0; border-radius: 6px;
  padding: 9px 18px; cursor: pointer; font-size: 14px; font-weight: 500;
}

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--line); margin: 4px 0 18px; }
.create-panel .tab {
  background: transparent; border: 0; border-bottom: 2px solid transparent;
  color: var(--muted); padding: 9px 14px; font-size: 13px; cursor: pointer; border-radius: 0;
}
.create-panel .tab:hover { color: var(--text); }
.create-panel .tab.active { color: var(--text); border-bottom-color: var(--text); font-weight: 500; }
.tabpanel { display: none; }
.tabpanel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 32px; align-items: start; }
.tabpanel .row--full { grid-column: 1 / -1; }
@media (max-width: 720px) { .tabpanel.active { grid-template-columns: 1fr; } }
#create-msg { color: var(--lock); font-size: 13px; }

/* Sensitivity badges */
.sens {
  font-size: 10px; padding: 1px 7px; border-radius: 999px; margin-left: 6px;
  border: 1px solid var(--line); text-transform: lowercase; letter-spacing: 0; font-weight: 500;
}
.sens-public { color: #047857; border-color: #a7f3d0; background: #ecfdf5; }
.sens-internal { color: #1d4ed8; border-color: #bfdbfe; background: #eff6ff; }
.sens-restricted { color: #b45309; border-color: #fde68a; background: #fffbeb; }
.sens-confidential { color: #c2410c; border-color: #fed7aa; background: #fff7ed; }
.sens-secret { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }

/* Upload dropzone */
.dropzone {
  border: 1.5px dashed var(--line); border-radius: 10px; padding: 34px 16px;
  text-align: center; color: var(--muted); transition: .15s; font-size: 14px;
}
.dropzone.over { border-color: var(--accent); color: var(--text); background: #f8faff; }
.uploads { list-style: none; padding: 0; margin: 14px 0 0; }
.uploads li { font-size: 13px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.uploads a { color: var(--accent); text-decoration: none; }
