:root {
  --bg: #f4f3ef;
  --surface: #fff;
  --ink: #151613;
  --muted: #70716b;
  --line: #deded7;
  --accent: #c8ff45;
  --purple: #7656e8;
  --radius: 22px;
  --shadow: 0 18px 60px rgba(24, 25, 20, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.header { height: 78px; display: flex; align-items: center; justify-content: space-between; max-width: 1180px; margin: auto; padding: 0 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; letter-spacing: -.6px; }
.logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--ink); color: var(--accent); }
nav { display: flex; gap: 30px; color: var(--muted); font-size: 14px; font-weight: 600; }
nav a:hover { color: var(--ink); }

.hero { max-width: 1180px; margin: auto; padding: 72px 24px 40px; }
.hero-copy { max-width: 680px; }
.eyebrow, .step { color: var(--purple); font-size: 11px; font-weight: 800; letter-spacing: 1.5px; }
h1 { margin: 14px 0; font-size: clamp(44px, 6vw, 68px); line-height: 1; letter-spacing: -4px; }
h1 em, h2 em { color: var(--purple); font-family: Georgia, serif; font-weight: 400; }
.hero p { max-width: 500px; color: var(--muted); font-size: 16px; line-height: 1.65; }

.workspace { grid-template-columns: 1.45fr .75fr; }
.grid { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: grid; gap: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: 0 8px 30px rgba(20, 20, 15, .025); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; margin-bottom: 28px; }.panel-head.compact { align-items: center; }
.panel h2 { margin: 5px 0 0; font-size: 28px; letter-spacing: -1px; }.panel-head p { max-width: 270px; color: var(--muted); font-size: 14px; line-height: 1.6; margin: 2px 0 0; }
label { display: block; color: #454640; font-size: 13px; font-weight: 700; margin-bottom: 17px; }
input, select, textarea { width: 100%; border: 1px solid var(--line); background: #fafaf7; color: var(--ink); border-radius: 12px; padding: 13px 14px; outline: none; transition: .2s; }
input:focus, select:focus, textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(118,86,232,.1); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.primary, .secondary { border: 0; border-radius: 12px; padding: 14px 18px; font-weight: 800; transition: transform .2s, opacity .2s; }.primary { width: 100%; display: flex; justify-content: space-between; background: var(--ink); color: white; }.primary:hover { transform: translateY(-2px); }.primary span { color: var(--accent); font-size: 20px; }.secondary { background: var(--accent); color: var(--ink); white-space: nowrap; }
.message { min-height: 20px; color: var(--muted); font-size: 13px; }.message.error { color: #c43d3d; }.message.success { color: #39833a; }
.stats-panel { background: var(--ink); color: white; }.stats-panel .step { color: var(--accent); }.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 42px 0; }.stats div { display: flex; flex-direction: column; }.stats b { font-size: 38px; letter-spacing: -2px; }.stats small { color: #9b9c96; font-size: 11px; }
.tip { display: flex; gap: 12px; border-top: 1px solid #353630; padding-top: 20px; color: #aaa; font-size: 12px; line-height: 1.5; }.tip > span { display: grid; place-items: center; flex: 0 0 22px; height: 22px; border: 1px solid #555; border-radius: 50%; }.tip code { color: var(--accent); }
.types-panel, .product-list-panel { margin-top: 20px; max-width: 1180px; margin-left: auto; margin-right: auto; }
.type-controls { display: grid; grid-template-columns: .8fr 1.2fr; gap: 25px; }.type-controls form { display: flex; gap: 10px; }.type-list { display: flex; flex-wrap: wrap; gap: 9px; align-content: start; }.type-chip { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 99px; background: #f2f1ed; font-size: 13px; }.type-chip button { border: 0; background: transparent; color: #999; font-size: 17px; }
.search-wrap { width: min(360px, 100%); }.product-list { display: grid; gap: 10px; }.product-row { display: grid; grid-template-columns: 50px minmax(180px, 1.2fr) minmax(130px, .7fr) minmax(150px, .8fr) auto; gap: 15px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 15px; }.product-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: #f0edff; color: var(--purple); font-weight: 900; }.product-name { font-weight: 800; }.product-name small, .product-meta small { display: block; color: var(--muted); font-weight: 400; margin-top: 4px; }.product-meta { font-size: 13px; }.short-link { color: var(--purple); font-family: ui-monospace, monospace; font-size: 13px; }.row-actions { display: flex; gap: 7px; }.icon-btn { border: 1px solid var(--line); background: white; border-radius: 9px; padding: 8px 10px; }.icon-btn:hover { border-color: var(--purple); color: var(--purple); }
.empty { padding: 35px; text-align: center; color: var(--muted); }
dialog { width: min(440px, calc(100% - 30px)); border: 0; border-radius: 24px; padding: 35px; text-align: center; box-shadow: 0 30px 100px rgba(0,0,0,.25); }dialog::backdrop { background: rgba(12,12,10,.65); backdrop-filter: blur(4px); }.close { position: absolute; right: 15px; top: 12px; border: 0; background: transparent; font-size: 28px; color: #888; }.qr-wrap { margin: 20px auto; width: 250px; height: 250px; padding: 15px; background: white; border: 1px solid var(--line); }.qr-wrap img { width: 100%; height: 100%; }.qr-title { font-size: 24px; margin: 5px 0; }.qr-url { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }.dialog-actions { display: flex; gap: 10px; margin-top: 20px; }.dialog-actions button { flex: 1; border: 1px solid var(--line); background: white; border-radius: 11px; padding: 12px; }.dialog-actions .primary { width: auto; background: var(--ink); color: white; }
footer { max-width: 1180px; margin: 70px auto 0; padding: 25px 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }

@media (max-width: 800px) { nav { display:none; } .hero { min-height: auto; padding-top: 45px; }.hero-art { display:none; } .workspace { grid-template-columns: 1fr; }.stats { margin: 25px 0; }.type-controls { grid-template-columns: 1fr; }.product-row { grid-template-columns: 45px 1fr auto; }.product-meta { display:none; }.search-wrap { width: 100%; }.panel-head.compact { align-items: flex-start; flex-direction: column; } }
@media (max-width: 520px) { h1 { letter-spacing:-3px; }.panel { padding: 22px; }.two-col { grid-template-columns: 1fr; gap:0; }.type-controls form { flex-direction:column; }.product-row { grid-template-columns: 40px 1fr; }.row-actions { grid-column: 1 / -1; }.row-actions button { flex:1; } footer { flex-direction:column; gap:8px; } }
