:root { color-scheme: light; font-family: system-ui, -apple-system, sans-serif; color: #24372e; background: #f3f5ef; }
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 1320px; margin: auto; padding: 48px 24px; }
.brand { font-weight: 750; color: #37654b; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.04em; margin: 24px 0 12px; }
header > p { color: #59685f; margin-bottom: 32px; }

.card { background: white; border: 1px solid #dde4d9; border-radius: 20px; padding: 28px; }
h2 { font-size: 1.3rem; margin: 0 0 12px; }
.hint { color: #637066; font-size: .9rem; line-height: 1.5; }
label { display: block; margin: 24px 0 8px; font-weight: 650; }
input, textarea, select { width: 100%; padding: 12px; border: 1px solid #aab8ac; border-radius: 8px; font: inherit; background: #fcfdfb; }
textarea { resize: vertical; }
button { padding: 12px 18px; border: 0; border-radius: 8px; background: #305d43; color: white; font: inherit; font-weight: 650; cursor: pointer; }
form button { width: 100%; margin-top: 24px; }
button:disabled { opacity: .6; cursor: wait; }
:focus-visible { outline: 3px solid #82af92; outline-offset: 3px; }
.secondary { background: #edf2e9; color: #305d43; padding: 8px 12px; }
.list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.list-heading h2 { margin: 0; }
#products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 20px 0 0; }
#products li { padding: 24px; border: 1px solid #e7ece4; border-radius: 12px; min-width: 0; overflow-wrap: anywhere; }
#products h3 { font-size: 1rem; margin: 0 0 8px; }
#products p { white-space: pre-wrap; color: #637066; font-size: .9rem; line-height: 1.5; }
a { color: #305d43; }
.error { color: #a12c2c; }
@media (max-width: 720px) { main { padding: 28px 16px; } #products { grid-template-columns: 1fr; } .list-heading { align-items: flex-start; flex-direction: column; } #products li { padding: 18px; } .card { padding: 22px; } }

.price-fields { display: grid; grid-template-columns: minmax(0, 3fr) minmax(80px, 1fr); gap: 12px; }
#date-preview { font-size: .9rem; line-height: 1.6; overflow-wrap: anywhere; }
.product-meta { color: #637066; margin: 8px 0; }
.product-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin: 16px 0; }
.product-actions a { display: inline-flex; align-items: center; min-height: 44px; }
.product-actions button { min-height: 44px; white-space: normal; text-align: left; }
.workspace-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.product-editor { margin-top: 24px; padding: 20px; border: 1px solid #dde4d9; border-radius: 12px; background: #f8faf5; }
.product-editor > summary { cursor: pointer; color: #305d43; font-weight: 700; font-size: 1.1rem; }
#product-form { max-width: 720px; }
.account-nav form button { width: auto; margin-top: 0; }
@media (max-width: 400px) { .card { padding: 16px; } .product-editor { padding: 14px; } .price-fields { grid-template-columns: 1fr; } }
#products details { margin-top: 12px; font-size: .9rem; }
#products summary { cursor: pointer; color: #637066; }
[hidden] { display: none !important; }

#products .purchase-history { background: #f0f5eb; border-radius: 8px; padding: 12px; color: #305d43; font-weight: 600; }
