@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/archivo-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                   U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                   U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                   U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                   U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --teal:        #14544C;
    --teal-deep:   #0E413B;
    --teal-dark:   #0A302B;
    --teal-mid:    #4C7A73;
    --teal-soft:   #E4F0ED;
    /* The website's hall colours (web/programme-details.php), so a hall
       looks the same in the app and on the site. */
    --hall-a:      #1d4ed8;
    --hall-b:      #047857;
    --hall-c:      #7c3aed;
    --hall-d:      #b45309;
    /* The website's programme maroon: chosen day, headings. */
    --prog-brand:  #4b0f1a;
    /* Sessions that are not in any one hall. */
    --hall-x:      #4A5568;
    --gold:        #8A6B2E;
    --orange:      #E08A2E;

    --live:        #C4381F;

    --ink:         #16211D;
    --ink-soft:    #3A453F;
    --ink-3:       #4A5551;
    --muted:       #6B7268;
    --faint:       #8B9188;
    --fainter:     #9AA096;
    --muted-4:     #A9AFA5;
    --muted-5:     #B3B0A2;
    --muted-6:     #C2BFB1;

    --line:        #DDD7CA;
    --line-cool:   #DDD7CA;
    --line-warm:   #EAE5D9;
    --line-hair:   #EAE5D9;
    --line-2:      #E2DCD0;
    --field-line:  #D6D0C2;
    --hair-2:      #E7E2D6;

    --brand-line:  #BCD6D0;
    --accent-line: #EBD3AD;
    --accent-pale: #E08A2E;
    --fill:        #EAE5D9;
    --fill-2:      #F1EDE4;

    /* chips */
    --hall-a-bg:   #dbeafe;
    --hall-b-bg:   #d1fae5;
    --hall-c-bg:   #ede9fe;
    --hall-d-bg:   #fef3c7;
    --hall-x-bg:   #E6E9ED;

    /* whole cards -- enough to tell the halls apart at a glance,
       light enough to read dark text on */
    --hall-a-card: #eff6ff;
    --hall-b-card: #ecfdf5;
    --hall-c-card: #f5f3ff;
    --hall-d-card: #fffbeb;

    --warn-bg:     #FDF3E4;
    --warn-ink:    #A56A12;
    --gold-bg:     #F7F1E1;
    --gold-line:   #E7DBBB;
    --gold-ink:    #6B5A32;

    --hdr-bg:      #FBF9F4;
    --hdr-line:    #DDD7CA;
    --tab-bg:      #FFFFFF;
    --app-bg:      #F2EEE6;

    --card:        #FFFFFF;

    --app-max:     460px;

    --sans:        'Archivo', system-ui, -apple-system, Segoe UI, sans-serif;
    --serif:       'Archivo', system-ui, -apple-system, Segoe UI, sans-serif;
    --display-weight: 800;
    --tight:       -0.025em;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--ink);
    background: var(--app-bg);
    min-height: 100vh;
    -webkit-text-size-adjust: 100%;
}

a { color: var(--teal); text-decoration: none; }
img { max-width: 100%; display: block; }
input, button { font-family: inherit; font-size: inherit; }
input::placeholder { color: var(--muted-4); }

.wrap { max-width: var(--app-max); margin: 0 auto; }

.body {
    padding: 16px 20px calc(28px + env(safe-area-inset-bottom));
}
.body-wide {
    padding: 18px 22px calc(28px + env(safe-area-inset-bottom));
}

.serif  { font-family: var(--serif); font-weight: var(--display-weight); letter-spacing: var(--tight); }
.muted  { color: var(--muted); }
.faint  { color: var(--faint); }

.label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--faint);
}
.label-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.label-row .rule { flex: 1; height: 1px; background: var(--line); }
.label-row .link { font-size: 12px; font-weight: 600; color: var(--teal); letter-spacing: 0; }

.mt   { margin-top: 26px; }
.mt-s { margin-top: 10px; }

.empty {
    text-align: center;
    padding: 60px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--faint);
    line-height: 1.6;
}

.head {
    background: var(--hdr-bg);
    border-bottom: 1px solid var(--hdr-line);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: calc(18px + env(safe-area-inset-top)) 20px 16px;
}
.head-wide  { padding-left: 22px; padding-right: 22px; }
.head-flush { padding-bottom: 0; }

.head-row { display: flex; align-items: center; gap: 12px; }
.head-title { flex: 1; font-family: var(--serif); font-weight: var(--display-weight); letter-spacing: var(--tight); font-size: 25px; color: var(--ink); }
.head-note  { font-size: 12px; font-weight: 500; color: var(--faint); }
.head-link  { font-size: 12px; font-weight: 600; color: var(--teal); cursor: pointer; }
.head-tools { display: flex; gap: 8px; flex: none; }

.iconbtn {
    width: 36px; height: 36px;
    flex: none;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--ink-soft);
    cursor: pointer;
}
.iconbtn.lg { width: 40px; height: 40px; border-radius: 12px; }
.iconbtn.on { background: var(--teal); border-color: var(--teal); color: #fff; }

.badge {
    position: absolute;
    top: -5px; right: -5px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--orange);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
}

.avatar {
    width: 40px; height: 40px;
    flex: none;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    display: block;
    background: var(--card);
    border: 1px solid var(--line-cool);
    border-radius: 18px;
    padding: 16px 18px;
    color: inherit;
}
.card + .card { margin-top: 10px; }
.card-teal { background: var(--teal); border-color: var(--teal); color: #fff; }
.card-warn { background: var(--warn-bg); border-color: var(--accent-line); }
.card-gold { background: var(--gold-bg); border-color: var(--gold-line); }

.list {
    background: var(--card);
    border: 1px solid var(--line-cool);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(14, 92, 85, 0.04);
}
.list-row {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 17px;
    border-bottom: 1px solid var(--line-hair);
    color: inherit;
}
.list-row:last-child { border-bottom: 0; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .t { font-size: 14px; font-weight: 600; color: var(--ink); }
.list-row .s { font-size: 12px; font-weight: 500; color: var(--faint); margin-top: 2px; }

.chip {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    white-space: nowrap;
    background: var(--line);
    color: var(--ink-soft);
}
.chip-hall    { background: var(--hall-a-bg); color: var(--hall-a); letter-spacing: 0.08em; padding: 4px 8px; }
.chip-hall.b  { background: var(--hall-b-bg); color: var(--hall-b); }
.chip-hall.c  { background: var(--hall-c-bg); color: var(--hall-c); }
.chip-hall.d  { background: var(--hall-d-bg); color: var(--hall-d); }
.chip-hall.x  { background: var(--hall-x-bg); color: var(--hall-x); }
.chip-gold  { background: var(--gold-bg); color: var(--gold); border: 1px solid var(--gold-line); padding: 2px 8px; }
.chip-quiet { background: var(--fill); color: var(--muted); }
.chip-mine  { background: var(--teal); color: #fff; }

.btn {
    display: block;
    width: 100%;
    padding: 15px 18px;
    border: 0;
    border-radius: 14px;
    background: var(--teal);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}
.btn-ghost {
    background: transparent;
    border: 1px solid var(--line-cool);
    color: var(--teal);
}
.btn-warn { background: var(--warn-bg); color: var(--warn-ink); }
.btn[disabled] { background: var(--fill); color: var(--fainter); cursor: default; }
.btn + .btn, .btn + .btn-ghost { margin-top: 10px; }

.btn-add {
    flex: none;
    align-self: center;
    padding: 7px 13px;
    border: 1px solid var(--teal);
    border-radius: 999px;
    background: transparent;
    color: var(--teal);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.btn-add.on { background: var(--teal); color: #fff; }
.btn-add.locked { border-color: var(--gold-line); background: var(--gold-bg); color: var(--gold); cursor: default; }

.login-hero {
    position: relative;
    text-align: center;
    padding: calc(28px + env(safe-area-inset-top)) 26px 18px;
    background: linear-gradient(160deg, var(--teal) 0%, var(--teal-deep) 58%, var(--teal-dark) 100%);
    overflow: hidden;
}
.login-hero::before, .login-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}
.login-hero::before {
    top: -130px; right: -110px;
    width: 300px; height: 300px;
    border: 1px solid rgba(255, 255, 255, 0.14);
}
.login-hero::after {
    top: -70px; right: -50px;
    width: 190px; height: 190px;
    border: 1px solid rgba(232, 134, 60, 0.28);
}
.login-hero > * { position: relative; }

/* The federation's mark sits directly over the congress badge, both on
   the same centre line. The USCON badge brings its own dark ground; only
   the IFUMB wordmark needs a plate to read against the teal. */
.login-logos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.login-mark {
    /* box-sizing is border-box, so the 2px rim comes out of the width:
       120px here leaves a 116px badge. */
    width: 120px;
    height: auto;
    border: 2px solid #fff;
    border-radius: 14px;
    flex: none;
    box-shadow: 0 8px 20px rgba(7, 51, 47, 0.22);
}
.login-fed {
    width: 113px;
    height: auto;
    flex: none;
    background: #fff;
    border-radius: 6px;
    padding: 5px 8px;
    box-shadow: 0 6px 16px rgba(7, 51, 47, 0.18);
}

.login-welcome {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 22px;
}
.login-name {
    font-family: var(--serif);
    font-weight: var(--display-weight);
    letter-spacing: var(--tight);
    font-size: 40px;
    line-height: 1.05;
    color: #fff;
    margin-top: 2px;
    /* Archivo stops at 800, so weight past that has to come from the
       stroke rather than the face. */
    -webkit-text-stroke: 0.7px #fff;
}
.login-kicker {
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.70);
    line-height: 1.45;
    margin-top: 5px;
}
.login-kicker sup { font-size: 0.68em; vertical-align: super; line-height: 0; }

.login-when {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-top: 6px;
}
.login-where {
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    margin-top: 2px;
}

/* Narrow phones: the plate and the title give ground first. */
@media (max-width: 340px) {
    .login-mark { width: 100px; }
    .login-fed { width: 95px; padding: 3px 5px; }
    .login-name { font-size: 33px; }
}

.login-card {
    margin: -18px 22px 0;
    background: #fff;
    border: 1px solid var(--line-2);
    border-radius: 22px;
    padding: 34px 20px 22px;
    box-shadow: 0 10px 28px rgba(7, 51, 47, 0.09);
}
.login-card h1 { font-family: var(--serif); font-size: 21px; font-weight: var(--display-weight);
                 letter-spacing: var(--tight); line-height: 1.25; text-wrap: balance;
                 text-align: center; }
.login-card .sub { font-size: 12px; font-weight: 500; color: var(--faint); margin-top: 5px; line-height: 1.5;
                   text-align: center; }

.field {
    border: 1px solid var(--line-2);
    border-radius: 14px;
    padding: 9px 14px 10px;
    margin-top: 14px;
    background: #fff;
}
.field label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--faint);
}
.field input,
.field textarea,
.field select {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    padding-top: 3px;
    font-family: inherit;
}
.field textarea { resize: vertical; line-height: 1.5; }

.field-row { display: flex; align-items: baseline; gap: 10px; }
.field-row input { min-width: 0; }

.pw-toggle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: none;
    /* 36px of tap target around a 19px icon. */
    width: 36px;
    height: 36px;
    margin-right: -7px;
    padding: 0;
    color: var(--teal-mid);
    cursor: pointer;
}
.pw-toggle:active { opacity: 0.6; }
.pw-toggle .pw-open { display: none; }
.pw-toggle.on .pw-shut { display: none; }
.pw-toggle.on .pw-open { display: inline-flex; }
.pw-toggle.on { color: var(--teal); }

