:root {
    --bg: #f6f4ef;
    --card: #ffffff;
    --text: #171717;
    --muted: #6f6a61;
    --line: #e7e0d5;
    --accent: #111111;
    --accentText: #ffffff;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #fff 0, var(--bg) 42rem);
    color: var(--text);
}
a { color: inherit; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 32px; }
.topbar.public { justify-content: flex-start; }
.eyebrow { margin: 0 0 6px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; }
h1 { margin: 0; font-size: clamp(34px, 6vw, 64px); line-height: .95; letter-spacing: -0.06em; }
h2 { margin: 0 0 8px; font-size: 24px; letter-spacing: -0.03em; }
p { color: var(--muted); line-height: 1.55; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: 0 20px 70px rgba(0,0,0,.06); }
.narrow { max-width: 440px; }
.client-card, .design-card { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 150px; }
.button, button, .ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: var(--accentText); text-decoration: none; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ghost { background: transparent; color: var(--text); }
.login { display: grid; gap: 12px; margin-top: 18px; }
label { font-weight: 700; }
input { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; font: inherit; }
.error { color: #a40000; font-weight: 700; }
code { background: #f0ece4; padding: 2px 6px; border-radius: 7px; color: #222; }
@media (max-width: 680px) {
    .topbar, .client-card, .design-card { align-items: flex-start; flex-direction: column; }
    .button, .ghost { width: 100%; }
}
