:root {
  --bg:        #0b0c0e;
  --surface:   #17191b;
  --surface-2: #1e2124;
  --border:    #2b2e31;
  --border-hi: #3a3d40;
  --text:      #ece9e4;
  --text-mute: #8b8f93;
  --accent:    #ffb454;
  --accent-hi: #ffc978;
  --accent-dim: rgba(255,180,84,0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Roboto", sans-serif;
  display: flex;
  flex-direction: column;
}

.navbar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: var(--accent);
  flex-shrink: 0;
}

.logo-text {
  font-family: "Roboto Mono", monospace;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
}

.logo-text span { color: var(--text-mute); }

.navbar-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.navbar-item a {
  display: block;
  padding: 8px 14px;
  border-radius: 6px;
  color: var(--text-mute);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s ease, background 0.15s ease;
}

.navbar-item a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.navbar-item a.active {
  color: var(--accent);
  background: var(--accent-dim);
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.card {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.dropzone {
  border: 1px dashed var(--border-hi);
  border-radius: 10px;
  padding: 56px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.dropzone-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--text-mute);
  transition: color 0.15s ease;
}

.dropzone:hover .dropzone-icon,
.dropzone.dragover .dropzone-icon {
  color: var(--accent);
}

.dropzone-title {
  font-size: 15px;
  color: var(--text);
  margin: 0 0 4px;
}

.dropzone-sub {
  font-size: 13px;
  color: var(--text-mute);
  margin: 0 0 20px;
}

.filename {
  font-family: "Roboto Mono", monospace;
  font-size: 12px;
  color: var(--accent);
  margin: 0 0 20px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: none;
}

.upload-group {
  display: inline-flex;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-hi);
}

.card > #uploadBtn {
  display: block;
  width: 100%;
  margin-top: 16px;
  background: var(--accent);
  color: #241605;
  border-color: var(--accent);
}

.card > #uploadBtn:hover { background: var(--accent-hi); }

button {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 500;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-hi);
  border-radius: 8px;
  padding: 9px 18px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

button:hover { background: #26292c; }

.upload-group button {
  border: none;
  border-radius: 0;
}

.btn-primary,
.upload-group #uploadBtn {
  background: var(--accent);
  color: #241605;
  border-color: var(--accent);
}

.btn-primary:hover,
.upload-group #uploadBtn:hover { background: var(--accent-hi); }

.btn-chevron {
  border-left: 1px solid var(--border-hi);
  padding: 9px 12px;
}

input[type="file"] { display: none; }

.actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.bed-settings {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.bed-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bed-field label {
  font-size: 12px;
  color: var(--text-mute);
}

.bed-field .input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.bed-field input[type="number"] {
  width: 100%;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-hi);
  border-radius: 8px;
  padding: 9px 34px 9px 12px;
  font-family: "Roboto Mono", monospace;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bed-field input[type="number"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.bed-field .unit {
  position: absolute;
  right: 12px;
  font-size: 12px;
  color: var(--text-mute);
  pointer-events: none;
}

textarea {
  width: 100%;
  margin-top: 16px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: "Roboto Mono", monospace;
  font-size: 12px;
  padding: 12px;
  white-space: pre;
  resize: vertical;

  scrollbar-width: thin;
  scrollbar-color: var(--border-hi) var(--surface-2);
}

textarea::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

textarea::-webkit-scrollbar-track {
  background: var(--surface-2);
}

textarea::-webkit-scrollbar-thumb {
  background: var(--border-hi);
  border-radius: 8px;
  border: 3px solid var(--surface-2);
}

textarea::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

textarea::-webkit-scrollbar-corner {
  background: var(--surface-2);
}