.field.is-bad { border-color: var(--warn-ink); background: var(--warn-bg); }
.field.is-bad label { color: var(--warn-ink); }
.field.is-bad + .fhint { color: var(--warn-ink); }

.field select { appearance: auto; margin-left: -2px; }

.fhint {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--fainter);
    line-height: 1.55;
    padding: 7px 4px 0;
}

.radiorow { display: flex; gap: 18px; padding: 6px 0 2px; }
.radiorow label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--ink);
    text-transform: none;
}
.radiorow input { width: auto; }

.login-error {
    margin-top: 14px;
    background: var(--warn-bg);
    color: var(--warn-ink);
    border-radius: 12px;
    padding: 11px 13px;
    font-size: 13px;
    font-weight: 500;
}
.login-forgot { text-align: center; margin-top: 14px; }
.login-forgot > summary { list-style: none; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--teal); }
.login-forgot > summary::-webkit-details-marker { display: none; }
.login-forgot-note { font-size: 12.5px; font-weight: 500; color: var(--muted); line-height: 1.6; margin-top: 9px; }
.login-forgot-contact { margin-top: 8px; font-weight: 600; color: var(--teal); }
.login-forgot-contact span { padding: 0 4px; color: var(--muted-4); }

/* Who is hosting, closing the card under the Forgot password panel. */
.login-host {
    text-align: center;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.login-host-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
}
.login-host-mark {
    text-align: center;
    margin: 1px 0 0;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.05;
    color: #fc0000;
}
.login-host-sub {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    margin-top: 1px;
}
.login-host-full {
    text-align: center;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.45;
    text-transform: uppercase;
    color: #fc0000;
    margin-top: 2px;
}

.login-foot { text-align: center; padding: 26px 22px calc(30px + env(safe-area-inset-bottom)); }
.login-foot .rule { height: 1px; background: var(--line); margin-bottom: 22px; }
.login-credit { display: block; width: 92px; margin: 0 auto 12px; }
.login-foot img { width: 100%; border-radius: 8px; }
.login-foot p { font-size: 12px; font-weight: 500; color: var(--teal); line-height: 1.7; }

.placehero { background: var(--line-warm); }
.placehero img { width: 100%; height: 210px; object-fit: cover; display: block; }

.placetitle {
    font-family: var(--serif);
    font-weight: var(--display-weight);
    letter-spacing: var(--tight);
    font-size: 23px;
    line-height: 1.2;
    color: var(--ink);
}

.placechips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }

.placelead {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.55;
    color: var(--ink);
    margin-top: 14px;
}
.placebody {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.7;
    color: var(--muted);
    margin-top: 12px;
}

.counts { display: flex; gap: 22px; }
.counts .n { font-family: var(--serif); font-weight: var(--display-weight); letter-spacing: var(--tight); font-size: 28px; color: var(--ink); line-height: 1; }
.counts .l { font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 4px; }
.counts .sep { width: 1px; background: var(--line-warm); }

.searchbar {
    display: flex;
    align-items: center;
    gap: 9px;
    background: #fff;
    border-radius: 12px;
    padding: 11px 13px;
    margin-top: 12px;
}
.searchbar input {
    flex: 1;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
}

.daytabs { display: flex; gap: 8px; padding-top: 13px; }

