:root {
  --line: #26262a;
  --line-2: #3a3a40;
  --text: #ededed;
  --muted: #8d8d95;
  --green: #22c55e;
  --green-ink: #04210f;
  --blurple: #5865f2;
  --panel: rgba(9, 9, 10, 0.92);
  --card: rgba(15, 15, 17, 0.96);
}

* {
  box-sizing: border-box;
  margin: 0;
}

html,
body {
  height: 100%;
}

body {
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), #000 center / cover no-repeat fixed;
  color: var(--text);
  font: 13px/1.45 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
}

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

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--blurple);
  outline-offset: 1px;
}

input,
textarea,
select {
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  width: 100%;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #55555e;
}

select option {
  background: #111;
}

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

input[type="checkbox"] {
  width: auto;
  accent-color: var(--green);
}

input[type="color"] {
  width: 38px;
  height: 30px;
  padding: 2px;
}

input[type="file"] {
  padding: 6px;
}

header {
  position: relative;
  z-index: 2;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: rgba(4, 4, 5, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.brand img {
  width: 28px;
  height: 28px;
  display: block;
}

.hbtns {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.hbtns button {
  padding: 7px 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  border-right: 1px solid var(--line);
}

.hbtns button:last-child {
  border-right: 0;
}

.hbtns button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 400px;
  height: calc(100% - 48px);
}

aside,
.preview {
  background: var(--panel);
  overflow: auto;
}

aside {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.preview {
  border-left: 1px solid var(--line);
}

.side-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 600;
  margin: 14px 12px 8px;
}

.palette {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.palette button {
  padding: 14px 6px 12px;
  font-weight: 600;
  font-size: 11.5px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.palette button:nth-child(2n) {
  border-right: 0;
}

.palette button.wide {
  grid-column: span 2;
  border-right: 0;
  border-bottom: 0;
}

.palette button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.palette svg {
  display: block;
  margin: 0 auto 6px;
  width: 20px;
  height: 20px;
  stroke: #c4c4cc;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings {
  margin: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2px 12px 12px;
}

.settings label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 600;
  margin: 12px 0 6px;
}

.send {
  margin: auto 12px 12px;
  padding: 12px;
  background: var(--green);
  color: var(--green-ink);
  font-weight: 700;
  border-radius: 9px;
}

.send:hover {
  filter: brightness(1.08);
}

.send:disabled {
  opacity: 0.55;
  cursor: wait;
}

.center {
  overflow: auto;
  padding-bottom: 48px;
}

.center-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 10px;
  color: #c4c4cc;
  font-weight: 600;
}

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

.center-top small {
  color: var(--muted);
  font-weight: 400;
}

.center-top button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.04);
}

.center-top button:hover {
  background: rgba(255, 255, 255, 0.1);
}

#list {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.empty {
  border: 1px dashed var(--line-2);
  border-radius: 14px;
  background: rgba(12, 12, 13, 0.88);
  text-align: center;
  padding: 36px 12px;
  color: var(--muted);
}

.empty svg {
  width: 34px;
  height: 34px;
  fill: #2b2b30;
  display: block;
  margin: 0 auto 8px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px 12px;
}

.card.selected {
  border-color: var(--blurple);
  box-shadow: 0 0 0 1px var(--blurple);
}

.card .card {
  background: rgba(26, 26, 29, 0.97);
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 12px;
}

.card-head.pick {
  cursor: pointer;
}

.card-head .hint-sel {
  color: var(--muted);
  font-weight: 400;
  margin-left: 8px;
}

.card-actions button {
  padding: 2px 8px;
  color: var(--muted);
  border-radius: 6px;
}

.card-actions button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.fields {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.check {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--muted);
}

.sub {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.04);
  align-self: flex-start;
}

.mini:hover {
  background: rgba(255, 255, 255, 0.1);
}

