/* 윤슬 V14.9.7 targeted UI refinements */
#home .home-media-v1497{display:block;margin-top:7px}
#home .home-media-v1497>.home-photo-open{display:grid;border:0;border-top:1px solid var(--line);border-radius:0;padding:9px 0 7px}
#home .home-media-v1497 .home-photo-open .photo-wrap img{height:138px!important;background:#f3f0ea}
#home .home-media-v1497>.home-cert-strip{display:grid;grid-template-columns:minmax(0,1fr) auto;border:0;border-top:1px solid var(--line);border-radius:0!important;padding:9px 0!important;align-items:center}
#home .home-cert-strip h2{font-size:16px!important;margin:0!important;white-space:normal}
#home .home-cert-strip .cert-compact-body{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;gap:8px}
#home .home-cert-strip #myCertText{font-size:14px;white-space:nowrap}
#home .home-cert-strip .cert-actions{margin:0;flex-wrap:wrap;justify-content:flex-end}

#chatModal .chat-push-compact{font-family:-apple-system,BlinkMacSystemFont,"Apple Color Emoji",sans-serif!important;font-size:20px!important;line-height:1!important;color:#b58b22!important;text-indent:0!important}
#chatModal .chat-push-compact svg{display:none!important}

#library .book-row-v1497 .book-main{padding-right:42px}
#library .book-row-v1497 .book-title{padding-right:2px;line-height:1.35}
#library .book-row-v1497 .book-edit-link{right:8px;top:7px;min-width:40px;min-height:34px;font-size:12px;font-weight:750}
#library .book-row-v1497 .book-person-row{grid-template-columns:48px minmax(0,1fr);gap:4px;margin-top:4px}
#library .book-row-v1497 .book-state-row{margin-top:2px}

#records .record-intro{padding:10px 12px;margin-bottom:8px}
#records .record-intro-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
#records .record-intro-head h2{margin:0}
#records .record-intro .record-manage{margin:0}
#records .record-intro .record-manage .text-link{min-height:34px!important;padding:5px 7px!important;border:0;background:transparent}
#records .record-intro>.muted{margin-top:4px;font-size:13px;white-space:normal}
#records .record-intro .region-tabs{margin:7px 0 0}
#records .record-manage-compact{display:flex;justify-content:flex-end;margin:2px 0 5px;gap:7px}
#records .record-manage-compact .text-link{min-height:30px!important;padding:3px 5px!important;border:0!important;background:transparent!important;font-size:12px!important}
#records .record-manage-compact .text-link:last-child{color:var(--danger)}
#records .record-facts{grid-template-columns:minmax(86px,1.25fr) minmax(70px,.9fr) minmax(104px,1.1fr)!important}
#records .record-fact span strong,#records .record-fact span small{display:block}
#records .record-fact span small{margin-top:2px;font-size:12px;font-weight:600}
#records .status-attend,#records .status-note-done{color:#2f694a;font-weight:800}
#records .status-absent,#records .status-note-missing{color:#a14545;font-weight:800}
#records .status-neutral{color:#6d706c;font-weight:700}

#me .profile-password-action{width:auto!important;min-height:36px!important;padding:5px 7px!important;border:0!important;background:transparent!important;color:var(--accent)!important;font-size:13px!important}
#me .personal-record-actions{grid-template-columns:1fr 1fr}
#myCertHistory .my-cert-history-row{display:grid;grid-template-columns:minmax(0,1fr) 70px;gap:10px;align-items:center;padding:11px}
.my-cert-month{font-size:14px;font-weight:850;color:var(--accent);margin-bottom:4px}
.my-cert-photo{width:70px;height:70px;padding:0;border:0;border-radius:10px;overflow:hidden;background:#eee}
.my-cert-photo img{width:100%;height:100%;object-fit:cover}

@media(max-width:375px){
 #home .home-cert-strip{grid-template-columns:1fr;gap:5px}
 #home .home-cert-strip .cert-compact-body{justify-content:space-between}
 #records .record-facts{grid-template-columns:minmax(80px,1.25fr) minmax(65px,.88fr) minmax(98px,1.05fr)!important}
 #records .record-intro>.muted{font-size:12.5px}
}