.viewswitch {
    display: flex;
    gap: 3px;
    padding: 3px;
    background: var(--fill);
    border-radius: 999px;
}
.viewtab {
    flex: 1;
    text-align: center;
    padding: 10px 10px;    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
}
.viewtab.on {
    background: var(--card);
    color: var(--teal);
    box-shadow: 0 1px 3px rgba(7, 51, 47, 0.12);
}
.daytab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 6px 9px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    color: var(--ink-soft);
}
.daytab .k { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; opacity: 0.7; }
.daytab .l { font-size: 14px; font-weight: 600; margin-top: 2px; }
.daytab.on { background: var(--teal); border-color: var(--teal); color: #fff; }

.halltabs {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 13px 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.halltabs::-webkit-scrollbar { display: none; }
.halltab {
    flex: none;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-soft);
}
.halltab.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.halltab.on.a { background: var(--hall-a); border-color: var(--hall-a); }
.halltab.on.b { background: var(--hall-b); border-color: var(--hall-b); }
.halltab.on.c { background: var(--hall-c); border-color: var(--hall-c); }
.halltab.on.d { background: var(--hall-d); border-color: var(--hall-d); }
.halltab.grid { margin-left: auto; display: flex; align-items: center; gap: 6px; color: var(--teal); }

/* Coordinator / Hall Incharge for the hall on screen. */
.hall-team {
    margin: 0 20px 12px;
    padding: 10px 14px;
    border-left: 3px solid var(--teal);
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
    color: var(--ink);
}
.hall-team span {
    display: inline-block;
    min-width: 92px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.hall-team.a { border-left-color: var(--hall-a); }
.hall-team.b { border-left-color: var(--hall-b); }
.hall-team.c { border-left-color: var(--hall-c); }
.hall-team.d { border-left-color: var(--hall-d); }

.group { margin-bottom: 20px; }
.stack { display: flex; flex-direction: column; gap: 9px; }

.sess { scroll-margin-top: 14px; }

.sess {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
    background: var(--hall-a-card);
    border: 1px solid var(--line-cool);
    border-left: 4px solid var(--hall-a);
    border-radius: 16px;
    padding: 14px 15px;
    color: inherit;
    transition: border-color .15s;
}
.sess-hit { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: flex-start; color: inherit; }

.sess.break { background: var(--fill-2); border-color: var(--line); }
.sess.mine  { border-color: var(--brand-line); background: var(--teal-soft); box-shadow: 0 2px 10px rgba(14,92,85,0.06); }
.sess.live  { border-color: var(--accent-line); }

/* Each hall tints its own card. Stated after the rules above so the hall
   wins on an ordinary card, and the three states restated below so a
   break, a booked session or a live one still wins over the hall. */
.sess.b     { border-left-color: var(--hall-b); background: var(--hall-b-card); }
.sess.c     { border-left-color: var(--hall-c); background: var(--hall-c-card); }
.sess.d     { border-left-color: var(--hall-d); background: var(--hall-d-card); }
.sess.x     { border-left-color: var(--hall-x); background: var(--card); }

.sess.break { border-left-color: var(--line); background: var(--fill-2); }
.sess.mine  { background: var(--teal-soft); }

.sess-time { width: 60px; flex: none; }
.sess-time .a { font-size: 13px; font-weight: 700; color: var(--ink); }
.sess-time .b { font-size: 11px; font-weight: 500; color: var(--fainter); margin-top: 2px; }

.sess-main { flex: 1; min-width: 0; }
.sess-tags { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.sess-code { font-size: 11px; font-weight: 600; color: var(--fainter); }
.sess-title { font-size: 15px; font-weight: 600; color: var(--ink); margin-top: 6px; line-height: 1.32; }
.sess.break .sess-title { font-size: 14px; font-weight: 500; color: var(--muted); }
.sess-meta { font-size: 12px; font-weight: 500; color: var(--faint); margin-top: 5px; }

.sess-topics { order: 1; }

.sess-add {
    flex: none;
    align-self: flex-start;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: var(--fill);
    color: var(--muted);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.sess-add.on     { background: var(--teal);    color: #fff; font-size: 15px; }
.sess-add.locked { background: var(--gold-bg); color: var(--gold); font-size: 15px; cursor: default; }
.sess-add-form  { flex: none; align-self: flex-start; margin-left: 4px; }

.sess-review {
    margin-top: 8px;
    background: var(--warn-bg);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--warn-ink);
}

.grid-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.grid-inner  { min-width: 880px; }

.grid-head, .grid-row { display: flex; gap: 7px; margin-bottom: 7px; }
.grid-time { width: 54px; flex: none; font-size: 11px; font-weight: 600; color: var(--fainter); padding-top: 8px; }

.grid-hall {
    flex: 1;
    padding: 7px;
    border-radius: 10px;
    background: var(--hall-a);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-align: center;
}
.grid-hall.b { background: var(--hall-b); }
.grid-hall.c { background: var(--hall-c); }
.grid-hall.d { background: var(--hall-d); }

/* The wrapper is the card; the cell inside it is just the heading link. */
.grid-cell {
    display: block;
    padding: 9px 10px;
    color: inherit;
}
.grid-cell-wrap.b { border-top-color: var(--hall-b); background: var(--hall-b-card); }
.grid-cell-wrap.c { border-top-color: var(--hall-c); background: var(--hall-c-card); }
.grid-cell-wrap.d { border-top-color: var(--hall-d); background: var(--hall-d-card); }
.grid-cell-wrap.x { border-top-color: var(--hall-x); background: var(--card); }
.grid-cell-wrap.on { background: var(--teal-soft); border-color: var(--brand-line); }
.grid-cell-wrap.live { border-color: var(--accent-line); }

/* An empty slot keeps the column aligned without pretending to be a card. */
.grid-cell-wrap.blank {
    background: none;
    border: 1px dashed var(--line);
    border-top: 1px dashed var(--line);
}
.grid-cell .w { display: block; font-size: 10.5px; font-weight: 600;
                color: var(--muted); margin-top: 3px; }

/* The lectures under a block, inside the day grid. */
.grid-topics {
    margin: 0 10px 9px 10px;
    border-left: 2px solid var(--accent-line);
    padding-left: 8px;
}
.grid-topic {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    padding: 5px 0;
    border-top: 1px solid var(--line);
}
.grid-topic:first-child { border-top: 0; }
.grid-topic.mine { background: var(--teal-soft); border-radius: 7px; padding: 5px; }
.grid-topic-hit { flex: 1; min-width: 0; color: inherit; }
.grid-topic .tm { display: block; font-size: 10px; font-weight: 700;
                  color: var(--ink-3); font-variant-numeric: tabular-nums; }
.grid-topic .tt { display: block; font-size: 11.5px; font-weight: 600;
                  color: var(--ink); line-height: 1.3; margin-top: 1px; }
.grid-topic .tw { display: block; font-size: 11px; font-weight: 600;
                  color: var(--teal); margin-top: 1px; }
.grid-topic .topic-add { width: 22px; height: 22px; font-size: 13px; }
.grid-topic .topic-add.on { font-size: 11px; }

.grid-cell-wrap {
    flex: 1;
    min-width: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-self: flex-start;          /* do not stretch to the tallest hall */
    scroll-margin-top: 14px;
    background: var(--hall-a-card);
    border: 1px solid var(--line-cool);
    border-top: 3px solid var(--hall-a);
    border-radius: 10px;
}
.grid-cell-wrap .grid-cell { padding-right: 32px; }

.grid-mine {
    display: block;
    margin-top: 5px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.07em;
    color: var(--teal);
}

.grid-add-form { position: absolute; top: 6px; right: 6px; margin: 0; }
.grid-add {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 999px;
    background: var(--fill);
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}
.grid-add-form .grid-add { position: static; }
.grid-add.on     { background: var(--teal);   color: #fff; font-size: 11px; }
.grid-add.locked { background: var(--gold-bg); color: var(--gold); font-size: 11px; cursor: default; }

.grid-cell .c { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--fainter); }
.grid-cell .t { display: block; font-size: 12px; font-weight: 600; line-height: 1.3; margin-top: 3px; }

.grid-common {
    flex: 1;
    padding: 9px 10px;
    border-radius: 10px;
    background: var(--fill);
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.detail-head { padding-bottom: 12px; }

.detail-title {
    font-family: var(--serif);
    font-weight: var(--display-weight);
    letter-spacing: var(--tight);
    font-size: 27px;
    line-height: 1.2;
    color: var(--ink);
    margin-top: 10px;
    font-weight: 400;
}

.detail-strip {
    display: flex;
    gap: 22px;
    margin-top: 14px;
    padding: 14px 0;
    border-top: 1px solid var(--line-cool);
    border-bottom: 1px solid var(--line-cool);
}
.detail-strip .k {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--fainter);
}
.detail-strip .v {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-top: 4px;
}

.talklist { margin-top: 8px; }
.talk {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-warm);
}
.talk .topic-add { align-self: center; }
.talk:last-child { border-bottom: 0; }
.talk .time { width: 96px; flex: none; font-size: 12px; font-weight: 600; color: var(--teal); }
.talk .t    { font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--ink); }
.talk .who  { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-top: 3px; }
.talk .grow { flex: 1; min-width: 0; color: inherit; }
.talk.mine  { background: var(--teal-soft); border-radius: 10px; padding: 12px 10px; }

.clash-row { padding: 10px 0; border-bottom: 1px solid var(--accent-line); }
.clash-link { display: flex; align-items: center; gap: 10px; }
.clash-link:active { opacity: 0.65; }
.clash-row:last-of-type { border-bottom: 0; }

.remind {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 14px;
    background: #fff;
    border-radius: 12px;
    padding: 11px 13px;
}
.remind span { flex: 1; font-size: 12px; font-weight: 500; color: var(--ink-soft); line-height: 1.4; }

.dayhead {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 22px 0 10px;
}
.dayhead .n { font-family: var(--serif); font-weight: var(--display-weight); letter-spacing: var(--tight); font-size: 20px; color: var(--ink); }
.dayhead .d { font-size: 12px; font-weight: 600; color: var(--faint); }

.note {
    display: flex;
    gap: 13px;
    background: var(--card);
    border: 1px solid var(--line-cool);
    border-radius: 16px;
    padding: 15px 16px;
    color: inherit;
}
.note + .note { margin-top: 9px; }
.note.unread { border-color: var(--accent-line); background: var(--warn-bg); }
.note-dot { width: 8px; height: 8px; flex: none; margin-top: 6px; border-radius: 50%; background: var(--orange); }
.note-dot.read { background: var(--line); }
.note .t { font-size: 14px; font-weight: 600; }
.note .b { font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.note .w { font-size: 11px; font-weight: 600; color: var(--fainter); margin-top: 7px; }

.hall-row {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-hair);
}
.hall-row:last-child { border-bottom: 0; }
.hall-key {
    width: 40px; height: 40px;
    flex: none;
    border-radius: 12px;
    background: var(--teal);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hall-key   { background: var(--hall-a); }
.hall-key.b { background: var(--hall-b); }
.hall-key.c { background: var(--hall-c); }
.hall-key.d { background: var(--hall-d); }

.facgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 10px; }
.faccard { min-width: 0; text-align: center; }
.facphoto {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    object-fit: cover;
    background: var(--teal-soft);
    border: 1px solid var(--line);
}
.facphoto-none {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.facname {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.35;
    margin-top: 8px;
}

.facplace {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 500;
    color: var(--muted);
    line-height: 1.35;
    margin-top: 4px;
}

.facflag {
    flex: none;
    width: 18px;
    height: 12px;
    border-radius: 2px;
    border: 1px solid var(--line);
    object-fit: cover;
}

.person { display: flex; align-items: center; gap: 13px; }
.person + .person { margin-top: 9px; }
.person .avatar { background: var(--teal-soft); color: var(--teal); }

.meter { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 10px; }
.meter i { display: block; height: 100%; background: var(--teal); }

.badge-card {
    background: linear-gradient(160deg, var(--teal) 0%, var(--teal-deep) 100%);
    border-radius: 22px;
    padding: 22px;
    color: #fff;
    text-align: center;
}
.badge-card .n { font-family: var(--serif); font-weight: var(--display-weight); letter-spacing: var(--tight); font-size: 24px; }
.badge-card .m { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.72); margin-top: 4px; }

.badge-qr {
    width: 188px;
    margin: 18px auto 0;
    background: #fff;
    border-radius: 16px;
    padding: 12px;
}
.badge-qr svg { width: 100%; height: auto; display: block; }

.badge-code {
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 15px;
    letter-spacing: normal;
    margin-top: 14px;
}
.badge-hint { font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.6); margin-top: 6px; }

.kv { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line-hair); }
.kv:last-child { border-bottom: 0; }
.kv .k { font-size: 12px; font-weight: 500; color: var(--faint); }
.kv .v { font-size: 13px; font-weight: 600; text-align: right; word-break: break-word; }

.has-tabs .wrap { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

.toast {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(22px + env(safe-area-inset-bottom));
    z-index: 60;

    display: flex;
    align-items: center;
    gap: 9px;
    width: calc(100% - 40px);
    max-width: calc(var(--app-max) - 40px);
    padding: 12px 15px;
    border-radius: 14px;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    color: #fff;
    background: var(--teal-deep);
    box-shadow: 0 10px 30px rgba(7, 51, 47, 0.28);

    animation: toast-in 0.22s ease-out;
}

.has-tabs .toast { bottom: calc(78px + env(safe-area-inset-bottom)); }

.toast svg { flex: 0 0 auto; }
.toast-warn { background: var(--warn-ink); }

.toast.out { opacity: 0; transform: translateX(-50%) translateY(6px); transition: 0.45s ease-in; }

@keyframes toast-in {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .toast { animation: none; }
    .toast.out { transition: none; }
}

.tabbar {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100%;
    max-width: var(--app-max);    display: flex;
    padding: 9px 8px calc(10px + env(safe-area-inset-bottom));
    background: var(--tab-bg);
    border-top: 1px solid var(--hdr-line);
    z-index: 40;
}
.tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 2px 0;
    color: var(--muted-4);
}
.tab span { font-size: 10px; font-weight: 600; letter-spacing: -0.01em; }
.tab.on { color: var(--teal); }

