* { box-sizing: border-box; }
html, body {
    margin: 0; padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #07172e;
    color: #e8eef7;
    font-size: 14px;
}
a { color: #5ab4ff; }
header {
    position: sticky; top: 0; z-index: 10;
    background: #0a1f3d;
    border-bottom: 1px solid #1f3a66;
    padding: 12px 20px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}
header .brand { display: flex; align-items: center; gap: 12px; justify-self: start; }
header .brand img { height: 32px; width: auto; display: block; }
header h1 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: 0.3px; }
header nav { display: flex; align-items: center; justify-self: end; }
header nav a {
    margin-left: 12px;
    text-decoration: none;
    color: #8fa5c4;
    padding: 6px 12px;
    border-radius: 6px;
}
header nav a.active { background: #1f3a66; color: #fff; }

.clock-zone { justify-self: center; text-align: center; line-height: 1.2; }
.clock-time {
    font-family: ui-monospace, Menlo, monospace;
    font-size: 20px; font-weight: 600; color: #fff;
    letter-spacing: 0.5px;
}
.clock-offset {
    font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-top: 2px;
}
.clock-offset.early   { color: #2ecc71; }
.clock-offset.late    { color: #e67e22; }
.clock-offset.ontime  { color: #6781a3; }
.clock-offset.unknown { color: #4a6890; }
.meta { font-size: 12px; color: #6781a3; }
main { padding: 20px; max-width: 1600px; margin: 0 auto; }

/* ---- Status badges ---- */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.badge.pending  { background: #16294a; color: #8fa5c4; }
.badge.briefing { background: #3d2e0e; color: #f5b041; }
.badge.ready    { background: #0e3d22; color: #2ecc71; animation: pulse 1.2s infinite; }
.badge.live     { background: #0e2a55; color: #5ab4ff; }
.badge.done     { background: #0d1d36; color: #4a6890; }

@keyframes pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(46,204,113,0.6); }
    50%     { box-shadow: 0 0 0 8px rgba(46,204,113,0); }
}

/* ---- Checklist cards ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; }
.card {
    background: #0c2244;
    border: 1px solid #1f3a66;
    border-radius: 10px;
    padding: 14px;
    transition: border-color 0.2s;
}
.card.ready { border-color: #2ecc71; }
.card.live, .card.done { opacity: 0.55; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; gap: 8px; }
.card-num { font-size: 22px; font-weight: 700; color: #5ab4ff; min-width: 36px; }
.card-title { font-size: 13px; font-weight: 600; line-height: 1.3; }
.card-meta { font-size: 11px; color: #6781a3; margin: 4px 0 10px; }
.card-meta span { margin-right: 10px; }
.card-link {
    display: inline-block; font-size: 11px; margin-bottom: 10px;
    color: #5ab4ff; text-decoration: none;
    word-break: break-all;
}
.checks { display: grid; gap: 6px; }
.checks label {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; background: #07172e; border-radius: 6px;
    cursor: pointer; user-select: none; font-size: 13px;
}
.checks label:hover { background: #102a4f; }
.checks input { width: 18px; height: 18px; cursor: pointer; accent-color: #2ecc71; }
.checks label.checked { color: #2ecc71; }
.card-actions { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
button {
    background: #1f3a66; color: #e8eef7; border: none;
    padding: 7px 12px; border-radius: 6px; font-size: 12px;
    cursor: pointer; font-weight: 600;
}
button:hover { background: #2b4d82; }
button.primary { background: #2ecc71; color: #07172e; }
button.primary:hover { background: #27ae60; }
button.warn { background: #e67e22; color: #fff; }
button.warn:hover { background: #d35400; }
button.ghost { background: transparent; color: #6781a3; }
button.ghost:hover { color: #e8eef7; }

/* ---- Dashboard table ---- */
table { width: 100%; border-collapse: collapse; }
th, td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #1f3a66;
    font-size: 13px;
    vertical-align: middle;
}
th { background: #0a1f3d; font-size: 11px; text-transform: uppercase; color: #8fa5c4; font-weight: 600; }
tr.break td {
    background: #0d1d36;
    text-align: center;
    font-weight: 700;
    color: #6781a3;
    letter-spacing: 2px;
}
tr.status-ready td { background: rgba(46,204,113,0.10); }
tr.status-live  td { background: rgba(90,180,255,0.10); }
tr.status-done  { opacity: 0.45; }
.proj-title { font-weight: 600; max-width: 420px; }
.proj-meta { font-size: 11px; color: #6781a3; margin-top: 2px; }
.teams-btn {
    display: inline-block; padding: 4px 10px;
    background: #5ab4ff; color: #07172e;
    border-radius: 4px; text-decoration: none; font-size: 11px;
    font-weight: 600;
}
.teams-btn:hover { background: #7ac5ff; }
.order-cell { font-size: 18px; font-weight: 700; color: #5ab4ff; text-align: center; width: 50px; }
.time-cell { font-family: ui-monospace, Menlo, monospace; white-space: nowrap; }
.time-cell .connect { color: #f5b041; font-weight: 600; }
.dash-actions { display: flex; gap: 6px; }

.filter-bar { margin-bottom: 14px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.filter-bar label { font-size: 12px; color: #8fa5c4; cursor: pointer; }
.filter-bar #syncInfo { margin-left: auto; }

.view-toggle { display: inline-flex; background: #0a1f3d; border: 1px solid #1f3a66; border-radius: 8px; padding: 2px; }
.view-toggle button {
    background: transparent; color: #8fa5c4;
    padding: 6px 12px; font-size: 12px;
    border-radius: 6px;
}
.view-toggle button.active { background: #1f3a66; color: #fff; }
.view-toggle button:hover { color: #fff; }

/* Checklist table view */
.checklist-table .check-col { text-align: center; width: 70px; }
.checklist-table .check-col input[type=checkbox] {
    width: 20px; height: 20px;
    cursor: pointer; accent-color: #2ecc71;
}
.checklist-table tr.status-ready td { background: rgba(46,204,113,0.10); }
.checklist-table tr.status-live  td { background: rgba(90,180,255,0.10); }
.checklist-table tr.status-done  { opacity: 0.45; }
.checklist-table .proj-title { max-width: 380px; }

/* Break separator (cards view) */
.break-sep {
    grid-column: 1 / -1;
    text-align: center;
    padding: 14px;
    color: #6781a3;
    font-weight: 700;
    letter-spacing: 3px;
    background: #0d1d36;
    border: 1px dashed #1f3a66;
    border-radius: 8px;
    margin: 6px 0;
}

/* Connect time block (used in checklist + dashboard) */
.time-block { font-family: ui-monospace, Menlo, monospace; line-height: 1.3; }
.time-block .primary-time { font-size: 15px; font-weight: 700; color: #fff; }
.time-block .connect-time { font-size: 12px; color: #f5b041; font-weight: 600; }
.time-block .connect-time.small { font-size: 11px; opacity: 0.8; }
.time-block .range { font-size: 11px; color: #6781a3; }

/* ---- Landing page with background ---- */
body.landing-body {
    background: #000 url('bg.jpg') center center / cover no-repeat fixed;
    min-height: 100vh;
}
body.landing-body::before {
    content: '';
    position: fixed; inset: 0;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
}
.landing {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 40px 20px;
    text-align: center;
}
.landing .logo {
    width: 140px; height: auto;
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 24px rgba(90,180,255,0.4));
}
.landing h1 {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 4px;
    margin: 0 0 8px;
    text-transform: uppercase;
}
.landing .subtitle {
    font-size: 13px;
    color: #8fa5c4;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 40px;
}
.landing .choices { display: grid; gap: 14px; width: 100%; }
.landing .choices a {
    display: block; padding: 22px;
    background: rgba(10, 31, 61, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(90,180,255,0.25);
    border-radius: 10px;
    text-decoration: none;
    color: #e8eef7;
    transition: all 0.2s;
}
.landing .choices a:hover {
    border-color: #5ab4ff;
    background: rgba(15, 45, 90, 0.85);
    transform: translateY(-2px);
}
.landing .choices a strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}
.landing .choices a span {
    font-size: 12px;
    color: #8fa5c4;
}
