body { min-height: 100vh; }
.admin-header {
  height: 82px;
  padding: 0 max(22px, 5vw);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(247,246,241,.94);
}
.admin-header > div { display: flex; align-items: center; gap: 20px; }
.admin-badge { padding: 6px 10px; border-radius: 100px; background: var(--lime); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.view-site { font-size: 12px; font-weight: 700; }
.logout-button { padding: 8px 12px; border: 1px solid var(--line); border-radius: 100px; background: transparent; cursor: pointer; font-size: 10px; font-weight: 700; }
.admin-main { width: min(1180px, calc(100% - 40px)); margin: auto; padding: 80px 0 100px; }
.admin-intro { max-width: 700px; margin-bottom: 55px; }
.admin-intro h1 { font-size: clamp(48px, 6vw, 76px); }
.admin-intro > p:last-child { max-width: 560px; color: var(--muted); line-height: 1.7; }
.upload-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; align-items: start; }
.upload-form, .preview-column {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.upload-form { padding: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; }
.field { display: grid; gap: 8px; }
.field.full, .full { grid-column: 1/3; }
.field > label:first-child, .preview-column > p { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.field input[type="text"], .field select, .field textarea {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
  background: #fff;
  font-size: 13px;
}
.field textarea { min-height: 115px; padding: 13px 14px; resize: vertical; line-height: 1.5; }
.field input[type="text"]:focus, .field select:focus { border-color: var(--ink); }
.field > small { color: var(--muted); font-size: 9px; }
.file-drop {
  min-height: 155px;
  border: 1px dashed #aaa9a3;
  border-radius: 12px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  background: var(--paper);
  cursor: pointer;
  text-align: center;
}
.file-drop:hover { border-color: var(--ink); background: #f1f8df; }
.file-drop input { display: none; }
.file-drop strong { font-size: 13px; }
.file-drop small, .selected-file { color: var(--muted); font-size: 9px; }
.selected-file { margin: 0; }
.upload-symbol { font-size: 25px; }
.color-field { height: 48px; padding: 6px 13px 6px 7px; border: 1px solid var(--line); border-radius: 9px; display: flex; align-items: center; gap: 10px; }
.color-field input { width: 35px; height: 34px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.color-field span { font-size: 12px; }
.license-check { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.license-check input { margin-top: 2px; accent-color: var(--ink); }
.publish-button {
  padding: 15px 18px;
  border: 0;
  border-radius: 9px;
  display: flex;
  justify-content: space-between;
  background: var(--lime);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}
.publish-button:hover { background: #baf03e; }
.form-message { min-height: 17px; margin: -10px 0 0; font-size: 11px; font-weight: 700; }
.form-message.error { color: #c43b2c; }
.form-message.success { color: #39701e; }
.seo-fields { padding: 18px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); }
.seo-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.seo-heading div { display: grid; gap: 3px; }
.seo-heading strong { font-size: 12px; }
.seo-heading span { color: var(--muted); font-size: 9px; }
.seo-toggle { padding: 8px 12px; border: 1px solid var(--line); border-radius: 100px; background: #fff; cursor: pointer; font-size: 10px; font-weight: 700; }
.seo-options { margin-top: 18px; display: none; gap: 16px; }
.seo-options.open { display: grid; }
.preview-column { padding: 20px; position: sticky; top: 20px; }
.preview-column > p { margin: 3px 0 16px; }
.admin-preview { aspect-ratio: 1/.78; border-radius: 11px; overflow: hidden; background: #e7e4dc; }
.admin-preview svg { width: 100%; height: 100%; }
.preview-placeholder { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; color: #888780; }
.preview-placeholder span { font-size: 36px; }
.preview-placeholder p { font-size: 11px; }
.preview-meta { padding: 13px 3px 0; display: flex; justify-content: space-between; gap: 15px; }
.preview-meta div { display: grid; gap: 4px; }
.preview-meta strong { font-size: 13px; }
.preview-meta span { color: var(--muted); font-size: 10px; }
.preview-meta small { color: var(--muted); font-size: 9px; font-weight: 700; }
.uploaded-section { margin-top: 100px; }
.uploaded-section h2 { margin: 0 0 25px; font: 700 38px "Manrope", sans-serif; letter-spacing: -.05em; }
.uploaded-list { display: grid; gap: 8px; }
.uploaded-item { padding: 12px; border: 1px solid var(--line); border-radius: 10px; display: grid; grid-template-columns: 65px 1fr auto; align-items: center; gap: 15px; background: #fff; }
.uploaded-thumb { width: 65px; height: 52px; border-radius: 7px; overflow: hidden; }
.uploaded-thumb svg, .uploaded-thumb img { width: 100%; height: 100%; object-fit: contain; }
.uploaded-item div:nth-child(2) { display: grid; gap: 3px; }
.uploaded-item strong { font-size: 12px; }
.uploaded-item span { color: var(--muted); font-size: 9px; }
.delete-upload { padding: 8px 12px; border: 1px solid #e0aaa3; border-radius: 100px; color: #a62f22; background: #fff; cursor: pointer; font-size: 10px; font-weight: 700; }
.no-uploads { padding: 25px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); text-align: center; font-size: 11px; }
.storage-note { margin-top: 35px; padding: 20px; border-radius: 12px; background: #20201e; color: #fff; }
.storage-note strong { font-size: 12px; }
.storage-note p { max-width: 760px; margin: 7px 0 0; color: #aaa9a4; font-size: 10px; line-height: 1.6; }
.admin-login {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
  background: var(--paper);
  z-index: 100;
}
.admin-login.open { display: grid; }
.login-card, .setup-card {
  width: min(460px, 100%);
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(30,30,28,.08);
}
.login-card h1, .setup-card h1 { margin: 0 0 12px; font-size: 42px; }
.login-card > p:not(.eyebrow), .setup-card > p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.login-card label, .setup-form label { margin-top: 16px; display: grid; gap: 7px; font-size: 11px; font-weight: 700; }
.login-card input, .setup-form input { height: 47px; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; outline: none; }
.login-card input:focus, .setup-form input:focus { border-color: var(--ink); }
.login-card .publish-button, .setup-form .publish-button { width: 100%; margin-top: 20px; }
.login-card > a { margin-top: 18px; display: inline-block; color: var(--muted); font-size: 10px; text-decoration: underline; }
.login-message { min-height: 17px; color: #b23325 !important; font-weight: 700; }
.setup-page { min-height: 100vh; padding: 40px 20px; display: grid; place-items: center; }
.setup-form { display: grid; }
.setup-error, .setup-success { margin-top: 20px; padding: 15px; border-radius: 9px; font-size: 11px; line-height: 1.6; }
.setup-error { color: #9b281d; background: #ffe5e1; }
.setup-success { color: #254f18; background: #e9f8df; }
.setup-success .publish-button { margin-top: 15px; text-decoration: none; }

@media (max-width: 760px) {
  .admin-header { height: 68px; padding: 0 18px; }
  .admin-badge { display: none; }
  .logout-button { display: none; }
  .admin-main { width: calc(100% - 28px); padding-top: 55px; }
  .upload-layout { grid-template-columns: 1fr; }
  .upload-form { padding: 20px; grid-template-columns: 1fr; }
  .field.full, .full { grid-column: auto; }
  .preview-column { position: static; }
  .uploaded-item { grid-template-columns: 55px 1fr auto; }
}