.typetabs {
    display: flex;
    gap: 6px;
    padding: 0 20px 13px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.typetabs::-webkit-scrollbar { display: none; }

.typetab {
    flex: none;
    padding: 6px 11px;
    border: 1px solid var(--line-cool);
    border-radius: 999px;
    background: #fff;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
}
.typetab.on { background: var(--ink); border-color: var(--ink); color: #fff; }

.livestrip {
    background: var(--gold-bg);
    border: 1px solid var(--gold-line);
    border-radius: 18px;
    padding: 16px 18px;
    margin-bottom: 12px;
}
.livestrip .k {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--gold-ink);
}
.livestrip .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--warn-ink);
    flex: none;
}
.livestrip .row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 11px;
    color: inherit;
}
.livestrip .row .t { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.livestrip .row .m { font-size: 11px; font-weight: 500; color: var(--faint); margin-top: 2px; }
.livestrip .next-k {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--faint);
    margin-top: 16px;
    padding-top: 13px;
    border-top: 1px solid var(--gold-line);
}
.livestrip .next-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 9px;
    color: inherit;
}
.livestrip .next-row .t { flex: 1; font-size: 12px; font-weight: 500; color: var(--ink-soft); line-height: 1.4; }
.livestrip .next-row .w { font-size: 11px; font-weight: 600; color: var(--faint); white-space: nowrap; }

.chip-live { background: var(--warn-ink); color: #fff; }
.chip-done { background: var(--line); color: var(--fainter); }
.chip-type { background: var(--fill-2); color: var(--muted); }
.session.done, .sess.done { opacity: 0.62; }

.syncline {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    margin-bottom: 14px;
    border: 1px solid var(--line-cool);
    border-radius: 12px;
    background: var(--hdr-bg);
    font-size: 11px;
    font-weight: 600;
    color: var(--teal);
    line-height: 1.4;
}

.nowline {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--warn-ink);
    z-index: 3;
}
.nowflag {
    position: absolute;
    left: -34px;
    padding: 3px 6px;
    border-radius: 999px;
    background: var(--warn-ink);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    z-index: 4;
}

.actions {
    display: flex;
    gap: 9px;
    margin-top: 12px;
}
.action {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 13px 6px;
    border: 1px solid var(--line-cool);
    border-radius: 14px;
    background: #fff;
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-soft);
    text-align: center;
    line-height: 1.3;
    cursor: pointer;
}

.notebox {
    margin-top: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--fill-2);
}
.notebox .top { display: flex; justify-content: space-between; align-items: baseline; }
.notebox input {
    width: 100%;
    margin-top: 9px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    outline: none;
}
.notebox .hint { font-size: 11px; font-weight: 500; color: var(--fainter); margin-top: 9px; line-height: 1.5; }
.notebox .clear { font-size: 11px; font-weight: 600; color: var(--fainter); cursor: pointer; background: none; border: 0; }

.attendbox {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    margin-top: 10px;
    padding: 13px 15px;
    border: 1px solid var(--line-cool);
    border-radius: 14px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}
.attendbox .tick {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fill-2);
    color: var(--fainter);
    flex: none;
}
.attendbox.on { background: var(--teal-soft); border-color: var(--brand-line); color: var(--teal); }
.attendbox.on .tick { background: var(--teal); color: #fff; }

.attendpill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 9px;
    padding: 5px 10px;
    border: 1px solid var(--line-cool);
    border-radius: 999px;
    background: var(--fill);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--muted);
    cursor: pointer;
}
.attendpill.on { background: var(--teal-soft); border-color: var(--brand-line); color: var(--teal); }

.notepreview {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-top: 9px;
    padding: 8px 10px;
    border-radius: 9px;
    background: var(--fill);
    font-size: 11px;
    font-weight: 500;
    color: var(--ink-soft);
    line-height: 1.45;
}

.logo-grid { display: grid; gap: 9px; margin-top: 10px; }
.logo-grid.two   { grid-template-columns: repeat(2, 1fr); }
.logo-grid.three { grid-template-columns: repeat(3, 1fr); }
.logo-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--line);
    border-radius: 12px;
    background: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--fainter);
}

.partner {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 15px;
    border: 1px solid var(--line-cool);
    border-radius: 16px;
    background: #fff;
}
.partner + .partner { margin-top: 9px; }
.partner .mark {
    width: 58px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-soft);
    color: var(--teal);
    font-size: 11px;
    font-weight: 700;
    flex: none;
}
.partner .n { flex: 1; font-size: 12px; font-weight: 500; color: var(--muted); line-height: 1.5; }

.stallmap {
    padding: 16px;
    border: 1px solid var(--line-cool);
    border-radius: 18px;
    background: var(--fill-2);
    margin-top: 10px;
}
.stallmap .rowlabel {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--fainter);
}
.stallrow { display: flex; gap: 6px; margin: 7px 0 14px; }
.stall {
    flex: 1;
    min-width: 40px;
    padding: 13px 4px;
    border: 1px dashed var(--line);
    border-radius: 10px;
    background: #fff;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
}
.stallmap .entrance {
    padding: 12px;
    border-radius: 10px;
    background: var(--teal-soft);
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--teal);
}

.slabtabs { display: flex; gap: 8px; }
.slabtab {
    flex: 1;
    padding: 9px 11px;
    border-radius: 12px;
    background: var(--fill);
    color: var(--muted);
}
.slabtab.on { background: var(--teal); color: #fff; }
.slabtab .k { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; opacity: 0.75; }
.slabtab .v { display: block; font-size: 13px; font-weight: 600; margin-top: 2px; }

.fee-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fee-row .amount { font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.fee-row .amount.none { color: var(--fainter); }

.acc {
    border: 1px solid var(--line-cool);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}
.acc + .acc { margin-top: 9px; }
.acc > summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary .grow { flex: 1; }
.acc > summary svg { transition: transform 0.18s; color: var(--fainter); flex: none; }
.acc[open] > summary svg { transform: rotate(180deg); }
.acc .acc-body {
    padding: 0 16px 15px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    line-height: 1.65;
}

.glance {
    display: block;
    border: 1px solid var(--line-cool);
    border-left: 4px solid var(--teal);
    border-radius: 16px;
    background: #fff;
    padding: 14px 16px;
    color: inherit;
}
.glance + .glance { margin-top: 9px; }
.glance   { border-left-color: var(--hall-a); }
.glance.b { border-left-color: var(--hall-b); }
.glance.c { border-left-color: var(--hall-c); }
.glance.d { border-left-color: var(--hall-d); }
.glance .w { font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 7px; }
.glance .th { font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 4px; line-height: 1.35; }
.glance .d { font-size: 12px; font-weight: 500; color: var(--faint); margin-top: 4px; }

.grid-now {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
}
.grid-now .flag {
    padding: 3px 7px;
    border-radius: 999px;
    background: var(--warn-ink);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    flex: none;
}
.grid-now .rule { flex: 1; height: 2px; border-radius: 2px; background: var(--warn-ink); }
.grid-now .at { font-size: 10px; font-weight: 600; color: var(--warn-ink); flex: none; }

.grid-cell.done { opacity: 0.5; }
.grid-cell.live { outline: 2px solid var(--warn-ink); outline-offset: -2px; }

.sess-wrap {
    background: var(--card);
    border: 1px solid var(--line-cool);
    border-left: 4px solid var(--teal);
    border-radius: 16px;
    overflow: hidden;
}
.sess-wrap.mine { border-color: var(--brand-line); box-shadow: 0 2px 10px rgba(14, 92, 85, 0.06); }
.sess-wrap.b { border-left-color: var(--hall-b); }
.sess-wrap.c { border-left-color: var(--hall-c); }
.sess-wrap.d { border-left-color: var(--hall-d); }
.sess-wrap.x { border-left-color: var(--gold); }
.sess-wrap .sess.flush { border: 0; border-left: 0; background: transparent; box-shadow: none; }
.sess-wrap .sess-foot { padding: 0 15px 13px 87px; }
.sess-wrap .attendpill { margin-top: 0; }

/* Remove, on My Agenda. Small and quiet until wanted, but a full thumb's
   height to hit; the confirm dialog is the safety, not the size. */
.agenda-remove-form { margin: -2px 0 0; }
.agenda-remove {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 34px; padding: 0 14px;
    border: 1px solid #E8C4BA; border-radius: 999px;
    background: #FFF7F5; color: #B23A26;
    font: inherit; font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em;
    cursor: pointer;
}
.agenda-remove:hover  { background: #FCEAE5; border-color: #D9A091; }
.agenda-remove:focus-visible { outline: 2px solid #B23A26; outline-offset: 2px; }
.agenda-remove:disabled { opacity: 0.6; cursor: default; }

.acc > summary .acc-n {
    flex: none;
    min-width: 22px;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--line-hair);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.memlist { margin-top: 11px; border-top: 1px solid var(--line-cool); }
.memlist.flush { margin-top: 0; border-top: 0; }
.memlist.flush .mem:first-child { padding-top: 0; }
.mem {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line-cool);
}

.mem-face {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    background: var(--fill-2);
    border: 1px solid var(--line);
}

.mem-face-none {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #0F6155;
    background: var(--teal-soft);
    border-color: transparent;
}
.mem:last-child { border-bottom: 0; padding-bottom: 0; }
.mem-n { flex: 1; font-size: 13px; font-weight: 600; color: var(--ink); }
.mem-r {
    flex: none;
    font-size: 11px;
    font-weight: 600;
    color: var(--teal);
    letter-spacing: 0.02em;
    text-align: right;
}

.dist {
    flex: none;
    font-size: 12px;
    font-weight: 700;
    color: var(--teal);
    white-space: nowrap;
}

.legs { display: flex; gap: 14px; margin-top: 4px; }
.legs > div { font-size: 11px; font-weight: 500; color: var(--faint); }
.legs b { font-weight: 700; color: var(--muted); }

.factlist { margin-top: 8px; }
.fact {
    padding: 12px 15px;
    border: 1px solid var(--line-cool);
    border-radius: 14px;
    background: #fff;
}
.fact + .fact { margin-top: 8px; }
.fact .h { font-size: 14px; font-weight: 600; color: var(--ink); }
.fact .p { margin-top: 5px; font-size: 12.5px; font-weight: 500; color: var(--muted); line-height: 1.6; }

.addmore {
    display: block;
    border: 1px dashed var(--muted-6);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--teal);
}

.list-row.tall { padding: 16px 17px; gap: 14px; min-height: 60px; }
.list-row.tall .t { font-size: 16px; }
.list-row.tall .s { font-size: 13.5px; color: var(--muted); line-height: 1.4; }

.home-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: calc(14px + env(safe-area-inset-top)) 20px 14px;
}
.lockup { height: 58px; width: auto; }
.home-tools { display: flex; align-items: center; gap: 9px; flex: none; }
.avatar.sm { width: 36px; height: 36px; font-size: 14.5px; }

.hero {
    background: var(--teal);
    color: #fff;
    padding: 20px 22px 22px;
}
.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.hero-top .k {
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.52);
}
.hero-top .n {
    font-family: var(--serif);
    font-weight: var(--display-weight);
    letter-spacing: var(--tight);
    font-size: 24px;
    margin-top: 4px;
}
.hero-top:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.hero-top .id {
    flex: none;
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-align: right;
    line-height: 1.5;
}
.hero-title {
    font-family: var(--serif);
    font-weight: var(--display-weight);
    letter-spacing: var(--tight);
    font-size: 27px;
    line-height: 1.14;
}
.hero-where {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 13px;
    flex-wrap: wrap;
}
.hero-where .d {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent-pale);
}
.hero-where .dot {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
}
.hero-where .v {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.6);
}
.hero-count {
    display: flex;
    align-items: flex-end;
    gap: 13px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.hero-count .n {
    font-family: var(--serif);
    font-weight: var(--display-weight);
    font-size: 48px;
    line-height: 0.85;
    color: var(--accent-pale);
}
.hero-count .t {
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.4;
    padding-bottom: 3px;
}
.hero-count .t span { font-weight: 500; color: rgba(255, 255, 255, 0.44); }

.bigrow {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 17px 18px;
    color: inherit;
}
.bigrow + .bigrow { margin-top: 10px; }
.bigrow .grow { flex: 1; min-width: 0; }
.bigrow .t {
    font-family: var(--serif);
    font-weight: var(--display-weight);
    letter-spacing: var(--tight);
    font-size: 19px;
    color: var(--ink);
}
.bigrow .s { font-size: 13.5px; font-weight: 500; color: var(--faint); margin-top: 3px; }
.bigrow.on { background: var(--teal); border-color: var(--teal); }
.bigrow.on .t { color: #fff; }
.bigrow.on .s { color: rgba(255, 255, 255, 0.58); }

.livecard { padding: 17px 18px; margin-bottom: 12px; }
.livecard .top { display: flex; align-items: center; gap: 8px; }
.livecard .top .dot {
    width: 8px; height: 8px;
    border-radius: 999px;
    background: var(--live);
    flex: none;
}
.livecard .top .k {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--live);
}
.livecard .top .m {
    margin-left: auto;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--faint);
}
.livecard .one { display: block; margin-top: 14px; color: inherit; }
.livecard .tags { display: flex; align-items: center; gap: 8px; }
.livecard .one .t {
    font-family: var(--serif);
    font-weight: var(--display-weight);
    letter-spacing: var(--tight);
    font-size: 20px;
    color: var(--ink);
    margin-top: 8px;
    line-height: 1.25;
}
.livecard .one .m { font-size: 13.5px; font-weight: 500; color: var(--faint); margin-top: 5px; }
.livecard-foot { display: flex; gap: 9px; margin-top: 16px; }
.livecard-foot .btn { padding: 12px; font-size: 14.5px; border-radius: 12px; }
.livecard-foot .btn + .btn-ghost { margin-top: 0; width: auto; white-space: nowrap; padding: 12px 15px; }

