:root {
  --bg: #f7f4ee;
  --bg-soft: #fbf9f5;
  --card: rgba(255, 252, 247, 0.92);
  --card-solid: #fffcf7;

  --text: #24313b;
  --muted: #7e8790;
  --line: rgba(49, 69, 85, 0.14);

  --sand: #d9cdbd;
  --stone: #c9b8a3;
  --gold: #b89a67;
  --slate: #314555;
  --slate-soft: #7e91a0;

  --danger: #8a3d36;
  --success: #4f7b59;
  --warning: #b58a42;

  --radius-xl: 32px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --shadow-soft: 0 18px 50px rgba(36, 49, 59, 0.10);
  --shadow-card: 0 10px 28px rgba(36, 49, 59, 0.08);

  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: Inter, Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Basis */

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,0.95), transparent 34%),
    linear-gradient(145deg, #fbf9f5 0%, #f7f4ee 48%, #e9dfd1 100%);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* App-Grundlayout */

.app-shell {
  width: 100%;
  min-height: 100vh;
  padding: 18px;
}

.app-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.page {
  padding-bottom: 96px;
}

/* Header */

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(184, 154, 103, 0.45);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 252, 247, 0.72);
  box-shadow: var(--shadow-card);
  position: relative;
}

.brand-mark::before {
  content: "✦";
  position: absolute;
  top: -9px;
  right: 5px;
  color: var(--gold);
  font-size: 11px;
}

.brand-glass {
  width: 14px;
  height: 22px;
  border: 1.6px solid var(--slate);
  border-top: 2px solid var(--slate);
  border-radius: 7px 7px 5px 5px;
  position: relative;
}

.brand-glass::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -13px;
  width: 1.5px;
  height: 12px;
  background: var(--slate);
  transform: translateX(-50%);
}

.brand-text {
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

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

/* Typografie */

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
}

.page-title,
.hero-title {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--text);
  line-height: 0.98;
  margin: 0;
}

.hero-title {
  font-size: clamp(52px, 14vw, 112px);
  letter-spacing: -0.05em;
}

.page-title {
  font-size: clamp(36px, 9vw, 64px);
  letter-spacing: -0.035em;
}

.page-subtitle,
.hero-subtitle {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  margin: 14px 0 0;
  max-width: 640px;
}

/* Karten */

.card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
}

.card-pad {
  padding: 22px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.card-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

/* Buttons */

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  min-height: 46px;
}

.btn-primary {
  background: var(--slate);
  color: #fff;
  box-shadow: 0 12px 24px rgba(49, 69, 85, 0.20);
}

.btn-secondary {
  background: rgba(255, 252, 247, 0.72);
  color: var(--slate);
  border: 1px solid var(--line);
}

.btn-gold {
  background: var(--gold);
  color: #fff;
}

.btn-danger {
  background: rgba(138, 61, 54, 0.10);
  color: var(--danger);
  border: 1px solid rgba(138, 61, 54, 0.25);
}

.btn-full {
  width: 100%;
}

/* Badges */

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.7);
}

.badge-entwurf {
  color: #8a642a;
  border-color: rgba(181, 138, 66, 0.35);
  background: rgba(181, 138, 66, 0.11);
}

.badge-final {
  color: #41694a;
  border-color: rgba(79, 123, 89, 0.32);
  background: rgba(79, 123, 89, 0.10);
}

.badge-geloescht {
  color: #8a3d36;
  border-color: rgba(138, 61, 54, 0.30);
  background: rgba(138, 61, 54, 0.09);
}

/* Hero Startseite */

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 28px;
  min-height: 620px;
  background:
    linear-gradient(140deg, rgba(255,255,255,0.82), rgba(247,244,238,0.50)),
    radial-gradient(circle at 78% 22%, rgba(126,145,160,0.22), transparent 34%),
    linear-gradient(180deg, #fbf9f5, #eadfce);
  box-shadow: var(--shadow-soft);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 34px;
}

.hero-actions {
  margin-top: 32px;
  display: grid;
  gap: 14px;
}

