:root{
    --pm-bg:#f3efe6;--pm-surface:#fffdf8;--pm-text:#111827;--pm-muted:#68707d;--pm-line:rgba(17,24,39,.14);
    --pm-yellow:#f5d328;--pm-blue:#1547a8;--pm-red:#cf2036;--pm-green:#16805a;--pm-shadow:0 22px 70px rgba(20,20,20,.12);
}
*{box-sizing:border-box}
html{min-height:100%;scroll-behavior:smooth}
body{margin:0;min-height:100vh;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--pm-text)}
a{color:inherit}
button,input,textarea{font:inherit}
img{max-width:100%}
.t247-shell{width:min(1180px,calc(100% - 30px));margin:0 auto;padding:18px 0 64px}
.t247-topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px}
.t247-brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-weight:950;letter-spacing:-.04em}
.t247-brand-dot{width:39px;height:39px;border-radius:15px;background:linear-gradient(145deg,var(--pm-blue) 0 36%,var(--pm-red) 36% 72%,var(--pm-yellow) 72%);box-shadow:0 9px 24px rgba(21,71,168,.22)}
.t247-brand small{display:block;color:var(--pm-muted);font-size:10px;letter-spacing:.12em;text-transform:uppercase}
.t247-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.t247-btn{min-height:40px;padding:9px 14px;border:1px solid var(--pm-line);border-radius:999px;background:rgba(255,255,255,.7);font-weight:900;text-decoration:none;cursor:pointer;color:var(--pm-text)}
.t247-btn.primary{background:var(--pm-yellow);border-color:transparent;color:#17130a}
.t247-btn.dark{background:#111827;color:#fff;border-color:transparent}
.t247-btn.red{background:var(--pm-red);color:#fff;border-color:transparent}
.t247-identity{display:flex;align-items:center;gap:16px;min-width:0}
.t247-avatar-shell{width:94px;height:94px;flex:0 0 auto;border-radius:28px;overflow:hidden;border:4px solid rgba(255,255,255,.95);box-shadow:0 12px 34px rgba(0,0,0,.18);background:#fff}
.t247-avatar-shell img{width:100%;height:100%;object-fit:cover;display:block}
.t247-avatar-fallback{width:100%;height:100%;display:grid;place-items:center;font-size:34px;font-weight:1000;background:linear-gradient(135deg,var(--pm-yellow),#fff2a1)}
.t247-name{min-width:0}
.t247-name h1{margin:0;font-size:clamp(30px,5vw,52px);line-height:.95;letter-spacing:-.055em}
.t247-name p{margin:7px 0 0;color:var(--pm-muted);font-weight:750}
.t247-online{display:inline-flex;align-items:center;gap:6px;margin-left:7px;color:var(--pm-green);font-size:12px;font-weight:900}
.t247-online:before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor}
.t247-profile-heart{min-width:64px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:8px 12px;border:1px solid rgba(207,32,54,.22);border-radius:999px;background:rgba(255,255,255,.86);color:#b71f37;font-weight:950;cursor:pointer;box-shadow:0 8px 22px rgba(207,32,54,.10);transition:transform .16s ease,background .16s ease,color .16s ease,border-color .16s ease}
.t247-profile-heart:hover:not(:disabled){transform:translateY(-2px)}
.t247-profile-heart.is-hearted{background:#cf2036;color:#fff;border-color:#cf2036}
.t247-profile-heart:disabled{cursor:default;opacity:.9}
.t247-profile-heart-icon{font-size:21px;line-height:1}
.t247-profile-heart-count{min-width:1ch;font-variant-numeric:tabular-nums}
.t247-profile-heart.is-busy{pointer-events:none;opacity:.65}
.t247-module-panel{margin-top:22px;min-height:180px;padding:22px;border:1px solid var(--pm-line);border-radius:28px;background:rgba(255,255,255,.9);box-shadow:var(--pm-shadow)}
.t247-module-panel[hidden]{display:none}
.t247-module-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.t247-module-head h2{margin:0;font-size:24px;letter-spacing:-.03em}
.t247-module-close{border:0;background:transparent;font-size:24px;cursor:pointer}
.t247-module-loading{display:grid;place-items:center;min-height:130px;color:var(--pm-muted);font-weight:850}
.t247-module-loading:after{content:"";width:22px;height:22px;margin-left:10px;border:3px solid rgba(0,0,0,.12);border-top-color:currentColor;border-radius:50%;animation:pmspin .8s linear infinite}
@keyframes pmspin{to{transform:rotate(360deg)}}
.pm-module{display:grid;gap:16px}
.pm-module h2,.pm-module h3{margin:0;letter-spacing:-.03em}
.pm-kicker{color:var(--pm-muted);font-size:11px;font-weight:950;letter-spacing:.13em;text-transform:uppercase}
.pm-card{padding:17px;border:1px solid var(--pm-line);border-radius:20px;background:rgba(255,255,255,.62)}
.pm-copy{margin:0;line-height:1.7;white-space:pre-wrap}
.pm-muted{color:var(--pm-muted)}
.pm-empty{padding:26px;border:1px dashed var(--pm-line);border-radius:20px;text-align:center;color:var(--pm-muted);font-weight:800}
.pm-chips{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:9px;
}
.pm-chip{
    --chip-dot:#3b82f6;
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:38px;
    padding:8px 14px 9px 12px;
    border:1px solid #cfe3fb;
    border-radius:999px;
    background:linear-gradient(180deg,#f8fbff 0%,#edf6ff 100%);
    color:#1d3557;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.95),
        0 4px 12px rgba(25,45,70,.07);
    font-size:13px;
    font-weight:850;
    line-height:1.1;
    letter-spacing:-.01em;
    text-decoration:none;
    white-space:nowrap;
    transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,background .16s ease;
}
.pm-chip::before{
    content:"";
    width:7px;
    height:7px;
    flex:0 0 7px;
    border-radius:50%;
    background:var(--chip-dot);
    box-shadow:0 0 0 3px color-mix(in srgb,var(--chip-dot) 14%,transparent);
}
.pm-chip:nth-child(6n+1){
    --chip-dot:#3b82f6;
    border-color:#cfe3fb;
    background:linear-gradient(180deg,#f8fbff 0%,#edf6ff 100%);
    color:#1d4f91;
}
.pm-chip:nth-child(6n+2){
    --chip-dot:#e85d75;
    border-color:#f4ced6;
    background:linear-gradient(180deg,#fff9fa 0%,#fff0f3 100%);
    color:#9f3348;
}
.pm-chip:nth-child(6n+3){
    --chip-dot:#e3a21a;
    border-color:#f0dfb5;
    background:linear-gradient(180deg,#fffdf7 0%,#fff7e4 100%);
    color:#885d09;
}
.pm-chip:nth-child(6n+4){
    --chip-dot:#2da878;
    border-color:#c8eadc;
    background:linear-gradient(180deg,#f8fffc 0%,#edf9f4 100%);
    color:#176d50;
}
.pm-chip:nth-child(6n+5){
    --chip-dot:#8b5cf6;
    border-color:#ddd1f7;
    background:linear-gradient(180deg,#fcfaff 0%,#f5f0ff 100%);
    color:#6841b7;
}
.pm-chip:nth-child(6n){
    --chip-dot:#64748b;
    border-color:#d9dee6;
    background:linear-gradient(180deg,#ffffff 0%,#f3f5f8 100%);
    color:#445067;
}
.pm-chip:hover{
    transform:translateY(-2px);
    border-color:color-mix(in srgb,var(--chip-dot) 42%,#d5dbe4);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.95),
        0 7px 18px rgba(25,45,70,.11);
}
.pm-chip:focus-visible{
    outline:3px solid color-mix(in srgb,var(--chip-dot) 22%,transparent);
    outline-offset:3px;
}
.pm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.pm-grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.pm-photo{aspect-ratio:1/1;overflow:hidden;border-radius:18px;background:#e5e7eb;border:1px solid var(--pm-line)}
.pm-photo img{width:100%;height:100%;object-fit:cover;display:block}
.pm-social{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border:1px solid var(--pm-line);border-radius:18px;background:#fff;text-decoration:none;font-weight:900}
.pm-status{padding:20px;border-radius:22px;background:#111827;color:#fff}
.pm-status .pm-muted{color:rgba(255,255,255,.65)}
.pm-status-text{margin:8px 0 0;font-size:clamp(20px,3vw,30px);line-height:1.35;font-family:Georgia,"Times New Roman",serif}
.pm-person{display:flex;align-items:center;gap:11px;padding:12px;border:1px solid var(--pm-line);border-radius:18px;background:#fff;text-decoration:none}
.pm-person-avatar{width:44px;height:44px;border-radius:14px;overflow:hidden;display:grid;place-items:center;background:linear-gradient(135deg,var(--pm-yellow),#fff2a8);font-weight:950}
.pm-person-avatar img{width:100%;height:100%;object-fit:cover}
.pm-person strong{display:block}
.pm-person span{display:block;margin-top:2px;color:var(--pm-muted);font-size:12px}
.pm-form textarea{width:100%;min-height:105px;padding:13px;border:1px solid var(--pm-line);border-radius:17px;background:#fff;color:var(--pm-text);resize:vertical}
.pm-form-row{display:flex;justify-content:flex-end;gap:10px;margin-top:10px}
.pm-message{display:grid;grid-template-columns:44px 1fr;gap:10px}
.pm-message-avatar{width:44px;height:44px;border-radius:14px;overflow:hidden;display:grid;place-items:center;background:#f0e8d8;font-weight:950}
.pm-message-avatar img{width:100%;height:100%;object-fit:cover}
.pm-message-body{padding:13px 14px;border:1px solid var(--pm-line);border-radius:18px;background:#fff}
.pm-message-head{display:flex;justify-content:space-between;gap:12px;font-size:13px}
.pm-message-body p{margin:7px 0 0;line-height:1.55}
.pm-replies{display:grid;gap:8px;margin-top:9px;margin-left:14px}
.pm-reply{padding:10px 12px;border-left:3px solid var(--pm-yellow);background:rgba(245,211,40,.08);border-radius:0 14px 14px 0}
.pm-diary{display:grid;gap:6px}
.pm-diary time{color:var(--pm-muted);font-size:12px;font-weight:800}
.pm-diary p{margin:5px 0 0;line-height:1.65;white-space:pre-wrap}
.profile-login-backdrop{position:fixed;inset:0;background:rgba(4,6,10,.72);backdrop-filter:blur(8px);z-index:999}
.profile-login-gate{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:20px}
.profile-login-card{width:min(100%,470px);padding:24px;border-radius:28px;background:#fff;color:#111827;box-shadow:0 30px 100px rgba(0,0,0,.35)}
.profile-login-card h2{margin:0 0 8px}
.profile-login-card p{color:#667085;line-height:1.55}
.profile-login-card label{display:block;margin-top:12px;font-weight:900}
.profile-login-card input[type=text]{width:100%;margin-top:6px;padding:12px 13px;border:1px solid rgba(17,24,39,.16);border-radius:14px}
.profile-login-card .remember{display:flex;align-items:center;gap:8px;margin:13px 0}
.profile-login-error{padding:10px 12px;border-radius:13px;background:#fff0f2;color:#a01327;font-weight:800}
@media(max-width:760px){
 .t247-shell{width:min(100% - 20px,1180px);padding-top:10px}
 .t247-topbar{align-items:flex-start;flex-direction:column}
 .t247-identity{align-items:flex-start}
 .t247-avatar-shell{width:76px;height:76px;border-radius:22px}
 .pm-grid,.pm-grid-3{grid-template-columns:1fr}
 .pm-chips{gap:8px}
 .pm-chip{min-height:36px;padding:8px 12px 8px 11px;font-size:12px}
 .t247-module-panel{padding:16px;border-radius:22px}
}