.kids {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hint {
  color: var(--muted);
  font-size: 12px;
  padding: 10px;
  text-align: center;
  border: 1px dashed var(--line-2);
  border-radius: 8px;
}

.preview-title {
  display: flex;
  justify-content: center;
  padding: 14px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

.msg {
  display: flex;
  gap: 12px;
  padding: 16px 14px;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blurple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex: none;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.msg-body {
  min-width: 0;
  flex: 1;
}

.msg-name {
  font-weight: 600;
  margin-bottom: 4px;
}

.app-tag {
  background: var(--blurple);
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  margin: 0 6px;
  vertical-align: 1px;
}

.msg-time {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.nothing {
  color: var(--muted);
  padding: 6px 0;
}

.p-container {
  background: #2b2d31;
  border: 1px solid #3a3c42;
  border-left: 4px solid #3a3c42;
  border-radius: 8px;
  padding: 12px;
  margin: 4px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 440px;
}

.p-text {
  color: #dbdee1;
  word-break: break-word;
  font-size: 14px;
}

.p-text h1 {
  font-size: 20px;
}

.p-text h2 {
  font-size: 17px;
}

.p-text h3 {
  font-size: 15px;
}

.p-text small {
  color: #949ba4;
  font-size: 12px;
}

.p-text code {
  background: #1e1f22;
  padding: 1px 4px;
  border-radius: 4px;
}

.p-text pre {
  background: #1e1f22;
  padding: 8px;
  border-radius: 6px;
  white-space: pre-wrap;
}

.p-text a {
  color: #00a8fc;
}

.p-section {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.p-section > div:first-child {
  flex: 1;
  min-width: 0;
}

.p-section img,
.thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  background: #1e1f22;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6d6f78;
}

.p-sep {
  border-top: 1px solid #3f4147;
}

.p-sep.no-line {
  border-color: transparent;
}

.p-media {
  display: grid;
  gap: 4px;
  border-radius: 8px;
  overflow: hidden;
}

.p-media.c1 {
  grid-template-columns: 1fr;
}

.p-media.c2,
.p-media.c4 {
  grid-template-columns: 1fr 1fr;
}

.p-media.c3,
.p-media.c5,
.p-media.c6 {
  grid-template-columns: 1fr 1fr 1fr;
}

.p-media img,
.ph {
  width: 100%;
  height: 110px;
  object-fit: cover;
  background: #1e1f22;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6d6f78;
}

.p-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pbtn {
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  background: #4e5058;
  color: #fff;
}

.pbtn.s1 {
  background: #5865f2;
}

.pbtn.s3 {
  background: #248046;
}

.pbtn.s4 {
  background: #da373c;
}

.pbtn.disabled {
  opacity: 0.5;
}

.p-file {
  background: #1e1f22;
  border-radius: 8px;
  padding: 10px 12px;
  color: #dbdee1;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.p-file span:last-child {
  color: #949ba4;
}

.p-select {
  background: #1e1f22;
  border: 1px solid #3a3c42;
  border-radius: 8px;
  padding: 10px 12px;
  color: #b5bac1;
  display: flex;
  justify-content: space-between;
}

dialog {
  background: #0e0e0f;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  width: min(520px, 92vw);
  margin: auto;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

dialog textarea {
  min-height: 240px;
  margin-top: 10px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
}

dialog .row {
  margin-top: 10px;
  justify-content: flex-end;
}

#toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: #17171a;
  border: 1px solid var(--line-2);
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 60;
  display: none;
  max-width: 90vw;
  white-space: pre-line;
}

#toast.ok {
  border-color: var(--green);
}

#toast.bad {
  border-color: #da373c;
}

@media (max-width: 960px) {
  body {
    overflow: auto;
  }

  main {
    grid-template-columns: 1fr;
    height: auto;
  }

  aside {
    border-right: 0;
    padding-bottom: 12px;
  }

  .send {
    margin-top: 0;
  }

  .preview {
    border-left: 0;
    min-height: 320px;
  }

  .hbtns button {
    padding: 7px 9px;
  }

  .brand span {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(900px 520px at 10% -8%, rgba(88, 101, 242, 0.18), transparent 60%),
    radial-gradient(800px 520px at 100% 112%, rgba(34, 197, 94, 0.1), transparent 60%),
    linear-gradient(rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.52)),
    #000 center / cover no-repeat fixed;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #2c2c33 transparent;
}

header {
  height: 56px;
  background: linear-gradient(180deg, rgba(16, 16, 21, 0.94), rgba(6, 6, 8, 0.9));
  border-bottom: 1px solid transparent;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.5);
}

main {
  height: calc(100% - 56px);
}

.brand img {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 12px rgba(170, 180, 255, 0.5));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text span {
  font-weight: 800;
  letter-spacing: 0.24em;
  background: linear-gradient(90deg, #fff, #a7abc4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 500;
}

.hbtns {
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.hbtns button {
  transition: color 0.15s, background 0.15s;
}

.palette button,
.send,
.card,
.mini {
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.12s, filter 0.15s;
}

.palette {
  background: rgba(255, 255, 255, 0.015);
}

.palette button:hover {
  background: linear-gradient(180deg, rgba(88, 101, 242, 0.2), rgba(88, 101, 242, 0.04));
}

.palette button:hover svg {
  stroke: #b4baff;
  transform: translateY(-1px);
}

.palette svg {
  transition: stroke 0.15s, transform 0.15s;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--blurple);
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.2);
}

.card {
  background: linear-gradient(180deg, rgba(23, 23, 28, 0.96), rgba(13, 13, 16, 0.96));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.card:hover {
  border-color: #36363e;
}

.card.selected {
  box-shadow: 0 0 0 1px var(--blurple), 0 0 30px rgba(88, 101, 242, 0.3);
}

.card .card {
  background: rgba(30, 30, 35, 0.97);
  box-shadow: none;
}

.send {
  background: linear-gradient(180deg, #34d86f, #16a34a);
  box-shadow: 0 8px 26px rgba(34, 197, 94, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.send:active {
  transform: translateY(1px);
}

.center-top {
  padding: 16px 20px 12px;
}

.center-top > span:first-child {
  font-size: 15px;
  font-weight: 700;
  color: #f2f2f5;
}

.empty {
  padding: 60px 12px 52px;
  background: radial-gradient(circle at 50% 0%, rgba(88, 101, 242, 0.14), transparent 62%), rgba(12, 12, 14, 0.88);
}

.empty svg {
  display: none;
}

.empty::before {
  content: "";
  display: block;
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
  background: url("logo.png") center / contain no-repeat;
  opacity: 0.6;
  filter: drop-shadow(0 0 18px rgba(170, 180, 255, 0.4));
}

.preview {
  background: #313338;
}

.preview-title {
  background: #2b2d31;
  border-bottom-color: #1e1f22;
}

.msg-name {
  color: #f2f3f5;
}

#toast {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  animation: rise 0.25s ease-out;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

:root {
  --panel: rgba(9, 9, 12, 0.74);
  --card: rgba(18, 18, 22, 0.82);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --silver: #e9e9ee;
  color-scheme: dark;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
}

body {
  font-family: "Instrument Sans", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: radial-gradient(ellipse at 50% 0%, rgba(88, 101, 242, 0.1), transparent 60%), linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), #020203 center / cover no-repeat fixed;
}

.hide {
  display: none !important;
}

header {
  background: rgba(5, 5, 7, 0.78);
  backdrop-filter: blur(16px);
}

.brand {
  cursor: pointer;
}

.brand img {
  filter: drop-shadow(0 0 10px rgba(200, 205, 255, 0.35));
}

.brand span,
.brand span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

aside,
.preview {
  backdrop-filter: blur(14px);
}

.palette,
.settings {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--line);
}

.palette button {
  transition: background 0.15s, color 0.15s;
}

.palette button:hover svg {
  stroke: #fff;
}

.palette button:active {
  transform: scale(0.97);
}

.settings label,
.side-label {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 11.5px;
}

.send {
  background: linear-gradient(180deg, #2fd46b, #1fb257);
  box-shadow: 0 6px 22px rgba(34, 197, 94, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  border-radius: 11px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.send:hover {
  transform: translateY(-1px);
}

.card {
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(24, 24, 29, 0.88), rgba(14, 14, 18, 0.88));
  transition: border-color 0.15s;
}

.card:hover {
  border-color: var(--line-2);
}

.card.selected {
  box-shadow: 0 0 0 1px var(--blurple), 0 0 28px rgba(88, 101, 242, 0.22);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--blurple);
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.2);
  outline: none;
}

.preview {
  background: rgba(14, 15, 18, 0.8);
}

.tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.tab {
  padding: 6px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 600;
}

.tab.on {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.copy {
  margin-left: auto;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #cfcfd6;
}

.copy:hover {
  background: rgba(255, 255, 255, 0.08);
}

.msg {
  background: #313338;
  margin: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-family: "gg sans", "Noto Sans", "Instrument Sans", system-ui, sans-serif;
}

#jsonView {
  margin: 14px;
  padding: 14px;
  background: #09090b;
  border: 1px solid var(--line);
  border-radius: 14px;
  font: 12px/1.55 ui-monospace, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-all;
  color: #c9d1d9;
}

#toast {
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

#mtabs {
  display: none;
}

@media (max-width: 960px) {
  main {
    display: block;
    height: auto;
    min-height: calc(100% - 48px);
    padding-bottom: 64px;
  }

  aside,
  .center,
  .preview {
    display: none;
    border: 0;
  }

  main[data-view="add"] aside {
    display: flex;
  }

  main[data-view="build"] .center,
  main[data-view="preview"] .preview {
    display: block;
  }

  #mtabs {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    background: rgba(6, 6, 8, 0.94);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    backdrop-filter: blur(12px);
  }

  #mtabs button {
    flex: 1;
    padding: 14px 6px;
    color: var(--muted);
    font-weight: 600;
  }

  #mtabs button.on {
    color: #fff;
    box-shadow: inset 0 2px 0 var(--green);
  }
}


