/* INSIDEOUT additions to the original campus layout. */
#sheet, #io-alerts {
  position: fixed;
  inset: 0;
  width: min(580px, calc(100% - 32px));
  max-height: min(90dvh, 820px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  color: #193342;
  background: #fff;
  border: 1px solid #d6e2dc;
  border-radius: 18px;
  box-shadow: 0 20px 80px #193a3833;
}
#sheet::backdrop, #io-alerts::backdrop { background: rgb(20 37 39 / 48%); }
#sheet .dialog-header, #io-alerts .dialog-header {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; padding: 20px 24px;
  background: #fff; border-bottom: 1px solid #deebe5;
}
#sheet h2, #io-alerts h2 { margin: 0; font-size: clamp(1.15rem,3vw,1.45rem); line-height: 1.35; }
.io-login {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.io-login [role="status"] {grid-column:1/-1;margin:0;}
.io-signup {grid-template-columns:minmax(0,1fr);max-width:560px;}
.io-signup .campus-actions {margin-top:0;}
.io-signup-policy {padding:14px 16px;border:1px solid #d6e2dc;border-radius:10px;background:#f7faf9;}
.io-signup-policy summary {cursor:pointer;font-weight:700;}
.io-signup-policy ul {margin:12px 0;padding-left:20px;color:#506876;line-height:1.6;}
.io-privacy-consent {align-items:flex-start;padding:4px 0;line-height:1.55;}
.io-privacy-consent input {margin-top:5px;flex:0 0 auto;}
.io-personal .info-section-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;}
.io-personal .info-section-heading, .io-personal .info-section-heading .campus-actions {flex-wrap:wrap;}
.io-selected {color:#315c4e;margin:0 0 14px;}
#io-alerts {width:min(760px,calc(100% - 32px));}
.io-digest-total {margin:0 0 14px;color:#506876;font-size:.9rem;}
.io-digest-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.io-digest-card {display:flex;flex-direction:column;min-width:0;min-height:90px;padding:10px 14px;text-align:start;background:#f6faf9;border:1px solid #d6e5df;border-radius:10px;color:#193342;}
.io-card-head,.io-card-story {width:100%;border:0;background:transparent;color:inherit;font:inherit;text-align:start;cursor:pointer;padding:6px 0;}
.io-card-head {display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px;}
.io-card-head:hover strong,.io-card-story:hover .io-card-title {color:#08766b;text-decoration:underline;}
.io-card-list {list-style:none;margin:6px 0 0;padding:0;max-height:15rem;overflow-y:auto;scrollbar-width:thin;}
.io-card-list li {border-top:1px solid #dbe7e1;}
.io-story-meta {display:flex;align-items:center;gap:6px;color:#586b74;font-size:.73rem;font-variant-numeric:tabular-nums;}
.io-story-new {display:block;color:#07685a;font-size:.73rem;}
.io-card-count {color:#14665c;font-size:.82rem;font-weight:700;}
.io-card-title,.io-card-empty {font-size:.88rem;line-height:1.45;color:#405968;overflow-wrap:anywhere;}
.io-card-title {display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.io-card-empty {color:#586c74;}
.io-digest-footer,.io-digest-pages {display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.io-digest-footer {justify-content:flex-end;border-top:1px solid #dbe7e1;padding-top:14px;margin-top:16px;}
.io-digest-pages:not(:empty) {justify-content:center;margin-top:12px;}
.io-personal,.io-interest-pane {min-width:0;}
.io-personal .io-interest-tabs {margin:14px 0 0;position:relative;}
.io-personal .io-interest-tabs>button {flex:1 0 auto;padding-inline:14px;}
.io-interest-tools {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:12px 0;}
.io-keywords {display:flex;align-items:center;flex-wrap:wrap;gap:5px;}
.io-keywords[hidden] {display:none;}
.io-keyword {border:1px solid #d7e4df;border-radius:20px;color:#456159;background:white;padding:4px 12px;min-height:32px;font:inherit;font-size:.83rem;cursor:pointer;}
.io-keyword[aria-pressed=true] {border-color:#4f8b80;background:#e6f2ef;color:#0b6158;font-weight:700;}
.io-personal .io-list-heading {margin:0;color:#526a77;font-size:.85rem;font-weight:600;}
.io-interest-pane {touch-action:pan-y pinch-zoom;}
.io-personal .info-board-meta.io-reason {color:#397267;}
.io-interest-more {display:block;margin:14px auto 0;}
@media(max-width:480px){
  #io-alerts {width:calc(100% - 20px);}
  .io-digest-grid {gap:6px;}
  .io-digest-card {min-height:80px;padding:8px;}
}
.io-notice-preferences {max-width:100%;font-size:.85rem;}
.io-notice-preferences summary {padding:6px 0;cursor:pointer;}
.io-notice-preferences .campus-actions {flex-wrap:wrap;gap:6px;}
.io-calendar-inline {padding:14px 16px;margin:12px 0;border:1px solid #d7e6e3;border-radius:12px;background:#f5faf8;}
.io-calendar-inline h3 {margin:0;font-size:15px;}
.io-calendar-inline p {margin:6px 0;}
.io-calendar-connect .campus-actions {flex-wrap:wrap;}
.io-calendar-connect [role="status"]:empty {display:none;}
#io-alerts .io-sheet-body > button {margin-top:12px;}
@media(max-width:800px){#mobile-nav{grid-template-columns:repeat(7,minmax(0,1fr));}}
.io-sheet-body { padding: 18px 24px 24px; }
.io-survey { display: grid; gap: 14px; }
.io-survey p { margin: 0; }
.io-choices { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.io-choices legend { margin: 0 0 9px; padding: 0; }
.io-choice[aria-pressed="true"] { background: #e0f1eb; color: #115b4d; border-color: #428674; box-shadow: inset 0 0 0 1px #428674; }
.io-survey .campus-primary { min-height: 44px; }
.io-survey button:disabled { opacity: .55; }
.io-details { margin: 5px 0; padding: 12px 0; border-top: 1px solid #dde6e4; }
.io-details summary { font-weight: 650; cursor: pointer; }
.io-details[open] > :not(summary) { margin-top: 10px; }
.io-chips { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.io-metrics { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.io-metric { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border: 1px solid #cadfd6; border-radius: 7px; background: #ffffffd9; color: #33574f; font: inherit; font-size: .8rem; cursor: pointer; }
.io-metric:not(button) { cursor: default; }
.io-metric strong { color: #12644f; font-variant-numeric: tabular-nums; }
.io-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.io-tools small { margin-inline-start: auto; }
.io-browse .campus-form-grid { margin: 16px 0; }
.io-reason { color: #346454; }
.io-extract { margin-block: 14px; }
.io-notice-summary { margin-top: 18px; }
.io-notice-summary > h3 { margin-top: 0; }
.io-summary-overview { margin: 0; color: #263d59; font-size: 1rem!important; line-height: 1.8!important; white-space: pre-wrap; }
.io-summary-facts { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 10px 16px; margin: 20px 0 0; padding-top: 18px; border-top: 1px solid #e1e8ec; font-size: .88rem; line-height: 1.7; }
.io-summary-facts dt { color: #66758b; font-weight: 650; }
.io-summary-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.io-summary-dates { display: grid; gap: 5px; }
.io-summary-dates p { margin: 0; }
.io-summary-note { display: block; margin-top: 18px; color: #6b788a; font-size: .75rem; line-height: 1.7; }
.io-poster-summary { display: grid; gap: 14px; margin-top: 20px; }
.io-poster-image { display: block; width: 100%; height: auto; border: 1px solid #dce4e8; border-radius: 12px; background: #f5f7f8; }
.io-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.io-details .campus-link { display: block; overflow-wrap: anywhere; }
#toast:not(:empty) { position: fixed; z-index: 10; bottom: 76px; left: 50%; transform: translateX(-50%); padding: 10px 16px; border-radius: 7px; background: #183c36; color: white; }
@media (max-width: 600px) {
  #sheet { width: 100%; max-height: 91dvh; margin: auto 0 0; border-radius: 18px 18px 0 0; }
  #sheet .dialog-header, #io-alerts .dialog-header { padding: 16px; }
  .io-login {grid-template-columns:minmax(0,1fr);}
  .io-sheet-body { padding: 16px 16px max(18px,env(safe-area-inset-bottom)); }
  .io-choices { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .io-tools small { width: 100%; margin: 1px 0 0; }
  .io-metric { font-size: .75rem; padding: 5px 8px; }
  .io-summary-facts { grid-template-columns: 1fr; gap: 4px; }
  .io-summary-facts dd + dt { margin-top: 10px; }
}