.hero-card {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.hero-card strong {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

.hero-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.hero-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(184, 154, 103, 0.12);
  display: grid;
  place-items: center;
  color: var(--gold);
  flex: 0 0 auto;
}

.hero-visual {
  position: absolute;
  right: -24px;
  bottom: -34px;
  width: min(52vw, 360px);
  height: 430px;
  opacity: 0.95;
  pointer-events: none;
}

.bottle {
  position: absolute;
  right: 72px;
  bottom: 0;
  width: 104px;
  height: 360px;
  border-radius: 34px 34px 18px 18px;
  background: linear-gradient(90deg, #cad2c5, #eef0e8 35%, #b6c0b2);
  box-shadow: -18px 20px 40px rgba(49, 69, 85, 0.16);
}

.bottle::before {
  content: "";
  position: absolute;
  top: -78px;
  left: 32px;
  width: 39px;
  height: 96px;
  border-radius: 18px 18px 4px 4px;
  background: linear-gradient(90deg, #b7c0af, #edf0e8 45%, #a9b4a5);
}

.bottle-label {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 92px;
  height: 106px;
  border-radius: 16px;
  background: #fbf9f5;
  border: 1px solid rgba(49, 69, 85, 0.10);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--slate);
}

.glass {
  position: absolute;
  right: 0;
  bottom: 18px;
  width: 92px;
  height: 170px;
  border: 2px solid rgba(49, 69, 85, 0.30);
  border-radius: 0 0 42px 42px;
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.12));
}

.glass::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -88px;
  width: 2px;
  height: 88px;
  background: rgba(49, 69, 85, 0.22);
}

/* Formulare */

.form-section {
  margin-bottom: 16px;
}

.form-section summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  font-weight: 800;
  color: var(--slate);
}

.form-section summary::-webkit-details-marker {
  display: none;
}

.form-section-content {
  padding: 0 22px 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: 13px;
  font-weight: 800;
  color: var(--slate);
}

.input,
.select,
.textarea,
input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(49, 69, 85, 0.16);
  background: rgba(255,255,255,0.58);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 14px 15px;
  font-size: 16px;
  font-family: var(--font-sans);
}

textarea,
.textarea {
  min-height: 112px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(184, 154, 103, 0.28);
  border-color: rgba(184, 154, 103, 0.55);
}

.hint {
  font-size: 13px;
  color: var(--muted);
}

.upload-card {
  border: 1px dashed rgba(49, 69, 85, 0.24);
  background: rgba(255,255,255,0.42);
  border-radius: var(--radius-md);
  padding: 18px;
}

/* Sticky Actions */

.sticky-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  background: rgba(247, 244, 238, 0.86);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(49, 69, 85, 0.12);
  z-index: 50;
}

.sticky-actions-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Archiv */

.toolbar {
  display: grid;
  gap: 14px;
  margin: 22px 0;
}

.searchbar {
  position: relative;
}

.searchbar input {
  padding-left: 44px;
}

.searchbar::before {
  content: "⌕";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 20px;
}

.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filter-chip {
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.50);
  color: var(--slate);
  padding: 9px 13px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.filter-chip.active {
  background: var(--slate);
  color: #fff;
}

.archive-list {
  display: grid;
  gap: 14px;
}

.archive-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  padding: 14px;
  text-decoration: none;
}

.archive-thumb {
  width: 86px;
  height: 118px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(49, 69, 85, 0.08);
}

.archive-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--text);
}

.archive-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.archive-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* Detail */

.detail-layout {
  display: grid;
  gap: 18px;
}

.detail-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.detail-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(49, 69, 85, 0.08);
  min-height: 180px;
}

