:root {
  --bg: #030609;
  --panel: rgba(7, 18, 28, 0.9);
  --panel-strong: rgba(8, 23, 35, 0.96);
  --line: rgba(76, 139, 161, 0.42);
  --line-strong: rgba(34, 216, 220, 0.68);
  --text: #f2f7fb;
  --muted: #a8b7c3;
  --cyan: #22d8dc;
  --cyan-strong: #38f2ef;
  --font: "Inter", "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font);
  background:
    radial-gradient(circle at 48% 12%, rgba(34, 216, 220, 0.08), transparent 24%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.78) 42%, rgba(0, 0, 0, 0.84)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.86)),
    url("./assets/share_locked_bg.jpg?v=1") center center / cover no-repeat fixed,
    var(--bg);
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.lite-home-link,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
}

.lite-home-mark,
.footer-mark {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(4, 20, 28, 0.72);
  box-shadow: 0 0 22px rgba(34, 216, 220, 0.16);
}

.lite-home-mark img,
.footer-mark img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.lite-home-link strong,
.lite-home-link small,
.footer-brand strong,
.footer-brand small {
  display: block;
}

.lite-home-link strong,
.footer-brand strong {
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0.22em;
}

.lite-home-link small,
.footer-brand small {
  margin-top: 5px;
  color: var(--cyan-strong);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lite-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quick-share-page {
  width: min(100% - 22px, 1560px);
  margin: 10px auto 26px;
}

.quickboard-top-toolbar {
  position: relative;
  z-index: 200000;
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid rgba(76, 139, 161, 0.34);
  border-radius: 18px;
  background:
    radial-gradient(520px 120px at 12% 0%, rgba(34, 216, 220, 0.12), transparent 72%),
    linear-gradient(180deg, rgba(15, 24, 32, 0.86), rgba(7, 10, 14, 0.9));
  box-shadow:
    0 18px 52px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(34, 216, 220, 0.08);
  backdrop-filter: blur(18px);
  overflow: visible;
}

.toolbar-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  overflow: visible;
}

.toolbar-settings-row {
  justify-content: flex-start;
}

.toolbar-group {
  position: relative;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(104, 137, 158, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(20, 28, 36, 0.74), rgba(11, 13, 17, 0.8));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 24px rgba(0, 0, 0, 0.2);
  overflow: visible;
}

.toolbar-group.is-disabled {
  opacity: 0.42;
  filter: saturate(0.45);
}

.toolbar-group.is-disabled input,
.toolbar-group.is-disabled button {
  cursor: not-allowed;
}

.toolbar-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f2f7fb;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.toolbar-field span {
  color: rgba(190, 207, 218, 0.9);
}

.toolbar-label {
  color: rgba(190, 207, 218, 0.9);
  font-size: 11px;
  font-weight: 800;
}

.mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px;
  border: 1px solid rgba(117, 148, 170, 0.26);
  border-radius: 10px;
  background: rgba(3, 7, 11, 0.62);
}

.mode-btn {
  min-height: 24px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  color: rgba(232, 242, 248, 0.82);
  background: transparent;
  font-size: 11px;
  font-weight: 900;
}

.mode-btn:hover,
.mode-btn:focus-visible {
  color: #fff;
  outline: none;
}

