:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #18333a;
  background: #f3f7f5;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
.page { width: min(1160px, 100% - 32px); margin: 0 auto; padding: 32px 0 60px; }
.page-head { margin-bottom: 32px; }
.eyebrow { color: #117c70; font-size: .83rem; font-weight: 800; letter-spacing: .1em; }
h1 { margin: 8px 0 10px; font-size: clamp(1.7rem, 4vw, 2.6rem); }
h2 { margin: 0; font-size: 1.2rem; }
p { line-height: 1.55; }
.page-head > p, .section-title p, .helper { color: #526970; }
.notice { padding: 14px 16px; border: 1px solid #deb45d; border-radius: 10px; background: #fff7e5; color: #654716; font-weight: 650; }
.auth-panel { margin: -10px 0 28px; padding: 18px; border: 1px solid #d6e3de; border-radius: 12px; background: #fff; }
.auth-panel form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-top: 10px; }
.auth-panel label { display: grid; gap: 4px; font-size: .9rem; font-weight: 700; }
.auth-panel input { width: min(300px, 100%); min-height: 42px; padding: 8px 10px; border: 1px solid #a9bab7; border-radius: 8px; }
.auth-panel button { min-height: 42px; padding: 8px 15px; border: 0; border-radius: 8px; color: #fff; background: #116d63; font-weight: 750; }
.auth-panel p { margin: 8px 0 0; color: #526970; }
.auth-panel [hidden] { display: none; }
.section-title { margin-bottom: 16px; }
.section-title p { margin: 4px 0 0; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.product-card { min-width: 0; padding: 18px; border: 2px solid #d6e3de; border-radius: 14px; background: #fff; box-shadow: 0 5px 20px #1c4a3810; }
.product-card.drag-over { border-color: #12877a; background: #ebf9f5; box-shadow: 0 0 0 4px #1b9c8629; }
.product-header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.product-header h3 { margin: 0; font-size: 1.18rem; overflow-wrap: anywhere; }
.badge { flex: none; border-radius: 999px; padding: 4px 10px; background: #e7f3ee; color: #176554; font-weight: 750; }
.drop-hint { margin: 8px 0 14px; color: #64777b; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 13px; border: 1px solid #147768; border-radius: 9px; color: #fff; background: #147768; font-weight: 700; }
.action.secondary { color: #146b60; background: #fff; }
.action.is-disabled { opacity: .5; cursor: not-allowed; }
.action:focus-visible, .remove:focus-visible, .send-button:focus-visible { outline: 3px solid #d38911; outline-offset: 2px; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.card-message { min-height: 1.5em; margin: 9px 0 0; color: #9a3f24; font-size: .87rem; white-space: pre-line; }
.thumb-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 10px 0 0; padding: 0; list-style: none; }
.thumb { position: relative; min-width: 0; overflow: hidden; border: 1px solid #dce7e2; border-radius: 9px; background: #f6faf8; }
.thumb-image { display: grid; place-items: center; width: 100%; height: 105px; background: #e9efec; color: #546b70; font-size: .85rem; text-align: center; }
.thumb-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb-info { padding: 7px; font-size: .76rem; line-height: 1.35; }
.thumb-name { display: block; font-weight: 700; overflow-wrap: anywhere; }
.thumb-meta { display: block; margin-top: 3px; color: #576d72; }
.remove { position: absolute; top: 5px; right: 5px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #fff; color: #9a2f25; box-shadow: 0 1px 6px #0005; font-size: 1.4rem; line-height: 1; }
.send-panel { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center; margin-top: 24px; padding: 22px; border-radius: 14px; background: #dcefe8; }
.total-count { margin: 6px 0; font-size: 1.3rem; font-weight: 800; }
.helper { margin: 4px 0; font-size: .88rem; }
.send-button { min-height: 48px; padding: 10px 22px; border: 0; border-radius: 10px; background: #116d63; color: white; font-weight: 800; }
.send-button:disabled { opacity: .5; cursor: not-allowed; }
.send-status { grid-column: 1 / -1; margin: 0; color: #315d58; font-weight: 650; }
@media (max-width: 600px) {
  .page { width: min(100% - 24px, 520px); padding-top: 20px; }
  .product-grid { grid-template-columns: 1fr; }
  .send-panel { grid-template-columns: 1fr; }
  .send-button { width: 100%; }
}