.detail-section {
  padding: 22px;
  margin-bottom: 14px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.detail-field {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.detail-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.detail-value {
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Meldungen */

.message-box {
  max-width: 680px;
  margin: 60px auto;
  padding: 28px;
  text-align: left;
}

.message-title {
  font-family: var(--font-serif);
  font-size: 38px;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}

.message-text {
  color: var(--muted);
  line-height: 1.55;
}

/* Desktop */

@media (min-width: 760px) {
  .app-shell {
    padding: 30px;
  }

  .hero {
    min-height: 680px;
    padding: 54px;
  }

  .hero-content {
    width: 56%;
    padding-top: 64px;
  }

  .hero-actions {
    max-width: 520px;
  }

  .hero-visual {
    right: 50px;
    bottom: 10px;
    width: 380px;
    height: 520px;
  }

  .bottle {
    height: 440px;
    width: 124px;
  }

  .glass {
    width: 108px;
    height: 194px;
  }

  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .field-full {
    grid-column: 1 / -1;
  }

  .toolbar {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .archive-card {
    grid-template-columns: 110px 1fr;
    padding: 18px;
  }

  .archive-thumb {
    width: 110px;
    height: 148px;
  }

  .detail-layout {
    grid-template-columns: 320px 1fr;
  }

  .detail-image-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .detail-field-full {
    grid-column: 1 / -1;
  }
}

/* -------------------------------------------------------
   Edit-Seite: optische Angleichung der bestehenden Bearbeitung
   Ziel: neue 6Flaschen-Optik, ohne Formularlogik zu verändern
------------------------------------------------------- */

body.edit-modern {
  margin: 0 !important;
  min-height: 100vh !important;
  font-family: var(--font-sans) !important;
  color: var(--text) !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,0.95), transparent 34%),
    linear-gradient(145deg, #fbf9f5 0%, #f7f4ee 48%, #e9dfd1 100%) !important;
}

body.edit-modern * {
  box-sizing: border-box;
}

body.edit-modern a {
  color: var(--slate);
}

body.edit-modern > h1,
body.edit-modern > h2,
body.edit-modern > h3,
body.edit-modern > p,
body.edit-modern > form,
body.edit-modern > div,
body.edit-modern > section {
  max-width: 1120px;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.edit-modern h1 {
  font-family: var(--font-serif) !important;
  font-size: clamp(34px, 8vw, 58px) !important;
  font-weight: 500 !important;
  letter-spacing: -0.035em !important;
  line-height: 1 !important;
  color: var(--text) !important;
  margin-top: 28px !important;
  margin-bottom: 18px !important;
}

body.edit-modern h2,
body.edit-modern h3 {
  color: var(--slate) !important;
  letter-spacing: -0.02em !important;
}

body.edit-modern form {
  width: calc(100% - 36px) !important;
  max-width: 1120px !important;
  margin: 0 auto 110px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.edit-modern fieldset,
body.edit-modern details,
body.edit-modern .section,
body.edit-modern .card,
body.edit-modern .box,
body.edit-modern .form-section,
body.edit-modern .panel {
  background: var(--card) !important;
  border: 1px solid rgba(255, 255, 255, 0.66) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-card) !important;
  backdrop-filter: blur(18px);
  margin: 0 0 16px !important;
  padding: 20px !important;
  color: var(--text) !important;
}

body.edit-modern legend {
  font-weight: 800 !important;
  color: var(--slate) !important;
  padding: 0 8px !important;
}

body.edit-modern label {
  display: block;
  font-size: 13px !important;
  font-weight: 800 !important;
  color: var(--slate) !important;
  margin-bottom: 7px !important;
}

body.edit-modern input,
body.edit-modern select,
body.edit-modern textarea {
  width: 100% !important;
  border: 1px solid rgba(49, 69, 85, 0.16) !important;
  background: rgba(255,255,255,0.58) !important;
  color: var(--text) !important;
  border-radius: var(--radius-sm) !important;
  padding: 14px 15px !important;
  font-size: 16px !important;
  font-family: var(--font-sans) !important;
  box-shadow: none !important;
}

body.edit-modern textarea {
  min-height: 112px !important;
  resize: vertical;
}

body.edit-modern input:focus,
body.edit-modern select:focus,
body.edit-modern textarea:focus {
  outline: 2px solid rgba(184, 154, 103, 0.28) !important;
  border-color: rgba(184, 154, 103, 0.55) !important;
}

body.edit-modern input[type="file"] {
  background: rgba(255,255,255,0.34) !important;
  border: 1px dashed rgba(49, 69, 85, 0.24) !important;
}

body.edit-modern button,
body.edit-modern input[type="submit"],
body.edit-modern input[type="button"] {
  appearance: none !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 13px 18px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  font-family: var(--font-sans) !important;
  cursor: pointer !important;
  background: var(--slate) !important;
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(49, 69, 85, 0.20) !important;
}

body.edit-modern button.secondary,
body.edit-modern input.secondary {
  background: rgba(255, 252, 247, 0.72) !important;
  color: var(--slate) !important;
  border: 1px solid var(--line) !important;
  box-shadow: none !important;
}

body.edit-modern table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 10px !important;
}

body.edit-modern td,
body.edit-modern th {
  padding: 8px !important;
  vertical-align: top !important;
  color: var(--text) !important;
}

body.edit-modern img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

body.edit-modern .edit-modern-header {
  width: calc(100% - 36px);
  max-width: 1120px;
  margin: 18px auto 18px;
}

body.edit-modern .edit-modern-title-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 22px;
  margin-bottom: 18px;
}

body.edit-modern .edit-modern-title-card h1 {
  margin: 0 !important;
}

body.edit-modern .edit-modern-title-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

/* Mobile Feinschliff */

@media (max-width: 760px) {
  body.edit-modern .app-header {
    align-items: flex-start;
  }

  body.edit-modern .header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  body.edit-modern form {
    width: calc(100% - 28px) !important;
  }

  body.edit-modern fieldset,
  body.edit-modern details,
  body.edit-modern .section,
  body.edit-modern .card,
  body.edit-modern .box,
  body.edit-modern .form-section,
  body.edit-modern .panel {
    padding: 16px !important;
    border-radius: 22px !important;
  }
}
/* -------------------------------------------------------
   Edit-Seite: finaler optischer Umschlag
   Ziel: gleiche UI-Logik wie /neue-verkostung.php
------------------------------------------------------- */

body.edit-polished .app-shell.page {
  padding-bottom: 116px !important;
}

body.edit-polished .app-container {
  max-width: 1120px !important;
}

body.edit-polished #weinForm {
  width: 100% !important;
  max-width: 1120px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.edit-polished .edit-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

body.edit-polished .edit-title-card .page-title {
  margin: 0 !important;
}

body.edit-polished .form-section.card {
  overflow: hidden !important;
  padding: 0 !important;
  margin-bottom: 16px !important;
  background: var(--card) !important;
  border: 1px solid rgba(255, 255, 255, 0.66) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-card) !important;
}

body.edit-polished .form-section summary {
  position: relative;
  padding: 20px 54px 20px 22px !important;
  border-bottom: 1px solid var(--line) !important;
  color: var(--slate) !important;
  background: rgba(255, 252, 247, 0.35) !important;
  font-size: 18px !important;
  font-weight: 850 !important;
}

body.edit-polished .form-section summary::after {
  content: "⌄";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: rgba(184, 154, 103, 0.10);
  border: 1px solid rgba(184, 154, 103, 0.22);
}

body.edit-polished .form-section[open] summary::after {
  content: "⌃";
}

body.edit-polished .form-section-content {
  padding: 22px !important;
}

body.edit-polished .form-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 16px !important;
}

