:root{
  color-scheme:light;
  --navy:#101e2b;
  --navy-soft:#1b2c3c;
  --teal:#087f70;
  --ink:#152b3c;
  --muted:#657586;
  --line:#e2e8ed;
  --surface:#fff;
  --bg:#f3f6f8;
  --amber:#946112
}
*{
  box-sizing:border-box
}
body{
  margin:0;
  font:14px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:var(--bg)
}
a{
  color:inherit;
  text-decoration:none
}
button,input{
  font:inherit
}
button,a,input{
  outline-offset:4px
}
a:focus-visible,button:focus-visible,input:focus-visible{
  outline:3px solid #27a99a
}
h1,h2,h3,p{
  margin-top:0
}
h1{
  font-size:30px;
  line-height:1.2;
  letter-spacing:-.9px;
  margin-bottom:9px
}
h2{
  font-size:17px;
  letter-spacing:-.25px;
  margin-bottom:0
}
h3{
  font-size:17px;
  margin-bottom:8px
}
p{
  color:var(--muted)
}
small{
  font-size:11px
}
.muted{
  color:var(--muted)
}
.eyebrow{
  display:block;
  font-size:10px;
  font-weight:750;
  letter-spacing:1.8px;
  color:var(--teal);
  margin-bottom:12px
}
.sidebar{
  width:226px;
  position:fixed;
  inset:0 auto 0 0;
  display:flex;
  flex-direction:column;
  padding:27px 16px 18px;
  background:var(--navy);
  color:#b9c8d5;
  overflow:auto
}
.brand{
  display:flex;
  gap:11px;
  align-items:center;
  color:#fff;
  font-weight:800;
  font-size:19px;
  letter-spacing:2px;
  padding:0 10px
}
.brand-mark{
  display:grid;
  place-items:center;
  width:35px;
  height:38px;
  background:#19b79f;
  color:#0c2530;
  letter-spacing:-2px;
  font-size:27px;
  border-radius:8px
}
.brand-sub{
  display:block;
  font-size:8px;
  letter-spacing:1.9px;
  font-weight:600;
  margin-top:0
}
.nav-label{
  font-size:9px;
  letter-spacing:1.7px;
  color:#71899e;
  margin:35px 14px 12px
}
.nav-link{
  display:flex;
  align-items:center;
  gap:11px;
  padding:9px 13px;
  margin-bottom:2px;
  border-radius:6px;
  font-size:12px;
  font-weight:550
}
.nav-link:hover{
  background:var(--navy-soft);
  color:#fff
}
.nav-link.active{
  background:#173e44;
  color:#7ae0ca
}
.nav-dot{
  width:6px;
  height:6px;
  border:1px solid #71899e;
  border-radius:2px
}
.active .nav-dot{
  background:#55c9b1;
  border-color:#55c9b1
}
.sidebar-footer{
  margin-top:auto;
  padding:24px 12px 0;
  font-size:10px;
  color:#c3d1da
}
.sidebar-footer small{
  display:block;
  font-size:9px;
  color:#71899e;
  margin:6px 0
}
.sidebar-footer a{
  display:block;
  margin-top:13px;
  color:#93c6bd
}
.status-dot{
  display:inline-block;
  width:6px;
  height:6px;
  background:#11a785;
  border-radius:50%;
  margin-right:6px
}
.workspace{
  margin-left:226px;
  min-height:100vh;
  display:flex;
  flex-direction:column
}
.topbar{
  height:82px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  background:white;
  padding:0 34px
}
.platform-title{
  font-size:10px;
  letter-spacing:1.6px;
  font-weight:750
}
.user-menu{
  display:flex;
  align-items:center;
  gap:22px
}
.user-menu strong{
  font-size:12px;
  display:block
}
.user-menu small{
  display:block;
  color:var(--muted);
  font-size:9px;
  letter-spacing:1px
}
.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:20px;
  padding:10px 16px;
  border:1px solid transparent;
  border-radius:6px;
  font-weight:650;
  font-size:12px;
  cursor:pointer
}
.button-primary{
  background:var(--teal);
  color:#fff
}
.button-primary:hover{
  background:#07695d
}
.button-quiet{
  border-color:var(--line);
  background:#fff;
  color:var(--ink)
}
.button-quiet:hover{
  background:var(--bg)
}
main#main-content{
  padding:32px 34px 28px;
  flex:1;
  max-width:1680px;
  width:100%;
  margin:0 auto
}
.page-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:25px
}
.page-heading p{
  font-size:12px;
  margin-bottom:0
}
.pill{
  display:inline-flex;
  align-items:center;
  white-space:nowrap;
  padding:5px 9px;
  border-radius:5px;
  font-size:9px;
  font-weight:750;
  letter-spacing:.8px;
  background:#e5f3ef;
  color:#08715f
}
.pill-neutral{
  background:#eff3f6;
  color:#657586
}
.pill-warning{
  background:#faeacb;
  color:#916019
}
.safety-banner{
  display:flex;
  align-items:center;
  gap:14px;
  background:#fff8eb;
  border:1px solid #eedab5;
  border-radius:8px;
  padding:15px 18px;
  margin-bottom:21px
}
.safety-banner strong{
  font-size:12px;
  color:#83581a
}
.safety-banner p{
  font-size:11px;
  color:#8c7755;
  margin:3px 0 0
}
.safety-banner>.pill{
  margin-left:auto
}
.safety-icon{
  width:27px;
  height:27px;
  display:grid;
  place-items:center;
  border:1px solid #d4b273;
  border-radius:50%;
  color:var(--amber);
  font-weight:700
}
.status-strip{
  background:white;
  border:1px solid var(--line);
  border-radius:8px;
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  padding:18px 0;
  margin-bottom:30px
}
.status-strip>div{
  padding:0 17px;
  border-right:1px solid var(--line);
  min-width:0;
  overflow-wrap:anywhere
}
.status-strip>div:last-child{
  border:0
}
.status-strip span{
  display:block;
  font-size:10px;
  color:var(--muted);
  margin-bottom:6px
}
.status-strip strong{
  font-size:11px
}
.mode-text{
  color:var(--teal)
}
.section-heading{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  margin-bottom:14px
}
.section-heading>.muted{
  font-size:10px
}
.stats-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:15px;
  margin-bottom:25px
}
.stat-card{
  padding:19px 21px;
  background:white;
  border:1px solid var(--line);
  border-radius:8px
}
.stat-card>span{
  color:var(--muted);
  font-size:11px
}
.stat-card>strong{
  display:block;
  font-size:29px;
  font-weight:650;
  letter-spacing:-.8px;
  line-height:1.4;
  margin:9px 0
}
.stat-card>small{
  display:block;
  font-size:9px;
  color:#8996a1
}
.overview-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr;
  gap:18px
}
.panel{
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden
}
.panel-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:19px 21px;
  border-bottom:1px solid var(--line);
  gap:10px
}
.panel-heading h2{
  font-size:13px
}
.panel-heading>.muted{
  font-size:10px
}
.empty-state{
  text-align:center;
  padding:33px 24px
}
.empty-symbol{
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  margin:0 auto 18px;
  border-radius:10px;
  background:#f1f6f7;
  color:#658491;
  font-size:30px
}
.empty-state h3{
  font-size:14px
}
.empty-state p{
  font-size:12px;
  max-width:410px;
  margin:0 auto 18px
}
.text-link{
  color:var(--teal);
  font-size:11px;
  font-weight:650
}
.readiness-list{
  margin:0;
  padding:6px 21px
}
.readiness-list>div{
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:12px 0;
  border-bottom:1px solid #edf1f4;
  font-size:11px
}
.readiness-list>div:last-child{
  border:0
}
.readiness-list dt{
  color:var(--muted)
}
.readiness-list dd{
  margin:0;
  font-weight:600;
  text-align:right
}
.text-success{
  color:var(--teal)
}
.panel-note{
  background:#fafcfd;
  border-top:1px solid var(--line);
  font-size:10px;
  color:var(--muted);
  padding:14px 21px
}
.workspace-footer{
  padding:18px 34px;
  border-top:1px solid var(--line);
  font-size:9px;
  color:#718191;
  display:flex;
  justify-content:space-between;
  gap:12px
}
.placeholder-panel{
  min-height:350px;
  display:grid;
  place-items:center
}
.placeholder-panel .empty-state h2{
  margin-bottom:12px
}
.status-details{
  padding:10px 24px
}
.status-details>div{
  padding:19px 0;
  font-size:13px
}
.table-scroll{
  overflow-x:auto
}
table{
  border-collapse:collapse;
  width:100%;
  font-size:12px;
  white-space:nowrap
}
th{
  text-align:left;
  background:#f8fafb;
  color:var(--muted);
  font-size:10px;
  letter-spacing:.3px;
  padding:14px 20px
}
td{
  padding:17px 20px;
  border-top:1px solid var(--line)
}
.table-footer{
  border-top:1px solid var(--line);
  padding:15px 21px;
  color:var(--muted);
  font-size:10px;
  display:flex;
  justify-content:space-between;
  gap:15px
}
.table-footer a{
  color:var(--teal);
  margin-left:16px
}
.login-layout{
  min-height:100vh;
  display:grid;
  grid-template-columns:1fr 1fr
}
.login-intro{
  background:var(--navy);
  color:white;
  padding:45px 55px;
  display:flex;
  flex-direction:column
}
.login-intro>.brand{
  padding:0
}
.login-story{
  margin:auto 0;
  padding:65px 0;
  max-width:490px
}
.login-story .eyebrow{
  color:#4fd0b8
}
.login-story h1{
  font-size:44px;
  line-height:1.22;
  margin:23px 0;
  letter-spacing:-1.4px
}
.login-story>p{
  color:#9bb0c0;
  font-size:14px;
  max-width:395px
}
.intro-rule{
  width:46px;
  height:2px;
  background:#20b59e;
  margin:33px 0
}
.pill-dark{
  background:#223645;
  color:#b7cbc9
}
.login-story p.muted{
  font-size:11px;
  margin:13px 0 0
}
.login-bottom{
  font-size:9px;
  color:#7193a4;
  letter-spacing:1.2px;
  display:flex;
  gap:22px
}
.login-panel{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  padding:45px;
  background:white;
  position:relative
}
.login-card{
  width:100%;
  max-width:365px
}
.login-card h2{
  font-size:26px;
  letter-spacing:-.6px;
  margin-bottom:12px
}
.login-card>p{
  font-size:12px
}
.login-form{
  display:flex;
  flex-direction:column;
  margin-top:33px
}
.login-form label{
  font-size:11px;
  font-weight:650;
  margin-bottom:8px
}
.login-form input:not([type=hidden]){
  padding:12px;
  border:1px solid #ccd7df;
  border-radius:5px;
  background:#fff;
  color:var(--ink);
  margin-bottom:21px;
  width:100%
}
.login-form button{
  width:100%;
  justify-content:space-between;
  margin-top:4px;
  padding:13px 17px
}
.login-note{
  border-top:1px solid var(--line);
  padding-top:22px;
  margin-top:28px;
  color:#82919c;
  line-height:1.7
}
.login-card .login-note{
  font-size:11px
}
.login-caption{
  position:absolute;
  bottom:23px;
  font-size:8px;
  letter-spacing:1.1px;
  color:#8c9aa5
}
.form-error{
  padding:12px 14px;
  background:#fff0ef;
  border:1px solid #f0cac5;
  border-radius:5px;
  color:#9a3933;
  font-size:12px;
  margin-top:22px
}
.public-error{
  max-width:650px;
  margin:15vh auto;
  padding:40px
}
.public-error h1{
  margin:20px 0
}
@media(min-width:1500px){
  .stats-grid{
    grid-template-columns:repeat(6,minmax(0,1fr))
  }
}
@media(max-width:1100px){
  .status-strip{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px 0
  }
  .status-strip>div:nth-child(3){
    border:0
  }
  .overview-grid{
    grid-template-columns:1fr
  }
  .login-intro{
    padding:35px
  }
  .login-story h1{
    font-size:36px
  }
  .login-bottom{
    display:block
  }
  .login-bottom span{
    display:block;
    margin-top:7px
  }
}
@media(max-width:760px){
  .sidebar{
    position:static;
    width:100%;
    padding:18px
  }
  .sidebar .brand{
    font-size:16px
  }
  .nav-label,.sidebar-footer{
    display:none
  }
  .sidebar nav{
    display:flex;
    overflow-x:auto;
    margin-top:18px;
    gap:5px
  }
  .nav-link{
    flex-shrink:0;
    font-size:11px;
    padding:8px 11px
  }
  .nav-dot{
    display:none
  }
  .workspace{
    margin-left:0
  }
  .topbar{
    height:auto;
    min-height:70px;
    padding:15px 20px
  }
  .platform-title{
    font-size:8px;
    letter-spacing:1px;
    max-width:100px
  }
  .user-menu{
    gap:12px
  }
  .user-menu strong{
    max-width:130px;
    overflow-wrap:anywhere
  }
  main#main-content{
    padding:25px 18px
  }
  .page-heading{
    align-items:flex-start
  }
  h1{
    font-size:26px
  }
  .safety-banner>.pill{
    display:none
  }
  .safety-icon{
    flex-shrink:0
  }
  .section-heading{
    align-items:flex-start;
    flex-direction:column;
    gap:6px
  }
  .stats-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px
  }
  .stat-card{
    padding:15px
  }
  .stat-card>strong{
    font-size:26px
  }
  .status-strip>div{
    padding:0 11px
  }
  .workspace-footer{
    padding:17px 20px;
    flex-direction:column
  }
  .login-layout{
    grid-template-columns:1fr
  }
  .login-intro{
    padding:24px
  }
  .login-story,.login-bottom{
    display:none
  }
  .login-panel{
    padding:50px 25px 80px;
    min-height:calc(100vh - 86px)
  }
  .login-caption{
    font-size:7px
  }
  .status-details>div{
    flex-direction:column;
    gap:5px
  }
  .readiness-list dd{
    text-align:left
  }
  .table-footer{
    flex-direction:column
  }
}

