:root{
  --brand:#12395a;
  --brand-2:#1d4c7c;
  --brand-3:#0f2e49;
  --accent:#d89b2b;
  --ink:#233040;
  --muted:#5e6b78;
  --line:#d9e3ee;
  --soft:#eef4fa;
  --card:#ffffff;
  --danger:#b33c2f;
  --shadow:0 22px 44px rgba(18,57,90,.09);
}
*{box-sizing:border-box}
[hidden]{display:none !important}
html,body{margin:0;padding:0}
body{
  min-height:100vh;
  font-family:Inter,Arial,sans-serif;
  color:var(--ink);
  background:
    radial-gradient(960px 540px at 8% 0%, rgba(18,57,90,.14), transparent 60%),
    radial-gradient(840px 520px at 100% 12%, rgba(29,76,124,.09), transparent 55%),
    linear-gradient(180deg,#f6f9fc 0%,#eef4fa 100%);
}
a{color:inherit}
button,input,select,textarea{font:inherit}
.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;
}
.app-shell{min-height:100vh}
.app-view{
  min-height:100vh;
  padding:34px 20px 46px;
}
.welcome-shell,
.flow-shell,
.lookup-shell{
  max-width:1220px;
  margin:0 auto;
}
.home-hero,
.flow-card,
.lookup-card,
.entry-card,
.welcome-note,
.summary-banner,
.summary-inline,
.room-card,
.selected-room-preview,
.detail-summary,
.detail-schedule,
.success-card,
.sede-card{
  background:rgba(255,255,255,.95);
  border:1px solid rgba(18,57,90,.08);
  box-shadow:var(--shadow);
}
.home-hero,
.flow-card,
.lookup-card{
  border-radius:34px;
}
.eyebrow,
.section-kicker,
.success-badge,
.selected-room-preview__tag,
.side-card__eyebrow,
.sede-card__tag{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  width:max-content;
  padding:.42rem .78rem;
  border-radius:999px;
  background:rgba(18,57,90,.08);
  color:var(--brand);
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.brand-lockup{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}
.brand-lockup img{
  width:auto;
  display:block;
  object-fit:contain;
}
.brand-lockup--hero{
  display:block;
}
.brand-lockup--hero img{
  width:min(320px,72vw);
  max-width:100%;
  max-height:none;
}
.brand-lockup--compact img{
  height:48px;
  max-height:none;
}
.home-hero{
  display:block;
  padding:26px 28px;
  background:
    linear-gradient(135deg,#ffffff 0%,#f4f8fc 55%,#edf3f9 100%);
}
.home-hero--compact{
  padding:18px 22px;
}
.home-hero__copy{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.home-hero__copy h1,
.screen-copy h2,
.lookup-card h2,
.success-card h2,
.entry-card h2,
.sede-card h3,
.summary-inline h3{
  margin:0;
  font-family:Merriweather,serif;
  color:var(--brand);
}
.home-hero__copy h1{
  font-size:clamp(1.85rem,3vw,2.5rem);
  line-height:1.04;
  max-width:none;
}
.home-hero__copy p,
.screen-copy p,
.lookup-card p,
.entry-card p,
.selected-room-meta p,
.detail-item p,
.detail-empty,
.hint-text,
.summary-banner,
.summary-inline p,
.sede-card p{
  margin:0;
  color:var(--muted);
  line-height:1.72;
}
.entry-grid{
  margin-top:14px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}
.entry-card{
  border:none;
  border-radius:32px;
  padding:22px;
  text-align:left;
  display:grid;
  gap:12px;
  cursor:pointer;
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.entry-card:hover{
  transform:translateY(-4px);
  box-shadow:0 28px 48px rgba(18,57,90,.14);
}
.entry-card__icon{
  width:54px;
  height:54px;
  border-radius:18px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#f2f7fc 0%,#e6eef8 100%);
  color:var(--brand);
}
.entry-card__icon svg{
  width:26px;
  height:26px;
  stroke:currentColor;
  stroke-width:2.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.entry-card--primary{
  background:linear-gradient(160deg,var(--brand) 0%,var(--brand-2) 100%);
  color:#fff;
}
.entry-card--primary .entry-card__icon{
  background:rgba(255,255,255,.14);
  color:#fff;
}
.entry-card--primary h2,
.entry-card--primary p,
.entry-card--primary .entry-card__cta{
  color:#fff;
}
.entry-card__cta{
  font-weight:800;
  color:var(--brand);
}
.flow-topbar{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:16px;
  margin-bottom:18px;
}
.topbar-link{
  appearance:none;
  border:none;
  background:transparent;
  color:var(--brand);
  font-weight:800;
  cursor:pointer;
  padding:0;
}
.topbar-link--soft{
  justify-self:end;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(18,57,90,.08);
}
.flow-card,
.lookup-card{
  padding:28px;
}
.flow-progress{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:12px;
  margin-bottom:24px;
}
.progress-step{
  padding:14px 16px;
  border-radius:18px;
  background:#edf3f9;
  color:#6a7988;
  transition:background .2s ease, color .2s ease, box-shadow .2s ease;
}
.progress-step small{
  display:block;
  margin-bottom:4px;
  font-size:.74rem;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.progress-step strong{
  display:block;
  line-height:1.35;
}
.progress-step.is-active{
  background:linear-gradient(140deg,var(--brand) 0%,var(--brand-2) 100%);
  color:#fff;
  box-shadow:0 16px 30px rgba(18,57,90,.18);
}
.progress-step.is-done{
  background:#dfeaf4;
  color:var(--brand);
}
.message{
  margin-bottom:18px;
  padding:14px 16px;
  border-radius:16px;
  background:#eef4fa;
  color:var(--brand);
  font-weight:700;
}
.message.is-error{
  background:#fff1ef;
  color:var(--danger);
}
.flow-screen{display:none}
.flow-screen.is-active{display:block}
.flow-stage{
  max-width:920px;
  margin:0 auto;
  display:grid;
  gap:18px;
}
.flow-stage--wide{max-width:1120px}
.screen-copy{
  display:flex;
  flex-direction:column;
  gap:10px;
  max-width:760px;
}
.flow-form{
  display:grid;
  gap:18px;
}
.field-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px 18px;
}
.field{
  display:flex;
  flex-direction:column;
  gap:8px;
  color:var(--brand);
  font-weight:700;
}
.field--compact{max-width:380px}
.field input,
.field select,
.field textarea,
.lookup-form input{
  width:100%;
  padding:14px 15px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  color:var(--ink);
  transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.field textarea{resize:vertical;min-height:120px}
.field-check{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:16px 18px;
  border-radius:18px;
  border:1px solid rgba(18,57,90,.11);
  background:#fff;
  color:var(--ink);
}
.field-check input{
  width:18px;
  height:18px;
  margin-top:2px;
  accent-color:var(--brand);
}
.field-check span{
  display:grid;
  gap:4px;
}
.field-check strong{
  color:var(--brand);
  font-size:.98rem;
}
.field-check small{
  color:var(--muted);
  line-height:1.6;
}
.hint-text.is-success{
  color:#21693b;
  font-weight:700;
}
.hint-text.is-warning{
  color:#8a5a0a;
  font-weight:700;
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.lookup-form input:focus{
  outline:none;
  border-color:rgba(29,76,124,.5);
  box-shadow:0 0 0 4px rgba(18,57,90,.08);
  transform:translateY(-1px);
}
.sede-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:16px;
}
.sede-card{
  border-radius:28px;
  padding:20px;
  text-align:left;
  display:grid;
  gap:16px;
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.sede-card:hover{
  transform:translateY(-2px);
  box-shadow:0 26px 46px rgba(18,57,90,.12);
}
.sede-card.is-selected{
  border-color:rgba(18,57,90,.34);
  box-shadow:0 0 0 3px rgba(18,57,90,.08),0 26px 46px rgba(18,57,90,.14);
}
.sede-card__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.sede-card__icon{
  width:58px;
  height:58px;
  border-radius:18px;
  display:grid;
  place-items:center;
  background:rgba(18,57,90,.08);
  color:var(--brand);
}
.sede-card__icon svg{
  width:30px;
  height:30px;
  stroke:currentColor;
  stroke-width:2.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.sede-card__body{
  display:grid;
  gap:8px;
}
.sede-card h3{
  font-size:1.22rem;
  line-height:1.2;
}
.sede-card__stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.sede-card__stats div{
  padding:12px;
  border-radius:16px;
  background:#fff;
  border:1px solid rgba(18,57,90,.08);
}
.sede-card__stats small{
  display:block;
  color:#6a7988;
  margin-bottom:4px;
}
.sede-card__stats strong{
  display:block;
  color:var(--brand);
  line-height:1.45;
}
.sede-card.is-cenes{
  background:linear-gradient(180deg,#ffffff 0%,#f5fbff 100%);
}
.sede-card.is-campus{
  background:linear-gradient(180deg,#ffffff 0%,#faf8f3 100%);
}
.preset-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px;
}
.preset-card{
  appearance:none;
  border:1px solid rgba(18,57,90,.11);
  border-radius:20px;
  padding:18px 14px;
  background:#fff;
  color:var(--brand);
  font-size:1.2rem;
  font-weight:800;
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.preset-card:hover{
  transform:translateY(-2px);
}
.preset-card.is-active{
  background:linear-gradient(140deg,var(--brand) 0%,var(--brand-2) 100%);
  color:#fff;
  border-color:transparent;
  box-shadow:0 18px 30px rgba(18,57,90,.18);
}
.date-builder{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
}
.date-list{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.option-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.option-card{
  position:relative;
  display:grid;
  gap:8px;
  padding:18px;
  border-radius:22px;
  border:1px solid rgba(18,57,90,.11);
  background:#fff;
  color:var(--ink);
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.option-card:hover{
  transform:translateY(-2px);
}
.option-card input{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
}
.option-card strong{
  color:var(--brand);
  font-size:1rem;
}
.option-card span{
  color:var(--muted);
  line-height:1.65;
}
.option-card.is-selected{
  border-color:rgba(18,57,90,.34);
  box-shadow:0 0 0 3px rgba(18,57,90,.08),0 22px 34px rgba(18,57,90,.08);
  background:linear-gradient(180deg,#ffffff 0%,#f4f8fc 100%);
}
.date-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:999px;
  background:#eff4f9;
  border:1px solid rgba(18,57,90,.12);
  color:var(--brand);
  font-weight:700;
}
.date-chip button{
  appearance:none;
  border:none;
  width:24px;
  height:24px;
  border-radius:999px;
  background:#dce8f3;
  color:var(--brand);
  cursor:pointer;
  font-weight:700;
}
.summary-inline{
  border-radius:24px;
  padding:20px;
  display:grid;
  gap:10px;
  background:linear-gradient(180deg,#f8fbfe 0%,#f2f7fc 100%);
}
.preview-lines{
  display:grid;
  gap:12px;
}
.preview-line{
  padding:12px 14px;
  border-radius:16px;
  background:#fff;
  border:1px solid rgba(18,57,90,.08);
}
.preview-line small{
  display:block;
  color:#6a7988;
  margin-bottom:4px;
}
.preview-line strong{
  display:block;
  color:var(--brand);
  line-height:1.45;
}
.screen-actions,
.success-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.summary-banner{
  display:none;
  margin-bottom:18px;
  padding:15px 16px;
  border-radius:20px;
  font-weight:800;
  color:var(--brand);
}
.summary-banner.is-visible{display:block}
.room-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:14px;
}
.room-card{
  border-radius:24px;
  padding:18px;
  display:grid;
  gap:14px;
  background:linear-gradient(180deg,#ffffff 0%,#f7fbff 100%);
}
.room-card h4{
  margin:0;
  font:700 1.2rem/1.2 Merriweather,serif;
  color:var(--brand);
}
.room-meta{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.room-meta div{
  background:#fff;
  border:1px solid rgba(18,57,90,.08);
  border-radius:16px;
  padding:10px 12px;
}
.room-meta small{
  display:block;
  color:#6a7988;
  margin-bottom:4px;
}
.room-meta strong{color:var(--brand)}
.room-equip{
  padding:12px 14px;
  border-radius:16px;
  background:#eff4f9;
  color:#33475b;
}
.selected-room-preview,
.detail-summary,
.detail-schedule,
.success-card{
  border-radius:26px;
}
.selected-room-preview,
.success-card{
  padding:22px;
}
.selected-room-preview{
  background:linear-gradient(180deg,#ffffff 0%,#f4f8fc 100%);
}
.selected-room-preview__head{
  display:grid;
  gap:10px;
  margin-bottom:14px;
}
.selected-room-preview h3{
  margin:0;
  font:700 1.28rem/1.2 Merriweather,serif;
  color:var(--brand);
}
.selected-room-meta{
  display:grid;
  gap:10px;
}
.lookup-card--pro{
  display:grid;
  gap:20px;
}
.lookup-form--stacked{
  display:grid;
  gap:14px;
}
.detail-empty{
  padding:8px 0 4px;
}
.detail-content{
  display:grid;
  gap:14px;
}
.detail-summary{
  padding:18px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.detail-summary small{
  display:block;
  color:#6a7988;
  margin-bottom:4px;
}
.detail-summary strong{
  display:block;
  color:var(--brand);
  line-height:1.5;
}
.detail-state--pending{
  color:#8a5a0a !important;
}
.detail-schedule{
  padding:18px;
  display:grid;
  gap:12px;
}
.detail-item{
  border:1px solid rgba(18,57,90,.08);
  border-radius:18px;
  background:#fff;
  padding:14px 16px;
  display:grid;
  gap:10px;
}
.detail-item__head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}
.detail-item__head h4{
  margin:0;
  font:700 1.05rem/1.2 Merriweather,serif;
  color:var(--brand);
}
.detail-item__head span{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  background:#edf3f9;
  color:var(--brand);
  font-weight:700;
  font-size:.86rem;
}
.success-card{
  display:grid;
  gap:16px;
}
.success-card--hero{
  background:
    linear-gradient(155deg,#ffffff 0%,#f5f9fd 65%,#eef4fa 100%);
}
.success-card__brand{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}
.success-code{
  display:inline-flex;
  width:max-content;
  padding:14px 18px;
  border-radius:18px;
  background:linear-gradient(140deg,var(--brand) 0%,var(--brand-2) 100%);
  color:#fff;
  font-size:1.15rem;
  font-weight:800;
  letter-spacing:.04em;
}
.alert-box{
  padding:15px 16px;
  border-radius:18px;
  border:1px solid transparent;
  line-height:1.65;
}
.alert-box--warning{
  background:#fff7e8;
  border-color:#f0d79d;
  color:#7a5413;
  font-weight:700;
}
.share-box{
  display:grid;
  gap:8px;
  padding:16px;
  border-radius:20px;
  background:#fff;
  border:1px solid rgba(18,57,90,.08);
}
.share-box small{
  display:block;
  color:#6a7988;
  font-weight:700;
}
.share-box__row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
}
.share-box__row input{
  width:100%;
  padding:13px 14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#f8fbfe;
  color:var(--brand);
}
.empty-card{
  padding:22px;
  border-radius:24px;
  background:#f8fbfe;
  border:1px solid rgba(18,57,90,.1);
  color:var(--muted);
  line-height:1.7;
}
.primary-btn,
.ghost-btn,
.secondary-btn,
.room-card button{
  appearance:none;
  border:none;
  border-radius:16px;
  padding:14px 18px;
  font-weight:800;
  cursor:pointer;
  text-decoration:none;
  transition:transform .2s ease, opacity .2s ease, box-shadow .2s ease;
}
.primary-btn,
.room-card button{
  background:linear-gradient(140deg,var(--brand) 0%,var(--brand-2) 100%);
  color:#fff;
  box-shadow:0 16px 28px rgba(18,57,90,.18);
}
.ghost-btn,
.secondary-btn{
  background:#edf3f9;
  color:var(--brand);
}
.primary-btn:hover,
.ghost-btn:hover,
.secondary-btn:hover,
.room-card button:hover{
  opacity:.95;
  transform:translateY(-1px);
}
.loading-overlay{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(8,18,29,.5);
  backdrop-filter:blur(3px);
}
.loading-box{
  display:flex;
  align-items:center;
  gap:12px;
  padding:18px 20px;
  border-radius:18px;
  background:#fff;
  color:var(--brand);
  box-shadow:0 18px 40px rgba(0,0,0,.2);
}
.spinner{
  width:24px;
  height:24px;
  border-radius:999px;
  border:3px solid #d9e3ee;
  border-top-color:var(--brand);
  animation:spin 1s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}
@media (max-width: 1100px){
  .home-hero,
  .entry-grid,
  .field-grid,
  .detail-summary,
  .room-meta,
  .preset-grid,
  .option-grid{
    grid-template-columns:1fr;
  }
  .flow-progress{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width: 760px){
  .app-view{padding:20px 14px 28px}
  .home-hero,
  .flow-card,
  .lookup-card{padding:22px}
  .home-hero{padding:16px 18px}
  .flow-topbar{
    grid-template-columns:1fr;
    justify-items:start;
  }
  .brand-lockup--compact img{height:40px}
  .brand-lockup--hero img{width:min(250px,78vw)}
  .screen-actions,
  .success-actions{
    justify-content:stretch;
  }
  .screen-actions > *,
  .success-actions > *,
  .room-card button,
  .primary-btn,
  .ghost-btn,
  .secondary-btn{
    width:100%;
  }
  .date-builder,
  .flow-progress,
  .sede-card__stats,
  .share-box__row{
    grid-template-columns:1fr;
  }
}
