:root{--bg: #f6f6f9;--surface: #ffffff;--surface-2: #f0f0f5;--text: #17171c;--muted: #6b6b78;--border: #e2e2ea;--accent: #5b5bd6;--accent-text: #ffffff;--danger: #d13b3b;--ok: #1f8a4c;--radius: 12px;--shadow: 0 1px 2px rgb(0 0 0 / .04), 0 4px 16px rgb(0 0 0 / .04);color-scheme:light}@media(prefers-color-scheme:dark){:root{--bg: #111116;--surface: #1a1a21;--surface-2: #24242d;--text: #ececf1;--muted: #9a9aa8;--border: #2e2e39;--accent: #7c7cf0;--danger: #f06464;--ok: #4cc27f;--shadow: none;color-scheme:dark}}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:15px/1.5 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}h1,h2{margin:0;line-height:1.2}h1{font-size:1.5rem}h2{font-size:1.1rem}.page{min-height:100vh}.container{max-width:1040px;margin:0 auto;padding:24px 16px 64px}.narrow-container{max-width:640px}.narrow{max-width:420px;margin:0 auto;padding:48px 16px}.stack{display:flex;flex-direction:column;gap:14px}.stack-lg{display:flex;flex-direction:column;gap:24px;min-width:0}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.spread{justify-content:space-between}.center{display:grid;place-items:center;min-height:60vh}.center-text{text-align:center}.muted{color:var(--muted)}.small{font-size:.85rem}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.9rem}.error{color:var(--danger);margin:0}.ok{color:var(--ok);font-weight:500}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow)}.app-header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--border);background:var(--surface)}.brand{font-weight:700;color:var(--text);font-size:1.05rem}.brand:hover{text-decoration:none}.header-user{display:flex;align-items:center;gap:10px}.header-avatar{width:28px;height:28px;border-radius:50%;object-fit:cover}.login-card{text-align:center;align-items:center}.login-card p{margin:0}.btn.google-btn{width:100%;gap:10px;padding:10px 14px;background:#fff;color:#1f1f1f;border-color:#dadce0}.btn.google-btn:hover{background:#f7f8f8}.field{display:flex;flex-direction:column;gap:6px;font-weight:500;font-size:.9rem}.field>span{color:var(--muted)}input,textarea{font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:9px 11px;width:100%;min-width:0}textarea{resize:vertical}input:focus,textarea:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:transparent}.prefixed{display:flex;border:1px solid var(--border);border-radius:8px;overflow:hidden;background:var(--surface)}.prefixed:focus-within{outline:2px solid var(--accent);outline-offset:-1px}.prefixed input{border:0;outline:none;border-radius:0}.prefixed:has(input[aria-invalid=true]){border-color:var(--danger)}.slug-status{min-height:1.3em;font-weight:400}.slug-status .error{margin:0}.prefix{background:var(--surface-2);color:var(--muted);padding:9px 4px 9px 11px;white-space:nowrap;font-weight:400}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;font:inherit;font-weight:500;padding:8px 14px;border-radius:8px;cursor:pointer;border:1px solid var(--border);background:var(--surface);color:var(--text)}.btn:hover{background:var(--surface-2);text-decoration:none}.btn:disabled{opacity:.6;cursor:default}.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.btn.primary:hover{filter:brightness(1.08)}.btn.ghost{border-color:transparent;background:transparent}.btn.danger-outline{color:var(--danger);border-color:var(--danger);background:transparent}.btn.danger{color:#fff;border-color:var(--danger);background:var(--danger)}.btn.danger:hover{filter:brightness(1.08);background:var(--danger)}.confirm-delete{max-width:100%}.tag{display:inline-block;margin-left:8px;padding:1px 8px;border-radius:999px;vertical-align:2px;font-size:.72rem;font-weight:600;color:var(--accent);border:1px solid var(--accent)}.prefixed input[readonly]{color:var(--muted);cursor:default}.clear-btn{flex:none;align-self:center;width:28px;height:28px;margin-right:6px;border-radius:6px;border:0;background:transparent;color:var(--muted);font:inherit;cursor:pointer}.clear-btn:hover{background:var(--surface-2);color:var(--text)}.make-profile{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 14px;border:1px dashed var(--accent);border-radius:10px}.icon-btn{width:32px;height:32px;border-radius:8px;border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;font:inherit}.icon-btn:disabled{opacity:.35;cursor:default}.icon-btn.danger:hover{color:var(--danger);border-color:var(--danger)}.hero{max-width:1040px;margin:0 auto;padding:56px 16px;display:grid;grid-template-columns:1.2fr 1fr;gap:48px;align-items:center}.hero h1{font-size:clamp(2rem,5vw,3rem);letter-spacing:-.02em}.hero-copy{display:flex;flex-direction:column;gap:20px}.lead{font-size:1.1rem;color:var(--muted);margin:0}.create-form{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}.grow{flex:1 1 220px}.page-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.page-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px}.page-item-main{display:flex;flex-direction:column;gap:2px;min-width:0}.page-item-actions{display:flex;gap:8px;flex:none}.page-item-main a{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:32px;align-items:start}.preview{position:sticky;top:24px}.link-editor{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}.link-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:start;padding:12px;border:1px solid var(--border);border-radius:10px;background:var(--bg)}.link-fields{display:flex;flex-direction:column;gap:8px}.item-value-row{display:flex;gap:8px}.item-value-row select{flex:none;font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:8px 6px}.link-row.invalid,.link-row.invalid input[aria-invalid=true]{border-color:var(--danger)}.link-actions{display:flex;gap:6px}.public{min-height:100vh;display:flex;flex-direction:column;align-items:center;padding:48px 16px 24px;gap:32px}.public>.profile{flex:1}.public-footer{font-size:.85rem}.public-footer a{color:var(--muted)}.phone{background:var(--bg);border:1px solid var(--border);border-radius:28px;padding:32px 18px;min-height:480px;box-shadow:var(--shadow)}.profile{width:100%;max-width:480px;margin:0 auto;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}.avatar{width:84px;height:84px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,var(--accent),#d6409f);color:#fff;font-size:2.2rem;font-weight:700}.profile-title{font-size:1.35rem;margin-top:6px;overflow-wrap:anywhere}.profile-bio{margin:0;color:var(--muted);white-space:pre-line;overflow-wrap:anywhere}.link-list{list-style:none;padding:0;margin:14px 0 0;width:100%;display:flex;flex-direction:column;gap:12px}.link-btn{display:flex;align-items:center;gap:12px;padding:12px 14px;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:14px;font-weight:500;transition:transform .1s ease,border-color .1s ease}.link-btn:hover{text-decoration:none;border-color:var(--accent);transform:translateY(-1px)}.link-label{flex:1;text-align:center;padding-right:36px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge{flex:none;width:36px;height:36px;border-radius:10px;display:grid;place-items:center;color:#fff;font-weight:700;font-size:.85rem;box-shadow:inset 0 0 0 1px #ffffff2e}.text-item{display:flex;align-items:center;gap:12px;padding:10px 10px 10px 14px;text-align:left;background:var(--surface);border:1px solid var(--border);border-radius:14px}.text-item-body{flex:1;min-width:0;display:flex;flex-direction:column}.text-item-label{font-size:.8rem;color:var(--muted)}.text-item-value{font-weight:600;color:var(--text);overflow-wrap:anywhere;-webkit-user-select:all;user-select:all}.copy-btn{flex:none;font:inherit;font-size:.85rem;font-weight:500;cursor:pointer;padding:6px 12px;border-radius:8px;border:1px solid var(--border);background:var(--surface-2);color:var(--text)}.copy-btn:hover{border-color:var(--accent)}.template-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.template-card{display:flex;flex-direction:column;align-items:flex-start;gap:6px;text-align:left;font:inherit;color:var(--text);cursor:pointer;padding:16px;background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);transition:border-color .1s ease,transform .1s ease}.template-card:hover:not(:disabled){border-color:var(--accent);transform:translateY(-1px)}.template-card:disabled{opacity:.6;cursor:default}.template-icon{font-size:1.6rem;line-height:1}.template-badges{display:flex;gap:6px;margin-top:4px;flex-wrap:wrap}.template-badges .badge{width:28px;height:28px;border-radius:8px;font-size:.7rem}.badge-icon{width:55%;height:55%;display:block}.badge-text.long{font-size:.7em;letter-spacing:-.02em}.toast-region{position:fixed;left:0;right:0;bottom:max(24px,env(safe-area-inset-bottom));display:flex;justify-content:center;padding:0 16px;pointer-events:none;z-index:100}.toast{display:flex;align-items:center;gap:8px;max-width:100%;padding:10px 16px;border-radius:10px;font-weight:500;background:var(--text);color:var(--bg);box-shadow:0 8px 24px #00000040;animation:toast-in .18s ease-out}.toast-error{background:var(--danger);color:#fff}@keyframes toast-in{0%{opacity:0;transform:translateY(8px)}}@media(prefers-reduced-motion:reduce){.toast{animation:none}}@media(max-width:820px){.hero,.editor{grid-template-columns:1fr}.preview{position:static}.hide-narrow{display:none}}@media(max-width:480px){.page-item{flex-direction:column;align-items:stretch}.page-item-actions{justify-content:flex-end}.link-row{grid-template-columns:minmax(0,1fr)}.link-row>.badge{display:none}.link-actions{justify-content:flex-end}}
