.avatar-file-input[type=file]{display:none!important}.avatar-editor--row{align-items:center;gap:var(--space-4);width:100%;min-width:0;display:flex}.avatar-editor--row .avatar-editor-portrait{box-shadow:none;padding:0}.avatar-editor-body{flex:1;min-width:0}.avatar-editor--agent{margin:0 0 24px}.avatar-editor-trigger{appearance:none;font:inherit;cursor:pointer;color:var(--ink-900);transition:border-color var(--duration-base), background var(--duration-base), box-shadow var(--duration-base)}.avatar-editor-trigger:disabled{cursor:not-allowed;opacity:.55}.avatar-editor--agent .avatar-editor-trigger{background:var(--bg);border:1px solid var(--line);text-align:left;border-radius:14px;align-items:center;gap:18px;width:100%;padding:18px 20px;display:flex}.avatar-editor--agent .avatar-editor-trigger:hover:not(:disabled){background:var(--surface);border-color:var(--brand-500);box-shadow:var(--shadow-pop)}.avatar-editor-portrait{background:var(--surface);box-shadow:0 0 0 1px var(--line);border-radius:50%;flex:none;padding:4px;display:inline-flex;position:relative}.avatar-editor-camera{width:25px;height:25px;font-size:var(--text-sm);color:var(--ink-on-color);background:var(--brand-600);border:3px solid var(--surface);border-radius:50%;place-items:center;display:grid;position:absolute;bottom:-1px;right:-1px}.avatar-editor-caption{flex-direction:column;gap:5px;min-width:0;display:flex}.avatar-editor-caption strong{font-size:var(--text-base);font-weight:600}.avatar-editor-caption>span{color:var(--ink-500);font-size:var(--text-xs);line-height:20px}.avatar-editor-change{color:var(--brand-600);font-size:var(--text-sm);flex:none;align-items:center;gap:8px;margin-left:auto;display:inline-flex}.avatar-editor--user .avatar-editor-trigger{background:0 0;border:0;flex-direction:column;align-items:center;gap:12px;padding:4px 12px;display:flex}.avatar-editor--user .avatar-editor-camera{width:30px;height:30px;font-size:var(--text-md)}.avatar-editor--user .avatar-editor-caption strong{font-size:var(--text-xs);color:var(--ink-500);font-weight:400}.avatar-editor--user .avatar-editor-trigger:hover .avatar-editor-portrait{box-shadow:0 0 0 3px var(--brand-soft-2)}.avatar-editor--user .avatar-editor-trigger:hover .avatar-editor-caption strong{color:var(--brand-600)}.agent-avatar{vertical-align:middle;border-radius:50%;flex:none;display:inline-flex;position:relative}.agent-avatar-clip{border-radius:inherit;width:100%;height:100%;box-shadow:0 0 0 1px var(--line);background:var(--surface-3);display:block;overflow:hidden}.avatar-face{border-radius:inherit;object-fit:cover;width:100%;height:100%;display:block}.agent-avatar .status-dot{position:absolute;bottom:-1px;right:-1px}.agent-avatar.is-group{border-radius:30%}.agent-avatar-grid{background:var(--line-strong);grid-template-rows:1fr 1fr;grid-template-columns:1fr 1fr;gap:1px;display:grid}.agent-avatar-grid>span{min-width:0;min-height:0;overflow:hidden}.agent-avatar-grid[data-count="1"]>span{grid-area:1/1/3/3}.agent-avatar-grid[data-count="2"]>span,.agent-avatar-grid[data-count="3"]>span:first-child{grid-row:1/3}.agent-avatar-grid .avatar-face{border-radius:0}.agent-avatar-badge{right:calc(var(--space-1) * -.75);bottom:calc(var(--space-1) * -.75);width:48%;height:48%;min-width:calc(var(--space-3) + var(--space-1) / 4);min-height:calc(var(--space-3) + var(--space-1) / 4);background:var(--brand-600);color:var(--ink-on-color);box-shadow:0 0 0 2px var(--avatar-ring,var(--surface));border-radius:50%;place-items:center;display:grid;position:absolute}.agent-avatar-badge .lb-icon{stroke-width:2.4px;width:70%;height:70%}@property --avatar-arc{syntax:"<angle>";inherits:false;initial-value:0deg}@keyframes avatar-arc-spin{to{--avatar-arc:360deg}}.agent-avatar.is-working:after{content:"";inset:calc(var(--space-1) * -.75);background:conic-gradient(from var(--avatar-arc), transparent 0deg, var(--brand-500) 200deg, var(--violet-600) 300deg, transparent 360deg);animation:avatar-arc-spin var(--duration-loop) var(--ease-spin) infinite;pointer-events:none;border-radius:50%;position:absolute;-webkit-mask:radial-gradient(farthest-side,#0000 calc(100% - 2px),#000 calc(100% - 1.5px));mask:radial-gradient(farthest-side,#0000 calc(100% - 2px),#000 calc(100% - 1.5px))}@media (prefers-reduced-motion:reduce){.agent-avatar.is-working:after{animation:none}}.avatar-halo{position:relative}.avatar-halo:after{content:"";inset:calc(var(--space-1) * -.75);border:calc(var(--space-1) / 2) solid var(--brand-600);opacity:0;animation:avatar-halo calc(var(--duration-loop) + var(--duration-overlay)) ease-out infinite;pointer-events:none;border-radius:50%;position:absolute}@keyframes avatar-halo{0%{opacity:.55;transform:scale(.85)}to{opacity:0;transform:scale(1.35)}}@media (prefers-reduced-motion:reduce){.avatar-halo:after{opacity:.5;animation:none;transform:none}}.avatar-studio .ant-modal-container{box-shadow:var(--shadow-overlay);border-radius:20px;padding:0;overflow:hidden}.avatar-studio .ant-modal-header{border-bottom:1px solid var(--surface-2);margin:0;padding:26px 28px 22px}.avatar-studio .ant-modal-body{max-height:none;padding:24px 28px;overflow:visible}.avatar-studio .ant-modal-footer{border-top:1px solid var(--surface-2);margin:0;padding:18px 28px}.avatar-studio .ant-modal-close{color:var(--ink-400);top:25px;right:22px}.avatar-studio-heading{align-items:center;gap:14px;padding-right:30px;display:flex}.avatar-studio-heading-icon{background:var(--brand-soft);width:42px;height:42px;color:var(--brand-600);font-size:var(--text-xl);border-radius:12px;flex:none;place-items:center;display:grid}.avatar-studio-heading strong{font-size:var(--text-lg);font-weight:600;line-height:26px;display:block}.avatar-studio-heading p{color:var(--ink-500);font-size:var(--text-xs);margin:3px 0 0;font-weight:400;line-height:20px}.avatar-studio-body{grid-template-columns:minmax(0,1fr) 216px;gap:28px;display:grid}.avatar-studio-section-heading{height:28px;color:var(--ink-700);font-size:var(--text-sm);justify-content:space-between;align-items:center;margin-bottom:12px;font-weight:500;display:flex}.avatar-studio-section-heading .ant-btn{font-size:var(--text-xs);padding-right:0}.avatar-upload-zone{background:var(--bg);border:1.5px dashed var(--line);width:100%;min-height:336px;font:inherit;cursor:pointer;transition:border-color var(--duration-base), background var(--duration-base);border-radius:14px;flex-direction:column;justify-content:center;align-items:center;padding:28px 16px;display:flex}.avatar-upload-zone:hover,.avatar-upload-zone.is-dragging{background:var(--brand-soft);border-color:var(--brand-500)}.avatar-upload-icon{background:var(--surface);width:64px;height:64px;box-shadow:var(--shadow-pop);font-size:var(--text-3xl);color:var(--brand-600);border-radius:18px;place-items:center;margin-bottom:22px;display:grid}.avatar-upload-zone>strong{font-size:var(--text-md);color:var(--ink-900);margin-bottom:8px;font-weight:500}.avatar-upload-zone>span:not(.avatar-upload-icon,.avatar-upload-cta){font-size:var(--text-xs);color:var(--ink-500)}.avatar-upload-cta{border:1px solid var(--line);background:var(--surface);color:var(--ink-700);font-size:var(--text-sm);border-radius:8px;align-items:center;gap:12px;margin-top:24px;padding:8px 16px;display:inline-flex}.avatar-upload-zone>small{color:var(--ink-500);font-size:var(--text-2xs);margin-top:18px}.avatar-crop-stage{aspect-ratio:1;background:var(--surface-dark-2);cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;border-radius:12px;width:min(100%,320px);margin:0 auto;position:relative;overflow:hidden}.avatar-crop-stage:active{cursor:grabbing}.avatar-crop-stage>canvas{width:100%;height:100%;display:block}.avatar-crop-mask{border:1px solid color-mix(in srgb, var(--surface-dark-text-strong) 80%, transparent);box-shadow:0 0 0 100px color-mix(in srgb, var(--surface-dark) 58%, transparent);pointer-events:none;border-radius:50%;position:absolute;inset:0}.avatar-reading{background:color-mix(in srgb, var(--surface) 65%, transparent);place-items:center;display:grid;position:absolute;inset:0}.avatar-zoom-control{align-items:center;gap:8px;max-width:336px;margin:14px auto 0;display:flex}.avatar-zoom-control .ant-slider{flex:1;min-width:0;margin-inline:4px}.avatar-zoom-control .ant-btn{color:var(--ink-500);flex:none}.avatar-zoom-control .ant-btn:last-child{border-left:1px solid var(--line);border-radius:0;margin-left:2px}.avatar-crop-hint{text-align:center;color:var(--ink-500);font-size:var(--text-2xs);margin:6px 0 0}.avatar-crop-hint .lb-icon{margin-right:4px}.avatar-studio-preview{border-left:1px solid var(--surface-2);min-width:0;padding-left:24px}.avatar-preview-label{height:28px;font-size:var(--text-sm);color:var(--ink-700);margin-bottom:12px;font-weight:500;line-height:28px;display:block}.avatar-preview-primary{border:1px solid var(--line);background:var(--surface);border-radius:14px;flex-direction:column;align-items:center;padding:26px 12px 22px;display:flex}.avatar-preview-ring{border:1px solid var(--line);border-radius:50%;margin-bottom:16px;padding:5px;display:inline-flex}.avatar-preview-ring>canvas{border-radius:50%;width:96px;height:96px}.avatar-preview-primary>strong{text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:var(--text-base);font-weight:600;overflow:hidden}.avatar-preview-context{background:var(--bg);border-radius:var(--radius-card);align-items:center;gap:10px;margin-top:14px;padding:13px 12px;display:flex}.avatar-preview-context>canvas{border-radius:50%;flex:none;width:36px;height:36px}.avatar-preview-context>div{min-width:0}.avatar-preview-context strong{text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-xs);font-weight:500;display:block;overflow:hidden}.avatar-studio-footer{justify-content:space-between;align-items:center;gap:12px;display:flex}.avatar-studio-footer .avatar-reset{color:var(--ink-500);font-size:var(--text-xs);padding-inline:0}.avatar-studio-footer-actions{align-items:center;gap:10px;display:flex}.avatar-studio-footer-actions .ant-btn{min-width:80px;height:36px;box-shadow:none;border-radius:8px}.avatar-studio-error{margin-bottom:20px}@media (width<=560px){.avatar-studio .ant-modal{max-width:calc(100vw - 24px);padding-block:12px}.avatar-studio .ant-modal-header{padding:20px}.avatar-studio .ant-modal-body{padding:18px 20px}.avatar-studio .ant-modal-footer{padding:14px 20px}.avatar-studio .ant-modal-close{top:19px;right:14px}.avatar-studio-body{grid-template-columns:minmax(0,1fr);gap:20px}.avatar-upload-zone{min-height:260px}.avatar-studio-preview{border-left:0;border-top:1px solid var(--surface-2);justify-content:space-between;align-items:center;gap:12px;padding:16px 0 0;display:flex}.avatar-preview-label{font-size:var(--text-xs);margin:0}.avatar-preview-primary{background:0 0;border:0;padding:0}.avatar-preview-ring{margin:0;padding:3px}.avatar-preview-ring>canvas,.avatar-preview-ring .agent-avatar{width:48px!important;height:48px!important}.avatar-preview-primary>strong{display:none}.avatar-preview-context{flex:1;max-width:180px;margin:0;padding:8px 10px}.avatar-editor--agent .avatar-editor-trigger{gap:12px;padding:14px}.avatar-editor-change{gap:0;font-size:0}.avatar-editor-change .lb-icon{font-size:var(--text-base)}.avatar-editor-caption>span{font-size:var(--text-2xs)}}@media (prefers-reduced-motion:reduce){.avatar-editor-trigger,.avatar-upload-zone{transition:none}}.agent-avatar.is-loading{background:var(--surface-3);box-shadow:0 0 0 1px var(--line)}
