.design-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.design-filters { margin-top: 14px; }
.design-accounts { margin-top: 8px; }
.design-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 16px; }
.design-card {
  display: flex; flex-direction: column; min-width: 0;
  background: #fff; border: 1px solid #e3eefb; border-radius: 18px; padding: 10px;
  box-shadow: 0 10px 28px rgba(16, 32, 68, .08);
}
.design-preview {
  position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 12px;
  overflow: hidden; background: #101820; cursor: zoom-in;
}
.design-preview img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: contain; object-position: center top;
  display: block; background: #101820;
}
.design-kind {
  position: absolute; left: 8px; top: 8px; z-index: 1;
  background: rgba(255,255,255,.92); color: #12203f; border-radius: 999px;
  padding: 4px 8px; font-size: 11px; font-weight: 800;
}
.design-meta { padding: 10px 4px 2px; text-align: left; min-width: 0; }
.design-meta strong {
  display: block; color: #12203f; font-size: 14px; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.design-meta span { display: block; margin-top: 2px; color: #6d7c99; font-size: 12px; font-weight: 700; }
.design-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.design-actions .is-edit { grid-column: 1 / -1; }
.design-actions .btn { width: 100%; min-height: 36px; padding: 8px 6px; font-size: 12px; min-width: 0; }
.design-view {
  width: min(880px, 100%); display: grid; grid-template-columns: minmax(0, 400px) minmax(220px, 1fr);
  gap: 18px; align-items: center; position: relative;
  background: #fff; color: #12203f; border-radius: 22px; padding: 16px;
}
.design-view img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: #101820; border-radius: 16px; display: block;
}
.design-view h3 { margin: 6px 36px 6px 0; font-size: 22px; line-height: 1.25; }
.design-view p { margin: 0 0 14px; color: #6d7c99; font-weight: 700; }
.design-list > .empty { grid-column: 1 / -1; }
.design-view .design-kind { position: static; display: inline-block; }
.design-view .design-actions { grid-template-columns: 1fr; }
@media (max-width: 800px) {
  .design-head { align-items: stretch; }
  .design-head .btn { width: 100%; }
  .design-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .design-actions .btn { min-height: 42px; }
  .design-view { grid-template-columns: 1fr; width: 100%; max-height: 92vh; overflow: auto; }
  .design-view img { max-height: 54vh; }
}
@media (hover: none) {
  .design-card:hover, .design-card:active { transform: none; }
}
.ed-icons { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 10px; }
.ed-icon {
  width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px;
  background: #243246; color: #e8eef8; display: grid; place-items: center;
}
.ed-icon svg { width: 16px; height: 16px; display: block; }
.ed-icon.on, .ed-icon:hover { background: #2f6bff; color: #fff; }
.studio-editor {
  position: fixed; inset: 0; z-index: 40; display: grid;
  grid-template-rows: 58px minmax(0, 1fr);
  background: #121820; color: #e8eef8;
  font-family: Nunito, sans-serif;
}
.ed-top, .ed-side, .ed-inspect { background: #1b2430; }
.ed-top {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  border-bottom: 1px solid #2c394c; flex-wrap: wrap;
}
.ed-top input[type="text"], .ed-top select { background: #101820; color: #fff; border: 1px solid #33465f; border-radius: 8px; padding: 8px 10px; }
.ed-top input[type="text"] { width: 160px; }
.ed-tick { display: inline-flex; align-items: center; gap: 4px; color: #d5e2f4; font-size: 12px; font-weight: 800; }
.ed-tick input { accent-color: #2f6bff; width: 14px; height: 14px; }
.ed-top select { max-width: 180px; }
.ed-top #edAccount { max-width: 150px; }
.ed-top .spacer { flex: 1; }
.ed-tools { display: flex; gap: 4px; }
.ed-tool, .ed-mini {
  border: 0; background: #243246; color: #e8eef8; border-radius: 8px; padding: 7px 10px; font-weight: 700;
}
.ed-board {
  border: 0; background: #243246; color: #e8eef8; border-radius: 8px; padding: 7px 10px; font-weight: 700;
}
.ed-board.on { background: #2f6bff; color: #fff; }
.ed-board:hover { background: #34517a; }
.ed-board.on:hover { background: #3d7cff; }
.ed-tool, .ed-act {
  width: 34px; height: 34px; padding: 0; display: grid; place-items: center;
}
.ed-tool svg, .ed-act svg { width: 16px; height: 16px; display: block; }
.ed-tool.on, .ed-mini.on { background: #2f6bff; color: #fff; }
.ed-tool:hover, .ed-act:hover, .ed-mini:hover { background: #34517a; }
.ed-tool.on:hover, .ed-mini.on:hover { background: #3d7cff; }
.ed-body { display: grid; grid-template-columns: 280px minmax(0, 1fr) 320px; min-height: 0; }
.ed-side, .ed-inspect { overflow: auto; padding: 12px; }
.ed-side { border-right: 1px solid #2c394c; }
.ed-inspect { border-left: 1px solid #2c394c; }
.ed-stage { overflow: auto; background:
  linear-gradient(45deg, #1a1f27 25%, transparent 25%),
  linear-gradient(-45deg, #1a1f27 25%, transparent 25%),
  linear-gradient(45deg, transparent 75%, #1a1f27 75%),
  linear-gradient(-45deg, transparent 75%, #1a1f27 75%);
  background-size: 24px 24px; background-position: 0 0, 0 12px, 12px -12px, -12px 0; background-color: #252c36;
  padding: 28px;
}
.ed-stage canvas { display: block; box-shadow: 0 18px 50px rgba(0,0,0,.35); background: transparent; cursor: crosshair; }
.ed-layer {
  display: grid; grid-template-columns: 16px 22px 1fr auto; gap: 6px; align-items: center;
  padding: 6px; border-radius: 8px; margin-bottom: 4px; background: #121a24; cursor: grab;
}
.ed-layer.on { outline: 2px solid #2f6bff; }
.ed-layer.dragging { opacity: .4; }
.ed-layer.drop { outline: 2px solid #00ddeb; }
.ed-grip { color: #8ea0b8; font-size: 11px; letter-spacing: -1px; cursor: grab; }
.ed-layer strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.ed-layer em { font-style: normal; font-size: 10px; color: #8ea0b8; }
.ed-presets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-top: 8px; }
.ed-presets button {
  display: grid; justify-items: center; gap: 2px; border: 0; background: #243246; color: #e8eef8;
  border-radius: 8px; padding: 7px 2px 5px; font-size: 10px; font-weight: 800;
}
.ed-presets svg { width: 16px; height: 16px; }
.ed-presets button:hover { background: #2f6bff; }
.ed-modes { display: flex; gap: 4px; margin-bottom: 8px; }
.ed-modes .ed-mini { flex: 1; }
.ed-colorline { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.ed-colorline input[type="color"] { width: 42px; height: 34px; padding: 0; border: 0; background: transparent; flex: none; }
.ed-colorline input[type="text"] { flex: 1; min-width: 0; box-sizing: border-box; background: #101820; color: #fff; border: 1px solid #33465f; border-radius: 8px; padding: 8px; }
.ed-colorline .ed-mini { flex: 1; }
.ed-drop { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; }
.ed-drop svg { width: 16px; height: 16px; }
.ed-swatches { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 8px; }
.ed-swatch { width: 18px; height: 18px; border-radius: 5px; border: 1px solid rgba(255,255,255,.4); padding: 0; cursor: pointer; }
.ed-swatch:hover { transform: scale(1.15); }
.ed-gradbar { height: 16px; border-radius: 8px; margin: 0 0 8px; border: 1px solid #33465f; }
.ed-stops { display: grid; gap: 6px; margin-bottom: 8px; }
.ed-stop { display: grid; grid-template-columns: 34px 1fr 1fr 26px; gap: 4px; align-items: end; }
.ed-stop label { display: grid; gap: 2px; font-size: 11px; color: #9aadc4; }
.ed-stop input[type="color"] { width: 34px; height: 32px; padding: 0; border: 0; background: transparent; }
.ed-stop input[type="number"] {
  width: 100%; box-sizing: border-box; background: #101820; color: #fff;
  border: 1px solid #33465f; border-radius: 8px; padding: 6px;
}
.ed-stop button { height: 32px; border: 0; border-radius: 8px; background: #243246; color: #fff; }
.ed-menu {
  position: fixed; z-index: 70; min-width: 176px; padding: 4px;
  background: #1b2430; border: 1px solid #33465f; border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
}
.ed-menu button {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  color: #e8eef8; border-radius: 7px; padding: 8px 10px; font-weight: 700;
}
.ed-menu button:hover:not(:disabled) { background: #2f6bff; }
.ed-menu button:disabled { opacity: .35; }
.ed-menu hr { border: 0; border-top: 1px solid #2c394c; margin: 4px 0; }
.ed-layer button, .ed-inspect button, .ed-side button { font: inherit; }
.ed-eye { width: 22px; height: 22px; border: 0; border-radius: 6px; background: #2a384c; color: #fff; }
.ed-group {
  background: #121a24; border: 1px solid #2c394c; border-radius: 12px;
  padding: 10px 10px 2px; margin: 0 0 10px;
}
.ed-group .ed-kicker { margin-bottom: 8px; }
.ed-group .ed-field:last-child { margin-bottom: 8px; }
.ed-kicker { margin: 0 0 8px; font-size: 11px; letter-spacing: .08em; color: #8ea0b8; font-weight: 800; }
.ed-sub { margin: 8px 0 6px; font-size: 11px; letter-spacing: .04em; color: #8ea0b8; font-weight: 800; }
.ed-field { display: grid; gap: 4px; margin-bottom: 10px; font-size: 13px; }
.ed-field input, .ed-field select, .ed-field textarea {
  width: 100%; box-sizing: border-box; background: #101820; color: #fff; border: 1px solid #33465f; border-radius: 8px; padding: 8px;
}
.ed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ed-note { color: #9aadc4; font-size: 12px; line-height: 1.4; }
.ed-bullet { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.ed-bullet img { width: 36px; height: 36px; object-fit: contain; background: #101820; border: 1px solid #33465f; border-radius: 8px; }
.ed-bullet .ed-mini { flex: 1; }
.ed-preview {
  position: fixed; inset: 0; z-index: 50; background: rgba(6,10,18,.72); display: grid; place-items: center;
}
.ed-preview figure { margin: 0; background: #fff; color: #142033; border-radius: 16px; padding: 12px; max-width: min(92vw, 520px); }
.ed-preview img { width: 100%; height: auto; display: block; }
.ed-preview h3 { margin: 4px 0 8px; }
.ed-open { min-width: min(92vw, 420px); }
.ed-open-list { display: grid; gap: 8px; margin-bottom: 12px; }
.ed-open-list button { text-align: left; border: 0; background: #eef3fb; border-radius: 10px; padding: 10px 12px; font-weight: 800; }
@media (max-width: 980px) {
  .ed-body { grid-template-columns: 1fr; }
}
