:root {
  --ink: #16211d;
  --muted: #65716c;
  --paper: #f6f3ec;
  --card: #fffdf8;
  --line: #dedbd2;
  --green: #16734d;
  --green-dark: #0d5136;
  --lime: #dff36b;
  --amber: #a55d0b;
  --blue: #3665f3;
  --shadow: 0 18px 55px rgba(26, 37, 32, .08);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 15% 0%, #eef3d6 0, transparent 29rem), var(--paper); }
button, input, textarea, select { font: inherit; }
.topbar { height: 72px; padding: 0 max(24px, calc((100vw - 1100px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(22,33,29,.1); background: rgba(246,243,236,.84); backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 10; }
.brand { color: var(--ink); text-decoration: none; font-weight: 760; display: flex; align-items: center; gap: 10px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #fff; background: var(--green); font-family: Georgia, serif; font-size: 21px; }
.status-row { display: flex; gap: 8px; }
.status { font-size: 12px; border-radius: 999px; padding: 7px 10px; color: var(--muted); background: rgba(255,255,255,.7); border: 1px solid var(--line); }
.status-button { cursor: pointer; }
.status-row a.status { text-decoration: none; }
.status.ok { color: var(--green-dark); background: #e6f5ec; border-color: #b7ddc7; }
.status.bad { color: #833c23; background: #fae9e2; border-color: #eec9ba; }
main { width: min(1100px, calc(100% - 32px)); margin: 0 auto; }
.hero { padding: 84px 0 42px; max-width: 800px; }
.eyebrow { color: var(--green); font-weight: 750; letter-spacing: .09em; text-transform: uppercase; font-size: 12px; }
h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: clamp(45px, 7vw, 78px); letter-spacing: -.045em; line-height: .98; margin: 16px 0 22px; }
.lede { color: var(--muted); font-size: 19px; line-height: 1.6; max-width: 680px; }
.panel { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 24px; padding: clamp(22px, 4vw, 44px); margin: 0 0 26px; }
.step-heading { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 30px; }
.step-number { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 50%; background: var(--lime); font-weight: 800; }
h2, h3, p { margin-top: 0; }
h2 { margin-bottom: 5px; font-size: 25px; }
h3 { margin-bottom: 6px; }
.step-heading p, .subsection-title p { color: var(--muted); margin: 0; }
.dropzone { min-height: 210px; border: 2px dashed #b9bcb0; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; cursor: pointer; background: #fbfaf4; transition: .2s ease; text-align: center; padding: 30px; }
.dropzone:hover, .dropzone.dragging { border-color: var(--green); background: #f1f7e5; transform: translateY(-1px); }
.drop-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--green); color: white; font-size: 28px; margin-bottom: 4px; }
.dropzone small { color: var(--muted); }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 14px 0 24px; }
.preview { aspect-ratio: 1; border-radius: 14px; overflow: hidden; position: relative; background: #e9e7e0; }
.preview img { width: 100%; height: 100%; object-fit: cover; }
.preview button { position: absolute; top: 6px; right: 6px; border: 0; border-radius: 50%; width: 28px; height: 28px; background: rgba(17,25,22,.8); color: white; cursor: pointer; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: 13px; font-weight: 720; display: flex; justify-content: space-between; }
.field > span small { color: var(--muted); font-weight: 500; }
input, textarea, select { color: var(--ink); background: #fff; border: 1px solid #cfcfc7; border-radius: 11px; padding: 12px 13px; width: 100%; outline: none; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,115,77,.12); }
.upload-panel .field-wide { margin: 0 0 18px; }
.button { min-height: 44px; border: 1px solid transparent; border-radius: 11px; padding: 10px 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none; font-weight: 730; transition: .15s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.primary { color: white; background: var(--green); }
.primary:hover { background: var(--green-dark); }
.secondary { color: var(--ink); background: var(--lime); }
.ghost { color: var(--ink); background: transparent; border-color: #c9cbc1; }
.small { min-height: 36px; padding: 7px 12px; font-size: 13px; }
.ebay { color: white; background: var(--blue); }
.text-button { padding-inline: 5px; background: transparent; color: var(--muted); }
.fineprint { margin: 13px 0 0; color: var(--muted); font-size: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-wide { grid-column: 1 / -1; }
.subsection { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 26px; }
.subsection-title { display: flex; justify-content: space-between; align-items: start; gap: 14px; margin-bottom: 16px; }
.category-list { display: grid; gap: 8px; margin-top: 12px; }
.category-option { text-align: left; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.category-option:hover, .category-option.selected { border-color: var(--green); background: #edf7f0; }
.category-option strong { display: block; margin-bottom: 3px; }.category-option small { color: var(--muted); }
.specifics { display: grid; gap: 9px; margin-bottom: 12px; }
.aspect-guidance { margin: 12px 0 16px; padding: 13px 14px; border-radius: 12px; background: #eef4ff; border: 1px solid #cbd8f6; }
.aspect-guidance p { color: var(--muted); font-size: 12px; margin: 4px 0 10px; }
.aspect-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.aspect-chip { border: 1px solid #9fb5e9; background: white; color: #2445a4; border-radius: 999px; padding: 6px 9px; cursor: pointer; font-size: 12px; }
.aspect-chip:hover { background: #e5edff; }
.specific-row { display: grid; grid-template-columns: 1fr 1fr 36px; gap: 8px; }
.specific-row button { border: 0; background: transparent; color: #8d4230; font-size: 20px; cursor: pointer; }
.uncertainties, .inline-warning, .sandbox-warning { margin-top: 24px; border-radius: 12px; padding: 14px 16px; background: #fff5dd; border: 1px solid #ead198; color: #704a0d; line-height: 1.5; }
.uncertainties ul { margin-bottom: 0; padding-left: 20px; }
.agent-refine { margin-top: 28px; padding: 20px; border-radius: 16px; background: #f1f7e5; border: 1px solid #d2debd; }
.agent-refine-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.agent-refine-head h3 { margin: 1px 0 4px; }
.agent-refine-head p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.agent-avatar { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 11px; color: white; background: var(--green); font-family: Georgia, serif; font-size: 20px; }
.agent-log { display: grid; gap: 8px; margin-bottom: 12px; }
.agent-message { width: fit-content; max-width: 85%; padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.45; background: white; border: 1px solid #d9ddd0; }
.agent-message.user { margin-left: auto; color: white; background: var(--green); border-color: var(--green); }
.agent-compose { display: grid; grid-template-columns: 1fr auto; gap: 9px; align-items: end; }
.agent-compose textarea { min-height: 48px; }
.market-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.market-card { border: 1px solid var(--line); border-radius: 18px; padding: 24px; min-width: 0; }
.market-card p { color: var(--muted); line-height: 1.55; }
.market-label { display: inline-block; color: var(--green-dark); background: #e2f1df; border-radius: 999px; padding: 6px 9px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; margin-bottom: 18px; }
.ebay-card .market-label { color: #2445a4; background: #e8edff; }
.button-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 18px; }
.compact { grid-template-columns: 1fr; gap: 12px; }
.confirmation { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; margin-top: 20px; cursor: pointer; }
.confirmation input { width: 18px; height: 18px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--blue); }
.notice { margin: -10px 0 22px; border-radius: 13px; padding: 14px 17px; border: 1px solid #b7ddc7; background: #e6f5ec; color: var(--green-dark); }
.notice.error { color: #833c23; background: #fae9e2; border-color: #eec9ba; }
.busy { position: fixed; inset: 0; z-index: 30; background: rgba(246,243,236,.8); backdrop-filter: blur(8px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.spinner { width: 44px; height: 44px; border: 4px solid #ccd5ce; border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }
footer { color: var(--muted); width: min(1100px, calc(100% - 32px)); margin: 30px auto 55px; text-align: center; font-size: 12px; }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(460px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: clamp(25px, 5vw, 44px); }
.auth-card h1 { font-size: clamp(38px, 8vw, 58px); margin-top: 28px; }
.auth-form { display: grid; gap: 17px; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 48px; }
.password-toggle { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 9px; cursor: pointer; background: transparent; color: var(--muted); }
.remember { display: flex; align-items: center; gap: 9px; font-size: 14px; cursor: pointer; }
.remember input { width: 18px; height: 18px; accent-color: var(--green); }
.auth-error { border: 1px solid #eec9ba; background: #fae9e2; color: #833c23; border-radius: 11px; padding: 11px 13px; }
.admin-main { padding-top: 42px; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 20px; }
.user-table { width: 100%; border-collapse: collapse; }
.user-table th, .user-table td { text-align: left; border-bottom: 1px solid var(--line); padding: 12px 9px; vertical-align: middle; }
.user-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.pill { display: inline-block; border-radius: 999px; padding: 4px 8px; font-size: 11px; background: #e6f5ec; color: var(--green-dark); }
.pill.inactive { background: #fae9e2; color: #833c23; }
.admin-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.admin-actions { display: flex; gap: 7px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .topbar { height: auto; min-height: 68px; padding: 12px 16px; gap: 10px; }.brand > span:last-child { display: none; }.status-row { gap: 5px; flex-wrap: wrap; justify-content: end; }.status { padding: 5px 7px; font-size: 10px; }
  .hero { padding-top: 52px; }.form-grid, .market-grid, .admin-form, .agent-compose { grid-template-columns: 1fr; }.specific-row { grid-template-columns: 1fr 1fr 30px; }.panel { border-radius: 17px; }.subsection-title { flex-direction: column; }.user-table { display: block; overflow-x: auto; }
}
