:root {
  --ink: #10243e;
  --muted: #718196;
  --soft-muted: #9aa8b6;
  --page: #fbfaf8;
  --rail: #eef4f6;
  --surface: #ffffff;
  --line: #dce6eb;
  --line-soft: #edf2f4;
  --accent: #0ea7a0;
  --accent-dark: #087a76;
  --accent-pale: #e0f4f1;
  --amber: #e7a436;
  --shadow: 0 12px 30px rgba(16, 36, 62, .055);
  --radius: 12px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--page); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--page); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 236px minmax(0, 1fr); }
.rail { background: var(--rail); border-right: 1px solid var(--line); padding: 25px 16px 18px; display: flex; flex-direction: column; min-height: 100vh; }
.brand { display: flex; align-items: flex-start; gap: 10px; padding: 0 12px 24px; }
.brand-mark { width: 25px; height: 25px; margin-top: 1px; display: grid; place-items: center; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 6px; font-size: 0; font-weight: 800; line-height: 1; }
.brand-mark::after { content: "L"; font-size: 13px; }
.brand-name { display: block; white-space: nowrap; font-size: 17px; line-height: 19px; font-weight: 800; letter-spacing: -.6px; }
.brand-tagline { color: var(--muted); font-size: 9px; margin-top: 3px; white-space: nowrap; }
.rail-nav { display: grid; gap: 4px; }
.rail-nav + .rail-nav { margin-top: 22px; }
.nav-label { padding: 0 12px 8px; color: #98a7b2; font-size: 9px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; }
.nav-link { width: 100%; border: 0; border-radius: 9px; background: transparent; color: #5f7184; padding: 10px 12px; display: flex; align-items: center; gap: 11px; text-align: left; font-size: 11px; font-weight: 600; transition: background .18s ease, color .18s ease; }
.nav-link:hover { background: rgba(255,255,255,.65); color: var(--ink); }
.nav-link.active { background: #dceff1; color: var(--accent-dark); }
.nav-symbol { width: 18px; color: #71879a; font-size: 15px; text-align: center; }
.nav-link.active .nav-symbol { color: var(--accent-dark); }
.rail-spacer { flex: 1; min-height: 40px; }
.workspace-card { border-top: 1px solid #d8e4e8; padding: 17px 8px 0; display: flex; align-items: center; gap: 9px; }
.workspace-avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid #d7e2e7; color: #657b8e; font-size: 10px; font-weight: 800; }
.workspace-card strong, .workspace-card small { display: block; }
.workspace-card strong { font-size: 11px; color: var(--ink); }.workspace-card small { margin-top: 3px; color: var(--muted); font-size: 9px; }.workspace-copy { flex: 1; }
.rail-footer { border-top: 1px solid #d8e4e8; margin-top: 15px; padding: 15px 8px 0; }.rail-footer button { border: 0; background: transparent; color: #64788b; font-size: 10px; display: flex; gap: 9px; align-items: center; padding: 4px 0; }

.main { min-width: 0; display: grid; grid-template-rows: 78px minmax(0, 1fr); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 30px; background: rgba(255,255,255,.74); border-bottom: 1px solid var(--line); }
.topbar-title { min-width: 0; }.topbar-title h1 { margin: 0; font-size: 18px; letter-spacing: -.4px; }.topbar-title p { margin: 4px 0 0; font-size: 10px; color: var(--muted); }
.topbar-actions { display: flex; align-items: center; gap: 13px; }.search { width: 250px; height: 34px; border: 1px solid var(--line); border-radius: 8px; display: flex; align-items: center; gap: 8px; background: #fff; color: var(--soft-muted); padding: 0 10px; }.search input { border: 0; outline: 0; width: 100%; min-width: 0; font-size: 10px; color: var(--ink); background: transparent; }.topbar-icon { width: 30px; height: 30px; border: 0; background: transparent; color: #63788a; font-size: 17px; }.topbar-user { display: flex; align-items: center; gap: 8px; border-left: 1px solid var(--line); padding-left: 13px; }.topbar-avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #d8edf0; color: var(--accent-dark); font-size: 9px; font-weight: 800; }.topbar-user strong, .topbar-user small { display: block; }.topbar-user strong { font-size: 10px; }.topbar-user small { margin-top: 2px; color: var(--muted); font-size: 8px; }.mobile-menu { display: none; border: 0; background: transparent; color: var(--ink); font-size: 19px; }

.workspace { padding: 23px 24px 24px; min-width: 0; overflow: auto; }
.eyebrow { display: block; color: var(--accent-dark); font-size: 8px; letter-spacing: 1.4px; font-weight: 800; text-transform: uppercase; }.subtle { color: var(--muted); font-size: 10px; }
.profile-library { display: grid; grid-template-columns: repeat(5, minmax(130px, 1fr)) 118px; gap: 10px; margin-bottom: 14px; }
.profile-card, .add-profile { min-width: 0; min-height: 76px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; align-items: center; gap: 9px; text-align: left; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }.profile-card:hover, .add-profile:hover { transform: translateY(-1px); border-color: #b6d4d7; }.profile-card.selected { border: 1.5px solid var(--accent); box-shadow: 0 4px 14px rgba(14,167,160,.08); }
.profile-thumb { flex: 0 0 auto; width: 38px; height: 38px; overflow: hidden; border-radius: 50%; display: grid; place-items: center; background: #e9f0f2; color: #577084; font-size: 10px; font-weight: 800; }.profile-thumb.photo img { width: 100%; height: 100%; object-fit: cover; }.profile-thumb.peach { background: #f4d4b8; color: #76543c; }.profile-thumb.blue { background: #cbe0eb; color: #40647a; }.profile-thumb.lilac { background: #ddd7f3; color: #5e5489; }.profile-thumb.sand { background: #eee3ce; color: #806c49; }
.profile-card-copy { min-width: 0; }.profile-card-copy strong, .profile-card-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.profile-card-copy strong { color: var(--ink); font-size: 10px; }.profile-card-copy small { color: var(--muted); font-size: 8px; margin-top: 4px; }.profile-status { display: flex; align-items: center; gap: 4px; margin-top: 6px; color: #398b76; font-size: 8px; }.profile-status::before { content: ""; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }.profile-status.draft { color: #ae791f; }.profile-status.update { color: #ba7e1b; }.add-profile { justify-content: center; flex-direction: column; color: var(--accent-dark); font-size: 10px; font-weight: 700; }.add-profile .add-icon { width: 23px; height: 23px; border-radius: 50%; border: 1px solid #9ed8d4; display: grid; place-items: center; font-size: 16px; font-weight: 400; }.add-profile small { color: var(--muted); font-size: 8px; font-weight: 500; }

.selected-header { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; padding: 15px 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 16px; }.selected-identity { display: flex; align-items: center; gap: 11px; min-width: 0; }.selected-identity .profile-thumb { width: 42px; height: 42px; }.selected-identity strong, .selected-identity small { display: block; }.selected-identity strong { font-size: 14px; letter-spacing: -.25px; }.selected-identity small { color: var(--muted); font-size: 10px; margin-top: 4px; }.active-badge { display: inline-flex; align-items: center; gap: 5px; color: #3b917c; background: #e8f7f1; border-radius: 99px; padding: 5px 8px; font-size: 8px; font-weight: 800; margin-left: 8px; vertical-align: 2px; }.active-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }.share-control { display: flex; align-items: center; gap: 7px; color: #667b8c; font-size: 9px; }.share-control .link-value { border: 1px solid var(--line); background: #fbfcfc; border-radius: 7px; padding: 9px 10px; white-space: nowrap; }.copy-button, .more-button { width: 28px; height: 28px; border: 1px solid var(--line); background: #fff; color: #687e8f; border-radius: 7px; }.nfc-status { display: flex; align-items: center; gap: 8px; border-left: 1px solid var(--line); padding-left: 16px; }.nfc-symbol { font-size: 20px; color: var(--accent-dark); }.nfc-status strong, .nfc-status small { display: block; }.nfc-status strong { font-size: 10px; }.nfc-status small { font-size: 8px; color: #3b917c; margin-top: 3px; }.nfc-status small::before { content: ""; display: inline-block; width: 5px; height: 5px; background: #3b917c; border-radius: 50%; margin-right: 4px; vertical-align: 1px; }

.editor-board { display: grid; grid-template-columns: 178px minmax(300px, 1fr) minmax(370px, .96fr); min-height: 584px; background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; box-shadow: var(--shadow); }.section-menu { border-right: 1px solid var(--line-soft); padding: 13px 8px; }.section-menu button { width: 100%; display: flex; align-items: center; gap: 9px; border: 0; background: transparent; color: #718396; border-radius: 7px; padding: 10px 11px; font-size: 10px; text-align: left; }.section-menu button:hover { color: var(--ink); background: #f6fafb; }.section-menu button.active { color: var(--accent-dark); background: #e5f5f3; font-weight: 800; border-left: 2px solid var(--accent); padding-left: 9px; }.section-menu .menu-icon { width: 16px; color: #7e93a3; text-align: center; font-size: 14px; }.section-menu button.active .menu-icon { color: var(--accent-dark); }.section-menu .section-spacer { height: 14px; }.editor-panel { padding: 23px 24px 0; min-width: 0; }.editor-heading { margin-bottom: 24px; }.editor-heading h2 { margin: 0; font-size: 18px; letter-spacing: -.45px; }.editor-heading p { margin: 6px 0 0; color: var(--muted); font-size: 10px; }.form-section { padding: 0 0 20px; border-bottom: 1px solid var(--line-soft); margin-bottom: 19px; }.form-section:last-child { border-bottom: 0; }.form-section h3 { margin: 0 0 4px; font-size: 11px; }.form-section p { margin: 0; color: var(--muted); font-size: 9px; }.theme-row { display: flex; gap: 10px; margin-top: 13px; align-items: flex-end; }.theme-option { border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 0; width: 53px; overflow: hidden; }.theme-option.active { border: 1.5px solid var(--accent); box-shadow: 0 0 0 2px rgba(14,167,160,.08); }.theme-swatch { height: 34px; display: block; }.theme-option span:last-child { display: block; padding: 6px 3px; color: #728397; font-size: 8px; text-align: center; }.theme-swatch.teal { background: #a9dcd6; }.theme-swatch.ivory { background: #f1eee5; }.theme-swatch.ink { background: #213b55; }.theme-swatch.lilac { background: #d7c9f1; }.theme-swatch.slates { background: #2e4358; }.view-all { margin-left: auto; border: 0; background: transparent; color: var(--accent-dark); font-size: 9px; font-weight: 800; }.control-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 15px; }.control { display: grid; gap: 7px; }.control > span { color: #65798b; font-size: 9px; font-weight: 800; }.control input[type=color] { width: 35px; height: 34px; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }.color-control { display: flex; align-items: center; gap: 7px; }.color-control input[type=text] { flex: 1; }.control input[type=text], .control select, .control textarea { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 7px; color: var(--ink); font-size: 10px; outline: 0; padding: 9px 10px; }.control input[type=text]:focus, .control select:focus, .control textarea:focus { border-color: #83cfc9; box-shadow: 0 0 0 3px rgba(14,167,160,.08); }.range-wrap { display: flex; align-items: center; gap: 8px; }.range-wrap input[type=range] { flex: 1; accent-color: var(--accent); }.range-value { color: var(--muted); font-size: 9px; width: 20px; text-align: right; }.profile-form { display: grid; gap: 12px; margin-top: 18px; }.profile-form .control textarea { min-height: 76px; resize: vertical; line-height: 1.45; }.link-row { display: flex; gap: 8px; align-items: center; margin-top: 12px; }.link-row .link-kind { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; background: #edf6f5; color: var(--accent-dark); font-size: 13px; }.link-row input { flex: 1; border: 1px solid var(--line); border-radius: 7px; padding: 9px; font-size: 10px; outline: none; }.add-link { border: 0; background: transparent; color: var(--accent-dark); font-size: 9px; font-weight: 800; padding: 12px 0 0; }.mini-note { background: #f6fafb; border: 1px solid var(--line-soft); border-radius: 8px; padding: 11px; color: var(--muted); font-size: 9px; line-height: 1.45; margin-top: 15px; }.mini-note strong { color: var(--ink); }

.preview-panel { border-left: 1px solid var(--line-soft); background: #f1f6f7; padding: 20px 20px 17px; min-width: 0; display: flex; flex-direction: column; }.preview-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }.preview-toolbar h3 { margin: 0; font-size: 13px; }.preview-toolbar p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }.mode-switch { display: flex; border: 1px solid var(--line); background: #fff; border-radius: 8px; overflow: hidden; }.mode-switch button { border: 0; background: #fff; color: #8a9ba8; font-size: 9px; padding: 8px 10px; }.mode-switch button.active { color: var(--accent-dark); background: #e5f6f3; font-weight: 800; }.phone-stage { flex: 1; min-height: 420px; display: grid; place-items: center; }.phone { width: min(255px, 80%); background: #14243a; padding: 6px; border-radius: 28px; box-shadow: 0 18px 30px rgba(16,36,62,.18); }.phone-screen { background: #fff; border-radius: 22px; overflow: hidden; }.phone-cover { height: 104px; background: #d8efec; position: relative; }.phone-cover::before { content: ""; position: absolute; width: 130px; height: 48px; right: -18px; bottom: 11px; background: #a6d9d3; border-radius: 50% 0 0 50%; transform: rotate(-9deg); }.phone-cover::after { content: ""; position: absolute; width: 90px; height: 27px; left: -20px; top: 15px; background: #c1e6e2; border-radius: 0 50% 50% 0; transform: rotate(14deg); }.phone-body { padding: 0 17px 18px; text-align: center; }.phone-avatar { width: 67px; height: 67px; overflow: hidden; display: grid; place-items: center; margin: -30px auto 9px; position: relative; border: 4px solid white; border-radius: 50%; background: #d8edf0; color: var(--accent-dark); font-weight: 800; font-size: 16px; }.phone-avatar img { width: 100%; height: 100%; object-fit: cover; }.phone-body h2 { margin: 0; color: var(--ink); font-size: 18px; letter-spacing: -.45px; }.phone-role { margin: 4px 0 0; color: var(--accent-dark); font-size: 9px; font-weight: 800; }.phone-company { margin: 3px 0 0; color: var(--muted); font-size: 8px; }.phone-bio { margin: 12px 6px; color: #67798c; font-size: 9px; line-height: 1.42; }.phone-actions { display: grid; gap: 7px; }.phone-actions button { border: 0; border-radius: 20px; padding: 9px 8px; font-size: 9px; font-weight: 800; }.phone-actions .primary { color: white; background: var(--accent); }.phone-actions .secondary { color: var(--ink); background: #eff3f4; }.phone-socials { display: flex; justify-content: center; gap: 8px; margin: 14px 0 6px; }.phone-socials span { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: #eef3f4; color: #536c80; font-size: 10px; font-weight: 800; }.phone-powered { color: #a2afb9; font-size: 7px; margin-top: 13px; }.phone-powered strong { color: var(--accent-dark); }.preview-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; }.preview-footer small { color: #8293a1; font-size: 8px; }.preview-footer small::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 4px; vertical-align: 1px; background: var(--accent); border-radius: 50%; }.text-button { border: 0; background: transparent; color: var(--accent-dark); font-size: 9px; font-weight: 800; padding: 5px 0; }

.editor-footer { grid-column: 2 / -1; border-top: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; background: #fff; }.editor-footer small { color: var(--muted); font-size: 8px; }.footer-actions { display: flex; align-items: center; gap: 9px; }.outline-button, .primary-button { border-radius: 7px; padding: 9px 12px; font-size: 9px; font-weight: 800; }.outline-button { color: #607487; border: 1px solid var(--line); background: #fff; }.primary-button { color: white; border: 1px solid var(--accent); background: var(--accent); box-shadow: 0 6px 14px rgba(14,167,160,.14); }.primary-button:hover { background: var(--accent-dark); }.outline-button:hover { border-color: #a5c4cb; background: #f8fbfb; }
.empty-panel { min-height: 530px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; display: grid; place-items: center; text-align: center; padding: 40px; }.empty-panel h2 { margin: 0 0 8px; font-size: 19px; }.empty-panel p { max-width: 360px; margin: 0 0 17px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.toast { position: fixed; right: 22px; bottom: 20px; z-index: 50; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .22s ease; background: var(--ink); color: #fff; border-radius: 7px; padding: 11px 13px; font-size: 10px; box-shadow: 0 10px 24px rgba(16,36,62,.18); }.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1180px) { .app-shell { grid-template-columns: 210px minmax(0,1fr); }.profile-library { grid-template-columns: repeat(3, minmax(150px,1fr)); }.profile-library .profile-card:nth-child(n+4) { display: none; }.editor-board { grid-template-columns: 162px minmax(280px,1fr); }.preview-panel { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line-soft); min-height: 520px; }.phone-stage { min-height: 390px; }.editor-footer { grid-column: 1 / -1; } }
@media (max-width: 820px) { .app-shell { display: block; }.rail { position: fixed; inset: 0 auto 0 0; width: 236px; transform: translateX(-105%); transition: transform .23s ease; z-index: 30; box-shadow: 12px 0 28px rgba(16,36,62,.14); }.rail.open { transform: translateX(0); }.mobile-menu { display: block; }.topbar { padding: 0 17px; }.topbar-title { display: none; }.topbar-actions { margin-left: auto; }.search { width: 180px; }.workspace { padding: 16px; }.profile-library { display: flex; overflow-x: auto; padding-bottom: 3px; }.profile-card, .add-profile { flex: 0 0 160px; }.profile-library .profile-card:nth-child(n+4) { display: flex; }.selected-header { grid-template-columns: 1fr auto; }.share-control { grid-column: 1 / -1; order: 3; }.nfc-status { border-left: 0; padding-left: 0; }.editor-board { display: block; }.section-menu { border-right: 0; border-bottom: 1px solid var(--line-soft); display: flex; overflow-x: auto; gap: 3px; padding: 8px; }.section-menu button { width: auto; flex: 0 0 auto; white-space: nowrap; }.editor-panel { padding: 18px 16px 0; }.editor-footer { padding: 12px 16px; } }
@media (max-width: 560px) { .topbar { height: 62px; }.topbar-actions { gap: 5px; }.search { width: 145px; }.topbar-user { display: none; }.selected-header { padding: 13px; }.active-badge { display: block; width: max-content; margin: 5px 0 0; }.selected-identity strong { font-size: 12px; }.nfc-status { grid-column: 2; grid-row: 1; }.share-control { font-size: 8px; overflow: hidden; }.share-control .link-value { overflow: hidden; text-overflow: ellipsis; max-width: 190px; }.control-grid { grid-template-columns: 1fr; }.preview-panel { padding: 16px 11px 13px; }.phone { width: min(280px, 84%); }.editor-footer { align-items: flex-start; flex-direction: column; }.footer-actions { width: 100%; justify-content: flex-end; }.toast { right: 12px; left: 12px; text-align: center; } }
