.admin-heading { background: var(--charcoal); color: #fafafa; padding: clamp(24px, 5vw, 46px); border-radius: 17px; border-inline-start: 5px solid var(--orange); margin-bottom: 16px; }
.admin-heading h1 { font-size: clamp(1.7rem, 5vw, 2.7rem); line-height: 1.3; }
.admin-heading p { color: var(--orange); margin-top: 5px; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.category[aria-current] { border-color: var(--charcoal); background: var(--charcoal); color: #fafafa; }
.panel { padding: clamp(16px, 3vw, 27px); border: 1px solid var(--line); background: var(--paper); border-radius: 13px; margin-bottom: 25px; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 17px; }
.panel h2 { font-size: clamp(1.05rem, 3vw, 1.45rem); }
.panel-head p, .qr-panel p { color: var(--muted); font-size: .86rem; }
.login { width: min(100%, 430px); margin: clamp(28px, 9vh, 95px) auto; padding: clamp(24px, 5vw, 36px); border-radius: 18px; box-shadow: 0 16px 48px #0000000c; }
.login .brand-icon { width: 48px; height: 48px; border-radius: 14px; }
.login h1 { font-size: clamp(1.45rem, 5vw, 1.8rem); margin: 18px 0 22px; line-height: 1.45; }
.login form { display: grid; gap: 8px; }
.login .field { margin: 0; }
.login .field input { min-height: 50px; }
.login .button { width: 100%; min-height: 50px; margin-top: 10px; }
.admin-list { border-top: 1px solid var(--line); }
.admin-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(112px, 210px) auto; gap: 10px; align-items: center; padding-block: 9px; border-bottom: 1px solid var(--line); }
.admin-row:last-child { border-bottom: 0; }
.admin-name { min-width: 0; display: flex; align-items: center; gap: 9px; }
.admin-name img { width: 59px; height: 48px; object-fit: cover; background: var(--soft); border-radius: 6px; flex: none; }
.admin-name strong { display: block; overflow-wrap: anywhere; }
.admin-name small, .admin-meta small { display: block; color: var(--muted); overflow-wrap: anywhere; }
.admin-meta { font-size: .9rem; }
.status-pill { color: #454549; background: #e9e9eb; padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.group-row { grid-template-columns: minmax(0, 1fr) auto auto; }
.admin-name .category-thumb { width: 45px; height: 39px; }
.qr-panel { text-align: center; }
.qr-panel .qr-url { max-width: 490px; margin-inline: auto; }
.qr-panel a { margin-top: 12px; }
.editor { width: min(660px, calc(100% - 28px)); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 13px; }
.field { display: grid; gap: 5px; min-width: 0; margin-bottom: 9px; font-size: .89rem; font-weight: 650; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; min-height: 44px; padding: 9px 11px; background: var(--canvas); border: 1px solid var(--line); border-radius: 8px; font-size: 1rem; font-weight: 400; }
.field textarea { resize: vertical; }
.field input[lang="en"], .field textarea[lang="en"] { font-family: 'DM Sans', sans-serif; }
.field small { color: var(--muted); font-weight: 400; }
.price-words { display: block; min-height: 1.6em; overflow-wrap: anywhere; }
.upload-row { display: flex; gap: 10px; align-items: center; }
.upload-row .field { flex: 1; }
.preview { position: relative; display: grid; place-items: center; width: 90px; height: 68px; background: var(--soft); border-radius: 7px; overflow: hidden; color: var(--muted); flex: none; }
.preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.toggle-row { display: flex; gap: 13px; flex-wrap: wrap; margin-block: 2px 8px; font-size: .87rem; }
.toggle-row label { display: flex; align-items: center; min-height: 44px; gap: 5px; cursor: pointer; }
.toggle-row input { width: 17px; height: 17px; accent-color: var(--charcoal); }
.problem { color: var(--danger); }
.danger { color: var(--danger); border-color: #dfbbb6; }
.danger:hover { background: #f8e9e5; }
.confirm-actions { margin-top: 15px; }
.photo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block: 4px 12px; }
.photo-remove { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 8px 13px; color: #962e25; background: #fff4f1; border: 1px solid #e8bbb5; border-radius: 9px; font-size: .85rem; font-weight: 700; }
.photo-remove svg { width: 18px; height: 18px; }
.photo-remove:hover { background: #f9e3df; }
.photo-remove.is-undo { color: var(--ink); background: var(--soft); border-color: var(--line); }
.photo-status { color: var(--muted); font-size: .8rem; }
.product-filter { max-width: 290px; margin-bottom: 16px; }
.sales-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-block: 18px; }
.sales-cards div { padding: 20px; border: 1px solid var(--line); background: var(--canvas); border-radius: 12px; }
.sales-cards span, .sales-cards strong { display: block; }
.sales-cards span { color: var(--muted); font-size: .9rem; }
.sales-cards strong { font-size: 1.4rem; margin-top: 8px; color: var(--accent-ink); }
#user-list { margin-top: 24px; }
@media (max-width: 550px) {
  .login { margin-block: 32px; }
  .admin-row { grid-template-columns: minmax(0, 1fr) auto; }
  .admin-row .button { grid-column: 2; grid-row: 1 / span 2; }
  .admin-meta { grid-row: 2; grid-column: 1; }
  .admin-name small { font-size: .72rem; }
  .group-row { grid-template-columns: minmax(0, 1fr) auto auto; }
  .group-row .button { grid-column: 3; grid-row: auto; }
  .form-grid { grid-template-columns: 1fr; }
}

.sales-period { padding: 18px; border: 1px solid var(--line); background: var(--canvas); border-radius: 12px; }
.sales-presets { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.sales-presets .category { background: var(--paper); }
.sales-presets .category[aria-pressed="true"] { background: var(--charcoal); }
.sales-custom { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.sales-date { min-width: 0; border: 1px solid var(--line); border-radius: 9px; padding: 8px; }
.sales-date legend { padding-inline: 5px; font-size: .85rem; font-weight: 650; }
.sales-date div { display: grid; grid-template-columns: .8fr 1.4fr 1fr; gap: 5px; }
.sales-date select { min-width: 0; width: 100%; min-height: 44px; padding: 6px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); font: inherit; }
@media (max-width: 550px) { .sales-custom { grid-template-columns: 1fr; } .sales-period { padding: 12px; } .sales-period > .button { width: 100%; } }

.sales-products { border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.sales-products h2 { font-size: 1.15rem; }
.sales-products > p { color: var(--muted); font-size: .85rem; margin-block: 4px 12px; }
.sales-products ol { list-style: none; padding: 0; margin: 0; }
.sales-product { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-block: 12px; font-size: .9rem; }
.sales-product strong { overflow-wrap: anywhere; }
.sales-product span { white-space: nowrap; color: var(--muted); }
.sales-product span:last-child { color: var(--accent-ink); font-weight: 700; }
@media (max-width: 400px) { .sales-product { grid-template-columns: 1fr auto; } .sales-product span:last-child { grid-column: 1 / -1; } }

.hero-admin-preview { width: min(100%, 520px); aspect-ratio: 2 / 1; background: var(--soft); border-radius: 12px; overflow: hidden; margin-bottom: 14px; }
.hero-admin-preview img { width: 100%; height: 100%; object-fit: cover; }
.hero-languages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-block: 16px; }
.hero-languages fieldset { min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.hero-languages legend { padding-inline: 5px; font-weight: 700; }
@media (max-width: 550px) { .hero-languages { grid-template-columns: 1fr; } }

.category-icons { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-block: 10px 16px; }
.category-icons legend { padding-inline: 5px; font-size: .9rem; font-weight: 700; }
#category-icon-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(75px, 1fr)); gap: 7px; max-height: 240px; overflow-y: auto; }
.icon-option { cursor: pointer; min-width: 0; }
.icon-option input { position: absolute; opacity: 0; }
.icon-option span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 65px; border: 1px solid var(--line); border-radius: 9px; background: var(--canvas); }
.icon-option small { font-size: .68rem; }
.icon-option input:checked + span { background: #ffdfbf; border-color: #b94e09; color: #632d08; }
.icon-option input:focus-visible + span { outline: 2px solid #ad4b09; outline-offset: 2px; }

.occasion-field { max-width: 320px; margin-bottom: 14px; }