.starter-soft {
    background: var(--teal-soft);
    border: 1px solid var(--brand-line);
    border-radius: 18px;
    padding: 16px 18px;
    margin-top: 12px;
}
.starter-soft .k {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--teal);
}
.starter-soft .p {
    font-size: 15.5px;
    font-weight: 600;
    color: var(--ink);
    margin-top: 7px;
    line-height: 1.45;
}
.starter-soft .step {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 9px;
    color: inherit;
}
.starter-soft .step:first-of-type { margin-top: 13px; }
.starter-soft .step .l {
    flex: 1;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink-soft);
    line-height: 1.4;
}

.step-n {
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    color: var(--teal);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clashstrip {
    display: block;
    background: var(--warn-bg);
    border: 1px solid var(--accent-line);
    border-radius: 14px;
    padding: 12px 15px;
    margin-top: 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--warn-ink);
}

.qgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.qgrid .qtile:last-child:nth-child(odd) { grid-column: 1 / -1; }
.qtile {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 13px 13px 14px;
    color: inherit;
}
.qtile .ic {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-soft);
    color: var(--teal);
}
.qtile .ic.a { background: #DCEFEB; color: #0F6155; }.qtile .ic.b { background: #E4EAFB; color: #2B5FD9; }.qtile .ic.c { background: #FCE4EC; color: #C2185B; }.qtile .ic.d { background: #FBF0D5; color: #B07D10; }.qtile .ic.e { background: #EDE6FB; color: #6A3DBF; }.qtile .ic.f { background: #E3F3E4; color: #2E7D32; }.qtile .ic.g { background: #FDEEDC; color: #E07B1E; }.qtile .ic.h { background: #FBE7E1; color: #C0492F; }.qtile .ic.i { background: #DDF0F5; color: #0F7B94; }.qtile .t { font-size: 14.5px; font-weight: 600; color: var(--ink); margin-top: 10px; line-height: 1.25; }
.qtile .s { font-size: 13.5px; font-weight: 500; color: var(--muted); margin-top: 3px; }

.starbtn {
    flex: none;
    align-self: flex-start;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    background: var(--fill);
    color: var(--muted-5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.starbtn.on { background: var(--teal); color: var(--accent-pale); }

.announce {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    background: var(--warn-bg);
    border: 1px solid var(--accent-line);
    border-radius: 14px;
    padding: 13px 15px;
    color: inherit;
}
.announce + .announce { margin-top: 9px; }
.announce .t { font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.announce .b { font-size: 13.5px; font-weight: 500; color: var(--warn-ink); margin-top: 3px; line-height: 1.45; }

.logos { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 9px; }
.logoslot {
    height: 48px;
    border-radius: 12px;
    background: var(--card);
    border: 1px dashed var(--field-line);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 6px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--muted-5);
}
.logoslot.filled {
    border-style: solid;
    border-color: var(--line);
    color: var(--ink-soft);
    font-size: 11px;
    letter-spacing: 0;
}

.citycards {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -20px;
    padding: 0 20px 2px;
}
.citycards::-webkit-scrollbar { display: none; }

.citycard {
    flex: 0 0 124px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: var(--card);
    color: inherit;
    display: block;
}
.citycard .ph {
    display: block;
    width: 100%;
    height: 62px;
    object-fit: cover;
    background: var(--fill);
    border-bottom: 1px solid var(--line);
}
.citycard .t {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
    padding: 9px 10px 0;
}
.citycard .s {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--fainter);
    padding: 2px 10px 11px;
}

.citycard-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--fill);
    border-style: dashed;
}
.citycard-more .more-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 6px;
    border-radius: 50%;
    color: var(--teal);
    background: var(--card);
    border: 1px solid var(--line);
}
.citycard-more .t { color: var(--teal); padding: 0 8px; }
.citycard-more .s { padding: 2px 8px 0; }

.statgrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.statbox {
    background: var(--card);
    border: 1px solid var(--line-warm);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
}

.statnum {
    font-size: 22px;
    font-weight: 700;
    color: var(--teal);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.statlab {
    font-size: 11px;
    color: var(--muted);
    margin-top: 3px;
    line-height: 1.3;
}

.statinline {
    font-size: 17px;
    font-weight: 700;
    color: var(--teal);
    font-variant-numeric: tabular-nums;
    padding-left: 10px;
}

@media (max-width: 340px) {
    .statgrid { grid-template-columns: repeat(2, 1fr); }
}

.receipt-head { display: flex; align-items: center; gap: 14px; }
.receipt-head img { width: 96px; flex: none; }
.receipt-org { font-size: 11.5px; font-weight: 600; color: var(--muted); line-height: 1.5; }

.rcp-lines { margin-top: 10px; }

.rcp-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line-warm);
}
.rcp-line:last-child { border-bottom: 0; }

.rcp-desc { min-width: 0; }
.rcp-t { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.rcp-s { font-size: 11.5px; font-weight: 500; color: var(--muted); line-height: 1.45; margin-top: 2px; }

.rcp-amt {
    flex: none;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.rcp-off { color: var(--teal); }

.receipt-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}
.receipt-total strong {
    font-family: var(--serif);
    font-weight: var(--display-weight);
    letter-spacing: var(--tight);
    font-size: 24px;
    color: var(--ink);
}
.receipt-note {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--fainter);
    line-height: 1.6;
    margin-top: 14px;
}

/* The clash modal: what is already booked, what was just tapped. */
.swap-wrap { position: fixed; inset: 0; z-index: 60; display: flex;
             align-items: flex-end; justify-content: center; }
.swap-back { position: absolute; inset: 0; background: rgba(20, 32, 28, 0.45); }

