.event-community-app{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#172442}.event-form-page{width:min(900px,calc(100% - 32px));margin:22px auto 48px}.event-form-header{margin-bottom:18px;padding:24px 28px;border:1px solid #e2e8f2;border-radius:12px;background:linear-gradient(120deg,#fff,#f4f8ff);box-shadow:0 3px 14px rgba(28,52,88,.06)}.event-form-header a{color:#0966ee;font-size:13px;font-weight:650;text-decoration:none}.event-form-header h1{margin:14px 0 5px;font-size:28px;line-height:1.2}.event-form-header p{margin:0;color:#64718c;font-size:14px}.event-create-form{display:grid;gap:16px}.event-form-card{padding:24px 28px;border:1px solid #e2e8f2;border-radius:12px;background:#fff;box-shadow:0 3px 14px rgba(28,52,88,.05)}.event-form-card-head{display:flex;align-items:flex-start;gap:12px;margin-bottom:22px}.event-form-card-head>span{width:31px;height:31px;display:grid;place-items:center;flex:0 0 31px;border-radius:8px;background:#e9f2ff;color:#0966ee;font-size:14px;font-weight:800}.event-form-card-head h2{margin:0;color:#111a36;font-size:18px}.event-form-card-head p{margin:4px 0 0;color:#78859a;font-size:12px}.event-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.event-field{display:flex;min-width:0;flex-direction:column;gap:7px;color:#263652;font-size:12px;font-weight:700}.event-field-wide{grid-column:1/-1}.event-field input,.event-field select,.event-field textarea{width:100%;min-height:43px;padding:10px 12px;border:1px solid #d7dfeb;border-radius:7px;outline:0;background:#fff;color:#172442;font:400 13px/1.4 Inter,"Segoe UI",Arial,sans-serif;box-sizing:border-box}.event-field input:focus,.event-field select:focus,.event-field textarea:focus{border-color:#3180ef;box-shadow:0 0 0 3px rgba(9,102,238,.1)}.event-field textarea{min-height:86px;resize:vertical}.event-field textarea.event-description{min-height:150px}.event-field small{color:#8591a5;font-size:10px;font-weight:400}.event-location-switch{display:flex;align-items:center;gap:10px;margin-bottom:18px}.event-location-switch label{position:relative!important;display:inline-flex!important;margin:0!important;padding:0!important;cursor:pointer}.event-location-switch input[type=radio]{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important;opacity:0!important;pointer-events:none!important}.event-location-switch span{display:inline-flex;min-height:38px;align-items:center;gap:9px;padding:0 15px;border:1px solid #d7dfeb;border-radius:7px;background:#fff;color:#526079;font-size:12px;font-weight:700;box-sizing:border-box}.event-location-switch span:before{content:"";width:15px;height:15px;flex:0 0 15px;border:2px solid #b8c4d5;border-radius:50%;background:#fff;box-sizing:border-box}.event-location-switch input:checked+span{border-color:#0966ee;background:#eaf3ff;color:#0966ee}.event-location-switch input:checked+span:before{border-color:#0966ee;background:#0966ee;box-shadow:inset 0 0 0 3px #fff}.event-location-switch input:focus-visible+span{outline:3px solid rgba(9,102,238,.18);outline-offset:2px}.event-form-registration{margin-top:17px}.event-form-actions{display:flex;align-items:center;justify-content:flex-end;gap:13px}.event-form-actions a,.event-form-actions button{display:inline-flex;min-height:43px;align-items:center;justify-content:center;padding:0 20px;border-radius:7px;font-size:13px;font-weight:750;text-decoration:none}.event-form-actions a{border:1px solid #d7dfeb;background:#fff;color:#526079}.event-form-actions button{border:0;background:#0966ee;color:#fff;cursor:pointer}.event-form-alert{margin-bottom:16px;padding:15px 18px;border:1px solid #f3b8b8;border-radius:9px;background:#fff3f3;color:#8b2525;font-size:13px}.event-form-alert ul{margin:8px 0 0;padding-left:20px}.event-success-alert{margin:0 0 12px;padding:12px 15px;border:1px solid #a9dfbf;border-radius:8px;background:#effbf3;color:#176c39;font-size:12px;font-weight:700}.event-create-cta{display:inline-flex;align-items:center;gap:7px;margin-left:auto;padding:9px 15px;border-radius:7px;background:#0966ee;color:#fff!important;font-size:12px;font-weight:750;text-decoration:none;white-space:nowrap}.event-create-cta:hover{background:#0759d2}.event-attendance-action{display:flex;flex-wrap:wrap;align-items:center;gap:9px}.event-attend-button{min-height:38px;padding:0 15px;border:0;border-radius:7px;background:#0966ee;color:#fff;font-size:12px;font-weight:750;cursor:pointer}.event-attend-button.is-attending{border:1px solid #9dc0f5;background:#edf5ff;color:#0755c8}.event-attend-button:disabled{cursor:wait;opacity:.65}.event-attendance-message{min-height:17px;color:#526079;font-size:11px}.event-attendee-list{display:grid;gap:10px}.event-attendee{display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:10px;padding:9px;border:1px solid #e4e9f1;border-radius:8px;background:#fff}.event-attendee-avatar{width:38px;height:38px;display:grid;place-items:center;overflow:hidden;border-radius:50%;background:#e9f2ff;color:#0966ee;font-size:12px;font-weight:800}.event-attendee-avatar img{width:100%;height:100%;object-fit:cover}.event-attendee-copy{min-width:0}.event-attendee-copy strong,.event-attendee-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.event-attendee-copy strong{color:#172442;font-size:12px}.event-attendee-copy small{margin-top:3px;color:#78859a;font-size:10px}.event-host-label{display:inline-flex;margin-top:8px;padding:4px 8px;border-radius:999px;background:#eaf3ff;color:#0966ee;font-size:10px;font-weight:700}
.event-location-switch>button{display:inline-flex!important;min-height:38px!important;align-items:center!important;gap:9px!important;margin:0!important;padding:0 15px!important;border:1px solid #d7dfeb!important;border-radius:7px!important;background:#fff!important;color:#526079!important;font-size:12px!important;font-weight:700!important;line-height:1!important;box-shadow:none!important;cursor:pointer!important}.event-location-switch>button:before{content:"";width:15px;height:15px;flex:0 0 15px;border:2px solid #b8c4d5;border-radius:50%;background:#fff;box-sizing:border-box}.event-location-switch>button.is-selected{border-color:#0966ee!important;background:#eaf3ff!important;color:#0966ee!important}.event-location-switch>button.is-selected:before{border-color:#0966ee;background:#0966ee;box-shadow:inset 0 0 0 3px #fff}.event-location-switch>button:focus-visible{outline:3px solid rgba(9,102,238,.18)!important;outline-offset:2px!important}
.event-banner-picker{position:relative;min-height:43px;display:flex!important;align-items:center!important;gap:10px!important;margin:0!important;padding:5px!important;border:1px solid #d7dfeb!important;border-radius:7px!important;background:#fff!important;box-sizing:border-box;cursor:pointer}.event-banner-picker:focus-within{border-color:#3180ef!important;box-shadow:0 0 0 3px rgba(9,102,238,.1)!important}.event-banner-picker>input[type=file]{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important;opacity:0!important}.event-banner-button{display:inline-flex!important;min-height:31px!important;align-items:center!important;padding:0 12px!important;border-radius:5px!important;background:#0966ee!important;color:#fff!important;font-size:12px!important;font-weight:700!important}.event-banner-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#65738a;font-size:12px;font-weight:400}.event-banner-preview{position:relative;width:min(100%,260px);height:138px;margin-top:3px;overflow:hidden;border:1px solid #d7dfeb;border-radius:8px;background:#f4f7fb}.event-banner-preview[hidden]{display:none!important}.event-banner-preview img{width:100%;height:100%;display:block;object-fit:cover}.event-banner-preview button{position:absolute!important;top:8px!important;right:8px!important;width:auto!important;min-height:28px!important;margin:0!important;padding:0 10px!important;border:0!important;border-radius:5px!important;background:rgba(18,29,48,.82)!important;color:#fff!important;font-size:11px!important;font-weight:700!important;cursor:pointer}.event-banner-error{color:#b42318!important;font-size:11px!important}.event-banner-error[hidden]{display:none!important}
@media(max-width:760px){.event-form-page{width:calc(100% - 16px);margin:8px auto 28px}.event-form-header,.event-form-card{padding:17px}.event-form-header h1{font-size:23px}.event-form-grid{grid-template-columns:1fr}.event-field-wide{grid-column:auto}.event-form-actions{position:sticky;z-index:5;bottom:0;margin:0 -8px;padding:10px 8px;background:rgba(247,249,252,.95);backdrop-filter:blur(8px)}.event-form-actions a,.event-form-actions button{flex:1}.event-create-cta{padding:8px 11px;font-size:11px}.event-location-switch label,.event-location-switch>button{flex:1}.event-location-switch span{justify-content:center;width:100%;box-sizing:border-box}.event-location-switch>button{justify-content:center!important}}
.event-attendee{color:inherit;text-decoration:none}.event-attendee:hover,.event-attendee:focus-visible{border-color:#9dc0f5;background:#f4f8ff;outline:0}

/* Compact registration action for event listing cards (grid and list views). */
body.member-layout .s3-event-app .s3-event-card .s3-event-register {
    width: auto !important;
    min-width: 0 !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 10px !important;
    flex-shrink: 0;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    white-space: nowrap;
}

/* Keep event categories beside the location and use Workspace icon colors. */
body.member-layout .s3-event-app .s3-event-location-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}
body.member-layout .s3-event-app .s3-event-location-row .s3-event-detail {
    flex: 1 1 min-content;
    min-width: min-content;
    margin-bottom: 0;
    overflow-wrap: normal;
    word-break: normal;
}
body.member-layout .s3-event-app .s3-event-location-row .s3-event-type {
    position: static;
    flex: 0 0 auto;
    max-width: none;
    background: #176c99;
    color: #fff;
}
body.member-layout .s3-event-app .s3-title-icon,
body.member-layout .s3-event-app .s3-view-btn.active {
    background: #176c99;
    border-color: #176c99;
    color: #fff;
}
body.member-layout .s3-event-app .s3-title-icon .s3-icon,
body.member-layout .s3-event-app .s3-view-btn.active .s3-icon {
    color: #fff;
}
body.member-layout .s3-event-app .s3-view-btn:not(.active) .s3-icon {
    color: #176c99;
}

body.member-layout .s3-event-app .s3-event-location-row .s3-event-type {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
body.member-layout .s3-event-app .s3-event-type-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
body.member-layout .s3-event-app .s3-event-type-divider {
    opacity: .65;
    font-weight: 400;
}

/* Let narrow cards grow instead of clipping their location, badge and date. */
body.member-layout .s3-event-app .s3-event-grid:not(.is-list) {
    align-items: stretch;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
body.member-layout .s3-event-app .s3-event-grid:not(.is-list) .s3-event-card {
    height: auto;
    min-height: 318px;
    max-height: none;
}
body.member-layout .s3-event-app .s3-event-body {
    flex-shrink: 0;
    overflow: visible;
}
body.member-layout .s3-event-app .s3-event-actions {
    flex-wrap: wrap;
}

body.member-layout .s3-event-app .s3-event-company {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 2px 0 10px;
}
body.member-layout .s3-event-app .s3-event-company > img,
body.member-layout .s3-event-app .s3-event-company > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    overflow: hidden;
    border: 1px solid #d9e5f2;
    border-radius: 9px;
    background: #f2f7fc;
    color: #1868a0;
    object-fit: contain;
}
body.member-layout .s3-event-app .s3-event-company strong { color: #172442; font-size: 13px; }
body.member-layout .s3-event-app .s3-event-company small { display: block; margin-bottom: 2px; color: #176c99; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .45px; }
body.member-layout .s3-event-app .s3-event-date-bottom { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 7px; color: #43516d; font-size: 12px; font-weight: 600; }
body.member-layout .s3-event-app .s3-event-date-bottom .s3-icon { color: #1868a0; }

body.member-layout .s3-event-app .s3-event-provenance {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    color: #43516d;
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
body.member-layout .s3-event-app .s3-event-provenance strong {
    color: #176c99;
    font-weight: 600;
}

/* Workspace blue accents on the Events directory. */
body.event-page-shell {
    --s3-blue: #1868a0;
    --is2-blue: #1868a0;
}

@media (max-width: 760px) {
    body.member-layout .s3-event-app .s3-event-grid:not(.is-list) { grid-template-columns: 1fr; }
}

body.event-page-shell .event-create-cta {
    background: #1868a0;
}

body.event-page-shell .event-create-cta:hover,
body.event-page-shell .event-create-cta:focus-visible {
    background: #125577;
}

body.event-page-shell .s3-event-app .s3-title-icon,
body.event-page-shell .s3-event-app .s3-view-btn.active,
body.event-page-shell .s3-event-app .s3-event-location-row .s3-event-type {
    background: #1868a0;
    border-color: #1868a0;
}

body.event-page-shell .s3-event-app .s3-view-btn:not(.active) .s3-icon,
body.event-page-shell .s3-event-app .s3-event-provenance strong,
body.event-page-shell .s3-event-copy > span {
    color: #1868a0;
}

body.event-page-shell .s3-event-side-date,
body.event-page-shell .s3-date {
    background: #e7f2f8;
}

body.event-page-shell .s3-event-media {
    background: linear-gradient(135deg, #125577, #1868a0);
}

/* Override the shared directory's desktop three-column !important rule. */
body.member-layout .s3-event-app .s3-event-grid:not(.is-list) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 20px; }
body.member-layout .s3-event-app .s3-event-grid.is-list { grid-template-columns: minmax(0, 1fr) !important; }
body.member-layout .s3-event-app .s3-event-card { border-radius: 14px; }
body.member-layout .s3-event-app .s3-event-media { position: relative; height: 116px; min-height: 116px; flex-shrink: 0; background: #1868a0; }
body.member-layout .s3-event-app .s3-event-media > img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
body.member-layout .s3-event-app .s3-event-image-fallback { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #fff; background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.18), transparent 42%), linear-gradient(120deg, #125577, #1868a0 55%, #6544bc); font-size: 12px; }
body.member-layout .s3-event-app .s3-event-image-fallback svg { width: 38px; height: 38px; color: #fff; }
body.member-layout .s3-event-app .s3-event-body { padding: 12px 14px; gap: 7px; }
body.member-layout .s3-event-app .s3-event-body h3 { margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; height: auto; max-height: none; font-size: 16px; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; }
body.member-layout .s3-event-app .s3-event-company { margin: 0; padding: 7px 9px; border-left: 3px solid #1868a0; border-radius: 0 8px 8px 0; background: #eff6ff; }
body.member-layout .s3-event-app .s3-event-company strong { min-width: 0; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
body.member-layout .s3-event-app .s3-event-company .s3-event-company-logo { position: relative; width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border: 1px solid #dde5ec; border-radius: 8px; color: #1868a0; background: #fff; overflow: hidden; }
body.member-layout .s3-event-app .s3-event-company-logo > img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 4px; object-fit: contain; background: #fff; }
body.member-layout .s3-event-app .s3-event-company-logo > svg { width: 28px; height: 28px; }
body.member-layout .s3-event-app .s3-event-location-highlight { display: flex; align-items: flex-start; gap: 6px; padding: 5px 8px; border-radius: 6px; color: #115e59; background: #eaf7f3; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
body.member-layout .s3-event-app .s3-event-location-highlight svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 2px; }
body.member-layout .s3-event-app .s3-event-actions { padding: 8px 14px; border-top: 1px solid #edf1f7; }
body.member-layout .s3-event-app .s3-event-provenance { padding: 4px 7px; font-size: 10px; gap: 2px 8px; border-radius: 7px; background: #f4f7fc; }
body.member-layout .s3-event-app .s3-event-location-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
body.member-layout .s3-event-app .s3-event-format { padding: 4px 7px; border-radius: 6px; color: #115e59; background: #eaf7f3; font-size: 12px; font-weight: 700; line-height: 1.4; }
@media (max-width: 760px) {
    body.member-layout .s3-event-app .s3-event-grid:not(.is-list) { grid-template-columns: minmax(0, 1fr) !important; }
    body.member-layout .s3-event-app .s3-event-body { padding: 12px 14px; }
}

/* Keep grid cards focused on identity; list view retains a short summary. */
body.member-layout .s3-event-app .s3-event-grid:not(.is-list) .s3-event-description { display: none; }
body.member-layout .s3-event-app .s3-event-description { margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }

/* Grid display must not override the physical/virtual section visibility. */
.event-create-form [hidden] { display: none !important; }