body.edit-polished .field {
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
}

body.edit-polished .field-full {
  grid-column: 1 / -1 !important;
}

body.edit-polished label {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: var(--slate) !important;
  margin: 0 !important;
}

body.edit-polished input,
body.edit-polished select,
body.edit-polished textarea {
  width: 100% !important;
  border: 1px solid rgba(49, 69, 85, 0.16) !important;
  background: rgba(255,255,255,0.58) !important;
  color: var(--text) !important;
  border-radius: var(--radius-sm) !important;
  padding: 14px 15px !important;
  font-size: 16px !important;
  font-family: var(--font-sans) !important;
  box-shadow: none !important;
}

body.edit-polished .input-calculated,
body.edit-polished .calculated {
  background: rgba(184, 154, 103, 0.08) !important;
  border-color: rgba(184, 154, 103, 0.28) !important;
  font-weight: 800 !important;
}

body.edit-polished .edit-upload-card {
  display: grid;
  gap: 8px;
}

body.edit-polished .upload-current {
  margin-top: 8px !important;
  padding: 12px !important;
  background: rgba(255,255,255,0.46) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-md) !important;
  color: var(--muted) !important;
  font-size: 13px !important;
}

body.edit-polished .upload-current span {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
  color: var(--slate);
}

body.edit-polished .upload-current img {
  width: 96px !important;
  height: 128px !important;
  max-width: 96px !important;
  max-height: 128px !important;
  object-fit: cover !important;
  border-radius: 16px !important;
  box-shadow: var(--shadow-card) !important;
}

body.edit-polished .hint,
body.edit-polished .result-hint {
  color: var(--muted) !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

body.edit-polished .input-suffix {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

body.edit-polished .input-suffix input {
  flex: 1 !important;
}

body.edit-polished .suffix {
  color: var(--muted) !important;
  font-weight: 800 !important;
}

body.edit-polished .sticky-actions {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom)) !important;
  background: rgba(247, 244, 238, 0.88) !important;
  backdrop-filter: blur(18px) !important;
  border-top: 1px solid rgba(49, 69, 85, 0.12) !important;
  z-index: 50 !important;
}

body.edit-polished .edit-sticky-actions-inner {
  max-width: 1120px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
}

body.edit-polished .sticky-actions .btn {
  width: 100% !important;
}

body.edit-polished button.btn,
body.edit-polished .btn {
  border-radius: 999px !important;
}

body.edit-polished .btn-primary {
  background: var(--slate) !important;
  color: #fff !important;
}

body.edit-polished .btn-secondary {
  background: rgba(255, 252, 247, 0.72) !important;
  color: var(--slate) !important;
  border: 1px solid var(--line) !important;
}

@media (min-width: 760px) {
  body.edit-polished .form-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 760px) {
  body.edit-polished .edit-title-row {
    display: block;
  }

  body.edit-polished .edit-title-row .badge {
    margin-top: 14px;
  }

  body.edit-polished .app-header {
    align-items: flex-start;
  }

  body.edit-polished .header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  body.edit-polished .form-section-content {
    padding: 16px !important;
  }

  body.edit-polished .form-section summary {
    padding: 18px 50px 18px 18px !important;
  }
}
