@font-face{
  font-family:Inter;
  src:url(Inter.ttf);
  font-weight:100 900;
  font-style:normal;
  font-display:swap
}
:root{
  font-family:Inter,"Segoe UI",Arial,sans-serif;
  color:#0b244d;
  background:#e6f1fb;
  --navy:#0b244d;
  --blue:#0757ac;
  --sky:#e8f5ff;
  --line:#bedcf7;
  --red:#ec302a;
  --shadow:0 7px 22px #1c579518
}
*{
  box-sizing:border-box
}
body{
  margin:0;
  min-height:100svh
}
a{
  color:#0757ac
}
button,input,select,textarea{
  font:inherit
}
svg{
  width:1.3em;
  height:1.3em;
  vertical-align:middle
}
h1,h2,h3,p{
  margin:0 0 .65rem
}
h1{
  font-size:clamp(1.7rem,5vw,2.3rem);
  letter-spacing:-.045em;
  line-height:1.08
}
.greeting-text{
  font-size:20px !important;
  letter-spacing:-.045em;
  line-height:1.08
}
h2{
  font-size:1.1rem;
  letter-spacing:-.025em
}
p{
  line-height:1.45
}
small{
  color:#345474
}
.shell{
  max-width:530px;
  min-height:100svh;
  margin:auto;
  background:linear-gradient(#f6fbff,#eef8ff 65%,#d4ecff);
  box-shadow:0 0 65px #134c8126;
  display:flex;
  flex-direction:column
}
.top{
  height:76px;
  padding:10px 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:#fff;
  border-bottom:1px solid #d5e8f8;
  position:sticky;
  top:0;
  z-index:5
}
.brand{
  width:107px;
  height:auto;
  mix-blend-mode:multiply
}
.top a{
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  border-radius:15px;
  background:#eef7ff;
  position:relative;
  font-size:1.24rem
}
.top .brand{
  width:130px
}
#badge{
  position:absolute;
  top:0;
  right:0;
  background:var(--red);
  color:white;
  font-size:.65rem;
  border-radius:99px;
  padding:3px 6px
}
main{
  flex:1
}
.demo{
  background:#e2effa;
  text-align:center;
  font-size:.72rem;
  padding:6px 10px;
  color:#2c5177
}
.welcome{
  background:linear-gradient(140deg,#fff,#e5f5ff);
  position:relative;
  overflow:hidden
}
.welcome:after{
  content:"";
  position:absolute;
  pointer-events:none;
  bottom:-8px;
  left:-4%;
  width:110%;
  height:22px;
  border-radius:55% 22% 0 0;
  background:linear-gradient(164deg,#76c6f3 15%,#0791dd 36%,#074897 66%,#ef302a 67%,#ef302a 73%,transparent 74%);
  box-shadow:0 -2px 0 white
}
.welcome.login:after{
  content:none
}
.greeting{
  display:flex;
  align-items:center;
  gap:14px;
    padding: 13px 22px 10px;
  }
.avatar-main{
  display:grid;
  place-items:center;
  flex:0 0 36px;
  height:36px;
  border-radius:50%;
  color:#0757ac;
  font-size:1rem;
  font-weight:750;
  background:linear-gradient(#e9f7ff,#acdafa);
  border:1px solid #aedafa;
  overflow:hidden
}
.avatar-main img{
  width:100%;
  height:100%;
  object-fit:cover
}
.avatar img{
  width:100%;
  height:100%;
  object-fit:cover
}
.user-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}
.users-list li{
  justify-content:center
}
.user-row span{
  display:block;
  font-size:.8rem;
  color:#345474
}
.eyebrow{
  font-size:.68rem;
  letter-spacing:.13em;
  color:#0757ac;
  font-weight:800;
  margin-bottom:7px
}
.welcome p{
  font-size:.85rem;
  color:#24517e
}
.fleet{
  height:103px;
  background:#178ede url(fleet.webp) center/cover no-repeat
}
.login{
  text-align:center;
  padding-top:28px
}
.login h1{
  font-size:clamp(2.25rem,8vw,3rem)
}
em{
  color:#087dd0
}
.login .fleet{
  height:156px;
  margin-top:20px
}
.login-form{
  padding:23px 23px 34px
}
.login-form h2{
  text-align:center;
  font-size:1.3rem;
  margin-bottom:18px
}
.switch,.logout{
  display:block;
  text-align:center;
  margin-top:12px
}
.tiles{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:10px;
  padding:17px 15px 29px;
  background:linear-gradient(transparent 75%,#d0eaff70),url(skyline.webp) bottom center/auto 42px repeat-x
}
.tile{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:110px;
  padding:9px 5px;
  text-align:center;
  line-height:1.23;
  text-decoration:none;
  color:var(--navy);
  font-size:.8rem;
  font-weight:750;
  border:1px solid #bfddf4;
  border-radius:14px;
  background:linear-gradient(145deg,#fff,#e0f2ff);
  box-shadow:0 3px 6px #1a72b320;
  transition:transform .15s,border-color .15s
}
.tile:hover,.tile:focus-visible{
  border-color:#087dd0
}
.tile:active{
  transform:scale(.96)
}
.tile svg{
  color:#0765bc;
  width:30px;
  height:30px
}
.content{
  padding:21px 16px 26px
}
.tabs{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
  margin:15px 0
}
.tabs a,.admin-layout nav a{
  border:1px solid var(--line);
  border-radius:10px;
  background:white;
  text-align:center;
  font-weight:700;
  text-decoration:none;
  padding:9px
}
.tabs small{
  display:block;
  font-weight:500
}
.chosen,.tabs a.chosen,.admin-layout nav a.chosen{
  background:linear-gradient(135deg,#087fd1,#08489c);
  color:white
}
.chosen small{
  color:#fff
}
.card{
  background:linear-gradient(145deg,#fff,#e7f4ff);
  border-radius:15px;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  padding:14px;
  margin-bottom:13px
}
.card p:last-child{
  margin-bottom:0
}
.line{
  display:flex;
  gap:10px;
  position:relative
}
.line:has(> :nth-child(2):last-child){
  justify-content:center;
  align-items:center
}
.line h2{
  margin-bottom:3px
}
.line h2 a{
  text-decoration:none;
  color:var(--navy)
}
.line p{
  font-size:.83rem;
  margin-bottom:4px
}
.timeline{
  border-left:2px solid #0d65ba;
  padding-left:12px;
  margin-left:6px
}
.line:before{
  content:"";
  position:absolute;
  left:-19px;
  top:19px;
  width:8px;
  height:8px;
  border:2px solid #0d65ba;
  border-radius:50%;
  background:white
}
.symbol{
  background:#d4ebfd;
  color:#0756aa;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:50%;
  flex:none;
  font-size:1.28rem
}
.time{
  color:#064784;
  font-size:.8rem
}
.assignment h2{
  font-size:1.65rem;
  margin-top:10px
}
.members{
  display:grid;
  gap:6px;
  margin-top:9px
}
.members span{
  padding:6px;
  word-break:break-word
}
.seating{
  grid-template-columns:repeat(2,minmax(0,1fr));
  background:#d8edff;
  border-radius:45px;
  padding:15px;
  text-align:center
}
.stack{
  margin-top:14px
}
.self{
  font-weight:800
}
.flash,.error{
  padding:11px 15px;
  background:#e3f5ec;
  border-radius:8px;
  margin:10px 15px;
  color:#095334
}
.error{
  background:#fff0ee;
  color:#8b241a
}
form{
  display:grid;
  gap:11px;
  margin-bottom:12px
}
label{
  display:grid;
  gap:5px;
  font-weight:650;
  font-size:.84rem
}
input,select,textarea{
  width:100%;
  min-width:0;
  background:white;
  border:1px solid var(--line);
  border-radius:9px;
  padding:10px;
  color:var(--navy)
}
textarea{
  min-height:75px;
  resize:vertical
}
select[multiple]{
  min-height:120px
}
button,.button{
  border:0;
  display:inline-grid;
  place-items:center;
  background:linear-gradient(135deg,#0786d8,#08439d);
  color:white;
  font-weight:700;
  cursor:pointer;
  text-decoration:none;
  text-align:center;
  padding:11px 15px;
  min-height:43px;
  border-radius:9px
}
button:hover,.button:hover{
  filter:brightness(1.08)
}
button:disabled{
  opacity:.55;
  cursor:default
}
.secondary{
  background:#e4f1fc;
  color:#124773
}
.link{
  background:none;
  color:#0757ac;
  text-decoration:underline;
  min-height:34px;
  padding:4px 8px
}
.logout button{
  justify-self:center
}
.quiz-banner{
  display:grid;
  place-items:center;
  height:100px;
  background:repeating-conic-gradient(from -75deg at 50% 100%,#2d81c8 0deg 13deg,#3e96db 13deg 26deg);
  color:#ffca34;
  font-size:2.5rem
}
.quiz-banner svg{
  filter:drop-shadow(0 2px 3px #003872)
}
dialog{
  width:min(calc(100% - 18px),470px);
  padding:0;
  border:1px solid var(--line);
  border-radius:20px;
  color:var(--navy);
  max-height:90svh;
  background:#f5fbff
}
dialog::backdrop{
  background:#06264d8a
}
#question{
  padding:17px
}
.quiz-meta{
  display:flex;
  justify-content:space-between;
  color:#084a99;
  font-size:.83rem;
  font-weight:800;
  margin-bottom:10px
}
.option{
  display:flex;
  align-items:center;
  gap:9px;
  padding:9px;
  background:white;
  border:1px solid var(--line);
  border-radius:9px
}
.option:has(:checked){
  border-color:#087de2;
  background:#deefff
}
.option input{
  width:18px;
  margin:0;
  accent-color:#0757ac
}
.question-image{
  max-width:100%;
  max-height:170px;
  object-fit:contain
}
#connection{
  position:fixed;
  bottom:70px;
  left:50%;
  transform:translateX(-50%);
  z-index:2;
  padding:9px 14px;
  color:white;
  background:#103b68;
  border-radius:10px;
  width:max-content;
  max-width:90vw
}
.admin-body .shell{
  max-width:1260px
}
.admin-body .top{
  height:66px
}
.admin-layout{
  display:grid;
  grid-template-columns:190px minmax(0,1fr);
  min-height:calc(100svh - 66px)
}
aside{
  padding:22px 14px;
  background:#e4f1fd;
  border-right:1px solid var(--line)
}
aside nav{
  display:grid;
  gap:6px;
  margin-bottom:15px
}
.admin-layout nav a{
  text-align:left
}
.admin-content{
  padding:22px;
  min-width:0
}
.admin-content>h1{
  margin-bottom:18px
}
.actions{
  display:flex;
  align-items:end;
  gap:10px;
  flex-wrap:wrap
}
.actions input,.actions select{
  width:auto;
  max-width:100%
}
.actions form{
  margin:0
}
.stats{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(130px,1fr));
  gap:10px
}
.stats strong{
  font-size:1.55rem;
  color:var(--blue)
}
.records{
  list-style:none;
  padding:0
}
.records li{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
    gap:5px;
  padding:7px 0;
  border-bottom:1px solid var(--line);
  overflow-wrap:anywhere
}
.records li form{
  margin:0
}
.records span{
  font-size:.82rem;
  color:#335978
}
details{
  padding:6px 0
}
summary{
  cursor:pointer;
  font-weight:700;
  margin-bottom:6px
}
a:focus-visible,button:focus-visible,summary:focus-visible{
  outline:3px solid #2b97f1;
  outline-offset:2px
}
.notice-pop{
  position:fixed;
  z-index:3;
  bottom:65px;
  left:50%;
  transform:translateX(-50%);
  padding:10px 14px;
  border-radius:11px;
  color:white;
  background:#074a98;
  max-width:90vw;
  box-shadow:var(--shadow)
}
@media(max-width:660px){
  .admin-layout{
    display:block
  }
  aside{
    border-right:0;
    padding:9px
  }
  aside nav{
    display:flex;
    overflow:auto
  }
  aside nav a{
    white-space:nowrap
  }
  .admin-content{
    padding:13px
  }
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{
    transition:none!important
  }
}
.coach{
  float:right;
  width:min(32%,125px);
  border-radius:10px;
  margin:0 0 8px 8px;
  mix-blend-mode:multiply
}
.assignment details{
  clear:both
}
/* ===== Programme details,photos and read state ===== */
.activity-details{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:4px 12px;
  margin:10px 0 0;
}
.activity-details div{
  display:flex;
  gap:6px;
  font-size:.78rem;
}
.activity-details dt{
  color:#345474;
  font-weight:700;
}
.activity-details dd{
  margin:0;
  overflow-wrap:anywhere;
}
.photo-grid{
  list-style:none;
  padding:0;
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(130px,1fr));
  gap:10px;
}
.photo-grid li{
  display:grid;
  gap:5px;
  font-size:.78rem;
}
.photo-grid img{
  width:100%;
  aspect-ratio:1;
  object-fit:cover;
  border-radius:10px;
  border:1px solid var(--line);
}
.card.is-read{
  opacity:.72;
}
.records li.indent{
  padding-left:14px;
}
/* ===== Toast ===== */
.toast-notification{
  position:fixed;
  bottom:30px;
  right:30px;
  background:#333;
  color:#fff;
  padding:15px 25px;
  border-radius:5px;
  box-shadow:0 2px 10px rgba(0,0,0,.3);
  z-index:9999;
  transition:opacity .5s;
}
.toast-notification.toast-success{
  background:#28a745;
}
.toast-fade-out{
  opacity:0;
}
/* ===== Pagination ===== */
.pagination{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
  margin:12px 0 2px;
  font-size:.82rem;
}
.pagination a,.pagination span{
  padding:5px 10px;
  border-radius:8px;
}
.pagination a{
  background:#e4f1fc;
  color:#0757ac;
  font-weight:700;
  text-decoration:none;
}
.pagination a:hover{
  background:#cfe6fa;
}
.pagination span[aria-disabled="true"]{
  color:#8aa6bf;
}
/* Participant home: one-line notification strip under the navbar. */
.notice-bar{
  background:#eaf5ff;
  border-bottom:1px solid var(--line);
  position:sticky;
  top:76px;
  z-index:4;
}
.notice-bar p{
  margin:0;
  padding:6px 16px;
  color:#0757ac;
  font-size:.82rem;
  font-weight:650;
  text-align:center;
}
.notice-bar span{
  display:inline-block;
  max-width:100%;
  vertical-align:middle;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#notice-bar-text.is-updated{
  animation:notice-flash .9s ease;
  border-radius:6px;
}
@keyframes notice-flash{
  0%{background:#ffe08a;color:#0b2b4a;}
  100%{background:transparent;color:#0757ac;}
}
/* Participant home: smaller activity cards,three per row. */
.activity-cards{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  padding:17px 15px 29px;
  background:linear-gradient(transparent 75%,#d0eaff70),url(skyline.webp) bottom center/auto 42px repeat-x
}
.home-cards{
  display:block
}
.card-line{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:9px
}
.card-line > .activity-card{
  flex:0 0 calc((100% - 18px) / 3);
  max-width:calc((100% - 18px) / 3)
}
.card-line.primary{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:9px
}
.card-line.primary > .activity-card{
  flex:0 0 calc((100% - 9px) / 2);
  max-width:calc((100% - 9px) / 2)
}
.card-line + .card-line{
  margin-top:9px
}
.activity-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-height:82px;
  padding:7px 4px;
  text-align:center;
  line-height:1.2;
  text-decoration:none;
  color:var(--navy);
  font-size:.76rem;
  font-weight:750;
  border:1px solid #bfddf4;
  border-radius:12px;
  background:linear-gradient(145deg,#fff,#e0f2ff);
  box-shadow:0 3px 6px #1a72b320;
  transition:transform .15s,border-color .15s
}
.activity-card:hover,.activity-card:focus-visible{
  border-color:#087dd0
}
.activity-card:active{
  transform:scale(.96)
}
.activity-card svg{
  width:22px;
  height:22px;
  color:#0757ac
}
.activity-card-logo{
  width:22px;
  height:22px;
  object-fit:contain
}
.activity-card strong{
  font-size:.78rem;
  overflow-wrap:anywhere
}
.card.is-selected{
  border-color:#087dd0;
  box-shadow:0 0 0 3px #087dd033
}
/* ===== Responsive layout ===== */
/* Only the login screen keeps the phone-shaped shell. */
.shell{
  width: 100%;
  max-width: 100%;
}
@media (min-width: 768px){
  .shell{
    max-width: 720px;
  }
}
@media (min-width: 1024px){
  .shell{
    max-width: 960px;
  }
}
/* Logged-in shells (admin + participant) fill the viewport: no side margins. */
.admin-body .shell,.participant-body .shell{
  width: 100%;
  max-width: none;
  margin: 0;
  box-shadow: none;
}
@media (min-width: 1024px){
  .admin-layout{
    grid-template-columns: 220px minmax(0,1fr);
  }
}
/* Admin inner content stays capped and centered on large screens. */
.admin-top{
  padding-inline: max(22px,calc((100% - 1200px) / 2));
}
.admin-content > *{
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
}
@media (max-width: 1320px){
  .admin-content > *{
    max-width: 100%;
  }
}
/* Admin sidebar -> horizontal on small screens */
@media (max-width: 660px){
  .admin-layout{
    display: block;
  }
  aside{
    border-right: 0;
    padding: 9px;
  }
  aside nav{
    display: flex;
    overflow: auto;
  }
  aside nav a{
    white-space: nowrap;
  }
  .admin-content{
    padding: 13px;
  }
}
/* Navbar: logo left,logout right (same for admin + participant). */
.top .brand{
  width: 130px;
}
.top a.brand-link{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  padding: 0;
  gap: 0;
  text-decoration: none;
}
.brand-tagline{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: .5rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: .05em;
  color: #0b4f8a;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 1px;
  white-space: nowrap;
  text-decoration: none;
}
.brand-tagline::before,
.brand-tagline::after{
  content: "";
  width: 12px;
  height: 1.5px;
  background: #0b4f8a;
  flex: none;
}
.top-actions{
  display: flex;
  margin: 0 0 0 auto;
}
.logout-btn{
  background: #eef7ff;
  color: #0757ac;
  border: 1px solid var(--line);
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 9px;
  font-weight: 700;
}
.logout-btn:hover{
  background: #dceeff;
}


.records li {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    padding: 7px 0 !important;
    border-bottom: 1px solid var(--line) !important;
    overflow-wrap: anywhere !important;
     justify-content: center !important;     
}
.avatar img {
    width: 129px !important;
    height: 100% !important;
    object-fit: cover !important;
}
.avatar {
    display: grid !important;
    place-items: center !important;
    flex: 0 0 129px !important;
    height: 123px !important;
border-radius: 0 !important;
    color: #0757ac !important;
    font-size: 1rem !important;
    font-weight: 750 !important;
    background: linear-gradient(#e9f7ff, #acdafa) !important; 
    border: 1px solid #aedafa !important;
    overflow: hidden !important;
     width: 120px !important; 
    /* display: block; */
}
.like-btn {
  font-size: 1.2rem;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 2px 6px;
}
.like-btn.liked {
  color: #ec302a;
}
.photo-likes {
  font-weight: 700;
  color: #ec302a;
}


.card.likes {
  margin-top: 6px;
  padding: 6px;
}
.card-body {
  text-align: center;
}
.text-center {
  text-align: center;
}
.btn {
  border: 0;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #0786d8, #08439d);
  color: white;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 10px;
  min-height: 34px;
  border-radius: 9px;
  font-size: 1.2rem;
}
.btn-primary {
  background: linear-gradient(135deg, #0786d8, #08439d);
}
.like-btn.liked {
  background: linear-gradient(135deg, #ec302a, #b8201a);
}


.photo-item {
  position: relative;
}
.photo-wrap {
  position: relative;
  display: inline-block;
}
.photo-wrap img {
  display: block;
}
.photo-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  margin: 0;
}
.photo-delete-btn {
  background: none;
  color: #ec302a;
  border: 0;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  opacity: 0;
  transition: opacity .15s;
}
.photo-wrap:hover .photo-delete-btn {
  opacity: 1;
}
.photo-wrap:hover .photo-delete-btn {
  opacity: 1;
}


.team-card {
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
  min-height: 120px;
  padding: 8px 6px;
  gap: 6px;
  font-size: .85rem;
}
.team-card strong {
  text-align: center;
}
.team-members {
  list-style: none;
  padding: 0;
  margin: 4px 0;
  font-size: .72rem;
  max-height: 80px;
  overflow: auto;
}
.team-members li {
  padding: 2px 0;
  border-bottom: 1px solid #d5e8f8;
}


@media (max-width: 480px) {
  .team-card {
    min-height: auto;
  }
}


.people-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  align-items: end;
}
.people-form button {
  grid-column: 1 / -1;
  justify-self: start;
}
.people-list li {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.person-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.person-info strong {
  font-size: 1rem;
}
.person-function {
  font-size: .8rem;
  color: #345474;
  background: #eef7ff;
  padding: 2px 8px;
  border-radius: 99px;
}
.person-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.inline-form {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin: 0;
}
.inline-form select {
  width: auto;
  max-width: 160px;
}
@media (max-width: 600px) {
  .people-form {
    grid-template-columns: 1fr;
  }
  .inline-form {
    flex-wrap: wrap;
  }
  .inline-form select {
    max-width: 100%;
    width: 100%;
  }
}


.people-card {
  overflow: hidden;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #d5e8f8;
}
.card-head .count {
  font-size: .75rem;
  color: #345474;
  background: #eef7ff;
  padding: 3px 10px;
  border-radius: 99px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.form-grid label span {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  color: #345474;
  margin-bottom: 4px;
}
.form-grid input,
.form-grid select {
  width: 100%;
}
.form-actions {
  margin-top: 12px;
}
.people-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.person-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #f7fbff;
  border: 1px solid #d5e8f8;
  border-radius: 12px;
  transition: box-shadow .15s;
}
.person-card:hover {
  box-shadow: 0 4px 12px #1c579518;
}
.person-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(#e9f7ff, #acdafa);
  color: #0757ac;
  font-weight: 750;
  font-size: 1.1rem;
  border: 1px solid #aedafa;
}
.person-main {
  min-width: 0;
}
.person-name {
  font-weight: 700;
  font-size: 1rem;
  color: #0b244d;
}
.person-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  font-size: .8rem;
  color: #345474;
}
.person-username {
  color: #0757ac;
  font-weight: 600;
}
.person-function {
  background: #eef7ff;
  color: #0757ac;
  padding: 1px 8px;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 700;
}
.person-team {
  background: #f0f0f0;
  padding: 1px 8px;
  border-radius: 99px;
  font-size: .72rem;
}
.person-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.btn-sm {
  padding: 4px 10px;
  min-height: 30px;
  font-size: .8rem;
  border-radius: 7px;
}
.btn-danger {
  background: linear-gradient(135deg, #ec302a, #b8201a);
  color: white;
  border: 0;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 10px;
  min-height: 30px;
  border-radius: 7px;
  font-size: .8rem;
}
.empty {
  text-align: center;
  color: #345474;
  padding: 20px;
}
@media (max-width: 640px) {
  .person-card {
    grid-template-columns: 44px 1fr;
  }
  .person-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}


/* Modern admin polish */
.card {
  background: #ffffff;
  border: 1px solid #d5e8f8;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 6px 18px #1c579512;
  margin-bottom: 14px;
}
.card h2 {
  margin-bottom: 12px;
  color: #0b244d;
}
.records {
  display: grid;
  gap: 8px;
}
.records li {
  background: #f7fbff;
  border: 1px solid #d5e8f8;
  border-radius: 10px;
  padding: 10px 12px;
  border-bottom: 0;
}
.records li:hover {
  box-shadow: 0 3px 10px #1c579514;
}
label {
  font-size: .82rem;
}
input, select, textarea {
  border-radius: 10px;
  padding: 9px 11px;
}
button, .button {
  border-radius: 10px;
}
@media (max-width: 600px) {
  .admin-content {
    padding: 12px;
  }
  .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .actions input, .actions select {
    width: 100%;
  }
}


.agenda-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.agenda-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  background: #f7fbff;
  border: 1px solid #d5e8f8;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 4px 12px #1c579512;
  transition: box-shadow .15s;
}
.agenda-card:hover {
  box-shadow: 0 6px 18px #1c579518;
}
.agenda-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: #0b244d;
  margin-bottom: 6px;
}
.agenda-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.badge {
  background: #eef7ff;
  color: #0757ac;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 600;
}
.badge.status {
  background: #fff3cd;
  color: #8a6d00;
}
.badge.published {
  background: #e6f7e6;
  color: #1e7e34;
}
.badge.hidden {
  background: #fde2e2;
  color: #a32020;
}
.agenda-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}
@media (max-width: 640px) {
  .agenda-card {
    grid-template-columns: 1fr;
  }
  .agenda-actions {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }
}


.activity-card.is-disabled {
  opacity: .45;
  filter: grayscale(.6);
  pointer-events: none;
  cursor: not-allowed;
}


.status-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.status-form select {
  width: auto;
  max-width: 120px;
  font-size: .8rem;
  padding: 4px 6px;
}


.participant-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.participant-top .brand-link {
  justify-self: center;
}
.participant-top .header-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}
.participant-top .header-left {
  justify-self: start;
}
.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #eef7ff;
  color: #0757ac;
  text-decoration: none;
  padding: 0;
  border: 0;
  cursor: pointer;
  position: relative;
}
.icon-btn svg {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}
.logout-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #eef7ff;
  color: #0757ac;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.logout-btn svg {
  width: 20px;
  height: 20px;
}


.activity-card.is-selected {
  border-color: #087dd0;
  box-shadow: 0 0 0 3px #087dd033;
}
/* Participant programme: printed CTM poster rebuilt in HTML/CSS. */
.dress-card {
  background: linear-gradient(135deg, #eaf4ff 0%, #d4e9ff 100%);
  border: 1px solid #9fc9f2;
  border-left: 5px solid #0791dd;
  box-shadow: 0 6px 18px #0791dd22;
  animation: dress-glow 2.6s ease-in-out infinite;
}
.dress-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.dress-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #dceeff;
  color: #0757ac;
  flex-shrink: 0;
  animation: dress-icon-flash 1.2s ease-in-out infinite;
}
.dress-icon svg {
  width: 18px;
  height: 18px;
}
@keyframes dress-icon-flash {
  0%, 100% {
    color: #0757ac;
    background: #dceeff;
    box-shadow: 0 0 0 transparent;
  }
  50% {
    color: #ef302a;
    background: #ffe3e3;
    box-shadow: 0 0 10px #ef302a88;
  }
}
.dress-card h2 {
  margin-bottom: 0;
  color: #0757ac;
  font-size: .82rem;
  letter-spacing: .08em;
}
.dress-card p {
  margin: 0;
  color: #0757ac;
  font-weight: 700;
  animation: dress-text-flash-red 1.4s ease-in-out infinite;
}
@keyframes dress-text-flash-red {
  0%, 100% {
    color: #0757ac;
    text-shadow: 0 0 0 transparent;
  }
  50% {
    color: #ef302a;
    text-shadow: 0 0 8px #ef302a88;
  }
}
@keyframes dress-glow {
  0%, 100% {
    box-shadow: 0 6px 18px #0791dd22;
  }
  50% {
    box-shadow: 0 6px 24px #0791dd55;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dress-card,
  .dress-card h2,
  .dress-card p,
  .dress-icon {
    animation: none;
  }
}
.programme-page {
  min-height: 0;
}
.programme-poster {
  min-height: calc(100vh - 64px);
  padding: 12px;
  background: #e9f2fa;
}
.ctm-poster {
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 14px 12px;
  background: #fff;
  border: 2px solid #0b3f7a;
  border-radius: 18px;
  box-shadow: 0 10px 30px #0b3f7a1f;
  color: #0b2b5b;
}
.ctm-poster-top {
  text-align: center;
}
.ctm-logo {
  display: block;
  width: 46%;
  max-width: 210px;
  height: auto;
  margin: 0 auto;
  mix-blend-mode: multiply;
}
.ctm-tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 6px 0 2px;
  color: #0b4f8a;
  font-size: clamp(.5rem, 2.2vw, .78rem);
  font-style: italic;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ctm-tagline::before,
.ctm-tagline::after {
  content: "";
  width: clamp(16px, 8vw, 60px);
  height: 2px;
  background: #0b4f8a;
}
.ctm-title {
  display: inline-block;
  margin: 2px 0 10px;
  color: #0b2b5b;
  font-size: clamp(1.45rem, 8vw, 2.8rem);
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  letter-spacing: -.01em;
  text-transform: uppercase;
  transform: skewX(-7deg);
}
.ctm-fleet {
  display: block;
  width: 100%;
  height: auto;
}
.ctm-dates {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 16px;
}
.ctm-dates::before,
.ctm-dates::after {
  content: "";
  flex: 1;
  height: 2px;
  background: #0b4f8a;
}
.ctm-dates > span {
  padding: 5px 16px;
  background: linear-gradient(180deg, #1e86d4, #0a5fb0);
  color: #fff;
  font-size: clamp(.75rem, 3.3vw, 1.1rem);
  font-style: italic;
  font-weight: 800;
  white-space: nowrap;
  transform: skewX(-10deg);
}
.ctm-dates b {
  display: block;
  font-weight: 800;
  transform: skewX(10deg);
}
.ctm-day {
  margin-top: 6px;
}
.ctm-day-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 2px;
  padding-bottom: 3px;
  border-bottom: 2px solid #0b4f8a;
  color: #0b2b5b;
  font-size: clamp(.9rem, 4vw, 1.35rem);
  font-weight: 900;
  text-transform: uppercase;
}
.ctm-day-num {
  color: #1e78c8;
  font-size: clamp(2rem, 9vw, 3.1rem);
  font-style: italic;
  line-height: .9;
}
.ctm-schedule {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.ctm-row {
  display: grid;
  grid-template-columns: 54px 2px minmax(0, 1fr);
  gap: 9px;
  padding: 6px 0;
  border-bottom: 1px solid #cfe0f0;
}
.ctm-time {
  align-self: start;
  color: #0b2b5b;
  font-size: clamp(.72rem, 3vw, .95rem);
  font-weight: 800;
}
.ctm-sep {
  align-self: stretch;
  width: 2px;
  background: #0b4f8a;
}
.ctm-desc {
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #16324f;
  font-size: clamp(.7rem, 3vw, .95rem);
}
.ctm-dress {
  padding: 3px 7px;
  background: #dcecfb;
  color: #0a5fb0;
  font-size: .82em;
  font-weight: 800;
  text-transform: uppercase;
}
.ctm-poster-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 2px dashed #0b4f8a;
}
.ctm-foot-icons {
  display: flex;
  flex: none;
  gap: 7px;
  color: #0b2b5b;
}
.ctm-foot-icons svg {
  width: 22px;
  height: 22px;
}
.ctm-programme-box {
  margin-left: auto;
  padding: 5px 14px;
  background: #0b3f7a;
  color: #fff;
  font-size: clamp(.75rem, 3vw, 1rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: .04em;
  transform: skewX(-10deg);
}
.ctm-programme-box span {
  display: block;
  transform: skewX(10deg);
}
.ctm-barcode {
  flex: none;
  width: 52px;
  height: 28px;
  background: repeating-linear-gradient(90deg, #0b2b5b 0 2px, transparent 2px 4px, #0b2b5b 4px 5px, transparent 5px 8px);
}
.programme-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.programme-head h1 {
  margin: 0;
  font-size: 1.25rem;
  color: #0b2b4a;
}
.page-back {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: #0b4f8a;
  text-decoration: none;
  flex: none;
}
.page-back svg {
  width: 20px;
  height: 20px;
}


/* Participant programme: assignment cards (bus / table). */
.aff-card {
  background: #fff;
  border: 1px solid #d6e6f5;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 6px 18px #1a72b318;
}
.aff-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #0757ac;
  font-size: .95rem;
  font-weight: 800;
}
.aff-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #dceeff;
  color: #0757ac;
}
.aff-icon svg {
  width: 18px;
  height: 18px;
}
.aff-card-body {
  display: flex;
  align-items: center;
  gap: 12px;
}
.aff-info {
  flex: 1;
  min-width: 0;
}
.aff-info h2 {
  margin: 0 0 4px;
  color: #0b2b4a;
  font-size: 1.35rem;
  font-weight: 900;
}
.aff-info p {
  margin: 0;
  color: #5d7d99;
  font-size: .8rem;
}
.aff-seat {
  margin: 4px 0 0;
  color: #16324f;
  font-size: .82rem;
  font-weight: 700;
}
.aff-seat span {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 99px;
  background: #dceeff;
  color: #0757ac;
}
.aff-image {
  width: 112px;
  height: auto;
  flex: none;
  border-radius: 10px;
  background: #f4f9ff;
}
.aff-bus {
  width: 136px;
}
.aff-members {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e2eefa;
}
.aff-members summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  color: #0757ac;
  font-size: .85rem;
  font-weight: 700;
}
.aff-members summary::-webkit-details-marker {
  display: none;
}
.aff-members summary svg {
  width: 18px;
  height: 18px;
}
.aff-members ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}
.aff-members li {
  color: #345474;
  font-size: .82rem;
}
/* Participant programme: assignment page background (light blue + skyline). */
.programme-assign {
  min-height: calc(100svh - 76px);
  padding: 12px;
  background-color: #e9f2fa;
  background-image: linear-gradient(transparent 82%, #d0eaff70), url(skyline.webp);
  background-size: auto, auto 42px;
  background-repeat: no-repeat, repeat-x;
  background-position: bottom center, bottom center;
}
/* Aff card summary row with chevron. */
.aff-summary-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.aff-chevron {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #0757ac;
  transition: transform .2s ease;
}
.aff-chevron svg {
  width: 18px;
  height: 18px;
}
.aff-members[open] .aff-chevron {
  transform: rotate(180deg);
}
.aff-members summary {
  justify-content: space-between;
  width: 100%;
}
/* Participant users (Trombinoscope): department filter cards. */
.dept-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scrollbar-width: none;
}
.dept-filters::-webkit-scrollbar {
  display: none;
}
.dept-card {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid #dbe9f6;
  border-radius: 99px;
  background: #eef7ff;
  color: #0757ac;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}
.dept-card span {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 99px;
  background: #fff;
  color: #0757ac;
  font-size: .7rem;
  font-weight: 800;
}
.dept-card.chosen {
  background: #0757ac;
  color: #fff;
  border-color: #0757ac;
}
.dept-card.chosen span {
  background: #ffffff33;
  color: #fff;
}
/* Participant home: fill the screen so the skyline sits at the bottom. */
.home-page {
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - 76px);
}
.home-page .home-cards {
  flex: 1;
}
/* Participant home: CTM logo + tagline at the bottom of the welcome section. */
.welcome-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 6px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.welcome-logo {
  width: 70%;
  max-width: 260px;
  height: auto;
  mix-blend-mode: multiply;
}
.welcome-tagline {
  color: #0b4f8a;
  font-size: .72rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.dept-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.dept-card {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #eef7ff;
  color: #0757ac;
  text-decoration: none;
  font-weight: 700;
  font-size: .8rem;
  border: 1px solid #bedcf7;
}
.dept-card.chosen {
  background: #0757ac;
  color: white;
}
.dept-card span {
  background: rgba(255,255,255,.3);
  padding: 1px 7px;
  border-radius: 99px;
  font-size: .7rem;
}
.user-department {
  font-size: .72rem;
  color: #345474;
  background: #f0f0f0;
  padding: 1px 7px;
  border-radius: 99px;
}

