@font-face{font-family:Card;src:url('fonts/regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:Card;src:url('fonts/bold.ttf') format('truetype');font-style:normal;font-weight:800;font-display:swap}
:root{--ink:#20221f;--muted:#767c73;--paper:#fff;--back:#f5f6f2;--line:#e3e7de;--accent:#ffdf48;--error:#b12f26;font-family:Card,Arial,sans-serif;color:var(--ink);background:var(--back);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;padding-bottom:135px}button,input,select,textarea{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;background:none;border:0}button:disabled{cursor:not-allowed;opacity:.45}button,a{touch-action:manipulation}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #c9a600;outline-offset:3px}img{display:block;max-width:100%}[hidden]{display:none!important}.small{font-size:12px;line-height:1.6}.muted{color:var(--muted)}.eyebrow{font-size:10px;font-weight:800;letter-spacing:.1em;margin:0;color:var(--muted)}.status-dot{display:inline-block;width:6px;height:6px;background:#619273;border-radius:50%;flex:none}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.topbar{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 32px;background:white;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;text-decoration:none}.brand-wordmark{display:block;width:75px;height:44px;overflow:hidden}.brand-sub{font-size:10px;letter-spacing:.1em}.prototype-label{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted)}
.workspace-mode{display:none}.workspace{display:grid;grid-template-columns:minmax(320px,420px) minmax(0,1fr);max-width:1280px;margin:auto;align-items:start}.editor{background:white;border-right:1px solid var(--line);padding:30px;min-width:0;min-height:calc(100dvh - 72px)}.editor-heading h1{font-size:30px;line-height:1.2;letter-spacing:-.035em;margin:10px 0}.intro{font-size:13px;line-height:1.6;color:var(--muted);margin:0 0 22px}.examples{padding:18px 0;border-bottom:1px solid var(--line)}.field-label{display:block;font-size:12px;margin-bottom:8px}.segmented{display:flex;padding:4px;background:var(--back);gap:4px;border-radius:10px}.segmented button{flex:1;font-size:13px;padding:11px 8px;border-radius:7px}.segmented button[aria-pressed=true]{background:white;box-shadow:0 1px 5px #00000012}.examples .small{margin:8px 0 0;font-size:11px}.account-connected .examples,.account-connected #reset-draft{display:none}fieldset{border:0;border-bottom:1px solid var(--line);margin:28px 0 0;padding:0 0 25px;min-width:0}legend{padding:0;margin:0 0 18px;font-size:16px;font-weight:800;width:100%}legend>span:first-child{font-size:11px;color:var(--muted);margin-right:10px;font-weight:400}label{display:block;font-size:13px;line-height:1.5;margin-top:15px}input:not([type=file]),select,textarea{display:block;width:100%;padding:13px 12px;border:1px solid #d9dfd3;border-radius:9px;background:white;color:var(--ink);font-size:16px;margin-top:7px;min-height:48px}input::placeholder,textarea::placeholder{color:#9bA192}textarea{resize:vertical;min-height:108px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field-hint{font-size:12px;line-height:1.6;color:var(--muted);margin:-5px 0 12px}.input-note{font-size:11px;color:var(--muted);text-align:right;margin:6px 0 0}.upload-cover{border:1px dashed #c4ccbc;display:flex;align-items:center;gap:14px;padding:16px;border-radius:10px;cursor:pointer;background:#fafbf8}.upload-icon{font-size:26px;line-height:1}.upload-cover small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.file-input{position:absolute;width:1px;height:1px;opacity:0}.field-error{font-size:12px;line-height:1.5;color:var(--error);margin:5px 0 0}.field-error:empty{display:none}[aria-invalid=true]{border-color:var(--error)!important}.count{float:right;font-weight:400;font-size:12px;color:var(--muted);margin-top:3px}.portfolio-editor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 10px}.portfolio-thumb{min-width:0}.portfolio-thumb img{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:9px}.thumb-actions{display:flex;gap:3px;margin-top:6px}.thumb-actions button{flex:1;min-width:0;min-height:42px;padding:6px 2px;font-size:10px;border-radius:6px;background:var(--back)}.thumb-actions button:last-child{color:var(--error)}.upload-portfolio{display:block;text-align:center;padding:16px 10px;border:1px dashed #c4ccbc;border-radius:9px;font-size:13px;cursor:pointer}.editor-footer{padding-top:18px}.button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:48px;padding:13px 16px;border-radius:10px;text-decoration:none;font-size:14px;font-weight:800;text-align:center}.primary{background:var(--accent);color:var(--ink)}.primary:hover{background:#f3d136}.secondary{background:white;border:1px solid #d9dfd3}.secondary:hover{background:var(--back)}.text-button{font-size:12px;padding:9px 0;color:var(--muted);text-decoration:underline;text-underline-offset:4px;min-height:40px}
.preview-area{min-width:0;padding:28px 40px 36px;position:sticky;top:0;max-height:calc(100dvh - 128px);overflow:auto;scrollbar-width:thin}.preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.preview-tabs{display:flex;gap:14px;border-bottom:1px solid var(--line)}.preview-tabs button{padding:10px 0;font-size:12px;border-bottom:2px solid transparent;white-space:nowrap}.preview-tabs button[aria-selected=true]{border-color:var(--ink);font-weight:800}.preview-stage{display:flex;justify-content:center;min-height:420px}.preview-stage>section{width:100%;max-width:430px}.profile-page{background:white;border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 10px 40px #252b1810}.profile-topline{display:flex;justify-content:space-between;align-items:center;margin:20px 22px 14px;font-size:10px;color:var(--muted)}.demo-marker{font-size:9px;border:1px solid var(--line);border-radius:5px;padding:4px 6px}.hero-image{margin:0 16px;overflow:hidden;border-radius:12px}.hero-image>img{width:100%;aspect-ratio:1;max-height:410px;object-fit:cover;object-position:50% 22%}.profile-name{font-size:clamp(28px,4vw,36px);font-weight:800;letter-spacing:-.035em;line-height:1.15;margin:22px 22px 9px;overflow-wrap:anywhere;text-transform:none}.profile-meta{font-size:13px;line-height:1.6;color:var(--muted);margin:0 22px 16px;overflow-wrap:anywhere}.profile-directions{display:flex;flex-wrap:wrap;gap:6px;margin:0 22px 18px}.profile-directions span{padding:6px 9px;background:var(--back);border-radius:6px;font-size:11px;line-height:1.4}.profile-about{font-size:14px;line-height:1.75;color:#586050;white-space:pre-line;overflow-wrap:anywhere;margin:0 22px 20px}.portfolio-button{display:flex;align-items:center;justify-content:space-between;width:calc(100% - 44px);margin:0 22px 16px;padding:15px;border:1px solid var(--line);border-radius:9px;min-height:50px;font-size:13px;font-weight:800}.portfolio-button small{font-size:12px;font-weight:400;color:var(--muted)}.portfolio-button:disabled{display:none}.profile-links{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 22px 12px}.profile-links a{display:flex;align-items:center;justify-content:center;text-decoration:none;text-align:center;min-height:46px;padding:10px 8px;background:var(--back);border-radius:9px;font-size:12px;overflow-wrap:anywhere}.profile-links a.contact-telegram{grid-column:1/-1;background:var(--ink);color:white;font-weight:800}.profile-links:empty{display:none}.share-button{display:block;width:calc(100% - 44px);margin:0 22px 20px;padding:13px 8px;min-height:46px;border:1px solid var(--line);border-radius:9px;font-size:12px}.profile-credit{padding:18px 22px;border-top:1px solid #edf0e8;display:flex;justify-content:center}.profile-credit a{text-decoration:none;font-size:11px;font-weight:800;color:var(--muted)}.profile-credit>span{display:none}.preview-footer{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;margin:20px auto 0;max-width:430px;color:var(--muted);font-size:11px}.preview-footer p{margin:0}.preview-footer>.text-button{font-size:10px}.account-connected #show-expired{display:none}.chat-preview{max-width:390px;margin:auto}.chat-preview-label{display:block;text-align:center;color:var(--muted);font-size:10px;line-height:1.5;margin-bottom:14px}.chat-message{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden}#card-canvas{width:100%;height:auto;display:block;background:white}.chat-caption{padding:16px;font-size:13px}.chat-caption strong,.chat-caption>span{display:block}.chat-caption>span,.chat-caption p{font-size:12px;line-height:1.6;color:var(--muted);margin-top:6px}.chat-caption small{display:none}.mock-inline-button{display:block;width:100%;min-height:46px;border:1px solid #d9dfd3;border-radius:8px;background:#e9eee3;font-size:13px;margin-top:5px}.chat-disclaimer{font-size:12px;line-height:1.6;margin:14px 0 20px}
.editor-actions{position:fixed;bottom:0;left:0;right:0;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:16px max(24px,calc((100vw - 1220px)/2));padding-bottom:calc(16px + env(safe-area-inset-bottom));background:#fffffffa;border-top:1px solid #dfe4d6;box-shadow:0 -5px 25px #151b0e06;backdrop-filter:blur(10px)}.action-status{min-width:0;max-width:520px}.action-status p{font-size:12px;line-height:1.5;margin:0;color:var(--muted)}.action-status #save-status{font-weight:800;color:var(--ink)}.action-status #publication-status{margin-top:3px}.action-buttons{display:flex;gap:10px;flex-shrink:0}.action-buttons .button{width:auto;min-width:175px}.editor-actions[data-dirty=true] #save-status{color:#8e640c}.editor-actions[data-saved=true] #save-status{color:#3a7148}
dialog{color:var(--ink);border:0;padding:24px;background:white;width:430px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;border-radius:16px;box-shadow:0 20px 100px #0003}dialog::backdrop{background:#131910a8;backdrop-filter:blur(4px)}body:has(dialog[open]){overflow:hidden}.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.dialog-header h2{font-size:23px;letter-spacing:-.025em;line-height:1.2;margin:5px 0 0}.icon-button{display:flex;align-items:center;justify-content:center;min-width:42px;height:42px;border:1px solid var(--line);border-radius:50%;font-size:24px;background:white;flex-shrink:0}.gallery-dialog{width:760px}.gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.gallery-item{padding:0;text-align:left;min-width:0}.gallery-item img{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:8px}.gallery-item span{display:block;font-size:11px;line-height:1.5;margin:6px 0;color:var(--muted);overflow-wrap:anywhere}.empty-state{padding:30px 0;text-align:center;color:var(--muted);font-size:13px}.lightbox-dialog{width:1000px;background:#171c14;color:white;padding:16px}.lightbox-top,.lightbox-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px}.lightbox-top{margin-bottom:12px}.lightbox-dialog .icon-button{background:transparent;color:white;border-color:#ffffff40}.lightbox-dialog>img{width:100%;max-height:calc(100dvh - 175px);object-fit:contain}.lightbox-bottom{margin-top:12px}.lightbox-bottom p{margin:0;text-align:center;overflow-wrap:anywhere}.photo-navigation{border-radius:7px;font-size:12px;padding:0 10px}.share-dialog>p,.expired-dialog>p,.confirm-dialog>p{font-size:13px;line-height:1.7;color:var(--muted)}.share-dialog>.button{margin-top:10px}.expired-dialog>h2{font-size:30px;line-height:1.2;letter-spacing:-.03em}.confirm-actions{display:flex;gap:10px;margin-top:24px}.confirm-dialog h2{font-size:23px}.toast{position:fixed;bottom:155px;left:50%;transform:translateX(-50%);max-width:min(92vw,480px);width:max-content;padding:13px 18px;background:#252d20;color:white;font-size:13px;line-height:1.6;border-radius:10px;z-index:60;box-shadow:0 4px 25px #0002}
@media(max-width:900px){body{padding-bottom:150px}.topbar{position:sticky;top:0;z-index:21;height:58px;padding:0 18px}.brand-wordmark{width:59px;height:35px}.brand-sub{font-size:8px}.prototype-label{font-size:10px}.workspace-mode{position:sticky;top:58px;z-index:20;display:flex;gap:5px;padding:8px 16px;background:white;border-bottom:1px solid var(--line)}.workspace-mode button{flex:1;min-height:40px;padding:9px;font-size:13px;border-radius:8px}.workspace-mode button[aria-pressed=true]{font-weight:800;background:var(--back)}.workspace{display:block}.editor{padding:22px 20px;border-right:0;min-height:0}.editor-heading h1{font-size:26px;margin-top:0}.editor-heading .eyebrow{display:none}.intro{font-size:12px;margin-bottom:18px}.preview-area{display:none;position:static;max-height:none;overflow:visible;padding:20px 16px 28px}.workspace-view-preview .editor{display:none}.workspace-view-preview .preview-area{display:block}.preview-toolbar{max-width:430px;margin:0 auto 18px}.preview-toolbar>.eyebrow{display:none}.preview-tabs{width:100%;justify-content:center;gap:28px}.preview-tabs button{font-size:12px}.profile-name{font-size:30px}.profile-page{border-radius:14px}.editor-actions{display:block;padding:11px 16px;padding-bottom:calc(11px + env(safe-area-inset-bottom))}.action-status{max-width:none;margin-bottom:9px}.action-status p{font-size:11px;line-height:1.45}.action-status #publication-status{font-size:10px}.action-buttons{gap:8px}.action-buttons .button{flex:1;min-width:0;padding:12px 8px;font-size:12px;min-height:46px}.toast{bottom:165px}.gallery-dialog{padding:20px}.gallery-grid{gap:10px}}
@media(max-width:350px){.editor{padding-left:16px;padding-right:16px}.brand-sub{display:none}.action-buttons .button{font-size:11px}.profile-name{font-size:27px}.profile-links{grid-template-columns:1fr}.profile-links a.contact-telegram{grid-column:auto}.profile-topline,.profile-about,.profile-directions,.profile-meta{margin-left:18px;margin-right:18px}.hero-image{margin-left:12px;margin-right:12px}.thumb-actions button{font-size:9px}}
html.visitor-preview,html.visitor-preview body{background:white}.visitor-preview body{padding:0}.visitor-preview .topbar,.visitor-preview .workspace-mode,.visitor-preview .editor,.visitor-preview .editor-actions,.visitor-preview .preview-toolbar,.visitor-preview .preview-footer{display:none!important}.visitor-preview .workspace{display:block;max-width:520px}.visitor-preview .preview-area{display:block;padding:0;position:static;max-height:none;overflow:visible}.visitor-preview .preview-stage{display:block;min-height:0}.visitor-preview .preview-stage>section{max-width:none}.visitor-preview .profile-page{border:0;border-radius:0;box-shadow:none;min-height:100dvh;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}.visitor-preview .profile-topline{margin-top:18px}.visitor-preview .profile-name{font-size:clamp(29px,7vw,38px)}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Keep the name and portrait together within a phone-sized preview. */
.profile-page{padding-top:16px}.profile-topline{display:none}.hero-image>img{aspect-ratio:4/3;max-height:370px}.visitor-preview .profile-topline{display:flex}.visitor-preview .profile-page{padding-top:env(safe-area-inset-top)}
.editor input,.editor select,.editor textarea{scroll-margin-top:135px}
/* Preview first: sharing is available without scrolling through the card. */
.workspace-mode{display:flex;justify-content:center;gap:6px;padding:8px 24px;background:white;border-bottom:1px solid var(--line)}.workspace-mode button{min-width:160px;min-height:44px;border-radius:9px;font-size:14px}.workspace-mode button[aria-pressed=true]{background:var(--back);font-weight:800}.workspace-view-preview .editor{display:none}.workspace-view-preview .workspace{display:block;max-width:650px}.workspace-view-preview .preview-area{display:block;position:static;max-height:none;overflow:visible}.workspace-view-preview .editor-actions{display:none}.quick-share{display:none}.workspace-view-preview:not(.visitor-preview) .quick-share{position:fixed;bottom:0;left:0;right:0;z-index:30;display:block;padding:12px max(20px,calc((100vw - 580px)/2));padding-bottom:calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fffffffa;backdrop-filter:blur(10px);box-shadow:0 -4px 22px #151b0e09}.quick-share>p{margin:0 0 8px;font-size:12px;line-height:1.5;color:var(--muted)}.quick-share-buttons{display:flex;gap:8px}.quick-send{background:var(--ink);color:white;flex:1.5}.quick-send:hover{background:#343b2e}.quick-share-buttons .secondary{flex:1;font-size:12px}.quick-share-buttons .button{min-width:0;min-height:52px}.resolved-link{font-size:11px;line-height:1.5;color:#527140;margin:6px 0 0;overflow-wrap:anywhere}.max-hint{margin:6px 0 0;font-size:11px}.profile-links{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-links a{font-size:14px;min-height:50px;border:1px solid var(--line);font-weight:800}.profile-links a.contact-website{grid-column:1/-1;background:white}.profile-links a:last-child:nth-child(odd){grid-column:1/-1}.portfolio-button{background:var(--accent);border-color:var(--accent);font-size:15px;padding:17px 16px;min-height:56px}.portfolio-button:hover{background:#f3d136}.portfolio-button small{font-weight:800;color:var(--ink);padding:5px 8px;border-radius:6px;background:#ffffff85}.chat-caption{font-size:15px;padding:20px;line-height:1.6}.chat-caption-title{display:block;padding-bottom:12px;margin-bottom:14px;border-bottom:1px solid var(--line);font-size:17px;font-weight:800}.chat-caption>strong{font-size:19px;line-height:1.4}.chat-caption>span,.chat-caption p{color:var(--ink);font-size:14px;line-height:1.6}.chat-caption .chat-caption-cta{font-size:13px;font-weight:800;margin:16px 0 0}.visitor-preview .quick-share{display:none!important}
@media(max-width:900px){.workspace-mode{padding:8px 16px}.workspace-mode button{min-width:0;flex:1}.quick-share-buttons .button{font-size:12px;padding:12px 9px}.workspace-view-preview .preview-area{padding-top:14px}.workspace-view-preview .preview-toolbar{margin-bottom:14px}.quick-share>p{font-size:11px}.profile-links a{font-size:13px}.chat-caption{padding:18px}.chat-caption-title{font-size:16px}}
.visitor-preview .workspace{max-width:520px}.visitor-preview .preview-area{padding:0}
/* Preserve the whole photograph unless the owner explicitly chooses cropping. */
.hero-image{background:#f3f4ef}.hero-image>img{aspect-ratio:1088/829;object-fit:contain;object-position:50% 50%}.cover-framing{margin:16px 0 0;padding:14px;background:#f6f7f3;border:1px solid var(--line);border-radius:12px}.cover-framing h3{font-size:14px;margin:0 0 12px}.cover-frame{aspect-ratio:1088/829;background:#e9ece4;overflow:hidden;border-radius:8px;max-width:360px;margin:auto}.cover-frame img{display:block;width:100%;height:100%;object-fit:contain}.cover-framing label{font-size:12px}.cover-framing>.field-hint{margin:8px 0}.cover-framing>.small{margin-bottom:0;font-size:11px}.cover-framing input[type=range]{padding:0;min-height:44px;border:0;background:transparent;accent-color:#20221f;touch-action:pan-y}.cover-framing .button{margin-top:10px;font-size:12px}.inline-share-help{padding:14px;background:#fff9df;border:1px solid #eddda3;border-radius:10px;margin:12px 0 0}.inline-share-help strong{font-size:14px;line-height:1.6}.inline-share-help p{font-size:13px;line-height:1.6;margin:10px 0}.inline-share-help .button{font-size:12px;min-height:52px}#share-telegram:disabled{opacity:.5}

.inline-share-help{order:-3}