.mode-btn.is-active {
  color: #031920;
  background: linear-gradient(180deg, #42f0ee, #18b3c0);
  box-shadow: 0 8px 18px rgba(34, 216, 220, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.toolbar-field select,
.toolbar-field input[type="number"],
.toolbar-btn {
  min-height: 28px;
  border: 1px solid rgba(117, 148, 170, 0.32);
  border-radius: 10px;
  color: #fff;
  background: rgba(3, 7, 11, 0.76);
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.toolbar-field select {
  width: 245px;
  padding: 0 30px 0 11px;
}

.preset-field select {
  width: 214px;
  padding-left: 9px;
  padding-right: 26px;
}

.toolbar-field input[type="number"] {
  width: 72px;
  padding: 0 4px 0 9px;
  text-align: center;
  appearance: auto;
  color-scheme: dark;
}

.toolbar-field input[type="number"]::-webkit-outer-spin-button,
.toolbar-field input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  opacity: 0.72;
  filter: invert(78%) sepia(78%) saturate(635%) hue-rotate(131deg) brightness(101%) contrast(96%);
  cursor: pointer;
}

.toolbar-field.compact input[type="number"] {
  width: 56px;
}

.toolbar-field input[type="color"] {
  width: 46px;
  height: 25px;
  padding: 0;
  border: 1px solid rgba(117, 148, 170, 0.32);
  border-radius: 10px;
  background: transparent;
}

.toolbar-field input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.toolbar-field input[type="color"]::-webkit-color-swatch {
  border: 0;
  border-radius: 9px;
}

.toolbar-icon-btn {
  width: 29px;
  height: 29px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid rgba(117, 148, 170, 0.32);
  border-radius: 10px;
  color: rgba(232, 242, 248, 0.86);
  background: rgba(3, 7, 11, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.toolbar-icon-btn:hover,
.toolbar-icon-btn:focus-visible {
  border-color: rgba(46, 222, 225, 0.82);
  color: #fff;
  background: rgba(17, 31, 42, 0.92);
  outline: none;
  transform: translateY(-1px);
}

.toolbar-icon-btn.is-active {
  border-color: rgba(34, 216, 220, 0.86);
  color: #031920;
  background: linear-gradient(180deg, #42f0ee, #18b3c0);
  box-shadow: 0 8px 18px rgba(34, 216, 220, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.toolbar-mask-icon {
  width: 15px;
  height: 15px;
  display: block;
  background: currentColor;
}

.transparency-icon {
  -webkit-mask: url("./assets/transparent.svg") center / contain no-repeat;
  mask: url("./assets/transparent.svg") center / contain no-repeat;
}

.toolbar-btn {
  padding: 0 14px;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.toolbar-btn:hover,
.toolbar-btn:focus-visible,
.toolbar-field select:focus-visible,
.toolbar-field input:focus-visible {
  border-color: rgba(46, 222, 225, 0.82);
  outline: none;
}

.toolbar-btn:hover {
  background: rgba(17, 31, 42, 0.92);
  transform: translateY(-1px);
}

.toolbar-btn-accent {
  border-color: rgba(34, 216, 220, 0.86);
  color: #031920;
  background: linear-gradient(180deg, #42f0ee, #18b3c0);
  box-shadow: 0 10px 26px rgba(34, 216, 220, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.toolbar-btn-accent:hover {
  color: #02171d;
  background: linear-gradient(180deg, #62fffb, #20c6d2);
}

.toolbar-export-menu-wrap {
  position: relative;
  flex: 0 0 auto;
}

.export-action-group {
  margin-left: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.toolbar-export-btn {
  width: 118px;
  height: 40px;
  min-width: 118px;
  min-height: 40px;
  flex: 0 0 118px;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid rgba(117, 148, 170, 0.34);
  border-radius: 8px;
  color: #edf4f8;
  background: rgba(4, 10, 16, 0.78);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 24px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.toolbar-export-btn:hover,
.toolbar-export-btn:focus-visible,
.toolbar-export-menu-wrap.is-open .toolbar-export-btn {
  border-color: rgba(46, 222, 225, 0.76);
  background: rgba(13, 25, 35, 0.92);
  outline: none;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 12px 28px rgba(0, 0, 0, 0.3);
}

.toolbar-export-icon,
.toolbar-export-option-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: currentColor;
  line-height: 0;
}

.toolbar-export-icon {
  width: 17px;
  height: 17px;
}

.toolbar-export-icon svg {
  width: 17px;
  height: 17px;
  display: block;
}

.toolbar-export-option-icon {
  width: 19px;
  height: 14px;
  color: #9df6fb;
}

.toolbar-export-option-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.toolbar-export-icon svg,
.toolbar-export-option-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.toolbar-export-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 300000;
  min-width: 118px;
  display: none;
  padding: 6px;
  border: 1px solid rgba(61, 218, 226, 0.36);
  border-radius: 8px;
  background: rgba(6, 13, 20, 0.97);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.toolbar-export-menu-wrap.is-open .toolbar-export-dropdown {
  display: grid;
  gap: 4px;
}

.toolbar-export-option {
  width: 100%;
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 0;
  border-radius: 6px;
  color: #edf4f8;
  background: transparent;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 760;
  text-align: left;
  cursor: pointer;
}

.toolbar-export-option:hover,
.toolbar-export-option:focus-visible {
  background: rgba(61, 218, 226, 0.14);
  outline: none;
}

.share-editor-layout {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) minmax(248px, 292px);
  gap: 16px;
  align-items: start;
  isolation: isolate;
}

.share-edit-panel {
  position: sticky;
  top: 92px;
  z-index: 80;
  min-height: 492px;
  display: flex;
  justify-content: center;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(8, 24, 36, 0.96), rgba(4, 11, 18, 0.94));
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.share-edit-toolbar {
  position: relative;
  z-index: 81;
  width: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.share-tool-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(132, 178, 198, 0.42);
  border-radius: 8px;
  color: #eaf8ff;
  background: rgba(7, 18, 28, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.share-tool-btn:hover,
.share-tool-btn:focus-visible,
.share-tool-btn.active,
.share-tool-btn.is-active {
  border-color: rgba(34, 216, 220, 0.9);
  background: rgba(25, 189, 199, 0.55);
  outline: none;
}

.share-tool-btn.is-disabled,
.share-tool-btn:disabled {
  opacity: 0.46;
  cursor: default;
  border-color: rgba(132, 178, 198, 0.22);
  background: rgba(7, 18, 28, 0.54);
}

.share-tool-icon {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 0 4px rgba(34, 216, 220, 0.18));
  opacity: 0.95;
}

.share-tool-svg {
  width: 21px;
  height: 21px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.share-tool-menu {
  position: relative;
}

.layout-menu {
  position: absolute;
  left: 48px;
  bottom: 0;
  width: 152px;
  display: none;
  padding: 7px;
  border: 1px solid rgba(76, 139, 161, 0.42);
  border-radius: 8px;
  background: rgba(6, 16, 25, 0.96);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42);
  z-index: 200;
  pointer-events: auto;
}

.share-tool-menu:hover .layout-menu,
.share-tool-menu:focus-within .layout-menu,
.share-tool-menu.is-open .layout-menu {
  display: grid;
  gap: 4px;
}

.layout-menu button {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 11px;
  border: 0;
  border-radius: 7px;
  color: var(--text);
  background: transparent;
  text-align: left;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.layout-menu button:hover {
  color: #031920;
  background: var(--cyan-strong);
}

.share-board-shell {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.moodboard {
  padding: 20px 20px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(680px 280px at 50% 0%, rgba(34, 216, 220, 0.14), transparent 72%),
    linear-gradient(180deg, rgba(8, 25, 38, 0.95), rgba(3, 10, 17, 0.95));
  box-shadow: 0 22px 68px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.board-viewer {
  position: relative;
  aspect-ratio: var(--board-aspect, 1 / 1);
  width: min(100%, calc(var(--board-fit-ratio, 1) * var(--board-fit-height, 70vh)));
  max-width: 100%;
  max-height: var(--board-fit-height, 70vh);
  margin-inline: auto;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(126, 171, 190, 0.28);
  border-radius: 4px;
  background: rgba(2, 8, 13, 0.78);
}

.board-viewer.is-dragover {
  border-color: rgba(34, 216, 220, 0.9);
  box-shadow: inset 0 0 0 1px rgba(34, 216, 220, 0.35), 0 0 32px rgba(34, 216, 220, 0.16);
}

.board-viewer.adding-text,
.board-viewer.adding-text .board-stage {
  cursor: text;
}

.board-viewer.cropping-image,
.board-viewer.cropping-image .board-stage,
.board-viewer.cropping-image .board-item {
  cursor: crosshair;
}

.moodboard:fullscreen {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  gap: 10px;
  padding: 18px;
  border: 0;
  border-radius: 0;
  background: #03080d;
}

.moodboard:fullscreen .board-viewer {
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.moodboard:fullscreen .viewer-controls {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 0 2px;
}

.moodboard:fullscreen .board-canvas {
  width: var(--fullscreen-board-width, 100%);
  height: var(--fullscreen-board-height, 100%);
  flex: 0 0 auto;
}

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

.board-canvas {
  width: 100%;
  height: 100%;
  min-height: 0;
  transform-origin: center center;
  transition: transform 0.18s ease;
}

.board-stage {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  container-type: inline-size;
  background:
    radial-gradient(780px 440px at 50% 40%, rgba(34, 216, 220, 0.08), transparent 70%),
    var(--board-bg-color, rgba(3, 9, 15, 0.72));
  background-size: auto, auto;
  outline: none;
}

.board-stage.is-slot-mode {
  background:
    linear-gradient(var(--grid-color-line, rgba(34, 216, 220, 0.48)) var(--grid-line, 1px), transparent var(--grid-line, 1px)),
    linear-gradient(90deg, var(--grid-color-line, rgba(34, 216, 220, 0.48)) var(--grid-line, 1px), transparent var(--grid-line, 1px)),
    radial-gradient(780px 440px at 50% 40%, rgba(34, 216, 220, 0.08), transparent 70%),
    var(--board-bg-color, rgba(3, 9, 15, 0.72));
  background-size:
    var(--slot-cell-w, 33.333%) var(--slot-cell-h, 25%),
    var(--slot-cell-w, 33.333%) var(--slot-cell-h, 25%),
    auto,
    auto;
}

.board-stage.is-slot-mode .board-item {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: var(--grid-line, 1px) solid var(--grid-color-line, rgba(61, 218, 226, 0.58));
  background: #000;
  box-shadow: none;
  cursor: move;
  transform: none;
  transform-origin: 50% 50%;
  will-change: left, top, width, height, transform;
}

.board-stage.is-slot-mode .board-item:hover {
  border-color: var(--grid-color-active, rgba(61, 218, 226, 0.88));
}

.board-stage.is-slot-mode .board-item.is-moving {
  z-index: 6;
  border-color: var(--grid-color-active, rgba(61, 218, 226, 0.95));
  box-shadow: 0 0 0 1px var(--grid-color-soft, rgba(61, 218, 226, 0.34)), 0 12px 28px rgba(0, 0, 0, 0.45);
}

.board-stage.is-slot-mode .board-item.is-selected {
  z-index: 5;
  border-color: var(--grid-color-active, rgba(61, 218, 226, 0.92));
  box-shadow: 0 0 0 1px var(--grid-color-line, rgba(61, 218, 226, 0.58));
}

.board-stage.is-slot-mode .board-item.is-locked {
  cursor: default;
}

.board-stage.is-locked {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), inset 0 0 0 3px rgba(34, 216, 220, 0.1);
}

.board-stage.is-locked .board-item,
.board-stage.is-locked .editable-text {
  cursor: default;
}

.board-stage.is-locked .cell-delete,
.board-stage.is-locked .cell-export,
.board-stage.is-locked .cell-resize-handle,
.board-stage.is-locked .resize-handle {
  display: none !important;
}

.board-stage.is-slot-mode .resize-handle {
  display: none;
}

.board-topbar {
  position: absolute;
  z-index: 100000;
  top: 7px;
  left: auto;
  right: 7px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  padding: 0 3px;
  color: #edf4f8;
  background: transparent;
  border: 0;
  border-radius: 8px;
  box-sizing: border-box;
  opacity: 1;
  pointer-events: auto;
  overflow: visible;
  transition: top 0.18s ease, right 0.18s ease, width 0.18s ease, height 0.18s ease, padding 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.board-topbar-lock {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: none;
  place-items: center;
  border: 1px solid rgba(61, 218, 226, 0.48);
  border-radius: 6px;
  color: #7feeff;
  background: rgba(3, 8, 14, 0.7);
  box-shadow: 0 0 14px rgba(34, 216, 220, 0.12);
}

.board-topbar-lock svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.board-stage.is-locked .board-topbar:hover .board-topbar-lock,
.board-stage.is-locked .board-topbar:focus-within .board-topbar-lock,
.board-stage.is-locked:has(.board-topbar-menu-wrap.is-open) .board-topbar-lock {
  display: grid;
}

.board-topbar:hover,
.board-topbar:focus-within,
.board:has(.board-topbar-menu-wrap.is-open) .board-topbar,
.board.board-moving .board-topbar {
  top: 0;
  left: 0;
  right: 0;
  width: auto;
  height: 34px;
  justify-content: flex-start;
  gap: 12px;
  padding: 0 12px;
  background: rgba(9, 12, 15, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
}

.board-topbar-title {
  min-width: 0;
  max-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 0.14s ease, max-width 0.18s ease;
}

.board-topbar:hover .board-topbar-title,
.board-topbar:focus-within .board-topbar-title,
.board:has(.board-topbar-menu-wrap.is-open) .board-topbar-title,
.board.board-moving .board-topbar-title {
  max-width: calc(100% - 48px);
  opacity: 1;
  pointer-events: auto;
}

.board-topbar-title:focus-visible {
  outline: 1px solid rgba(61, 218, 226, 0.88);
  outline-offset: 3px;
  border-radius: 4px;
}

.board-topbar-title[contenteditable="true"] {
  min-width: 54px;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(8, 19, 28, 0.88);
  outline: 1px solid rgba(61, 218, 226, 0.88);
  cursor: text;
  text-transform: none;
}

.board-topbar-menu-wrap {
  position: relative;
  flex: 0 0 auto;
  margin-left: auto;
  pointer-events: auto;
}

.board-topbar-dropdown {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 100001;
  min-width: 152px;
  display: none;
  padding: 6px;
  border: 1px solid rgba(61, 218, 226, 0.36);
  border-radius: 8px;
  background: rgba(6, 13, 20, 0.96);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.board-topbar-menu-wrap.is-open .board-topbar-dropdown {
  display: grid;
  gap: 4px;
}

.board-topbar-option {
  width: 100%;
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 0;
  border-radius: 6px;
  color: #edf4f8;
  background: transparent;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 760;
  text-align: left;
  cursor: pointer;
}

.board-topbar-option-icon {
  width: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #9df6fb;
}

.board-topbar-option-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.board-topbar-option:hover,
.board-topbar-option:focus-visible {
  background: rgba(61, 218, 226, 0.14);
  outline: none;
}

.board-topbar-menu {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0;
  border: 1px solid rgba(61, 218, 226, 0.14);
  border-radius: 6px;
  color: #edf4f8;
  background: rgba(9, 21, 29, 0.88);
  cursor: pointer;
  pointer-events: auto;
}

.board-topbar-menu:hover {
  color: #ffffff;
  background: rgba(61, 218, 226, 0.14);
  border-color: rgba(61, 218, 226, 0.28);
}

.board-topbar-menu span {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.9;
}

.board-topbar-menu:focus-visible {
  outline: 1px solid rgba(61, 218, 226, 0.88);
  outline-offset: 2px;
}

.board-topbar[data-board-drag-handle] {
  cursor: grab;
}

.board.board-moving .board-topbar[data-board-drag-handle] {
  cursor: grabbing;
}

.empty-state {
  position: absolute;
  inset: 38px 22px 22px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 9px;
  border: 1px dashed rgba(126, 171, 190, 0.28);
  color: rgba(232, 242, 248, 0.85);
  text-align: center;
  background:
    linear-gradient(rgba(126, 171, 190, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 171, 190, 0.13) 1px, transparent 1px),
    radial-gradient(430px 260px at 50% 42%, rgba(34, 216, 220, 0.11), transparent 72%);
  background-size: 33.333% 33.333%, 33.333% 33.333%, auto;
  background-position: -1px -1px, -1px -1px, center;
  pointer-events: none;
}

.empty-state::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(circle at 50% 42%, rgba(13, 38, 48, 0.42), transparent 34%),
    linear-gradient(180deg, rgba(2, 7, 12, 0.08), rgba(2, 7, 12, 0.46));
  pointer-events: none;
}

.empty-state > * {
  position: relative;
  z-index: 1;
}

.empty-state-icon {
  width: clamp(50px, 5.2vw, 74px);
  height: clamp(50px, 5.2vw, 74px);
  display: grid;
  place-items: center;
  color: rgba(166, 244, 247, 0.86);
  filter: drop-shadow(0 0 14px rgba(34, 216, 220, 0.22));
}

.empty-state-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.empty-state-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.empty-state-icon path {
  fill: rgba(34, 216, 220, 0.48);
  stroke: rgba(166, 244, 247, 0.88);
}

.empty-state-icon circle {
  fill: rgba(216, 246, 249, 0.86);
}

.empty-state strong {
  color: #f7fbff;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.72);
}

.empty-state span {
  color: var(--muted);
  font-size: clamp(0.86rem, 1.15vw, 1.05rem);
  font-weight: 600;
}

.empty-state-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 13px;
  pointer-events: auto;
}

.empty-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 24px;
  border-radius: 8px;
  font-size: clamp(0.82rem, 1.02vw, 0.96rem);
  font-weight: 850;
  letter-spacing: 0;
}

.empty-action svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.empty-action span {
  color: inherit;
  font: inherit;
}

.empty-action-primary {
  border: 1px solid rgba(117, 255, 255, 0.78);
  color: #041419;
  background: linear-gradient(180deg, #46f5f1, #1fc2cd);
  box-shadow: 0 14px 34px rgba(34, 216, 220, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.empty-action-primary:hover,
.empty-action-primary:focus-visible {
  color: #031015;
  background: linear-gradient(180deg, #66fffb, #25d4df);
  outline: none;
  transform: translateY(-1px);
}

.empty-action-secondary {
  border: 1px solid rgba(172, 197, 211, 0.46);
  color: rgba(239, 247, 252, 0.93);
  background: linear-gradient(180deg, rgba(17, 25, 33, 0.86), rgba(6, 10, 15, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 28px rgba(0, 0, 0, 0.26);
}

.empty-action-secondary:hover,
.empty-action-secondary:focus-visible {
  border-color: rgba(216, 235, 244, 0.66);
  color: #ffffff;
  background: linear-gradient(180deg, rgba(28, 39, 50, 0.92), rgba(9, 14, 20, 0.9));
  outline: none;
  transform: translateY(-1px);
}

.board-item {
  position: absolute;
  margin: 0;
  min-width: 68px;
  min-height: 52px;
  border: 1px solid rgba(126, 171, 190, 0.16);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
  cursor: grab;
  touch-action: none;
  user-select: none;
  transform: rotate(var(--item-rotation, 0deg));
}

.board-item.is-selected {
  border-color: var(--cyan-strong);
  box-shadow: 0 0 0 1px rgba(34, 216, 220, 0.52), 0 18px 42px rgba(0, 0, 0, 0.36);
}

.board-item.is-locked {
  cursor: default;
}

.board-item.is-cropped img {
  object-fit: contain;
  background: #02070b;
}

.board-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 0;
  pointer-events: none;
  transform: scale(var(--cell-zoom, 1));
  transform-origin: center center;
  user-select: none;
  will-change: transform;
}

.board-stage.is-slot-mode .board-item img {
  object-fit: cover;
  background: #02070b;
  object-position: var(--cell-object-x, 50%) var(--cell-object-y, 50%);
  transform: rotate(var(--cell-rotation, 0deg)) scale(var(--cell-total-scale, var(--cell-zoom, 1)));
}

.lock-badge {
  position: absolute;
  z-index: 22;
  top: 7px;
  left: 7px;
  width: 24px;
  height: 24px;
  display: none;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 7px;
  background: rgba(2, 8, 14, 0.78);
  color: #f8fcff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.42);
  pointer-events: none;
}

.lock-badge svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.board-item.is-locked > .cell-lock-badge {
  display: grid;
}

.cell-resize-handle {
  position: absolute;
  z-index: 7;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(38, 210, 224, 0.96);
  border-radius: 999px;
  background: rgba(38, 210, 224, 0.82);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.42), 0 1px 4px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.board-stage.is-slot-mode .cell-resize-handle {
  display: none;
}

.cell-resize-handle[data-cell-handle="nw"] { left: -4px; top: -4px; cursor: nwse-resize; }
.cell-resize-handle[data-cell-handle="n"] { left: 50%; top: -4px; transform: translateX(-50%); cursor: ns-resize; }
.cell-resize-handle[data-cell-handle="ne"] { right: -4px; top: -4px; cursor: nesw-resize; }
.cell-resize-handle[data-cell-handle="e"] { right: -4px; top: 50%; transform: translateY(-50%); cursor: ew-resize; }
.cell-resize-handle[data-cell-handle="se"] { right: -4px; bottom: -4px; cursor: nwse-resize; }
.cell-resize-handle[data-cell-handle="s"] { left: 50%; bottom: -4px; transform: translateX(-50%); cursor: ns-resize; }
.cell-resize-handle[data-cell-handle="sw"] { left: -4px; bottom: -4px; cursor: nesw-resize; }
.cell-resize-handle[data-cell-handle="w"] { left: -4px; top: 50%; transform: translateY(-50%); cursor: ew-resize; }
.cell-resize-handle[data-cell-handle="rotate"] {
  right: 4px;
  bottom: 4px;
  width: 18px;
  height: 18px;
  border: 0;
  border-right: 2px solid rgba(245, 252, 255, 0.94);
  border-bottom: 2px solid rgba(245, 252, 255, 0.94);
  border-radius: 2px;
  background: transparent;
  cursor: grab;
  box-shadow: none;
}

.cell-delete {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 7;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background: rgba(3, 8, 14, 0.78);
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.board-stage.is-slot-mode .board-item:hover .cell-delete,
.board-stage.is-slot-mode .board-item:focus-within .cell-delete,
.board-stage.is-slot-mode .board-item.is-selected .cell-delete,
.board-stage:not(.is-slot-mode) .board-item:hover .cell-delete,
.board-stage:not(.is-slot-mode) .board-item:focus-within .cell-delete,
.board-stage:not(.is-slot-mode) .board-item.is-selected .cell-delete {
  opacity: 1;
}

.board-item.is-locked .cell-delete {
  display: none;
}

.cell-delete:hover {
  border-color: rgba(255, 125, 125, 0.78);
  background: rgba(95, 24, 29, 0.88);
}

.cell-export {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 7;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(61, 218, 226, 0.42);
  border-radius: 6px;
  background: rgba(3, 8, 14, 0.78);
  color: #7feeff;
  cursor: grab;
  opacity: 0;
  transition: opacity 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.cell-export:active {
  cursor: grabbing;
}

.cell-export svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.board-stage.is-slot-mode .board-item:hover .cell-export,
.board-stage.is-slot-mode .board-item:focus-within .cell-export,
.board-stage.is-slot-mode .board-item.is-selected .cell-export,
.board-stage:not(.is-slot-mode) .board-item:hover .cell-export,
.board-stage:not(.is-slot-mode) .board-item:focus-within .cell-export,
.board-stage:not(.is-slot-mode) .board-item.is-selected .cell-export {
  opacity: 1;
}

.board-item.is-locked .cell-export {
  display: none;
}

.cell-export:hover {
  border-color: rgba(127, 238, 255, 0.86);
  background: rgba(18, 61, 72, 0.88);
}

.board-stage:not(.is-slot-mode) .cell-resize-handle {
  display: none !important;
}

.crop-drag-rect {
  position: absolute;
  z-index: 40;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: rgba(43, 215, 216, 0.16);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.34);
  pointer-events: none;
}

.share-drag-ghost {
  position: fixed;
  left: -1000px;
  top: -1000px;
  z-index: 10000;
  padding: 8px 10px;
  border: 1px solid rgba(61, 218, 226, 0.7);
  border-radius: 6px;
  background: rgba(5, 10, 16, 0.94);
  color: #eef9fb;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.reposition-hint {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10020;
  max-width: min(280px, calc(100vw - 32px));
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(15, 20, 26, 0.72);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.58);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: translate(-50%, -50%) translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
  backdrop-filter: blur(9px);
}

.reposition-hint.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
}

.text-item {
  display: grid;
  place-items: center;
  padding: 10px 14px;
  color: #f6fbff;
  background: rgba(4, 14, 22, 0.82);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.text-item[contenteditable="true"] {
  cursor: text;
  user-select: text;
}

.resize-handle {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 12px;
  height: 12px;
  border: 1px solid #032024;
  border-radius: 50%;
  background: var(--cyan-strong);
  cursor: nwse-resize;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.board-item.is-selected > .resize-handle {
  opacity: 1;
  pointer-events: auto;
}

.board-item.is-locked .resize-handle {
  display: none;
}

.editable-text {
  position: absolute;
  z-index: 100000;
  min-width: 3ch;
  max-width: 92%;
  padding: 2px 4px;
  color: var(--text-color, #fff);
  font-family: var(--text-font, inherit);
  font-size: calc(var(--text-size-pct, 3) * 1cqw);
  font-style: var(--text-style, normal);
  font-weight: var(--text-weight, 400);
  line-height: 1.05;
  letter-spacing: calc(var(--text-tracking, 0) * 0.01em);
  opacity: var(--text-opacity, 1);
  text-align: var(--text-align, left);
  text-decoration: var(--text-decoration, none);
  white-space: pre-wrap;
  transform: rotate(var(--text-rotation, 0deg)) scale(var(--text-scale, 1));
  transform-origin: top left;
  text-shadow: var(--text-shadow, none);
  outline: none;
  cursor: move;
  user-select: none;
}

.editable-text a {
  color: inherit;
  text-decoration: inherit;
}

.editable-text[data-text-link-url] {
  cursor: pointer;
}

.editable-text[contenteditable="true"] {
  cursor: text;
  user-select: text;
}

.editable-text[contenteditable="true"] a {
  text-decoration: underline;
}

.editable-text:hover,
.editable-text.is-selected,
.editable-text:focus {
  background: rgba(3, 8, 14, 0.28);
  box-shadow: 0 0 0 1px rgba(61, 218, 226, 0.82);
}

.viewer-controls {
  position: relative;
  z-index: 4;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 0 0;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.moodboard:hover .viewer-controls,
.moodboard:focus-within .viewer-controls,
.viewer-controls:focus-within {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.viewer-btn,
.viewer-zoom {
  min-height: 38px;
  border: 1px solid rgba(126, 171, 190, 0.36);
  border-radius: 7px;
  color: var(--text);
  background: rgba(8, 20, 31, 0.9);
  font-size: 13px;
  font-weight: 900;
}

.viewer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
}

.viewer-icon-btn {
  width: 42px;
  padding: 0;
  font-size: 18px;
}

.viewer-zoom {
  width: 104px;
  padding: 0 12px;
}

.viewer-btn:hover,
.viewer-btn:focus-visible,
.viewer-zoom:focus-visible {
  border-color: var(--cyan-strong);
  outline: none;
}

.viewer-btn-accent {
  border-color: rgba(34, 216, 220, 0.86);
  color: #042128;
  background: linear-gradient(180deg, #39f3f0, #17aeb9);
  box-shadow: 0 12px 26px rgba(34, 216, 220, 0.22);
}

.cell-zoom-control {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(126, 171, 190, 0.36);
  border-radius: 7px;
  color: var(--text);
  background: rgba(8, 20, 31, 0.9);
  font-size: 13px;
  font-weight: 900;
}

.cell-zoom-control input {
  width: 120px;
  accent-color: var(--cyan-strong);
}

.quickboard-lite-card {
  min-height: 540px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 72px 30px 34px;
  border: 1px solid rgba(34, 216, 220, 0.42);
  border-radius: 24px;
  background:
    radial-gradient(220px 260px at 42% 7%, rgba(34, 216, 220, 0.12), transparent 72%),
    linear-gradient(180deg, rgba(8, 23, 34, 0.92), rgba(3, 8, 13, 0.97));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 26px 70px rgba(0, 0, 0, 0.34),
    0 0 28px rgba(34, 216, 220, 0.08);
}

.lite-card-badge {
  width: max-content;
  min-width: 56px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(34, 216, 220, 0.42);
  border-radius: 7px;
  color: var(--cyan-strong);
  background: rgba(10, 31, 43, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.lite-card-copy {
  margin: 0;
  color: #f2f7fb;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.55;
}

.lite-card-cta {
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 0 24px;
  border: 1px solid rgba(85, 255, 250, 0.88);
  border-radius: 10px;
  color: #041217;
  background: linear-gradient(180deg, #31f3f3, #18cbd8);
  box-shadow: 0 0 30px rgba(34, 216, 220, 0.38);
  text-decoration: none;
  font-size: 18px;
  font-weight: 900;
}

.lite-card-cta svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lite-card-cta:hover,
.lite-card-cta:focus-visible {
  background: linear-gradient(180deg, #66fffb, #24d9e2);
  box-shadow: 0 0 38px rgba(34, 216, 220, 0.48);
  outline: none;
  transform: translateY(-1px);
}

.lite-card-divider {
  height: 1px;
  margin: 14px 0;
  background: linear-gradient(90deg, transparent, rgba(126, 171, 190, 0.34), transparent);
}

.lite-card-locked {
  display: grid;
  gap: 12px;
}

.lite-card-lock-row {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  border: 1px solid rgba(126, 171, 190, 0.18);
  border-radius: 7px;
  color: rgba(232, 237, 244, 0.78);
  background: rgba(14, 28, 40, 0.54);
  font-size: 14px;
  font-weight: 600;
}

.lite-card-lock {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  background: rgba(232, 237, 244, 0.68);
  -webkit-mask: url("./assets/locked.svg") center / contain no-repeat;
  mask: url("./assets/locked.svg") center / contain no-repeat;
}

.quickboard-brand-footer {
  width: 100%;
  margin: 0 auto;
}

.quickboard-brand-footer .footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 64px auto 0;
  padding-top: 28px;
  max-width: 560px;
  border-top: 1px solid rgba(117, 144, 165, 0.24);
  color: inherit;
  text-decoration: none;
}

.footer-icon-frame {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(43, 215, 216, 0.86);
  border-radius: 7px;
  padding: 1px;
  box-shadow: 0 0 18px rgba(43, 215, 216, 0.12);
}

.footer-icon {
  width: 54px;
  height: 54px;
  display: block;
  object-fit: cover;
  border-radius: 5px;
}

.footer-title {
  font-family: "Bebas Neue", "Arial Narrow", Arial, sans-serif;
  font-size: 37px;
  line-height: 0.96;
  letter-spacing: 0.2em;
  color: #f8fbff;
  white-space: nowrap;
}

.footer-tag {
  margin-top: 2px;
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.28em;
  color: #f6f8fb;
  white-space: nowrap;
}

.footer-tag .accent {
  color: var(--cyan);
}

.share-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 5, 10, 0.78);
  backdrop-filter: blur(12px);
}

.share-modal.is-open {
  display: flex;
}

.share-modal-panel {
  position: relative;
  width: min(920px, 92vw);
  max-height: min(82vh, 820px);
  border: 1px solid rgba(93, 132, 160, 0.62);
  border-radius: 10px;
  background: rgba(5, 13, 22, 0.98);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.52);
  overflow: hidden;
}

.image-preview-modal .share-modal-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(1180px, 94vw);
  min-height: 260px;
  padding: 54px 22px 22px;
}

.image-preview-modal img {
  display: block;
  max-width: 100%;
  max-height: calc(82vh - 80px);
  object-fit: contain;
  border-radius: 6px;
}

.share-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(124, 159, 188, 0.52);
  border-radius: 8px;
  color: #fff;
  background: rgba(8, 18, 30, 0.82);
  font-size: 20px;
}

.text-edit-modal {
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
}

.text-edit-modal .share-modal-panel {
  position: fixed;
  top: var(--text-dialog-top, 8px);
  left: var(--text-dialog-left, 8px);
  right: var(--text-dialog-right, auto);
  width: min(760px, calc(100vw - 16px));
  max-height: calc(100vh - 16px);
  overflow: hidden;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  border-radius: 14px;
  background: rgba(9, 20, 31, 0.99);
}

.text-edit-panel {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.text-edit-titlebar {
  min-height: 58px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 14px 58px 8px 22px;
  cursor: move;
  user-select: none;
  touch-action: none;
}

.text-edit-titlebar h2 {
  margin: 0;
  color: #f5f9fc;
  font-size: 1.08rem;
  font-weight: 820;
  line-height: 1;
}

.text-edit-body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  padding: 0 12px 12px;
  overflow: auto;
}

.text-edit-toolbar {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border: 1px solid rgba(74, 102, 124, 0.72);
  border-radius: 12px;
  background: rgba(11, 22, 32, 0.72);
}

.text-edit-font-row {
  display: flex;
  align-items: center;
  min-width: 0;
}

.text-edit-font,
.text-edit-value {
  width: 100%;
  border: 1px solid rgba(82, 112, 135, 0.78);
  border-radius: 9px;
  color: #f0f4f6;
  background: rgba(14, 26, 38, 0.94);
  outline: none;
}

.text-edit-font {
  flex: 0 1 560px;
  height: 42px;
  padding: 0 14px;
  font-size: 1.05rem;
  line-height: 1;
}

.text-edit-font:hover,
.text-edit-font:focus,
.text-edit-value:focus {
  border-color: rgba(46, 222, 225, 0.84);
}

.text-edit-control-row,
.text-edit-metric-row {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 8px;
  min-width: 0;
}

.text-edit-control-row {
  grid-template-columns: 94px auto auto auto auto minmax(0, 1fr);
}

.text-edit-metric-label {
  display: grid;
  grid-template-columns: 22px 60px;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: rgba(219, 229, 235, 0.95);
  font-size: 0.72rem;
  font-weight: 820;
  line-height: 1;
  white-space: nowrap;
}

.text-edit-icon,
.text-edit-tool-icon {
  object-fit: contain;
  filter: brightness(0) invert(1);
  pointer-events: none;
}

.text-edit-icon {
  width: 20px;
  height: 20px;
}

.text-edit-tool-icon {
  width: 16px;
  height: 16px;
}

.text-edit-button-group,
.text-edit-aligns {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.text-edit-style-group {
  margin-left: 4px;
}

.text-edit-rot-btn,
.text-edit-align-btn,
.text-edit-style-btn {
  min-width: 37px;
  width: 37px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(82, 112, 135, 0.72);
  border-radius: 8px;
  color: #f2f7fb;
  background: rgba(14, 26, 38, 0.92);
  font-size: 1.05rem;
  font-weight: 820;
  line-height: 1;
}

.text-edit-rot-btn.is-active,
.text-edit-align-btn.is-active,
.text-edit-style-btn.is-active {
  border-color: rgba(148, 255, 252, 0.82);
  background: linear-gradient(180deg, rgba(48, 211, 211, 0.92), rgba(20, 153, 172, 0.92));
}

.text-edit-value {
  width: 54px;
  min-width: 54px;
  height: 34px;
  padding: 0 5px;
  text-align: center;
  font-size: 1rem;
  font-weight: 840;
  appearance: textfield;
}

.text-edit-color {
  justify-self: start;
  width: 40px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(82, 112, 135, 0.78);
  border-radius: 8px;
  background: rgba(14, 26, 38, 0.94);
}

.text-edit-slider {
  width: 100%;
  height: 18px;
  min-width: 0;
  margin: 0;
  appearance: none;
  background: transparent;
  accent-color: var(--cyan);
  cursor: pointer;
}

.text-edit-slider::-webkit-slider-runnable-track {
  height: 8px;
  border: 1px solid rgba(50, 69, 86, 0.72);
  border-radius: 4px;
  background: linear-gradient(90deg, #25d8d4 0 var(--slider-fill, 50%), rgba(31, 45, 58, 0.92) var(--slider-fill, 50%) 100%);
}

.text-edit-slider::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border: 2px solid rgba(46, 222, 225, 0.9);
  border-radius: 50%;
  background: #eef7f8;
  appearance: none;
}

.text-edit-slider::-moz-range-track {
  height: 8px;
  border: 1px solid rgba(50, 69, 86, 0.72);
  border-radius: 4px;
  background: rgba(31, 45, 58, 0.96);
}

.text-edit-slider::-moz-range-progress {
  height: 8px;
  border-radius: 4px;
  background: #25d8d4;
}

.text-edit-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(46, 222, 225, 0.9);
  border-radius: 50%;
  background: #eef7f8;
}

.text-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.text-edit-actions .viewer-btn {
  min-width: 156px;
  min-height: 46px;
  font-size: 1rem;
  font-weight: 820;
}

.text-link-modal {
  z-index: 120;
}

.text-link-modal .share-modal-panel {
  width: min(420px, calc(100vw - 28px));
  border-radius: 10px;
  background: rgba(9, 17, 25, 0.99);
}

.text-link-panel {
  padding: 20px;
}

.text-link-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #f2f7fb;
  font-weight: 900;
}

.text-link-title img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.text-link-field {
  display: grid;
  gap: 8px;
  color: rgba(219, 229, 235, 0.95);
  font-size: 0.78rem;
  font-weight: 820;
}

.text-link-field input {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(82, 112, 135, 0.78);
  border-radius: 8px;
  color: #f0f4f6;
  background: rgba(14, 26, 38, 0.94);
}

.text-link-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.footer-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(126, 171, 190, 0.42), transparent);
}

.footer-mark {
  width: 54px;
  height: 54px;
}

.footer-mark img {
  width: 42px;
  height: 42px;
}

@media (max-width: 900px) {
  .quick-share-page {
    width: min(100% - 18px, 1560px);
    margin-top: 10px;
  }

  .quickboard-top-toolbar,
  .toolbar-group {
    align-items: stretch;
  }

  .toolbar-row {
    gap: 8px;
  }

  .toolbar-field select {
    width: min(245px, 60vw);
  }

  .share-editor-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .share-edit-panel {
    position: static;
    min-height: 0;
    padding: 8px;
    border-radius: 12px;
  }

  .viewer-controls {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .share-edit-toolbar {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .layout-menu {
    left: auto;
    right: 0;
    top: 46px;
    bottom: auto;
  }

  .moodboard {
    padding: 12px;
  }

  .quickboard-brand-footer .footer-brand {
    transform: scale(0.88);
    transform-origin: center top;
  }
}

@media (max-width: 560px) {
  .quick-share-page {
    width: min(100% - 10px, 1560px);
    margin-top: 8px;
  }

  .quickboard-top-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px;
    border-radius: 14px;
  }

  .toolbar-group {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
  }

  .mode-group {
    width: auto;
  }

  .board-size-group .preset-field {
    flex: 1 1 100%;
  }

  .toolbar-field select {
    width: 100%;
  }

  .toolbar-field.numeric-field {
    flex: 1 1 86px;
  }

  .toolbar-field input[type="number"] {
    width: 100%;
  }

  .export-action-group {
    margin-left: 0;
  }

  .toolbar-btn {
    flex: 1 1 auto;
  }

  .lite-home-link strong,
  .footer-brand strong {
    font-size: 20px;
  }

  .lite-header-actions {
    width: 100%;
  }

  .lite-header-actions .viewer-btn {
    flex: 1;
  }

  .moodboard {
    padding: 8px;
    border-radius: 12px;
  }

  .board-topbar {
    width: 30px;
    height: 30px;
    padding: 0 3px;
    gap: 0;
  }

  .board-topbar:hover,
  .board-topbar:focus-within,
  .board:has(.board-topbar-menu-wrap.is-open) .board-topbar,
  .board.board-moving .board-topbar {
    height: 30px;
    padding: 0 8px;
    gap: 8px;
  }

  .board-topbar-title {
    font-size: 0.6rem;
  }

  .empty-state {
    inset: 34px 10px 10px;
    gap: 7px;
  }

  .empty-state-icon {
    width: 46px;
    height: 46px;
  }

  .empty-state strong {
    font-size: clamp(1.28rem, 7.3vw, 1.72rem);
  }

  .empty-state span {
    font-size: 0.78rem;
  }

  .empty-state-actions {
    width: min(100%, 260px);
    gap: 9px;
    margin-top: 7px;
  }

  .empty-action {
    width: 100%;
    min-height: 40px;
    gap: 9px;
    padding: 0 14px;
    font-size: 0.8rem;
  }

  .empty-action svg {
    width: 19px;
    height: 19px;
  }

  .viewer-controls {
    justify-content: stretch;
    gap: 7px;
    padding-top: 10px;
  }

  .viewer-controls > * {
    flex: 1 1 42%;
    min-width: 0;
  }

  .viewer-btn,
  .viewer-zoom,
  .cell-zoom-control {
    min-height: 34px;
    font-size: 12px;
  }

  .cell-zoom-control input {
    width: 100%;
    min-width: 70px;
  }

  .text-edit-control-row,
  .text-edit-metric-row {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }

  .text-edit-button-group,
  .text-edit-aligns,
  .text-edit-actions {
    flex-wrap: wrap;
  }
}
