/* Events (ttc-events.js) */
.tev-main{gap:16px!important}
.tev-head{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
.tev-head>div{flex:1;min-width:0}
#ttc-feed-app .tev-head .ta-h1{margin:0!important}
#ttc-feed-app .tev-head p{margin:4px 0 0!important}
.tev-tabs{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none}
.tev-tabs::-webkit-scrollbar{display:none}
.tev-tab{flex-shrink:0;height:36px;padding:0 16px;border-radius:18px;background:#15242A;color:#E8F1F3!important;font-weight:600;font-size:14px;display:inline-flex;align-items:center;gap:6px}
.tev-tab span{color:#8FA6AD;font-weight:500}
.tev-tab[aria-current="page"]{background:#3FD2E8;color:#062026!important}
.tev-tab[aria-current="page"] span{color:#062026}
/* Kind colors */
.k-meetup{--k1:#0F766E;--k2:#2DD4BF}
.k-meeting{--k1:#1E3A8A;--k2:#60A5FA}
.k-training{--k1:#5B21B6;--k2:#A78BFA}
.k-party{--k1:#9D174D;--k2:#F472B6}
.k-ride{--k1:#92400E;--k2:#FBBF24}
.k-other{--k1:#155E75;--k2:#3FD2E8}
/* Cards */
.tev-grid-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}
.tev-card{position:relative;padding:0!important;overflow:hidden;display:flex;flex-direction:column}
.tev-card:hover{border-color:#2A3F46}
.tev-card.canceled{opacity:.6}
.tev-band{height:96px;background:linear-gradient(135deg,var(--k1),var(--k2));position:relative;display:flex;align-items:flex-end;padding:12px}
.tev-emoji{position:absolute;right:14px;top:10px;font-size:44px;filter:drop-shadow(0 3px 6px #0006)}
.tev-date{width:52px;border-radius:10px;background:#0E191D;display:flex;flex-direction:column;align-items:center;padding:4px 0 6px;box-shadow:0 4px 12px #0005;flex-shrink:0}
.tev-date span{font-size:11px;font-weight:800;color:#FF8A8A;letter-spacing:.06em}
.tev-date strong{font:700 22px/1 'Space Grotesk',Inter,sans-serif;color:#E8F1F3}
.tev-body{padding:12px 14px 8px;display:flex;flex-direction:column;gap:4px;flex:1}
.tev-when{font-size:13px;font-weight:700;color:#FF8A8A}
#ttc-feed-app .tev-card h3{margin:0;font:700 17px/1.3 'Space Grotesk',Inter,sans-serif}
#ttc-feed-app .tev-stretch{color:#E8F1F3!important}
.tev-stretch::after{content:'';position:absolute;inset:0;z-index:0}
#ttc-feed-app .tev-place,#ttc-feed-app .tev-host{margin:0!important;font-size:13px;color:#8FA6AD;display:flex;align-items:center;gap:6px;min-width:0}
.tev-place .tf-ic{width:14px;height:14px;flex-shrink:0}
.tev-foot{display:flex;align-items:center;gap:8px;margin-top:6px;min-height:28px}
.tev-faces{display:flex}
.tev-faces .tf-av{border:2px solid #111D22;margin-left:-8px;box-sizing:content-box}
.tev-faces .tf-av:first-child{margin-left:0}
.tev-count{font-size:13px;color:#C9D8DC}
.tev-card-rsvp{padding:0 14px 14px;position:relative;z-index:1}
/* Going / Maybe / Can't go */
.tev-rsvp{display:flex;gap:6px;flex-wrap:wrap}
#ttc-feed-app .tev-ans{height:40px;padding:0 14px;border-radius:10px;border:1px solid #23363D;background:#15242A;color:#E8F1F3;font:600 14px Inter,sans-serif;display:inline-flex;align-items:center;gap:6px;cursor:pointer;flex:1;justify-content:center;margin:0}
.tev-ans .tf-ic{width:16px;height:16px}
#ttc-feed-app .tev-ans:hover{background:#1A2D34}
#ttc-feed-app .tev-ans.going[aria-pressed="true"]{background:#3FD2E8;border-color:#3FD2E8;color:#062026}
#ttc-feed-app .tev-ans.maybe[aria-pressed="true"]{background:#F2B26B;border-color:#F2B26B;color:#2A1A00}
#ttc-feed-app .tev-ans.no[aria-pressed="true"]{background:#3A2629;border-color:#5A2A2F;color:#FFB3B3}
#ttc-feed-app .tev-rsvp.sm .tev-ans{height:36px;font-size:13px;padding:0 8px;gap:4px}
#ttc-feed-app .tev-ans{white-space:nowrap;min-width:0}
.tev-rsvp.sm .tev-ans .tf-ic{width:14px;height:14px}
.tev-page{display:flex;flex-direction:column;gap:16px}
.tev-canceled-pill{display:inline-flex;font-size:12px;font-weight:700;color:#FF8A8A;background:#FF8A8A1f;border-radius:8px;padding:6px 10px}
.tev-empty{display:flex;flex-direction:column;align-items:center;gap:10px;padding:30px!important;grid-column:1/-1}
.tev-empty-emoji{font-size:40px}
/* Event page */
.tev-hero{padding:0!important;overflow:hidden}
.tev-cover{height:200px;background:linear-gradient(135deg,var(--k1),var(--k2));position:relative;display:flex;align-items:center;justify-content:center}
.tev-cover::before{content:'';position:absolute;inset:0;background:repeating-conic-gradient(from 0deg at 50% 60%,#ffffff12 0deg 8deg,transparent 8deg 20deg)}
.tev-cover-emoji{font-size:96px;position:relative;filter:drop-shadow(0 8px 16px #0007)}
.tev-cover-cancel{position:absolute;left:16px;top:16px;background:#000a;color:#FF8A8A;font-weight:800;border-radius:8px;padding:6px 12px;letter-spacing:.04em}
.tev-hero.canceled .tev-cover{filter:grayscale(.7)}
.tev-hero-body{padding:16px 20px 20px;display:flex;flex-direction:column;gap:16px}
.tev-hero-top{display:flex;gap:14px;align-items:flex-start;margin-top:-50px;position:relative}
.tev-hero-top .tev-date{width:64px}
.tev-hero-top .tev-date strong{font-size:28px}
.tev-hero-text{min-width:0;padding-top:52px}
#ttc-feed-app .tev-hero h1{margin:2px 0 0;font:700 28px/1.2 'Space Grotesk',Inter,sans-serif;overflow-wrap:anywhere}
.tev-hero-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.tev-hero-actions .tev-rsvp{flex:1 1 320px}
.tev-menu{position:relative}
.tev-menu summary{list-style:none;cursor:pointer}
.tev-menu summary::-webkit-details-marker{display:none}
.tev-menu-list{position:absolute;right:0;top:48px;z-index:5;background:#111D22;border:1px solid #23363D;border-radius:12px;padding:6px;min-width:180px;box-shadow:0 12px 32px #0008;display:flex;flex-direction:column}
#ttc-feed-app .tev-menu-list button{background:none;border:0;color:#E8F1F3;text-align:left;padding:10px 12px;border-radius:8px;font:500 14px Inter,sans-serif;cursor:pointer;margin:0}
#ttc-feed-app .tev-menu-list button:hover{background:#15242A}
#ttc-feed-app .tev-menu-list button.danger{color:#FF8A8A}
.tev-cols{display:flex;gap:16px;flex-wrap:wrap;align-items:flex-start}
.tev-main-col{flex:2 1 420px;min-width:0;display:flex;flex-direction:column;gap:16px}
.tev-side-col{flex:1 1 280px;min-width:0;display:flex;flex-direction:column;gap:16px}
.tev-details,.tev-people{padding:16px 18px!important;display:flex;flex-direction:column;gap:12px}
#ttc-feed-app .tev-details h2,#ttc-feed-app .tev-people h2{margin:0;font:700 17px 'Space Grotesk',Inter,sans-serif}
.tev-line{display:flex;align-items:center;gap:12px;font-size:15px;color:#E8F1F3!important;min-width:0}
.tev-line .tf-ic{width:22px;height:22px;color:#8FA6AD;flex-shrink:0;margin:0 5px}
.tev-line span{min-width:0;overflow-wrap:anywhere}
#ttc-feed-app .tev-text{margin:4px 0 0;white-space:pre-wrap;font-size:15px;color:#C9D8DC;line-height:1.5}
.tev-people-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(80px,1fr));gap:10px}
.tev-person-link{display:flex;flex-direction:column;align-items:center;gap:6px;color:#E8F1F3!important;font-size:12px;text-align:center;min-width:0}
.tev-person-link span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Editor */
#ttc-feed-app dialog.tev-editor{width:min(600px,calc(100vw - 32px))}
.tev-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#ttc-feed-app .tev-dlg input:not([type=checkbox]){width:100%;box-sizing:border-box;height:44px;border-radius:12px;border:1px solid #23363D;background:#0E191D;color:#E8F1F3;font:15px Inter,sans-serif;padding:0 12px;margin:0;color-scheme:dark}
.tev-invited{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:14px;color:#C9D8DC}
.tev-check{display:flex;align-items:center;gap:10px;font-size:14px;color:#C9D8DC}
.tev-check input{width:18px;height:18px;accent-color:#3FD2E8}
.tev-pick{max-height:50vh;overflow:auto;display:flex;flex-direction:column;gap:2px}
#ttc-feed-app .tev-person{display:flex;align-items:center;gap:10px;padding:8px;border-radius:10px;border:0;background:none;color:#E8F1F3;font:500 14px Inter,sans-serif;text-align:left;cursor:pointer;margin:0}
#ttc-feed-app .tev-person:hover{background:#15242A}
#ttc-feed-app .tev-person[aria-pressed="true"]{background:#3FD2E81a}
.tev-person span{flex:1}
.tev-person .tf-ic{width:18px;height:18px;color:#3FD2E8}
@media(max-width:759px){
  .tev-main{padding:14px 12px 0!important}
  .tev-grid-list{grid-template-columns:1fr}
  .tev-cover{height:150px}
  .tev-cover-emoji{font-size:72px}
  .tev-hero-body{padding:14px}
  #ttc-feed-app .tev-hero h1{font-size:23px}
  .tev-hero-actions .tev-rsvp{flex-basis:100%}
  .tev-hero-actions>.ta-btn{flex:1;justify-content:center}
  .tev-grid{grid-template-columns:1fr}
  .tev-head .ta-btn{display:none}
  #ttc-feed-app .tev-ans{padding:0 8px;gap:4px}
}
