/* Ruction Elements v0.3.34 — single-step contributor profile editor. */
.re334-dialog{position:fixed;inset:0;margin:auto;width:min(760px,calc(100vw - 32px));max-height:min(90vh,950px);max-width:none;padding:0;border:1px solid #325061;border-radius:18px;background:#14232d;color:#ecf7fa;box-shadow:0 30px 100px rgba(0,0,0,.56);overflow:auto;overscroll-behavior:contain}
.re334-dialog::backdrop{background:rgba(2,9,16,.78);backdrop-filter:blur(5px)}
.re334-shell{min-width:0}
.re334-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:25px 29px 20px;border-bottom:1px solid rgba(135,178,191,.23);background:linear-gradient(120deg,#1d3441 0%,#14232d 75%)}
.re334-eyebrow{font-size:10px;color:#4fd5e8;font-weight:800;letter-spacing:.16em}
.re334-head h2{font-size:24px;font-weight:800;letter-spacing:-.025em;line-height:1.2;margin:6px 0 7px;color:#fff}
.re334-head p{font-size:12px;line-height:1.6;color:#abbdc8;max-width:520px;margin:0}
.re334-close{background:rgba(255,255,255,.07);color:#e6f2f6;border:1px solid #526773;width:33px;height:33px;border-radius:9px;line-height:1;font-size:23px;cursor:pointer;flex-shrink:0}
.re334-form{display:grid;gap:23px;padding:24px 29px 26px}
.re334-portrait-block{display:flex;align-items:center;gap:22px;padding:0 0 23px;border-bottom:1px solid rgba(134,176,192,.2)}
.re334-preview{width:100px;height:100px;border-radius:50%;flex:0 0 100px;display:grid;place-items:center;overflow:hidden;color:#b5ecf3;background:linear-gradient(150deg,#253f4f,#122c3b);border:3px solid var(--re334-accent,#12b2d8);box-shadow:0 0 0 5px rgba(136,207,227,.07)}
.re334-preview img{width:100%;height:100%;object-fit:cover}
.re334-placeholder{display:grid;place-items:center}.re334-placeholder svg{width:54px;height:54px}
.re334-photo-actions{display:grid;gap:8px;min-width:0}.re334-photo-actions strong{font-size:14px}.re334-photo-actions p{margin:0;font-size:12px;line-height:1.5;color:#afc4cf}
.re334-photo-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:3px}
.re334-file{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.re334-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 19px}
.re334-field{display:flex;flex-direction:column;gap:7px;min-width:0}.re334-wide{grid-column:1/-1}.re334-label{color:#dfebf1;font-size:12px;font-weight:750}.re334-hint{color:#a3b8c3;font-size:11px}
.re334-input{display:block;box-sizing:border-box;min-width:0;width:100%;border:1px solid #506c79;border-radius:9px;background:#0d1b24;color:#f4fbff;outline:none;padding:11px 12px;min-height:42px;font:inherit;font-size:13px;transition:border-color .18s,box-shadow .18s}
.re334-input::placeholder{color:#879eab}.re334-input:focus{border-color:#29c9df;box-shadow:0 0 0 3px rgba(26,174,202,.22)}
textarea.re334-input{min-height:92px;resize:vertical;line-height:1.5}
.re334-colors{border-top:1px solid rgba(134,176,192,.2);padding-top:18px}.re334-colors h3{font-size:14px;margin:0 0 5px}.re334-colors p{font-size:12px;color:#a8bdc8;margin:0 0 14px;line-height:1.45}
.re334-color-controls{display:flex;align-items:center;gap:15px;flex-wrap:wrap}.re334-swatches{display:flex;gap:9px;flex-wrap:wrap}.re334-swatch{height:29px;width:29px;border:3px solid transparent;border-radius:8px;background:var(--swatch);cursor:pointer;box-shadow:0 0 0 1px #6b828e inset}.re334-swatch.active{outline:2px solid #f7fcff;outline-offset:2px}.re334-custom-color{width:42px;height:36px;border:1px solid #5d7884;background:#102531;border-radius:8px;padding:3px;cursor:pointer}
.re334-footer{border-top:1px solid rgba(134,176,192,.2);padding-top:16px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.re334-message{margin:0;min-width:0;flex:1;font-size:12px;color:#b8d6e2;line-height:1.5}.re334-actions{display:flex;gap:9px}
.re334-secondary,.re334-primary,.re334-link{font:inherit;font-size:12px;font-weight:750;cursor:pointer;border-radius:9px;padding:10px 14px;min-height:37px}
.re334-secondary{border:1px solid #557687;background:transparent;color:#dbf4fa}.re334-primary{background:#08a9c7;color:#06222e;border:1px solid #15c7e0}.re334-link{border:0;background:transparent;color:#71e2ef;padding-left:4px;padding-right:4px}
.re334-primary:disabled,.re334-secondary:disabled,.re334-close:disabled{opacity:.55;cursor:wait}
.re334-dialog button:focus-visible,.re334-dialog input:focus-visible{outline:2px solid #57e4f3;outline-offset:2px}
/* Contributor identity is the saved personal accent, not an unrelated cyan selection border. */
#teamView .re309-person-card{border:2px solid var(--re324-contributor-color,#12b2d8);border-left-width:4px;transition:border-color .15s,box-shadow .15s,background .15s}
#teamView .re309-person-card.selected{border-color:var(--re324-contributor-color,#12b2d8);box-shadow:0 0 0 2px color-mix(in srgb,var(--re324-contributor-color,#12b2d8) 45%,transparent) inset}
#teamView .re309-profile-hero{border-left:4px solid var(--re324-contributor-color,#12b2d8)}
#teamView .re334-full-name{font-size:12px!important;margin-top:-3px!important}
#teamView .re334-bio{font-size:12px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;max-width:65ch}
#teamView .re334-email{display:inline-block;margin-top:3px;color:#20afcf;font-size:12px;overflow-wrap:anywhere}
/* Light mode uses readable ink and light fields, not the dark surface. */
body[data-theme='light'] .re334-dialog,[data-theme='light'] .re334-dialog{background:#fff;color:#182e3b;border-color:#bcd4df}
body[data-theme='light'] .re334-head,[data-theme='light'] .re334-head{background:linear-gradient(120deg,#e7f5f9,#fff)}
body[data-theme='light'] .re334-head h2,[data-theme='light'] .re334-head h2{color:#142b38}
body[data-theme='light'] .re334-head p,[data-theme='light'] .re334-head p,body[data-theme='light'] .re334-photo-actions p,[data-theme='light'] .re334-photo-actions p,body[data-theme='light'] .re334-colors p,[data-theme='light'] .re334-colors p{color:#4c697a}
body[data-theme='light'] .re334-label,[data-theme='light'] .re334-label{color:#274151}
body[data-theme='light'] .re334-input,[data-theme='light'] .re334-input{background:#f6fafc;border-color:#b6cbd5;color:#152f3e}
body[data-theme='light'] .re334-input::placeholder,[data-theme='light'] .re334-input::placeholder{color:#5e7482}
body[data-theme='light'] .re334-close,[data-theme='light'] .re334-close{background:#e4f0f4;color:#1d3b48;border-color:#b9ccd5}
body[data-theme='light'] .re334-secondary,[data-theme='light'] .re334-secondary{color:#18617a;border-color:#aac9d6}
body[data-theme='light'] .re334-message,[data-theme='light'] .re334-message{color:#446172}
@media(max-width:650px){.re334-dialog{width:calc(100vw - 20px);max-height:94vh;border-radius:14px}.re334-head{padding:19px}.re334-form{padding:18px 19px;gap:18px}.re334-fields{grid-template-columns:1fr}.re334-portrait-block{align-items:flex-start;gap:15px}.re334-preview{width:79px;height:79px;flex-basis:79px}.re334-placeholder svg{width:43px;height:43px}.re334-footer{align-items:stretch}.re334-actions{margin-left:auto}}
@media(prefers-reduced-motion:reduce){#teamView .re309-person-card,.re334-input{transition:none}}

/* v0.3.35: selected contributor identity, clear edit affordance and live photo cropper. */
#teamView .re309-person-card,[data-theme="dark"] #teamView .re309-person-card{
  border:3px solid var(--re324-contributor-color,#12b2d8)!important;
  border-radius:12px;
}
#teamView .re309-person-card.selected,[data-theme="dark"] #teamView .re309-person-card.selected{
  border:3px solid var(--re324-contributor-color,#12b2d8)!important;
  box-shadow:0 0 0 2px color-mix(in srgb,var(--re324-contributor-color,#12b2d8) 36%,transparent) inset;
}
#teamView .re309-person-card:hover{box-shadow:0 0 0 3px color-mix(in srgb,var(--re324-contributor-color,#12b2d8) 35%,transparent)}
#teamView .re309-profile-hero{border-left:8px solid var(--re324-contributor-color,#12b2d8)!important;padding-left:11px}
#teamView .re309-avatar{border:3px solid var(--re324-contributor-color,#12b2d8);overflow:hidden;box-sizing:border-box}
#teamView .re309-outline{border:1px solid #607887;transition:color .16s,border-color .16s,box-shadow .16s,background .16s}
#teamView .re309-outline:hover,#teamView .re309-outline:focus-visible{border-color:#08b7ef;box-shadow:0 0 0 2px rgba(0,180,239,.35);background:rgba(0,174,224,.11);color:#35d6ff}
.re334-swatch.unavailable{cursor:not-allowed;position:relative;opacity:.45;filter:saturate(.6)}
.re334-swatch.unavailable::after{content:' ';position:absolute;left:-7px;right:-7px;top:50%;height:3px;background:#ff4562;transform:rotate(-46deg);box-shadow:0 0 0 1px #1c2630;pointer-events:none}
.re335-crop-dialog{position:fixed;inset:0;margin:auto;width:min(470px,calc(100vw - 24px));max-height:92vh;overflow:auto;padding:0;border:1px solid #466678;border-radius:18px;background:#152732;color:#effaff;box-shadow:0 20px 90px #000b;max-width:none}
.re335-crop-dialog::backdrop{background:rgba(0,7,13,.82);backdrop-filter:blur(4px)}
.re335-crop-inner{padding:24px;display:grid;gap:13px;justify-items:stretch}
.re335-crop-inner h2{font-size:22px;margin:0;color:#fff}
.re335-crop-instructions{font-size:12px;line-height:1.55;color:#b1c9d3;margin:0}
.re335-crop-stage{margin:0 auto;position:relative;width:min(320px,75vw);height:min(320px,75vw);border-radius:50%;border:3px solid #4ad9ed;overflow:hidden;background:#0a1820;touch-action:none;box-shadow:0 0 0 7px #29425144}
.re335-crop-canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab;outline:none}
.re335-crop-canvas:active{cursor:grabbing}
.re335-zoom-row{display:flex;align-items:center;gap:16px;font-size:13px;font-weight:700}
.re335-zoom{width:100%;accent-color:#00badd;cursor:pointer}
.re335-crop-hint{font-size:11px;color:#96b3c2;text-align:center;margin:0}
.re335-crop-error{min-height:16px;font-size:12px;color:#ffacb8;margin:0}
.re335-crop-actions{display:flex;gap:10px;justify-content:flex-end}
.re335-crop-dialog button:focus-visible,.re335-crop-canvas:focus-visible{outline:2px solid #4be3ef;outline-offset:3px}
[data-theme="light"] .re335-crop-dialog,body[data-theme="light"] .re335-crop-dialog{background:#fff;color:#1a3341}
[data-theme="light"] .re335-crop-inner h2{color:#183746}
[data-theme="light"] .re335-crop-instructions,[data-theme="light"] .re335-crop-hint{color:#506b79}
@media(max-width:520px){.re335-crop-inner{padding:18px}.re335-crop-stage{width:min(320px,70vw);height:min(320px,70vw)}}

/* v0.3.36: intentional breathing room below Edit profile, above contributor metrics. */
#teamView #re309Profile > .re309-outline{display:inline-block;margin-bottom:18px!important;}
