:root{
  --profile-canvas:#f4f3ec;
  --profile-paper:#fffdf7;
  --profile-ink:#18232a;
  --profile-muted:#68747b;
  --profile-line:#c8d3d5;
  --profile-teal:#147f79;
  --profile-teal-dark:#0b5d59;
  --profile-teal-pale:#dcefeb;
  --profile-orange:#ff6b00;
}

[hidden]{display:none!important}

.profile-builder-page{
  min-height:100vh;
  background-color:var(--profile-canvas);
  background-image:linear-gradient(#d8e3e8 1px,transparent 1px),linear-gradient(90deg,#d8e3e8 1px,transparent 1px);
  background-size:56px 56px;
  color:var(--profile-ink);
  font-family:var(--sans);
}
.profile-builder-page .site-header{height:80px;color:var(--profile-ink);border-bottom:2px solid var(--profile-ink);background:rgba(244,243,236,.92)}
.profile-builder-page .site-header nav{color:var(--profile-muted)}
.profile-builder-page .site-header nav a:hover{color:var(--profile-teal)}
.profile-builder-page .brand{color:var(--profile-ink)}
.profile-builder-page .brand-crest{background:transparent;color:inherit}
.profile-builder-page .button{background:var(--profile-teal);border:1.5px solid var(--profile-ink);border-radius:2px;color:#fff;box-shadow:4px 4px 0 var(--profile-ink)}
.profile-builder-page .button:hover{background:var(--profile-teal-dark);transform:translate(-1px,-1px);box-shadow:5px 5px 0 var(--profile-ink)}
.profile-builder-page .language-toggle{border-color:var(--profile-line);color:var(--profile-muted)}
.profile-builder-page .language-toggle-option.active{color:var(--profile-ink)}
.profile-builder-page .language-toggle:hover{border-color:var(--profile-teal);color:var(--profile-teal)}

.profile-builder{padding:76px 0 100px}
.profile-builder-intro{max-width:790px;margin-bottom:45px}
.profile-builder-intro .eyebrow{color:var(--profile-teal);font-family:var(--sans)}
.profile-builder-intro h1{font-size:clamp(48px,6vw,82px);line-height:.98;letter-spacing:-.08em;margin:22px 0 20px;color:var(--profile-ink)}
.profile-builder-intro h1 em{font-family:var(--serif);font-style:normal;color:var(--profile-teal);font-weight:400;letter-spacing:-.07em}
.profile-builder-intro>p:last-child{max-width:630px;color:var(--profile-muted);font-size:17px;line-height:1.75}

.profile-builder-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(350px,.92fr);gap:65px;align-items:start}
.profile-form-panel{background:var(--profile-paper);border:1.5px solid var(--profile-ink);border-radius:0;padding:30px;box-shadow:7px 7px 0 #cbd5d5}
.profile-form-section{border:0;margin:0;padding:0}
.profile-form-section+.profile-form-section{margin-top:35px;padding-top:31px;border-top:1px solid var(--profile-line)}
.profile-form-section legend{display:flex;gap:14px;align-items:center;padding:0;margin-bottom:20px;font-size:20px;font-weight:700;letter-spacing:-.03em}
.profile-form-section legend span{color:var(--profile-teal);font-family:var(--serif);font-size:18px;letter-spacing:0}
.profile-field{display:block;margin:17px 0 0;color:var(--profile-ink);font-size:14px;font-weight:650}
.profile-field small{color:var(--profile-muted);font-size:12px;margin-left:5px;font-weight:400}
.profile-field input,.profile-field textarea{display:block;width:100%;margin-top:8px;border:1px solid var(--profile-ink);background:#fff;color:var(--profile-ink);border-radius:0;padding:12px 13px;font-size:16px;min-height:47px;outline:none;resize:vertical}
.profile-field textarea{line-height:1.6}
.profile-field input::placeholder,.profile-field textarea::placeholder{color:#9aa6a9}
.profile-field input:focus,.profile-field textarea:focus{border-color:var(--profile-teal);outline:2px solid #147f7930;outline-offset:2px}
.profile-field-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.profile-help{color:var(--profile-muted);font-size:12px;line-height:1.65;margin:20px 0 0}
.profile-form-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:30px}
.profile-form-actions .outline{background:transparent;color:var(--profile-ink);border:1px solid var(--profile-ink);box-shadow:none}
.profile-form-actions .outline:hover{background:var(--profile-teal-pale);color:var(--profile-teal-dark);box-shadow:none}
.profile-status{min-height:24px;color:var(--profile-muted);font-size:13px;line-height:1.6;margin:17px 0 0}
.profile-status[data-tone=success]{color:var(--profile-teal-dark)}
.profile-share{margin-top:21px;padding-top:21px;border-top:1px solid var(--profile-line)}
.profile-share label{display:block;color:var(--profile-ink);font-size:13px;font-weight:650}
.profile-share input{width:100%;margin-top:8px;background:#fff;color:var(--profile-muted);border:1px solid var(--profile-ink);border-radius:0;padding:11px 12px;font-size:13px}
.profile-share-actions{display:flex;gap:11px;flex-wrap:wrap;margin-top:12px}
.profile-share-actions a,.profile-share-actions button{font-size:13px;color:var(--profile-teal-dark);text-decoration:underline;text-underline-offset:4px;background:none;padding:0}
.profile-share-actions a:hover,.profile-share-actions button:hover{color:var(--profile-orange)}
.profile-privacy{display:flex;gap:10px;align-items:flex-start;margin-top:25px;padding:13px 14px;background:var(--profile-teal-pale);border:1px solid #9fc9c5;color:var(--profile-muted);font-size:12px;line-height:1.65}
.profile-privacy strong{color:var(--profile-teal-dark);font-size:13px}

.profile-preview-wrap{position:sticky;top:30px}
.profile-preview-label{display:flex;justify-content:space-between;color:var(--profile-muted);font-size:10px;letter-spacing:.1em;margin:0 3px 14px}
.profile-preview-label span:last-child{color:var(--profile-teal)}
.profile-preview-card{background:var(--profile-paper);border:1.5px solid var(--profile-ink);border-radius:0;overflow:hidden;box-shadow:7px 7px 0 #cbd5d5}
.profile-preview-cover{height:135px;background-color:var(--profile-teal);background-image:linear-gradient(135deg,#ffffff18 25%,transparent 25%,transparent 50%,#ffffff18 50%,#ffffff18 75%,transparent 75%);background-size:28px 28px;padding:23px;color:#fff;font-size:15px}.profile-preview-cover span{display:block;width:38px;height:48px;background:#fff url('/yilink-logo.png') center/cover no-repeat;border-radius:3px;font-size:0}
.profile-preview-body{padding:0 28px 34px}
.profile-preview-cover span{display:flex;align-items:center;gap:10px;width:auto;height:auto;background:none;border-radius:0;font-size:15px}
.profile-preview-cover span::before{content:"";display:block;width:30px;height:38px;background:#fff url('/yilink-logo.png') center/contain no-repeat;flex:0 0 auto}
.profile-preview-avatar{width:82px;height:82px;margin-top:-40px;border:5px solid var(--profile-paper);border-radius:50%;display:grid;place-items:center;background:var(--profile-ink);color:#fff;font-size:27px;font-weight:700;letter-spacing:-.05em}
.profile-preview-body .eyebrow{font-size:10px;margin-top:21px;color:var(--profile-teal);font-family:var(--sans)}
.profile-preview-body h2{font-size:38px;line-height:1.03;margin-top:10px;overflow-wrap:anywhere;color:var(--profile-ink)}
.profile-preview-year{color:var(--profile-muted);font-size:14px;margin-top:12px}
.profile-preview-headline{color:var(--profile-ink);font-size:19px;line-height:1.45;margin-top:23px;overflow-wrap:anywhere}
.profile-preview-bio{color:var(--profile-muted);font-size:14px;line-height:1.75;margin-top:15px;white-space:pre-wrap;overflow-wrap:anywhere}
.profile-preview-save{display:flex;justify-content:space-between;align-items:center;margin-top:27px;padding:15px 16px;border:1.5px solid var(--profile-ink);background:var(--profile-teal);color:#fff;font-size:14px;font-weight:750;box-shadow:4px 4px 0 var(--profile-ink)}
.profile-preview-links{display:grid;gap:10px;margin-top:18px}
.profile-preview-links a{display:flex;justify-content:space-between;padding:13px 14px;border:1px solid var(--profile-ink);border-radius:0;color:var(--profile-ink);font-size:13px;background:#fff}
.profile-preview-links a:hover{border-color:var(--profile-teal);color:var(--profile-teal-dark);background:var(--profile-teal-pale)}
.profile-preview-caption{text-align:center;color:var(--profile-muted);font-size:12px;line-height:1.6;margin:16px 0 0}
.profile-builder-page .site-footer{background:rgba(244,243,236,.94);border-top:2px solid var(--profile-ink);color:var(--profile-ink)}
.profile-builder-page .site-footer nav{color:var(--profile-muted)}
.profile-builder-page .site-footer nav a:hover{color:var(--profile-teal)}

@media(max-width:900px){.profile-builder-grid{grid-template-columns:1fr;gap:40px}.profile-preview-wrap{position:static;max-width:510px;margin:0 auto;width:100%}.profile-builder-intro{margin-bottom:34px}}
@media(max-width:560px){.profile-builder{padding:47px 0 70px}.profile-builder-intro h1{font-size:50px}.profile-builder-intro>p:last-child{font-size:15px}.profile-form-panel{padding:23px 19px;box-shadow:5px 5px 0 #cbd5d5}.profile-form-section legend{font-size:18px}.profile-field-row{grid-template-columns:1fr}.profile-preview-body{padding-inline:23px}.profile-preview-body h2{font-size:34px}.profile-builder-page .site-header .button{display:none}}
