:root {
  /* Theme: PANTONE 16-1448 TCX Burnt Orange (#C86733) */
  --burnt: #c86733;      /* exact Pantone: accents, borders, strips */
  --burnt-deep: #ab582c; /* same hue, white text passes 4.5:1: header, buttons */
  --navy: #592e17;       /* deep brown: headings, dark text */
  --navy-2: #8e4924;     /* header hover */
  --teal: #ab582c;       /* primary buttons */
  --teal-dark: #8e4924;  /* links, button hover */
  --gold: #e0a526;
  --gold-soft: #fbf1d8;
  --ink: #2b1d14;
  --muted: #6b5548;
  --line: #e8ddd4;
  --bg: #fbf7f3;
  --card: #ffffff;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --ok: #146c43;
  --ok-soft: #e6f4ec;
  --info-soft: #faefe8;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(89, 46, 23, .06), 0 2px 8px rgba(89, 46, 23, .06);
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 1rem/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--teal-dark); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

/* Header */
.site-header { background: var(--burnt-deep); color: #fff; border-bottom: 4px solid var(--navy); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; padding-block: .75rem; }
.brand { color: #fff; text-decoration: none; display: flex; flex-direction: column; line-height: 1.15; }
.brand:hover { color: #fff; }
.brand-code { font-weight: 800; font-size: 1.35rem; letter-spacing: .04em; }
.brand-code span { color: #ffe2a6; }
.brand-name { font-size: .85rem; opacity: .9; }
.nav { display: flex; flex-wrap: wrap; gap: .25rem; margin-left: auto; align-items: center; }
.nav a, .nav button.linklike {
  color: #fff; text-decoration: none; padding: .45rem .7rem; border-radius: 6px; font-size: .95rem;
}
.nav a:hover, .nav a[aria-current="page"], .nav button.linklike:hover { background: var(--navy-2); color: #fff; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 #ffe2a6; }
.nav form { margin: 0; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.5); color: #fff; border-radius: 6px; padding: .4rem .7rem; font: inherit; }
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; margin-left: 0; }
  .nav.open { display: flex; }
}
.banner { background: var(--gold-soft); color: #5c4200; text-align: center; padding: .5rem 1rem; font-size: .9rem; border-bottom: 1px solid #f0d58f; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 16px; }
main.wrap { padding-block: 1.5rem 3rem; }
.site-footer { color: var(--muted); font-size: .85rem; padding: 1.5rem 0 2rem; border-top: 1px solid var(--line); }

h1 { font-size: 1.6rem; color: var(--navy); margin: 0 0 .75rem; line-height: 1.25; }
h2 { font-size: 1.2rem; color: var(--navy); margin: 1.5rem 0 .6rem; }
h3 { font-size: 1.05rem; margin: 1rem 0 .4rem; }
.lead { font-size: 1.1rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); margin-bottom: 1rem; }
.card > :first-child { margin-top: 0; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.stat { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--burnt); border-radius: var(--radius); padding: 1rem 1.1rem; }
.stat .num { font-size: 1.8rem; font-weight: 700; color: var(--navy); }
.stat .label { color: var(--muted); font-size: .9rem; }
.stat.gold { border-left-color: var(--gold); }
.stat.navy { border-left-color: var(--navy); }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.page-head h1 { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.actions form { margin: 0; }

.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 50%, var(--burnt) 100%); color: #fff; border-radius: var(--radius); padding: 2rem 1.5rem; margin-bottom: 1.5rem; }
.hero h1 { color: #fff; font-size: 2rem; }
.hero .accent { color: var(--gold); }
.hero p { max-width: 640px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px;
  padding: .55rem 1.1rem; border-radius: 8px; border: 1px solid transparent; font: inherit; font-weight: 600;
  background: var(--teal); color: #fff; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--teal-dark); color: #fff; }
.btn.secondary { background: #fff; color: var(--navy); border-color: var(--line); }
.btn.secondary:hover { background: var(--bg); color: var(--navy); }
.btn.gold { background: var(--gold); color: var(--navy); }
.btn.gold:hover { background: #c98f14; color: var(--navy); }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #8f1c13; }
.btn.small { min-height: 34px; padding: .3rem .7rem; font-size: .875rem; }
.btn[aria-busy="true"] { opacity: .75; cursor: progress; }
.btn[aria-busy="true"]::after { content: ""; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
button.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--teal-dark); text-decoration: underline; cursor: pointer; }

/* Forms */
form.stack .field { margin-bottom: 1rem; }
label { display: block; font-weight: 600; margin-bottom: .3rem; }
.field.checkbox label { display: flex; gap: .55rem; align-items: flex-start; font-weight: 500; }
.field.checkbox input { margin-top: .3rem; width: 1.15rem; height: 1.15rem; flex: none; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=tel],
input[type=date], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; max-width: 100%; padding: .6rem .7rem; border: 1px solid #cfc1b9; border-radius: 8px; font: inherit; background: #fff; color: var(--ink); min-height: 44px;
}
textarea { min-height: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: 3px solid rgba(128,55,15,.25); outline-offset: 0; }
.helptext, .field .help { display: block; color: var(--muted); font-size: .85rem; margin-top: .25rem; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.errorlist { list-style: none; padding: 0; margin: .3rem 0 0; color: var(--danger); font-size: .9rem; font-weight: 600; }
.form-errors { background: var(--danger-soft); color: var(--danger); border: 1px solid #f3b8b2; padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.form-errors ul { margin: 0; padding-left: 1.1rem; }
.req { color: var(--danger); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1rem .25rem; margin: 0 0 1rem; }
legend { font-weight: 700; color: var(--navy); padding: 0 .35rem; }
.form-narrow { max-width: 640px; }
.radio-list { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.radio-list label { font-weight: 500; display: flex; gap: .4rem; align-items: center; }
.filters { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); align-items: end; }
.filters .field { margin: 0; }

/* Messages */
.messages { list-style: none; padding: 0; margin: 0 0 1rem; }
.messages li { padding: .75rem 1rem; border-radius: 8px; margin-bottom: .5rem; border: 1px solid; }
.messages .success { background: var(--ok-soft); color: var(--ok); border-color: #b7dfc7; }
.messages .error { background: var(--danger-soft); color: var(--danger); border-color: #f3b8b2; }
.messages .info, .messages .warning { background: var(--info-soft); color: var(--teal-dark); border-color: #dbc2b5; }
.notice { background: var(--gold-soft); border: 1px solid #f0d58f; color: #5c4200; padding: .85rem 1rem; border-radius: 8px; margin-bottom: 1rem; }

/* Badges */
.badge { display: inline-block; padding: .12rem .55rem; border-radius: 999px; font-size: .8rem; font-weight: 700; background: #f3ece9; color: var(--navy); white-space: nowrap; }
.badge.pending { background: var(--gold-soft); color: #6b4c00; }
.badge.approved, .badge.published, .badge.active { background: var(--ok-soft); color: var(--ok); }
.badge.rejected, .badge.cancelled, .badge.suspended { background: var(--danger-soft); color: var(--danger); }
.badge.draft { background: #f3eeec; color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f7f1ee; color: var(--navy); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tr.row-error td { background: #fff6f5; }
dl.details { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: .4rem 1rem; margin: 0; }
dl.details dt { color: var(--muted); font-weight: 600; }
dl.details dd { margin: 0; }
@media (max-width: 560px) { dl.details { grid-template-columns: 1fr; } dl.details dd { margin-bottom: .5rem; } }

.empty { text-align: center; padding: 2rem 1rem; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty strong { display: block; color: var(--navy); margin-bottom: .25rem; }

.day { margin-bottom: 1.5rem; }
.day h2 { background: var(--navy); color: #fff; padding: .5rem .9rem; border-radius: 8px; font-size: 1.05rem; }
.session { display: grid; grid-template-columns: 130px 1fr; gap: .75rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.session .time { font-weight: 700; color: var(--teal-dark); }
.session h3 { margin: 0 0 .2rem; }
@media (max-width: 560px) { .session { grid-template-columns: 1fr; gap: .2rem; } }

.meter { height: 10px; background: #f0eae6; border-radius: 999px; overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--teal); }
.meter.full > span { background: var(--gold); }
.secret { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.3rem; background: var(--gold-soft); padding: .5rem .9rem; border-radius: 8px; display: inline-block; letter-spacing: .05em; user-select: all; }
.pagination { display: flex; gap: .5rem; align-items: center; margin-top: 1rem; flex-wrap: wrap; }
pre.prewrap { white-space: pre-wrap; font: inherit; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Language selector — always visible, including on mobile. */
.lang { margin: 0; order: 3; }
.lang select { min-height: 36px; width: auto; padding: .25rem 1.8rem .25rem .6rem; background-color: var(--navy-2); color: #fff; border: 1px solid rgba(255,255,255,.45); font-size: .9rem; }
.lang select:focus { outline: 3px solid var(--gold); }
@media (max-width: 760px) { .lang { order: 2; } .nav-toggle { order: 1; } .site-header .nav { order: 4; } }


/* =========================================================
   MYC2027 - REFINED HEADER UI
   UI ONLY - NO FUNCTIONAL CHANGES
   ========================================================= */


/* ---------------------------------------------------------
   DESKTOP HEADER
   --------------------------------------------------------- */

@media (min-width: 761px) {

    .site-header {
        width: 100%;
        background: var(--navy);
        border-bottom: 4px solid var(--gold);

        overflow-x: auto;
        overflow-y: hidden;
    }


    /*
       Entire top bar stays on ONE ROW
    */
    .site-header .wrap {
        width: 100%;
        max-width: none;

        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;

        align-items: center;

        gap: 12px;

        padding: 10px 18px;

        white-space: nowrap;
    }


    /* -----------------------------------------------------
       MYC2027 BRAND
       ----------------------------------------------------- */

    .site-header .brand {
        flex: 0 0 auto;

        display: flex;
        flex-direction: column;

        justify-content: center;

        min-width: 195px;

        margin: 0;
        padding: 0;

        line-height: 1.1;

        white-space: nowrap;
    }


    .site-header .brand-code {
        font-size: 1.22rem;
        font-weight: 800;
        letter-spacing: .04em;
    }


    .site-header .brand-name {
        margin-top: 2px;

        font-size: .76rem;

        opacity: .90;
    }


    /* -----------------------------------------------------
       MOBILE BUTTON HIDDEN ON DESKTOP
       ----------------------------------------------------- */

    .site-header .nav-toggle {
        display: none !important;
    }


    /* -----------------------------------------------------
       MAIN NAVIGATION
       ----------------------------------------------------- */

    .site-header .nav {
        display: flex !important;

        flex: 1 1 auto;

        flex-direction: row !important;
        flex-wrap: nowrap !important;

        align-items: center;

        width: auto !important;

        margin: 0 !important;
        padding: 0 !important;

        gap: 2px;
    }


    /*
       Menu links
    */
    .site-header .nav > a,
    .site-header .nav > form > button.linklike {
        flex: 0 0 auto;

        display: inline-flex;

        align-items: center;
        justify-content: center;

        min-height: 34px;

        padding: .40rem .50rem;

        border-radius: 6px;

        font-size: .88rem;
        line-height: 1.2;

        white-space: nowrap;
    }


    /*
       Cleaner hover effect
    */
    .site-header .nav > a:hover,
    .site-header .nav > form > button.linklike:hover {
        background: var(--navy-2);

        color: #fff;
    }


    /*
       Active page
    */
    .site-header .nav > a[aria-current="page"] {
        background: rgba(255,255,255,.06);

        box-shadow:
            inset 0 -2px 0 var(--gold);
    }


    /* -----------------------------------------------------
       LOGOUT
       ----------------------------------------------------- */

    .site-header .nav form {
        flex: 0 0 auto;

        margin: 0 !important;
        padding: 0 !important;
    }


    .site-header .nav .nav-logout {
        min-height: 34px;

        margin: 0 !important;

        padding: .40rem .50rem !important;

        border: 0;

        font-size: .88rem;

        white-space: nowrap;
    }


    /* -----------------------------------------------------
       LANGUAGE SELECTOR
       ----------------------------------------------------- */

    .site-header .lang {
        flex: 0 0 auto;

        order: initial;

        margin: 0 0 0 8px !important;

        padding: 0;

        white-space: nowrap;
    }


    .site-header .lang select {
        width: auto;

        min-width: 110px;
        min-height: 34px;

        margin: 0;

        padding:
            .28rem
            1.75rem
            .28rem
            .60rem;

        background-color: var(--navy-2);

        color: #fff;

        border:
            1px solid
            rgba(255,255,255,.38);

        border-radius: 7px;

        font-size: .84rem;

        cursor: pointer;
    }


    .site-header .lang select:hover {
        border-color:
            rgba(255,255,255,.65);
    }


    .site-header .lang select:focus {
        outline: 3px solid var(--gold);
        outline-offset: 2px;
    }


    /*
       Small scrollbar only if browser becomes too narrow.
       Header will never wrap into two rows.
    */
    .site-header::-webkit-scrollbar {
        height: 4px;
    }

}


/* =========================================================
   MOBILE
   Preserve existing Menu functionality
   ========================================================= */

@media (max-width: 760px) {

    .site-header {
        overflow: visible;
    }


    .site-header .wrap {
        display: flex;

        flex-direction: row;
        flex-wrap: wrap;

        align-items: center;

        gap: .65rem .75rem;

        padding-top: .70rem;
        padding-bottom: .70rem;
    }


    /* Brand */
    .site-header .brand {
        flex: 0 0 auto;
    }


    .site-header .brand-code {
        font-size: 1.20rem;
    }


    .site-header .brand-name {
        font-size: .75rem;
    }


    /* Menu button */
    .site-header .nav-toggle {
        display: inline-block !important;

        order: 1;

        margin-left: auto;
    }


    /* Language remains visible */
    .site-header .lang {
        order: 2;

        margin: 0 !important;
    }


    .site-header .lang select {
        min-height: 36px;
    }


    /*
       Mobile menu remains collapsed until
       the existing JavaScript opens it.
    */
    .site-header .nav {
        display: none !important;

        order: 4;

        width: 100% !important;

        flex-direction: column !important;

        align-items: stretch !important;

        gap: .20rem;

        margin: 0 !important;

        padding-top: .25rem;
    }


    .site-header .nav.open {
        display: flex !important;
    }


    .site-header .nav > a,
    .site-header .nav > form > button.linklike {
        width: 100%;

        justify-content: flex-start;

        padding: .60rem .70rem !important;
    }

}


/* =========================================================
   MYC2027 - DASHBOARD DETAIL CARDS REFINEMENT
   UI ONLY - NO FUNCTIONAL CHANGES
   ========================================================= */

/*
   Dashboard structure:
   First .grid  = four statistics cards
   Second .grid = Registrations + Accommodation
*/


/* ---------------------------------------------------------
   SECOND DASHBOARD GRID
   --------------------------------------------------------- */

main.wrap > .grid + .grid {
    margin-top: 14px;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

    gap: 16px;

    align-items: start;
}


/* ---------------------------------------------------------
   REGISTRATION + ACCOMMODATION CARDS
   --------------------------------------------------------- */

main.wrap > .grid + .grid > .card {
    margin: 0;

    padding: 20px 22px;

    min-height: 0;

    border: 1px solid var(--line);
    border-radius: 12px;

    background: var(--card);

    box-shadow:
        0 1px 2px rgba(62,43,33,.04),
        0 3px 10px rgba(62,43,33,.045);
}


/* Subtle accent at top of each information card */
main.wrap > .grid + .grid > .card {
    position: relative;
    overflow: hidden;
}

main.wrap > .grid + .grid > .card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 3px;

    background: var(--teal);
}


/* Accommodation gets gold accent */
main.wrap > .grid + .grid > .card:nth-child(2)::before {
    background: var(--gold);
}


/* ---------------------------------------------------------
   CARD TITLES
   --------------------------------------------------------- */

main.wrap > .grid + .grid > .card h2 {
    margin:
        2px
        0
        14px;

    padding: 0;

    color: var(--navy);

    font-size: 1.12rem;
    font-weight: 750;

    line-height: 1.25;
}


/* ---------------------------------------------------------
   DETAIL LIST
   --------------------------------------------------------- */

main.wrap > .grid + .grid .details {
    display: grid;

    grid-template-columns:
        minmax(170px, 1fr)
        minmax(42px, auto);

    column-gap: 22px;
    row-gap: 0;

    margin: 0;

    align-items: center;
}


/* Labels */
main.wrap > .grid + .grid .details dt {
    margin: 0;

    padding: 5px 0;

    color: #5d4234;

    font-size: .94rem;
    font-weight: 500;

    line-height: 1.35;
}


/* Values */
main.wrap > .grid + .grid .details dd {
    margin: 0;

    padding: 5px 0;

    min-width: 42px;

    text-align: right;

    color: var(--navy);

    font-size: .95rem;
    font-weight: 650;

    line-height: 1.35;

    font-variant-numeric: tabular-nums;
}


/* Linked values */
main.wrap > .grid + .grid .details dd a {
    display: inline-block;

    min-width: 22px;

    color: var(--teal-dark);

    font-weight: 650;

    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}


main.wrap > .grid + .grid .details dd a:hover {
    color: var(--navy);
}


/* ---------------------------------------------------------
   PUBLIC REGISTRATION LINE
   --------------------------------------------------------- */

main.wrap > .grid + .grid > .card > .small {
    margin:
        13px
        0
        0;

    padding-top: 12px;

    border-top: 1px solid var(--line);

    line-height: 1.45;
}


/* Status badge */
main.wrap > .grid + .grid .badge {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 25px;

    margin-left: 5px;

    padding: 2px 9px;

    border-radius: 999px;

    font-size: .78rem;
    font-weight: 700;

    line-height: 1;
}


/* ---------------------------------------------------------
   REDUCE EMPTY VERTICAL AREA
   --------------------------------------------------------- */

/*
   Prevent the shorter Accommodation card from being stretched
   to the height of Registrations.
*/
main.wrap > .grid + .grid > .card {
    align-self: start;
}


/* ---------------------------------------------------------
   RECENT ACTIVITY
   Bring next section closer to these cards
   --------------------------------------------------------- */

main.wrap > .grid + .grid + h2 {
    margin-top: 28px;
    margin-bottom: 10px;
}


/* In case Recent activity is wrapped differently */
main.wrap > .grid + .grid ~ h2 {
    margin-top: 28px;
}


/* ---------------------------------------------------------
   TABLE REFINEMENT BELOW
   --------------------------------------------------------- */

main.wrap .table-wrap {
    border-radius: 10px;

    overflow: hidden;

    border: 1px solid var(--line);

    background: #fff;
}


main.wrap .table-wrap table {
    border-collapse: collapse;
}


main.wrap .table-wrap th {
    padding-top: 11px;
    padding-bottom: 11px;

    background: #f8f1ed;

    color: var(--navy);

    font-size: .88rem;
    font-weight: 700;
}


main.wrap .table-wrap td {
    padding-top: 10px;
    padding-bottom: 10px;

    vertical-align: middle;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 850px) {

    main.wrap > .grid + .grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

}


@media (max-width: 560px) {

    main.wrap > .grid + .grid > .card {
        padding: 17px 16px;
    }

    main.wrap > .grid + .grid .details {
        grid-template-columns:
            minmax(0, 1fr)
            auto;

        column-gap: 14px;
    }

    main.wrap > .grid + .grid .details dt,
    main.wrap > .grid + .grid .details dd {
        padding-top: 5px;
        padding-bottom: 5px;
    }

}


/* =========================================================
   MYC2027 - DASHBOARD BALANCED INFO PANELS
   UI ONLY - NO FUNCTIONAL CHANGES
   ========================================================= */


/* ---------------------------------------------------------
   Registrations + Accommodation area
   --------------------------------------------------------- */

main.wrap > .grid + .grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 16px;

    align-items: stretch;

    margin-top: 14px;
}


/* ---------------------------------------------------------
   Both cards
   --------------------------------------------------------- */

main.wrap > .grid + .grid > .card {
    position: relative;

    display: flex;
    flex-direction: column;

    height: 100%;

    min-height: 255px;

    margin: 0;

    padding: 20px 22px 18px;

    background: #fff;

    border: 1px solid var(--line);
    border-radius: 12px;

    overflow: hidden;

    box-shadow:
        0 1px 2px rgba(62,43,33,.04),
        0 4px 12px rgba(62,43,33,.045);
}


/* Top accent */
main.wrap > .grid + .grid > .card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 3px;

    background: var(--teal);
}


/* Accommodation accent */
main.wrap > .grid + .grid > .card:nth-child(2)::before {
    background: var(--gold);
}


/* ---------------------------------------------------------
   Headings
   --------------------------------------------------------- */

main.wrap > .grid + .grid > .card h2 {
    margin:
        1px
        0
        12px;

    padding: 0;

    color: var(--navy);

    font-size: 1.10rem;
    font-weight: 750;

    line-height: 1.25;
}


/* ---------------------------------------------------------
   Details grid
   --------------------------------------------------------- */

main.wrap > .grid + .grid .details {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(45px, auto);

    column-gap: 22px;

    margin: 0;

    align-items: center;
}


/* Label */
main.wrap > .grid + .grid .details dt {
    margin: 0;

    padding: 7px 0;

    color: #5d4234;

    font-size: .93rem;
    font-weight: 500;

    line-height: 1.3;
}


/* Value */
main.wrap > .grid + .grid .details dd {
    margin: 0;

    padding: 7px 0;

    text-align: right;

    color: var(--navy);

    font-size: .94rem;
    font-weight: 700;

    line-height: 1.3;

    font-variant-numeric: tabular-nums;
}


/* Fine divider between rows */
main.wrap > .grid + .grid .details dt:not(:first-of-type),
main.wrap > .grid + .grid .details dd:not(:first-of-type) {
    border-top: 1px solid rgba(232,222,216,.58);
}


/* Linked counts */
main.wrap > .grid + .grid .details dd a {
    color: var(--teal-dark);

    font-weight: 700;

    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}


main.wrap > .grid + .grid .details dd a:hover {
    color: var(--navy);
}


/* ---------------------------------------------------------
   Registration status footer
   --------------------------------------------------------- */

main.wrap > .grid + .grid > .card > p.small {
    margin:
        auto
        0
        0;

    padding-top: 13px;

    border-top: 1px solid var(--line);

    color: #5d4234;

    font-size: .88rem;
}


/* Status badge */
main.wrap > .grid + .grid .badge {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 24px;

    margin-left: 6px;

    padding: 2px 9px;

    border-radius: 999px;

    font-size: .76rem;
    font-weight: 700;
}


/* ---------------------------------------------------------
   Accommodation card spacing
   Make the smaller dataset feel intentionally balanced
   --------------------------------------------------------- */

main.wrap > .grid + .grid > .card:nth-child(2) .details {
    margin-top: 2px;
}


main.wrap > .grid + .grid > .card:nth-child(2) .details dt,
main.wrap > .grid + .grid > .card:nth-child(2) .details dd {
    padding-top: 11px;
    padding-bottom: 11px;
}


/* ---------------------------------------------------------
   Recent activity spacing
   --------------------------------------------------------- */

main.wrap > .grid + .grid + h2,
main.wrap > .grid + .grid ~ h2 {
    margin-top: 24px;
    margin-bottom: 10px;
}


/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 850px) {

    main.wrap > .grid + .grid {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    main.wrap > .grid + .grid > .card {
        min-height: 0;
    }

}


@media (max-width: 560px) {

    main.wrap > .grid + .grid > .card {
        padding: 17px 16px;
    }

    main.wrap > .grid + .grid .details {
        grid-template-columns:
            minmax(0,1fr)
            auto;

        column-gap: 14px;
    }

}


/* =========================================================
   MYC2027 - DASHBOARD COUNT LINK BUTTONS
   UI ONLY - NO FUNCTIONAL CHANGES
   ========================================================= */

/*
   Make linked counts in the Registrations / Accommodation
   cards look like compact action buttons.
*/

main.wrap > .grid + .grid .details dd a {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 34px;
    min-height: 28px;

    padding: 3px 9px;

    border: 1px solid rgba(81,57,44,.20);
    border-radius: 999px;

    background: rgba(81,57,44,.07);

    color: var(--teal-dark);

    font-size: .88rem;
    font-weight: 750;

    line-height: 1;

    text-decoration: none;

    font-variant-numeric: tabular-nums;

    transition:
        background-color .15s ease,
        border-color .15s ease,
        color .15s ease,
        transform .15s ease,
        box-shadow .15s ease;
}


/* Hover */
main.wrap > .grid + .grid .details dd a:hover {
    background: var(--teal);

    border-color: var(--teal);

    color: #fff;

    text-decoration: none;

    transform: translateY(-1px);

    box-shadow:
        0 2px 5px rgba(60,42,32,.14);
}


/* Keyboard focus */
main.wrap > .grid + .grid .details dd a:focus-visible {
    outline: 3px solid var(--gold);

    outline-offset: 2px;
}


/* Active click */
main.wrap > .grid + .grid .details dd a:active {
    transform: translateY(0);

    box-shadow: none;
}


/*
   Non-clickable numeric values remain clean text,
   but align visually with the clickable pills.
*/
main.wrap > .grid + .grid .details dd {
    min-height: 34px;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    font-weight: 700;
}


/*
   Slightly improve row alignment now that links
   have button-like height.
*/
main.wrap > .grid + .grid .details dt {
    min-height: 34px;

    display: flex;
    align-items: center;
}


/* Keep separators vertically centered */
main.wrap > .grid + .grid .details dt,
main.wrap > .grid + .grid .details dd {
    padding-top: 5px;
    padding-bottom: 5px;
}


/* Mobile */
@media (max-width: 560px) {

    main.wrap > .grid + .grid .details dd a {
        min-width: 32px;
        min-height: 27px;

        padding: 3px 8px;

        font-size: .84rem;
    }

}


/* =========================================================
   MYC2027 - DASHBOARD COMPACT INFO PANELS
   UI ONLY - NO FUNCTIONAL CHANGES
   ========================================================= */


/* Let each dashboard info card use its natural height */
main.wrap > .grid + .grid {
    align-items: start;
}


/* Remove forced equal/minimum height */
main.wrap > .grid + .grid > .card {
    height: auto;
    min-height: 0;
    align-self: start;
}


/* Slightly tighter rows */
main.wrap > .grid + .grid .details dt,
main.wrap > .grid + .grid .details dd {
    min-height: 32px;

    padding-top: 4px;
    padding-bottom: 4px;
}


/* Cleaner, softer separators */
main.wrap > .grid + .grid .details dt:not(:first-of-type),
main.wrap > .grid + .grid .details dd:not(:first-of-type) {
    border-top: 1px solid rgba(232,222,216,.48);
}


/* Accommodation rows do not need extra vertical padding */
main.wrap > .grid + .grid > .card:nth-child(2) .details dt,
main.wrap > .grid + .grid > .card:nth-child(2) .details dd {
    padding-top: 6px;
    padding-bottom: 6px;
}


/* Keep registration footer compact */
main.wrap > .grid + .grid > .card > p.small {
    margin-top: 10px;
    padding-top: 10px;
}


/* Bring Recent activity closer */
main.wrap > .grid + .grid + h2,
main.wrap > .grid + .grid ~ h2 {
    margin-top: 18px;
}


/* Keep clickable count pills compact */
main.wrap > .grid + .grid .details dd a {
    min-width: 32px;
    min-height: 26px;

    padding: 2px 8px;

    font-size: .86rem;
}


/* Responsive */
@media (max-width: 850px) {

    main.wrap > .grid + .grid {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   MYC2027 - ACTIONABLE COUNT FIRST
   UI ONLY - NO FUNCTIONAL CHANGES
   ========================================================= */

/*
   Accommodation card visual order:

   Approved, awaiting room   [4]
   Beds                       32
   Occupied                   12

   Only the visual order changes.
*/


/* ---------------------------------------------------------
   Accommodation details grid
   --------------------------------------------------------- */

main.wrap > .grid + .grid > .card:nth-child(2) .details {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(52px, auto);

    column-gap: 22px;

    align-items: center;
}


/* ---------------------------------------------------------
   CLICKABLE ROW FIRST
   Third original row becomes first visually
   --------------------------------------------------------- */

main.wrap > .grid + .grid > .card:nth-child(2)
.details dt:nth-of-type(3),

main.wrap > .grid + .grid > .card:nth-child(2)
.details dd:nth-of-type(3) {
    order: 1;
}


/* Beds becomes second */
main.wrap > .grid + .grid > .card:nth-child(2)
.details dt:nth-of-type(1),

main.wrap > .grid + .grid > .card:nth-child(2)
.details dd:nth-of-type(1) {
    order: 2;
}


/* Occupied becomes third */
main.wrap > .grid + .grid > .card:nth-child(2)
.details dt:nth-of-type(2),

main.wrap > .grid + .grid > .card:nth-child(2)
.details dd:nth-of-type(2) {
    order: 3;
}


/* ---------------------------------------------------------
   Make actionable top row visually clearer
   --------------------------------------------------------- */

main.wrap > .grid + .grid > .card:nth-child(2)
.details dt:nth-of-type(3),

main.wrap > .grid + .grid > .card:nth-child(2)
.details dd:nth-of-type(3) {
    padding-top: 6px;
    padding-bottom: 9px;

    border-top: 0 !important;
    border-bottom: 1px solid var(--line);
}


/* Action label slightly stronger */
main.wrap > .grid + .grid > .card:nth-child(2)
.details dt:nth-of-type(3) {
    color: var(--navy);

    font-weight: 650;
}


/* ---------------------------------------------------------
   Clickable pill
   --------------------------------------------------------- */

main.wrap > .grid + .grid > .card:nth-child(2)
.details dd:nth-of-type(3) a {
    min-width: 36px;
    min-height: 28px;

    padding: 3px 10px;

    background: rgba(81,57,44,.08);

    border: 1px solid rgba(81,57,44,.22);
    border-radius: 999px;

    color: var(--teal-dark);

    font-weight: 750;

    text-decoration: none;
}


/* Hover */
main.wrap > .grid + .grid > .card:nth-child(2)
.details dd:nth-of-type(3) a:hover {
    background: var(--teal);

    border-color: var(--teal);

    color: #fff;
}


/* ---------------------------------------------------------
   Normal information rows
   --------------------------------------------------------- */

main.wrap > .grid + .grid > .card:nth-child(2)
.details dt:nth-of-type(1),

main.wrap > .grid + .grid > .card:nth-child(2)
.details dd:nth-of-type(1),

main.wrap > .grid + .grid > .card:nth-child(2)
.details dt:nth-of-type(2),

main.wrap > .grid + .grid > .card:nth-child(2)
.details dd:nth-of-type(2) {
    padding-top: 8px;
    padding-bottom: 8px;
}


/*
   Beds row separator
*/
main.wrap > .grid + .grid > .card:nth-child(2)
.details dt:nth-of-type(1),

main.wrap > .grid + .grid > .card:nth-child(2)
.details dd:nth-of-type(1) {
    border-top: 0 !important;
}


/*
   Occupied separator
*/
main.wrap > .grid + .grid > .card:nth-child(2)
.details dt:nth-of-type(2),

main.wrap > .grid + .grid > .card:nth-child(2)
.details dd:nth-of-type(2) {
    border-top: 1px solid rgba(232,222,216,.48);
}


/* ---------------------------------------------------------
   Align all right-side values neatly
   --------------------------------------------------------- */

main.wrap > .grid + .grid > .card:nth-child(2)
.details dd {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    min-width: 52px;

    text-align: right;

    font-variant-numeric: tabular-nums;
}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 560px) {

    main.wrap > .grid + .grid > .card:nth-child(2) .details {
        grid-template-columns:
            minmax(0, 1fr)
            auto;

        column-gap: 14px;
    }

}


/* =========================================================
   MYC2027 - TIMETABLE GRID REFINEMENT
   UI ONLY - NO FUNCTIONAL CHANGES
   ========================================================= */


/* ---------------------------------------------------------
   Conference date range
   --------------------------------------------------------- */

.timetable-conference-range {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    margin:
        2px
        0
        16px;

    padding:
        7px
        12px;

    background: #fff;

    border:
        1px solid
        var(--line);

    border-left:
        4px solid
        var(--gold);

    border-radius: 8px;

    color: var(--navy);

    font-size: .9rem;

    box-shadow:
        0 1px 2px rgba(62,43,33,.03);
}


.timetable-range-label {
    color: var(--muted);

    font-size: .82rem;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: .035em;
}


.timetable-conference-range strong {
    font-weight: 750;

    white-space: nowrap;
}


/* ---------------------------------------------------------
   Timetable table container
   --------------------------------------------------------- */

/*
   sessions.html currently places the table after:
   page-head
   description
   conference date range
*/

.timetable-conference-range + .table-wrap {
    width: 100%;

    margin-top: 0;

    overflow-x: auto;

    background: #fff;

    border:
        1px solid
        var(--line);

    border-radius: 12px;

    box-shadow:
        0 2px 8px
        rgba(62,43,33,.045);
}


/* ---------------------------------------------------------
   Fixed row / column structure
   --------------------------------------------------------- */

.timetable-conference-range + .table-wrap table {
    width: 100%;

    min-width: 980px;

    table-layout: fixed;

    border-collapse: separate;
    border-spacing: 0;
}


/*
   Columns:

   1 Date / Time
   2 Programme
   3 Speaker
   4 Venue
   5 Status
   6 Actions
*/

.timetable-conference-range + .table-wrap th:nth-child(1),
.timetable-conference-range + .table-wrap td:nth-child(1) {
    width: 14%;
}


.timetable-conference-range + .table-wrap th:nth-child(2),
.timetable-conference-range + .table-wrap td:nth-child(2) {
    width: 27%;
}


.timetable-conference-range + .table-wrap th:nth-child(3),
.timetable-conference-range + .table-wrap td:nth-child(3) {
    width: 18%;
}


.timetable-conference-range + .table-wrap th:nth-child(4),
.timetable-conference-range + .table-wrap td:nth-child(4) {
    width: 12%;
}


.timetable-conference-range + .table-wrap th:nth-child(5),
.timetable-conference-range + .table-wrap td:nth-child(5) {
    width: 10%;
}


.timetable-conference-range + .table-wrap th:nth-child(6),
.timetable-conference-range + .table-wrap td:nth-child(6) {
    width: 19%;
}


/* ---------------------------------------------------------
   Header row
   --------------------------------------------------------- */

.timetable-conference-range + .table-wrap thead th {
    padding:
        12px
        13px;

    background: #f7efea;

    color: var(--navy);

    border-bottom:
        1px solid
        var(--line);

    font-size: .87rem;

    font-weight: 750;

    text-align: left;

    vertical-align: middle;

    white-space: nowrap;
}


/* Vertical column separators */
.timetable-conference-range + .table-wrap thead th + th {
    border-left:
        1px solid
        rgba(232,221,215,.65);
}


/* ---------------------------------------------------------
   Rows
   --------------------------------------------------------- */

.timetable-conference-range + .table-wrap tbody td {
    padding:
        12px
        13px;

    background: #fff;

    border-bottom:
        1px solid
        rgba(232,221,215,.72);

    vertical-align: middle;

    line-height: 1.4;
}


/* Vertical grid lines */
.timetable-conference-range + .table-wrap tbody td + td {
    border-left:
        1px solid
        rgba(232,221,215,.48);
}


/* Last row */
.timetable-conference-range + .table-wrap tbody tr:last-child td {
    border-bottom: 0;
}


/* Subtle hover */
.timetable-conference-range + .table-wrap tbody tr:hover td {
    background: #fefcfb;
}


/* ---------------------------------------------------------
   DATE / TIME COLUMN
   --------------------------------------------------------- */

.timetable-conference-range + .table-wrap tbody td:first-child {
    color: var(--navy);

    font-size: .88rem;

    font-weight: 550;

    font-variant-numeric: tabular-nums;
}


/* ---------------------------------------------------------
   PROGRAMME TITLE
   --------------------------------------------------------- */

.timetable-conference-range + .table-wrap tbody td:nth-child(2) {
    color: #261b15;

    font-weight: 700;
}


/* ---------------------------------------------------------
   SPEAKER / VENUE
   --------------------------------------------------------- */

.timetable-conference-range + .table-wrap tbody td:nth-child(3),
.timetable-conference-range + .table-wrap tbody td:nth-child(4) {
    color: #5b4133;

    font-size: .92rem;
}


/* ---------------------------------------------------------
   STATUS
   --------------------------------------------------------- */

.timetable-conference-range + .table-wrap tbody td:nth-child(5) {
    text-align: left;

    white-space: nowrap;
}


.timetable-conference-range + .table-wrap tbody td:nth-child(5) .badge {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 26px;

    padding:
        3px
        10px;

    border-radius: 999px;

    font-size: .78rem;

    font-weight: 700;
}


/* ---------------------------------------------------------
   ACTION BUTTON COLUMN
   --------------------------------------------------------- */

.timetable-conference-range + .table-wrap tbody td:nth-child(6) {
    white-space: nowrap;
}


.timetable-conference-range + .table-wrap tbody td:nth-child(6) .actions {
    display: flex;

    align-items: center;

    flex-wrap: nowrap;

    gap: 6px;
}


.timetable-conference-range + .table-wrap tbody td:nth-child(6) .btn {
    min-height: 34px;

    padding:
        .35rem
        .65rem;

    border-radius: 7px;

    font-size: .82rem;

    white-space: nowrap;
}


/* ---------------------------------------------------------
   Stronger row separation when scanning schedule
   --------------------------------------------------------- */

.timetable-conference-range + .table-wrap tbody tr {
    transition:
        background-color .12s ease;
}


/* ---------------------------------------------------------
   Keep columns aligned even with long programme names
   --------------------------------------------------------- */

.timetable-conference-range + .table-wrap td {
    overflow-wrap: break-word;
}


.timetable-conference-range + .table-wrap td:nth-child(5),
.timetable-conference-range + .table-wrap td:nth-child(6) {
    overflow-wrap: normal;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .timetable-conference-range + .table-wrap {
        overflow-x: auto;
    }

    .timetable-conference-range + .table-wrap table {
        min-width: 920px;
    }

}


/* =========================================================
   MOBILE
   Retain real row/column table, horizontally scrollable
   ========================================================= */

@media (max-width: 760px) {

    .timetable-conference-range {
        display: flex;

        flex-direction: column;

        align-items: flex-start;

        gap: 2px;

        width: 100%;
    }


    .timetable-conference-range + .table-wrap {
        overflow-x: auto;

        -webkit-overflow-scrolling: touch;
    }


    .timetable-conference-range + .table-wrap table {
        min-width: 900px;
    }

}


/* Timetable grid: rows = time slots, columns = conference days. */
.tt-scroll { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.tt-scroll:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
table.tt { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 760px; table-layout: fixed; font-size: .92rem; }
.tt th, .tt td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: .5rem .55rem; vertical-align: top; text-align: left; }
.tt tr > :last-child { border-right: 0; }
.tt thead th { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 2; border-right-color: var(--navy-2); }
.tt thead th.tt-time { z-index: 3; }
.tt th.tt-time { width: 7.5rem; background: #f7f1ee; color: var(--navy); font-weight: 700; white-space: nowrap; position: sticky; left: 0; z-index: 1; font-variant-numeric: tabular-nums; }
.tt thead th.tt-time { background: var(--navy); color: #fff; }
.tt-to { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; }
.tt-day .tt-weekday { display: block; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.tt-day .tt-date { display: block; font-weight: 700; }
.tt td.tt-slot { background: #f9f4f2; }
.tt td.tt-empty { background: #fff; }
.tt tr.tt-gap th.tt-time, .tt tr.tt-gap td { background: #fcfbfa; }
.tt-session { border-left: 4px solid var(--teal); background: #fff; border-radius: 6px; padding: .4rem .55rem; box-shadow: 0 1px 2px rgba(62,43,33,.08); }
.tt-session + .tt-session { margin-top: .4rem; }
.tt-session.tt-draft { border-left-color: var(--gold); background: var(--gold-soft); }
.tt-when { font-size: .78rem; color: var(--teal-dark); font-weight: 700; font-variant-numeric: tabular-nums; }
.tt-title { font-weight: 700; color: var(--navy); line-height: 1.3; overflow-wrap: anywhere; }
.tt-meta { font-size: .82rem; color: var(--muted); overflow-wrap: anywhere; }
.tt-venue::before { content: "📍 "; }
.tt-hint { display: none; }
@media (max-width: 640px) {
  .tt-hint { display: block; font-size: .85rem; color: var(--muted); margin: 0 0 .4rem; }
  table.tt { min-width: calc(4.4rem + 4 * 150px); font-size: .85rem; }
  .tt th.tt-time { width: 4.4rem; padding: .45rem .4rem; font-size: .8rem; white-space: normal; }
  .tt-to { font-size: .75rem; }
  .tt th, .tt td { padding: .4rem; }
  .tt-session { padding: .35rem .45rem; }
}

/* Speakers */
.sp-card { display: grid; grid-template-columns: 120px 1fr; gap: 1.25rem; align-items: start; }
.sp-body { min-width: 0; }
.sp-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); background: var(--gold-soft); display: block; }
.sp-photo.sp-small { width: 48px; height: 48px; border-width: 2px; }
.sp-initials { display: flex; align-items: center; justify-content: center; font-size: 2.6rem; font-weight: 700; color: var(--navy); }
.sp-initials.sp-small { font-size: 1.2rem; }
.sp-name { margin: 0; font-size: 1.3rem; }
.sp-role { margin: .1rem 0 .6rem; color: var(--teal-dark); font-weight: 600; }
.sp-bio { max-width: 68ch; }
.sp-sessions { padding-left: 1.1rem; margin: .3rem 0 0; }
.sp-row { display: flex; gap: .7rem; align-items: center; }
.tt-speakers a { color: inherit; }
@media (max-width: 560px) { .sp-card { grid-template-columns: 1fr; } .sp-photo:not(.sp-small) { width: 96px; height: 96px; } }
.tt-add { display: flex; opacity: 0; width: 100%; min-height: 2rem; align-items: center; justify-content: center; color: var(--teal-dark); text-decoration: none; font-weight: 700; font-size: 1.1rem; border: 1px dashed var(--line); border-radius: 6px; }
td.tt-empty:hover .tt-add, .tt-add:focus-visible { opacity: 1; }
@media (hover: none) { .tt-add { opacity: .55; } }

/* Materials table */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.chip { padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--navy); text-decoration: none; font-size: .9rem; }
.chip[aria-current="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.table-wrap table.mat-table tbody th[scope="row"] { font-weight: 400; background: transparent; white-space: normal; color: var(--ink); }
.mat-table .mat-title { display: block; font-weight: 700; color: var(--navy); }
.mat-desc { display: block; font-size: .875rem; color: var(--muted); margin-top: .15rem; }
.mat-actions { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .2rem; }
.nowrap { white-space: nowrap; }
@media (max-width: 640px) {
  .mat-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .mat-table, .mat-table tbody, .mat-table tr, .mat-table th, .mat-table td { display: block; width: 100%; }
  .mat-table tr { border-bottom: 1px solid var(--line); padding: .6rem .2rem; }
  .mat-table tr:last-child { border-bottom: 0; }
  .mat-table th, .mat-table td { border: 0; padding: .2rem .6rem; }
  .mat-table td::before { content: attr(data-label); display: inline-block; min-width: 6.5rem; color: var(--muted); font-size: .8rem; }
}
.table-wrap table.mat-table tbody th, .table-wrap table.mat-table tbody td { vertical-align: middle; }
.table-wrap table.mat-table .mat-title { font-weight: 700; }
main.wrap .table-wrap table.mat-table tbody th[scope="row"] { font-size: 1rem; font-weight: 400; background: transparent; }
main.wrap .table-wrap table.mat-table .mat-title { font-weight: 700; font-size: 1rem; color: var(--navy); }
main.wrap .table-wrap table.mat-table .mat-desc { font-size: .875rem; font-weight: 400; }

/* =========================================================
   MYC2027 - PARTICIPANT DETAIL UI ONLY
   ========================================================= */

.participant-detail-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 24px 48px;
}

.participant-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.participant-detail-header h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
    color: #432f24;
}

.participant-detail-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.participant-detail-grid {
    display: grid;
    grid-template-columns:
        minmax(330px, 1.05fr)
        minmax(380px, 1.15fr)
        minmax(330px, 1fr);
    gap: 18px;
    align-items: stretch;
    margin-bottom: 32px;
}

.participant-detail-card {
    background: #fff;
    border: 1px solid #eee2dc;
    border-radius: 12px;
    padding: 22px 22px 24px;
    box-shadow:
        0 1px 2px rgba(37,26,20,0.04),
        0 4px 12px rgba(37,26,20,0.04);
    min-width: 0;
}

.participant-detail-card h2 {
    margin: 0 0 20px;
    font-size: 21px;
    line-height: 1.25;
    color: #432f24;
    font-weight: 700;
}

.participant-detail-card h3 {
    margin: 24px 0 12px;
    font-size: 17px;
    color: #432f24;
    font-weight: 700;
}

.participant-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 18px;
}

.participant-badge {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.participant-badge-success {
    color: #14734b;
    background: #e8f6ef;
}

.participant-badge-warning {
    color: #8a5d00;
    background: #fff3cf;
}

.participant-badge-danger {
    color: #a92b20;
    background: #fdecea;
}

.participant-badge-neutral {
    color: #695347;
    background: #f6f1ee;
}

.participant-info-list {
    display: grid;
    gap: 9px;
    margin: 0;
}

.participant-info-row {
    display: grid;
    grid-template-columns: minmax(125px, 42%) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.participant-info-label {
    color: #7a6153;
    font-weight: 600;
    line-height: 1.5;
}

.participant-info-value {
    color: #36261d;
    line-height: 1.5;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
}

.participant-info-value.phone {
    white-space: nowrap;
}

.participant-info-value.email {
    overflow-wrap: anywhere;
}

.participant-detail-divider {
    height: 1px;
    margin: 22px 0;
    background: #f5f0ed;
}

.participant-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.participant-button-row + .participant-button-row {
    margin-top: 10px;
}

.participant-detail-card .btn {
    min-height: 38px;
    border-radius: 8px;
}

.participant-room-name {
    margin-bottom: 5px;
    font-size: 17px;
    font-weight: 700;
    color: #3b2920;
}

.participant-room-meta {
    margin-bottom: 18px;
    color: #806759;
    font-size: 14px;
}

.participant-room-transfer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f5f0ed;
}

.participant-room-transfer label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #4a3428;
}

.participant-room-transfer select {
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #e2d4cc;
    border-radius: 8px;
    background: #fff;
    color: #37271f;
}

.participant-room-transfer select:focus {
    outline: none;
    border-color: #823a13;
    box-shadow: 0 0 0 3px rgba(130,58,19,0.12);
}

.participant-history {
    margin-top: 8px;
}

.participant-history h2 {
    margin: 0 0 14px;
    color: #432f24;
    font-size: 22px;
}

.participant-history-empty {
    padding: 38px 24px;
    text-align: center;
    color: #806759;
    background: #fff;
    border: 1px dashed #eadfd9;
    border-radius: 10px;
}

@media (max-width: 1180px) {
    .participant-detail-grid {
        grid-template-columns: 1fr 1fr;
    }

    .participant-detail-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .participant-detail-page {
        padding: 20px 14px 36px;
    }

    .participant-detail-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .participant-detail-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .participant-detail-grid {
        grid-template-columns: 1fr;
    }

    .participant-detail-card:last-child {
        grid-column: auto;
    }

    .participant-info-row {
        grid-template-columns: 1fr;
        gap: 2px;
        padding-bottom: 9px;
        border-bottom: 1px solid #f6f2f0;
    }

    .participant-info-label {
        font-size: 13px;
    }

    .participant-detail-header h1 {
        font-size: 25px;
    }
}


/* =========================================================
   MYC2027 - PARTICIPANT DETAIL <dl> LAYOUT REFINEMENT
   UI ONLY
   ========================================================= */

.participant-detail-card dl.details {
    display: grid;
    grid-template-columns: minmax(120px, 38%) minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 10px;
    margin: 0;
    align-items: start;
}

.participant-detail-card dl.details dt,
.participant-detail-card dl.details dd {
    margin: 0;
    min-width: 0;
}

.participant-detail-card dl.details dt {
    color: #7a6153;
    font-weight: 600;
    line-height: 1.5;
}

.participant-detail-card dl.details dd {
    color: #36261d;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: normal;
}

/* Keep phone-like values from breaking unnecessarily */
.participant-detail-card dl.details dd a[href^="tel:"],
.participant-detail-card dl.details dd .phone {
    white-space: nowrap;
}

/* Better spacing for headings inside cards */
.participant-detail-card dl.details + h3 {
    margin-top: 24px;
}

/* Improve additional answers layout */
.participant-detail-card h3 + dl.details {
    margin-top: 12px;
}

/* Prevent overly narrow middle card content */
.participant-detail-grid > .participant-detail-card:nth-child(2) {
    min-width: 0;
}

/* Tablet */
@media (max-width: 1180px) {
    .participant-detail-card dl.details {
        grid-template-columns: minmax(130px, 35%) minmax(0, 1fr);
    }
}

/* Mobile */
@media (max-width: 760px) {
    .participant-detail-card dl.details {
        grid-template-columns: 1fr;
        row-gap: 3px;
    }

    .participant-detail-card dl.details dt {
        margin-top: 10px;
        font-size: 13px;
    }

    .participant-detail-card dl.details dd {
        padding-bottom: 9px;
        border-bottom: 1px solid #f6f2f0;
    }
}


/* =========================================================
   MYC2027 - PARTICIPANT DETAIL FINAL WIDTH FIX
   UI ONLY
   ========================================================= */

/* Give the emergency/guardian card more usable horizontal space */
.participant-detail-grid {
    grid-template-columns:
        minmax(0, 0.95fr)
        minmax(0, 1.30fr)
        minmax(0, 0.95fr) !important;
    gap: 18px;
}

/* Use a compact fixed-width label column instead of 38% */
.participant-detail-card dl.details {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr) !important;
    column-gap: 16px;
    row-gap: 10px;
    align-items: start;
}

/* Labels */
.participant-detail-card dl.details dt {
    min-width: 0;
    margin: 0;
    color: #7a6153;
    font-weight: 600;
    line-height: 1.5;
}

/* Values */
.participant-detail-card dl.details dd {
    min-width: 0;
    margin: 0;
    color: #36261d;
    line-height: 1.5;

    /* normal wrapping instead of splitting too aggressively */
    overflow-wrap: break-word;
    word-break: normal;
}

/* Emergency & Guardian card gets slightly more compact labels */
.participant-detail-grid > .participant-detail-card:nth-child(2) dl.details {
    grid-template-columns: 110px minmax(0, 1fr) !important;
}

/* Avoid ugly word-by-word breaking inside middle card */
.participant-detail-grid > .participant-detail-card:nth-child(2) dd {
    overflow-wrap: normal;
    word-break: normal;
}

/* Registration email can wrap safely without overflowing card */
.participant-detail-grid > .participant-detail-card:first-child dd {
    overflow-wrap: anywhere;
}

/* Keep all cards aligned cleanly */
.participant-detail-card {
    min-width: 0;
    overflow: hidden;
}

/* Slightly improve heading spacing */
.participant-detail-card h2 {
    margin-bottom: 18px !important;
}

/* Room card */
.participant-detail-grid > .participant-detail-card:nth-child(3) {
    min-width: 0;
}

/* Tablet */
@media (max-width: 1180px) {
    .participant-detail-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .participant-detail-grid > .participant-detail-card:nth-child(3) {
        grid-column: 1 / -1;
    }

    .participant-detail-card dl.details {
        grid-template-columns: 120px minmax(0, 1fr) !important;
    }

    .participant-detail-grid > .participant-detail-card:nth-child(2) dl.details {
        grid-template-columns: 120px minmax(0, 1fr) !important;
    }
}

/* Mobile */
@media (max-width: 760px) {
    .participant-detail-grid {
        grid-template-columns: 1fr !important;
    }

    .participant-detail-grid > .participant-detail-card:nth-child(3) {
        grid-column: auto;
    }

    .participant-detail-card dl.details,
    .participant-detail-grid > .participant-detail-card:nth-child(2) dl.details {
        grid-template-columns: 1fr !important;
        row-gap: 3px;
    }

    .participant-detail-card dl.details dt {
        margin-top: 10px;
        font-size: 13px;
    }

    .participant-detail-card dl.details dd {
        padding-bottom: 9px;
        border-bottom: 1px solid #f6f2f0;
    }
}


/* =========================================================
   MYC2027 - SETTINGS PAGE BOTTOM CARDS
   UI ONLY
   ========================================================= */

/* Two-column settings cards */
.settings-bottom-grid,
.settings-secondary-grid,
.settings-list-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
    margin-top: 20px;
}

/* If existing settings cards sit directly beside each other */
.settings-bottom-grid > *,
.settings-secondary-grid > *,
.settings-list-grid > * {
    min-width: 0;
}

/* Card appearance */
.settings-list-card,
.settings-bottom-card,
.settings-secondary-card {
    position: relative;
    background: #fff;
    border: 1px solid #ece1db;
    border-radius: 12px;
    padding: 22px 22px 20px;
    box-shadow:
        0 1px 2px rgba(37,26,20,0.04),
        0 4px 12px rgba(37,26,20,0.04);
    min-height: 220px;
}

/* Card header */
.settings-list-card-header,
.settings-bottom-card-header,
.settings-secondary-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.settings-list-card h2,
.settings-bottom-card h2,
.settings-secondary-card h2 {
    margin: 0;
    font-size: 21px;
    line-height: 1.25;
    font-weight: 700;
    color: #432f24;
}

/* Add button */
.settings-list-card-header .btn,
.settings-bottom-card-header .btn,
.settings-secondary-card-header .btn {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 7px 13px;
    border-radius: 8px;
    font-size: 14px;
}

/* Clean list */
.settings-list-card ul,
.settings-bottom-card ul,
.settings-secondary-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.settings-list-card li,
.settings-bottom-card li,
.settings-secondary-card li {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    min-height: 38px;
    padding: 7px 0;
    border-bottom: 1px solid #f6f1ee;
    color: #37271f;
}

.settings-list-card li:last-child,
.settings-bottom-card li:last-child,
.settings-secondary-card li:last-child {
    border-bottom: 0;
}

/* Small bullet accent */
.settings-list-card li::before,
.settings-bottom-card li::before,
.settings-secondary-card li::before {
    content: "";
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: #8d3b0f;
    margin-right: 2px;
}

/* Edit link */
.settings-list-card li a,
.settings-bottom-card li a,
.settings-secondary-card li a {
    color: #833308;
    font-weight: 600;
    text-decoration: none;
}

.settings-list-card li a:hover,
.settings-bottom-card li a:hover,
.settings-secondary-card li a:hover {
    text-decoration: underline;
}

/* Status badges */
.settings-list-card .badge,
.settings-bottom-card .badge,
.settings-secondary-card .badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

/* Muted secondary text */
.settings-list-card .muted,
.settings-bottom-card .muted,
.settings-secondary-card .muted,
.settings-list-card .small,
.settings-bottom-card .small,
.settings-secondary-card .small {
    color: #806759;
}

/* Better empty state */
.settings-list-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 20px;
    border: 1px dashed #e9ddd7;
    border-radius: 9px;
    color: #806759;
    text-align: center;
    background: #fdfcfb;
}

/* Slightly separate this section from the form above */
.settings-bottom-section {
    margin-top: 18px;
    padding-top: 2px;
}

/* Tablet */
@media (max-width: 900px) {
    .settings-bottom-grid,
    .settings-secondary-grid,
    .settings-list-grid {
        grid-template-columns: 1fr;
    }

    .settings-list-card,
    .settings-bottom-card,
    .settings-secondary-card {
        min-height: auto;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .settings-list-card,
    .settings-bottom-card,
    .settings-secondary-card {
        padding: 18px 16px;
        border-radius: 10px;
    }

    .settings-list-card-header,
    .settings-bottom-card-header,
    .settings-secondary-card-header {
        align-items: flex-start;
    }

    .settings-list-card h2,
    .settings-bottom-card h2,
    .settings-secondary-card h2 {
        font-size: 19px;
    }

    .settings-list-card li,
    .settings-bottom-card li,
    .settings-secondary-card li {
        align-items: flex-start;
    }
}


/* Registration submitted page */
.reg-done h1 { margin-top: .25rem; }
.reg-done-badge { width: 52px; height: 52px; border-radius: 50%; background: var(--ok-soft); color: var(--ok);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 800; margin: 0; }
.reg-code { font-size: 1.15rem; letter-spacing: .04em; color: var(--navy); }
.reg-steps { padding-left: 1.3rem; }
.reg-steps li { margin-bottom: .45rem; }
.reg-steps li::marker { color: var(--teal); font-weight: 700; }

/* District tick list: 2–3 columns on wide screens, one column on phones */
.radio-list.radio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .35rem 1rem; margin-top: .35rem; }
.radio-list.radio-grid label { font-weight: 400; padding: .3rem .45rem; border: 1px solid var(--line); border-radius: 6px; background: var(--card); cursor: pointer; }
.radio-list.radio-grid label:has(input:checked) { border-color: var(--burnt); background: var(--info-soft); font-weight: 600; }
.radio-list.radio-grid input { accent-color: var(--burnt-deep); }

/* Timetable calendar: sessions sit at their real time; height = duration.
   1 minute = --tt-min, so 1 hour = 72px on desktop. */
.ttc { --tt-min: 1.2px; --tt-axis: 5.6rem; min-width: calc(var(--tt-axis) + var(--tt-days) * 160px); font-size: .9rem; }
.ttc-head, .ttc-body { display: grid; grid-template-columns: var(--tt-axis) repeat(var(--tt-days), minmax(0, 1fr)); }
.ttc-head > div { background: var(--navy); color: #fff; padding: .5rem .55rem; border-right: 1px solid var(--navy-2); }
.ttc-head > div:last-child { border-right: 0; }
.ttc-corner { font-weight: 700; display: flex; align-items: flex-end; position: sticky; left: 0; z-index: 3; }
.ttc-day .tt-weekday { display: block; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: #ffe2a6; font-weight: 700; }
.ttc-day .tt-date { display: block; font-weight: 700; }
.ttc-body { height: calc(var(--tt-scale) * var(--tt-min) + 1.2rem); padding-top: .6rem; padding-bottom: .6rem; box-sizing: content-box; }
.ttc-axis { position: sticky; left: 0; z-index: 2; background: #f7f1ee; border-right: 1px solid var(--line); margin-top: -.6rem; margin-bottom: -.6rem; padding-top: .6rem; }
.ttc-hour { position: absolute; right: .5rem; top: calc(var(--top) * var(--tt-min) + .6rem); transform: translateY(-50%);
  font-size: .8rem; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ttc-col { position: relative; border-right: 1px solid var(--line); }
.ttc-col:last-child { border-right: 0; }
.ttc-lines { position: absolute; inset: 0; pointer-events: none; }
.ttc-line { position: absolute; left: 0; right: 0; top: calc(var(--top) * var(--tt-min)); border-top: 1px dashed #efe6df; }
.ttc-line-hour { border-top: 1px solid var(--line); }
.ttc-list { list-style: none; margin: 0; padding: 0; }
.ttc-session { position: absolute; box-sizing: border-box; overflow: hidden; margin: 0;
  top: calc(var(--top) * var(--tt-min) + 1px); height: calc(var(--len) * var(--tt-min) - 2px);
  left: calc(100% * var(--lane) / var(--lanes) + 3px); width: calc(100% / var(--lanes) - 6px);
  border-left: 4px solid var(--burnt); background: #fff; border-radius: 6px; padding: .3rem .5rem;
  box-shadow: 0 1px 3px rgba(89,46,23,.12); line-height: 1.25; z-index: 1; }
.ttc-session .tt-title { font-size: .9rem; }
.ttc-session.ttc-compact { display: flex; gap: .4rem; align-items: center; padding-block: 0 .05rem; white-space: nowrap; }
.ttc-session.ttc-compact .tt-title { overflow: hidden; text-overflow: ellipsis; font-size: .85rem; }
.ttc-session.ttc-compact .tt-meta, .ttc-session.ttc-compact .badge { display: none; }
/* Show everything when a short card is hovered or focused */
.ttc-session:hover, .ttc-session:focus-within { height: auto; min-height: calc(var(--len) * var(--tt-min) - 2px); z-index: 4;
  overflow: visible; white-space: normal; box-shadow: 0 4px 14px rgba(89,46,23,.22); }
.ttc-session.ttc-compact:hover, .ttc-session.ttc-compact:focus-within { display: block; padding-block: .3rem; }
.ttc-session.ttc-compact:hover .tt-meta, .ttc-session.ttc-compact:focus-within .tt-meta { display: block; }
.ttc-add { position: absolute; left: 3px; right: 3px; top: calc(var(--top) * var(--tt-min) + 1px); height: calc(30 * var(--tt-min) - 2px);
  display: flex; align-items: center; justify-content: center; opacity: 0; color: var(--teal-dark); text-decoration: none;
  font-weight: 700; border: 1px dashed var(--burnt); border-radius: 6px; background: var(--info-soft); z-index: 0; }
.ttc-add:hover, .ttc-add:focus-visible { opacity: 1; }
@media (max-width: 760px) {
  /* Phones: taller hours (1 h = 84px) and smaller time text so a 1-hour card shows time + title. */
  .ttc { --tt-min: 1.4px; --tt-axis: 4.4rem; min-width: calc(var(--tt-axis) + var(--tt-days) * 150px); font-size: .85rem; }
  .ttc-head > div { padding: .45rem .4rem; }
  .ttc-hour { font-size: .7rem; right: .35rem; }
  .ttc-session { padding: .2rem .35rem; }
  .ttc-session .tt-when { font-size: .68rem; white-space: nowrap; }
  .ttc-session .tt-title { font-size: .82rem; }
}

/* Mobile number: country code + number on one line */
.mobile-row { display: flex; gap: .5rem; }
.mobile-row select { flex: 0 0 auto; width: auto; max-width: 48%; }
.mobile-row input { flex: 1 1 auto; min-width: 0; }

/* Conference offering table */
.fees { width: 100%; border-collapse: collapse; }
.fees th, .fees td { padding: .45rem .25rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.fees td.amt { text-align: right; white-space: nowrap; font-weight: 700; color: var(--burnt-deep); }
.poster { display: block; max-width: 100%; height: auto; border-radius: 8px; margin: 0 auto; }
.ws-group { margin: 1rem 0 .25rem; font-size: 1.05rem; color: var(--burnt-deep); }
.ws-rules { padding-left: 1.1rem; margin: 0 0 .5rem; }
.ws-rules li { margin-bottom: .2rem; }
/* Conference offering: one card per option */
.radio-list.radio-cards { display: grid; grid-template-columns: 1fr; gap: .4rem; margin-top: .35rem; }
.radio-list.radio-cards label { font-weight: 400; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: var(--card); cursor: pointer; align-items: flex-start; }
.radio-list.radio-cards label:has(input:checked) { border-color: var(--burnt); background: var(--info-soft); font-weight: 600; }
.radio-list.radio-cards input { accent-color: var(--burnt-deep); margin-top: .2rem; }
/* Workshop choices: 1st-4th in a 2x2 grid on wide screens */
.ws-grid { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
@media (min-width: 640px) { .ws-grid { grid-template-columns: 1fr 1fr; } }

/* Staff: workshops page */
.ws-stats { margin-bottom: 1rem; }
.ws-warn { color: #a3361b; font-weight: 600; }
.ws-card { margin-bottom: 1rem; }
.ws-card-head h2 { margin: 0; }
.ws-card-head p { margin: .2rem 0 .75rem; }
.ws-table th.num, .ws-table td.num { text-align: center; width: 3.2rem; }
.ws-table td { vertical-align: middle; }
.ws-name { display: flex; gap: .65rem; align-items: flex-start; min-width: 15rem; }
.ws-code { flex: 0 0 auto; min-width: 2.6rem; text-align: center; font-weight: 700; color: #fff; background: var(--burnt-deep); border-radius: 6px; padding: .15rem .4rem; font-size: .85rem; }
.ws-en { display: block; }
.ws-tags { display: flex; gap: .3rem; margin-top: .2rem; flex-wrap: wrap; }
.ws-tags:empty { display: none; }
.badge.ws-two { background: var(--info-soft); color: var(--burnt-deep); border: 1px solid var(--burnt); }
.ws-demand-col { min-width: 9rem; }
.ws-demand .meter { margin-bottom: .2rem; }
.ws-demand .meter.ws-nocap > span { background: #c9b8ab; }
.ws-demand .meter.full > span { background: #c0492b; }
.ws-over td { background: #fff3ef; }
.ws-inactive td { opacity: .6; }
.ws-edit { text-align: right; white-space: nowrap; }
@media (max-width: 700px) {
  .ws-card .table-wrap { overflow: visible; border: 0; background: none; }
  .ws-table thead { display: none; }
  .ws-table, .ws-table tbody { display: block; width: 100%; }
  .ws-table tr { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem .4rem; padding: .75rem; margin-bottom: .6rem;
                 border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
  main.wrap .ws-table td, .ws-table td { display: block; padding: 0; border: 0; }
  .ws-table .ws-name { grid-column: 1 / -1; min-width: 0; }
  .ws-table .ws-demand { grid-column: 1 / -1; }
  .ws-table td.num { width: auto; text-align: center; background: var(--bg); border-radius: 6px; padding: .3rem 0; }
  .ws-table td.num::before { content: attr(data-label); display: block; font-size: .72rem; color: var(--muted); }
  .ws-table .ws-edit { grid-column: 1 / -1; text-align: left; }
  .ws-table .ws-edit .btn { width: 100%; text-align: center; }
}

/* Staff: rooms */
.rm-summary { margin-bottom: 1rem; }
.rm-sum-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .35rem; }
.rm-sum-list { display: grid; grid-template-columns: 1fr auto; gap: .15rem .75rem; margin: .6rem 0 0; }
.rm-sum-list dt { color: var(--muted); }
.rm-sum-list dd { margin: 0; text-align: right; font-weight: 600; }
.rm-warn, .rm-flag { color: #a3361b; font-weight: 600; }
.rm-type { display: inline-block; font-size: .75rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; white-space: nowrap; }
.rm-type-2 { background: #fde8d9; color: #8e4924; border: 1px solid #e9b48f; }
.rm-type-4 { background: #f3e6dc; color: #592e17; border: 1px solid #cfae96; }
.chip.on { background: var(--burnt-deep); color: #fff; border-color: var(--burnt-deep); }
.chip-n { display: inline-block; min-width: 1.2rem; text-align: center; background: #c0492b; color: #fff; border-radius: 999px; font-size: .75rem; padding: 0 .3rem; }
.rm-building h2 { margin: 0; }
.rm-building p { margin: .2rem 0 .75rem; }
.rm-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.rm-room .rm-link { display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: .65rem .75rem; border: 1px solid var(--line);
  border-left: 4px solid #8fbf8f; border-radius: 8px; background: var(--card); color: inherit; text-decoration: none; }
.rm-room .rm-link:hover, .rm-room .rm-link:focus-visible { border-color: var(--burnt); box-shadow: 0 2px 8px rgba(89,46,23,.12); }
.rm-room.is-full .rm-link { border-left-color: var(--burnt-deep); background: #fcf6f2; }
.rm-room.is-empty .rm-link { border-left-color: #d9c8ba; }
.rm-room.has-issue .rm-link { border-left-color: #c0492b; background: #fff3ef; }
.rm-top { display: flex; justify-content: space-between; align-items: center; gap: .4rem; }
.rm-name { font-size: 1.05rem; }
.rm-beds { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.rm-people { color: var(--ink, #2b1d14); line-height: 1.35; }
.bed { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1.5px solid #c9b8ab; background: #fff; vertical-align: middle; }
.bed.on { background: #8e4924; border-color: #8e4924; }
.bed.on.m { background: #3d6f9e; border-color: #3d6f9e; }
.bed.on.f { background: #c0577d; border-color: #c0577d; }
.rm-legend { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.rm-sub { display: flex; gap: .6rem; align-items: center; margin: .25rem 0 0; }
.rm-notice { margin-bottom: .75rem; }
.rm-beds-list { display: grid; gap: .5rem; }
.rm-bed { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .7rem .9rem; margin: 0; }
.rm-bed-main { display: flex; gap: .7rem; align-items: flex-start; }
.rm-bed-main .bed { margin-top: .25rem; flex: 0 0 auto; }
.rm-bed-free { border-style: dashed; background: transparent; }
.rm-assign { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.rm-assign select { width: auto; max-width: 22rem; }
@media (max-width: 700px) {
  .rm-alloc thead { display: none; }
  .rm-alloc, .rm-alloc tbody, .rm-alloc tr, .rm-alloc td { display: block; width: 100%; }
  .rm-alloc tr { padding: .6rem .75rem; border-bottom: 1px solid var(--line); }
  main.wrap .rm-alloc td, .rm-alloc td { padding: .15rem 0; border: 0; }
  .rm-assign select { max-width: 100%; flex: 1 1 100%; }
  .rm-bed { flex-wrap: wrap; }
}
/* Registration: age group worked out from the IC */
.age-auto { background: var(--bg); border: 1px dashed var(--line); border-radius: 8px; padding: .55rem .75rem; }
.age-auto-label { display: block; font-weight: 600; }
.age-auto-out { margin: .15rem 0 0; color: var(--muted); font-size: .92rem; }
.age-auto.ok { border-style: solid; border-color: #8fbf8f; background: #f3faf2; }
.age-auto.ok .age-auto-out { color: #2f6b2f; font-weight: 600; }
.age-auto.bad { border-style: solid; border-color: #e0a090; background: #fff3ef; }
.age-auto.bad .age-auto-out { color: #a3361b; font-weight: 600; }