.swap {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: var(--card);
    border-radius: 18px 18px 0 0;
    padding: 20px 18px calc(18px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
    animation: swap-up 0.18s ease-out;
    max-height: 86vh;
    overflow-y: auto;
}
@keyframes swap-up { from { transform: translateY(14px); opacity: 0; } }

.swap-h { font-family: var(--serif); font-weight: var(--display-weight);
          font-size: 20px; color: var(--ink); letter-spacing: var(--tight); }
.swap-p { font-size: 13.5px; font-weight: 500; color: var(--muted);
          line-height: 1.6; margin-top: 6px; }

.swap-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em;
              color: var(--fainter); margin: 16px 0 7px; }

.swap-item { border: 1px solid var(--line-warm); border-radius: 12px;
             padding: 11px 13px; margin-bottom: 7px; background: var(--fill-2); }
.swap-t { font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.swap-s { font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 3px; }

.swap-btns { margin-top: 18px; display: flex; flex-direction: column; gap: 9px; }
.swap-btns .btn { margin: 0; }

/* Below the fold on a small phone the sheet scrolls; on a tablet it centres. */
@media (min-height: 620px) and (min-width: 520px) {
    .swap-wrap { align-items: center; }
    .swap { border-radius: 18px; }
}

/* Search across the programme, above the day tabs. */
.progsearch {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 14px 20px 12px;
    padding: 0 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
}
.progsearch svg { flex: none; }

/* Search, notifications and the delegate's own avatar, on every header. */
.head-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
    margin-left: auto;
}

/* The search, lifted over the page it was opened from. */
.findwrap { position: fixed; inset: 0; z-index: 60; }
.findwrap[hidden] { display: none; }
.findback {
    position: absolute;
    inset: 0;
    background: rgba(12, 32, 29, 0.55);
    backdrop-filter: blur(2px);
}
.find {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 100%;
    max-width: 460px;
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    margin-top: calc(10px + env(safe-area-inset-top));
    background: var(--card);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(7, 32, 29, 0.38),
                0 2px 10px rgba(7, 32, 29, 0.18);
    overflow: hidden;
    animation: findin .16s ease-out;
}
@keyframes findin {
    from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.find-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
    padding: 4px 14px;
    border-bottom: 1px solid var(--line);
}
.find-bar svg { flex: none; }
.find-bar input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: none;
    padding: 15px 0;
    font: inherit;
    font-size: 15px;
    color: var(--ink);
}
.find-bar input:focus { outline: none; }
.find-bar input::-webkit-search-cancel-button { display: none; }
.find-x {
    flex: none;
    border: 0;
    background: none;
    padding: 0 2px;
    font-size: 24px;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
}

.find-out { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.find-hint {
    padding: 22px 18px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--faint);
    text-align: center;
}
.find-label {
    padding: 12px 16px 5px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.07em;
    color: var(--fainter);
}
.find-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 16px;
    color: inherit;
}
.find-row:active { background: var(--fill); }
.find-face {
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 10px;
    object-fit: cover;
    background: var(--fill);
}
.find-face-none {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--teal);
    background: var(--teal-soft);
}
.find-text { min-width: 0; }
.find-t {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.35;
}
.find-s {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    margin-top: 2px;
}
.find-h {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--teal);
    margin-top: 2px;
}

/* Opens the place in Google Maps, at the foot of its page. */
.mapbtn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}
.mapbtn svg { flex: none; }

/* Running text reads as justified throughout. Single-line labels are
   unaffected -- justification only stretches lines that wrap, and never
   the last line of a block. Centred messages keep their own alignment. */
.placelead,
.placebody,
.card .sess-meta,
.acc-body .sess-meta,
.prose,
.notice-text {
    text-align: justify;
    hyphens: auto;
}
.empty,
.find-hint,
.card .sess-meta .notice-contact { text-align: center; }
.notice-contact { text-align: left; }

/* A short standing note with a mark beside it. */
.notice { display: flex; gap: 10px; align-items: flex-start; }
.notice-ico { flex: none; line-height: 0; margin-top: 1px; }
.notice-text {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
    color: #6B5A32;
    text-align: justify;
}
.notice-contact { margin-top: 8px; font-weight: 600; text-align: left; }
.notice-contact span { padding: 0 4px; color: var(--muted-4); }

/* Running text: the welcome letter and anything like it. */
.prose {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.7;
    color: var(--muted);
    text-align: justify;
    hyphens: auto;
}
.prose p { margin-top: 11px; }
.prose p:first-child { margin-top: 0; }
.prose strong { font-weight: 700; color: var(--ink-soft); }
.prose-sign { text-align: left; color: var(--teal); }

.progsearch input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: none;
    padding: 11px 0;
    font: inherit;
    font-size: 15px;
    color: var(--ink);
}
.progsearch input::placeholder { color: var(--muted-4); }
.progsearch input:focus { outline: none; }
.progsearch input::-webkit-search-cancel-button { display: none; }
.progsearch-clear {
    flex: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--teal);
}

/* Which talk inside the block actually matched. */
.sess-hit-list { margin-top: 7px; border-left: 2px solid var(--accent-line); padding-left: 9px; }
.sess-hit-row { font-size: 12.5px; line-height: 1.45; margin-top: 2px; }
.sess-hit-row .t { color: var(--ink-soft); font-weight: 500; }
.sess-hit-row .w { color: var(--muted); }
.sess-hit-row .w::before { content: ' · '; }

/* The lectures under a block. Each is its own choice, so each carries its
   own + and sits on a full-width row below the block's card. */
.sess-topics {
    /* 100% plus a left margin would overflow the row, so the margin comes
       out of the basis: 60px time column + its 12px gap. */
    flex: 0 0 calc(100% - 72px);
    min-width: 0;
    margin: 2px 0 0 72px;
    border-left: 2px solid var(--accent-line);
    padding-left: 10px;
}
.sess-topic {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 7px 0;
    border-top: 1px solid var(--line);
}
.sess-topic:first-child { border-top: 0; }
.sess-topic.mine { background: var(--teal-soft); border-radius: 8px; padding: 4px 6px; }

.sess-topic-hit {
    flex: 1;
    min-width: 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: inherit;
}
/* Time, topic and speaker each on their own line: three short lines read
   faster than one wrapped paragraph. */
.sess-topic .tm {
    display: block;
    font-size: 11.5px;
    color: var(--ink-3);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.sess-topic .tt {
    display: block;
    color: var(--ink);
    font-weight: 600;
    margin-top: 1px;
}
/* The speaker carries the brand colour: it is what a delegate scans for,
   and it keeps the three lines visually distinct. */
.sess-topic .tw {
    display: block;
    color: var(--teal);
    font-weight: 600;
    margin-top: 1px;
}

.topic-add {
    flex: none;
    align-self: flex-start;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 999px;
    background: var(--fill);
    color: var(--muted);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    white-space: nowrap;
}
.topic-add.on     { background: var(--teal); color: #fff; font-size: 12px; }
.topic-add.locked { background: transparent; color: var(--gold); cursor: default; }
.topic-add:disabled { opacity: .5; }

/* One faculty member and their sessions. */
.spk-head { display: flex; gap: 14px; align-items: center; margin-bottom: 4px; }
.spk-photo {
    width: 84px;
    height: 84px;
    flex: none;
    border-radius: 16px;
    object-fit: cover;
    background: var(--fill);
}
.spk-photo-none {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--teal);
    background: var(--teal-soft);
}
.spk-id { min-width: 0; }
.spk-name { font-family: var(--serif); font-size: 21px; font-weight: var(--display-weight);
            letter-spacing: var(--tight); line-height: 1.2; color: var(--ink); }
.spk-place { display: flex; align-items: center; gap: 6px; margin-top: 5px;
             font-size: 12.5px; font-weight: 500; color: var(--muted); }
.spk-where { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-top: 3px; }

.spk-day {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--teal);
    margin: 16px 0 6px;
}
.spk-day span { color: var(--fainter); font-weight: 600; margin-left: 6px; }

.spk-sess {
    background: var(--card);
    border: 1px solid var(--line-cool);
    border-left: 4px solid var(--teal);
    border-radius: 14px;
    padding: 12px 14px;
    margin-top: 8px;
    color: inherit;
}
.spk-sess.mine { border-color: var(--brand-line); background: var(--teal-soft); }
.spk-sess { display: flex; gap: 10px; align-items: flex-start; }
.spk-hit { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: flex-start; color: inherit; }
.spk-sess.b { border-left-color: var(--hall-b); }
.spk-sess.c { border-left-color: var(--hall-c); }
.spk-sess.d { border-left-color: var(--hall-d); }
.spk-sess.x { border-left-color: var(--gold); }
.spk-sess .grow { flex: 1; min-width: 0; }
/* Start and finish on one line, as on the session page. */
.spk-when {
    width: 96px;
    flex: none;
    font-size: 12px;
    font-weight: 700;
    color: var(--teal);
    line-height: 1.4;
}
.spk-tags { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.spk-title { font-size: 14.5px; font-weight: 600; color: var(--ink);
             margin-top: 6px; line-height: 1.35; }
.spk-in { font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 4px; }

@media print {
    body { background: #fff; }
    .head, .tabbar, .btn, .btn-ghost, .fhint { display: none !important; }
    .body { padding: 0; }
    .receipt { border: 0; box-shadow: none; padding: 0; }
}

.brochure {
    width: 100%;
    height: auto;
    margin-top: 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--fill-2);
}

.placerow { gap: 13px; }

.placeshot {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--fill-2);
    border: 1px solid var(--line);
}

