:root { color-scheme: light; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #25313d; background: #f5f6f8; --brand-orange: #ff7417; --brand-orange-hover: #ec650b; --brand-ink: #283642; --brand-muted: #687782; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--brand-orange-hover); text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar { min-height: 72px; padding: 0 max(24px, calc((100% - 1080px) / 2)); display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid #e1e5e9; }
.brand { color: var(--brand-ink); display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 1.15rem; letter-spacing: -.035em; }
.brand img { display: block; width: 42px; height: 42px; border-radius: 10px; }
.brand strong { color: var(--brand-orange); font-weight: 800; }
nav { display: flex; align-items: center; gap: 20px; color: var(--brand-muted); font-size: .92rem; }
.container { max-width: 1080px; margin: 36px auto; padding: 0 22px 64px; }
h1 { margin: 0 0 20px; font-size: 1.85rem; }
h2 { margin: 0 0 12px; font-size: 1.15rem; }
h3 { margin: 22px 0 8px; }
p { color: #475467; line-height: 1.55; }
.card { background: #fff; border: 1px solid #e1e5e9; border-radius: 10px; padding: 22px; margin: 18px 0; }
.narrow { max-width: 480px; margin: 60px auto; }
.stack { display: grid; gap: 16px; }
label { display: grid; gap: 6px; color: #344054; font-size: .92rem; font-weight: 550; }
input, textarea, select { width: 100%; border: 1px solid #cfd4dc; border-radius: 7px; padding: 10px 11px; color: #18212f; background: #fff; font: inherit; }
.uppercase-input { text-transform: uppercase; }
input:focus, textarea:focus, select:focus { outline: 2px solid #ffc092; border-color: var(--brand-orange); }
textarea { font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; border: 0; border-radius: 7px; padding: 9px 15px; background: var(--brand-orange); color: #fff; font: inherit; font-weight: 650; cursor: pointer; }
button:hover, .button:hover { background: var(--brand-orange-hover); text-decoration: none; }
button:disabled { opacity: .5; cursor: not-allowed; }
.button.secondary { background: #fff2e8; color: #b84c00; }
.secondary { background: #fff2e8; color: #b84c00; }
.secondary:hover { background: #ffe4d0; }
.group-edit { display: flex; align-items: end; gap: 10px; max-width: 520px; margin: 16px 0 8px; }
.group-edit label { flex: 1; }
.group-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.workflow-steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; padding: 0; list-style: none; }
.workflow-steps a { display: inline-block; padding: 8px 12px; border: 1px solid #e1e5e9; border-radius: 999px; background: #fff; font-size: .9rem; }
.delete-group { color: #667085; font-size: .9rem; }
.delete-group summary { color: #b42318; cursor: pointer; }
.delete-group p { margin: 6px 0 10px; }
.product-group { margin-top: 12px; padding: 8px 12px; border: 1px solid #eaecf0; border-radius: 8px; transition: border-color .15s, background-color .15s; }
.product-group.drag-over { border-color: var(--brand-orange); background: #fff8f2; }
.product-group .group-edit { flex: 1; }
.empty-group { min-height: 36px; margin: 8px 0; }
.catalog-feedback { padding: 10px 0; }
.siedfood-export { border-color: #ffd1ad; background: #fffaf6; }
.latest-export { margin-top: 16px; padding-top: 8px; border-top: 1px solid #f1e0d2; }
.latest-export p { overflow-wrap: anywhere; }
.delete-menu { margin-top: 12px; color: #667085; font-size: .9rem; }
.delete-menu summary { cursor: pointer; color: #b42318; }
.delete-menu p { margin-bottom: 10px; }
.delete-all-products { padding: 12px 14px; border: 1px solid #fecdca; border-radius: 8px; background: #fffafa; }
.delete-all-products h3 { margin: 0 0 6px; color: #b42318; font-size: 1rem; }
.danger-button { background: #b42318; }
.danger-button:hover { background: #912018; }
.link-button { min-height: 0; padding: 0; background: none; color: var(--brand-orange-hover); font-weight: 500; }
.link-button:hover { background: none; text-decoration: underline; }
.inline { display: inline; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.page-heading h1 { margin-bottom: 4px; }
.page-heading p { margin-top: 5px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.company-card { display: grid; align-content: start; gap: 8px; }
.company-card-link { display: grid; gap: 8px; color: inherit; overflow-wrap: anywhere; }
.delete-company { margin-top: 8px; padding-top: 10px; border-top: 1px solid #eaecf0; color: #667085; font-size: .9rem; }
.delete-company summary { cursor: pointer; color: #b42318; }
.delete-company p { margin: 8px 0 12px; font-size: .88rem; }
.delete-company form { gap: 10px; }
.delete-company button { width: 100%; }
.empty { text-align: center; padding: 50px 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-row { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.form-row label { flex: 1; min-width: 180px; }
.actions { display: flex; align-items: center; gap: 16px; grid-column: 1 / -1; margin-top: 8px; }
.notice { border-radius: 8px; padding: 12px 15px; margin-bottom: 18px; background: #ecfdf3; color: #027a48; }
.notice.error { background: #fef3f2; color: #b42318; }
.error-text { color: #b42318; margin: 4px 0; }
.muted { color: #667085; font-size: .9rem; }
.gov-data { max-height: 520px; overflow: auto; padding: 14px; border: 1px solid #e1e5e9; border-radius: 7px; background: #f8f9fa; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .82rem; }
.menu-list { padding-left: 20px; }
.menu-list li { padding: 7px 0; }
.badge { display: inline-block; margin-left: 8px; padding: 3px 8px; border-radius: 999px; background: #fff2e8; color: #b84c00; font-size: .75rem; }
.badge.error { background: #fef3f2; color: #b42318; }
.badge.reviewed { background: #ecfdf3; color: #027a48; }
.product-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid #eaecf0; }
.product-row.dragging { opacity: .45; }
.product-details { flex: 1 1 190px; min-width: 140px; }
.product-details p { margin: 4px 0; }
.product-details span { color: #667085; font-size: .88rem; }
.product-photo-control { display: flex; flex: 1 1 310px; align-items: center; gap: 10px; min-width: 0; }
.product-photo-preview { width: 76px; height: 76px; flex: 0 0 76px; display: grid; place-items: center; overflow: hidden; border: 1px solid #d0d5dd; border-radius: 8px; background: #f8f9fa; color: #667085; font-size: .72rem; text-align: center; }
.product-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.product-move-form { display: flex; align-items: end; gap: 8px; }
.product-move-form label { min-width: 150px; }
.product-move-form select { padding: 8px; }
.photo-form { display: flex; align-items: center; gap: 8px; }
.photo-form label { min-width: 220px; flex: 1; }
.photo-form input { font-size: .88rem; }
.photo-form button { white-space: nowrap; }
.product-photo-form { flex: 1; min-width: 0; }
.product-photo-form label { min-width: 0; }
.product-photo-form input { max-width: 100%; }
.photo-upload-error { width: min(92vw, 440px); border: 0; border-radius: 12px; padding: 24px; box-shadow: 0 18px 48px rgb(0 0 0 / 25%); }
.photo-upload-error::backdrop { background: rgb(24 33 47 / 62%); }
.photo-upload-error h2 { color: #b42318; }
.photo-upload-error form { display: flex; justify-content: end; margin-top: 18px; }
.photo-stage { border-color: #f4c99f; }
.photo-progress { padding: 10px 12px; border-radius: 7px; background: #fff8f2; }
.photo-upload-list { display: grid; gap: 4px; }
.photo-upload-row { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 14px 0; border-top: 1px solid #eaecf0; }
.photo-upload-row > div { display: grid; gap: 4px; }
.setup-warning { margin: 16px 0 0; }
.menu-loading-active { overflow: hidden; }
.menu-loading-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: rgb(24 33 47 / 62%); }
.menu-loading-overlay[hidden] { display: none; }
.menu-loading-card { width: min(100%, 380px); display: grid; justify-items: center; gap: 14px; padding: 30px 26px; border-radius: 14px; background: #fff; box-shadow: 0 20px 60px rgb(0 0 0 / 25%); text-align: center; }
.menu-loading-clock { width: 106px; height: 106px; overflow: visible; transform: rotate(-90deg); }
.menu-loading-track, .menu-loading-progress { fill: none; stroke-width: 8; }
.menu-loading-track { stroke: #e4e7ec; }
.menu-loading-progress { stroke: var(--brand-orange); stroke-linecap: round; transition: stroke-dashoffset .15s ease; }
.menu-loading-progress.is-analyzing { stroke-dasharray: 70 200 !important; stroke-dashoffset: 0 !important; transform-box: fill-box; transform-origin: center; animation: menu-progress-spin 1.2s linear infinite; }
.menu-loading-hands { fill: none; stroke: var(--brand-ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; transform-origin: 50px 50px; animation: menu-clock-tick 2s linear infinite; }
.menu-loading-percent { margin-top: -79px; color: var(--brand-ink); font-size: 1.3rem; }
.menu-loading-message { color: var(--brand-ink); font-size: 1.05rem; font-weight: 650; }
.menu-loading-detail { color: var(--brand-muted); font-size: .88rem; line-height: 1.45; }
@keyframes menu-clock-tick { to { transform: rotate(360deg); } }
@keyframes menu-progress-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .menu-loading-hands, .menu-loading-progress.is-analyzing { animation-duration: 12s; } }
@media (max-width: 680px) {
  .topbar { padding: 10px 18px; }
  .brand { font-size: 1rem; }
  nav { gap: 10px; }
  .container { margin-top: 22px; padding: 0 14px 40px; }
  .page-heading, .product-row, .group-heading { align-items: flex-start; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .photo-form { width: 100%; }
  .photo-form label { width: 100%; min-width: 0; }
  .product-move-form { width: 100%; }
  .product-move-form label { flex: 1; min-width: 0; }
  .product-photo-control { width: 100%; flex-basis: auto; }
}