:root {
  --blurple: #fff;
  --green: #fff;
  --green-ink: #000;
  --panel: rgba(0, 0, 0, 0.8);
  --card: rgba(10, 10, 10, 0.9);
  --line: rgba(255, 255, 255, 0.13);
  --line-2: rgba(255, 255, 255, 0.3);
  --silver: #fff;
}

body {
  background: #000;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  background-attachment: fixed;
}


header {
  background: rgba(0, 0, 0, 0.82);
}

aside,
.preview {
  background: rgba(0, 0, 0, 0.8);
}

.brand img {
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.25));
}

.send {
  background: #fff;
  color: #000;
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.14), inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.card {
  background: rgba(10, 10, 10, 0.9);
}

.card.selected {
  border-color: #fff;
  box-shadow: 0 0 0 1px #fff, 0 0 26px rgba(255, 255, 255, 0.12);
}

input:focus,
textarea:focus {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14);
}

.tab.on {
  background: #fff;
  color: #000;
}

.avatar,
.app-tag {
  background: #5865f2;
  color: #fff;
}

#toast.ok {
  border-color: #fff;
}

.dd {
  position: relative;
}

.dd.open {
  z-index: 40;
}

.dd-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
}

.dd-btn:hover,
.dd.open .dd-btn {
  border-color: #fff;
}

.dd-btn svg {
  width: 16px;
  height: 16px;
  flex: none;
  stroke: #bbb;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s;
}

.dd.open .dd-btn svg {
  transform: rotate(180deg);
}

.dd-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 41;
  max-height: 240px;
  overflow: auto;
  padding: 4px;
  background: #0a0a0a;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.75);
}

.dd-opt {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border-radius: 7px;
  text-align: left;
  color: #cfcfcf;
}

.dd-opt:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.dd-opt.on {
  background: #fff;
  color: #000;
  font-weight: 600;
}

header {
  border-bottom: 1px solid var(--line);
  border-image: none;
}

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

.upl-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 9px 15px;
  border: 1px dashed var(--line-2);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-weight: 600;
}

.upl-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.upl-btn:focus-within {
  outline: 2px solid #fff;
  outline-offset: 1px;
}

.upl-btn input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upl-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}
