.ht-admin-bar{text-align:right;padding-top:16px}
.ht-btn-edit{background:#096975;color:#fff;border:0;border-radius:20px;padding:8px 18px;font-size:14px;cursor:pointer}
.ht-empty{text-align:center;color:#888;padding:80px 0}
.history-tab{display:flex;flex-wrap:nowrap}
.history-tab li{float:none}
@media(max-width:768px){
.history-tab{flex-wrap:nowrap!important;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;scroll-snap-type:x proximity;gap:6px}
.history-tab::-webkit-scrollbar{display:none}
.history-tab li{width:auto!important;flex:0 0 auto;scroll-snap-align:center}
.history-tab li a{white-space:nowrap;padding-left:18px!important;padding-right:18px!important}
}

/* 편집 패널 */
.hte-overlay{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:99999;overflow:auto;padding:24px 12px}
.hte{background:#fff;max-width:980px;margin:0 auto;border-radius:12px;padding:22px;font-size:14px;color:#333;line-height:1.5}
.hte *{box-sizing:border-box}
.hte h2{margin:0 0 14px;font-size:20px}
.hte label{display:block;font-weight:600;margin:10px 0 4px;font-size:13px}
.hte input[type=text],.hte textarea{width:100%;border:1px solid #cbd5d5;border-radius:6px;padding:7px 9px;font:inherit}
.hte textarea{min-height:36px;resize:vertical}
.hte button{cursor:pointer;border:1px solid #bcc;background:#f5f8f8;border-radius:6px;padding:5px 11px;font-size:13px}
.hte .primary{background:#096975;color:#fff;border-color:#096975}.hte .danger{color:#c0392b}
.hte-tabbar{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0;align-items:center}
.hte-tabbar .t{padding:7px 14px;border-radius:20px;border:1px solid #096975;color:#096975;background:#fff}.hte-tabbar .t.on{background:#096975;color:#fff}
.hte-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:6px 0}.hte-row>*{flex:0 0 auto}.hte-row .grow{flex:1 1 180px}
.hte-year{border:1px solid #cfe0e0;border-radius:10px;padding:14px;margin:14px 0;background:#f8fbfb}
.hte-year-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:6px}
.hte-ent{display:flex;gap:6px;align-items:flex-start;margin:6px 0}
.hte-ent .m{flex:0 0 90px}.hte-ent .x{flex:1 1 auto}.hte-ent .p{flex:0 0 auto;font-size:12px;white-space:nowrap;padding-top:8px}
.hte-imgs{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0}
.hte-img{position:relative;width:96px;height:72px;border-radius:6px;overflow:hidden;border:1px solid #ccc}.hte-img img{width:100%;height:100%;object-fit:cover}
.hte-img .ctl{position:absolute;inset:auto 0 0 0;display:flex;justify-content:space-between;background:rgba(0,0,0,.55)}
.hte-img .ctl button{border:0;background:none;color:#fff;padding:1px 6px}
.hte-foot{position:sticky;bottom:-22px;background:#fff;padding:12px 0 0;margin-top:14px;border-top:1px solid #e3e3e3;display:flex;gap:8px;justify-content:flex-end}
.hte-msg{margin-right:auto;align-self:center;color:#096975}
