/* Hackathon management: compact overview and native, keyboard-accessible editors. */
#hackathons.hackathon-panel { padding:24px; border:1px solid #204b70; border-radius:20px; background:linear-gradient(125deg,#031739e8,#03203ae8); }
.hackathon-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; padding-bottom:20px; border-bottom:1px solid #173956; }
#hackathons .hackathon-heading h2 { margin:0 0 4px; font-size:1.6rem; font-weight:650; text-transform:none; }
#hackathons .hackathon-heading p { margin:0; color:var(--muted); font-size:.9rem; }
.hackathon-heading > button { flex-shrink:0; border-radius:13px; font-weight:650; }
.hackathon-filters { display:flex; align-items:center; gap:14px; padding:18px 0; }
.hackathon-filters label { margin:0; }
.hackathon-search { position:relative; flex:0 1 360px; min-width:0; }
.hackathon-search svg { position:absolute; left:14px; top:14px; width:18px; height:18px; fill:none; stroke:#a7c4e5; stroke-width:1.8; }
.hackathon-filters input,.hackathon-filters select { width:100%; margin:0; border:1px solid #245477; border-radius:11px; background:#02132f; min-height:46px; }
.hackathon-filters #hackathon-search { padding-left:42px; min-height:46px; margin:0; border-radius:11px; }
#hackathon-count { margin-left:auto; color:var(--muted); font-size:.8rem; white-space:nowrap; }
.hackathon-list { display:grid; gap:14px; }
#hackathons .hackathon-card { padding:18px; margin:0; border:1px solid #215071; border-radius:15px; background:#03173277; min-width:0; }
.hackathon-card:focus-within { border-color:#00c9d4; }
.hackathon-card[data-status=archived] { background:#06172b88; }
.hackathon-card-heading { display:grid; grid-template-columns:52px minmax(120px,1fr) auto minmax(130px,.8fr) minmax(180px,1fr); align-items:center; gap:20px; }
.hackathon-emblem { display:grid; place-items:center; width:52px; height:52px; border-radius:12px; color:#00d6c6; background:#00bbbd1a; flex-shrink:0; }
.hackathon-emblem svg { width:28px; height:28px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
#hackathons h3 { margin:0 0 3px; font-size:1.15rem; font-weight:650; text-transform:none; }
.hackathon-name { min-width:0; }
.hackathon-code { display:flex; align-items:center; gap:10px; flex-wrap:wrap; position:relative; }
.hackathon-code code { color:#73b7df; font-size:.8rem; overflow-wrap:anywhere; }
#hackathons .hackathon-copy { padding:3px; min-height:28px; width:28px; border:0; background:transparent; color:#64c8e9; border-radius:5px; }
.hackathon-copy svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.7; }
.hackathon-copy-status { font-size:.7rem; color:#69e6ce; }
.hackathon-status { display:inline-flex; align-items:center; gap:7px; justify-self:start; padding:6px 12px; border-radius:24px; background:#00c9bb15; color:#00dfbe; font-size:.75rem; white-space:nowrap; }
.hackathon-status.is-archived { color:#b2c1dd; background:#9bb2da1a; }
.hackathon-stat { display:flex; align-items:center; gap:12px; color:#adcaec; }
.hackathon-stat > svg { width:23px; height:23px; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:1.8; }
.hackathon-stat strong { display:block; color:#f0f4fc; font-size:.82rem; font-weight:600; }
.hackathon-stat div > span { display:block; margin-top:3px; font-size:.75rem; }
.hackathon-actions { display:flex; flex-wrap:wrap; align-items:start; gap:10px; margin-top:16px; }
#hackathons .hackathon-actions > .button { flex:1 1 170px; min-height:40px; padding:8px 12px; border-radius:11px; font-size:.78rem; }
#hackathons .hackathon-edit { background:transparent; color:#b6ceed; border:1px solid #244968; min-height:40px; padding:8px 16px; border-radius:11px; font-size:.78rem; }
#hackathons .lifecycle { margin:0; padding:0; border:0; flex:0 0 auto; }
#hackathons .lifecycle button { padding:9px 16px; border:1px solid #38465e; border-radius:11px; min-height:40px; color:#ff888e; font-size:.78rem; }
#hackathons .lifecycle button[value=restore-hackathon] { color:#56dfc6; }
.hackathon-dialog { box-sizing:border-box; width:min(740px,calc(100vw - 32px)); max-height:calc(100dvh - 40px); overflow:auto; padding:26px; border:1px solid #00bed5; border-radius:17px; color:#f0f4fc; background:linear-gradient(140deg,#061d40,#03142d); box-shadow:0 24px 100px #0009; }
.hackathon-dialog::backdrop { background:#010b20b8; backdrop-filter:blur(4px); }
.hackathon-dialog > header { display:flex; align-items:center; gap:18px; margin-bottom:22px; }
.hackathon-dialog h2 { font-size:1.5rem; font-weight:650; margin:0 0 4px; text-transform:none; }
.hackathon-dialog header p { font-size:.8rem; margin:0; color:var(--muted); }
.hackathon-dialog .hackathon-close { margin-left:auto; align-self:start; min-width:32px; min-height:32px; padding:0; border:0; background:transparent; color:#b7cce6; font-size:1.7rem; border-radius:6px; }
.workspace-page .hackathon-edit-form { max-width:none; margin:0; padding:0; border:0; background:transparent; display:block; }
.hackathon-fields { display:grid; grid-template-columns:1fr 1fr; gap:24px; padding:20px; border:1px solid #193e60; border-radius:13px; }
.hackathon-fields > div { min-width:0; }
.hackathon-fields > div:only-child { grid-column:1 / -1; }
.hackathon-fields label { display:block; margin:0 0 7px; font-size:.85rem; }
.hackathon-fields label > span { color:#ff8c7c; }
.hackathon-fields input { width:100%; min-width:0; border-radius:10px; background:#02132f; border:1px solid #254968; }
.hackathon-fields input[readonly] { color:#9bb9d9; }
.hackathon-fields small { display:block; color:#9bb9d9; font-size:.72rem; margin-top:6px; }
.hackathon-edit-status { display:flex; align-items:center; justify-content:space-between; margin-top:12px; padding:12px 20px; border:1px solid #193e60; border-radius:12px; font-size:.85rem; }
.hackathon-connections { padding:18px; border:1px solid #193e60; border-radius:13px; margin-top:12px; }
.hackathon-dialog .hackathon-connections h3 { margin:0; font-size:.9rem; font-weight:600; text-transform:none; }
.hackathon-connections p { color:#9bb9d9; font-size:.75rem; margin:4px 0 12px; }
.hackathon-connections a { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px; border:1px solid #214667; color:#edf5ff; text-decoration:none; font-size:.8rem; }
.hackathon-connections a:first-of-type { border-radius:9px 9px 0 0; }
.hackathon-connections a:last-of-type { border-radius:0 0 9px 9px; border-top:0; }
.hackathon-connections a span { color:#53d9db; text-align:right; }
.hackathon-edit-form footer { display:flex; justify-content:flex-end; gap:12px; padding-top:20px; }
.hackathon-edit-form footer button { min-width:112px; border-radius:12px; }
.hackathon-panel [hidden] { display:none !important; }
.hackathon-panel :focus-visible,.hackathon-dialog :focus-visible { outline:2px solid #00d7dc; outline-offset:3px; }
@media(max-width:1150px) { .hackathon-card-heading { grid-template-columns:48px 1fr auto; gap:14px; } .hackathon-stat { grid-column:auto; } .hackathon-stat:first-of-type { grid-column:2; } }
@media(max-width:640px) { #hackathons.hackathon-panel { padding:16px; } .hackathon-heading { align-items:start; flex-direction:column; } .hackathon-heading > button { width:100%; } .hackathon-filters { flex-wrap:wrap; gap:10px; } .hackathon-search { flex:1 1 100%; } .hackathon-filters > label:not(.hackathon-search) { flex:1; } .hackathon-card { padding:14px; } .hackathon-card-heading { grid-template-columns:42px minmax(0,1fr); gap:10px; } .hackathon-emblem { width:42px; height:46px; } .hackathon-status { grid-column:2; } .hackathon-stat { grid-column:2; } .hackathon-actions > * { width:100%; } #hackathons .hackathon-actions .button { flex-basis:100%; } .hackathon-dialog { padding:18px; } .hackathon-dialog > header { gap:12px; } .hackathon-dialog h2 { font-size:1.2rem; } .hackathon-fields { grid-template-columns:1fr; gap:18px; padding:16px; } .hackathon-connections { padding:14px; } }

#hackathon-count,.hackathon-code .hackathon-copy-status { border:0; background:none; padding:0; border-radius:0; }
.hackathon-dialog label { text-transform:none; letter-spacing:0; }
.hackathon-dialog input:not([type=hidden]) { min-height:44px; padding:10px 14px; margin:0; border-radius:10px; }
@media(max-width:640px) { #hackathons .hackathon-card { padding:14px; } }

/* Combined tenant overview, following the hackathon-and-sessions design. */
#hackathons.tenant-hackathon-overview { min-width:0; }
#hackathons.tenant-hackathon-overview .overview-heading { margin-bottom:0; }
.tenant-hackathon-overview .hackathon-filters { padding:18px 0 12px; }
.tenant-hackathon-overview .overview-search { width:390px; max-width:100%; }
.tenant-hackathon-overview .hackathon-filters select { width:180px; }
.tenant-hackathon-overview .hackathon-list { gap:14px; }
.tenant-hackathon-overview .hackathon-card-heading { grid-template-columns:52px minmax(0,1fr) auto; gap:16px; }
.hackathon-detail .hackathon-card-heading { grid-template-columns:52px minmax(0,1fr) auto repeat(2, auto); }
#hackathons.hackathon-directory .hackathon-card { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:10px 18px; }
#hackathons.hackathon-directory .hackathon-actions { margin:0; }
.hackathon-link { color:inherit; text-decoration:none; overflow-wrap:anywhere; }
.hackathon-link span,.hackathon-back { color:#53d9db; }
.hackathon-link:hover,.hackathon-back:hover { text-decoration:underline; }
.hackathon-back { display:inline-block; margin-bottom:14px; text-decoration:none; }
.hackathon-detail .hackathon-list { margin-top:16px; }
#hackathons .hackathon-name h2 { margin:0 0 5px; font:700 1.2rem/1.3 "Segoe UI",sans-serif; text-transform:none; }
.tenant-hackathon-overview .hackathon-actions { margin:14px 0 10px; }
#hackathons .hackathon-actions .hackathon-add-session { flex:1 1 200px; min-height:40px; border-radius:9px; font-size:.8rem; }
#hackathons .hackathon-actions .hackathon-archive { padding:8px 20px; min-height:40px; border-radius:9px; color:#ff647c; border-color:#984459; background:transparent; font-size:.78rem; }
.tenant-hackathon-overview .overview-sessions { border:1px solid #174768; border-radius:10px; padding:12px; background:#001a2b55; }
#hackathons .overview-sessions h3 { margin:0 2px 8px; font-size:.95rem; }
.tenant-hackathon-overview .overview-table th { background:#062a50; }
.tenant-hackathon-overview .overview-table td { padding:7px 12px; }
.tenant-hackathon-overview .hackathon-session-empty { display:flex; justify-content:center; padding:22px; }
.tenant-hackathon-overview .hackathon-session-empty p { margin:6px 0 10px; font-size:.85rem; color:var(--muted); }
.tenant-hackathon-overview .hackathon-session-empty button { font-size:.78rem; border-radius:8px; padding:7px 14px; }

@media(max-width:850px) {
    #hackathons.hackathon-directory .hackathon-card { grid-template-columns:minmax(0,1fr); }
    .hackathon-detail .hackathon-card-heading { grid-template-columns:52px minmax(0,1fr) auto; }
    .hackathon-detail .hackathon-stat:nth-child(4) { grid-column:2; }
}
@media(max-width:640px) {
    .tenant-hackathon-overview .hackathon-card-heading,.hackathon-detail .hackathon-card-heading { grid-template-columns:52px minmax(0,1fr); }
    .tenant-hackathon-overview .hackathon-status,.tenant-hackathon-overview .hackathon-stat { grid-column:2; }
    .tenant-hackathon-overview .hackathon-filters { flex-wrap:wrap; }
    .tenant-hackathon-overview .overview-actions { gap:6px; }
    .tenant-hackathon-overview .overview-table { min-width:720px; }
}
#hackathons.tenant-hackathon-overview { padding:0; margin:0; border:0; border-radius:0; background:transparent; }
#hackathons .overview-sessions { padding:12px; margin:0; border-radius:10px; background:#001a2b55; }
#hackathons .hackathon-card { background:linear-gradient(125deg,#031739e8,#00202ee8); }
#hackathons .hackathon-code { flex-wrap:nowrap; }
#hackathons .hackathon-code code { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#hackathons .hackathon-copy { flex-shrink:0; }
@media(max-width:640px) { #hackathons .hackathon-filters .overview-search { flex:1 1 100%; width:100%; } #hackathons .hackathon-filters > label:last-child { flex:1 1 100%; } #hackathons .hackathon-filters select { width:100%; } #hackathons .hackathon-session-empty { padding:18px 6px; } }
