@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@1,600&display=swap");
:root {
  --ink: #101218;
  --muted: #7c818d;
  --line: #e9e9ed;
  --cream: #f6f4ef;
  --gold: #b88a44;
  --dark: #15171d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "DM Sans", Arial, sans-serif;
  background: #f7f7f8;
  color: var(--ink);
}
a {
  color: inherit;
  text-decoration: none;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: linear-gradient(180deg, #15171d, #0f1014);
  color: white;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brandmark {
  width: 42px;
  height: 42px;
  border: 1px solid #8b7048;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: linear-gradient(145deg, #d8b77f, #8f6933);
  color: #15171d;
}
.brand strong {
  display: block;
}
.brand span,
.userchip small,
td small {
  display: block;
  color: #8e929d;
  font-size: 12px;
  margin-top: 3px;
}
.sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 44px;
}
.sidebar nav a {
  padding: 13px 14px;
  border-radius: 12px;
  color: #aeb1b9;
}
.sidebar nav a.active,
.sidebar nav a:hover {
  background: #22252c;
  color: white;
}
.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid #292c33;
  padding-top: 20px;
}
.userchip {
  display: flex;
  gap: 10px;
  align-items: center;
}
.userchip > span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #292c33;
  display: grid;
  place-items: center;
}
.linkbtn {
  border: 0;
  background: none;
  color: #9ea2ad;
  padding: 14px 0;
  cursor: pointer;
}
.top {
  height: 112px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
}
.top h1 {
  margin: 4px 0 0;
  font-size: 26px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--gold);
  font-weight: 700;
  margin: 0;
}
.date {
  color: var(--muted);
  font-size: 13px;
}
.content {
  padding: 36px 44px 60px;
  max-width: 1500px;
}
.hero {
  padding: 38px 42px;
  border-radius: 24px;
  background: radial-gradient(circle at 80% 20%, #37302a, #17191f 55%);
  color: white;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 240px;
  box-shadow: 0 24px 60px rgba(20, 21, 25, 0.12);
}
.hero h2 {
  font-size: 42px;
  line-height: 1.05;
  margin: 12px 0;
}
.hero h2 span,
.hero h2 em {
  font-family: "Playfair Display", serif;
  color: #d7b678;
  font-weight: 600;
}
.hero p {
  color: #b8bbc4;
  max-width: 620px;
}
.hero.compact {
  min-height: 160px;
}
.scorehero {
  font-size: 54px;
  font-weight: 700;
}
.scorehero small {
  font-size: 11px;
  color: #b8bbc4;
  display: block;
}
.primary {
  display: inline-block;
  border: 0;
  border-radius: 12px;
  padding: 13px 18px;
  background: linear-gradient(135deg, #d0a45e, #a47735);
  color: #15171d;
  font-weight: 700;
  cursor: pointer;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 22px 0;
}
.stats article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}
.stats span {
  color: var(--muted);
  font-size: 12px;
}
.stats b {
  font-size: 30px;
  display: block;
  margin: 8px 0;
}
.stats small {
  color: #aaa;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  margin-top: 18px;
  box-shadow: 0 12px 40px rgba(30, 32, 37, 0.035);
}
.panelhead,
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.panelhead h3 {
  margin: 5px 0;
}
.toolbar {
  margin-bottom: 16px;
}
.toolbar form {
  display: flex;
  gap: 8px;
}
.toolbar input,
input,
select {
  border: 1px solid #dedfe3;
  border-radius: 11px;
  padding: 11px 13px;
  background: white;
  min-height: 43px;
}
.toolbar button {
  border: 1px solid #ddd;
  background: white;
  border-radius: 10px;
  padding: 0 14px;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}
th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #90949e;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 15px 12px;
  border-bottom: 1px solid #f0f0f2;
  font-size: 13px;
}
.pill {
  background: #f1ede5;
  color: #80602e;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 11px;
}
.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.formgrid label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
}
.span2 {
  grid-column: 1/-1;
}
.assessment {
  padding: 0;
  overflow: hidden;
}
.assessment .panelhead {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.scoreline {
  padding: 18px 24px;
  display: grid;
  grid-template-columns: 1fr 110px;
  align-items: center;
  border-bottom: 1px solid #f0f0f2;
  gap: 20px;
}
.scoreline p {
  font-size: 12px;
  color: var(--muted);
  margin: 5px 0 0;
  max-width: 800px;
}
.scoreline select {
  width: 100%;
}
.scorebadge {
  display: inline-block;
  background: #17191f;
  color: #d8b77f;
  border-radius: 10px;
  padding: 8px 10px;
}
.stickybtn {
  margin-top: 18px;
}
.checkgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}
.check {
  display: flex;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
.check input {
  min-height: auto;
}
.check small {
  display: block;
  color: var(--muted);
}
.flash {
  background: #edf7ef;
  border: 1px solid #cde7d2;
  color: #2b7140;
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
}
.loginbody {
  min-height: 100vh;
  background: #111319;
  display: grid;
  place-items: center;
  padding: 30px;
}
.loginpanel {
  width: min(1050px, 100%);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  background: #181a20;
  border: 1px solid #292c34;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.35);
}
.loginhero {
  padding: 70px;
  background: radial-gradient(circle at 20% 20%, #40352c, #17191f 60%);
  color: white;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.loginhero > p {
  letter-spacing: 3px;
  font-size: 11px;
  color: #c69a58;
}
.loginhero h1 {
  font-size: 60px;
  line-height: 1;
  margin: 14px 0 28px;
}
.loginhero em {
  font-family: "Playfair Display";
  color: #d7b678;
}
.loginhero span {
  color: #aeb2bd;
  max-width: 460px;
  line-height: 1.7;
}
.logincard {
  padding: 60px 52px;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.logincard h2 {
  font-size: 28px;
  margin: 38px 0 5px;
}
.logincard > p {
  color: var(--muted);
  margin-bottom: 30px;
}
.logincard label {
  display: grid;
  gap: 8px;
  margin: 9px 0;
  font-size: 12px;
  font-weight: 600;
}
.logincard .primary {
  margin-top: 16px;
}
.logincard > small {
  color: #999;
  margin-top: 18px;
  line-height: 1.5;
}
.error {
  color: #a33;
  font-size: 12px;
}
@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    height: auto;
    position: static;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    margin-top: 20px;
  }
  .sidebar-foot {
    display: none;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .content,
  .top {
    padding-left: 20px;
    padding-right: 20px;
  }
  .loginpanel {
    grid-template-columns: 1fr;
  }
  .loginhero {
    display: none;
  }
  .formgrid,
  .checkgrid {
    grid-template-columns: 1fr;
  }
  .hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
}
.hint {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}
.flash.error {
  border-color: #7f1d1d;
  background: rgba(127, 29, 29, 0.14);
  color: #fecaca;
}
.filterbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.filterbar select,
.reviewer-picker select {
  min-width: 260px;
}
.empty-state {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
}
.empty-state b {
  display: block;
  color: var(--text);
  font-size: 18px;
  margin-bottom: 8px;
}
.reviewer-picker {
  margin-bottom: 22px;
}
.reviewer-picker label {
  min-width: min(460px, 100%);
}

/* IGTax KPI: prevent legacy grid rules from fighting the Blade flex shell. */
.shell {display:flex;grid-template-columns:none}
.shell > main {flex:1;min-width:0}
@media(max-width:900px) {
 .shell {display:block;grid-template-columns:none}
 .shell > main {margin-left:0!important;width:100%;min-width:0}
 .shell > .sidebar {position:fixed!important;height:100dvh!important}
 .content {max-width:none}
}