.fact.withshot { padding: 0; overflow: hidden; }
.fact.withshot .shot {
    display: block;
    width: 100%;
    height: 152px;
    object-fit: cover;
    background: var(--fill-2);
    border-bottom: 1px solid var(--line);
}
.fact.withshot .h,
.fact.withshot .p { padding: 0 15px; }
.fact.withshot .h { padding-top: 13px; }
.fact.withshot .p { padding-bottom: 14px; }

.gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}
.gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--fill-2);
}

.cityhero {
    width: 100%;
    height: 168px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--fill-2);
    margin-bottom: 4px;
}


/* ============================================================
   SCANNER (scan.php) - volunteers at the door
   Big, colour-first results: the volunteer is watching the queue,
   not reading the screen.
   ============================================================ */
.scanpage .halltab { font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.scan-modes .halltab { flex: 1; padding: 12px 10px; font-size: 14px; }
.scan-today {
    margin: 4px 0 0; font-size: 13px; font-weight: 600; color: var(--teal);
}
.scan-practice {
    margin: 4px 0 2px; padding: 12px 14px; border-radius: 12px;
    background: #FFF6E2; border: 1px solid #EBD39A; color: #6B5A32;
    font-size: 13px; line-height: 1.5;
}
.scan-practice .scan-days { display: flex; gap: 6px; margin-top: 8px; }
.scan-modenote { font-size: 12.5px; color: var(--faint); margin: -4px 0 12px; line-height: 1.45; }
.scan-modenote.is-course { color: #7A4A0E; font-weight: 600; }

.scan-cam {
    position: relative; text-align: center; padding: 14px; border-radius: 14px;
    background: #10201C; color: #E8EFEC; margin-bottom: 14px;
}
.scan-cam video {
    display: block; width: 100%; max-height: 52vh; object-fit: cover;
    border-radius: 10px; margin-bottom: 12px; background: #000;
}
/* display:block above beats the [hidden] attribute; keep the preview gone until the camera runs */
.scan-cam video[hidden], .scan-aim[hidden] { display: none; }
.scan-aim {
    position: absolute; left: 50%; top: 14px; width: 58%; aspect-ratio: 1;
    transform: translateX(-50%); margin-top: 6%;
    border: 3px solid rgba(255,255,255,0.85); border-radius: 18px;
    box-shadow: 0 0 0 9999px rgba(0,0,0,0.18); pointer-events: none;
}
.scan-camnote { font-size: 12.5px; color: #B9C7C2; margin-top: 10px; line-height: 1.45; }
.scan-camnote.is-bad { color: #FFD0C4; }

.scan-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--faint); margin-bottom: 6px; }
.scan-typerow { display: flex; gap: 8px; }
.scan-typerow input {
    flex: 1; min-width: 0; min-height: 46px; padding: 0 14px;
    border: 1px solid var(--line); border-radius: 12px; background: #fff;
    font: inherit; font-size: 16px; color: var(--ink);
}
.scan-typerow input:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.scan-typerow .btn { width: auto; padding: 0 18px; min-height: 46px; }

.scan-result {
    margin-top: 16px; padding: 18px 16px; border-radius: 16px; border: 2px solid transparent;
}
.scan-big { display: flex; align-items: center; gap: 10px; font-size: 30px; font-weight: 800; letter-spacing: 0.02em; line-height: 1; }
.scan-mark { font-size: 34px; }
.scan-head { font-size: 17px; font-weight: 700; margin-top: 10px; }
.scan-detail { font-size: 14px; margin-top: 4px; line-height: 1.45; }
.scan-who { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(0,0,0,0.08); }
.scan-photo { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; background: #eee; }
.scan-name { font-size: 18px; font-weight: 700; color: var(--ink); }
.scan-meta { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.scan-tag { display: inline-block; margin-top: 12px; padding: 4px 10px; border-radius: 999px; background: #FFF0C9; color: #7A5B12; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; }

.scan-result.is-ok      { background: #E4F5EA; border-color: #2E8B57; color: #14532D; }
.scan-result.is-repeat  { background: #EAF4EF; border-color: #6FAF8B; color: #1F5A3A; }
.scan-result.is-denied,
.scan-result.is-invalid { background: #FDE8E4; border-color: #C0392B; color: #7F1D12; }
.scan-result.is-error   { background: #FFF4E0; border-color: #D9A23A; color: #6B4A0E; }
.scan-result.is-wait    { background: #F3F2EE; border-color: var(--line); color: var(--ink-soft); }

.scan-count { margin: 12px 2px 0; font-size: 13px; font-weight: 600; color: var(--teal); }
.scan-recent { margin-top: 18px; }
.scan-recent ul { list-style: none; margin: 0; padding: 0; }
.scan-recent li { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.scan-recent .r-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: #2E8B57; }
.scan-recent .r-repeat .r-dot { background: #6FAF8B; }
.scan-recent .r-denied .r-dot,
.scan-recent .r-invalid .r-dot { background: #C0392B; }
.scan-recent .r-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scan-recent .r-time { color: var(--faint); font-size: 12px; }
.scan-recent .scan-none { color: var(--faint); }

/* Attendance report (attendance.php) */
.rep-filter .halltab { text-decoration: none; }
.rep-courses .rep-frac { font-weight: 700; color: var(--teal); white-space: nowrap; }
.rep-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0 14px; }
.rep-actions .btn { width: auto; padding: 12px 18px; text-decoration: none; }
.rep-small { font-size: 12.5px; color: var(--faint); }
.rep-search {
    width: 100%; min-height: 44px; padding: 0 14px; margin-bottom: 10px;
    border: 1px solid var(--line); border-radius: 12px; background: #fff;
    font: inherit; font-size: 15px;
}
.rep-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.rep-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 13px; }
.rep-table th { text-align: left; padding: 10px; font-size: 11px; letter-spacing: 0.06em; color: var(--faint); border-bottom: 1px solid var(--line); background: #FAF8F3; white-space: nowrap; }
.rep-table td { padding: 10px; border-bottom: 1px solid #EFEBE2; vertical-align: top; }
.rep-name { font-weight: 600; color: var(--ink); }
.rep-sub { font-size: 12px; color: var(--faint); margin-top: 2px; }
.rep-in { color: #1F6B3E; font-weight: 600; white-space: nowrap; }
.rep-out { color: #B7B1A4; }
.rep-miss { color: #B23A26; }
.rep-days { font-weight: 700; text-align: center; }
.rep-cs div + div { margin-top: 3px; }
.rep-none { text-align: center; color: var(--faint); padding: 20px; }

/* ============================================================
   GALLERY (gallery.php, Home strip) - photos uploaded in the admin panel
   ============================================================ */
.gallery-count { font-size: 12.5px; color: var(--faint); margin: 2px 0 10px; }
.gallery-grid,
.gallery-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gallery-strip { margin-top: 10px; }
.gallery-all { margin-top: 10px; }
/* Single-day pass on the e-badge */
.badge-oneday {
    display: inline-block;
    margin: 8px auto 2px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #FDECEC;
    color: #9B1C1C;
    font-size: 12px;
    font-weight: 700;
}
/* A sponsor with a logo file: its own white box, the logo centred. */
.sponsor-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 96px;
    margin: 10px 0 9px;
    padding: 20px 24px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 6px 18px rgba(22, 33, 29, 0.06);
}
.sponsor-logo img { width: 100%; max-width: 320px; height: auto; display: block; object-fit: contain; }
.gallery-item { display: block; position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: #ECE8DE; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s ease; }
.gallery-item:active img { transform: scale(0.97); }
/* Older Android WebViews have no aspect-ratio: keep the tiles square anyway. */
@supports not (aspect-ratio: 1) {
    .gallery-item { height: 0; padding-top: 100%; }
    .gallery-item img { position: absolute; top: 0; left: 0; }
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; } }

/* ============================================================
   SCIENTIFIC PROGRAMME, as on the website (web/programme-details.php):
   maroon for the chosen day, one colour per hall, a card per hall
   with its sessions and talks, dashed breaks, the evening in a dark
   card, and the website's icons. Used by grid.php and schedule.php.
   ============================================================ */

.prog-days .daytab.on { background: var(--prog-brand); border-color: var(--prog-brand); color: #fff; }
.prog-days .daytab.on .l { color: #f3dfe3; }

/* Hall chips: white with the hall's dot; the chosen one in the hall's tint. */
.prog-chips {
    display: flex;
    gap: 7px;
    padding: 0 0 13px;
    overflow-x: auto;
    scrollbar-width: none;
}
.prog-chips::-webkit-scrollbar { display: none; }
.prog-chip {
    --hall: #94a3b8;
    --hall-tint: #f1f5f9;
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #1f2933;
    font-size: 13px;
    font-weight: 500;
}
.prog-chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--hall); }
.prog-chip.on { border-color: var(--hall); background: var(--hall-tint); font-weight: 700; }
.prog-chip.all.on { border-color: #1f2933; }
.prog-chip.a, .prog-hall.a { --hall: var(--hall-a); --hall-tint: var(--hall-a-card); }
.prog-chip.b, .prog-hall.b { --hall: var(--hall-b); --hall-tint: var(--hall-b-card); }
.prog-chip.c, .prog-hall.c { --hall: var(--hall-c); --hall-tint: var(--hall-c-card); }
.prog-chip.d, .prog-hall.d { --hall: var(--hall-d); --hall-tint: var(--hall-d-card); }

.prog { color: #1f2933; }
.prog-daytitle {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 14px;
    padding-bottom: 9px;
    border-bottom: 2px solid var(--prog-brand);
}
.prog-daytitle small { font-size: 13px; font-weight: 500; color: #64748b; }

/* All halls: side by side, scrolled sideways. One hall: full width. */
.prog-halls { display: flex; gap: 12px; align-items: flex-start; }
.prog-halls.all {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    margin: 0 -20px;
    padding: 0 20px 6px;
    scroll-padding: 0 20px;
}
.prog-halls.all .prog-hall { flex: 0 0 86%; max-width: 330px; scroll-snap-align: start; }
.prog-halls.one .prog-hall { flex: 1; min-width: 0; }

.prog-hall {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}
.ph-head { background: var(--hall); color: #fff; padding: 12px 14px; }
.ph-name { font-size: 16px; font-weight: 700; letter-spacing: .3px; }
.ph-sub  { font-size: 12.5px; opacity: .9; }
.ph-team {
    margin-top: 9px;
    padding-top: 9px;
    border-top: 1px solid rgba(255, 255, 255, .28);
    font-size: 12.5px;
    line-height: 1.45;
}
.ph-team div + div { margin-top: 3px; }
.ph-team span {
    display: inline-block;
    min-width: 88px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    opacity: .8;
}
.ph-body { padding: 10px; display: flex; flex-direction: column; gap: 9px; }

/* A session: hall stripe on the left, tinted head, talks underneath. */
.pb-sess {
    border: 1px solid #e5e7eb;
    border-left: 4px solid var(--hall);
    border-radius: 8px;
    background: #fff;
    scroll-margin-top: 14px;
}
.pb-sess.plenary { border-color: var(--hall); }
.pb-sess.mine { box-shadow: 0 0 0 2px var(--brand-line); }
.pb-sess.done { opacity: .62; }
.pb-sess .s-head {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    background: var(--hall-tint);
    padding: 9px 10px;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0 7px 0 0;
}
.pb-sess .s-hit { flex: 1; min-width: 0; color: inherit; display: block; }
.pb-sess .s-top { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.pb-sess .s-code {
    background: var(--hall);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    border-radius: 4px;
    padding: 1px 7px;
    letter-spacing: .3px;
}
.pb-sess .s-title { font-size: 14.5px; font-weight: 700; color: #1f2933; }
.pb-sess .s-time {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    font-weight: 600;
    color: var(--hall);
    white-space: nowrap;
}
.pb-sess .s-meta { display: block; font-size: 12px; color: #64748b; margin-top: 3px; }
.pb-sess .s-meta b { color: #1f2933; font-weight: 600; }
.pb-sess .s-flag {
    display: inline-block;
    margin-top: 5px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .07em;
    color: var(--teal);
}
.pb-sess .s-flag.live { color: var(--live); }
.pb-add {
    flex: none;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--hall);
    box-shadow: inset 0 0 0 1.5px var(--hall);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}
.pb-add.on     { background: var(--hall); color: #fff; font-size: 14px; }
.pb-add.locked { background: var(--gold-bg); color: var(--gold); box-shadow: none; font-size: 14px; cursor: default; }
.pb-add:disabled { opacity: .5; }

.pb-talks { list-style: none; margin: 0; padding: 0; }
.pb-talk {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    padding: 8px 10px;
    border-top: 1px solid #f1f5f9;
}
.pb-talk:first-child { border-top: 0; }
.pb-talk.mine { background: var(--hall-tint); }
.pb-talk .t-hit {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 8px;
    color: inherit;
}
.pb-talk .t-time {
    white-space: nowrap;
    font-size: 12px;
    color: #64748b;
    font-variant-numeric: tabular-nums;
    line-height: 1.35;
    padding-top: 1px;
}
.pb-talk .t-topic   { display: block; font-size: 13.5px; line-height: 1.4; color: #1f2933; }
.pb-talk .t-speaker {
    display: flex;
    gap: 5px;
    align-items: center;
    margin-top: 3px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--hall);
}
.pb-talk .t-speaker svg { flex: none; opacity: .85; }
.pb-talk .t-speaker.tba { color: #64748b; font-weight: 500; font-style: italic; }
.pb-talk .topic-add { flex: none; }

/* Breaks: dashed and grey, cup for tea, knife and fork for lunch. */
.pb-brk,
.pb-talk.brk-row {
    display: flex;
    align-items: center;
    gap: 9px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 8px 11px;
    font-size: 13px;
    color: #64748b;
}
.pb-talk.brk-row { border-radius: 0; border-width: 1px 0 0; }
.pb-brk svg, .pb-talk.brk-row svg { flex: none; color: #94a3b8; }
.pb-brk.lunch { background: #f1f5f9; }
.pb-brk .b-time, .pb-talk.brk-row .b-time, .pb-evt .b-time {
    margin-left: auto;
    font-variant-numeric: tabular-nums;
    font-size: 12px;
    white-space: nowrap;
}

/* Inauguration, Valedictory: outlined in the hall's colour, with a star. */
.pb-evt {
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1.5px solid var(--hall);
    color: var(--hall);
    border-radius: 8px;
    padding: 9px 11px;
    font-size: 14px;
    font-weight: 700;
}
.pb-evt svg { flex: none; }
.pb-evt .b-time { font-weight: 600; }
.pb-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
    padding: 10px;
    border: 1px dashed #e5e7eb;
    border-radius: 8px;
}

/* The evening, for the whole day. */
.prog-evening {
    margin-top: 16px;
    background: #1f2933;
    color: #e5e7eb;
    border-radius: 12px;
    padding: 14px 16px;
}
.prog-evening h3 {
    display: flex;
    align-items: center;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9ca3af;
    margin: 0 0 8px;
    font-weight: 600;
}
.prog-evening .ev-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding: 8px 0;
    border-top: 1px solid #374151;
    color: inherit;
}
.prog-evening .ev-row:first-of-type { border-top: 0; }
.prog-evening .ev-time  { font-variant-numeric: tabular-nums; color: #9ca3af; font-size: 13px; }
.prog-evening .ev-title { display: block; font-weight: 600; color: #fff; font-size: 14px; }
.prog-evening .ev-where { display: flex; align-items: center; gap: 4px; color: #9ca3af; font-size: 13px; margin-top: 2px; }

.prog-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    justify-content: center;
    font-size: 12.5px;
    color: #64748b;
    margin-top: 20px;
}
.prog-legend span { display: inline-flex; align-items: center; gap: 6px; }
.prog-legend .sq { display: inline-block; width: 11px; height: 11px; border-radius: 2px; background: var(--hall-a); }
.prog-legend .sq.b { background: var(--hall-b); }
.prog-legend .sq.c { background: var(--hall-c); }
.prog-legend .sq.d { background: var(--hall-d); }

/* The List View in the same colours and marks. */
.sess-ico { display: inline-flex; vertical-align: -2px; margin-right: 5px; color: #94a3b8; }
.sess-ico.evt { color: var(--hall-a); }
.sess.b .sess-ico.evt { color: var(--hall-b); }
.sess.c .sess-ico.evt { color: var(--hall-c); }
.sess.d .sess-ico.evt { color: var(--hall-d); }
.sess.break { border-style: dashed; }
.sess-topic.brk { color: #64748b; font-size: 12.5px; border-top-style: dashed; }
.sess-topic.brk svg { flex: none; color: #94a3b8; }
.sess-topic .tw.spk { display: inline-flex; align-items: center; gap: 4px; }
.hall-team .sub {
    display: block;
    min-width: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--muted);
    margin-bottom: 3px;
}
.talk.talk-brk .t { display: flex; align-items: center; gap: 6px; color: #64748b; font-weight: 500; }
.list-evening { margin-top: 20px; }

/* A committee photo opens full screen. */
.mem-zoom { flex: none; display: block; line-height: 0; border-radius: 999px; }

/* ============================================================
   FIRST-TIME WALKTHROUGH (assets/js/tour.js) and the How to use
   the app page (guide.php).
   ============================================================ */
.tour { position: fixed; inset: 0; z-index: 90; }
.tour-back { position: absolute; inset: 0; }
/* The ring's huge shadow is the dim layer, with a hole for the button. */
.tour-ring {
    position: fixed;
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(10, 20, 18, 0.66);
    outline: 2px solid #fff;
    pointer-events: none;
    transition: all .22s ease;
}
.tour-card {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 380px;
    background: #fff;
    border-radius: 16px;
    padding: 16px 16px 14px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
    transition: top .22s ease;
}
.tour-card.mid { top: 50% !important; transform: translate(-50%, -50%); }
.tour.dim .tour-back { background: rgba(10, 20, 18, 0.66); }
.tour-n { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.tour-t { font-size: 17px; font-weight: 800; color: var(--ink); margin-top: 4px; }
.tour-p { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); margin-top: 6px; }
.tour-link { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--teal); }
.tour-btns { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.tour-btns button {
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    cursor: pointer;
}
.tour-skip { background: transparent; color: var(--muted); margin-right: auto; padding-left: 0 !important; }
.tour-prev { background: var(--fill); color: var(--ink-soft); }
.tour-next { background: var(--teal); color: #fff; margin-left: auto; }
.tour-prev + .tour-next { margin-left: 0; }

.guide-intro .t { font-size: 17px; font-weight: 800; color: var(--ink); }
.guide-intro .p { font-size: 13px; line-height: 1.55; color: var(--muted); margin: 6px 0 12px; }
.guide-note { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.guide-row { align-items: flex-start; }
.guide-can { margin: 6px 0 0 16px; padding: 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); }
.guide-can li + li { margin-top: 2px; }

/* Six tabs in the bottom bar: a touch smaller so "Programme" fits. */
.tab span { font-size: 9.5px; white-space: nowrap; }

/* A faculty member's designation, as on the website ("SRU Ambassador to USCON"). */
.facdesig { font-size: 10.5px; font-weight: 600; color: var(--ink-soft); line-height: 1.3; margin-top: 3px; }

/* Academic partner logos on the Sponsors page. */
.partner .mark.mark-logo { width: 72px; height: 52px; background: #fff; border: 1px solid var(--line-cool); padding: 5px; }
.partner .mark-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.partner .n strong { color: var(--ink); font-weight: 700; }
