.artwork-panel { margin-top: 1rem; background: #fff; border-radius: 10px; padding: 1.5rem; border: 1px solid #e8ede4; }
.artwork-panel__title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--forest); margin-bottom: .3rem; }
.artwork-panel__intro { font-size: .85rem; color: #777; margin-bottom: 1rem; }

.artwork-tabs { display: flex; gap: .4rem; margin-bottom: 0; border-bottom: 2px solid #e8ede4; }
.artwork-tab {
  display: flex; align-items: center; gap: .4rem;
  padding: .6rem 1rem; background: none; border: none;
  font-family: var(--font-display); font-size: .78rem; font-weight: 600;
  letter-spacing: .03em; text-transform: uppercase;
  color: #999; cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: all .15s;
}
.artwork-tab:hover { color: var(--forest); }
.artwork-tab.is-active { color: var(--forest); border-bottom-color: var(--forest); }
.artwork-tab svg { flex-shrink: 0; }

.artwork-tab-content { display: none; padding: 1.2rem 0 0; }
.artwork-tab-content.is-active { display: block; }

.artwork-specs__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .8rem; }
.artwork-spec { display: flex; flex-direction: column; gap: .1rem; }
.artwork-spec__label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #999; }
.artwork-spec__value { font-size: .85rem; color: var(--forest); font-weight: 500; }

.artwork-designs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.artwork-design-card {
  text-decoration: none; color: var(--forest);
  border: 1.5px solid #e0e8d8; border-radius: 8px; overflow: hidden;
  transition: all .15s; cursor: pointer;
}
.artwork-design-card:hover { border-color: var(--sage); box-shadow: 0 2px 8px rgba(0,0,0,.08); transform: translateY(-2px); }
.artwork-design-card__thumb { aspect-ratio: 90 / 55; background: #f8f9f6; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.artwork-design-card__thumb--blank { background: #f0f3ec; }
.artwork-design-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.artwork-design-card__thumb .preview-page { position: absolute; inset: 0; }
.artwork-design-card__thumb .preview-elem { position: absolute; overflow: hidden; }
.artwork-design-card__thumb .preview-elem-text { overflow: hidden; width: 100%; height: 100%; line-height: 1.2; }
.artwork-design-card__thumb .preview-elem img { width: 100%; height: 100%; object-fit: cover; display: block; }
.artwork-design-card__name { display: block; padding: .5rem; font-size: .82rem; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.artwork-downloads { display: flex; flex-direction: column; gap: .5rem; max-width: 400px; }
.artwork-download-btn {
  display: flex; align-items: center; gap: .8rem;
  padding: .7rem 1rem; border: 1.5px solid #e0e8d8; border-radius: 8px;
  text-decoration: none; color: var(--forest); transition: all .15s;
}
.artwork-download-btn:hover { border-color: var(--sage); background: #fafcf8; }
.artwork-download-btn strong { font-size: .85rem; display: block; }
.artwork-download-btn small { font-size: .72rem; color: #888; }

/* Artwork choice radio */
.artwork-choice { display: flex; gap: 1rem; margin-bottom: 1rem; }
.artwork-choice label { display: flex; align-items: center; gap: .4rem; font-size: .88rem; color: var(--forest); cursor: pointer; padding: .5rem .8rem; border: 1.5px solid #d0d8c8; border-radius: 6px; transition: all .15s; }
.artwork-choice label:has(input:checked) { border-color: var(--forest); background: rgba(28,48,16,.04); }
.artwork-choice input { accent-color: var(--forest); }

/* Reorder panel */
.reorder-panel { display: none; margin-bottom: 1rem; }
.reorder-panel.is-visible { display: block; }
.reorder-search { display: flex; gap: .5rem; margin-bottom: .8rem; }
.reorder-search input { flex: 1; padding: .5rem .7rem; border: 1.5px solid #c8d4c0; border-radius: 6px; font-size: .85rem; }
.reorder-list { max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: .5rem; padding-right: .3rem; }
.reorder-list::-webkit-scrollbar { width: 4px; }
.reorder-list::-webkit-scrollbar-thumb { background: #c8d4c0; border-radius: 2px; }
.reorder-item { display: flex; gap: .8rem; padding: .7rem; border: 1.5px solid #e0e8d8; border-radius: 8px; cursor: pointer; transition: all .15s; align-items: center; }
.reorder-item:hover { border-color: var(--sage); background: #fafcf8; }
.reorder-item.is-selected { border-color: var(--forest); background: rgba(28,48,16,.04); box-shadow: 0 0 0 2px rgba(28,48,16,.1); }
.reorder-thumb { width: 52px; height: 52px; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: .5rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .05em; line-height: 1.1; text-align: center; padding: 4px; }
.reorder-info { flex: 1; min-width: 0; }
.reorder-info__name { font-size: .85rem; font-weight: 600; color: var(--forest); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reorder-info__meta { font-size: .75rem; color: #7a8a7a; margin-top: .15rem; }
.reorder-info__file { font-size: .72rem; color: #999; margin-top: .1rem; display: flex; align-items: center; gap: .3rem; }
.reorder-selected { padding: .8rem; background: #f0f8e8; border: 1px solid #c8e0b0; border-radius: 8px; margin-bottom: .8rem; display: none; }
.reorder-selected.is-visible { display: flex; align-items: center; gap: .8rem; }
.reorder-selected__text { flex: 1; font-size: .85rem; color: var(--forest); }
.reorder-selected__text strong { display: block; font-size: .9rem; }
.reorder-selected__change { font-size: .78rem; color: var(--sage); cursor: pointer; background: none; border: none; text-decoration: underline; }
.reorder-empty { text-align: center; padding: 1.5rem; color: #999; font-size: .85rem; }

/* New artwork on reorder */
.reorder-new-art { margin-top: .8rem; padding: .8rem; background: #f8f6f0; border-radius: 8px; border: 1px solid #e8e0d0; display: none; }
.reorder-new-art.is-visible { display: block; }
.reorder-new-art__label { font-size: .82rem; font-weight: 600; color: var(--forest); margin-bottom: .4rem; display: flex; align-items: center; gap: .4rem; }
.reorder-new-art__hint { font-size: .78rem; color: #8a8060; margin-bottom: .5rem; }

/* Dropzone */
.dropzone { border: 2px dashed #c8d4c0; border-radius: 10px; padding: 2rem; text-align: center; cursor: pointer; transition: all .2s; background: #fafcf8; margin-bottom: 1rem; }
.dropzone:hover, .dropzone.is-dragover { border-color: var(--forest); background: rgba(28,48,16,.03); }
.dropzone__icon { color: var(--sage); margin-bottom: .5rem; }
.dropzone__text { font-size: .9rem; color: var(--forest); font-weight: 500; }
.dropzone__hint { font-size: .78rem; color: #8a9a8a; margin-top: .3rem; }
.dropzone input[type="file"] { display: none; }

/* File result */
.file-result { display: none; padding: 1rem; border-radius: 10px; margin-bottom: 1rem; font-size: .88rem; }
.file-result.is-visible { display: flex; align-items: flex-start; gap: 1rem; }
.file-result__preview { flex-shrink: 0; }
.file-thumb { width: 120px; height: auto; max-height: 160px; border-radius: 6px; border: 1px solid rgba(0,0,0,.1); object-fit: contain; background: #fff; display: block; }
.file-thumb--placeholder { width: 120px; height: 140px; border-radius: 6px; border: 1px solid rgba(0,0,0,.08); background: #f4f6f0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--forest); }
.file-thumb--placeholder span { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; letter-spacing: .06em; }
.file-thumb--placeholder small { font-size: .65rem; color: #999; margin-top: .3rem; }
.file-result__body { flex: 1; min-width: 0; }
.file-result__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .5rem; }
.file-result__name { font-weight: 600; color: var(--forest); font-size: .9rem; word-break: break-word; }
.file-result__size { font-size: .75rem; color: #8a9a8a; margin-top: .15rem; }
.file-result__badge { font-family: var(--font-display); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; display: flex; align-items: center; gap: .3rem; }
.file-result__score { font-size: .68rem; opacity: .6; font-weight: 600; }
.file-messages { display: flex; flex-direction: column; gap: .4rem; margin-bottom: .6rem; }
.file-msg { padding: .5rem .6rem; border-radius: 6px; font-size: .8rem; line-height: 1.4; }
.file-msg--error { background: rgba(204,68,68,.08); }
.file-msg--warning { background: rgba(170,119,0,.06); }
.file-msg--info { background: rgba(68,136,170,.06); }
.file-msg__head { font-weight: 600; color: var(--forest); display: flex; align-items: center; gap: .3rem; }
.file-msg__text { color: #555; margin-top: .2rem; }
.file-msg__action { color: var(--sage); font-size: .75rem; margin-top: .15rem; font-style: italic; }
.file-result__actions { display: flex; gap: .5rem; margin-top: .6rem; }
.file-result__btn { font-size: .78rem; padding: .35rem .7rem; border-radius: 5px; border: none; cursor: pointer; font-weight: 600; }
.file-result__btn--remove { background: none; color: var(--ip-red, #c41e1e); text-decoration: underline; padding-left: 0; }
.file-result__btn--keep { background: var(--forest); color: #fff; }

/* Auth modal */
.auth-modal {
  display: none; position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,.55); backdrop-filter: blur(3px);
  align-items: center; justify-content: center;
}
.auth-modal.is-active { display: flex; }
.auth-modal__inner {
  background: #fff; border-radius: 12px; max-width: 420px; width: 92%;
  padding: 1.5rem; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.auth-modal__close { position: absolute; top: .8rem; right: .8rem; background: none; border: none; font-size: 1.4rem; color: #999; cursor: pointer; }
.auth-modal__tabs { display: flex; gap: 0; border-bottom: 2px solid #e8ede4; margin-bottom: 1.2rem; }
.auth-modal__tab {
  flex: 1; padding: .6rem; background: none; border: none; border-bottom: 2px solid transparent;
  margin-bottom: -2px; font-weight: 600; font-size: .88rem; color: #999; cursor: pointer;
  font-family: var(--font-display); transition: all .15s;
}
.auth-modal__tab.is-active { color: var(--forest); border-bottom-color: var(--forest); }
.auth-modal__panel { display: none; }
.auth-modal__panel.is-active { display: block; }
.auth-field { margin-bottom: .7rem; }
.auth-field label { display: block; font-size: .78rem; font-weight: 600; color: var(--forest); margin-bottom: .2rem; text-transform: uppercase; letter-spacing: .03em; }
.auth-field input { width: 100%; padding: .55rem .7rem; border: 1.5px solid #d0d8c4; border-radius: 6px; font-size: .88rem; box-sizing: border-box; }
.auth-field input:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(126,142,108,.15); }
.auth-error { color: var(--ip-red, #c41e1e); font-size: .82rem; margin-bottom: .5rem; min-height: 1.2em; }
.auth-btn {
  width: 100%; padding: .65rem; background: var(--forest); color: #fff; border: none;
  border-radius: 8px; font-family: var(--font-display); font-weight: 700; font-size: .9rem;
  cursor: pointer; transition: background .15s;
}
.auth-btn:hover { background: var(--forest-mid, #2a4a1a); }
.auth-btn:disabled { opacity: .5; cursor: not-allowed; }

/* Proof viewer modal */
.proof-modal {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.65); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.proof-modal.is-active { display: flex; }
.proof-modal__inner {
  background: #fff; border-radius: 12px; max-width: 700px; width: 95%;
  max-height: 90vh; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.proof-modal__header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.25rem; border-bottom: 1px solid #e8ede4;
}
.proof-modal__title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--forest); margin: 0; }
.proof-modal__close { background: none; border: none; font-size: 1.5rem; color: #999; cursor: pointer; padding: .2rem .5rem; line-height: 1; }
.proof-modal__close:hover { color: var(--forest); }
.proof-modal__notice {
  padding: .6rem 1.25rem; background: #f0f8e8; font-size: .82rem; color: #3a5a2a;
  border-bottom: 1px solid #e8ede4;
}
.proof-modal__pages {
  flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column;
  gap: 1.5rem; align-items: center; background: #f3f4f0;
}
.proof-page-wrap {
  position: relative; border: 1px solid #d0d8c4; border-radius: 4px;
  overflow: hidden; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08);
  -webkit-user-select: none; user-select: none;
}
.proof-page-wrap .preview-page { position: relative; }
.proof-page-wrap .preview-elem { position: absolute; overflow: hidden; }
.proof-page-wrap .preview-elem-text { overflow: hidden; width: 100%; height: 100%; line-height: 1.2; }
.proof-page-wrap .preview-elem img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.proof-watermark {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  pointer-events: none; z-index: 10;
}
.proof-watermark span {
  font-family: var(--font-display), system-ui, sans-serif;
  font-size: 3rem; font-weight: 900; letter-spacing: .15em;
  color: rgba(200,60,60,.18); transform: rotate(-25deg);
  text-transform: uppercase; white-space: nowrap;
}
.proof-page-label {
  text-align: center; font-size: .75rem; font-weight: 600; color: #888;
  margin-top: .4rem; text-transform: uppercase; letter-spacing: .04em;
}
.proof-modal__nav {
  display: flex; justify-content: center; align-items: center; gap: 1rem;
  padding: .6rem 1.25rem; border-top: 1px solid #e8ede4; background: #fff;
}
.proof-modal__footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: .8rem 1.25rem; border-top: 1px solid #e8ede4;
}

/* Leo editor overlay CSS now in frontend/partials/_leo-embed.html.twig */

/* Editor artwork result card */
.editor-artwork-card {
  display: flex; gap: 1rem; padding: 1rem; border: 1.5px solid #e0e8d8;
  border-radius: 10px; background: #fff;
}
.editor-artwork-card__preview { flex-shrink: 0; }
.editor-artwork-card__preview img {
  width: 140px; height: auto; max-height: 100px; border-radius: 6px;
  border: 1px solid rgba(0,0,0,.1); object-fit: contain; background: #f8f8f8;
}
.editor-artwork-card__body { flex: 1; min-width: 0; }
.editor-artwork-card__title { font-weight: 600; color: var(--forest); font-size: .95rem; margin-bottom: .3rem; }
.editor-artwork-card__status { font-size: .82rem; color: #4a8a3a; display: flex; align-items: center; gap: .3rem; margin-bottom: .8rem; }
.editor-artwork-card__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
@media (max-width: 540px) {
  .editor-artwork-card { flex-direction: column; }
  .editor-artwork-card__preview img { width: 100%; max-width: 200px; }
}

/* Email artwork panel */
.email-art-panel { display: none; padding: 1.2rem; background: var(--off-white, #f4f6f0); border: 1.5px solid #e0e8d8; border-radius: 10px; }
.email-art-panel.is-visible { display: block; }
.email-art-panel__icon { color: var(--sage); margin-bottom: .8rem; }
.email-art-panel__body { margin-bottom: 1rem; }
.email-art-panel__addr { font-size: .95rem; color: var(--forest); margin-bottom: .3rem; }
.email-art-panel__addr strong { font-size: 1rem; }
.email-art-panel__ref { font-size: .82rem; color: #6a7a6a; }
.email-art-panel__notice { display: flex; gap: .6rem; padding: .8rem; background: #fef8e8; border: 1px solid #e8dcc0; border-radius: 8px; font-size: .82rem; color: #6a5a2a; line-height: 1.5; }
.email-art-panel__notice strong { color: #5a4a1a; }

/* Terms */
.artwork-terms { padding: .8rem; background: #f8f6f0; border-radius: 8px; }
.artwork-terms summary { font-size: .82rem; font-weight: 600; color: var(--forest); cursor: pointer; }
.artwork-terms__text { font-size: .78rem; color: #5a5a5a; line-height: 1.6; margin-top: .5rem; }
.artwork-terms__check { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--forest); }
.artwork-terms__check input { accent-color: var(--forest); }

@media (max-width: 540px) {
  .artwork-tabs { flex-wrap: wrap; }
  .artwork-specs__grid { grid-template-columns: 1fr; }
  .artwork-designs { gap: .5rem; }
  .artwork-designs { grid-template-columns: repeat(2, 1fr); }
  .my-design-actions { flex-direction: column; }
  .artwork-choice { flex-direction: column; gap: .5rem; }
  .file-result.is-visible { flex-direction: column; }
  .file-thumb { width: 100%; max-width: 200px; }
}
