:root {
  --ink: #17241f;
  --muted: #68756f;
  --paper: #f6f7f2;
  --white: #fff;
  --line: #dfe4de;
  --green: #1b4d3e;
  --green-dark: #12392f;
  --lime: #cbe86b;
  --error: #a33a31;
  --shadow: 0 24px 70px rgba(22, 47, 39, .09);
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 15px/1.55 "DM Sans", sans-serif; }
a { color: inherit; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: "Manrope", sans-serif; letter-spacing: -.035em; }
button, input { font: inherit; }

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font: 700 18px "Manrope", sans-serif; text-decoration: none; }
.brand-light { color: white; }
.brand-mark { display: grid; grid-template-columns: 8px 8px; grid-template-rows: 8px 8px; gap: 3px; width: 24px; height: 24px; }
.brand-mark i { display: block; border: 2px solid currentColor; }
.brand-mark i:nth-child(4) { border: 0; background: var(--lime); width: 6px; height: 6px; align-self: end; justify-self: end; }
.eyebrow { margin-bottom: 15px; color: var(--lime); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow.dark { color: var(--green); }
.muted { color: var(--muted); }

.login-shell { display: grid; grid-template-columns: minmax(360px, .92fr) 1.08fr; min-height: 100vh; }
.login-brand { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 46px clamp(40px, 6vw, 92px); color: white; background: var(--green); }
.login-brand::after { content: ""; position: absolute; right: -150px; bottom: -190px; width: 520px; height: 520px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018); }
.brand-copy { position: relative; z-index: 1; margin: auto 0; max-width: 510px; }
.brand-copy h1 { margin-bottom: 26px; font-size: clamp(46px, 5.4vw, 76px); line-height: 1.02; }
.brand-copy h1 em { color: var(--lime); font-style: normal; }
.brand-copy > p:last-child { max-width: 420px; color: rgba(255,255,255,.68); font-size: 17px; }
.brand-foot { position: relative; z-index: 1; margin: 0; color: rgba(255,255,255,.5); font-size: 12px; }
.login-panel { display: grid; place-items: center; padding: 40px; background: #fbfcf8; }
.login-card { width: min(100%, 420px); }
.login-card h2 { margin-bottom: 8px; font-size: 34px; }
.mobile-brand { display: none; }
.auth-form { display: grid; margin-top: 34px; }
label { margin-bottom: 8px; font-size: 13px; font-weight: 700; }
input { width: 100%; height: 52px; padding: 0 16px; color: var(--ink); border: 1px solid #ccd4cd; border-radius: 9px; outline: none; background: white; transition: border-color .15s, box-shadow .15s; }
input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(27,77,62,.11); }
input::placeholder { color: #9aa49f; }
.auth-form input { margin-bottom: 21px; }
.label-row { display: flex; justify-content: space-between; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 24px; padding: 0 22px; border: 0; border-radius: 9px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: white; background: var(--green); }
.button.primary:hover { background: var(--green-dark); }
.button.secondary { color: var(--green); border: 1px solid var(--green); background: white; }
.full { width: 100%; }
.local-note { margin: 30px 0 0; color: #8b9690; font-size: 12px; text-align: center; }
.local-note span { margin-right: 6px; color: #72a368; font-size: 9px; }
.alert { margin: 20px 0; padding: 12px 15px; border-radius: 8px; font-size: 14px; }
.alert.error { color: var(--error); border: 1px solid #efd0cc; background: #fff2f0; }
.alert.success { color: var(--green); border: 1px solid #c9dfd4; background: #eff8f2; }

.app-shell { min-height: 100vh; }
.topbar { display: flex; height: 76px; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 5vw, 72px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.88); }
.account { display: flex; align-items: center; gap: 10px; }
.avatar { display: grid; width: 34px; height: 34px; place-items: center; color: white; border-radius: 50%; background: var(--green); font-weight: 700; }
.account-name { font-weight: 600; }
.text-button { padding: 6px 0 6px 12px; color: var(--muted); border: 0; border-left: 1px solid var(--line); background: transparent; cursor: pointer; }
.text-link { color: var(--green); font-size: 13px; font-weight: 700; text-decoration: none; }
.workspace { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 64px 0 80px; }
.intro { margin-bottom: 34px; }
.intro h1 { margin-bottom: 8px; font-size: clamp(36px, 5vw, 54px); }
.intro > p:last-child { color: var(--muted); font-size: 17px; }
.creator-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 24px; }
.card { border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow); }
.creator-card { display: grid; grid-template-columns: 42px 1fr; gap: 18px; padding: 38px; }
.card h2 { margin-bottom: 7px; font-size: 23px; }
.step-number { display: grid; width: 38px; height: 38px; place-items: center; color: var(--green); border-radius: 50%; background: #e8efe9; font-weight: 700; }
.step-number.success { margin-bottom: 13px; color: white; background: var(--green); }
.url-form { display: grid; margin-top: 30px; }
.url-form .button { width: max-content; margin-top: 20px; }
.url-input-wrap { position: relative; }
.url-input-wrap span { position: absolute; z-index: 1; top: 14px; left: 16px; color: var(--muted); }
.url-input-wrap input { padding-left: 44px; }
.preview-card { display: flex; min-height: 340px; flex-direction: column; align-items: center; justify-content: center; padding: 28px; text-align: center; }
.empty-qr { position: relative; width: 90px; height: 90px; margin-bottom: 24px; border: 2px dashed #bdc8c1; border-radius: 12px; opacity: .7; }
.empty-qr span { position: absolute; width: 18px; height: 18px; border: 4px solid #91a198; }
.empty-qr span:nth-child(1) { top: 14px; left: 14px; }
.empty-qr span:nth-child(2) { top: 14px; right: 14px; }
.empty-qr span:nth-child(3) { bottom: 14px; left: 14px; }
.qr-frame { width: min(190px, 100%); margin: 3px auto 13px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.qr-frame img { display: block; width: 100%; }
.qr-url { overflow: hidden; width: 100%; margin-bottom: 17px; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.recent { margin-top: 54px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 17px; }
.section-heading .eyebrow { margin-bottom: 5px; }
.section-heading h2 { margin: 0; font-size: 26px; }
.section-heading > span { color: var(--muted); font-size: 13px; }
.history-list { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; }
.history-item { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 14px 18px; border-bottom: 1px solid #edf0ec; }
.history-item:last-child { border-bottom: 0; }
.history-item img { width: 48px; height: 48px; border-radius: 5px; }
.history-details { min-width: 0; flex: 1; }
.history-details a { display: block; overflow: hidden; color: var(--ink); font-weight: 600; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.history-details time { color: var(--muted); font-size: 11px; }
.download-icon { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; color: var(--green); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }

.admin-workspace { max-width: 1060px; }
.admin-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; align-items: start; }
.admin-card { display: grid; grid-template-columns: 42px 1fr; gap: 18px; padding: 34px; }
.stacked-form { display: grid; margin-top: 28px; }
.stacked-form input { margin-bottom: 18px; }
.stacked-form .button { margin-top: 4px; }
.accounts-card { padding: 30px; }
.section-heading.compact { align-items: center; margin-bottom: 15px; }
.section-heading.compact h2 { font-size: 23px; }
.user-list { border-top: 1px solid var(--line); }
.user-row { border-bottom: 1px solid var(--line); }
.user-row summary { display: flex; align-items: center; gap: 12px; padding: 15px 2px; list-style: none; cursor: pointer; }
.user-row summary::-webkit-details-marker { display: none; }
.avatar.small { width: 32px; height: 32px; font-size: 12px; }
.user-name { min-width: 0; flex: 1; font-weight: 700; }
.user-name small { margin-left: 8px; padding: 3px 7px; color: var(--green); border-radius: 12px; background: #e8efe9; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.code-count { color: var(--muted); font-size: 12px; }
.chevron { color: var(--muted); transition: transform .15s; }
.user-row[open] .chevron { transform: rotate(180deg); }
.reset-form { padding: 3px 2px 19px 44px; }
.reset-form > div { display: flex; gap: 9px; }
.reset-form input { height: 46px; }
.reset-form .button { min-height: 46px; flex: 0 0 auto; }

@media (max-width: 820px) {
  .login-shell { display: block; }
  .login-brand { display: none; }
  .login-panel { min-height: 100vh; padding: 28px; }
  .mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 64px; color: var(--green); font: 700 18px "Manrope", sans-serif; }
  .creator-grid { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .preview-card { min-height: 300px; }
}

@media (max-width: 560px) {
  .topbar { height: 66px; padding: 0 18px; }
  .account-name { display: none; }
  .workspace { width: min(100% - 28px, 1120px); padding-top: 40px; }
  .creator-card { grid-template-columns: 1fr; padding: 25px; }
  .admin-card { grid-template-columns: 1fr; padding: 25px; }
  .accounts-card { padding: 22px; }
  .reset-form { padding-left: 0; }
  .reset-form > div { display: grid; }
  .url-form .button { width: 100%; }
  .history-item { padding: 12px; }
}
