:root{
  --bg:#f6f7f9;
  --surface:#ffffff;
  --surface-soft:#fafbfc;
  --ink:#17202a;
  --muted:#667085;
  --quiet:#98a2b3;
  --line:#e4e7ec;
  --line-strong:#d0d5dd;
  --brand:#23395d;
  --brand-soft:#eef3fb;
  --green:#11845b;
  --green-soft:#eaf7f1;
  --amber:#b7791f;
  --amber-soft:#fff4df;
  --red:#c9372c;
  --red-soft:#ffebe9;
  --blue:#2563a9;
  --blue-soft:#eaf2ff;
  --radius:8px;
  --shadow:0 1px 2px rgba(16,24,40,.06);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:Inter,Arial,Helvetica,sans-serif;
  -webkit-font-smoothing:antialiased;
}
button,input,select,textarea{font:inherit}
.shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:240px minmax(0,1fr);
}
.sidebar{
  background:var(--surface);
  border-right:1px solid var(--line);
  padding:20px 16px;
  position:sticky;
  top:0;
  height:100vh;
}
.brand{
  display:flex;
  align-items:center;
  gap:11px;
  margin-bottom:24px;
}
.mark{
  width:34px;
  height:34px;
  border:1px solid var(--line-strong);
  border-radius:8px;
  display:grid;
  place-items:center;
  color:var(--brand);
  background:var(--surface-soft);
  font-weight:700;
}
.brand strong{
  display:block;
  font-size:15px;
  line-height:1.2;
}
.brand span{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:12px;
}
.nav{
  display:grid;
  gap:4px;
}
.nav a{
  color:var(--muted);
  text-decoration:none;
  padding:10px 11px;
  border-radius:8px;
  font-size:14px;
  border:1px solid transparent;
}
.nav a:hover,.nav a:focus{
  color:var(--ink);
  background:var(--surface-soft);
  border-color:var(--line);
  outline:none;
}
.sidebar-foot{
  position:absolute;
  left:16px;
  right:16px;
  bottom:16px;
  border-top:1px solid var(--line);
  padding-top:14px;
  color:var(--muted);
  font-size:12px;
  line-height:1.55;
}
.sidebar-foot strong{color:var(--ink)}
main{
  min-width:0;
  padding:24px 28px 44px;
}
.topbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  margin-bottom:20px;
}
.eyebrow{
  margin:0 0 7px;
  color:var(--muted);
  font-size:12px;
}
h1{
  margin:0;
  font-size:26px;
  line-height:1.2;
  font-weight:700;
}
.sub{
  margin:8px 0 0;
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
  max-width:820px;
}
.actions{
  display:flex;
  gap:9px;
  align-items:center;
  flex-wrap:wrap;
}
.button{
  border:1px solid var(--line-strong);
  background:var(--surface);
  color:var(--ink);
  border-radius:8px;
  min-height:38px;
  padding:0 13px;
  cursor:pointer;
  box-shadow:var(--shadow);
}
.button.primary{
  background:var(--brand);
  border-color:var(--brand);
  color:#fff;
  font-weight:700;
}
.button:hover{border-color:#b8c0cc}
.button.primary:hover{background:#1d304f}
.status-strip{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-bottom:16px;
}
.status-item{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:14px;
  box-shadow:var(--shadow);
  min-width:0;
}
.status-item span{
  display:block;
  color:var(--muted);
  font-size:12px;
}
.status-item strong{
  display:block;
  margin-top:8px;
  font-size:22px;
  line-height:1.1;
}
.grid{
  display:grid;
  grid-template-columns:repeat(12,1fr);
  gap:16px;
  align-items:start;
}
.panel{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  min-width:0;
}
.panel-head{
  min-height:56px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:15px 16px;
  border-bottom:1px solid var(--line);
}
.panel-head h2{
  margin:0;
  font-size:15px;
  line-height:1.3;
}
.panel-body{
  padding:16px;
}
.span-4{grid-column:span 4}
.span-5{grid-column:span 5}
.span-7{grid-column:span 7}
.span-8{grid-column:span 8}
.span-12{grid-column:span 12}
.metric-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.metric{
  background:var(--surface-soft);
  border:1px solid var(--line);
  border-radius:8px;
  padding:13px;
  min-height:96px;
}
.metric span{
  display:block;
  color:var(--muted);
  font-size:12px;
}
.metric strong{
  display:block;
  margin-top:8px;
  font-size:25px;
  line-height:1;
}
.metric small{
  display:block;
  margin-top:10px;
  color:var(--muted);
  font-size:12px;
  line-height:1.4;
}
.promise-board{
  display:grid;
  gap:10px;
  margin-top:12px;
}
.promise-board div{
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
  padding:12px 13px;
}
.promise-board strong{
  display:block;
  font-size:13px;
  color:var(--ink);
}
.promise-board span{
  display:block;
  margin-top:5px;
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
}
.table-wrap{
  overflow:auto;
}
table{
  width:100%;
  border-collapse:collapse;
}
th,td{
  padding:12px 10px;
  text-align:left;
  border-bottom:1px solid var(--line);
  vertical-align:top;
}
th{
  color:var(--muted);
  font-size:12px;
  font-weight:700;
  background:var(--surface-soft);
}
td{
  font-size:13px;
  color:#344054;
}
tr:last-child td{border-bottom:0}
.ticket-title{
  color:var(--ink);
  font-weight:700;
}
.ticket-summary{
  color:var(--muted);
  margin-top:5px;
  line-height:1.4;
}
.sla-value{
  display:block;
  color:var(--ink);
}
.muted-line{
  display:block;
  color:var(--muted);
  margin-top:4px;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid var(--line-strong);
  border-radius:999px;
  padding:4px 8px;
  font-size:12px;
  line-height:1.2;
  white-space:nowrap;
  color:#344054;
  background:var(--surface);
  text-transform:capitalize;
}
.pill::before{
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--blue);
  flex:0 0 auto;
}
.pill.critical,.pill.high,.pill.incident,.pill.blocked{
  color:var(--red);
  background:var(--red-soft);
  border-color:#ffd0cc;
}
.pill.critical::before,.pill.high::before,.pill.incident::before,.pill.blocked::before{background:var(--red)}
.pill.medium,.pill.watch,.pill.review{
  color:var(--amber);
  background:var(--amber-soft);
  border-color:#fedf89;
}
.pill.medium::before,.pill.watch::before,.pill.review::before{background:var(--amber)}
.pill.low,.pill.healthy,.pill.passed,.pill.resolved{
  color:var(--green);
  background:var(--green-soft);
  border-color:#abe2c6;
}
.pill.low::before,.pill.healthy::before,.pill.passed::before,.pill.resolved::before{background:var(--green)}
.health-list,.security-list,.activity-list,.commitment-list{
  display:grid;
  gap:10px;
}
.health,.security,.activity,.commitment{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
  padding:12px;
}
.health strong,.security strong,.activity strong,.commitment strong{
  display:block;
  font-size:13px;
  color:var(--ink);
}
.health span,.security span,.activity span,.commitment span{
  display:block;
  margin-top:5px;
  color:var(--muted);
  font-size:12px;
  line-height:1.4;
}
.right-stat{
  display:grid;
  gap:8px;
  justify-items:end;
  align-content:start;
  color:var(--muted);
  font-size:12px;
  text-align:right;
}
.bar{
  height:6px;
  background:#eef2f6;
  border-radius:999px;
  overflow:hidden;
  margin-top:10px;
}
.bar i{
  display:block;
  height:100%;
  background:var(--green);
  border-radius:999px;
}
.form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.field{
  display:grid;
  gap:6px;
}
.field.full{grid-column:1 / -1}
.submit-field{align-self:end}
label{
  font-size:12px;
  color:var(--muted);
  font-weight:700;
}
input,select,textarea{
  width:100%;
  border:1px solid var(--line-strong);
  border-radius:8px;
  background:var(--surface);
  color:var(--ink);
  padding:10px 11px;
  outline:none;
}
textarea{
  min-height:104px;
  resize:vertical;
}
input:focus,select:focus,textarea:focus{
  border-color:var(--brand);
  box-shadow:0 0 0 3px rgba(35,57,93,.12);
}
.ticket-cards{
  display:none;
}
.ticket-card{
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
  padding:13px;
}
.ticket-card-top{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
}
.ticket-card h3{
  margin:10px 0 0;
  font-size:15px;
  line-height:1.35;
}
.ticket-card p{
  margin:7px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}
.ticket-card dl{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin:13px 0 0;
}
.ticket-card dt{
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}
.ticket-card dd{
  margin:4px 0 0;
  color:var(--ink);
  font-size:13px;
  overflow-wrap:anywhere;
}
.activity-time{
  color:var(--muted);
  font-size:12px;
  white-space:nowrap;
}
.toast{
  position:fixed;
  right:20px;
  bottom:20px;
  max-width:320px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
  color:var(--ink);
  padding:13px 14px;
  box-shadow:0 12px 24px rgba(16,24,40,.12);
  transform:translateY(18px);
  opacity:0;
  pointer-events:none;
  transition:.2s ease;
}
.toast.show{
  transform:translateY(0);
  opacity:1;
}
@media(max-width:1080px){
  .shell{grid-template-columns:1fr}
  .sidebar{
    position:relative;
    height:auto;
    display:grid;
    grid-template-columns:1fr;
    gap:14px;
  }
  .brand{margin-bottom:0}
  .nav{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
  }
  .nav a{flex:0 0 auto}
  .sidebar-foot{
    position:static;
    padding-top:12px;
  }
  main{padding:22px 16px 38px}
  .topbar{display:grid}
  .status-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  .span-4,.span-5,.span-7,.span-8,.span-12{grid-column:1 / -1}
}
@media(max-width:720px){
  h1{font-size:23px}
  .status-strip{grid-template-columns:1fr}
  .metric-grid{grid-template-columns:1fr}
  .form-grid{grid-template-columns:1fr}
  .actions{width:100%}
  .button{flex:1 1 auto}
  .table-wrap{display:none}
  .ticket-cards{
    display:grid;
    gap:10px;
  }
  .ticket-card dl{grid-template-columns:1fr}
  .health,.security,.activity,.commitment{
    grid-template-columns:1fr;
  }
  .right-stat{
    justify-items:start;
    text-align:left;
  }
  .activity-time{white-space:normal}
}