/* Authenticated Phase 2 research tables; compatible with strict style-src. */
.research-table { overflow-x: auto; max-width: 100%; }
.research-table table { width: 100%; border-collapse: collapse; }
.research-table th, .research-table td { padding: 12px; text-align: left; vertical-align: top; }
.research-table code { display: inline-block; max-width: 260px; overflow-wrap: anywhere; }
.research-audit { white-space: pre-wrap; overflow-wrap: anywhere; padding: 16px; background: #f4f6f8; border-radius: 8px; }
.research-table .dataset-identifiers { min-width: 14rem; width: 18rem; white-space: normal; }
.research-table .dataset-identifiers code { display: block; width: 15rem; max-width: 100%; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
.dataset-identifiers span { display: block; font-size: .75rem; color: #526174; margin-top: .3rem; }
.research-panel { padding: 24px; margin: 20px 0; }
.research-form { max-width: 840px; padding: 24px; background: #fff; border: 1px solid #d8e0e8; border-radius: 12px; }
.research-form label { display: flex; flex-direction: column; gap: 8px; min-width: 0; font-weight: 600; }
.research-form input, .research-form select { width: 100%; min-width: 0; padding: 10px; border: 1px solid #b8c5d3; border-radius: 6px; font: inherit; background: #fff; }
.research-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 20px 0; }
@media (max-width: 600px) { .research-form-grid { grid-template-columns: 1fr; } .research-form { padding: 16px; } }

.research-code { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; }
.research-form textarea { width: 100%; box-sizing: border-box; padding: 12px; }
