.asset-tabs {
  display: flex;
  gap: 6px;
  margin: 0 -2px 12px;
  padding: 2px 2px 7px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.asset-tab {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid #ddd8cf;
  border-radius: 999px;
  background: #faf8f4;
  color: #625d55;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.asset-tab.active {
  border-color: #111;
  background: #111;
  color: #fff;
}

.asset-preview svg {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
}

.asset-item strong {
  font-size: 10px;
  line-height: 1.15;
}

.assets-panel {
  max-height: 440px;
}

.image-size-control > span {
  display: flex;
  justify-content: space-between;
}

.image-size-control output {
  color: #111;
  font-weight: 700;
}

.image-size-control input[type="range"] {
  height: 5px;
  margin: 7px 0 2px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #ded9d0;
  accent-color: #111;
  cursor: pointer;
}

.product-visual img,
.default-product {
  transform-origin: center;
  transition: transform 120ms ease-out;
}

.poster.exporting .product-visual img,
.poster.exporting .default-product {
  transition: none;
}

.logo-panel {
  overflow: hidden;
}

.logo-library {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  max-height: 190px;
  overflow-y: auto;
}

.logo-item {
  display: grid;
  place-items: center;
  min-width: 0;
  height: 58px;
  padding: 8px;
  border: 1px solid #e0dcd4;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.logo-item:hover,
.logo-item.active {
  border-color: #111;
  box-shadow: inset 0 0 0 1px #111;
}

.logo-item img {
  width: 100%;
  height: 30px;
  object-fit: contain;
}

.logo-item small {
  max-width: 100%;
  margin-top: 3px;
  overflow: hidden;
  color: #666;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logo-mark:has(#brandLogo:not([hidden])) {
  width: 105px;
  height: 42px;
  border: 0;
  border-radius: 0;
}

.logo-mark #brandLogo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center;
}

.floating-history {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  background: rgba(20,20,19,.94);
  box-shadow: 0 14px 38px rgba(0,0,0,.28);
  color: #fff;
  backdrop-filter: blur(12px);
}

.floating-history button {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 11px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.floating-history button:hover:not(:disabled) {
  background: rgba(255,255,255,.17);
}

.floating-history button:disabled {
  opacity: .32;
  cursor: default;
}

.floating-history .save-progress-btn {
  display: flex;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
}

.save-icon {
  font-size: 17px;
  line-height: 1;
}

.history-separator {
  width: 1px;
  height: 26px;
  background: rgba(255,255,255,.15);
}

.floating-history small {
  position: absolute;
  right: 4px;
  bottom: -19px;
  width: 130px;
  color: #595650;
  font-size: 9px;
  text-align: right;
}

@media (max-width: 760px) {
  .floating-history { right: 12px; bottom: 16px; }
  .floating-history small { display: none; }
}

@media print {
  .floating-history { display: none; }
}

.bold-card {
  position: absolute;
  top: -15px;
  right: 19px;
  z-index: 2;
  display: none;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ece8e1;
  color: #111;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.feature-card:hover .bold-card {
  display: block;
}

.feature-card.all-bold .bold-card {
  display: block;
  background: #111;
  color: #fff;
}

.feature-card.all-bold .feature-title,
.feature-card.all-bold .feature-description {
  font-weight: 800;
}

.poster.exporting .bold-card {
  display: none !important;
}

.export-panel select {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #ddd8cf;
  border-radius: 10px;
  background: #fcfbf8;
  color: #111;
  outline: none;
}

.export-panel .export-btn {
  position: static;
  margin-top: 14px;
  box-shadow: none;
}

.export-panel .export-btn:disabled {
  opacity: .55;
  cursor: wait;
}

.print-info {
  margin: 12px 0 0;
  padding: 9px 10px;
  border-radius: 9px;
  background: #f3f0e9;
  color: #565149;
  font-size: 10px;
  text-align: center;
}

.print-info[data-message="success"] {
  background: #e8f3e7;
  color: #245b2b;
  font-weight: 700;
}

.print-info[data-message="error"] {
  background: #f9e7e2;
  color: #9a2f1d;
  font-weight: 700;
}

.ready-download-link {
  display: block;
  margin-top: 8px;
  padding: 11px;
  border: 1px solid #1f622d;
  border-radius: 10px;
  background: #edf8ee;
  color: #1f622d;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.ready-download-link[hidden] {
  display: none;
}

.print-section-label {
  display: block;
  margin-bottom: 7px;
  color: #5d5952;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.print-presets {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.print-preset {
  position: relative;
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px;
  border: 1px solid #ddd8cf;
  border-radius: 11px;
  cursor: pointer;
  min-width: 0;
  overflow: hidden;
}

.print-preset:has(input:checked) {
  border-color: #111;
  box-shadow: inset 0 0 0 1px #111;
}

.print-preset input {
  position: absolute;
  opacity: 0;
}

.preset-check {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 1px solid #aaa49a;
  border-radius: 5px;
  color: transparent;
  font-size: 12px;
}

.print-preset input:checked + .preset-check {
  border-color: #111;
  background: #111;
  color: #fff;
}

.print-preset b,
.print-preset small {
  display: block;
}

.print-preset b { font-size: 10px; }
.print-preset small { margin-top: 2px; color: #666; font-size: 9px; }

.print-preset > span:last-child {
  min-width: 0;
}

.save-preset-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 9px;
}

.save-preset-actions button {
  padding: 8px;
  border: 1px solid #ddd8cf;
  border-radius: 9px;
  background: #f7f4ee;
  color: #403c36;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.sidebar {
  min-width: 0;
  overflow-x: hidden;
}

.editor-panel,
.export-panel,
.print-size-grid,
.save-preset-actions {
  min-width: 0;
  max-width: 100%;
}

.export-panel {
  margin-bottom: 0;
  padding-bottom: 16px;
}

.export-panel label,
.export-panel input,
.export-panel select,
.export-panel button {
  min-width: 0;
  max-width: 100%;
}

.export-panel .panel-title {
  align-items: flex-start;
}

.export-panel .panel-title span {
  max-width: 88px;
  text-align: right;
}
