.profile-entry{display:flex;align-items:center;gap:7px}
.profile-entry img{width:21px;height:21px;object-fit:cover;border-radius:50%;background:#303034}
.profile-entry span{display:block;max-width:95px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mobile-profile-avatar{position:relative;display:grid;place-items:center;overflow:hidden;border:1px solid #56565c;border-radius:50%;background:#20231c;color:var(--accent);font:700 8px Manrope}
.mobile-profile-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.mobile-profile-avatar>span{position:relative;z-index:1}
.mobile-profile-avatar img:not([hidden])~span{display:none}
@media(min-width:681px){.topbar{height:0;border:0}.feed{height:100dvh}.video-post{min-height:100dvh}}

.profile-dialog{width:min(850px,calc(100vw - 32px));max-width:none;max-height:min(720px,calc(100dvh - 36px));padding:0;border:1px solid #333338;border-radius:19px;background:#101012;color:#f4f4f5;overflow:hidden;box-shadow:0 30px 110px #000c}
.profile-dialog::backdrop{background:#000b;backdrop-filter:blur(8px)}
.profile-dialog .dialog-close{z-index:2}
.profile-card{position:relative;padding:25px 29px 22px;background:radial-gradient(ellipse at 18% 53%,#171b1b,#111113 53%)}
.profile-header{display:flex;justify-content:space-between;align-items:flex-start;padding-right:38px}
.profile-header h2{margin:0;font-size:19px;font-weight:600;letter-spacing:-.02em}
.profile-header p{margin:4px 0 0;color:#86868d;font-size:10px}
.profile-saved-indicator{display:flex;align-items:center;gap:6px;margin-top:5px;color:#999d91;font-size:9px}
.profile-saved-indicator::before{content:"";width:6px;height:6px;border-radius:50%;background:#b4e86d;box-shadow:0 0 8px #b4e86d88}
.profile-layout{display:grid;grid-template-columns:minmax(285px,.92fr) minmax(330px,1.08fr);gap:28px;align-items:center;margin-top:14px}
.profile-orbit-panel{display:grid;justify-items:center;align-content:center;min-height:390px}
.profile-orbit{--orbit-radius:117px;position:relative;width:330px;height:330px;display:grid;place-items:center;isolation:isolate}
.profile-orbit-ring{position:absolute;inset:29px;border:1px solid #e5eedc17;border-radius:50%;pointer-events:none}
.profile-orbit-ring.ring-two{inset:65px;border-color:#d3edce12;transform:rotate(22deg) scaleX(.89)}
.profile-orbit::before,.profile-orbit::after{content:"";position:absolute;left:50%;top:50%;width:1px;height:100%;background:linear-gradient(transparent,#ffffff0c 20%,#ffffff0c 80%,transparent);transform:translate(-50%,-50%);pointer-events:none}
.profile-orbit::after{transform:translate(-50%,-50%) rotate(60deg)}
.profile-orbit-core{position:absolute;z-index:2;left:50%;top:50%;transform:translate(-50%,-50%);width:74px;height:74px;display:grid;place-items:center;overflow:hidden;border:1px solid #c7fa7055;border-radius:50%;background:#1d2118;box-shadow:0 0 28px #c7fa7021,0 0 0 7px #c7fa7008;color:var(--accent);font:700 23px Manrope,sans-serif}
.profile-orbit-core img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.profile-orbit-node{position:absolute;z-index:3;left:50%;top:50%;width:68px;height:68px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:1px solid #45454b;border-radius:50%;background:#171719;color:#a5a5ab;cursor:pointer;transform:translate(-50%,-50%) rotate(var(--orbit-angle)) translateY(var(--orbit-offset)) rotate(var(--orbit-counter-angle));transition:background .25s,border-color .25s,color .25s,box-shadow .25s,scale .25s}
.profile-orbit-node svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.profile-orbit-node span{font-size:8px;line-height:1.1}
.profile-orbit-node:hover,.profile-orbit-node.active{border-color:#c7fa70a8;background:#23271d;color:#d6fba0;box-shadow:0 0 24px #c7fa7018;scale:1.08}
.profile-orbit-node.active::after{content:"";position:absolute;inset:-5px;border:1px solid #c7fa7044;border-radius:50%;animation:orbit-ping 1.8s ease-out infinite}
.profile-orbit-caption{display:flex;align-items:center;gap:7px;color:#77777d;font-size:9px}
.orbit-pulse{width:5px;height:5px;border-radius:50%;background:var(--accent);box-shadow:0 0 7px #c7fa70}
.profile-editor{align-self:stretch;min-width:0;padding:24px 0 0 24px;border-left:1px solid #ffffff12;display:flex;flex-direction:column}
.profile-editor-title{display:flex;align-items:center;gap:11px;margin-bottom:18px}
.profile-section-icon{width:36px;height:36px;display:grid;place-items:center;border:1px solid #c7fa702b;border-radius:11px;background:#c7fa700d;color:var(--accent)}
.profile-section-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.profile-editor-title h3{margin:0;font-size:14px;font-weight:600}
.profile-editor-title p{margin:3px 0 0;color:#85858b;font-size:9px}
.profile-fields{display:grid;gap:12px}
.profile-field{display:grid;gap:5px}
.profile-field label,.profile-field-label{color:#bdbdc1;font-size:9px;font-weight:500}
.profile-field input,.profile-field textarea{width:100%;min-height:38px;border:1px solid #303034;border-radius:8px;padding:9px 10px;background:#151517;color:#ededee;font:11px 'IBM Plex Sans Thai',sans-serif;outline:none;transition:border-color .2s}
.profile-field textarea{min-height:74px;resize:vertical;line-height:1.55}
.profile-field input:focus,.profile-field textarea:focus{border-color:#a3cc68}
.profile-field input::placeholder,.profile-field textarea::placeholder{color:#626269}
.profile-field-hint,.profile-interest-hint{color:#6e6e75;font-size:8px}
.profile-photo-row{display:flex;align-items:center;gap:13px;padding:12px;border:1px solid #2d2d32;border-radius:10px;background:#151517}
.profile-photo-preview{width:62px;height:62px;flex:none;overflow:hidden;border:1px solid #44444a;border-radius:50%;background:#222226;display:grid;place-items:center;color:var(--accent);font:700 19px Manrope}
.profile-photo-preview img{width:100%;height:100%;object-fit:cover}
.profile-photo-controls{display:grid;gap:6px}
.profile-photo-controls p{margin:0;color:#87878d;font-size:9px;line-height:1.5}
.profile-photo-actions{display:flex;gap:7px}
.profile-mini-button{height:27px;padding:0 9px;border:1px solid #39393e;border-radius:6px;color:#e5e5e7;font-size:9px}
.profile-mini-button:hover{border-color:#a4cd69;color:#d5f5a3}
.profile-toggle-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid #303034;border-radius:9px;background:#151517}
.profile-toggle-copy{display:grid;gap:3px}
.profile-toggle-copy b{font-size:10px;font-weight:500}
.profile-toggle-copy span{font-size:8px;color:#83838a}
.profile-switch{position:relative;width:35px;height:20px;flex:none;appearance:none;border:1px solid #4a4a50;border-radius:20px;background:#28282c;cursor:pointer;transition:background .2s,border-color .2s}
.profile-switch::after{content:"";position:absolute;top:3px;left:3px;width:12px;height:12px;border-radius:50%;background:#929299;transition:transform .2s,background .2s}
.profile-switch:checked{background:#92c351;border-color:#92c351}
.profile-switch:checked::after{transform:translateX(15px);background:#13150f}
.profile-save{width:100%;margin-top:17px}
.profile-local-note{margin:9px 0 0;text-align:center;color:#64646a;font-size:8px}
.profile-choice-list{display:flex;flex-wrap:wrap;gap:7px}
.profile-choice{position:relative}
.profile-choice input{position:absolute;opacity:0;pointer-events:none}
.profile-choice span{display:block;padding:6px 10px;border:1px solid #38383e;border-radius:20px;color:#a9a9ae;font-size:9px;cursor:pointer}
.profile-choice input:checked+span{border-color:#b8e77c88;background:#c7fa7014;color:#d4f5a6}
@keyframes orbit-ping{0%{transform:scale(.94);opacity:.8}100%{transform:scale(1.24);opacity:0}}
@media(max-width:680px){
  .profile-dialog{width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;overflow-y:auto;overscroll-behavior:contain}
  .profile-card{min-height:100dvh;padding:calc(env(safe-area-inset-top) + 18px) 18px calc(env(safe-area-inset-bottom) + 18px);background:radial-gradient(ellipse at 20% 30%,#171b1b,#101012 55%)}
  .profile-header{padding-right:34px}.profile-header h2{font-size:17px}.profile-header p{font-size:9px}.profile-saved-indicator{font-size:8px}
  .profile-layout{display:flex;flex-direction:column;gap:9px;margin-top:1px;align-items:stretch}
  .profile-orbit-panel{min-height:0}.profile-orbit{--orbit-radius:83px;width:252px;height:244px}
  .profile-orbit-ring{inset:18px}.profile-orbit-ring.ring-two{inset:44px}.profile-orbit-core{width:57px;height:57px;font-size:19px}
  .profile-orbit-node{width:59px;height:59px;gap:3px}.profile-orbit-node svg{width:15px;height:15px}.profile-orbit-node span{font-size:7px}
  .profile-orbit-caption{margin-top:-2px;font-size:8px}.profile-editor{padding:17px 0 0;border-left:0;border-top:1px solid #ffffff12}
  .profile-editor-title{margin-bottom:13px}.profile-fields{gap:10px}.profile-field input{min-height:39px}.profile-field textarea{min-height:67px}
  .profile-save{height:41px;margin-top:13px}.profile-local-note{margin-bottom:4px}
}
@media(max-height:720px) and (max-width:680px){.profile-orbit{--orbit-radius:74px;width:226px;height:220px}.profile-orbit-ring{inset:11px}.profile-orbit-ring.ring-two{inset:37px}.profile-orbit-node{width:54px;height:54px}.profile-editor{padding-top:12px}.profile-editor-title{margin-bottom:9px}.profile-fields{gap:8px}}
@media(prefers-reduced-motion:reduce){.profile-orbit-node.active::after{animation:none}.profile-orbit-node,.profile-switch::after{transition:none}}
